:root {
    --primary: #2563eb;
    --primary-dark: #1d4ed8;
    --primary-light: #3b82f6;
    --primary-subtle: #eff6ff;
    --accent: #f59e0b;
    --bg: #ffffff;
    --bg-alt: #f8fafc;
    --bg-gradient: linear-gradient(135deg, #0f172a 0%, #1e293b 50%, #0f172a 100%);
    --text: #1e293b;
    --text-secondary: #475569;
    --text-muted: #94a3b8;
    --card-bg: #ffffff;
    --border: #e2e8f0;
    --shadow-sm: 0 1px 2px rgba(0,0,0,0.05);
    --shadow-md: 0 4px 6px -1px rgba(0,0,0,0.1), 0 2px 4px -2px rgba(0,0,0,0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0,0,0,0.1), 0 4px 6px -4px rgba(0,0,0,0.1);
    --shadow-xl: 0 20px 25px -5px rgba(0,0,0,0.1), 0 8px 10px -6px rgba(0,0,0,0.1);
    --radius-sm: 0.5rem;
    --radius-md: 0.75rem;
    --radius-lg: 1rem;
    --radius-xl: 1.5rem;
    --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

html.dark {
    --bg: #0f172a;
    --bg-alt: #1e293b;
    --bg-gradient: linear-gradient(135deg, #020617 0%, #0f172a 50%, #020617 100%);
    --text: #f1f5f9;
    --text-secondary: #cbd5e1;
    --text-muted: #64748b;
    --card-bg: #1e293b;
    --border: #334155;
    --primary-subtle: #1e3a5f;
    --shadow-sm: 0 1px 2px rgba(0,0,0,0.3);
    --shadow-md: 0 4px 6px -1px rgba(0,0,0,0.4), 0 2px 4px -2px rgba(0,0,0,0.3);
    --shadow-lg: 0 10px 15px -3px rgba(0,0,0,0.4), 0 4px 6px -4px rgba(0,0,0,0.3);
    --shadow-xl: 0 20px 25px -5px rgba(0,0,0,0.4), 0 8px 10px -6px rgba(0,0,0,0.3);
}

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

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    -webkit-font-smoothing: antialiased;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.main-content {
    flex: 1;
}

/* ===== NAVBAR ===== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(255,255,255,0.85);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border);
    transition: var(--transition);
}

html.dark .navbar {
    background: rgba(15,23,42,0.92);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 4rem;
}

.nav-logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary);
    text-decoration: none;
    letter-spacing: -0.5px;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    list-style: none;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-secondary);
    font-weight: 500;
    font-size: 0.9rem;
    padding: 0.5rem 1rem;
    border-radius: var(--radius-md);
    transition: var(--transition);
    position: relative;
}

.nav-links a:hover {
    color: var(--primary);
    background: var(--primary-subtle);
}

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
}

.nav-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--text);
    border-radius: 2px;
    transition: var(--transition);
}

.nav-toggle#darkModeToggle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: var(--radius-md);
    background: var(--bg-alt);
    border: 1px solid var(--border);
    color: var(--text);
    transition: var(--transition);
}

.nav-toggle#darkModeToggle:hover {
    background: var(--primary-subtle);
    border-color: var(--primary);
    color: var(--primary);
}

.nav-toggle#darkModeToggle .sun-icon { display: block; }
.nav-toggle#darkModeToggle .moon-icon { display: none; }

html.dark .nav-toggle#darkModeToggle .sun-icon { display: none; }
html.dark .nav-toggle#darkModeToggle .moon-icon { display: block; }

/* ===== FOOTER ===== */
.footer {
    background: var(--bg-alt);
    border-top: 1px solid var(--border);
    padding: 2rem 0;
    margin-top: 4rem;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
    text-align: center;
    color: var(--text-muted);
    font-size: 0.875rem;
}

/* ===== HERO SECTION ===== */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
    background: var(--bg-gradient);
}

.hero-bg {
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at 20% 50%, rgba(37,99,235,0.1) 0%, transparent 60%),
                radial-gradient(ellipse at 80% 50%, rgba(245,158,11,0.05) 0%, transparent 50%);
    pointer-events: none;
}

.hero-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    position: relative;
    z-index: 1;
    width: 100%;
}

