.ndh-wrap,
.ndh-wrap * {
    box-sizing: border-box !important;
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif !important;
    letter-spacing: 0 !important;
}

.ndh-wrap {
    --ndh-purple: #7c3aed;
    --ndh-violet: #a855f7;
    --ndh-pink: #ec4899;
    --ndh-ink: #191327;
    --ndh-muted: #70647f;
    --ndh-soft: #f6f0ff;
    --ndh-line: rgba(124, 58, 237, .16);
    width: 100%;
    color: var(--ndh-ink);
}

.ndh-wrap .fa,
.ndh-wrap .fas,
.ndh-wrap .fa-solid {
    font-family: "Font Awesome 7 Free" !important;
    font-weight: 900 !important;
}

.ndh-wrap .far,
.ndh-wrap .fa-regular {
    font-family: "Font Awesome 7 Free" !important;
    font-weight: 400 !important;
}

.ndh-wrap .fab,
.ndh-wrap .fa-brands {
    font-family: "Font Awesome 7 Brands" !important;
    font-weight: 400 !important;
}

.ndh-form-shell {
    position: relative;
    padding: clamp(24px, 4vw, 56px);
    border-radius: 22px;
    overflow: hidden;
    background:
        radial-gradient(circle at 18% 12%, rgba(236, 72, 153, .38), transparent 28%),
        radial-gradient(circle at 80% 20%, rgba(168, 85, 247, .48), transparent 34%),
        linear-gradient(135deg, rgba(64, 18, 121, .92), rgba(124, 58, 237, .82) 48%, rgba(236, 72, 153, .70));
}

.ndh-card {
    background: rgba(255, 255, 255, .96);
    border: 1px solid rgba(255, 255, 255, .72);
    border-radius: 18px;
    box-shadow: 0 24px 80px rgba(31, 13, 71, .24);
}

.ndh-form-card {
    position: relative;
    max-width: 880px;
    min-height: 520px;
    margin: 0 auto;
    padding: clamp(20px, 4vw, 38px);
    overflow: hidden;
}

.ndh-progress {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(60px, 180px) minmax(0, 1fr);
    align-items: center;
    gap: 16px;
    margin-bottom: 34px;
}

.ndh-step {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
    color: #8b7a9f;
    transition: color .25s ease, transform .25s ease;
}

.ndh-step:last-child {
    justify-content: flex-end;
}

.ndh-step span {
    display: grid;
    place-items: center;
    width: 42px;
    height: 42px;
    flex: 0 0 42px;
    border-radius: 50%;
    color: #7c3aed;
    background: #f3e8ff;
    border: 1px solid rgba(124, 58, 237, .18);
    font-weight: 800;
    transition: all .25s ease;
}

.ndh-step strong {
    font-size: 15px;
    line-height: 1.2;
    white-space: nowrap;
}

.ndh-step.is-active,
.ndh-step.is-complete {
    color: var(--ndh-ink);
}

.ndh-step.is-active span,
.ndh-step.is-complete span {
    color: #fff;
    background: linear-gradient(135deg, var(--ndh-purple), var(--ndh-pink));
    box-shadow: 0 12px 28px rgba(124, 58, 237, .32);
}

.ndh-step.is-complete span::before {
    content: "\f00c";
    font: var(--fa-font-solid);
}

.ndh-step.is-complete span {
    font-size: 0;
}

.ndh-progress-line {
    height: 7px;
    border-radius: 999px;
    background: #eadcff;
    overflow: hidden;
}

.ndh-progress-line i {
    display: block;
    width: 0;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, var(--ndh-purple), var(--ndh-pink));
    transition: width .35s ease;
}

.ndh-form-card.is-step-2 .ndh-progress-line i {
    width: 100%;
}

.ndh-form-panel {
    display: none;
    animation: ndhFadeUp .28s ease both;
}

.ndh-form-panel.is-active {
    display: block;
}

.ndh-field {
    margin-bottom: 18px;
}

.ndh-field label,
.ndh-upload-box strong {
    display: block;
    margin-bottom: 8px;
    font-size: 14px;
    font-weight: 800;
    color: var(--ndh-ink);
}

.ndh-field input,
.ndh-search input {
    width: 100% !important;
    min-height: 56px !important;
    padding: 0 17px !important;
    color: var(--ndh-ink) !important;
    background: #fff !important;
    border: 1px solid #e6d8ff !important;
    border-radius: 14px !important;
    outline: none !important;
    box-shadow: 0 10px 28px rgba(124, 58, 237, .07) !important;
    transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease !important;
}

