/* ==========================================================
   BROCK Medicare SEP Finder — Dark Editorial Theme
   ========================================================== */

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

/* Variables */
:root {
    --bg-dark: #0a0a0a;
    --bg-card: #111111;
    --bg-card-hover: #181818;
    --border-color: rgba(255, 255, 255, 0.1);
    --border-hover: rgba(255, 255, 255, 0.25);
    --text-primary: #ffffff;
    --text-secondary: #999999;
    --text-muted: #666666;
    --accent: #ffffff;
    --accent-secondary: #cccccc;
    --accent-dim: #888888;
    --gradient-primary: linear-gradient(135deg, #ffffff 0%, #999999 50%, #666666 100%);
    --gradient-border: linear-gradient(135deg, rgba(255, 255, 255, 0.4), rgba(255, 255, 255, 0.2), rgba(255, 255, 255, 0.1));
    --glow: 0 0 60px rgba(255, 255, 255, 0.08);

    /* Status Colors */
    --red: #ef4444;
    --amber: #f59e0b;
    --green: #10b981;
    --blue: #60a5fa;

    --header-h: 68px;
    --sticky-h: 56px;
}

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

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background-color: var(--bg-dark);
    color: var(--text-primary);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

a {
    color: inherit;
    text-decoration: none;
}

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

/* Layout */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ==================== HEADER ==================== */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    padding: 20px 0;
    background: rgba(10, 10, 10, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-link {
    display: flex;
    align-items: center;
}

.logo-img {
    height: 28px;
    width: auto;
}

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

.nav-link {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: color 0.2s;
}

.nav-link:hover {
    color: var(--text-primary);
}

.nav-link i {
    font-size: 12px;
    margin-right: 6px;
    opacity: 0.6;
}

/* ==================== BUTTONS ==================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 24px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.2s ease;
    border: none;
    font-family: inherit;
    white-space: nowrap;
}

.btn-sm {
    padding: 8px 14px;
    font-size: 13px;
}

.btn-primary {
    background: var(--accent);
    color: #000;
}

.btn-primary:hover {
    background: #e5e5e5;
    box-shadow: 0 0 30px rgba(255, 255, 255, 0.15);
}

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

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

/* ==================== HERO — SEARCH HUB ==================== */
.hero {
    position: relative;
    overflow: hidden;
    background: 
        linear-gradient(180deg, 
            rgba(10, 10, 10, 0.88) 0%,
            rgba(10, 10, 10, 0.75) 50%,
            rgba(10, 10, 10, 0.92) 100%
        ),
        url('public/BROCK marble-02.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    padding: calc(var(--header-h) + 40px) 0 48px;
}

.hero::before {
    content: '';
    position: absolute;
    top: 30%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 900px;
    height: 600px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.04) 0%, transparent 70%);
    pointer-events: none;
}

.hero-inner {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    gap: 28px;
}

.hero-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 24px;
    flex-wrap: wrap;
}

.hero-title {
    flex-shrink: 0;
}

.hero-headline {
    font-size: clamp(28px, 4vw, 40px);
    font-weight: 700;
    line-height: 1.15;
    letter-spacing: -0.02em;
    margin-bottom: 6px;
}

