:root {
  --bg: #050816;
  --bg-2: #081126;
  --panel: rgba(11, 22, 50, .78);
  --panel-solid: #0b1632;
  --panel-2: rgba(16, 30, 66, .72);
  --line: rgba(120, 184, 255, .16);
  --line-strong: rgba(88, 225, 255, .34);
  --text: #f3f7ff;
  --muted: #9fb0ce;
  --cyan: #45e3ff;
  --cyan-2: #0eb6d8;
  --blue: #5382ff;
  --purple: #a56cff;
  --green: #48e6a5;
  --yellow: #ffd166;
  --red: #ff6f91;
  --shadow: 0 28px 80px rgba(0, 0, 0, .38);
  --radius: 22px;
  --font: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  font-family: var(--font);
  background:
    radial-gradient(circle at 14% -10%, rgba(70, 108, 255, .22), transparent 34%),
    radial-gradient(circle at 96% 2%, rgba(165, 108, 255, .18), transparent 31%),
    linear-gradient(180deg, #050816 0%, #071024 47%, #050816 100%);
  overflow-x: hidden;
}
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: -1;
  background-image:
    linear-gradient(rgba(84, 132, 255, .035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(84, 132, 255, .035) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: linear-gradient(to bottom, black, transparent 86%);
}
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; }
button { color: inherit; }
img, svg { max-width: 100%; }

.skip-link {
  position: fixed; left: 12px; top: -70px; z-index: 99999;
  padding: 10px 14px; background: white; color: black; border-radius: 10px;
}
.skip-link:focus { top: 12px; }

.container { width: min(1440px, calc(100% - 40px)); margin: 0 auto; }
.site-header {
  position: sticky; top: 0; z-index: 1000;
  background: rgba(5, 8, 22, .78);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(18px);
}
.nav-wrap { min-height: 76px; display: flex; align-items: center; gap: 24px; }
.brand { display: flex; align-items: center; gap: 12px; min-width: max-content; }
.brand img { width: 42px; height: 42px; filter: drop-shadow(0 0 18px rgba(69, 227, 255, .34)); }
.brand-copy { display: flex; flex-direction: column; line-height: 1.05; }
.brand-title { font-weight: 800; letter-spacing: -.035em; font-size: 1rem; }
.brand-sub { color: var(--cyan); font-size: .66rem; letter-spacing: .16em; text-transform: uppercase; margin-top: 5px; }
.nav-links { display: flex; align-items: center; gap: 6px; margin-left: auto; }
.nav-links a {
  padding: 10px 12px; border-radius: 12px; color: var(--muted); font-size: .88rem;
  transition: .2s ease;
}
.nav-links a:hover, .nav-links a.active { color: white; background: rgba(83, 130, 255, .12); }
.nav-actions { display: flex; align-items: center; gap: 10px; }
.lang-select, .control, .search-control {
  border: 1px solid var(--line);
  background: rgba(8, 17, 38, .9);
  color: var(--text);
  border-radius: 12px;
  min-height: 42px;
  outline: none;
}
.lang-select { padding: 0 34px 0 12px; }
.lang-select:focus, .control:focus, .search-control:focus, textarea:focus, input:focus { border-color: var(--cyan); box-shadow: 0 0 0 3px rgba(69, 227, 255, .1); }
.menu-btn { display: none; width: 42px; height: 42px; border: 1px solid var(--line); background: transparent; border-radius: 12px; }

.hero { padding: 72px 0 28px; position: relative; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(340px, .8fr); gap: 40px; align-items: center; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 9px; padding: 7px 11px; border: 1px solid rgba(69, 227, 255, .24);
  background: rgba(69, 227, 255, .07); border-radius: 999px; color: var(--cyan); font-size: .75rem; letter-spacing: .12em; text-transform: uppercase;
}
.eyebrow::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--cyan); box-shadow: 0 0 14px var(--cyan); }
h1 { font-size: clamp(2.55rem, 6vw, 5.7rem); line-height: .95; margin: 22px 0 22px; letter-spacing: -.065em; max-width: 980px; }
.gradient-text { background: linear-gradient(90deg, #fff 15%, var(--cyan) 52%, #c19aff 100%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero-copy { font-size: clamp(1rem, 1.7vw, 1.18rem); line-height: 1.75; color: var(--muted); max-width: 790px; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 30px; }
.btn {
  min-height: 46px; padding: 0 18px; border-radius: 13px; border: 1px solid var(--line); background: rgba(11, 22, 50, .75); display: inline-flex; align-items: center; justify-content: center; gap: 9px; cursor: pointer; font-weight: 700; transition: .22s ease;
}
.btn:hover { transform: translateY(-2px); border-color: var(--line-strong); }
.btn-primary { border-color: transparent; color: #03101b; background: linear-gradient(135deg, var(--cyan), #78f5d4); box-shadow: 0 12px 32px rgba(69, 227, 255, .2); }
.btn-ghost { color: var(--text); }
.hero-note { margin-top: 17px; display: flex; gap: 10px; align-items: flex-start; color: #b7c5de; font-size: .82rem; line-height: 1.55; }
.hero-note .dot { margin-top: 5px; width: 8px; height: 8px; border-radius: 50%; background: var(--yellow); box-shadow: 0 0 12px rgba(255, 209, 102, .55); flex: 0 0 auto; }

.orb-card { min-height: 410px; border: 1px solid var(--line); border-radius: 32px; background: linear-gradient(145deg, rgba(15, 31, 72, .75), rgba(9, 16, 39, .72)); box-shadow: var(--shadow); position: relative; overflow: hidden; display: grid; place-items: center; isolation: isolate; }
.orb-card::before { content: ""; position: absolute; width: 330px; height: 330px; border-radius: 50%; background: radial-gradient(circle, rgba(69, 227, 255, .16), rgba(83, 130, 255, .06) 46%, transparent 68%); filter: blur(1px); }
.orb { width: 250px; aspect-ratio: 1; border: 1px solid rgba(69, 227, 255, .38); border-radius: 50%; position: relative; box-shadow: inset 0 0 55px rgba(69, 227, 255, .08), 0 0 70px rgba(69, 227, 255, .12); background: radial-gradient(circle at 35% 30%, rgba(123, 245, 255, .18), transparent 32%); }
.orb::before, .orb::after { content: ""; position: absolute; inset: 11%; border: 1px solid rgba(165, 108, 255, .28); border-radius: 50%; transform: rotate(58deg) scaleY(.38); }
.orb::after { transform: rotate(-18deg) scaleY(.66); border-color: rgba(69, 227, 255, .24); }
.orb-line { position: absolute; left: 50%; top: 0; width: 1px; height: 100%; background: linear-gradient(transparent, rgba(69, 227, 255, .45), transparent); }
.orb-line:nth-child(2) { transform: rotate(60deg); }
.orb-line:nth-child(3) { transform: rotate(120deg); }
.orb-marker { position: absolute; width: 11px; height: 11px; border-radius: 50%; background: var(--cyan); box-shadow: 0 0 18px currentColor; animation: pulse 2.4s infinite; }
.orb-marker.m1 { top: 26%; left: 20%; color: var(--cyan); }
.orb-marker.m2 { top: 43%; right: 13%; color: var(--purple); background: var(--purple); animation-delay: .6s; }
.orb-marker.m3 { bottom: 19%; left: 43%; color: var(--green); background: var(--green); animation-delay: 1.1s; }
@keyframes pulse { 0%,100% { transform: scale(.75); opacity: .65; } 50% { transform: scale(1.25); opacity: 1; } }
.orb-stats { position: absolute; inset: auto 20px 20px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.orb-stat { padding: 12px; border-radius: 14px; background: rgba(5, 12, 30, .72); border: 1px solid var(--line); text-align: center; backdrop-filter: blur(8px); }
.orb-stat strong { display: block; font-size: 1.1rem; }
.orb-stat span { display: block; color: var(--muted); font-size: .65rem; margin-top: 3px; }

.section { padding: 36px 0 72px; }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 24px; margin-bottom: 24px; }
.section-head h2, .page-hero h1 { font-size: clamp(2rem, 4vw, 3.4rem); letter-spacing: -.045em; margin: 9px 0 0; }
.section-head p { color: var(--muted); max-width: 680px; line-height: 1.65; margin: 0; }

.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.stat-card, .glass-card { border: 1px solid var(--line); background: linear-gradient(145deg, rgba(14, 27, 62, .76), rgba(7, 14, 34, .86)); border-radius: var(--radius); box-shadow: 0 18px 48px rgba(0,0,0,.18); }
.stat-card { padding: 22px; position: relative; overflow: hidden; }
.stat-card::after { content: ""; position: absolute; width: 86px; height: 86px; border-radius: 50%; right: -28px; top: -34px; background: rgba(69, 227, 255, .1); filter: blur(6px); }
.stat-label { font-size: .78rem; color: var(--muted); text-transform: uppercase; letter-spacing: .11em; }
.stat-value { font-size: clamp(1.75rem, 3vw, 2.55rem); font-weight: 800; margin: 12px 0 7px; letter-spacing: -.045em; }
.stat-meta { color: #b7c4dc; font-size: .78rem; }

.dashboard { display: grid; grid-template-columns: 290px minmax(0, 1fr) 330px; gap: 14px; align-items: stretch; }
.filters-panel, .detail-panel { padding: 18px; }
.panel-title { display: flex; justify-content: space-between; align-items: center; margin-bottom: 16px; }
.panel-title h3 { margin: 0; font-size: 1rem; }
.panel-kicker { color: var(--cyan); font-size: .68rem; text-transform: uppercase; letter-spacing: .14em; }
.filter-group { margin-bottom: 14px; }
.filter-group label { display: block; color: var(--muted); font-size: .72rem; margin-bottom: 7px; }
.control, .search-control { width: 100%; padding: 0 11px; }
.filter-legend { margin-top: 18px; border-top: 1px solid var(--line); padding-top: 15px; }
.legend-item { display: flex; align-items: center; gap: 10px; font-size: .78rem; color: #c5d0e4; margin: 9px 0; }
.legend-dot { width: 10px; height: 10px; border-radius: 50%; box-shadow: 0 0 12px currentColor; }
.map-shell { position: relative; min-height: 650px; overflow: hidden; }
#map { width: 100%; height: 650px; border-radius: var(--radius); background: #071126; }
.map-badge { position: absolute; z-index: 500; left: 15px; top: 15px; padding: 8px 11px; border-radius: 12px; border: 1px solid var(--line); background: rgba(4, 10, 27, .78); color: #c8d7ef; font-size: .72rem; backdrop-filter: blur(10px); pointer-events: none; }
.map-empty { position: absolute; inset: 0; z-index: 450; background: rgba(5, 10, 24, .82); display: none; place-items: center; text-align: center; padding: 30px; }
.map-empty.show { display: grid; }
.detail-panel { min-height: 650px; }
.detail-empty { display: grid; place-items: center; height: 100%; text-align: center; color: var(--muted); line-height: 1.6; }
.detail-empty-icon { width: 70px; height: 70px; border-radius: 20px; border: 1px solid var(--line); display: grid; place-items: center; margin: 0 auto 14px; font-size: 1.5rem; color: var(--cyan); background: rgba(69,227,255,.06); }
.detail-content { display: none; }
.detail-content.active { display: block; }
.company-row { display: flex; align-items: center; gap: 11px; }
.company-chip { width: 14px; height: 14px; border-radius: 50%; box-shadow: 0 0 16px currentColor; }
.detail-content h3 { font-size: 1.45rem; margin: 15px 0 5px; letter-spacing: -.035em; }
.detail-location { color: var(--muted); font-size: .84rem; }
.badge-row { display: flex; flex-wrap: wrap; gap: 7px; margin: 15px 0; }
.badge { padding: 6px 9px; border-radius: 999px; font-size: .67rem; border: 1px solid var(--line); color: #cbd6e9; background: rgba(255,255,255,.03); }
.badge.operational { color: var(--green); border-color: rgba(72,230,165,.22); background: rgba(72,230,165,.07); }
.badge.planned { color: var(--yellow); border-color: rgba(255,209,102,.22); background: rgba(255,209,102,.07); }
.badge.expansion { color: var(--cyan); border-color: rgba(69,227,255,.22); background: rgba(69,227,255,.07); }
.metric-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 9px; }
.metric { border: 1px solid var(--line); border-radius: 14px; padding: 12px; background: rgba(255,255,255,.025); }
.metric span { display: block; color: var(--muted); font-size: .67rem; }
.metric strong { display: block; margin-top: 6px; font-size: .96rem; }
.detail-desc { color: #b9c7df; font-size: .8rem; line-height: 1.65; margin: 16px 0; }
.source-link { display: inline-flex; align-items: center; gap: 7px; color: var(--cyan); font-size: .78rem; }
.source-link:hover { text-decoration: underline; }

.leaflet-container { font-family: var(--font); }
.leaflet-control-zoom a { background: rgba(8,17,38,.92) !important; color: white !important; border-color: var(--line) !important; }
.leaflet-control-attribution { background: rgba(5,8,22,.72) !important; color: #8ea1c4 !important; }
.leaflet-control-attribution a { color: var(--cyan) !important; }
.leaflet-popup-content-wrapper, .leaflet-popup-tip { background: #0b1632; color: white; box-shadow: 0 18px 50px rgba(0,0,0,.4); }
.leaflet-popup-content { margin: 14px; }
.map-popup strong { font-size: .93rem; }
.map-popup p { margin: 5px 0 0; color: #aebed8; font-size: .76rem; }
.map-popup .mini { color: var(--cyan); font-size: .7rem; margin-top: 8px; }

.charts-grid { display: grid; grid-template-columns: 1.3fr .7fr; gap: 14px; }
.chart-card { padding: 20px; min-height: 370px; }
.chart-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 18px; margin-bottom: 10px; }
.chart-head h3 { margin: 0; font-size: 1rem; }
.chart-head p { margin: 5px 0 0; color: var(--muted); font-size: .72rem; }
.chart-wrap { height: 300px; position: relative; }

.timeline { position: relative; display: grid; gap: 12px; }
.timeline::before { content: ""; position: absolute; top: 18px; bottom: 18px; left: 18px; width: 1px; background: linear-gradient(var(--cyan), var(--purple)); }
.timeline-item { display: grid; grid-template-columns: 38px 120px 1fr; gap: 14px; align-items: start; position: relative; }
.timeline-dot { width: 13px; height: 13px; margin: 13px 0 0 12px; border-radius: 50%; background: var(--cyan); box-shadow: 0 0 16px currentColor; z-index: 1; }
.timeline-year { padding-top: 9px; color: var(--cyan); font-weight: 800; }
.timeline-card { padding: 16px 18px; }
.timeline-card h3 { margin: 0 0 5px; font-size: .93rem; }
.timeline-card p { margin: 0; color: var(--muted); font-size: .8rem; line-height: 1.55; }

.impact-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.impact-card { padding: 22px; }
.impact-icon { width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center; background: rgba(69,227,255,.08); border: 1px solid rgba(69,227,255,.15); color: var(--cyan); font-size: 1.2rem; }
.impact-card h3 { margin: 16px 0 8px; }
.impact-card p { margin: 0; color: var(--muted); line-height: 1.7; font-size: .86rem; }

.cta { padding: 28px; display: flex; align-items: center; justify-content: space-between; gap: 25px; overflow: hidden; position: relative; }
.cta::after { content: ""; position: absolute; right: -40px; top: -80px; width: 260px; height: 260px; border-radius: 50%; background: radial-gradient(circle, rgba(165,108,255,.2), transparent 65%); }
.cta h2 { margin: 0 0 8px; letter-spacing: -.035em; }
.cta p { margin: 0; color: var(--muted); }
.cta .btn { position: relative; z-index: 1; flex: 0 0 auto; }

.page-hero { padding: 70px 0 28px; }
.page-hero p { max-width: 820px; color: var(--muted); line-height: 1.75; font-size: 1.02rem; }
.content-grid { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 18px; }
.prose { padding: 26px; }
.prose h2 { margin-top: 0; font-size: 1.55rem; }
.prose h3 { margin-top: 30px; font-size: 1.08rem; }
.prose p, .prose li { color: #b8c6dd; line-height: 1.75; }
.prose ul { padding-left: 19px; }
.side-card { padding: 20px; height: fit-content; position: sticky; top: 96px; }
.side-card h3 { margin-top: 0; }
.side-card a { display: block; color: var(--muted); padding: 9px 0; border-bottom: 1px solid var(--line); }
.side-card a:hover { color: var(--cyan); }
.source-list { display: grid; gap: 10px; }
.source-item { padding: 14px; border: 1px solid var(--line); border-radius: 14px; background: rgba(255,255,255,.02); }
.source-item strong { display: block; }
.source-item span { color: var(--muted); font-size: .75rem; line-height: 1.5; display: block; margin-top: 5px; }

.faq-list { display: grid; gap: 10px; }
.faq-item { border: 1px solid var(--line); border-radius: 16px; overflow: hidden; background: rgba(11,22,50,.62); }
.faq-question { width: 100%; border: 0; background: transparent; color: white; text-align: left; padding: 18px; display: flex; justify-content: space-between; align-items: center; cursor: pointer; font-weight: 750; }
.faq-answer { max-height: 0; overflow: hidden; transition: max-height .28s ease; }
.faq-answer > div { padding: 0 18px 18px; color: var(--muted); line-height: 1.7; }
.faq-item.open .faq-answer { max-height: 500px; }
.faq-item.open .faq-plus { transform: rotate(45deg); }
.faq-plus { transition: .2s ease; color: var(--cyan); font-size: 1.2rem; }

.contact-grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: 18px; }
.contact-info, .contact-form { padding: 26px; }
.contact-info h2, .contact-form h2 { margin-top: 0; }
.contact-info p { color: var(--muted); line-height: 1.7; }
.contact-method { margin-top: 20px; padding: 15px; border: 1px solid var(--line); border-radius: 15px; }
.contact-method span { color: var(--muted); font-size: .73rem; display: block; }
.contact-method strong { display: block; margin-top: 6px; }
.form-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 13px; }
.form-field { display: grid; gap: 7px; }
.form-field.full { grid-column: 1 / -1; }
.form-field label { color: var(--muted); font-size: .76rem; }
.form-field input, .form-field textarea, .form-field select { width: 100%; border: 1px solid var(--line); border-radius: 12px; background: rgba(5,12,30,.72); color: white; padding: 12px; outline: none; }
.form-field textarea { min-height: 150px; resize: vertical; }
.form-status { margin: 12px 0; padding: 12px; border-radius: 12px; font-size: .82rem; }
.form-status.success { color: var(--green); background: rgba(72,230,165,.08); border: 1px solid rgba(72,230,165,.2); }
.form-status.error { color: var(--red); background: rgba(255,111,145,.08); border: 1px solid rgba(255,111,145,.2); }
.honeypot { position: absolute !important; left: -9999px !important; }

.site-footer { border-top: 1px solid var(--line); padding: 38px 0; margin-top: 42px; background: rgba(3,7,18,.42); }
.footer-grid { display: grid; grid-template-columns: 1.2fr .8fr .8fr; gap: 28px; }
.footer-brand p { color: var(--muted); max-width: 520px; font-size: .82rem; line-height: 1.65; }
.footer-col h3 { font-size: .78rem; text-transform: uppercase; letter-spacing: .1em; color: #cbd5e8; }
.footer-col a { display: block; color: var(--muted); margin: 9px 0; font-size: .82rem; }
.footer-col a:hover { color: var(--cyan); }
.footer-bottom { display: flex; justify-content: space-between; gap: 20px; margin-top: 30px; padding-top: 20px; border-top: 1px solid var(--line); color: #7f91b2; font-size: .72rem; }

@media (max-width: 1180px) {
  .dashboard { grid-template-columns: 250px minmax(0, 1fr); }
  .detail-panel { grid-column: 1 / -1; min-height: auto; }
  .detail-empty { min-height: 220px; }
  .detail-content.active { display: grid; grid-template-columns: 1fr 1fr; gap: 16px 24px; }
  .detail-content .detail-main { grid-column: 1; }
  .detail-content .detail-metrics { grid-column: 2; grid-row: 1 / span 2; }
}
@media (max-width: 980px) {
  .nav-links { display: none; position: absolute; top: 76px; left: 20px; right: 20px; padding: 10px; background: rgba(7,14,34,.97); border: 1px solid var(--line); border-radius: 16px; flex-direction: column; align-items: stretch; }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 12px 14px; }
  .menu-btn { display: grid; place-items: center; }
  .hero-grid { grid-template-columns: 1fr; }
  .orb-card { min-height: 330px; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .charts-grid, .impact-grid { grid-template-columns: 1fr; }
  .content-grid, .contact-grid { grid-template-columns: 1fr; }
  .side-card { position: static; }
}
@media (max-width: 760px) {
  .container { width: min(100% - 24px, 1440px); }
  .site-header .container { width: min(100% - 18px, 1440px); }
  .nav-wrap { min-height: 68px; gap: 10px; }
  .brand-title { font-size: .88rem; }
  .brand-sub { display: none; }
  .brand img { width: 36px; height: 36px; }
  .nav-actions { margin-left: auto; }
  .lang-select { width: 76px; padding-left: 9px; padding-right: 22px; }
  .hero { padding-top: 46px; }
  h1 { font-size: clamp(2.55rem, 15vw, 4.25rem); }
  .section { padding-bottom: 52px; }
  .section-head { align-items: flex-start; flex-direction: column; }
  .dashboard { grid-template-columns: 1fr; }
  .filters-panel { order: 1; }
  .map-shell { order: 2; min-height: 560px; }
  #map { height: 560px; }
  .detail-panel { order: 3; }
  .detail-content.active { display: block; }
  .metric-grid { margin-top: 14px; }
  .timeline-item { grid-template-columns: 38px 66px 1fr; gap: 8px; }
  .cta { flex-direction: column; align-items: flex-start; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
  .footer-bottom { flex-direction: column; }
  .form-grid { grid-template-columns: 1fr; }
  .form-field.full { grid-column: auto; }
}
@media (max-width: 480px) {
  .stats-grid { grid-template-columns: 1fr; }
  .hero-actions .btn { width: 100%; }
  .orb { width: 210px; }
  .orb-stats { inset: auto 10px 10px; }
  .orb-stat { padding: 9px 5px; }
  .map-shell { min-height: 500px; }
  #map { height: 500px; }
  .timeline-item { grid-template-columns: 32px 1fr; }
  .timeline-year { grid-column: 2; padding-top: 7px; }
  .timeline-card { grid-column: 2; }
  .timeline::before { left: 15px; }
  .timeline-dot { margin-left: 9px; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-brand { grid-column: auto; }
}

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

/* Theme switcher and resilient map rendering */
.theme-toggle {
  width: 42px;
  height: 42px;
  flex: 0 0 42px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: rgba(8, 17, 38, .9);
  color: var(--text);
  display: grid;
  place-items: center;
  cursor: pointer;
  transition: transform .2s ease, border-color .2s ease, background .2s ease;
}
.theme-toggle:hover { transform: translateY(-1px); border-color: var(--line-strong); }
.theme-toggle:focus-visible { outline: none; border-color: var(--cyan); box-shadow: 0 0 0 3px rgba(69, 227, 255, .13); }
.theme-icon { grid-area: 1 / 1; font-size: 1.05rem; line-height: 1; transition: opacity .2s ease, transform .25s ease; }
.theme-icon-moon { opacity: 0; transform: rotate(-35deg) scale(.7); }
:root[data-theme="light"] .theme-icon-sun { opacity: 0; transform: rotate(35deg) scale(.7); }
:root[data-theme="light"] .theme-icon-moon { opacity: 1; transform: rotate(0) scale(1); }
.floating-theme { position: fixed; top: 18px; right: 18px; z-index: 1000; }

#map .leaflet-tile { background: transparent; }
#map.map-theme-dark .leaflet-tile-pane {
  filter: invert(1) hue-rotate(180deg) brightness(.76) contrast(1.14) saturate(.72);
}
#map.map-theme-light .leaflet-tile-pane { filter: none; }
.world-fallback-overlay { pointer-events: none; }
#map.has-tile-errors::after {
  content: "Map fallback active";
  position: absolute;
  right: 10px;
  bottom: 25px;
  z-index: 480;
  padding: 5px 8px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: rgba(5, 8, 22, .76);
  color: var(--muted);
  font-size: .62rem;
  letter-spacing: .04em;
  pointer-events: none;
}

:root[data-theme="light"] {
  --bg: #edf5fb;
  --bg-2: #dfeaf4;
  --panel: rgba(255, 255, 255, .88);
  --panel-solid: #ffffff;
  --panel-2: rgba(243, 248, 252, .96);
  --line: rgba(32, 73, 112, .17);
  --line-strong: rgba(0, 135, 166, .38);
  --text: #102038;
  --muted: #5d6f86;
  --cyan: #007f9f;
  --cyan-2: #0098b9;
  --blue: #315fcb;
  --purple: #7445cc;
  --green: #14865f;
  --yellow: #9a6500;
  --red: #c33d5e;
  --shadow: 0 25px 70px rgba(31, 63, 91, .17);
}
:root[data-theme="light"] body {
  background:
    radial-gradient(circle at 14% -10%, rgba(49, 95, 203, .12), transparent 34%),
    radial-gradient(circle at 96% 2%, rgba(116, 69, 204, .10), transparent 31%),
    linear-gradient(180deg, #f5f9fc 0%, #eaf3f9 47%, #f7fafc 100%);
}
:root[data-theme="light"] body::before {
  background-image:
    linear-gradient(rgba(49, 95, 203, .045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(49, 95, 203, .045) 1px, transparent 1px);
}
:root[data-theme="light"] .site-header {
  background: rgba(247, 250, 253, .86);
  box-shadow: 0 8px 30px rgba(36, 64, 91, .06);
}
:root[data-theme="light"] .brand img { filter: drop-shadow(0 0 14px rgba(0, 127, 159, .18)); }
:root[data-theme="light"] .nav-links a:hover,
:root[data-theme="light"] .nav-links a.active { color: var(--text); background: rgba(49, 95, 203, .09); }
:root[data-theme="light"] .lang-select,
:root[data-theme="light"] .control,
:root[data-theme="light"] .search-control,
:root[data-theme="light"] .theme-toggle {
  background: rgba(255, 255, 255, .9);
  color: var(--text);
}
:root[data-theme="light"] .btn { background: rgba(255, 255, 255, .82); color: var(--text); }
:root[data-theme="light"] .btn-primary { color: #03151b; background: linear-gradient(135deg, #39d7ed, #7ae8c4); }
:root[data-theme="light"] .hero-note,
:root[data-theme="light"] .stat-meta,
:root[data-theme="light"] .legend-item,
:root[data-theme="light"] .detail-desc,
:root[data-theme="light"] .prose p,
:root[data-theme="light"] .prose li { color: #50657d; }
:root[data-theme="light"] .orb-card {
  background: linear-gradient(145deg, rgba(255,255,255,.9), rgba(228,239,248,.9));
}
:root[data-theme="light"] .orb-stat { background: rgba(255, 255, 255, .78); }
:root[data-theme="light"] .stat-card,
:root[data-theme="light"] .glass-card {
  background: linear-gradient(145deg, rgba(255,255,255,.92), rgba(238,245,250,.94));
  box-shadow: 0 18px 48px rgba(35, 66, 94, .10);
}
:root[data-theme="light"] #map { background: #dcebf5; }
:root[data-theme="light"] .map-badge {
  background: rgba(255,255,255,.88);
  color: #425970;
}
:root[data-theme="light"] .map-empty { background: rgba(235,244,250,.9); }
:root[data-theme="light"] #map.has-tile-errors::after { background: rgba(255,255,255,.86); }
:root[data-theme="light"] .detail-empty-icon { background: rgba(0,127,159,.07); }
:root[data-theme="light"] .badge { color: #455a72; background: rgba(255,255,255,.5); }
:root[data-theme="light"] .metric,
:root[data-theme="light"] .source-item { background: rgba(255,255,255,.55); }
:root[data-theme="light"] .leaflet-control-zoom a {
  background: rgba(255,255,255,.94) !important;
  color: var(--text) !important;
}
:root[data-theme="light"] .leaflet-control-attribution {
  background: rgba(255,255,255,.82) !important;
  color: #5f7288 !important;
}
:root[data-theme="light"] .leaflet-popup-content-wrapper,
:root[data-theme="light"] .leaflet-popup-tip {
  background: #ffffff;
  color: var(--text);
  box-shadow: 0 18px 50px rgba(35, 66, 94, .2);
}
:root[data-theme="light"] .map-popup p { color: #60738a; }
:root[data-theme="light"] .faq-item { background: rgba(255,255,255,.72); }
:root[data-theme="light"] .faq-question { color: var(--text); }
:root[data-theme="light"] .form-field input,
:root[data-theme="light"] .form-field textarea,
:root[data-theme="light"] .form-field select { background: rgba(255,255,255,.84); color: var(--text); }
:root[data-theme="light"] .site-footer { background: rgba(230,240,247,.58); }
:root[data-theme="light"] .footer-col h3 { color: #334a63; }
:root[data-theme="light"] .footer-bottom { color: #60758b; }

@media (max-width: 980px) {
  :root[data-theme="light"] .nav-links { background: rgba(248,251,253,.98); }
}
@media (max-width: 760px) {
  .theme-toggle { width: 40px; height: 40px; flex-basis: 40px; }
}

@media (max-width: 480px) {
  .nav-actions { gap: 6px; }
  .brand-copy { display: none; }
  .lang-select { width: 64px; min-height: 40px; padding-left: 8px; padding-right: 18px; }
}
