/* ==========================================================================
   STREAMPEX v4 REDESIGN — global reskin (deep navy + electric blue)
   Loads AFTER all existing CSS, so these rules win specificity ties.
   UI-only: colors, surfaces, type. No layout rewrites, no external assets.
   ========================================================================== */

/* ---------- design tokens (approved v4 mockup) ---------- */
:root{
  --v4-navy:#0a1628;
  --v4-navy2:#0e1d33;
  --v4-navy3:#12263f;
  --v4-blue:#2b7fff;
  --v4-blue-d:#1a5fd6;
  --v4-blue-l:#6ea8ff;
  --v4-ink:#f2f6fc;
  --v4-mut:#93a4bd;
  --v4-line:rgba(120,160,220,.16);
  --v4-glass:rgba(18,38,63,.55);
  /* kill the old red accent at the variable level (site.css --accent-gradient was red) */
  --accent:#2b7fff;
  --accent-gradient:linear-gradient(180deg,#6aa5ff 0%,#3f8cff 38%,#2b7fff 62%,#1f66dd 100%);
}

/* ==========================================================================
   PART 1 — base
   ========================================================================== */
body{
  background-color:var(--v4-navy);
  color:var(--v4-ink);
}
a{
  color:var(--v4-blue-l);
}
a:hover{
  color:#a9c6ff;
}

/* keep keyboard focus visible everywhere */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
summary:focus-visible,
[tabindex]:focus-visible{
  outline:2px solid var(--v4-blue-l);
  outline-offset:2px;
  border-radius:6px;
}

/* ==========================================================================
   PART 2 — restyle of EXISTING site classes (UI only, no renames)
   ========================================================================== */

/* cards + HUD shells: navy glass, 16px radius, hairline blue border */
.card,
.hud-shell{
  background:var(--v4-glass);
  -webkit-backdrop-filter:blur(12px);
  backdrop-filter:blur(12px);
  border:1px solid var(--v4-line);
  border-radius:16px;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.06), 0 10px 30px rgba(0,0,0,.25);
  color:var(--v4-ink);
}

/* HUD hero strip: deep navy gradient panel */
.hud-hero{
  background:linear-gradient(120deg, rgba(6,13,26,.96) 20%, rgba(18,38,63,.85) 70%, rgba(43,127,255,.28) 130%);
  border:1px solid var(--v4-line);
  border-radius:20px;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.07), 0 14px 40px rgba(0,0,0,.35);
}

/* buttons — dimensional electric blue; the old red --accent-gradient is redefined above */
.btn,
a.btn,
.button{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:8px;
  border-radius:10px;
  clip-path:none;
  padding:10px 20px;
  font-weight:800;
  font-size:13px;
  letter-spacing:.06em;
  cursor:pointer;
  color:#fff;
  text-decoration:none;
  text-shadow:0 1px 2px rgba(0,25,70,.5);
  background:linear-gradient(180deg,#8dbcff 0%,#5e9dff 18%,#2b7fff 50%,#1e6ae0 78%,#1859c4 100%);
  border:1px solid rgba(160,200,255,.6);
  box-shadow:
    inset 0 2px 2px rgba(255,255,255,.55),
    inset 0 -4px 8px rgba(0,25,80,.45),
    inset 2px 0 4px rgba(255,255,255,.08),
    inset -2px 0 4px rgba(0,25,80,.12),
    0 8px 22px rgba(43,127,255,.4),
    0 3px 8px rgba(0,0,0,.5);
  transition:filter .15s ease, box-shadow .15s ease, transform .05s ease;
}
.btn:hover,
a.btn:hover,
.button:hover{
  filter:brightness(1.07);
  transform:translateY(-1px);
  box-shadow:
    inset 0 2px 3px rgba(255,255,255,.65),
    inset 0 -4px 8px rgba(0,25,80,.4),
    inset 2px 0 4px rgba(255,255,255,.1),
    inset -2px 0 4px rgba(0,25,80,.12),
    0 12px 30px rgba(43,127,255,.55),
    0 3px 8px rgba(0,0,0,.5);
}
.btn:active,
a.btn:active,
.button:active{
  transform:translateY(1px);
  filter:brightness(.96);
  box-shadow:
    inset 0 3px 10px rgba(0,25,70,.5),
    0 2px 8px rgba(43,127,255,.25);
}
.btn-primary{
  background:linear-gradient(180deg,#8dbcff 0%,#5e9dff 18%,#2b7fff 50%,#1e6ae0 78%,#1859c4 100%);
  color:#fff;
}
.btn-secondary{
  background:rgba(20,35,58,.65);
  border:1px solid var(--v4-line);
  color:var(--v4-ink);
  text-shadow:none;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.08), 0 2px 8px rgba(0,0,0,.3);
}
.btn-secondary:hover{
  background:rgba(43,127,255,.16);
  border-color:rgba(43,127,255,.5);
  filter:none;
  transform:translateY(-1px);
  box-shadow:inset 0 1px 0 rgba(255,255,255,.1), 0 4px 14px rgba(43,127,255,.25);
}
.btn-small{
  padding:7px 14px;
  font-size:12px;
  border-radius:8px;
}
/* every other button (header login, icon buttons, toggles): dark neutral, never red */
button:not(.btn):not(.button){
  clip-path:none;
  background:rgba(20,35,58,.7);
  border:1px solid var(--v4-line);
  color:var(--v4-ink);
  border-radius:12px;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.07);
}
button:not(.btn):not(.button):hover{
  border-color:rgba(43,127,255,.5);
  background:rgba(43,127,255,.14);
}

