/* ═══════════════════════════════════════════
   CSS CUSTOM PROPERTIES
   ═══════════════════════════════════════════ */
:root {
    --bg-primary: #0a0a0f;
    --bg-secondary: #0f0f17;
    --bg-card: #12121c;
    --bg-card-hover: #181825;
    --border: #1e1e2e;
    --border-accent: #2a2a3e;
    --text-primary: #e2e2f0;
    --text-secondary: #8888a8;
    --text-muted: #7e7e9a;
    --placeholder: #555570;
    --accent: #64ffda;
    --accent-dim: rgba(100, 255, 218, 0.1);
    --accent-secondary: #7c5aed;
    --accent-secondary-dim: rgba(124, 90, 237, 0.1);
    --accent-warm: #f59e0b;
    --danger: #ef4444;
    --font-mono: 'JetBrains Mono', 'Fira Code', monospace;
    --font-sans: 'Outfit', -apple-system, BlinkMacSystemFont, sans-serif;
    --glow: 0 0 20px rgba(100, 255, 218, 0.15);
    --transition: cubic-bezier(0.22, 1, 0.36, 1);
}

/* ═══════════════════════════════════════════
   LIGHT THEME OVERRIDES
   ═══════════════════════════════════════════ */
[data-theme="light"] {
    --bg-primary: #f8f9fc;
    --bg-secondary: #eef0f5;
    --bg-card: #ffffff;
    --bg-card-hover: #f0f2f7;
    --border: #d8dce6;
    --border-accent: #c0c6d4;
    --text-primary: #1a1d2e;
    --text-secondary: #4a5068;
    --text-muted: #656d85;
    --placeholder: #8890a8;
    --accent: #0d9373;
    --accent-dim: rgba(13, 147, 115, 0.08);
    --accent-secondary: #6841d9;
    --accent-secondary-dim: rgba(104, 65, 217, 0.08);
    --accent-warm: #d97706;
    --danger: #dc2626;
    --glow: 0 0 20px rgba(13, 147, 115, 0.1);
}

/* ═══════════════════════════════════════════
   BASE RESET & TYPOGRAPHY
   ═══════════════════════════════════════════ */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
    scrollbar-width: thin;
    scrollbar-color: var(--border-accent) transparent;
}

body {
    font-family: var(--font-sans);
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.7;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--border-accent); border-radius: 3px; }

::selection {
    background: var(--accent);
    color: var(--bg-primary);
}

a {
    color: var(--accent);
    text-decoration: none;
    transition: all 0.3s var(--transition);
}

a:hover {
    color: #fff;
    text-shadow: 0 0 8px rgba(100, 255, 218, 0.4);
}

/* ═══════════════════════════════════════════
   LIGHT THEME ELEMENT OVERRIDES
   ═══════════════════════════════════════════ */
[data-theme="light"] a:hover {
    color: var(--text-primary);
    text-shadow: none;
}

[data-theme="light"] ::selection {
    background: var(--accent);
    color: #fff;
}

[data-theme="light"] body::before {
    opacity: 0;
}

