/* ===== Design tokens (copy to next pages) ===== */
.nd-page{
    --bg: #F7F8FC;
    --surface: #ffffff;
    --text: #111214;
    --muted: rgba(17,18,20,.58);

    --ink: #121316;
    --line: rgba(17,18,20,.10);

    --p1: #14B8A6;
    --p2: #F97316;

    --radius-xl: 26px;
    --radius-lg: 18px;

    --shadow-1: 0 18px 60px rgba(17,18,20,.14);
    --shadow-2: 0 10px 32px rgba(17,18,20,.12);
    --shadow-soft: 0 16px 40px rgba(20,184,166,.18);

    min-height: 100vh;
    background: radial-gradient(900px 500px at 70% 40%, rgba(20,184,166,.10), transparent 60%),
    radial-gradient(800px 500px at 85% 65%, rgba(249,115,22,.10), transparent 60%),
    var(--bg);
    color: var(--text);
    overflow-x: clip;
    font-family: "Quicksand", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Arial, "Apple Color Emoji", "Segoe UI Emoji";
}

.nd-container{
    margin: 0 auto;
    padding: 0 28px;
}

/* ===== Nav ===== */
.nd-nav{
    position: relative;
    padding: 26px 0 10px;
}
.nd-nav-inner{
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
}

.nd-brand{
    display: inline-flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: inherit;
}
.nd-brand-mark{
    width: 34px;
    height: 34px;
    display: grid;
    place-items: center;
}
.nd-brand-mark svg{ width: 34px; height: 34px; }
.nd-brand-mark-icon{
    width: 36px;
    height: 36px;
    border-radius: 12px;
    background: linear-gradient(135deg, var(--p1), var(--p2));
    color: #fff;
    font-size: 16px;
}
.nd-brand-mark-icon i{ line-height: 1; }
.nd-brand-text{ display: grid; gap: 3px; }
.nd-brand-name{ font-weight: 600; font-size: 15px; letter-spacing: .1px; opacity: .8; }
.nd-brand-scribble{
    width: 92px;
    height: 10px;
    border-radius: 999px;
    background: linear-gradient(90deg, rgba(20,184,166,.0), rgba(20,184,166,.55), rgba(249,115,22,.55), rgba(249,115,22,.0));
    transform: translateY(-2px);
    filter: blur(.2px);
    opacity: .75;
}

.nd-menu{ margin-left: auto; }
.nd-burger{
    display:none;
    width: 44px;
    height: 44px;
    border: 0;
    background: transparent;
    border-radius: 12px;
    cursor: pointer;
}
.nd-burger span{
    display:block;
    height: 2px;
    width: 22px;
    background: rgba(17,18,20,.70);
    margin: 5px auto;
    border-radius: 999px;
}

.nd-menu-links{
    display: flex;
    align-items: center;
    gap: 28px;
}
.nd-menu-spacer{ width: 20px; }

.nd-link{
    position: relative;
    text-decoration: none;
    color: rgba(17,18,20,.68);
    font-size: 13px;
    letter-spacing: .22px;
    font-weight: 600;
    text-transform: none;
    cursor: pointer;
}
.nd-link:hover{ color: rgba(17,18,20,.92); }

.nd-link.is-active{
    color: rgba(20,184,166,.95);
}
.nd-link-ink{
    position: absolute;
    left: 50%;
    top: 22px;
    width: 36px;
    height: 12px;
    transform: translateX(-50%);
    background: linear-gradient(90deg, rgba(20,184,166,.0), rgba(20,184,166,.55), rgba(249,115,22,.55), rgba(249,115,22,.0));
    border-radius: 999px;
    filter: blur(.2px);
}

.nd-link-ghost{
    color: rgba(17,18,20,.52);
    letter-spacing: .34px;
}
.nd-link-cta{
    color: rgba(20,184,166,.95);
    letter-spacing: .34px;
}

/* ===== Footer (adapted) ===== */
.nd-footer{
    margin-top: 10px;
    background: radial-gradient(900px 400px at 20% 20%, rgba(20,184,166,.12), transparent 55%),
    radial-gradient(900px 400px at 80% 0%, rgba(249,115,22,.10), transparent 55%),
    #0D1020;
    color: rgba(255,255,255,.82);
    padding: 34px 0 20px;
}
.nd-footer-top{
    display:flex;
    gap: 28px;
    align-items: flex-start;
    justify-content: space-between;
}
.nd-footer-brand{
    min-width: 240px;
}
.nd-footer-logo{
    display:flex;
    align-items:center;
    gap: 10px;
    font-weight: 800;
    letter-spacing: .2px;
}
.nd-footer-cloud{
    width: 28px;
    height: 28px;
    display:grid;
    place-items:center;
    color: rgba(255,255,255,.88);
}
.nd-footer-cloud svg{ width: 24px; height: 24px; }
.nd-social{
    margin-top: 14px;
    display:flex;
    gap: 10px;
}
.nd-social-ic{
    width: 30px;
    height: 30px;
    border-radius: 10px;
    display:grid;
    place-items:center;
    text-decoration:none;
    color: rgba(255,255,255,.78);
    background: rgba(255,255,255,.06);
    border: 1px solid rgba(255,255,255,.08);
}
.nd-social-ic:hover{
    background: rgba(255,255,255,.10);
}

.nd-footer-cols{
    display:flex;
    gap: 70px;
}
.nd-footer-col{ display:grid; gap: 10px; }
.nd-footer-title{
    font-weight: 800;
    color: rgba(255,255,255,.90);
    margin-bottom: 2px;
}
.nd-footer-link{
    text-decoration:none;
    color: rgba(255,255,255,.72);
    font-size: 13px;
}
.nd-footer-link:hover{ color: rgba(255,255,255,.92); }

.nd-footer-divider{
    height: 1px;
    background: rgba(255,255,255,.10);
    margin: 22px 0 18px;
}