/* headings */
.page-title{
  color:var(--v4-ink);
  font-size:30px;
  font-weight:900;
  letter-spacing:-.01em;
  line-height:1.15;
  margin:0 0 6px;
}
.page-subtitle{
  color:var(--v4-mut);
  font-size:14px;
  line-height:1.55;
  margin:0 0 18px;
}
.section-kicker{
  font-size:11px;
  font-weight:800;
  letter-spacing:.22em;
  color:var(--v4-blue-l);
  text-transform:uppercase;
  margin:0 0 10px;
}
.section-header{
  display:flex;
  align-items:center;
  gap:12px;
  margin:0 0 16px;
}
.section-header .section-kicker{ margin:0; }

/* tables: navy rows, hairline dividers */
table{
  width:100%;
  border-collapse:collapse;
  color:var(--v4-ink);
}
table th{
  background:var(--v4-navy3);
  color:var(--v4-blue-l);
  font-size:11px;
  font-weight:800;
  letter-spacing:.14em;
  text-transform:uppercase;
  text-align:left;
  padding:10px 12px;
  border-bottom:1px solid var(--v4-line);
}
table td{
  padding:10px 12px;
  font-size:13.5px;
  border-top:1px solid var(--v4-line);
  vertical-align:middle;
}
table tbody tr:nth-child(even) td{
  background:rgba(255,255,255,.02);
}
table tbody tr:hover td{
  background:rgba(43,127,255,.07);
}

/* form fields: navy fields */
input:not([type="checkbox"]):not([type="radio"]):not([type="hidden"]),
select,
textarea{
  background:rgba(255,255,255,.05);
  border:1px solid var(--v4-line);
  border-radius:10px;
  padding:9px 12px;
  font-size:13.5px;
  color:var(--v4-ink);
}
input:not([type="checkbox"]):not([type="radio"]):not([type="hidden"])::placeholder,
textarea::placeholder{
  color:var(--v4-mut);
  opacity:.8;
}
input:not([type="checkbox"]):not([type="radio"]):not([type="hidden"]):focus,
select:focus,
textarea:focus{
  border-color:rgba(43,127,255,.6);
  box-shadow:0 0 0 3px rgba(43,127,255,.18);
  outline:none;
  background:rgba(255,255,255,.07);
}
select option{
  background:var(--v4-navy2);
  color:var(--v4-ink);
}
input[type="checkbox"],
input[type="radio"]{
  accent-color:var(--v4-blue);
}

