/* ═══════════════════════════════════════════════════════════════
   VOLTLINGO v4 — BASE.CSS
   Design tokens · Reset · Typography · Animations
   Common components: header, buttons, inputs, toast, overlays
═══════════════════════════════════════════════════════════════ */

/* ──────────────────────────────────────────────────────────────
   1. DESIGN TOKENS
────────────────────────────────────────────────────────────── */
:root {
  /* Backgrounds */
  --bg:   #06070A;
  --bg1:  #0A0C12;
  --bg2:  #0F1219;
  --bg3:  #141820;
  --bg4:  #191E2A;
  --line: #1A1F30;
  --ln2:  #222840;
  --ln3:  #2C3450;

  /* Brand */
  --y:    #FFD60A;
  --y2:   #E8C000;
  --y3:   #C8A000;
  --yg:   rgba(255,214,10,.09);
  --yg2:  rgba(255,214,10,.05);

  /* Semantic */
  --ok:   #22C55E;
  --okg:  rgba(34,197,94,.10);
  --err:  #EF4444;
  --errg: rgba(239,68,68,.10);
  --pur:  #A78BFA;
  --pur2: #7C3AED;
  --gold: #F59E0B;

  /* Text */
  --t1:   #EEF0FF;
  --t2:   #7B83A6;
  --t3:   #404868;
  --t4:   #252D45;

  /* Typography */
  --syne: 'Syne', sans-serif;
  --mono: 'JetBrains Mono', monospace;

  /* Radii */
  --r1:   10px;
  --r2:   14px;
  --r3:   20px;
  --r4:   28px;

  /* Safe areas */
  --sat:  env(safe-area-inset-top,    0px);
  --sab:  env(safe-area-inset-bottom, 0px);
}

/* ──────────────────────────────────────────────────────────────
   2. RESET
────────────────────────────────────────────────────────────── */
*, *::before, *::after {
  margin: 0; padding: 0;
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
}
html { font-size: 16px; height: 100%; }
body {
  font-family: var(--syne);
  background:  var(--bg);
  color:       var(--t1);
  min-height:  100dvh;
  overflow-x:  hidden;
  overscroll-behavior: none;
  -webkit-font-smoothing: antialiased;
}
img, svg   { display: block; }
button     { font-family: inherit; cursor: pointer; border: none; background: none; }
input      { font-family: inherit; }
ul, ol     { list-style: none; }
a          { color: inherit; text-decoration: none; }
:focus-visible {
  outline:        2px solid var(--y);
  outline-offset: 3px;
  border-radius:  4px;
}

/* ──────────────────────────────────────────────────────────────
   3. BACKGROUND TEXTURE
────────────────────────────────────────────────────────────── */
body::before {
  content: '';
  position: fixed; inset: 0; pointer-events: none; z-index: 0;
  background-image:
    linear-gradient(rgba(255,214,10,.013) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,214,10,.013) 1px, transparent 1px);
  background-size: 44px 44px;
}
body::after {
  content: '';
  position: fixed; top: 0; left: 0; right: 0; height: 320px;
  background: radial-gradient(ellipse at 50% -5%, rgba(255,214,10,.05) 0%, transparent 65%);
  pointer-events: none; z-index: 0;
}

/* ──────────────────────────────────────────────────────────────
   4. SCREEN SYSTEM
────────────────────────────────────────────────────────────── */
.scr {
  position: fixed; inset: 0;
  display: none; flex-direction: column;
  overflow-y: auto; overflow-x: hidden;
  z-index: 1;
  padding-bottom: calc(var(--sab) + 16px);
  -webkit-overflow-scrolling: touch;
}
.scr.on    { display: flex; }
.scr.right { animation: slideInRight .28s cubic-bezier(.4,0,.2,1) both; }
.scr.left  { animation: slideInLeft  .28s cubic-bezier(.4,0,.2,1) both; }
.scr.up    { animation: slideInUp    .28s cubic-bezier(.4,0,.2,1) both; }

