/* ============================================================
   FUTSAL BRASIL — Portal CNDFB
   Design futurista · Glassmorphism · Preto / Azul / Amarelo
   ============================================================ */

/* ─── Variáveis ──────────────────────────────────────────── */
:root {
  --black:        #000510;
  --black-mid:    #000c20;
  --blue-dark:    #002050;
  --blue:         #0050cc;
  --blue-bright:  #1a7fff;
  --blue-glow:    rgba(0, 100, 255, 0.35);
  --yellow:       #ffd700;
  --yellow-soft:  rgba(255, 215, 0, 0.15);
  --green-br:     #009c3b;
  --white:        #ffffff;
  --white-dim:    rgba(255, 255, 255, 0.85);
  --white-muted:  rgba(255, 255, 255, 0.5);
  --white-subtle: rgba(255, 255, 255, 0.08);

  /* glass */
  --glass-bg:     rgba(5, 22, 72, 1);
  --glass-border: rgba(38, 132, 255, 0.6);
  --glass-blur:   blur(20px);
  --glass-hover:  rgba(8, 32, 95, 1);

  /* typography */
  --font-display: 'Orbitron', sans-serif;
  --font-body:    'Inter', system-ui, sans-serif;

  /* spacing */
  --container:    1200px;
  --section-gap:  120px;
  --card-radius:  16px;
  --radius-sm:    8px;

  /* transitions */
  --ease:         cubic-bezier(0.4, 0, 0.2, 1);
  --ease-spring:  cubic-bezier(0.34, 1.56, 0.64, 1);
}

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

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

body {
  font-family: var(--font-body);
  background: var(--black);
  color: var(--white-dim);
  line-height: 1.6;
  overflow-x: hidden;
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { cursor: pointer; font-family: inherit; border: none; background: none; }
ul, ol { list-style: none; }
.sr-only {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}

/* ─── Background Canvas ──────────────────────────────────── */
#bg-canvas {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
}

/* ─── Container ──────────────────────────────────────────── */
.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
  position: relative;
  z-index: 1;
}

/* ─── Section base ───────────────────────────────────────── */
.section {
  padding: var(--section-gap) 0;
  position: relative;
  z-index: 1;
}

/* ─── Navbar ─────────────────────────────────────────────── */
#navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 0 24px;
  transition: background 0.4s var(--ease), backdrop-filter 0.4s var(--ease);
}
#navbar.scrolled {
  background: rgba(0, 8, 24, 0.85);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border-bottom: 1px solid var(--glass-border);
}

.nav-container {
  max-width: var(--container);
  margin: 0 auto;
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--white);
}
.nav-logo-icon {
  width: 36px; height: 36px;
  flex-shrink: 0;
  object-fit: contain;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 8px;
}
.nav-link {
  padding: 8px 16px;
  border-radius: 99px;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--white-muted);
  transition: color 0.2s, background 0.2s;
}
.nav-link:hover, .nav-link.active {
  color: var(--white);
  background: var(--white-subtle);
}
.nav-btn {
  padding: 10px 20px;
  border-radius: 99px;
  font-size: 0.875rem;
  font-weight: 600;
  background: var(--blue);
  color: var(--white);
  transition: background 0.2s, transform 0.2s;
}
.nav-btn:hover {
  background: var(--blue-bright);
  transform: translateY(-1px);
}

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
  border-radius: var(--radius-sm);
}
.hamburger span {
  display: block;
  width: 22px; height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: transform 0.3s, opacity 0.3s;
}
.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ─── Hero ───────────────────────────────────────────────── */
#hero {
  min-height: 100svh;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  position: relative;
  overflow: hidden;
  z-index: 1;
}

/* ── Vídeo de fundo ── */
#hero-video {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center center;
  z-index: 0;
  opacity: 0.6;
}

/* ── Overlay gradient (legibilidade do texto) ── */
.hero-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(to right,  rgba(0,5,16,0.88) 0%, rgba(0,5,16,0.55) 55%, rgba(0,5,16,0.15) 100%),
    linear-gradient(to bottom, rgba(0,5,16,0.5)  0%, rgba(0,5,16,0.0)  40%, rgba(0,5,16,0.8)  100%);
  pointer-events: none;
}

/* ── Scan lines CRT ── */
.hero-scan-lines {
  position: absolute;
  inset: 0;
  z-index: 2;
  background: repeating-linear-gradient(
    0deg,
    transparent,
    transparent 2px,
    rgba(0,0,0,0.06) 2px,
    rgba(0,0,0,0.06) 4px
  );
  pointer-events: none;
  animation: scan-move 8s linear infinite;
}
@keyframes scan-move {
  from { background-position: 0 0; }
  to   { background-position: 0 100px; }
}

/* ── HUD / grade futurista ── */
.hero-grid-hud {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(0,100,255,0.055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0,100,255,0.055) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: radial-gradient(ellipse 80% 90% at 70% 50%, black 20%, transparent 80%);
  -webkit-mask-image: radial-gradient(ellipse 80% 90% at 70% 50%, black 20%, transparent 80%);
  animation: hud-pulse 6s ease-in-out infinite;
}
@keyframes hud-pulse {
  0%, 100% { opacity: 0.6; }
  50%       { opacity: 1;   }
}

