/* =========================================================
   SyndicData Design System — Premium Light Mode
   ========================================================= */

/* ── Fonts ──────────────────────────────────────────────── */
:root {
    /* Color tokens */
    --bg-base:        #fdfdfd;
    --bg-surface:     #ffffff;
    --bg-card:        #ffffff;
    --bg-card-hover:  #f8fafc;
    --bg-input:       #f8fafc;

    --border:         #e2e8f0;
    --border-focus:   rgba(79, 70, 229, 0.5);

    --primary:        #4f46e5;
    --primary-light:  #6366f1;
    --primary-glow:   rgba(79, 70, 229, 0.15);

    --accent:         #059669;
    --accent-light:   #10b981;
    --accent-glow:    rgba(5, 150, 105, 0.15);

    --amber:          #d97706;
    --red:            #dc2626;

    --text-primary:   #0f172a;
    --text-secondary: #475569;
    --text-muted:     #64748b;

    /* Region colors */
    --region-flanders: #4f46e5;
    --region-brussels: #d97706;
    --region-wallonia: #059669;

    /* Spacing */
    --radius-sm:  6px;
    --radius-md:  12px;
    --radius-lg:  18px;
    --radius-xl:  24px;

    /* Typography */
    --font: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}

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

html, body {
    height: 100%;
    scroll-behavior: smooth;
}

body {
    font-family: var(--font);
    background-color: var(--bg-base);
    color: var(--text-primary);
    font-size: 15px;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

a { color: var(--primary-light); text-decoration: none; transition: color 0.2s; }
a:hover { color: var(--primary); }

h1, h2, h3, h4, h5 {
    font-weight: 700;
    line-height: 1.25;
    letter-spacing: -0.02em;
    color: var(--text-primary);
}

h1:focus, h2:focus, h3:focus, h1:focus-visible, h2:focus-visible, h3:focus-visible {
    outline: none !important;
    box-shadow: none !important;
}

/* ── Layout ─────────────────────────────────────────────── */
.page-wrapper {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.main-content {
    flex: 1;
    padding: 0;
}

.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px;
}

.section {
    padding: 80px 0;
}

/* ── Navigation ─────────────────────────────────────────── */
.navbar {
    position: sticky;
    top: 0;
    z-index: 2000;
    background: rgba(253, 253, 253, 0.85);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
    padding: 0 24px;
}

.navbar-inner {
    max-width: 1280px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    height: 64px;
    gap: 32px;
}

.navbar-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
}

.navbar-logo {
    width: 32px;
    height: 32px;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    font-weight: 800;
    color: white;
    flex-shrink: 0;
}

.navbar-name {
    font-size: 18px;
    font-weight: 800;
    background: linear-gradient(135deg, var(--text-primary) 40%, var(--primary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.navbar-links {
    display: flex;
    align-items: center;
    gap: 4px;
    flex: 1;
}

.nav-link {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    border-radius: var(--radius-sm);
    font-size: 14px;
    font-weight: 500;
    color: var(--text-secondary);
    text-decoration: none;
    transition: all 0.2s;
}

.nav-link:hover {
    color: var(--text-primary);
    background: rgba(15, 23, 42, 0.04);
}

.nav-link.active {
    color: var(--primary);
    background: rgba(79, 70, 229, 0.08);
}

.navbar-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

/* ── Buttons ─────────────────────────────────────────────── */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 18px;
    border-radius: var(--radius-sm);
    font-size: 14px;
    font-weight: 600;
    font-family: var(--font);
    border: none;
    cursor: pointer;
    transition: all 0.2s;
    text-decoration: none;
    white-space: nowrap;
}

.btn-primary {
    background: var(--primary);
    color: white;
    box-shadow: 0 0 20px var(--primary-glow);
}
.btn-primary:hover {
    background: var(--primary-light);
    transform: translateY(-1px);
    box-shadow: 0 4px 24px var(--primary-glow);
    color: white;
}

.btn-secondary {
    background: var(--bg-surface);
    color: var(--text-primary);
    border: 1px solid var(--border);
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}
.btn-secondary:hover {
    background: var(--bg-card-hover);
    color: var(--text-primary);
    transform: translateY(-1px);
}

.btn-ghost {
    background: transparent;
    color: var(--text-secondary);
    padding: 8px 12px;
}
.btn-ghost:hover {
    background: rgba(15, 23, 42, 0.04);
    color: var(--text-primary);
}

.btn-accent {
    background: var(--accent);
    color: white;
    box-shadow: 0 0 20px var(--accent-glow);
}
.btn-accent:hover {
    background: var(--accent-light);
    transform: translateY(-1px);
    box-shadow: 0 4px 24px var(--accent-glow);
    color: white;
}

.btn-lg {
    padding: 14px 28px;
    font-size: 15px;
    border-radius: var(--radius-md);
}

.btn-sm {
    padding: 6px 12px;
    font-size: 13px;
}

/* ── Cards ───────────────────────────────────────────────── */
.card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 24px;
    transition: all 0.25s;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.02);
}