@keyframes slideInRight { from { opacity:0; transform:translateX(26px);  } }
@keyframes slideInLeft  { from { opacity:0; transform:translateX(-26px); } }
@keyframes slideInUp    { from { opacity:0; transform:translateY(22px);  } }
@keyframes fadeIn       { from { opacity:0; } }
@keyframes fadeUpIn     { from { opacity:0; transform:translateY(12px) scale(.94); } }
@keyframes popIn        { from { opacity:0; transform:scale(.5); } }
@keyframes shake        { 0%,100%{transform:translateX(0)} 20%,60%{transform:translateX(-8px)} 40%,80%{transform:translateX(8px)} }
@keyframes spin         { to { transform:rotate(360deg); } }

/* ──────────────────────────────────────────────────────────────
   5. LOADING SCREEN
────────────────────────────────────────────────────────────── */
#scr-loading {
  display: flex;
  align-items: center; justify-content: center;
  flex-direction: column; gap: 22px;
  background: var(--bg); z-index: 9999;
  position: fixed; inset: 0;
}
#scr-loading.gone { display: none !important; }
.ld-wave      { width: 120px; height: 40px; }
.ld-wave-path {
  stroke-dasharray: 300; stroke-dashoffset: 300;
  animation: drawWave 1.8s cubic-bezier(.4,0,.2,1) .15s forwards;
}
@keyframes drawWave { to { stroke-dashoffset: 0; } }