/* notice banners */
.notice{
  background:rgba(43,127,255,.1);
  border:1px solid rgba(43,127,255,.35);
  border-radius:12px;
  padding:12px 16px;
  color:var(--v4-ink);
  font-size:13.5px;
  line-height:1.55;
}

/* muted body copy */
.muted-copy{
  color:var(--v4-mut);
}

/* NOTE (2026-10-26): V4's sidebar rules were removed on purpose — Bryan
   wants the ORIGINAL sidebar menu on every page, including the giveaway
   page. V4 still styles page content; only the menu stays in the original
   style (dark cards, white titles). Do not re-add .sidebar details/summary
   rules here. */

/* header chrome */
.header-avatar{
  width:36px;
  height:36px;
  border-radius:50%;
  background:linear-gradient(135deg, var(--v4-blue), #7ab3ff);
  display:inline-flex;
  align-items:center;
  justify-content:center;
  font-weight:800;
  color:#fff;
  overflow:hidden;
  flex:0 0 auto;
  border:1px solid rgba(120,160,220,.35);
}
.header-avatar img{
  width:100%;
  height:100%;
  object-fit:cover;
}
.header-action-link{
  display:inline-flex;
  align-items:center;
  gap:6px;
  color:var(--v4-mut);
  font-size:13px;
  font-weight:700;
  text-decoration:none;
}
.header-action-link:hover{ color:var(--v4-ink); }
.header-action-link__badge{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-width:20px;
  height:20px;
  padding:0 6px;
  border-radius:999px;
  background:var(--v4-blue);
  color:#fff;
  font-size:11px;
  font-weight:800;
}

/* modal cards (ride on top of .card) */
.public-login-modal-card,
.notification-modal-card{
  border-color:rgba(43,127,255,.35);
  box-shadow:inset 0 1px 0 rgba(255,255,255,.08), 0 24px 70px rgba(0,0,0,.55);
  padding:22px 24px;
}

/* ==========================================================================
   PART 3 — new v4 components (match the approved mockup)
   ========================================================================== */

.v4-num{ font-variant-numeric:tabular-nums; }

.v4-kicker{
  font-size:11px;
  font-weight:800;
  letter-spacing:.3em;
  color:var(--v4-blue-l);
  text-transform:uppercase;
  margin:0 0 12px;
}

.v4-card{
  background:var(--v4-glass);
  -webkit-backdrop-filter:blur(12px);
  backdrop-filter:blur(12px);
  border:1px solid var(--v4-line);
  border-radius:16px;
  padding:18px 20px;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.06);
  color:var(--v4-ink);
}

.v4-panel{
  background:var(--v4-glass);
  -webkit-backdrop-filter:blur(12px);
  backdrop-filter:blur(12px);
  border:1px solid var(--v4-line);
  border-radius:16px;
  padding:18px 20px;
  color:var(--v4-ink);
}
.v4-panel h2{
  font-size:12px;
  font-weight:800;
  letter-spacing:.22em;
  color:var(--v4-blue-l);
  margin:0 0 14px;
  display:flex;
  align-items:center;
  gap:8px;
  text-transform:uppercase;
}
.v4-panel h2 .more{
  margin-left:auto;
  font-size:11px;
  color:var(--v4-mut);
  letter-spacing:.06em;
  font-weight:600;
  text-transform:none;
}

