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

@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@400;500;700;800;900&family=Inter:wght@300;400;500;600;700&family=JetBrains+Mono:wght@400;500;700&display=swap');

:root {
  --bg-black:      #000000; /* Pure black */
  --bg-wine:       #5a142a; /* Logo wine background color */
  --bg-card:       rgba(12, 5, 15, 0.75); /* Dark logo wine card overlay */
  --bg-input:      rgba(0, 0, 0, 0.55);
  --border:        rgba(255, 255, 255, 0.08);
  --border-active: rgba(169, 10, 73, 0.4); /* Logo pink/crimson border */
  
  --text:          #f1f5f9;
  --text-muted:    #a09aa9;
  --text-dark:     #5e5469;
  
  /* 90s Neon accents - modified to logo brand colors */
  --jdm-pink:      #a90a49; /* Logo crimson/pink */
  --jdm-cyan:      #89c3c0; /* Logo teal/cyan */
  --jdm-amber:     #ffac00; /* Headlight/Tachometer amber */
  
  --teal:          var(--jdm-cyan);
  --teal-hover:    #a7d5d3;
  --teal-rgb:      137, 195, 192;
  
  --crimson:       var(--jdm-pink);
  --crimson-hover: #c41a5c;
  --crimson-rgb:   169, 10, 73;
  
  --gold:          var(--jdm-amber);
  --silver:        #e2e8f0;
  --bronze:        #cd7f32;
  
  --mono: 'JetBrains Mono', monospace;
  --sans: 'Inter', system-ui, sans-serif;
  --display: 'Space Grotesk', sans-serif;
  --r: 0px;  /* Sharp corners for JDM style */
  --rl: 0px; /* Sharp corners for JDM style */
  --nav-h: 75px;
  
  --shadow: 0 0 25px rgba(169, 10, 73, 0.15); /* Logo crimson neon shadow */
}

body {
  background: linear-gradient(90deg, var(--bg-wine) 0%, var(--bg-black) 45%, var(--bg-black) 55%, var(--bg-wine) 100%);
  color: var(--text);
  font-family: var(--sans);
  font-size: 14px;
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
  position: relative;
}

/* ── Custom Animated Drifting Glow Background ───────────────── */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background: 
    radial-gradient(circle at 20% 30%, rgba(137, 195, 192, 0.06) 0%, transparent 50%),
    radial-gradient(circle at 80% 75%, rgba(169, 10, 73, 0.08) 0%, transparent 60%);
  filter: blur(100px);
  z-index: -1;
  pointer-events: none;
  animation: drift-teal 25s infinite alternate ease-in-out;
}

body::after {
  content: '';
  position: fixed;
  inset: -100px;
  background: 
    radial-gradient(circle at 75% 20%, rgba(137, 195, 192, 0.04) 0%, transparent 45%),
    radial-gradient(circle at 25% 80%, rgba(169, 10, 73, 0.05) 0%, transparent 50%);
  filter: blur(120px);
  z-index: -2;
  pointer-events: none;
  animation: drift-crimson 32s infinite alternate ease-in-out;
}

@keyframes drift-teal {
  0% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(4%, 3%) scale(1.05); }
  100% { transform: translate(-3%, -2%) scale(0.97); }
}

@keyframes drift-crimson {
  0% { transform: translate(0, 0) rotate(0deg); }
  50% { transform: translate(-2%, 2%) rotate(3deg); }
  100% { transform: translate(2%, -1%) rotate(-3deg); }
}

/* Respect user preferences for reduced motion */
@media (prefers-reduced-motion: reduce) {
  body::before, body::after {
    animation: none !important;
  }
}

main.main { position: relative; z-index: 1; }

a { color: var(--teal); text-decoration: none; transition: color .2s; cursor: pointer; }
a:hover { color: var(--teal-hover); }
strong { font-weight: 700; color: #fff; }
code {
  font-family: var(--mono); font-size: 12px;
  background: rgba(255, 255, 255, 0.04); border: 1px solid var(--border);
  border-radius: 0px; padding: 2px 5px; color: var(--teal);
}

/* ── Navigation (Clean Blurred Header) ───────────────────────── */
@keyframes logo-glow {
  0%, 100% { filter: drop-shadow(0 0 5px rgba(137, 195, 192, 0.3)); }
  50% { filter: drop-shadow(0 0 12px rgba(255, 42, 109, 0.5)); }
}
.nav {
  position: sticky; top: 0; z-index: 200; height: var(--nav-h);
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 4rem;
  background: rgba(5, 3, 8, 0.8);
  border-bottom: 1px solid rgba(255, 42, 109, 0.4);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.4), 0 1px 15px rgba(255, 42, 109, 0.15);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  transition: all 0.3s ease;
}
.nav-logo {
  display: flex;
  align-items: center;
  cursor: pointer;
}
.nav-logo img {
  height: 44px; width: auto; display: block;
  animation: logo-glow 6s infinite ease-in-out;
  transition: transform 0.3s ease;
}
.nav-logo:hover img {
  transform: scale(1.05) rotate(-2deg);
}
.logo-beta-tag {
  font-family: var(--display);
  font-size: 8px;
  font-weight: 900;
  color: var(--jdm-pink);
  background: rgba(255, 42, 109, 0.12);
  border: 1px solid rgba(255, 42, 109, 0.35);
  padding: 1px 4px;
  margin-left: 6px;
  align-self: flex-start;
  margin-top: 2px;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  transform: skewX(-10deg);
  box-shadow: 0 0 6px rgba(255, 42, 109, 0.15);
}
.nav-links { display: flex; align-items: center; gap: 8px; }
@media (min-width: 769px) {
  .nav-logo {
    flex: 1 1 0%;
  }
  .nav-links-main {
    flex: 0 0 auto;
    display: flex;
    justify-content: center;
  }
  .nav-links-right {
    flex: 1 1 0%;
    display: flex;
    justify-content: flex-end;
  }
}
.nav-link {
  font-family: var(--display); 
  font-size: 13px;
  font-weight: 950;
  font-style: italic;
  text-transform: uppercase;
  color: var(--text-muted); 
  padding: 8px 18px; 
  border-radius: 0;
  position: relative;
  overflow: hidden;
  transition: color 0.3s ease, background-color 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
  cursor: pointer;
  transform: skewX(-10deg);
  letter-spacing: 0.5px;
  border: 1px solid transparent;
}
.nav-link::before {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--jdm-pink);
  transition: width 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
  box-shadow: 0 0 8px var(--jdm-pink);
}
.nav-link:hover::before {
  width: 100%;
}
.nav-link:hover {
  color: #fff;
  background: rgba(255, 42, 109, 0.08);
  border-color: rgba(255, 42, 109, 0.2);
}
.nav-link.active {
  color: var(--jdm-cyan);
  background: rgba(0, 240, 255, 0.06);
  border: 1px solid var(--jdm-cyan);
  box-shadow: 0 0 15px rgba(0, 240, 255, 0.2);
}
.nav-link.active::before {
  background: var(--jdm-cyan);
  width: 100%;
  box-shadow: 0 0 8px var(--jdm-cyan);
}

.nav-mobile-toggle {
  display: none; background: none;
  border: 1px solid var(--border); color: var(--text-muted);
  font-size: 18px; padding: 4px 10px; border-radius: 0px; cursor: pointer;
}
.nav-mobile-toggle:hover { color: #fff; border-color: var(--teal); }

.nav-mobile-menu { 
  display: none; 
  flex-direction: column; 
  background: rgba(5, 3, 8, 0.98); 
  border-bottom: 2px solid var(--jdm-pink); 
  position: fixed; 
  top: var(--nav-h); 
  left: 0; 
  right: 0;
  z-index: 199; 
  backdrop-filter: blur(20px);
  padding: 10px 0;
}
.nav-mobile-menu.open { display: flex; }
.nav-mobile-link { 
  font-family: var(--display); 
  font-size: 14px; 
  font-style: italic;
  font-weight: 800;
  text-transform: uppercase;
  color: var(--text-muted); 
  padding: 14px 3rem; 
  border-bottom: 1px solid rgba(255,255,255,0.03); 
  cursor: pointer;
}
.nav-mobile-link:hover { color: var(--teal); background: rgba(255, 255, 255, 0.02); }

/* ── Nav Badge ────────────────────────────────────────────────── */
.nav-link-badge-wrap { 
  display: inline-flex; 
  align-items: center; 
  gap: 6px;
  overflow: visible !important;
}
.nav-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border-radius: 9px;
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 700;
  font-style: normal;
  transform: none;
  color: #fff;
  background: var(--jdm-pink);
  box-shadow: 0 0 8px rgba(169,10,73,0.6);
  animation: badge-pulse 2s infinite;
}
.nav-badge-battles {
  background: var(--jdm-amber);
  color: #000;
  box-shadow: 0 0 8px rgba(255,172,0,0.6);
}
@keyframes badge-pulse {
  0%, 100% { box-shadow: 0 0 8px rgba(169,10,73,0.6); }
  50% { box-shadow: 0 0 16px rgba(169,10,73,0.9), 0 0 24px rgba(169,10,73,0.4); }
}
.nav-badge-battles { animation: badge-pulse-amber 2s infinite; }
@keyframes badge-pulse-amber {
  0%, 100% { box-shadow: 0 0 8px rgba(255,172,0,0.6); }
  50% { box-shadow: 0 0 16px rgba(255,172,0,0.9), 0 0 24px rgba(255,172,0,0.4); }
}

@media (max-width: 768px) { 
  .nav { padding: 0 1.5rem; }
  .nav-links { display: none; } 
  .nav-mobile-toggle { display: block; } 
}

/* ── Layout ──────────────────────────────────────────────────── */
.main { flex: 1; width: 100%; max-width: 1080px; margin: 0 auto; padding: 110px 2rem 60px; }
.main.main-wide { max-width: 1400px; }