.nd-footer-bottom{
    display:flex;
    gap: 18px;
    align-items: center;
    justify-content: space-between;
}
.nd-footer-copy{
    max-width: 760px;
    font-size: 12px;
    line-height: 1.5;
    color: rgba(255,255,255,.70);
}
.nd-footer-copy-muted{
    display:block;
    margin-top: 6px;
    color: rgba(255,255,255,.55);
}

.nd-footer-actions{
    display:flex;
    align-items:center;
    gap: 12px;
}
.nd-lang{
    height: 38px;
    padding: 0 14px;
    border-radius: 999px;
    border: 1px solid rgba(255,255,255,.14);
    background: rgba(255,255,255,.06);
    color: rgba(255,255,255,.85);
    cursor: pointer;
}
.nd-pay{
    display:flex;
    gap: 8px;
    align-items:center;
    flex-wrap: wrap;
    justify-content: flex-end;
}
.nd-pay-pill{
    height: 28px;
    padding: 0 10px;
    border-radius: 9px;
    display:grid;
    place-items:center;
    border: 1px solid rgba(255,255,255,.14);
    background: rgba(255,255,255,.06);
    color: rgba(255,255,255,.85);
    font-weight: 800;
    font-size: 11px;
}


/* ===== Common (adapted) ===== */
.nd-hero{
    padding: 36px 0 0;
}

.nd-hero-inner{
    display: grid;
    grid-template-columns: 1.05fr 1fr;
    gap: 28px;
    align-items: start;
}