.ld-name {
  font-size: 44px; font-weight: 800; letter-spacing: -2.5px;
  background: linear-gradient(125deg, var(--y) 0%, #FF9500 60%, var(--y) 100%);
  background-size: 200%; -webkit-background-clip: text;
  -webkit-text-fill-color: transparent; background-clip: text;
  animation: fadeUpIn .6s .1s both, shimmer 3s 1.2s linear infinite;
}
@keyframes shimmer { 0%,100%{background-position:0%} 50%{background-position:100%} }
.ld-sub {
  font-family: var(--mono); font-size: 9px; letter-spacing: 3.5px;
  color: var(--t3); text-transform: uppercase;
  animation: fadeUpIn .6s .25s both;
}
.ld-bar      { width: 120px; height: 2px; background: var(--bg3); border-radius: 1px; overflow: hidden; }
.ld-bar-fill {
  height: 100%; border-radius: 1px;
  background: linear-gradient(90deg, var(--y3), var(--y));
  box-shadow: 0 0 8px rgba(255,214,10,.4);
  animation: ldFill 2s ease-out .3s forwards;
}
@keyframes ldFill { 0%{width:0%} 60%{width:75%} 100%{width:100%} }

/* ──────────────────────────────────────────────────────────────
   6. HEADER
────────────────────────────────────────────────────────────── */
.hdr {
  position: sticky; top: 0; z-index: 200;
  background: rgba(6,7,10,.92);
  backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--line);
  padding: 10px 16px;
  padding-top: calc(10px + var(--sat));
  display: flex; align-items: center; gap: 10px;
  flex-shrink: 0;
}
.hdr-brand {
  display: flex; align-items: center; gap: 8px;
  background: none; border: none; cursor: pointer;
  padding: 4px 6px; margin: -4px -6px;
  border-radius: var(--r2); transition: background .15s;
  flex-shrink: 0;
}
.hdr-brand:hover { background: var(--yg2); }
.hdr-hex {
  width: 30px; height: 30px; border-radius: 50%;
  background: var(--yg); border: 1px solid rgba(255,214,10,.25);
  display: flex; align-items: center; justify-content: center;
}
.hdr-hex svg { width: 16px; height: 16px; }
.hdr-name {
  font-size: 18px; font-weight: 800; letter-spacing: -1px;
  background: linear-gradient(125deg, var(--y), #FF9500);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}
.hdr-pills { display: flex; gap: 5px; margin-left: auto; }
.pill {
  display: flex; align-items: center; gap: 4px;
  padding: 5px 10px; border-radius: 20px;
  background: var(--bg3); border: 1px solid var(--ln2);
  font-family: var(--mono); font-size: 11px; font-weight: 700;
  transition: all .15s; cursor: pointer;
}
.pill:hover  { border-color: var(--ln3); background: var(--bg4); }
.pill:active { transform: scale(.95); }
.pill svg    { width: 12px; height: 12px; flex-shrink: 0; }
.pill-streak { color: var(--ok);   }
.pill-gems   { color: var(--pur);  }
.pill-xp     { color: var(--gold); }

/* btn-icon (X / close buttons) */
.btn-icon {
  width: 32px; height: 32px; border-radius: var(--r2);
  background: var(--bg3); border: 1px solid var(--ln2);
  color: var(--t2); display: flex; align-items: center; justify-content: center;
  flex-shrink: 0; transition: all .15s;
}
.btn-icon:hover  { background: var(--bg4); color: var(--t1); }
.btn-icon:active { transform: scale(.9); }
.btn-icon svg    { width: 13px; height: 13px; }

/* ──────────────────────────────────────────────────────────────
   7. BUTTONS
────────────────────────────────────────────────────────────── */
.btn-primary {
  background: var(--y); color: var(--bg);
  border: none; border-radius: var(--r2); padding: 14px 16px;
  font-family: var(--syne); font-size: 15px; font-weight: 800;
  letter-spacing: -.3px; width: 100%; cursor: pointer;
  box-shadow: 0 4px 20px rgba(255,214,10,.2);
  transition: all .15s; position: relative; overflow: hidden;
}
.btn-primary:hover:not(:disabled)  { box-shadow: 0 6px 28px rgba(255,214,10,.35); transform: translateY(-1px); }
.btn-primary:active:not(:disabled) { transform: scale(.98); opacity: .9; }
.btn-primary:disabled              { opacity: .22; cursor: default; box-shadow: none; transform: none; }

.btn-secondary {
  background: var(--bg3); color: var(--t1);
  border: 1.5px solid var(--ln2); border-radius: var(--r2); padding: 12px 16px;
  font-family: var(--mono); font-size: 12px; font-weight: 700;
  width: 100%; cursor: pointer; transition: all .15s;
  display: flex; align-items: center; justify-content: center; gap: 8px;
}
.btn-secondary:hover  { border-color: var(--ln3); background: var(--bg4); }
.btn-secondary:active { transform: scale(.97); }

.btn-ghost {
  background: transparent; color: var(--t2);
  border: 1.5px solid var(--ln2); border-radius: var(--r2); padding: 11px 16px;
  font-family: var(--mono); font-size: 11px; font-weight: 700;
  width: 100%; cursor: pointer; transition: all .15s;
}
.btn-ghost:hover { border-color: rgba(255,214,10,.3); color: var(--y); }

/* Ripple */
.ripple {
  position: absolute; border-radius: 50%; transform: scale(0);
  pointer-events: none; background: rgba(255,255,255,.15);
  animation: rippleAnim .45s linear;
}
@keyframes rippleAnim { to { transform:scale(4); opacity:0; } }

/* ──────────────────────────────────────────────────────────────
   8. INPUTS (auth forms)
────────────────────────────────────────────────────────────── */
.auth-field {
  display: flex; flex-direction: column; gap: 6px;
}
.auth-field label {
  font-family: var(--mono); font-size: 10px; font-weight: 700;
  color: var(--t2); letter-spacing: 1px; text-transform: uppercase;
}
.auth-field input {
  background: var(--bg2); border: 1.5px solid var(--ln2);
  border-radius: var(--r2); padding: 12px 14px;
  font-family: var(--mono); font-size: 13px; color: var(--t1);
  width: 100%; transition: border-color .15s, box-shadow .15s;
  -webkit-appearance: none;
}
.auth-field input::placeholder { color: var(--t3); }
.auth-field input:focus {
  outline: none; border-color: var(--y);
  box-shadow: 0 0 0 3px rgba(255,214,10,.12);
}
.auth-error {
  font-family: var(--mono); font-size: 10px; color: var(--err);
  min-height: 16px; line-height: 1.5;
}

/* ──────────────────────────────────────────────────────────────
   9. AD SLOTS
────────────────────────────────────────────────────────────── */
/* Ad slots hidden by default — only shown on map screen (AdSense policy fix) */
.ad-slot { display: none !important; }
#scr-map.on .ad-slot {
  background: var(--bg1); border: 1px dashed var(--t4);
  border-radius: var(--r2); margin: 5px 16px;
  display: flex !important; align-items: center; justify-content: center;
  font-family: var(--mono); font-size: 8px; letter-spacing: 2px;
  color: var(--t4); text-transform: uppercase; flex-shrink: 0;
}
.ad-slot.banner { min-height: 54px;  }
.ad-slot.thin   { min-height: 36px;  }
.ad-slot.square { min-height: 110px; }

/* ──────────────────────────────────────────────────────────────
   10. INSTALL BANNER
────────────────────────────────────────────────────────────── */
.install-bar {
  margin: 4px 16px; padding: 11px 14px; border-radius: var(--r3);
  background: rgba(255,214,10,.05); border: 1px solid rgba(255,214,10,.18);
  display: flex; align-items: center; gap: 12px; flex-shrink: 0;
}
.install-bar.gone { display: none; }
.install-bar strong { display: block; font-size: 12px; font-weight: 700; color: var(--y); }
.install-bar small  { font-family: var(--mono); font-size: 9px; color: var(--t2); }
.install-bar button {
  margin-left: auto; background: var(--y); color: var(--bg);
  border-radius: 9px; padding: 7px 14px;
  font-family: var(--syne); font-size: 11px; font-weight: 800;
  flex-shrink: 0; transition: opacity .15s;
}
.install-bar button:active { opacity: .85; }

/* ──────────────────────────────────────────────────────────────
   11. TOAST
────────────────────────────────────────────────────────────── */
#toast {
  position: fixed; bottom: calc(var(--sab) + 90px); left: 50%;
  transform: translateX(-50%) translateY(10px);
  z-index: 900; opacity: 0; pointer-events: none;
  background: var(--bg4); border: 1px solid var(--ln2);
  border-radius: 20px; padding: 8px 18px;
  font-family: var(--mono); font-size: 10px; font-weight: 700;
  color: var(--y); white-space: nowrap;
  box-shadow: 0 8px 24px rgba(0,0,0,.5);
  transition: opacity .28s, transform .28s cubic-bezier(.34,1.4,.64,1);
  max-width: calc(100vw - 32px); text-align: center;
}
#toast.on { opacity: 1; transform: translateX(-50%) translateY(0); }

