:root {
    --bg: #09090b;
    --bg-elevated: #111114;
    --surface: rgba(255, 255, 255, 0.04);
    --surface-hover: rgba(255, 255, 255, 0.07);
    --border: rgba(255, 255, 255, 0.08);
    --border-hover: rgba(255, 255, 255, 0.14);
    --text: #fafafa;
    --text-muted: #a1a1aa;
    --text-dim: #71717a;
    --accent: #8b5cf6;
    --accent-light: #a78bfa;
    --accent-glow: rgba(139, 92, 246, 0.35);
    --blue: #3b82f6;
    --blue-glow: rgba(59, 130, 246, 0.3);
    --green: #22c55e;
    --red: #ef4444;
    --orange: #f97316;
    --country-a: #f472b6;
    --country-a-bg: rgba(244, 114, 182, 0.1);
    --country-b: #38bdf8;
    --country-b-bg: rgba(56, 189, 248, 0.1);
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 20px;
    --radius-xl: 24px;
    --shadow: 0 4px 24px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 20px 60px rgba(0, 0, 0, 0.5);
    --font: 'Inter', 'Noto Sans SC', system-ui, sans-serif;
    --transition: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

*, *::before, *::after { box-sizing: border-box; }

html {
    font-size: 16px;
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
}

body {
    font-family: var(--font);
    color: var(--text);
    background: var(--bg);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    margin: 0;
    overflow-x: hidden;
}

/* Ambient background */
.ambient {
    position: fixed;
    inset: 0;
    z-index: -1;
    overflow: hidden;
    background: var(--bg);
}

.orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.5;
    animation: float 20s ease-in-out infinite;
}

.orb-1 {
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, var(--accent-glow), transparent 70%);
    top: -200px;
    left: 50%;
    transform: translateX(-50%);
}

.orb-2 {
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, var(--blue-glow), transparent 70%);
    bottom: -100px;
    right: -100px;
    animation-delay: -7s;
}

.orb-3 {
    width: 350px;
    height: 350px;
    background: radial-gradient(circle, rgba(244, 114, 182, 0.2), transparent 70%);
    bottom: 20%;
    left: -80px;
    animation-delay: -14s;
}

.grid-overlay {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255,255,255,0.02) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,0.02) 1px, transparent 1px);
    background-size: 64px 64px;
    mask-image: radial-gradient(ellipse 80% 60% at 50% 30%, black, transparent);
}

@keyframes float {
    0%, 100% { transform: translate(0, 0) scale(1); }
    33% { transform: translate(30px, -30px) scale(1.05); }
    66% { transform: translate(-20px, 20px) scale(0.95); }
}

/* Glass card */
.glass-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    transition: border-color var(--transition), background var(--transition), transform var(--transition), box-shadow var(--transition);
}

.glass-card:hover {
    border-color: var(--border-hover);
}

/* Header */
.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    border-bottom: 1px solid var(--border);
    background: rgba(9, 9, 11, 0.75);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
}

.nav-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.875rem 0;
    max-width: 1100px;
}

.navbar-brand {
    display: flex;
    align-items: center;
    gap: 0.625rem;
    text-decoration: none;
    color: var(--text) !important;
    font-weight: 700;
    font-size: 1.125rem;
    letter-spacing: -0.02em;
}

.brand-mark {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background: linear-gradient(135deg, var(--accent), #6d28d9);
    border-radius: var(--radius-sm);
    color: white;
    box-shadow: 0 4px 16px var(--accent-glow);
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.lang-switcher {
    display: flex;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 100px;
    padding: 3px;
    gap: 2px;
}

.lang-btn {
    padding: 0.3rem 0.75rem;
    border-radius: 100px;
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--text-muted);
    text-decoration: none;
    transition: background var(--transition), color var(--transition);
}

.lang-btn:hover {
    color: var(--text);
    background: var(--surface-hover);
}

.lang-btn.active {
    background: var(--accent);
    color: white;
}

.nav-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.375rem 0.875rem;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 100px;
    font-size: 0.8rem;
    color: var(--text-muted);
    font-weight: 500;
}

