/* Global Events Calendar — Dark Theme (matching prediction-markets) */
:root {
  --bg: #0c0e12;
  --bg-light: #12161c;
  --bg-elevated: #1e2329;
  --accent: #f0b90b;
  --green: #0ecb81;
  --red: #f6465d;
  --text: #eaecef;
  --text-muted: #848e9c;
  --border: #2b3139;
  --radius: 12px;
  --radius-sm: 8px;
  --font: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;

  /* Category colors */
  --cat-elections: #e74c3c;
  --cat-sports: #2ecc71;
  --cat-tech: #3498db;
  --cat-geopolitics: #e67e22;
  --cat-economy: #f1c40f;
  --cat-infrastructure: #9b59b6;
  --cat-climate: #1abc9c;
  --cat-culture: #e91e63;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--accent); text-decoration: none; transition: opacity .2s; }
a:hover { opacity: .8; }

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

/* --- Main Nav (unified) --- */
.site-nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(12, 14, 18, .92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  padding: 0 24px;
}

.nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  height: 56px;
  gap: 8px;
}

.nav-logo { display: flex; align-items: center; flex-shrink: 0; margin-right: 12px; }
.nav-logo-img { height: 28px; width: auto; }

/* Main nav items (Forum / Markets / Events) */
.nav-main { display: flex; gap: 2px; list-style: none; align-items: center; margin-left: 4px; }

.nav-main-btn {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 10px;
  border-radius: 4px;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  transition: background .2s, color .2s;
  white-space: nowrap;
}

.nav-main-btn--forum { color: rgba(255,255,255,.65); }
.nav-main-btn--forum:hover { background: rgba(255,255,255,.08); color: #fff; opacity: 1; }
.nav-main-btn--markets { color: #f0b90b; }
.nav-main-btn--markets:hover { background: rgba(240,185,11,.1); opacity: 1; }
.nav-main-btn--events { color: #0ecb81; }
.nav-main-btn--events:hover { background: rgba(14,203,129,.1); opacity: 1; }
.nav-main-btn.active { background: rgba(255,255,255,.08); }

/* Right side (socials + lang) */
.nav-right {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-left: auto;
}

.nav-socials {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.nav-socials a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,.65);
  width: 28px;
  height: 28px;
  border-radius: 4px;
  transition: color .2s, background .2s;
}
.nav-socials a:hover { color: #fff; background: rgba(255,255,255,.1); opacity: 1; }

/* Sub-navigation (page-specific) */
.sub-nav {
  background: rgba(12, 14, 18, .95);
  border-bottom: 1px solid var(--border);
  padding: 0 24px;
}

.sub-nav .nav-inner {
  height: 40px;
}

.sub-nav-links {
  display: flex;
  gap: 20px;
  list-style: none;
  align-items: center;
}

.sub-nav-links a {
  color: var(--text-muted);
  font-size: 13px;
  font-weight: 500;
  transition: color .2s;
}
.sub-nav-links a:hover { color: var(--text); opacity: 1; }

/* FIX-M2: Hamburger touch target — min 44×44px per WCAG 2.5.5 */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--text);
  font-size: 24px;
  cursor: pointer;
  min-width: 44px;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  padding: 10px;
  touch-action: manipulation;
}

/* --- Hero --- */
.hero {
  padding: 80px 20px 48px;
  text-align: center;
  background: linear-gradient(180deg, rgba(240,185,11,.06) 0%, transparent 60%);
}

.hero h1 { font-size: 48px; font-weight: 800; line-height: 1.15; margin-bottom: 16px; }
.accent { color: var(--accent); }
.hero .subtitle { font-size: 18px; color: var(--text-muted); max-width: 720px; margin: 0 auto 32px; }

.hero-stats {
  display: flex;
  justify-content: center;
  gap: 40px;
  margin-bottom: 32px;
}

.hero-stat { text-align: center; }
.hero-stat-value { display: block; font-size: 32px; font-weight: 800; color: var(--accent); }
.hero-stat-label { font-size: 13px; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.5px; }

.category-legend {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
}

/* --- Category Badges --- */
.cat-badge {
  display: inline-flex;
  align-items: center;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.cat-elections { background: rgba(231,76,60,.15); color: var(--cat-elections); border: 1px solid rgba(231,76,60,.3); }
.cat-sports { background: rgba(46,204,113,.15); color: var(--cat-sports); border: 1px solid rgba(46,204,113,.3); }
.cat-tech { background: rgba(52,152,219,.15); color: var(--cat-tech); border: 1px solid rgba(52,152,219,.3); }
.cat-geopolitics { background: rgba(230,126,34,.15); color: var(--cat-geopolitics); border: 1px solid rgba(230,126,34,.3); }
.cat-economy { background: rgba(241,196,15,.15); color: var(--cat-economy); border: 1px solid rgba(241,196,15,.3); }
.cat-infrastructure { background: rgba(155,89,182,.15); color: var(--cat-infrastructure); border: 1px solid rgba(155,89,182,.3); }
.cat-climate { background: rgba(26,188,156,.15); color: var(--cat-climate); border: 1px solid rgba(26,188,156,.3); }
.cat-culture { background: rgba(233,30,99,.15); color: var(--cat-culture); border: 1px solid rgba(233,30,99,.3); }

/* Category dots for stats */
.cat-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  margin-right: 6px;
}
.cat-dot.cat-elections { background: var(--cat-elections); }
.cat-dot.cat-sports { background: var(--cat-sports); }
.cat-dot.cat-tech { background: var(--cat-tech); }
.cat-dot.cat-geopolitics { background: var(--cat-geopolitics); }
.cat-dot.cat-economy { background: var(--cat-economy); }
.cat-dot.cat-infrastructure { background: var(--cat-infrastructure); }
.cat-dot.cat-climate { background: var(--cat-climate); }
.cat-dot.cat-culture { background: var(--cat-culture); }

/* --- Filters --- */
.filters-section {
  position: sticky;
  top: 96px; /* 56px main nav + 40px sub-nav */
  z-index: 90;
  background: rgba(12, 14, 18, .95);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  padding: 16px 0;
}

.filters-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  align-items: flex-end;
}