.hero-text {
    color: white;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1.5rem;
    letter-spacing: -1px;
}

.title-line {
    display: block;
}

.title-line.highlight {
    background: linear-gradient(135deg, var(--primary-light), #60a5fa);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 1.125rem;
    color: rgba(255,255,255,0.7);
    margin-bottom: 2.5rem;
    max-width: 540px;
    line-height: 1.7;
}

.hero-stats {
    display: flex;
    align-items: center;
    gap: 2rem;
    margin-bottom: 2.5rem;
}

.stat {
    text-align: center;
}

.stat-number {
    display: block;
    font-size: 2rem;
    font-weight: 700;
    color: white;
}

.stat-label {
    font-size: 0.8rem;
    color: rgba(255,255,255,0.6);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.stat-divider {
    width: 1px;
    height: 50px;
    background: rgba(255,255,255,0.15);
}

.hero-actions {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

/* ===== DNA VISUAL → PREGNANCY TEST ===== */
.hero-visual {
    display: flex;
    justify-content: center;
    align-items: center;
}

.dna-helix {
    position: relative;
    width: 200px;
    height: 400px;
}

.dna-strand {
    position: absolute;
    width: 4px;
    height: 100%;
    left: 50%;
    top: 0;
    background: linear-gradient(180deg, transparent, var(--primary-light), #60a5fa, transparent);
    border-radius: 2px;
    opacity: 0.3;
    transform-origin: center center;
    transform: translateX(-50%) rotate(var(--strand-angle));
    animation: convergeLines 8s ease-in-out infinite;
    animation-fill-mode: backwards;
}

.dna-strand:nth-child(1) { animation-delay: 0s; }
.dna-strand:nth-child(2) { animation-delay: 0.15s; }
.dna-strand:nth-child(3) { animation-delay: 0.3s; }
.dna-strand:nth-child(4) { animation-delay: 0.45s; }
.dna-strand:nth-child(5) { animation-delay: 0.6s; }
.dna-strand:nth-child(6) { animation-delay: 0.75s; }

@keyframes convergeLines {
    0% {
        opacity: 0.2;
        transform: translateX(-50%) rotate(var(--strand-angle)) scaleY(1);
    }
    15% {
        opacity: 0.6;
        transform: translateX(-50%) rotate(var(--strand-angle)) scaleY(1.05);
    }
    35% {
        opacity: 0.4;
        transform: translateX(-50%) rotate(0deg) scaleY(1);
    }
    50% {
        opacity: 0.7;
        transform: translateX(-50%) rotate(0deg) scaleY(1);
    }
    75% {
        opacity: 0.8;
        transform: translateX(-50%) rotate(0deg) scaleY(1);
    }
    100% {
        opacity: 0.3;
        transform: translateX(-50%) rotate(var(--strand-angle)) scaleY(1);
    }
}

.dna-strand:nth-child(1) { --strand-angle: 0deg; }
.dna-strand:nth-child(2) { --strand-angle: 30deg; }
.dna-strand:nth-child(3) { --strand-angle: 60deg; }
.dna-strand:nth-child(4) { --strand-angle: 90deg; }
.dna-strand:nth-child(5) { --strand-angle: 120deg; }
.dna-strand:nth-child(6) { --strand-angle: 150deg; }

/* Pregnancy test result */
.test-result {
    position: absolute;
    top: 0;
    left: 50%;
    width: 60px;
    height: 100%;
    transform: translateX(-50%);
    z-index: 2;
    pointer-events: none;
}

/* Blue gradient stick — full height, wider in middle, rounded tapered ends */
.test-result::before {
    content: '';
    position: absolute;
    top: 6px;
    left: 50%;
    width: 26px;
    height: calc(100% - 12px);
    transform: translateX(-50%) scaleY(0);
    background: linear-gradient(180deg, transparent, var(--primary-light), #60a5fa, transparent);
    border-radius: 45%;
    animation: showStick 8s ease-in-out infinite backwards;
    filter: blur(1px);
}

/* Horizontal result bars — short, inside the stick */
.test-bar {
    position: absolute;
    left: 50%;
    width: 18px;
    height: 4px;
    background: #22c55e;
    border-radius: 999px;
    transform: translateX(-50%);
    box-shadow: 0 0 10px rgba(34, 197, 94, 0.6), 0 0 20px rgba(34, 197, 94, 0.3);
    opacity: 0;
}

.test-bar.top {
    top: calc(50% - 7px);
    animation: showBars 8s ease-in-out infinite, barPulse 2s ease-in-out infinite 4.2s;
}

.test-bar.bottom {
    top: calc(50% + 7px);
    animation: showBars 8s ease-in-out infinite 0.2s, barPulse 2s ease-in-out infinite 4.4s;
}

@keyframes showStick {
    0%, 38% {
        opacity: 0;
        transform: translateX(-50%) scaleY(0.1);
    }
    43% {
        opacity: 1;
        transform: translateX(-50%) scaleY(1.05);
    }
    48% {
        opacity: 1;
        transform: translateX(-50%) scaleY(1);
    }
    76% {
        opacity: 1;
        transform: translateX(-50%) scaleY(1);
    }
    82% {
        opacity: 0;
        transform: translateX(-50%) scaleY(0.1);
    }
    100% {
        opacity: 0;
        transform: translateX(-50%) scaleY(0.1);
    }
}

@keyframes barPulse {
    0%, 100% {
        box-shadow: 0 0 10px rgba(34, 197, 94, 0.6), 0 0 20px rgba(34, 197, 94, 0.3);
    }
    50% {
        box-shadow: 0 0 18px rgba(34, 197, 94, 0.9), 0 0 35px rgba(34, 197, 94, 0.5);
    }
}

@keyframes showBars {
    0%, 40% {
        opacity: 0;
        transform: translateX(-50%) scaleX(0.3);
    }
    46% {
        opacity: 1;
        transform: translateX(-50%) scaleX(1.1);
    }
    50% {
        opacity: 1;
        transform: translateX(-50%) scaleX(1);
    }
    76% {
        opacity: 1;
        transform: translateX(-50%) scaleX(1);
    }
    82% {
        opacity: 0;
        transform: translateX(-50%) scaleX(0.3);
    }
    100% {
        opacity: 0;
        transform: translateX(-50%) scaleX(0.3);
    }
}



.scroll-indicator {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    color: rgba(255,255,255,0.4);
    font-size: 0.75rem;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.scroll-arrow {
    width: 20px;
    height: 20px;
    border-right: 2px solid rgba(255,255,255,0.4);
    border-bottom: 2px solid rgba(255,255,255,0.4);
    transform: rotate(45deg);
    animation: scrollBounce 2s ease-in-out infinite;
}

@keyframes scrollBounce {
    0%, 100% { transform: rotate(45deg) translate(0, 0); }
    50% { transform: rotate(45deg) translate(4px, 4px); }
}

/* ===== INFO SECTION ===== */
.info-section {
    padding: 6rem 0;
    background: var(--bg-alt);
}

.section-title {
    font-size: 2.25rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 3rem;
    letter-spacing: -0.5px;
}

.info-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.info-card {
    background: var(--card-bg);
    padding: 2.5rem;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--border);
    transition: var(--transition);
    text-align: center;
}

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

.card-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: var(--primary);
}

.info-card h3 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
}

.info-card p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.7;
}

.home-locations {
    text-align: center;
    margin-top: 3.5rem;
    padding-top: 2.5rem;
    border-top: 1px solid var(--border);
}

.home-locations h3 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1.25rem;
    color: var(--text);
}

.home-locations .locations-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.home-locations .location-item {
    text-align: left;
}

/* ===== BUTTONS ===== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 1.75rem;
    font-size: 0.95rem;
    font-weight: 600;
    border-radius: var(--radius-md);
    text-decoration: none;
    border: 2px solid transparent;
    cursor: pointer;
    transition: var(--transition);
    font-family: inherit;
}

.btn-primary {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
}

.btn-primary:hover {
    background: var(--primary-dark);
    border-color: var(--primary-dark);
}

.btn-outline {
    background: transparent;
    color: white;
    border-color: rgba(255,255,255,0.3);
}

.btn-outline:hover {
    border-color: rgba(255,255,255,0.6);
    background: rgba(255,255,255,0.05);
}

.btn-full {
    width: 100%;
}

.btn-submit {
    width: 100%;
    padding: 1rem;
    font-size: 1.05rem;
    margin-top: 1.5rem;
}

.btn-glow {
    position: relative;
    overflow: hidden;
}

.btn-glow::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.2) 0%, transparent 60%);
    opacity: 0;
    transition: opacity 0.5s;
}

.btn-glow:hover::after {
    opacity: 1;
}

/* ===== ACCESS PAGE ===== */
.access-section {
    min-height: calc(100vh - 4rem);
    display: flex;
    align-items: center;
    padding: 6rem 0;
    background: linear-gradient(135deg, var(--bg-alt) 0%, var(--bg) 100%);
}

.access-card {
    max-width: 480px;
    margin: 0 auto;
    background: var(--card-bg);
    padding: 3rem;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-xl);
    border: 1px solid var(--border);
}