.gradient-text {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtext {
    font-size: 15px;
    color: var(--text-secondary);
    line-height: 1.5;
}

/* ==================== SECTION COMMON ==================== */
.section-badge {
    display: inline-block;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.12em;
    color: var(--text-muted);
    margin-bottom: 12px;
    text-transform: uppercase;
}

.section-title {
    font-size: clamp(28px, 3.5vw, 40px);
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -0.02em;
}

/* (Dashboard merged into hero — stat chips + search bar styles below) */

/* Stat chips — horizontal compact row */
.stats-row {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.stat-chip {
    display: flex;
    align-items: center;
    gap: 8px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 100px;
    padding: 8px 16px;
    transition: all 0.2s;
}

.stat-chip:hover {
    border-color: var(--border-hover);
}

.stat-chip.featured {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.2);
}

.stat-chip-number {
    font-size: 20px;
    font-weight: 700;
    color: var(--text-primary);
    line-height: 1;
}

.stat-chip-label {
    font-size: 12px;
    font-weight: 500;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

/* Search bar */
.search-bar {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 24px;
}

.search-controls {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr auto;
    gap: 16px;
    align-items: end;
}

.control-group {
    display: flex;
    flex-direction: column;
}

.control-group label {
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--text-muted);
    margin-bottom: 6px;
}

.control-group input,
.control-group select {
    width: 100%;
    padding: 12px 16px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    font-size: 14px;
    font-family: inherit;
    color: var(--text-primary);
    transition: all 0.2s;
}

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

.control-group select {
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23666666' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    padding-right: 36px;
}

.control-group select option {
    background: var(--bg-card);
    color: var(--text-primary);
}

.control-group input:focus,
.control-group select:focus {
    outline: none;
    border-color: rgba(255, 255, 255, 0.3);
    background: rgba(255, 255, 255, 0.06);
}

.control-action {
    min-width: 0;
}

.action-buttons {
    display: flex;
    gap: 8px;
}

.action-buttons .btn {
    padding: 12px 20px;
}

/* ==================== STICKY SEARCH ==================== */
.sticky-search {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 99;
    background: rgba(10, 10, 10, 0.98);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-color);
    padding-top: var(--header-h);
    padding-bottom: 10px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
    transform: translateY(-100%);
    opacity: 0;
    transition: transform 0.25s ease, opacity 0.25s ease;
    pointer-events: none;
}

.sticky-search.visible {
    transform: translateY(0);
    opacity: 1;
    pointer-events: all;
}

.sticky-search-inner {
    display: flex;
    align-items: center;
    gap: 20px;
}

.sticky-stats {
    display: flex;
    align-items: center;
    gap: 8px;
    white-space: nowrap;
    flex-shrink: 0;
}

.sticky-stat {
    font-size: 18px;
    font-weight: 700;
    color: var(--text-primary);
}

.sticky-stat-label {
    font-size: 12px;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    font-weight: 500;
}

.sticky-controls {
    display: flex;
    gap: 8px;
    flex: 1;
    min-width: 0;
}

.sticky-controls input,
.sticky-controls select {
    flex: 1;
    min-width: 0;
    padding: 8px 12px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    font-size: 13px;
    font-family: inherit;
    color: var(--text-primary);
    transition: border-color 0.2s;
}

.sticky-controls input::placeholder {
    color: var(--text-muted);
}

.sticky-controls select {
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%23666666' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 10px center;
    padding-right: 28px;
}

.sticky-controls select option {
    background: var(--bg-card);
    color: var(--text-primary);
}

.sticky-controls input:focus,
.sticky-controls select:focus {
    outline: none;
    border-color: rgba(255, 255, 255, 0.3);
}

/* ==================== RESULTS ==================== */
.results-section {
    padding: 40px 0 60px;
}

.results-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
    gap: 16px;
}

.results-count {
    font-size: 14px;
    font-weight: 500;
    color: var(--text-secondary);
}


.results-container {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

/* ==================== STATE GROUP HEADERS ==================== */
.state-group-header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 20px 0 8px;
}

.state-group-header:first-child {
    padding-top: 0;
}

.state-group-label {
    font-size: 13px;
    font-weight: 700;
    color: var(--text-primary);
    background: rgba(255, 255, 255, 0.06);
    padding: 4px 12px;
    border-radius: 6px;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.state-group-count {
    font-size: 12px;
    color: var(--text-muted);
    font-weight: 500;
}

.state-group-line {
    flex: 1;
    height: 1px;
    background: var(--border-color);
}

/* ==================== SEP CARDS ==================== */
.sep-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 14px;
    overflow: hidden;
    transition: all 0.2s ease;
}