/* ── Glassmorphic Cards & Panels ─────────────────────────────── */
.panel {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-top: 3px solid var(--jdm-pink);
  border-radius: 0px;
  padding: 28px;
  position: relative;
  backdrop-filter: blur(25px);
  -webkit-backdrop-filter: blur(25px);
  box-shadow: var(--shadow);
}
.panel::after {
  content: '';
  position: absolute;
  bottom: 0; right: 0;
  width: 10px; height: 10px;
  background: linear-gradient(135deg, transparent 50%, var(--jdm-cyan) 50%);
}
.panel-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 2px solid var(--jdm-pink);
  padding-bottom: 14px;
  margin-bottom: 24px;
}
.panel-title {
  font-family: var(--display);
  font-size: 20px;
  font-weight: 800;
  font-style: italic;
  text-transform: uppercase;
  color: #fff;
  letter-spacing: 0.05em;
}
.panel-tag {
  font-family: var(--display);
  font-size: 11px;
  font-weight: 800;
  font-style: italic;
  color: #050308;
  background: var(--jdm-cyan);
  border: none;
  padding: 3px 12px;
  border-radius: 0px;
  transform: skewX(-12deg);
}

/* ── Split Hero Layout ────────────────────────────────────────── */
.hero-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 32px;
  padding: 70px 0;
}
@media (max-width: 860px) {
  .hero-grid { grid-template-columns: 1fr; padding: 40px 0; }
}

.hero-eyebrow {
  font-family: var(--display);
  font-size: 13px;
  font-weight: 800;
  font-style: italic;
  color: var(--jdm-amber);
  letter-spacing: 0.1em;
  margin-bottom: 12px;
}

.brand-title {
  font-family: var(--display);
  font-size: clamp(48px, 6.5vw, 68px);
  font-weight: 800;
  font-style: italic;
  line-height: 0.95;
  text-transform: uppercase;
  margin-bottom: 24px;
  letter-spacing: -0.5px;
  text-shadow: 3px 3px 0px rgba(255, 42, 109, 0.4), -1px -1px 0px rgba(0, 240, 255, 0.4);
}
.brand-title-teal { color: var(--teal); }
.brand-title-crimson { color: var(--crimson); }
.brand-desc {
  font-size: 15px;
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 36px;
}
.brand-cta {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

/* Spotlight Card Grid */
.telemetry-spotlight {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--border);
  border-top: 3px solid var(--jdm-pink);
}
.tel-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 10px;
  border-bottom: 1px dashed rgba(255, 255, 255, 0.1);
  font-size: 13px;
  background: rgba(0, 0, 0, 0.15);
  margin-bottom: 6px;
}
.tel-row:last-child { border-bottom: none; }
.tel-label {
  color: var(--text-muted);
  font-weight: 500;
  font-family: var(--sans);
}
.tel-row td, .tel-value {
  font-weight: 600;
  color: #fff;
}
.tel-value.highlight-teal { color: var(--teal); }
.tel-value.highlight-crimson { color: var(--crimson); }

.spotlight-chart {
  margin-top: 20px;
  height: 90px;
  border: 1px solid var(--jdm-cyan);
  background: rgba(0, 0, 0, 0.4) radial-gradient(var(--border) 1px, transparent 0);
  background-size: 10px 10px;
  position: relative;
  overflow: hidden;
  border-radius: 0px;
}
.spotlight-chart::before {
  content: 'ELEVATION PROFILE';
  position: absolute;
  top: 8px; left: 10px;
  font-family: var(--display);
  font-size: 10px;
  font-weight: 800;
  font-style: italic;
  color: var(--jdm-cyan);
  letter-spacing: 0.05em;
}
.chart-svg {
  width: 100%; height: 100%;
  position: absolute; bottom: 0;
}
.chart-path {
  fill: none;
  stroke: url(#chart-grad);
  stroke-width: 2.5;
  stroke-linecap: round;
  filter: drop-shadow(0 0 6px rgba(var(--teal-rgb), 0.5));
}

/* ── Buttons (Modern Esports Buttons) ─────────────────────── */
.btn { 
  font-family: var(--display); 
  font-size: 13.5px; 
  font-weight: 800;
  font-style: italic;
  text-transform: uppercase;
  padding: 10px 24px; 
  border-radius: 0px; 
  border: 1px solid transparent; 
  cursor: pointer; 
  transition: all .2s ease; 
  display: inline-flex; 
  align-items: center; 
  gap: 8px;
  justify-content: center;
}
.btn > * {
}
.btn-primary { 
  background: var(--jdm-cyan);
  color: #050308; 
  border: 1px solid var(--jdm-cyan);
  box-shadow: 0 0 10px rgba(0, 240, 255, 0.15);
  font-weight: 900;
}
.btn-primary:hover { 
  background: #fff;
  border-color: #fff;
  color: #050308;
  box-shadow: 0 0 15px rgba(255, 255, 255, 0.35);
}
.btn-secondary { 
  background: var(--jdm-pink);
  color: #fff; 
  border: 1px solid var(--jdm-pink);
  box-shadow: 0 0 10px rgba(255, 0, 92, 0.15);
  font-weight: 900;
}
.btn-secondary:hover { 
  background: #fff;
  color: #050308;
  border-color: #fff;
  box-shadow: 0 0 15px rgba(255, 255, 255, 0.35);
}
.btn-outline { 
  background: rgba(255, 255, 255, 0.02); 
  color: var(--text); 
  border: 1px solid var(--border);
}
.btn-outline:hover { 
  color: var(--jdm-cyan); 
  border-color: var(--jdm-cyan); 
  background: rgba(0, 240, 255, 0.05); 
  box-shadow: 0 0 10px rgba(0, 240, 255, 0.2);
}
.btn-outline.disabled { opacity: .2; pointer-events: none; }

/* ── Section Title ──────────────────────────────────────────── */
.section-title {
  font-family: var(--display);
  font-size: 28px;
  font-weight: 800;
  font-style: italic;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 28px;
  color: #fff;
  display: flex;
  align-items: center;
  gap: 12px;
}
.section-title::before {
  content: '///';
  color: var(--jdm-pink);
  margin-right: 4px;
  font-style: italic;
}
.section-title::after {
  content: '';
  flex: 1;
  height: 2px;
  background: linear-gradient(90deg, var(--jdm-pink), transparent);
}

/* ── Sleek Discord Card ─────────────────────────────────────── */
.discord-box {
  background: rgba(12, 7, 24, 0.6);
  border: 2px solid #5865F2;
  border-radius: 0px;
  padding: 48px;
  text-align: center;
  max-width: 800px;
  margin: 0 auto 80px;
  position: relative;
  box-shadow: 0 0 25px rgba(88, 101, 242, 0.15);
  overflow: hidden;
}
.discord-box::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 4px;
  background: #5865F2;
}
.discord-icon {
  width: 48px;
  height: 48px;
  margin: 0 auto 18px;
  color: #5865F2;
  filter: drop-shadow(0 0 10px rgba(88, 101, 242, 0.3));
}
.discord-box h2 {
  font-family: var(--display);
  font-size: 32px;
  font-weight: 800;
  font-style: italic;
  text-transform: uppercase;
  margin-bottom: 12px;
  color: #fff;
}
.discord-box h2 span { color: var(--jdm-pink); }
.discord-box p {
  color: var(--text-muted);
  font-size: 15px;
  max-width: 580px;
  margin: 0 auto 28px;
  line-height: 1.65;
}

/* ── Course Grid Directory ───────────────────────────────────── */
.tracks-preview { margin-bottom: 60px; }
.course-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: 20px;
}
.course-panel-card {
  background: var(--bg-card);
  backdrop-filter: blur(25px);
  -webkit-backdrop-filter: blur(25px);
  border: 1px solid var(--border);
  border-radius: 0px;
  padding: 22px;
  transition: all 0.2s ease;
  position: relative;
  cursor: pointer;
}
.course-panel-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; width: 0; height: 3px;
  background: var(--jdm-pink);
  transition: width 0.2s ease;
}
.course-panel-card:hover {
  border-color: var(--jdm-pink);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.5);
  transform: translateY(-2px);
}
.course-panel-card:hover::before {
  width: 100%;
}
.course-card-hdr {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 14px;
}
.course-card-title {
  font-family: var(--display);
  font-size: 18px;
  font-weight: 800;
  font-style: italic;
  text-transform: uppercase;
  color: #fff;
}
.course-card-badge {
  font-family: var(--display);
  font-size: 10px;
  font-weight: 800;
  font-style: italic;
  color: #fff;
  background: var(--jdm-pink);
  border: none;
  padding: 2px 8px;
  border-radius: 0px;
  transform: skewX(-12deg);
}
.course-card-details {
  font-size: 13px;
  color: var(--text-muted);
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.course-stat-row {
  display: flex;
  justify-content: space-between;
}
.course-stat-label {
  color: var(--text-muted);
}
.course-stat-val {
  color: #fff;
  font-weight: 600;
}

/* ── Page Header ─────────────────────────────────────────────── */
.page-header { padding: 50px 0 24px; border-bottom: 2px solid var(--border); margin-bottom: 35px; }
.page-header h1 { 
  font-family: var(--display); 
  font-size: 42px; 
  font-weight: 800; 
  font-style: italic;
  text-transform: uppercase;
  color: #fff;
  text-shadow: 2px 2px 0px rgba(255, 42, 109, 0.3);
}
.page-sub { font-size: 13px; color: var(--text-muted); margin-top: 4px; }

/* ── Filters (Clean modern selectors) ────────────────────────── */
.filters-wrap { 
  margin-bottom: 30px; 
  padding: 20px 24px; 
  background: var(--bg-card); 
  border: 2px solid var(--border); 
  border-top: 3px solid var(--jdm-cyan);
  border-radius: 0px; 
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.4);
}
#filter-form { 
  display: grid; 
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); 
  gap: 16px; 
}
.filter-group { display: flex; flex-direction: column; gap: 6px; }
.filter-group label { 
  font-family: var(--display);
  font-size: 12px; 
  font-weight: 800;
  font-style: italic;
  text-transform: uppercase;
  color: var(--jdm-cyan); 
  letter-spacing: 0.05em;
}
.filter-group select { 
  font-family: var(--sans); 
  font-size: 13px; 
  font-weight: 500;
  background: rgba(0, 0, 0, 0.6); 
  border: 1px solid var(--border); 
  border-radius: 0px; 
  color: #fff; 
  padding: 10px 14px; 
  outline: none; 
  transition: all .2s; 
  cursor: pointer; 
  appearance: none;
  background-image: url("data:image/svg+xml;utf8,<svg fill='%2300f0ff' height='18' viewBox='0 0 24 24' width='18' xmlns='http://www.w3.org/2000/svg'><path d='M7 10l5 5 5-5z'/></svg>");
  background-repeat: no-repeat;
  background-position: right 10px center;
  padding-right: 32px;
}
.filter-group select:hover { border-color: var(--jdm-cyan); }
.filter-group select:focus { border-color: var(--jdm-cyan); box-shadow: 0 0 8px rgba(0, 240, 255, 0.2); }