.chip-dot {
    width: 6px;
    height: 6px;
    background: var(--green);
    border-radius: 50%;
    box-shadow: 0 0 8px var(--green);
    animation: pulse 2s ease infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

.main-container {
    flex: 1;
    padding: 2rem 1.25rem 4rem;
    max-width: 1100px;
}

/* Hero */
.hero {
    text-align: center;
    padding: 2.5rem 1rem 2rem;
    position: relative;
}

.hero-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, var(--accent-glow), transparent 70%);
    pointer-events: none;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.4rem 1rem 0.4rem 0.75rem;
    background: rgba(139, 92, 246, 0.12);
    border: 1px solid rgba(139, 92, 246, 0.25);
    border-radius: 100px;
    color: var(--accent-light);
    font-size: 0.8rem;
    font-weight: 500;
    margin-bottom: 1.5rem;
}

.hero-title {
    font-size: clamp(2.75rem, 8vw, 4.5rem);
    font-weight: 700;
    letter-spacing: -0.04em;
    line-height: 1.1;
    margin: 0 0 1rem;
    background: linear-gradient(180deg, #fff 0%, rgba(255,255,255,0.7) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    color: var(--text-muted);
    font-size: 1.05rem;
    max-width: 480px;
    margin: 0 auto 2rem;
    line-height: 1.65;
}

.hero-stats {
    display: inline-flex;
    align-items: center;
    gap: 1.5rem;
    padding: 0.875rem 1.75rem;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    backdrop-filter: blur(12px);
}

.stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.15rem;
}

.stat-value {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text);
    letter-spacing: -0.02em;
}

.stat-label {
    font-size: 0.75rem;
    color: var(--text-dim);
    font-weight: 500;
}

.stat-divider {
    width: 1px;
    height: 32px;
    background: var(--border);
}

/* Selector card */
.selector-card {
    position: relative;
    z-index: 40;
    max-width: 720px;
    margin: 0 auto 2rem;
    padding: 1.75rem;
    box-shadow: var(--shadow-lg);
    overflow: visible;
}

.selector-card.has-open-dropdown {
    z-index: 200;
}

.card-header-row {
    margin-bottom: 1.5rem;
}

.card-heading {
    font-size: 1.125rem;
    font-weight: 600;
    margin: 0 0 0.25rem;
    letter-spacing: -0.02em;
}

.card-desc {
    font-size: 0.875rem;
    color: var(--text-muted);
    margin: 0;
}

.country-selectors {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: 1rem;
    align-items: end;
    margin-bottom: 1.5rem;
    overflow: visible;
}

.country-field {
    position: relative;
    overflow: visible;
}

.country-combobox {
    position: relative;
}

.country-combobox.is-open {
    z-index: 10;
}

.field-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--text-muted);
    margin-bottom: 0.5rem;
}

.label-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
}

.label-dot-a { background: var(--country-a); box-shadow: 0 0 8px var(--country-a); }
.label-dot-b { background: var(--country-b); box-shadow: 0 0 8px var(--country-b); }

.select-wrapper {
    position: relative;
    overflow: visible;
}

.country-select {
    width: 100%;
    appearance: none;
    -webkit-appearance: none;
    background: rgba(0, 0, 0, 0.35);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    color: var(--text);
    padding: 0.8rem 2.5rem 0.8rem 1rem;
    font-size: 0.95rem;
    font-family: var(--font);
    font-weight: 500;
    cursor: pointer;
    transition: border-color var(--transition), box-shadow var(--transition);
}

.country-select:hover {
    border-color: var(--border-hover);
}

.country-select:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px var(--accent-glow);
}

.select-chevron {
    position: absolute;
    right: 0.875rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-dim);
    pointer-events: none;
}

.country-combobox .country-search {
    width: 100%;
    appearance: none;
    -webkit-appearance: none;
    background: rgba(0, 0, 0, 0.35);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    color: var(--text);
    padding: 0.8rem 2.5rem 0.8rem 1rem;
    font-size: 0.95rem;
    font-family: var(--font);
    font-weight: 500;
    cursor: text;
    transition: border-color var(--transition), box-shadow var(--transition);
}

.country-combobox .country-search:hover {
    border-color: var(--border-hover);
}

.country-combobox .country-search:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px var(--accent-glow);
}

