/* RUS MED Team Brandboard 2026 Official Identity:
   - Pantone 2945 C: #2658A5 (R38 G88 B165 - Azul RUS)
   - Pantone 299 C:  #08B3E9 (R8 G179 B233 - Cian RUS)
   - Pantone 109 C:  #FFDC22 (R255 G220 B34 - Amarillo RUS)
   - Pantone 2768 C: #212552 (R33 G37 B82 - Azul Marino Oscuro / Dark Navy)
   - Tipografía Oficial: Gotham (Book, Medium, Bold, Black, Ultra) / Montserrat / Inter
*/
:root, [data-theme="dark"] {
  --rus-blue: #2658A5;        /* Pantone 2945 C */
  --rus-blue-bright: #2658A5; /* Pantone 2945 C */
  --rus-blue-dark: #212552;   /* Pantone 2768 C */
  --rus-cyan: #08B3E9;        /* Pantone 299 C */
  --rus-cyan-glow: rgba(8, 179, 233, 0.35);
  --rus-yellow: #FFDC22;      /* Pantone 109 C */
  --rus-yellow-glow: rgba(255, 220, 34, 0.4);
  --rus-gold: #D2AC67;
  --bg-0: #15183B;            /* Deep dark variant of Pantone 2768 C */
  --bg-1: #212552;            /* Pantone 2768 C */
  --bg-card: #212552;         /* Pantone 2768 C */
  --bg-card-hover: #293066;
  --ink-0: #FFFFFF;
  --ink-1: #F1F5F9;
  --ink-2: #CBD5E1;
  --ink-3: #94A3B8;
  --ink-4: #64748B;
  --line: rgba(8, 179, 233, 0.25);
  --line-yellow: rgba(255, 220, 34, 0.4);
  --header-bg: #212552;       /* Pantone 2768 C */
  --nav-bg: #15183B;
  --card-shadow: 0 4px 16px rgba(15, 18, 48, 0.5);
  --font-display: 'Gotham', 'Gotham Ultra', 'Gotham Black', 'Gotham Bold', 'Montserrat', -apple-system, sans-serif;
  --font-body: 'Gotham', 'Gotham Medium', 'Gotham Book', 'Montserrat', 'Inter', -apple-system, sans-serif;
  --r-md: 12px;
  --r-lg: 18px;
}

[data-theme="light"] {
  --rus-blue: #2658A5;        /* Pantone 2945 C */
  --rus-blue-bright: #08B3E9; /* Pantone 299 C */
  --rus-blue-dark: #F0F4FC;
  --rus-cyan: #08B3E9;        /* Pantone 299 C */
  --rus-cyan-glow: rgba(8, 179, 233, 0.15);
  --rus-yellow: #E5B800;      /* Adapted Pantone 109 C for high contrast on light */
  --rus-yellow-glow: rgba(255, 220, 34, 0.3);
  --rus-gold: #B38E46;
  --bg-0: #F4F6FA;
  --bg-1: #FFFFFF;
  --bg-card: #FFFFFF;
  --bg-card-hover: #F1F5F9;
  --ink-0: #212552;           /* Pantone 2768 C */
  --ink-1: #1E293B;
  --ink-2: #334155;
  --ink-3: #64748B;
  --ink-4: #94A3B8;
  --line: #D0D9EB;
  --line-yellow: rgba(229, 184, 0, 0.35);
  --header-bg: #212552;       /* Pantone 2768 C */
  --nav-bg: #FFFFFF;
  --card-shadow: 0 4px 15px rgba(33, 37, 82, 0.08);
}

.section-title {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 900;
  margin-bottom: 12px;
  color: var(--ink-0);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}


* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html, body {
  background-color: var(--bg-0);
  color: var(--ink-1);
  font-family: var(--font-body);
  min-height: 100vh;
  width: 100%;
  transition: background-color 0.3s ease, color 0.3s ease;
}

/* App Viewport Container */
.app-viewport-wrapper {
  width: 100%;
  max-width: 680px;
  margin: 0 auto;
  background: var(--bg-0);
  min-height: 100vh;
  position: relative;
  box-shadow: 0 0 60px rgba(0, 82, 204, 0.2);
  display: flex;
  flex-direction: column;
  transition: background-color 0.3s ease;
}

/* Header tiempos.actc.org.ar style con Marca RUS MED */
.app-header {
  background: var(--header-bg);
  padding: 12px 16px;
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 100;
  transition: background 0.3s ease;
}

.brand-official-logo {
  height: 38px;
  width: auto;
  object-fit: contain;
  filter: drop-shadow(0 2px 6px rgba(0,0,0,0.2));
}

.theme-toggle-btn {
  background: rgba(255, 194, 0, 0.15);
  color: var(--rus-yellow);
  border: 1px solid var(--rus-yellow);
  font-size: 11px;
  font-weight: 800;
  padding: 5px 10px;
  border-radius: 20px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 4px;
  transition: all 0.2s ease;
}

.theme-toggle-btn:hover {
  transform: scale(1.05);
}

.header-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}

.brand-logo-container {
  display: flex;
  align-items: center;
  gap: 10px;
}

.team-badge-logo {
  background: linear-gradient(135deg, var(--rus-blue), #0284c7);
  padding: 6px 14px;
  border-radius: 8px;
  font-family: var(--font-display);
  font-weight: 900;
  letter-spacing: 1.5px;
  color: #fff;
  font-size: 16px;
  box-shadow: 0 4px 16px var(--rus-cyan-glow);
  border: 1px solid var(--rus-cyan);
}

/* Filter Pills estilo ACTC con desplazamiento suave */
.category-filter-bar {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 8px;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
  scrollbar-color: var(--rus-cyan) transparent;
  touch-action: pan-x;
}
.category-filter-bar::-webkit-scrollbar {
  height: 4px;
}
.category-filter-bar::-webkit-scrollbar-track {
  background: rgba(0, 0, 0, 0.1);
  border-radius: 4px;
}
.category-filter-bar::-webkit-scrollbar-thumb {
  background: var(--rus-cyan);
  border-radius: 4px;
}

.developed-by-banner {
  text-align: center;
  padding: 14px 16px;
  margin: 24px 0 12px;
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: 14px;
  color: var(--ink-1);
  font-size: 12px;
  box-shadow: var(--card-shadow);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}
.developed-by-badge {
  color: var(--rus-yellow);
  font-family: var(--font-display);
  font-weight: 900;
  letter-spacing: 0.5px;
  font-size: 13px;
}

.cat-pill {
  padding: 6px 14px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.12);
  border: 1.5px solid rgba(255, 255, 255, 0.25);
  color: #FFFFFF;
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 800;
  white-space: nowrap;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  flex-shrink: 0;
  backdrop-filter: blur(8px);
}

.cat-pill .cat-pill-logo {
  height: 22px;
  max-width: 65px;
  width: auto;
  object-fit: contain;
  display: block;
  pointer-events: none;
  filter: drop-shadow(0 1px 3px rgba(0,0,0,0.5));
  transition: transform 0.2s ease;
}

.cat-pill:hover {
  background: rgba(255, 255, 255, 0.22);
  border-color: var(--rus-cyan);
  transform: translateY(-1px);
}

.cat-pill:hover .cat-pill-logo {
  transform: scale(1.08);
}

.cat-pill.active {
  background: linear-gradient(135deg, #00B9F2, #064DA1);
  color: #FFFFFF;
  border-color: var(--rus-yellow);
  box-shadow: 0 0 14px rgba(255, 220, 34, 0.45);
  transform: translateY(-1px);
}

.cat-pill.active .cat-pill-logo {
  filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.6));
}

/* Vehicle Brand Filter Pills Bar (Ford, Chevrolet, Toyota, Dodge) */
.car-brand-pills-bar {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 4px 2px 14px;
  margin-bottom: 8px;
  scrollbar-width: thin;
  -webkit-overflow-scrolling: touch;
}

.car-brand-pills-bar::-webkit-scrollbar {
  height: 4px;
}

.car-brand-pills-bar::-webkit-scrollbar-thumb {
  background: var(--rus-cyan);
  border-radius: 4px;
}

.car-brand-pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 6px 14px;
  border-radius: 20px;
  background: var(--bg-card);
  border: 1px solid var(--line);
  color: var(--ink-1);
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 800;
  white-space: nowrap;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  flex-shrink: 0;
  backdrop-filter: blur(8px);
}

.car-brand-pill:hover {
  border-color: var(--rus-cyan);
  transform: translateY(-1px);
  background: var(--bg-card-hover);
}

.car-brand-pill.active {
  background: linear-gradient(135deg, var(--rus-blue), var(--rus-blue-dark));
  border-color: var(--rus-yellow);
  color: var(--rus-yellow);
  box-shadow: 0 0 12px var(--rus-yellow-glow);
  transform: translateY(-1px);
}

.car-brand-logo {
  height: 18px;
  max-width: 42px;
  width: auto;
  object-fit: contain;
  vertical-align: middle;
  filter: drop-shadow(0 1px 2px rgba(0,0,0,0.3));
}

[data-theme="light"] .car-brand-pill {
  background: #FFFFFF;
  border-color: var(--line);
  color: #212552;
}

[data-theme="light"] .car-brand-pill.active {
  background: linear-gradient(135deg, #08B3E9, #2658A5);
  border-color: #212552;
  color: #FFFFFF;
}

/* Style Matrix Table tiempos.actc.org.ar/campeonatos */
.actc-matrix-wrapper {
  overflow-x: auto;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: var(--bg-card);
  box-shadow: var(--card-shadow);
  margin-bottom: 20px;
  -webkit-overflow-scrolling: touch;
}

.actc-matrix-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 11px;
  white-space: nowrap;
}

.actc-matrix-table th {
  background: #060a14;
  color: var(--ink-2);
  padding: 8px 10px;
  font-family: var(--font-display);
  font-weight: 800;
  border-bottom: 1px solid var(--line);
  border-right: 1px solid rgba(255,255,255,0.05);
  text-align: center;
}