.filter-group { display: flex; flex-direction: column; gap: 4px; }
.filter-group-search { flex: 1; min-width: 200px; }

.filter-label {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--text-muted);
  font-weight: 600;
}

.filter-pills { display: flex; flex-wrap: wrap; gap: 4px; }

.pill {
  padding: 6px 14px;
  border-radius: 20px;
  border: 1px solid var(--border);
  background: transparent;
  color: var(--text-muted);
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: all .2s;
  white-space: nowrap;
}

.pill:hover { border-color: var(--text-muted); color: var(--text); }
.pill.active { background: var(--accent); color: #0c0e12; border-color: var(--accent); font-weight: 600; }

/* Category pill active states */
.pill.cat-elections.active { background: var(--cat-elections); border-color: var(--cat-elections); color: #fff; }
.pill.cat-sports.active { background: var(--cat-sports); border-color: var(--cat-sports); color: #fff; }
.pill.cat-tech.active { background: var(--cat-tech); border-color: var(--cat-tech); color: #fff; }
.pill.cat-geopolitics.active { background: var(--cat-geopolitics); border-color: var(--cat-geopolitics); color: #fff; }
.pill.cat-economy.active { background: var(--cat-economy); border-color: var(--cat-economy); color: #0c0e12; }
.pill.cat-infrastructure.active { background: var(--cat-infrastructure); border-color: var(--cat-infrastructure); color: #fff; }
.pill.cat-climate.active { background: var(--cat-climate); border-color: var(--cat-climate); color: #fff; }
.pill.cat-culture.active { background: var(--cat-culture); border-color: var(--cat-culture); color: #fff; }

.filter-select {
  padding: 6px 12px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: var(--bg-light);
  color: var(--text);
  font-size: 13px;
  cursor: pointer;
}

.filter-search {
  width: 100%;
  padding: 6px 12px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: var(--bg-light);
  color: var(--text);
  font-size: 13px;
}
.filter-search::placeholder { color: var(--text-muted); }

.results-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 12px;
  font-size: 13px;
  color: var(--text-muted);
}

.reset-btn {
  background: none;
  border: 1px solid var(--border);
  color: var(--text-muted);
  padding: 4px 12px;
  border-radius: var(--radius-sm);
  font-size: 12px;
  cursor: pointer;
  transition: all .2s;
}
.reset-btn:hover { border-color: var(--accent); color: var(--accent); }

/* --- Events Grid --- */
.events-section { padding: 32px 0 64px; }

.events-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 16px;
}

.loading-state {
  grid-column: 1 / -1;
  text-align: center;
  padding: 64px 0;
  color: var(--text-muted);
  font-size: 16px;
}

.no-results {
  text-align: center;
  padding: 64px 0;
  color: var(--text-muted);
}
.no-results p { margin-bottom: 16px; }

/* --- Event Card --- */
.event-card {
  background: var(--bg-light);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  cursor: pointer;
  transition: all .2s;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
}

.event-card:hover {
  border-color: var(--text-muted);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0,0,0,.3);
}

/* Category accent bar */
.event-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
}
.event-card.cat-elections::before { background: var(--cat-elections); }
.event-card.cat-sports::before { background: var(--cat-sports); }
.event-card.cat-tech::before { background: var(--cat-tech); }
.event-card.cat-geopolitics::before { background: var(--cat-geopolitics); }
.event-card.cat-economy::before { background: var(--cat-economy); }
.event-card.cat-infrastructure::before { background: var(--cat-infrastructure); }
.event-card.cat-climate::before { background: var(--cat-climate); }
.event-card.cat-culture::before { background: var(--cat-culture); }

.card-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 8px;
}

.card-category { font-size: 11px; }

.pm-score {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 28px;
  height: 28px;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 700;
  flex-shrink: 0;
}

.pm-score-high { background: rgba(14,203,129,.2); color: var(--green); border: 1px solid rgba(14,203,129,.3); }
.pm-score-mid { background: rgba(240,185,11,.15); color: var(--accent); border: 1px solid rgba(240,185,11,.3); }
.pm-score-low { background: rgba(132,142,156,.15); color: var(--text-muted); border: 1px solid rgba(132,142,156,.3); }

.card-title {
  font-size: 17px;
  font-weight: 700;
  margin-bottom: 6px;
  line-height: 1.3;
}

.card-flag { margin-right: 4px; }

.card-date {
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.countdown {
  font-size: 11px;
  padding: 2px 8px;
  border-radius: 10px;
  background: rgba(240,185,11,.1);
  color: var(--accent);
  font-weight: 600;
  white-space: nowrap;
}

.countdown.past {
  background: rgba(132,142,156,.1);
  color: var(--text-muted);
}

.card-desc {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.5;
  margin-bottom: 12px;
  flex: 1;
  /* Clamp to 3 lines */
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.card-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
  color: var(--text-muted);
}

.card-region { display: flex; align-items: center; gap: 4px; }
.card-markets-count { color: var(--accent); font-weight: 600; }

/* --- Sections --- */
.section {
  padding: 64px 0;
  border-top: 1px solid var(--border);
}

.section-header {
  text-align: center;
  margin-bottom: 40px;
}

.section-header h2 { font-size: 32px; font-weight: 800; margin-bottom: 8px; }
.section-header p { color: var(--text-muted); font-size: 16px; }

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

.stats-card {
  background: var(--bg-light);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
}

.stats-card h3 { font-size: 16px; font-weight: 700; margin-bottom: 16px; }

.stats-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
}

.stats-label { font-size: 13px; color: var(--text-muted); min-width: 90px; display: flex; align-items: center; }
.stats-bar-wrap { flex: 1; height: 20px; background: var(--bg-elevated); border-radius: 4px; overflow: hidden; }
.stats-bar { height: 100%; background: var(--accent); border-radius: 4px; transition: width .6s ease; }
.stats-val { font-size: 13px; font-weight: 600; min-width: 30px; text-align: right; }

/* Category bar colors */
.bar-elections { background: var(--cat-elections); }
.bar-sports { background: var(--cat-sports); }
.bar-tech { background: var(--cat-tech); }
.bar-geopolitics { background: var(--cat-geopolitics); }
.bar-economy { background: var(--cat-economy); }
.bar-infrastructure { background: var(--cat-infrastructure); }
.bar-climate { background: var(--cat-climate); }
.bar-culture { background: var(--cat-culture); }

/* --- Upcoming Grid --- */
.upcoming-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 16px;
}

.upcoming-card {
  background: var(--bg-light);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  cursor: pointer;
  transition: all .2s;
  position: relative;
  overflow: hidden;
}

.upcoming-card:hover {
  border-color: var(--accent);
  transform: translateY(-2px);
}

.upcoming-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
}
.upcoming-card.cat-elections::before { background: var(--cat-elections); }
.upcoming-card.cat-sports::before { background: var(--cat-sports); }
.upcoming-card.cat-tech::before { background: var(--cat-tech); }
.upcoming-card.cat-geopolitics::before { background: var(--cat-geopolitics); }
.upcoming-card.cat-economy::before { background: var(--cat-economy); }
.upcoming-card.cat-infrastructure::before { background: var(--cat-infrastructure); }
.upcoming-card.cat-climate::before { background: var(--cat-climate); }
.upcoming-card.cat-culture::before { background: var(--cat-culture); }

.upcoming-countdown {
  font-size: 24px;
  font-weight: 800;
  color: var(--accent);
  margin-bottom: 4px;
}

.upcoming-title { font-size: 15px; font-weight: 700; margin-bottom: 4px; }
.upcoming-date { font-size: 12px; color: var(--text-muted); }
.upcoming-cat { margin-top: 8px; }

/* --- CTA --- */
.cta-section {
  padding: 64px 20px;
  text-align: center;
  background: linear-gradient(180deg, transparent, rgba(240,185,11,.06));
}

.cta-section h2 { font-size: 28px; font-weight: 800; margin-bottom: 12px; }
.cta-section p { color: var(--text-muted); margin-bottom: 24px; font-size: 16px; }

.cta-button {
  display: inline-block;
  background: var(--accent);
  color: #0c0e12;
  padding: 12px 32px;
  border-radius: var(--radius-sm);
  font-weight: 700;
  font-size: 16px;
  transition: opacity .2s;
}
.cta-button:hover { opacity: .9; color: #0c0e12; }

/* --- Footer --- */
.site-footer {
  padding: 24px 20px;
  text-align: center;
  border-top: 1px solid var(--border);
  font-size: 13px;
  color: var(--text-muted);
}

.footer-links { margin-top: 8px; }
.footer-links a { color: var(--text-muted); }
.footer-links a:hover { color: var(--accent); }

/* --- Modal --- */
.modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.7);
  z-index: 200;
  backdrop-filter: blur(4px);
  overflow-y: auto;
  padding: 40px 20px;
}

.modal-overlay.active { display: flex; justify-content: center; align-items: flex-start; }

.modal {
  background: var(--bg-light);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  max-width: 720px;
  width: 100%;
  padding: 32px;
  position: relative;
  animation: modalIn .25s ease;
}

@keyframes modalIn {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

.modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 28px;
  cursor: pointer;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-sm);
  transition: all .2s;
}
.modal-close:hover { background: var(--bg-elevated); color: var(--text); }