/* ── Table Records (Clean Glass Table) ───────────────────────── */
.table-wrap { 
  overflow-x: auto; 
  border: 2px solid var(--border); 
  border-top: 3px solid var(--jdm-pink);
  border-radius: 0px; 
  margin-bottom: 50px; 
  background: var(--bg-card);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.5);
}
.lb-table { width: 100%; border-collapse: collapse; font-size: 14px; text-align: left; }
.lb-table th { 
  font-family: var(--display);
  font-size: 14px; 
  font-weight: 800;
  font-style: italic;
  text-transform: uppercase; 
  color: var(--text-muted); 
  background: rgba(5, 3, 8, 0.9); 
  padding: 16px 20px; 
  border-bottom: 2px solid var(--border); 
  white-space: nowrap; 
}
.lb-table td { padding: 16px 20px; border-bottom: 1px solid rgba(255, 255, 255, 0.04); vertical-align: middle; }
.lb-table tr:last-child td { border-bottom: none; }
.lb-table tbody tr { background: transparent; transition: background .15s; }
.lb-table tbody tr:hover { background: rgba(255, 42, 109, 0.03); }

/* Highlights for top 3 (Subtle left borders) */
.row-gold { border-left: 4px solid var(--gold); }
.row-silver { border-left: 4px solid var(--silver); }
.row-bronze { border-left: 4px solid var(--bronze); }

.th-rank, .td-rank { width: 68px; text-align: center; }
.medal { 
  font-family: var(--display);
  font-size: 12px; 
  font-weight: 800; 
  font-style: italic;
  text-transform: uppercase;
  width: auto; height: auto; 
  padding: 3px 10px;
  border-radius: 0px; 
  transform: skewX(-12deg);
  display: inline-flex; 
  align-items: center; 
  justify-content: center; 
  border: 1px solid transparent;
}
.medal.gold   { background: var(--gold); color: #040506; border-color: var(--gold); box-shadow: 2px 2px 0px rgba(255, 255, 255, 0.2); }
.medal.silver { background: var(--silver); color: #040506; border-color: var(--silver); box-shadow: 2px 2px 0px rgba(255, 255, 255, 0.2); }
.medal.bronze { background: var(--bronze); color: #040506; border-color: var(--bronze); box-shadow: 2px 2px 0px rgba(255, 255, 255, 0.2); }
.rank-n { font-family: var(--mono); font-size: 13px; color: var(--text-muted); font-weight: 500; }

/* Custom Image Medals */
.medal-img {
  height: 28px;
  width: auto;
  vertical-align: middle;
  transition: transform 0.2s ease, filter 0.2s ease;
}
.medal-img:hover {
  transform: scale(1.15) rotate(4deg);
}
.medal-img.mini {
  height: 18px;
}
.medal-img-gold { filter: drop-shadow(0 0 5px rgba(255, 172, 0, 0.7)); }
.medal-img-silver { filter: drop-shadow(0 0 5px rgba(0, 240, 255, 0.65)); }
.medal-img-bronze { filter: drop-shadow(0 0 5px rgba(255, 42, 109, 0.6)); }

/* Podium Row Effects (Subtle Gradients and Left Accents) */
.rank-row-gold, .row-gold {
  position: relative;
  background: linear-gradient(90deg, rgba(255, 172, 0, 0.08) 0%, rgba(255, 172, 0, 0.02) 50%, rgba(0, 0, 0, 0) 100%) !important;
  transition: all 0.25s cubic-bezier(0.25, 0.8, 0.25, 1);
}
.rank-row-gold:hover, .row-gold:hover {
  transform: translateX(4px);
  background: linear-gradient(90deg, rgba(255, 172, 0, 0.15) 0%, rgba(255, 172, 0, 0.05) 50%, rgba(0, 0, 0, 0) 100%) !important;
  box-shadow: 0 4px 20px rgba(255, 172, 0, 0.08);
}
.rank-row-gold td, .row-gold td {
  border-bottom: 1px solid rgba(255, 172, 0, 0.15) !important;
  border-top: 1px solid rgba(255, 172, 0, 0.08) !important;
}
.rank-row-gold td:first-child, .row-gold td:first-child {
  border-left: 4px solid var(--jdm-amber) !important;
}

.rank-row-silver, .row-silver {
  position: relative;
  background: linear-gradient(90deg, rgba(226, 232, 240, 0.08) 0%, rgba(226, 232, 240, 0.02) 50%, rgba(0, 0, 0, 0) 100%) !important;
  transition: all 0.25s cubic-bezier(0.25, 0.8, 0.25, 1);
}
.rank-row-silver:hover, .row-silver:hover {
  transform: translateX(4px);
  background: linear-gradient(90deg, rgba(226, 232, 240, 0.15) 0%, rgba(226, 232, 240, 0.05) 50%, rgba(0, 0, 0, 0) 100%) !important;
  box-shadow: 0 4px 20px rgba(226, 232, 240, 0.08);
}
.rank-row-silver td, .row-silver td {
  border-bottom: 1px solid rgba(226, 232, 240, 0.15) !important;
  border-top: 1px solid rgba(226, 232, 240, 0.08) !important;
}
.rank-row-silver td:first-child, .row-silver td:first-child {
  border-left: 4px solid var(--silver) !important;
}

.rank-row-bronze, .row-bronze {
  position: relative;
  background: linear-gradient(90deg, rgba(205, 127, 50, 0.08) 0%, rgba(205, 127, 50, 0.02) 50%, rgba(0, 0, 0, 0) 100%) !important;
  transition: all 0.25s cubic-bezier(0.25, 0.8, 0.25, 1);
}
.rank-row-bronze:hover, .row-bronze:hover {
  transform: translateX(4px);
  background: linear-gradient(90deg, rgba(205, 127, 50, 0.15) 0%, rgba(205, 127, 50, 0.05) 50%, rgba(0, 0, 0, 0) 100%) !important;
  box-shadow: 0 4px 20px rgba(205, 127, 50, 0.08);
}
.rank-row-bronze td, .row-bronze td {
  border-bottom: 1px solid rgba(205, 127, 50, 0.15) !important;
  border-top: 1px solid rgba(205, 127, 50, 0.08) !important;
}
.rank-row-bronze td:first-child, .row-bronze td:first-child {
  border-left: 4px solid var(--bronze) !important;
}

/* Slanted sweep reflection effect */
.rank-row-gold::after, .row-gold::after,
.rank-row-silver::after, .row-silver::after,
.rank-row-bronze::after, .row-bronze::after {
  content: '';
  position: absolute;
  top: 0;
  left: -150%;
  width: 60px;
  height: 100%;
  transform: skewX(-25deg);
  pointer-events: none;
  z-index: 5;
}

.rank-row-gold::after, .row-gold::after {
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(255, 215, 0, 0.03) 20%,
    rgba(255, 215, 0, 0.18) 50%,
    rgba(255, 215, 0, 0.03) 80%,
    transparent 100%
  );
  animation: sweep-gold 8s infinite ease-in-out;
}

.rank-row-silver::after, .row-silver::after {
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(0, 240, 255, 0.03) 20%,
    rgba(0, 240, 255, 0.18) 50%,
    rgba(0, 240, 255, 0.03) 80%,
    transparent 100%
  );
  animation: sweep-silver 8s infinite ease-in-out;
  animation-delay: 2.5s;
}

.rank-row-bronze::after, .row-bronze::after {
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(205, 127, 50, 0.03) 20%,
    rgba(205, 127, 50, 0.22) 50%,
    rgba(205, 127, 50, 0.03) 80%,
    transparent 100%
  );
  animation: sweep-bronze 8s infinite ease-in-out;
  animation-delay: 5s;
}

@keyframes sweep-gold {
  0% { left: -150%; }
  15% { left: 150%; }
  100% { left: 150%; }
}

@keyframes sweep-silver {
  0% { left: -150%; }
  15% { left: 150%; }
  100% { left: 150%; }
}

@keyframes sweep-bronze {
  0% { left: -150%; }
  15% { left: 150%; }
  100% { left: 150%; }
}