.access-header {
    text-align: center;
    margin-bottom: 2rem;
}

.access-header h1 {
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.access-header p {
    color: var(--text-muted);
    font-size: 0.95rem;
}

.access-note {
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border);
}

.access-note p {
    font-size: 0.8rem;
    color: var(--text-muted);
    text-align: center;
}

/* ===== ABOUT PAGE ===== */
.about-section {
    padding: 6rem 0 4rem;
    position: relative;
}

.session-timer {
    position: fixed;
    top: 4.5rem;
    right: 1.5rem;
    background: rgba(37,99,235,0.95);
    color: white;
    padding: 0.6rem 1.2rem;
    border-radius: 2rem;
    font-size: 0.85rem;
    font-weight: 600;
    z-index: 100;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    backdrop-filter: blur(8px);
    box-shadow: var(--shadow-lg);
}

.timer-label {
    opacity: 0.85;
}

.timer-value {
    font-family: 'Courier New', monospace;
    font-size: 1rem;
}

.watermark-banner {
    background: linear-gradient(135deg, #fef3c7, #fde68a);
    border-bottom: 1px solid #f59e0b;
    padding: 0.5rem;
    text-align: center;
    font-size: 0.8rem;
    font-weight: 600;
    color: #92400e;
    letter-spacing: 1px;
}

html.dark .watermark-banner {
    background: linear-gradient(135deg, #422006, #713f12);
    border-bottom-color: #a16207;
    color: #fde68a;
}

.about-header {
    text-align: center;
    margin-bottom: 3rem;
    padding-top: 2rem;
}

.about-header h1 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.about-tagline {
    color: var(--text-muted);
    font-size: 1.1rem;
}

.about-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
}

.about-card {
    background: var(--card-bg);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--border);
    overflow: hidden;
    transition: var(--transition);
}

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