[data-theme="light"] .grid-bg {
    background-image:
        linear-gradient(rgba(13, 147, 115, 0.04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(13, 147, 115, 0.04) 1px, transparent 1px);
}

[data-theme="light"] .glow-orb--1 {
    background: rgba(13, 147, 115, 0.04);
}

[data-theme="light"] .glow-orb--2 {
    background: rgba(104, 65, 217, 0.04);
}

[data-theme="light"] .nav {
    background: rgba(248, 249, 252, 0.85);
}

[data-theme="light"] .mobile-nav {
    background: rgba(248, 249, 252, 0.97);
}

/* ═══════════════════════════════════════════
   NOISE OVERLAY & GRID BG
   ═══════════════════════════════════════════ */
body::before {
    content: '';
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.03'/%3E%3C/svg%3E");
    pointer-events: none;
    z-index: 9999;
}

.grid-bg {
    position: fixed;
    inset: 0;
    background-image:
        linear-gradient(rgba(100, 255, 218, 0.02) 1px, transparent 1px),
        linear-gradient(90deg, rgba(100, 255, 218, 0.02) 1px, transparent 1px);
    background-size: 60px 60px;
    pointer-events: none;
    z-index: 0;
}

/* ═══════════════════════════════════════════
   GLOW ORB BACKGROUND
   ═══════════════════════════════════════════ */
.glow-orb {
    position: fixed;
    border-radius: 50%;
    filter: blur(120px);
    pointer-events: none;
    z-index: 0;
}
.glow-orb--1 {
    width: 500px; height: 500px;
    background: rgba(100, 255, 218, 0.05);
    top: -150px; right: -100px;
    animation: orbFloat1 20s ease-in-out infinite;
}
.glow-orb--2 {
    width: 400px; height: 400px;
    background: rgba(124, 90, 237, 0.05);
    bottom: -100px; left: -100px;
    animation: orbFloat2 25s ease-in-out infinite;
}
@keyframes orbFloat1 {
    0%, 100% { transform: translate(0, 0); }
    50% { transform: translate(-80px, 80px); }
}
@keyframes orbFloat2 {
    0%, 100% { transform: translate(0, 0); }
    50% { transform: translate(60px, -60px); }
}

/* ═══════════════════════════════════════════
   NAVIGATION
   ═══════════════════════════════════════════ */
.nav {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1002;
    padding: 1.25rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    backdrop-filter: blur(16px);
    background: rgba(10, 10, 15, 0.8);
    border-bottom: 1px solid transparent;
    transition: all 0.4s var(--transition);
}

.nav.scrolled {
    border-bottom-color: var(--border);
    padding: 0.85rem 2rem;
}

.nav__logo {
    font-family: var(--font-mono);
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--accent);
    letter-spacing: -0.5px;
}

.nav__logo span {
    color: var(--text-muted);
    font-weight: 400;
}

.nav__links {
    display: flex;
    gap: 2rem;
    list-style: none;
    align-items: center;
}

.nav__links a {
    font-family: var(--font-mono);
    font-size: 0.8rem;
    color: var(--text-secondary);
    letter-spacing: 0.5px;
    position: relative;
}

.nav__links a::before {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--accent);
    transition: width 0.3s var(--transition);
}

.nav__links a:hover {
    color: var(--accent);
    text-shadow: none;
}

.nav__links a:hover::before {
    width: 100%;
}

.nav__links a.active {
    color: var(--accent);
}

.nav__links a.active::before {
    width: 100%;
}

.nav__links .link-num {
    color: var(--accent);
    font-size: 0.7rem;
    margin-right: 0.25rem;
}

.nav__menu-btn {
    display: none;
    background: none;
    border: 1px solid var(--border);
    color: var(--accent);
    padding: 0.5rem;
    cursor: pointer;
    border-radius: 4px;
    line-height: 1;
}

.nav__menu-btn svg { display: block; }

.menu-line {
    transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.2s ease;
    transform-box: fill-box;
    transform-origin: center;
}

.nav__menu-btn.open .menu-line--top {
    transform: translateY(6px) rotate(45deg);
}

.nav__menu-btn.open .menu-line--mid {
    opacity: 0;
    transform: scaleX(0);
}

.nav__menu-btn.open .menu-line--bot {
    transform: translateY(-6px) rotate(-45deg);
}

/* ═══════════════════════════════════════════
   LAYOUT
   ═══════════════════════════════════════════ */
.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 2rem;
    position: relative;
    z-index: 1;
}

