/* ============================================================
   ELDORIA — AUTH V3 (2026-05-22)
   Concept: Cinematic Realm Launcher (game-launcher style).
   Left: zone carousel with Ken Burns + crossfade.
   Right: dark launcher panel (brand + races + form + links).
   Namespace: .av3-*
   Rollback: switch index.html script to auth_v2.js / auth_v1.js
   ============================================================ */

:root {
  --av3-bg:        #06030d;
  --av3-bg-soft:   #0e0820;
  --av3-panel:     #0a0517;
  --av3-panel-2:   #14092a;
  --av3-gold:      #e8c46a;
  --av3-gold-d:    #9b6f29;
  --av3-blood:     #d23a3a;
  --av3-violet:    #8c5cff;
  --av3-cyan:      #58cfff;
  --av3-text:      #f3eedf;
  --av3-text-2:    #b9b0c8;
  --av3-text-mute: #76708a;
  --av3-line:      rgba(232, 196, 106, 0.16);
  --av3-line-2:    rgba(232, 196, 106, 0.38);
  --av3-shadow:    0 50px 80px -30px #000;
  --av3-font-d:    var(--font-display, 'Cinzel', 'Trajan Pro', serif);
}

/* ============================================================
   ROOT — 2 columns split-screen, stacks on mobile.
   ============================================================ */
.av3-root {
  position: relative;
  min-height: 100vh;
  min-height: 100dvh;
  width: 100%;
  background: var(--av3-bg);
  color: var(--av3-text);
  font-family: var(--font-sans, 'Inter', system-ui, sans-serif);
  display: grid;
  grid-template-columns: 1fr;
  grid-template-rows: 38vh auto;
  overflow-x: hidden;
}
@media (min-width: 900px) {
  .av3-root {
    grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
    grid-template-rows: 100vh;
    grid-template-rows: 100dvh;
  }
}

/* ============================================================
   LEFT — Cinematic carousel
   ============================================================ */
.av3-stage {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  background: #000;
}

/* Slides */
.av3-slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center 30%;
  opacity: 0;
  transform: scale(1.08);
  transition: opacity 1.2s ease, transform 14s linear;
}
.av3-slide.is-active {
  opacity: 1;
  transform: scale(1.0);
  z-index: 1;
}
.av3-slide.is-exiting {
  opacity: 0;
  z-index: 0;
  transition: opacity 1.2s ease;
}