.card:hover {
    background: var(--bg-card-hover);
    border-color: rgba(79, 70, 229, 0.15);
    transform: translateY(-2px);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.06);
}

.card-glass {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(20px);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.02);
}

/* ── Stat Cards ──────────────────────────────────────────── */
.stat-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 28px;
    position: relative;
    overflow: hidden;
    transition: all 0.3s;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.02);
}

.stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--primary), var(--accent));
}

.stat-card:hover {
    background: var(--bg-card-hover);
    transform: translateY(-3px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.06);
}

.stat-icon {
    width: 44px;
    height: 44px;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    margin-bottom: 16px;
}

.stat-icon.indigo { background: rgba(99, 102, 241, 0.15); color: var(--primary-light); }
.stat-icon.emerald { background: rgba(16, 185, 129, 0.15); color: var(--accent-light); }
.stat-icon.amber { background: rgba(245, 158, 11, 0.15); color: var(--amber); }

.stat-value {
    font-size: 36px;
    font-weight: 800;
    letter-spacing: -0.03em;
    line-height: 1;
    margin-bottom: 6px;
    background: linear-gradient(135deg, var(--text-primary) 60%, var(--primary-light));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

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

/* ── Hero ────────────────────────────────────────────────── */
.hero {
    position: relative;
    padding: 100px 24px 80px;
    text-align: center;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: -200px;
    left: 50%;
    transform: translateX(-50%);
    width: 900px;
    height: 600px;
    background: radial-gradient(ellipse at center, rgba(99, 102, 241, 0.12) 0%, transparent 70%);
    pointer-events: none;
}

.hero::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 600px;
    height: 400px;
    background: radial-gradient(ellipse at center, rgba(16, 185, 129, 0.08) 0%, transparent 70%);
    pointer-events: none;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(99, 102, 241, 0.1);
    border: 1px solid rgba(99, 102, 241, 0.3);
    border-radius: 999px;
    padding: 6px 16px;
    font-size: 13px;
    font-weight: 600;
    color: var(--primary-light);
    margin-bottom: 28px;
    letter-spacing: 0.02em;
}

.hero-badge-dot {
    width: 6px;
    height: 6px;
    background: var(--accent);
    border-radius: 50%;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.5; transform: scale(1.5); }
}

.hero-title {
    font-size: clamp(40px, 6vw, 72px);
    font-weight: 900;
    letter-spacing: -0.04em;
    line-height: 1.05;
    margin-bottom: 24px;
    color: var(--text-primary);
    outline: none !important;
    box-shadow: none !important;
}

.hero-title-gradient {
    background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 18px;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto 40px;
    line-height: 1.7;
    font-weight: 400;
}

.hero-cta {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    flex-wrap: wrap;
}

/* ── Search Bar ──────────────────────────────────────────── */
.search-bar-wrapper {
    max-width: 700px;
    margin: 0 auto 60px;
    position: relative;
}

.search-bar {
    display: flex;
    align-items: center;
    gap: 0;
    background: var(--bg-surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    padding: 6px 6px 6px 20px;
    transition: all 0.3s;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.04);
}

.search-bar:focus-within {
    border-color: var(--border-focus);
    background: var(--bg-surface);
    box-shadow: 0 0 0 4px var(--primary-glow), 0 4px 24px rgba(0, 0, 0, 0.08);
}

.search-icon {
    color: var(--text-muted);
    font-size: 18px;
    margin-right: 12px;
    flex-shrink: 0;
}

.search-input {
    flex: 1;
    background: transparent;
    border: none;
    outline: none;
    font-family: var(--font);
    font-size: 16px;
    color: var(--text-primary);
    padding: 10px 0;
}

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