.actc-matrix-table th.fecha-header {
  background: linear-gradient(180deg, #002566, #001233);
  color: var(--rus-yellow);
  font-size: 10px;
  letter-spacing: 0.5px;
  font-weight: 900;
  border-bottom: 1px solid rgba(255, 220, 34, 0.4);
  border-right: 1px solid rgba(255, 255, 255, 0.08);
}

.actc-matrix-table th.sub-header {
  font-size: 9px;
  color: var(--rus-cyan);
  padding: 4px 6px;
  background: #061124;
  border-right: 1px solid rgba(255, 255, 255, 0.05);
}

.actc-matrix-table th.sub-header-tot {
  color: var(--rus-yellow) !important;
  font-weight: 900;
  background: #091730;
}

.actc-matrix-table th.sticky-col,
.actc-matrix-table td.sticky-col {
  position: sticky;
  z-index: 2;
  background: var(--bg-card);
}

.actc-matrix-table th.sticky-col.col-pos,
.actc-matrix-table td.sticky-col.col-pos {
  left: 0;
  min-width: 44px;
}

.actc-matrix-table th.sticky-col.col-name,
.actc-matrix-table td.sticky-col.col-name {
  left: 44px;
  min-width: 175px;
}

.actc-matrix-table th.col-tot-header,
.actc-matrix-table td.col-tot {
  min-width: 60px;
  font-size: 12px;
  font-weight: 900;
  padding: 5px 8px;
}

.actc-matrix-table td {
  padding: 7px 9px;
  border-bottom: 1px solid var(--line);
  border-right: 1px solid rgba(255,255,255,0.03);
  text-align: center;
  color: var(--ink-1);
}

.actc-matrix-table td.col-tot-1 {
  background: var(--rus-yellow) !important;
  color: #00205B !important;
  font-weight: 900;
  border-radius: 4px;
  box-shadow: 0 0 10px rgba(255, 220, 34, 0.4);
}

.actc-matrix-table td.col-tot-green {
  color: var(--rus-cyan) !important;
  font-weight: 900;
  font-size: 13px;
  text-shadow: 0 0 8px rgba(0, 229, 255, 0.3);
}

.actc-matrix-table td.cell-race-tot {
  font-weight: 800;
  color: var(--rus-yellow);
}

.actc-matrix-table tr.copa-oro-border td.col-pos {
  border-left: 3px solid var(--rus-yellow);
}

.actc-matrix-table tr.copa-divider-row td {
  background: linear-gradient(90deg, #001233, #002566, #001233);
  color: var(--rus-yellow);
  font-weight: 900;
  text-align: center;
  letter-spacing: 2px;
  font-size: 11px;
  padding: 8px 12px;
  border-top: 1px solid rgba(255, 220, 34, 0.4);
  border-bottom: 1px solid rgba(255, 220, 34, 0.4);
  text-transform: uppercase;
}

.actc-matrix-table tr.rus-med-row {
  background: rgba(255, 215, 0, 0.22) !important;
  border-left: 3px solid var(--rus-yellow);
}

.actc-matrix-table tr.rus-med-row td.sticky-col {
  background: #3d3305 !important;
  color: var(--rus-yellow) !important;
}

.rus-med-tag {
  display: inline-block;
  background: rgba(255, 220, 34, 0.2);
  color: var(--rus-yellow);
  border: 1px solid var(--rus-yellow);
  font-size: 9px;
  font-weight: 900;
  padding: 1px 5px;
  border-radius: 4px;
  margin-left: 5px;
  white-space: nowrap;
}

/* Standings Race Filter Pills */
.standings-race-bar {
  display: flex;
  gap: 6px;
  overflow-x: auto;
  padding-bottom: 8px;
  margin-bottom: 10px;
  scrollbar-width: thin;
  -webkit-overflow-scrolling: touch;
}

.race-filter-btn {
  background: var(--bg-card);
  color: var(--ink-1);
  border: 1px solid var(--line);
  padding: 6px 12px;
  border-radius: 8px;
  font-size: 11px;
  font-weight: 800;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.2s ease;
}

.race-filter-btn:hover {
  border-color: var(--rus-yellow);
  color: var(--rus-yellow);
}

.race-filter-btn.active {
  background: linear-gradient(135deg, #00205B, #064da1);
  color: var(--rus-yellow);
  border-color: var(--rus-yellow);
  box-shadow: 0 0 10px rgba(255, 220, 34, 0.3);
}

.matrix-mobile-hint {
  display: block;
  font-size: 11px;
  color: var(--rus-cyan);
  background: rgba(0, 229, 255, 0.08);
  border: 1px solid rgba(0, 229, 255, 0.2);
  border-radius: 8px;
  padding: 6px 10px;
  text-align: center;
  margin-bottom: 10px;
  font-weight: 800;
}

.driver-row {
  cursor: pointer;
  transition: background 0.15s ease;
}

.driver-row:hover {
  background: rgba(255, 220, 34, 0.08);
}

.driver-name-cell {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
}

.d-expand-arrow {
  font-size: 10px;
  opacity: 0.7;
}

.breakdown-expand-row td {
  padding: 0 !important;
  background: #060e1d !important;
  border-bottom: 2px solid var(--rus-yellow) !important;
}

.driver-breakdown-card {
  padding: 12px 14px;
  text-align: left;
}

.breakdown-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
  flex-wrap: wrap;
  gap: 6px;
}

.breakdown-title {
  font-size: 12px;
  font-weight: 900;
  color: var(--rus-yellow);
}

.breakdown-pts-pill {
  font-size: 11px;
  font-weight: 900;
  background: var(--rus-yellow);
  color: #00205B;
  padding: 2px 8px;
  border-radius: 6px;
}

.breakdown-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 8px;
}

.breakdown-race-box {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 8px 10px;
}

.breakdown-race-box.has-points {
  border-color: rgba(255, 220, 34, 0.35);
  background: rgba(0, 32, 91, 0.25);
}

.b-box-title {
  font-size: 11px;
  font-weight: 900;
  color: var(--ink-0);
  margin-bottom: 4px;
}

.b-box-values {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}

.b-tag {
  font-size: 10px;
  background: rgba(255, 255, 255, 0.05);
  padding: 2px 6px;
  border-radius: 4px;
  color: var(--ink-2);
}

.b-tag b {
  color: var(--ink-0);
}

.b-tag-tot {
  background: rgba(255, 220, 34, 0.15);
  color: var(--rus-yellow);
  font-weight: 900;
  border: 1px solid rgba(255, 220, 34, 0.3);
}

.b-tag-tot b {
  color: var(--rus-yellow);
}

/* Mobile Specific Optimizations */
@media (max-width: 600px) {
  .actc-matrix-table th.sticky-col.col-pos,
  .actc-matrix-table td.sticky-col.col-pos {
    min-width: 36px !important;
    max-width: 38px !important;
    left: 0 !important;
    padding: 6px 2px !important;
    font-size: 10px !important;
  }

  .actc-matrix-table th.sticky-col.col-name,
  .actc-matrix-table td.sticky-col.col-name {
    left: 36px !important;
    min-width: 130px !important;
    max-width: 145px !important;
    padding: 6px 6px !important;
    font-size: 11px !important;
    white-space: normal !important;
    word-break: break-word !important;
    line-height: 1.2 !important;
  }

  .actc-matrix-table td.col-tot,
  .actc-matrix-table th.col-tot-header {
    min-width: 52px !important;
    padding: 6px 4px !important;
    font-size: 11px !important;
  }

  .actc-matrix-table th.sub-header,
  .actc-matrix-table td {
    min-width: 28px !important;
    padding: 5px 3px !important;
    font-size: 10px !important;
  }

  .actc-matrix-table th.sub-header-tot,
  .actc-matrix-table td.cell-race-tot {
    min-width: 34px !important;
    font-weight: 900 !important;
  }
}

.win-badge-gold {
  background: linear-gradient(135deg, #f59e0b, #d97706);
  color: #000;
  font-size: 9px;
  font-weight: 900;
  padding: 2px 6px;
  border-radius: 4px;
  margin-left: 6px;
  display: inline-flex;
  align-items: center;
  gap: 2px;
  box-shadow: 0 2px 6px rgba(245, 158, 11, 0.4);
}

/* Podium de Líderes estilo ACTC Oficial */
.actc-podium-container {
  display: flex;
  justify-content: center;
  align-items: flex-end;
  gap: 8px;
  margin-top: 8px;
  margin-bottom: 18px;
  padding: 18px 4px 10px;
}

.actc-podium-card {
  flex: 1;
  max-width: 170px;
  background: var(--bg-card);
  border: 1.5px solid var(--line);
  border-radius: 14px;
  padding: 12px 8px 10px;
  text-align: center;
  box-shadow: var(--card-shadow);
  transition: transform 0.2s ease;
}

.actc-podium-card.first {
  background: linear-gradient(180deg, rgba(255, 220, 34, 0.2) 0%, var(--bg-card) 60%);
  border-color: var(--rus-yellow);
  box-shadow: 0 0 20px rgba(255, 220, 34, 0.25);
  transform: translateY(-8px);
}

.actc-podium-card .pod-pos {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 24px;
  line-height: 1;
  margin-bottom: 4px;
}

.actc-podium-card.first .pod-pos {
  color: var(--rus-yellow);
  font-size: 30px;
}

.actc-podium-card.second .pod-pos {
  color: #CBD5E1;
}

.actc-podium-card.third .pod-pos {
  color: #D97706;
}

.actc-podium-card .pod-name {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 11px;
  color: var(--ink-0);
  text-transform: uppercase;
  margin-bottom: 3px;
  line-height: 1.2;
}

.actc-podium-card .pod-car {
  font-size: 10px;
  color: var(--rus-cyan);
  font-weight: 700;
  margin-bottom: 6px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.actc-podium-card .pod-pts {
  font-family: monospace;
  font-weight: 900;
  font-size: 13px;
  color: var(--rus-yellow);
}

.actc-podium-card.first .pod-pts {
  background: var(--rus-yellow);
  color: #00205B;
  padding: 2px 8px;
  border-radius: 6px;
  display: inline-block;
}
.app-content {
  padding: 16px;
  flex: 1;
  padding-bottom: 80px;
}

.tab-section {
  display: none;
  animation: fadeIn 0.3s ease;
}
.tab-section.active { display: block; }

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Pre-Race Countdown Banner (#nrBanner style) */
.nr-banner-container {
  background: linear-gradient(135deg, rgba(0, 82, 204, 0.35) 0%, var(--bg-1) 80%);
  border: 1px solid var(--rus-cyan);
  border-radius: var(--r-lg);
  padding: 18px;
  margin-bottom: 18px;
  box-shadow: 0 8px 24px var(--rus-cyan-glow);
}

.nrb-digits-flex {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  margin-top: 12px;
}

.nrb-digit-box {
  background: var(--bg-card);
  border: 1px solid var(--line-yellow);
  border-radius: 10px;
  padding: 8px 12px;
  text-align: center;
  min-width: 56px;
  box-shadow: var(--card-shadow);
}

.nrb-digit-val {
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 900;
  color: var(--rus-yellow);
  text-shadow: 0 0 10px var(--rus-yellow-glow);
  line-height: 1;
}

.nrb-digit-lbl {
  font-size: 9px;
  font-weight: 700;
  color: var(--ink-3);
  text-transform: uppercase;
  margin-top: 4px;
}

/* Driver Cards F1/ACTC Style (Azul & Amarillo) */
.drivers-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
  gap: 14px;
}

.driver-card-f1 {
  background: linear-gradient(180deg, var(--bg-1) 0%, rgba(5, 8, 17, 0.95) 100%);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  overflow: hidden;
  position: relative;
  transition: all 0.25s ease;
  cursor: pointer;
}

.driver-card-f1:hover {
  transform: translateY(-4px);
  border-color: var(--rus-yellow);
  box-shadow: 0 12px 30px var(--rus-yellow-glow);
}

.driver-torso-wrap {
  height: 185px;
  position: relative;
  background: radial-gradient(circle at bottom center, rgba(0, 210, 255, 0.2) 0%, transparent 70%);
  display: flex;
  align-items: flex-end;
  justify-content: center;
  overflow: visible;
}

.driver-torso-img {
  max-height: 180px;
  width: auto;
  object-fit: contain;
  filter: drop-shadow(0 10px 15px rgba(0, 0, 0, 0.8));
  transition: transform 0.3s ease;
}

.driver-card-f1:hover .driver-torso-img {
  transform: scale(1.05);
}

.driver-number-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 900;
  color: var(--rus-yellow);
  background: rgba(5, 8, 17, 0.85);
  backdrop-filter: blur(4px);
  padding: 2px 8px;
  border-radius: 6px;
  border: 1px solid var(--rus-yellow);
}

.driver-car-logo {
  position: absolute;
  top: 10px;
  right: 10px;
  max-height: 18px;
  opacity: 0.9;
}

.driver-card-body {
  padding: 12px 14px;
  border-top: 1px solid var(--line);
}

.driver-card-name {
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 800;
  color: #fff;
  letter-spacing: 0.5px;
}

.driver-card-car {
  font-size: 11px;
  color: var(--ink-3);
  margin-top: 2px;
}

/* Circuit Cards (Vectores Azul & Amarillo) */
.circuit-card-f1 {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 16px;
  margin-bottom: 14px;
  transition: all 0.25s ease;
  cursor: pointer;
}

.circuit-card-f1:hover {
  border-color: var(--rus-cyan);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px var(--rus-cyan-glow);
}

.circuit-track-svg-box {
  background: var(--bg-0);
  border-radius: var(--r-md);
  padding: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 12px;
  min-height: 130px;
  position: relative;
  border: 1px solid rgba(255, 194, 0, 0.1);
}

.circuit-track-svg-box svg {
  max-width: 220px;
  height: 120px;
}

.track-bg-path {
  fill: none;
  stroke: rgba(255, 255, 255, 0.15);
  stroke-width: 5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.track-draw-path {
  fill: none;
  stroke: var(--rus-yellow);
  stroke-width: 5;
  stroke-linecap: round;
  stroke-linejoin: round;
  opacity: 0.95;
  filter: drop-shadow(0 0 6px var(--rus-yellow));
}

/* Standings / Campeonatos Table (tiempos.actc.org.ar style) */
.standings-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 10px;
  font-size: 12px;
}

.standings-table th {
  background: rgba(0, 82, 204, 0.3);
  color: var(--rus-cyan);
  font-family: var(--font-display);
  font-weight: 800;
  text-transform: uppercase;
  padding: 10px 8px;
  text-align: left;
  border-bottom: 1px solid var(--line);
}

.standings-table td {
  padding: 10px 8px;
  border-bottom: 1px solid var(--line);
  color: var(--ink-2);
}

.standings-table tr.rus-med-row {
  background: rgba(255, 194, 0, 0.12);
  border-left: 3px solid var(--rus-yellow);
}

.standings-table tr.rus-med-row td {
  color: #fff;
  font-weight: 700;
}

/* Bottom Navigation Bar (F1 & ACTC Style - 6 Botones Distribuidos) */
.app-nav-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: rgba(33, 37, 82, 0.96);
  border-top: 1.5px solid var(--line);
  padding: 6px 4px;
  position: fixed;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 680px;
  z-index: 100;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  -ms-overflow-style: none;
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.4);
}

.app-nav-bar::-webkit-scrollbar {
  display: none;
}

.nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: var(--ink-3);
  font-family: var(--font-display);
  font-size: 10px;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  gap: 2px;
  flex: 1;
  min-width: 0;
  padding: 5px 2px;
  border-radius: 8px;
  transition: all 0.2s ease;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
  white-space: nowrap;
}

.nav-item:hover {
  color: var(--rus-cyan);
}

.nav-item.active {
  color: #ffffff;
  font-weight: 900;
  background: transparent !important;
  border: none !important;
  outline: none !important;
  box-shadow: none !important;
}

.nav-icon { font-size: 17px; }

/* Modal Popups */
.modal-overlay {
  position: fixed;
  top: 0; left: 0;
  width: 100vw; height: 100vh;
  background: rgba(0, 0, 0, 0.88);
  backdrop-filter: blur(12px);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 1000;
}
.modal-overlay.active { display: flex; }

.modal-content {
  background: #090e1c;
  border: 1px solid var(--rus-cyan);
  border-radius: 24px;
  padding: 24px;
  width: 92%;
  max-width: 500px;
  color: #fff;
  position: relative;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 0 40px var(--rus-cyan-glow);
}

.modal-close {
  position: absolute;
  top: 16px; right: 16px;
  background: rgba(255,255,255,0.1);
  border: none;
  color: #fff;
  width: 32px; height: 32px;
  border-radius: 50%;
  font-size: 16px;
  cursor: pointer;
  z-index: 10;
}

/* Car Card Image Container */
.car-img-box {
  position: relative;
  height: 200px;
  border-radius: 12px;
  overflow: hidden;
  margin-bottom: 12px;
  background: #030610;
  border: 1px solid var(--line);
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: zoom-in;
}

.car-img-box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transition: transform 0.35s ease;
}

.car-img-box:hover img {
  transform: scale(1.05);
}

.zoom-hint-badge {
  position: absolute;
  bottom: 8px;
  right: 8px;
  background: rgba(5, 8, 17, 0.85);
  border: 1px solid var(--rus-cyan);
  color: var(--rus-cyan);
  font-size: 10px;
  font-weight: 800;
  padding: 3px 8px;
  border-radius: 6px;
  backdrop-filter: blur(4px);
  pointer-events: none;
}

/* Image Lightbox Modal */
.lightbox-modal {
  position: fixed;
  top: 0; left: 0;
  width: 100vw; height: 100vh;
  background: rgba(2, 4, 10, 0.95);
  backdrop-filter: blur(16px);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 2000;
  padding: 20px;
}

.lightbox-modal.active {
  display: flex;
}