.country-combobox.is-invalid .country-search {
    border-color: rgba(239, 68, 68, 0.6);
    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.15);
}

.country-suggestions {
    position: absolute;
    left: 0;
    right: 0;
    top: calc(100% + 0.35rem);
    z-index: 300;
    margin: 0;
    padding: 0.35rem;
    list-style: none;
    max-height: 16rem;
    overflow-y: auto;
    background: rgba(18, 18, 28, 0.96);
    border: 1px solid var(--border-hover);
    border-radius: var(--radius-md);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.45);
    backdrop-filter: blur(16px);
}

.country-suggestion {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    padding: 0.55rem 0.75rem;
    border-radius: calc(var(--radius-md) - 4px);
    cursor: pointer;
    transition: background var(--transition);
}

.country-suggestion:hover,
.country-suggestion.is-active {
    background: rgba(255, 255, 255, 0.06);
}

.country-suggestion.is-popular .suggestion-name::after {
    content: '★';
    margin-left: 0.35rem;
    font-size: 0.65rem;
    color: var(--accent);
    vertical-align: middle;
}

.suggestion-name {
    font-size: 0.92rem;
    font-weight: 500;
    color: var(--text);
}

.suggestion-alt {
    font-size: 0.75rem;
    color: var(--text-dim);
    white-space: nowrap;
}

.country-suggestion-empty {
    cursor: default;
    color: var(--text-muted);
    justify-content: center;
}

.country-suggestion-empty:hover {
    background: transparent;
}

.vs-connector {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    padding-bottom: 0.5rem;
}

.vs-line {
    width: 1px;
    height: 12px;
    background: var(--border);
}

.vs-badge {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--accent), #6d28d9);
    border-radius: 50%;
    font-size: 0.7rem;
    font-weight: 700;
    color: white;
    letter-spacing: 0.05em;
    box-shadow: 0 4px 16px var(--accent-glow);
}

.btn-compare {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.625rem;
    padding: 0.9rem 1.5rem;
    background: linear-gradient(135deg, var(--accent), #6d28d9);
    border: none;
    border-radius: var(--radius-md);
    color: white;
    font-family: var(--font);
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: transform var(--transition), box-shadow var(--transition), opacity var(--transition);
    box-shadow: 0 4px 20px var(--accent-glow);
}

.btn-compare:hover {
    transform: translateY(-1px);
    box-shadow: 0 8px 32px var(--accent-glow);
}

.btn-compare:active {
    transform: translateY(0);
}

.btn-icon {
    display: flex;
    transition: transform var(--transition);
}

.btn-compare:hover .btn-icon {
    transform: translateX(3px);
}

/* Feature grid */
.feature-grid {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    max-width: 720px;
    margin: 0 auto 2.5rem;
}

.feature-card {
    padding: 1.25rem;
    text-align: left;
}

.feature-card:hover {
    background: var(--surface-hover);
    transform: translateY(-2px);
}

.feature-icon {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-md);
    margin-bottom: 0.875rem;
}

.feature-icon-purple { background: rgba(139, 92, 246, 0.15); color: var(--accent-light); }
.feature-icon-blue { background: rgba(59, 130, 246, 0.15); color: #60a5fa; }
.feature-icon-green { background: rgba(34, 197, 94, 0.15); color: #4ade80; }

.feature-card h3 {
    font-size: 0.9rem;
    font-weight: 600;
    margin: 0 0 0.35rem;
    letter-spacing: -0.01em;
}

.feature-card p {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin: 0;
    line-height: 1.5;
}

/* Recent */
.recent-section {
    max-width: 720px;
    margin: 0 auto;
}

.section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1rem;
}

.section-title {
    font-size: 1rem;
    font-weight: 600;
    margin: 0;
    letter-spacing: -0.02em;
}

.section-count {
    font-size: 0.8rem;
    color: var(--text-dim);
}

.recent-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
    gap: 0.75rem;
}

.recent-card {
    padding: 1rem 1.125rem;
    text-decoration: none;
    color: var(--text);
    display: block;
}

.recent-card:hover {
    background: var(--surface-hover);
    transform: translateY(-2px);
    color: var(--text);
}

.recent-pair {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
    margin-bottom: 0.5rem;
}

.recent-country {
    font-size: 0.875rem;
    font-weight: 600;
}