.section-label {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 3px;
    color: var(--accent);
    margin-bottom: 0.75rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.section-label::before {
    content: '//';
    color: var(--text-muted);
}

.section-title {
    font-size: clamp(1.75rem, 3vw, 2.5rem);
    font-weight: 700;
    letter-spacing: -1px;
    margin-bottom: 1rem;
    line-height: 1.2;
}

.section-divider {
    width: 60px;
    height: 2px;
    background: linear-gradient(90deg, var(--accent), transparent);
    margin-bottom: 3rem;
}

.btn {
    font-family: var(--font-mono);
    font-size: 0.85rem;
    padding: 0.85rem 1.75rem;
    border-radius: 4px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s var(--transition);
    letter-spacing: 0.5px;
}

.btn--primary {
    background: transparent;
    border: 1px solid var(--accent);
    color: var(--accent);
}

.btn--primary:hover {
    background: var(--accent-dim);
    box-shadow: var(--glow);
    color: var(--accent);
    text-shadow: none;
}

.btn--ghost {
    background: transparent;
    border: 1px solid var(--border-accent);
    color: var(--text-secondary);
}

.btn--ghost:hover {
    border-color: var(--text-secondary);
    color: var(--text-primary);
    text-shadow: none;
}

/* ═══════════════════════════════════════════
   IMAGE PLACEHOLDER
   ═══════════════════════════════════════════ */
.image-placeholder {
    width: 100%;
    height: 100%;
    background-color: var(--bg-secondary);
    background-image:
        linear-gradient(rgba(100, 255, 218, 0.04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(100, 255, 218, 0.04) 1px, transparent 1px);
    background-size: 20px 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.image-placeholder::after {
    content: '{ }';
    font-family: var(--font-mono);
    font-size: 1.5rem;
    color: var(--text-muted);
    letter-spacing: 0.15em;
    opacity: 0.5;
}

/* ═══════════════════════════════════════════
   FOOTER
   ═══════════════════════════════════════════ */
.footer {
    text-align: center;
    padding: 2rem;
    border-top: 1px solid var(--border);
}

.footer__text {
    font-family: var(--font-mono);
    font-size: 0.72rem;
    color: var(--text-muted);
    letter-spacing: 0.5px;
}

.footer__text a {
    color: var(--text-secondary);
    text-decoration: underline;
    text-underline-offset: 2px;
}

/* ═══════════════════════════════════════════
   ANIMATIONS
   ═══════════════════════════════════════════ */
@keyframes fadeSlideUp {
    from { opacity: 0; transform: translateY(25px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeSlideLeft {
    from { opacity: 0; transform: translateX(40px); }
    to { opacity: 1; transform: translateX(0); }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.7s var(--transition);
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }
.reveal-delay-5 { transition-delay: 0.5s; }
.reveal-delay-6 { transition-delay: 0.6s; }

/* ═══════════════════════════════════════════
   THEME TOGGLE
   ═══════════════════════════════════════════ */
.theme-toggle {
    background: none;
    border: 1px solid var(--border);
    color: var(--text-secondary);
    width: 34px;
    height: 34px;
    border-radius: 50%;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s var(--transition);
    padding: 0;
    flex-shrink: 0;
}

.theme-toggle:hover {
    border-color: var(--accent);
    color: var(--accent);
    background: var(--accent-dim);
}

.theme-toggle svg {
    width: 16px;
    height: 16px;
    transition: transform 0.4s var(--transition);
}

.theme-toggle:hover svg {
    transform: rotate(30deg);
}

.theme-toggle .icon-sun,
.theme-toggle .icon-moon {
    display: none;
}

[data-theme="dark"] .theme-toggle .icon-sun {
    display: block;
}

[data-theme="light"] .theme-toggle .icon-moon {
    display: block;
}

.theme-toggle--mobile {
    width: 40px;
    height: 40px;
}

.theme-toggle--mobile svg {
    width: 18px;
    height: 18px;
}

/* ═══════════════════════════════════════════
   MOBILE NAV
   ═══════════════════════════════════════════ */
.mobile-nav {
    display: flex;
    position: fixed;
    inset: 0;
    background: rgba(10, 10, 15, 0.95);
    backdrop-filter: blur(20px);
    z-index: 1001;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.mobile-nav.open {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.mobile-nav__links {
    list-style: none;
    text-align: center;
    display: flex;
    flex-direction: column;
    transform: translateY(20px);
    transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1);
    gap: 2rem;
}

.mobile-nav.open .mobile-nav__links {
    transform: translateY(0);
}

.mobile-nav__links a {
    font-family: var(--font-mono);
    font-size: 1.1rem;
    color: var(--text-secondary);
}

.mobile-nav__links a.active {
    color: var(--accent);
}

.mobile-nav__close {
    position: absolute;
    top: 1.5rem;
    right: 2rem;
    background: none;
    border: none;
    color: var(--accent);
    font-size: 1.75rem;
    cursor: pointer;
}

/* ═══════════════════════════════════════════
   RESPONSIVE
   ═══════════════════════════════════════════ */
@media (max-width: 900px) {
    .nav__links {
        display: none;
    }

    .nav__menu-btn {
        display: block;
    }
}

@media (max-width: 600px) {
    .container {
        padding: 0 1.25rem;
    }
}

/* ═══════════════════════════════════════════
   SEARCH BUTTON (nav)
   ═══════════════════════════════════════════ */
.nav__search-btn {
    background: none;
    border: 1px solid var(--border);
    color: var(--text-secondary);
    height: 34px;
    padding: 0 0.65rem;
    border-radius: 6px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    transition: all 0.3s var(--transition);
    font-family: var(--font-mono);
    font-size: 0.7rem;
    letter-spacing: 0.03em;
    white-space: nowrap;
}

.nav__search-btn:hover {
    border-color: var(--accent);
    color: var(--accent);
    background: var(--accent-dim);
}

.nav__search-btn svg {
    width: 13px;
    height: 13px;
    flex-shrink: 0;
}

.nav__search-btn .search-kbd {
    font-size: 0.6rem;
    color: var(--text-muted);
    border: 1px solid var(--border-accent);
    border-radius: 3px;
    padding: 0.05rem 0.3rem;
    line-height: 1.5;
    letter-spacing: 0;
}

/* ═══════════════════════════════════════════
   SPOTLIGHT OVERLAY
   ═══════════════════════════════════════════ */
#searchOverlay {
    position: fixed;
    inset: 0;
    z-index: 9000;
    background: rgba(5, 5, 10, 0.75);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding-top: clamp(4rem, 12vh, 9rem);
    padding-left: 1rem;
    padding-right: 1rem;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease;
}

[data-theme="light"] #searchOverlay {
    background: rgba(220, 225, 235, 0.7);
}

#searchOverlay.open {
    opacity: 1;
    pointer-events: auto;
}

/* ── Modal card ── */
#searchModal {
    width: 100%;
    max-width: 620px;
    background: var(--bg-card);
    border: 1px solid var(--border-accent);
    border-radius: 12px;
    overflow: hidden;
    box-shadow:
        0 0 0 1px var(--border),
        0 24px 60px rgba(0, 0, 0, 0.5),
        0 0 40px rgba(100, 255, 218, 0.06);
    transform: translateY(-16px) scale(0.98);
    transition: transform 0.25s var(--transition);
}

[data-theme="light"] #searchModal {
    box-shadow:
        0 0 0 1px var(--border),
        0 24px 60px rgba(0, 0, 0, 0.15),
        0 0 40px rgba(13, 147, 115, 0.06);
}

#searchOverlay.open #searchModal {
    transform: translateY(0) scale(1);
}

/* ── Input area ── */
.search-input-wrap {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 1.25rem;
    border-bottom: 1px solid var(--border);
}

.search-input-wrap svg.search-icon {
    width: 18px;
    height: 18px;
    color: var(--text-muted);
    flex-shrink: 0;
}

#searchInput {
    flex: 1;
    background: none;
    border: none;
    outline: none;
    font-family: var(--font-mono);
    font-size: 0.95rem;
    color: var(--text-primary);
    letter-spacing: 0.02em;
}