/* Overlay layers */
.av3-stage::before {
  content: '';
  position: absolute; inset: 0; z-index: 2;
  background:
    linear-gradient(180deg, rgba(0,0,0,0.0) 0%, rgba(0,0,0,0.0) 30%, rgba(6,3,13,0.55) 75%, rgba(6,3,13,0.85) 100%),
    linear-gradient(90deg,  rgba(0,0,0,0.45) 0%, rgba(0,0,0,0) 30%, rgba(0,0,0,0) 70%, rgba(6,3,13,0.4) 100%);
  pointer-events: none;
}
.av3-stage::after {
  content: '';
  position: absolute; inset: 0; z-index: 2;
  background-image: url("data:image/svg+xml;utf8,<svg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
  opacity: 0.05;
  pointer-events: none;
  mix-blend-mode: overlay;
}

/* Stage corner: brand on left top (only desktop, where right panel is detached) */
.av3-stage-brand {
  position: absolute;
  top: 20px;
  left: 24px;
  z-index: 5;
  display: none; /* shown on desktop only via @media below */
  align-items: center;
  gap: 10px;
}
@media (min-width: 900px) { .av3-stage-brand { display: flex; } }

.av3-stage-brand-crest {
  width: 38px; height: 38px;
  display: grid; place-items: center;
  border: 1px solid var(--av3-line-2);
  background: rgba(0,0,0,0.4);
  position: relative;
  clip-path: polygon(8px 0, 100% 0, 100% calc(100% - 8px), calc(100% - 8px) 100%, 0 100%, 0 8px);
}
.av3-stage-brand-crest img { width: 24px; height: 24px; }
.av3-stage-brand-text {
  display: flex; flex-direction: column; line-height: 1;
}
.av3-stage-brand-name {
  font-family: var(--av3-font-d);
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0.22em;
  color: var(--av3-gold);
  text-shadow: 0 2px 8px rgba(0,0,0,0.6);
}
.av3-stage-brand-tag {
  font-size: 9px;
  color: rgba(255,255,255,0.6);
  margin-top: 3px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

/* Stage caption (bottom-left) */
.av3-caption {
  position: absolute;
  z-index: 4;
  left: 24px;
  right: 24px;
  bottom: 80px;
  max-width: 540px;
  color: #fff;
  pointer-events: none;
}
@media (max-width: 899px) {
  .av3-caption { left: 16px; right: 16px; bottom: 20px; }
}
.av3-cap-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--av3-font-d);
  font-size: 10px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--av3-gold);
  padding: 5px 10px;
  background: rgba(0,0,0,0.55);
  border: 1px solid rgba(232,196,106,0.35);
  margin-bottom: 10px;
}
.av3-cap-tag i { font-size: 12px; }
.av3-cap-title {
  font-family: var(--av3-font-d);
  font-size: clamp(28px, 5vw, 48px);
  font-weight: 800;
  line-height: 0.95;
  text-shadow: 0 6px 30px rgba(0,0,0,0.8);
  margin-bottom: 8px;
}
.av3-cap-sub {
  font-size: clamp(13px, 1.5vw, 16px);
  line-height: 1.5;
  color: rgba(255,255,255,0.82);
  text-shadow: 0 2px 8px rgba(0,0,0,0.6);
  text-wrap: pretty;
  max-width: 480px;
}

/* Stage dots */
.av3-dots {
  position: absolute;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
  z-index: 4;
}
@media (max-width: 899px) {
  .av3-dots { bottom: 8px; }
}
.av3-dot {
  width: 22px;
  height: 3px;
  background: rgba(255,255,255,0.28);
  border-radius: 0;
  cursor: pointer;
  position: relative;
  border: none;
  padding: 0;
  overflow: hidden;
}
.av3-dot::after {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--av3-gold);
  transform-origin: left;
  transform: scaleX(0);
}
.av3-dot.is-active::after {
  animation: av3-progress var(--dur, 7s) linear forwards;
}
@keyframes av3-progress {
  0%   { transform: scaleX(0); }
  100% { transform: scaleX(1); }
}

/* Stage HUD widgets */
.av3-hud-top {
  position: absolute;
  z-index: 5;
  top: 20px;
  right: 24px;
  display: flex;
  align-items: center;
  gap: 10px;
}
@media (max-width: 899px) {
  .av3-hud-top { top: 12px; right: 14px; gap: 6px; }
}
.av3-hud-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 12px;
  background: rgba(0,0,0,0.5);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid var(--av3-line);
  color: #fff;
  font-size: 12px;
  letter-spacing: 0.04em;
  clip-path: polygon(7px 0, 100% 0, 100% calc(100% - 7px), calc(100% - 7px) 100%, 0 100%, 0 7px);
}
.av3-hud-pill b { color: var(--av3-gold); margin: 0 2px; }
.av3-hud-pulse {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: #4ade80;
  animation: av3-pulse 2s ease-out infinite;
}
@keyframes av3-pulse {
  0% { box-shadow: 0 0 0 0 rgba(74,222,128,0.7); }
  100% { box-shadow: 0 0 0 12px rgba(74,222,128,0); }
}