.about-image-container {
    position: relative;
    width: 100%;
    overflow: hidden;
    background: var(--bg-alt);
}

/* ===== MEDIA GALLERY GRID ===== */
.media-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 6px;
    padding: 8px;
}

.media-grid-item {
    position: relative;
    aspect-ratio: 1;
    overflow: hidden;
    border-radius: var(--radius-sm);
    cursor: pointer;
    background: var(--bg-alt);
}

.media-grid-item img,
.media-grid-item video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.media-grid-item .watermark-overlay {
    bottom: 4px;
    right: 4px;
    font-size: 0.6rem;
    padding: 2px 6px;
}

/* ===== LIGHTBOX ===== */
.lightbox {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.92);
    align-items: center;
    justify-content: center;
}

.lightbox.open {
    display: flex;
}

.lightbox-content {
    max-width: 90vw;
    max-height: 90vh;
}

.lightbox-content img {
    max-width: 100%;
    max-height: 90vh;
    object-fit: contain;
    display: block;
    margin: 0 auto;
    border-radius: 4px;
}

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 30px;
    color: white;
    font-size: 40px;
    font-weight: 300;
    cursor: pointer;
    z-index: 10000;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.2s;
    line-height: 1;
}

.lightbox-close:hover {
    opacity: 0.7;
}

.lightbox-prev,
.lightbox-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    color: white;
    font-size: 36px;
    cursor: pointer;
    padding: 16px;
    z-index: 10000;
    transition: opacity 0.2s;
    user-select: none;
    font-weight: 300;
    line-height: 1;
}

.lightbox-prev:hover,
.lightbox-next:hover {
    opacity: 0.7;
}

.lightbox-prev {
    left: 10px;
}

.lightbox-next {
    right: 10px;
}