.td-name { font-weight: 600; color: #fff; cursor: pointer; }
.car-tag { 
  font-family: var(--display); 
  font-size: 12px; 
  font-weight: 800;
  font-style: italic;
  text-transform: uppercase;
  color: var(--jdm-cyan); 
  background: rgba(0, 240, 255, 0.05); 
  border: 1px solid rgba(0, 240, 255, 0.2); 
  border-radius: 0px; 
  padding: 4px 10px; 
  white-space: nowrap; 
  display: inline-flex;
  align-items: center;
}

.th-r, .td-r { text-align: right; }
.td-time-highlight {
  color: var(--jdm-cyan);
  font-family: var(--mono);
  font-weight: 700;
  font-size: 15px;
  text-shadow: 0 0 5px rgba(0, 240, 255, 0.2);
}
.td-gap { color: var(--jdm-amber); font-family: var(--mono); font-size: 13px; }
.td-cond { font-size: 12px; }

.cond-tag { 
  display: inline-block; 
  background: rgba(255, 255, 255, 0.03); 
  border: 1px solid var(--border); 
  border-radius: 0px; 
  padding: 2px 8px; 
  margin-right: 4px; 
  color: var(--text-muted); 
  font-size: 11px; 
  font-family: var(--display);
  font-weight: 800;
  font-style: italic;
  text-transform: uppercase;
}
.empty-state { padding: 60px 0; text-align: center; color: var(--text-muted); font-family: var(--mono); font-size: 13px; }

/* ── Player Search Form ──────────────────────────────────────── */
.search-form { display: flex; gap: 10px; margin-bottom: 40px; flex-wrap: wrap; }
.search-input { 
  font-family: var(--sans); 
  font-size: 14px; 
  background: rgba(0, 0, 0, 0.6); 
  border: 2px solid var(--border); 
  border-radius: 0px; 
  color: #fff; 
  padding: 12px 20px; 
  flex: 1; 
  min-width: 250px; 
  outline: none; 
  transition: all .2s; 
}
.search-input:focus { border-color: var(--jdm-pink); box-shadow: 0 0 10px rgba(255, 42, 109, 0.25); }
.search-input::placeholder { color: var(--text-muted); }

.player-card { 
  display: flex; 
  align-items: center; 
  gap: 20px; 
  background: var(--bg-card); 
  border: 2px solid var(--border); 
  border-left: 4px solid var(--jdm-cyan);
  border-radius: 0px; 
  padding: 24px 30px; 
  margin-bottom: 30px; 
}
.player-avatar { 
  width: 48px; 
  height: 48px; 
  border-radius: 0px; 
  background: rgba(0, 240, 255, 0.08); 
  border: 2px solid var(--jdm-cyan); 
  color: var(--jdm-cyan); 
  display: flex; 
  align-items: center; 
  justify-content: center; 
  font-family: var(--display);
  font-size: 20px; 
  font-weight: 800;
  font-style: italic;
}
.player-name { font-family: var(--display); font-size: 28px; font-weight: 800; font-style: italic; text-transform: uppercase; color: #fff; }
.player-meta { font-size: 13px; color: var(--text-muted); }
.inline-error { background: rgba(192, 39, 74, 0.1); border: 2px solid rgba(192, 39, 74, 0.3); color: #e03060; padding: 12px 20px; border-radius: 0px; margin-bottom: 24px; }
.inline-success { background: rgba(137, 195, 192, 0.1); border: 2px solid rgba(137, 195, 192, 0.3); color: var(--jdm-cyan); padding: 12px 20px; border-radius: 0px; margin-bottom: 24px; }

/* ── Download Page & Releases ────────────────────────────────── */
.install-box { 
  background: var(--bg-card); 
  border: 2px solid var(--border); 
  border-left: 4px solid var(--jdm-cyan); 
  border-radius: 0px; 
  padding: 24px 30px; 
  margin-bottom: 40px; 
}
.install-title { 
  font-family: var(--display);
  font-size: 14px; 
  font-weight: 800;
  font-style: italic;
  letter-spacing: 1px; 
  text-transform: uppercase; 
  color: var(--jdm-cyan); 
  margin-bottom: 12px; 
}
.install-list { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.install-list li { font-size: 14px; color: var(--text-muted); }
.req-name { color: #fff; font-weight: 600; margin-right: 6px; }

.releases { display: flex; flex-direction: column; gap: 20px; margin-bottom: 60px; }
.release-card { 
  background: var(--bg-card); 
  border: 2px solid var(--border); 
  border-radius: 0px; 
  padding: 30px; 
  transition: all .2s ease; 
}
.release-card:hover { border-color: var(--jdm-pink); }
.release-latest { border-left: 4px solid var(--jdm-pink); }
.release-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid var(--border);
  padding-bottom: 14px;
  margin-bottom: 18px;
  flex-wrap: wrap;
  gap: 8px;
}
.release-left { display: flex; align-items: center; gap: 12px; }
.release-ver { 
  font-family: var(--display);
  font-size: 24px; 
  font-weight: 800; 
  font-style: italic;
  color: #fff; 
  text-transform: uppercase;
}
.release-badge { 
  font-family: var(--display); 
  font-size: 11px; 
  font-weight: 800;
  font-style: italic;
  text-transform: uppercase; 
  color: #050308; 
  background: var(--jdm-pink); 
  border: none; 
  border-radius: 0px; 
  padding: 2px 10px; 
  transform: skewX(-12deg);
  margin-left: 10px;
}
.release-date { font-size: 12px; color: var(--text-muted); font-family: var(--mono); }
.release-notes { list-style: none; margin-bottom: 24px; display: flex; flex-direction: column; gap: 6px; }
.release-notes li { font-size: 14px; color: var(--text-muted); padding-left: 18px; position: relative; }
.release-notes li::before { content: '•'; position: absolute; left: 0; color: var(--jdm-pink); }

.footer { 
  position: relative; z-index: 1; 
  display: flex; justify-content: space-between; align-items: center; 
  padding: 24px 4rem; 
  border-top: 2px solid var(--jdm-pink); 
  background: linear-gradient(180deg, rgba(24, 7, 13, 0.96) 0%, rgba(12, 4, 7, 0.98) 100%); 
  box-shadow: 0 -10px 30px rgba(169, 10, 73, 0.08);
  margin-top: auto; 
  flex-wrap: wrap; gap: 16px; 
}
.footer-left { display: flex; align-items: center; gap: 12px; font-size: 13.5px; color: var(--text-muted); }

.footer-right { 
  display: flex; 
  align-items: center; 
  gap: 16px; 
  font-family: var(--mono); 
  font-size: 13px; 
  color: var(--text-muted); 
}
.footer-divider {
  color: var(--text-dark);
}
.footer-icon-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--text-muted);
  transition: color 0.2s ease;
}
.footer-icon-link:hover {
  color: #fff;
}
.footer-icon {
  width: 16px;
  height: 16px;
  fill: currentColor;
}
.footer-text-link {
  color: var(--jdm-cyan);
  font-weight: 600;
  transition: color 0.2s ease, text-shadow 0.2s ease;
}
.footer-text-link:hover {
  color: #fff;
  text-shadow: 0 0 8px rgba(137, 195, 192, 0.5);
}
.footer-admin-link {
  color: var(--text-dark);
  font-size: 12px;
  opacity: 0.6;
  transition: opacity 0.2s ease, color 0.2s ease;
}
.footer-admin-link:hover {
  opacity: 1;
  color: var(--jdm-pink);
}

/* ── Error Page ──────────────────────────────────────────────── */
.error-page { padding: 90px 0; text-align: center; }
.error-code { font-family: var(--display); font-size: 120px; font-weight: 800; font-style: italic; color: var(--border); line-height: 1; }
.error-msg { font-size: 15px; color: var(--crimson); margin: 18px 0 32px; }

/* ── Power Ranking Standings & Details ───────────────────────── */
.driver-row { cursor: pointer; transition: background 0.2s ease; }
.driver-row:hover { background: rgba(255, 42, 109, 0.03) !important; }
.details-row { background: rgba(5, 3, 8, 0.95) !important; }
.details-container { padding: 12px 10px; }
.details-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 12px;
  margin-top: 10px;
}
.details-card {
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-left: 3px solid var(--jdm-pink);
  border-radius: 0px;
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.3);
}
.details-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px dashed rgba(255, 255, 255, 0.1);
  padding-bottom: 6px;
}
.details-track-name { 
  font-family: var(--display);
  font-size: 14px; 
  font-weight: 800; 
  font-style: italic;
  text-transform: uppercase;
  color: #fff;
}
.details-points { font-family: var(--mono); font-size: 12px; color: var(--jdm-cyan); font-weight: 700; }
.details-card-body { display: flex; flex-direction: column; gap: 4px; }
.details-stat { display: flex; justify-content: space-between; align-items: center; font-size: 12px; }
.details-stat .label { color: var(--text-muted); }
.details-stat .value { color: #fff; font-weight: 500; }
.medal.mini { width: auto; height: auto; padding: 1px 6px; font-size: 10px; }
.car-tag.mini { padding: 2px 6px; font-size: 10px; }

/* ── Scrollbar ───────────────────────────────────────────────── */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: var(--bg-black); }
::-webkit-scrollbar-thumb { background: var(--jdm-pink); border-radius: 0px; }
::-webkit-scrollbar-thumb:hover { background: var(--jdm-cyan); }

/* ── VHS Scanlines Overlay ─────────────────────────────────────── */
.vhs-scanlines {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    rgba(18, 16, 16, 0) 50%, 
    rgba(0, 0, 0, 0.12) 50%
  );
  background-size: 100% 4px;
  z-index: 9999;
  pointer-events: none;
}
.vhs-scanlines::after {
  content: '';
  position: absolute;
  left: 0; top: 0;
  width: 100%; height: 120px;
  background: linear-gradient(
    to bottom,
    rgba(255, 42, 109, 0) 0%,
    rgba(255, 42, 109, 0.04) 50%,
    rgba(255, 42, 109, 0) 100%
  );
  animation: vhs-scanline-roll 12s infinite linear;
  pointer-events: none;
}

@keyframes vhs-scanline-roll {
  0% { transform: translateY(-120px); }
  100% { transform: translateY(100vh); }
}

.vhs-flicker {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  background: transparent;
  z-index: 9998;
  pointer-events: none;
  animation: vhs-flicker 0.2s infinite;
  opacity: 0.015;
}

@keyframes vhs-flicker {
  0% { background-color: rgba(255, 255, 255, 0.05); }
  50% { background-color: rgba(0, 0, 0, 0.05); }
  100% { background-color: rgba(255, 255, 255, 0.02); }
}