.modal-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}

.modal-category { flex-shrink: 0; }
.modal-score { flex-shrink: 0; margin-left: auto; }

.modal-title { font-size: 24px; font-weight: 800; margin-bottom: 8px; line-height: 1.2; clear: both; }

.modal-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 14px;
  color: var(--text-muted);
  margin-bottom: 20px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border);
}

.modal-meta-item { display: flex; align-items: center; gap: 4px; }

.modal-body { margin-bottom: 20px; }
.modal-body h3 { font-size: 15px; font-weight: 700; margin: 16px 0 8px; color: var(--accent); }
.modal-body p { font-size: 14px; line-height: 1.7; color: var(--text-muted); }

.modal-markets { margin-bottom: 20px; }
.modal-markets h3 { font-size: 15px; font-weight: 700; margin-bottom: 10px; }
.modal-markets ul { list-style: none; }
.modal-markets li {
  padding: 8px 12px;
  background: var(--bg-elevated);
  border-radius: var(--radius-sm);
  margin-bottom: 6px;
  font-size: 14px;
  color: var(--text);
  display: flex;
  align-items: center;
  gap: 8px;
}
.modal-markets li::before {
  content: '?';
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: rgba(240,185,11,.15);
  color: var(--accent);
  font-size: 12px;
  font-weight: 700;
  flex-shrink: 0;
}