@media (max-width: 768px) {
    .media-grid {
        grid-template-columns: repeat(auto-fill, minmax(90px, 1fr));
        gap: 4px;
        padding: 6px;
    }
    .lightbox-prev { left: 4px; font-size: 28px; }
    .lightbox-next { right: 4px; font-size: 28px; }
    .lightbox-close { top: 10px; right: 10px; font-size: 32px; }
}

.about-photo {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.watermark-overlay {
    position: absolute;
    bottom: 10px;
    right: 10px;
    background: rgba(0,0,0,0.65);
    color: rgba(255,255,255,0.7);
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 0.7rem;
    font-family: 'Courier New', monospace;
    letter-spacing: 0.5px;
    pointer-events: none;
    user-select: none;
    -webkit-user-select: none;
}

.about-photo:hover + .watermark-overlay {
    opacity: 0.5;
}

.about-card-content {
    padding: 1.75rem;
}

.about-card-content h2 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
}

.about-card-content p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.7;
}

.traits-list {
    list-style: none;
}

.traits-list li {
    padding: 0.5rem 0;
    border-bottom: 1px solid var(--border);
    display: flex;
    justify-content: space-between;
    font-size: 0.95rem;
}

.traits-list li:last-child {
    border-bottom: none;
}

.traits-list span {
    font-weight: 600;
    color: var(--text);
}

/* ===== DONOR LOCATIONS ===== */
.donor-locations {
    max-width: 680px;
    margin: 0 auto 2.5rem;
    background: linear-gradient(135deg, var(--primary-subtle), var(--card-bg));
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    padding: 1.5rem 2rem;
}

.locations-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.locations-icon {
    font-size: 1.5rem;
    color: var(--primary);
}

.locations-header h2 {
    font-size: 1.15rem;
    font-weight: 600;
    color: var(--text);
}

.locations-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.location-item {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    background: var(--card-bg);
    border-radius: var(--radius-md);
    border: 1px solid var(--border);
    transition: var(--transition);
}

html.dark .location-item {
    background: var(--bg-alt);
}

.location-item.current {
    border-color: var(--primary);
    background: rgba(37,99,235,0.04);
}

html.dark .location-item.current {
    background: rgba(37,99,235,0.12);
}

.loc-badge {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--text-muted);
    white-space: nowrap;
    min-width: 110px;
    padding-top: 1px;
}

.loc-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--text-muted);
    flex-shrink: 0;
}

.location-item.current .loc-badge {
    color: var(--primary);
}

.location-item.current .loc-dot {
    background: #22c55e;
}

.loc-dot.pulse {
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(34,197,94,0.4); }
    50% { box-shadow: 0 0 0 6px rgba(34,197,94,0); }
}

.loc-details {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
}

.loc-details strong {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text);
}

.loc-dates, .loc-notes {
    font-size: 0.82rem;
    color: var(--text-muted);
}

@media (max-width: 600px) {
    .location-item {
        flex-direction: column;
        gap: 0.3rem;
    }
    .loc-badge {
        min-width: unset;
    }
}

/* ===== APPLY PAGE ===== */
.apply-section {
    padding: 6rem 0;
    min-height: calc(100vh - 4rem);
}

.apply-header {
    text-align: center;
    margin-bottom: 3rem;
}

.apply-header h1 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.apply-header p {
    color: var(--text-muted);
    font-size: 1.1rem;
}

.apply-form {
    max-width: 680px;
    margin: 0 auto;
    background: var(--card-bg);
    padding: 3rem;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-xl);
    border: 1px solid var(--border);
}

.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

.form-group {
    margin-bottom: 0.5rem;
}

.form-group label {
    display: block;
    font-weight: 600;
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
    color: var(--text);
}

.required {
    color: #dc2626;
}

.optional {
    color: var(--text-muted);
    font-weight: 400;
    font-size: 0.8rem;
}

.form-group input,
.form-group select {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 2px solid var(--border);
    border-radius: var(--radius-md);
    font-size: 0.95rem;
    font-family: inherit;
    background: var(--bg);
    color: var(--text);
    transition: var(--transition);
    outline: none;
}

.form-group input:focus,
.form-group select:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(37,99,235,0.1);
}

.form-group input::placeholder {
    color: var(--text-muted);
}

