/* Stickers, packs, album */

/* ===== TRADING CARD STICKER (Plantec Copa 2026) ===== */
.sticker-link { display: block; text-decoration: none; color: inherit; }
.sticker-link:hover { text-decoration: none; }

.sticker {
  position: relative;
  aspect-ratio: 5 / 7;
  border-radius: 14px;
  background: #f5f1e6;
  padding: 6px;
  border: 1px solid rgba(0,0,0,0.12);
  overflow: hidden;
  display: block;
  transition: transform var(--transition), box-shadow var(--transition), filter var(--transition);
  cursor: pointer;
  box-shadow: var(--shadow-sm);
  container-type: inline-size;
}
.sticker:hover {
  transform: translateY(-6px) rotate(-0.5deg);
  box-shadow: var(--shadow-lg);
}
.sticker-art {
  position: relative;
  width: 100%; height: 100%;
  overflow: hidden;
  isolation: isolate;
  border-radius: 8px;
  /* fundo padrão (cat: cameras) — sobrescrito por data-page */
  background:
    radial-gradient(ellipse 80% 60% at 50% 35%, rgba(255,255,255,0.18), transparent 65%),
    linear-gradient(155deg, #0d4c2e 0%, #1a7a3f 55%, #0a3a22 100%);
}

/* ===== Cor de fundo por categoria/página ===== */
.sticker[data-page="cameras"] .sticker-art {
  background:
    radial-gradient(ellipse 80% 60% at 50% 35%, rgba(255,255,255,0.18), transparent 65%),
    linear-gradient(155deg, #0d4c2e 0%, #1a7a3f 55%, #0a3a22 100%);
}
.sticker[data-page="gravadores"] .sticker-art {
  background:
    radial-gradient(ellipse 80% 60% at 50% 35%, rgba(255,255,255,0.18), transparent 65%),
    linear-gradient(155deg, #2a1a4d 0%, #4a2880 55%, #1d0f3a 100%);
}
.sticker[data-page="controle-acesso"] .sticker-art {
  background:
    radial-gradient(ellipse 80% 60% at 50% 35%, rgba(255,255,255,0.18), transparent 65%),
    linear-gradient(155deg, #102145 0%, #2a3d75 55%, #0a1532 100%);
}
.sticker[data-page="telefonia"] .sticker-art {
  background:
    radial-gradient(ellipse 80% 60% at 50% 35%, rgba(255,255,255,0.18), transparent 65%),
    linear-gradient(155deg, #4a1d05 0%, #8a3d10 55%, #2e1004 100%);
}
.sticker[data-page="redes"] .sticker-art {
  background:
    radial-gradient(ellipse 80% 60% at 50% 35%, rgba(255,255,255,0.18), transparent 65%),
    linear-gradient(155deg, #08364a 0%, #0d6f80 55%, #032332 100%);
}
.sticker[data-page="alarmes"] .sticker-art {
  background:
    radial-gradient(ellipse 80% 60% at 50% 35%, rgba(255,255,255,0.18), transparent 65%),
    linear-gradient(155deg, #4d0d0d 0%, #8a2222 55%, #2e0707 100%);
}

/* ===== Camadas decorativas do fundo ===== */
/* circuito tipo placa eletrônica em SVG inline via background */
.sticker-bg-circuit {
  position: absolute; inset: 0;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 280' fill='none' stroke='%23ffffff' stroke-width='0.6' opacity='0.18'><path d='M0 30 H60 V70 H120 V40 H200'/><path d='M0 110 H40 V160 H100 V130 H180 V190 H200'/><path d='M0 200 H80 V250 H160 V220 H200'/><circle cx='60' cy='30' r='2' fill='%23ffffff'/><circle cx='120' cy='40' r='2' fill='%23ffffff'/><circle cx='40' cy='110' r='2' fill='%23ffffff'/><circle cx='100' cy='130' r='2' fill='%23ffffff'/><circle cx='180' cy='190' r='2' fill='%23ffffff'/><circle cx='80' cy='200' r='2' fill='%23ffffff'/><circle cx='160' cy='220' r='2' fill='%23ffffff'/><rect x='25' y='65' width='8' height='10' fill='%23ffffff' opacity='0.3'/><rect x='95' y='35' width='8' height='6' fill='%23ffffff' opacity='0.3'/><rect x='145' y='185' width='8' height='10' fill='%23ffffff' opacity='0.3'/></svg>");
  background-size: 100% 100%;
  pointer-events: none;
  z-index: 1;
}
/* texto da marca repetido grande no fundo, atrás da foto — muito sutil */
.sticker-bg-brand {
  position: absolute;
  top: 35%; bottom: 18%; left: -15%; right: -15%;
  display: flex; flex-direction: column; justify-content: center; align-items: center;
  text-align: center;
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(2.6rem, 28cqi, 6rem);
  letter-spacing: -0.04em;
  color: rgba(244, 198, 31, 0.18);
  text-shadow: 0 2px 0 rgba(0,0,0,0.12);
  white-space: nowrap;
  transform: rotate(-8deg);
  z-index: 2;
  pointer-events: none;
  line-height: 0.82;
  word-spacing: 0.3em;
  user-select: none;
}

/* ===== Topo do card: tag país + escudo ===== */
.sticker-top {
  position: absolute;
  top: 8px; left: 8px; right: 8px;
  display: flex; align-items: center; justify-content: space-between;
  z-index: 5;
}
.sticker-tag-left {
  display: inline-flex; align-items: center; gap: 4px;
  background: rgba(0,0,0,0.42);
  border: 1px solid rgba(255,255,255,0.25);
  border-radius: 4px;
  padding: 2px 5px;
  backdrop-filter: blur(6px);
}
.sticker-cc {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 10px;
  color: white;
  letter-spacing: 0.04em;
}
.sticker-flag svg {
  display: block;
  border-radius: 2px;
  box-shadow: 0 0 0 0.5px rgba(0,0,0,0.4);
}
.sticker-shield svg {
  display: block;
  filter: drop-shadow(0 2px 4px rgba(0,0,0,0.5));
}

/* ===== Tagline (raridade) — discreto no canto superior direito ===== */
.sticker-tagline {
  position: absolute;
  top: 6px; right: 6px;
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(7px, 2.6cqi, 10px);
  color: white;
  letter-spacing: 0.06em;
  text-shadow: 0 2px 6px rgba(0,0,0,0.7);
  z-index: 6;
  line-height: 1;
  text-transform: uppercase;
  background: rgba(0,0,0,0.35);
  padding: 3px 6px;
  border-radius: 3px;
  backdrop-filter: blur(2px);
}

/* league name vertical na esquerda (rotacionado 90°) — mais discreto */
.sticker-league {
  position: absolute;
  top: 28%; left: 3px;
  height: 34%;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(5px, 1.9cqi, 7px);
  color: rgba(255,255,255,0.55);
  letter-spacing: 0.22em;
  text-transform: uppercase;
  line-height: 1;
  z-index: 5;
  text-shadow: 0 1px 2px rgba(0,0,0,0.5);
  writing-mode: vertical-rl;
  transform: rotate(180deg);
  text-align: center;
  white-space: nowrap;
}

/* ===== Foto do produto — domina o card, fade suave nas bordas ===== */
.sticker-photo {
  position: absolute;
  top: 8%;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  height: 78%;
  object-fit: cover;
  /* Máscara radial mais aberta: foto preenche praticamente tudo,
     bordas fundem com gradiente do card (efeito Panini). */
  -webkit-mask-image: radial-gradient(ellipse 78% 80% at 50% 48%, #000 72%, rgba(0,0,0,0.85) 88%, transparent 100%);
          mask-image: radial-gradient(ellipse 78% 80% at 50% 48%, #000 72%, rgba(0,0,0,0.85) 88%, transparent 100%);
  filter:
    contrast(1.06) saturate(1.1)
    drop-shadow(0 10px 18px rgba(0,0,0,0.55))
    drop-shadow(0 3px 6px rgba(0,0,0,0.35));
  z-index: 4;
  transition: transform 300ms ease;
}
.sticker:hover .sticker-photo { transform: translateX(-50%) scale(1.04); }
.sticker-initials {
  position: absolute;
  top: 38%; left: 50%;
  transform: translateX(-50%);
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 900;
  color: white;
  letter-spacing: -0.04em;
  z-index: 4;
  text-shadow: 0 2px 6px rgba(0,0,0,0.4);
}

/* ===== Bottom: code + nome + stats ===== */
.sticker-bottom {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: end;
  gap: 6px;
  padding: 32px 6px 8px;
  background: linear-gradient(to top, rgba(0,0,0,0.82) 0%, rgba(0,0,0,0.55) 55%, rgba(0,0,0,0.0) 100%);
  z-index: 5;
}

.sticker-code-badge {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  align-self: end;
  background: white;
  border: 2px solid #0a1c0c;
  border-radius: 3px;
  padding: 3px 5px 4px;
  min-width: 36px;
  line-height: 1;
  box-shadow: 0 2px 4px rgba(0,0,0,0.35);
}
.sticker-code-label {
  font-family: var(--font-mono);
  font-size: clamp(6px, 2cqi, 8px);
  font-weight: 700;
  color: #0a1c0c;
  letter-spacing: 0.06em;
}
.sticker-code-value {
  font-family: var(--font-display);
  font-size: clamp(11px, 3.6cqi, 16px);
  font-weight: 900;
  color: #0a1c0c;
  letter-spacing: -0.02em;
  margin-top: 2px;
  border-top: 1px solid #0a1c0c;
  padding-top: 1px;
  width: 100%;
  text-align: center;
}

.sticker-name {
  display: flex; flex-direction: column; justify-content: flex-end;
  text-align: center;
  line-height: 1.05;
  overflow: hidden;
  padding: 0 2px;
}
.sticker-name strong {
  font-family: var(--font-display);
  font-weight: 900;
  color: white;
  font-size: clamp(9px, 3.2cqi, 13px);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  text-shadow: 0 1px 2px rgba(0,0,0,0.7);
}
.sticker-name span {
  font-family: var(--font-display);
  font-weight: 800;
  color: white;
  font-size: clamp(9.5px, 3.4cqi, 13px);
  letter-spacing: 0.01em;
  text-transform: uppercase;
  margin-top: 2px;
  text-shadow: 0 1px 2px rgba(0,0,0,0.7);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  word-break: break-word;
  line-height: 1.05;
}
.sticker-name em {
  font-style: normal;
  font-family: var(--font-mono);
  font-size: clamp(8px, 2.8cqi, 11px);
  color: rgba(255,255,255,0.78);
  margin-top: 3px;
  letter-spacing: 0.08em;
}

.sticker-stats {
  display: flex; flex-direction: column;
  gap: 2px;
  align-items: stretch;
  align-self: end;
  min-width: 64px;
  max-width: 40%;
}
.stat-row {
  display: flex; align-items: center; gap: 4px;
  background: transparent;
  border: none;
  padding: 0;
  font-family: var(--font-mono);
  font-size: clamp(7px, 2.4cqi, 10px);
  line-height: 1;
  font-weight: 700;
}
.stat-key {
  color: white;
  letter-spacing: 0.02em;
  text-shadow: 0 1px 2px rgba(0,0,0,0.7);
}
.stat-num {
  margin-left: auto;
  background: #F4C61F;
  color: #0a1c0c;
  font-weight: 900;
  padding: 1px 4px;
  border-radius: 2px;
  min-width: 20px;
  text-align: center;
  box-shadow: 0 1px 2px rgba(0,0,0,0.3);
}

/* ===== Duplicate badge ===== */
.sticker-dup-badge {
  position: absolute;
  top: 36px; right: 8px;
  background: var(--brand-magenta);
  color: white;
  font-family: var(--font-display);
  font-size: 10px;
  font-weight: 900;
  padding: 2px 6px;
  border-radius: 999px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.4);
  z-index: 6;
}

/* ===== Rarity treatments ===== */
.sticker[data-rarity="common"]  .sticker-tagline { color: #e8eef4; }
.sticker[data-rarity="rare"]    .sticker-tagline { color: #67ece6; }
.sticker[data-rarity="epic"]    .sticker-tagline { color: #ffaadd; }
.sticker[data-rarity="legend"]  .sticker-tagline { color: #ffd84a; text-shadow: 0 0 12px rgba(255, 216, 74, 0.5), 0 2px 4px rgba(0,0,0,0.5); }

.sticker[data-rarity="legend"] {
  border-color: var(--brand-yellow);
  box-shadow: 0 0 0 2px var(--brand-yellow), var(--shadow-md);
}
.sticker[data-rarity="epic"] {
  border-color: var(--brand-magenta);
  box-shadow: 0 0 0 1px var(--brand-magenta), var(--shadow-sm);
}
.sticker[data-rarity="rare"] {
  border-color: var(--brand-turquoise);
}
.sticker[data-rarity="legend"]::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(45deg, transparent 40%, rgba(255,215,0,0.18) 50%, transparent 60%);
  animation: shine 3.5s infinite;
  pointer-events: none;
  z-index: 7;
}
@keyframes shine {
  0% { transform: translateX(-100%); }
  100% { transform: translateX(100%); }
}

/* ===== Compat: legacy elementos que sumiram (mantemos para não quebrar páginas que usem) ===== */
.sticker-info { display: none; }
.sticker-rarity-dot { display: none; }
.sticker-number { display: none; }

/* Empty slot */
.sticker-slot {
  aspect-ratio: 5 / 7;
  border: 2px dashed var(--color-border);
  border-radius: var(--radius-md);
  background: transparent;
  display: grid; place-items: center;
  color: var(--color-text-faint);
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  font-weight: 600;
}
.sticker-slot.duplicate {
  border-style: solid;
  background: var(--color-surface);
  border-color: var(--color-primary-highlight);
  color: var(--color-primary);
  position: relative;
}
.sticker-slot.duplicate::after {
  content: 'dupl.';
  position: absolute; bottom: 4px; right: 4px;
  font-size: 9px; opacity: 0.7;
}

/* ===== PACK CARD ===== */
.pack {
  position: relative;
  aspect-ratio: 3 / 4;
  background: linear-gradient(165deg, var(--color-primary), var(--color-primary-active));
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  cursor: pointer;
  transition: transform var(--transition), box-shadow var(--transition);
  color: white;
}
.pack:hover { transform: translateY(-4px) rotate(-1deg); box-shadow: var(--shadow-lg); }
.pack-gold { background: linear-gradient(165deg, #c8941e, #8a5c0e); }
.pack-epic { background: linear-gradient(165deg, #7a2a9c, #4a1a60); }

/* ===== SPORTY GREEN-YELLOW STAGE (envelope backdrop) ===== */
.packs-stage {
  position: relative;
  border-radius: var(--radius-xl);
  padding: var(--space-8) var(--space-6) var(--space-6);
  overflow: hidden;
  isolation: isolate;
  background:
    radial-gradient(ellipse 70% 90% at 85% 15%, rgba(244,198,31,0.95), transparent 60%),
    radial-gradient(ellipse 60% 80% at 10% 85%, rgba(0,140,90,0.55), transparent 60%),
    linear-gradient(135deg, #0d8a4e 0%, #14a85c 35%, #4cc26a 60%, #f4c61f 100%);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.25),
    0 14px 40px rgba(13, 138, 78, 0.25);
}
.packs-stage::before {
  /* sporty diagonal speed lines */
  content: '';
  position: absolute; inset: 0;
  background:
    repeating-linear-gradient(115deg,
      transparent 0 28px,
      rgba(255,255,255,0.06) 28px 30px,
      transparent 30px 70px,
      rgba(255,255,255,0.04) 70px 71px);
  pointer-events: none;
  z-index: 0;
}
.packs-stage::after {
  /* big radial highlight, like a stadium spotlight */
  content: '';
  position: absolute;
  top: -20%; left: 50%;
  width: 120%; aspect-ratio: 2/1;
  transform: translateX(-50%);
  background: radial-gradient(ellipse at center, rgba(255,255,255,0.35), transparent 65%);
  filter: blur(20px);
  pointer-events: none;
  z-index: 0;
}
.packs-stage > * { position: relative; z-index: 1; }
.packs-stage .pack-meta strong,
.packs-stage .pack-meta span {
  color: white;
  text-shadow: 0 1px 2px rgba(0,0,0,0.35);
}
.packs-stage .pack-meta strong { font-weight: 700; }
.packs-stage .pack-meta span { opacity: 0.9; }

/* compact variant for sidebar (dashboard) */
.packs-stage-compact {
  padding: var(--space-5) var(--space-4) var(--space-5);
  border-radius: var(--radius-lg);
}

/* lift envelopes slightly so they pop off the green field */
.packs-stage .pack-envelope {
  filter: drop-shadow(0 16px 30px rgba(0,0,0,0.32)) drop-shadow(0 2px 6px rgba(0,0,0,0.2));
}
.packs-stage .pack-envelope.pack-gold {
  filter: drop-shadow(0 16px 32px rgba(244,198,31,0.55)) drop-shadow(0 2px 8px rgba(0,0,0,0.25));
}

/* Envelope variants — use real artwork as background */
.pack-envelope {
  background: transparent url('../assets/envelope-prata-sm.png') center / contain no-repeat;
  border: none;
  aspect-ratio: 1 / 1.05;
  box-shadow: none;
  filter: drop-shadow(0 12px 24px rgba(0,0,0,0.28)) drop-shadow(0 2px 6px rgba(0,0,0,0.18));
}
.pack-envelope.pack-gold {
  background: transparent url('../assets/envelope-dourado-sm.png') center / contain no-repeat;
  filter: drop-shadow(0 14px 28px rgba(244,198,31,0.45)) drop-shadow(0 2px 6px rgba(0,0,0,0.2));
}
.pack-envelope::before { display: none; }
.pack-envelope .pack-content {
  /* hide the textual content — envelope artwork carries the message */
  position: absolute;
  bottom: 0; left: 0; right: 0;
  padding: var(--space-3) var(--space-4);
  background: linear-gradient(to top, rgba(0,0,0,0.55), transparent);
  height: auto;
  flex-direction: row;
  align-items: flex-end;
  justify-content: space-between;
  gap: var(--space-2);
  opacity: 0;
  transition: opacity var(--transition);
}
.pack-envelope:hover .pack-content { opacity: 1; }
.pack-envelope .pack-label,
.pack-envelope .pack-title,
.pack-envelope .pack-count {
  color: white;
  text-shadow: 0 1px 3px rgba(0,0,0,0.6);
}
.pack-envelope .pack-title {
  font-size: var(--text-sm);
  margin: 0;
}
.pack-envelope .pack-bottom { margin-top: 0; }

.pack::before {
  content: '';
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse at top right, rgba(255,255,255,0.2), transparent 60%),
    repeating-linear-gradient(135deg, transparent 0 20px, rgba(255,255,255,0.04) 20px 21px);
}
.pack-content {
  position: relative;
  padding: var(--space-5);
  height: 100%;
  display: flex; flex-direction: column;
}
.pack-label {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  font-weight: 700;
  opacity: 0.8;
}
.pack-title {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  font-weight: 900;
  line-height: 1;
  margin-top: var(--space-1);
}
.pack-bottom { margin-top: auto; }
.pack-count {
  font-family: var(--font-mono);
  font-size: 11px;
  opacity: 0.9;
}

/* ===== ALBUM PAGE ===== */
.album-page-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  padding: var(--space-6);
  box-shadow: var(--shadow-sm);
}
.album-page-head {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: var(--space-5);
  padding-bottom: var(--space-4);
  border-bottom: 1px solid var(--color-divider);
}
.album-page-head h2 {
  font-size: var(--text-lg);
  font-family: var(--font-display);
  font-weight: 800;
  display: flex; align-items: center; gap: var(--space-3);
}
.album-page-counter {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  color: var(--color-text-muted);
  background: var(--color-surface-offset);
  padding: var(--space-1) var(--space-2);
  border-radius: var(--radius-sm);
}
.album-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
  gap: var(--space-4);
  container-type: inline-size;
}
.album-grid .sticker { container-type: inline-size; }

/* ===== PACK OPENING ANIMATION ===== */
.pack-opening {
  position: fixed;
  inset: 0;
  background: rgba(12, 18, 32, 0.96);
  backdrop-filter: blur(12px);
  z-index: 100;
  display: none;
  place-items: center;
  padding: var(--space-6);
}
.pack-opening.active { display: grid; }
.pack-opening-stage {
  text-align: center;
  max-width: 700px;
  width: 100%;
}
.pack-big {
  width: 320px;
  aspect-ratio: 1 / 1.05;
  margin: 0 auto var(--space-8);
  background: transparent url('../assets/envelope-prata.png') center / contain no-repeat;
  border-radius: 0;
  box-shadow: none;
  filter: drop-shadow(0 30px 60px rgba(0,0,0,0.7)) drop-shadow(0 6px 14px rgba(0,0,0,0.4));
  position: relative;
  overflow: visible;
  animation: packFloat 3s ease-in-out infinite;
  cursor: pointer;
  display: grid; place-items: center;
  color: white;
  padding: 0;
}
.pack-big.pack-big-gold {
  background: transparent url('../assets/envelope-dourado.png') center / contain no-repeat;
  filter: drop-shadow(0 30px 70px rgba(244,198,31,0.65)) drop-shadow(0 6px 14px rgba(0,0,0,0.4));
}
.pack-big::before {
  content: none;
}
@keyframes packFloat {
  0%, 100% { transform: translateY(0) rotate(-2deg); }
  50% { transform: translateY(-16px) rotate(2deg); }
}
.pack-big-inner {
  position: relative;
  text-align: center;
  display: none; /* envelope artwork carries the message */
}
.pack-big-inner .pack-title { font-size: var(--text-xl); }
.pack-reveal-grid {
  display: none;
  grid-template-columns: repeat(5, 1fr);
  gap: var(--space-3);
  max-width: 640px;
  margin: 0 auto var(--space-6);
}
.pack-reveal-grid.active { display: grid; }
.pack-reveal-grid .sticker {
  animation: revealIn 600ms cubic-bezier(0.16,1,0.3,1) both;
}
.pack-reveal-grid .sticker:nth-child(1) { animation-delay: 0ms; }
.pack-reveal-grid .sticker:nth-child(2) { animation-delay: 120ms; }
.pack-reveal-grid .sticker:nth-child(3) { animation-delay: 240ms; }
.pack-reveal-grid .sticker:nth-child(4) { animation-delay: 360ms; }
.pack-reveal-grid .sticker:nth-child(5) { animation-delay: 480ms; }
@keyframes revealIn {
  from { opacity: 0; transform: translateY(32px) scale(0.85) rotateY(-30deg); }
  to { opacity: 1; transform: none; }
}
.pack-opening-title {
  color: white;
  font-size: var(--text-xl);
  font-family: var(--font-display);
  margin-bottom: var(--space-2);
}
.pack-opening-sub {
  color: rgba(255,255,255,0.6);
  margin-bottom: var(--space-8);
  font-size: var(--text-sm);
}

/* ===== STATS ===== */
.stat-card {
  padding: var(--space-5);
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  transition: transform var(--transition), box-shadow var(--transition);
}
.stat-card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }
.stat-label {
  font-size: var(--text-xs);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-text-muted);
  font-weight: 600;
}
.stat-value {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: 800;
  margin-top: var(--space-2);
  color: var(--color-text);
  letter-spacing: -0.02em;
  line-height: 1;
}
.stat-hint {
  margin-top: var(--space-2);
  font-size: var(--text-xs);
  color: var(--color-text-muted);
}
.stat-hint strong { color: var(--color-accent); font-weight: 700; }

/* ===== TRADE CARDS ===== */
.trade-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: var(--space-5);
  display: flex; gap: var(--space-4);
  align-items: center;
  flex-wrap: wrap;
}
.trade-party { flex: 1; min-width: 240px; }
.trade-party h4 {
  font-size: var(--text-xs);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-text-muted);
  margin-bottom: var(--space-2);
  font-weight: 600;
}
.trade-stickers {
  display: flex; gap: var(--space-2); flex-wrap: wrap;
}
.trade-stickers .sticker,
.sidebar-stickers .sticker { width: 132px; }

/* Compact variant for small contexts (trades, sidebar, missing-grid) */
.trade-stickers .sticker .sticker-tagline,
.sidebar-stickers .sticker .sticker-tagline,
.missing-grid .sticker .sticker-tagline,
.trade-stickers .sticker .sticker-league,
.sidebar-stickers .sticker .sticker-league,
.missing-grid .sticker .sticker-league,
.trade-stickers .sticker .sticker-bg-brand,
.sidebar-stickers .sticker .sticker-bg-brand,
.missing-grid .sticker .sticker-bg-brand {
  display: none;
}
.trade-stickers .sticker .sticker-photo,
.sidebar-stickers .sticker .sticker-photo,
.missing-grid .sticker .sticker-photo {
  top: 18%; height: 50%; width: 80%;
}
.trade-stickers .sticker .sticker-bottom,
.sidebar-stickers .sticker .sticker-bottom,
.missing-grid .sticker .sticker-bottom {
  grid-template-columns: 1fr; grid-template-rows: auto auto;
  padding: 4px 6px 6px;
}
.trade-stickers .sticker .sticker-name,
.sidebar-stickers .sticker .sticker-name,
.missing-grid .sticker .sticker-name {
  display: none;
}
.trade-stickers .sticker .sticker-stats,
.sidebar-stickers .sticker .sticker-stats,
.missing-grid .sticker .sticker-stats {
  grid-column: 1; grid-row: 2;
  grid-template-columns: 1fr 1fr;
  gap: 2px;
}
.trade-stickers .sticker .sticker-code-badge,
.sidebar-stickers .sticker .sticker-code-badge,
.missing-grid .sticker .sticker-code-badge {
  grid-column: 1; grid-row: 1;
  justify-self: start;
  font-size: 8px; padding: 2px 5px;
}
.trade-stickers .sticker .stat-row,
.sidebar-stickers .sticker .stat-row,
.missing-grid .sticker .stat-row {
  font-size: 7px; padding: 1px 3px;
}
.trade-stickers .sticker .stat-row .stat-num,
.sidebar-stickers .sticker .stat-row .stat-num,
.missing-grid .sticker .stat-row .stat-num {
  font-size: 7px; padding: 0 3px;
}
.trade-arrow {
  color: var(--color-text-faint);
  font-size: 24px;
}
.trade-actions { display: flex; gap: var(--space-2); margin-left: auto; }

@media (max-width: 640px) {
  .album-grid { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); }
  .pack-reveal-grid { grid-template-columns: repeat(2, 1fr); }
}