.search-select {
    background: var(--bg-input);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 8px 12px;
    font-family: var(--font);
    font-size: 14px;
    color: var(--text-secondary);
    outline: none;
    cursor: pointer;
    margin-right: 6px;
}

.search-select:focus { border-color: var(--border-focus); }
.search-select option { background: var(--bg-surface); color: var(--text-primary); }

/* ── Result Grid ─────────────────────────────────────────── */
.results-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: 16px;
}

.result-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 20px;
    transition: all 0.25s;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    gap: 12px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.02);
}

.result-card:hover {
    background: var(--bg-card-hover);
    border-color: rgba(79, 70, 229, 0.3);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.06);
}

.result-card-title {
    font-size: 15px;
    font-weight: 600;
    color: var(--text-primary);
    line-height: 1.3;
}

.result-card-nr {
    font-size: 12px;
    font-family: 'Courier New', monospace;
    color: var(--text-muted);
}

.result-card-meta {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.result-card-row {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: var(--text-secondary);
}

.result-card-row svg, .result-card-row .icon {
    color: var(--text-muted);
    width: 14px;
    flex-shrink: 0;
}

.result-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 12px;
    border-top: 1px solid var(--border);
}

/* ── Badges ──────────────────────────────────────────────── */
.badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 3px 10px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.02em;
}

.badge-region-flanders { background: rgba(79, 70, 229, 0.1); color: var(--primary); }
.badge-region-brussels { background: rgba(217, 119, 6, 0.1); color: var(--amber); }
.badge-region-wallonia { background: rgba(5, 150, 105, 0.1); color: var(--accent); }
.badge-region-unknown  { background: rgba(100, 116, 139, 0.1); color: var(--text-muted); }
.badge-cib { background: rgba(5, 150, 105, 0.1); color: var(--accent); border: 1px solid rgba(5,150,105,0.2); }
.badge-personal { background: rgba(217, 119, 6, 0.1); color: var(--amber); }
.badge-syndic { background: rgba(79, 70, 229, 0.1); color: var(--primary); }
.badge-vme { background: rgba(5, 150, 105, 0.1); color: var(--accent); }

.detail-hero {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 20px;
}

.detail-hero-main {
    flex: 1 1 auto;
    min-width: 0;
}

.detail-hero-identity {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 8px;
    min-width: 0;
}

.detail-hero-copy {
    min-width: 0;
    flex: 1 1 auto;
}

.detail-hero-title {
    overflow-wrap: anywhere;
}

.detail-hero-meta {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    min-width: 0;
}

.detail-address {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.detail-address-region {
    flex-shrink: 0;
}

.detail-hero-actions {
    flex: 0 0 auto;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 12px;
}

/* ── Stats Grid ──────────────────────────────────────────── */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 16px;
}

/* ── Tables ──────────────────────────────────────────────── */
.data-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}

.data-table th {
    text-align: left;
    padding: 12px 16px;
    font-size: 12px;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    border-bottom: 2px solid var(--border);
    background: rgba(15, 23, 42, 0.02);
}

.data-table td {
    padding: 14px 16px;
    border-bottom: 1px solid var(--border);
    color: var(--text-secondary);
    transition: background 0.15s;
}

.data-table tr:hover td {
    background: rgba(15, 23, 42, 0.02);
}

.data-table tr:last-child td { border-bottom: none; }

.table-responsive {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.rank-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 700;
    background: rgba(15,23,42,0.06);
    color: var(--text-muted);
}

.rank-badge.top-3 {
    background: linear-gradient(135deg, rgba(79, 70, 229, 0.15), rgba(5, 150, 105, 0.1));
    color: var(--text-primary);
    border: 1px solid rgba(79, 70, 229, 0.2);
}

/* ── Portfolio Bar ───────────────────────────────────────── */
.portfolio-bar-wrap {
    display: flex;
    align-items: center;
    gap: 10px;
}

.portfolio-bar {
    height: 6px;
    border-radius: 999px;
    background: linear-gradient(90deg, var(--primary), var(--accent));
    min-width: 4px;
    max-width: 200px;
}