/* ── Conteúdo hero ── */
.hero-content {
  position: relative;
  z-index: 3;
  max-width: var(--container);
  width: 100%;
  margin: 0 auto;
  padding: 120px 24px 80px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: 99px;
  border: 1px solid var(--glass-border);
  background: var(--glass-bg);
  backdrop-filter: var(--glass-blur);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--blue-bright);
  margin-bottom: 28px;
}
.badge-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--blue-bright);
  box-shadow: 0 0 8px var(--blue-bright);
  animation: pulse-dot 2s ease-in-out infinite;
}
@keyframes pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%       { opacity: 0.6; transform: scale(0.8); }
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(3rem, 9vw, 7.5rem);
  font-weight: 900;
  line-height: 0.85;
  letter-spacing: -0.02em;
  color: var(--white);
  margin-bottom: 24px;
}

/* ── Split text — letras do título ── */
.hero-title .word {
  display: inline-block;
  overflow: hidden;
  vertical-align: bottom;
}
.hero-title .char {
  display: inline-block;
  opacity: 0;
  transform: translateY(120%) skewY(8deg);
  animation: char-in 0.7s var(--ease-spring) forwards;
}
@keyframes char-in {
  to { opacity: 1; transform: translateY(0) skewY(0deg); }
}

/* ── Brasil animated text ── */
.brasil-animated {
  display: block;
  background: linear-gradient(90deg, var(--blue-bright), var(--yellow), var(--green-br));
  background-size: 300% 100%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: brasil-gradient 4s ease-in-out infinite;
}
@keyframes brasil-gradient {
  0%   { background-position: 0%   50%; }
  50%  { background-position: 100% 50%; }
  100% { background-position: 0%   50%; }
}

.hero-subtitle {
  font-size: clamp(0.9rem, 2vw, 1.1rem);
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--blue-bright);
  margin-bottom: 16px;
}

.hero-description {
  max-width: 580px;
  font-size: clamp(0.95rem, 1.5vw, 1.1rem);
  color: var(--white-muted);
  margin-bottom: 40px;
  line-height: 1.7;
}

.hero-stats {
  display: flex;
  align-items: center;
  gap: 0;
  margin-bottom: 40px;
  padding: 20px 28px;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: var(--card-radius);
  backdrop-filter: var(--glass-blur);
  width: fit-content;
}
.stat-item {
  text-align: center;
  padding: 0 28px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}
.stat-icon {
  width: 40px; height: 40px;
  border-radius: 10px;
  background: rgba(255, 215, 0, 0.12);
  border: 1px solid rgba(255, 215, 0, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--yellow);
  margin-bottom: 4px;
}
.stat-icon svg { width: 20px; height: 20px; }
.stat-number {
  display: block;
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 900;
  color: var(--yellow);
  line-height: 1;
}
.stat-label {
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--white-muted);
}
.stat-divider {
  width: 1px;
  height: 56px;
  background: var(--glass-border);
  flex-shrink: 0;
}

.hero-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.hero-scroll {
  position: absolute;
  bottom: 32px;
  left: 24px;
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--white-muted);
}
.scroll-arrow {
  width: 20px; height: 32px;
  border: 1.5px solid var(--white-muted);
  border-radius: 10px;
  position: relative;
}
.scroll-arrow::after {
  content: '';
  position: absolute;
  top: 6px; left: 50%;
  transform: translateX(-50%);
  width: 4px; height: 4px;
  border-radius: 50%;
  background: var(--white-muted);
  animation: scroll-indicator 1.6s ease-in-out infinite;
}
@keyframes scroll-indicator {
  0%   { opacity: 1; transform: translateX(-50%) translateY(0); }
  100% { opacity: 0; transform: translateX(-50%) translateY(14px); }
}

/* ─── Buttons ────────────────────────────────────────────── */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: 99px;
  font-size: 0.925rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  background: linear-gradient(135deg, var(--blue), var(--blue-bright));
  color: var(--white);
  transition: transform 0.2s var(--ease-spring), box-shadow 0.2s;
  box-shadow: 0 0 0 0 var(--blue-glow);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 32px var(--blue-glow);
}
.btn-primary:active { transform: translateY(0); }

.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: 99px;
  font-size: 0.925rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  border: 1.5px solid var(--glass-border);
  color: var(--white-dim);
  background: var(--glass-bg);
  backdrop-filter: var(--glass-blur);
  transition: border-color 0.2s, background 0.2s, transform 0.2s;
}
.btn-secondary:hover {
  border-color: var(--blue-bright);
  background: var(--glass-hover);
  transform: translateY(-2px);
}

.btn-large { padding: 18px 36px; font-size: 1rem; }
.btn-full  { width: 100%; justify-content: center; border-radius: var(--radius-sm); }

/* ─── Fundo de seção: grade decorativa global ─────────────── */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(0,60,180,0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0,60,180,0.025) 1px, transparent 1px);
  background-size: 100px 100px;
}