.sep-card:hover {
    border-color: rgba(255, 255, 255, 0.18);
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.3);
}


/* Card row layout — header line */
.sep-header {
    padding: 16px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
}

.sep-title h3 {
    font-size: 17px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 2px;
    letter-spacing: -0.01em;
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.sep-title h3 .title-state {
    color: var(--text-primary);
}

.sep-title h3 .title-sep {
    color: var(--text-primary);
    font-weight: 600;
    font-size: 16px;
}

.sep-title h3 .title-divider {
    color: var(--text-muted);
    font-weight: 300;
}

.sep-subtitle {
    color: var(--text-secondary);
    font-size: 13px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.sep-status {
    padding: 4px 12px;
    border-radius: 100px;
    font-size: 11px;
    font-weight: 600;
    white-space: nowrap;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    flex-shrink: 0;
}

.sep-status.urgent {
    background: rgba(239, 68, 68, 0.12);
    color: var(--red);
}

.sep-status.ending-soon {
    background: rgba(245, 158, 11, 0.12);
    color: var(--amber);
}

.sep-status.ongoing {
    background: rgba(16, 185, 129, 0.12);
    color: var(--green);
}

.sep-status.active {
    background: rgba(96, 165, 250, 0.12);
    color: var(--blue);
}

/* Details — compact meta row */
.sep-details {
    padding: 12px 20px;
    display: flex;
    gap: 24px;
    flex-wrap: wrap;
    border-top: 1px solid var(--border-color);
    background: rgba(255, 255, 255, 0.015);
}

.detail-item {
    display: flex;
    align-items: center;
    gap: 6px;
}

.detail-item i {
    color: var(--text-muted);
    width: 14px;
    text-align: center;
    font-size: 12px;
}

.detail-label {
    color: var(--text-muted);
    font-size: 12px;
}

.detail-value {
    color: var(--text-primary);
    font-weight: 600;
    font-size: 13px;
}

/* Counties — chip grid */
.sep-counties {
    padding: 0 20px 16px;
}

.counties-header {
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--text-muted);
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.counties-header i {
    font-size: 11px;
}

.counties-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.county-chip {
    display: inline-flex;
    align-items: center;
    padding: 4px 10px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border-color);
    border-radius: 6px;
    font-size: 12px;
    color: var(--text-secondary);
    line-height: 1.4;
    transition: all 0.15s ease;
}

.county-chip:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: var(--border-hover);
    color: var(--text-primary);
}

.county-chip.highlighted {
    background: rgba(96, 165, 250, 0.15);
    border-color: rgba(96, 165, 250, 0.4);
    color: #60a5fa;
    font-weight: 600;
    font-size: 13px;
    padding: 5px 12px;
    gap: 5px;
}

.county-chip.highlighted i {
    font-size: 10px;
    opacity: 0.7;
}

.county-chip.dimmed {
    opacity: 0.4;
    font-size: 11px;
    padding: 3px 8px;
}

.county-chip.dimmed:hover {
    opacity: 0.7;
}

.counties-matched {
    margin-bottom: 10px;
}

.counties-others {
    border-top: 1px solid var(--border-color);
    padding-top: 10px;
    margin-top: 2px;
}

.counties-others-overflow {
    max-height: 0;
    overflow: hidden;
    position: relative;
    transition: max-height 0.3s ease;
}

.counties-others-overflow.expanded {
    max-height: none;
}

/* Show more/less toggle for long county lists */
.counties-overflow {
    max-height: 120px;
    overflow: hidden;
    position: relative;
    transition: max-height 0.3s ease;
}

.counties-overflow.expanded {
    max-height: none;
}

.counties-show-more {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    margin-top: 8px;
    padding: 4px 12px;
    background: transparent;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    font-size: 11px;
    font-weight: 600;
    color: var(--text-muted);
    cursor: pointer;
    font-family: inherit;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    transition: all 0.15s ease;
}

.counties-show-more:hover {
    color: var(--text-primary);
    border-color: var(--border-hover);
}

