/* VGMF — seminar website (refreshed theme) */
:root {
    --ink: #1a1f36;
    --ink-soft: #4a5568;
    --muted: #718096;
    --line: #e8ecf4;
    --surface: #ffffff;
    --surface-2: #f6f4ef;
    --brand: #1e3a8a;
    --brand-dark: #172554;
    --brand-light: #3b82f6;
    --accent: #d97706;
    --accent-soft: #fef3c7;
    --radius: 16px;
    --radius-lg: 24px;
    --shadow: 0 8px 30px rgba(26, 31, 54, 0.08);
    --shadow-lg: 0 24px 60px rgba(26, 31, 54, 0.12);
    --font: 'Plus Jakarta Sans', system-ui, sans-serif;
    --font-display: 'Libre Baskerville', Georgia, serif;
    --max: 1180px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
    font-family: var(--font);
    background: var(--surface-2);
    color: var(--ink);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

body.has-logo-theme {
    background-color: #f8fafc;
    background-image: var(--site-logo-watermark);
    background-repeat: no-repeat;
    background-position: center 8%;
    background-size: min(420px, 72vw);
    background-attachment: fixed;
}

body.has-logo-theme::before {
    content: '';
    position: fixed;
    inset: 0;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.92) 0%, rgba(248, 250, 252, 0.97) 45%, rgba(255, 255, 255, 0.98) 100%);
    pointer-events: none;
    z-index: -1;
}

.site-header,
.top-bar,
.main-content,
.hero,
.page-panel {
    position: relative;
    z-index: 1;
}

a { color: var(--brand); text-decoration: none; }
a:hover { color: var(--brand-light); }

img { max-width: 100%; height: auto; display: block; }

/* —— Top strip —— */
.top-bar {
    background: #ffffff;
    color: var(--muted);
    font-size: 0.8rem;
    padding: 8px 0;
    border-bottom: 1px solid var(--line);
}

.top-bar-container {
    max-width: var(--max);
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}

.top-bar-left { display: flex; flex-wrap: wrap; gap: 20px; }
.top-bar-left span { display: flex; align-items: center; gap: 8px; }
.top-bar-left i { color: var(--brand); font-size: 0.75rem; }

.top-bar-right { display: flex; gap: 16px; flex-wrap: wrap; }
.top-bar-right a {
    color: var(--brand);
    font-weight: 600;
    cursor: pointer;
    font-size: 0.8rem;
}
.top-bar-right a:hover { color: var(--brand-light); }

/* —— Header (white) —— */
.site-header {
    background: #ffffff;
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid var(--line);
    box-shadow: 0 1px 0 rgba(12, 18, 34, 0.04);
}

.nav-container {
    max-width: var(--max);
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 72px;
    gap: 16px;
    position: relative;
}

.logo {
    display: flex;
    align-items: center;
    gap: 14px;
    text-decoration: none;
    color: inherit;
}

.logo-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: linear-gradient(135deg, var(--brand), var(--brand-light));
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 1.1rem;
    box-shadow: 0 8px 20px rgba(13, 92, 99, 0.25);
}

.logo-text h1 {
    font-family: var(--font);
    font-size: 1rem;
    font-weight: 700;
    color: var(--ink);
    letter-spacing: -0.02em;
    line-height: 1.2;
}

.logo-text p {
    font-size: 0.68rem;
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-weight: 600;
}

.nav-toggle {
    display: none;
    background: none;
    border: 1px solid var(--line);
    border-radius: 10px;
    padding: 10px 12px;
    cursor: pointer;
    color: var(--ink);
    font-size: 1.1rem;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 6px;
}

.nav-links a {
    color: var(--ink-soft);
    font-weight: 600;
    font-size: 0.9rem;
    padding: 8px 14px;
    border-radius: 999px;
    cursor: pointer;
    transition: background 0.2s, color 0.2s;
}

.nav-links a:hover {
    background: var(--surface-2);
    color: var(--brand);
}

.nav-links .btn-portal {
    background: var(--brand);
    color: #fff !important;
    margin-left: 8px;
    box-shadow: 0 4px 14px rgba(13, 92, 99, 0.3);
}

.nav-links .btn-portal:hover {
    background: var(--brand-dark);
    color: #fff !important;
}