/* ─── Glass Card ─────────────────────────────────────────── */
.glass-card {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: var(--card-radius);
  /* backdrop-filter removed — causes invisible rendering in many browsers
     when combined with will-change: transform */
  padding: 28px;
  box-shadow:
    0 2px 0 0 rgba(38, 132, 255, 0.35) inset,  /* top accent line */
    0 8px 40px rgba(0, 30, 140, 0.4);           /* depth shadow */
  transition: border-color 0.4s, background 0.4s, box-shadow 0.4s;
  position: relative;
}
.glass-card:hover {
  border-color: rgba(60, 160, 255, 0.8);
  background: var(--glass-hover);
  box-shadow:
    0 2px 0 0 rgba(60, 160, 255, 0.5) inset,
    0 16px 56px rgba(0, 50, 200, 0.45);
}

/* ─── Section header ─────────────────────────────────────── */
.section-header {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 60px;
}
.section-tag {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 99px;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  border: 1px solid rgba(0, 130, 255, 0.35);
  color: var(--blue-bright);
  background: rgba(0, 80, 200, 0.12);
  margin-bottom: 16px;
}
.section-title {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 700;
  color: var(--white);
  margin-bottom: 16px;
  line-height: 1.15;
  letter-spacing: -0.01em;
}
.section-desc {
  font-size: 1rem;
  color: var(--white-muted);
  line-height: 1.7;
}

/* ─── Sobre: grid 3 cols ─────────────────────────────────── */
.cards-grid.three-cols {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-bottom: 20px;
}

.card-icon {
  width: 48px; height: 48px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}
.card-icon svg { width: 24px; height: 24px; }
.card-icon.blue   { background: rgba(0, 100, 255, 0.15); color: var(--blue-bright); }
.card-icon.yellow { background: rgba(255, 215, 0, 0.15); color: var(--yellow); }
.card-icon.green  { background: rgba(0, 156, 59, 0.15); color: #3ddc6d; }

.glass-card h3 {
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 10px;
  letter-spacing: 0.04em;
}
.glass-card p {
  font-size: 0.9rem;
  color: var(--white-muted);
  line-height: 1.65;
}

/* Princípios */
.principios-card {
  margin-top: 0;
}
.principios-card h3 {
  font-family: var(--font-display);
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 20px;
  letter-spacing: 0.06em;
}
.principios-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}
.principio-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.875rem;
  color: var(--white-muted);
}
.principio-num {
  width: 28px; height: 28px;
  border-radius: 50%;
  background: rgba(0, 80, 200, 0.2);
  border: 1px solid var(--glass-border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--blue-bright);
  flex-shrink: 0;
  font-family: var(--font-display);
}

/* ─── Pilares grid ───────────────────────────────────────── */
.pilares-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.pilar-card {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: var(--card-radius);
  padding: 24px 20px;
  cursor: pointer;
  text-align: center;
  box-shadow:
    0 2px 0 0 rgba(38, 132, 255, 0.35) inset,
    0 8px 36px rgba(0, 30, 140, 0.38);
  transition: border-color 0.4s, background 0.4s, box-shadow 0.4s;
  position: relative;
  overflow: hidden;
  will-change: transform;
  transform-style: preserve-3d;
}

/* Gradiente interno no hover */
.pilar-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at var(--mx, 50%) var(--my, 50%),
    rgba(0,100,255,0.15) 0%, transparent 65%);
  opacity: 0;
  transition: opacity 0.4s;
}

/* Borda animada giratória */
.pilar-card::after {
  content: '';
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  background: conic-gradient(
    from var(--border-angle, 0deg),
    transparent 0deg, transparent 90deg,
    var(--blue-bright) 150deg,
    var(--yellow) 180deg,
    var(--blue-bright) 210deg,
    transparent 270deg, transparent 360deg
  );
  z-index: -1;
  opacity: 0;
  transition: opacity 0.3s;
  animation: border-spin 3s linear infinite paused;
}

@keyframes border-spin {
  to { --border-angle: 360deg; }
}

/* Suporte moderno para @property */
@supports (background: conic-gradient(from 1turn, red, blue)) {
  @property --border-angle {
    syntax: '<angle>';
    inherits: false;
    initial-value: 0deg;
  }
}

.pilar-card:hover {
  border-color: transparent;
  background: var(--glass-hover);
  box-shadow:
    0 20px 60px rgba(0, 60, 200, 0.35),
    0 0 0 1px rgba(0,100,255,0.1) inset;
}
.pilar-card:hover::before { opacity: 1; }
.pilar-card:hover::after  {
  opacity: 1;
  animation-play-state: running;
}
.pilar-card:focus-visible {
  outline: 2px solid var(--blue-bright);
  outline-offset: 2px;
}

.pilar-badge {
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--blue-bright);
  text-transform: uppercase;
  margin-bottom: 12px;
}
.pilar-title {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
  color: var(--white);
  line-height: 1.4;
  letter-spacing: 0.03em;
  margin-top: 4px;
}
.pilar-card .pilar-cta {
  display: inline-block;
  margin-top: 12px;
  font-size: 0.85rem;
  color: var(--blue-bright);
  opacity: 0;
  transform: translateY(4px);
  transition: opacity 0.2s, transform 0.2s;
}
.pilar-card:hover .pilar-cta { opacity: 1; transform: translateY(0); }