/* ── Power Ranking scoring boxes & elements ──────────────────── */
.scoring-info {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-left: 4px solid var(--jdm-pink);
  border-radius: 0px;
  padding: 18px 22px;
  margin-bottom: 24px;
  font-size: 13.5px;
  color: var(--text-muted);
  line-height: 1.6;
}
.scoring-info-title {
  color: var(--jdm-cyan);
  font-family: var(--display);
  font-size: 18px;
  font-weight: 800;
  font-style: italic;
  letter-spacing: 0.05em;
  display: block;
  margin-bottom: 8px;
  text-transform: uppercase;
}
.scoring-info-divider {
  display: block;
  margin-top: 8px;
  border-top: 1px dashed rgba(255, 255, 255, 0.08);
  padding-top: 8px;
}
.standings-search-wrap {
  position: relative;
  margin-bottom: 24px;
}
.standings-search-icon {
  position: absolute;
  left: 18px;
  top: 50%;
  transform: translateY(-50%);
  width: 16px;
  height: 16px;
  color: var(--text-muted);
  pointer-events: none;
}
.standings-search-input {
  padding-left: 48px !important;
}
.driver-name-container {
  display: flex;
  flex-direction: column;
}
.driver-name-text {
  font-family: var(--sans);
  font-weight: 700;
  color: #fff;
  font-size: 15px;
}
.driver-steam-id {
  font-family: var(--mono);
  font-size: 11px;
  color: rgba(255, 255, 255, 0.35);
  margin-top: 2px;
}
.driver-points {
  font-size: 16px;
  font-weight: 800;
  color: var(--jdm-cyan);
}
.driver-stat-center {
  text-align: center;
}
.driver-medals-flex {
  display: flex;
  gap: 6px;
  justify-content: center;
  align-items: center;
}
.details-row-td {
  padding: 20px 24px !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}
.details-title {
  margin: 0 0 14px 0;
  font-family: var(--display);
  font-size: 20px;
  font-weight: 800;
  font-style: italic;
  color: var(--jdm-cyan);
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

/* ── Premium Retro Hero & JDM Aesthetics ─────────────────────── */
.hero-breakout {
  width: 100vw;
  position: relative;
  left: 50%;
  right: 50%;
  margin-left: -50vw;
  margin-right: -50vw;
  overflow: hidden;
  padding: 110px 0;
  border-top: 3px double var(--jdm-pink);
  border-bottom: 3px double var(--jdm-pink);
  box-shadow: 0 0 45px rgba(255, 42, 109, 0.15);
  background: rgba(5, 3, 8, 0.6);
  margin-bottom: 50px;
}
.hero-content-wrap {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 2rem;
  position: relative;
}
.premium-retro-hero {
  position: relative;
  z-index: 10;
  max-width: 720px;
}
.hero-video-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -1;
  opacity: 0.25;
  pointer-events: none;
}
.highlight-amber {
  color: var(--jdm-amber);
  font-weight: bold;
}

/* ── Touge Hub Clean Telemetry CSS Styles ─────────────────────── */
.telemetry-widescreen-card {
  display: grid;
  grid-template-columns: 1.8fr 1.2fr;
  gap: 32px;
  border-top: 3px solid var(--jdm-cyan);
  padding: 30px;
}

@media (max-width: 860px) {
  .telemetry-widescreen-card {
    grid-template-columns: 1fr;
    gap: 24px;
    padding: 20px;
  }
}

.telemetry-graph-col {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-width: 0;
}

.chart-wrapper {
  height: 240px;
  position: relative;
  width: 100%;
}

.telemetry-stats-col {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  border-left: 1px solid var(--border);
  padding-left: 32px;
}

@media (max-width: 860px) {
  .telemetry-stats-col {
    border-left: none;
    padding-left: 0;
    border-top: 1px dashed var(--border);
    padding-top: 24px;
  }
}

/* Diagnostics Table */
.clean-stats-table {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.stat-table-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid rgba(255, 255, 255, 0.03);
  padding-bottom: 8px;
  font-size: 13px;
}

.stat-table-row:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.stat-table-label {
  font-family: var(--sans);
  color: var(--text-muted);
  font-weight: 500;
}

.stat-table-val {
  font-family: var(--mono);
  font-weight: bold;
  color: #fff;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.stat-table-val.text-teal {
  color: var(--jdm-cyan);
}

.stat-table-val.text-crimson {
  color: var(--jdm-pink);
}

.clean-pulse-dot {
  display: inline-block;
  width: 7px;
  height: 7px;
  background-color: var(--jdm-cyan);
  border-radius: 50%;
  box-shadow: 0 0 6px var(--jdm-cyan);
  animation: clean-dot-pulse 1.8s infinite;
}

@keyframes clean-dot-pulse {
  0% { transform: scale(0.9); opacity: 0.6; }
  50% { transform: scale(1.1); opacity: 1; box-shadow: 0 0 8px var(--jdm-cyan); }
  100% { transform: scale(0.9); opacity: 0.6; }
}

/* Horizontal Records Grid */
.records-grid-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
}

.record-grid-card {
  background: var(--bg-card);
  backdrop-filter: blur(25px);
  -webkit-backdrop-filter: blur(25px);
  border: 1px solid var(--border);
  border-top: 3px solid var(--jdm-pink);
  border-radius: 0px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  position: relative;
  transition: all 0.2s ease-in-out;
}

.record-grid-card::after {
  content: '';
  position: absolute;
  bottom: 0; right: 0;
  width: 8px; height: 8px;
  background: linear-gradient(135deg, transparent 50%, var(--jdm-cyan) 50%);
}

.record-grid-card:hover {
  border-color: var(--jdm-pink);
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}

.card-rank-badge {
  font-family: var(--display);
  font-size: 10px;
  font-style: italic;
  font-weight: 800;
  color: #050308;
  background: var(--jdm-amber);
  padding: 2px 8px;
  display: inline-block;
  align-self: flex-start;
  transform: skewX(-12deg);
}

.card-driver-name {
  font-family: var(--display);
  font-size: 16px;
  font-weight: 800;
  font-style: italic;
  color: #fff;
  text-transform: uppercase;
}

.card-car-badge {
  font-family: var(--display);
  font-style: italic;
  font-weight: 900;
  font-size: 9px;
  color: #fff;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.04);
  padding: 2px 8px;
  align-self: flex-start;
  transform: skewX(-12deg);
}

.card-track-info {
  font-size: 12px;
  color: var(--text-muted);
}

.card-timing-val {
  font-family: var(--mono);
  font-size: 18px;
  font-weight: bold;
  color: var(--jdm-cyan);
  margin-top: 4px;
}

.card-gap-val {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--jdm-pink);
  font-weight: bold;
}

/* Footer Spotlight Modules Split */
.hub-footer-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-bottom: 60px;
}

@media (max-width: 768px) {
  .hub-footer-split {
    grid-template-columns: 1fr;
    gap: 20px;
  }
}

.footer-spotlight-card {
  padding: 30px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

/* ── Upcoming Battles Widget Floating Box ───────────────────── */
.upcoming-battles-widget {
  position: absolute;
  top: calc(var(--nav-h) + 24px);
  left: 40px;
  width: 280px;
  background: var(--bg-card);
  backdrop-filter: blur(25px);
  -webkit-backdrop-filter: blur(25px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-left: 3px solid var(--jdm-cyan);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  padding: 16px;
  z-index: 90;
  text-align: left;
  transition: all 0.3s ease;
}
.upcoming-battles-widget:hover {
  border-color: rgba(255, 255, 255, 0.15);
  border-left-color: var(--jdm-pink);
  box-shadow: 0 12px 36px rgba(169, 10, 73, 0.18);
  transform: translateY(-2px);
}
.upcoming-battles-widget .widget-title {
  font-family: var(--display);
  font-size: 13px;
  font-weight: 900;
  font-style: italic;
  color: #fff;
  text-transform: uppercase;
  letter-spacing: 1px;
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  padding-bottom: 8px;
}
@keyframes green-dot-pulse {
  0% { transform: scale(0.9); opacity: 0.6; }
  50% { transform: scale(1.1); opacity: 1; box-shadow: 0 0 8px #00ff66; }
  100% { transform: scale(0.9); opacity: 0.6; }
}
.upcoming-battles-widget .pulse-dot {
  width: 6px;
  height: 6px;
  background-color: #00ff66;
  border-radius: 50%;
  box-shadow: 0 0 6px #00ff66;
  animation: green-dot-pulse 1.8s infinite;
}
.upcoming-battles-widget .widget-empty {
  font-size: 11px;
  color: var(--text-muted);
  font-family: var(--mono);
  padding: 4px 0;
}
.upcoming-battles-widget .widget-battle-row {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 8px;
  margin-bottom: 8px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.03);
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s;
}
.upcoming-battles-widget .widget-battle-row:last-child {
  margin-bottom: 0;
}
.upcoming-battles-widget .widget-battle-row:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(0, 240, 255, 0.2);
}
.upcoming-battles-widget .widget-battle-teams {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--display);
  font-size: 13px;
  font-weight: 800;
}
.upcoming-battles-widget .team-tag {
  color: #fff;
  padding: 2px 6px;
  font-size: 11px;
  background: rgba(255, 255, 255, 0.06);
}
.upcoming-battles-widget .team-tag.tag-a {
  border-left: 2px solid var(--jdm-pink);
}
.upcoming-battles-widget .team-tag.tag-b {
  border-left: 2px solid var(--jdm-cyan);
}
.upcoming-battles-widget .vs {
  font-size: 10px;
  color: var(--text-muted);
  font-style: italic;
}
.upcoming-battles-widget .widget-battle-info {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 10px;
}
.upcoming-battles-widget .division-badge {
  color: var(--text-muted);
  text-transform: uppercase;
  font-weight: 700;
}
.upcoming-battles-widget .battle-time {
  color: var(--jdm-amber);
  font-family: var(--mono);
}
.upcoming-battles-widget .battle-time.deadline {
  color: var(--text-muted);
}