.ndh-field input:focus,
.ndh-search input:focus {
    border-color: var(--ndh-purple) !important;
    box-shadow: 0 0 0 4px rgba(124, 58, 237, .13), 0 14px 32px rgba(124, 58, 237, .12) !important;
}

.ndh-field small {
    display: block;
    min-height: 18px;
    margin-top: 6px;
    color: #dc2626;
    font-weight: 700;
    font-size: 12px;
}

.ndh-field.has-error input {
    border-color: #ef4444 !important;
}

.ndh-upload-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
}

.ndh-upload-box {
    position: relative;
    min-height: 168px;
    padding: 22px;
    text-align: center;
    cursor: pointer;
    border: 1px dashed rgba(124, 58, 237, .38);
    border-radius: 18px;
    background: linear-gradient(180deg, #fff, #fbf7ff);
    overflow: hidden;
    transition: transform .22s ease, border-color .22s ease, box-shadow .22s ease;
}

.ndh-upload-box:hover {
    transform: translateY(-3px);
    border-color: var(--ndh-purple);
    box-shadow: 0 18px 36px rgba(124, 58, 237, .16);
}

.ndh-upload-box input {
    position: absolute;
    inset: 0;
    opacity: 0;
    cursor: pointer;
}

.ndh-upload-icon {
    display: grid;
    place-items: center;
    width: 54px;
    height: 54px;
    margin: 0 auto 12px;
    border-radius: 16px;
    color: #fff;
    background: linear-gradient(135deg, var(--ndh-purple), var(--ndh-pink));
    box-shadow: 0 12px 28px rgba(124, 58, 237, .26);
}

.ndh-upload-box em,
.ndh-upload-status,
.ndh-file-name {
    display: block;
    color: var(--ndh-muted);
    font-size: 13px;
    font-style: normal;
    overflow-wrap: anywhere;
}

.ndh-file-name {
    margin-top: 8px;
    font-weight: 800;
    color: var(--ndh-ink);
}

.ndh-upload-line {
    position: absolute;
    left: 0;
    bottom: 0;
    width: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--ndh-purple), var(--ndh-pink));
}

.ndh-upload-box.is-uploading .ndh-upload-line {
    animation: ndhUploadLine 4s linear both;
}

.ndh-upload-box.is-uploading .ndh-upload-status::after,
.ndh-dots::after {
    content: "";
    animation: ndhDots 1.2s steps(4, end) infinite;
}