.lightbox-img-wrap {
  position: relative;
  max-width: 95vw;
  max-height: 85vh;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.lightbox-img-wrap img {
  max-width: 100%;
  max-height: 75vh;
  object-fit: contain;
  border-radius: 16px;
  border: 1px solid var(--rus-cyan);
  box-shadow: 0 0 50px var(--rus-cyan-glow);
}

.lightbox-caption {
  margin-top: 12px;
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 800;
  color: var(--rus-yellow);
  text-align: center;
}



/* Official Racing Number Badges & Speed Graphics (Brandboard 2026) */
.driver-official-number-badge {
  position: absolute;
  top: 6px;
  left: 6px;
  background: none !important;
  z-index: 10;
  display: flex;
  align-items: center;
  filter: drop-shadow(0 4px 10px rgba(0,0,0,0.85));
  pointer-events: none;
}

.num-badge-img {
  height: 56px;
  max-width: 85px;
  width: auto;
  object-fit: contain;
  display: block;
  transition: transform 0.2s ease;
}

.driver-card-f1:hover .num-badge-img {
  transform: scale(1.1) rotate(-2deg);
}

.driver-number-fallback {
  background: var(--rus-yellow);
  color: #00205B;
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 900;
  padding: 4px 10px;
  border-radius: 8px;
  border: 1.5px solid #00205B;
  box-shadow: 0 4px 12px rgba(0,0,0,0.4);
}

.driver-card-f1 {
  background: var(--bg-card);
  background-image: radial-gradient(circle at 100% 0%, rgba(0, 185, 242, 0.15) 0%, transparent 50%),
                    linear-gradient(180deg, rgba(6, 77, 161, 0.2) 0%, transparent 100%);
  border: 1px solid var(--line);
  border-radius: 18px;
  overflow: hidden;
  box-shadow: var(--card-shadow);
  cursor: pointer;
  transition: all 0.25s ease;
  position: relative;
}

.driver-card-f1:hover {
  border-color: var(--rus-yellow);
  transform: translateY(-4px);
  box-shadow: 0 10px 25px rgba(0, 32, 91, 0.6), 0 0 16px var(--rus-yellow-glow);
}

/* Fan Band RFID Club Membership Pass Card */
.fanband-club-card {
  background: linear-gradient(135deg, #212552 0%, #2658A5 60%, #08B3E9 100%);
  border: 2px solid var(--rus-yellow);
  border-radius: 20px;
  padding: 20px;
  color: #fff;
  position: relative;
  overflow: hidden;
  box-shadow: 0 12px 30px rgba(33, 37, 82, 0.8), 0 0 20px var(--rus-yellow-glow);
  margin-bottom: 20px;
}

.fanband-chip {
  width: 44px;
  height: 34px;
  background: linear-gradient(135deg, #FFE066 0%, #D4AF37 50%, #8A6D3B 100%);
  border-radius: 6px;
  margin-bottom: 12px;
  box-shadow: inset 0 1px 3px rgba(255,255,255,0.6), 0 2px 6px rgba(0,0,0,0.4);
  position: relative;
}

.fanband-chip::after {
  content: ")))";
  position: absolute;
  right: -24px;
  top: 5px;
  color: var(--rus-cyan);
  font-weight: 900;
  font-size: 16px;
  letter-spacing: 2px;
}

.fanband-stripes-bg {
  position: absolute;
  right: -10px;
  bottom: 0px;
  width: 240px;
  height: auto;
  opacity: 0.35;
  pointer-events: none;
}

/* ==========================================================================
   SPONSORS & PARTNERS INFINITE CAROUSEL (BRANDBOARD 2026)
   ========================================================================== */
.sponsors-carousel-section {
  margin: 24px 0 16px;
  padding: 16px 0;
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  overflow: hidden;
  position: relative;
  box-shadow: var(--card-shadow);
}

.sponsors-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 16px 12px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 8px;
}

.sponsors-badge {
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 900;
  color: var(--rus-yellow);
  letter-spacing: 1px;
  text-transform: uppercase;
}

.sponsors-subtitle {
  font-size: 11px;
  color: var(--rus-cyan);
  font-weight: 700;
  letter-spacing: 0.5px;
}

.sponsors-marquee-wrapper {
  overflow: hidden;
  width: 100%;
  position: relative;
  mask-image: linear-gradient(to right, transparent 0%, black 8%, black 92%, transparent 100%);
  -webkit-mask-image: linear-gradient(to right, transparent 0%, black 8%, black 92%, transparent 100%);
  padding: 8px 0;
}

.sponsors-track {
  display: flex !important;
  flex-wrap: nowrap !important;
  align-items: center;
  gap: 16px;
  width: max-content;
  animation: sponsorScroll 32s linear infinite;
  will-change: transform;
}

.sponsors-track:hover {
  animation-play-state: paused;
}

.sponsors-marquee-wrapper.reverse .sponsors-track {
  animation: sponsorScrollReverse 36s linear infinite;
}

.sponsors-marquee-wrapper.reverse .sponsors-track:hover {
  animation-play-state: paused;
}

@keyframes sponsorScroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

@keyframes sponsorScrollReverse {
  0% { transform: translateX(-50%); }
  100% { transform: translateX(0); }
}

.sponsor-card {
  height: 52px;
  min-width: 120px;
  padding: 8px 18px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  flex-shrink: 0;
}

[data-theme="light"] .sponsor-card {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.sponsor-card:hover {
  transform: translateY(-2px) scale(1.03);
  border-color: var(--rus-cyan);
  background: rgba(0, 185, 242, 0.08);
  box-shadow: 0 4px 16px var(--rus-cyan-glow);
}

.sponsor-card img {
  max-height: 34px;
  max-width: 110px;
  width: auto;
  height: auto;
  object-fit: contain;
  filter: drop-shadow(0 2px 4px rgba(0,0,0,0.35));
  transition: transform 0.2s ease;
}

.sponsor-card:hover img {
  transform: scale(1.05);
}

/* ==========================================================================
   MUSTANG V8 ENGINE SPLASH LOADING SCREEN (RUMBLE & AUDIO SYNC)
   ========================================================================== */
.engine-splash-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: 99999;
  background: radial-gradient(circle at 50% 40%, #061B42 0%, #020712 70%, #000000 100%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 24px;
  overflow: hidden;
  transition: opacity 0.6s cubic-bezier(0.4, 0, 0.2, 1), transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

[data-theme="light"] .engine-splash-overlay {
  background: radial-gradient(circle at 50% 40%, #E8F1FC 0%, #C7D8F2 70%, #AEC6EC 100%);
}

.engine-splash-overlay.fade-out {
  opacity: 0;
  transform: scale(1.08);
  pointer-events: none;
}

.engine-splash-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  max-width: 440px;
  width: 100%;
  position: relative;
}

/* Shift light rev LEDs */
.engine-rev-lights {
  display: flex;
  gap: 8px;
  margin-bottom: 24px;
}

.rev-led {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #1e293b;
  border: 1px solid rgba(255,255,255,0.1);
  transition: all 0.15s ease;
}

.rev-led.active.green {
  background: #22c55e;
  box-shadow: 0 0 12px #22c55e;
}

.rev-led.active.yellow {
  background: #eab308;
  box-shadow: 0 0 12px #eab308;
}

.rev-led.active.red {
  background: #ef4444;
  box-shadow: 0 0 14px #ef4444;
}

.rev-led.active.blue {
  background: #00b9f2;
  box-shadow: 0 0 16px #00b9f2;
  animation: blinkFast 0.2s infinite alternate;
}

@keyframes blinkFast {
  from { opacity: 0.4; }
  to { opacity: 1; }
}

/* Vibrating / Shaking Logo */
.engine-logo-wrapper {
  width: 220px;
  height: 220px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 28px;
  position: relative;
}

.engine-logo-wrapper::before {
  content: "";
  position: absolute;
  width: 260px;
  height: 260px;
  border-radius: 50%;
  background: radial-gradient(circle, var(--rus-cyan-glow) 0%, rgba(255, 220, 34, 0.15) 50%, transparent 70%);
  filter: blur(20px);
  pointer-events: none;
  animation: pulseBackglow 1.5s ease-in-out infinite alternate;
}

@keyframes pulseBackglow {
  0% { transform: scale(0.9); opacity: 0.5; }
  100% { transform: scale(1.15); opacity: 0.9; }
}

.engine-vibrating-logo {
  max-width: 190px;
  max-height: 190px;
  width: auto;
  height: auto;
  object-fit: contain;
  filter: drop-shadow(0 10px 25px rgba(0, 32, 91, 0.7));
  will-change: transform;
}

.engine-rumble {
  animation: none !important;
  transform: none !important;
}

.engine-rumble-high {
  animation: none !important;
  transform: none !important;
}

/* Status & RPM Bar */
.engine-status-box {
  width: 100%;
  max-width: 280px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 20px;
}

.engine-rpm-bar {
  width: 100%;
  height: 8px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 999px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.engine-rpm-fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, #22c55e 0%, #eab308 60%, #ef4444 85%, #00b9f2 100%);
  border-radius: 999px;
  transition: width 0.1s linear;
  box-shadow: 0 0 10px rgba(0, 185, 242, 0.8);
}

.engine-status-text {
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 900;
  color: var(--rus-yellow);
  letter-spacing: 1px;
  text-transform: uppercase;
}

/* Cockpit Ignition Push-to-Start Button */
.engine-ignition-btn {
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0;
  margin: 10px 0 16px;
  outline: none;
  -webkit-tap-highlight-color: transparent;
  transition: transform 0.15s ease, filter 0.2s ease;
}

.engine-ignition-btn:active {
  transform: scale(0.92);
}

.ignition-outer-ring {
  width: 96px;
  height: 96px;
  border-radius: 50%;
  padding: 4px;
  background: conic-gradient(from 0deg, #ef4444, #f59e0b, #00b9f2, #ef4444);
  box-shadow: 0 0 25px rgba(239, 68, 68, 0.6), inset 0 0 15px rgba(0, 0, 0, 0.8);
  animation: rotateGlow 3s linear infinite;
  display: flex;
  align-items: center;
  justify-content: center;
}

@keyframes rotateGlow {
  0% { filter: drop-shadow(0 0 10px rgba(239, 68, 68, 0.8)); transform: rotate(0deg); }
  50% { filter: drop-shadow(0 0 20px rgba(255, 220, 34, 0.9)); }
  100% { filter: drop-shadow(0 0 10px rgba(239, 68, 68, 0.8)); transform: rotate(360deg); }
}

.ignition-inner-btn {
  width: 84px;
  height: 84px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, #b91c1c 0%, #7f1d1d 60%, #450a0a 100%);
  border: 2px solid #f87171;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: #fff;
  text-shadow: 0 1px 3px rgba(0,0,0,0.8);
  box-shadow: 0 6px 16px rgba(0,0,0,0.6), inset 0 2px 4px rgba(255,255,255,0.4);
  animation: unrotate 3s linear infinite;
}

@keyframes unrotate {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(-360deg); }
}

.ignition-icon {
  font-size: 18px;
  line-height: 1;
  margin-bottom: 2px;
}

.ignition-title {
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 1px;
  line-height: 1.1;
}

.ignition-subtitle {
  font-size: 7px;
  font-weight: 800;
  letter-spacing: 0.5px;
  color: #fca5a5;
}

.engine-start-action-btn {
  width: 100%;
  background: linear-gradient(135deg, #ffc200 0%, #e6a800 100%);
  color: #000;
  border: 2px solid #fff;
  border-radius: 14px;
  padding: 14px 20px;
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 900;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  box-shadow: 0 0 25px rgba(255, 194, 0, 0.6), inset 0 1px 2px rgba(255,255,255,0.8);
  transition: transform 0.15s ease, box-shadow 0.2s ease;
  will-change: transform;
}

.engine-start-action-btn:hover {
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 0 35px rgba(255, 194, 0, 0.85);
}

.engine-start-action-btn:active {
  transform: translateY(1px) scale(0.97);
}

.engine-skip-action-btn {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #cbd5e1;
  font-size: 12px;
  font-weight: 700;
  border-radius: 10px;
  cursor: pointer;
  padding: 8px 16px;
  transition: all 0.2s ease;
}

.engine-skip-action-btn:hover {
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
  border-color: var(--rus-cyan);
}

.engine-skip-btn {
  background: transparent;
  border: none;
  color: var(--ink-3);
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  padding: 6px 12px;
  transition: color 0.2s ease;
}

.engine-skip-btn:hover {
  color: var(--rus-cyan);
}

/* Standings Category Selector Buttons with Official SVG Logos */
.standings-cat-bar {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 8px;
  margin-bottom: 14px;
  scrollbar-width: thin;
  -webkit-overflow-scrolling: touch;
}

.standings-cat-btn {
  background: var(--bg-card);
  border: 1.5px solid var(--line);
  padding: 6px 12px;
  border-radius: 12px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 40px;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  flex-shrink: 0;
  box-shadow: var(--card-shadow);
}

.standings-cat-btn:hover {
  border-color: var(--rus-yellow);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px var(--rus-yellow-glow);
}

.standings-cat-btn.active {
  background: linear-gradient(135deg, rgba(0, 32, 91, 0.95), rgba(6, 77, 161, 0.85));
  border-color: var(--rus-yellow);
  box-shadow: 0 0 16px var(--rus-yellow-glow);
  transform: translateY(-1px);
}

.standings-cat-logo {
  height: 22px;
  max-width: 65px;
  width: auto;
  object-fit: contain;
  display: block;
  pointer-events: none;
  filter: drop-shadow(0 1px 3px rgba(0,0,0,0.4));
}

.standings-cat-badge {
  font-size: 11px;
  font-weight: 800;
  color: var(--rus-yellow);
  white-space: nowrap;
}

/* ══════════════════════════════════════════════════════════════════════════════
   COMPREHENSIVE LIGHT MODE HIGH CONTRAST OVERRIDES
   ══════════════════════════════════════════════════════════════════════════════ */
[data-theme="light"] {
  --bg-0: #F1F4F9;
  --bg-1: #FFFFFF;
  --bg-card: #FFFFFF;
  --bg-card-hover: #F8FAFC;
  --ink-0: #001A4A;
  --ink-1: #0A1931;
  --ink-2: #2B3A55;
  --ink-3: #536480;
  --ink-4: #8899B0;
  --line: #CBD5E1;
  --line-yellow: rgba(217, 119, 6, 0.4);
  --header-bg: #00205B;
  --nav-bg: #FFFFFF;
  --card-shadow: 0 4px 16px rgba(0, 32, 91, 0.08);
}

[data-theme="light"] .standings-cat-btn {
  background: #FFFFFF;
  border-color: #CBD5E1;
  box-shadow: 0 2px 8px rgba(0, 32, 91, 0.06);
}

[data-theme="light"] .standings-cat-btn.active {
  background: #00205B;
  border-color: var(--rus-yellow);
  box-shadow: 0 4px 12px rgba(0, 32, 91, 0.25);
}

[data-theme="light"] .standings-cat-btn.active .standings-cat-badge {
  color: var(--rus-yellow);
}

[data-theme="light"] .actc-matrix-wrapper {
  background: #FFFFFF;
  border-color: #CBD5E1;
  box-shadow: 0 4px 20px rgba(0, 32, 91, 0.08);
}

[data-theme="light"] .actc-matrix-table th {
  background: #E2E8F0;
  color: #001A4A;
  border-bottom: 1.5px solid #CBD5E1;
  border-right: 1px solid #CBD5E1;
}

[data-theme="light"] .actc-matrix-table th.fecha-header {
  background: #00205B;
  color: #FFDC22;
  border-bottom: 1px solid #001A4A;
}

[data-theme="light"] .actc-matrix-table th.sub-header {
  background: #EEF2F6;
  color: #0369A1;
}

[data-theme="light"] .actc-matrix-table th.sticky-col,
[data-theme="light"] .actc-matrix-table td.sticky-col {
  background: #FFFFFF;
  color: #001A4A;
}

[data-theme="light"] .actc-matrix-table td {
  border-bottom: 1px solid #E2E8F0;
  border-right: 1px solid #E2E8F0;
  color: #1E293B;
}

[data-theme="light"] .actc-matrix-table td.col-tot {
  color: #B45309;
  background: rgba(245, 158, 11, 0.08);
  font-weight: 900;
}

[data-theme="light"] .actc-matrix-table tr.rus-med-row {
  background: rgba(254, 240, 138, 0.45);
}

[data-theme="light"] .actc-matrix-table tr.rus-med-row td.sticky-col {
  background: #FEF9C3;
  color: #00205B;
  font-weight: 900;
}

[data-theme="light"] .driver-card-f1 {
  background: #FFFFFF;
  border-color: #CBD5E1;
  box-shadow: 0 4px 16px rgba(0, 32, 91, 0.06);
}

[data-theme="light"] .driver-card-name {
  color: #00205B;
  font-weight: 900;
}

[data-theme="light"] .driver-card-body {
  border-top-color: #E2E8F0;
}

/* Circuit Cards & Track SVG in Light Mode */
.circuit-card-f1 {
  background: var(--bg-card);
  border: 1.5px solid var(--line);
  border-radius: var(--r-lg);
  padding: 16px;
  margin-bottom: 14px;
  transition: all 0.25s ease;
  cursor: pointer;
}

.circuit-card-f1:hover {
  border-color: var(--rus-cyan);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px var(--rus-cyan-glow);
}

.circuit-status-badge {
  padding: 4px 10px;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 800;
  display: inline-block;
}

.circuit-status-badge.upcoming {
  background: var(--rus-yellow);
  color: #00205B;
  font-weight: 900;
}

.circuit-status-badge.disputed {
  background: rgba(148, 163, 184, 0.2);
  color: var(--ink-3);
  font-weight: 800;
}

.circuit-track-svg-box {
  background: #040E24;
  border: 1px solid rgba(0, 185, 242, 0.2);
  border-radius: 12px;
  padding: 12px;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 130px;
  margin-bottom: 12px;
  box-shadow: inset 0 0 15px rgba(0, 32, 91, 0.5);
  transition: background 0.3s ease, border-color 0.3s ease;
}

.circuit-track-img {
  max-height: 110px;
  max-width: 100%;
  object-fit: contain;
  filter: invert(75%) sepia(100%) saturate(1200%) hue-rotate(2deg) brightness(1.25) contrast(1.15) drop-shadow(0 0 14px #ffc200);
  transition: filter 0.3s ease;
}

.circuit-track-img.disputed {
  filter: grayscale(100%) opacity(0.55) brightness(0.85);
}

.circuit-card-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
  color: var(--ink-2);
  background: rgba(0, 0, 0, 0.2);
  padding: 10px 12px;
  border-radius: 10px;
  margin-top: 10px;
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.circuit-footer-btn {
  background: var(--rus-blue);
  border: 1px solid var(--rus-yellow);
  color: #FFFFFF;
  border-radius: 8px;
  padding: 6px 12px;
  font-weight: 800;
  font-size: 11px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.circuit-footer-btn:hover {
  background: var(--rus-blue-bright);
  transform: translateY(-1px);
}

[data-theme="light"] .circuit-card-f1 {
  background: #FFFFFF;
  border: 1.5px solid #CBD5E1;
  box-shadow: 0 4px 16px rgba(0, 32, 91, 0.06);
}

[data-theme="light"] .circuit-card-f1.circuit-disputed {
  opacity: 0.92;
  background: #F8FAFC;
  border-color: #E2E8F0;
}

[data-theme="light"] .circuit-status-badge.upcoming {
  background: #E5B800;
  color: #00205B;
  font-weight: 900;
}

[data-theme="light"] .circuit-status-badge.disputed {
  background: #E2E8F0;
  color: #334155;
  font-weight: 800;
}

[data-theme="light"] .circuit-track-svg-box {
  background: #F1F5F9;
  border: 1.5px solid #CBD5E1;
  box-shadow: inset 0 0 10px rgba(0, 32, 91, 0.05);
}

[data-theme="light"] .circuit-track-img {
  filter: invert(15%) sepia(85%) saturate(3000%) hue-rotate(205deg) brightness(0.45) contrast(1.3) drop-shadow(0 2px 6px rgba(0,32,91,0.25));
}

[data-theme="light"] .circuit-track-img.disputed {
  filter: grayscale(100%) opacity(0.5) brightness(0.3);
}

[data-theme="light"] .circuit-card-footer {
  background: #F8FAFC;
  color: #1E293B;
  border: 1px solid #E2E8F0;
}

[data-theme="light"] .circuit-footer-btn {
  background: #00205B;
  border: 1px solid #D97706;
  color: #FFFFFF;
  box-shadow: 0 2px 6px rgba(0, 32, 91, 0.2);
}

[data-theme="light"] .circuit-footer-btn:hover {
  background: #064DA1;
}

[data-theme="light"] .nr-banner-container {
  background: #FFFFFF;
  border: 1.5px solid #CBD5E1;
  box-shadow: 0 6px 20px rgba(0, 32, 91, 0.08);
}

[data-theme="light"] .nrb-digit-box {
  background: #F8FAFC;
  border: 1.5px solid #CBD5E1;
  box-shadow: 0 2px 8px rgba(0, 32, 91, 0.06);
}

[data-theme="light"] .nrb-digit-val {
  color: #00205B;
  text-shadow: none;
}

[data-theme="light"] .actc-podium-card {
  background: #FFFFFF;
  border-color: #CBD5E1;
  box-shadow: 0 4px 14px rgba(0, 32, 91, 0.06);
}

[data-theme="light"] .actc-podium-card.first {
  background: linear-gradient(180deg, rgba(255, 220, 34, 0.25) 0%, #FFFFFF 70%);
  border-color: #D97706;
}

[data-theme="light"] .app-nav-bar {
  background: #FFFFFF;
  border-top: 1.5px solid #CBD5E1;
  box-shadow: 0 -4px 20px rgba(0, 32, 91, 0.08);
}

[data-theme="light"] .nav-item {
  color: #64748B;
  font-weight: 700;
}

[data-theme="light"] .nav-item.active {
  color: #212552;
  font-weight: 900;
}

[data-theme="light"] .modal-content {
  background: #FFFFFF;
  border-color: var(--rus-cyan);
  color: #212552;
  box-shadow: 0 12px 48px rgba(33, 37, 82, 0.25);
}

[data-theme="light"] .modal-close {
  background: #E2E8F0;
  color: #212552;
}

[data-theme="light"] .developed-by-banner {
  background: #FFFFFF;
  border-color: #CBD5E1;
  color: #212552;
}

[data-theme="light"] .sponsors-carousel-section {
  background: linear-gradient(135deg, #212552 0%, #2658A5 100%);
  border: 1.5px solid rgba(8, 179, 233, 0.4);
  box-shadow: 0 8px 24px rgba(33, 37, 82, 0.2);
}

[data-theme="light"] .sponsors-header {
  border-bottom: 1px solid rgba(255, 255, 255, 0.15);
}

[data-theme="light"] .sponsors-badge {
  color: #FFDC22;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.6);
}

[data-theme="light"] .sponsors-subtitle {
  color: #08B3E9;
}

/* ==========================================================================
   NOTIFICATION PREFERENCES & ANDROID ALERT MODAL STYLES
   ========================================================================== */
.notif-switch {
  position: relative;
  display: inline-block;
  width: 48px;
  height: 26px;
  flex-shrink: 0;
}

.notif-switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.notif-slider {
  position: absolute;
  cursor: pointer;
  top: 0; left: 0; right: 0; bottom: 0;
  background-color: rgba(148, 163, 184, 0.3);
  transition: .3s ease;
  border-radius: 34px;
  border: 1px solid var(--border-default);
}

.notif-slider:before {
  position: absolute;
  content: "";
  height: 18px;
  width: 18px;
  left: 3px;
  bottom: 3px;
  background-color: white;
  transition: .3s ease;
  border-radius: 50%;
  box-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

.notif-switch input:checked + .notif-slider {
  background-color: var(--rus-cyan);
  border-color: var(--rus-cyan);
}

.notif-switch input:checked + .notif-slider:before {
  transform: translateX(22px);
  background-color: #FFFFFF;
}

.notif-chip-check {
  display: block;
  cursor: pointer;
  margin: 0;
}

.notif-chip-check input {
  display: none;
}

.notif-chip-check .chip-box {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--bg-surface);
  border: 1.5px solid var(--border-default);
  border-radius: 10px;
  padding: 10px 12px;
  transition: all 0.2s ease;
}

.notif-chip-check input:checked + .chip-box {
  background: rgba(8, 179, 233, 0.12);
  border-color: var(--rus-cyan);
  box-shadow: 0 0 10px var(--rus-cyan-glow);
}

.notif-chip-check .chip-icon {
  font-size: 16px;
}

.notif-chip-check .chip-title {
  font-size: 12px;
  font-weight: 800;
  color: var(--ink-0);
}

.notif-cat-btn {
  background: var(--bg-surface);
  border: 1.5px solid var(--border-default);
  border-radius: 8px;
  padding: 7px 12px;
  color: var(--ink-2);
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
  transition: all 0.2s ease;
}

.notif-cat-btn.active {
  background: var(--rus-blue);
  border-color: var(--rus-cyan);
  color: #FFFFFF;
  box-shadow: 0 2px 8px rgba(38, 88, 165, 0.4);
}

.notif-driver-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: var(--bg-surface);
  border: 1.5px solid var(--border-subtle);
  border-radius: 10px;
  padding: 8px 12px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.notif-driver-row.selected {
  border-color: var(--rus-yellow);
  background: rgba(255, 220, 34, 0.08);
}

.driver-num-pill {
  background: var(--rus-blue);
  color: var(--rus-yellow);
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 900;
  padding: 2px 6px;
  border-radius: 4px;
  border: 1px solid var(--rus-cyan);
}

.driver-check-badge {
  font-size: 11px;
  font-weight: 800;
  padding: 4px 8px;
  border-radius: 6px;
  background: rgba(148, 163, 184, 0.15);
  color: var(--ink-2);
}

.notif-driver-row.selected .driver-check-badge {
  background: var(--rus-yellow);
  color: #00205B;
  font-weight: 900;
}

.notif-lead-btn {
  background: var(--bg-surface);
  border: 1.5px solid var(--border-default);
  border-radius: 8px;
  padding: 8px 4px;
  color: var(--ink-1);
  font-size: 11px;
  font-weight: 800;
  cursor: pointer;
  transition: all 0.2s ease;
  text-align: center;
}

.notif-lead-btn.active {
  background: var(--rus-cyan);
  border-color: var(--rus-cyan);
  color: #001A4A;
  font-weight: 900;
}

.btn-test-notif {
  background: linear-gradient(135deg, var(--rus-blue) 0%, #0284c7 100%);
  border: 1.5px solid var(--rus-cyan);
  border-radius: 10px;
  color: #FFFFFF;
  padding: 12px 16px;
  font-weight: 900;
  font-size: 13px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  box-shadow: 0 4px 14px rgba(8, 179, 233, 0.3);
  transition: transform 0.2s ease;
}

.btn-test-notif:hover {
  transform: translateY(-1px);
}

.btn-test-sub {
  background: var(--bg-surface);
  border: 1px solid var(--border-default);
  border-radius: 8px;
  color: var(--ink-0);
  padding: 8px;
  font-weight: 800;
  font-size: 11px;
  cursor: pointer;
}

.btn-save-notif {
  background: linear-gradient(135deg, #FFDC22 0%, #E5B800 100%);
  border: none;
  border-radius: 10px;
  color: #00205B;
  padding: 12px;
  font-weight: 900;
  font-size: 13px;
  cursor: pointer;
  letter-spacing: 0.5px;
  box-shadow: 0 4px 14px rgba(255, 220, 34, 0.35);
}

.rusmed-toast {
  position: fixed;
  bottom: 80px;
  left: 50%;
  transform: translateX(-50%) translateY(50px);
  background: #00205B;
  color: #FFFFFF;
  border: 1.5px solid var(--rus-cyan);
  border-radius: 12px;
  padding: 12px 20px;
  font-size: 13px;
  font-weight: 800;
  box-shadow: 0 10px 30px rgba(0,0,0,0.5);
  opacity: 0;
  pointer-events: none;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  z-index: 999999;
  text-align: center;
  max-width: 90%;
}

.rusmed-toast.show {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
}

/* Light Theme Overrides for Notification Modal */
[data-theme="light"] .notif-chip-check .chip-box {
  background: #F8FAFC;
  border-color: #CBD5E1;
}

[data-theme="light"] .notif-cat-btn {
  background: #F8FAFC;
  border-color: #CBD5E1;
  color: #334155;
}

[data-theme="light"] .notif-driver-row {
  background: #F8FAFC;
  border-color: #E2E8F0;
}

[data-theme="light"] .notif-driver-row.selected {
  background: #FEF9C3;
  border-color: #D97706;
}

[data-theme="light"] .notif-lead-btn {
  background: #F8FAFC;
  border-color: #CBD5E1;
  color: #334155;
}

[data-theme="light"] .btn-test-sub {
  background: #F8FAFC;
  border-color: #CBD5E1;
}


/* ==========================================================================
   LIVE TIMING & TELEMETRY PRO
   ========================================================================== */
.live-timing-header-card {
  background: linear-gradient(135deg, rgba(0, 32, 91, 0.95) 0%, rgba(13, 20, 44, 0.98) 100%);
  border: 1.5px solid var(--rus-yellow);
  border-radius: 18px;
  padding: 16px 20px;
  margin-bottom: 16px;
  box-shadow: 0 8px 32px rgba(255, 220, 34, 0.15);
  position: relative;
  overflow: hidden;
}

.live-badge-pulse {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(239, 68, 68, 0.2);
  color: #EF4444;
  border: 1px solid rgba(239, 68, 68, 0.5);
  padding: 4px 10px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.live-badge-pulse::before {
  content: '';
  width: 8px;
  height: 8px;
  background: #EF4444;
  border-radius: 50%;
  animation: pulse-dot 1.2s infinite;
}

@keyframes pulse-dot {
  0% { transform: scale(0.9); opacity: 1; }
  50% { transform: scale(1.4); opacity: 0.4; }
  100% { transform: scale(0.9); opacity: 1; }
}

.live-cat-pills-bar {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 8px;
  margin-bottom: 16px;
  scrollbar-width: thin;
}

.live-cat-pill-btn {
  background: var(--bg-card);
  border: 1px solid var(--line);
  color: var(--ink-1);
  padding: 8px 16px;
  border-radius: 10px;
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
  white-space: nowrap;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: all 0.2s ease;
}

.live-cat-pill-btn.active {
  background: var(--rus-yellow);
  color: #00205B;
  border-color: var(--rus-yellow);
  box-shadow: 0 4px 14px rgba(255, 220, 34, 0.4);
}

.live-circuit-canvas-wrap {
  background: #0A0F24;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 16px;
  margin-bottom: 18px;
  position: relative;
  text-align: center;
  overflow: hidden;
}

.live-circuit-svg {
  width: 100%;
  max-width: 650px;
  height: auto;
  min-height: 240px;
  max-height: 380px;
  margin: 0 auto;
  display: block;
}

.live-car-dot {
  transition: none !important;
  cursor: pointer;
  will-change: transform;
}

.live-car-dot:hover circle {
  r: 10;
  filter: drop-shadow(0 0 10px #FFDC22);
}

.live-table-wrapper {
  overflow-x: auto;
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: 16px;
  margin-bottom: 20px;
  box-shadow: var(--card-shadow);
  scrollbar-width: thin;
}

.live-timing-pro-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12px;
  text-align: center;
  white-space: nowrap;
}

.live-timing-pro-table th {
  background: #00205B;
  color: var(--rus-yellow);
  padding: 10px 8px;
  font-weight: 900;
  font-size: 11px;
  text-transform: uppercase;
  border-bottom: 2px solid var(--rus-yellow);
  letter-spacing: 0.5px;
}

.live-timing-pro-table td {
  padding: 10px 8px;
  border-bottom: 1px solid var(--line);
  font-weight: 700;
  color: var(--ink-0);
}

.live-timing-pro-table tr.rus-med-live-row {
  background: rgba(255, 220, 34, 0.12) !important;
  border-left: 4px solid var(--rus-yellow);
}

.live-timing-pro-table tr:hover {
  background: rgba(255, 255, 255, 0.05);
}

.tag-purple-sector {
  background: #A855F7;
  color: #FFFFFF;
  padding: 2px 6px;
  border-radius: 4px;
  font-weight: 900;
  box-shadow: 0 0 8px rgba(168, 85, 247, 0.5);
}

.state-tag-track {
  background: rgba(34, 197, 94, 0.15);
  color: #22C55E;
  border: 1px solid rgba(34, 197, 94, 0.4);
  padding: 2px 8px;
  border-radius: 6px;
  font-size: 10px;
  font-weight: 900;
}

.state-tag-pit {
  background: rgba(239, 68, 68, 0.15);
  color: #EF4444;
  border: 1px solid rgba(239, 68, 68, 0.4);
  padding: 2px 8px;
  border-radius: 6px;
  font-size: 10px;
  font-weight: 900;
}

/* ACTC Tiempos Best-of Bar */
.actc-best-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  background: linear-gradient(90deg, rgba(0, 32, 91, 0.8) 0%, rgba(10, 15, 36, 0.95) 100%);
  border: 1px solid rgba(168, 85, 247, 0.4);
  border-radius: 12px;
  padding: 10px 16px;
  margin-bottom: 14px;
  box-shadow: 0 4px 16px rgba(168, 85, 247, 0.12);
}

.actc-best-item {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 11.5px;
  font-weight: 700;
  color: var(--ink-1);
}

.actc-best-item b {
  font-family: monospace;
  color: #fff;
  font-weight: 900;
}

/* ACTC Sub-Views Navigation Bar */
.actc-subview-nav {
  display: flex;
  gap: 6px;
  overflow-x: auto;
  padding-bottom: 6px;
  margin-bottom: 14px;
  scrollbar-width: thin;
}

.actc-subview-btn {
  background: var(--bg-card);
  border: 1px solid var(--line);
  color: var(--ink-2);
  padding: 7px 14px;
  border-radius: 8px;
  font-size: 11.5px;
  font-weight: 800;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  gap: 6px;
}

.actc-subview-btn.active {
  background: var(--rus-blue);
  color: #fff;
  border-color: var(--rus-cyan);
  box-shadow: 0 2px 10px rgba(0, 82, 204, 0.35);
}

/* ACTC Battles Cards */
.actc-battles-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 12px;
  margin-bottom: 18px;
}

.actc-battle-card {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 12px 14px;
  box-shadow: var(--card-shadow);
  position: relative;
  overflow: hidden;
}

.actc-battle-card::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 4px;
  background: #EF4444;
}

/* ACTC Pace & Incidents Feed */
.actc-events-list {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 12px 16px;
  margin-bottom: 18px;
}

.actc-event-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
  font-size: 12.5px;
}

.actc-event-row:last-child {
  border-bottom: none;
}

/* ==========================================================================
   WEB COMING SOON GATE ("Algo nuevo está por llegar...")
   Only active on Web (Browsers). Hidden on Native Android App (Capacitor).
   ========================================================================== */
.web-coming-soon-gate {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: 999999;
  background: radial-gradient(circle at 50% 20%, #0c1a40 0%, #00102b 60%, #000817 100%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 24px;
  box-sizing: border-box;
  overflow-y: auto;
  color: #ffffff;
  text-align: center;
  font-family: var(--font-body);
}

.web-gate-card {
  max-width: 480px;
  width: 100%;
  background: rgba(12, 26, 64, 0.75);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(8, 179, 233, 0.3);
  border-radius: 24px;
  padding: 36px 28px;
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.6), 0 0 30px rgba(8, 179, 233, 0.2);
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  overflow: hidden;
}

.web-gate-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--rus-cyan), var(--rus-yellow), var(--rus-cyan));
  background-size: 200% 100%;
  animation: shimmerBorder 3s linear infinite;
}

@keyframes shimmerBorder {
  0% { background-position: 0% 0%; }
  100% { background-position: 200% 0%; }
}

.web-gate-logo {
  width: 140px;
  max-width: 80%;
  height: auto;
  margin-bottom: 20px;
  filter: drop-shadow(0 0 15px rgba(8, 179, 233, 0.4));
  animation: logoPulse 4s ease-in-out infinite;
}

@keyframes logoPulse {
  0%, 100% { transform: scale(1); filter: drop-shadow(0 0 15px rgba(8, 179, 233, 0.4)); }
  50% { transform: scale(1.03); filter: drop-shadow(0 0 25px rgba(255, 220, 34, 0.6)); }
}

.web-gate-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 220, 34, 0.12);
  border: 1px solid rgba(255, 220, 34, 0.6);
  padding: 6px 20px;
  border-radius: 50px;
  margin-bottom: 18px;
  box-shadow: 0 0 16px rgba(255, 220, 34, 0.2);
}

.web-gate-badge img {
  height: 22px;
  width: auto;
  display: block;
  object-fit: contain;
}

.web-gate-title {
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 900;
  line-height: 1.25;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: #FFFFFF;
  margin-bottom: 12px;
  background: linear-gradient(135deg, #FFFFFF 30%, var(--rus-cyan) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.web-gate-desc {
  font-size: 14px;
  line-height: 1.6;
  color: #CBD5E1;
  margin-bottom: 28px;
}

.web-gate-cta-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  padding: 16px 20px;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--rus-yellow) 0%, #FFA500 100%);
  color: #00102B;
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 1px;
  text-decoration: none;
  box-shadow: 0 8px 24px rgba(255, 220, 34, 0.35);
  transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
  box-sizing: border-box;
}

.web-gate-cta-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 30px rgba(255, 220, 34, 0.5);
}

.web-gate-social-box {
  margin-top: 24px;
  display: flex;
  gap: 12px;
  justify-content: center;
}

.web-gate-social-icon {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(8, 179, 233, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #FFFFFF;
  text-decoration: none;
  transition: all 0.25s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.web-gate-social-icon svg {
  display: block;
}

.web-gate-social-icon.ig:hover {
  background: #E1306C;
  border-color: #E1306C;
  color: #FFFFFF;
  transform: translateY(-3px);
  box-shadow: 0 6px 18px rgba(225, 48, 108, 0.45);
}

.web-gate-social-icon.yt:hover {
  background: #FF0000;
  border-color: #FF0000;
  color: #FFFFFF;
  transform: translateY(-3px);
  box-shadow: 0 6px 18px rgba(255, 0, 0, 0.45);
}

.web-gate-social-icon.tw:hover {
  background: #FFFFFF;
  border-color: #FFFFFF;
  color: #000000;
  transform: translateY(-3px);
  box-shadow: 0 6px 18px rgba(255, 255, 255, 0.35);
}

.web-gate-social-icon.fb:hover {
  background: #1877F2;
  border-color: #1877F2;
  color: #FFFFFF;
  transform: translateY(-3px);
  box-shadow: 0 6px 18px rgba(24, 119, 242, 0.45);
}

.web-gate-social-icon.web:hover {
  background: var(--rus-cyan);
  border-color: var(--rus-cyan);
  color: #00102B;
  transform: translateY(-3px);
  box-shadow: 0 6px 18px rgba(8, 179, 233, 0.45);
}

.web-gate-app-info {
  margin-top: 24px;
  padding-top: 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  width: 100%;
  font-size: 12px;
  color: #94A3B8;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

/* ── Live Timing Category Logo Pills ── */
.live-cat-pills-bar {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  touch-action: pan-x;
  scroll-behavior: smooth;
  padding: 6px 4px 14px 4px;
  margin-bottom: 14px;
  scrollbar-width: none;
  cursor: grab;
  user-select: none;
}

/* ── Live Timing Session Selector Pills (Slidable Bar) ── */
.live-session-pills-bar {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  touch-action: pan-x;
  scroll-behavior: smooth;
  padding: 4px 2px 8px 2px;
  margin-bottom: 8px;
  scrollbar-width: none;
  cursor: grab;
  user-select: none;
}

/* ── Live Timing Sub-Session Selector Pills (Series 1, 2, 3, Cuartos, etc.) ── */
.live-subsession-pills-bar {
  display: flex;
  gap: 6px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  touch-action: pan-x;
  scroll-behavior: smooth;
  padding: 2px 2px 10px 2px;
  margin-bottom: 14px;
  scrollbar-width: none;
  cursor: grab;
  user-select: none;
}

.live-session-pills-bar::-webkit-scrollbar,
.live-subsession-pills-bar::-webkit-scrollbar,
.live-cat-pills-bar::-webkit-scrollbar {
  display: none !important;
  width: 0 !important;
  height: 0 !important;
}

.live-session-pill-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  background: rgba(13, 22, 53, 0.85);
  color: var(--ink-1);
  border: 1px solid rgba(8, 179, 233, 0.25);
  border-radius: 10px;
  padding: 8px 15px;
  font-size: 11px;
  font-weight: 900;
  cursor: pointer;
  white-space: nowrap;
  text-transform: uppercase;
  flex-shrink: 0;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.live-session-pill-btn:hover {
  background: rgba(8, 179, 233, 0.2);
  border-color: var(--rus-cyan);
  color: #fff;
  transform: translateY(-1px);
}

.live-session-pill-btn.active {
  background: var(--rus-yellow) !important;
  color: #00205B !important;
  border-color: var(--rus-yellow) !important;
  box-shadow: 0 4px 14px rgba(255, 220, 34, 0.45) !important;
  transform: scale(1.03);
}

.live-subsession-pill-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  background: rgba(8, 22, 58, 0.7);
  color: var(--ink-2);
  border: 1px solid rgba(8, 179, 233, 0.2);
  border-radius: 8px;
  padding: 6px 12px;
  font-size: 11px;
  font-weight: 800;
  cursor: pointer;
  white-space: nowrap;
  text-transform: uppercase;
  flex-shrink: 0;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.live-subsession-pill-btn:hover {
  background: rgba(8, 179, 233, 0.2);
  color: #fff;
  border-color: var(--rus-cyan);
}

.live-subsession-pill-btn.active {
  background: rgba(8, 179, 233, 0.25) !important;
  color: var(--rus-cyan) !important;
  border-color: var(--rus-cyan) !important;
  box-shadow: 0 0 10px rgba(8, 179, 233, 0.35) !important;
  font-weight: 900;
}

.live-cat-pill-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(13, 22, 53, 0.85);
  border: 1px solid rgba(8, 179, 233, 0.3);
  border-radius: 12px;
  padding: 8px 18px;
  min-height: 46px;
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
  flex-shrink: 0;
}

.live-cat-pill-btn:hover {
  background: rgba(8, 179, 233, 0.15);
  border-color: var(--rus-cyan);
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(8, 179, 233, 0.3);
}

.live-cat-pill-btn.active {
  background: var(--rus-yellow) !important;
  border-color: var(--rus-yellow) !important;
  transform: scale(1.04);
  box-shadow: 0 6px 20px rgba(255, 220, 34, 0.5) !important;
}

.live-cat-pill-btn .live-cat-logo {
  height: 24px;
  max-width: 85px;
  width: auto;
  object-fit: contain;
  transition: filter 0.2s ease;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.35));
}

.live-cat-pill-btn.active .live-cat-logo {
  filter: brightness(0) saturate(100%) invert(13%) sepia(35%) saturate(3000%) hue-rotate(210deg) brightness(85%) contrast(100%);
}




/* Clean custom scrollbars & prevent layout scroll traps */
.live-cat-pills-bar,
.actc-subview-nav,
.session-pills-bar,
.cat-pills-bar {
  scrollbar-width: none !important;
  -ms-overflow-style: none !important;
}
.live-cat-pills-bar::-webkit-scrollbar,
.actc-subview-nav::-webkit-scrollbar,
.session-pills-bar::-webkit-scrollbar,
.cat-pills-bar::-webkit-scrollbar {
  display: none !important;
  width: 0 !important;
  height: 0 !important;
}

.live-table-wrapper {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
  scrollbar-color: var(--rus-cyan) rgba(0, 0, 0, 0.2);
  margin-bottom: 20px;
}
.live-table-wrapper::-webkit-scrollbar {
  height: 6px;
}
.live-table-wrapper::-webkit-scrollbar-track {
  background: rgba(0, 0, 0, 0.3);
  border-radius: 4px;
}
.live-table-wrapper::-webkit-scrollbar-thumb {
  background: var(--rus-cyan);
  border-radius: 4px;
}

/* =========================================================
   ACTC OFFICIAL LIVE TIMING & SESSION CARDS SYSTEM
   ========================================================= */
.live-mode-toggle-container {
  display: flex;
  gap: 10px;
  background: rgba(0, 32, 91, 0.4);
  padding: 6px;
  border-radius: 12px;
  border: 1px solid rgba(8, 179, 233, 0.25);
  margin-bottom: 20px;
}

.live-mode-btn {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 14px;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 800;
  color: var(--ink-2);
  background: transparent;
  border: none;
  cursor: pointer;
  transition: all 0.2s ease;
  letter-spacing: 0.5px;
}

.live-mode-btn.active {
  background: var(--rus-yellow);
  color: #00205B;
  box-shadow: 0 4px 12px rgba(255, 220, 34, 0.4);
}

.actc-live-embed-wrap {
  background: #0b0e13;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.6);
  margin-bottom: 24px;
}

.actc-live-embed-header {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 18px;
  background: #111722;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.actc-embed-sub-btn {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #fff;
  padding: 6px 12px;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 800;
  cursor: pointer;
  transition: all 0.2s ease;
}

.actc-embed-sub-btn:hover {
  background: var(--rus-cyan);
  color: #00205B;
  border-color: var(--rus-cyan);
}

.actc-live-iframe {
  width: 100%;
  height: 750px;
  border: none;
  display: block;
  background: #0b0e13;
}

.actc-session-section-header {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.8px;
  color: var(--rus-yellow);
  text-transform: uppercase;
  margin-bottom: 14px;
}

.live-pulse-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: rgba(239, 68, 68, 0.2);
  color: #EF4444;
  border: 1px solid rgba(239, 68, 68, 0.5);
  padding: 3px 8px;
  border-radius: 999px;
  font-size: 10.5px;
  font-weight: 900;
  letter-spacing: 0.5px;
  animation: pulseLiveBadge 1.8s infinite;
}