/* Mobile brand strip — visible only on small */
.av3-mobile-brand {
  position: absolute;
  top: 12px;
  left: 14px;
  z-index: 5;
  display: flex;
  align-items: center;
  gap: 8px;
}
@media (min-width: 900px) { .av3-mobile-brand { display: none; } }
.av3-mobile-brand img { width: 28px; height: 28px; }
.av3-mobile-brand-name {
  font-family: var(--av3-font-d);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.18em;
  color: var(--av3-gold);
  text-shadow: 0 2px 8px rgba(0,0,0,0.7);
}

/* ============================================================
   RIGHT — Launcher panel
   ============================================================ */
.av3-panel {
  position: relative;
  background:
    radial-gradient(circle at 20% 0%, rgba(140,92,255,0.12) 0%, transparent 60%),
    radial-gradient(circle at 80% 100%, rgba(232,196,106,0.10) 0%, transparent 60%),
    linear-gradient(180deg, var(--av3-panel-2) 0%, var(--av3-panel) 100%);
  border-left: 1px solid var(--av3-line);
  padding: 28px 28px 24px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: rgba(232,196,106,0.25) transparent;
}
.av3-panel::-webkit-scrollbar { width: 6px; }
.av3-panel::-webkit-scrollbar-thumb { background: rgba(232,196,106,0.25); }
@media (max-width: 899px) {
  .av3-panel { padding: 22px 18px 22px; border-left: none; border-top: 1px solid var(--av3-line); }
}

/* Panel grain */
.av3-panel::before {
  content: '';
  position: absolute; inset: 0;
  background-image: url("data:image/svg+xml;utf8,<svg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
  opacity: 0.04;
  pointer-events: none;
}

/* Header — brand + lang */
.av3-p-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--av3-line);
  position: relative;
  z-index: 50; /* sobre .av3-races/form/etc para que el dropdown del lang flote arriba */
}
.av3-p-brand {
  display: flex;
  align-items: center;
  gap: 12px;
}
.av3-p-brand-crest {
  width: 50px; height: 50px;
  display: grid; place-items: center;
  background: linear-gradient(145deg, rgba(232,196,106,0.18), rgba(232,196,106,0.04));
  border: 1px solid var(--av3-line-2);
  clip-path: polygon(10px 0, 100% 0, 100% calc(100% - 10px), calc(100% - 10px) 100%, 0 100%, 0 10px);
  flex-shrink: 0;
}
.av3-p-brand-crest img { width: 34px; height: 34px; }
.av3-p-brand-text { display: flex; flex-direction: column; line-height: 1; }
.av3-p-brand-name {
  font-family: var(--av3-font-d);
  font-size: 22px;
  font-weight: 800;
  letter-spacing: 0.18em;
  color: var(--av3-text);
}
.av3-p-brand-tag {
  font-size: 10px;
  color: var(--av3-text-mute);
  margin-top: 6px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

/* Lang switcher */
.av3-lang { position: relative; z-index: 100; }
.av3-lang-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 10px;
  background: rgba(0,0,0,0.3);
  border: 1px solid var(--av3-line);
  color: var(--av3-text);
  font-size: 11px;
  letter-spacing: 0.08em;
  cursor: pointer;
  clip-path: polygon(6px 0, 100% 0, 100% calc(100% - 6px), calc(100% - 6px) 100%, 0 100%, 0 6px);
}
.av3-lang-btn:hover { border-color: var(--av3-line-2); }
.av3-lang-btn i:first-child { color: var(--av3-cyan); font-size: 13px; }
.av3-lang-menu {
  position: absolute; right: 0; top: calc(100% + 6px);
  min-width: 160px;
  background: var(--av3-panel-2);
  border: 1px solid var(--av3-line-2);
  padding: 6px;
  z-index: 100;
  box-shadow: var(--av3-shadow);
  clip-path: polygon(8px 0, 100% 0, 100% calc(100% - 8px), calc(100% - 8px) 100%, 0 100%, 0 8px);
}
.av3-lang-opt {
  display: flex; align-items: center; gap: 10px;
  width: 100%;
  padding: 8px 12px;
  background: transparent;
  border: none;
  color: var(--av3-text);
  cursor: pointer;
  font-size: 13px;
  text-align: left;
}
.av3-lang-opt:hover { background: rgba(232,196,106,0.08); }
.av3-lang-opt.is-active { color: var(--av3-gold); }
.av3-lang-opt i { margin-left: auto; color: var(--av3-gold); }