.modal-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 20px;
}

.modal-tag {
  padding: 3px 10px;
  border-radius: 12px;
  font-size: 11px;
  background: var(--bg-elevated);
  color: var(--text-muted);
  border: 1px solid var(--border);
}

.modal-actions { text-align: center; }

/* --- Responsive --- */
@media (max-width: 768px) {
  .hero h1 { font-size: 32px; }
  .hero .subtitle { font-size: 15px; }
  .hero-stats { gap: 20px; }
  .hero-stat-value { font-size: 24px; }

  .nav-main { display: none; }
  .nav-toggle { display: flex; }
  .nav-main.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 56px;
    left: 0;
    right: 0;
    background: var(--bg);
    border-bottom: 1px solid var(--border);
    padding: 16px 24px;
    gap: 4px;
    z-index: 101;
  }
  .nav-main.open .nav-main-btn { padding: 10px 12px; font-size: 14px; justify-content: flex-start; }
  .nav-right { display: none; }
  .nav-main.open + .nav-right-mobile { display: flex; }
  .nav-socials { display: none; }
  .sub-nav-links { gap: 16px; }
  .sub-nav-links a { font-size: 12px; }

  .filters-section { position: relative; top: 0; }
  .filters-bar { flex-direction: column; gap: 12px; }
  .filter-group { max-width: 100%; overflow: hidden; }
  .filter-pills { display: flex; flex-wrap: nowrap; overflow-x: auto; gap: 6px; padding-bottom: 4px; -webkit-overflow-scrolling: touch; }
  .filter-pills::-webkit-scrollbar { height: 3px; }
  .filter-pills::-webkit-scrollbar-track { background: transparent; }
  .filter-pills::-webkit-scrollbar-thumb { background: var(--border); border-radius: 3px; }

  .events-grid { grid-template-columns: 1fr; }
  .upcoming-grid { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: 1fr; }

  .modal { padding: 20px; }
  .modal-title { font-size: 20px; }

  .section-header h2 { font-size: 24px; }
}