/* ──────────────────────────────────────────────────────────────
   12. PARTICLES
────────────────────────────────────────────────────────────── */
#particles {
  position: fixed; inset: 0;
  pointer-events: none; z-index: 800; overflow: hidden;
}
.par {
  position: absolute; border-radius: 50%;
  animation: parFly var(--dur,.7s) ease-out var(--dly,0s) both;
}
.par.sq { border-radius: 3px; }
@keyframes parFly {
  0%   { transform:translate(0,0) scale(1) rotate(0deg); opacity:1; }
  100% { transform:translate(var(--tx),var(--ty)) scale(0) rotate(var(--rot,180deg)); opacity:0; }
}

/* ──────────────────────────────────────────────────────────────
   13. XP POP
────────────────────────────────────────────────────────────── */
#xp-pop {
  position: fixed; top: 50%; left: 50%;
  transform: translate(-50%,-50%) scale(0);
  z-index: 850; pointer-events: none;
  font-family: var(--syne); font-size: 42px; font-weight: 800;
  color: var(--y); text-shadow: 0 0 30px rgba(255,214,10,.7);
  letter-spacing: -2px;
}
#xp-pop.pop { animation: xpPop .85s cubic-bezier(.34,1.8,.64,1) both; }
@keyframes xpPop {
  0%  { transform:translate(-50%,-50%) scale(0); opacity:1; }
  55% { transform:translate(-50%,-70%) scale(1); opacity:1; }
  100%{ transform:translate(-50%,-85%) scale(.8); opacity:0; }
}