/* Race strip — 6 emblems horizontal */
.av3-races {
  display: flex;
  justify-content: space-between;
  gap: 6px;
  padding: 12px;
  background: rgba(0,0,0,0.32);
  border: 1px solid var(--av3-line);
  position: relative;
}
.av3-races::before {
  content: attr(data-label);
  position: absolute;
  top: -8px;
  left: 14px;
  background: var(--av3-panel-2);
  padding: 0 8px;
  font-size: 9px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--av3-text-mute);
  font-weight: 700;
}
.av3-race {
  flex: 1;
  aspect-ratio: 1 / 1;
  background-size: cover;
  background-position: center top;
  position: relative;
  cursor: default;
  filter: grayscale(0.4) brightness(0.85);
  transition: filter 0.3s, transform 0.3s;
  border: 1px solid rgba(255,255,255,0.04);
}
.av3-race:hover {
  filter: grayscale(0) brightness(1.05);
  transform: translateY(-3px);
  border-color: var(--av3-line-2);
  z-index: 2;
  box-shadow: 0 6px 18px rgba(0,0,0,0.5);
}
.av3-race::after {
  content: attr(data-name);
  position: absolute;
  bottom: 4px;
  left: 4px;
  right: 4px;
  font-size: 9px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-align: center;
  color: #fff;
  text-shadow: 0 2px 4px rgba(0,0,0,0.9);
  opacity: 0;
  transition: opacity 0.25s;
  font-weight: 700;
}
.av3-race:hover::after { opacity: 1; }

/* Referral banner */
.av3-ref {
  display: flex; align-items: center; gap: 12px;
  padding: 12px 14px;
  background: linear-gradient(135deg, rgba(232,196,106,0.16), rgba(232,196,106,0.04));
  border: 1px solid var(--av3-line-2);
  position: relative;
  clip-path: polygon(8px 0, 100% 0, 100% calc(100% - 8px), calc(100% - 8px) 100%, 0 100%, 0 8px);
}
.av3-ref i {
  color: var(--av3-gold);
  font-size: 22px;
}
.av3-ref-l1 { font-size: 13px; color: var(--av3-text); }
.av3-ref-l1 b { color: var(--av3-gold); }
.av3-ref-l2 { font-size: 11px; color: var(--av3-text-mute); margin-top: 2px; }

/* ============================================================
   FORM
   ============================================================ */
.av3-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2px;
  background: rgba(0,0,0,0.4);
  padding: 2px;
  position: relative;
  isolation: isolate;
}
.av3-tab {
  position: relative;
  z-index: 2;
  background: transparent;
  border: none;
  padding: 12px;
  color: var(--av3-text-mute);
  font-family: var(--av3-font-d);
  font-size: 12px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  transition: color 0.3s;
}
.av3-tab.is-active { color: var(--av3-gold); }
.av3-tab-ind {
  position: absolute;
  z-index: 1;
  top: 2px; bottom: 2px;
  width: calc(50% - 2px);
  background:
    linear-gradient(180deg, rgba(232,196,106,0.18) 0%, rgba(232,196,106,0.04) 100%);
  border: 1px solid var(--av3-line-2);
  border-bottom: 2px solid var(--av3-gold);
  transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}
.av3-tab-ind[data-pos="left"]  { transform: translateX(2px); }
.av3-tab-ind[data-pos="right"] { transform: translateX(calc(100% + 2px)); }

.av3-form { display: flex; flex-direction: column; gap: 10px; }