/* ─── Modal base ─────────────────────────────────────────── */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 5, 16, 0.85);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  animation: fade-in 0.25s var(--ease);
}
.modal-overlay[hidden] { display: none; }

@keyframes fade-in {
  from { opacity: 0; }
  to   { opacity: 1; }
}

.modal-container {
  width: 100%;
  max-width: 680px;
  max-height: 88vh;
  overflow-y: auto;
  border-radius: 20px;
  padding: 36px;
  position: relative;
  animation: slide-up 0.3s var(--ease-spring);
  scrollbar-width: thin;
  scrollbar-color: var(--glass-border) transparent;
}
@keyframes slide-up {
  from { opacity: 0; transform: translateY(24px) scale(0.97); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}

.modal-close {
  position: sticky;
  top: 0; right: 0;
  float: right;
  width: 36px; height: 36px;
  border-radius: 50%;
  background: var(--white-subtle);
  border: 1px solid var(--glass-border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white-muted);
  transition: background 0.2s, color 0.2s;
  z-index: 1;
  margin-bottom: 8px;
}
.modal-close svg { width: 16px; height: 16px; }
.modal-close:hover { background: rgba(255,50,50,0.2); color: #ff6b6b; }

/* ─── GT Modal content ───────────────────────────────────── */
.gt-modal-header {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 24px;
  padding-top: 8px;
}
.gt-modal-emoji {
  font-size: 2.5rem;
  line-height: 1;
  flex-shrink: 0;
}
.gt-modal-meta .section-tag { margin-bottom: 6px; }
.gt-modal-meta h2 {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--white);
  line-height: 1.3;
  letter-spacing: 0.02em;
}

.gt-modal-section {
  margin-bottom: 20px;
}
.gt-modal-section h4 {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--blue-bright);
  margin-bottom: 10px;
}
.gt-modal-section p {
  font-size: 0.925rem;
  color: var(--white-muted);
  line-height: 1.65;
}
.gt-modal-section ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.gt-modal-section ul li {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 0.875rem;
  color: var(--white-muted);
  line-height: 1.5;
}
.gt-modal-section ul li::before {
  content: '▸';
  color: var(--blue-bright);
  flex-shrink: 0;
  margin-top: 2px;
}

.gt-entrega {
  padding: 16px;
  background: rgba(255, 215, 0, 0.07);
  border: 1px solid rgba(255, 215, 0, 0.2);
  border-radius: var(--radius-sm);
  font-size: 0.875rem;
  color: var(--yellow);
  line-height: 1.6;
}

.gt-membros-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.gt-membro-tag {
  padding: 4px 10px;
  border-radius: 99px;
  font-size: 0.75rem;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  color: var(--white-muted);
}

/* ─── Mapa ───────────────────────────────────────────────── */
.mapa-wrapper {
  display: grid;
  grid-template-columns: 1fr 280px;
  gap: 20px;
  align-items: start;
}

.mapa-container {
  padding: 24px;
  position: relative;
}

#brasil-map {
  width: 100%;
}
#brasil-map svg { width: 100%; height: auto; display: block; }

.map-tooltip {
  position: absolute;
  pointer-events: none;
  padding: 10px 14px;
  background: rgba(0, 10, 30, 0.95);
  border: 1px solid var(--blue-bright);
  border-radius: var(--radius-sm);
  font-size: 0.8rem;
  color: var(--white);
  white-space: nowrap;
  backdrop-filter: blur(8px);
  z-index: 10;
  opacity: 0;
  transition: opacity 0.15s;
}
.map-tooltip.visible { opacity: 1; }
.map-tooltip strong { color: var(--yellow); display: block; font-size: 0.875rem; }

.mapa-legend {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 16px;
  font-size: 0.75rem;
  color: var(--white-muted);
}
.legend-gradient {
  flex: 1;
  height: 8px;
  border-radius: 4px;
  background: linear-gradient(90deg,
    rgba(0, 20, 60, 0.6) 0%,
    rgba(0, 80, 200, 0.6) 50%,
    var(--yellow) 100%
  );
}

.mapa-sidebar {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.mapa-stats-card h3,
.mapa-ranking-card h3 {
  font-family: var(--font-display);
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--white);
  letter-spacing: 0.06em;
  margin-bottom: 16px;
}

.map-stat-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 0;
  border-bottom: 1px solid var(--white-subtle);
  font-size: 0.8rem;
  color: var(--white-muted);
}
.map-stat-row:last-child { border-bottom: none; }
.map-stat-value {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--yellow);
}

#estados-ranking li {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 6px 0;
  border-bottom: 1px solid var(--white-subtle);
  font-size: 0.8rem;
}
#estados-ranking li:last-child { border-bottom: none; }
.ranking-pos {
  width: 20px;
  font-family: var(--font-display);
  font-size: 0.65rem;
  color: var(--blue-bright);
  font-weight: 700;
  flex-shrink: 0;
  text-align: center;
}
.ranking-estado {
  flex: 1;
  color: var(--white-dim);
  font-weight: 500;
}
.ranking-count {
  font-family: var(--font-display);
  color: var(--yellow);
  font-size: 0.75rem;
  font-weight: 700;
}