/* —— Ticker —— */
.announcement-ticker {
    background: var(--accent-soft);
    border-bottom: 1px solid #e8d9a8;
    padding: 10px 0;
}

.ticker-container {
    max-width: var(--max);
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    align-items: center;
    gap: 14px;
}

.ticker-label {
    background: var(--accent);
    color: var(--ink);
    padding: 4px 12px;
    border-radius: 6px;
    font-size: 0.65rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    flex-shrink: 0;
}

.ticker-content { flex: 1; overflow: hidden; }
.ticker-text {
    display: inline-block;
    white-space: nowrap;
    animation: ticker 28s linear infinite;
    font-weight: 600;
    font-size: 0.88rem;
    color: var(--ink-soft);
}

@keyframes ticker {
    0% { transform: translateX(100%); }
    100% { transform: translateX(-100%); }
}

/* —— Hero —— */
.hero {
    position: relative;
    padding: 72px 24px 80px;
    overflow: hidden;
    background: linear-gradient(160deg, #0c1222 0%, #0d5c63 45%, #0a3d42 100%);
    color: #fff;
}

.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 80% 60% at 90% 20%, rgba(20, 163, 176, 0.35), transparent),
        radial-gradient(ellipse 50% 40% at 10% 80%, rgba(201, 162, 39, 0.15), transparent);
    pointer-events: none;
}

.hero-container {
    max-width: var(--max);
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 48px;
    align-items: center;
    position: relative;
    z-index: 1;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255,255,255,0.12);
    border: 1px solid rgba(255,255,255,0.2);
    padding: 6px 14px;
    border-radius: 999px;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    margin-bottom: 20px;
    color: #a7f3d0;
}

.hero-content h1 {
    font-family: var(--font-display);
    font-size: clamp(2.4rem, 5vw, 3.5rem);
    font-weight: 400;
    line-height: 1.08;
    margin-bottom: 18px;
    letter-spacing: -0.02em;
}

.hero-content .hero-lead {
    font-size: 1.1rem;
    color: #cbd5e1;
    max-width: 42ch;
    margin-bottom: 28px;
    line-height: 1.65;
}

.hero-buttons { display: flex; flex-wrap: wrap; gap: 12px; }

.btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: var(--accent);
    color: var(--ink);
    padding: 14px 28px;
    border-radius: 12px;
    font-weight: 700;
    font-size: 0.95rem;
    border: none;
    cursor: pointer;
    box-shadow: 0 8px 24px rgba(201, 162, 39, 0.35);
    transition: transform 0.2s, box-shadow 0.2s;
    text-decoration: none;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 32px rgba(201, 162, 39, 0.45);
    color: var(--ink);
}

.btn-ghost {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 24px;
    border-radius: 12px;
    font-weight: 700;
    font-size: 0.95rem;
    background: transparent;
    border: 2px solid rgba(255,255,255,0.35);
    color: #fff;
    cursor: pointer;
    transition: background 0.2s, border-color 0.2s;
}

.btn-ghost:hover {
    background: rgba(255,255,255,0.1);
    border-color: #fff;
    color: #fff;
}

.hero-stats {
    display: flex;
    gap: 32px;
    margin-top: 40px;
    padding-top: 28px;
    border-top: 1px solid rgba(255,255,255,0.15);
    flex-wrap: wrap;
}

.hero-stats .stat-item h3 {
    font-family: var(--font-display);
    font-size: 2rem;
    font-weight: 400;
    color: var(--accent);
    line-height: 1;
    margin-bottom: 4px;
}

.hero-stats .stat-item p {
    font-size: 0.82rem;
    color: #94a3b8;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.hero-visual {
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: var(--radius-lg);
    padding: 28px;
    backdrop-filter: blur(12px);
    text-align: center;
}

.hero-visual .hero-fallback-icon {
    font-size: 4rem;
    color: var(--brand-light);
    margin-bottom: 16px;
    opacity: 0.9;
}

.hero-visual h3 {
    font-family: var(--font-display);
    font-size: 1.35rem;
    margin-bottom: 8px;
}