.av3-field {
  position: relative;
  display: flex; align-items: center;
  background: rgba(0,0,0,0.5);
  border: 1px solid var(--av3-line);
  border-bottom: 2px solid rgba(232,196,106,0.18);
  transition: border-color 0.2s;
}
.av3-field:focus-within {
  border-color: var(--av3-line-2);
  border-bottom-color: var(--av3-gold);
  background: rgba(0,0,0,0.7);
}
.av3-field i.av3-f-ico {
  padding: 0 14px;
  color: var(--av3-text-mute);
  font-size: 18px;
  transition: color 0.2s;
}
.av3-field:focus-within i.av3-f-ico { color: var(--av3-gold); }
.av3-field input {
  flex: 1;
  padding: 13px 0;
  background: transparent;
  border: none;
  color: var(--av3-text);
  font-size: 15px;
  font-family: inherit;
  outline: none;
}
.av3-field input::placeholder { color: var(--av3-text-mute); }

/* Override Chrome/Edge/Safari autofill yellow/white background.
   Uses inset shadow trick — actual bg is unchangeable, but a thick inset shadow
   matches the field's dark surface. Combine with -webkit-text-fill-color. */
.av3-field input:-webkit-autofill,
.av3-field input:-webkit-autofill:hover,
.av3-field input:-webkit-autofill:focus,
.av3-field input:-webkit-autofill:active {
  -webkit-box-shadow: 0 0 0 1000px rgba(8,4,18,1) inset !important;
  box-shadow: 0 0 0 1000px rgba(8,4,18,1) inset !important;
  -webkit-text-fill-color: var(--av3-text) !important;
  caret-color: var(--av3-text) !important;
  transition: background-color 9999s ease-in-out 0s;
  border-radius: 0;
}
.av3-field:focus-within input:-webkit-autofill {
  -webkit-box-shadow: 0 0 0 1000px rgba(0,0,0,1) inset !important;
  box-shadow: 0 0 0 1000px rgba(0,0,0,1) inset !important;
}
/* Firefox autofill */
.av3-field input:autofill {
  background-color: rgba(8,4,18,1) !important;
  color: var(--av3-text) !important;
}
.av3-field-tag {
  font-size: 9px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--av3-text-mute);
  padding: 0 12px;
}
.av3-pwd-toggle {
  background: transparent;
  border: none;
  color: var(--av3-text-mute);
  cursor: pointer;
  padding: 0 14px;
  font-size: 18px;
}
.av3-pwd-toggle:hover { color: var(--av3-gold); }