/* Actions — inline */
.sep-actions {
    padding: 12px 20px;
    background: rgba(255, 255, 255, 0.02);
    border-top: 1px solid var(--border-color);
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.sep-actions .btn {
    font-size: 12px;
    padding: 8px 14px;
    border-radius: 8px;
}

/* ==================== NO RESULTS ==================== */
.no-results {
    text-align: center;
    padding: 80px 24px;
    color: var(--text-secondary);
}

.no-results i {
    font-size: 32px;
    color: var(--text-muted);
    margin-bottom: 16px;
    display: block;
}

.no-results h3 {
    font-size: 20px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 12px;
}

.no-results p {
    max-width: 400px;
    margin: 0 auto;
    line-height: 1.7;
    font-size: 15px;
}

/* ==================== LOADING ==================== */
.loading-spinner {
    text-align: center;
    padding: 60px;
    color: var(--text-secondary);
}

.spinner {
    width: 36px;
    height: 36px;
    border: 2px solid var(--border-color);
    border-top: 2px solid var(--text-primary);
    border-radius: 50%;
    animation: spin 0.7s linear infinite;
    margin: 0 auto 16px;
}

/* ==================== DISCLAIMER ==================== */
.disclaimer-section {
    padding: 48px 0;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.02) 0%, transparent 100%);
}

.disclaimer-content {
    border: 1px solid var(--border-color);
    border-radius: 14px;
    padding: 28px;
    background: var(--bg-card);
}