/* map state paths */
.map-state { cursor: pointer; transition: opacity 0.2s; }
.map-state:hover { opacity: 0.8; }

/* ─── Participe ──────────────────────────────────────────── */
.participe-card {
  text-align: center;
  padding: 64px 48px;
  position: relative;
  overflow: hidden;
}
.participe-glow {
  position: absolute;
  top: -40%;
  left: 50%;
  transform: translateX(-50%);
  width: 400px; height: 400px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(0, 80, 255, 0.15), transparent 70%);
  pointer-events: none;
}
.participe-card h2 {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3.5vw, 2.2rem);
  font-weight: 700;
  color: var(--white);
  margin: 16px 0 12px;
  letter-spacing: -0.01em;
}
.participe-card p {
  font-size: 1rem;
  color: var(--white-muted);
  max-width: 520px;
  margin: 0 auto 32px;
  line-height: 1.7;
}
.participe-features {
  display: flex;
  justify-content: center;
  gap: 24px;
  margin-bottom: 36px;
  flex-wrap: wrap;
}
.feature-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.875rem;
  color: var(--white-muted);
  padding: 8px 16px;
  border-radius: 99px;
  background: var(--white-subtle);
  border: 1px solid var(--glass-border);
}
.feature-icon { font-size: 1rem; }
.feature-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--blue-bright);
  flex-shrink: 0;
  display: inline-block;
}

/* ─── Form modal ─────────────────────────────────────────── */
.form-modal-container { max-width: 600px; }

.modal-header { margin-bottom: 28px; }
.modal-header h2 {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--white);
  margin: 10px 0 6px;
  letter-spacing: 0.02em;
}
.modal-header p { font-size: 0.85rem; color: var(--white-muted); }

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 20px;
}
.form-group { display: flex; flex-direction: column; gap: 6px; }
.form-group.full-width { grid-column: 1 / -1; }

label {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--white-muted);
  letter-spacing: 0.04em;
}
input, select, textarea {
  background: rgba(0, 10, 30, 0.7);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-sm);
  color: var(--white);
  font-family: var(--font-body);
  font-size: 0.925rem;
  padding: 12px 14px;
  transition: border-color 0.2s, box-shadow 0.2s;
  outline: none;
  width: 100%;
}
input::placeholder, textarea::placeholder { color: rgba(255,255,255,0.25); }
input:focus, select:focus, textarea:focus {
  border-color: var(--blue-bright);
  box-shadow: 0 0 0 3px rgba(0, 130, 255, 0.15);
}
input.invalid, select.invalid, textarea.invalid {
  border-color: #ff6b6b;
  box-shadow: 0 0 0 3px rgba(255, 80, 80, 0.15);
}
select { -webkit-appearance: none; appearance: none; cursor: pointer; }
textarea { resize: vertical; min-height: 120px; }

.char-count-wrapper { display: flex; justify-content: flex-end; }
.char-count {
  font-size: 0.75rem;
  color: var(--white-muted);
}
.char-count.warn { color: var(--yellow); }

.form-error {
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  background: rgba(255, 80, 80, 0.1);
  border: 1px solid rgba(255, 100, 100, 0.3);
  color: #ff8080;
  font-size: 0.85rem;
  margin-bottom: 16px;
}
.form-error[hidden] { display: none; }

.spinner {
  width: 18px; height: 18px;
  border: 2px solid rgba(255,255,255,0.3);
  border-top-color: white;
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
.spinner[hidden] { display: none; }

/* Sucesso */
.success-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 24px 0;
}
.success-icon {
  width: 72px; height: 72px;
  border-radius: 50%;
  background: rgba(0, 200, 100, 0.15);
  border: 2px solid rgba(0, 200, 100, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
  animation: success-pop 0.5s var(--ease-spring);
}
.success-icon svg {
  width: 36px; height: 36px;
  stroke: #3ddc6d;
}
@keyframes success-pop {
  0% { transform: scale(0); opacity: 0; }
  100% { transform: scale(1); opacity: 1; }
}
.success-content h2 {
  font-family: var(--font-display);
  font-size: 1.4rem;
  color: var(--white);
  margin-bottom: 12px;
}
.success-content p { color: var(--white-muted); font-size: 0.95rem; margin-bottom: 8px; }
.success-sub { font-size: 1.1rem !important; margin-top: 4px; }
.success-content .btn-secondary { margin-top: 24px; }

/* ─── Pessoas grid ───────────────────────────────────────── */
.pessoas-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.pessoa-card {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: var(--card-radius);
  padding: 24px 20px;
  text-align: center;
  box-shadow:
    0 2px 0 0 rgba(38, 132, 255, 0.35) inset,
    0 8px 36px rgba(0, 30, 140, 0.38);
  transition: border-color 0.3s, background 0.3s, box-shadow 0.3s, transform 0.3s var(--ease-spring);
}
.pessoa-card:hover {
  border-color: rgba(0, 130, 255, 0.4);
  background: var(--glass-hover);
  transform: translateY(-4px);
}

.pessoa-avatar {
  width: 60px; height: 60px;
  border-radius: 50%;
  margin: 0 auto 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--white);
  background: linear-gradient(135deg, var(--blue-dark), var(--blue));
  border: 2px solid var(--glass-border);
}
.pessoa-nome {
  font-family: var(--font-display);
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 4px;
  letter-spacing: 0.03em;
  line-height: 1.3;
}
.pessoa-cargo {
  font-size: 0.72rem;
  color: var(--blue-bright);
  font-weight: 500;
  line-height: 1.4;
}