@media (max-width: 480px) {
  .hero { padding: 48px 16px 32px; }
  .hero h1 { font-size: 28px; }
  .hero-stats { flex-wrap: wrap; gap: 16px; }
  .category-legend { gap: 4px; }
  .cat-badge { font-size: 10px; padding: 3px 8px; }
}

/* --- Language Switcher --- */
.lang-switcher {
  display: flex;
  align-items: center;
  margin-left: auto;
  margin-right: 12px;
}

.lang-select {
  background: var(--bg-elevated);
  color: var(--text-muted);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 4px 8px;
  font-size: 12px;
  font-family: var(--font);
  cursor: pointer;
  outline: none;
  transition: border-color .2s, color .2s;
  -webkit-appearance: none;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath d='M0 0l5 6 5-6z' fill='%23848e9c'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 6px center;
  padding-right: 20px;
}

.lang-select:hover,
.lang-select:focus {
  border-color: var(--accent);
  color: var(--text);
}

.lang-select option {
  background: var(--bg-light);
  color: var(--text);
}

/* --- FAQ --- */
.faq-list {
  max-width: 800px;
  margin: 0 auto;
}

.faq-item {
  background: var(--bg-light);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin-bottom: 12px;
  overflow: hidden;
}

.faq-question {
  padding: 16px 20px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: color .2s;
}

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

.faq-question::after {
  content: '+';
  font-size: 20px;
  font-weight: 300;
  color: var(--text-muted);
  flex-shrink: 0;
  margin-left: 16px;
  transition: transform .2s;
}

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

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