@keyframes pulseLiveBadge {
  0% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.75; transform: scale(1.03); }
  100% { opacity: 1; transform: scale(1); }
}

.actc-sessions-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 14px;
  margin-bottom: 24px;
}

.actc-grid-card {
  position: relative;
  padding: 16px 18px;
  border-radius: 12px;
  background: rgba(13, 22, 53, 0.85);
  border: 1px solid rgba(8, 179, 233, 0.2);
  overflow: hidden;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.2, 0.7, 0.1, 1);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.3);
}

.actc-grid-card:hover {
  transform: translateY(-3px);
  border-color: var(--rus-cyan);
  box-shadow: 0 8px 24px rgba(8, 179, 233, 0.35);
  background: rgba(17, 30, 72, 0.95);
}

.actc-grid-card.active {
  border-color: var(--rus-yellow) !important;
  background: rgba(0, 32, 91, 0.95) !important;
  box-shadow: 0 6px 20px rgba(255, 220, 34, 0.35) !important;
}

.actc-grid-card.active::after {
  content: '✓ SELECCIONADA';
  position: absolute;
  top: 10px;
  right: 12px;
  font-size: 9.5px;
  font-weight: 900;
  color: var(--rus-yellow);
  background: rgba(255, 220, 34, 0.15);
  padding: 2px 6px;
  border-radius: 4px;
}

