/* ═══════════════════════════════════════════════════
   FIGUS MUNDIAL 2026 — Design System
   Dark Gold Premium Theme
   ═══════════════════════════════════════════════════ */

/* ── Variables — Tema Claro (default) ───────────── */
:root {
  --gold:         #D4A800;
  --gold-light:   #FFD700;
  --gold-dark:    #A07800;
  --gold-glow:    rgba(212,168,0,.2);
  --gold-subtle:  rgba(212,168,0,.09);

  --bg-deep:   #eeeef5;
  --bg-dark:   #f6f6fc;
  --bg-medium: #e8e8f0;
  --bg-card:   #ffffff;
  --bg-card2:  #f2f2fa;
  --bg-overlay:rgba(238,238,245,.92);
  --bg-nav:    rgba(255,255,255,.92);
  --bg-nav-bottom: rgba(255,255,255,.97);
  --profile-grad-end: #e8e8f8;
  --scrollbar-thumb: #c0c0d8;
  --glass-bg:  rgba(0,0,0,.04);

  --text-1:    #1a1a2e;
  --text-2:    #4a4a6a;
  --text-3:    #8888a8;

  --success:   #00a87a;
  --danger:    #e0323f;
  --warning:   #d4820a;
  --info:      #0f87c3;

  --border:    rgba(0,0,0,.12);
  --border-2:  rgba(0,0,0,.07);

  --radius-sm: 8px;
  --radius:    14px;
  --radius-lg: 22px;
  --radius-xl: 32px;

  --shadow:      0 8px 32px rgba(0,0,0,.1);
  --shadow-gold: 0 0 40px rgba(212,168,0,.15);
  --shadow-card: 0 4px 24px rgba(0,0,0,.07);

  --nav-h:     64px;
  --top-h:     60px;
  --transition: .22s cubic-bezier(.4,0,.2,1);
}

/* ── Tema Oscuro ─────────────────────────────────── */
html.theme-dark {
  --gold:         #FFD700;
  --gold-light:   #FFE44D;
  --gold-dark:    #D4A800;
  --gold-glow:    rgba(255,215,0,.25);
  --gold-subtle:  rgba(255,215,0,.08);

  --bg-deep:   #050505;
  --bg-dark:   #0a0a0a;
  --bg-medium: #111118;
  --bg-card:   #16162a;
  --bg-card2:  #1e1e38;
  --bg-overlay:rgba(5,5,5,.85);
  --bg-nav:    rgba(10,10,10,.9);
  --bg-nav-bottom: rgba(10,10,10,.95);
  --profile-grad-end: #1a1a3a;
  --scrollbar-thumb: #333;
  --glass-bg:  rgba(255,255,255,.04);

  --text-1:    #ffffff;
  --text-2:    #b0b0c8;
  --text-3:    #6a6a88;

  --success:   #00d4aa;
  --danger:    #ff4757;
  --warning:   #ffa502;
  --info:      #4fc3f7;

  --border:    rgba(255,215,0,.15);
  --border-2:  rgba(255,255,255,.06);

  --shadow:      0 8px 32px rgba(0,0,0,.55);
  --shadow-gold: 0 0 40px rgba(255,215,0,.2);
  --shadow-card: 0 4px 24px rgba(0,0,0,.4);
}

/* ── Tema Mundialista ────────────────────────────── */
html.theme-mundial {
  --gold:         #FFD700;
  --gold-light:   #FFE44D;
  --gold-dark:    #D4A800;
  --gold-glow:    rgba(255,215,0,.3);
  --gold-subtle:  rgba(255,215,0,.1);

  --bg-deep:   #030e07;
  --bg-dark:   #061510;
  --bg-medium: #091c15;
  --bg-card:   #0c261a;
  --bg-card2:  #123020;
  --bg-overlay:rgba(3,14,7,.88);
  --bg-nav:    rgba(6,21,16,.92);
  --bg-nav-bottom: rgba(6,21,16,.97);
  --profile-grad-end: #0c2a18;
  --scrollbar-thumb: #1a5c30;
  --glass-bg:  rgba(255,255,255,.04);

  --text-1:    #e8f5e9;
  --text-2:    #a5d6a7;
  --text-3:    #5a9e62;

  --success:   #69f0ae;
  --danger:    #ff5252;
  --warning:   #ffd740;
  --info:      #40c4ff;

  --border:    rgba(76,175,80,.22);
  --border-2:  rgba(255,255,255,.06);

  --shadow:      0 8px 32px rgba(0,0,0,.6);
  --shadow-gold: 0 0 40px rgba(255,215,0,.25);
  --shadow-card: 0 4px 24px rgba(0,0,0,.45);
}

/* ── Reset ──────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; scroll-behavior: smooth; -webkit-tap-highlight-color: transparent; }
body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background: var(--bg-dark);
  color: var(--text-1);
  min-height: 100vh;
  line-height: 1.5;
  overflow-x: hidden;
}
a { color: var(--gold); text-decoration: none; }
img { display: block; max-width: 100%; }
button, input, select, textarea { font: inherit; }
ul { list-style: none; }

/* ── Scrollbar ──────────────────────────────────── */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: var(--bg-medium); }
::-webkit-scrollbar-thumb { background: var(--scrollbar-thumb); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--gold-dark); }