.hero-visual .hero-venue-line {
    margin-top: 14px;
    font-size: 0.9rem;
    color: #94a3b8;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.hero-photo {
    width: 100%;
    border-radius: var(--radius);
    object-fit: cover;
    max-height: 320px;
}

/* —— Layout —— */
.main-content {
    max-width: var(--max);
    margin: 0 auto;
    padding: 56px 24px 80px;
}

.vgmf-section {
    margin-bottom: 64px;
}

.section-head {
    text-align: center;
    max-width: 640px;
    margin: 0 auto 36px;
}

.section-head.left {
    text-align: left;
    margin-left: 0;
}

.section-head h2 {
    font-family: var(--font-display);
    font-size: clamp(1.75rem, 3vw, 2.25rem);
    font-weight: 400;
    color: var(--ink);
    margin-bottom: 10px;
    letter-spacing: -0.02em;
}

.section-head p {
    color: var(--muted);
    font-size: 1.02rem;
}

/* —— Cards —— */
.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 20px;
}

.feature-card {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 28px 24px;
    box-shadow: var(--shadow);
    transition: transform 0.25s, box-shadow 0.25s;
}

.feature-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.feature-card .card-icon {
    width: 52px;
    height: 52px;
    border-radius: 14px;
    background: linear-gradient(135deg, var(--brand), var(--brand-light));
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    margin-bottom: 18px;
}

.feature-card h3 {
    font-size: 1.05rem;
    font-weight: 700;
    margin-bottom: 8px;
    color: var(--ink);
}

.feature-card p {
    font-size: 0.9rem;
    color: var(--muted);
    line-height: 1.55;
}

/* —— Home split: highlights + notices —— */
.home-split {
    display: grid;
    grid-template-columns: 1.4fr 1fr;
    gap: 28px;
    align-items: start;
}

.notices-panel {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    padding: 24px;
    box-shadow: var(--shadow);
    position: sticky;
    top: 96px;
}

.notices-panel h3 {
    font-size: 1rem;
    font-weight: 700;
    color: var(--ink);
    margin-bottom: 18px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.notices-panel h3 i { color: var(--brand); }

#notices-container {
    display: flex;
    flex-direction: column;
    gap: 12px;
    max-height: 420px;
    overflow-y: auto;
}

.notice-card {
    padding: 14px 16px;
    background: var(--surface-2);
    border-radius: var(--radius);
    border-left: 3px solid var(--brand-light);
}

.notice-card h4 {
    font-size: 0.92rem;
    font-weight: 700;
    margin-bottom: 4px;
    color: var(--ink);
}

.notice-card .notice-date {
    font-size: 0.75rem;
    color: var(--muted);
    margin-bottom: 6px;
}

.notice-card p {
    font-size: 0.86rem;
    color: var(--ink-soft);
    line-height: 1.5;
}

/* —— Seminars strip —— */
.open-seminars-strip {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
}

.seminar-pill {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    padding: 24px;
    box-shadow: var(--shadow);
    display: flex;
    flex-direction: column;
}

.seminar-pill h4 {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--ink);
    margin-bottom: 10px;
}

.seminar-pill > p {
    font-size: 0.88rem;
    color: var(--muted);
    flex: 1;
    line-height: 1.55;
}

.seminar-meta {
    font-size: 0.82rem;
    color: var(--brand);
    font-weight: 600;
    margin: 12px 0;
}

.seminar-pill .btn-primary {
    align-self: flex-start;
    padding: 10px 20px;
    font-size: 0.85rem;
}

/* —— FAQ —— */
.faq-section { max-width: 720px; margin: 0 auto; }

.faq-item {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    margin-bottom: 10px;
    overflow: hidden;
}