/* v4 buttons */
.v4-btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:8px;
  border-radius:10px;
  padding:10px 20px;
  font-weight:800;
  font-size:13px;
  letter-spacing:.06em;
  border:1px solid transparent;
  cursor:pointer;
  text-decoration:none;
  transition:background .15s ease, border-color .15s ease, box-shadow .15s ease, transform .05s ease;
}
.v4-btn:active{ transform:translateY(1px); }
.v4-btn-blue{
  background:linear-gradient(180deg,#8dbcff 0%,#5e9dff 18%,#2b7fff 50%,#1e6ae0 78%,#1859c4 100%);
  color:#fff;
  text-shadow:0 1px 2px rgba(0,25,70,.5);
  border:1px solid rgba(160,200,255,.6);
  box-shadow:
    inset 0 2px 2px rgba(255,255,255,.55),
    inset 0 -4px 8px rgba(0,25,80,.45),
    inset 2px 0 4px rgba(255,255,255,.08),
    inset -2px 0 4px rgba(0,25,80,.12),
    0 8px 22px rgba(43,127,255,.4),
    0 3px 8px rgba(0,0,0,.5);
}
.v4-btn-blue:hover{
  filter:brightness(1.07);
  transform:translateY(-1px);
  box-shadow:
    inset 0 2px 3px rgba(255,255,255,.65),
    inset 0 -4px 8px rgba(0,25,80,.4),
    0 12px 30px rgba(43,127,255,.55),
    0 3px 8px rgba(0,0,0,.5);
  color:#fff;
}
.v4-btn-ghost{
  background:rgba(20,35,58,.65);
  border:1px solid var(--v4-line);
  color:var(--v4-ink);
  box-shadow:inset 0 1px 0 rgba(255,255,255,.08), 0 2px 8px rgba(0,0,0,.3);
}
.v4-btn-ghost:hover{
  background:rgba(43,127,255,.16);
  border-color:rgba(43,127,255,.5);
  transform:translateY(-1px);
  color:var(--v4-ink);
}
.v4-btn-sm{
  padding:7px 14px;
  font-size:12px;
  border-radius:8px;
}

/* v4 hero */
.v4-hero{
  position:relative;
  border-radius:20px;
  overflow:hidden;
  border:1px solid var(--v4-line);
  min-height:480px;
  display:flex;
  align-items:stretch;
  background:#060d18;
}
.v4-hero .bg,
.v4-hero-bg{
  position:absolute;
  inset:0;
  background-size:cover;
  background-position:center;
  background-repeat:no-repeat;
  background-color:#060d18;
}
.v4-hero .shade,
.v4-hero-shade{
  position:absolute;
  inset:0;
  background:linear-gradient(100deg, rgba(6,13,26,.94) 30%, rgba(6,13,26,.55) 60%, rgba(6,13,26,.15) 100%);
}
.v4-hero .in,
.v4-hero-in{
  position:relative;
  z-index:2;
  padding:46px 48px;
  max-width:760px;
  display:flex;
  flex-direction:column;
  justify-content:center;
}
.v4-hero h1{
  font-size:52px;
  line-height:1.02;
  font-weight:900;
  letter-spacing:-.01em;
  text-transform:uppercase;
  margin:0;
  color:var(--v4-ink);
}
.v4-hero h1 .bl{ color:var(--v4-blue); }
.v4-hero .sub,
.v4-sub{
  color:#c8d6ea;
  margin:14px 0 20px;
  font-size:15.5px;
  max-width:560px;
  line-height:1.6;
}
.v4-hero .hero-row,
.v4-hero-row{
  display:flex;
  align-items:center;
  gap:18px;
  flex-wrap:wrap;
  margin-bottom:20px;
}

/* TEST banding */
.v4-testband{
  background:linear-gradient(90deg, #7f1d1d, #b91c1c, #7f1d1d);
  color:#ffd7d7;
  text-align:center;
  font-size:11px;
  font-weight:800;
  letter-spacing:.3em;
  text-transform:uppercase;
  padding:8px;
  border-radius:10px;
  margin-bottom:18px;
}

/* ARV callout */
.v4-arv{
  background:rgba(43,127,255,.14);
  border:1px solid rgba(43,127,255,.5);
  border-radius:12px;
  padding:8px 16px;
}
.v4-arv .l{
  font-size:10px;
  letter-spacing:.22em;
  color:var(--v4-blue-l);
  font-weight:800;
  text-transform:uppercase;
}
.v4-arv .v{
  font-size:22px;
  font-weight:900;
  color:var(--v4-ink);
}

/* countdown */
.v4-count{
  display:flex;
  gap:10px;
  align-items:center;
  flex-wrap:wrap;
}
.v4-count .cell{
  background:rgba(8,18,34,.7);
  border:1px solid var(--v4-line);
  border-radius:10px;
  padding:8px 12px;
  text-align:center;
  min-width:66px;
  -webkit-backdrop-filter:blur(6px);
  backdrop-filter:blur(6px);
}
.v4-count .cell b{
  font-size:24px;
  display:block;
  color:var(--v4-ink);
  font-variant-numeric:tabular-nums;
}
.v4-count .cell span{
  font-size:9.5px;
  letter-spacing:.2em;
  color:var(--v4-mut);
  text-transform:uppercase;
}
.v4-count .cap{
  font-size:10px;
  letter-spacing:.24em;
  color:var(--v4-mut);
  font-weight:800;
  text-transform:uppercase;
}

.v4-cta-row{
  display:flex;
  gap:14px;
  margin:6px 0 18px;
  flex-wrap:wrap;
}
.v4-trust{
  font-size:12.5px;
  color:#b9c8de;
}
.v4-trust .ok{
  color:#4ade80;
  font-weight:800;
}
.v4-fine{
  font-size:12px;
  color:var(--v4-mut);
  margin-top:8px;
  line-height:1.6;
}
.v4-fine b{ color:#dbe6f5; }
.v4-fine .rules{
  color:var(--v4-blue-l);
  text-decoration:underline;
}

/* stats band */
.v4-stats{
  display:grid;
  grid-template-columns:repeat(5,1fr);
  gap:0;
  margin:22px 0;
  background:var(--v4-glass);
  border:1px solid var(--v4-line);
  border-radius:16px;
  -webkit-backdrop-filter:blur(12px);
  backdrop-filter:blur(12px);
  overflow:hidden;
}
.v4-stat{
  padding:16px 20px;
  border-left:1px solid var(--v4-line);
}
.v4-stat:first-child{ border-left:0; }
.v4-stat .l{
  font-size:10px;
  letter-spacing:.2em;
  color:var(--v4-mut);
  font-weight:800;
  display:flex;
  align-items:center;
  gap:8px;
  text-transform:uppercase;
}
.v4-stat .v{
  font-size:24px;
  font-weight:900;
  margin-top:4px;
  color:var(--v4-ink);
  font-variant-numeric:tabular-nums;
}

/* pillar cards */
.v4-pillars{
  display:grid;
  grid-template-columns:repeat(4,1fr);
  gap:16px;
  margin:6px 0 26px;
}
.v4-pillar{
  position:relative;
  border-radius:16px;
  overflow:hidden;
  border:1px solid var(--v4-line);
  min-height:210px;
  display:flex;
  flex-direction:column;
  justify-content:flex-end;
  padding:18px;
  background:var(--v4-navy2);
  color:var(--v4-ink);
  text-decoration:none;
  transition:border-color .15s ease, box-shadow .15s ease;
}
.v4-pillar:hover{
  border-color:rgba(43,127,255,.5);
  box-shadow:0 8px 28px rgba(43,127,255,.18);
}
.v4-pillar .art,
.v4-pillar-art{
  position:absolute;
  inset:0;
  opacity:.9;
  background-size:cover;
  background-position:center;
  background-repeat:no-repeat;
  pointer-events:none;
}
.v4-pillar .tx,
.v4-pillar-tx{
  position:relative;
  z-index:2;
}
.v4-pillar h3{
  font-size:19px;
  font-weight:900;
  letter-spacing:.04em;
  margin:0 0 6px;
  color:var(--v4-ink);
}
.v4-pillar p{
  font-size:12.5px;
  color:#c3d0e4;
  margin:0;
  line-height:1.55;
}
.v4-pillar .go,
.v4-pillar-go{
  position:absolute;
  right:14px;
  bottom:14px;
  z-index:2;
  color:var(--v4-blue-l);
  font-size:18px;
}

/* two-column panel grid */
.v4-grid2{
  display:grid;
  grid-template-columns:1.35fr 1fr;
  gap:16px;
  margin-bottom:16px;
}

/* upcoming-race rows */
.v4-rrow{
  display:flex;
  align-items:center;
  gap:14px;
  padding:11px 4px;
  border-top:1px solid var(--v4-line);
}
.v4-rrow:first-of-type{ border-top:0; }
.v4-dateblk{
  flex:0 0 52px;
  text-align:center;
  background:rgba(43,127,255,.1);
  border:1px solid rgba(43,127,255,.3);
  border-radius:10px;
  padding:6px 0;
}
.v4-dateblk .m{
  font-size:9px;
  letter-spacing:.18em;
  color:var(--v4-blue-l);
  font-weight:800;
  text-transform:uppercase;
}
.v4-dateblk .d{
  font-size:19px;
  font-weight:900;
  color:var(--v4-ink);
}
.v4-rinfo{
  flex:1;
  min-width:0;
}
.v4-rinfo .t{
  font-weight:800;
  font-size:13.5px;
  color:var(--v4-ink);
}
.v4-rinfo .s{
  font-size:12px;
  color:var(--v4-mut);
}
.v4-track{
  width:74px;
  height:34px;
  flex:0 0 74px;
  opacity:.9;
}

/* telemetry snapshot */
.v4-tele{
  background:#060d18;
  border:1px solid var(--v4-line);
  border-radius:16px;
  padding:18px 20px;
  color:var(--v4-ink);
}
.v4-tele .hd{
  display:flex;
  align-items:center;
  gap:10px;
  margin-bottom:10px;
}
.v4-tele .hd h2,
.v4-tele h2{
  font-size:12px;
  letter-spacing:.22em;
  color:var(--v4-blue-l);
  font-weight:800;
  text-transform:uppercase;
  margin:0;
}
.v4-chips{
  display:flex;
  gap:8px;
  flex-wrap:wrap;
  margin:10px 0;
}
.v4-chip{
  font-size:11.5px;
  font-weight:800;
  border-radius:8px;
  padding:4px 10px;
  border:1px solid var(--v4-line);
  background:rgba(255,255,255,.04);
  color:var(--v4-ink);
}
.v4-chip.g{
  color:#4ade80;
  border-color:rgba(74,222,128,.45);
}
.v4-chip.r{
  color:#f87171;
  border-color:rgba(248,113,113,.45);
}
.v4-chip.b{
  color:var(--v4-blue-l);
  border-color:rgba(43,127,255,.45);
}
.v4-trace{
  width:100%;
  height:120px;
  display:block;
  background:rgba(255,255,255,.02);
  border:1px solid var(--v4-line);
  border-radius:10px;
}

/* community feed */
.v4-feed .v4-fi{
  display:flex;
  gap:12px;
  padding:10px 2px;
  border-top:1px solid var(--v4-line);
  font-size:13px;
}
.v4-feed .v4-fi:first-of-type{ border-top:0; }
.v4-fi .fa{
  width:32px;
  height:32px;
  border-radius:50%;
  flex:0 0 32px;
  background:rgba(43,127,255,.18);
  border:1px solid rgba(43,127,255,.35);
  display:flex;
  align-items:center;
  justify-content:center;
  font-size:11px;
  font-weight:800;
  color:var(--v4-blue-l);
}
.v4-fi .ft{ color:#c9d6ea; }
.v4-fi .ft b{ color:#fff; }
.v4-fi .when{
  font-size:11.5px;
  color:var(--v4-mut);
}

/* news */
.v4-news .v4-ni{
  display:flex;
  gap:12px;
  padding:10px 2px;
  border-top:1px solid var(--v4-line);
}
.v4-news .v4-ni:first-of-type{ border-top:0; }
.v4-ni .thumb{
  width:64px;
  height:44px;
  border-radius:8px;
  flex:0 0 64px;
  background:linear-gradient(135deg, #16345f, #0c1c34);
  border:1px solid var(--v4-line);
}
.v4-ni .nt{
  font-size:13px;
  font-weight:700;
  color:var(--v4-ink);
}
.v4-ni .nd{
  font-size:11.5px;
  color:var(--v4-mut);
}

/* sponsor strip */
.v4-sponsor{
  margin-top:18px;
  display:flex;
  align-items:center;
  gap:16px;
  background:var(--v4-glass);
  border:1px solid var(--v4-line);
  border-radius:16px;
  padding:16px 22px;
  -webkit-backdrop-filter:blur(12px);
  backdrop-filter:blur(12px);
  color:var(--v4-ink);
}
.v4-sponsor .mk{
  width:46px;
  height:46px;
  border-radius:12px;
  background:linear-gradient(135deg, #1a5fd6, #2b7fff);
  display:flex;
  align-items:center;
  justify-content:center;
  font-weight:900;
  font-size:18px;
  color:#fff;
  flex:0 0 auto;
}
.v4-sponsor .t1{
  font-size:10px;
  letter-spacing:.26em;
  color:var(--v4-mut);
  font-weight:800;
  text-transform:uppercase;
}
.v4-sponsor .t2{
  font-size:13.5px;
  color:#d5e0f0;
}
.v4-sponsor .t2 b{ color:#fff; }
.v4-sponsor .sp{ flex:1; }

/* ==========================================================================
   PART 4 — header chrome (new header.php markup)
   ========================================================================== */

/* desktop top nav: small caps links */
.v4-topnav{
  display:flex;
  align-items:center;
  gap:22px;
}
.v4-topnav a{
  font-size:12px;
  font-weight:700;
  letter-spacing:.12em;
  text-transform:uppercase;
  color:var(--v4-mut);
  text-decoration:none;
  padding:7px 12px;
  border-radius:8px;
  transition:color .15s ease, background .15s ease;
}
.v4-topnav a:hover{ color:var(--v4-ink); }
.v4-topnav a.on,
.v4-topnav a.active,
.v4-topnav a[aria-current="page"]{
  color:#fff;
  background:rgba(43,127,255,.22);
}

/* brand: logo + wordmark */
.v4-brand{
  display:flex;
  align-items:center;
  gap:10px;
  text-decoration:none;
  color:var(--v4-ink);
}
.v4-brand img{
  height:34px;
  width:auto;
  display:block;
}
.v4-brand-word{
  font-weight:800;
  letter-spacing:.14em;
  font-size:15px;
  color:var(--v4-ink);
  line-height:1.2;
}
.v4-brand-word small{
  display:block;
  font-size:9px;
  letter-spacing:.42em;
  color:var(--v4-mut);
  font-weight:600;
}

/* sidebar dropdown groups (mockup details.sgrp look) */
details.v4-sgrp,
.v4-sgrp{
  background:var(--v4-glass);
  -webkit-backdrop-filter:blur(12px);
  backdrop-filter:blur(12px);
  border:1px solid var(--v4-line);
  border-radius:12px;
  margin-bottom:10px;
  overflow:hidden;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.06);
}
details.v4-sgrp summary,
.v4-sgrp summary{
  list-style:none;
  cursor:pointer;
  display:flex;
  align-items:center;
  gap:10px;
  padding:11px 14px;
  font-size:11px;
  font-weight:800;
  letter-spacing:.18em;
  color:var(--v4-blue-l);
}
details.v4-sgrp summary::-webkit-details-marker,
.v4-sgrp summary::-webkit-details-marker{
  display:none;
}
details.v4-sgrp summary .chev,
.v4-sgrp summary .chev{
  margin-left:auto;
  color:var(--v4-mut);
  font-size:10px;
  flex:0 0 auto;
}
.v4-sgrp .items{
  padding:2px 8px 10px;
}
.v4-sgrp .items a,
.v4-sgrp > div a{
  display:flex;
  align-items:center;
  gap:10px;
  padding:8px 10px;
  border-radius:8px;
  font-size:13.5px;
  color:#d7e2f2;
  text-decoration:none;
  background:transparent;
  border:1px solid transparent;
}
.v4-sgrp .items a:hover,
.v4-sgrp > div a:hover{
  background:rgba(43,127,255,.14);
}
.v4-sgrp .items a.on,
.v4-sgrp > div a.on,
.v4-sgrp .items a.active,
.v4-sgrp > div a.active{
  background:rgba(43,127,255,.22);
  color:#fff;
  font-weight:700;
}
.v4-sgrp .items a svg,
.v4-sgrp > div a svg{
  width:15px;
  height:15px;
  flex:0 0 15px;
  opacity:.85;
}
.v4-sgrp.give{
  border-color:rgba(43,127,255,.45);
  box-shadow:0 0 16px rgba(43,127,255,.18), inset 0 1px 0 rgba(255,255,255,.06);
}

/* driver chip at the bottom of the sidebar */
.v4-driver-chip{
  margin-top:16px;
  display:flex;
  align-items:center;
  gap:10px;
  background:var(--v4-glass);
  border:1px solid var(--v4-line);
  border-radius:12px;
  padding:10px 12px;
  -webkit-backdrop-filter:blur(12px);
  backdrop-filter:blur(12px);
  color:var(--v4-ink);
}
.v4-driver-chip .v4-driver-avatar{
  width:36px;
  height:36px;
  border-radius:50%;
  flex:0 0 36px;
  background:linear-gradient(135deg, var(--v4-blue), #7ab3ff);
  display:flex;
  align-items:center;
  justify-content:center;
  font-weight:800;
  color:#fff;
  overflow:hidden;
}
.v4-driver-chip .v4-driver-avatar img{
  width:100%;
  height:100%;
  object-fit:cover;
}
.v4-driver-chip .v4-driver-name{
  font-size:13px;
  font-weight:700;
  color:var(--v4-ink);
  line-height:1.3;
}
.v4-badge{
  display:inline-block;
  font-size:9.5px;
  font-weight:800;
  letter-spacing:.1em;
  text-transform:uppercase;
  color:#4ade80;
  border:1px solid rgba(74,222,128,.4);
  border-radius:20px;
  padding:2px 8px;
  margin-top:2px;
  white-space:nowrap;
}
.v4-badge-btn{
  display:inline-block;
  font-size:9.5px;
  font-weight:800;
  letter-spacing:.1em;
  text-transform:uppercase;
  color:#4ade80;
  border:1px solid rgba(74,222,128,.4);
  border-radius:20px;
  padding:2px 8px;
  margin-top:2px;
  white-space:nowrap;
  background:transparent;
  cursor:pointer;
  font-family:inherit;
}
.v4-badge-btn:hover{
  background:rgba(74,222,128,.12);
}

/* sidebar search: works on the <input> itself or a wrapper */
.v4-ssearch{
  background:rgba(255,255,255,.05);
  border:1px solid var(--v4-line);
  border-radius:10px;
  padding:8px 12px;
  color:var(--v4-mut);
  font-size:13px;
  margin-bottom:14px;
}
input.v4-ssearch{
  width:100%;
  color:var(--v4-ink);
}
input.v4-ssearch::placeholder{ color:var(--v4-mut); opacity:.8; }
input.v4-ssearch:focus{
  border-color:rgba(43,127,255,.6);
  box-shadow:0 0 0 3px rgba(43,127,255,.18);
  outline:none;
  color:var(--v4-ink);
}
div.v4-ssearch{
  display:flex;
  align-items:center;
  gap:8px;
}
div.v4-ssearch input{
  background:transparent;
  border:0;
  padding:0;
  color:var(--v4-ink);
  font-size:13px;
  width:100%;
  outline:none;
  box-shadow:none;
}
div.v4-ssearch input::placeholder{ color:var(--v4-mut); opacity:.8; }

/* ==========================================================================
   PART 5 — responsive (from the approved mockup)
   ========================================================================== */
@media(max-width:1100px){
  .v4-pillars{ grid-template-columns:repeat(2,1fr); }
  .v4-grid2{ grid-template-columns:1fr; }
  .v4-stats{ grid-template-columns:repeat(2,1fr); }
  .v4-hero h1{ font-size:38px; }
  .v4-hero .in,
  .v4-hero-in{ padding:32px 26px; }
}