@media (max-width: 1024px) {
  .upcoming-battles-widget {
    position: relative !important;
    top: 0 !important;
    left: 0 !important;
    margin: 24px auto 0 !important;
    width: 90% !important;
    max-width: 420px !important;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3) !important;
  }
}

/* ── Scrollable History Feeds ───────────────────────────────── */
.scrollable-feed {
  max-height: 680px;
  overflow-y: auto;
  padding-right: 12px;
}
.scrollable-feed::-webkit-scrollbar {
  width: 4px;
}
.scrollable-feed::-webkit-scrollbar-track {
  background: rgba(0, 0, 0, 0.2);
}
.scrollable-feed::-webkit-scrollbar-thumb {
  background: var(--jdm-pink);
}
.scrollable-feed::-webkit-scrollbar-thumb:hover {
  background: var(--jdm-cyan);
}

/* ── Top 3 Driver Podium Cards ──────────────────────────────── */
.podium-container {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-bottom: 28px;
  align-items: end;
}
@media (max-width: 768px) {
  .podium-container {
    grid-template-columns: 1fr;
    align-items: stretch;
  }
}
.podium-card {
  background: var(--bg-card);
  backdrop-filter: blur(25px);
  -webkit-backdrop-filter: blur(25px);
  border: 1px solid var(--border);
  padding: 20px 14px;
  text-align: center;
  position: relative;
  transition: transform 0.2s ease, border-color 0.2s, box-shadow 0.2s;
  display: flex;
  flex-direction: column;
  align-items: center;
  border-radius: 0px;
}
.podium-card:hover {
  transform: translateY(-3px);
}
.podium-card.first {
  border-top: 3px solid var(--jdm-amber);
  box-shadow: 0 0 25px rgba(255, 172, 0, 0.12);
  background: rgba(30, 20, 5, 0.4);
  min-height: 220px;
  justify-content: center;
}
.podium-card.second {
  border-top: 3px solid var(--jdm-cyan);
  box-shadow: 0 0 15px rgba(137, 195, 192, 0.08);
  background: rgba(5, 20, 25, 0.35);
  min-height: 190px;
}
.podium-card.third {
  border-top: 3px solid var(--bronze);
  box-shadow: 0 0 15px rgba(205, 127, 50, 0.08);
  background: rgba(25, 15, 10, 0.35);
  min-height: 180px;
}
.podium-rank {
  font-family: var(--display);
  font-size: 11px;
  font-weight: 900;
  font-style: italic;
  text-transform: uppercase;
  padding: 2px 8px;
  margin-bottom: 12px;
  transform: skewX(-10deg);
}
.podium-rank.first { background: var(--jdm-amber); color: #000; }
.podium-rank.second { background: var(--jdm-cyan); color: #000; }
.podium-rank.third { background: var(--bronze); color: #fff; }

.podium-avatar {
  width: 58px;
  height: 58px;
  border-radius: 50%;
  overflow: hidden;
  border: 2px solid var(--border);
  margin-bottom: 12px;
  box-shadow: 0 0 10px rgba(0,0,0,0.5);
  background: #222;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.2s;
}
.podium-card:hover .podium-avatar {
  transform: scale(1.06);
}
.podium-card.first .podium-avatar { border-color: var(--jdm-amber); }
.podium-card.second .podium-avatar { border-color: var(--jdm-cyan); }
.podium-card.third .podium-avatar { border-color: var(--bronze); }

.podium-name {
  font-family: var(--sans);
  font-weight: 800;
  color: #fff;
  font-size: 14px;
  white-space: nowrap;
  text-overflow: ellipsis;
  max-width: 100%;
  overflow: hidden;
  margin-bottom: 4px;
}
.podium-team {
  font-family: var(--display);
  font-size: 9px;
  font-weight: 900;
  background: var(--jdm-pink);
  color: #fff;
  padding: 1px 5px;
  margin-bottom: 6px;
  transform: skewX(-10deg);
}

/* ── Esports Inspired Match Cards ───────────────────────────── */
.match-card-modern {
  background: var(--bg-card);
  backdrop-filter: blur(25px);
  -webkit-backdrop-filter: blur(25px);
  border: 1px solid var(--border);
  padding: 16px;
  border-radius: 0px;
  transition: border-color 0.2s, box-shadow 0.2s, transform 0.2s;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.match-card-modern:hover {
  border-color: rgba(255, 42, 109, 0.3);
  box-shadow: 0 5px 15px rgba(255, 42, 109, 0.1);
  transform: translateY(-2px);
}
.match-card-modern::before {
  content: '';
  position: absolute;
  top: 0; left: 0; bottom: 0;
  width: 3px;
  background: var(--jdm-pink);
}
.match-card-modern.draw::before {
  background: var(--text-muted);
}

.battle-card-modern {
  background: var(--bg-card);
  backdrop-filter: blur(25px);
  -webkit-backdrop-filter: blur(25px);
  border: 1px solid var(--border);
  padding: 20px;
  border-radius: 0px;
  transition: border-color 0.2s, box-shadow 0.2s, transform 0.2s;
  position: relative;
  overflow: hidden;
}
.battle-card-modern:hover {
  border-color: var(--jdm-cyan);
  box-shadow: 0 5px 20px rgba(0, 240, 255, 0.1);
  transform: translateY(-2px);
}
.battle-card-modern::before {
  content: '';
  position: absolute;
  top: 0; left: 0; bottom: 0;
  width: 3px;
  background: var(--jdm-cyan);
}

.past-battle-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: rgba(12, 5, 15, 0.4);
  border: 1px solid var(--border);
  padding: 14px 20px;
  border-radius: 0px;
  transition: all 0.2s ease;
}
.past-battle-row:hover {
  border-color: var(--jdm-cyan);
  background: rgba(255, 255, 255, 0.02) !important;
}

/* ── Team Battle Redesign Styles ────────────────────────────── */
.battle-stepper {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: rgba(12, 5, 15, 0.45);
  border: 1px solid var(--border);
  padding: 15px 24px;
  margin-bottom: 25px;
  gap: 15px;
  flex-wrap: wrap;
}
.step-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 11px;
  font-family: var(--display);
  font-weight: 800;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  text-transform: uppercase;
}
.step-item.active {
  color: var(--jdm-cyan);
  text-shadow: 0 0 10px rgba(137, 195, 192, 0.45);
}
.step-item.completed {
  color: #fff;
}
.step-divider {
  flex: 1;
  height: 1px;
  background: var(--border);
  min-width: 15px;
}
.step-num {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  border: 1px solid currentColor;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
}

.action-center-panel {
  background: var(--bg-card);
  backdrop-filter: blur(25px);
  -webkit-backdrop-filter: blur(25px);
  border: 1px solid var(--border);
  border-top: 3px solid var(--jdm-cyan);
  padding: 24px;
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-bottom: 25px;
}
.action-center-panel.ban-phase {
  border-top-color: var(--jdm-pink);
}
.action-center-panel.tiebreaker-run {
  border-top-color: var(--jdm-amber);
}
.action-center-title {
  font-family: var(--display);
  font-size: 16px;
  font-weight: 800;
  color: #fff;
  margin: 0;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}
.action-center-desc {
  font-size: 12px;
  color: var(--text-muted);
  margin-top: -15px;
}

.lineup-entry-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
@media (max-width: 768px) {
  .lineup-entry-grid {
    grid-template-columns: 1fr;
  }
}
.team-lineup-box {
  background: rgba(0, 0, 0, 0.25);
  border: 1px solid var(--border);
  padding: 20px;
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 15px;
  transition: all 0.2s ease;
}
.team-lineup-box.active-team {
  border-color: var(--jdm-cyan);
  box-shadow: inset 0 0 10px rgba(137, 195, 192, 0.05);
}
.team-lineup-box.ready {
  border-color: rgba(52, 199, 89, 0.3);
  background: rgba(52, 199, 89, 0.01);
}
.team-lineup-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid rgba(255,255,255,0.03);
  padding-bottom: 8px;
}

/* Map Draft Board */
.map-draft-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
  gap: 12px;
  margin-top: 10px;
}
.map-card {
  position: relative;
  border: 1px solid var(--border);
  background: rgba(0, 0, 0, 0.45);
  padding: 16px 12px;
  text-align: center;
  transition: all 0.25s ease;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  min-height: 95px;
  outline: none;
}
.map-card.draftable {
  cursor: pointer;
}
.map-card.draftable:hover {
  border-color: var(--jdm-pink);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(255, 42, 109, 0.2);
}
.map-card.home-a {
  border-color: var(--jdm-cyan);
  background: rgba(137, 195, 192, 0.08);
  box-shadow: 0 0 10px rgba(137, 195, 192, 0.1);
}
.map-card.home-b {
  border-color: var(--jdm-pink);
  background: rgba(169, 10, 73, 0.08);
  box-shadow: 0 0 10px rgba(169, 10, 73, 0.1);
}
@keyframes strikeSlash {
  0% { transform: scale(0.6); opacity: 0; }
  50% { transform: scale(1.15); opacity: 1; }
  100% { transform: scale(1); opacity: 0.8; }
}
@keyframes banCardShake {
  0% { transform: scale(1); }
  20% { transform: translateX(-3px) rotate(-0.5deg) scale(0.98); }
  40% { transform: translateX(3px) rotate(0.5deg) scale(0.98); }
  60% { transform: translateX(-3px) rotate(-0.5deg) scale(0.98); }
  80% { transform: translateX(3px) rotate(0.5deg) scale(0.98); }
  100% { transform: scale(1); }
}