/* ── Forms & Inputs ──────────────────────────────────────── */
.form-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.form-label {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.form-input {
    background: var(--bg-input);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 10px 14px;
    font-family: var(--font);
    font-size: 14px;
    color: var(--text-primary);
    outline: none;
    transition: all 0.2s;
    width: 100%;
}

.form-input:focus {
    border-color: var(--border-focus);
    background: var(--bg-surface);
    box-shadow: 0 0 0 3px var(--primary-glow);
}

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

/* ── Pagination ──────────────────────────────────────────── */
.pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    margin-top: 32px;
}

.page-btn {
    padding: 8px 14px;
    border-radius: var(--radius-sm);
    font-size: 14px;
    font-weight: 500;
    border: 1px solid var(--border);
    background: var(--bg-card);
    color: var(--text-secondary);
    cursor: pointer;
    transition: all 0.2s;
    font-family: var(--font);
}

.page-btn:hover:not(:disabled) {
    background: var(--bg-card-hover);
    color: var(--text-primary);
}

.page-btn.active {
    background: var(--primary);
    border-color: var(--primary);
    color: white;
    box-shadow: 0 0 12px var(--primary-glow);
}

.page-btn:disabled { opacity: 0.35; cursor: not-allowed; }

/* ── Filters Row ─────────────────────────────────────────── */
.filters-row {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 24px;
}

.filter-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 7px 14px;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 500;
    background: var(--bg-surface);
    border: 1px solid var(--border);
    color: var(--text-secondary);
    cursor: pointer;
    transition: all 0.2s;
}

.filter-chip:hover { border-color: rgba(79, 70, 229, 0.4); color: var(--text-primary); }
.filter-chip.active { background: rgba(79, 70, 229, 0.1); border-color: rgba(79, 70, 229, 0.4); color: var(--primary); }

.filter-tab {
    padding: 6px 16px;
    border-radius: var(--radius-sm);
    font-size: 13px;
    font-weight: 600;
    color: var(--text-muted);
    transition: all 0.2s;
    text-decoration: none;
}

.filter-tab:hover {
    color: var(--text-primary);
    background: rgba(15, 23, 42, 0.04);
}

.filter-tab.active {
    color: var(--primary);
    background: var(--bg-surface);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

/* ── Footer ──────────────────────────────────────────────── */
.footer {
    border-top: 1px solid var(--border);
    padding: 40px 24px;
    background: var(--bg-surface);
}

.footer-inner {
    max-width: 1280px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 20px;
}

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

.footer-links {
    display: flex;
    gap: 20px;
}

.footer-links a {
    font-size: 13px;
    color: var(--text-muted);
    text-decoration: none;
    transition: color 0.2s;
}

.footer-links a:hover { color: var(--text-secondary); }

.cookie-banner {
    position: fixed;
    left: 16px;
    right: 16px;
    bottom: 16px;
    z-index: 2600;
    display: flex;
    justify-content: center;
    pointer-events: none;
}

.cookie-banner__card {
    width: min(920px, 100%);
    background: rgba(255, 255, 255, 0.98);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    box-shadow: 0 18px 48px rgba(15, 23, 42, 0.18);
    backdrop-filter: blur(18px);
    padding: 18px 20px;
    display: flex;
    gap: 18px;
    align-items: center;
    justify-content: space-between;
    pointer-events: auto;
}

.cookie-banner__content {
    min-width: 0;
}

.cookie-banner__title {
    font-size: 15px;
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: 6px;
}

.cookie-banner__text {
    font-size: 13px;
    color: var(--text-secondary);
    line-height: 1.5;
}

.cookie-banner__actions {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.cookie-banner__link {
    padding-left: 0;
    padding-right: 0;
}


/* ── Insight Charts Placeholder ──────────────────────────── */
.chart-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 28px;
}

.chart-title {
    font-size: 16px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 6px;
}

.chart-subtitle {
    font-size: 13px;
    color: var(--text-secondary);
    margin-bottom: 24px;
}

/* ── Region Distribution Bar ─────────────────────────────── */
.region-bar {
    display: flex;
    height: 8px;
    border-radius: 999px;
    overflow: hidden;
    margin-bottom: 16px;
    gap: 2px;
}

.region-bar-segment {
    height: 100%;
    transition: all 0.5s;
}

.region-legend {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.region-legend-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: var(--text-secondary);
}

.region-dot {
    width: 10px;
    height: 10px;
    border-radius: 3px;
    flex-shrink: 0;
}

/* ── Page Headers ────────────────────────────────────────── */
.page-header {
    padding: 60px 0 40px;
    border-bottom: 1px solid var(--border);
    margin-bottom: 48px;
}

.page-header-tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--primary-light);
    margin-bottom: 12px;
}