#searchInput::placeholder {
    color: var(--placeholder);
}

.search-esc-badge {
    font-family: var(--font-mono);
    font-size: 0.62rem;
    color: var(--text-muted);
    border: 1px solid var(--border-accent);
    border-radius: 4px;
    padding: 0.15rem 0.45rem;
    letter-spacing: 0.05em;
    flex-shrink: 0;
}

/* ── Results area ── */
#searchResults {
    max-height: 420px;
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: var(--border-accent) transparent;
}

#searchResults::-webkit-scrollbar { width: 4px; }
#searchResults::-webkit-scrollbar-track { background: transparent; }
#searchResults::-webkit-scrollbar-thumb { background: var(--border-accent); border-radius: 2px; }

/* ── Group label ── */
.search-group-label {
    font-family: var(--font-mono);
    font-size: 0.65rem;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--text-muted);
    padding: 0.85rem 1.25rem 0.4rem;
}

/* ── Result item ── */
.search-result-item {
    display: flex;
    align-items: center;
    gap: 0.875rem;
    padding: 0.75rem 1.25rem;
    cursor: pointer;
    border-left: 2px solid transparent;
    text-decoration: none;
    transition: background 0.15s ease, border-color 0.15s ease;
    position: relative;
}

.search-result-item:hover,
.search-result-item.focused {
    background: var(--bg-card-hover);
    border-left-color: var(--accent);
}