.actc-card-rail {
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 4px;
}

.actc-grid-card.flag-green .actc-card-rail,
.actc-card-rail.green { background: #00FF66; }
.actc-grid-card.flag-yellow .actc-card-rail,
.actc-card-rail.yellow { background: #FFDC22; }
.actc-grid-card.flag-red .actc-card-rail,
.actc-card-rail.red { background: #EF4444; }
.actc-grid-card.flag-checkered .actc-card-rail,
.actc-card-rail.checkered { background: repeating-linear-gradient(180deg, #fff 0 4px, #000 4px 8px); }

.actc-card-hd {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 6px;
}

.event-card-cat {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 15px;
  letter-spacing: 0.05em;
  color: var(--ink-0);
}

.session-badge {
  display: inline-flex;
  align-items: center;
  padding: 2px 7px;
  border-radius: 4px;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.1em;
}

.session-badge.final { background: rgba(168, 85, 247, 0.2); color: #C084FC; border: 1px solid rgba(168, 85, 247, 0.4); }
.session-badge.serie,
.session-badge.race { background: rgba(239, 68, 68, 0.2); color: #F87171; border: 1px solid rgba(239, 68, 68, 0.4); }
.session-badge.qualy { background: rgba(245, 158, 11, 0.2); color: #FBBF24; border: 1px solid rgba(245, 158, 11, 0.4); }
.session-badge.practice { background: rgba(59, 130, 246, 0.2); color: #60A5FA; border: 1px solid rgba(59, 130, 246, 0.4); }

.event-card-event {
  color: var(--ink-1);
  font-weight: 700;
  font-size: 13px;
  margin-bottom: 3px;
}

.event-card-run {
  color: var(--ink-2);
  font-size: 12px;
  font-weight: 600;
  margin-bottom: 12px;
}

.event-card-foot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px dashed rgba(255, 255, 255, 0.1);
  padding-top: 10px;
  font-size: 11px;
  color: var(--ink-2);
}

.event-card-live {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: #00FF66;
  font-weight: 800;
}

.event-card-live .live-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #00FF66;
  box-shadow: 0 0 8px #00FF66;
  animation: actcPulse 1.6s infinite;
}

/* ==========================================================================
   RUS MED TEAM — LIVE TIMING TELEMETRY (100% NATIVE & RESPONSIVE)
   ========================================================================== */

.rus-live-connection-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: rgba(0, 32, 91, 0.7);
  border: 1px solid var(--rus-cyan);
  border-radius: 10px;
  padding: 8px 14px;
  margin-bottom: 14px;
  font-size: 11.5px;
}

.rus-live-status-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 800;
  color: #00FF66;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.rus-live-status-pill .live-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #00FF66;
  box-shadow: 0 0 10px #00FF66;
  animation: actcPulse 1.4s infinite;
}

/* Broadcast Header Card */
.rus-live-header-card {
  background: linear-gradient(135deg, #15183B 0%, #212552 100%);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 16px;
  margin-bottom: 12px;
  box-shadow: var(--card-shadow);
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.rus-live-header-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.rus-live-cat-title {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 900;
  color: var(--ink-0);
  letter-spacing: 0.05em;
  display: flex;
  align-items: center;
  gap: 8px;
}

.rus-live-brand-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: rgba(0, 0, 0, 0.45);
  padding: 6px 14px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.35);
}

.rus-live-brand-badge .brand-logo-cat {
  height: 30px;
  max-width: 90px;
  object-fit: contain;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.6));
}

.rus-live-brand-badge .brand-divider {
  color: rgba(255, 255, 255, 0.25);
  font-size: 18px;
  font-weight: 300;
  line-height: 1;
  user-select: none;
}

.rus-live-brand-badge .brand-logo-actc {
  height: 24px;
  max-width: 75px;
  object-fit: contain;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.6));
}

.rus-live-cat-title em {
  font-style: normal;
  color: #E10600;
  font-size: 13px;
  font-weight: 800;
  background: rgba(225, 6, 0, 0.15);
  border: 1px solid rgba(225, 6, 0, 0.4);
  padding: 2px 6px;
  border-radius: 4px;
}

.rus-live-flag-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  background: rgba(0, 255, 102, 0.15);
  color: #00FF66;
  border: 1px solid rgba(0, 255, 102, 0.4);
}