.faq-item summary {
    padding: 18px 20px;
    font-weight: 700;
    color: var(--ink);
    cursor: pointer;
    list-style: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.faq-item summary::-webkit-details-marker { display: none; }

.faq-item summary::after {
    content: '+';
    font-size: 1.25rem;
    color: var(--brand);
    font-weight: 400;
}

.faq-item[open] summary::after { content: '−'; }

.faq-item p {
    padding: 0 20px 18px;
    color: var(--muted);
    font-size: 0.92rem;
    line-height: 1.6;
}

/* —— Reviews marquee —— */
.reviews-wrap {
    overflow: hidden;
    padding: 8px 0;
}

.reviews-track {
    display: flex;
    gap: 20px;
    animation: marquee 40s linear infinite;
    width: max-content;
}

.reviews-track:hover { animation-play-state: paused; }

@keyframes marquee {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

.review-card {
    flex: 0 0 300px;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 24px;
    box-shadow: var(--shadow);
}

.review-card .stars { color: var(--accent); margin-bottom: 12px; letter-spacing: 2px; }

/* —— Scrolling announcements —— */
.scrolling-announce-wrap {
    background: var(--surface);
    border-bottom: 1px solid var(--line);
    padding: 16px 0;
}

.scrolling-announce-header {
    max-width: var(--max);
    margin: 0 auto 12px;
    padding: 0 24px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.sa-sub { font-size: 0.8rem; color: var(--muted); }

.scrolling-announce-viewport { overflow: hidden; }
.scrolling-announce-track { display: flex; gap: 16px; animation: scrollCards 35s linear infinite; width: max-content; }
.scrolling-announce-track:hover { animation-play-state: paused; }

@keyframes scrollCards {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

.sa-card {
    flex: 0 0 280px;
    background: var(--surface-2);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 16px;
}

/* —— Slider —— */
.home-slider {
    margin-bottom: 48px;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

.home-slider img { width: 100%; height: 360px; object-fit: cover; }

/* —— Inner pages —— */
.page-panel {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    padding: 32px;
    box-shadow: var(--shadow);
    max-width: 900px;
    margin: 0 auto;
}

#about-content {
    line-height: 1.75;
    color: var(--ink-soft);
}

#about-content h3 {
    font-family: var(--font-display);
    font-size: 1.35rem;
    color: var(--ink);
    margin: 24px 0 12px;
}

.schedule-table {
    width: 100%;
    border-collapse: collapse;
    background: var(--surface);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
}

.schedule-table th {
    background: var(--ink);
    color: #e2e8f0;
    padding: 14px 18px;
    text-align: left;
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.schedule-table td {
    padding: 14px 18px;
    border-top: 1px solid var(--line);
    font-size: 0.9rem;
}

.schedule-picker {
    max-width: 800px;
    margin: 0 auto 28px;
    background: var(--surface);
    padding: 24px;
    border-radius: var(--radius);
    border: 1px solid var(--line);
}

.schedule-picker label {
    display: block;
    font-weight: 700;
    margin-bottom: 10px;
    color: var(--ink);
}

.schedule-picker select {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid var(--line);
    border-radius: 10px;
    font-size: 1rem;
    font-family: inherit;
}

#event-schedule-detail {
    margin-top: 16px;
    padding: 20px;
    background: var(--accent-soft);
    border-radius: var(--radius);
    border-left: 4px solid var(--accent);
    display: none;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 32px;
    max-width: 900px;
    margin: 0 auto;
}

.contact-info h3 { margin-bottom: 20px; font-size: 1.1rem; }
.contact-info > div {
    margin: 16px 0;
    display: flex;
    align-items: flex-start;
    gap: 12px;
    color: var(--ink-soft);
}

.contact-info i { color: var(--brand); width: 20px; margin-top: 3px; }

.contact-form {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    padding: 28px;
}

.form-group { margin-bottom: 14px; }

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid var(--line);
    border-radius: 10px;
    font-family: inherit;
    font-size: 0.95rem;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--brand-light);
    box-shadow: 0 0 0 3px rgba(20, 163, 176, 0.15);
}

/* —— Footer —— */
.footer {
    background: var(--ink);
    color: #94a3b8;
    padding: 56px 24px 0;
    margin-top: 0;
}

.footer-container {
    max-width: var(--max);
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 32px;
    padding-bottom: 40px;
}

.footer h4 {
    color: #f1f5f9;
    font-size: 0.85rem;
    font-weight: 700;
    margin-bottom: 14px;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.footer ul { list-style: none; }
.footer li { margin-bottom: 8px; }
.footer a { color: #94a3b8; cursor: pointer; }
.footer a:hover { color: #fff; }

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.08);
    padding: 20px 24px;
    text-align: center;
    font-size: 0.85rem;
    max-width: var(--max);
    margin: 0 auto;
}

/* —— Modal —— */
.modal {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(12, 18, 34, 0.55);
    backdrop-filter: blur(4px);
    z-index: 2000;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.modal-content {
    background: var(--surface);
    border-radius: var(--radius-lg);
    max-width: 440px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: var(--shadow-lg);
}

/* —— Countdown —— */
#countdown-region {
    max-width: var(--max);
    margin: 0 auto;
    padding: 24px;
    display: grid;
    gap: 16px;
}

.countdown-strip {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 20px 24px;
    box-shadow: var(--shadow);
}

.countdown-grid {
    display: flex;
    gap: 12px;
    margin-top: 12px;
}

.countdown-grid .box {
    flex: 1;
    text-align: center;
    background: var(--surface-2);
    border-radius: 10px;
    padding: 12px 8px;
}

.countdown-grid h2 {
    font-family: var(--font-display);
    font-size: 1.75rem;
    color: var(--brand);
}

/* —— Gallery —— */
#gallery-grid .card {
    background: var(--surface);
    border-radius: var(--radius);
    overflow: hidden;
    border: 1px solid var(--line);
}

#gallery-grid img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.social-follow a {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 18px;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 999px;
    font-weight: 600;
    color: var(--brand);
    margin: 4px;
}