.search-result-icon {
    width: 32px;
    height: 32px;
    border-radius: 6px;
    background: var(--accent-dim);
    border: 1px solid var(--border-accent);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.search-result-icon svg {
    width: 14px;
    height: 14px;
    color: var(--accent);
}

.search-result-body {
    flex: 1;
    min-width: 0;
}

.search-result-title {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-primary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.3;
}

.search-result-excerpt {
    font-size: 0.75rem;
    color: var(--text-muted);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-top: 0.15rem;
    font-family: var(--font-mono);
}

.search-result-chevron {
    color: var(--text-muted);
    flex-shrink: 0;
    opacity: 0;
    transform: translateX(-4px);
    transition: all 0.15s ease;
}

.search-result-item:hover .search-result-chevron,
.search-result-item.focused .search-result-chevron {
    opacity: 1;
    transform: translateX(0);
}

.search-result-chevron svg {
    width: 14px;
    height: 14px;
}

/* ── States ── */
.search-state {
    padding: 2.5rem 1.25rem;
    text-align: center;
}

.search-state__icon {
    font-family: var(--font-mono);
    font-size: 1.5rem;
    color: var(--border-accent);
    margin-bottom: 0.75rem;
}

.search-state__text {
    font-family: var(--font-mono);
    font-size: 0.78rem;
    color: var(--text-muted);
    letter-spacing: 0.05em;
}

.search-state__hint {
    font-family: var(--font-mono);
    font-size: 0.68rem;
    color: var(--border-accent);
    margin-top: 0.35rem;
    letter-spacing: 0.03em;
}

/* Spinner */
.search-spinner {
    width: 18px;
    height: 18px;
    border: 2px solid var(--border-accent);
    border-top-color: var(--accent);
    border-radius: 50%;
    animation: spin 0.6s linear infinite;
    margin: 0 auto 0.75rem;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* ── Footer hint bar ── */
.search-footer {
    border-top: 1px solid var(--border);
    padding: 0.6rem 1.25rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    font-family: var(--font-mono);
    font-size: 0.62rem;
    color: var(--text-muted);
}

.search-footer-hint {
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

.search-footer-hint kbd {
    background: var(--bg-secondary);
    border: 1px solid var(--border-accent);
    border-radius: 3px;
    padding: 0.1rem 0.35rem;
    font-family: var(--font-mono);
    font-size: 0.6rem;
    color: var(--text-secondary);
}

/* ── Mobile search btn in mobile nav ── */
.mobile-search-btn {
    background: none;
    border: 1px solid var(--border);
    color: var(--text-secondary);
    padding: 0.5rem 1.5rem;
    border-radius: 6px;
    font-family: var(--font-mono);
    font-size: 0.85rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.mobile-search-btn svg {
    width: 15px;
    height: 15px;
}

@media (max-width: 620px) {
    #searchModal {
        border-radius: 8px;
    }
}

/* ═══════════════════════════════════════════
   NEWSLETTER MODAL
   ═══════════════════════════════════════════ */
.nl-overlay {
    position: fixed;
    inset: 0;
    background: rgba(8, 8, 16, 0.85);
    backdrop-filter: blur(6px);
    z-index: 900;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}
.nl-modal {
    background: var(--bg-secondary);
    border: 1px solid var(--border-accent);
    border-radius: 12px;
    width: 100%;
    max-width: 460px;
    overflow: hidden;
    position: relative;
}
.nl-modal__top-bar {
    height: 3px;
    background: linear-gradient(90deg, var(--accent), var(--accent-secondary));
}
.nl-modal__body { padding: 2.25rem 2rem 2rem; }
.nl-modal__icon {
    width: 44px;
    height: 44px;
    background: var(--accent-dim);
    border: 1px solid rgba(0,255,136,0.2);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.25rem;
    font-size: 1.1rem;
    color: var(--accent);
}
.nl-modal__title {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
    letter-spacing: -0.3px;
}
.nl-modal__desc {
    font-size: 0.88rem;
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 1.5rem;
}
.nl-modal__form { display: flex; gap: 0.6rem; }
.nl-modal__input {
    flex: 1;
    background: var(--bg-primary);
    border: 1px solid var(--border);
    border-radius: 6px;
    padding: 0.7rem 1rem;
    font-size: 0.88rem;
    color: var(--text-primary);
    font-family: var(--font-mono);
    outline: none;
    transition: border-color 0.3s;
    min-width: 0;
}
.nl-modal__input:focus { border-color: var(--accent); }
.nl-modal__input::placeholder { color: var(--text-muted); }
.nl-modal__submit {
    background: var(--accent);
    color: var(--bg-primary);
    border: none;
    border-radius: 6px;
    padding: 0.7rem 1.25rem;
    font-family: var(--font-mono);
    font-size: 0.8rem;
    font-weight: 600;
    cursor: pointer;
    letter-spacing: 0.5px;
    transition: opacity 0.3s;
    white-space: nowrap;
    flex-shrink: 0;
}
.nl-modal__submit:hover { opacity: 0.85; }
.nl-modal__submit:disabled { opacity: 0.5; cursor: not-allowed; }
.nl-modal__message {
    margin-top: 0.85rem;
    font-family: var(--font-mono);
    font-size: 0.78rem;
    line-height: 1.6;
    padding: 0.6rem 0.85rem;
    border-radius: 5px;
}
.nl-modal__message--success { background: rgba(0,255,136,0.08); border: 1px solid rgba(0,255,136,0.2); color: var(--accent); }
.nl-modal__message--error   { background: rgba(255,80,80,0.08);  border: 1px solid rgba(255,80,80,0.2);  color: #ff8888; }
.nl-modal__message--info    { background: rgba(0,201,255,0.08);  border: 1px solid rgba(0,201,255,0.2);  color: var(--accent-secondary); }
.nl-modal__close {
    position: absolute;
    top: 1rem; right: 1rem;
    background: none; border: none;
    color: var(--text-muted);
    cursor: pointer;
    font-size: 1.25rem;
    line-height: 1;
    padding: 0.25rem;
    transition: color 0.2s;
}
.nl-modal__close:hover { color: var(--text-primary); }
.nl-modal__note {
    margin-top: 1rem;
    font-family: var(--font-mono);
    font-size: 0.7rem;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 0.4rem;
}
[data-theme="light"] .nl-modal__input { background: #f8f8fc; }
@media (max-width: 600px) {
    .nl-modal__form { flex-direction: column; }
    .nl-modal__submit { width: 100%; }
}

/* Hide reCAPTCHA v3 badge (attribution in footer instead, per Google policy) */
.grecaptcha-badge { visibility: hidden !important; }
.footer__recaptcha {
    font-size: 0.7rem;
    color: var(--text-muted);
    margin-top: 0.4rem;
}
.footer__recaptcha a { color: var(--text-muted); text-decoration: underline; }
