/* ========== JET CARDS 2.0 — trading cards oficiais ========== */
body.cards-mode {
  --jc-bg: #05040a;
  --jc-card: rgba(18, 14, 28, 0.92);
  --jc-border: rgba(167, 139, 250, 0.22);
  --jc-text: #f8fafc;
  --jc-muted: #a1a1aa;
  --jc-gold: #fbbf24;
  --jc-purple: #c084fc;
  --jc-blue: #60a5fa;
  background:
    radial-gradient(900px 500px at 12% -8%, rgba(124, 58, 237, 0.18), transparent),
    radial-gradient(700px 400px at 92% 8%, rgba(251, 191, 36, 0.07), transparent),
    var(--jc-bg) !important;
  color: var(--jc-text);
  min-height: 100vh;
}
body.cards-mode .jc-hide,
body.cards-mode header.jc-hide,
body.cards-mode .hero.jc-hide,
body.cards-mode footer.jc-hide { display: none !important; }
body.cards-mode main.jc-hide-official > [id^="view-"] { display: none !important; }

#cardsShell { position: relative; z-index: 5; min-height: 100vh; }
#cardsShell.hidden { display: none !important; }

.jc-app { max-width: 1100px; margin: 0 auto; padding: 14px 14px 48px; }
.jc-header {
  display: flex; flex-wrap: wrap; align-items: center; gap: 10px;
  padding-bottom: 12px; border-bottom: 1px solid var(--jc-border); margin-bottom: 10px;
}
.jc-logo {
  font-weight: 900; font-size: 1.3rem; letter-spacing: 0.1em;
  background: linear-gradient(90deg, #c084fc, #fbbf24, #60a5fa);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.jc-powered { font-size: 0.68rem; color: var(--jc-muted); letter-spacing: 0.04em; }
.jc-header-user { flex: 1; font-weight: 600; color: var(--jc-purple); font-size: 0.9rem; }

.jc-nav { display: flex; flex-wrap: wrap; gap: 5px; margin-bottom: 16px; }
.jc-nav-btn {
  background: rgba(255,255,255,0.04); border: 1px solid var(--jc-border); color: var(--jc-muted);
  padding: 7px 11px; border-radius: 10px; cursor: pointer; font-weight: 600; font-size: 0.78rem;
}
.jc-nav-btn.active {
  background: linear-gradient(135deg, rgba(168,85,247,0.35), rgba(251,191,36,0.12));
  color: #fff; border-color: rgba(192,132,252,0.5);
}
.jc-btn {
  border: 1px solid var(--jc-border); background: rgba(255,255,255,0.06); color: var(--jc-text);
  padding: 8px 14px; border-radius: 10px; cursor: pointer; font-weight: 600; font-size: 0.84rem;
}
.jc-btn.primary { background: linear-gradient(135deg, #7c3aed, #b45309); border: none; color: #fff; }
.jc-btn.ghost { background: transparent; }
.jc-btn.sm { padding: 5px 10px; font-size: 0.76rem; }
.jc-input {
  background: rgba(0,0,0,0.35); border: 1px solid var(--jc-border); color: var(--jc-text);
  padding: 10px 12px; border-radius: 10px; width: 100%; max-width: 320px; box-sizing: border-box;
}
.jc-title { font-size: 1.55rem; font-weight: 800; margin: 4px 0; }
.jc-kicker { font-size: 0.72rem; color: var(--jc-purple); text-transform: uppercase; letter-spacing: 0.08em; }
.jc-hint { font-size: 0.78rem; color: var(--jc-muted); }
.jc-section { margin-top: 20px; }
.jc-section-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-bottom: 10px; flex-wrap: wrap; }
.jc-section-head h2 { margin: 0; font-size: 1.05rem; }
.jc-album-progress { margin: 2px 0 0; font-size: 0.95rem; font-weight: 700; color: var(--jc-gold); }

.jc-kpi-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)); gap: 8px; margin: 14px 0; }
.jc-kpi { background: var(--jc-card); border: 1px solid var(--jc-border); border-radius: 12px; padding: 11px; }
.jc-kpi-label { font-size: 0.65rem; color: var(--jc-muted); text-transform: uppercase; }
.jc-kpi-value { font-size: 1.3rem; font-weight: 800; margin-top: 2px; }
.jc-kpi-value small { font-size: 0.75rem; color: var(--jc-muted); font-weight: 600; }
.jc-kpi-value.gold { color: var(--jc-gold); }