/* ─── Footer ─────────────────────────────────────────────── */
#footer {
  position: relative;
  z-index: 1;
  border-top: 1px solid var(--glass-border);
  background: rgba(0, 5, 16, 0.8);
  backdrop-filter: var(--glass-blur);
  padding: 56px 24px 32px;
}

.footer-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 32px;
  margin-bottom: 40px;
  flex-wrap: wrap;
}
.footer-title {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 900;
  color: var(--white);
  letter-spacing: -0.01em;
  margin-bottom: 8px;
}
.footer-brasil {
  background: linear-gradient(90deg, var(--blue-bright), var(--yellow));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.footer-title-row {
  display: flex;
  align-items: center;
  gap: 12px;
}
.footer-logo {
  width: 44px;
  height: 44px;
  object-fit: contain;
  flex-shrink: 0;
}
.footer-brand p { font-size: 0.85rem; color: var(--white-muted); }

.footer-nav {
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-items: flex-end;
}
.footer-nav a {
  font-size: 0.875rem;
  color: var(--white-muted);
  transition: color 0.2s;
}
.footer-nav a:hover { color: var(--blue-bright); }

.footer-middle {
  padding-bottom: 24px;
  border-bottom: 1px solid var(--white-subtle);
  margin-bottom: 20px;
}
.footer-middle p {
  font-size: 0.85rem;
  color: var(--white-muted);
  margin-bottom: 6px;
}
.footer-bottom p {
  font-size: 0.8rem;
  color: rgba(255,255,255,0.3);
  text-align: center;
}

/* ─── Scroll reveal ──────────────────────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s var(--ease), transform 0.6s var(--ease);
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}
.reveal:nth-child(2) { transition-delay: 0.1s; }
.reveal:nth-child(3) { transition-delay: 0.2s; }

/* ─── Map loading skeleton ───────────────────────────────── */
.map-skeleton {
  width: 100%;
  min-height: 440px;
  border-radius: 8px;
  background: linear-gradient(90deg, rgba(0,20,60,0.4) 25%, rgba(0,40,100,0.25) 50%, rgba(0,20,60,0.4) 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
}
@keyframes shimmer {
  0% { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}

/* ─── Responsive ─────────────────────────────────────────── */
@media (max-width: 1100px) {
  .pilares-grid { grid-template-columns: repeat(3, 1fr); }
  .pessoas-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 860px) {
  :root { --section-gap: 80px; }

  .hamburger { display: flex; }

  .nav-links {
    display: none;
    position: absolute;
    top: 72px; left: 0; right: 0;
    flex-direction: column;
    align-items: stretch;
    padding: 16px 24px 24px;
    background: rgba(0, 8, 24, 0.98);
    border-bottom: 1px solid var(--glass-border);
    backdrop-filter: blur(24px);
  }
  .nav-links.open { display: flex; }
  .nav-link { padding: 12px 16px; border-radius: var(--radius-sm); }
  .nav-btn { text-align: center; margin-top: 8px; }

  #navbar { position: relative; }

  #hero { padding: 80px 24px 80px; }
  .hero-stats { flex-direction: column; gap: 16px; padding: 20px; }
  .stat-divider { width: 80px; height: 1px; }

  .cards-grid.three-cols { grid-template-columns: 1fr; }
  .principios-grid { grid-template-columns: repeat(2, 1fr); }

  .pilares-grid { grid-template-columns: repeat(2, 1fr); }
  .pessoas-grid { grid-template-columns: repeat(2, 1fr); }

  .mapa-wrapper { grid-template-columns: 1fr; }
  .mapa-container { padding: 16px; }
  .mapa-sidebar { flex-direction: row; }
  .mapa-stats-card, .mapa-ranking-card { flex: 1; }

  .participe-card { padding: 40px 24px; }
  .participe-features { gap: 12px; }

  .form-grid { grid-template-columns: 1fr; }
  .form-group.full-width { grid-column: 1; }

  .footer-top { flex-direction: column; }
  .footer-nav { align-items: flex-start; flex-direction: row; flex-wrap: wrap; gap: 12px; }
}

@media (max-width: 540px) {
  :root { --section-gap: 60px; }
  .pilares-grid { grid-template-columns: repeat(2, 1fr); }
  .pessoas-grid { grid-template-columns: repeat(2, 1fr); }
  .mapa-container { padding: 8px; }
  .mapa-sidebar { flex-direction: column; }
  .modal-container { padding: 24px 20px; }
  .hero-actions { flex-direction: column; }
  .hero-actions a, .hero-actions button { text-align: center; width: 100%; }
  .section-title { font-size: clamp(1.5rem, 6vw, 2.5rem); }
  .section-desc { font-size: 0.85rem; }
  .pilar-card { padding: 18px 14px; }
  .pessoa-card { padding: 18px 12px; }
  .footer-title-row { gap: 8px; }
  .footer-logo { width: 32px; height: 32px; }
}

/* ─── Ticker strip ───────────────────────────────────────── */
.ticker-strip {
  position: relative;
  z-index: 1;
  background: rgba(0, 20, 60, 0.7);
  border-top: 1px solid rgba(0, 80, 200, 0.25);
  border-bottom: 1px solid rgba(0, 80, 200, 0.25);
  backdrop-filter: blur(12px);
  overflow: hidden;
  height: 38px;
  display: flex;
  align-items: center;
}
.ticker-inner {
  display: flex;
  align-items: center;
  gap: 20px;
  white-space: nowrap;
  animation: ticker-scroll 35s linear infinite;
  padding: 0 20px;
}
.ticker-item {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.55);
  flex-shrink: 0;
}
.ticker-sep {
  color: var(--blue-bright);
  opacity: 0.5;
  font-size: 0.9rem;
  flex-shrink: 0;
}
@keyframes ticker-scroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* ─── Cronograma — static HTML timeline ─────────────────── */

/* Fade-out wrapper — gradient edges over scrollable area */
.cronograma-fade-wrap {
  position: relative;
  /* Break out of .container to go edge-to-edge */
  width: 100vw;
  margin-left: calc(-50vw + 50%);
}
.cronograma-fade-wrap::before,
.cronograma-fade-wrap::after {
  content: '';
  position: absolute;
  top: 0;
  bottom: 20px; /* above scrollbar track */
  width: 80px;
  z-index: 5;
  pointer-events: none;
}
.cronograma-fade-wrap::before {
  left: 0;
  background: linear-gradient(to right, #000510 0%, transparent 100%);
}
.cronograma-fade-wrap::after {
  right: 0;
  background: linear-gradient(to left, #000510 0%, transparent 100%);
}

.cronograma-scroll {
  overflow-x: auto;
  padding: 12px 0 24px;
  scrollbar-width: thin;
  scrollbar-color: rgba(0, 80, 180, 0.4) transparent;
  margin-bottom: 28px;
  cursor: grab;
}
.cronograma-scroll:active { cursor: grabbing; }

/* 8 equal-width step columns — 1760px forces horizontal scroll on any viewport */
.crono-steps {
  display: flex;
  align-items: flex-start;
  width: 1760px;
  padding: 0 60px;
  position: relative;
  box-sizing: border-box;
}

/* Rail line through all dot centers */
/* dot center = month-height(52px) + padding(14px) + dot-half(10px) = 76px from top of step */
.crono-steps::before {
  content: '';
  position: absolute;
  left: calc(60px + (1760px - 120px) / 16);
  right: calc(60px + (1760px - 120px) / 16);
  top: 76px;
  height: 3px;
  background: rgba(0, 80, 180, 0.28);
  border-radius: 2px;
  z-index: 0;
}

/* Progress fill: FEV done + MAR in-progress = 1.5/8 */
.crono-steps::after {
  content: '';
  position: absolute;
  left: calc(60px + (1760px - 120px) / 16);
  top: 76px;
  height: 3px;
  width: calc((1760px - 120px) * 1.5 / 8);
  background: linear-gradient(90deg, var(--blue-bright), var(--yellow));
  border-radius: 2px;
  z-index: 1;
  box-shadow: 0 0 10px rgba(26, 127, 255, 0.5);
}

.crono-step {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  z-index: 2;
}

/* Month label above the dot */
.crono-month {
  height: 52px;
  display: flex;
  align-items: flex-end;
  padding-bottom: 14px;
  font-family: var(--font-display);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.38);
  text-align: center;
  white-space: nowrap;
}
.crono-step.done .crono-month    { color: var(--blue-bright); }
.crono-step.current .crono-month { color: var(--yellow); }

/* The dot node on the rail */
.crono-dot {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: rgba(0, 8, 24, 1);
  border: 2.5px solid rgba(0, 80, 180, 0.5);
  flex-shrink: 0;
  position: relative;
  z-index: 3;
}
.crono-step.done .crono-dot {
  background: var(--blue-bright);
  border-color: var(--blue-bright);
  box-shadow: 0 0 16px rgba(26, 127, 255, 0.9);
}
.crono-step.current .crono-dot {
  background: var(--yellow);
  border-color: var(--yellow);
  box-shadow: 0 0 24px rgba(255, 215, 0, 1);
  animation: crono-pulse 2.2s ease-in-out infinite;
}
@keyframes crono-pulse {
  0%, 100% { box-shadow: 0 0 10px rgba(255,215,0,0.5); transform: scale(1); }
  50%       { box-shadow: 0 0 28px rgba(255,215,0,1);  transform: scale(1.32); }
}

/* Card below the dot */
.crono-card {
  margin-top: 18px;
  background: rgba(4, 16, 52, 1);
  border: 1px solid rgba(0, 80, 180, 0.55);
  border-radius: 12px;
  padding: 14px 12px 16px;
  text-align: center;
  width: calc(100% - 28px);
  min-height: 76px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
}
.crono-step.done .crono-card {
  border-color: rgba(26, 127, 255, 0.7);
  background: rgba(0, 22, 66, 1);
}
.crono-step.current .crono-card {
  border-color: rgba(255, 215, 0, 0.7);
  background: rgba(32, 22, 0, 1);
  box-shadow: 0 4px 24px rgba(255, 215, 0, 0.12);
}

.crono-badge {
  display: block;
  font-size: 0.64rem;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.38);
}
.crono-step.done .crono-badge    { color: var(--blue-bright); }
.crono-step.current .crono-badge { color: var(--yellow); }

.crono-title {
  font-family: var(--font-display);
  font-size: 0.78rem;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.45);
  line-height: 1.4;
}
.crono-step.done .crono-title    { color: var(--white-dim); }
.crono-step.current .crono-title { color: var(--white); }

/* Entrega card */
.cronograma-entrega {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 24px 28px;
  margin-top: 0;
}
.crono-entrega-icon-wrap {
  width: 44px;
  height: 44px;
  flex-shrink: 0;
  color: var(--yellow);
  opacity: 0.85;
}
.crono-entrega-icon-wrap svg {
  width: 44px;
  height: 44px;
}
.crono-entrega-body h3 {
  font-family: var(--font-display);
  font-size: 0.85rem;
  color: var(--white);
  margin-bottom: 6px;
  letter-spacing: 0.04em;
}
.crono-entrega-body p {
  font-size: 0.875rem;
  color: var(--white-muted);
  line-height: 1.65;
}
.crono-entrega-body strong { color: var(--yellow); }

/* ─── Pessoa card improvements ───────────────────────────── */
.pessoa-card {
  display: flex;
  flex-direction: column;
  align-items: center;
}
.pessoa-avatar.cor-blue {
  background: linear-gradient(135deg, #001a60 0%, #0050cc 100%);
  border-color: rgba(0, 100, 255, 0.4);
}
.pessoa-avatar.cor-yellow {
  background: linear-gradient(135deg, #5a3d00 0%, #c89800 100%);
  border-color: rgba(200, 152, 0, 0.4);
}
.pessoa-avatar.cor-green {
  background: linear-gradient(135deg, #003018 0%, #007a30 100%);
  border-color: rgba(0, 122, 48, 0.4);
}
.pessoa-avatar.cor-purple {
  background: linear-gradient(135deg, #200040 0%, #7000cc 100%);
  border-color: rgba(112, 0, 204, 0.4);
}
.pessoa-role-badge {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 99px;
  font-size: 0.58rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  background: rgba(0, 60, 180, 0.2);
  border: 1px solid rgba(0, 100, 255, 0.3);
  color: var(--blue-bright);
  margin-top: 8px;
}
.pessoa-role-badge.role-yellow {
  background: rgba(200, 152, 0, 0.15);
  border-color: rgba(255, 215, 0, 0.35);
  color: var(--yellow);
}
.pessoa-role-badge.role-green {
  background: rgba(0, 100, 40, 0.15);
  border-color: rgba(0, 156, 59, 0.35);
  color: #3ddc6d;
}
.pessoa-role-badge.role-purple {
  background: rgba(100, 0, 180, 0.15);
  border-color: rgba(140, 0, 220, 0.35);
  color: #c070ff;
}

/* ─── Section glow dividers ──────────────────────────────── */
.section + .section,
.section + .ticker-strip + .section {
  position: relative;
}
.section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 200px;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(0, 100, 255, 0.3), transparent);
  pointer-events: none;
}

@media (max-width: 860px) {
  .cronograma-scroll { padding-bottom: 16px; }
  .cronograma-entrega { flex-direction: column; text-align: center; }
}
@media (max-width: 540px) {
  .ticker-strip { height: 34px; }
  .ticker-item { font-size: 0.65rem; }
}

/* ─── Language Switcher ─────────────────────────────────── */
.lang-switcher {
  display: flex;
  align-items: center;
  gap: 3px;
  margin-right: 10px;
}
.lang-btn {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 5px 9px;
  border-radius: 7px;
  border: 1px solid transparent;
  background: transparent;
  color: var(--white-muted);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s, color 0.2s;
  line-height: 1;
  white-space: nowrap;
}
.lang-btn:hover {
  background: rgba(0, 100, 255, 0.14);
  color: var(--white);
  border-color: rgba(0, 100, 255, 0.28);
}
.lang-btn.active {
  background: rgba(0, 100, 255, 0.22);
  color: var(--white);
  border-color: rgba(0, 100, 255, 0.5);
}
.lang-flag { font-size: 1.05rem; line-height: 1; }
.lang-code { font-family: var(--font-display); font-size: 0.65rem; letter-spacing: 0.06em; }

@media (max-width: 860px) {
  .lang-switcher { margin-right: 6px; }
  .lang-code     { display: none; }
  .lang-btn      { padding: 5px 6px; }
}
@media (max-width: 480px) {
  .lang-flag { font-size: 0.9rem; }
}