.methods-group {
    margin-top: 1rem;
}

.checkbox-group {
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
    margin-top: 0.5rem;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    font-size: 0.95rem;
    user-select: none;
}

.checkbox-label input[type="checkbox"] {
    width: 1.2rem;
    height: 1.2rem;
    accent-color: var(--primary);
    cursor: pointer;
}

.field-hint {
    color: var(--text-muted);
    font-size: 0.8rem;
    margin-top: 0.5rem;
}

.form-section {
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border);
}

.form-section h2 {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 0.25rem;
    color: var(--text);
}

.form-section .field-hint {
    margin-bottom: 1.25rem;
}

.form-section .form-grid {
    margin-top: 0;
}

.form-section textarea {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 2px solid var(--border);
    border-radius: var(--radius-md);
    font-size: 0.95rem;
    font-family: inherit;
    background: var(--bg);
    color: var(--text);
    transition: var(--transition);
    outline: none;
    resize: vertical;
    min-height: 120px;
    line-height: 1.6;
}

.form-section textarea:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(37,99,235,0.1);
}

.form-section textarea::placeholder {
    color: var(--text-muted);
}

/* ===== FIELD ERRORS ===== */
.field-error {
    display: block;
    margin-top: 0.35rem;
    font-size: 0.75rem;
    color: #dc2626;
    min-height: 1rem;
}

.form-group input.is-invalid,
.form-group select.is-invalid,
.form-group textarea.is-invalid {
    border-color: #dc2626;
}

.form-group input.is-invalid:focus,
.form-group select.is-invalid:focus,
.form-group textarea.is-invalid:focus {
    box-shadow: 0 0 0 3px rgba(220,38,38,0.1);
}

