@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700;800&display=swap');

/* ═══════════════════════════════════════════════
   CLUBE TCG — Design Tokens
═══════════════════════════════════════════════ */
:root {
  /* Surfaces */
  --bg:         #f0f4f8;
  --surface:    #ffffff;
  --surface-2:  #f8fafc;
  --surface-3:  #f1f5f9;

  /* Navy */
  --navy:       #1c1c1e;
  --navy-2:     #2c2c2e;
  --navy-3:     #3a3a3c;

  /* Accent — Indigo */
  --accent:     #4f46e5;
  --accent-h:   #4338ca;
  --accent-lt:  #eef2ff;
  --accent-glow:rgba(79,70,229,.12);

  /* Semantic */
  --green:      #059669;
  --green-lt:   #ecfdf5;
  --red:        #dc2626;
  --red-lt:     #fef2f2;
  --amber:      #d97706;
  --amber-lt:   #fffbeb;
  --purple:     #7c3aed;
  --purple-lt:  #f5f3ff;

  /* Text */
  --text:       #0f172a;
  --text-2:     #374151;
  --text-3:     #6b7280;
  --text-4:     #9ca3af;

  /* Borders */
  --border:     #e5e7eb;
  --border-2:   #d1d5db;

  /* Shadows — tom levemente azulado (mais "papel premium" que cinza puro) */
  --sh-xs: 0 1px 2px rgba(15,23,42,.05);
  --sh-sm: 0 1px 3px rgba(15,23,42,.07), 0 1px 2px rgba(15,23,42,.04);
  --sh:    0 4px 8px rgba(15,23,42,.06), 0 2px 4px rgba(15,23,42,.04);
  --sh-md: 0 12px 20px rgba(15,23,42,.08), 0 4px 8px rgba(15,23,42,.04);
  --sh-lg: 0 24px 40px rgba(15,23,42,.10), 0 8px 14px rgba(15,23,42,.05);
  --sh-accent: 0 1px 2px rgba(15,23,42,.12);
  --sh-card-hover: 0 18px 32px rgba(15,23,42,.12), 0 6px 12px rgba(79,70,229,.08);

  /* Foil/holo — o brilho de carta colecionável que assina a marca */
  --holo: linear-gradient(115deg, transparent 32%, rgba(255,255,255,.28) 44%, rgba(167,139,250,.20) 50%, rgba(103,232,249,.16) 56%, transparent 68%);
  --accent-grad: linear-gradient(135deg, #6366f1 0%, #4f46e5 55%, #4338ca 100%);

  /* Radius */
  --r-xs:  4px;
  --r-sm:  6px;
  --r:     10px;
  --r-md:  14px;
  --r-lg:  18px;
  --r-xl:  24px;
  --r-2xl: 32px;
  --r-full:9999px;

  /* Font */
  --font: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;

  /* Transitions */
  --t-fast:  100ms ease;
  --t:       160ms ease;
  --t-slow:  240ms ease;
}

/* ─── RESET ─── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button { font-family: inherit; cursor: pointer; }
input, select, textarea { font-family: inherit; }

/* ─── LAYOUT ─── */
.container { max-width: 1280px; margin: 0 auto; padding: 0 24px; }
@media(max-width:640px) { .container { padding: 0 16px; } }

/* ═══════════════════════════════════════════════
   NAVIGATION
═══════════════════════════════════════════════ */
.navbar {
  position: sticky; top: 0; z-index: 300;
  background: var(--navy);
  border-bottom: 1px solid rgba(255,255,255,.08);
  height: 64px;
  box-shadow: 0 1px 0 rgba(255,255,255,.05), 0 8px 28px rgba(0,0,0,.28);
}
.nav-inner {
  height: 100%;
  display: flex; align-items: center; gap: 12px;
  max-width: 1280px; margin: 0 auto; padding: 0 24px;
}

/* Logo */
.nav-logo {
  display: flex; align-items: center; gap: 9px;
  flex-shrink: 0; margin-right: 4px;
}
.nav-logo-icon {
  width: 32px; height: 32px; border-radius: var(--r-sm);
  background: var(--accent);
  display: flex; align-items: center; justify-content: center;
  font-size: 16px; box-shadow: 0 2px 8px rgba(79,70,229,.5);
}
.nav-logo-text {
  font-size: 17px; font-weight: 800; color: #fff;
  letter-spacing: -.4px; line-height: 1;
}
.nav-logo-text span { color: #a5b4fc; }

/* Links */
.nav-links { display: flex; align-items: center; }
.nav-links a {
  padding: 6px 11px; border-radius: var(--r-sm);
  font-size: 13px; font-weight: 500;
  color: rgba(255,255,255,.6);
  transition: color var(--t), background var(--t);
}
.nav-links a:hover { color: #fff; background: rgba(255,255,255,.07); }
.nav-links a.active { color: #fff; background: rgba(79,70,229,.3); }

/* ── MEGA MENU (Explorar) — compartilhado entre todas as páginas ── */
.nav-mega-wrap { position: static; }
.nav-mega-trigger {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 6px 11px; border-radius: var(--r-sm); font-family: var(--font);
  font-size: 13px; font-weight: 500; color: rgba(255,255,255,.6);
  background: none; border: none; cursor: pointer; transition: color var(--t), background var(--t);
}
.nav-mega-trigger:hover, .nav-mega-wrap.mega-open .nav-mega-trigger { color: #fff; background: rgba(255,255,255,.07); }
.nav-mega-trigger svg { transition: transform var(--t); }
.nav-mega-wrap.mega-open .nav-mega-trigger svg { transform: rotate(180deg); }
.mega-menu {
  position: absolute; left: 0; right: 0; top: 64px; z-index: 200;
  background: var(--navy); border-top: 1px solid rgba(255,255,255,.1); border-bottom: 1px solid rgba(255,255,255,.1);
  box-shadow: 0 24px 48px rgba(0,0,0,.4);
  opacity: 0; visibility: hidden; transform: translateY(-8px);
  transition: opacity .18s ease, transform .18s ease, visibility .18s;
  pointer-events: none;
}
.nav-mega-wrap.mega-open .mega-menu { opacity: 1; visibility: visible; transform: none; pointer-events: auto; }
.mega-inner {
  display: grid; grid-template-columns: 190px minmax(0, 2.2fr) 210px; gap: 26px;
  max-width: 1080px; margin: 0 auto; padding: 22px 24px 24px;
}
.mega-col-games { border-right: 1px solid rgba(255,255,255,.1); padding-right: 22px; }
.mega-col-title { font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: 1.2px; color: rgba(255,255,255,.4); margin-bottom: 12px; }
.mega-game, .mega-link {
  display: flex; align-items: center; gap: 8px;
  padding: 8px 10px; border-radius: var(--r); font-size: 13.5px; font-weight: 600;
  color: var(--text-2); cursor: pointer; transition: background var(--t), color var(--t); margin-bottom: 1px;
}
.mega-game { justify-content: space-between; }
.mega-menu .mega-game, .mega-menu .mega-link { color: rgba(255,255,255,.85); }
.mega-menu .mega-game:hover, .mega-menu .mega-link:hover { background: rgba(255,255,255,.08); color: #fff; }
.mega-game.active { background: rgba(79,70,229,.3); color: #fff; }
.mega-game.soon { color: rgba(255,255,255,.35); cursor: default; }
.mega-game.soon:hover { background: transparent; color: rgba(255,255,255,.35); }
.mega-game span { font-size: 11px; color: rgba(255,255,255,.4); font-weight: 600; }
/* listas compactas dentro do mega (edições recentes, raridades, atalhos) */
.mega-sets { display: flex; flex-direction: column; gap: 1px; margin-bottom: 8px; }
.mega-setlink {
  display: flex; align-items: center; justify-content: space-between; gap: 8px;
  padding: 6px 8px; border-radius: var(--r-sm);
  font-size: 12.5px; font-weight: 600; cursor: pointer; transition: background var(--t), color var(--t);
}
.mega-menu .mega-setlink { color: rgba(255,255,255,.8); }                          /* vence .nav-links a */
.mega-menu .mega-setlink:hover { background: rgba(255,255,255,.08); color: #fff; }
.mega-settag { font-size: 10px; font-weight: 600; color: rgba(255,255,255,.4); }
.mega-menu .mega-setlink:hover .mega-settag { color: rgba(255,255,255,.7); }
.mega-all { color: #a5b4fc; font-weight: 700; padding-left: 8px; display: inline-block; margin-top: 2px; }

/* ── Painel de COLEÇÕES do mega menu — todas as coleções do jogo, agrupadas e roláveis ── */
.mega-groups {
  max-height: 320px; overflow-y: auto; padding-right: 8px;
  display: flex; flex-direction: column; gap: 14px;
  scrollbar-width: thin; scrollbar-color: rgba(255,255,255,.18) transparent;
}
.mega-groups::-webkit-scrollbar { width: 6px; }
.mega-groups::-webkit-scrollbar-track { background: transparent; }
.mega-groups::-webkit-scrollbar-thumb { background: rgba(255,255,255,.18); border-radius: 6px; border: none; }
.mega-grp-t {
  font-size: 10px; font-weight: 800; letter-spacing: 1px; text-transform: uppercase;
  color: rgba(255,255,255,.38); margin-bottom: 6px;
  position: sticky; top: 0; background: var(--navy); padding: 2px 0;
}
/* códigos curtos (Digimon/One Piece) em grade de chips */
.mega-chipgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(60px, 1fr)); gap: 4px; }
.mega-chip {
  font-size: 11px; font-weight: 700; color: rgba(255,255,255,.75);
  background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.09);
  border-radius: 6px; padding: 5px 3px; text-align: center; cursor: pointer;
  transition: background var(--t), color var(--t), border-color var(--t);
}
.mega-chip:hover { background: rgba(79,70,229,.4); color: #fff; border-color: rgba(129,140,248,.6); }
/* nomes legíveis (Pokémon/Yu-Gi-Oh!) em lista */
.mega-rows { display: flex; flex-direction: column; gap: 1px; }
.mega-setrow {
  display: flex; justify-content: space-between; align-items: baseline; gap: 10px;
  padding: 5px 8px; border-radius: 6px;
  font-size: 12px; font-weight: 600; color: rgba(255,255,255,.78); cursor: pointer;
  transition: background var(--t), color var(--t);
}
.mega-setrow:hover { background: rgba(255,255,255,.08); color: #fff; }
.mega-setrow span:first-child { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mega-game.previewing { background: rgba(255,255,255,.07); color: #fff; }
.mega-loading { font-size: 12px; color: rgba(255,255,255,.4); padding: 10px 4px; }
.mega-subtitle { margin-top: 16px; }

@media(max-width: 860px) { .nav-mega-wrap { display: none; } }

.nav-spacer { flex: 1; min-width: 20px; }

/* Search */
.nav-search { position: relative; flex: 1; max-width: 400px; }
.nav-search-icon {
  position: absolute; left: 13px; top: 50%;
  transform: translateY(-50%);
  color: rgba(255,255,255,.3); pointer-events: none;
  display: flex;
}
.nav-search input {
  width: 100%; height: 38px;
  background: rgba(255,255,255,.08);
  border: 1.5px solid rgba(255,255,255,.1);
  border-radius: var(--r-full);
  padding: 0 16px 0 38px;
  color: #fff; font-family: var(--font); font-size: 13px; outline: none;
  transition: background var(--t), border-color var(--t), box-shadow var(--t);
}
.nav-search input:focus {
  background: rgba(255,255,255,.12);
  border-color: rgba(79,70,229,.7);
  box-shadow: 0 0 0 3px rgba(79,70,229,.2);
}
.nav-search input::placeholder { color: rgba(255,255,255,.3); }

/* Nav actions */
.nav-actions { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }
.btn-nav-ghost {
  padding: 7px 14px; border-radius: var(--r-sm);
  font-size: 12px; font-weight: 600;
  background: rgba(255,255,255,.08);
  border: 1.5px solid rgba(255,255,255,.12);
  color: rgba(255,255,255,.75);
  transition: all var(--t);
}
.btn-nav-ghost:hover { background: rgba(255,255,255,.14); color: #fff; border-color: rgba(255,255,255,.22); }
.btn-nav-accent {
  padding: 7px 16px; border-radius: var(--r-sm);
  font-size: 12px; font-weight: 700;
  background: var(--accent); color: #fff;
  border: none; box-shadow: var(--sh-accent);
  transition: all var(--t);
}
.btn-nav-accent:hover { background: var(--accent-h); }

/* Botões de auth na navbar (Entrar / Cadastrar) */
.btn-nav {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 7px 15px; border-radius: var(--r-sm); font-family: var(--font);
  font-size: 13px; font-weight: 600; white-space: nowrap; cursor: pointer;
  transition: background var(--t), border-color var(--t), color var(--t);
}
.btn-nav-outline {
  background: rgba(255,255,255,.08); border: 1.5px solid rgba(255,255,255,.16);
  color: rgba(255,255,255,.85);
}
.btn-nav-outline:hover { background: rgba(255,255,255,.14); color: #fff; }
.btn-nav-primary {
  background: var(--accent); border: 1.5px solid var(--accent); color: #fff;
}
.btn-nav-primary:hover { background: var(--accent-h); border-color: var(--accent-h); }
.nav-avatar {
  width: 32px; height: 32px; border-radius: 50%;
  background: var(--accent); color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-size: 12px; font-weight: 800;
  border: 2px solid rgba(255,255,255,.15);
  flex-shrink: 0; cursor: pointer;
}

/* ═══════════════════════════════════════════════
   BUTTONS
═══════════════════════════════════════════════ */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  border: none; border-radius: var(--r); cursor: pointer;
  font-family: var(--font); font-weight: 600; line-height: 1;
  transition: all var(--t); white-space: nowrap;
  padding: 10px 18px; font-size: 13px;
}
.btn:active { transform: scale(.97); }
.btn:disabled { opacity: .55; pointer-events: none; }

.btn-primary {
  background: var(--accent-grad); color: #fff;
  box-shadow: var(--sh-accent), inset 0 1px 0 rgba(255,255,255,.18);
}
.btn-primary:hover {
  filter: brightness(1.06);
  box-shadow: 0 4px 14px rgba(79,70,229,.35), inset 0 1px 0 rgba(255,255,255,.18);
  transform: translateY(-1px);
}

.btn-secondary {
  background: var(--surface); color: var(--text-2);
  border: 1.5px solid var(--border-2);
  box-shadow: var(--sh-xs);
}
.btn-secondary:hover { border-color: var(--accent); color: var(--accent); background: var(--accent-lt); }

.btn-navy { background: var(--navy); color: #fff; }
.btn-navy:hover { background: var(--navy-2); }

.btn-outline { background: transparent; border: 1.5px solid var(--border-2); color: var(--text-3); }
.btn-outline:hover { border-color: var(--accent); color: var(--accent); }

.btn-ghost { background: transparent; color: var(--text-3); }
.btn-ghost:hover { background: var(--surface-3); color: var(--text); }

.btn-danger  { background: var(--red-lt);   border: 1.5px solid rgba(220,38,38,.2);  color: var(--red); }
.btn-success { background: var(--green-lt); border: 1.5px solid rgba(5,150,105,.2);  color: var(--green); }
.btn-warning { background: var(--amber-lt); border: 1.5px solid rgba(217,119,6,.2);  color: var(--amber); }

.btn-xs  { padding: 5px 10px;  font-size: 11px; border-radius: var(--r-xs); }
.btn-sm  { padding: 7px 14px;  font-size: 12px; border-radius: var(--r-sm); }
.btn-lg  { padding: 13px 26px; font-size: 15px; border-radius: var(--r-md); }
.btn-xl  { padding: 16px 32px; font-size: 16px; border-radius: var(--r-md); }
.btn-full{ width: 100%; }
.btn-icon{ padding: 9px; aspect-ratio: 1; }

/* ═══════════════════════════════════════════════
   BADGES
═══════════════════════════════════════════════ */
.badge {
  display: inline-flex; align-items: center; gap: 3px;
  padding: 2px 7px; border-radius: var(--r-sm);
  font-size: 10px; font-weight: 700;
  text-transform: uppercase; letter-spacing: .4px; line-height: 1.5;
  flex-shrink: 0;
}
/* Condition */
.badge-nm  { background: var(--green-lt);  color: var(--green);  border: 1px solid rgba(5,150,105,.2); }
.badge-sp  { background: var(--amber-lt);  color: #b45309;       border: 1px solid rgba(217,119,6,.2); }
.badge-mp  { background: #fff7ed;          color: #c2410c;       border: 1px solid rgba(234,88,12,.2); }
.badge-hp  { background: var(--red-lt);    color: var(--red);    border: 1px solid rgba(220,38,38,.2); }
.badge-d   { background: var(--surface-3); color: var(--text-3); border: 1px solid var(--border); }
/* Special */
.badge-foil   { background: linear-gradient(135deg,#ffecd2,#a1c4fd); color: var(--navy); border: none; }
.badge-graded { background: var(--purple-lt); color: var(--purple); border: 1px solid rgba(124,58,237,.2); }
.badge-promo  { background: var(--accent-lt);  color: var(--accent); border: 1px solid rgba(79,70,229,.2); }
.badge-hot    { background: var(--red);        color: #fff; }
.badge-new    { background: var(--green);      color: #fff; }

/* ═══════════════════════════════════════════════
   PRODUCT CARD
═══════════════════════════════════════════════ */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(190px,1fr));
  gap: 16px;
}

.product-card {
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: var(--r-md);
  overflow: hidden;
  display: flex; flex-direction: column;
  cursor: pointer;
  transition: transform var(--t-slow), box-shadow var(--t-slow), border-color var(--t);
  box-shadow: var(--sh-sm);
  position: relative;
}
.product-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--sh-card-hover), 0 0 0 3px var(--accent-glow);
  border-color: var(--accent);
}

/* Image */
.product-card-img {
  aspect-ratio: 5/7;
  background: var(--surface-3);
  position: relative; overflow: hidden;
  display: flex; align-items: center; justify-content: center;
}
.product-card-img img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform var(--t-slow);
}
.product-card:hover .product-card-img img { transform: scale(1.05); }
/* brilho "foil" varrendo a carta no hover — assinatura visual TCG.
   O ::after só EXISTE durante o hover (uma animação de passagem única):
   zero camadas extras nos 20+ cards parados da grade = sem lag no scroll. */
@keyframes holo-sweep {
  from { transform: translateX(-130%); }
  to   { transform: translateX(130%); }
}
.product-card:hover .product-card-img::after {
  content: ''; position: absolute; inset: -20% -10%;
  background: var(--holo);
  transform: translateX(130%);
  animation: holo-sweep .65s ease;
  pointer-events: none; z-index: 1;
}

/* Placeholder */
.card-placeholder {
  position: absolute; inset: 0;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 6px;
  background: linear-gradient(145deg, var(--surface-3), var(--surface-2));
}
.card-ph-letter {
  font-size: 72px; font-weight: 800; line-height: 1;
  color: var(--border-2); letter-spacing: -4px;
  font-family: var(--font);
}
.card-ph-sub {
  font-size: 9px; font-weight: 700; text-transform: uppercase;
  letter-spacing: 2px; color: var(--text-4);
}

/* Color stripe */
.card-stripe { position: absolute; top: 0; left: 0; right: 0; height: 3px; }

/* Floating badges */
.card-float-badges { position: absolute; top: 8px; left: 8px; display: flex; flex-direction: column; gap: 3px; }

/* Wishlist */
.wishlist-btn {
  position: absolute; top: 8px; right: 8px; z-index: 2;
  width: 30px; height: 30px; border-radius: var(--r-sm);
  background: rgba(255,255,255,.92);
  border: 1.5px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  font-size: 13px; cursor: pointer;
  box-shadow: var(--sh-xs);
  transition: all var(--t);
}
.wishlist-btn:hover { border-color: var(--red); color: var(--red); transform: scale(1.1); }
.wishlist-btn.active { border-color: var(--red); color: var(--red); background: var(--red-lt); }

/* Body */
.product-card-body {
  padding: 12px 13px 13px; flex: 1;
  display: flex; flex-direction: column; gap: 5px;
}
.product-card-meta-top {
  display: flex; align-items: center; justify-content: space-between;
}
.product-card-franchise {
  font-size: 10px; font-weight: 700; text-transform: uppercase;
  letter-spacing: .8px; color: var(--accent);
}
.product-card-number { font-size: 10px; color: var(--text-4); }
.product-card-name {
  font-size: 14px; font-weight: 700; color: var(--text);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  letter-spacing: -.2px; line-height: 1.3;
}
.product-card-badges { display: flex; gap: 4px; flex-wrap: wrap; margin-top: 1px; }

.product-card-divider { height: 1px; background: linear-gradient(90deg, var(--border), rgba(229,231,235,.25)); margin: 6px 0; }
.product-card:hover .product-card-price { color: var(--accent); }
.product-card-price { transition: color var(--t); }

.product-card-bottom {
  display: flex; align-items: flex-end; justify-content: space-between;
  gap: 6px;
}
.product-card-price-block {}
.product-card-price {
  font-size: 18px; font-weight: 800; color: var(--text);
  letter-spacing: -.5px; line-height: 1;
}
.product-card-price-sub { font-size: 10px; color: var(--text-4); margin-top: 1px; }
.product-card-seller-block { text-align: right; }
.product-card-seller {
  font-size: 11px; font-weight: 600; color: var(--text-3);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  max-width: 80px;
}
.product-card-rating { font-size: 10px; color: var(--text-4); display: flex; align-items: center; gap: 2px; justify-content: flex-end; }
.product-card-rating .star { color: #f59e0b; }

/* CTA overlay on hover */
.product-card-cta {
  position: absolute; bottom: 0; left: 0; right: 0;
  background: linear-gradient(to top, rgba(79,70,229,.95) 0%, rgba(79,70,229,.0) 100%);
  padding: 28px 12px 12px;
  opacity: 0; pointer-events: none;
  transition: opacity var(--t);
  display: flex; justify-content: center;
}
.product-card:hover .product-card-cta { opacity: 1; pointer-events: auto; }
.product-card-cta .btn { width: 100%; font-size: 12px; padding: 8px; background: #fff; color: var(--accent); font-weight: 700; border-radius: var(--r-sm); }

/* ═══════════════════════════════════════════════
   DIGIMON COLOR STRIPES
═══════════════════════════════════════════════ */
.color-red    { background: #ef4444; }
.color-blue   { background: #3b82f6; }
.color-yellow { background: #f59e0b; }
.color-green  { background: #10b981; }
.color-black  { background: #475569; }
.color-purple { background: #8b5cf6; }
.color-white  { background: #cbd5e1; }

/* ═══════════════════════════════════════════════
   FORMS
═══════════════════════════════════════════════ */
.form-group { margin-bottom: 18px; }
.form-label {
  display: block; font-size: 11px; font-weight: 700;
  color: var(--text-3); text-transform: uppercase;
  letter-spacing: .8px; margin-bottom: 7px;
}
.form-control {
  width: 100%; background: var(--surface);
  border: 1.5px solid var(--border-2); border-radius: var(--r);
  padding: 10px 14px; color: var(--text); font-size: 14px; outline: none;
  transition: border-color var(--t), box-shadow var(--t);
}
.form-control:focus { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-glow); }
.form-control::placeholder { color: var(--text-4); }
select.form-control { cursor: pointer; }
select.form-control option { background: #fff; }
textarea.form-control { resize: vertical; min-height: 88px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.form-hint  { font-size: 11px; color: var(--text-4); margin-top: 5px; }
.form-error { font-size: 11px; color: var(--red); margin-top: 5px; }

/* ═══════════════════════════════════════════════
   SURFACES
═══════════════════════════════════════════════ */
.box {
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: var(--r-lg);
  padding: 24px;
  box-shadow: var(--sh-sm);
}
.chip {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 5px 12px; border-radius: var(--r-full);
  font-size: 12px; font-weight: 600;
  background: var(--surface); border: 1.5px solid var(--border-2);
  color: var(--text-3); cursor: pointer; transition: all var(--t);
}
.chip:hover { border-color: var(--accent); color: var(--accent); background: var(--accent-lt); }
.chip.active { background: var(--accent); color: #fff; border-color: var(--accent); box-shadow: 0 2px 8px rgba(79,70,229,.25); }

/* ═══════════════════════════════════════════════
   TOASTS
═══════════════════════════════════════════════ */
#toast-container { position: fixed; bottom: 24px; right: 24px; z-index: 9999; display: flex; flex-direction: column; gap: 8px; }
.toast {
  display: flex; align-items: center; gap: 10px;
  padding: 11px 16px; border-radius: var(--r-md);
  font-size: 13px; font-weight: 600; min-width: 240px; max-width: 340px;
  box-shadow: var(--sh-md); animation: toastIn .2s ease;
  background: var(--surface); color: var(--text);
  border: 1px solid var(--border);
}
@keyframes toastIn { from{opacity:0;transform:translateY(10px)} to{opacity:1;transform:none} }
.toast-success { border-color: rgba(22,163,74,.35); }
.toast-error   { border-color: rgba(220,38,38,.32); }
.toast-info    { border-color: rgba(79,70,229,.3); }

/* ═══════════════════════════════════════════════
   SPINNER / LOADING
═══════════════════════════════════════════════ */
.spinner {
  width: 20px; height: 20px;
  border: 2.5px solid rgba(79,70,229,.15);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: spin .65s linear infinite; flex-shrink: 0;
}
@keyframes spin { to { transform: rotate(360deg); } }
.loading-row {
  display: flex; align-items: center; justify-content: center;
  gap: 10px; color: var(--text-3); font-size: 13px;
  padding: 60px 20px; grid-column: 1/-1;
}

/* ═══════════════════════════════════════════════
   EMPTY STATE
═══════════════════════════════════════════════ */
.empty {
  grid-column: 1/-1; text-align: center;
  padding: 72px 20px; color: var(--text-3);
}
.empty-icon { font-size: 40px; margin-bottom: 12px; opacity: .4; }
.empty h3   { font-size: 16px; font-weight: 700; margin-bottom: 6px; }
.empty p    { font-size: 13px; }

/* ═══════════════════════════════════════════════
   PAGINATION
═══════════════════════════════════════════════ */
.pagination { display: flex; justify-content: center; gap: 6px; margin-top: 36px; flex-wrap: wrap; }
.page-btn {
  min-width: 38px; height: 38px; padding: 0 10px;
  background: var(--surface); border: 1.5px solid var(--border-2);
  border-radius: var(--r); color: var(--text-3);
  font-size: 13px; font-weight: 600; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: all var(--t); font-family: var(--font);
}
.page-btn:hover { border-color: var(--accent); color: var(--accent); background: var(--accent-lt); }
.page-btn.active { background: var(--accent); color: #fff; border-color: var(--accent); box-shadow: var(--sh-accent); }

/* ═══════════════════════════════════════════════
   MISC UTILITIES
═══════════════════════════════════════════════ */
.divider  { height: 1px; background: var(--border); }
.stars    { color: #f59e0b; letter-spacing: -1px; font-size: 12px; }
.sr-only  { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); }

/* ═══════════════════════════════════════════════
   SCROLLBAR
═══════════════════════════════════════════════ */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--border-2); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: #94a3b8; }

/* ═══════════════════════════════════════════════
   RESPONSIVE BREAKPOINTS
═══════════════════════════════════════════════ */
@media(max-width:1024px) {
  .card-grid { grid-template-columns: repeat(auto-fill, minmax(170px,1fr)); }
}
@media(max-width:768px) {
  .nav-links { display: none; }
  .nav-search { max-width: 200px; }
  .card-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .form-row  { grid-template-columns: 1fr; }
}
@media(max-width:480px) {
  .nav-search { display: none; }
  .card-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
}

/* ═══════════════════════════════════════════════
   BRAND LOGO — driven by CSS so every page updates at once.
   Navbar/footer are dark navy → white logo. Auth pages are light → dark logo.
═══════════════════════════════════════════════ */
.nav-logo {
  display: block; width: 176px; height: 40px; flex-shrink: 0;
  font-size: 0; line-height: 0; color: transparent;
  background: url('/uploads/brand/clube-horizontal-light.png?v=6') left center / contain no-repeat;
}
.nav-logo > * { display: none !important; }

.footer-logo {
  display: block; width: 208px; height: 44px;
  font-size: 0; line-height: 0; color: transparent;
  background: url('/uploads/brand/clube-horizontal-light.png?v=6') left center / contain no-repeat;
  margin-bottom: 16px;
}
.footer-logo > * { display: none !important; }

/* Auth pages (login/cadastro) sit on light surfaces → dark logo */
.auth-nav .logo, .auth-logo .logo {
  display: inline-block; font-size: 0; line-height: 0; color: transparent;
  background-repeat: no-repeat; background-size: contain;
}
/* dark top bar → white logo */
.auth-nav .logo  {
  width: 158px; height: 34px; background-position: left center;
  background-image: url('/uploads/brand/clube-horizontal-light.png?v=6');
}
/* light card → dark logo, centered */
.auth-logo .logo {
  width: 232px; height: 58px; margin: 0 auto; background-position: center;
  background-image: url('/uploads/brand/clube-horizontal-dark.png?v=6');
}
.auth-nav .logo > *, .auth-logo .logo > * { display: none !important; }

/* ═══════════════════════════════════════════════
   MOBILE NAV — hamburger + drawer (injected by app.js)
═══════════════════════════════════════════════ */
.nav-burger {
  display: none; width: 40px; height: 40px; flex-shrink: 0;
  border-radius: var(--r-sm); cursor: pointer;
  background: rgba(255,255,255,.08); border: 1.5px solid rgba(255,255,255,.14);
  color: #fff; align-items: center; justify-content: center;
}
.nav-burger:hover { background: rgba(255,255,255,.14); }
.nav-burger svg { width: 20px; height: 20px; }

#mobile-menu {
  position: fixed; top: 64px; left: 0; right: 0; z-index: 280;
  background: var(--navy); border-bottom: 1px solid rgba(255,255,255,.1);
  box-shadow: 0 16px 36px rgba(0,0,0,.45);
  display: flex; flex-direction: column; padding: 12px 16px 18px; gap: 2px;
  transform: translateY(-14px); opacity: 0; pointer-events: none;
  transition: transform .22s ease, opacity .22s ease;
  max-height: calc(100vh - 64px); max-height: calc(100dvh - 64px);
  overflow-y: auto; overscroll-behavior: contain;
}
#mobile-menu.open { transform: none; opacity: 1; pointer-events: auto; }
#mobile-menu .mm-search { display: flex; margin-bottom: 10px; }
#mobile-menu .mm-search input {
  width: 100%; height: 44px; border-radius: var(--r);
  background: rgba(255,255,255,.08); border: 1.5px solid rgba(255,255,255,.14);
  padding: 0 14px; color: #fff; font-size: 14px; outline: none;
}
#mobile-menu .mm-search input::placeholder { color: rgba(255,255,255,.4); }
#mobile-menu a {
  padding: 13px 10px; color: rgba(255,255,255,.85);
  font-size: 15px; font-weight: 600; border-radius: var(--r-sm);
  border-bottom: 1px solid rgba(255,255,255,.06);
}
#mobile-menu a:last-child { border-bottom: none; }
#mobile-menu a:active { background: rgba(255,255,255,.08); }

/* ── Navegação por jogo/coleção dentro do drawer mobile ── */
.mm-sec {
  font-size: 10px; font-weight: 800; letter-spacing: 1.2px; text-transform: uppercase;
  color: rgba(255,255,255,.38); padding: 12px 10px 5px;
}
.mm-game {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  padding: 13px 10px; color: rgba(255,255,255,.85);
  font-size: 15px; font-weight: 600; border-radius: var(--r-sm);
  border-bottom: 1px solid rgba(255,255,255,.06); cursor: pointer;
}
.mm-game:active { background: rgba(255,255,255,.08); }
.mm-game svg { transition: transform .2s; color: rgba(255,255,255,.4); flex-shrink: 0; }
.mm-game.open svg { transform: rotate(180deg); }
.mm-sets { display: none; padding: 6px 4px 12px; border-bottom: 1px solid rgba(255,255,255,.06); }
.mm-sets.open { display: block; }
.mm-sets .mega-groups { max-height: 300px; }
/* neutraliza o estilo de link do drawer dentro do painel de coleções */
#mobile-menu .mm-sets a.mega-chip { padding: 5px 3px; font-size: 11px; border-bottom: none; }
#mobile-menu .mm-sets a.mega-setrow { padding: 6px 8px; font-size: 12.5px; font-weight: 600; border-bottom: none; }
#mobile-menu .mm-sets a.mm-all { display: block; padding: 4px 2px 10px; font-size: 13px; font-weight: 700; color: #a5b4fc; border-bottom: none; }

/* ═══════════════════════════════════════════════
   MOBILE / RESPONSIVE POLISH — no horizontal overflow, tap-friendly
═══════════════════════════════════════════════ */
html, body { overflow-x: hidden; max-width: 100%; }
img, svg, video, canvas { max-width: 100%; }
* { min-width: 0; }

@media(max-width: 860px) {
  .nav-search { max-width: 260px; }
}
@media(max-width: 768px) {
  .nav-links  { display: none; }
  .nav-search { display: none; }
  .nav-burger { display: flex; }
  /* botões inline (Minha Coleção / Entrar / Cadastrar) já estão no drawer → some no mobile
     pra não estourar a largura e "engolir" o menu */
  .nav-actions .btn-nav { display: none; }
  .nav-actions { gap: 6px; }
  .nav-logo   { width: 152px; height: 36px; }
  .nav-inner  { gap: 8px; flex-wrap: nowrap; }
  .card-grid  { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .form-row   { grid-template-columns: 1fr; }
  .section    { padding: 30px 0; }
  .trust-bar-inner { gap: 14px 22px; }
}
@media(max-width: 480px) {
  .container  { padding: 0 14px; }
  .card-grid  { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .nav-logo   { width: 140px; height: 32px; }
  .product-card-price { font-size: 16px; }
  .btn-lg     { padding: 12px 18px; font-size: 14px; }
  .page-btn   { min-width: 34px; height: 34px; }
  #toast-container { left: 14px; right: 14px; bottom: 14px; }
  .toast { min-width: 0; }
}

/* ═══════════════════════════════════════════════
   PREMIUM POLISH — detalhes globais de acabamento
═══════════════════════════════════════════════ */
/* Seleção de texto com a cor da marca */
::selection { background: rgba(79,70,229,.16); color: var(--text); }

/* Foco visível e elegante pra navegação por teclado (acessibilidade) */
:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
  border-radius: 4px;
}
.btn:focus-visible, .form-control:focus-visible { outline-offset: 1px; }

/* Scrollbar mais fina e discreta */
::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-thumb { background: #cbd5e1; border-radius: 8px; border: 2px solid var(--bg); }
::-webkit-scrollbar-thumb:hover { background: #94a3b8; }

/* Imagens de carta nunca "esticam" feio enquanto carregam */
.product-card-img img { background: var(--surface-3); }

/* Títulos de seção um pouco mais presentes em telas grandes */
@media(min-width: 1024px) {
  .section-title { font-size: 24px; }
}

/* ── SKELETON LOADING — cartões fantasma enquanto a grade carrega ── */
@keyframes sk-shimmer { from { background-position: 200% 0; } to { background-position: -200% 0; } }
.sk-card {
  border: 1.5px solid var(--border); border-radius: var(--r-md);
  overflow: hidden; background: var(--surface);
}
.sk-img { aspect-ratio: 5/7; }
.sk-line { height: 12px; border-radius: 6px; margin: 10px 12px 0; }
.sk-line.w60 { width: 60%; }
.sk-line.w40 { width: 40%; margin-bottom: 14px; }
.sk-img, .sk-line {
  background: linear-gradient(90deg, var(--surface-3) 25%, #e8edf3 50%, var(--surface-3) 75%);
  background-size: 200% 100%;
  animation: sk-shimmer 1.4s ease infinite;
}

/* ── SCROLL REVEAL — seções surgem suavemente ao entrar na tela ── */
[data-reveal] { opacity: 1; transform: none; }
.js-reveal [data-reveal] { opacity: 0; transform: translateY(14px); transition: opacity .5s ease, transform .5s ease; }
.js-reveal [data-reveal].revealed { opacity: 1; transform: none; }

/* Toast: ícone num chip colorido */
.toast-icon {
  width: 18px; height: 18px; border-radius: 50%; font-size: 11px; font-weight: 800; color: #fff;
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.toast-success .toast-icon { background: #16a34a; }
.toast-error   .toast-icon { background: #dc2626; }
.toast-info    .toast-icon { background: var(--accent); }

/* Estado vazio com personalidade (carta virada pra baixo) */
.empty-card-back {
  width: 86px; height: 120px; margin: 0 auto 16px;
  border-radius: 10px; position: relative;
  background: linear-gradient(135deg, #312e81, #4338ca 55%, #6d28d9);
  box-shadow: 0 10px 24px rgba(49,46,129,.30), inset 0 0 0 4px rgba(255,255,255,.14);
  transform: rotate(-6deg);
}
.empty-card-back::after {
  content: '✦'; position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  font-size: 34px; color: rgba(255,255,255,.4);
}

/* Fade-in suave ao abrir/navegar entre páginas */
@keyframes pageFade { from { opacity: 0; transform: translateY(5px); } to { opacity: 1; transform: none; } }
.container { animation: pageFade .22s ease both; }
.hero .container { animation: none; }   /* o hero (escuro) não some/escurece no load */

/* animação "abrindo o fichário" - usada no overlay das pastas (a home usa a capa) */
@keyframes binderOpen { 0% { opacity: 0; transform: perspective(1100px) rotateX(-16deg) translateY(12px) scale(.95); } 100% { opacity: 1; transform: none; } }

/* Menu do perfil (avatar -> atalhos) */
.nav-prof { position: relative; }
.nav-prof-btn { display: flex; align-items: center; gap: 8px; padding: 6px 12px; border-radius: var(--r-sm);
  background: rgba(255,255,255,.08); color: rgba(255,255,255,.85); font-size: 12px; font-weight: 600;
  border: none; cursor: pointer; font-family: inherit; transition: background .15s; }
.nav-prof-btn:hover { background: rgba(255,255,255,.14); color: #fff; }
.nav-prof-av { width: 26px; height: 26px; border-radius: 50%; background: var(--accent); display: flex;
  align-items: center; justify-content: center; font-size: 11px; font-weight: 800; color: #fff; flex-shrink: 0; }
.nav-prof-chev { opacity: .65; transition: transform .15s; }
.nav-prof-menu.open ~ * .nav-prof-chev, .nav-prof-btn:has(+ .nav-prof-menu.open) .nav-prof-chev { transform: rotate(180deg); }
.nav-prof-menu { position: absolute; right: 0; top: calc(100% + 8px); min-width: 200px; background: var(--surface);
  border: 1px solid var(--border); border-radius: var(--r-md); box-shadow: var(--sh-lg); padding: 6px; display: none; z-index: 130; }
.nav-prof-menu.open { display: block; animation: pageFade .14s ease both; }
.nav-prof-menu a { display: block; padding: 9px 12px; border-radius: var(--r-sm); font-size: 13px; font-weight: 600; color: var(--text-2); }
.nav-prof-menu a:hover { background: var(--surface-2); color: var(--accent); }
.nav-prof-sep { height: 1px; background: var(--border); margin: 5px 4px; }
@media (max-width: 680px) { .nav-prof-name, .nav-prof-chev { display: none; } }

/* === MOLDURAS DE AVATAR (cosméticos desbloqueáveis) === */
.avatar-fr { position: relative; display: inline-block; line-height: 0; border-radius: 50%; flex-shrink: 0; }
.avatar-fr img, .avatar-fr .av-ph { display: block; width: 100%; height: 100%; border-radius: 50%; object-fit: cover; position: relative; z-index: 1; }
.avatar-fr .av-ph { display: flex; align-items: center; justify-content: center; background: var(--accent); color: #fff; font-weight: 800; }
/* anel da moldura — vale pro helper .avatar-fr e pros wrappers .av-wrap / .fr-wrap */
.fr-wrap { position: relative; display: inline-block; border-radius: 50%; line-height: 0; }
.avatar-fr[data-frame]:not([data-frame="none"]):not([data-frame="royal"])::before,
.av-wrap[data-frame]:not([data-frame="none"]):not([data-frame="royal"])::before,
.fr-wrap[data-frame]:not([data-frame="none"]):not([data-frame="royal"])::before {
  content: ''; position: absolute; inset: -3px; border-radius: 50%; z-index: 0; }
.av-wrap[data-frame] > *, .fr-wrap[data-frame] > * { position: relative; z-index: 1; }
[data-frame="ring"]::before   { background: var(--accent); }
[data-frame="gold"]::before   { background: linear-gradient(135deg,#fde68a,#d97706,#fbbf24,#92400e); }
[data-frame="gem"]::before    { background: linear-gradient(135deg,#a5f3fc,#0ea5e9,#a78bfa,#22d3ee); }
[data-frame="fire"]::before   { background: linear-gradient(135deg,#fde047,#f97316,#dc2626); box-shadow: 0 0 9px rgba(249,115,22,.55); }
[data-frame="nature"]::before { background: linear-gradient(135deg,#bbf7d0,#16a34a,#65a30d); }
[data-frame="legend"]::before { background: conic-gradient(from 0deg,#fff7cc,#fbbf24,#b45309,#fde68a,#f59e0b,#fff7cc); animation: avSpin 6s linear infinite; }
[data-frame="holo"]::before   { background: conic-gradient(from 0deg,#f472b6,#60a5fa,#34d399,#fbbf24,#f472b6); animation: avSpin 4s linear infinite; }
[data-frame="lucky"]::before  { background: conic-gradient(from 0deg,#bbf7d0,#16a34a,#fde68a,#f59e0b,#86efac,#bbf7d0); animation: avSpin 5s linear infinite; box-shadow: 0 0 8px rgba(34,197,94,.5); }  /* 🎁 exclusiva do Cofre */
@keyframes avSpin { to { transform: rotate(360deg); } }

/* === MOLDURA ANIMADA "Realeza" — anel dourado (arte) + brilho pulsante + faíscas subindo === */
.avatar-fr[data-frame="royal"], .av-wrap[data-frame="royal"], .fr-wrap[data-frame="royal"] { overflow: visible; }
[data-frame="royal"]::after {                 /* o anel dourado por cima do avatar (buraco = 63.9% da arte → foto preenche) */
  content: ''; position: absolute; z-index: 3; pointer-events: none;
  width: 152%; height: 152%; left: -26%; top: -26%;
  background: url(/uploads/frames/royal.png) center/contain no-repeat;
  animation: royalGlow 3.2s ease-in-out infinite;
}
@keyframes royalGlow {
  0%, 100% { filter: drop-shadow(0 0 3px rgba(251,191,36,.45)); }
  50%      { filter: drop-shadow(0 0 11px rgba(251,191,36,.9)); }
}
[data-frame="royal"]::before {                 /* faíscas douradas subindo ao redor do anel */
  content: ''; position: absolute; z-index: 4; pointer-events: none;
  width: 200%; height: 200%; left: -50%; top: -50%; border-radius: 0;
  background-image:
    radial-gradient(circle, rgba(255,236,170,.95) 0, rgba(255,236,170,0) 1.7px),
    radial-gradient(circle, rgba(255,248,214,.85) 0, rgba(255,248,214,0) 1.3px),
    radial-gradient(circle, rgba(255,212,120,.8)  0, rgba(255,212,120,0) 1.5px);
  background-size: 34px 50px, 44px 62px, 58px 80px;
  animation: royalSpark 3.2s linear infinite;
  -webkit-mask: radial-gradient(circle closest-side, transparent 43%, #000 52%, #000 86%, transparent 99%);
          mask: radial-gradient(circle closest-side, transparent 43%, #000 52%, #000 86%, transparent 99%);
}
@keyframes royalSpark {
  from { background-position: 0 0, 22px 0, 38px 0; }
  to   { background-position: 0 -50px, 22px -62px, 38px -80px; }
}

/* === NOVIDADES DO CLUBE (modal "o que tem de novo", 1x por versão) === */
.news-bg { position: fixed; inset: 0; z-index: 700; background: rgba(15,18,30,.6); backdrop-filter: blur(4px);
  display: flex; align-items: center; justify-content: center; padding: 18px; }
.news-card { background: var(--surface); border-radius: 18px; width: 100%; max-width: 480px; max-height: 88vh; overflow-y: auto;
  padding: 26px 24px 22px; position: relative; box-shadow: 0 30px 80px rgba(0,0,0,.45); animation: newsPop .4s cubic-bezier(.2,.8,.3,1.15) both; }
@keyframes newsPop { from { opacity: 0; transform: scale(.9) translateY(16px); } to { opacity: 1; transform: none; } }
.news-x { position: absolute; top: 14px; right: 14px; background: var(--surface-2); border: none; color: var(--text-3);
  width: 28px; height: 28px; border-radius: 8px; cursor: pointer; }
.news-eyebrow { font-size: 11px; font-weight: 800; letter-spacing: 1px; text-transform: uppercase; color: var(--accent); }
.news-title { font-size: 21px; font-weight: 800; letter-spacing: -.3px; margin: 3px 0 16px; }
.news-list { display: flex; flex-direction: column; gap: 9px; margin-bottom: 16px; }
.news-item { display: flex; align-items: center; gap: 12px; padding: 12px 13px; border: 1px solid var(--border);
  border-radius: 12px; text-decoration: none; color: inherit; transition: border-color .14s, background .14s; }
.news-item:hover { border-color: var(--accent); background: var(--surface-2); }
.news-ic { width: 38px; height: 38px; border-radius: 10px; background: var(--accent-lt); color: var(--accent);
  display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.news-ic svg { width: 20px; height: 20px; }
.news-tx { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 1px; }
.news-tx strong { font-size: 13.5px; }
.news-tx span { font-size: 12px; color: var(--text-3); line-height: 1.45; }
.news-go { font-size: 11.5px; font-weight: 800; color: var(--accent); white-space: nowrap; }
@media (max-width: 480px) { .news-go { display: none; } }

/* Quem pediu menos animação no sistema, recebe menos animação */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  html { scroll-behavior: auto; }
}