.page-header h1 {
    font-size: clamp(28px, 4vw, 44px);
    margin-bottom: 10px;
    outline: none;
}

.page-header p {
    font-size: 16px;
    color: var(--text-secondary);
}

/* ── Empty State ─────────────────────────────────────────── */
.empty-state {
    text-align: center;
    padding: 80px 24px;
    color: var(--text-muted);
}

.empty-state-icon { font-size: 48px; margin-bottom: 16px; opacity: 0.5; }
.empty-state h3 { font-size: 18px; color: var(--text-secondary); margin-bottom: 8px; }
.empty-state p { font-size: 14px; }

/* ── Loading ─────────────────────────────────────────────── */
.loading-dots {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 40px;
}

.loading-dot {
    width: 8px;
    height: 8px;
    background: var(--primary);
    border-radius: 50%;
    animation: bounce 1.2s infinite ease-in-out;
}

.loading-dot:nth-child(2) { animation-delay: 0.15s; }
.loading-dot:nth-child(3) { animation-delay: 0.3s; }

@keyframes bounce {
    0%, 80%, 100% { transform: scale(0.7); opacity: 0.4; }
    40% { transform: scale(1); opacity: 1; }
}

/* ── Counter Animation ───────────────────────────────────── */
.counter-value {
    font-variant-numeric: tabular-nums;
    transition: all 0.3s;
}

/* ── Admin Badge ─────────────────────────────────────────── */
.admin-panel h2 { font-size: 20px; margin-bottom: 16px; }
.job-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    margin-bottom: 10px;
}
.job-name { font-weight: 600; font-size: 14px; }
.job-desc { font-size: 13px; color: var(--text-secondary); margin-top: 2px; }

/* ── 404 ─────────────────────────────────────────────────── */
.not-found-page {
    min-height: 80vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.not-found-code {
    font-size: 120px;
    font-weight: 900;
    line-height: 1;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 16px;
}

/* ── Authentication ─────────────────────────────────────── */
.auth-page {
    min-height: calc(100vh - 200px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 24px;
    background: radial-gradient(circle at 10% 20%, rgba(79, 70, 229, 0.03) 0%, transparent 40%),
                radial-gradient(circle at 90% 80%, rgba(16, 185, 129, 0.03) 0%, transparent 40%);
}

.auth-card {
    width: 100%;
    max-width: 440px;
    background: var(--bg-surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    padding: 40px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.03);
    position: relative;
    overflow: hidden;
}

.auth-card-wide {
    max-width: 520px;
}

.auth-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary), var(--accent));
}

.auth-header {
    text-align: center;
    margin-bottom: 32px;
}

.auth-title {
    font-size: 24px;
    font-weight: 800;
    margin-bottom: 8px;
    letter-spacing: -0.03em;
}

.auth-subtitle {
    font-size: 14px;
    color: var(--text-secondary);
}

.contact-page-shell {
    padding-top: 48px;
    padding-bottom: 80px;
    max-width: 1120px;
}

.contact-page-header {
    padding-top: 0;
    margin-bottom: 32px;
    border-bottom: none;
}

.contact-layout {
    display: grid;
    grid-template-columns: minmax(280px, 340px) minmax(0, 1fr);
    gap: 24px;
    align-items: start;
}

.contact-side-card,
.contact-form-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.05);
}

.contact-side-card {
    padding: 28px;
    position: sticky;
    top: 96px;
    background: linear-gradient(180deg, rgba(79, 70, 229, 0.05), rgba(16, 185, 129, 0.04));
}

.contact-side-eyebrow {
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--primary);
    margin-bottom: 12px;
}

.contact-side-card h2 {
    font-size: 22px;
    margin-bottom: 12px;
    line-height: 1.2;
}

.contact-side-card p {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 0;
}

.contact-side-points {
    margin-top: 22px;
    display: grid;
    gap: 14px;
}

.contact-side-point {
    padding: 14px 16px;
    border-radius: var(--radius-md);
    background: rgba(255, 255, 255, 0.72);
    border: 1px solid rgba(255, 255, 255, 0.9);
}