.map-card.banned {
  border-color: rgba(255, 59, 48, 0.15);
  background: rgba(255, 59, 48, 0.03);
  cursor: not-allowed;
  animation: banCardShake 0.4s ease-in-out;
}
.map-card.banned::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: linear-gradient(135deg, transparent 46%, #ff3b30 49%, #ff3b30 51%, transparent 54%);
  pointer-events: none;
  opacity: 0.65;
  animation: strikeSlash 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
}
.map-card.banned.ban-a {
  border-color: rgba(137, 195, 192, 0.25);
  background: rgba(137, 195, 192, 0.03);
}
.map-card.banned.ban-a::before {
  background: linear-gradient(135deg, transparent 46%, var(--jdm-cyan) 49%, var(--jdm-cyan) 51%, transparent 54%);
}
.map-card.banned.ban-b {
  border-color: rgba(169, 10, 73, 0.25);
  background: rgba(169, 10, 73, 0.03);
}
.map-card.banned.ban-b::before {
  background: linear-gradient(135deg, transparent 46%, var(--jdm-pink) 49%, var(--jdm-pink) 51%, transparent 54%);
}
.map-card.tiebreaker {
  border-color: var(--jdm-amber);
  background: rgba(255, 172, 0, 0.08);
  box-shadow: 0 0 12px rgba(255, 172, 0, 0.2);
}
.map-card-name {
  font-family: var(--display);
  font-size: 14px;
  font-weight: 800;
  color: #fff;
  line-height: 1.25;
}
.map-card-status {
  font-size: 11px;
  font-family: var(--mono);
  color: var(--text-muted);
  margin-top: 6px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  font-weight: bold;
}
.map-card.home-a .map-card-status { color: var(--jdm-cyan); }
.map-card.home-b .map-card-status { color: var(--jdm-pink); }
.map-card.banned .map-card-status { color: #ff3b30; }
.map-card.banned.ban-a .map-card-status { color: var(--jdm-cyan); }
.map-card.banned.ban-b .map-card-status { color: var(--jdm-pink); }
.map-card.tiebreaker .map-card-status { color: var(--jdm-amber); }

/* Coinflip Animation Component */
.coin-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 15px;
  margin: 15px 0;
}
.coin-wrapper {
  perspective: 1000px;
  width: 110px;
  height: 110px;
}
.coin {
  width: 100px;
  height: 100px;
  position: relative;
  transform-style: preserve-3d;
  transition: transform 3s cubic-bezier(0.25, 0.1, 0.25, 1.1);
  margin: 5px;
}
.coin-side {
  position: absolute;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  font-family: var(--display);
  font-weight: 900;
  font-size: 18px;
  backface-visibility: hidden;
  border: 4px solid var(--jdm-amber);
  box-shadow: 0 0 15px rgba(255, 172, 0, 0.35);
}
.coin-front {
  background: radial-gradient(circle at center, #ffdf00 0%, #8b6508 100%);
  color: #fff;
}
.coin-back {
  background: radial-gradient(circle at center, #ffdf00 0%, #8b6508 100%);
  color: #fff;
  transform: rotateY(180deg);
}
.coin.spinning {
  animation: spin-animation 0.35s infinite linear;
}
@keyframes spin-animation {
  0% { transform: rotateY(0deg) rotateX(0deg); }
  100% { transform: rotateY(360deg) rotateX(180deg); }
}

/* Collapsible drawer for administrative panels */
.admin-drawer {
  background: rgba(12, 5, 15, 0.3);
  border: 1px solid var(--border);
  margin-top: 40px;
}
.admin-drawer summary {
  padding: 16px 20px;
  font-family: var(--display);
  font-size: 12px;
  font-weight: 800;
  color: var(--text-muted);
  cursor: pointer;
  user-select: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.admin-drawer summary::-webkit-details-marker {
  display: none;
}
.admin-drawer summary::after {
  content: '▶';
  font-size: 10px;
  transition: transform 0.2s ease;
  color: var(--text-muted);
}
.admin-drawer[open] summary::after {
  transform: rotate(90deg);
  color: var(--jdm-cyan);
}
.admin-drawer summary:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.01);
}
.admin-drawer-content {
  border-top: 1px solid var(--border);
  padding: 24px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
  background: rgba(0, 0, 0, 0.1);
}
.admin-drawer-content > form {
  background: rgba(0,0,0,0.15);
  border: 1px solid rgba(255,255,255,0.02);
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

/* ── PvP Redesign (Gaming Dashboard Theme) ───────────────────── */

/* Summary Stats Header Row */
.pvp-stats-banner {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 16px;
  margin-bottom: 32px;
  margin-top: 10px;
}
.pvp-stat-box {
  background: rgba(12, 5, 15, 0.4);
  border: 1px solid var(--border);
  padding: 14px 20px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.pvp-stat-box::after {
  content: '';
  position: absolute;
  bottom: 0; right: 0;
  width: 6px; height: 6px;
  background: linear-gradient(135deg, transparent 50%, var(--jdm-cyan) 50%);
}
.pvp-stat-val {
  font-family: var(--display);
  font-size: 20px;
  font-weight: 900;
  font-style: italic;
  color: var(--jdm-cyan);
  text-shadow: 0 0 10px rgba(0, 240, 255, 0.35);
  margin-bottom: 2px;
}
.pvp-stat-lbl {
  font-size: 10px;
  font-family: var(--sans);
  text-transform: uppercase;
  color: var(--text-muted);
  letter-spacing: 0.8px;
}

/* 3-Column Info Cards */
.pvp-info-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-bottom: 40px;
}
@media (max-width: 768px) {
  .pvp-info-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }
}
.pvp-info-card {
  background: rgba(15, 10, 20, 0.3);
  border: 1px solid var(--border);
  padding: 20px;
  position: relative;
  transition: border-color 0.2s;
}
.pvp-info-card:hover {
  border-color: rgba(255, 42, 109, 0.3);
}
.pvp-info-card.teal { border-top: 3px solid var(--jdm-cyan); }
.pvp-info-card.pink { border-top: 3px solid var(--jdm-pink); }
.pvp-info-card.amber { border-top: 3px solid var(--jdm-amber); }

.pvp-info-title {
  font-family: var(--display);
  font-style: italic;
  font-weight: 800;
  text-transform: uppercase;
  color: #fff;
  font-size: 12.5px;
  margin-top: 0;
  margin-bottom: 8px;
  letter-spacing: 0.5px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.pvp-info-title.teal { color: var(--jdm-cyan); }
.pvp-info-title.pink { color: var(--jdm-pink); }
.pvp-info-title.amber { color: var(--jdm-amber); }

.pvp-info-desc {
  margin: 0;
  font-size: 11.5px;
  color: var(--text-muted);
  line-height: 1.5;
}

/* Layout Grid */
.pvp-arena-grid {
  display: grid;
  grid-template-columns: 2.3fr 1fr;
  gap: 32px;
  align-items: start;
}
@media (max-width: 992px) {
  .pvp-arena-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }
}
.pvp-arena-column {
  display: flex;
  flex-direction: column;
  min-height: 0;
}

/* Main Leaderboard Card Box */
.pvp-arena-card {
  background: var(--bg-card);
  backdrop-filter: blur(25px);
  -webkit-backdrop-filter: blur(25px);
  border: 1px solid var(--border);
  padding: 24px;
}
.pvp-arena-card-title {
  font-family: var(--display);
  font-size: 15px;
  font-weight: 900;
  font-style: italic;
  color: #fff;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--border);
  padding-bottom: 10px;
}

/* Standings Rows (Card List Style) */
.pvp-driver-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.pvp-driver-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(20, 10, 25, 0.45);
  border: 1px solid var(--border);
  padding: 10px 18px;
  transition: all 0.25s ease;
  position: relative;
  gap: 12px;
}
.pvp-driver-row:hover {
  transform: translateX(4px);
  border-color: rgba(255, 42, 109, 0.4);
  box-shadow: 0 0 15px rgba(255, 42, 109, 0.1);
  background: rgba(25, 12, 32, 0.65);
}
.pvp-driver-row.rank-1 {
  border-left: 4px solid var(--gold) !important;
  background: linear-gradient(90deg, rgba(255, 172, 0, 0.08) 0%, rgba(255, 172, 0, 0.02) 50%, rgba(0, 0, 0, 0) 100%) !important;
  transition: all 0.25s cubic-bezier(0.25, 0.8, 0.25, 1);
}
.pvp-driver-row.rank-1:hover {
  transform: translateX(4px) !important;
  background: linear-gradient(90deg, rgba(255, 172, 0, 0.15) 0%, rgba(255, 172, 0, 0.05) 50%, rgba(0, 0, 0, 0) 100%) !important;
  box-shadow: 0 4px 20px rgba(255, 172, 0, 0.08) !important;
  border-color: rgba(255, 172, 0, 0.3) !important;
}

.pvp-driver-row.rank-2 {
  border-left: 4px solid var(--jdm-cyan) !important;
  background: linear-gradient(90deg, rgba(137, 195, 192, 0.08) 0%, rgba(137, 195, 192, 0.02) 50%, rgba(0, 0, 0, 0) 100%) !important;
  transition: all 0.25s cubic-bezier(0.25, 0.8, 0.25, 1);
}
.pvp-driver-row.rank-2:hover {
  transform: translateX(4px) !important;
  background: linear-gradient(90deg, rgba(137, 195, 192, 0.15) 0%, rgba(137, 195, 192, 0.05) 50%, rgba(0, 0, 0, 0) 100%) !important;
  box-shadow: 0 4px 20px rgba(137, 195, 192, 0.08) !important;
  border-color: rgba(137, 195, 192, 0.3) !important;
}

