:root {
    --nsb-magenta: #8b145d;
    --nsb-magenta-deep: #55103e;
    --nsb-gold: #d2a84a;
    --nsb-gold-soft: #ead6a5;
    --nsb-ivory: #fbf8f2;
    --nsb-beige: #efe7da;
    --nsb-charcoal: #202024;
    --nsb-plum: #24141f;
    --nsb-muted: #6a6467;
    --nsb-line: rgba(32, 32, 36, .12);
    --nsb-shadow: 0 18px 50px rgba(36, 20, 31, .14);
    --nsb-radius-sm: 10px;
    --nsb-radius-md: 16px;
    --nsb-radius-lg: 24px;
    --nsb-container: 1360px;
    --nsb-reading: 820px;
    --nsb-header-h: 82px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    margin: 0;
    color: var(--nsb-charcoal);
    background: var(--nsb-ivory);
    font-family: "Noto Naskh Arabic", serif;
    font-size: 18px;
    line-height: 1.75;
    text-rendering: optimizeLegibility;
}
a { color: inherit; text-decoration: none; }
button, input, select { font: inherit; }
svg { width: 1.25rem; height: 1.25rem; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
img { max-width: 100%; height: auto; }

.nsb-container { width: min(calc(100% - 40px), var(--nsb-container)); margin-inline: auto; }
.nsb-skip-link { position: fixed; inset-block-start: 8px; inset-inline-start: 8px; z-index: 9999; padding: 10px 14px; background: #fff; color: #000; transform: translateY(-150%); }
.nsb-skip-link:focus { transform: translateY(0); }

.nsb-site-header { position: sticky; top: 0; z-index: 1000; background: rgba(251,248,242,.92); backdrop-filter: blur(18px); border-bottom: 1px solid rgba(32,32,36,.08); }
.nsb-header-shell { min-height: var(--nsb-header-h); width: min(calc(100% - 28px), 1480px); margin-inline: auto; display: flex; align-items: center; gap: 16px; }
.nsb-brand { flex: 0 0 auto; display: inline-flex; align-items: center; }
.nsb-brand img { width: 58px; height: 58px; object-fit: contain; filter: drop-shadow(0 0 10px rgba(210,168,74,.22)); }
.nsb-primary-nav { display: flex; align-items: center; gap: 18px; margin-inline: 12px auto; white-space: nowrap; }
.nsb-primary-nav a { position: relative; font-weight: 600; font-size: 16px; }
.nsb-primary-nav a::after { content: ""; position: absolute; inset-inline: 0; bottom: -8px; height: 2px; transform: scaleX(0); background: linear-gradient(90deg, var(--nsb-gold), var(--nsb-magenta)); transition: transform .2s ease; }
.nsb-primary-nav a:hover::after, .nsb-primary-nav a:focus-visible::after { transform: scaleX(1); }
.nsb-header-actions { display: flex; align-items: center; gap: 8px; }
.nsb-icon-button, .nsb-language-button { border: 0; background: transparent; min-width: 40px; min-height: 40px; border-radius: 999px; display: inline-flex; align-items: center; justify-content: center; cursor: pointer; color: var(--nsb-charcoal); }
.nsb-icon-button:hover, .nsb-icon-button:focus-visible, .nsb-language-button:hover, .nsb-language-button:focus-visible { background: rgba(139,20,93,.08); color: var(--nsb-magenta); }
.nsb-language-button { gap: 6px; padding-inline: 10px; }
.nsb-language-menu { position: absolute; inset-block-start: 70px; inset-inline-end: 220px; min-width: 200px; max-height: 420px; overflow: auto; padding: 8px; background: #fff; border: 1px solid var(--nsb-line); border-radius: 14px; box-shadow: var(--nsb-shadow); }
.nsb-language-menu a { display: block; padding: 10px 12px; border-radius: 10px; }
.nsb-language-menu a:hover, .nsb-language-menu a:focus-visible { background: var(--nsb-beige); }
.nsb-social-row { display: flex; gap: 2px; }

.nsb-primary-button, .nsb-secondary-button, .nsb-membership-button, .nsb-whatsapp-button, .nsb-live-button { min-height: 46px; padding: 10px 18px; border-radius: var(--nsb-radius-sm); display: inline-flex; align-items: center; justify-content: center; gap: 8px; font-weight: 700; transition: transform .2s ease, box-shadow .2s ease, background-color .2s ease; }
.nsb-primary-button, .nsb-membership-button { border: 1px solid var(--nsb-magenta); background: var(--nsb-magenta); color: #fff; }
.nsb-primary-button:hover, .nsb-membership-button:hover { background: var(--nsb-magenta-deep); transform: translateY(-1px); box-shadow: 0 10px 24px rgba(139,20,93,.22); }
.nsb-secondary-button { border: 1px solid rgba(255,255,255,.5); color: #fff; background: rgba(255,255,255,.05); }
.nsb-whatsapp-button { background: #fff; border: 1px solid rgba(32,32,36,.12); color: var(--nsb-charcoal); }
.nsb-whatsapp-button svg { color: #167d48; }
.nsb-live-button { color: #fff; background: var(--nsb-plum); }
.nsb-live-dot { width: 9px; height: 9px; border-radius: 50%; background: #ff4242; box-shadow: 0 0 0 4px rgba(255,66,66,.16); }

.nsb-mobile-menu-toggle, .nsb-mobile-panel, .nsb-mobile-utilities { display: none; }
.nsb-menu-close-icon { display: none; }

.nsb-mobile-dropdown { position: relative; }
.nsb-mobile-utility-button {
    min-height: 40px;
    padding: 7px 10px;
    border: 1px solid rgba(139,20,93,.12);
    border-radius: 999px;
    background: rgba(139,20,93,.055);
    color: var(--nsb-magenta);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    font-family: "Noto Naskh Arabic", serif;
    font-size: 13px;
    font-weight: 700;
    line-height: 1;
    white-space: nowrap;
    cursor: pointer;
}
.nsb-mobile-utility-button svg { width: 16px; height: 16px; }
.nsb-mobile-utility-button[aria-expanded="true"] { background: var(--nsb-magenta); color: #fff; }
.nsb-mobile-popover {
    position: fixed;
    z-index: 1200;
    inset-inline: 14px;
    inset-block-start: calc(var(--nsb-header-h) - 2px);
    max-height: min(62vh, 520px);
    overflow: auto;
    padding: 10px;
    border: 1px solid var(--nsb-line);
    border-radius: 16px;
    background: rgba(255,255,255,.98);
    box-shadow: var(--nsb-shadow);
    backdrop-filter: blur(16px);
}
.nsb-mobile-popover[hidden] { display: none; }
.nsb-mobile-popover a {
    min-height: 50px;
    padding: 9px 10px;
    border-radius: 11px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    text-align: center;
    border: 1px solid rgba(32,32,36,.08);
    background: rgba(251,248,242,.62);
    line-height: 1.35;
}
.nsb-mobile-popover a:hover, .nsb-mobile-popover a:focus-visible { background: var(--nsb-beige); color: var(--nsb-magenta); }
.nsb-mobile-social-menu:not([hidden]) { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 8px; }
.nsb-mobile-language-menu:not([hidden]) { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 8px; }
.nsb-mobile-language-menu a { justify-content: center; text-align: center; font-weight: 600; }
.nsb-mobile-language-menu a[dir="rtl"] { direction: rtl; }
.nsb-mobile-language-menu a[dir="ltr"] { direction: ltr; }

.nsb-search-dialog[hidden] { display: none; }
.nsb-search-dialog { position: fixed; inset: 0; z-index: 2000; display: grid; place-items: start center; padding: 110px 20px 20px; }
.nsb-search-backdrop { position: absolute; inset: 0; background: rgba(20,10,18,.72); backdrop-filter: blur(6px); }
.nsb-search-panel { position: relative; z-index: 1; width: min(720px, 100%); background: var(--nsb-ivory); border-radius: var(--nsb-radius-lg); padding: 28px; box-shadow: var(--nsb-shadow); }
.nsb-search-panel h2 { font-family: "Noto Nastaliq Urdu", serif; font-size: 40px; margin: 0 0 18px; }
.nsb-search-close { position: absolute; inset-block-start: 16px; inset-inline-end: 16px; }
.nsb-search-panel label { display: block; margin-bottom: 8px; font-weight: 700; }
.nsb-search-row { display: flex; gap: 10px; }
.nsb-search-row input { flex: 1; min-width: 0; padding: 12px 14px; border: 1px solid var(--nsb-line); border-radius: 12px; background: #fff; }

.nsb-prototype-main { overflow: clip; }
.nsb-prototype-hero { min-height: calc(100vh - var(--nsb-header-h)); display: grid; place-items: center; text-align: center; color: #fff; background:
    radial-gradient(circle at 50% 28%, rgba(210,168,74,.28), transparent 28%),
    radial-gradient(circle at 70% 72%, rgba(139,20,93,.32), transparent 36%),
    linear-gradient(150deg, #1b1018, #351025 54%, #1c1018); }
.nsb-prototype-hero-inner { max-width: 980px; padding-block: 90px; }
.nsb-eyebrow { margin: 0 0 10px; color: var(--nsb-gold-soft); font-family: "Noto Nastaliq Urdu", serif; font-size: clamp(24px, 3vw, 40px); }
.nsb-prototype-hero h1 { margin: 0; font-family: "Noto Nastaliq Urdu", serif; font-size: clamp(48px, 7vw, 88px); line-height: 1.55; text-shadow: 0 12px 40px rgba(0,0,0,.35); }
.nsb-title-line { max-width: 840px; margin: 18px auto 0; color: rgba(255,255,255,.84); }
.nsb-hero-actions { margin-top: 34px; display: flex; justify-content: center; gap: 12px; flex-wrap: wrap; }

.nsb-section { padding-block: clamp(58px, 7vw, 96px); }
.nsb-section-light { background: var(--nsb-ivory); }
.nsb-section-soft { background: var(--nsb-beige); }
.nsb-section-dark { color: #fff; background: linear-gradient(145deg, var(--nsb-plum), #4a1235); }
.nsb-section-heading { margin-bottom: 28px; }
.nsb-section-heading span { color: var(--nsb-magenta); font-weight: 700; }
.nsb-section-heading h2 { margin: 4px 0 0; font-family: "Noto Nastaliq Urdu", serif; font-size: clamp(34px, 5vw, 56px); line-height: 1.6; }
.nsb-section-heading-light span { color: var(--nsb-gold-soft); }
.nsb-quote-panel { position: relative; overflow: hidden; min-height: 280px; display: grid; place-items: center; padding: 44px; border-radius: var(--nsb-radius-lg); color: #fff; background:
    radial-gradient(circle at 20% 30%, rgba(210,168,74,.44), transparent 35%),
    radial-gradient(circle at 80% 70%, rgba(139,20,93,.55), transparent 35%),
    linear-gradient(135deg, #25131f, #4c1737); box-shadow: var(--nsb-shadow); }
.nsb-quote-panel::before { content: ""; position: absolute; inset: 14px; border: 1px solid rgba(234,214,165,.32); border-radius: calc(var(--nsb-radius-lg) - 8px); }
.nsb-quote-panel p { position: relative; z-index: 1; margin: 0; font-family: "Noto Nastaliq Urdu", serif; font-size: clamp(30px, 5vw, 52px); line-height: 1.8; text-align: center; }

.nsb-card-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.nsb-card { min-height: 220px; padding: 28px; border-radius: var(--nsb-radius-md); background: rgba(255,255,255,.82); border: 1px solid rgba(255,255,255,.72); box-shadow: 0 14px 34px rgba(36,20,31,.08); }
.nsb-card-kicker { color: var(--nsb-magenta); font-weight: 700; }
.nsb-card h3 { margin: 12px 0; font-family: "Noto Nastaliq Urdu", serif; font-size: 30px; }
.nsb-card a { color: var(--nsb-magenta); font-weight: 700; }

.nsb-form-demo { display: grid; grid-template-columns: .8fr 1.2fr; gap: 48px; align-items: start; }
.nsb-demo-form { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.nsb-demo-form label { display: grid; gap: 6px; font-weight: 700; }
.nsb-demo-form input, .nsb-demo-form select { width: 100%; min-height: 50px; padding: 10px 12px; border: 1px solid rgba(255,255,255,.24); border-radius: 12px; color: #fff; background: rgba(255,255,255,.08); }
.nsb-demo-form input:focus, .nsb-demo-form select:focus { outline: 3px solid rgba(210,168,74,.35); border-color: var(--nsb-gold); }
.nsb-demo-form button { align-self: end; }

.nsb-site-footer { padding-block: 30px; background: #160d14; color: rgba(255,255,255,.72); }
.nsb-footer-inner { display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.nsb-footer-inner p { margin: 0; }

:focus-visible { outline: 3px solid var(--nsb-gold); outline-offset: 3px; }

@media (max-width: 1250px) {
    .nsb-primary-nav { gap: 12px; }
    .nsb-social-row { display: none; }
    .nsb-whatsapp-button span { display: none; }
}

@media (max-width: 980px) {
    :root { --nsb-header-h: 76px; }
    .nsb-header-shell {
        min-height: var(--nsb-header-h);
        width: min(calc(100% - 14px), 1480px);
        gap: 6px;
        justify-content: flex-start;
    }
    .nsb-primary-nav,
    .nsb-header-actions .nsb-language-button,
    .nsb-header-actions .nsb-live-button,
    .nsb-header-actions .nsb-whatsapp-button,
    .nsb-social-row { display: none; }
    .nsb-mobile-menu-toggle { display: inline-flex; flex: 0 0 40px; }
    .nsb-mobile-utilities {
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 5px;
        min-width: 0;
        flex: 0 1 auto;
    }
    .nsb-menu-open-icon, .nsb-menu-close-icon { display: inline-flex; }
    .nsb-menu-close-icon { display: none; }
    .nsb-mobile-menu-toggle[aria-expanded="true"] .nsb-menu-open-icon { display: none; }
    .nsb-mobile-menu-toggle[aria-expanded="true"] .nsb-menu-close-icon { display: inline-flex; }
    .nsb-brand { margin: 0; flex: 0 0 auto; }
    .nsb-brand img { width: 54px; height: 54px; }
    .nsb-header-actions {
        margin: 0;
        gap: 5px;
        display: flex;
        align-items: center;
        flex: 0 0 auto;
    }
    .nsb-header-actions > .nsb-icon-button { flex: 0 0 40px; }
    .nsb-header-membership {
        display: inline-flex;
        min-height: 40px;
        padding: 7px 12px;
        font-size: 14px;
        line-height: 1.15;
        white-space: nowrap;
    }
    .nsb-mobile-panel { padding: 14px 20px 24px; border-top: 1px solid var(--nsb-line); background: var(--nsb-ivory); }
    .nsb-mobile-panel:not([hidden]) { display: block; }
    .nsb-mobile-panel nav { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
    .nsb-mobile-panel nav a { padding: 12px; border-radius: 10px; background: #fff; border: 1px solid var(--nsb-line); }
    .nsb-mobile-actions { display: grid; gap: 10px; margin-top: 14px; }
    .nsb-mobile-socials { display: flex; justify-content: center; gap: 6px; margin-top: 14px; }
    .nsb-card-grid { grid-template-columns: 1fr 1fr; }
    .nsb-form-demo { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
    :root { --nsb-header-h: 72px; }
    .nsb-container { width: min(calc(100% - 28px), var(--nsb-container)); }
    .nsb-header-shell { width: min(calc(100% - 8px), 1480px); gap: 4px; }
    .nsb-mobile-menu-toggle,
    .nsb-header-actions > .nsb-icon-button { flex-basis: 36px; min-width: 36px; min-height: 36px; }
    .nsb-brand img { width: 48px; height: 48px; }
    .nsb-mobile-utilities { gap: 4px; }
    .nsb-mobile-utility-button {
        min-height: 38px;
        padding: 6px 8px;
        font-size: 12px;
    }
    .nsb-mobile-utility-button svg { width: 14px; height: 14px; }
    .nsb-mobile-language-button { direction: ltr; }
    .nsb-header-membership {
        min-height: 38px;
        padding: 6px 9px;
        font-size: 12.5px;
    }
    .nsb-mobile-popover {
        inset-inline: 10px;
        inset-block-start: calc(var(--nsb-header-h) + 2px);
        padding: 9px;
    }
    .nsb-mobile-popover a { min-height: 48px; padding: 8px; }
    .nsb-prototype-hero { min-height: calc(100svh - var(--nsb-header-h)); }
    .nsb-prototype-hero-inner { padding-block: 64px; max-width: 100%; }
    .nsb-eyebrow { font-size: clamp(22px, 6.2vw, 30px); margin-bottom: 6px; }
    .nsb-prototype-hero h1 { font-size: clamp(38px, 10.5vw, 54px); line-height: 1.48; max-width: 100%; margin-inline: auto; }
    .nsb-title-line { font-size: 15px; line-height: 1.9; max-width: 94%; }
    .nsb-hero-actions { margin-top: 28px; gap: 10px; }
    .nsb-card-grid { grid-template-columns: 1fr; }
    .nsb-demo-form { grid-template-columns: 1fr; }
    .nsb-search-row { flex-direction: column; }
    .nsb-mobile-panel nav { grid-template-columns: 1fr; }
}

@media (max-width: 430px) {
    :root { --nsb-header-h: 68px; }
    .nsb-header-shell { width: calc(100% - 6px); gap: 3px; }
    .nsb-mobile-menu-toggle,
    .nsb-header-actions > .nsb-icon-button { flex-basis: 33px; min-width: 33px; min-height: 34px; }
    .nsb-brand img { width: 43px; height: 43px; }
    .nsb-mobile-utilities { gap: 3px; }
    .nsb-mobile-utility-button {
        min-height: 35px;
        padding: 5px 6px;
        font-size: 10.8px;
        gap: 3px;
    }
    .nsb-mobile-utility-button svg { width: 12px; height: 12px; }
    .nsb-header-membership {
        min-height: 35px;
        padding: 5px 7px;
        font-size: 11.2px;
        border-radius: 8px;
    }
    .nsb-mobile-popover { inset-inline: 7px; }
}

@media (max-width: 370px) {
    .nsb-header-shell { gap: 2px; }
    .nsb-brand img { width: 40px; height: 40px; }
    .nsb-mobile-menu-toggle,
    .nsb-header-actions > .nsb-icon-button { flex-basis: 31px; min-width: 31px; }
    .nsb-mobile-utility-button {
        padding-inline: 4px;
        font-size: 10px;
    }
    .nsb-mobile-utility-button svg { width: 11px; height: 11px; }
    .nsb-header-membership { padding-inline: 5px; font-size: 10.4px; }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .001ms !important; animation-duration: .001ms !important; animation-iteration-count: 1 !important; }
}

/* v0.1.3: approved mobile header Live button, immediately after Membership. */
.nsb-header-live-mobile { display: none; }

@media (max-width: 980px) {
    .nsb-header-live-mobile {
        display: inline-flex !important;
        min-height: 40px;
        padding: 7px 10px;
        font-size: 14px;
        line-height: 1.15;
        white-space: nowrap;
        flex: 0 0 auto;
    }
    .nsb-header-live-mobile .nsb-live-dot {
        width: 7px;
        height: 7px;
        box-shadow: 0 0 0 3px rgba(255,66,66,.16);
    }
}

@media (max-width: 640px) {
    .nsb-header-live-mobile {
        min-height: 38px;
        padding: 6px 8px;
        font-size: 12.5px;
    }
}

@media (max-width: 430px) {
    .nsb-header-live-mobile {
        min-height: 35px;
        padding: 5px 6px;
        font-size: 11.2px;
        border-radius: 8px;
        gap: 5px;
    }
}

@media (max-width: 370px) {
    .nsb-header-live-mobile {
        padding-inline: 4px;
        font-size: 10.4px;
        gap: 4px;
    }
    .nsb-header-live-mobile .nsb-live-dot {
        width: 6px;
        height: 6px;
        box-shadow: 0 0 0 2px rgba(255,66,66,.16);
    }
}

/* v0.1.4 — desktop header added on top of the locked v0.1.3 mobile header. */
@media (min-width: 1181px) {
    :root { --nsb-header-h: 88px; }

    .nsb-site-header {
        min-width: 0;
        transition: background-color .28s ease, border-color .28s ease, box-shadow .28s ease, min-height .28s ease;
    }

    .home .nsb-site-header:not(.nsb-header-scrolled) {
        position: fixed;
        inset-block-start: 0;
        inset-inline: 0;
        width: 100%;
        color: #fff;
        background: linear-gradient(180deg, rgba(18,8,15,.78), rgba(18,8,15,.34) 68%, rgba(18,8,15,0));
        border-bottom-color: transparent;
        box-shadow: none;
        backdrop-filter: none;
    }

    .home.admin-bar .nsb-site-header:not(.nsb-header-scrolled) { inset-block-start: 32px; }

    .nsb-site-header.nsb-header-scrolled {
        background: rgba(251,248,242,.96);
        border-bottom-color: rgba(32,32,36,.09);
        box-shadow: 0 8px 28px rgba(36,20,31,.08);
        backdrop-filter: blur(18px);
    }

    .nsb-header-shell {
        min-height: var(--nsb-header-h);
        width: min(calc(100% - 28px), 1880px);
        gap: clamp(6px, .62vw, 12px);
    }

    .nsb-brand img {
        width: 62px;
        height: 62px;
    }

    .nsb-primary-nav {
        min-width: 0;
        gap: clamp(10px, .82vw, 18px);
        margin-inline: clamp(8px, .9vw, 18px) auto;
    }

    .nsb-primary-nav a {
        font-family: "Noto Naskh Arabic", serif;
        font-size: clamp(16px, .94vw, 18px);
        font-weight: 700;
        line-height: 1.4;
    }

    .nsb-header-actions {
        position: relative;
        flex: 0 0 auto;
        gap: 5px;
        white-space: nowrap;
    }

    .nsb-header-actions > .nsb-icon-button,
    .nsb-social-row .nsb-icon-button {
        min-width: 38px;
        min-height: 38px;
    }

    .nsb-language-dropdown { position: relative; flex: 0 0 auto; }

    .nsb-language-button {
        min-height: 40px;
        padding-inline: 11px;
        gap: 7px;
        border: 1px solid rgba(32,32,36,.10);
        background: rgba(255,255,255,.72);
        font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
        font-size: 13px;
        font-weight: 650;
        direction: ltr;
        white-space: nowrap;
    }

    .nsb-language-menu {
        inset-block-start: calc(100% + 12px);
        inset-inline-end: 0;
        min-width: 328px;
        max-width: min(328px, calc(100vw - 28px));
        max-height: min(64vh, 480px);
        display: grid;
        grid-template-columns: repeat(2, minmax(0,1fr));
        gap: 8px;
        padding: 10px;
        background: rgba(255,255,255,.98);
        backdrop-filter: blur(16px);
    }

    .nsb-language-menu[hidden] { display: none; }

    .nsb-language-menu a {
        min-height: 48px;
        padding: 9px 10px;
        border: 1px solid rgba(32,32,36,.08);
        display: flex;
        align-items: center;
        justify-content: center;
        text-align: center;
        font-weight: 600;
        line-height: 1.35;
        background: rgba(251,248,242,.62);
    }

    .nsb-social-row {
        display: flex;
        align-items: center;
        gap: 4px;
    }

    .nsb-social-row .nsb-social-link {
        border: 1px solid rgba(32,32,36,.08);
        background: rgba(255,255,255,.9);
        box-shadow: 0 4px 14px rgba(36,20,31,.07);
    }

    .nsb-social-row .nsb-social-youtube { color: #ff0033; }
    .nsb-social-row .nsb-social-facebook { color: #1877f2; }
    .nsb-social-row .nsb-social-instagram { color: #c13584; }
    .nsb-social-row .nsb-social-tiktok { color: #111; }
    .nsb-social-row .nsb-social-x { color: #111; }

    .nsb-header-whatsapp-desktop,
    .nsb-header-live-desktop,
    .nsb-header-membership {
        min-height: 42px;
        padding-block: 8px;
        font-size: 14px;
        line-height: 1.15;
    }

    .nsb-header-whatsapp-desktop {
        padding-inline: 12px;
        border-color: rgba(22,125,72,.22);
        background: rgba(255,255,255,.94);
    }

    .nsb-header-live-desktop { padding-inline: 13px; }
    .nsb-header-membership { padding-inline: 15px; }
    .nsb-header-live-mobile { display: none !important; }

    .home .nsb-site-header:not(.nsb-header-scrolled) .nsb-primary-nav a,
    .home .nsb-site-header:not(.nsb-header-scrolled) .nsb-header-actions > .nsb-icon-button {
        color: #fff;
    }

    .home .nsb-site-header:not(.nsb-header-scrolled) .nsb-header-actions > .nsb-icon-button:hover,
    .home .nsb-site-header:not(.nsb-header-scrolled) .nsb-header-actions > .nsb-icon-button:focus-visible {
        background: rgba(255,255,255,.14);
        color: var(--nsb-gold-soft);
    }

    .home .nsb-site-header:not(.nsb-header-scrolled) .nsb-language-button {
        color: #fff;
        border-color: rgba(255,255,255,.22);
        background: rgba(20,10,18,.38);
    }

    .home .nsb-site-header:not(.nsb-header-scrolled) .nsb-social-row .nsb-social-link {
        background: rgba(255,255,255,.94);
        border-color: rgba(255,255,255,.32);
    }

    .home .nsb-site-header:not(.nsb-header-scrolled) .nsb-brand img {
        filter: drop-shadow(0 0 14px rgba(210,168,74,.34));
    }
}

@media (min-width: 1181px) and (max-width: 1510px) {
    .nsb-header-shell { width: min(calc(100% - 18px), 1880px); gap: 5px; }
    .nsb-brand img { width: 56px; height: 56px; }
    .nsb-primary-nav { gap: 9px; margin-inline: 7px auto; }
    .nsb-primary-nav a { font-size: 15px; }
    .nsb-header-actions { gap: 3px; }
    .nsb-header-actions > .nsb-icon-button,
    .nsb-social-row .nsb-icon-button { min-width: 34px; min-height: 36px; }
    .nsb-social-row { gap: 2px; }
    .nsb-language-button { min-height: 38px; padding-inline: 8px; font-size: 12px; }
    .nsb-header-whatsapp-desktop,
    .nsb-header-live-desktop,
    .nsb-header-membership { min-height: 38px; font-size: 12.5px; }
    .nsb-header-whatsapp-desktop { padding-inline: 9px; }
    .nsb-header-live-desktop { padding-inline: 10px; }
    .nsb-header-membership { padding-inline: 11px; }
}

@media (min-width: 1181px) and (max-width: 1365px) {
    .nsb-primary-nav { gap: 7px; }
    .nsb-primary-nav a { font-size: 14px; }
    .nsb-header-whatsapp-desktop span { display: none; }
    .nsb-header-whatsapp-desktop { min-width: 38px; padding-inline: 8px; }
    .nsb-language-button span { max-width: 92px; overflow: hidden; text-overflow: ellipsis; }
}

/* Tablet handoff: use the already-approved mobile/header controls before desktop becomes crowded. */
@media (min-width: 981px) and (max-width: 1180px) {
    :root { --nsb-header-h: 76px; }
    .nsb-header-shell {
        min-height: var(--nsb-header-h);
        width: min(calc(100% - 18px), 1160px);
        gap: 7px;
        justify-content: flex-start;
    }
    .nsb-primary-nav,
    .nsb-language-dropdown,
    .nsb-header-live-desktop,
    .nsb-header-whatsapp-desktop,
    .nsb-social-row { display: none; }
    .nsb-mobile-menu-toggle { display: inline-flex; flex: 0 0 40px; }
    .nsb-mobile-utilities { display: flex; align-items: center; justify-content: center; gap: 5px; min-width: 0; flex: 0 1 auto; }
    .nsb-menu-open-icon, .nsb-menu-close-icon { display: inline-flex; }
    .nsb-menu-close-icon { display: none; }
    .nsb-mobile-menu-toggle[aria-expanded="true"] .nsb-menu-open-icon { display: none; }
    .nsb-mobile-menu-toggle[aria-expanded="true"] .nsb-menu-close-icon { display: inline-flex; }
    .nsb-brand { margin: 0; flex: 0 0 auto; }
    .nsb-brand img { width: 54px; height: 54px; }
    .nsb-header-actions { margin: 0; gap: 5px; display: flex; align-items: center; flex: 0 0 auto; }
    .nsb-header-actions > .nsb-icon-button { flex: 0 0 40px; }
    .nsb-header-membership { display: inline-flex; min-height: 40px; padding: 7px 12px; font-size: 14px; line-height: 1.15; white-space: nowrap; }
    .nsb-header-live-mobile { display: inline-flex !important; min-height: 40px; padding: 7px 10px; font-size: 14px; line-height: 1.15; white-space: nowrap; flex: 0 0 auto; }
    .nsb-mobile-panel { padding: 14px 20px 24px; border-top: 1px solid var(--nsb-line); background: var(--nsb-ivory); }
    .nsb-mobile-panel:not([hidden]) { display: block; }
    .nsb-mobile-panel nav { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
    .nsb-mobile-panel nav a { padding: 12px; border-radius: 10px; background: #fff; border: 1px solid var(--nsb-line); }
    .nsb-mobile-actions { display: grid; gap: 10px; margin-top: 14px; }
    .nsb-mobile-socials { display: flex; justify-content: center; gap: 6px; margin-top: 14px; }
}

/* Final desktop-fit refinements. */
@media (min-width: 1181px) and (max-width: 1365px) {
    .nsb-language-button span { max-width: none; overflow: visible; text-overflow: clip; }
}

@media (min-width: 981px) and (max-width: 1180px) {
    .nsb-header-actions { margin-inline-start: auto; }
}

/* Desktop dropdown readability and approved compact-on-scroll behavior. */
@media (min-width: 1181px) {
    .nsb-language-menu a,
    .home .nsb-site-header:not(.nsb-header-scrolled) .nsb-language-menu a {
        color: var(--nsb-charcoal);
    }
    .nsb-header-shell,
    .nsb-brand img {
        transition: min-height .28s ease, width .28s ease, height .28s ease;
    }
    .nsb-site-header.nsb-header-scrolled .nsb-header-shell { min-height: 76px; }
    .nsb-site-header.nsb-header-scrolled .nsb-brand img { width: 52px; height: 52px; }
}

/* v0.1.5 — desktop-only refined header hover/focus interactions.
 * Built on the locked v0.1.4 header. No header colors, backgrounds,
 * spacing, breakpoints, markup, or mobile behavior are changed here.
 */
@media (min-width: 1181px) {
    .nsb-site-header .nsb-brand,
    .nsb-site-header .nsb-primary-nav a,
    .nsb-site-header .nsb-header-actions > .nsb-icon-button,
    .nsb-site-header .nsb-language-button,
    .nsb-site-header .nsb-social-row .nsb-social-link,
    .nsb-site-header .nsb-header-whatsapp-desktop,
    .nsb-site-header .nsb-header-live-desktop,
    .nsb-site-header .nsb-header-membership {
        transform-origin: center;
        will-change: transform;
        transition-property: transform, box-shadow, color, background-color, border-color;
        transition-duration: .2s;
        transition-timing-function: cubic-bezier(.2,.75,.25,1);
    }

    .nsb-site-header .nsb-brand:hover,
    .nsb-site-header .nsb-brand:focus-visible {
        transform: translateY(-1px) scale(1.035);
    }

    .nsb-site-header .nsb-header-actions > .nsb-icon-button:hover,
    .nsb-site-header .nsb-header-actions > .nsb-icon-button:focus-visible,
    .nsb-site-header .nsb-social-row .nsb-social-link:hover,
    .nsb-site-header .nsb-social-row .nsb-social-link:focus-visible {
        transform: translateY(-2px) scale(1.09);
        box-shadow: 0 9px 22px rgba(36,20,31,.15);
    }

    .nsb-site-header .nsb-language-button:hover,
    .nsb-site-header .nsb-language-button:focus-visible {
        transform: translateY(-1px) scale(1.025);
        box-shadow: 0 8px 20px rgba(36,20,31,.12);
    }

    .nsb-site-header .nsb-header-whatsapp-desktop:hover,
    .nsb-site-header .nsb-header-whatsapp-desktop:focus-visible,
    .nsb-site-header .nsb-header-live-desktop:hover,
    .nsb-site-header .nsb-header-live-desktop:focus-visible,
    .nsb-site-header .nsb-header-membership:hover,
    .nsb-site-header .nsb-header-membership:focus-visible {
        transform: translateY(-2px) scale(1.025);
    }

    .nsb-site-header .nsb-header-whatsapp-desktop:hover,
    .nsb-site-header .nsb-header-whatsapp-desktop:focus-visible {
        box-shadow: 0 10px 22px rgba(22,125,72,.14);
    }

    .nsb-site-header .nsb-header-live-desktop:hover,
    .nsb-site-header .nsb-header-live-desktop:focus-visible {
        box-shadow: 0 10px 24px rgba(36,20,31,.24);
    }

    .nsb-site-header .nsb-header-membership:hover,
    .nsb-site-header .nsb-header-membership:focus-visible {
        box-shadow: 0 11px 26px rgba(139,20,93,.24);
    }

    .nsb-site-header .nsb-primary-nav a:hover,
    .nsb-site-header .nsb-primary-nav a:focus-visible {
        transform: translateY(-1px);
    }
}

@media (min-width: 1181px) and (prefers-reduced-motion: reduce) {
    .nsb-site-header .nsb-brand,
    .nsb-site-header .nsb-primary-nav a,
    .nsb-site-header .nsb-header-actions > .nsb-icon-button,
    .nsb-site-header .nsb-language-button,
    .nsb-site-header .nsb-social-row .nsb-social-link,
    .nsb-site-header .nsb-header-whatsapp-desktop,
    .nsb-site-header .nsb-header-live-desktop,
    .nsb-site-header .nsb-header-membership {
        transition-duration: .01ms;
    }
}