/* ──────────────────────────────────────────────────────────────
   14. ACHIEVEMENT POPUP
────────────────────────────────────────────────────────────── */
#achieve-popup {
  position: fixed; top: calc(var(--sat) + 70px); left: 50%;
  transform: translateX(-50%) translateY(-16px);
  z-index: 700; opacity: 0; pointer-events: none;
  width: calc(100% - 32px); max-width: 360px;
  transition: opacity .4s, transform .4s cubic-bezier(.34,1.6,.64,1);
}
#achieve-popup.show { opacity: 1; transform: translateX(-50%) translateY(0); }
.achieve-card {
  background: var(--bg2); border: 1px solid rgba(255,214,10,.25);
  border-radius: var(--r3); padding: 12px 16px;
  display: flex; align-items: center; gap: 12px;
  box-shadow: 0 8px 32px rgba(255,214,10,.14);
}
.achieve-icon {
  width: 44px; height: 44px; border-radius: 12px; flex-shrink: 0;
  background: var(--yg); border: 1px solid rgba(255,214,10,.25);
  display: flex; align-items: center; justify-content: center;
}
.achieve-icon svg { width: 24px; height: 24px; color: var(--y); }
.achieve-text strong { display: block; font-size: 12px; font-weight: 800; color: var(--y); }
.achieve-text span   { font-family: var(--mono); font-size: 9px; color: var(--t2); display: block; margin-top: 2px; }

/* ──────────────────────────────────────────────────────────────
   15. SAVE PROGRESS BANNER
────────────────────────────────────────────────────────────── */
#save-banner {
  position: fixed; bottom: calc(var(--sab) + 16px);
  left: 16px; right: 16px; z-index: 350;
  background: var(--bg2); border: 1.5px solid rgba(255,214,10,.3);
  border-radius: var(--r3); padding: 13px 14px;
  display: none; align-items: center; gap: 10px;
  box-shadow: 0 8px 32px rgba(0,0,0,.5);
  animation: slideUp .4s cubic-bezier(.34,1.2,.64,1);
}
#save-banner.on { display: flex; }
@keyframes slideUp { from { transform:translateY(100%); } }
.save-icon {
  width: 40px; height: 40px; border-radius: 11px; flex-shrink: 0;
  background: var(--yg); border: 1px solid rgba(255,214,10,.2);
  display: flex; align-items: center; justify-content: center;
}
.save-text strong { display: block; font-size: 12px; font-weight: 800; color: var(--y); }
.save-text small  { font-family: var(--mono); font-size: 9px; color: var(--t2); }
.save-btn {
  margin-left: auto; background: var(--y); color: var(--bg);
  border-radius: 9px; padding: 7px 13px;
  font-family: var(--syne); font-size: 11px; font-weight: 800;
  flex-shrink: 0; transition: opacity .15s;
}
.save-btn:active    { opacity: .85; }
.save-dismiss       { color: var(--t3); font-size: 16px; padding: 4px; flex-shrink: 0; }