.rus-live-flag-badge.checkered {
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.4);
}

.rus-live-header-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 12px;
  color: var(--ink-2);
  flex-wrap: wrap;
}

.rus-live-header-meta .sep {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--rus-cyan);
}

/* Live Clocks */
.rus-live-clocks-bar {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  border-top: 1px solid rgba(8, 179, 233, 0.2);
  padding-top: 10px;
}

.rus-clock-box {
  flex: 1;
  min-width: 100px;
  background: rgba(0, 0, 0, 0.25);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  padding: 6px 10px;
  display: flex;
  flex-direction: column;
}

.rus-clock-lbl {
  font-size: 9.5px;
  font-weight: 800;
  color: var(--ink-3);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.rus-clock-val {
  font-family: monospace;
  font-size: 17px;
  font-weight: 900;
  color: var(--rus-yellow);
}

/* Rolling Ticker */
.rus-live-ticker {
  background: rgba(0, 20, 60, 0.9);
  border: 1px solid rgba(8, 179, 233, 0.3);
  border-radius: 8px;
  display: flex;
  align-items: center;
  height: 38px;
  overflow: hidden;
  margin-bottom: 12px;
}

.rus-ticker-lbl {
  background: #E10600;
  color: #fff;
  font-size: 10.5px;
  font-weight: 900;
  letter-spacing: 0.1em;
  padding: 0 10px;
  height: 100%;
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.rus-ticker-scroll {
  display: flex;
  align-items: center;
  gap: 20px;
  overflow-x: auto;
  scrollbar-width: none;
  padding: 0 12px;
  white-space: nowrap;
  font-size: 12px;
}
.rus-ticker-scroll::-webkit-scrollbar { display: none; }

.rus-ticker-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--ink-1);
}

.rus-ticker-item strong {
  color: #fff;
  font-weight: 800;
}

.rus-ticker-item .t-time {
  font-family: monospace;
  color: #D946EF;
  font-weight: 700;
}

.rus-ticker-item .t-gap {
  font-family: monospace;
  color: #00FF66;
  font-weight: 700;
}

/* Récord de Vuelta Card */
.rus-best-lap-card {
  background: linear-gradient(90deg, rgba(217, 70, 239, 0.12) 0%, rgba(33, 37, 82, 0.9) 100%);
  border: 1px solid rgba(217, 70, 239, 0.4);
  border-radius: 12px;
  padding: 12px 16px;
  margin-bottom: 14px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}

.rus-best-lap-who {
  display: flex;
  flex-direction: column;
}

.rus-best-lap-lbl {
  font-size: 10px;
  font-weight: 900;
  color: #D946EF;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.rus-best-lap-name {
  font-weight: 900;
  color: #fff;
  font-size: 14px;
}

.rus-best-lap-time {
  font-family: monospace;
  font-size: 18px;
  font-weight: 900;
  color: var(--rus-yellow);
}

.rus-best-lap-sectors {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.rus-sec-chip {
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 6px;
  padding: 3px 8px;
  font-size: 11px;
  font-family: monospace;
}

.rus-sec-chip span {
  color: var(--ink-3);
  margin-right: 4px;
  font-size: 9.5px;
}

.rus-sec-chip b {
  color: #fff;
}

/* ==========================================================================
   TELEMETRY TABLE (SMOOTH HORIZONTAL SCROLL & RESPONSIVE PRO-TABLE)
   ========================================================================== */

.rus-table-scroll-wrap {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--bg-card);
  box-shadow: var(--card-shadow);
  margin-bottom: 20px;
}

.rus-telemetry-table {
  width: 100%;
  min-width: 860px;
  border-collapse: collapse;
  font-size: 12px;
  text-align: center;
}

.rus-telemetry-table th {
  background: #15183B;
  color: var(--rus-cyan);
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 11px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 11px 8px;
  border-bottom: 2px solid var(--line);
  white-space: nowrap;
}

.rus-telemetry-table td {
  padding: 9px 8px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  white-space: nowrap;
  color: var(--ink-1);
}

.rus-telemetry-table tr:hover {
  background: rgba(8, 179, 233, 0.08);
}

/* Sticky POS and PILOTO columns */
.rus-telemetry-table .col-pos {
  position: sticky;
  left: 0;
  background: #15183B;
  z-index: 2;
  width: 48px;
  font-weight: 900;
}

.rus-telemetry-table tr.rus-med-live-row .col-pos {
  background: #3d3305 !important;
  color: var(--rus-yellow) !important;
}

.rus-telemetry-table .col-pilot {
  position: sticky;
  left: 48px;
  background: var(--bg-card);
  z-index: 2;
  text-align: left;
  min-width: 180px;
  font-weight: 800;
  border-right: 1px solid rgba(255, 255, 255, 0.1);
}

.rus-telemetry-table tr.rus-med-live-row .col-pilot {
  background: #3d3305 !important;
  color: var(--rus-yellow) !important;
}

.rus-telemetry-table tr:hover .col-pos,
.rus-telemetry-table tr:hover .col-pilot {
  background: #1c2754;
}

/* RUS MED Drivers Row Glow */
.rus-telemetry-table tr.rus-med-live-row {
  background: rgba(255, 220, 34, 0.12) !important;
  border-left: 4px solid var(--rus-yellow) !important;
}

.rus-med-pill-badge {
  background: var(--rus-yellow);
  color: #00205B;
  font-size: 9px;
  font-weight: 900;
  padding: 2px 6px;
  border-radius: 4px;
  margin-left: 6px;
  letter-spacing: 0.5px;
  display: inline-block;
}

/* Times and Sectors */
.rus-t-best {
  font-family: monospace;
  font-weight: 900;
  color: #D946EF;
}

.rus-t-pb {
  font-family: monospace;
  font-weight: 800;
  color: #00FF66;
}

.rus-t-gap {
  font-family: monospace;
  font-weight: 800;
  color: #F87171;
}

.rus-sec-ob {
  background: rgba(217, 70, 239, 0.2);
  color: #F0ABFC !important;
  font-weight: 800;
  border-radius: 4px;
  padding: 2px 4px;
}

.rus-sec-pb {
  background: rgba(0, 255, 102, 0.15);
  color: #86EFAC !important;
  font-weight: 800;
  border-radius: 4px;
  padding: 2px 4px;
}

/* ==========================================================================
   STANDINGS TAB: PODIUM, MATRIX TABLE & RACE FILTER BAR STYLES
   ========================================================================== */
.rus-podium-container {
  display: flex;
  justify-content: center;
  align-items: flex-end;
  gap: 12px;
  margin: 16px 0 20px 0;
  width: 100%;
  box-sizing: border-box;
}

.rus-podium-card {
  flex: 1;
  max-width: 180px;
  background: var(--bg-card);
  border: 1.5px solid var(--line);
  border-radius: 14px;
  padding: 12px 8px;
  text-align: center;
  box-shadow: var(--card-shadow);
  display: flex;
  flex-direction: column;
  align-items: center;
}

.rus-podium-card.first {
  background: linear-gradient(180deg, rgba(255, 220, 34, 0.15) 0%, var(--bg-card) 100%);
  border-color: var(--rus-yellow);
  box-shadow: 0 4px 16px var(--rus-yellow-glow);
  transform: translateY(-8px);
}

.rus-podium-card.second {
  border-color: rgba(0, 210, 255, 0.4);
}

.rus-podium-card.third {
  border-color: rgba(255, 255, 255, 0.15);
}

.pod-pos {
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 900;
  color: var(--rus-yellow);
  margin-bottom: 4px;
}

.pod-name {
  font-size: 13px;
  font-weight: 900;
  color: var(--ink-0);
  line-height: 1.2;
  margin-bottom: 2px;
}

.pod-car {
  font-size: 10px;
  color: var(--ink-3);
  margin-bottom: 6px;
}

.pod-pts {
  font-size: 12px;
  font-weight: 900;
  color: var(--rus-cyan);
  background: rgba(0, 210, 255, 0.1);
  padding: 2px 8px;
  border-radius: 6px;
}

/* Standings Category Selector Buttons */
.standings-cat-bar {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 4px 2px 10px 2px;
  margin-bottom: 14px;
  width: 100%;
  box-sizing: border-box;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
}

.standings-cat-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-card);
  border: 1.5px solid var(--line);
  border-radius: 12px;
  padding: 6px 14px;
  min-height: 42px;
  cursor: pointer;
  flex-shrink: 0;
  transition: all 0.2s ease;
  gap: 6px;
}

.standings-cat-btn:hover {
  border-color: var(--rus-cyan);
}

.standings-cat-btn.active {
  background: var(--rus-blue);
  border-color: var(--rus-yellow);
  box-shadow: 0 0 12px var(--rus-yellow-glow);
}

.standings-cat-logo {
  height: 22px;
  width: auto;
  max-width: 80px;
  object-fit: contain;
}

.standings-cat-badge {
  font-size: 11px;
  font-weight: 900;
  color: var(--rus-yellow);
  white-space: nowrap;
}

.standings-race-bar {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 8px;
  margin-bottom: 14px;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  scrollbar-width: thin;
  -webkit-overflow-scrolling: touch;
}

.race-filter-btn {
  background: var(--bg-card);
  color: var(--ink-2);
  border: 1px solid var(--line);
  padding: 6px 12px;
  border-radius: 8px;
  font-size: 11px;
  font-weight: 800;
  cursor: pointer;
  white-space: nowrap;
  flex-shrink: 0;
}

.race-filter-btn.active {
  background: var(--rus-blue);
  color: #fff;
  border-color: var(--rus-cyan);
  box-shadow: 0 2px 8px rgba(0, 210, 255, 0.3);
}

.matrix-mobile-hint {
  font-size: 11px;
  color: var(--rus-cyan);
  font-weight: 800;
  text-align: center;
  margin-bottom: 10px;
}

.rus-matrix-wrapper {
  width: 100%;
  max-width: 100%;
  overflow-x: auto;
  box-sizing: border-box;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: var(--bg-card);
  box-shadow: var(--card-shadow);
  margin-bottom: 20px;
  -webkit-overflow-scrolling: touch;
  position: relative;
}