.recent-country-a { color: var(--country-a); }
.recent-country-b { color: var(--country-b); }

.recent-vs {
    font-size: 0.7rem;
    color: var(--text-dim);
    font-weight: 500;
}

.recent-meta {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.75rem;
    color: var(--text-dim);
}

/* Compare page */
.compare-header {
    margin-bottom: 1.5rem;
}

.back-link {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.875rem;
    font-weight: 500;
    margin-bottom: 1rem;
    padding: 0.375rem 0.75rem 0.375rem 0.5rem;
    border-radius: var(--radius-sm);
    transition: color var(--transition), background var(--transition);
}

.back-link:hover {
    color: var(--text);
    background: var(--surface);
}

.compare-title-block {
    padding: 1.25rem 1.5rem;
}

.compare-flags {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.country-pill {
    padding: 0.5rem 1.125rem;
    border-radius: 100px;
    font-weight: 600;
    font-size: 1rem;
    letter-spacing: -0.02em;
}

.country-pill-a {
    background: var(--country-a-bg);
    border: 1px solid rgba(244, 114, 182, 0.25);
    color: var(--country-a);
}

.country-pill-b {
    background: var(--country-b-bg);
    border: 1px solid rgba(56, 189, 248, 0.25);
    color: var(--country-b);
}

.compare-divider {
    color: var(--text-dim);
    display: flex;
}

.meta-row {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-top: 0.875rem;
    flex-wrap: wrap;
}

.status-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    padding: 0.3rem 0.75rem;
    border-radius: 100px;
    font-size: 0.75rem;
    font-weight: 500;
}

.status-cache {
    background: rgba(59, 130, 246, 0.12);
    border: 1px solid rgba(59, 130, 246, 0.25);
    color: #60a5fa;
}

.status-fresh {
    background: rgba(34, 197, 94, 0.12);
    border: 1px solid rgba(34, 197, 94, 0.25);
    color: #4ade80;
}

.period-count {
    font-size: 0.75rem;
    color: var(--text-dim);
}

.markdown-link {
    font-size: 0.75rem;
    color: var(--accent-light);
    text-decoration: none;
    padding: 0.2rem 0.55rem;
    border: 1px solid rgba(139, 92, 246, 0.25);
    border-radius: 100px;
    transition: background var(--transition), color var(--transition);
}

.markdown-link:hover {
    background: rgba(139, 92, 246, 0.12);
    color: var(--text);
}

/* Timeline modern */
.timeline-modern {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.timeline-card {
    padding: 0;
    overflow: hidden;
    animation: slideUp 0.5s ease calc(var(--i) * 0.06s) both;
}

@keyframes slideUp {
    from { opacity: 0; transform: translateY(16px); }
    to { opacity: 1; transform: translateY(0); }
}

.timeline-period {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.625rem;
    padding: 0.875rem 1.25rem;
    background: rgba(0, 0, 0, 0.25);
    border-bottom: 1px solid var(--border);
    flex-wrap: wrap;
    text-align: center;
}

.period-badge {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--accent-light);
    background: rgba(139, 92, 246, 0.12);
    border: 1px solid rgba(139, 92, 246, 0.2);
    padding: 0.3rem 0.75rem;
    border-radius: 100px;
}

.period-tag {
    font-size: 0.8rem;
    color: var(--text-muted);
    font-weight: 500;
}

.timeline-columns {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: 0;
}

.timeline-col {
    padding: 1.25rem;
}

.timeline-col-a {
    border-right: 1px solid var(--border);
}

.col-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-bottom: 0.625rem;
}

.col-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
}

.col-dot-a { background: var(--country-a); }
.col-dot-b { background: var(--country-b); }

.timeline-col-a .col-header { color: var(--country-a); }
.timeline-col-b .col-header { color: var(--country-b); }

.col-body {
    font-size: 0.9rem;
    line-height: 1.75;
    color: var(--text-muted);
    margin: 0 0 0.75rem;
}

.col-detail-section {
    margin-top: 0.875rem;
    padding-top: 0.875rem;
    border-top: 1px dashed var(--border);
}

.col-detail-section:first-of-type {
    margin-top: 0;
}