/* ──────────────────────────────────────────────────────────────
   16. FEEDBACK PANEL
────────────────────────────────────────────────────────────── */
#feedback {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 400;
  transform: translateY(105%);
  transition: transform .35s cubic-bezier(.34,1.25,.64,1);
  padding-bottom: var(--sab);
}
#feedback.show { transform: translateY(0); }
.fb-panel {
  border-radius: var(--r3) var(--r3) 0 0;
  padding: 16px 18px 14px;
  display: flex; flex-direction: column; gap: 10px;
}
.fb-ok  { background: linear-gradient(175deg,#061710,#071410); border-top: 2.5px solid var(--ok);  }
.fb-bad { background: linear-gradient(175deg,#180608,#150407); border-top: 2.5px solid var(--err); }
.fb-row { display: flex; align-items: flex-start; gap: 12px; }
.fb-icon { flex-shrink: 0; }
.fb-icon svg { width: 28px; height: 28px; }
.fb-head {
  font-size: 16px; font-weight: 800; letter-spacing: -.4px; margin-bottom: 3px;
}
.fb-ok  .fb-head { color: var(--ok);  }
.fb-bad .fb-head { color: var(--err); }
.fb-exp {
  font-family: var(--mono); font-size: 10px; color: var(--t2); line-height: 1.75;
}
.fb-xp {
  display: inline-flex; align-items: center; gap: 5px;
  background: rgba(255,214,10,.08); border: 1px solid rgba(255,214,10,.18);
  color: var(--y); font-family: var(--mono); font-size: 9px; font-weight: 700;
  padding: 4px 10px; border-radius: 10px; width: fit-content;
}
.btn-continue {
  border: none; border-radius: var(--r2); padding: 14px;
  font-family: var(--syne); font-size: 14px; font-weight: 800;
  cursor: pointer; width: 100%; letter-spacing: -.3px; transition: opacity .15s;
}
.btn-continue:active { opacity: .85; }
.fb-ok  .btn-continue { background: var(--ok);  color: #000; }
.fb-bad .btn-continue { background: var(--err); color: #fff; }

/* ──────────────────────────────────────────────────────────────
   17. PREMIUM MODAL
────────────────────────────────────────────────────────────── */
#modal {
  position: fixed; inset: 0; z-index: 600;
  display: none; align-items: flex-end; justify-content: center;
}
#modal.on { display: flex; }
.modal-bg {
  position: absolute; inset: 0;
  background: rgba(6,7,10,.9);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  animation: fadeIn .25s both; cursor: pointer;
}
.modal-sheet {
  position: relative; z-index: 1;
  background: var(--bg1); border: 1px solid var(--ln2); border-bottom: none;
  border-radius: var(--r4) var(--r4) 0 0;
  padding: 20px 20px calc(var(--sab) + 20px);
  width: 100%; max-width: 500px;
  animation: slideUp .32s cubic-bezier(.34,1.2,.64,1);
  overflow-y: auto; max-height: 92dvh;
}
.modal-handle {
  width: 36px; height: 4px; background: var(--ln2);
  border-radius: 2px; margin: 0 auto 20px;
}
.modal-close {
  position: absolute; top: 16px; right: 16px;
  width: 28px; height: 28px; border-radius: 50%;
  background: var(--bg3); border: 1px solid var(--ln2);
  color: var(--t2); display: flex; align-items: center; justify-content: center;
  font-size: 13px; cursor: pointer; transition: all .15s; line-height: 1;
}
.modal-close:hover { background: var(--bg4); color: var(--t1); }
.modal-pro-badge {
  display: inline-block; margin: 0 auto 14px;
  background: linear-gradient(135deg, var(--pur), var(--pur2));
  border-radius: 12px; padding: 7px 20px;
  font-family: var(--mono); font-size: 10px; font-weight: 700;
  letter-spacing: 1px; color: #fff;
  box-shadow: 0 4px 14px rgba(124,58,237,.3);
}
.modal-title {
  font-size: 24px; font-weight: 800; letter-spacing: -1px;
  text-align: center; margin-bottom: 7px;
}
.modal-title em { font-style: normal; color: var(--pur); }
.modal-sub {
  font-family: var(--mono); font-size: 10px; color: var(--t2);
  text-align: center; line-height: 1.7; margin-bottom: 20px;
}
.modal-features { margin-bottom: 20px; }
.modal-features li {
  display: flex; align-items: center; gap: 10px;
  font-size: 13px; font-weight: 600; margin-bottom: 11px; line-height: 1.4;
}
.modal-features li svg { width: 16px; height: 16px; flex-shrink: 0; }
.btn-pro {
  background: linear-gradient(135deg, var(--pur), var(--pur2)); color: #fff;
  border: none; border-radius: var(--r2); padding: 15px; width: 100%;
  font-family: var(--syne); font-size: 14px; font-weight: 800;
  cursor: pointer; margin-bottom: 9px; letter-spacing: -.3px;
  box-shadow: 0 4px 20px rgba(124,58,237,.3); transition: all .15s;
}
.btn-pro:hover  { box-shadow: 0 6px 28px rgba(124,58,237,.45); transform: translateY(-1px); }
.btn-pro:active { transform: scale(.98); opacity: .9; }
.btn-watchad {
  background: var(--bg2); border: 1.5px solid var(--ln2); color: var(--t2);
  border-radius: var(--r2); padding: 12px; width: 100%;
  font-family: var(--mono); font-size: 11px; font-weight: 700;
  cursor: pointer; transition: all .15s; text-align: center;
}
.btn-watchad:hover { border-color: rgba(255,214,10,.3); color: var(--y); }

/* ──────────────────────────────────────────────────────────────
   18. AUTH SCREEN
────────────────────────────────────────────────────────────── */
#scr-auth {
  background: var(--bg);
  align-items: center; justify-content: flex-start;
  padding-bottom: calc(var(--sab) + 24px);
}
.auth-inner {
  width: 100%; max-width: 400px; margin: 0 auto;
  padding: 32px 20px;
  display: flex; flex-direction: column; gap: 14px;
}
.auth-top {
  display: flex; flex-direction: column;
  align-items: center; gap: 10px; margin-bottom: 4px;
  animation: fadeUpIn .5s both;
}
.auth-bot {
  width: 64px; height: 78px;
  animation: botFloat 4s ease-in-out infinite;
  filter: drop-shadow(0 4px 12px rgba(255,214,10,.2));
}
@keyframes botFloat {
  0%,100%{transform:translateY(0)} 50%{transform:translateY(-6px)}
}
.auth-logo {
  font-size: 42px; font-weight: 800; letter-spacing: -2.5px;
  background: linear-gradient(125deg, var(--y), #FF9500);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}
.auth-tagline {
  font-family: var(--mono); font-size: 9px; letter-spacing: 2.5px;
  color: var(--t3); text-transform: uppercase;
}

/* Tabs */
.auth-tabs {
  display: flex; border-radius: var(--r2); background: var(--bg2);
  border: 1px solid var(--ln2); padding: 3px; gap: 3px;
  animation: fadeUpIn .5s .1s both;
}
.auth-tab {
  flex: 1; padding: 9px; border-radius: 10px;
  font-family: var(--syne); font-size: 12px; font-weight: 700;
  color: var(--t2); cursor: pointer; transition: all .2s;
}
.auth-tab.active { background: var(--bg4); color: var(--y); box-shadow: 0 2px 8px rgba(0,0,0,.3); }

/* Panels */
.auth-panel { display: flex; flex-direction: column; gap: 11px; animation: fadeIn .25s both; }
.auth-panel.hidden { display: none; }

/* Google button */
.btn-google {
  display: flex; align-items: center; justify-content: center; gap: 12px;
  background: #fff; color: #1F1F1F; border: none; border-radius: var(--r2);
  padding: 13px 20px; font-family: var(--syne); font-size: 14px; font-weight: 700;
  cursor: pointer; width: 100%; transition: all .15s;
  box-shadow: 0 2px 12px rgba(0,0,0,.3);
}
.btn-google:hover  { box-shadow: 0 4px 20px rgba(0,0,0,.4); transform: translateY(-1px); }
.btn-google:active { transform: scale(.98); }
.btn-google:disabled { opacity: .6; cursor: default; transform: none; }

/* Or divider */
.auth-or {
  display: flex; align-items: center; gap: 12px;
  font-family: var(--mono); font-size: 9px; color: var(--t3);
  letter-spacing: 1px; text-transform: uppercase;
}
.auth-or::before, .auth-or::after {
  content: ''; flex: 1; height: 1px; background: var(--line);
}

/* Guest + terms */
.auth-guest { margin-top: 2px; animation: fadeUpIn .5s .2s both; }
.auth-terms {
  font-family: var(--mono); font-size: 8px; color: var(--t3);
  text-align: center; line-height: 1.7;
  animation: fadeIn .5s .3s both;
}

/* ──────────────────────────────────────────────────────────────
   19. VoltBot mascot (shared)
────────────────────────────────────────────────────────────── */
.map-bot {
  width: 60px; height: 72px; flex-shrink: 0;
  animation: botFloat 4s ease-in-out infinite;
  filter: drop-shadow(0 4px 12px rgba(255,214,10,.18));
}

/* ──────────────────────────────────────────────────────────────
   20. SBX FOOTER
────────────────────────────────────────────────────────────── */
.sbx-footer {
  display: flex; align-items: center; justify-content: center; gap: 7px;
  padding: 18px 16px; border-top: 1px solid var(--line); flex-shrink: 0;
}
.sbx-footer span   { font-family: var(--mono); font-size: 8px; color: var(--t3); letter-spacing: 1.5px; text-transform: uppercase; }
.sbx-footer strong {
  font-family: var(--syne); font-size: 12px; font-weight: 800;
  background: linear-gradient(125deg, var(--y), #FF9500);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
  opacity: .55; letter-spacing: 1px;
}

/* ──────────────────────────────────────────────────────────────
   21. UTILITIES
────────────────────────────────────────────────────────────── */
.gone  { display: none !important; }
.shake { animation: shake .38s ease; }
.hidden { display: none; }
.section-label {
  font-family: var(--mono); font-size: 9px; font-weight: 700;
  letter-spacing: 2.5px; color: var(--t2); text-transform: uppercase;
  margin-bottom: 12px;
}

/* Scrollbar */
::-webkit-scrollbar             { width: 3px; }
::-webkit-scrollbar-track       { background: transparent; }
::-webkit-scrollbar-thumb       { background: var(--ln2); border-radius: 2px; }
::-webkit-scrollbar-thumb:hover { background: var(--ln3); }
::selection { background: rgba(255,214,10,.25); color: var(--t1); }

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    transition-duration: .01ms !important;
  }
}

/* ── HEARTS PILL ── */
.pill-hearts {
  background: rgba(239,68,68,.08);
  border: 1px solid rgba(239,68,68,.2);
}
.pill-hearts svg path { fill: #EF4444; }
.pill-hearts.hearts-low   { background: rgba(239,68,68,.15); border-color: rgba(239,68,68,.4); animation: heartPulse 1.2s ease-in-out infinite; }
.pill-hearts.hearts-empty { background: rgba(239,68,68,.2);  border-color: rgba(239,68,68,.6); animation: heartPulse .8s ease-in-out infinite; }
.pill-hearts.hearts-full  { background: rgba(239,68,68,.06); border-color: rgba(239,68,68,.15); }
@keyframes heartPulse { 0%,100%{box-shadow:0 0 0 0 rgba(239,68,68,0)} 50%{box-shadow:0 0 8px 2px rgba(239,68,68,.3)} }

/* ── STREAK FREEZE CARD ── */
.freeze-card {
  display:flex; align-items:center; gap:12px;
  background:rgba(34,211,238,.05); border:1px solid rgba(34,211,238,.18);
  border-radius:var(--r2); padding:13px 15px; flex-shrink:0;
}
.freeze-ico { font-size:24px; flex-shrink:0; }
.freeze-info { flex:1; min-width:0; }
.freeze-info strong { display:block; font-size:13px; font-weight:700; }
.freeze-info small  { font-family:var(--mono); font-size:9px; color:var(--t2); display:block; margin-top:2px; }
.freeze-chips { display:flex; align-items:center; gap:6px; margin-top:6px; }
.freeze-chip  { font-size:14px; }
.freeze-chip.active { filter: drop-shadow(0 0 4px rgba(34,211,238,.5)); }
.freeze-stock { font-family:var(--mono); font-size:8px; color:var(--t3); margin-left:4px; }
.freeze-btn {
  padding:7px 13px; border-radius:9px; font-family:var(--mono);
  font-size:10px; font-weight:700; cursor:pointer; flex-shrink:0;
  background:rgba(34,211,238,.1); border:1.5px solid rgba(34,211,238,.3);
  color:#22D3EE; transition:all .15s;
}
.freeze-btn:hover { background:rgba(34,211,238,.2); border-color:#22D3EE; }
.freeze-btn.maxed { background:rgba(255,255,255,.05); border-color:rgba(255,255,255,.1); color:var(--t3); cursor:not-allowed; }


/* ── SIGN IN PILL (header, guests only) ── */
.signin-pill {
  padding: 6px 14px; border-radius: 10px;
  font-family: var(--mono); font-size: 10px; font-weight: 700;
  letter-spacing: .4px; text-transform: uppercase;
  background: var(--y); color: #06070A;
  border: none; cursor: pointer; flex-shrink: 0;
  transition: all .18s; display: none; align-items: center;
}
.signin-pill:hover { background: #FFE44D; transform: scale(1.04); }
.signin-pill:active { transform: scale(.97); }

/* ── AUTH CLOSE BUTTON ── */
.auth-close {
  position: absolute; top: 16px; right: 16px;
  width: 36px; height: 36px; border-radius: 10px;
  background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.1);
  color: rgba(255,255,255,.5); cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: all .18s;
}
.auth-close:hover { background: rgba(255,255,255,.1); color: var(--t1); }
.auth-inner { position: relative; }