.faq-answer {
  padding: 0 20px 16px;
  font-size: 14px;
  line-height: 1.7;
  color: var(--text-muted);
}

.faq-answer a { color: var(--accent); }
.faq-answer a:hover { text-decoration: underline; }

/* FIX-M3: Language select touch target — min 44px height, 16px prevents iOS zoom */
@media (max-width: 768px) {
  .lang-switcher { margin-right: 8px; }
  .lang-select { min-height: 44px; font-size: 16px; padding: 8px 28px 8px 12px; }
}

/* ==========================================
   Task D: Nav consistency with prediction-markets
   Ensure identical nav styling across pages
   ========================================== */

/* Ensure nav-main items match prediction-markets exactly */
.nav-main-btn--forum { color: rgba(255,255,255,.65); }
.nav-main-btn--forum:hover,
.nav-main-btn--forum.active { background: rgba(255,255,255,.08); color: #fff; opacity: 1; }
.nav-main-btn--markets { color: #f0b90b; }
.nav-main-btn--markets:hover { background: rgba(240,185,11,.1); opacity: 1; }
.nav-main-btn--events { color: #0ecb81; }
.nav-main-btn--events:hover { background: rgba(14,203,129,.1); opacity: 1; }
.nav-main-btn.active { background: rgba(255,255,255,.08); }

/* Task E: Mobile nav — ensure nav links accessible on < 768px */
/* The hamburger opens .nav-main with .open class — ensure socials visible too */
@media (max-width: 768px) {
  /* nav-right hidden by default, socials shown inside open menu */
  .nav-right { display: none; }
  .nav-toggle { display: flex; align-items: center; justify-content: center; margin-left: auto; }

  /* When open: full-width dropdown with all links */
  .nav-main.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 56px;
    left: 0;
    right: 0;
    width: 100%;
    background: rgba(12,14,18,.98);
    border-bottom: 1px solid var(--border);
    padding: 12px 16px;
    gap: 4px;
    z-index: 200;
    box-shadow: 0 8px 24px rgba(0,0,0,.4);
  }
  .nav-main.open .nav-main-btn {
    padding: 10px 12px;
    font-size: 14px;
    justify-content: flex-start;
    width: 100%;
    border-radius: 6px;
  }
  /* Socials row appended inside open menu via JS */
  .nav-mobile-socials {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 8px 12px;
    border-top: 1px solid var(--border);
    margin-top: 4px;
  }
  .nav-mobile-socials a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: rgba(255,255,255,.65);
    width: 32px;
    height: 32px;
    border-radius: 4px;
    transition: color .2s, background .2s;
  }
  .nav-mobile-socials a:hover { color: #fff; background: rgba(255,255,255,.1); }

  /* Overflow safety on events page */
  html { overflow-x: hidden; }
  body { overflow-x: hidden; max-width: 100vw; }
  .container { width: 100%; box-sizing: border-box; }
  section { overflow-x: hidden; max-width: 100%; }
}

/* ==========================================
   Task F: Horizontal overflow safety net
   ========================================== */
html { overflow-x: hidden; }
body { overflow-x: hidden; max-width: 100vw; }
.site-nav { max-width: 100vw; box-sizing: border-box; overflow: hidden; }
.nav-inner { box-sizing: border-box; overflow: hidden; }
.container { width: 100%; box-sizing: border-box; }

/* Breadcrumb navigation */
.breadcrumb-nav { background: transparent; border-bottom: 1px solid rgba(255,255,255,0.06); padding: 8px 0; }
.breadcrumb-list { display: flex; align-items: center; gap: 0; list-style: none; margin: 0; padding: 0; font-size: 13px; flex-wrap: wrap; }
.breadcrumb-list li { color: rgba(255,255,255,0.5); }
.breadcrumb-list li + li::before { content: "›"; margin: 0 8px; color: rgba(255,255,255,0.3); }
.breadcrumb-list a { color: rgba(255,255,255,0.5); text-decoration: none; transition: color 0.2s; }
.breadcrumb-list a:hover { color: var(--accent, #f0b90b); }
.breadcrumb-list [aria-current="page"] { color: rgba(255,255,255,0.85); }
