/* Loja de Recompensas (celular e computador). O layout antigo (.student-header, abas e .safe-bottom) fica escondido; a tela nova é desenhada por js/loja-desk.js. */
.student-header, .loja-tab-bar, .safe-bottom { display: none !important; }
.lj { max-width: 1480px; margin: 0 auto; padding: 10px 12px calc(92px + env(safe-area-inset-bottom)); display: grid; grid-template-columns: minmax(0, 1fr); gap: 14px; }
.lj-main { min-width: 0; display: flex; flex-direction: column; gap: 14px; } .lj-lado { display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.lj-card { background: var(--bg-card); border: 1px solid rgba(80,110,230,.28); border-radius: 18px; padding: 16px; }

/* banner */
.lj-hero { position: relative; overflow: hidden; display: flex; flex-direction: column; justify-content: center; min-height: 130px; padding: 20px 18px; border-radius: 20px; border: 1px solid rgba(80,110,230,.4); background: radial-gradient(ellipse at 15% 0%, rgba(40,70,180,.4), transparent 55%), linear-gradient(135deg, #060b26, #0a1440); }
.lj-hero::after { content: ''; position: absolute; top: 0; right: 0; bottom: 0; width: 52%; background: linear-gradient(90deg, #0a1236, transparent 40%), url(../img/loja/hero.jpg) right center / cover; opacity: .55; pointer-events: none; }
.lj-hero > * { position: relative; z-index: 1; }
.lj-hero h1 { margin: 0; display: flex; align-items: center; gap: 12px; font-size: 26px; line-height: 1.1; font-weight: 900; color: #fff; } .lj-hero h1 span { color: #ffd23d; } .lj-hero h1 i { font-style: normal; font-size: 34px; }
.lj-hero p { margin: 8px 0 0; font-size: 13px; color: #b8c4f0; max-width: 60%; }

/* saldos */
.lj-saldos { display: grid; grid-template-columns: minmax(0, 1fr); gap: 12px; }
.lj-xp, .lj-cart { display: flex; align-items: center; gap: 14px; padding: 16px 18px; border-radius: 18px; }
.lj-xp { background: linear-gradient(135deg, rgba(50,36,4,.9), rgba(24,16,2,.9)); border: 1.5px solid rgba(245,184,0,.7); box-shadow: 0 0 18px rgba(245,184,0,.18); }
.lj-cart { background: linear-gradient(135deg, rgba(4,50,52,.9), rgba(3,28,34,.9)); border: 1.5px solid rgba(20,184,166,.6); box-shadow: 0 0 18px rgba(20,184,166,.15); flex-wrap: wrap; }
.lj-xp .ic { font-size: 44px; line-height: 1; filter: drop-shadow(0 0 10px rgba(245,184,0,.6)); } .lj-cart .ic { width: 56px; height: 56px; border-radius: 12px; object-fit: cover; }
.lj-saldo small { display: block; font-size: 12px; color: #cbd5e1; letter-spacing: .04em; } .lj-saldo b { display: block; font-size: 32px; font-weight: 900; line-height: 1.05; color: #fff; } .lj-cart .lj-saldo b { color: #fff; }
.lj-btn { margin-left: auto; font: inherit; font-size: 14px; font-weight: 800; padding: 11px 18px; border-radius: 10px; cursor: pointer; white-space: nowrap; }
.lj-xp .lj-btn { color: #fff; background: transparent; border: 1.5px solid #f5b800; } .lj-cart .lj-btn { color: #fff; background: #14b8a6; border: 0; } .lj-cart .lj-btn:disabled { opacity: .55; cursor: default; }
.lj-nota { flex-basis: 100%; font-size: 11px; line-height: 1.4; color: #9ec9c4; }

/* abas, chips, busca */
.lj-abas { display: flex; gap: 10px; overflow-x: auto; scrollbar-width: none; } .lj-abas::-webkit-scrollbar, .lj-chips::-webkit-scrollbar { display: none; }
.lj-aba { flex: none; display: inline-flex; align-items: center; gap: 10px; font: inherit; font-size: 14px; font-weight: 700; padding: 12px 22px; border-radius: 999px; cursor: pointer; color: var(--text); background: var(--bg-card); border: 1px solid rgba(80,110,230,.4); }
.lj-aba.on { color: #1a1205; background: linear-gradient(180deg, #ffd23d, #f5b800); border-color: #ffd23d; box-shadow: 0 0 16px rgba(245,184,0,.35); }
.lj-chips { display: flex; gap: 10px; overflow-x: auto; scrollbar-width: none; }
.lj-chip { flex: none; display: inline-flex; align-items: center; gap: 8px; font: inherit; font-size: 14px; font-weight: 600; padding: 10px 18px; border-radius: 999px; cursor: pointer; color: var(--text); background: var(--bg-card); border: 1px solid rgba(80,110,230,.3); }
.lj-chip.on { color: #1a1205; background: #ffc21a; border-color: #ffc21a; }
.lj-busca { display: flex; align-items: center; gap: 10px; height: 46px; padding: 0 14px; border-radius: 12px; background: var(--bg-card); border: 1px solid rgba(80,110,230,.4); } .lj-busca input { flex: 1; min-width: 0; background: none; border: 0; outline: 0; font: inherit; font-size: 14px; color: var(--text); }

/* seções e cartões de item */
.lj-sec-t { display: flex; align-items: center; gap: 12px; margin: 4px 0 2px; } .lj-sec-t h2 { margin: 0; font-size: 22px; font-weight: 800; color: #fff; } .lj-sec-t small { display: block; font-size: 13px; color: var(--text-soft); font-weight: 400; }
.lj-sec-t .st { font-size: 26px; } .lj-sec-t .acoes { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.lj-ver { font: inherit; font-size: 13px; font-weight: 700; padding: 8px 16px; border-radius: 999px; cursor: pointer; color: #fbbf24; background: transparent; border: 1.5px solid #f5b800; }
.lj-sel { font: inherit; font-size: 13px; padding: 9px 12px; border-radius: 10px; color: var(--text); background: var(--bg-card); border: 1px solid rgba(80,110,230,.4); }
.lj-vis { display: none; gap: 6px; } .lj-vis button { width: 38px; height: 38px; border-radius: 10px; font-size: 16px; cursor: pointer; color: var(--text); background: var(--bg-card); border: 1px solid rgba(80,110,230,.4); } .lj-vis button.on { color: #1a1205; background: #ffc21a; border-color: #ffc21a; }
.lj-dest { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.lj-grade { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.lj-grade.lista { grid-template-columns: minmax(0, 1fr); }
.lj-item { position: relative; display: flex; flex-direction: column; gap: 6px; padding: 12px; border-radius: 16px; background: linear-gradient(180deg, rgba(14,22,64,.9), rgba(8,12,40,.95)); border: 1.5px solid rgba(80,110,230,.35); min-width: 0; }
.lj-item.ouro { border-color: #f5b800; box-shadow: 0 0 20px rgba(245,184,0,.25); } .lj-item.eq { border-color: #34d399; } .lj-item.off { opacity: .85; }
.lj-arte { position: relative; display: grid; place-items: center; height: 96px; margin: -2px -2px 4px; border-radius: 12px; overflow: hidden; background: radial-gradient(circle at 50% 60%, rgba(60,100,240,.32), rgba(8,12,40,.4)); background-size: cover; background-position: center; font-size: 52px; }
.lj-arte.foto { font-size: 0; }
.lj-tag { position: absolute; top: 8px; right: 8px; z-index: 2; font-size: 11px; font-weight: 800; padding: 4px 10px; border-radius: 8px; color: #fff; background: rgba(40,50,90,.9); border: 1px solid rgba(120,140,220,.5); }
.lj-tag.popular { background: #e5482d; border-color: #ff7a5c; } .lj-tag.lendario, .lj-tag.lendário { background: #8a5a06; border-color: #f5b800; color: #ffe08a; } .lj-tag.epico, .lj-tag.épico { background: #5b2fb8; border-color: #9f7bff; } .lj-tag.raro { background: #134a9a; border-color: #4a8dff; } .lj-tag.unico { background: #4a3a8a; border-color: #8b7bff; }
.lj-item h3 { margin: 0; font-size: 16px; font-weight: 800; line-height: 1.2; color: #fff; } .lj-item p { margin: 0; font-size: 12px; line-height: 1.4; color: #aab6dc; flex: 1; }
.lj-preco { display: flex; align-items: center; gap: 6px; font-size: 18px; font-weight: 900; color: #ffd23d; margin-top: 4px; }
.lj-comprar { width: 100%; padding: 11px 8px; font: inherit; font-size: 15px; font-weight: 800; border: 0; border-radius: 8px; cursor: pointer; color: #1a1205; background: linear-gradient(180deg, #ffd23d, #f5b800); }
.lj-comprar.cinza { color: var(--text-soft); background: rgba(255,255,255,.08); cursor: default; font-size: 13px; } .lj-comprar.verde { color: #34d399; background: rgba(16,185,129,.14); border: 1px solid rgba(16,185,129,.4); cursor: default; }
.lj-grade.lista .lj-item { flex-direction: row; align-items: center; gap: 14px; } .lj-grade.lista .lj-arte { flex: none; width: 90px; height: 70px; margin: 0; } .lj-grade.lista .lj-comprar { width: 150px; flex: none; }
.lj-vazio { padding: 28px; text-align: center; font-size: 14px; color: var(--text-dim); border-radius: 16px; border: 1.5px dashed rgba(80,110,230,.4); }
.lj-borda { display: grid; place-items: center; width: 64px; height: 64px; border-radius: 50%; font-size: 22px; font-weight: 900; color: #fff; background: #2a3a8a; }
.lj-titulo-prev { font-size: 15px; font-weight: 900; color: #ffd23d; text-align: center; padding: 6px; }

/* lateral */
.lj-box h3 { margin: 0 0 12px; font-size: 20px; font-weight: 800; color: #fff; }
.lj-prog { display: flex; align-items: center; gap: 16px; } .lj-anel { position: relative; flex: none; width: 92px; height: 92px; } .lj-anel svg { width: 100%; height: 100%; } .lj-anel circle { fill: none; stroke-width: 9; } .lj-anel .t { stroke: rgba(255,255,255,.12); } .lj-anel .a { stroke: #f5b800; stroke-linecap: round; } .lj-anel span { position: absolute; inset: 0; display: grid; place-items: center; font-size: 34px; }
.lj-prog b { display: block; font-size: 26px; font-weight: 900; color: #fff; } .lj-prog small { font-size: 15px; color: var(--text-soft); }
.lj-barra { display: flex; align-items: center; gap: 12px; margin-top: 14px; } .lj-barra .tr { flex: 1; height: 10px; border-radius: 6px; background: rgba(255,255,255,.12); overflow: hidden; } .lj-barra .tr i { display: block; height: 100%; border-radius: 6px; background: linear-gradient(90deg, #f5b800, #ffd23d); } .lj-barra span { font-size: 13px; font-weight: 700; color: #fff; white-space: nowrap; }
.lj-linha { display: flex; align-items: center; gap: 12px; padding: 9px 0; font-size: 14px; color: var(--text); } .lj-linha + .lj-linha { border-top: 1px solid var(--surface-2); } .lj-linha .ic { width: 28px; text-align: center; font-size: 20px; } .lj-linha b { margin-left: auto; color: #fff; font-weight: 800; }
.lj-meu { display: flex; align-items: center; gap: 12px; padding: 12px; border-radius: 12px; background: var(--bg-elevated); border: 1px solid var(--surface-2); } .lj-meu .ic { display: grid; place-items: center; width: 54px; height: 54px; border-radius: 12px; font-size: 28px; background: rgba(60,100,240,.18); } .lj-meu b { display: block; font-size: 14px; color: #fff; } .lj-meu small { display: block; font-size: 12px; color: var(--text-dim); margin-top: 2px; }
.lj-st { display: inline-block; margin-top: 6px; font-size: 12px; font-weight: 700; padding: 3px 10px; border-radius: 999px; color: #34d399; background: rgba(16,185,129,.14); border: 1px solid rgba(16,185,129,.4); } .lj-st.pend { color: #fbbf24; background: rgba(245,184,0,.12); border-color: rgba(245,184,0,.4); }
.lj-promo { display: flex; align-items: center; gap: 12px; padding: 16px; border-radius: 18px; border: 1.5px solid rgba(245,184,0,.5); background: linear-gradient(135deg, rgba(40,30,4,.9), rgba(12,18,56,.9)); } .lj-promo img { width: 74px; flex: none; border-radius: 10px; } .lj-promo b { display: block; font-size: 20px; line-height: 1.2; color: #fff; } .lj-promo b span { color: #ffd23d; }
.lj-meus-g { display: grid; grid-template-columns: minmax(0, 1fr); gap: 12px; }

@media (min-width: 640px) { .lj-dest, .lj-grade { grid-template-columns: repeat(3, minmax(0, 1fr)); } .lj-saldos { grid-template-columns: 1fr 1fr; } .lj-meus-g { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1024px) {
  .lj { padding: 14px 24px 48px; grid-template-columns: minmax(0, 1fr) 360px; gap: 20px; align-items: start; }
  .lj-hero { min-height: 160px; padding: 26px 32px; } .lj-hero h1 { font-size: 42px; } .lj-hero h1 i { font-size: 46px; } .lj-hero p { font-size: 18px; } .lj-hero::after { width: 48%; opacity: 1; }
  .lj-dest { grid-template-columns: repeat(4, minmax(0, 1fr)); } .lj-grade { grid-template-columns: repeat(4, minmax(0, 1fr)); } .lj-grade.lista { grid-template-columns: minmax(0, 1fr); }
  .lj-arte { height: 118px; } .lj-vis { display: flex; }
}
@media (min-width: 1500px) { .lj-grade { grid-template-columns: repeat(5, minmax(0, 1fr)); } }

@media (max-width: 639px) {
  .lj-hero h1 { font-size: 24px; } .lj-hero h1 b { font-weight: 900; } .lj-hero p { max-width: 70%; font-size: 12px; }
  .lj-saldo b { font-size: 26px; white-space: nowrap; } .lj-xp, .lj-cart { padding: 14px; gap: 12px; } .lj-xp .ic { font-size: 36px; } .lj-btn { padding: 10px 14px; font-size: 13px; }
  .lj-ver { white-space: nowrap; padding: 7px 12px; } .lj-sec-t h2 { font-size: 18px; } .lj-sec-t small { font-size: 12px; }
  .lj-cart .lj-btn { margin-left: auto; }
}
