/* Loja StreetChess (planos, assinatura, Pix) e treinos com professor */

/* ── Página de planos (escura, como a inicial) ── */
.st-page .st-hero { padding-bottom: 10px; max-width: 900px; }
.st-page .st-hero h1 { font-size: clamp(34px, 5vw, 56px); line-height: 1.05; letter-spacing: -.03em; margin: 0 0 16px; }
.st-page .st-hero h1 em { font-style: normal; color: var(--brand); }
.st-page .st-hero .lead { font-size: 18px; color: #c2c4cc; max-width: 640px; margin: 0; }
.st-plans-sec { padding-top: 24px !important; }
.st-plans { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; align-items: stretch; }
@media (max-width: 980px) { .st-plans { grid-template-columns: minmax(0, 1fr); max-width: 520px; margin: 0 auto; } }
.st-plan { position: relative; display: flex; flex-direction: column; gap: 14px; background: #17181c; border: 1px solid #26282e; border-radius: 20px; padding: 26px 22px 20px; }
.st-plan.hot { border: 2px solid var(--brand); box-shadow: 0 20px 60px rgba(255, 194, 26, .12); }
.st-plan h3 { font-size: 21px; margin: 0; color: #fff; }
.st-badge { align-self: flex-start; background: var(--brand); color: #111; font-size: 12px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; padding: 4px 10px; border-radius: 99px; }
.st-badge.ghost { background: #24262c; color: #c2c4cc; }
.st-price { display: flex; align-items: baseline; gap: 6px; }
.st-price b { font-family: var(--font-display); font-size: 40px; color: #fff; letter-spacing: -.02em; }
.st-price span { color: #8b8e98; font-weight: 600; }
.st-price.dark b { color: var(--text); font-size: 34px; }
.st-price.dark span { color: var(--muted); }
.st-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 9px; flex: 1; }
.st-list li { display: flex; gap: 10px; align-items: flex-start; color: #c2c4cc; font-size: 15px; line-height: 1.4; }
.st-list li .ico { width: 18px; height: 18px; flex: none; margin-top: 2px; color: var(--brand); }
.st-list.dark li { color: var(--text-2); }
.st-list.dark li .ico { color: var(--ok); }
.st-fine { text-align: center; color: #6f727c; font-size: 13px; margin: 0; }
.st-plan .btn.ghost-dark { background: transparent; color: #fff; border-color: #3a3d46; }
.st-note { display: flex; gap: 10px; align-items: flex-start; color: #a9abb4; font-size: 14px; max-width: 820px; margin: 22px auto 0; }
.st-note .ico { width: 18px; height: 18px; flex: none; margin-top: 2px; }
.st-faq { max-width: 860px; }
.st-q { background: #17181c; border: 1px solid #26282e; border-radius: 14px; padding: 0 18px; }
.st-q summary { cursor: pointer; padding: 16px 0; font-weight: 700; color: #f1f1f3; list-style: none; display: flex; justify-content: space-between; gap: 12px; }
.st-q summary::-webkit-details-marker { display: none; }
.st-q summary::after { content: '+'; color: var(--brand); font-size: 20px; line-height: 1; }
.st-q[open] summary::after { content: '−'; }
.st-q p { color: #a9abb4; margin: 0 0 16px; line-height: 1.6; }

/* ── Checkout (/assinar) ── */
.st-wrap { padding: 16px 16px 60px; }
.st-box { max-width: 560px; margin: 0 auto; background: var(--surface); color: var(--text); border-radius: 20px; padding: 28px; box-shadow: var(--shadow-lg); display: flex; flex-direction: column; gap: 12px; }
.st-box .st-list { flex: none; }
.st-steps { margin: 12px 0 0; padding-left: 20px; color: var(--text-2); line-height: 1.6; }
@media (max-width: 520px) { .st-box { padding: 20px 16px; } }

/* ── Pix ── */
.st-pix { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 18px; align-items: start; }
.st-qr { background: #fff; border-radius: 12px; padding: 6px; border: 1px solid var(--line); }
.st-qr svg { display: block; width: 100%; height: auto; }
.st-big { font-family: var(--font-display); font-size: 28px; font-weight: 700; }
.st-code { font-family: ui-monospace, "SFMono-Regular", Consolas, monospace; font-size: 12px; word-break: break-all; resize: none; }
@media (max-width: 640px) { .st-pix { grid-template-columns: minmax(0, 1fr); } .st-qr { max-width: 240px; width: 100%; margin: 0 auto; } }

/* ── Painel da loja ── */
.st-tabs { overflow-y: hidden; }
.st-tabs button { background: none; border: 0; padding: 10px 14px; font: inherit; font-weight: 700; color: var(--muted); border-bottom: 3px solid transparent; margin-bottom: -1px; white-space: nowrap; cursor: pointer; }
.st-tabs button.on { color: var(--text); border-color: var(--brand-2); }
select.input.sm { padding: 5px 8px; font-size: 13px; min-width: 150px; }

/* ── Treinos com professor ── */
.tr-day { font-weight: 800; font-size: 13px; letter-spacing: .04em; text-transform: uppercase; color: var(--muted); margin: 4px 0 8px; }
.tr-slots { display: flex; flex-wrap: wrap; gap: 8px; }
.tr-slot { border: 1.5px solid var(--line-2); background: var(--surface-2); color: var(--text); border-radius: 10px; padding: 8px 14px; font: inherit; font-weight: 700; cursor: pointer; min-width: 72px; }
.tr-slot:hover, .tr-slot:focus-visible { border-color: var(--brand-2); background: var(--warn-bg); outline: none; }
.tr-lesson { display: flex; gap: 14px; align-items: center; padding: 12px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface-2); flex-wrap: wrap; }
.tr-when { display: flex; flex-direction: column; min-width: 150px; }
.tr-notes { display: flex; gap: 8px; margin-top: 6px; color: var(--text-2); font-size: 14px; white-space: pre-wrap; }
.tr-notes .ico { width: 16px; height: 16px; flex: none; margin-top: 2px; }
.tr-av { display: grid; grid-template-columns: 1.3fr 1fr 1fr 1fr auto; gap: 10px; align-items: end; }
@media (max-width: 720px) { .tr-av { grid-template-columns: 1fr 1fr; } .tr-lesson { align-items: flex-start; } .tr-when { min-width: 0; } }

/* ── Plano da escola dentro do app (tema claro/escuro do app) ── */
.sp-plans { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; align-items: stretch; }
.sp-plans .st-plan { background: var(--surface); border-color: var(--line); box-shadow: var(--shadow); }
.sp-plans .st-plan.hot { border-color: var(--brand); }
.sp-plans .st-plan h3, .sp-plans .st-price b { color: var(--text); }
.sp-plans .st-price span, .sp-plans .st-fine { color: var(--muted); }
.sp-plans .st-list li { color: var(--text-2); }
.sp-plans .st-list li .ico { color: var(--ok); }
.sp-plans .st-badge.ghost { background: var(--bg-2); color: var(--text-2); }

/* Chave aluno × professor no topo das páginas de planos */
.st-switch { display: inline-flex; flex-wrap: wrap; gap: 4px; margin-top: 22px; padding: 4px; background: #17181c; border: 1px solid #26282e; border-radius: 14px; }
.st-switch a { display: inline-flex; align-items: center; gap: 8px; padding: 10px 16px; border-radius: 10px; color: #c2c4cc; font-weight: 700; text-decoration: none; }
.st-switch a .ico { width: 18px; height: 18px; }
.st-switch a:hover { color: #fff; }
.st-switch a.on { background: var(--brand); color: #111; }
/* Bloco "É professor?" na página de planos dos alunos */
.st-teacher { display: flex; align-items: center; gap: 18px; max-width: 980px; margin: 22px auto 0; padding: 22px; background: #17181c; border: 1px solid #3a3d46; border-radius: 18px; }
.st-teacher-ic { flex: none; width: 52px; height: 52px; border-radius: 14px; background: rgba(255, 194, 26, .12); color: var(--brand); display: grid; place-items: center; }
.st-teacher-ic .ico { width: 28px; height: 28px; }
.st-teacher-txt { flex: 1; min-width: 0; }
.st-teacher-txt h3 { margin: 0 0 4px; color: #fff; font-size: 19px; }
.st-teacher-txt p { margin: 0; color: #a9abb4; line-height: 1.5; }
.st-teacher .btn { flex: none; }
@media (max-width: 760px) { .st-teacher { flex-direction: column; align-items: flex-start; } .st-teacher .btn { width: 100%; } .st-switch { display: flex; } .st-switch a { flex: 1; justify-content: center; } }

/* Voucher de presente */
.vc-page { min-height: 100vh; display: grid; place-items: center; padding: 24px 16px; }
.vc-box { max-width: 460px; width: 100%; text-align: center; }
.vc-box h1 { font-size: 26px; margin: 4px 0 10px; }
.vc-big { font-size: 48px; line-height: 1; }
.vc-what { margin: 0 0 14px; }
.vc-msg { margin: 0 0 16px; padding: 10px 14px; border-left: 4px solid var(--brand); background: var(--surface-2); border-radius: 8px; text-align: left; white-space: pre-wrap; }
.vc-msg footer { margin-top: 6px; font-size: 13px; color: var(--muted); }
.vc-card { background: #fff; color: #16171a; border: 2px solid #16171a; border-radius: 14px; overflow: hidden; }
.vc-card-t { display: flex; justify-content: space-between; align-items: center; gap: 12px; background: #ffc21a; padding: 10px 16px; }
.vc-card-m { display: flex; gap: 16px; align-items: center; justify-content: space-between; padding: 14px 16px; flex-wrap: wrap; }
.vc-card-m > div:first-child { flex: 1 1 220px; min-width: 0; }
.vc-card-to { font-weight: 700; }
.vc-card-d { font-size: 20px; font-weight: 800; margin: 2px 0 6px; }
.vc-card-msg { font-style: italic; margin-bottom: 4px; white-space: pre-wrap; }
.vc-code { font: 700 20px/1.3 ui-monospace, Consolas, monospace; letter-spacing: .04em; margin: 10px 0 6px; overflow-wrap: anywhere; }
.vc-qr { width: 130px; flex: none; }
.vc-qr svg { display: block; width: 100%; height: auto; }
@media print { .pr-print.vc-print { display: block; } .vc-print .vc-card { max-width: 150mm; -webkit-print-color-adjust: exact; print-color-adjust: exact; } }

/* ── Loja de peças (vitrine pública e cadastro do dono) ── */
.pc-hero { padding-bottom: 6px !important; }
.pc-sec { padding-top: 20px !important; }
.pc-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 18px; }
.pc-card { display: flex; flex-direction: column; text-align: left; padding: 0; background: #17181c; border: 1px solid #26282e; border-radius: 18px; overflow: hidden; color: #fff; cursor: pointer; font: inherit; transition: transform .15s ease, border-color .15s ease; }
.pc-card:hover, .pc-card:focus-visible { transform: translateY(-3px); border-color: var(--brand); outline: none; }
.pc-photo { display: grid; place-items: center; aspect-ratio: 4 / 3; background: #0b0c0e; }
.pc-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.pc-photo .ico { width: 42px; height: 42px; color: #3a3d46; }
.pc-info { display: flex; flex-direction: column; gap: 4px; padding: 14px 16px 16px; }
.pc-info b { font-size: 16px; line-height: 1.25; overflow-wrap: anywhere; }
.pc-meta { color: #8b8e98; font-size: 13px; }
.pc-price { color: var(--brand); font-family: var(--font-display); font-weight: 700; font-size: 18px; }
.pc-price.lg { font-size: 26px; color: var(--text); margin: 2px 0 10px; }
.pc-empty { text-align: center; color: #a9abb4; padding: 50px 16px; border: 1px dashed #2c2e35; border-radius: 18px; }
.pc-empty .ico { width: 38px; height: 38px; color: var(--brand); }
.pc-empty h3 { color: #fff; margin: 10px 0 4px; }
.pc-modal { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 22px; align-items: start; }
.pc-big { background: #0b0c0e; border-radius: 14px; overflow: hidden; }
.pc-big img { width: 100%; max-height: 70vh; object-fit: contain; display: block; }
.pc-body h2 { margin: 0; }
.pc-facts { list-style: none; margin: 0 0 10px; padding: 0; display: flex; flex-direction: column; gap: 6px; color: var(--text-2); font-size: 14px; }
.pc-facts li { display: flex; gap: 8px; align-items: flex-start; }
.pc-facts .ico { width: 16px; height: 16px; flex: none; margin-top: 2px; color: var(--brand-2); }
.pc-descr { color: var(--text-2); margin: 0 0 14px; }
.pc-done { text-align: center; padding: 20px 0; }
.pc-done > .ico { width: 44px; height: 44px; color: var(--ok); }
.pc-done .actions { justify-content: center; }
@media (max-width: 760px) { .pc-modal { grid-template-columns: minmax(0, 1fr); } .pc-big img { max-height: 38vh; } .pc-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; } .pc-info { padding: 10px 12px 12px; } .pc-info b { font-size: 14px; } }
.pc-pick { display: flex; gap: 14px; align-items: center; }
.pc-prev { width: 120px; height: 96px; flex: none; border: 1px dashed var(--line); border-radius: 12px; display: grid; place-items: center; overflow: hidden; background: var(--surface-2); }
.pc-prev img { width: 100%; height: 100%; object-fit: cover; }
.pc-admin, .pc-orders { display: flex; flex-direction: column; }
.pc-row, .pc-order { display: flex; gap: 12px; align-items: center; padding: 12px 0; border-top: 1px solid var(--line); flex-wrap: wrap; }
.pc-row:first-child, .pc-order:first-child { border-top: 0; }
.pc-row .grow, .pc-order .grow { flex: 1 1 220px; min-width: 0; overflow-wrap: anywhere; }
.pc-row.off .pc-thumb, .pc-order.canceled .grow { opacity: .5; }
.pc-thumb { width: 64px; height: 52px; flex: none; border-radius: 8px; overflow: hidden; background: var(--surface-2); }
.pc-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.pc-tag { display: inline-block; font-size: 11px; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; padding: 3px 8px; border-radius: 99px; background: var(--surface-2); color: var(--muted); vertical-align: middle; }
.pc-tag.new { background: var(--brand); color: #111; }
.pc-tag.done { color: var(--ok); }

/* ── Créditos de IA (prefixo cr-pack) ── */
.cr-packs { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 10px; }
.cr-pack { display: flex; flex-direction: column; gap: 4px; align-items: flex-start; text-align: left; padding: 14px; border-radius: 14px; border: 1px solid var(--line); background: var(--surface-2); color: var(--text); cursor: pointer; font: inherit; }
.cr-pack:hover, .cr-pack:focus-visible { border-color: var(--brand); outline: none; }
.cr-price { font-family: var(--font-display); font-weight: 700; font-size: 22px; }
.cr-in { color: var(--ok); }