.pvp-driver-row.rank-3 {
  border-left: 4px solid var(--bronze) !important;
  background: linear-gradient(90deg, rgba(205, 127, 50, 0.08) 0%, rgba(205, 127, 50, 0.02) 50%, rgba(0, 0, 0, 0) 100%) !important;
  transition: all 0.25s cubic-bezier(0.25, 0.8, 0.25, 1);
}
.pvp-driver-row.rank-3:hover {
  transform: translateX(4px) !important;
  background: linear-gradient(90deg, rgba(205, 127, 50, 0.15) 0%, rgba(205, 127, 50, 0.05) 50%, rgba(0, 0, 0, 0) 100%) !important;
  box-shadow: 0 4px 20px rgba(205, 127, 50, 0.08) !important;
  border-color: rgba(205, 127, 50, 0.3) !important;
}

/* Standings Card Row Elements */
.pvp-driver-left {
  display: flex;
  align-items: center;
  gap: 14px;
  flex: 1;
  min-width: 0;
}
.pvp-rank-badge {
  font-family: var(--display);
  font-size: 11px;
  font-weight: 900;
  font-style: italic;
  padding: 2px 8px;
  transform: skewX(-10deg);
  min-width: 44px;
  text-align: center;
  text-transform: uppercase;
  display: inline-block;
}
.pvp-rank-badge.rank-1 { background: var(--gold); color: #000; }
.pvp-rank-badge.rank-2 { background: var(--jdm-cyan); color: #000; }
.pvp-rank-badge.rank-3 { background: var(--bronze); color: #fff; }
.pvp-rank-badge.rank-default { background: rgba(255,255,255,0.06); color: var(--text-muted); }

.pvp-driver-avatar {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  overflow: hidden;
  background: #222;
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: border-color 0.2s;
}
.pvp-driver-row:hover .pvp-driver-avatar {
  border-color: var(--jdm-pink);
}
.pvp-driver-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.pvp-driver-details {
  display: flex;
  flex-direction: column;
  min-width: 0;
  align-items: flex-start;
}
.pvp-driver-team {
  font-family: var(--display);
  font-size: 9px;
  font-weight: 800;
  background: var(--jdm-pink);
  color: #fff;
  padding: 0px 4px;
  border-radius: 2px;
  margin-bottom: 2px;
  line-height: 1.1;
  transform: skewX(-8deg);
}
.pvp-driver-name {
  font-weight: 800;
  font-size: 13.5px;
  color: #fff;
  text-decoration: none;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  transition: color 0.2s;
}
.pvp-driver-name:hover {
  color: var(--jdm-pink);
}

/* Standings Card Stats Block */
.pvp-driver-stats {
  display: flex;
  align-items: center;
  gap: 20px;
}
@media (max-width: 576px) {
  .pvp-driver-stats {
    gap: 10px;
  }
}
.pvp-stat-col {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  min-width: 48px;
}
.pvp-stat-col.wide {
  min-width: 60px;
}
.pvp-stat-val-small {
  font-family: var(--mono);
  font-size: 13.5px;
  font-weight: 700;
  color: #fff;
}
.pvp-stat-val-small.wins { color: #00ff66; }
.pvp-stat-val-small.losses { color: #ff3333; }
.pvp-stat-lbl-small {
  font-size: 9px;
  text-transform: uppercase;
  color: var(--text-muted);
  letter-spacing: 0.5px;
  margin-top: 1px;
}

/* Live Duels Timeline */
.pvp-ticker-feed {
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-height: 580px;
  overflow-y: auto;
  padding-right: 6px;
}
.pvp-ticker-feed::-webkit-scrollbar {
  width: 4px;
}
.pvp-ticker-feed::-webkit-scrollbar-track {
  background: rgba(0, 0, 0, 0.15);
}
.pvp-ticker-feed::-webkit-scrollbar-thumb {
  background: var(--jdm-pink);
}

/* Redesigned Match Card */
.pvp-duel-card {
  background: rgba(12, 5, 15, 0.4);
  border: 1px solid var(--border);
  border-left: 3px solid var(--jdm-pink);
  padding: 12px 14px;
  position: relative;
  transition: all 0.2s ease;
}
.pvp-duel-card:hover {
  border-color: var(--jdm-pink);
  background: rgba(22, 10, 28, 0.6);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(255, 42, 109, 0.1);
}
.pvp-duel-card.draw {
  border-left-color: var(--jdm-cyan);
}
.pvp-duel-card.draw:hover {
  border-color: var(--jdm-cyan);
  box-shadow: 0 4px 12px rgba(0, 240, 255, 0.1);
}

.pvp-duel-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 10px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.03);
  padding-bottom: 4px;
  margin-bottom: 8px;
}
.pvp-duel-track {
  font-family: var(--display);
  font-weight: 800;
  font-style: italic;
  text-transform: uppercase;
  color: var(--jdm-cyan);
  letter-spacing: 0.5px;
}
.pvp-duel-date {
  font-family: var(--mono);
  color: var(--text-muted);
}

.pvp-duel-versus {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 6px;
}
.pvp-duel-team {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 44%;
  min-width: 0;
}
.pvp-duel-team.loser {
  flex-direction: row-reverse;
  text-align: right;
}
.pvp-duel-avatar {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  overflow: hidden;
  border: 1px solid var(--border);
  flex-shrink: 0;
}
.pvp-duel-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.pvp-duel-name-wrap {
  display: flex;
  flex-direction: column;
  min-width: 0;
  align-items: flex-start;
}
.pvp-duel-team.loser .pvp-duel-name-wrap {
  align-items: flex-end;
}
.pvp-duel-name {
  font-size: 11.5px;
  font-weight: 800;
  color: #fff;
  text-decoration: none;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.pvp-duel-name:hover {
  color: var(--jdm-pink);
}
.pvp-duel-shift {
  font-family: var(--mono);
  font-size: 9px;
  font-weight: 700;
  line-height: 1;
  margin-top: 2px;
}
.pvp-duel-shift.plus { color: #00ff66; }
.pvp-duel-shift.minus { color: #ff3333; }

.pvp-duel-vs {
  font-family: var(--display);
  font-weight: 900;
  font-style: italic;
  font-size: 11px;
  color: var(--jdm-pink);
  opacity: 0.8;
  text-align: center;
  width: 12%;
}

.pvp-duel-details {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  font-family: var(--mono);
  font-size: 9.5px;
  border-top: 1px solid rgba(255, 255, 255, 0.02);
  padding-top: 5px;
  color: var(--text-muted);
}
.pvp-duel-detail-lbl {
  color: rgba(255,255,255,0.2);
}
.pvp-duel-divider {
  color: rgba(255,255,255,0.08);
}

/* ELO Rating Badge Tiers */
.elo-badge {
  display: inline-block;
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 2px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  text-align: center;
  border: 1px solid transparent;
}
.elo-badge.elo-legendary {
  background: rgba(169, 10, 73, 0.15);
  color: var(--jdm-pink);
  border-color: rgba(169, 10, 73, 0.45);
  box-shadow: 0 0 8px rgba(169, 10, 73, 0.2);
}
.elo-badge.elo-master {
  background: rgba(255, 172, 0, 0.1);
  color: var(--jdm-amber);
  border-color: rgba(255, 172, 0, 0.4);
  box-shadow: 0 0 8px rgba(255, 172, 0, 0.2);
}
.elo-badge.elo-expert {
  background: rgba(137, 195, 192, 0.1);
  color: var(--jdm-cyan);
  border-color: rgba(137, 195, 192, 0.4);
  box-shadow: 0 0 8px rgba(137, 195, 192, 0.2);
}
.elo-badge.elo-default {
  background: rgba(255, 255, 255, 0.04);
  color: var(--text-muted);
  border-color: rgba(255, 255, 255, 0.08);
}

/* Leader Presentation Glow Animations */
@keyframes leader-gold-glow {
  0% {
    color: #fff;
    text-shadow: 0 0 4px rgba(255, 172, 0, 0.4);
  }
  50% {
    color: var(--jdm-amber);
    text-shadow: 0 0 12px rgba(255, 172, 0, 0.85), 0 0 20px rgba(255, 172, 0, 0.4);
  }
  100% {
    color: #fff;
    text-shadow: 0 0 4px rgba(255, 172, 0, 0.4);
  }
}
@keyframes avatar-gold-pulse {
  0% {
    box-shadow: 0 0 4px rgba(255, 172, 0, 0.2);
    border-color: rgba(255, 172, 0, 0.3);
  }
  50% {
    box-shadow: 0 0 12px rgba(255, 172, 0, 0.65);
    border-color: var(--jdm-amber);
  }
  100% {
    box-shadow: 0 0 4px rgba(255, 172, 0, 0.2);
    border-color: rgba(255, 172, 0, 0.3);
  }
}
.leader-pulse-text {
  font-family: var(--display);
  font-style: italic;
  font-weight: 900;
  text-transform: uppercase;
  animation: leader-gold-glow 3s infinite ease-in-out;
  letter-spacing: 0.5px;
  display: inline-block;
  text-decoration: none !important;
}
.leader-pulse-text:hover {
  color: var(--jdm-amber) !important;
  text-shadow: 0 0 16px rgba(255, 172, 0, 0.95);
}
.leader-avatar-glow {
  border: 1px solid rgba(255, 172, 0, 0.3);
  animation: avatar-gold-pulse 3s infinite ease-in-out;
}

/* ── Mobile Optimization & Responsive Utilities ───────────────── */
@media (max-width: 768px) {
  .hide-mobile {
    display: none !important;
  }

  .grid-responsive-2col,
  .grid-responsive-unequal-21,
  .grid-responsive-unequal-141,
  .grid-responsive-form-2col,
  .grid-responsive-inner-2col,
  .grid-responsive-3col {
    grid-template-columns: 1fr !important;
    gap: 16px !important;
  }
}

.grid-responsive-2col {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 32px;
}
.grid-responsive-unequal-21 {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 30px;
}
.grid-responsive-unequal-141 {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 32px;
}
.grid-responsive-form-2col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
.grid-responsive-inner-2col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 15px;
}
.grid-responsive-3col {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

/* ── Admin drawer form field overrides ── */
.admin-drawer-content .search-input {
  min-width: 0 !important;
  width: 100%;
}