.col-detail-title {
    display: flex;
    align-items: center;
    gap: 0.375rem;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-dim);
    margin: 0 0 0.5rem;
}

.col-detail-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.col-detail-list li {
    font-size: 0.85rem;
    line-height: 1.6;
    color: var(--text-muted);
}

.detail-name {
    color: var(--text);
    font-weight: 600;
}

.detail-desc {
    display: block;
    margin-top: 0.125rem;
    color: var(--text-dim);
    font-size: 0.8rem;
}

.detail-year {
    display: inline-block;
    font-size: 0.7rem;
    font-weight: 600;
    color: var(--accent-light);
    background: rgba(139, 92, 246, 0.1);
    border: 1px solid rgba(139, 92, 246, 0.15);
    padding: 0.1rem 0.4rem;
    border-radius: 4px;
    margin-right: 0.375rem;
    vertical-align: middle;
}

.col-detail-events .detail-name {
    display: inline;
}

.col-detail-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.375rem;
}

.detail-tag {
    font-size: 0.75rem;
    color: var(--text-muted);
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border);
    padding: 0.25rem 0.625rem;
    border-radius: 100px;
    line-height: 1.4;
}

.timeline-axis {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 24px;
    padding: 1.25rem 0;
}

.axis-line {
    flex: 1;
    width: 2px;
    background: linear-gradient(180deg, var(--accent), transparent);
    opacity: 0.4;
}

.axis-node {
    width: 10px;
    height: 10px;
    background: var(--accent);
    border-radius: 50%;
    box-shadow: 0 0 12px var(--accent-glow);
    flex-shrink: 0;
}

/* Summary */
.summary-card {
    margin-top: 1.5rem;
    padding: 1.5rem;
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.08), rgba(59, 130, 246, 0.05));
    border-color: rgba(139, 92, 246, 0.2);
}

.summary-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.summary-icon {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(139, 92, 246, 0.15);
    border-radius: var(--radius-md);
    color: var(--accent-light);
}

.summary-header h2 {
    font-size: 1rem;
    font-weight: 600;
    margin: 0;
    letter-spacing: -0.02em;
}

.summary-body {
    font-size: 0.95rem;
    line-height: 1.8;
    color: var(--text-muted);
    margin: 0;
}

/* Comments */
.comments-card {
    margin-top: 1.5rem;
    padding: 1.5rem;
}

.comments-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1.25rem;
}

.comments-title-row {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
}

.comments-icon {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(56, 189, 248, 0.12);
    border-radius: var(--radius-md);
    color: var(--country-b);
    flex-shrink: 0;
}

.comments-title {
    font-size: 1rem;
    font-weight: 600;
    margin: 0 0 0.2rem;
    letter-spacing: -0.02em;
}

.comments-subtitle {
    font-size: 0.8rem;
    color: var(--text-dim);
    margin: 0;
}

.comments-count {
    font-size: 0.8rem;
    color: var(--text-dim);
    white-space: nowrap;
    padding-top: 0.15rem;
}

.comment-rules {
    font-size: 0.78rem;
    line-height: 1.6;
    color: var(--text-dim);
    margin: 0 0 1rem;
    padding: 0.75rem 0.9rem;
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
}

.comment-honeypot {
    position: absolute;
    left: -10000px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

.comment-form {
    position: relative;
    margin-bottom: 1.25rem;
    padding-bottom: 1.25rem;
    border-bottom: 1px solid var(--border);
}

.comment-form-row {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.comment-input {
    width: 100%;
    background: rgba(0, 0, 0, 0.35);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    color: var(--text);
    padding: 0.75rem 1rem;
    font-size: 0.9rem;
    font-family: var(--font);
    transition: border-color var(--transition), box-shadow var(--transition);
    resize: vertical;
}

.comment-input:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px var(--accent-glow);
}

.comment-author {
    max-width: 240px;
}

.comment-form-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-top: 0.75rem;
}

.comment-hint {
    font-size: 0.8rem;
    margin: 0;
}