.contact-side-point-title {
    font-size: 13px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 4px;
}

.contact-side-point-text {
    font-size: 13px;
    color: var(--text-secondary);
    line-height: 1.5;
}

.contact-form-card {
    padding: 28px;
}

.contact-success-panel {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 28px 18px;
}

.contact-success-icon {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(16, 185, 129, 0.12);
    color: var(--accent);
    font-size: 28px;
    font-weight: 800;
    margin-bottom: 16px;
}

.contact-success-title {
    font-size: 24px;
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: 10px;
    letter-spacing: -0.02em;
}

.contact-success-text {
    max-width: 560px;
    font-size: 15px;
    line-height: 1.7;
    color: var(--text-secondary);
    margin-bottom: 20px;
}

.contact-success-button {
    min-width: 220px;
    justify-content: center;
}

.contact-validation-summary {
    margin-bottom: 18px;
}

.contact-form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
}

.contact-field {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 18px;
}

.contact-label {
    font-size: 13px;
    font-weight: 700;
    color: var(--text-primary);
}

.contact-input,
.contact-textarea {
    border-radius: var(--radius-md);
    border: 1px solid var(--border);
    background: var(--bg-input);
    padding: 14px 16px;
    font-size: 14px;
    transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
}

.contact-input {
    min-height: 52px;
}

.contact-textarea {
    min-height: 180px;
    resize: vertical;
}

.contact-input:focus,
.contact-textarea:focus {
    background: #fff;
    border-color: rgba(79, 70, 229, 0.5);
    box-shadow: 0 0 0 4px rgba(79, 70, 229, 0.08);
    outline: none;
}

.contact-captcha {
    margin-top: 8px;
    margin-bottom: 20px;
}

.contact-captcha-error {
    font-size: 13px;
    margin-top: 8px;
}

.contact-form-actions {
    display: flex;
    justify-content: flex-start;
    padding-top: 6px;
}

.contact-submit-button {
    min-width: 180px;
    min-height: 48px;
    justify-content: center;
}

.auth-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* Identity Form Overrides */
.form-floating > label {
    padding-left: 14px;
    color: var(--text-muted);
    font-size: 14px;
}

.form-floating > .form-control:focus ~ label,
.form-floating > .form-control:not(:placeholder-shown) ~ label {
    color: var(--primary);
    transform: scale(0.85) translateY(-0.75rem) translateX(0.15rem);
}

.form-control {
    background: var(--bg-input);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 12px 14px;
    font-family: var(--font);
    font-size: 14px;
    color: var(--text-primary);
    transition: all 0.2s;
}

.form-control:focus {
    background: var(--bg-surface);
    border-color: var(--border-focus);
    box-shadow: 0 0 0 4px var(--primary-glow);
    outline: none;
}

.auth-links {
    margin-top: 24px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    text-align: center;
}

.auth-links a {
    font-size: 13px;
    font-weight: 500;
}

.auth-links-inline {
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 6px;
    flex-wrap: wrap;
}

.auth-register-promo {
    margin-top: 24px;
    padding: 20px;
    border-radius: var(--radius-lg);
    border: 1px solid rgba(16, 185, 129, 0.2);
    background: linear-gradient(180deg, rgba(16, 185, 129, 0.08), rgba(79, 70, 229, 0.04));
    text-align: center;
}

.auth-register-promo-label {
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--accent);
    margin-bottom: 8px;
}

.auth-register-promo-title {
    font-size: 20px;
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: 8px;
    letter-spacing: -0.02em;
}

.auth-register-promo-text {
    font-size: 14px;
    line-height: 1.6;
    color: var(--text-secondary);
    margin-bottom: 16px;
}

.auth-register-promo-button {
    justify-content: center;
}

.vme-basemap-toggle {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px;
    border: 1px solid rgba(15, 23, 42, 0.1);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.88);
    backdrop-filter: blur(16px);
    box-shadow: 0 14px 30px rgba(15, 23, 42, 0.16);
}