.rus-matrix-table {
  width: max-content;
  min-width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  font-size: 12px;
  text-align: center;
}

.rus-matrix-table th,
.rus-matrix-table td {
  padding: 8px 10px;
  border-bottom: 1px solid var(--line);
  border-right: 1px solid var(--line);
  white-space: nowrap;
  box-sizing: border-box;
}

.rus-matrix-table th {
  background: var(--rus-blue);
  color: var(--ink-0);
  font-weight: 800;
  font-size: 11px;
}

.rus-matrix-table th.fecha-header {
  background: #1a3c75;
  color: var(--rus-yellow);
  font-weight: 900;
  letter-spacing: 0.5px;
  font-size: 11px;
}

.rus-matrix-table th.sub-header {
  font-size: 10px;
  background: #15274d;
  color: var(--ink-2);
  min-width: 32px;
}

.rus-matrix-table th.sub-header-tot {
  color: var(--rus-cyan);
  font-weight: 900;
}

/* STICKY COLUMNS FIX */
.rus-matrix-table th.sticky-col,
.rus-matrix-table td.sticky-col {
  position: sticky;
  box-sizing: border-box;
}

.rus-matrix-table th.sticky-col {
  z-index: 10;
  background: var(--rus-blue) !important;
}

.rus-matrix-table td.sticky-col {
  z-index: 5;
  background: var(--bg-card);
}

.rus-matrix-table .col-pos {
  left: 0 !important;
  width: 48px !important;
  min-width: 48px !important;
  max-width: 48px !important;
  text-align: center;
}

.rus-matrix-table td.col-pos {
  font-weight: 900;
  color: var(--rus-yellow);
  font-family: var(--font-display);
}

.rus-matrix-table .col-name {
  left: 48px !important;
  width: 155px !important;
  min-width: 155px !important;
  max-width: 155px !important;
  overflow: hidden !important;
  text-align: left;
  box-shadow: 3px 0 6px rgba(0, 0, 0, 0.3);
}

.rus-matrix-table td.col-name {
  font-weight: 800;
  color: var(--ink-0);
  overflow: hidden !important;
}

.rus-matrix-table td.col-tot {
  font-weight: 900;
  font-size: 13px;
  color: var(--rus-yellow);
  background: rgba(255, 220, 34, 0.12);
}

.driver-name-cell {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 4px !important;
  width: 100% !important;
  max-width: 145px !important;
  overflow: hidden !important;
}

.d-name {
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  white-space: nowrap !important;
  flex: 1 !important;
  min-width: 0 !important;
  display: inline-block !important;
  max-width: 125px !important;
}

/* HIGH-VISIBILITY GOLD HIGHLIGHT FOR RUS MED DRIVERS */
.rus-matrix-table tr.rus-med-row td {
  background: linear-gradient(90deg, #FFDC22, #F5BF00) !important;
  color: #15183B !important;
  font-weight: 900 !important;
}

.rus-matrix-table tr.rus-med-row td.sticky-col {
  background: #FFDC22 !important;
  color: #15183B !important;
  font-weight: 900 !important;
  border-right: 2px solid #D2AC67 !important;
}

.rus-matrix-table tr.rus-med-row td.col-pos {
  color: #15183B !important;
  font-weight: 900 !important;
}

.rus-matrix-table tr.rus-med-row td.col-name {
  color: #15183B !important;
  font-weight: 900 !important;
}

.rus-matrix-table tr.rus-med-row td.col-name .d-name {
  color: #15183B !important;
  font-weight: 900 !important;
}

.rus-matrix-table tr.rus-med-row td.col-tot {
  background: #E5B800 !important;
  color: #15183B !important;
  font-weight: 900 !important;
}

.rus-med-tag {
  background: #212552 !important;
  color: #FFDC22 !important;
  padding: 1px 5px !important;
  border-radius: 4px !important;
  font-size: 8.5px !important;
  font-weight: 900 !important;
  letter-spacing: 0.5px !important;
  display: inline-flex !important;
  align-items: center !important;
  vertical-align: middle !important;
}

/* ==========================================================================
   SPONSORS HIERARCHY (ORO, PLATA, BRONCE)
   ========================================================================== */
.sponsors-hierarchy-section {
  width: 100%;
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 18px 14px;
  margin-bottom: 24px;
  backdrop-filter: blur(12px);
  box-shadow: var(--card-shadow);
}

.sponsors-tier-block {
  margin-bottom: 18px;
}

.sponsors-tier-block:last-child {
  margin-bottom: 0;
}

.tier-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
  padding: 0 4px;
}

.tier-badge {
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 1px;
  text-transform: uppercase;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.tier-badge.oro {
  color: #FFDC22;
  text-shadow: 0 0 12px rgba(255, 220, 34, 0.4);
}

.tier-badge.plata {
  color: #E2E8F0;
  text-shadow: 0 0 10px rgba(226, 232, 240, 0.3);
}

.tier-badge.bronce {
  color: #CD7F32;
}

.tier-sub {
  font-size: 9px;
  color: var(--rus-cyan);
  font-weight: 700;
  letter-spacing: 0.8px;
  text-transform: uppercase;
}

/* Sponsors Oro: 2 Column Pinned Premium Grid */
.sponsors-grid-oro {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 6px;
}

.sponsor-card-oro {
  height: 64px;
  background: linear-gradient(135deg, rgba(255, 220, 34, 0.12) 0%, rgba(4, 12, 30, 0.6) 100%);
  border: 1.5px solid rgba(255, 220, 34, 0.5);
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 10px 16px;
  transition: all 0.25s ease;
  box-shadow: 0 4px 16px rgba(255, 220, 34, 0.15);
  text-decoration: none;
}

.sponsor-card-oro:hover {
  border-color: var(--rus-yellow);
  transform: translateY(-2px);
  box-shadow: 0 6px 22px rgba(255, 220, 34, 0.35);
}

.sponsor-card-oro img {
  max-height: 42px;
  max-width: 100%;
  width: auto;
  object-fit: contain;
  filter: drop-shadow(0 2px 6px rgba(0,0,0,0.5));
}

/* Sponsors Plata: 3 Column Fixed Grid */
.sponsors-grid-plata {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-bottom: 6px;
}

.sponsor-card-plata {
  height: 48px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(226, 232, 240, 0.25);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 6px 10px;
  transition: all 0.2s ease;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
  text-decoration: none;
}

.sponsor-card-plata:hover {
  border-color: #E2E8F0;
  transform: translateY(-2px);
  box-shadow: 0 4px 14px rgba(226, 232, 240, 0.25);
}

.sponsor-card-plata img {
  max-height: 28px;
  max-width: 100%;
  width: auto;
  object-fit: contain;
}

/* Sponsors Bronce (Marquee) */
.sponsor-card-bronce {
  height: 38px;
  min-width: 85px;
  padding: 4px 10px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
  flex-shrink: 0;
  text-decoration: none;
}

.sponsor-card-bronce:hover {
  border-color: var(--rus-cyan);
  transform: translateY(-2px);
}

.sponsor-card-bronce img {
  max-height: 22px;
  max-width: 80px;
  width: auto;
  object-fit: contain;
  opacity: 0.85;
}

/* Light Theme overrides for Sponsors */
[data-theme="light"] .sponsor-card-oro {
  background: linear-gradient(135deg, rgba(255, 220, 34, 0.25) 0%, #FFFFFF 100%);
  border-color: #D97706;
  box-shadow: 0 4px 14px rgba(217, 119, 6, 0.15);
}

[data-theme="light"] .sponsor-card-plata {
  background: #FFFFFF;
  border-color: rgba(33, 37, 82, 0.15);
  box-shadow: 0 2px 6px rgba(33, 37, 82, 0.06);
}

[data-theme="light"] .tier-badge.plata {
  color: #475569;
}

[data-theme="light"] .sponsor-card-bronce {
  background: #FFFFFF;
  border-color: rgba(33, 37, 82, 0.1);
}

/* ==========================================================================
   INSTALL PWA / HOME SCREEN MODAL & BUTTONS
   ========================================================================== */
.pulse-glow {
  animation: pulseGlow 2s infinite;
}

@keyframes pulseGlow {
  0% { box-shadow: 0 0 0 0 rgba(8, 179, 233, 0.6); }
  70% { box-shadow: 0 0 0 8px rgba(8, 179, 233, 0); }
  100% { box-shadow: 0 0 0 0 rgba(8, 179, 233, 0); }
}

.install-modal-content {
  background: radial-gradient(circle at 50% 0%, #0c234a 0%, #040c1e 100%);
  border: 1.5px solid rgba(8, 179, 233, 0.4);
  border-radius: 20px;
  max-width: 440px;
  width: 90%;
  padding: 24px 20px;
  position: relative;
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.6), 0 0 20px rgba(8, 179, 233, 0.2);
  color: #fff;
  text-align: center;
}

[data-theme="light"] .install-modal-content {
  background: radial-gradient(circle at 50% 0%, #ffffff 0%, #eef4fc 100%);
  border-color: rgba(6, 77, 161, 0.3);
  box-shadow: 0 16px 40px rgba(4, 12, 30, 0.15);
  color: #040c1e;
}

.install-modal-icon-wrap {
  width: 72px;
  height: 72px;
  margin: 0 auto 14px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.06);
  border: 2px solid var(--rus-yellow);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 20px rgba(255, 220, 34, 0.25);
  overflow: hidden;
  padding: 8px;
}

.install-modal-icon-wrap img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.install-modal-title {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 900;
  color: var(--rus-yellow);
  letter-spacing: 0.5px;
  text-transform: uppercase;
  margin-bottom: 6px;
}

[data-theme="light"] .install-modal-title {
  color: #d97706;
}

.install-modal-desc {
  font-size: 13px;
  color: var(--ink-2);
  line-height: 1.4;
  margin-bottom: 16px;
}

.install-device-card {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 14px;
  padding: 14px 16px;
  margin-bottom: 16px;
  text-align: left;
}

[data-theme="light"] .install-device-card {
  background: #ffffff;
  border-color: rgba(33, 37, 82, 0.12);
}

.install-device-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  font-weight: 800;
  color: var(--rus-cyan);
  background: rgba(8, 179, 233, 0.12);
  border: 1px solid rgba(8, 179, 233, 0.3);
  padding: 3px 10px;
  border-radius: 20px;
  margin-bottom: 10px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.install-step-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.install-step-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 12px;
  color: var(--ink-1);
  line-height: 1.4;
}

.install-step-num {
  width: 22px;
  height: 22px;
  min-width: 22px;
  border-radius: 50%;
  background: var(--rus-yellow);
  color: #040c1e;
  font-weight: 900;
  font-size: 11px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.btn-install-native-action {
  width: 100%;
  padding: 12px 20px;
  background: linear-gradient(135deg, var(--rus-yellow) 0%, #f59e0b 100%);
  color: #040c1e;
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 900;
  border: none;
  border-radius: 12px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  box-shadow: 0 4px 16px rgba(255, 220, 34, 0.3);
  transition: all 0.2s ease;
  margin-bottom: 10px;
}

.btn-install-native-action:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(255, 220, 34, 0.45);
}

.btn-install-close {
  width: 100%;
  padding: 10px 16px;
  background: rgba(255, 255, 255, 0.08);
  color: var(--ink-2);
  font-size: 12px;
  font-weight: 700;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.2s ease;
}

[data-theme="light"] .btn-install-close {
  background: rgba(4, 12, 30, 0.05);
  border-color: rgba(4, 12, 30, 0.15);
}

.btn-install-close:hover {
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
}

/* ==========================================================
   INSTAGRAM STORIES CAR GALLERY & FULLSCREEN VIEWER
   ========================================================== */

/* Stories Horizontal Bar in Autos Tab */
.stories-bar-section {
  margin-bottom: 20px;
  background: linear-gradient(135deg, rgba(4, 12, 30, 0.8) 0%, rgba(0, 32, 91, 0.4) 100%);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 14px 12px 16px;
  box-shadow: var(--card-shadow);
}

[data-theme="light"] .stories-bar-section {
  background: linear-gradient(135deg, #FFFFFF 0%, #F0F7FF 100%);
  border-color: rgba(0, 32, 91, 0.12);
}

.stories-bar-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 4px 10px;
}

.stories-bar-title {
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: var(--rus-yellow);
}

.stories-bar-badge {
  font-size: 10px;
  font-weight: 900;
  padding: 3px 9px;
  border-radius: 999px;
  background: rgba(0, 185, 242, 0.15);
  border: 1px solid var(--rus-cyan);
  color: var(--rus-cyan);
  cursor: pointer;
  letter-spacing: 0.5px;
  transition: all 0.2s ease;
}

.stories-bar-badge:hover {
  background: var(--rus-cyan);
  color: #040C1E;
}

.stories-avatar-scroll {
  display: flex;
  gap: 14px;
  overflow-x: auto;
  padding: 4px 2px 6px;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}

.stories-avatar-scroll::-webkit-scrollbar {
  display: none;
}

.story-avatar-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  flex-shrink: 0;
  width: 72px;
  text-align: center;
  transition: transform 0.2s ease;
}

.story-avatar-item:active {
  transform: scale(0.93);
}

.story-avatar-ring {
  position: relative;
  width: 66px;
  height: 66px;
  border-radius: 50%;
  padding: 3px;
  background: linear-gradient(135deg, var(--rus-yellow), #f59e0b, var(--rus-cyan), #3b82f6);
  box-shadow: 0 0 10px rgba(0, 185, 242, 0.35);
  display: flex;
  align-items: center;
  justify-content: center;
}

.story-avatar-img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid #040C1E;
  background: #000;
}

.story-avatar-brand-badge {
  position: absolute;
  bottom: -2px;
  right: -2px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #040C1E;
  border: 1.5px solid var(--rus-yellow);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 6px rgba(0,0,0,0.5);
  z-index: 2;
}

.story-avatar-brand-badge img {
  width: 14px;
  height: 14px;
  object-fit: contain;
}

.story-avatar-label {
  font-size: 10px;
  font-weight: 800;
  color: var(--ink-1);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  width: 100%;
}

/* Fullscreen Instagram Stories Modal */
.stories-modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 99999;
  background: rgba(0, 0, 0, 0.94);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  display: flex;
  align-items: center;
  justify-content: center;
  touch-action: pan-y;
}

.stories-container {
  width: 100%;
  max-width: 460px;
  height: 100%;
  max-height: 900px;
  background: #020611;
  position: relative;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  box-shadow: 0 10px 40px rgba(0,0,0,0.8);
}

@media (min-width: 600px) {
  .stories-container {
    height: 92vh;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.15);
  }
}

/* Top Progress Bars (One per photo) */
.story-progress-bars {
  position: absolute;
  top: 10px;
  left: 12px;
  right: 12px;
  z-index: 20;
  display: flex;
  gap: 5px;
}

.story-progress-bar-track {
  flex: 1;
  height: 3px;
  background: rgba(255, 255, 255, 0.28);
  border-radius: 999px;
  overflow: hidden;
}