.comment-hint.is-error { color: #f87171; }
.comment-hint.is-success { color: #4ade80; }

.btn-comment {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.65rem 1.25rem;
    border: none;
    border-radius: var(--radius-md);
    background: linear-gradient(135deg, var(--accent), #6366f1);
    color: #fff;
    font-size: 0.875rem;
    font-weight: 600;
    font-family: var(--font);
    cursor: pointer;
    transition: opacity var(--transition), transform var(--transition);
}

.btn-comment:hover:not(:disabled) {
    opacity: 0.92;
    transform: translateY(-1px);
}

.btn-comment:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.comment-list {
    display: flex;
    flex-direction: column;
    gap: 0.875rem;
}

.comment-empty {
    font-size: 0.875rem;
    color: var(--text-dim);
    text-align: center;
    padding: 1.5rem 0;
    margin: 0;
}

.comment-item {
    padding: 0.875rem 1rem;
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
}

.comment-item-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    margin-bottom: 0.5rem;
}

.comment-author-name {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--accent-light);
}

.comment-time {
    font-size: 0.75rem;
    color: var(--text-dim);
    white-space: nowrap;
}

.comment-body {
    font-size: 0.9rem;
    line-height: 1.7;
    color: var(--text-muted);
    margin: 0;
    white-space: pre-wrap;
    word-break: break-word;
}

/* Alerts */
.alert-card {
    display: flex;
    gap: 1rem;
    padding: 1.25rem;
    border-radius: var(--radius-lg);
    border: 1px solid;
}

.alert-error {
    background: rgba(239, 68, 68, 0.08);
    border-color: rgba(239, 68, 68, 0.25);
    color: #fca5a5;
}

.alert-error strong {
    display: block;
    color: #fecaca;
    margin-bottom: 0.25rem;
}

.alert-error p {
    margin: 0;
    font-size: 0.9rem;
    color: #fca5a5;
}

.alert-hint {
    margin-top: 0.5rem !important;
    font-size: 0.8rem !important;
    opacity: 0.8;
}

.alert-icon {
    flex-shrink: 0;
    opacity: 0.8;
}

.alert-error-inline {
    color: #fca5a5;
    font-size: 0.875rem;
}

/* Global loader */
.global-loader {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(9, 9, 11, 0.85);
    backdrop-filter: blur(8px);
}

.global-loader[hidden] {
    display: none !important;
}

.loader-card {
    text-align: center;
    padding: 2rem 2.5rem;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-lg);
    max-width: 320px;
}

.loader-spinner {
    width: 48px;
    height: 48px;
    margin: 0 auto 1.25rem;
    border: 3px solid var(--border);
    border-top-color: var(--accent);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.loader-title {
    font-size: 1rem;
    font-weight: 600;
    margin: 0 0 0.375rem;
}

.loader-hint {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin: 0;
}

/* Footer */
.site-footer {
    border-top: 1px solid var(--border);
    padding: 1.25rem 0;
    background: rgba(9, 9, 11, 0.5);
}

.footer-inner {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    font-size: 0.8rem;
    color: var(--text-dim);
}

.footer-sep {
    opacity: 0.4;
}

.footer-link {
    color: var(--text-dim);
    text-decoration: none;
    transition: color var(--transition);
}

.footer-link:hover {
    color: var(--accent-light);
}

/* Responsive */
@media (max-width: 768px) {
    .hero-stats {
        gap: 1rem;
        padding: 0.75rem 1.25rem;
    }

    .stat-divider { height: 24px; }

    .country-selectors {
        grid-template-columns: 1fr;
        gap: 0.75rem;
    }

    .vs-connector {
        flex-direction: row;
        padding: 0;
        justify-content: center;
    }

    .vs-line {
        width: 24px;
        height: 1px;
    }

    .feature-grid {
        grid-template-columns: 1fr;
    }

    .timeline-columns {
        grid-template-columns: 1fr;
    }

    .timeline-col-a {
        border-right: none;
        border-bottom: 1px solid var(--border);
    }

    .timeline-axis {
        display: none;
    }

    .compare-flags {
        flex-direction: column;
        align-items: flex-start;
    }

    .nav-chip {
        display: none;
    }

    .lang-switcher {
        margin-left: auto;
    }
}

@media (max-width: 640px) {
    .hero-stats {
        flex-direction: column;
        gap: 0.75rem;
        border-radius: var(--radius-lg);
    }

    .stat-divider {
        width: 40px;
        height: 1px;
    }
}