.ndh-upload-box.is-done {
    border-style: solid;
    border-color: rgba(22, 163, 74, .55);
    background: linear-gradient(180deg, #fff, #f0fdf4);
}

.ndh-upload-box.is-done .ndh-upload-icon {
    background: linear-gradient(135deg, #16a34a, #22c55e);
}

.ndh-upload-box.is-error {
    border-color: #ef4444;
    background: #fff7f7;
}

.ndh-upload-center {
    grid-column: 1 / -1;
    justify-self: center;
    width: min(100%, calc(50% - 9px));
}

.ndh-actions {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    margin-top: 26px;
}

.ndh-btn,
.ndh-search button {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    gap: 9px;
    min-height: 48px;
    padding: 0 20px !important;
    border: 0 !important;
    border-radius: 14px !important;
    cursor: pointer;
    font-weight: 800 !important;
    text-decoration: none !important;
    transition: transform .2s ease, box-shadow .2s ease, opacity .2s ease;
}

.ndh-btn[hidden],
.ndh-search button[hidden] {
    display: none !important;
}

.ndh-btn:hover,
.ndh-search button:hover {
    transform: translateY(-2px);
}

.ndh-btn-main,
.ndh-search button,
.ndh-btn-small {
    color: #fff !important;
    background: linear-gradient(135deg, var(--ndh-purple), var(--ndh-pink)) !important;
    box-shadow: 0 14px 30px rgba(124, 58, 237, .28);
}

.ndh-btn-ghost {
    color: var(--ndh-purple) !important;
    background: #f3e8ff !important;
}

.ndh-btn:disabled {
    opacity: .5;
    cursor: not-allowed;
    transform: none;
}

.ndh-submit-overlay,
.ndh-success-overlay {
    position: absolute;
    inset: 0;
    z-index: 20;
    display: grid;
    place-items: center;
    align-content: center;
    gap: 16px;
    padding: 26px;
    text-align: center;
    background: transparent;
    backdrop-filter: blur(16px);
    color: var(--ndh-ink);
}

.ndh-submit-overlay[hidden],
.ndh-success-overlay[hidden],
.ndh-modal[hidden] {
    display: none !important;
}

.ndh-submit-progress {
    position: relative;
    width: min(340px, 76vw);
    height: 14px;
    padding: 3px;
    border-radius: 999px;
    background: rgba(255, 255, 255, .72);
    box-shadow: 0 18px 48px rgba(65, 20, 120, .18), inset 0 0 0 1px rgba(124, 58, 237, .16);
    overflow: hidden;
}

.ndh-submit-progress span {
    display: block;
    width: 42%;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, var(--ndh-purple), var(--ndh-violet), var(--ndh-pink));
    box-shadow: 0 0 18px rgba(168, 85, 247, .55);
    animation: ndhProgressSlide 1.15s ease-in-out infinite;
}

.ndh-submit-overlay p,
.ndh-success-overlay h3 {
    margin: 0;
    font-size: clamp(18px, 3vw, 25px);
    font-weight: 900;
    color: var(--ndh-ink);
}

.ndh-lottie-success {
    width: min(240px, 70vw);
    aspect-ratio: 1;
}

.ndh-empty {
    padding: 24px;
}

.ndh-dashboard {
    display: grid;
    grid-template-columns: minmax(230px, 30%) minmax(0, 1fr);
    gap: 20px;
    min-height: 680px;
}

.ndh-sidebar {
    padding: 22px;
    border-radius: 20px;
    background: linear-gradient(160deg, #5b21b6, #9333ea 52%, #db2777);
    box-shadow: 0 22px 58px rgba(76, 29, 149, .28);
}

.ndh-profile {
    display: grid;
    justify-items: center;
    gap: 12px;
    padding: 20px 12px;
    color: #fff;
}

.ndh-profile img {
    width: 96px;
    height: 96px;
    object-fit: cover;
    border-radius: 50%;
    border: 4px solid rgba(255, 255, 255, .62);
    box-shadow: 0 14px 35px rgba(20, 9, 46, .25);
}

.ndh-profile strong {
    font-size: 20px;
}

.ndh-tabs {
    display: grid;
    gap: 10px;
    margin-top: 14px;
}

.ndh-tabs button {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    min-height: 50px;
    padding: 0 16px;
    color: rgba(255, 255, 255, .88);
    text-align: left;
    border: 1px solid rgba(255, 255, 255, .12);
    border-radius: 14px;
    background: rgba(255, 255, 255, .08);
    cursor: pointer;
    font-weight: 800;
    transition: background .2s ease, transform .2s ease;
}

.ndh-tabs button:hover,
.ndh-tabs button.is-active {
    color: #42175f;
    background: #fff;
    transform: translateX(4px);
}

.ndh-admin-main {
    min-width: 0;
    border-radius: 20px;
    background: #fff;
    box-shadow: 0 18px 58px rgba(31, 13, 71, .12);
    overflow: hidden;
}

.ndh-admin-header {
    padding: 24px clamp(20px, 3vw, 30px);
    color: #fff;
    background: linear-gradient(135deg, var(--ndh-purple), var(--ndh-pink));
}

.ndh-admin-header h2 {
    margin: 0;
    color: #fff;
    font-size: clamp(23px, 3vw, 34px);
}

.ndh-admin-content {
    padding: clamp(18px, 3vw, 30px);
}

.ndh-admin-panel {
    display: none;
    animation: ndhFadeUp .25s ease both;
}

.ndh-admin-panel.is-active {
    display: block;
}

.ndh-stat-card {
    display: grid;
    gap: 8px;
    width: min(100%, 340px);
    padding: 24px;
    border-radius: 18px;
    background: linear-gradient(135deg, #fbf7ff, #fff);
    border: 1px solid var(--ndh-line);
}

.ndh-stat-card span {
    color: var(--ndh-muted);
    font-weight: 800;
}

.ndh-stat-card strong {
    font-size: 48px;
    line-height: 1;
    color: var(--ndh-purple);
}

.ndh-list-block {
    margin-top: 24px;
    border: 1px solid var(--ndh-line);
    border-radius: 18px;
    overflow: hidden;
}

.ndh-block-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 18px;
    background: #fbf7ff;
}

.ndh-block-head h3 {
    margin: 0;
    font-size: 20px;
}

.ndh-recent-list,
.ndh-data-list {
    display: grid;
    gap: 12px;
}

.ndh-recent-list {
    padding: 16px;
}

.ndh-data-list {
    position: relative;
    margin-top: 18px;
}

.ndh-data-list.is-loading {
    opacity: .55;
    pointer-events: none;
}

.ndh-row {
    display: grid;
    grid-template-columns: 56px minmax(180px, 1.35fr) minmax(120px, .8fr) minmax(130px, .8fr) minmax(250px, auto);
    align-items: center;
    gap: 12px;
    padding: 14px;
    border: 1px solid var(--ndh-line);
    border-radius: 16px;
    background: #fff;
    transition: transform .2s ease, box-shadow .2s ease;
}

.ndh-table-head {
    display: grid;
    grid-template-columns: 56px minmax(180px, 1.35fr) minmax(120px, .8fr) minmax(130px, .8fr) minmax(250px, auto);
    align-items: center;
    gap: 12px;
    padding: 0 14px 6px;
    color: var(--ndh-muted);
    font-size: 12px;
    font-weight: 900;
    text-transform: uppercase;
}

.ndh-head-icon {
    width: 44px;
    height: 1px;
}

.ndh-data-list .ndh-table-head {
    padding-top: 4px;
}

.ndh-list-block > .ndh-table-head {
    margin: 16px 16px 0;
}

.ndh-data-head {
    margin-top: 18px;
}

.ndh-data-head + .ndh-data-list {
    margin-top: 10px;
}

.ndh-row:hover {
    transform: translateY(-2px);
    box-shadow: 0 14px 34px rgba(124, 58, 237, .12);
}

.ndh-avatar {
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    color: #fff;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--ndh-purple), var(--ndh-pink));
}

.ndh-row strong,
.ndh-row span {
    min-width: 0;
    overflow-wrap: anywhere;
}

.ndh-doc-ok {
    color: #16a34a;
    font-weight: 900;
}

.ndh-row-actions {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    justify-content: flex-start;
}

.ndh-icon-btn {
    min-height: 38px;
    padding: 0 12px;
    border: 0;
    border-radius: 11px;
    cursor: pointer;
    font-weight: 800;
}

.ndh-view-btn {
    color: #fff;
    background: var(--ndh-purple);
}

.ndh-delete-btn {
    color: #fff;
    background: #dc2626;
}

.ndh-search {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 12px;
}

.ndh-pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    margin-top: 18px;
}

.ndh-pagination span {
    color: var(--ndh-muted);
    font-weight: 800;
}

.ndh-modal {
    position: fixed;
    inset: 0;
    z-index: 99999;
    display: grid;
    place-items: center;
    padding: 18px;
    background: rgba(25, 19, 39, .62);
    backdrop-filter: blur(10px);
}

.ndh-modal-card {
    position: relative;
    width: min(920px, 100%);
    max-height: 88vh;
    overflow: auto;
    padding: clamp(20px, 3vw, 28px);
    border-radius: 20px;
    background: #fff;
    box-shadow: 0 28px 90px rgba(0, 0, 0, .28);
    animation: ndhModalIn .22s ease both;
}

.ndh-modal-close {
    position: absolute;
    top: 14px;
    right: 14px;
    display: grid;
    place-items: center;
    width: 38px;
    height: 38px;
    border: 0;
    border-radius: 50%;
    cursor: pointer;
    color: var(--ndh-purple);
    background: #f3e8ff;
}

.ndh-detail-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
    margin: 18px 0;
}