.disclaimer-content h4 {
    font-size: 15px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.disclaimer-content h4 i {
    color: var(--text-muted);
    font-size: 14px;
}

.disclaimer-content p {
    color: var(--text-secondary);
    line-height: 1.8;
    font-size: 14px;
}

/* ==================== FOOTER ==================== */
.footer {
    border-top: 1px solid var(--border-color);
}

.footer-main {
    padding: 48px 0 24px;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 32px;
}

.footer-brand {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.footer-logo {
    height: auto;
    width: 160px;
    opacity: 0.7;
    margin-bottom: 8px;
}

.footer-brand p {
    font-size: 15px;
    color: var(--text-secondary);
    font-weight: 500;
}

.footer-brand span {
    font-size: 13px;
    color: var(--text-muted);
}

.footer-meta {
    text-align: right;
}

.last-updated {
    font-size: 13px;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    gap: 6px;
}

.last-updated i {
    font-size: 11px;
    color: var(--text-muted);
}

.footer-bottom {
    border-top: 1px solid var(--border-color);
    padding: 20px 0;
}

.footer-bottom p {
    font-size: 14px;
    color: var(--text-muted);
}

/* ==================== ANIMATIONS ==================== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

/* ==================== RESPONSIVE ==================== */
@media (max-width: 1024px) {
    .search-controls {
        grid-template-columns: 1fr 1fr;
    }

    .control-action {
        grid-column: span 2;
    }

    .hero-top {
        flex-direction: column;
        align-items: flex-start;
    }
}

@media (max-width: 768px) {
    :root {
        --header-h: 56px;
    }

    .header {
        padding: 14px 0;
    }

    .logo-img {
        height: 24px;
    }

    .nav {
        gap: 20px;
    }

    .nav-link {
        font-size: 13px;
    }

    /* Hero */
    .hero {
        padding: calc(var(--header-h) + 24px) 0 32px;
    }

    .hero-top {
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
    }

    .hero-headline {
        font-size: clamp(24px, 6vw, 32px);
        margin-bottom: 4px;
    }

    .hero-subtext {
        font-size: 13px;
    }

    .stats-row {
        gap: 6px;
    }

    .stat-chip {
        padding: 6px 12px;
    }

    .stat-chip-number {
        font-size: 16px;
    }

    .stat-chip-label {
        font-size: 11px;
    }

    .container {
        padding: 0 16px;
    }

    /* Search */
    .search-bar {
        padding: 16px;
        border-radius: 12px;
    }

    .search-controls {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .control-action {
        grid-column: span 1;
    }

    .control-group input,
    .control-group select {
        padding: 12px 14px;
        font-size: 16px; /* Prevents iOS zoom */
        border-radius: 8px;
        min-height: 46px;
    }

    .action-buttons {
        width: 100%;
    }

    .action-buttons .btn {
        flex: 1;
        justify-content: center;
        min-height: 46px;
    }

    /* Sticky search */
    .sticky-search-inner {
        flex-direction: column;
        gap: 8px;
    }

    .sticky-stats {
        display: none;
    }

    .sticky-controls {
        flex-wrap: nowrap;
        gap: 7px;
    }

    .sticky-controls input,
    .sticky-controls select {
        flex: 1;
        min-width: 0;
        padding: 8px 8px;
        font-size: 12px;
    }

    .sticky-controls select {
        padding-right: 24px;
        background-position: right 6px center;
    }

    .sticky-controls .btn-sm {
        padding: 8px 10px;
        flex-shrink: 0;
    }

    /* Results */
    .results-section {
        padding: 32px 0 48px;
    }

    .results-toolbar {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
        margin-bottom: 16px;
    }

    /* SEP Cards */
    .sep-card {
        border-radius: 12px;
    }

    .sep-header {
        flex-direction: column;
        align-items: flex-start;
        padding: 14px 16px;
    }

    .sep-details {
        padding: 12px 16px;
        gap: 12px;
    }

    .sep-counties {
        padding: 0 16px 12px;
    }

    .sep-actions {
        padding: 12px 16px;
        flex-direction: column;
    }

    .sep-actions .btn {
        justify-content: center;
    }

    /* Disclaimer */
    .disclaimer-content {
        padding: 20px 16px;
    }

    /* Footer */
    .footer-main {
        flex-direction: column;
        padding: 32px 0 20px;
    }

    .footer-meta {
        text-align: left;
    }

    .footer-bottom {
        padding: 16px 0;
    }

    .btn {
        min-height: 44px;
        padding: 10px 18px;
        font-size: 14px;
    }
}

@media (max-width: 480px) {
    .stat-chip {
        padding: 5px 10px;
        gap: 6px;
    }

    .stat-chip-number {
        font-size: 15px;
    }

    .stat-chip-label {
        font-size: 10px;
    }

    .hero-headline {
        font-size: clamp(22px, 6vw, 28px);
    }

    .section-title {
        font-size: clamp(22px, 5.5vw, 30px);
    }

    .sep-header {
        padding: 12px 14px;
    }

    .sep-details {
        padding: 10px 14px;
    }

    .sep-counties {
        padding: 0 14px 10px;
    }

    .sep-actions {
        padding: 10px 14px;
    }

    .nav {
        gap: 12px;
    }

    .nav-link {
        font-size: 12px;
    }
}

/* ===== PRINT ===== */
@media print {
    .header, .hero, .disclaimer-section, .footer, .sticky-search {
        display: none;
    }

    body {
        background: #fff;
        color: #000;
    }

    .sep-card {
        break-inside: avoid;
        border: 1px solid #ccc;
        background: #fff;
        color: #000;
    }
}

/* ===== SCROLLBAR ===== */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg-dark); }
::-webkit-scrollbar-thumb { background: rgba(255, 255, 255, 0.08); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: rgba(255, 255, 255, 0.14); }

/* ===== SELECTION ===== */
::selection {
    background: rgba(255, 255, 255, 0.12);
    color: #fff;
}

/* ===== ACCESSIBILITY ===== */
.btn:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
}

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

    .hero-box {
        animation: none;
        opacity: 1;
    }
}

/* ===== TOUCH DEVICES ===== */
@media (hover: none) and (pointer: coarse) {
    .sep-card:hover {
        transform: none;
    }

    .btn:active {
        transform: scale(0.98);
        opacity: 0.9;
    }
}