/* Verify section */
.verify-inactive {
    max-width: 560px;
    margin: 0 auto;
    padding: 32px 28px;
    text-align: center;
    background: var(--surface);
    border: 1px dashed var(--line);
    border-radius: var(--radius-lg);
    color: var(--ink-soft);
}
.verify-inactive i { font-size: 2rem; color: var(--accent); margin-bottom: 12px; }
.verify-inactive h3 { color: var(--ink); margin-bottom: 8px; font-size: 1.15rem; }
.verify-panel label { display: block; font-weight: 700; margin: 12px 0 6px; font-size: 0.88rem; }
.verify-panel select,
.verify-panel input {
    width: 100%;
    padding: 12px 14px;
    border-radius: 12px;
    border: 1px solid var(--line);
    font-family: var(--font);
}
.verify-search-btn { width: 100%; margin-top: 16px; border: none; cursor: pointer; }
.verify-table { width: 100%; margin-top: 16px; border-collapse: collapse; font-size: 0.9rem; }
.verify-table th,
.verify-table td { padding: 10px 12px; border-bottom: 1px solid var(--line); text-align: left; }
.verify-table th { background: var(--surface-2); font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.04em; }
.verify-count { font-weight: 600; color: var(--brand); margin-bottom: 8px; }
.verify-msg-error { color: #b91c1c; font-weight: 600; }
.verify-msg-muted { color: var(--muted); }
.nav-links a.nav-disabled { opacity: 0.45; pointer-events: none; }

.hidden { display: none !important; }
.muted { color: var(--muted); text-align: center; padding: 24px; }

.site-banner {
    max-width: var(--max);
    margin: 0 auto;
    padding: 16px 24px 0;
}

.site-banner img {
    width: 100%;
    border-radius: var(--radius);
    max-height: 200px;
    object-fit: cover;
}

/* —— Responsive —— */
@media (max-width: 900px) {
    .hero-container { grid-template-columns: 1fr; }
    .home-split { grid-template-columns: 1fr; }
    .notices-panel { position: static; }
    .contact-grid { grid-template-columns: 1fr; }
}

.nav-backdrop {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.4);
    z-index: 999;
}
.site-header.nav-open .nav-backdrop {
    display: block;
}

@media (max-width: 768px) {
    .nav-toggle { display: block; z-index: 1002; position: relative; }
    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: #fff;
        flex-direction: column;
        padding: 16px;
        border-bottom: 1px solid var(--line);
        box-shadow: var(--shadow-lg);
        z-index: 1001;
        max-height: min(70vh, 480px);
        overflow-y: auto;
    }
    .site-header.nav-open .nav-links { display: flex; }
    body.nav-menu-open { overflow: hidden; }
    .nav-links .btn-portal { margin-left: 0; width: 100%; text-align: center; }
    .hero { padding: 48px 20px 56px; }
    .hero-stats { gap: 20px; }
}