/* ── Typography ─────────────────────────────────── */
h1,h2,h3,h4 { font-weight: 700; line-height: 1.2; }
h1 { font-size: clamp(1.8rem,5vw,3rem); }
h2 { font-size: clamp(1.3rem,3vw,2rem); }
h3 { font-size: 1.1rem; }
.gradient-text {
  background: linear-gradient(135deg, var(--gold) 0%, #fff 60%, var(--gold-light) 100%);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ── Layout ─────────────────────────────────────── */
.container { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 1rem; }
.logged-in .container { padding-bottom: calc(var(--nav-h) + 1rem); }

.page-content {
  padding-top: calc(var(--top-h) + 1rem);
  min-height: 100vh;
}

/* ── Top Bar ─────────────────────────────────────── */
.top-bar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  height: var(--top-h);
  background: var(--bg-nav);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border-bottom: 1px solid var(--border);
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 1rem;
}
.top-bar .logo {
  display: flex; align-items: center; gap: .5rem;
  font-size: 1.1rem; font-weight: 800; color: var(--gold);
  letter-spacing: -.01em;
}
.top-bar .logo span { font-size: 1.4rem; }
.top-bar .user-chip {
  display: flex; align-items: center; gap: .5rem;
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: 99px; padding: .25rem .75rem .25rem .3rem;
  font-size: .85rem; color: var(--text-2);
  cursor: pointer; transition: var(--transition);
}
.top-bar .user-chip:hover { border-color: var(--gold); color: var(--text-1); }
.avatar {
  width: 32px; height: 32px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: .8rem; color: #000; flex-shrink: 0;
}

/* ── Bottom Navigation ─────────────────────────── */
.bottom-nav {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 100;
  height: var(--nav-h);
  background: var(--bg-nav-bottom);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-top: 1px solid var(--border);
  display: flex; align-items: stretch;
  padding-bottom: env(safe-area-inset-bottom);
}
.bottom-nav a {
  flex: 1; display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  gap: .2rem; color: var(--text-3); font-size: .68rem;
  font-weight: 500; text-transform: uppercase; letter-spacing: .04em;
  transition: var(--transition); position: relative;
}
.bottom-nav a .nav-icon { font-size: 1.4rem; transition: var(--transition); }
.bottom-nav a.active, .bottom-nav a:hover { color: var(--gold); }
.bottom-nav a.active .nav-icon { transform: scale(1.15); }
.bottom-nav a.active::after {
  content: ''; position: absolute; bottom: 0; left: 50%;
  transform: translateX(-50%);
  width: 32px; height: 3px;
  background: var(--gold); border-radius: 3px 3px 0 0;
}
.badge-dot {
  position: absolute; top: 6px; right: calc(50% - 16px);
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--danger); border: 2px solid var(--bg-dark);
}

/* ── Cards ───────────────────────────────────────── */
.card {
  background: var(--bg-card);
  border: 1px solid var(--border-2);
  border-radius: var(--radius-lg);
  padding: 1.25rem;
  transition: var(--transition);
}
.card:hover { border-color: var(--border); transform: translateY(-2px); box-shadow: var(--shadow-card); }
.card.gold-border { border-color: var(--border); box-shadow: 0 0 20px var(--gold-glow); }

.glass-card {
  background: var(--glass-bg);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--border-2);
  border-radius: var(--radius-lg);
}