.vme-basemap-toggle__button {
    border: none;
    border-radius: 999px;
    padding: 8px 14px;
    background: transparent;
    color: var(--text-secondary);
    font-family: var(--font);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.02em;
    cursor: pointer;
    transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.vme-basemap-toggle__button:hover {
    background: rgba(79, 70, 229, 0.08);
    color: var(--text-primary);
}

.vme-basemap-toggle__button.is-active {
    background: linear-gradient(135deg, var(--text-primary), #1e293b);
    color: white;
    box-shadow: 0 8px 18px rgba(15, 23, 42, 0.22);
}

.vme-basemap-toggle__button:focus-visible {
    outline: none;
    box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.2);
}

/* ── Responsive ──────────────────────────────────────────── */
@media (max-width: 768px) {
    .container { padding: 0 16px; }
    .navbar { padding: 0 16px; }
    .hero { padding: 64px 16px 48px; }
    .hero-title { font-size: clamp(32px, 8vw, 40px); }
    .hero-subtitle { font-size: 16px; margin-bottom: 28px; }
    .hero-badge { font-size: 12px; padding: 8px 14px; }
    .search-bar { flex-wrap: wrap; border-radius: var(--radius-lg); padding: 10px 12px; gap: 10px; }
    .search-icon { order: 1; }
    .search-input { order: 2; min-width: 0; flex: 1 1 0; width: calc(100% - 32px); padding: 10px 4px; }
    .search-select { order: 3; width: 100%; border-left: 0; border-top: 1px solid var(--border); padding: 12px 4px 4px; }
    .search-bar .btn { order: 4; width: 100%; justify-content: center; }
    .hero-cta { flex-direction: column; align-items: stretch; }
    .hero-cta .btn { width: 100%; justify-content: center; }
    .results-grid { grid-template-columns: 1fr; }
    .stats-grid { grid-template-columns: 1fr 1fr; }
    .section { padding: 48px 0; }
    .stat-card { padding: 20px; }
    .card { padding: 20px; }
    .page-header { padding: 36px 0 28px; margin-bottom: 28px; }
    .page-header p { font-size: 15px; }
    .result-card { padding: 16px; }
    .result-card-footer { flex-direction: column; align-items: flex-start; gap: 8px; }
    .contact-layout { grid-template-columns: 1fr; }
    .contact-side-card { position: static; }
    .contact-form-grid { grid-template-columns: 1fr; }
    .contact-form-card,
    .contact-side-card { padding: 22px; }
    .search-page-form > * { width: 100% !important; min-width: 0 !important; }
    .search-results-toolbar { flex-direction: column; align-items: flex-start !important; gap: 12px; }
    .search-results-toolbar .btn { width: 100%; justify-content: center; }
    .search-filters-row { align-items: stretch; }
    .filter-tab-group { width: 100%; overflow-x: auto; }
    .filter-tab { white-space: nowrap; }
    .pagination { flex-wrap: wrap; justify-content: flex-start; }
    .page-btn { min-width: 40px; }
    .footer { padding: 28px 16px; }
    .footer-inner { flex-direction: column; align-items: flex-start; gap: 16px; }
    .footer-links { flex-wrap: wrap; gap: 12px 16px; }
    .cookie-banner {
        left: 12px;
        right: 12px;
        bottom: 12px;
    }
    .cookie-banner__card {
        padding: 16px;
        flex-direction: column;
        align-items: stretch;
    }
    .cookie-banner__actions {
        justify-content: stretch;
    }
    .cookie-banner__actions .btn,
    .cookie-banner__actions a {
        width: 100%;
        justify-content: center;
        text-align: center;
    }
    .vme-basemap-toggle__button { padding: 7px 12px; }
}

@media (max-width: 480px) {
    .contact-page-shell { padding-top: 32px; padding-bottom: 56px; }
    .contact-submit-button { width: 100%; }
    .hero::before { width: 520px; height: 520px; }
    .hero::after { width: 320px; height: 180px; }
    .hero-title { font-size: 30px; }
    .home-cta-panel { padding: 28px 18px !important; }
    .home-cta-actions .btn { width: 100%; justify-content: center; }
    .home-region-links { flex-direction: column; gap: 12px !important; }
    .home-region-link { width: 100%; display: block; text-align: center; }
    .stats-grid { grid-template-columns: 1fr; }
    .search-select { font-size: 14px; }
    .table-responsive { margin: 0 -16px; width: calc(100% + 32px); border-radius: 0 !important; }
    .data-table th, .data-table td { padding: 12px 10px; }
    .detail-hero { flex-wrap: wrap; }
    .detail-hero-actions { width: 100%; align-items: flex-start; }
}