/* ===== Responsive ===== */
@media (max-width: 980px){
    .nd-hero-inner{
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .nd-footer-top{
        flex-direction: column;
        gap: 22px;
    }
    .nd-footer-cols{
        gap: 44px;
    }
    .nd-footer-bottom{
        flex-direction: column;
        align-items: flex-start;
    }
    .nd-pay{ justify-content: flex-start; }
}

@media (max-width: 760px){
    .nd-container{ padding: 0 18px; }

    .nd-burger{ display:block; }
    .nd-menu-links{
        position: absolute;
        right: 18px;
        top: 76px;
        flex-direction: column;
        align-items: stretch;
        gap: 10px;
        background: rgba(255,255,255,.92);
        border: 1px solid rgba(17,18,20,.08);
        border-radius: 18px;
        padding: 14px;
        box-shadow: var(--shadow-2);
        display: none;
        min-width: 220px;
        backdrop-filter: blur(8px);
    }
    .nd-menu-links.is-open{ display:flex; }
    .nd-menu-spacer{ display:none; }

    .nd-footer-cols{ flex-direction: column; gap: 18px; }
}

/* ===== Fake workspace shared ===== */
.nd-ps-card{
    border-radius: 16px;
    border: 1px solid rgba(17,18,20,.1);
    background: rgba(255,255,255,.9);
    padding: 14px;
    display: grid;
    gap: 12px;
}

.nd-ps-avatar{
    width: 94px;
    height: 94px;
    border-radius: 14px;
    overflow: hidden;
    background: rgba(17,18,20,.08);
    border: 1px solid rgba(17,18,20,.12);
}

.nd-ps-avatar img{
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.nd-ps-avatar-ph{
    width: 100%;
    height: 100%;
    display: grid;
    place-items: center;
    color: rgba(17,18,20,.34);
    font-size: 30px;
}

.nd-ps-nav{
    display: grid;
    gap: 8px;
}

.nd-ps-link{
    height: 42px;
    border-radius: 12px;
    border: 1px solid rgba(17,18,20,.12);
    background: rgba(255,255,255,.9);
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 0 12px;
    cursor: pointer;
    font-weight: 800;
    color: rgba(17,18,20,.74);
}

.nd-ps-link:hover{
    border-color: rgba(17,130,211,.28);
}

.nd-ps-link.is-active{
    border-color: rgba(17,130,211,.38);
    box-shadow: 0 0 0 5px rgba(17,130,211,.12);
    color: rgba(13,70,103,.88);
}

.nd-ps-badge{
    margin-left: auto;
    min-width: 20px;
    height: 20px;
    padding: 0 6px;
    border-radius: 10px;
    background: #F97316;
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

.nd-readonly{
    min-height: 44px;
    border-radius: 12px;
    border: 1px solid rgba(17,18,20,.12);
    background: rgba(255,255,255,.9);
    padding: 10px 12px;
    font-weight: 800;
    color: rgba(17,18,20,.82);
}

.nd-age{
    display: grid;
    grid-template-columns: auto 1fr auto 1fr;
    gap: 8px;
    align-items: center;
}

.nd-age-cap{
    font-size: 12px;
    font-weight: 800;
    color: rgba(17,18,20,.58);
}

.nd-textarea.nd-readonly{
    min-height: 90px;
}

.nd-empty{
    border: 1px dashed rgba(17,18,20,.18);
    border-radius: 14px;
    padding: 16px;
    background: rgba(255,255,255,.82);
}

.nd-empty-title{
    font-weight: 900;
    color: rgba(17,18,20,.86);
}

.nd-empty-sub{
    margin-top: 6px;
    color: rgba(17,18,20,.62);
    font-weight: 700;
}

.nd-profile-empty{
    border: 1px solid rgba(17,18,20,.1);
    border-radius: 14px;
    padding: 16px;
    background: rgba(255,255,255,.88);
}

.nd-mtabs{
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 14px 0 10px;
}

.nd-mtab{
    height: 38px;
    padding: 0 12px;
    border-radius: 999px;
    border: 1px solid rgba(17,18,20,.14);
    background: rgba(255,255,255,.9);
    font-weight: 800;
    color: rgba(17,18,20,.72);
}

.nd-mtab.is-active{
    border-color: rgba(26,184,143,.4);
    color: rgba(14,86,66,.9);
    box-shadow: 0 0 0 5px rgba(26,184,143,.12);
}

.nd-matches-list{
    display: grid;
    gap: 8px;
}

.nd-mcard{
    display: grid;
    grid-template-columns: 54px minmax(0,1fr);
    gap: 10px;
    border: 1px solid rgba(17,18,20,.1);
    background: rgba(255,255,255,.94);
    border-radius: 12px;
    padding: 8px;
}

.nd-mcard-ava{
    width: 54px;
    height: 54px;
    border-radius: 12px;
    overflow: hidden;
    background: rgba(17,18,20,.08);
}

.nd-mcard-ava img{
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.nd-mcard-ava-ph{
    width: 100%;
    height: 100%;
    display: grid;
    place-items: center;
    color: rgba(17,18,20,.3);
}

.nd-mcard-name{
    font-weight: 900;
    color: rgba(17,18,20,.88);
}

.nd-mcard-sub{
    margin-top: 4px;
    font-size: 12px;
    color: rgba(17,18,20,.6);
    font-weight: 700;
}

.nd-dot{
    width: 10px;
    height: 10px;
    border-radius: 999px;
}

.nd-dot-online{
    position: absolute;
    right: 2px;
    bottom: 2px;
    background: #20b26e;
    border: 2px solid #fff;
    width: 12px;
    height: 12px;
}

.nd-ios{
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.nd-ios input{
    appearance: none;
    width: 42px;
    height: 24px;
    border-radius: 999px;
    border: 1px solid rgba(17,18,20,.16);
    background: rgba(17,18,20,.18);
    position: relative;
    cursor: pointer;
}

.nd-ios input::after{
    content: "";
    position: absolute;
    top: 2px;
    left: 2px;
    width: 18px;
    height: 18px;
    border-radius: 999px;
    background: #fff;
    transition: all .2s ease;
}

.nd-ios input:checked{
    background: rgba(26,184,143,.9);
    border-color: rgba(26,184,143,.9);
}

.nd-ios input:checked::after{
    left: 20px;
}

.nd-ios-track{ display: none; }
.nd-ios-label{
    font-weight: 700;
    color: rgba(17,18,20,.7);
}

.nd-emoji-pop{
    display: none;
    position: fixed;
    z-index: 1200;
}

.nd-emoji-pop.is-open{
    display: block;
}

/* ===== Profile header ===== */
.nd-ph{
    position: relative;
    padding: 16px 0 10px;
    background: rgba(255,255,255,.72);
    border-bottom: 1px solid rgba(17,18,20,.08);
    backdrop-filter: blur(10px);
}
.nd-ph-inner{
    display:flex;
    align-items:center;
    justify-content: space-between;
    gap: 14px;
}
.nd-ph-left{
    display:flex;
    align-items:center;
    gap: 14px;
    min-width: 0;
}
.nd-ph-brand{
    display:flex;
    align-items:center;
    gap: 10px;
    cursor:pointer;
    text-decoration:none;
    color: inherit;
}
.nd-ph-brand-text{
    font-weight: 900;
    letter-spacing: .2px;
    color: rgba(17,18,20,.86);
}
.nd-ph-search{
    position: relative;
    width: min(420px, 52vw);
    min-width: 160px;
}
.nd-ph-search-input{
    width: 100%;
    height: 40px;
    border-radius: 999px;
    border: 1px solid rgba(17,18,20,.12);
    background: rgba(255,255,255,.85);
    padding: 0 44px 0 14px;
    outline: none;
    font-weight: 700;
    color: rgba(17,18,20,.80);
}
.nd-ph-search-ic{
    position:absolute;
    right: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: rgba(17,18,20,.45);
    font-weight: 900;
}
.nd-ph-signout{
    height: 40px;
    padding: 0 14px;
    border-radius: 999px;
    border: 1px solid rgba(17,18,20,.12);
    background: rgba(255,255,255,.78);
    cursor: pointer;
    font-weight: 900;
    color: rgba(17,18,20,.70);
}
.nd-ph-signout:hover{
    border-color: rgba(20,184,166,.35);
    box-shadow: 0 0 0 6px rgba(20,184,166,.10);
}
@media (max-width: 760px){
    .nd-ph-search{ display:none; } /* hide on mobile */
}



.nd-profile-loading{
    display:grid;
    place-items:center;
    gap: 12px;
    padding: 38px 0;
}
.nd-profile-loading-text{
    font-weight: 900;
    color: rgba(17,18,20,.60);
    font-size: 12px;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.nd-pm-head{ padding: 6px 4px 10px; }
.nd-pm-title{ margin:0; font-weight: 900; letter-spacing: -.3px; color: rgba(17,18,20,.90); }
.nd-pm-sub{ margin-top: 6px; font-size: 13px; color: rgba(17,18,20,.55); }

.nd-pm-card{
    border-radius: var(--radius-xl);
    background: rgba(255,255,255,.92);
    border: 1px solid rgba(17,18,20,.10);
    box-shadow: var(--shadow-2);
    padding: 16px;
    margin-top:28px
}

.nd-badge{
    display:inline-flex;
    align-items:center;
    height: 24px;
    padding: 0 10px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 900;
    border: 1px solid rgba(17,18,20,.10);
}
.nd-badge-on{
    background: rgba(38,177,95,.10);
    color: rgba(38,177,95,.95);
    border-color: rgba(38,177,95,.25);
}
.nd-badge-off{
    background: rgb(255 0 0 / 6%);
    color: rgb(255 0 0 / 55%);
}
.nd-badge-warn{
    background: rgba(245,158,11,.10);
    color: rgba(217,119,6,.90);
    border-color: rgba(245,158,11,.25);
}

.nd-toggle{
    display:grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.nd-key-btn{
    height: 48px;
    padding: 0 14px;
    border-radius: 999px;
    border: 1px solid rgba(17,18,20,.12);
    background: rgba(255,255,255,.85);
    cursor:pointer;
    font-weight: 900;
    color: rgba(17,18,20,.70);
    display:flex;
    align-items:center;
    gap: 8px;
    transition:
            background .2s ease,
            border-color .2s ease,
            box-shadow .2s ease,
            transform .05s ease;
}

.nd-key-btn i{
    font-size: 14px;
    color: rgba(20,184,166,.95);
}

.nd-key-btn:hover{
    background: rgba(20,184,166,.06);
    border-color: rgba(20,184,166,.30);
    box-shadow: 0 0 0 6px rgba(20,184,166,.10);
}

.nd-key-btn:active{
    transform: translateY(1px);
}

.nd-key-hint{
    margin-top: 6px;
    font-size: 12px;
    line-height: 1.4;
    color: rgba(17,18,20,.45);
}

.nd-toggle-btn{
    height: 48px;
    border-radius: 999px;
    border: 1px solid rgba(17,18,20,.12);
    background: rgba(255,255,255,.80);
    cursor:pointer;
    font-weight: 900;
    color: rgba(17,18,20,.65);
}
.nd-toggle-btn.is-on{
    border-color: rgba(20,184,166,.55);
    box-shadow: 0 0 0 6px rgba(20,184,166,.12);
    color: rgba(20,184,166,.95);
}

/* ===== Buttons in confirm ===== */
.nd-wpd-btn{
    height: 46px;
    padding: 0 16px;
    border-radius: 14px;
    border: 0;
    cursor:pointer;
    font-weight: 1000;
}
.nd-wpd-btn-ghost{
    background: rgba(17,18,20,.06);
    color: rgba(17,18,20,.75);
    border: 1px solid rgba(17,18,20,.10);
}
.nd-wpd-btn-danger{
    background: rgba(255, 91, 91, 0.95);
    color: #fff;
    box-shadow: 0 16px 40px rgba(255, 91, 91, 0.22);
}

.nd-save{
    width: min(340px, 100%);
    height: 48px;
    border-radius: 14px;
    text-align: center;
    border: 0;
    cursor:pointer;
    background: #26b15f;
    color: white;
    font-weight: 900;
    box-shadow: 0 16px 40px rgba(38,177,95,.22);
}
.nd-save:disabled{ opacity: .6; cursor: not-allowed; }

.nd-pm-form{ display:grid; gap: 14px; }

.nd-pm-row{ display:grid; gap: 8px; }
.nd-pm-label{ font-weight: 900; font-size: 12px; color: rgba(17,18,20,.70); }

/* ===== Input baseline (global) ===== */
.nd-auth-input{
    width: 100%;
    height: 48px;
    border-radius: 16px;
    border: 1px solid rgba(17,18,20,.12);
    background: rgba(255,255,255,.85);
    padding: 0 14px;
    outline: none;
    font-weight: 800;
    color: rgba(17,18,20,.78);
}
.nd-auth-input:focus{
    border-color: rgba(20,184,166,.45);
    box-shadow: 0 0 0 6px rgba(20,184,166,.10);
}

/* ===== Profile lock popup ===== */
.nd-warn-overlay{
    position: fixed;
    inset: 0;
    background: rgba(13,16,32,.45);
    backdrop-filter: blur(6px);
    display: grid;
    place-items: center;
    z-index: 1200;
}

.nd-warn-modal{
    width: min(420px, calc(100% - 32px));
    background: #fff;
    border-radius: 26px;
    padding: 26px 24px 24px;
    box-shadow: 0 30px 90px rgba(17,18,20,.25);
    animation: nd-warn-in .25s ease-out;
}

@keyframes nd-warn-in{
    from{
        opacity: 0;
        transform: translateY(10px) scale(.96);
    }
    to{
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.nd-warn-title{
    font-size: 18px;
    font-weight: 900;
    color: rgba(17,18,20,.92);
}

.nd-warn-text{
    margin-top: 10px;
    font-size: 14px;
    line-height: 1.5;
    color: rgba(17,18,20,.55);
}

.nd-warn-actions{
    margin-top: 22px;
    display: flex;
    justify-content: flex-end;
}

.nd-warn-btn{
    height: 44px;
    padding: 0 22px;
    border-radius: 999px;
    border: 0;
    cursor: pointer;
    font-weight: 900;
    font-size: 13px;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.nd-warn-btn-primary{
    color: #fff;
    background: linear-gradient(90deg, var(--p1), var(--p2));
    box-shadow: var(--shadow-soft);
}

.nd-warn-btn-primary:hover{
    transform: translateY(-1px);
}

.nd-warn-btn-primary:active{
    transform: translateY(0);
}

/* mobile */
@media (max-width: 480px){
    .nd-warn-modal{
        padding: 22px 18px 20px;
    }
    .nd-warn-title{
        font-size: 16px;
    }
}


.nd-pm-actions{
    display:flex;
    justify-content:center;
    padding-top: 6px;
}


/* ===== Auth modal ===== */
.nd-modal-open{
    overflow: hidden;
}

.nd-modal-open .nd-nav,
.nd-modal-open .nd-hero,
.nd-modal-open .nd-footer{
    filter: blur(10px);
    transform: translateZ(0);
    transition: filter .18s ease;
}

.nd-auth-overlay{
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: grid;
    place-items: center;
    padding: 18px;                 /* mobile edge padding */
    background: rgba(17,18,20,.35);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    overflow: auto;                /* scroll if modal taller than screen */
}

.nd-auth-glow{
    position: absolute;
    width: min(720px, 92vw);
    height: min(720px, 92vw);
    border-radius: 999px;
    background:
            radial-gradient(circle at 30% 30%, rgba(20,184,166,.30), transparent 60%),
            radial-gradient(circle at 70% 60%, rgba(249,115,22,.26), transparent 62%);
    filter: blur(10px);
    opacity: .9;
}

.nd-auth-modal{
    position: relative;
    width: min(720px, 100%);
    max-height: calc(100vh - 36px); /* account for overlay padding */
    overflow: hidden;               /* keep scroll inside */
    border-radius: var(--radius-xl);
    background: rgba(255,255,255,.92);
    border: 1px solid rgba(17,18,20,.10);
    box-shadow: var(--shadow-1);
}

.nd-auth-x{
    position:absolute;
    right: 20px;
    top: 10px;
    width: 38px;
    height: 38px;
    border-radius: 12px;
    border: 1px solid rgba(17,18,20,.10);
    background: rgba(255,255,255,.80);
    cursor:pointer;
    font-size: 18px;
    font-weight: 900;
    color: rgba(17,18,20,.65);
}

.nd-auth-title{
    font-weight: 900;
    font-size: 18px;
    color: rgba(17,18,20,.86);
}
.nd-auth-sub{
    margin-top: 4px;
    color: rgba(17,18,20,.50);
    font-weight: 800;
    font-size: 12px;
}

.nd-auth-form{ margin-top: 14px; display:grid; gap: 12px; }
.nd-auth-row{ display:grid; gap: 8px; }
.nd-auth-label{ font-weight: 900; font-size: 12px; color: rgba(17,18,20,.70); }

.nd-admin-table-wrap{
    overflow:auto;
    border-radius: 16px;
    border: 1px solid rgba(17,18,20,.10);
    background: rgba(255,255,255,.75);
    margin-top: 10px;
}

.nd-admin-table{
    width: 100%;
    border-collapse: collapse;
    min-width: 720px;
}
.nd-admin-table th{
    text-align:left;
    font-size: 12px;
    color: rgba(17,18,20,.55);
    font-weight: 900;
    padding: 12px 14px;
    background: rgba(17,18,20,.03);
    border-bottom: 1px solid rgba(17,18,20,.08);
}
.nd-admin-table td{
    padding: 12px 14px;
    border-bottom: 1px solid rgba(17,18,20,.06);
    font-weight: 800;
    color: rgba(17,18,20,.72);
}
.nd-admin-tr{
    cursor:pointer;
}
.nd-admin-tr:hover{
    background: rgba(20,184,166,.05);
}


.nd-textarea{
    min-height: 120px;
    border-radius: 16px;
    border: 1px solid rgba(17,18,20,.12);
    background: rgba(255,255,255,.85);
    padding: 12px 14px;
    font-weight: 800;
    color: rgba(17,18,20,.78);
    outline: none;
    resize: vertical;
    width: 100%;
}

.nd-worker-top-actions{
    display:flex;
    align-items:center;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: space-between;
}

/* ===== Field validation UX ===== */
.nd-field-error{
    font-size: 12px;
    font-weight: 900;
    color: rgba(249,115,22,.95);
}

.nd-field-invalid{
    border-color: rgba(249,115,22,.55) !important;
    box-shadow: 0 0 0 6px rgba(249,115,22,.12) !important;
}

.nd-about-meta{
    display:flex;
    align-items:center;
    justify-content: space-between;
    font-size: 12px;
    color: rgba(17,18,20,.45);
}
.nd-about-count{
    font-weight: 900;
    letter-spacing: .08em;
}

.nd-admin-ghost{
    padding: 0 14px;
    border-radius: 14px;
    border: 1px solid rgba(17,18,20,.10);
    background: rgba(255,255,255,.85);
    cursor:pointer;
    font-weight: 900;
    color: rgba(17,18,20,.70);
    display:flex;
    align-items:center;
    gap: 10px;
    width: min(340px, 100%);
    height: 48px;
    text-align: center;
    justify-content: center;
}
.nd-admin-ghost:hover{
    background: rgba(20,184,166,.06);
    border-color: rgba(20,184,166,.18);
}

.nd-select{
    width: 100%;
    height: 48px;
    border-radius: 16px;
    border: 1px solid rgba(17,18,20,.12);
    background: rgba(255,255,255,.85);
    padding: 0 40px 0 12px;
    font-weight: 900;
    color: rgba(17,18,20,.75);
    outline: none;
    cursor: pointer;
}
.nd-select:focus{
    border-color: rgba(20,184,166,.55);
    box-shadow: 0 0 0 6px rgba(20,184,166,.12);
}

select.nd-select,
select.nd-auth-input{
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    padding-right: 40px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 20 20'%3E%3Cpath d='M5.8 7.6 10 11.8l4.2-4.2 1.4 1.4-5.6 5.6L4.4 9z' fill='rgba(17,18,20,.65)'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    background-size: 14px 14px;
    cursor: pointer;
}

select.nd-select::-ms-expand,
select.nd-auth-input::-ms-expand{
    display: none;
}

/* Disable text selection globally; keep it only in editable controls */
html, body{
    -webkit-user-select: none;
    user-select: none;
}

input, textarea, select, [contenteditable], [contenteditable="true"]{
    -webkit-user-select: text;
    user-select: text;
}

.nd-key-row{
    display:grid;
    grid-template-columns: 1fr 44px;
    gap: 10px;
    align-items:center;
}

.nd-auth-actions{
    display:flex;
    justify-content:center;
    padding-top: 14px;
}

.nd-auth-btn{
    width: min(340px, 100%);
    height: 48px;
    border-radius: 14px;
    border: 0;
    cursor:pointer;
    color: white;
    font-weight: 900;
    background: linear-gradient(90deg, var(--p1), var(--p2));
    box-shadow: 0 16px 40px rgba(20,184,166,.22);
}
.nd-auth-btn:disabled{ opacity: .55; cursor:not-allowed; }

.nd-launch-btn{
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(255,255,255,.26);
    background:
        radial-gradient(120% 140% at 10% 0%, rgba(255,255,255,.35), transparent 45%),
        linear-gradient(102deg, #0d9488 0%, #14b8a6 46%, #f97316 100%);
    box-shadow:
        0 18px 40px rgba(20,184,166,.24),
        0 10px 24px rgba(249,115,22,.18),
        inset 0 1px 0 rgba(255,255,255,.34);
    transition: transform .2s ease, box-shadow .2s ease, filter .2s ease;
}

.nd-launch-btn::after{
    content: "";
    position: absolute;
    inset: 0 auto 0 -36%;
    width: 36%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,.34), transparent);
    transform: skewX(-18deg);
    animation: ndLaunchShine 2.4s ease-in-out infinite;
}

.nd-launch-btn:hover{
    transform: translateY(-1px);
    filter: saturate(1.08);
    box-shadow:
        0 22px 46px rgba(20,184,166,.26),
        0 12px 30px rgba(249,115,22,.22),
        inset 0 1px 0 rgba(255,255,255,.38);
}

.nd-launch-btn:disabled{
    transform: none;
    filter: grayscale(.15);
}

@keyframes ndLaunchShine{
    0% { left: -42%; }
    48% { left: 112%; }
    100% { left: 112%; }
}

.nd-auth-error{
    margin-top: 10px;
    border-radius: 14px;
    padding: 10px 12px;
    font-weight: 900;
    font-size: 12px;
    color: rgba(255, 91, 91, 0.95);
    background: rgba(255, 91, 91, 0.08);
    border: 1px solid rgba(255, 91, 91, 0.25);
}

.nd-auth-modal-inner.is-loading{
    pointer-events:none;
    opacity:.45;
    filter: blur(1px);
}

.nd-auth-modal-inner{
    max-height: calc(100vh - 36px);
    overflow: auto;
    padding: 18px;
    overscroll-behavior: contain;   /* better touch scrolling */
    -webkit-overflow-scrolling: touch;
}

.nd-auth-loading-overlay{
    position:absolute;
    inset:0;
    display:grid;
    place-items:center;
    gap: 14px;
    background: rgba(255,255,255,.62);
    backdrop-filter: blur(10px);
    z-index: 3;
}

.nd-spinner{
    width: 54px;
    height: 54px;
    border-radius: 999px;
    border: 4px solid rgba(17,18,20,.10);
    border-top-color: rgba(20,184,166,.95);
    border-right-color: rgba(249,115,22,.85);
    animation: ndSpin .8s linear infinite;
    box-shadow: 0 18px 50px rgba(17,18,20,.14);
}

@keyframes ndSpin{ to { transform: rotate(360deg); } }

/* ===== Photos (up to 5) ===== */
.nd-photos{ display:grid; gap: 10px; }

.nd-photo-add{
    height: 120px;
    border-radius: 18px;
    border: 2px dashed rgba(17,18,20,.18);
    background: rgba(247,248,252,.80);
    display:grid;
    place-items:center;
    cursor:pointer;
    position: relative;
}

.nd-file-input{
    position: absolute;
    inset: 0;
    opacity: 0;
    pointer-events: none;
}

.nd-photo-add input{
    position:absolute;
    inset:0;
    opacity:0;
    cursor:pointer;
}
.nd-photo-add-ic{
    width: 36px;
    height: 36px;
    border-radius: 999px;
    display:grid;
    place-items:center;
    font-weight: 900;
    color: rgba(20,184,166,.95);
    background: rgba(20,184,166,.10);
}
.nd-photo-add-txt{
    margin-top: 6px;
    font-weight: 900;
    font-size: 12px;
    color: rgba(17,18,20,.60);
}
.nd-photo-add.is-error{
    border-color: rgba(249,115,22,.60);
    background: rgba(249,115,22,.06);
}

.nd-photo-grid{
    display:grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 10px;
}
.nd-photo{
    position: relative;
    border: 0;
    padding: 0;
    border-radius: 16px;
    overflow:hidden;
    cursor:pointer;
    background: rgba(17,18,20,.06);
    height: 92px;
    border: 1px solid rgba(17,18,20,.10);
}
.nd-photo img{
    width:100%;
    height:100%;
    object-fit: cover;
    display:block;
}
.nd-photo-badge{
    position:absolute;
    left: 8px;
    bottom: 8px;
    font-size: 10px;
    font-weight: 900;
    padding: 5px 8px;
    border-radius: 999px;
    background: rgba(255,255,255,.82);
    color: rgba(17,18,20,.70);
    border: 1px solid rgba(17,18,20,.10);
}
.nd-photo.is-avatar{
    border-color: rgba(20,184,166,.60);
    box-shadow: 0 0 0 6px rgba(20,184,166,.10);
}
.nd-photo.is-avatar .nd-photo-badge{
    background: linear-gradient(90deg, rgba(20,184,166,.92), rgba(249,115,22,.92));
    color: white;
    border: 0;
}
.nd-photo-remove{
    position:absolute;
    right: 6px;
    top: 6px;
    width: 26px;
    height: 26px;
    border-radius: 999px;
    display:grid;
    place-items:center;
    background: rgba(13,16,32,.55);
    color: rgba(255,255,255,.92);
    font-weight: 900;
    line-height: 1;
}

@media (max-width: 980px){
    .nd-photo-grid{ grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 560px){
    .nd-photo-grid{ grid-template-columns: repeat(2, 1fr); }
}


.nd-admin-stats{
    display:flex;
    gap: 10px;
    flex-wrap: wrap;
}

.nd-admin-toolbar{
    display:grid;
    gap: 14px;
    margin: 12px 0 16px;
}

.nd-admin-stat{
    padding: 10px 12px;
    border-radius: 16px;
    border: 1px solid rgba(17,18,20,.10);
    background: rgba(255,255,255,.75);
    min-width: 140px;
}
.nd-admin-stat-val{
    font-weight: 900;
    font-size: 18px;
    color: rgba(17,18,20,.85);
}
.nd-admin-stat-label{
    margin-top: 2px;
    font-size: 12px;
    font-weight: 800;
    color: rgba(17,18,20,.50);
}

.nd-admin-actions{
    display:flex;
    align-items:center;
    justify-content:flex-start;
    gap: 10px;
    flex-wrap: wrap;
}

/* ===== Admin utility classes ===== */
.nd-admin-muted{
    font-size: 12px;
    line-height: 1.45;
    color: rgba(17,18,20,.55);
}

.nd-admin-link{
    color: rgba(20,184,166,.96);
    text-decoration: none;
    font-weight: 800;
}
.nd-admin-link:hover{
    text-decoration: underline;
}

/* ===== Semantic button variants ===== */
.nd-btn-create{
    width: auto;
    min-width: 160px;
    height: 44px;
    padding: 0 20px;
    border-radius: 14px;
    border: 0;
    cursor: pointer;
    font-weight: 900;
    color: #fff;
    background: linear-gradient(135deg, #14B8A6, #2DD4BF);
    box-shadow: 0 12px 28px rgba(20,184,166,.22);
    display: inline-flex;
    align-items: center;
    gap: 8px;
    justify-content: center;
    transition: transform .12s ease, box-shadow .2s ease;
}
.nd-btn-create:hover{
    transform: translateY(-1px);
    box-shadow: 0 16px 36px rgba(20,184,166,.28);
}
.nd-btn-create:active{ transform: translateY(0); }
.nd-btn-create:disabled{ opacity: .55; cursor: not-allowed; transform: none; }

.nd-btn-danger{
    width: auto;
    min-width: 120px;
    height: 44px;
    padding: 0 20px;
    border-radius: 14px;
    border: 0;
    cursor: pointer;
    font-weight: 900;
    color: #fff;
    background: rgba(232,68,68,.92);
    box-shadow: 0 12px 28px rgba(232,68,68,.22);
    display: inline-flex;
    align-items: center;
    gap: 8px;
    justify-content: center;
    transition: transform .12s ease, box-shadow .2s ease;
}
.nd-btn-danger:hover{
    transform: translateY(-1px);
    box-shadow: 0 16px 36px rgba(232,68,68,.28);
}
.nd-btn-danger:active{ transform: translateY(0); }
.nd-btn-danger:disabled{ opacity: .55; cursor: not-allowed; transform: none; }

.nd-btn-success{
    width: auto;
    min-width: 120px;
    height: 44px;
    padding: 0 20px;
    border-radius: 14px;
    border: 0;
    cursor: pointer;
    font-weight: 900;
    color: #fff;
    background: rgba(38,177,95,.92);
    box-shadow: 0 12px 28px rgba(38,177,95,.22);
    display: inline-flex;
    align-items: center;
    gap: 8px;
    justify-content: center;
    transition: transform .12s ease, box-shadow .2s ease;
}
.nd-btn-success:hover{
    transform: translateY(-1px);
    box-shadow: 0 16px 36px rgba(38,177,95,.28);
}
.nd-btn-success:active{ transform: translateY(0); }
.nd-btn-success:disabled{ opacity: .55; cursor: not-allowed; transform: none; }

/* Table row actions spacing */
.nd-admin-row-actions{
    display: flex;
    align-items: center;
    gap: 6px;
    justify-content: flex-end;
    white-space: nowrap;
}

/* Ghost button danger variant */
.nd-admin-ghost-danger{
    color: rgba(220,38,38,.85);
    border-color: rgba(220,38,38,.18);
}
.nd-admin-ghost-danger:hover{
    background: rgba(220,38,38,.06);
    border-color: rgba(220,38,38,.30);
    color: rgba(185,28,28,.95);
}

/* Ghost button small refinement */
.nd-admin-ghost-small{
    width: auto;
    min-width: auto;
    height: 34px;
    padding: 0 12px;
    font-size: 13px;
    border-radius: 10px;
}

/* ===== Pagination ===== */
.nd-admin-pager{
    margin-top: 16px;
    display: flex;
    align-items: center;
    gap: 8px;
    justify-content: center;
    flex-wrap: wrap;
}

.nd-admin-pagebtn{
    width: 36px;
    height: 36px;
    border-radius: 10px;
    border: 1px solid rgba(17,18,20,.12);
    background: rgba(255,255,255,.85);
    cursor: pointer;
    display: grid;
    place-items: center;
    color: rgba(17,18,20,.65);
    font-size: 13px;
    transition: background .15s ease, border-color .15s ease;
}
.nd-admin-pagebtn:hover{
    background: rgba(20,184,166,.06);
    border-color: rgba(20,184,166,.22);
    color: rgba(20,184,166,.95);
}
.nd-admin-pagebtn:disabled{
    opacity: .4;
    cursor: not-allowed;
}

.nd-admin-pagechips{
    display: flex;
    gap: 4px;
}

.nd-admin-chip{
    min-width: 36px;
    height: 36px;
    padding: 0 10px;
    border-radius: 10px;
    border: 1px solid rgba(17,18,20,.10);
    background: rgba(255,255,255,.85);
    cursor: pointer;
    font-weight: 900;
    font-size: 13px;
    color: rgba(17,18,20,.65);
    transition: background .15s ease, border-color .15s ease;
}
.nd-admin-chip:hover{
    background: rgba(20,184,166,.06);
    border-color: rgba(20,184,166,.22);
}
.nd-admin-chip.is-active{
    background: rgba(20,184,166,.12);
    border-color: rgba(20,184,166,.35);
    color: rgba(20,184,166,.95);
    box-shadow: 0 6px 16px rgba(20,184,166,.14);
}

.nd-admin-pagehint{
    font-size: 13px;
    font-weight: 800;
    color: rgba(17,18,20,.50);
    margin-left: 6px;
}

/* ===== Page size selector ===== */
.nd-admin-pagesize{
    display: flex;
    align-items: center;
    gap: 8px;
}
.nd-admin-pagesize-label{
    font-size: 13px;
    font-weight: 800;
    color: rgba(17,18,20,.58);
    white-space: nowrap;
}
.nd-admin-pagesize-select{
    height: 44px;
    min-width: 80px;
    border-radius: 12px;
}

/* ===== Mobile-first admin responsive utilities ===== */
@media (max-width: 760px){
    .nd-pm-card{
        padding: 12px;
        border-radius: 18px;
    }

    .nd-admin-table{
        min-width: 600px;
    }

    .nd-admin-stats{
        flex-wrap: wrap;
    }

    .nd-admin-stat{
        min-width: 110px;
        padding: 8px 10px;
    }

    .nd-admin-stat-val{
        font-size: 16px;
    }

    .nd-btn-create,
    .nd-btn-danger,
    .nd-btn-success{
        width: 100%;
    }
}

@media (max-width: 480px){
    .nd-pm-card{
        padding: 10px;
        border-radius: 14px;
    }

    .nd-pm-title{
        font-size: 18px;
    }

    .nd-auth-input,
    .nd-select{
        height: 44px;
        border-radius: 12px;
    }

    .nd-save{
        height: 44px;
    }
}

/* ===== Blazor reconnect modal (admin themed) ===== */
#components-reconnect-modal {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: none;
    align-items: center;
    justify-content: center;
    background: rgba(13, 16, 32, 0.38);
    backdrop-filter: blur(4px);
    padding: 20px;
}

#components-reconnect-modal.components-reconnect-show,
#components-reconnect-modal.components-reconnect-failed {
    display: flex;
}

#components-reconnect-modal.components-reconnect-rejected {
    display: flex;
    background: none;
    backdrop-filter: none;
    pointer-events: none;
    align-items: flex-end;
    justify-content: center;
    padding: 0 20px 32px;
}

#components-reconnect-modal .nd-reconnect-panel {
    width: min(560px, 100%);
    border-radius: 22px;
    border: 1px solid rgba(255, 255, 255, 0.5);
    background:
        radial-gradient(500px 200px at 20% 0%, rgba(20, 184, 166, 0.16), transparent 60%),
        radial-gradient(500px 200px at 80% 0%, rgba(249, 115, 22, 0.14), transparent 60%),
        rgba(255, 255, 255, 0.96);
    box-shadow: 0 24px 70px rgba(17, 18, 20, 0.28);
    padding: 26px 24px;
}

#components-reconnect-modal.components-reconnect-rejected .nd-reconnect-panel {
    width: auto;
    padding: 0;
    border: none;
    background: none;
    box-shadow: none;
    border-radius: 0;
    pointer-events: auto;
}

#components-reconnect-modal .nd-reconnect-state {
    display: none;
    text-align: center;
}

#components-reconnect-modal.components-reconnect-show .nd-reconnect-show-state {
    display: block;
}

#components-reconnect-modal.components-reconnect-failed:not(.components-reconnect-rejected) .nd-reconnect-failed-state {
    display: block;
}

#components-reconnect-modal.components-reconnect-rejected .nd-reconnect-rejected-state {
    display: block;
}

#components-reconnect-modal .nd-reconnect-spinner {
    width: 74px;
    height: 74px;
    margin: 2px auto 14px;
    border-radius: 999px;
    border: 4px solid rgba(20, 184, 166, 0.2);
    border-top-color: rgba(20, 184, 166, 0.95);
    animation: nd-reconnect-spin 0.9s linear infinite;
}

#components-reconnect-modal .nd-reconnect-failed-icon {
    width: 72px;
    height: 72px;
    margin: 0 auto 12px;
    border-radius: 16px;
    display: grid;
    place-items: center;
    color: rgba(20, 184, 166, 0.96);
    font-size: 28px;
    background: rgba(20, 184, 166, 0.1);
    border: 1px solid rgba(20, 184, 166, 0.22);
}