/* ── Sticker Cards ───────────────────────────────── */
.sticker-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(95px, 1fr));
  gap: .6rem;
}
.sticker-card {
  position: relative;
  aspect-ratio: 3/4;
  border-radius: var(--radius);
  overflow: hidden;
  cursor: pointer;
  transition: transform .2s, box-shadow .2s;
  border: 2px solid transparent;
  user-select: none;
}
.sticker-card:hover { transform: scale(1.05); z-index: 2; }
.sticker-card.tengo   { border-color: #39ff14; box-shadow: 0 0 12px rgba(57,255,20,.4); }
.sticker-card.repite  { border-color: var(--gold); box-shadow: 0 0 12px rgba(255,215,0,.45); }
.sticker-card.quiero  { border-color: #ff3b3b; box-shadow: 0 0 12px rgba(255,59,59,.35); }


.sticker-inner {
  position: absolute; inset: 0;
  display: flex; flex-direction: column;
  align-items: center; justify-content: flex-end;
}
.sticker-bg {
  position: absolute; inset: 0;
  background: linear-gradient(160deg, var(--c1, #333) 0%, var(--c2, #111) 100%);
}
.sticker-shine {
  position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(255,255,255,.15) 0%, transparent 50%, rgba(255,255,255,.05) 100%);
}
.sticker-num {
  position: absolute; top: 5px; left: 6px;
  font-size: .6rem; font-weight: 700; color: rgba(255,255,255,.7);
  letter-spacing: .03em; text-shadow: 0 1px 3px rgba(0,0,0,.6);
  line-height: 1;
}
.sticker-flag {
  position: absolute; top: 4px; right: 5px;
  font-size: .85rem; line-height: 1;
}
.sticker-name {
  position: relative; z-index: 1;
  width: 100%; text-align: center;
  font-size: .5rem; font-weight: 700;
  color: #fff; text-transform: uppercase;
  text-shadow: 0 2px 8px rgba(0,0,0,.9);
  background: linear-gradient(transparent, rgba(0,0,0,.7));
  padding: .5rem .2rem .5rem;
  margin: 0 -.4rem -.4rem;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.sticker-pos {
  font-size: .5rem; color: rgba(255,255,255,.6);
  text-transform: uppercase; letter-spacing: .05em;
  font-weight: 600;
}

/* Repetidas +/- buttons in modal */
.rep-btn {
  background: var(--bg-card2);
  border: 2px solid var(--border);
  color: var(--text-1);
  border-radius: 10px;
  width: 52px; height: 52px;
  cursor: pointer;
  font-size: 1.6rem; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
  transition: var(--transition);
  line-height: 1;
}
.rep-btn:hover  { border-color: var(--gold); background: var(--gold-subtle); }
.rep-btn:active { transform: scale(.92); }

/* Player photo inside sticker card */
.sticker-photo {
  position: absolute;
  bottom: 0; left: 50%; transform: translateX(-50%);
  height: 82%;
  width: auto;
  max-width: 110%;
  object-fit: contain;
  object-position: bottom;
  z-index: 1;
  filter: drop-shadow(0 2px 8px rgba(0,0,0,.7));
}

/* Photo in sticker modal */
.modal-photo-wrap {
  display: flex; justify-content: center;
  margin: .5rem 0 1rem;
}
.modal-photo {
  height: 130px;
  width: auto;
  border-radius: var(--radius);
  object-fit: contain;
  filter: drop-shadow(0 4px 12px rgba(0,0,0,.6));
}

/* Brillante sticker */
.sticker-card.brillante .sticker-bg {
  background: linear-gradient(135deg, #1a0a00, #3a1a00, #1a0a20);
}
.sticker-card.brillante::before {
  content: '';
  position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(105deg,
    transparent 20%, rgba(255,215,0,.4) 30%,
    rgba(255,255,255,.6) 40%, rgba(255,215,0,.4) 50%,
    transparent 60%);
  background-size: 200% 100%;
  animation: shimmer 3s linear infinite;
}
@keyframes shimmer {
  0%   { background-position: -100% center; }
  100% { background-position: 300% center; }
}
.sticker-card.brillante .sticker-num::after {
  content: '⭐'; margin-left: 2px;
}

/* Status badges on sticker */
.sticker-status {
  position: absolute; bottom: 0; right: 0;
  font-size: .7rem; padding: 1px 5px;
  border-radius: 4px 0 var(--radius) 0;
  font-weight: 700; z-index: 2; line-height: 1.5;
}
.sticker-status.s-tengo  { background: #39ff14; color: #000; }
.sticker-status.s-repite { background: var(--gold); color: #000; }
.sticker-status.s-quiero { background: #ff3b3b; color: #fff; }

/* ── Buttons ──────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: .5rem; padding: .65rem 1.4rem;
  border: none; border-radius: var(--radius);
  font-weight: 700; font-size: .95rem;
  cursor: pointer; transition: var(--transition);
  white-space: nowrap; text-decoration: none;
  -webkit-user-select: none; user-select: none;
}
.btn:active { transform: scale(.97); }
.btn-gold {
  background: linear-gradient(135deg, #FFD700 0%, #FFC200 100%);
  color: #000;
  box-shadow: 0 4px 20px rgba(255,215,0,.3);
}
.btn-gold:hover { background: linear-gradient(135deg, #FFE44D 0%, #FFD700 100%); box-shadow: 0 6px 28px rgba(255,215,0,.5); }
.btn-outline {
  background: transparent; color: var(--gold);
  border: 1.5px solid var(--gold);
}
.btn-outline:hover { background: var(--gold-subtle); }
.btn-ghost { background: var(--bg-card); color: var(--text-2); border: 1px solid var(--border-2); }
.btn-ghost:hover { border-color: var(--border); color: var(--text-1); }
.btn-danger { background: var(--danger); color: #fff; }
.btn-success { background: var(--success); color: #000; }
.btn-sm { padding: .4rem .9rem; font-size: .82rem; border-radius: var(--radius-sm); }
.btn-lg { padding: .85rem 2rem; font-size: 1.05rem; }
.btn-full { width: 100%; }
.btn:disabled { opacity: .45; cursor: not-allowed; pointer-events: none; }

/* ── Forms ───────────────────────────────────────── */
.form-group { display: flex; flex-direction: column; gap: .4rem; }
.form-group label { font-size: .85rem; font-weight: 600; color: var(--text-2); }
.form-control {
  background: var(--bg-medium); border: 1.5px solid var(--border-2);
  color: var(--text-1); border-radius: var(--radius);
  padding: .7rem 1rem; font-size: .95rem;
  transition: var(--transition); width: 100%;
}
.form-control:focus { outline: none; border-color: var(--gold); background: var(--bg-card); box-shadow: 0 0 0 3px var(--gold-glow); }
.form-control::placeholder { color: var(--text-3); }
.form-control.error { border-color: var(--danger); }
.form-hint { font-size: .78rem; color: var(--text-3); }
.form-error { font-size: .8rem; color: var(--danger); }

/* Input with icon */
.input-wrap { position: relative; }
.input-wrap .input-icon {
  position: absolute; left: .9rem; top: 50%; transform: translateY(-50%);
  font-size: 1.1rem; pointer-events: none;
}
.input-wrap .form-control { padding-left: 2.6rem; }
.input-wrap.icon-right .input-icon { left: auto; right: .9rem; }
.input-wrap.icon-right .form-control { padding-left: 1rem; padding-right: 2.6rem; }

/* Search bar */
.search-bar {
  display: flex; align-items: center; gap: .5rem;
  background: var(--bg-card); border: 1.5px solid var(--border-2);
  border-radius: 99px; padding: .5rem 1rem;
  transition: var(--transition);
}
.search-bar:focus-within { border-color: var(--gold); box-shadow: 0 0 0 3px var(--gold-glow); }
.search-bar input { background: none; border: none; color: var(--text-1); flex: 1; font-size: .95rem; }
.search-bar input:focus { outline: none; }
.search-bar input::placeholder { color: var(--text-3); }
.search-bar .search-icon { color: var(--text-3); font-size: 1.1rem; }

/* ── Badges / Tags ───────────────────────────────── */
.badge {
  display: inline-flex; align-items: center; gap: .25rem;
  padding: .2rem .6rem; border-radius: 99px;
  font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .04em;
}
.badge-gold    { background: rgba(255,215,0,.15); color: var(--gold); border: 1px solid rgba(255,215,0,.3); }
.badge-success { background: rgba(0,212,170,.15); color: var(--success); border: 1px solid rgba(0,212,170,.3); }
.badge-info    { background: rgba(79,195,247,.15); color: var(--info); border: 1px solid rgba(79,195,247,.3); }
.badge-danger  { background: rgba(255,71,87,.15);  color: var(--danger); border: 1px solid rgba(255,71,87,.3); }
.badge-muted   { background: var(--bg-card2); color: var(--text-3); border: 1px solid var(--border-2); }

/* ── Stat cards ─────────────────────────────────── */
.stats-grid { display: grid; grid-template-columns: repeat(2,1fr); gap: .75rem; }
@media (min-width: 480px) { .stats-grid { grid-template-columns: repeat(4,1fr); } }
.stat-card {
  background: var(--bg-card); border: 1px solid var(--border-2);
  border-radius: var(--radius); padding: 1rem;
  text-align: center; transition: var(--transition);
}
.stat-card:hover { border-color: var(--border); }
.stat-number { font-size: 1.8rem; font-weight: 800; line-height: 1; }
.stat-label  { font-size: .72rem; text-transform: uppercase; letter-spacing: .06em; color: var(--text-3); margin-top: .3rem; }
.stat-gold   .stat-number { color: var(--gold); }
.stat-green  .stat-number { color: var(--success); }
.stat-blue   .stat-number { color: var(--info); }
.stat-red    .stat-number { color: var(--danger); }

/* Progress bar */
.progress-bar-wrap { background: var(--bg-medium); border-radius: 99px; height: 8px; overflow: hidden; }
.progress-bar {
  height: 100%; border-radius: 99px;
  background: linear-gradient(90deg, var(--gold-dark), var(--gold));
  transition: width .8s cubic-bezier(.4,0,.2,1);
  box-shadow: 0 0 8px rgba(255,215,0,.5);
}

/* ── Section headers ─────────────────────────────── */
.section-header {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 1rem;
}
.section-title { font-size: 1rem; font-weight: 700; color: var(--text-1); display: flex; align-items: center; gap: .4rem; }
.section-title::before { content: ''; display: block; width: 3px; height: 1em; background: var(--gold); border-radius: 2px; }

/* ── Team filter pills ───────────────────────────── */
.filter-pills {
  display: flex; gap: .4rem; overflow-x: auto; padding-bottom: .3rem;
  scrollbar-width: none; -ms-overflow-style: none;
}
.filter-pills::-webkit-scrollbar { display: none; }
.pill {
  flex-shrink: 0; padding: .35rem .9rem; border-radius: 99px;
  font-size: .78rem; font-weight: 600; cursor: pointer;
  background: var(--bg-card); border: 1.5px solid var(--border-2);
  color: var(--text-2); transition: var(--transition); white-space: nowrap;
}
.pill:hover, .pill.active { background: var(--gold-subtle); border-color: var(--gold); color: var(--gold); }

/* ── Match card (compact grid) ───────────────────── */
.match-card {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: .7rem;
  display: flex; flex-direction: column; gap: .55rem;
  transition: var(--transition);
}
.match-card:hover { box-shadow: 0 0 20px var(--gold-glow); transform: translateY(-1px); }

.match-stickers-hero {
  display: flex; gap: .35rem; justify-content: center;
}

.match-sticker-card {
  position: relative;
  border-radius: 9px; overflow: hidden;
}
.match-sticker-bg {
  position: absolute; inset: 0;
  background: linear-gradient(160deg, var(--c1,#333) 0%, var(--c2,#111) 100%);
}
.match-sticker-card img {
  position: absolute; bottom: 0; left: 50%; transform: translateX(-50%);
  height: 82%; width: auto; max-width: 120%;
  object-fit: contain; object-position: bottom; z-index: 1;
  filter: drop-shadow(0 2px 6px rgba(0,0,0,.7));
}
.match-sticker-flag {
  position: absolute; top: 3px; right: 4px;
  font-size: .7rem; line-height: 1; z-index: 2;
}
.match-sticker-num {
  position: absolute; top: 3px; left: 5px;
  font-size: .55rem; font-weight: 700; color: rgba(255,255,255,.85);
  text-shadow: 0 1px 3px rgba(0,0,0,.8); z-index: 2; line-height: 1;
}
.match-sticker-name {
  position: absolute; bottom: 0; left: 0; right: 0; z-index: 2;
  text-align: center; font-size: .5rem; font-weight: 700;
  color: #fff; text-transform: uppercase; letter-spacing: .03em;
  text-shadow: 0 1px 3px rgba(0,0,0,.9);
  background: linear-gradient(transparent, rgba(0,0,0,.75));
  padding: .4rem .15rem .2rem;
}

.match-user-info {
  display: flex; align-items: center; gap: .45rem;
}
.match-user-name {
  font-weight: 700; font-size: .82rem; color: var(--text-1);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}

.btn-wa-full {
  display: flex; align-items: center; justify-content: center; gap: .35rem;
  width: 100%; padding: .5rem .5rem; border-radius: var(--radius-sm);
  background: #25D366; color: #fff; font-weight: 700; font-size: .75rem;
  text-decoration: none; transition: var(--transition); border: none; cursor: pointer;
}
.btn-wa-full:hover  { background: #1ebe5a; box-shadow: 0 4px 12px rgba(37,211,102,.35); }
.btn-wa-full:active { transform: scale(.97); }

/* ── Alert / Toast ───────────────────────────────── */
.alert {
  padding: .85rem 1.1rem; border-radius: var(--radius);
  font-size: .9rem; display: flex; align-items: flex-start; gap: .5rem;
  margin-bottom: 1rem;
}
.alert-success { background: rgba(0,212,170,.1); border: 1px solid rgba(0,212,170,.3); color: var(--success); }
.alert-danger  { background: rgba(255,71,87,.1);  border: 1px solid rgba(255,71,87,.3);  color: var(--danger); }
.alert-info    { background: rgba(79,195,247,.1); border: 1px solid rgba(79,195,247,.3); color: var(--info); }
.alert-warning { background: rgba(255,165,2,.1);  border: 1px solid rgba(255,165,2,.3);  color: var(--warning); }

#toast-container {
  position: fixed; top: calc(var(--top-h) + .75rem);
  right: 1rem; z-index: 9999;
  display: flex; flex-direction: column; gap: .5rem;
  pointer-events: none;
}
.toast {
  background: var(--bg-card2); border: 1px solid var(--border);
  border-radius: var(--radius); padding: .8rem 1.1rem;
  font-size: .88rem; font-weight: 500;
  box-shadow: var(--shadow); color: var(--text-1);
  pointer-events: all; display: flex; align-items: center; gap: .5rem;
  animation: toastIn .3s ease;
  max-width: 320px;
}
.toast.success { border-color: var(--success); }
.toast.error   { border-color: var(--danger); }
@keyframes toastIn  { from { opacity:0; transform: translateX(20px); } to { opacity:1; transform: none; } }
@keyframes toastOut { from { opacity:1; } to { opacity:0; transform: translateX(20px); } }

/* ── Modal ───────────────────────────────────────── */
.modal-overlay {
  position: fixed; inset: 0; z-index: 500;
  background: var(--bg-overlay);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  display: flex; align-items: flex-end; justify-content: center;
  opacity: 0; pointer-events: none; transition: opacity .25s;
}
.modal-overlay.open { opacity: 1; pointer-events: all; }
.modal {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius-xl) var(--radius-xl) 0 0;
  padding: 1.25rem 1.25rem calc(1.25rem + env(safe-area-inset-bottom));
  width: 100%; max-width: 480px;
  transform: translateY(100%); transition: transform .3s cubic-bezier(.4,0,.2,1);
}
.modal-overlay.open .modal { transform: translateY(0); }
.modal-handle { width: 36px; height: 4px; border-radius: 2px; background: var(--border-2); margin: 0 auto .85rem; }
.modal-title { font-weight: 700; font-size: 1.05rem; margin-bottom: 1rem; }

@media (min-width: 600px) {
  .modal-overlay { align-items: center; }
  .modal { border-radius: var(--radius-xl); max-width: 420px; padding: 1.5rem; }
}

/* ── Dividers & spacers ──────────────────────────── */
.divider { border: none; border-top: 1px solid var(--border-2); margin: 1rem 0; }
.spacer-sm { height: .5rem; }
.spacer    { height: 1rem; }
.spacer-lg { height: 2rem; }
.flex       { display: flex; }
.flex-center { display: flex; align-items: center; justify-content: center; }
.flex-between { display: flex; align-items: center; justify-content: space-between; }
.gap-sm { gap: .4rem; }
.gap    { gap: .75rem; }
.gap-lg { gap: 1.25rem; }
.flex-wrap { flex-wrap: wrap; }

/* ── Empty state ─────────────────────────────────── */
.empty-state {
  display: flex; flex-direction: column; align-items: center;
  justify-content: center; gap: .75rem;
  padding: 3rem 1rem; text-align: center; color: var(--text-3);
}
.empty-state .emoji { font-size: 3rem; }
.empty-state p { max-width: 260px; font-size: .9rem; }

/* ════════════════════════════════════════════════
   LANDING PAGE
   ════════════════════════════════════════════════ */
.hero {
  min-height: 100vh;
  background: radial-gradient(ellipse 80% 60% at 50% 0%, rgba(255,215,0,.15) 0%, transparent 70%),
              radial-gradient(ellipse 60% 50% at 80% 80%, rgba(30,30,80,.8) 0%, transparent 60%),
              var(--bg-deep);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center; padding: 2rem 1rem;
  position: relative; overflow: hidden;
}
.hero-stars {
  position: absolute; inset: 0; overflow: hidden; pointer-events: none;
}
.hero-star {
  position: absolute; border-radius: 50%;
  background: radial-gradient(circle, rgba(255,215,0,.8), transparent);
  animation: float-star linear infinite;
}
@keyframes float-star {
  0%   { opacity: 0; transform: translateY(100vh) scale(0); }
  10%  { opacity: 1; }
  90%  { opacity: 1; }
  100% { opacity: 0; transform: translateY(-10vh) scale(1.2); }
}
.hero-badge {
  display: inline-flex; align-items: center; gap: .4rem;
  background: rgba(255,215,0,.1); border: 1px solid rgba(255,215,0,.35);
  border-radius: 99px; padding: .35rem .9rem;
  font-size: .8rem; font-weight: 700; color: var(--gold);
  text-transform: uppercase; letter-spacing: .06em;
  margin-bottom: 1.25rem;
  animation: fadeDown .6s ease;
}
@keyframes fadeDown { from { opacity:0; transform: translateY(-10px); } to { opacity:1; transform: none; } }
.hero h1 {
  animation: fadeDown .7s .1s ease both;
  max-width: 600px;
}
.hero .subtitle {
  color: var(--text-2); font-size: 1.05rem;
  max-width: 480px; margin: .75rem auto 2rem;
  animation: fadeDown .7s .2s ease both;
}
.hero-ctas { display: flex; gap: .75rem; flex-wrap: wrap; justify-content: center; animation: fadeDown .7s .3s ease both; }

/* Floating sticker previews */
.hero-floaters { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }
.hero-floater {
  position: absolute; width: 70px;
  aspect-ratio: 3/4; border-radius: 10px;
  overflow: hidden; opacity: .6;
  animation: floatCard 8s ease-in-out infinite alternate;
}
.hero-floater .sticker-bg { position: absolute; inset: 0; }
.hero-floater .sticker-shine { position: absolute; inset: 0; background: linear-gradient(135deg, rgba(255,255,255,.2) 0%, transparent 60%); }
@keyframes floatCard { 0% { transform: translateY(0) rotate(-3deg); } 100% { transform: translateY(-20px) rotate(3deg); } }

/* Feature cards on landing */
.features-grid { display: grid; gap: 1rem; grid-template-columns: 1fr; }
@media(min-width:600px){ .features-grid { grid-template-columns: repeat(2,1fr); } }
@media(min-width:900px){ .features-grid { grid-template-columns: repeat(3,1fr); } }
.feature-card {
  background: var(--bg-card); border: 1px solid var(--border-2);
  border-radius: var(--radius-lg); padding: 1.5rem; text-align: center;
  transition: var(--transition);
}
.feature-card:hover { border-color: var(--border); box-shadow: 0 0 24px var(--gold-glow); transform: translateY(-3px); }
.feature-icon { font-size: 2.5rem; margin-bottom: .75rem; display: block; }
.feature-card h3 { color: var(--gold); margin-bottom: .4rem; }
.feature-card p  { color: var(--text-2); font-size: .88rem; line-height: 1.6; }

/* Auth pages */
.auth-wrap {
  min-height: 100vh;
  background: radial-gradient(ellipse 80% 60% at 50% 0%, rgba(255,215,0,.12) 0%, transparent 65%), var(--bg-deep);
  display: flex; align-items: center; justify-content: center;
  padding: 1rem;
}
.auth-card {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius-xl); padding: 2rem;
  width: 100%; max-width: 420px;
  box-shadow: 0 24px 60px rgba(0,0,0,.6);
  animation: fadeDown .5s ease;
}
.auth-logo { text-align: center; margin-bottom: 1.5rem; }
.auth-logo h1 { font-size: 1.5rem; color: var(--gold); }
.auth-logo .emoji { font-size: 2.5rem; display: block; margin-bottom: .5rem; }
.auth-logo-img { max-height: 90px; width: auto; object-fit: contain; display: block; margin: 0 auto .5rem; }
.topbar-logo { height: 56px; width: auto; object-fit: contain; display: block; }
.auth-form { display: flex; flex-direction: column; gap: 1rem; }
.auth-footer { text-align: center; margin-top: 1.25rem; font-size: .88rem; color: var(--text-3); }

/* Theme selector */
.theme-grid {
  display: grid; grid-template-columns: repeat(3,1fr); gap: .75rem;
}
.theme-option {
  display: flex; flex-direction: column; align-items: center; gap: .3rem;
  padding: 1rem .5rem; border-radius: var(--radius);
  border: 2px solid var(--border-2); background: var(--bg-card2);
  cursor: pointer; transition: var(--transition); text-align: center;
}
.theme-option:hover { border-color: var(--gold); }
.theme-option.active { border-color: var(--gold); background: var(--gold-subtle); box-shadow: 0 0 0 1px var(--gold); }
.theme-icon  { font-size: 1.8rem; }
.theme-label { font-size: .85rem; font-weight: 700; color: var(--text-1); }
.theme-desc  { font-size: .7rem; color: var(--text-3); line-height: 1.3; }

/* Google OAuth button */
.btn-google {
  display: flex; align-items: center; justify-content: center; gap: .6rem;
  width: 100%; padding: .75rem 1rem;
  background: #fff; color: #3c4043;
  border: 1px solid #dadce0; border-radius: var(--radius-sm);
  font-size: .95rem; font-weight: 500; text-decoration: none;
  transition: box-shadow var(--transition), background var(--transition);
  margin-bottom: .25rem;
}
.btn-google:hover { background: #f8f9fa; box-shadow: 0 2px 8px rgba(0,0,0,.2); color: #1a1a1a; }

.auth-divider {
  display: flex; align-items: center; gap: .75rem;
  margin: .5rem 0; color: var(--text-3); font-size: .8rem;
}
.auth-divider::before, .auth-divider::after {
  content: ''; flex: 1; height: 1px; background: var(--border-2);
}

/* Password toggle */
.pass-toggle {
  position: absolute; right: .9rem; top: 50%; transform: translateY(-50%);
  background: none; border: none; color: var(--text-3); cursor: pointer;
  font-size: 1rem; padding: .2rem;
}
.pass-toggle:hover { color: var(--gold); }

/* ════════════════════════════════════════════════
   DASHBOARD
   ════════════════════════════════════════════════ */

/* Banner celular */
.celular-banner {
  display: flex; align-items: center; justify-content: space-between;
  background: linear-gradient(135deg, rgba(255,165,0,.15) 0%, rgba(255,215,0,.08) 100%);
  border: 1px solid rgba(255,165,0,.4); border-radius: var(--radius);
  padding: .85rem 1rem; margin-bottom: 1rem;
  cursor: pointer; transition: background var(--transition);
  font-size: .9rem;
}
.celular-banner:hover { background: linear-gradient(135deg, rgba(255,165,0,.22) 0%, rgba(255,215,0,.12) 100%); }
.celular-banner-cta { color: var(--gold); font-weight: 700; white-space: nowrap; margin-left: .75rem; }

/* Modal */
.modal-overlay {
  display: none; position: fixed; inset: 0; z-index: 1000;
  background: rgba(0,0,0,.7); backdrop-filter: blur(4px);
  align-items: center; justify-content: center; padding: 1rem;
}
.modal-overlay.open { display: flex; }
.modal-box {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 2rem 1.5rem;
  width: 100%; max-width: 380px;
  animation: modalIn .25s cubic-bezier(.4,0,.2,1);
}
@keyframes modalIn {
  from { opacity: 0; transform: translateY(24px) scale(.97); }
  to   { opacity: 1; transform: none; }
}
.modal-skip {
  display: block; width: 100%; margin-top: .75rem;
  background: none; border: none; color: var(--text-3);
  font-size: .85rem; cursor: pointer; text-align: center; padding: .4rem;
}
.modal-skip:hover { color: var(--text-2); }

.dash-welcome {
  background: linear-gradient(135deg, var(--bg-card) 0%, #1e1e3a 100%);
  border: 1px solid var(--border); border-radius: var(--radius-lg);
  padding: 1.25rem; margin-bottom: 1.25rem;
  position: relative; overflow: hidden;
}
.dash-welcome::after {
  content: '🏆'; position: absolute; right: 1rem; top: 50%;
  transform: translateY(-50%); font-size: 3.5rem; opacity: .12;
}
.dash-welcome h2 { font-size: 1.15rem; }
.dash-welcome .email { font-size: .8rem; color: var(--text-3); }

/* Activity feed */
.activity-item {
  display: flex; align-items: center; gap: .75rem;
  padding: .75rem 0; border-bottom: 1px solid var(--border-2);
}
.activity-item:last-child { border-bottom: none; }
.activity-icon { font-size: 1.4rem; flex-shrink: 0; }
.activity-text { font-size: .88rem; }
.activity-time { font-size: .73rem; color: var(--text-3); margin-left: auto; flex-shrink: 0; }

/* ════════════════════════════════════════════════
   MIS FIGURITAS
   ════════════════════════════════════════════════ */
.figuritas-toolbar {
  display: flex; gap: .5rem; align-items: center;
  flex-wrap: wrap; margin-bottom: 1rem;
}
.type-select {
  background: var(--bg-card); border: 1.5px solid var(--border-2);
  color: var(--text-1); border-radius: var(--radius); padding: .5rem .75rem;
  font-size: .82rem; cursor: pointer; transition: var(--transition);
}
.type-select:focus { outline: none; border-color: var(--gold); }

/* Sticker action sheet */
.sticker-actions { display: grid; gap: .5rem; }
.action-btn {
  display: flex; align-items: center; gap: .75rem;
  background: var(--bg-card2); border: 1.5px solid var(--border-2);
  border-radius: var(--radius); padding: .8rem 1rem;
  color: var(--text-1); cursor: pointer; transition: var(--transition);
  font-size: .9rem;
}
.action-btn:hover { border-color: var(--gold); background: var(--gold-subtle); }
.action-btn.active { border-color: currentColor; }
.action-btn.act-tengo  { --c: var(--success); }
.action-btn.act-repite { --c: var(--gold);    }
.action-btn.act-quiero { --c: var(--info);    }
.action-btn.active { color: var(--c, var(--gold)); border-color: var(--c, var(--gold)); background: rgba(var(--c-rgb,255,215,0),.08); }
.action-icon { font-size: 1.3rem; }

/* ════════════════════════════════════════════════
   BUSCAR
   ════════════════════════════════════════════════ */
.search-results { display: flex; flex-direction: column; gap: .6rem; margin-top: 1rem; }
.result-row {
  background: var(--bg-card); border: 1px solid var(--border-2);
  border-radius: var(--radius-lg); padding: 1rem;
  display: flex; align-items: center; gap: 1rem;
  transition: var(--transition); cursor: pointer;
}
.result-row:hover { border-color: var(--border); box-shadow: var(--shadow-card); }
.result-sticker { flex-shrink: 0; }
.result-info h3 { font-size: .95rem; font-weight: 700; }
.result-info p  { font-size: .78rem; color: var(--text-3); }
.result-meta { margin-left: auto; text-align: right; flex-shrink: 0; }

/* ════════════════════════════════════════════════
   MATCH PAGE
   ════════════════════════════════════════════════ */
.no-matches {
  text-align: center; padding: 3rem 1rem;
  color: var(--text-3);
}
.no-matches .big-icon { font-size: 4rem; display: block; margin-bottom: 1rem; }
.match-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(145px, 1fr));
  gap: .6rem;
}
@media (min-width: 768px) { .match-list { grid-template-columns: repeat(auto-fill, minmax(155px, 1fr)); } }

.ms-section { margin-bottom: 1.75rem; }
.ms-section-head {
  display: flex; align-items: center; gap: .5rem;
  margin-bottom: .75rem;
}
.ms-section-title { font-size: .95rem; font-weight: 800; color: var(--text-1); }
.ms-section-count {
  font-size: .72rem; font-weight: 700; padding: .15rem .5rem;
  border-radius: 99px; background: var(--bg-card2); color: var(--text-2);
}
.ms-label {
  font-size: .67rem; font-weight: 700; color: var(--text-3);
  text-transform: uppercase; letter-spacing: .06em;
}
.ms-row {
  display: flex; gap: .3rem;
  overflow-x: auto; padding-bottom: .2rem;
  scrollbar-width: none;
}
.ms-row::-webkit-scrollbar { display: none; }
.ms-mini {
  position: relative; width: 54px; height: 72px;
  border-radius: 9px; overflow: hidden; flex-shrink: 0;
}
.ms-toggle {
  display: flex; align-items: center; justify-content: space-between;
  font-size: .72rem; font-weight: 700; color: var(--gold);
  cursor: pointer; padding: .3rem 0; border: none; background: none;
  width: 100%; text-align: left;
}
.ms-toggle:hover { opacity: .8; }
.ms-expand { padding-top: .3rem; display: flex; flex-direction: column; gap: .35rem; }

.contact-reveal {
  background: var(--bg-card2); border: 1px solid var(--success);
  border-radius: var(--radius); padding: .75rem 1rem;
  display: flex; align-items: center; gap: .75rem;
  margin-top: .6rem;
}
.wa-link {
  display: inline-flex; align-items: center; gap: .4rem;
  background: #25D366; color: #fff; border-radius: var(--radius-sm);
  padding: .4rem .9rem; font-size: .82rem; font-weight: 700;
  text-decoration: none; transition: var(--transition);
}
.wa-link:hover { background: #1ebe5a; }

/* ════════════════════════════════════════════════
   PERFIL
   ════════════════════════════════════════════════ */
.profile-header {
  background: linear-gradient(135deg, var(--bg-card), var(--profile-grad-end));
  border: 1px solid var(--border); border-radius: var(--radius-xl);
  padding: 1.5rem; display: flex; align-items: center; gap: 1rem;
  margin-bottom: 1.25rem;
}
.profile-avatar {
  width: 70px; height: 70px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.8rem; font-weight: 800; color: #000;
  border: 3px solid var(--gold); flex-shrink: 0;
}
.profile-info h2 { font-size: 1.15rem; }
.profile-info .email { font-size: .82rem; color: var(--text-3); }
.profile-form { display: flex; flex-direction: column; gap: 1rem; }

/* ════════════════════════════════════════════════
   RESPONSIVE — Desktop sidebar
   ════════════════════════════════════════════════ */
@media (min-width: 768px) {
  .bottom-nav { display: none; }
  .logged-in .container { padding-bottom: 1rem; }

  .sidebar {
    position: fixed; top: var(--top-h); left: 0; bottom: 0;
    width: 220px; background: var(--bg-medium);
    border-right: 1px solid var(--border-2);
    padding: 1.25rem .75rem; z-index: 50;
    overflow-y: auto;
  }
  .logged-in .page-content { margin-left: 220px; }

  .sidebar-nav { display: flex; flex-direction: column; gap: .25rem; }
  .sidebar-nav a {
    display: flex; align-items: center; gap: .75rem;
    padding: .65rem .9rem; border-radius: var(--radius);
    color: var(--text-2); font-size: .88rem; font-weight: 500;
    transition: var(--transition);
  }
  .sidebar-nav a .nav-icon { font-size: 1.2rem; }
  .sidebar-nav a:hover { background: var(--bg-card); color: var(--text-1); }
  .sidebar-nav a.active { background: var(--gold-subtle); color: var(--gold); font-weight: 700; border: 1px solid var(--border); }

  .sticker-grid { grid-template-columns: repeat(auto-fill, minmax(105px, 1fr)); }
}

@media (min-width: 1024px) {
  .sticker-grid { grid-template-columns: repeat(auto-fill, minmax(115px, 1fr)); }
  .stats-grid { grid-template-columns: repeat(4, 1fr); }
}

/* ── Skeleton loaders ────────────────────────────── */
@keyframes skeleton { 0%,100% { opacity:.6; } 50% { opacity:.3; } }
.skeleton { background: var(--bg-card2); border-radius: var(--radius-sm); animation: skeleton 1.5s ease-in-out infinite; }

/* ── Scrollable team groups ─────────────────────── */
.team-section { margin-bottom: 2rem; }
.team-header {
  display: flex; align-items: center; gap: .5rem;
  margin-bottom: .75rem; padding-bottom: .5rem;
  border-bottom: 1px solid var(--border-2);
}
.team-header .flag { font-size: 1.3rem; }
.team-header h3 { font-size: .95rem; font-weight: 700; }
.team-header .count { margin-left: auto; font-size: .75rem; color: var(--text-3); }

/* ── Utility ─────────────────────────────────────── */
.hidden { display: none !important; }
.text-center { text-align: center; }
.text-gold { color: var(--gold); }
.text-muted { color: var(--text-3); }
.text-sm { font-size: .85rem; }
.text-xs { font-size: .75rem; }
.fw-700 { font-weight: 700; }
.mt-1 { margin-top: .5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mb-1 { margin-bottom: .5rem; }
.mb-2 { margin-bottom: 1rem; }
.w-100 { width: 100%; }

/* ── Trades ──────────────────────────────────────── */
.trade-badge-dot {
  display: inline-flex; align-items: center; justify-content: center;
  background: #ff3b3b; color: #fff; font-size: .58rem; font-weight: 800;
  min-width: 16px; height: 16px; border-radius: 99px; padding: 0 3px;
  vertical-align: middle; margin-left: 2px; line-height: 1;
}
.trade-card {
  background: var(--bg-card); border: 1px solid rgba(255,59,59,.4);
  border-radius: var(--radius-lg); padding: .85rem;
  display: flex; flex-direction: column; gap: .6rem;
}
.trade-card.accepted { border-color: #39ff14; }
.trade-sides {
  display: grid; grid-template-columns: 1fr auto 1fr; gap: .4rem;
  align-items: start;
}
.trade-side-label {
  font-size: .65rem; font-weight: 700; color: var(--text-3);
  text-transform: uppercase; letter-spacing: .06em; margin-bottom: .3rem;
}
.trade-arrow { align-self: center; font-size: 1rem; color: var(--text-3); padding-top: 1.2rem; }
.trade-actions { display: flex; gap: .4rem; }
.trade-actions .btn { flex: 1; font-size: .75rem; padding: .45rem .4rem; }

/* Person expand panel inside match card */
.mc-expand {
  background: var(--bg-card2); border-radius: var(--radius);
  padding: .7rem; display: flex; flex-direction: column; gap: .55rem;
}
.mc-sticker-pick {
  display: flex; flex-wrap: wrap; gap: .35rem;
}
.mc-pick-card {
  position: relative; width: 54px; height: 72px;
  border-radius: 9px; overflow: hidden; cursor: pointer;
  border: 2px solid transparent; transition: border-color .15s;
  flex-shrink: 0;
}
.mc-pick-card.selected { border-color: #39ff14; }
.mc-pick-card .ck-mark {
  display: none; position: absolute; top: 3px; right: 3px;
  background: #39ff14; color: #000; font-size: .6rem; font-weight: 900;
  border-radius: 50%; width: 14px; height: 14px;
  align-items: center; justify-content: center; z-index: 3;
}
.mc-pick-card.selected .ck-mark { display: flex; }

/* ── Match tabs ─────────────────────────────────── */
.tab-bar {
  display: flex; border-bottom: 1px solid var(--border);
  margin-bottom: 1rem; gap: 0;
}
.tab-btn {
  flex: 1; padding: .7rem .5rem; background: none; border: none;
  color: var(--text-2); font-size: .85rem; font-weight: 700;
  cursor: pointer; border-bottom: 2px solid transparent;
  margin-bottom: -1px; transition: color .15s;
}
.tab-btn.active { color: var(--gold); border-bottom-color: var(--gold); }
.tab-content { display: none; }
.tab-content.active { display: block; }

/* ── Match person list (tabs) ────────────────────── */
.match-person-list { display: grid; grid-template-columns: 1fr; gap: .6rem; }
@media (min-width: 540px) { .match-person-list { grid-template-columns: repeat(2,1fr); } }
@media (min-width: 900px) { .match-person-list { grid-template-columns: repeat(3,1fr); } }

.match-person-card {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: .85rem;
  display: flex; flex-direction: column; gap: .55rem;
}

/* ── Trade propose page ──────────────────────────── */
.pick-section-title {
  font-size: .75rem; font-weight: 800; color: var(--text-2);
  text-transform: uppercase; letter-spacing: .07em; margin-bottom: .5rem;
}
.pick-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(72px, 1fr));
  gap: .4rem;
}
.pick-card {
  position: relative; aspect-ratio: 3/4;
  border-radius: 10px; overflow: hidden; cursor: pointer;
  border: 2px solid transparent;
  transition: border-color .12s, box-shadow .12s;
  user-select: none;
}
.pick-card .sticker-bg { position: absolute; inset: 0; background: linear-gradient(160deg, var(--c1,#333) 0%, var(--c2,#111) 100%); }
.pick-card .sticker-shine { position: absolute; inset: 0; background: linear-gradient(135deg,rgba(255,255,255,.12) 0%,transparent 50%,rgba(255,255,255,.04) 100%); }
.pick-card img { position: absolute; bottom: 0; left: 50%; transform: translateX(-50%); height: 82%; width: auto; max-width: 120%; object-fit: contain; object-position: bottom; z-index: 1; filter: drop-shadow(0 2px 6px rgba(0,0,0,.7)); }
.pick-card .p-flag { position: absolute; top: 3px; right: 4px; font-size: .75rem; z-index: 2; }
.pick-card .p-num { position: absolute; top: 4px; left: 5px; font-size: .58rem; font-weight: 700; color: rgba(255,255,255,.8); text-shadow: 0 1px 3px rgba(0,0,0,.8); z-index: 2; line-height: 1; }
.pick-card .p-name { position: absolute; bottom: 0; left: 0; right: 0; z-index: 2; text-align: center; font-size: .5rem; font-weight: 700; color: #fff; text-transform: uppercase; letter-spacing: .03em; text-shadow: 0 1px 3px rgba(0,0,0,.9); background: linear-gradient(transparent,rgba(0,0,0,.75)); padding: .4rem .15rem .2rem; }
.pick-card.selected { border-color: #39ff14; box-shadow: 0 0 10px rgba(57,255,20,.45); }
.pick-card .ck-mark { position: absolute; top: 3px; right: 3px; z-index: 3; width: 17px; height: 17px; border-radius: 50%; background: #39ff14; color: #000; font-size: .65rem; font-weight: 900; display: none; align-items: center; justify-content: center; }
.pick-card.selected .ck-mark { display: flex; }
.pick-card.dimmed { opacity: .35; }

.trade-summary-bar {
  position: sticky; bottom: var(--nav-h); z-index: 40;
  background: var(--bg-card); border-top: 1px solid var(--border-2);
  padding: .75rem 1rem .85rem; display: flex; flex-direction: column; gap: .4rem;
}
.trade-summary-line {
  font-size: .78rem; color: var(--text-2); line-height: 1.4;
}
.trade-summary-line strong { color: var(--gold); }
.trade-empty-hint { font-size: .75rem; color: var(--text-3); font-style: italic; }

/* ── Install PWA banner ──────────────────────────── */
#pwa-banner {
  position: fixed; bottom: calc(var(--nav-h) + .5rem);
  left: .75rem; right: .75rem; z-index: 200;
  background: var(--bg-card); border: 1px solid var(--gold);
  border-radius: var(--radius-lg); padding: 1rem;
  box-shadow: 0 8px 32px rgba(0,0,0,.5);
  display: none; gap: .75rem; align-items: center;
}
#pwa-banner.show { display: flex; animation: fadeDown .4s ease; }
#pwa-banner p { font-size: .88rem; flex: 1; }
@media (min-width: 768px) { #pwa-banner { bottom: .75rem; max-width: 400px; right: auto; } }

/* ── Loading spinner ─────────────────────────────── */
.spinner {
  width: 24px; height: 24px; border-radius: 50%;
  border: 3px solid var(--border-2); border-top-color: var(--gold);
  animation: spin .8s linear infinite; display: inline-block;
}
@keyframes spin { to { transform: rotate(360deg); } }