/* ===== TOAST NOTIFICATIONS ===== */
.toast-container {
    position: fixed;
    top: 5rem;
    right: 1.5rem;
    z-index: 10000;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.toast {
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 1rem 1.5rem;
    box-shadow: var(--shadow-xl);
    display: flex;
    align-items: center;
    gap: 0.75rem;
    min-width: 280px;
    max-width: 400px;
    animation: slideIn 0.3s ease;
}

.toast.success {
    border-left: 4px solid #16a34a;
}

.toast.error {
    border-left: 4px solid #dc2626;
}

.toast.warning {
    border-left: 4px solid #ca8a04;
}

.toast.info {
    border-left: 4px solid #2563eb;
}

.toast-icon {
    font-size: 1.25rem;
    flex-shrink: 0;
}

.toast.success .toast-icon { color: #16a34a; }
.toast.error .toast-icon { color: #dc2626; }
.toast.warning .toast-icon { color: #ca8a04; }
.toast.info .toast-icon { color: #2563eb; }

.toast-message {
    flex: 1;
    font-size: 0.9rem;
    line-height: 1.5;
}

.toast-close {
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 1.25rem;
    cursor: pointer;
    padding: 0;
    line-height: 1;
}

.toast-close:hover { color: var(--text); }

@keyframes slideIn {
    from { opacity: 0; transform: translateX(100%); }
    to { opacity: 1; transform: translateX(0); }
}

@keyframes slideOut {
    from { opacity: 1; transform: translateX(0); }
    to { opacity: 0; transform: translateX(100%); }
}

.toast.removing { animation: slideOut 0.3s ease forwards; }

/* ===== ALERTS ===== */
.alert {
    max-width: 680px;
    margin: 0 auto 2rem;
    padding: 1rem 1.5rem;
    border-radius: var(--radius-md);
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
}

.alert-success {
    background: #f0fdf4;
    border: 1px solid #bbf7d0;
    color: #166534;
}

html.dark .alert-success {
    background: #052e16;
    border-color: #166534;
    color: #86efac;
}

.alert-error {
    background: #fef2f2;
    border: 1px solid #fecaca;
    color: #991b1b;
}

html.dark .alert-error {
    background: #2d0a0a;
    border-color: #991b1b;
    color: #fca5a5;
}

.alert-icon {
    font-size: 1.25rem;
    flex-shrink: 0;
    line-height: 1.4;
}

.alert strong {
    display: block;
    margin-bottom: 0.25rem;
}

.alert p {
    font-size: 0.9rem;
}

/* ===== 404 ===== */
.error-section {
    min-height: calc(100vh - 4rem);
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.error-card h1 {
    font-size: 8rem;
    font-weight: 800;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1;
    margin-bottom: 0.5rem;
}

.error-card p {
    color: var(--text-muted);
    font-size: 1.2rem;
    margin-bottom: 2rem;
}

/* ===== FADE IN ANIMATIONS ===== */
.fade-in {
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.6s ease forwards;
}

.fade-in:nth-child(1) { animation-delay: 0.1s; }
.fade-in:nth-child(2) { animation-delay: 0.2s; }
.fade-in:nth-child(3) { animation-delay: 0.3s; }
.fade-in:nth-child(4) { animation-delay: 0.4s; }

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
    .hero-content {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }

    .hero-subtitle {
        margin: 0 auto 2.5rem;
    }

    .hero-stats {
        justify-content: center;
    }

    .hero-actions {
        justify-content: center;
    }

    .hero-visual {
        display: none;
    }

    .hero-title {
        font-size: 2.75rem;
    }

    .about-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
        position: absolute;
        top: 4rem;
        left: 0;
        right: 0;
        background: rgba(255,255,255,0.98);
        backdrop-filter: blur(16px);
        flex-direction: column;
        padding: 1rem;
        border-bottom: 1px solid var(--border);
        box-shadow: var(--shadow-lg);
    }

    html.dark .nav-links {
        background: rgba(15,23,42,0.98);
    }

    .nav-links.open {
        display: flex;
    }

    .nav-links a {
        padding: 0.75rem 1rem;
        width: 100%;
    }

    .nav-toggle {
        display: flex;
    }

    .hero-title {
        font-size: 2.25rem;
    }

    .hero-stats {
        flex-direction: column;
        gap: 1rem;
    }

    .stat-divider {
        display: none;
    }

    .info-grid {
        grid-template-columns: 1fr;
    }

    .form-grid {
        grid-template-columns: 1fr;
    }

    .apply-form {
        padding: 1.75rem;
    }

    .access-card {
        padding: 2rem;
    }

    .session-timer {
        top: auto;
        bottom: 1rem;
        right: 1rem;
        left: 1rem;
        justify-content: center;
        border-radius: var(--radius-md);
    }

    .about-header h1 {
        font-size: 2rem;
    }

    .checkbox-group {
        flex-direction: column;
        gap: 0.75rem;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 1.75rem;
    }

    .hero-subtitle {
        font-size: 1rem;
    }

    .stat-number {
        font-size: 1.5rem;
    }

    .section-title {
        font-size: 1.75rem;
    }

    .apply-header h1 {
        font-size: 1.75rem;
    }

    .access-header h1 {
        font-size: 1.5rem;
    }

    .faq-header h1 {
        font-size: 1.75rem;
    }

    .faq-question {
        font-size: 0.95rem;
        padding: 1rem 1.25rem;
    }
}

/* ===== FAQ PAGE ===== */
.faq-section {
    padding: 4rem 0;
}

.faq-header {
    text-align: center;
    margin-bottom: 3rem;
}

.faq-header h1 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.faq-tagline {
    color: var(--text-muted);
    font-size: 1.1rem;
}

.faq-list {
    max-width: 720px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.faq-item {
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: box-shadow 0.3s;
}

.faq-item:hover {
    box-shadow: var(--shadow-md);
}

.faq-question {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1.25rem 1.5rem;
    background: none;
    border: none;
    cursor: pointer;
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--text);
    text-align: left;
    font-family: inherit;
    line-height: 1.5;
    transition: color 0.2s;
}

.faq-question:hover {
    color: var(--primary);
}

.faq-icon {
    flex-shrink: 0;
    color: var(--text-muted);
    transition: transform 0.3s, color 0.2s;
}

.faq-item.open .faq-icon {
    transform: rotate(180deg);
    color: var(--primary);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease;
}

.faq-item.open .faq-answer {
    max-height: 600px;
}

.faq-answer-inner {
    padding: 0 1.5rem 1.25rem;
    color: var(--text-muted);
    line-height: 1.7;
    font-size: 0.95rem;
}

.faq-footer {
    text-align: center;
    margin-top: 3rem;
    color: var(--text-muted);
}

.faq-footer a {
    color: var(--primary);
    text-decoration: underline;
}