#components-reconnect-modal .nd-reconnect-title {
    font-size: 28px;
    line-height: 1.1;
    font-weight: 900;
    color: rgba(17, 18, 20, 0.9);
}

#components-reconnect-modal .nd-reconnect-sub {
    margin-top: 8px;
    color: rgba(17, 18, 20, 0.62);
    font-size: 16px;
    font-weight: 700;
}

#components-reconnect-modal .nd-reconnect-btn {
    margin-top: 18px;
    height: 42px;
    min-width: 132px;
    padding: 0 20px;
    border-radius: 999px;
    border: 1px solid transparent;
    background: linear-gradient(90deg, #14B8A6, #F97316);
    color: #fff;
    font-size: 15px;
    font-weight: 900;
    cursor: pointer;
    box-shadow: 0 12px 28px rgba(20, 184, 166, 0.3);
}

#components-reconnect-modal .nd-reconnect-btn:hover {
    filter: brightness(1.05);
}

#components-reconnect-modal .nd-reconnect-card {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 16px 28px;
    border: 2px solid rgba(255, 255, 255, 0.5);
    border-radius: 20px;
    background:
        radial-gradient(300px 120px at 15% 30%, rgba(20, 184, 166, 0.18), transparent 60%),
        radial-gradient(300px 120px at 85% 70%, rgba(249, 115, 22, 0.15), transparent 60%),
        rgba(255, 255, 255, 0.97);
    box-shadow:
        0 8px 32px rgba(20, 184, 166, 0.18),
        0 2px 8px rgba(17, 18, 20, 0.08);
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    animation: nd-reconnect-card-in 0.4s ease both;
}

#components-reconnect-modal .nd-reconnect-card:hover {
    transform: translateY(-2px) scale(1.02);
    box-shadow:
        0 12px 40px rgba(20, 184, 166, 0.25),
        0 4px 12px rgba(17, 18, 20, 0.10);
}

#components-reconnect-modal .nd-reconnect-card:active {
    transform: scale(0.98);
}

#components-reconnect-modal .nd-reconnect-card-ic {
    font-size: 20px;
    color: #14B8A6;
    animation: nd-reconnect-card-spin 2.5s ease-in-out infinite;
}

#components-reconnect-modal .nd-reconnect-card-text {
    font-size: 15px;
    font-weight: 800;
    color: rgba(17, 18, 20, 0.85);
    white-space: nowrap;
}

@keyframes nd-reconnect-card-in {
    from { opacity: 0; transform: translateY(20px) scale(0.95); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes nd-reconnect-card-spin {
    0%, 80%, 100% { transform: rotate(0deg); }
    90% { transform: rotate(360deg); }
}

@keyframes nd-reconnect-spin {
    to { transform: rotate(360deg); }
}