.jc-grid, .tc-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(148px, 1fr));
  gap: 14px;
}

/* ===== TRADING CARD ===== */
.tc-card {
  position: relative;
  aspect-ratio: 2.5 / 3.5;
  border-radius: 12px;
  cursor: pointer;
  user-select: none;
}
.tc-card.small { max-width: 120px; }
.tc-frame {
  position: relative;
  height: 100%;
  border-radius: 12px;
  overflow: hidden;
  border: 2px solid #64748b;
  background: #1e293b;
  display: flex;
  flex-direction: column;
  box-shadow: 0 8px 24px rgba(0,0,0,0.45);
}
.tc-card.rarity-common .tc-frame {
  border-color: #94a3b8;
  background: linear-gradient(160deg, #334155, #1e293b);
}
.tc-card.rarity-rare .tc-frame {
  border-color: #3b82f6;
  background: linear-gradient(160deg, #1e3a5f, #0f172a);
  box-shadow: 0 0 20px rgba(59,130,246,0.25), 0 8px 24px rgba(0,0,0,0.4);
}
.tc-card.rarity-epic .tc-frame {
  border-color: #a855f7;
  background: linear-gradient(160deg, #3b0764, #1a0a2e);
  box-shadow: 0 0 28px rgba(168,85,247,0.3), 0 8px 24px rgba(0,0,0,0.45);
}
.tc-card.rarity-legend .tc-frame {
  border-color: #fbbf24;
  background: linear-gradient(160deg, #78350f, #1c1008 60%, #0c0a09);
  box-shadow: 0 0 32px rgba(251,191,36,0.35), 0 8px 28px rgba(0,0,0,0.5);
}
.tc-shine {
  pointer-events: none;
  position: absolute; inset: 0; z-index: 3;
  background: linear-gradient(125deg, transparent 40%, rgba(255,255,255,0.07) 50%, transparent 60%);
}
.tc-card.rarity-rare .tc-shine { background: linear-gradient(125deg, transparent 35%, rgba(96,165,250,0.12) 50%, transparent 65%); }
.tc-card.rarity-epic .tc-shine { background: linear-gradient(125deg, transparent 30%, rgba(192,132,252,0.15) 50%, transparent 70%); }
.tc-card.rarity-legend .tc-shine {
  background: linear-gradient(125deg, transparent 25%, rgba(251,191,36,0.18) 48%, transparent 72%);
  animation: tc-legend-pulse 3s ease-in-out infinite;
}
@keyframes tc-legend-pulse {
  0%,100% { opacity: 0.7; }
  50% { opacity: 1; }
}
.tc-holo-overlay {
  pointer-events: none;
  position: absolute; inset: 0; z-index: 4;
  background: linear-gradient(105deg,
    transparent 0%,
    rgba(255,0,128,0.08) 20%,
    rgba(0,255,255,0.1) 40%,
    rgba(255,255,0,0.08) 60%,
    transparent 80%);
  mix-blend-mode: color-dodge;
  animation: tc-holo 4s linear infinite;
  background-size: 200% 200%;
}
@keyframes tc-holo {
  0% { background-position: 0% 50%; }
  100% { background-position: 100% 50%; }
}
.tc-top {
  display: flex; justify-content: space-between; align-items: center;
  padding: 5px 7px; font-size: 0.58rem; font-weight: 800; letter-spacing: 0.04em;
  z-index: 2; position: relative;
  background: rgba(0,0,0,0.45);
}
.tc-num { color: #e2e8f0; font-variant-numeric: tabular-nums; }
.tc-rare { color: #cbd5e1; }
.tc-card.rarity-rare .tc-rare { color: #93c5fd; }
.tc-card.rarity-epic .tc-rare { color: #d8b4fe; }
.tc-card.rarity-legend .tc-rare { color: #fde68a; }
.tc-edition {
  position: relative; z-index: 2;
  text-align: center; font-size: 0.55rem; font-weight: 800; letter-spacing: 0.06em;
  padding: 2px 4px; background: rgba(0,0,0,0.5); color: #fbbf24; text-transform: uppercase;
}
.tc-art {
  flex: 1; min-height: 0; position: relative; z-index: 1;
  background: #0a0810; display: flex; align-items: center; justify-content: center;
}
.tc-art img { width: 100%; height: 100%; object-fit: cover; object-position: top center; }
.tc-initials { font-weight: 900; font-size: 1.6rem; color: #3f3f46; }
.tc-bottom {
  position: relative; z-index: 2;
  padding: 6px 8px 8px;
  background: linear-gradient(transparent, rgba(0,0,0,0.85));
}
.tc-name-row { display: flex; align-items: center; gap: 5px; }
.tc-crest { width: 14px; height: 14px; object-fit: contain; flex-shrink: 0; }
.tc-name {
  font-weight: 800; font-size: 0.78rem; line-height: 1.15;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.tc-sub { font-size: 0.62rem; color: #a1a1aa; margin-top: 1px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tc-meta {
  display: flex; justify-content: space-between; margin-top: 4px;
  font-size: 0.58rem; font-weight: 700; color: #cbd5e1; letter-spacing: 0.03em;
}
.tc-count {
  position: absolute; bottom: 6px; right: 6px; z-index: 5;
  background: rgba(0,0,0,0.75); border: 1px solid rgba(251,191,36,0.5);
  color: #fbbf24; font-size: 0.65rem; font-weight: 800;
  padding: 2px 6px; border-radius: 999px;
}
.tc-card.selected .tc-frame { outline: 2px solid #fbbf24; }
.tc-card.locked .tc-frame {
  border-color: #3f3f46; background: #18181b; filter: grayscale(0.3);
}
.tc-silhouette { font-size: 2.5rem; color: #27272a; font-weight: 900; }
.locked-art { background: #09090b !important; }

.tc-back .tc-frame {
  align-items: center; justify-content: center;
  background: linear-gradient(160deg, #1e1b4b, #312e81);
  border-color: #6366f1;
}
.tc-back-logo { font-weight: 900; font-size: 1.8rem; letter-spacing: 0.2em; }
.tc-back-sub { font-size: 0.65rem; letter-spacing: 0.25em; color: #a5b4fc; margin-top: 4px; }

/* Pack stage */
.jc-pack-list { display: flex; flex-direction: column; gap: 8px; }
.jc-pack-item {
  display: flex; align-items: center; gap: 12px; padding: 12px;
  background: var(--jc-card); border-radius: 12px; border: 1px solid var(--jc-border);
}
.jc-pack-visual { font-size: 1.5rem; }
.jc-pack-title { font-weight: 700; }
.jc-pack-meta { font-size: 0.72rem; color: var(--jc-muted); }
.jc-pack-stage { margin-top: 18px; text-align: center; }
.jc-pack-stage.hidden { display: none; }
.jc-pack-box { font-size: 3rem; display: inline-block; transition: 0.4s; }
.jc-pack-box.opening { animation: jc-shake 0.45s ease-in-out 2; }
.jc-pack-box.opened { transform: scale(0.4); opacity: 0.25; }
@keyframes jc-shake {
  0%,100%{transform:rotate(0)} 25%{transform:rotate(-10deg) scale(1.08)} 75%{transform:rotate(10deg) scale(1.08)}
}
.jc-reveal-focus { margin: 16px auto; max-width: 280px; min-height: 120px; }
.jc-reveal-row {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px;
  max-width: 480px; margin: 0 auto;
}
.jc-tease {
  position: relative; height: 180px; border-radius: 16px;
  display: flex; align-items: center; justify-content: center;
  overflow: hidden; border: 2px solid #64748b;
}
.jc-tease.rarity-rare { border-color: #3b82f6; box-shadow: 0 0 40px rgba(59,130,246,0.4); }
.jc-tease.rarity-epic { border-color: #a855f7; box-shadow: 0 0 50px rgba(168,85,247,0.5); }
.jc-tease.rarity-legend {
  border-color: #fbbf24; box-shadow: 0 0 60px rgba(251,191,36,0.55);
  animation: jc-legend-flash 0.8s ease;
}
@keyframes jc-legend-flash {
  0% { filter: brightness(2); }
  100% { filter: brightness(1); }
}
.jc-tease-glow {
  position: absolute; inset: -20%; 
  background: radial-gradient(circle, rgba(255,255,255,0.2), transparent 60%);
}
.jc-tease.rarity-rare .jc-tease-glow { background: radial-gradient(circle, rgba(59,130,246,0.35), transparent 65%); }
.jc-tease.rarity-epic .jc-tease-glow { background: radial-gradient(circle, rgba(168,85,247,0.4), transparent 65%); }
.jc-tease.rarity-legend .jc-tease-glow { background: radial-gradient(circle, rgba(251,191,36,0.45), transparent 65%); }
.jc-tease-label {
  position: relative; z-index: 2; font-weight: 900; font-size: 1.1rem; letter-spacing: 0.12em;
}
.jc-reveal-one { animation: jc-card-in 0.45s ease; }
.jc-reveal-one.new-discovery { animation: jc-card-in 0.45s ease, jc-new-pulse 1.2s ease; }
@keyframes jc-card-in {
  from { transform: scale(0.85) rotateY(20deg); opacity: 0; }
  to { transform: scale(1) rotateY(0); opacity: 1; }
}
@keyframes jc-new-pulse {
  0%,100% { filter: drop-shadow(0 0 0 transparent); }
  50% { filter: drop-shadow(0 0 16px rgba(251,191,36,0.8)); }
}
.jc-new-badge {
  display: inline-block; margin-bottom: 8px; padding: 4px 12px; border-radius: 999px;
  background: linear-gradient(90deg, #7c3aed, #b45309); font-size: 0.7rem; font-weight: 800;
  letter-spacing: 0.06em;
}
.jc-new-sub { font-size: 0.8rem; color: var(--jc-gold); margin-top: 8px; }
.jc-reveal-done { margin-top: 14px; display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; }
.jc-reveal-done.hidden { display: none; }

.jc-showcase-row { display: flex; flex-wrap: wrap; gap: 10px; }
.jc-showcase-slot {
  min-width: 110px; border-radius: 12px; border: 1px dashed var(--jc-border);
  padding: 4px; cursor: pointer;
}
.jc-showcase-slot.picking { border-color: var(--jc-gold); box-shadow: 0 0 12px rgba(251,191,36,0.3); }
.jc-slot-empty {
  display: flex; align-items: center; justify-content: center; min-height: 140px;
  color: var(--jc-muted); font-size: 0.78rem;
}
.jc-offers { display: grid; gap: 12px; }
.jc-offer {
  background: var(--jc-card); border: 1px solid var(--jc-border); border-radius: 14px; padding: 14px;
}
.jc-offer-text { color: var(--jc-muted); font-size: 0.88rem; }
.jc-login {
  max-width: 380px; margin: 36px auto; padding: 22px; text-align: center;
  background: var(--jc-card); border-radius: 16px; border: 1px solid var(--jc-border);
}
.jc-login .jc-input { margin: 12px 0; }
.jc-actions-row { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.jc-npc-vitrine {
  margin-bottom: 14px; padding: 12px; border-radius: 12px;
  border: 1px solid var(--jc-border); background: rgba(0,0,0,0.22);
}
.jc-npc-head { margin-bottom: 8px; font-size: 0.88rem; }
.jc-redeem { max-width: 380px; }
.jc-entry-btn {
  background: linear-gradient(135deg, #7c3aed, #b45309) !important;
  color: #fff !important; border: none !important; font-weight: 700 !important;
  padding: 6px 12px !important; border-radius: 8px !important; cursor: pointer;
}

/* Modal detalhe */
.jc-modal-overlay {
  position: fixed; inset: 0; z-index: 9999;
  background: rgba(0,0,0,0.75); display: flex; align-items: center; justify-content: center;
  padding: 16px; backdrop-filter: blur(6px);
}
.jc-modal {
  position: relative; background: #120f1c; border: 1px solid var(--jc-border);
  border-radius: 18px; padding: 20px; max-width: 520px; width: 100%;
  display: grid; grid-template-columns: 1fr 1.1fr; gap: 16px; max-height: 90vh; overflow: auto;
}
.jc-modal-close {
  position: absolute; top: 8px; right: 12px; background: transparent; border: none;
  color: #fff; font-size: 1.4rem; cursor: pointer;
}
.jc-modal-card { max-width: 200px; margin: 0 auto; }
.jc-modal-info h2 { margin: 0 0 4px; font-size: 1.2rem; }
.jc-modal-ed { color: var(--jc-gold); font-size: 0.85rem; font-weight: 700; }
.jc-desc { font-size: 0.85rem; color: var(--jc-muted); margin-top: 8px; }
.jc-achievements { margin-top: 12px; }
.jc-achievements h3 { font-size: 0.85rem; margin: 0 0 6px; }
.jc-achievements ul { margin: 0; padding-left: 18px; font-size: 0.82rem; color: var(--jc-muted); }

@media (max-width: 640px) {
  .jc-modal { grid-template-columns: 1fr; }
  .jc-modal-card { max-width: 180px; }
  .tc-grid { grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 10px; }
  .jc-reveal-row { grid-template-columns: 1fr; max-width: 200px; }
}