.story-progress-bar-fill {
  height: 100%;
  background: #FFFFFF;
  border-radius: 999px;
  box-shadow: 0 0 6px rgba(255, 255, 255, 0.8);
}

/* Header in story viewer */
.story-header {
  position: absolute;
  top: 22px;
  left: 14px;
  right: 14px;
  z-index: 20;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 6px 0;
}

.story-user-info {
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(0, 0, 0, 0.45);
  padding: 4px 10px 4px 6px;
  border-radius: 999px;
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.story-avatar-mini {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  object-fit: contain;
  background: #040C1E;
  padding: 2px;
  border: 1.5px solid var(--rus-yellow);
}

.story-user-text {
  display: flex;
  flex-direction: column;
}

.story-username {
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 900;
  color: #FFFFFF;
  letter-spacing: 0.5px;
  text-shadow: 0 2px 4px rgba(0,0,0,0.8);
}

.story-time {
  font-size: 10px;
  color: var(--rus-cyan);
  font-weight: 700;
}

.story-header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.story-pause-btn,
.story-download-btn,
.story-close-btn {
  background: rgba(0, 0, 0, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #FFFFFF;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  cursor: pointer;
  backdrop-filter: blur(8px);
  transition: all 0.2s ease;
}

.story-download-btn {
  background: rgba(0, 185, 242, 0.25);
  border: 1px solid var(--rus-cyan);
  color: #FFFFFF;
}

.story-pause-btn:hover,
.story-download-btn:hover,
.story-close-btn:hover {
  background: rgba(255, 255, 255, 0.25);
  transform: scale(1.08);
}

/* Content Area */
.story-content-area {
  flex: 1;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: #000;
}

.story-img-backdrop {
  position: absolute;
  inset: -20px;
  background-size: cover;
  background-position: center;
  filter: blur(28px) brightness(0.4);
  transform: scale(1.1);
}

.story-main-img {
  position: relative;
  z-index: 5;
  width: 100%;
  height: 100%;
  object-fit: contain;
  max-height: 100%;
  user-select: none;
  -webkit-user-drag: none;
}

.story-tap-zone {
  position: absolute;
  top: 0;
  bottom: 0;
  z-index: 10;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

.story-tap-zone.left {
  left: 0;
  width: 35%;
}

.story-tap-zone.right {
  right: 0;
  width: 65%;
}

.story-loader {
  position: absolute;
  inset: 0;
  z-index: 8;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0,0,0,0.3);
}

.story-spinner {
  width: 36px;
  height: 36px;
  border: 3px solid rgba(255, 255, 255, 0.2);
  border-top-color: var(--rus-yellow);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* Story Footer */
.story-footer {
  position: absolute;
  bottom: 16px;
  left: 14px;
  right: 14px;
  z-index: 20;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.story-footer-info-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 4px;
}

.story-car-pill {
  font-family: var(--font-display);
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.8px;
  padding: 3px 10px;
  border-radius: 6px;
  background: rgba(0, 32, 91, 0.7);
  border: 1px solid var(--rus-cyan);
  color: #FFFFFF;
}

.story-counter {
  font-size: 11px;
  font-weight: 800;
  color: var(--rus-yellow);
  background: rgba(0,0,0,0.5);
  padding: 2px 8px;
  border-radius: 12px;
}

.story-actions-row {
  display: flex;
  gap: 8px;
}

.story-btn {
  flex: 1;
  padding: 10px 14px;
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.25);
  color: #FFFFFF;
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 900;
  border-radius: 10px;
  cursor: pointer;
  backdrop-filter: blur(10px);
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.story-btn:hover {
  background: rgba(255, 255, 255, 0.25);
}

.story-btn.next-btn {
  background: linear-gradient(135deg, var(--rus-yellow) 0%, #f59e0b 100%);
  color: #040C1E;
  border: none;
  box-shadow: 0 4px 12px rgba(255, 220, 34, 0.35);
}

.story-btn.next-btn:hover {
  filter: brightness(1.1);
  transform: translateY(-1px);
}

/* ==========================================================================
   NEW SECTIONS (RSE, VIP, EVENTOS), CAROUSEL & BOTTOM NAV ENHANCEMENTS
   ========================================================================== */

/* Bottom Navigation Bar Horizontal Scroll & Fixed Placement */
.app-nav-bar {
  position: fixed !important;
  bottom: 0 !important;
  left: 50% !important;
  transform: translateX(-50%) !important;
  width: 100% !important;
  max-width: 680px !important;
  z-index: 9999 !important;
  background: rgba(21, 24, 59, 0.96) !important;
  border-top: 1.5px solid var(--line) !important;
  display: flex !important;
  align-items: center !important;
  justify-content: flex-start !important;
  overflow-x: auto !important;
  overflow-y: hidden !important;
  -webkit-overflow-scrolling: touch !important;
  padding: 6px 8px !important;
  gap: 4px !important;
  box-shadow: 0 -4px 25px rgba(0, 0, 0, 0.6) !important;
  backdrop-filter: blur(16px) !important;
  -webkit-backdrop-filter: blur(16px) !important;
  scrollbar-width: none;
  -ms-overflow-style: none;
}
.app-nav-bar::-webkit-scrollbar {
  display: none;
}
.app-nav-bar .nav-item {
  flex: 0 0 auto !important;
  min-width: 54px !important;
  padding: 5px 6px !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
  cursor: pointer !important;
  border-radius: 8px !important;
  transition: all 0.2s ease !important;
  user-select: none !important;
  white-space: nowrap !important;
  -webkit-tap-highlight-color: transparent !important;
}
.app-nav-bar .nav-item .nav-icon {
  font-size: 16px !important;
  height: 22px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
}
.app-nav-bar .nav-item .nav-icon img {
  height: 22px !important;
  width: auto !important;
  max-height: 22px !important;
  object-fit: contain !important;
}
.app-nav-bar .nav-item .icon-c {
  display: none !important;
}
.app-nav-bar .nav-item .icon-m {
  display: block !important;
}
.app-nav-bar .nav-item.active {
  background: transparent !important;
  border: none !important;
  outline: none !important;
  box-shadow: none !important;
}
.app-nav-bar .nav-item.active .icon-c {
  display: block !important;
  transform: scale(1.14) !important;
  filter: drop-shadow(0 0 6px rgba(0, 195, 242, 0.75)) !important;
  transition: transform 0.2s ease, filter 0.2s ease !important;
}
.app-nav-bar .nav-item.active .icon-m {
  display: none !important;
}
.app-nav-bar .nav-item span:last-child {
  font-size: 10px !important;
  font-weight: 800 !important;
  margin-top: 2px !important;
  white-space: nowrap !important;
  transition: color 0.2s ease, text-shadow 0.2s ease !important;
}
.app-nav-bar .nav-item.active span:last-child {
  color: #ffffff !important;
  font-weight: 900 !important;
  text-shadow: 0 0 8px rgba(0, 195, 242, 0.8) !important;
}
.nav-logo-icon {
  height: 18px !important;
  width: auto !important;
  max-width: 24px !important;
  object-fit: contain !important;
}
  filter: drop-shadow(0 0 4px rgba(255,255,255,0.3));
  transition: transform 0.2s ease;
}
.nav-item.active .nav-logo-icon {
  transform: scale(1.15);
  filter: drop-shadow(0 0 8px var(--rus-cyan));
}

/* Section Header Logos (RSE, VIP, EVENTOS) */
.section-brand-header {
  display: flex;
  align-items: center;
  gap: 14px;
  background: linear-gradient(135deg, rgba(8, 21, 48, 0.9) 0%, rgba(0, 32, 91, 0.7) 100%);
  border: 1px solid rgba(0, 185, 242, 0.25);
  border-radius: 16px;
  padding: 16px 20px;
  margin-bottom: 20px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.4);
}
.section-brand-logo {
  height: 44px;
  width: auto;
  max-width: 90px;
  object-fit: contain;
}

/* Multi-Photo Carousel Component */
.photo-carousel-container {
  position: relative;
  width: 100%;
  border-radius: 14px;
  overflow: hidden;
  background: #000000;
  margin-bottom: 12px;
  box-shadow: 0 6px 20px rgba(0,0,0,0.5);
  user-select: none;
}
.photo-carousel-track {
  display: flex;
  transition: transform 0.35s cubic-bezier(0.25, 1, 0.5, 1);
  will-change: transform;
}
.photo-carousel-slide {
  flex: 0 0 100%;
  width: 100%;
  max-height: 280px;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #020611;
}
.photo-carousel-slide img {
  width: 100%;
  height: 260px;
  object-fit: cover;
  display: block;
}

/* Carousel Prev / Next Buttons */
.carousel-nav-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(4, 12, 30, 0.75);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #FFFFFF;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 10;
  font-size: 14px;
  transition: all 0.2s ease;
}
.carousel-nav-btn:hover {
  background: var(--rus-cyan);
  color: #040C1E;
  border-color: var(--rus-cyan);
}
.carousel-nav-btn.prev { left: 10px; }
.carousel-nav-btn.next { right: 10px; }

/* Carousel Dots Indicator */
.carousel-dots-container {
  position: absolute;
  bottom: 10px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 6px;
  z-index: 10;
  background: rgba(0, 0, 0, 0.5);
  padding: 4px 10px;
  border-radius: 20px;
  backdrop-filter: blur(4px);
}
.carousel-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.4);
  cursor: pointer;
  transition: all 0.25s ease;
}
.carousel-dot.active {
  background: var(--rus-cyan);
  width: 18px;
  border-radius: 10px;
  box-shadow: 0 0 8px var(--rus-cyan);
}

/* ============================================================================
   PANTALLA DE ACCESO PRIVADO / CANDADO DE LANZAMIENTO (LOCK SCREEN & COMING SOON)
   ============================================================================ */
.access-lock-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: radial-gradient(circle at 50% 30%, #00205B 0%, #020B1C 80%);
  z-index: 999999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  box-sizing: border-box;
  opacity: 1;
  transition: opacity 0.4s ease, visibility 0.4s ease;
}

.access-lock-overlay.fade-out {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.coming-soon-card {
  background: rgba(4, 15, 38, 0.90);
  border: 1.5px solid rgba(8, 179, 233, 0.4);
  border-radius: 24px;
  padding: 36px 24px 28px 24px;
  width: 100%;
  max-width: 420px;
  text-align: center;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.85), 0 0 40px rgba(8, 179, 233, 0.25);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  position: relative;
  overflow: hidden;
  animation: accessLockAppear 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes accessLockAppear {
  from { transform: scale(0.92) translateY(20px); opacity: 0; }
  to { transform: scale(1) translateY(0); opacity: 1; }
}

.coming-soon-card.shake {
  animation: accessLockShake 0.4s ease-in-out;
}

@keyframes accessLockShake {
  0%, 100% { transform: translateX(0); }
  20%, 60% { transform: translateX(-10px); }
  40%, 80% { transform: translateX(10px); }
}

.coming-soon-logo-wrap {
  display: inline-block;
  cursor: pointer;
  position: relative;
  margin-bottom: 24px;
  user-select: none;
  -webkit-user-select: none;
  transition: transform 0.2s ease;
}

.coming-soon-logo-wrap:active {
  transform: scale(0.95);
}

.coming-soon-logo {
  height: 120px;
  width: auto;
  max-width: 220px;
  object-fit: contain;
  filter: drop-shadow(0 6px 18px rgba(8, 179, 233, 0.45));
}

.click-counter-badge {
  position: absolute;
  top: -6px;
  right: -10px;
  background: var(--rus-yellow, #FFDC22);
  color: #000;
  font-weight: 900;
  font-size: 11px;
  padding: 3px 8px;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.5);
}

.coming-soon-title {
  font-family: var(--font-display, 'Racing Sans One', sans-serif);
  font-size: 22px;
  font-weight: 900;
  color: #FFFFFF;
  margin: 0 0 14px 0;
  letter-spacing: 0.8px;
  line-height: 1.25;
  text-transform: uppercase;
}

.coming-soon-desc {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.82);
  line-height: 1.5;
  margin: 0 0 24px 0;
  padding: 0 10px;
}

.coming-soon-linktree-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  padding: 16px 20px;
  background: linear-gradient(135deg, #FFDC22 0%, #F5A623 100%);
  color: #001A4A;
  border-radius: 50px;
  font-family: var(--font-display, 'Racing Sans One', sans-serif);
  font-size: 14px;
  font-weight: 900;
  letter-spacing: 0.8px;
  text-decoration: none;
  box-shadow: 0 6px 20px rgba(255, 220, 34, 0.4);
  transition: all 0.25s ease;
  box-sizing: border-box;
  margin-bottom: 24px;
}

.coming-soon-linktree-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(255, 220, 34, 0.6);
}

.coming-soon-socials {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin-bottom: 24px;
}

.social-circle-btn {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  border: 1.5px solid rgba(255, 255, 255, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #FFFFFF;
  text-decoration: none;
  transition: all 0.2s ease;
}

.social-circle-btn:hover {
  transform: scale(1.1);
  background: rgba(8, 179, 233, 0.2);
  border-color: #08B3E9;
  color: #08B3E9;
}

.social-circle-btn.insta:hover { color: #E1306C; border-color: #E1306C; }
.social-circle-btn.fb:hover { color: #1877F2; border-color: #1877F2; }
.social-circle-btn.yt:hover { color: #FF0000; border-color: #FF0000; }
.social-circle-btn.web:hover { color: #FFDC22; border-color: #FFDC22; }

.coming-soon-footer {
  font-size: 11px;
  color: rgba(255, 255, 255, 0.65);
  font-weight: 600;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  padding-top: 16px;
}

.secret-pin-box {
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px dashed rgba(8, 179, 233, 0.4);
  animation: accessLockAppear 0.3s ease;
}

.access-lock-input {
  width: 100%;
  padding: 12px 14px;
  background: rgba(0, 0, 0, 0.5);
  border: 1.5px solid rgba(8, 179, 233, 0.3);
  border-radius: 12px;
  color: #FFFFFF;
  font-size: 15px;
  font-weight: 700;
  text-align: center;
  letter-spacing: 2px;
  box-sizing: border-box;
  outline: none;
  transition: all 0.25s ease;
}

.access-lock-input:focus {
  border-color: #08B3E9;
  background: rgba(0, 0, 0, 0.7);
  box-shadow: 0 0 15px rgba(8, 179, 233, 0.3);
}

.access-lock-btn {
  padding: 12px 18px;
  background: linear-gradient(135deg, #08B3E9 0%, #00205B 100%);
  border: none;
  border-radius: 12px;
  color: #FFFFFF;
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.5px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  box-shadow: 0 4px 15px rgba(8, 179, 233, 0.3);
  transition: all 0.25s ease;
}

.access-lock-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(8, 179, 233, 0.45);
}

.access-lock-error {
  color: #FF4D4D;
  font-size: 12px;
  font-weight: 800;
  margin-top: 8px;
  min-height: 18px;
  display: none;
}