.ndh-detail-item,
.ndh-doc-card {
    padding: 14px;
    border: 1px solid var(--ndh-line);
    border-radius: 16px;
    background: #fbf7ff;
}

.ndh-detail-item span {
    display: block;
    color: var(--ndh-muted);
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
}

.ndh-detail-item strong {
    display: block;
    margin-top: 4px;
    overflow-wrap: anywhere;
}

.ndh-doc-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
    margin-top: 14px;
}

.ndh-doc-card img {
    width: 100%;
    aspect-ratio: 16 / 10;
    object-fit: cover;
    border-radius: 12px;
    background: #eee;
}

.ndh-pdf-preview {
    display: grid;
    place-items: center;
    width: 100%;
    aspect-ratio: 16 / 10;
    color: #fff;
    border-radius: 12px;
    background: linear-gradient(135deg, #7c3aed, #ec4899);
    font-size: 46px;
}

.ndh-doc-card strong {
    display: block;
    margin: 10px 0;
    overflow-wrap: anywhere;
}

.ndh-download {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 38px;
    padding: 0 12px;
    border-radius: 11px;
    color: #fff !important;
    background: var(--ndh-purple);
    text-decoration: none !important;
    font-weight: 800;
}

.ndh-modal-actions {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    margin-top: 18px;
}

.ndh-danger-title {
    color: #dc2626;
}

@keyframes ndhFadeUp {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes ndhUploadLine {
    from { width: 0; }
    to { width: 100%; }
}

@keyframes ndhDots {
    0% { content: ""; }
    25% { content: "."; }
    50% { content: ".."; }
    75%, 100% { content: "..."; }
}

@keyframes ndhProgressSlide {
    0% { transform: translateX(-110%); width: 34%; }
    50% { width: 58%; }
    100% { transform: translateX(280%); width: 34%; }
}

@keyframes ndhModalIn {
    from { opacity: 0; transform: translateY(10px) scale(.98); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

@media (max-width: 820px) {
    .ndh-form-shell {
        padding: 16px;
        border-radius: 18px;
    }

    .ndh-progress {
        grid-template-columns: minmax(92px, 1fr) minmax(40px, 72px) minmax(82px, 1fr);
        gap: 8px;
        margin-bottom: 24px;
    }

    .ndh-step {
        gap: 8px;
    }

    .ndh-step span {
        width: 34px;
        height: 34px;
        flex-basis: 34px;
        font-size: 13px;
    }

    .ndh-step:last-child {
        justify-content: flex-end;
    }

    .ndh-step strong {
        font-size: 12px;
        white-space: nowrap;
    }

    .ndh-search,
    .ndh-doc-grid,
    .ndh-detail-grid {
        grid-template-columns: 1fr;
    }

    .ndh-upload-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 12px;
    }

    .ndh-upload-box {
        min-height: 148px;
        padding: 16px 10px;
    }

    .ndh-upload-center {
        width: min(100%, calc(50% - 6px));
    }

    .ndh-actions {
        flex-direction: column-reverse;
    }

    .ndh-actions .ndh-btn {
        width: 100%;
    }

    .ndh-dashboard {
        grid-template-columns: 1fr;
    }

    .ndh-sidebar {
        position: static;
    }

    .ndh-tabs {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .ndh-tabs button {
        justify-content: center;
        padding: 0 10px;
        font-size: 13px;
    }

    .ndh-tabs button:hover,
    .ndh-tabs button.is-active {
        transform: translateY(-2px);
    }

    .ndh-row,
    .ndh-table-head {
        grid-template-columns: 44px minmax(110px, 1.2fr) minmax(72px, .75fr) minmax(78px, .75fr) minmax(150px, auto);
        gap: 8px;
        font-size: 12px;
        overflow-x: auto;
    }

    .ndh-row-actions {
        justify-content: stretch;
    }

    .ndh-row-actions button {
        flex: 1;
    }

    .ndh-block-head,
    .ndh-pagination,
    .ndh-modal-actions {
        flex-direction: column;
        align-items: stretch;
    }
}

@media (max-width: 480px) {
    .ndh-form-card,
    .ndh-admin-content {
        padding: 16px;
    }

    .ndh-step strong {
        font-size: 10px;
        white-space: nowrap;
    }

    .ndh-progress {
        grid-template-columns: minmax(78px, 1fr) minmax(28px, 48px) minmax(70px, 1fr);
        gap: 5px;
    }

    .ndh-step {
        gap: 5px;
    }

    .ndh-step span {
        width: 28px;
        height: 28px;
        flex-basis: 28px;
        font-size: 11px;
    }

    .ndh-tabs {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 8px;
    }

    .ndh-tabs button {
        min-height: 44px;
        gap: 6px;
        padding: 0 7px;
        font-size: 11px;
    }

    .ndh-upload-icon {
        width: 44px;
        height: 44px;
        border-radius: 13px;
    }

    .ndh-upload-box strong {
        font-size: 12px;
    }

    .ndh-upload-box em,
    .ndh-upload-status,
    .ndh-file-name {
        font-size: 11px;
    }

    .ndh-row,
    .ndh-table-head {
        grid-template-columns: 38px minmax(88px, 1fr) minmax(58px, .7fr) minmax(64px, .7fr) minmax(128px, auto);
        gap: 6px;
        padding-left: 8px;
        padding-right: 8px;
    }

    .ndh-profile img {
        width: 78px;
        height: 78px;
    }
}