/* CTA — angular gold button */
.av3-submit {
  position: relative;
  display: flex; align-items: center; justify-content: center; gap: 10px;
  width: 100%;
  padding: 16px 22px;
  margin-top: 6px;
  background: linear-gradient(180deg, #efd083 0%, #d5a64b 50%, #a06d2a 100%);
  color: #1d0c0c;
  font-family: var(--av3-font-d);
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  border: none;
  cursor: pointer;
  clip-path: polygon(14px 0, 100% 0, 100% calc(100% - 14px), calc(100% - 14px) 100%, 0 100%, 0 14px);
  box-shadow: 0 10px 24px -10px rgba(232,196,106,0.5);
  transition: transform 0.2s, filter 0.2s;
  overflow: hidden;
  isolation: isolate;
}
.av3-submit::before {
  content: '';
  position: absolute;
  z-index: -1;
  inset: 0;
  background: linear-gradient(135deg, transparent 0%, rgba(255,255,255,0.5) 50%, transparent 100%);
  transform: translateX(-110%);
  transition: transform 0.7s;
}
.av3-submit:hover {
  transform: translateY(-2px);
  filter: brightness(1.08);
}
.av3-submit:hover::before { transform: translateX(110%); }
.av3-submit:active { transform: translateY(0); }
.av3-submit i:first-child { font-size: 16px; }
.av3-submit-arrow { font-size: 14px; transition: transform 0.25s; }
.av3-submit:hover .av3-submit-arrow { transform: translateX(4px); }

/* Helper / toggle lines */
.av3-helper {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
  color: var(--av3-text-mute);
  margin-top: 2px;
}
.av3-helper a {
  color: var(--av3-gold);
  text-decoration: none;
  font-weight: 600;
}
.av3-helper a:hover { text-decoration: underline; }

/* 2026-05-26: T&C checkbox para registro */
.av3-tc-check {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 8px 4px 2px;
  cursor: pointer;
  user-select: none;
  font-size: 12.5px;
  color: var(--av3-text-mute);
  line-height: 1.4;
}
.av3-tc-check input[type="checkbox"] {
  position: absolute;
  opacity: 0;
  pointer-events: none;
  width: 0; height: 0;
}
.av3-tc-box {
  flex: 0 0 18px;
  width: 18px;
  height: 18px;
  border: 1.5px solid rgba(195, 157, 255, 0.35);
  border-radius: 5px;
  background: rgba(20, 16, 42, 0.4);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: all 0.18s;
  margin-top: 1px;
}
.av3-tc-box i {
  font-size: 13px;
  color: #0a0814;
  opacity: 0;
  transform: scale(0.6);
  transition: all 0.18s;
}
.av3-tc-check input:checked ~ .av3-tc-box {
  background: linear-gradient(135deg, var(--av3-gold, #c39dff), #8b6dff);
  border-color: var(--av3-gold, #c39dff);
}
.av3-tc-check input:checked ~ .av3-tc-box i {
  opacity: 1;
  transform: scale(1);
}
.av3-tc-check:hover .av3-tc-box { border-color: var(--av3-gold, #c39dff); }
.av3-tc-check input:focus-visible ~ .av3-tc-box {
  box-shadow: 0 0 0 3px rgba(195, 157, 255, 0.25);
}
.av3-tc-label { flex: 1; }
.av3-tc-label a {
  color: var(--av3-gold, #c39dff);
  text-decoration: underline;
  font-weight: 600;
}
.av3-tc-label a:hover { color: #fff; }

.av3-toggle {
  text-align: center;
  font-size: 13px;
  color: var(--av3-text-mute);
  padding-top: 8px;
}
.av3-toggle a {
  color: var(--av3-gold);
  text-decoration: none;
  font-weight: 700;
  margin-left: 6px;
}
.av3-toggle a:hover { text-decoration: underline; }

/* Trust row */
.av3-trust {
  display: flex;
  justify-content: space-between;
  gap: 6px;
  padding-top: 10px;
  margin-top: 4px;
  border-top: 1px solid var(--av3-line);
}
.av3-trust-item {
  flex: 1;
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  font-size: 10px;
  color: var(--av3-text-mute);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-align: center;
}
.av3-trust-item i { color: var(--av3-gold); font-size: 13px; }

/* ============================================================
   MINI STATS (compact strip)
   ============================================================ */
.av3-stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 6px;
}
.av3-stat {
  display: flex; flex-direction: column;
  padding: 10px 12px;
  background: rgba(0,0,0,0.32);
  border: 1px solid var(--av3-line);
  position: relative;
}
.av3-stat-lbl {
  font-size: 9px;
  color: var(--av3-text-mute);
  text-transform: uppercase;
  letter-spacing: 0.14em;
}
.av3-stat-val {
  font-family: var(--av3-font-d);
  font-size: 18px;
  font-weight: 800;
  color: var(--av3-text);
  margin-top: 4px;
}
.av3-stat-val i {
  font-size: 12px;
  color: var(--av3-gold);
  margin-right: 4px;
}

/* ============================================================
   WHY ELDORIA — compact bullet rows
   ============================================================ */
.av3-section-title {
  font-family: var(--av3-font-d);
  font-size: 11px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--av3-gold);
  margin-top: 8px;
  margin-bottom: 4px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.av3-section-title::after {
  content: '';
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, var(--av3-line-2) 0%, transparent 100%);
}

.av3-perks {
  display: grid;
  grid-template-columns: 1fr;
  gap: 4px;
}
.av3-perk {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 10px;
  background: rgba(0,0,0,0.2);
  border-left: 2px solid var(--av3-line-2);
  transition: all 0.2s;
}
.av3-perk:hover {
  background: rgba(232,196,106,0.06);
  border-left-color: var(--av3-gold);
}
.av3-perk-ico {
  width: 28px; height: 28px;
  display: grid; place-items: center;
  background: linear-gradient(145deg, rgba(232,196,106,0.16), transparent);
  color: var(--av3-gold);
  font-size: 14px;
  flex-shrink: 0;
}
.av3-perk-txt { font-size: 12px; line-height: 1.35; color: var(--av3-text-2); }
.av3-perk-txt b { color: var(--av3-text); }

/* ============================================================
   FOOTER LINKS (game-launcher dock)
   ============================================================ */
.av3-dock {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 4px;
  padding-top: 10px;
  margin-top: 4px;
  border-top: 1px solid var(--av3-line);
}
.av3-dock-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 10px 4px;
  background: rgba(0,0,0,0.28);
  border: 1px solid var(--av3-line);
  color: var(--av3-text-2);
  text-decoration: none;
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  transition: all 0.2s;
}
.av3-dock-btn:hover {
  background: rgba(232,196,106,0.08);
  border-color: var(--av3-line-2);
  color: var(--av3-gold);
}
.av3-dock-btn i { font-size: 18px; color: var(--av3-gold); }
.av3-dock-btn.is-tg i { color: var(--av3-cyan); }
.av3-dock-btn:hover.is-tg { color: var(--av3-cyan); }

/* ============================================================
   FORGOT-PWD modal (reused styles)
   ============================================================ */
.fp-modal { padding: 24px; max-width: 420px; }
.fp-icon {
  width: 56px; height: 56px;
  margin: 0 auto 12px;
  background: linear-gradient(145deg, rgba(232,196,106,0.22), rgba(232,196,106,0.05));
  border: 1px solid var(--av3-line-2);
  display: grid; place-items: center;
  color: var(--av3-gold);
  font-size: 26px;
  clip-path: polygon(12px 0, 100% 0, 100% calc(100% - 12px), calc(100% - 12px) 100%, 0 100%, 0 12px);
}
.fp-title {
  font-family: var(--av3-font-d);
  font-size: 20px;
  font-weight: 700;
  text-align: center;
  margin-bottom: 6px;
}
.fp-sub {
  font-size: 13px;
  color: var(--av3-text-2);
  text-align: center;
  margin-bottom: 16px;
}
.fp-submit { margin-top: 10px; }
.fp-cancel { margin-top: 6px; }

/* ============================================================
   Mobile tweaks
   ============================================================ */
@media (max-width: 899px) {
  /* iOS zoom-protection */
  .av3-field input { font-size: 16px; }
  .av3-p-brand-name { font-size: 18px; }
  .av3-p-brand-crest { width: 42px; height: 42px; }
  .av3-p-brand-crest img { width: 28px; height: 28px; }
  .av3-submit { padding: 14px 18px; font-size: 13px; }
  .av3-races { padding: 10px; }
  .av3-races::before { font-size: 8px; letter-spacing: 0.18em; }
}
@media (max-width: 480px) {
  .av3-dock { grid-template-columns: repeat(2, 1fr); }
  .av3-stats { grid-template-columns: repeat(2, 1fr); }
}

/* ============================================================
   Reduced motion
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
  .av3-slide { transition: opacity 0.4s ease; transform: none !important; }
  .av3-dot.is-active::after { animation: none; transform: scaleX(1); }
  .av3-tab-ind { transition: none; }
}
