/* Tema da plataforma. As cores --brand, --accent e --gold são definidas pelo administrador. */
:root { --brand: 11 61 46; --accent: 22 163 74; --gold: 212 175 55; --bg: #f8fafc; --text: #1e293b; --muted: #64748b; --border: #e2e8f0; }
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: Inter, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; background: var(--bg); color: var(--text); font-size: 14px; line-height: 1.5; }
a { color: rgb(var(--accent-ink, var(--accent))); text-decoration: none; } a:hover { text-decoration: underline; }
h1 { font-size: 24px; margin: 0; color: #0f172a; } h2 { font-size: 16px; margin: 0; color: #0f172a; } h3 { font-size: 15px; margin: 0 0 8px; }
.muted { color: var(--muted); margin: 4px 0 0; } .small { font-size: 12px; } .mono { font-family: ui-monospace, Menlo, monospace; font-size: 12px; word-break: break-all; }
.icon { width: 16px; height: 16px; flex-shrink: 0; } .icon-lg { width: 22px; height: 22px; }

/* Layout do painel */
.sidebar { position: fixed; inset: 0 auto 0 0; width: 256px; background: rgb(var(--brand)); color: #fff; display: flex; flex-direction: column; z-index: 30; }
.sidebar .brand { display: flex; align-items: center; gap: 10px; padding: 20px; }
.brand-logo { width: 34px; height: 34px; border-radius: 8px; background: rgb(var(--gold)); color: rgb(var(--brand)); display: flex; align-items: center; justify-content: center; font-weight: 800; overflow: hidden; }
.brand-logo img { width: 100%; height: 100%; object-fit: contain; background: #fff0; }
.brand-name { font-weight: 700; } .brand-area { font-size: 10px; letter-spacing: .08em; text-transform: uppercase; color: rgb(var(--gold)); }
.nav { flex: 1; overflow-y: auto; padding: 8px 12px; }
.nav a { display: flex; align-items: center; gap: 12px; padding: 8px 12px; border-radius: 8px; color: rgba(236, 253, 245, .8); margin-bottom: 2px; }
.nav a:hover { background: rgba(255, 255, 255, .1); color: #fff; text-decoration: none; }
.nav a.active { background: rgb(var(--accent)); color: #fff; font-weight: 600; }
.nav-group { font-size: 10px; letter-spacing: .1em; font-weight: 700; color: rgb(var(--gold)); padding: 14px 12px 4px; opacity: .9; }
.tabs { display: flex; flex-wrap: wrap; gap: 4px; border-bottom: 1px solid var(--border); margin-bottom: 20px; }
.tabs a { padding: 8px 14px; border-radius: 8px 8px 0 0; color: var(--muted); font-weight: 600; font-size: 13px; border-bottom: 2px solid transparent; }
.tabs a:hover { text-decoration: none; color: var(--text); } .tabs a.active { color: rgb(var(--brand)); border-bottom-color: rgb(var(--accent)); }
.kv { display: grid; grid-template-columns: 180px 1fr; gap: 6px 16px; margin: 0; } .kv dt { color: var(--muted); font-size: 13px; } .kv dd { margin: 0; word-break: break-word; }
@media (max-width: 700px) { .kv { grid-template-columns: 1fr; } }
.nav .count { margin-left: auto; background: rgb(var(--gold)); color: #0f172a; border-radius: 999px; font-size: 10px; font-weight: 700; padding: 0 6px; }
.side-footer { border-top: 1px solid rgba(255, 255, 255, .1); padding: 16px; font-size: 13px; }
.side-footer .email { color: rgba(236, 253, 245, .6); font-size: 12px; overflow: hidden; text-overflow: ellipsis; }
.side-footer button { margin-top: 10px; background: none; border: 0; color: rgba(236, 253, 245, .8); display: flex; gap: 8px; align-items: center; cursor: pointer; padding: 6px 0; font: inherit; }
.main { margin-left: 256px; min-height: 100vh; }
.container { max-width: 1240px; margin: 0 auto; padding: 32px; }
.overlay { display: none; }
@media (max-width: 1023px) {
  .sidebar { transform: translateX(-100%); transition: transform .2s; width: 280px; max-width: 85%; }
  body.menu-open .sidebar { transform: none; }
  body.menu-open .overlay { display: block; position: fixed; inset: 0; background: rgba(0, 0, 0, .45); z-index: 25; }
  .main { margin-left: 0; }
  .container { padding: 16px; }
}
.maintenance-bar { background: #f59e0b; color: #fff; text-align: center; padding: 8px; font-weight: 600; }
.maintenance-bar.test-bar { background: #475569; font-weight: 500; }

/* Componentes */
.page-header { display: flex; flex-wrap: wrap; gap: 12px; justify-content: space-between; align-items: flex-end; margin-bottom: 24px; }
.actions { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.card { background: #fff; border: 1px solid var(--border); border-radius: 12px; box-shadow: 0 1px 2px rgba(0, 0, 0, .04); }
.card-body { padding: 20px; } .card-head { display: flex; justify-content: space-between; align-items: center; gap: 8px; padding: 14px 20px; border-bottom: 1px solid #f1f5f9; }
.grid { display: grid; gap: 16px; } .g2 { grid-template-columns: repeat(2, minmax(0, 1fr)); } .g3 { grid-template-columns: repeat(3, minmax(0, 1fr)); } .g4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.span2 { grid-column: span 2; }
@media (max-width: 1100px) { .g4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } .g3 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 700px) { .g2, .g3, .g4 { grid-template-columns: minmax(0, 1fr); } .span2 { grid-column: auto; } }
/* Celular/tablet: itens de grade nunca alargam a coluna além da tela (tabelas largas rolam dentro do próprio quadro). */
@media (max-width: 1023px) { .grid > *, .dash-top > * { min-width: 0; } }
.mt { margin-top: 24px; } .mb { margin-bottom: 24px; } .stack > * + * { margin-top: 16px; }
.stat { display: flex; gap: 14px; padding: 18px; align-items: flex-start; }
.stat-icon { border-radius: 10px; padding: 10px; display: flex; } .stat-label { font-size: 12px; color: var(--muted); margin: 0; } .stat-value { font-size: 20px; font-weight: 700; margin: 2px 0 0; color: #0f172a; } .stat-hint { font-size: 12px; color: var(--muted); margin: 2px 0 0; }
.tone-green { background: #ecfdf5; color: #047857; } .tone-gold { background: #fffbeb; color: #b45309; } .tone-blue { background: #f0f9ff; color: #0369a1; } .tone-red { background: #fef2f2; color: #dc2626; }
.badge { display: inline-block; white-space: nowrap; border-radius: 999px; padding: 1px 8px; font-size: 12px; font-weight: 500; border: 1px solid; }
.badge-green { background: #ecfdf5; color: #047857; border-color: #a7f3d0; } .badge-yellow { background: #fffbeb; color: #b45309; border-color: #fde68a; }
.badge-red { background: #fef2f2; color: #b91c1c; border-color: #fecaca; } .badge-gray { background: #f1f5f9; color: #475569; border-color: #e2e8f0; } .badge-blue { background: #f0f9ff; color: #0369a1; border-color: #bae6fd; }
.alert { border: 1px solid; border-radius: 10px; padding: 12px 16px; margin-bottom: 12px; }
.alert-yellow { background: #fffbeb; border-color: #fde68a; color: #92400e; } .alert-red { background: #fef2f2; border-color: #fecaca; color: #991b1b; }
.alert-green { background: #ecfdf5; border-color: #a7f3d0; color: #065f46; } .alert-blue { background: #f0f9ff; border-color: #bae6fd; color: #075985; }
.empty { text-align: center; border: 1px dashed #cbd5e1; border-radius: 12px; padding: 40px 20px; background: #fff; } .empty-title { font-weight: 600; margin: 0; }

/* Botões e formulários */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; border-radius: 8px; padding: 9px 16px; font-weight: 600; font-size: 14px; border: 1px solid transparent; cursor: pointer; text-decoration: none !important; font-family: inherit; line-height: 1.2; }
.btn-primary { background: rgb(var(--accent)); color: #fff; } .btn-primary:hover { filter: brightness(.95); }
.btn-dark { background: rgb(var(--brand)); color: #fff; } .btn-gold { background: rgb(var(--gold)); color: #0f172a; }
.btn-outline { background: #fff; border-color: #cbd5e1; color: #334155; } .btn-outline:hover { background: #f8fafc; }
.btn-danger { background: #dc2626; color: #fff; } .btn-sm { padding: 5px 10px; font-size: 12px; } .btn-block { width: 100%; }
.btn.disabled { opacity: .5; pointer-events: none; } .btn-icon { background: none; border: 0; padding: 4px; border-radius: 6px; color: var(--muted); cursor: pointer; } .btn-icon:hover { background: #f1f5f9; }
.inline-form { display: inline; }
label.lbl { display: block; font-weight: 600; font-size: 13px; margin: 0 0 4px; color: #334155; }
.input, select.input, textarea.input { width: 100%; border: 1px solid #cbd5e1; border-radius: 8px; padding: 9px 12px; font: inherit; background: #fff; color: var(--text); }
.input:focus { outline: 2px solid rgba(22, 163, 74, .25); border-color: rgb(var(--accent)); }
.input:disabled { background: #f1f5f9; }
.field { margin-bottom: 14px; } .hint { font-size: 12px; color: var(--muted); margin-top: 4px; }
.check { display: flex; gap: 8px; align-items: flex-start; font-size: 14px; margin: 6px 0; } .check input { margin-top: 3px; }
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 16px; } .filters .input { width: auto; min-width: 150px; } .filters .grow { flex: 1; min-width: 200px; }
.choice { display: flex; align-items: center; gap: 10px; border: 1px solid var(--border); border-radius: 10px; padding: 12px; cursor: pointer; }
.choice:has(input:checked) { border-color: rgb(var(--accent)); background: #ecfdf5; }

/* Tabelas */
.table-wrap { overflow-x: auto; margin: 0 -20px; }
table.table { width: 100%; border-collapse: collapse; font-size: 14px; }
.table th { text-align: left; white-space: nowrap; background: #f8fafc; border-bottom: 1px solid var(--border); padding: 9px 20px; font-size: 11px; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); }
.table th a { color: inherit; } .table td { border-bottom: 1px solid #f1f5f9; padding: 11px 20px; vertical-align: middle; }
.table .sub { font-size: 12px; color: #94a3b8; } .nowrap { white-space: nowrap; } .right { text-align: right; }
.pagination { display: flex; justify-content: space-between; align-items: center; margin-top: 16px; color: var(--muted); font-size: 13px; gap: 8px; flex-wrap: wrap; }

/* Gráfico e progresso */
.chart { width: 100%; height: auto; } .chart-empty { height: 200px; display: flex; align-items: center; justify-content: center; color: #94a3b8; }
.bar { height: 8px; background: #f1f5f9; border-radius: 999px; overflow: hidden; } .bar > span { display: block; height: 100%; background: rgb(var(--accent)); }
.list { list-style: none; margin: 0; padding: 0; } .list li { display: flex; justify-content: space-between; gap: 12px; padding: 8px 0; border-bottom: 1px solid #f1f5f9; } .list li:last-child { border: 0; }

/* Autenticação */
.auth { display: grid; grid-template-columns: 1fr 1fr; min-height: 100vh; }
.auth-side { background: rgb(var(--brand)); color: #fff; padding: 48px; display: flex; flex-direction: column; justify-content: space-between; background-size: cover; background-position: center; }
.auth-side .big { font-size: 30px; font-weight: 800; } .auth-side p { color: rgba(236, 253, 245, .85); }
.auth-form { display: flex; align-items: center; justify-content: center; padding: 24px; background: #fff; } .auth-form > div { width: 100%; max-width: 380px; }
.auth-mobile-brand { display: none; }
@media (max-width: 900px) { .auth { grid-template-columns: 1fr; } .auth-side { display: none; } .auth-mobile-brand { display: flex; align-items: center; gap: 10px; margin-bottom: 24px; font-weight: 800; font-size: 20px; color: rgb(var(--brand)); } }

/* Página pública / checkout */
.public { min-height: 100vh; background: #f1f5f9; padding: 32px 16px; } .public-inner { max-width: 1040px; margin: 0 auto; }
.checkout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: 24px; } @media (max-width: 900px) { .checkout { grid-template-columns: minmax(0, 1fr); } }
.cover { width: 96px; height: 96px; border-radius: 10px; object-fit: cover; background: rgba(11, 61, 46, .08); flex-shrink: 0; }
.price { font-size: 22px; font-weight: 800; } .strike { text-decoration: line-through; color: #94a3b8; font-size: 13px; }
.center-card { max-width: 520px; margin: 10vh auto; text-align: center; padding: 32px; }

/* Cursos */
.course { display: grid; grid-template-columns: 320px 1fr; gap: 24px; } @media (max-width: 1100px) { .course { grid-template-columns: 1fr; } .course aside { order: 2; } }
.lesson-link { display: flex; align-items: center; gap: 8px; padding: 6px 8px; border-radius: 6px; color: #475569; font-size: 14px; }
.lesson-link.active { background: #ecfdf5; color: rgb(var(--brand)); font-weight: 600; } .lesson-link.locked { color: #94a3b8; }
.player { aspect-ratio: 16 / 9; width: 100%; background: #000; border: 0; display: block; }
.product-card { overflow: hidden; display: flex; flex-direction: column; } .product-card img, .product-card .ph { aspect-ratio: 16 / 9; width: 100%; object-fit: cover; }
.product-card .ph { background: linear-gradient(135deg, rgb(var(--brand)), rgb(var(--accent))); color: rgba(255, 255, 255, .8); display: flex; align-items: center; justify-content: center; font-size: 32px; font-weight: 800; }
.product-card .card-body { flex: 1; display: flex; flex-direction: column; } .product-card .card-body .push { margin-top: auto; padding-top: 14px; }
.steps { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 16px; } .steps span { background: #f1f5f9; border-radius: 999px; padding: 4px 12px; font-size: 12px; color: var(--muted); }

/* Diálogo de confirmação */
dialog.confirm { border: 0; border-radius: 12px; padding: 24px; max-width: 440px; width: calc(100% - 32px); box-shadow: 0 20px 40px rgba(0, 0, 0, .2); }
dialog.confirm::backdrop { background: rgba(0, 0, 0, .4); }
.toast { position: fixed; top: 16px; right: 16px; z-index: 60; max-width: 380px; display: flex; flex-direction: column; gap: 8px; }
.toast div { padding: 12px 16px; border-radius: 10px; box-shadow: 0 8px 20px rgba(0, 0, 0, .12); font-weight: 500; }
.toast .ok { background: #ecfdf5; color: #065f46; border: 1px solid #a7f3d0; } .toast .error { background: #fef2f2; color: #991b1b; border: 1px solid #fecaca; }
.toast .info { background: #f0f9ff; color: #075985; border: 1px solid #bae6fd; }

/* Navegação pelo menu: indicador de carregamento sem deslocar o layout */
body.is-loading .main { opacity: .55; transition: opacity .15s; pointer-events: none; }
body.is-loading::before { content: ""; position: fixed; top: 0; left: 0; right: 0; height: 3px; z-index: 80; background: linear-gradient(90deg, rgb(var(--accent)), rgb(var(--gold))); animation: loadbar 1s linear infinite; transform-origin: left; }
@keyframes loadbar { from { transform: scaleX(.1); } to { transform: scaleX(1); } }
.main h1:focus { outline: none; }
.sidebar { overscroll-behavior: contain; } .nav { overscroll-behavior: contain; }
details > summary { list-style: none; } details > summary::-webkit-details-marker { display: none; }
details.card > summary h2::before { content: "▸ "; } details.card[open] > summary h2::before { content: "▾ "; }

/* Menu lateral: categorias expansíveis (uma coluna) */
.sidebar { width: 272px; }
.main { margin-left: 272px; }
.sidebar .brand { position: relative; padding-right: 44px; }
.sidebar-collapse { position: absolute; right: 12px; top: 22px; background: rgba(255, 255, 255, .08); border: 0; color: rgba(236, 253, 245, .8); border-radius: 8px; padding: 6px; cursor: pointer; display: flex; }
.sidebar-collapse:hover { background: rgba(255, 255, 255, .16); color: #fff; }
.nav.nav-acc { padding: 4px 10px 16px; scrollbar-width: thin; scrollbar-color: rgba(255, 255, 255, .2) transparent; }
.nav-sec { margin-top: 2px; }
.nav-cat { width: 100%; display: flex; align-items: center; gap: 8px; background: none; border: 0; cursor: pointer; font: inherit; text-align: left;
  font-size: 10.5px; letter-spacing: .09em; font-weight: 700; color: rgba(236, 253, 245, .55); padding: 12px 10px 6px; border-radius: 6px; }
.nav-cat > span { flex: 1; }
.nav-cat:hover { color: #fff; }
.nav-sec.current > .nav-cat { color: rgb(var(--gold)); }
.nav-cat .chev { width: 14px; height: 14px; transition: transform .2s ease; transform: rotate(-90deg); opacity: .8; }
.nav-sec.open > .nav-cat .chev { transform: rotate(0); }
.nav-cat .cat-count { font-style: normal; background: rgb(var(--gold)); color: #0f172a; border-radius: 999px; font-size: 9.5px; font-weight: 700; padding: 0 6px; letter-spacing: 0; }
.nav-sec.open > .nav-cat .cat-count { display: none; }
.nav-items { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .22s ease; }
.nav-items > div { overflow: hidden; }
.nav-sec.open > .nav-items { grid-template-rows: 1fr; }
.nav-sec:not(.open) > .nav-items > div { visibility: hidden; transition: visibility 0s .22s; } /* recolhida: fora do foco do teclado */
.sb-collapsed .nav-sec > .nav-items > div { visibility: visible; }
.nav-acc a { position: relative; padding: 8px 12px; margin: 1px 0; font-size: 13.5px; }
.nav-acc a.active { background: rgba(255, 255, 255, .14); color: #fff; font-weight: 600; }
.nav-acc a.active::before { content: ""; position: absolute; left: 0; top: 7px; bottom: 7px; width: 3px; border-radius: 3px; background: rgb(var(--gold)); }
.nav-acc a .icon { opacity: .85; }
@media (prefers-reduced-motion: reduce) { .nav-items, .nav-cat .chev { transition: none; } }
/* Barra recolhida (somente computador): apenas ícones, com nome ao passar o mouse */
@media (min-width: 1024px) {
  .sb-collapsed .sidebar { width: 76px; }
  .sb-collapsed .main { margin-left: 76px; }
  .sb-collapsed .sidebar .brand { flex-direction: column; padding: 14px 8px; }
  .sb-collapsed .sidebar .brand > div:not(.brand-logo) { display: none; }
  .sb-collapsed .sidebar-collapse { position: static; margin-bottom: 8px; }
  .sb-collapsed .nav-cat { display: none; }
  .sb-collapsed .nav-items { grid-template-rows: 1fr !important; }
  .sb-collapsed .nav-sec + .nav-sec { border-top: 1px solid rgba(255, 255, 255, .08); padding-top: 4px; }
  .sb-collapsed .nav-acc a { justify-content: center; padding: 10px; }
  .sb-collapsed .nav-acc a span { display: none; }
  .sb-collapsed .nav-acc a .count { display: block; position: absolute; top: 2px; right: 4px; }
  .sb-collapsed .side-footer > div { display: none; }
}
@media (max-width: 1023px) { .sidebar { width: 290px; max-width: 88%; } .main { margin-left: 0; } .sidebar-collapse { display: none; } }
.reg-form .pj-only { display: none; } .reg-form:has(input[name=person_type][value=PJ]:checked) .pj-only { display: block; }

/* Gamificação e premiações */
.rw-tabs { overflow-x: auto; flex-wrap: nowrap; scrollbar-width: none; } .rw-tabs a { white-space: nowrap; }
.rw-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 18px; }
.rw-card { background: #fff; border: 1px solid var(--border); border-radius: 16px; overflow: hidden; display: flex; flex-direction: column; transition: transform .15s ease, box-shadow .15s ease; }
.rw-card:hover { transform: translateY(-2px); box-shadow: 0 10px 30px -12px rgba(15, 23, 42, .25); }
.rw-media { position: relative; aspect-ratio: 16 / 9; background: linear-gradient(135deg, rgb(var(--brand)), rgb(var(--accent))); display: flex; align-items: center; justify-content: center; }
.rw-media img { width: 100%; height: 100%; object-fit: cover; }
.rw-media-icon .icon { width: 56px; height: 56px; color: rgb(var(--gold)); }
.rw-state { position: absolute; top: 10px; left: 10px; display: inline-flex; gap: 6px; align-items: center; background: rgba(15, 23, 42, .78); color: #fff; font-size: 11px; font-weight: 700; padding: 4px 10px; border-radius: 999px; letter-spacing: .02em; }
.rw-body { padding: 16px 18px 18px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.rw-cat { margin: 0; font-size: 11px; text-transform: uppercase; letter-spacing: .08em; color: rgb(var(--accent-ink, var(--accent))); font-weight: 700; }
.rw-title { font-size: 18px; }
.rw-prize { display: flex; gap: 10px; align-items: flex-start; background: rgb(var(--gold) / .12); border-radius: 10px; padding: 10px 12px; }
.rw-prize .icon { color: rgb(var(--gold)); margin-top: 2px; } .rw-prize > span { display: flex; flex-direction: column; }
.rw-progress { height: 12px; border-radius: 999px; background: #e2e8f0; overflow: hidden; margin-top: 4px; }
.rw-progress span { display: block; height: 100%; border-radius: 999px; background: linear-gradient(90deg, rgb(var(--accent)), rgb(var(--gold))); transition: width .6s ease; }
.rw-nums { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.rw-pct { font-size: 22px; color: rgb(var(--brand)); }
.rw-ach { border-top: 1px dashed var(--border); padding-top: 8px; font-size: 13px; }
.rw-claim { margin-top: auto; font-weight: 800; letter-spacing: .03em; animation: rw-pulse 2.2s ease-in-out infinite; }
@keyframes rw-pulse { 0%, 100% { box-shadow: 0 0 0 0 rgb(var(--gold) / .55); } 50% { box-shadow: 0 0 0 8px rgb(var(--gold) / 0); } }
@media (prefers-reduced-motion: reduce) { .rw-claim { animation: none; } .rw-card, .rw-progress span { transition: none; } }
.rw-wait { display: flex; gap: 6px; align-items: center; color: #92400e; }
.rw-card.state-locked .rw-media { filter: grayscale(1); opacity: .8; }
.rw-card.state-achieved { border-color: rgb(var(--gold)); box-shadow: 0 0 0 3px rgb(var(--gold) / .25); }
.rw-card.state-achieved .rw-state { background: rgb(var(--gold)); color: #0f172a; }
.rw-card.state-validation .rw-state { background: #f59e0b; }
.rw-milestones { display: flex; flex-wrap: wrap; gap: 8px; }
.rw-ms { display: inline-flex; gap: 6px; align-items: center; padding: 6px 12px; border-radius: 999px; background: #f1f5f9; color: var(--muted); font-size: 12px; font-weight: 600; }
.rw-ms.done { background: rgb(var(--accent) / .12); color: rgb(var(--brand)); }
.rw-thumb-row { display: flex; gap: 10px; align-items: center; } .rw-thumb-row > span { display: flex; flex-direction: column; }
.rw-thumb { width: 44px; height: 44px; border-radius: 10px; object-fit: cover; flex-shrink: 0; } .rw-thumb.lg { width: 72px; height: 72px; }
.rw-thumb-empty { display: inline-flex; align-items: center; justify-content: center; background: #f1f5f9; color: rgb(var(--gold)); }
.rw-upload { display: flex; gap: 12px; align-items: flex-start; }
.rw-preview { width: 96px; height: 96px; object-fit: cover; border-radius: 12px; border: 1px solid var(--border); flex-shrink: 0; }
.rw-gallery { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 10px; }
.rw-gallery-item { display: flex; flex-direction: column; gap: 4px; align-items: center; } .rw-gallery-item img { width: 72px; height: 72px; object-fit: cover; border-radius: 10px; border: 1px solid var(--border); }
.rw-status-bar { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; }
.rw-notes { white-space: pre-wrap; background: #f8fafc; border: 1px solid var(--border); border-radius: 8px; padding: 10px; margin-top: 10px; }
.rw-history { list-style: none; margin: 0; padding: 0 0 0 14px; border-left: 2px solid var(--border); }
.rw-history li { position: relative; padding: 0 0 14px 12px; display: flex; flex-direction: column; }
.rw-history li::before { content: ""; position: absolute; left: -21px; top: 5px; width: 12px; height: 12px; border-radius: 50%; background: rgb(var(--accent)); border: 2px solid #fff; }
.rw-history li.internal::before { background: #94a3b8; }
.rw-h-date { font-size: 11px; color: var(--muted); }
.rw-timeline { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(6, 1fr); gap: 6px; }
.rw-timeline li { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 6px; font-size: 12px; color: var(--muted); position: relative; }
.rw-timeline li:not(:last-child)::after { content: ""; position: absolute; top: 13px; left: calc(50% + 16px); right: calc(-50% + 16px); height: 2px; background: var(--border); }
.rw-timeline li.done:not(:last-child)::after { background: rgb(var(--accent)); }
.rw-timeline .dot { width: 28px; height: 28px; border-radius: 50%; border: 2px solid var(--border); background: #fff; display: flex; align-items: center; justify-content: center; color: #fff; }
.rw-timeline li.done .dot { background: rgb(var(--accent)); border-color: rgb(var(--accent)); }
.rw-timeline li.current .lbl-t { color: var(--text); font-weight: 700; }
.rw-summary-img { width: 100%; max-height: 220px; object-fit: cover; border-radius: 12px; margin-bottom: 12px; }
@media (max-width: 700px) {
  .rw-timeline { grid-template-columns: 1fr; gap: 10px; } .rw-timeline li { flex-direction: row; text-align: left; }
  .rw-timeline li:not(:last-child)::after { display: none; }
  .rw-upload { flex-direction: column; }
}

/* Logotipo horizontal */
.brand-text { min-width: 0; } .brand-wide { display: block; height: 38px; max-width: 176px; object-fit: contain; object-position: left center; }
.brand.has-wide .brand-logo { display: none; }
html.sb-collapsed .brand.has-wide .brand-logo { display: flex; }
.topbar-wide { height: 30px; max-width: 170px; object-fit: contain; }
.auth-wide { display: block; height: 56px; max-width: 280px; object-fit: contain; object-position: left center; }
.auth-mobile-brand .auth-wide { height: 40px; }

/* Seletor de tema (Identidade visual) */
.theme-picker { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 12px; margin-bottom: 8px; }
@media (max-width: 700px) { .theme-picker { grid-template-columns: 1fr; } }
.theme-opt { display: flex; flex-direction: column; gap: 6px; border: 2px solid var(--border); border-radius: 12px; padding: 12px; cursor: pointer; position: relative; }
.theme-opt input { position: absolute; top: 12px; right: 12px; }
.theme-opt:has(input:checked) { border-color: rgb(var(--accent)); box-shadow: 0 0 0 3px rgb(var(--accent) / .18); }
.theme-mini { display: grid; grid-template-columns: 22% 1fr 1fr; grid-template-rows: 14px 34px 10px; gap: 5px; height: 78px; border-radius: 8px; padding: 6px; }
.theme-mini i { display: block; border-radius: 4px; } .theme-mini .tm-side { grid-row: 1 / 4; } .theme-mini .tm-top { grid-column: 2 / 4; } .theme-mini .tm-bar { grid-column: 2 / 4; }
.theme-mini-default { background: #f8fafc; border: 1px solid #e2e8f0; } .theme-mini-default .tm-side { background: #0b3d2e; } .theme-mini-default .tm-top { background: #e2e8f0; } .theme-mini-default .tm-card { background: #fff; border: 1px solid #e2e8f0; } .theme-mini-default .tm-bar { background: #16a34a; }
.theme-mini-dark { background: #0b1220; } .theme-mini-dark .tm-side { background: #0f172a; } .theme-mini-dark .tm-top { background: #1f2937; } .theme-mini-dark .tm-card { background: #111827; border: 1px solid #243041; } .theme-mini-dark .tm-bar { background: #22c55e; }
.theme-mini-neon { background: #000; } .theme-mini-neon .tm-side { background: #070907; border: 1px solid #1a2a1c; } .theme-mini-neon .tm-top { background: #0d110d; } .theme-mini-neon .tm-card { background: #0b0f0b; border: 1px solid #1d3a20; } .theme-mini-neon .tm-bar { background: rgb(var(--lime)); box-shadow: 0 0 8px rgb(var(--lime)); }

/* Barra superior do tema BecheX */

/* ================= Temas escuros (Escuro e BecheX) ================= */
html[data-theme="dark"] { --bg: #0b1220; --surface: #111827; --surface-2: #0f172a; --surface-3: #1f2937; --text: #e5e7eb; --muted: #94a3b8; --border: #243041; --heading: #f8fafc; --side: #0a1020; color-scheme: dark; }
html[data-theme="neon"] { --bg: #000; --surface: #0a0d0a; --surface-2: #070907; --surface-3: #121812; --text: #e8f5e9; --muted: #8b9b8d; --border: #1b261c; --heading: #ffffff; --side: #050605;
  --accent: 181 214 92; --brand: 5 6 5; --gold: 205 235 120; color-scheme: dark; }
html[data-theme="dark"] body, html[data-theme="neon"] body { background: var(--bg); color: var(--text); }
:is(html[data-theme="dark"], html[data-theme="neon"]) :is(h1, h2, h3, .stat-value, .rw-pct) { color: var(--heading); }
:is(html[data-theme="dark"], html[data-theme="neon"]) :is(.card, .empty, .rw-card, .auth-form, dialog.confirm, .theme-opt) { background: var(--surface); border-color: var(--border); color: var(--text); }
:is(html[data-theme="dark"], html[data-theme="neon"]) .card { box-shadow: none; }
:is(html[data-theme="dark"], html[data-theme="neon"]) :is(.card-head, .table td, .list li) { border-color: var(--border); }
:is(html[data-theme="dark"], html[data-theme="neon"]) .table th { background: var(--surface-2); border-color: var(--border); }
:is(html[data-theme="dark"], html[data-theme="neon"]) .table .sub, :is(html[data-theme="dark"], html[data-theme="neon"]) .sub { color: var(--muted); }
:is(html[data-theme="dark"], html[data-theme="neon"]) label.lbl { color: #cbd5e1; }
:is(html[data-theme="dark"], html[data-theme="neon"]) :is(.input, select.input, textarea.input) { background: var(--surface-2); border-color: var(--border); color: var(--text); }
:is(html[data-theme="dark"], html[data-theme="neon"]) .input:disabled { background: var(--surface-3); }
:is(html[data-theme="dark"], html[data-theme="neon"]) .btn-outline { background: transparent; border-color: var(--border); color: var(--text); }
:is(html[data-theme="dark"], html[data-theme="neon"]) .btn-outline:hover, :is(html[data-theme="dark"], html[data-theme="neon"]) .btn-icon:hover { background: var(--surface-3); }
:is(html[data-theme="dark"], html[data-theme="neon"]) :is(.bar, .rw-progress, .steps span, .rw-ms, .rw-thumb-empty) { background: var(--surface-3); }
:is(html[data-theme="dark"], html[data-theme="neon"]) .choice:has(input:checked), :is(html[data-theme="dark"], html[data-theme="neon"]) .lesson-link.active { background: rgb(var(--accent) / .12); }
:is(html[data-theme="dark"], html[data-theme="neon"]) .lesson-link { color: #cbd5e1; }
:is(html[data-theme="dark"], html[data-theme="neon"]) .tabs a.active { color: var(--heading); }
:is(html[data-theme="dark"], html[data-theme="neon"]) :is(.badge-green, .tone-green, .alert-green, .toast .ok) { background: rgba(34, 197, 94, .12); color: #86efac; border-color: rgba(34, 197, 94, .35); }
:is(html[data-theme="dark"], html[data-theme="neon"]) :is(.badge-yellow, .tone-gold, .alert-yellow) { background: rgba(245, 158, 11, .12); color: #fcd34d; border-color: rgba(245, 158, 11, .35); }
:is(html[data-theme="dark"], html[data-theme="neon"]) :is(.badge-red, .tone-red, .alert-red, .toast .error) { background: rgba(239, 68, 68, .12); color: #fca5a5; border-color: rgba(239, 68, 68, .35); }
:is(html[data-theme="dark"], html[data-theme="neon"]) :is(.badge-blue, .tone-blue, .alert-blue, .toast .info) { background: rgba(56, 189, 248, .12); color: #7dd3fc; border-color: rgba(56, 189, 248, .35); }
:is(html[data-theme="dark"], html[data-theme="neon"]) .badge-gray { background: var(--surface-3); color: #cbd5e1; border-color: var(--border); }
:is(html[data-theme="dark"], html[data-theme="neon"]) .rw-prize { background: rgb(var(--gold) / .1); }
:is(html[data-theme="dark"], html[data-theme="neon"]) .rw-notes { background: var(--surface-2); border-color: var(--border); }
:is(html[data-theme="dark"], html[data-theme="neon"]) .rw-timeline .dot { background: var(--surface); border-color: var(--border); }
:is(html[data-theme="dark"], html[data-theme="neon"]) .rw-history li::before { border-color: var(--surface); }
:is(html[data-theme="dark"], html[data-theme="neon"]) .sidebar { background: var(--side); border-right: 1px solid var(--border); }
:is(html[data-theme="dark"], html[data-theme="neon"]) .auth-side { background-color: var(--side); }
:is(html[data-theme="dark"], html[data-theme="neon"]) dialog.confirm::backdrop { background: rgba(0, 0, 0, .7); }
:is(html[data-theme="dark"], html[data-theme="neon"]) .muted { color: var(--muted); }

/* ================= BecheX (preto e neon) ================= */
html[data-theme="neon"] .sidebar .brand-area, html[data-theme="neon"] .nav-group { color: rgb(var(--accent-ink, var(--accent))); }
html[data-theme="neon"] .nav a { color: #b7c4b9; }
html[data-theme="neon"] .nav a:hover { background: rgb(var(--accent) / .08); color: #fff; }
html[data-theme="neon"] .nav a.active { background: rgb(var(--accent) / .12); color: rgb(var(--accent-ink, var(--accent))); box-shadow: inset 3px 0 0 rgb(var(--accent)); }
html[data-theme="neon"] .nav .count, html[data-theme="neon"] .cat-count { background: rgb(var(--accent)); color: #000; }
html[data-theme="neon"] .brand-logo { background: rgb(var(--accent)); color: #000; box-shadow: 0 0 14px rgb(var(--accent) / .45); }
html[data-theme="neon"] :is(.btn-primary, .btn-gold) { background: rgb(var(--accent)); color: #000; box-shadow: 0 0 18px rgb(var(--accent) / .3); }
html[data-theme="neon"] .btn-primary:hover, html[data-theme="neon"] .btn-gold:hover { filter: brightness(1.08); }
html[data-theme="neon"] .btn-dark { background: #111; border-color: rgb(var(--accent) / .4); color: rgb(var(--accent-ink, var(--accent))); }
html[data-theme="neon"] :where(.main a:not(.btn)) { color: rgb(var(--accent-ink, var(--accent))); }
html[data-theme="neon"] :is(.card, .rw-card) { border-color: #1b261c; background: linear-gradient(180deg, #0c100c, #080a08); }
html[data-theme="neon"] .card:hover, html[data-theme="neon"] .rw-card:hover { border-color: rgb(var(--accent) / .35); }
html[data-theme="neon"] .stat-icon { background: rgb(var(--accent) / .12) !important; color: rgb(var(--accent-ink, var(--accent))) !important; box-shadow: 0 0 12px rgb(var(--accent) / .18); }
html[data-theme="neon"] .stat-value { font-size: 22px; letter-spacing: -.01em; }
html[data-theme="neon"] .bar > span, html[data-theme="neon"] .rw-progress span { background: rgb(var(--accent)); box-shadow: 0 0 10px rgb(var(--accent) / .6); }
html[data-theme="neon"] .input:focus { outline-color: rgb(var(--accent) / .35); border-color: rgb(var(--accent)); }
html[data-theme="neon"] .tabs a.active { border-bottom-color: rgb(var(--accent)); }
html[data-theme="neon"] .page-header h1 { font-weight: 800; }
html[data-theme="neon"] .rw-card.state-achieved { border-color: rgb(var(--accent)); box-shadow: 0 0 0 1px rgb(var(--accent)), 0 0 24px rgb(var(--accent) / .25); }
html[data-theme="neon"] .rw-card.state-achieved .rw-state { background: rgb(var(--accent)); color: #000; }
html[data-theme="neon"] .rw-media { background: radial-gradient(circle at 30% 20%, rgb(var(--accent) / .35), #000 70%); }
html[data-theme="neon"] .auth-side { background-image: radial-gradient(circle at 20% 10%, rgb(var(--lime) / .22), transparent 55%), radial-gradient(circle at 90% 90%, rgb(var(--lime) / .12), transparent 50%); }
html[data-theme="neon"] .auth-side p { color: #a7b3a9; }

html[data-theme="neon"] .chart rect { filter: drop-shadow(0 0 4px rgb(var(--lime) / .55)); }

/* Página "Instalar aplicativo" */
.app-hero { overflow: hidden; background: linear-gradient(135deg, rgb(var(--brand)), rgb(var(--accent) / .85)); color: #fff; border: 0; }
.app-hero-body { display: grid; grid-template-columns: 1.3fr 1fr; gap: 24px; padding: 28px; align-items: center; }
.app-hero .muted { color: rgba(255, 255, 255, .8); display: block; }
.app-hero-id { display: flex; gap: 14px; align-items: center; }
.app-hero-icon { width: 72px; height: 72px; border-radius: 18px; box-shadow: 0 10px 25px rgba(0, 0, 0, .3); background: #fff; object-fit: cover; }
.app-hero-name { font-size: 24px; font-weight: 800; display: block; }
.app-hero-list { list-style: none; padding: 0; margin: 20px 0 0; display: grid; gap: 10px; } .app-hero-list li { display: flex; gap: 10px; align-items: center; }
.phone { justify-self: center; width: 210px; height: 380px; border-radius: 34px; background: #0b0b0b; padding: 10px; box-shadow: 0 25px 50px rgba(0, 0, 0, .35), inset 0 0 0 2px #2a2a2a; }
.phone-screen { height: 100%; border-radius: 26px; background: var(--bg); overflow: hidden; display: flex; flex-direction: column; gap: 10px; padding: 12px; color: var(--text); }
.phone-bar { display: flex; align-items: center; gap: 8px; height: 30px; } .phone-bar img { max-height: 26px; max-width: 150px; object-fit: contain; } .phone-bar .phone-ic { width: 24px; height: 24px; border-radius: 6px; }
.phone-notif { display: flex; gap: 8px; align-items: center; background: rgba(255, 255, 255, .92); color: #0f172a; border-radius: 12px; padding: 8px; font-size: 10px; box-shadow: 0 6px 16px rgba(0, 0, 0, .2); }
.phone-notif img { width: 26px; height: 26px; border-radius: 6px; } .phone-notif span { display: block; color: #64748b; }
.phone-card { background: var(--surface, #fff); border: 1px solid var(--border); border-radius: 12px; padding: 10px; font-size: 10px; display: flex; flex-direction: column; gap: 4px; }
.phone-card b { font-size: 16px; color: var(--heading, #0f172a); } .phone-card i { display: block; height: 6px; border-radius: 999px; background: rgb(var(--accent)); }
@media (max-width: 800px) { .app-hero-body { grid-template-columns: 1fr; } .phone { display: none; } }
html[data-theme="neon"] .app-hero { background: radial-gradient(circle at 15% 20%, rgb(var(--lime) / .25), #000 65%); border: 1px solid #1b261c; }

/* Área de membros do infoprodutor */
.school-hero { background: linear-gradient(135deg, rgb(var(--brand)), rgb(var(--accent))); color: #fff; border-radius: 16px; padding: 24px 28px; margin-bottom: 24px; }
.school-hero h1 { color: #fff; font-size: 26px; }
.school-id { display: flex; gap: 14px; align-items: center; } .school-id img { width: 64px; height: 64px; object-fit: contain; border-radius: 14px; background: rgba(255, 255, 255, .9); padding: 4px; }
.school-ic { width: 64px; height: 64px; border-radius: 14px; background: rgba(255, 255, 255, .2); display: flex; align-items: center; justify-content: center; font-size: 28px; font-weight: 800; }
.school-kicker { margin: 0; font-size: 11px; letter-spacing: .1em; text-transform: uppercase; opacity: .85; font-weight: 700; }
.school-welcome { margin: 14px 0 0; max-width: 720px; opacity: .92; }
.school-link { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; } .school-link > span:first-child { display: flex; gap: 8px; align-items: center; min-width: 0; }
.input-prefix { display: flex; align-items: stretch; } .input-prefix span { display: flex; align-items: center; padding: 0 10px; border: 1px solid #cbd5e1; border-right: 0; border-radius: 8px 0 0 8px; background: #f1f5f9; color: var(--muted); font-size: 12px; white-space: nowrap; max-width: 55%; overflow: hidden; text-overflow: ellipsis; }
.input-prefix .input { border-radius: 0 8px 8px 0; min-width: 0; }
:is(html[data-theme="dark"], html[data-theme="neon"]) .input-prefix span { background: var(--surface-3); border-color: var(--border); }
html[data-theme="neon"] .school-hero { background: radial-gradient(circle at 15% 20%, rgb(var(--accent) / .35), #000 70%); border: 1px solid #1b261c; }


/* Barra superior (todos os temas): olho, claro/escuro, notificações e usuário */
.appbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 32px; border-bottom: 1px solid var(--border); background: rgba(255, 255, 255, .88); position: sticky; top: 0; z-index: 15; backdrop-filter: blur(8px); }
.appbar-actions { display: flex; align-items: center; gap: 10px; }
.appbar-btn { position: relative; display: inline-flex; width: 38px; height: 38px; border-radius: 10px; align-items: center; justify-content: center; border: 1px solid var(--border); color: var(--muted); background: transparent; cursor: pointer; transition: border-color .15s, color .15s, background .15s; }
.appbar-btn:hover { border-color: rgb(var(--accent)); color: rgb(var(--accent-ink, var(--accent))); text-decoration: none; }
.appbar-dot { position: absolute; top: -6px; right: -6px; min-width: 18px; height: 18px; border-radius: 999px; background: rgb(var(--accent)); color: #fff; font-size: 10px; font-weight: 800; display: flex; align-items: center; justify-content: center; padding: 0 4px; }
.appbar-user { display: flex; align-items: center; gap: 10px; }
.appbar-avatar { width: 36px; height: 36px; border-radius: 50%; background: rgb(var(--brand)); color: #fff; font-weight: 800; display: flex; align-items: center; justify-content: center; }
.appbar-meta { display: flex; flex-direction: column; line-height: 1.2; font-size: 13px; } .appbar-meta span { color: var(--muted); font-size: 11px; }
.appbar-hello .muted { margin: 0; }
.when-dark, .when-hidden { display: none; }
:is(html[data-theme="dark"], html[data-theme="neon"]) .when-dark { display: inline-flex; } :is(html[data-theme="dark"], html[data-theme="neon"]) .when-light { display: none; }
html.values-hidden .when-hidden { display: inline-flex; } html.values-hidden .when-shown { display: none; }
:is(html[data-theme="dark"], html[data-theme="neon"]) .appbar { background: rgba(5, 8, 12, .82); }
html[data-theme="neon"] .appbar-avatar, html[data-theme="neon"] .appbar-dot { background: rgb(var(--accent)); color: #000; }
@media (max-width: 1023px) { .appbar { padding: 8px 16px; } .appbar-hello, .appbar-meta { display: none; } }
.auth-form { position: relative; } .auth-theme { position: absolute; top: 16px; right: 16px; }
/* Olho: valores sensíveis ficam borrados até o usuário mostrar de novo */
html.values-hidden :is(.sv, [data-sensitive] .stat-value) { filter: blur(9px); user-select: none; transition: filter .2s; }
:is(.sv, [data-sensitive] .stat-value) { transition: filter .2s; }

/* Dashboard do infoprodutor: saldo para saque e próxima conquista */
.dash-top { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.6fr); gap: 16px; margin-bottom: 16px; }
.dash-top > .wallet-card:only-child { grid-column: 1 / -1; }
@media (max-width: 900px) { .dash-top { grid-template-columns: 1fr; } }
.wallet-card { padding: 20px; background: linear-gradient(135deg, rgb(var(--brand)), rgb(var(--brand) / .88)); color: #fff; border: 0; display: flex; flex-direction: column; gap: 8px; }
.wallet-head { display: flex; justify-content: space-between; align-items: center; }
.wallet-label { display: inline-flex; gap: 8px; align-items: center; font-size: 13px; font-weight: 600; opacity: .9; }
.wallet-card .btn-icon { color: rgba(255, 255, 255, .85); } .wallet-card .btn-icon:hover { background: rgba(255, 255, 255, .12); }
.wallet-amount { font-size: 32px; font-weight: 800; margin: 0; letter-spacing: -.02em; }
.wallet-sub { margin: 0; font-size: 12px; opacity: .85; }
.wallet-form { display: flex; gap: 8px; margin-top: 4px; } .wallet-form .input { max-width: 160px; background: rgba(255, 255, 255, .95); color: #0f172a; border-color: transparent; }
html[data-theme="neon"] .wallet-card { background: radial-gradient(circle at 10% 0%, rgb(var(--accent) / .3), #050605 70%); border: 1px solid #1b261c; }
.goal-card { display: grid; grid-template-columns: 150px 1fr; overflow: hidden; }
@media (max-width: 560px) { .goal-card { grid-template-columns: 1fr; } }
.goal-media { background: linear-gradient(135deg, rgb(var(--brand) / .9), rgb(var(--accent) / .8)); display: flex; align-items: center; justify-content: center; min-height: 150px; color: rgb(var(--gold)); }
.goal-media img { width: 100%; height: 100%; object-fit: cover; } .goal-media .icon { width: 56px; height: 56px; }
.goal-body { padding: 18px 20px; display: flex; flex-direction: column; gap: 6px; }
.goal-kicker { margin: 0; font-size: 11px; letter-spacing: .1em; text-transform: uppercase; font-weight: 700; color: rgb(var(--accent-ink, var(--accent))); }
.goal-progress { height: 14px; border-radius: 999px; background: #e2e8f0; overflow: hidden; margin-top: 6px; }
.goal-progress span { display: block; height: 100%; width: var(--w); border-radius: 999px; background: linear-gradient(90deg, rgb(var(--accent)), rgb(var(--gold))); animation: goal-fill 1.1s cubic-bezier(.2, .8, .2, 1); }
@keyframes goal-fill { from { width: 0; } to { width: var(--w); } }
@media (prefers-reduced-motion: reduce) { .goal-progress span { animation: none; } }
.goal-nums { display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; font-size: 13px; }
.goal-pct { font-size: 26px; color: rgb(var(--brand)); }
:is(html[data-theme="dark"], html[data-theme="neon"]) .goal-progress { background: var(--surface-3); }
:is(html[data-theme="dark"], html[data-theme="neon"]) .goal-pct { color: var(--heading); }
html[data-theme="neon"] .goal-progress span { background: rgb(var(--accent)); box-shadow: 0 0 12px rgb(var(--accent) / .6); }
.rw-celebrate { display: flex; align-items: center; gap: 14px; padding: 14px 18px; border-radius: 14px; margin-bottom: 16px; background: linear-gradient(90deg, rgb(var(--gold) / .22), rgb(var(--accent) / .14)); border: 1px solid rgb(var(--gold) / .5); animation: rw-pop .5s ease-out; }
.rw-celebrate > div { flex: 1; display: flex; flex-direction: column; } .rw-celebrate span { font-size: 13px; }
.rw-celebrate-ic { width: 42px; height: 42px; border-radius: 50%; background: rgb(var(--gold)); color: #0f172a; display: flex !important; align-items: center; justify-content: center; flex-shrink: 0; }
@keyframes rw-pop { from { transform: scale(.96); opacity: 0; } to { transform: none; opacity: 1; } }
/* Interruptores de configuração */
.rw-config { display: grid; gap: 12px; }
.switch-row { display: flex; align-items: center; gap: 12px; cursor: pointer; } .switch-row > span:last-child { display: flex; flex-direction: column; }
.switch-row input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.switch { width: 42px; height: 24px; border-radius: 999px; background: #cbd5e1; position: relative; flex-shrink: 0; transition: background .2s; }
.switch::after { content: ""; position: absolute; top: 3px; left: 3px; width: 18px; height: 18px; border-radius: 50%; background: #fff; transition: transform .2s; box-shadow: 0 1px 3px rgba(0, 0, 0, .25); }
.switch-row input:checked + .switch { background: rgb(var(--accent)); } .switch-row input:checked + .switch::after { transform: translateX(18px); }
.switch-row input:focus-visible + .switch { outline: 2px solid rgb(var(--accent)); outline-offset: 2px; }
.rw-preview-frame { border: 2px dashed var(--border); border-radius: 16px; padding: 16px; }
.referral-rules { line-height: 1.6; }

/* Recuperação de vendas */
.rec-tabs { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin-bottom: 14px; }
@media (max-width: 900px) { .rec-tabs { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.rec-tab { display: flex; gap: 12px; align-items: center; padding: 14px; border-radius: 14px; border: 1px solid var(--border); background: var(--surface, #fff); color: var(--text); transition: border-color .15s, transform .15s; }
.rec-tab:hover { text-decoration: none; transform: translateY(-1px); border-color: rgb(var(--accent) / .5); }
.rec-tab.active { border-color: rgb(var(--accent)); box-shadow: 0 0 0 3px rgb(var(--accent) / .15); }
.rec-tab > span:last-child { display: flex; flex-direction: column; }
.rec-ic { width: 36px; height: 36px; border-radius: 10px; display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; }
.rec-list { display: grid; gap: 14px; }
.rec-head { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; padding: 14px 18px; border-bottom: 1px solid var(--border); }
.rec-who, .rec-what { display: flex; flex-direction: column; min-width: 0; } .rec-who { flex: 1; min-width: 180px; } .rec-what { text-align: right; }
.rec-body { display: grid; grid-template-columns: 1fr 260px; gap: 16px; padding: 16px 18px; }
@media (max-width: 800px) { .rec-body { grid-template-columns: 1fr; } .rec-what { text-align: left; } }
.rec-side { display: flex; flex-direction: column; gap: 8px; }
.btn-wa { background: #25d366; color: #052e16; } .btn-wa:hover { filter: brightness(.96); } .btn-wa.disabled { opacity: .45; pointer-events: auto; cursor: not-allowed; }
.rec-qr { display: flex; align-items: center; gap: 10px; } .rec-qr img { width: 72px; height: 72px; border-radius: 8px; background: #fff; padding: 4px; border: 1px solid var(--border); }
.var-chip { display: inline-block; background: var(--surface-3, #f1f5f9); border-radius: 6px; padding: 1px 6px; margin: 2px 0; font-size: 12px; }
.access-row { padding: 10px 0; border-bottom: 1px solid var(--border); } .access-row:last-child { border: 0; }
.card-head h2 { display: flex; align-items: center; gap: 8px; }
[hidden] { display: none !important; }
.tone-gray { background: #f1f5f9; color: #475569; } :is(html[data-theme="dark"], html[data-theme="neon"]) .tone-gray { background: var(--surface-3); color: #cbd5e1; }

/* Apps e integrações (cards) */
.apps-section { margin-bottom: 28px; }
.apps-title { font-size: 13px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin-bottom: 12px; }
.apps-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 16px; }
.app-card { background: var(--surface, #fff); border: 1px solid var(--border); border-radius: 16px; overflow: hidden; display: flex; flex-direction: column; transition: transform .15s, border-color .15s, box-shadow .15s; }
.app-card:hover { transform: translateY(-2px); border-color: rgb(var(--accent) / .45); box-shadow: 0 12px 28px -18px rgb(15 23 42 / .45); }
.app-logo { height: 96px; display: flex; align-items: center; justify-content: center; border-bottom: 1px solid var(--border); background: var(--surface-2, #f8fafc); }
.app-logo img { max-height: 64px; max-width: 80%; object-fit: contain; }
.app-tile { width: 60px; height: 60px; border-radius: 16px; background: var(--tile); color: #fff; display: inline-flex; align-items: center; justify-content: center; box-shadow: 0 8px 18px -8px var(--tile); }
.app-tile .icon { width: 28px; height: 28px; }
.app-body { padding: 14px 16px 16px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.app-body h3 { margin: 0; font-size: 15px; }
.app-desc { margin: 0; font-size: 13px; color: var(--muted); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: 2.9em; }
.app-foot { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-top: auto; padding-top: 6px; }
.app-status { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.app-card.is-on { border-color: rgb(var(--accent) / .35); }
:is(html[data-theme="dark"], html[data-theme="neon"]) .app-logo { background: rgb(255 255 255 / .02); }
.app-upload { display: flex; flex-direction: column; gap: 6px; margin-top: 4px; }
.pay-choice > span:last-child { display: flex; flex-direction: column; } .pay-choice .sub { font-size: 12px; color: var(--muted); }
.pay-ic { width: 34px; height: 34px; border-radius: 9px; display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; }
.pay-pix { background: #e6f7f5; color: #32bcad; } .pay-credit_card { background: #eef2ff; color: #4f46e5; } .pay-boleto { background: #f1f5f9; color: #334155; }
.empty-art { width: 120px; height: 80px; color: rgb(var(--brand)); display: block; margin: 0 auto 10px; }
:is(html[data-theme="dark"], html[data-theme="neon"]) .empty-art { color: #cbd5e1; }
.apps-filter { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 18px; }
.chip { border: 1px solid var(--border); background: var(--surface, #fff); color: var(--text); border-radius: 999px; padding: 6px 14px; font: inherit; font-size: 13px; cursor: pointer; }
.chip.active, .chip:hover { border-color: rgb(var(--accent)); color: rgb(var(--accent-ink, var(--accent))); }
.app-cat { font-size: 10px; letter-spacing: .08em; text-transform: uppercase; color: rgb(var(--accent-ink, var(--accent))); font-weight: 700; }
.app-status { margin: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.app-foot { justify-content: space-between; }
/* Equipe */
.team-list { display: grid; gap: 14px; }
.team-item { border: 1px solid var(--border); border-radius: 12px; padding: 14px; display: grid; gap: 10px; }
.team-head { display: flex; align-items: center; gap: 12px; } .team-head > div { flex: 1; min-width: 0; }
.team-perms { display: flex; flex-wrap: wrap; gap: 4px 16px; align-items: center; }
.pw-box > summary { cursor: pointer; list-style: none; } .pw-box > summary::-webkit-details-marker { display: none; }

/* ================= BecheX claro (fundos claros + detalhes neon) ================= */
html[data-theme="neon-light"] { --bg: #f4f7f2; --surface: #ffffff; --surface-2: #f8fbf6; --surface-3: #edf3ea; --text: #0f1a12; --muted: #4f5f53; --border: #dde7da; --heading: #07110a;
  --accent: 181 214 92; --accent-ink: 91 122 30; color-scheme: light; }
html[data-theme="neon-light"] body { background: radial-gradient(circle at 100% 0%, rgb(var(--lime) / .08), transparent 40%), var(--bg); color: var(--text); }
html[data-theme="neon-light"] :is(h1, h2, h3, .stat-value) { color: var(--heading); }
html[data-theme="neon-light"] :is(.card, .rw-card, .app-card, .rec-tab, .empty) { background: var(--surface); border-color: var(--border); box-shadow: 0 1px 2px rgb(15 26 18 / .04), 0 8px 24px -18px rgb(15 26 18 / .25); }
html[data-theme="neon-light"] :is(.card, .rw-card, .app-card):hover { border-color: rgb(var(--lime) / .7); }
html[data-theme="neon-light"] .appbar-dot { background: rgb(var(--lime)); color: #04210c; }
html[data-theme="neon-light"] .appbar { background: rgb(255 255 255 / .9); }
html[data-theme="neon-light"] .appbar-avatar { background: #0c160e; color: rgb(var(--lime)); }
html[data-theme="neon-light"] :is(.btn-primary, .btn-gold) { background: rgb(var(--lime)); color: #04210c; box-shadow: 0 6px 18px -8px rgb(var(--lime) / .9); }
html[data-theme="neon-light"] .btn-dark { background: #0c160e; color: rgb(var(--lime)); }
html[data-theme="neon-light"] .btn-outline { background: #fff; border-color: var(--border); color: var(--heading); }
html[data-theme="neon-light"] :is(.input, select.input, textarea.input) { background: #fff; border-color: #cfdbcc; color: var(--text); }
html[data-theme="neon-light"] .input:focus { outline: 2px solid rgb(var(--lime) / .45); border-color: rgb(var(--accent-ink)); }
html[data-theme="neon-light"] .table th { background: var(--surface-2); color: var(--muted); }
html[data-theme="neon-light"] .tabs a.active { color: var(--heading); border-bottom-color: rgb(var(--lime)); }
html[data-theme="neon-light"] .stat-icon { background: rgb(var(--lime) / .16) !important; color: #166534 !important; }
html[data-theme="neon-light"] :is(.bar > span, .rw-progress span, .goal-progress span) { background: rgb(var(--lime)); box-shadow: 0 0 10px rgb(var(--lime) / .6); }
html[data-theme="neon-light"] .chart rect { fill: rgb(var(--lime)); filter: drop-shadow(0 0 3px rgb(var(--lime) / .6)); }
html[data-theme="neon-light"] .wallet-card { background: radial-gradient(circle at 100% 0%, rgb(var(--lime) / .35), #0c160e 60%); color: #fff; }
html[data-theme="neon-light"] .wallet-card .wallet-label, html[data-theme="neon-light"] .wallet-card .wallet-sub { color: #e8f5e9; }
html[data-theme="neon-light"] .goal-media, html[data-theme="neon-light"] .rw-media { background: radial-gradient(circle at 30% 20%, rgb(var(--lime) / .45), #0c160e 75%); }
html[data-theme="neon-light"] .auth-side { background-color: #0c160e; background-image: radial-gradient(circle at 20% 10%, rgb(var(--lime) / .3), transparent 55%); }
html[data-theme="neon-light"] .goal-pct { color: var(--heading); }
html[data-theme="neon-light"] .chip.active, html[data-theme="neon-light"] .chip:hover { border-color: rgb(var(--lime)); color: #0b3d1a; background: rgb(var(--lime) / .12); }
html[data-theme="neon-light"] .theme-opt:has(input:checked) { border-color: rgb(var(--lime)); }
.theme-mini-neon-light { background: #f4f7f2; border: 1px solid #dde7da; } .theme-mini-neon-light .tm-side { background: #fff; border: 1px solid #dde7da; } .theme-mini-neon-light .tm-top { background: #fff; } .theme-mini-neon-light .tm-card { background: #fff; border: 1px solid #dde7da; } .theme-mini-neon-light .tm-bar { background: rgb(var(--lime)); box-shadow: 0 0 8px rgb(var(--lime)); }
:is(html[data-theme="neon"], html[data-theme="neon-light"]) .when-light { display: inline-flex; }
html[data-theme="neon"] .when-light { display: none; }
::placeholder { color: var(--muted); opacity: .85; }

/* Cores semânticas por tema (legibilidade garantida em claro e escuro) */
:root { --pos: #047857; --neg: #b91c1c; }
:is(html[data-theme="dark"], html[data-theme="neon"]) { --pos: #6ee7b7; --neg: #fca5a5; }
.amt-pos { color: var(--pos); } .amt-neg { color: var(--neg); }
.table .sub, .sub { color: var(--muted); }
:is(html[data-theme="dark"], html[data-theme="neon"]) .rw-ms.done { color: #bbf7d0; background: rgb(34 197 94 / .16); }
html[data-theme="neon-light"] .rw-ms.done { color: #14532d; background: rgb(var(--lime) / .18); }
.btn-wa, html[data-theme] .btn-wa { color: #052e16; }

/* Produtos em cards */
.prod-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 18px; }
.prod-card { background: var(--surface, #fff); border: 1px solid var(--border); border-radius: 16px; overflow: hidden; display: flex; flex-direction: column; transition: transform .15s, box-shadow .15s, border-color .15s; }
.prod-card:hover { transform: translateY(-2px); box-shadow: 0 14px 30px -20px rgb(15 23 42 / .5); border-color: rgb(var(--accent) / .45); }
.prod-cover { position: relative; display: block; aspect-ratio: 16 / 9; background: linear-gradient(135deg, rgb(var(--brand)), rgb(var(--accent))); }
.prod-cover img { width: 100%; height: 100%; object-fit: cover; display: block; }
.prod-ph { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; font-size: 44px; font-weight: 800; color: rgb(255 255 255 / .85); }
.prod-state { position: absolute; top: 10px; left: 10px; display: flex; gap: 4px; flex-wrap: wrap; }
.prod-body { padding: 16px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.prod-body h3 { margin: 0; font-size: 16px; } .prod-body h3 a { color: var(--heading, #0f172a); }
.prod-desc { margin: 0; color: var(--muted); font-size: 13px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: 2.8em; }
.prod-price strong { font-size: 18px; }
.prod-meta { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; font-size: 12px; color: var(--muted); } .prod-meta li { display: flex; gap: 6px; align-items: center; } .prod-meta .icon { width: 14px; height: 14px; }
.prod-actions { display: flex; gap: 6px; flex-wrap: wrap; margin-top: auto; padding-top: 8px; align-items: center; }
.set-head { display: flex; gap: 14px; align-items: center; } .set-head > div { flex: 1; } .set-head img { width: 96px; height: 54px; object-fit: cover; border-radius: 8px; }
.prod-ph-sm { width: 96px; height: 54px; border-radius: 8px; background: linear-gradient(135deg, rgb(var(--brand)), rgb(var(--accent))); color: #fff; display: inline-flex; align-items: center; justify-content: center; font-weight: 800; font-size: 22px; }
.set-card { color: inherit; } .set-card:hover { text-decoration: none; }

/* ======================= Checkouts (modelos e editor) ======================= */
.co-body { background: var(--co-bg, #f1f5f9); color: var(--co-text, #0f172a); font-family: var(--co-font, Inter), Inter, system-ui, sans-serif; }
.co-body .public { background: transparent; }
.co-model-classic .btn-primary { background: var(--co-btn); color: var(--co-btn-text); }
.co-model-classic .card { border-radius: var(--co-radius); }
.co-topbar { text-align: center; padding: 8px 12px; font-weight: 700; font-size: 14px; }
.co-countdown { display: flex; justify-content: center; align-items: center; gap: 8px; padding: 9px 12px; font-weight: 600; font-size: 14px; }
.co-countdown strong { font-variant-numeric: tabular-nums; font-size: 16px; letter-spacing: .03em; }
.co-banner { width: 100%; display: block; border-radius: var(--co-radius); margin-bottom: var(--co-gap); }
.co-video { position: relative; aspect-ratio: 16 / 9; border-radius: var(--co-radius); overflow: hidden; margin: 0 0 var(--co-gap); background: #000; }
.co-video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.co-promos { display: grid; gap: var(--co-gap); margin-top: var(--co-gap); } .co-promos img { width: 100%; border-radius: var(--co-radius); }
.co-box { background: #fff; border: 1px solid #e5e7eb; border-radius: var(--co-radius); padding: 14px 16px; margin-top: var(--co-gap); color: #0f172a; }
.co-box h3 { font-size: 14px; margin: 0 0 8px; }
.co-benefits ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; } .co-benefits li { display: flex; gap: 8px; align-items: flex-start; font-size: 14px; } .co-benefits .icon { color: var(--co-primary); margin-top: 2px; }
.co-guarantee { display: flex; gap: 12px; align-items: center; } .co-guarantee img { width: 72px; height: 72px; object-fit: contain; } .co-guarantee p { margin: 2px 0 0; font-size: 13px; color: #475569; }
.co-seal { width: 64px; height: 64px; border-radius: 50%; border: 3px solid var(--co-primary); display: flex; flex-direction: column; align-items: center; justify-content: center; color: var(--co-primary); flex-shrink: 0; line-height: 1; } .co-seal b { font-size: 22px; } .co-seal small { font-size: 10px; }
.co-testimonials blockquote { margin: 0 0 10px; padding: 10px 12px; border-left: 3px solid var(--co-primary); background: #f8fafc; border-radius: 6px; } .co-testimonials p { margin: 0; font-size: 14px; } .co-testimonials cite { font-size: 12px; color: #475569; font-style: normal; font-weight: 600; }
.co-info { font-size: 13px; color: #334155; }
.co-notice { display: flex; gap: 8px; align-items: center; margin-top: var(--co-gap); padding: 10px 12px; border-radius: var(--co-radius); background: #fff7ed; color: #9a3412; border: 1px solid #fed7aa; font-size: 13px; font-weight: 600; }
.co-secure, .co-safe { display: flex; gap: 6px; align-items: center; justify-content: center; font-size: 12px; color: #475569; margin: var(--co-gap) 0 0; }
.co-salepop { position: fixed; z-index: 70; max-width: 300px; background: #fff; color: #0f172a; border-radius: 12px; padding: 12px 14px; box-shadow: 0 12px 30px rgb(15 23 42 / .22); font-size: 13px; border-left: 4px solid var(--co-primary); opacity: 0; transform: translateY(10px); transition: opacity .3s, transform .3s; }
.co-salepop.in { opacity: 1; transform: none; }
.co-salepop.pos-bottom-left { left: 16px; bottom: 16px; } .co-salepop.pos-bottom-right { right: 16px; bottom: 16px; } .co-salepop.pos-top-right { right: 16px; top: 16px; }
/* Campos e blocos dos modelos Oferta e BecheX */
.co-card { background: #fff; border: 1px solid #e5e7eb; border-radius: var(--co-radius); padding: 20px; color: #0f172a; box-shadow: 0 6px 24px -18px rgb(15 23 42 / .35); }
.co-section { border-top: 1px solid #eef0f3; padding-top: 16px; margin-top: 16px; }
.co-sec-head { display: flex; gap: 10px; align-items: center; margin-bottom: 12px; } .co-sec-head strong { display: block; font-size: 14px; } .co-sec-head span { font-size: 12px; color: #64748b; }
.co-sec-ic { width: 30px; height: 30px; border-radius: 8px; background: #f1f5f9; display: inline-flex; align-items: center; justify-content: center; color: #334155; flex-shrink: 0; }
.co-num { width: 26px; height: 26px; border-radius: 50%; background: var(--co-primary); color: #fff; font-weight: 800; display: inline-flex; align-items: center; justify-content: center; font-size: 13px; flex-shrink: 0; }
.co-field { margin-bottom: 12px; } .co-field label { display: block; font-size: 12px; font-weight: 600; color: #334155; margin-bottom: 4px; } .co-hint { font-weight: 400; color: #64748b; }
.co-input { display: flex; align-items: center; gap: 8px; border: 1px solid #dbe1e8; border-radius: calc(var(--co-radius) * .7); padding: 0 12px; background: #f8fafc; transition: border-color .15s, box-shadow .15s; }
.co-input:focus-within { border-color: var(--co-primary); box-shadow: 0 0 0 3px color-mix(in srgb, var(--co-primary) 20%, transparent); background: #fff; }
.co-input input { border: 0; outline: 0; background: transparent; padding: 11px 0; font: inherit; width: 100%; color: #0f172a; }
.co-input .icon { color: #94a3b8; } .co-ddi { font-size: 13px; color: #475569; font-weight: 600; }
.co-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; } .co-row > * { min-width: 0; } @media (max-width: 600px) { .co-row { grid-template-columns: minmax(0, 1fr); } }
.co-cpf { display: none; } .co-cpf.co-need { display: block; }
.co-select-all { display: flex; gap: 8px; align-items: center; font-size: 13px; margin-bottom: 8px; }
.co-bump { position: relative; display: block; border: 2px dashed #f59e0b; background: linear-gradient(180deg, #fffbeb, #fff); border-radius: var(--co-radius); padding: 14px; margin-bottom: 12px; cursor: pointer; }
.co-bump-tag { position: absolute; top: -10px; right: 12px; background: #f59e0b; color: #451a03; font-size: 10px; font-weight: 800; letter-spacing: .06em; padding: 2px 8px; border-radius: 999px; }
.co-bump-main { display: flex; gap: 10px; align-items: flex-start; } .co-bump-main img { width: 46px; height: 46px; object-fit: cover; border-radius: 8px; flex-shrink: 0; } .co-bump-main small { display: block; color: #64748b; font-size: 12px; margin-top: 2px; }
.co-bump-foot { display: flex; justify-content: space-between; align-items: center; margin-top: 10px; } .co-bump-foot b { color: var(--co-primary); }
.co-bump-check { display: inline-flex; gap: 6px; align-items: center; border: 1px solid #e2e8f0; background: #fff; border-radius: 8px; padding: 5px 10px; font-size: 12px; font-weight: 600; }
.co-methods { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; } @media (max-width: 520px) { .co-methods { grid-template-columns: 1fr 1fr; } }
.co-method { position: relative; display: flex; align-items: center; gap: 8px; border: 1.5px solid #e2e8f0; border-radius: calc(var(--co-radius) * .7); padding: 12px; cursor: pointer; font-weight: 600; font-size: 14px; background: #fff; }
.co-method input { position: absolute; opacity: 0; } .co-method:has(input:checked) { border-color: var(--co-primary); background: color-mix(in srgb, var(--co-primary) 7%, #fff); box-shadow: 0 0 0 3px color-mix(in srgb, var(--co-primary) 15%, transparent); }
.co-method:has(input:focus-visible) { outline: 2px solid var(--co-primary); outline-offset: 2px; }
.co-coupon { display: flex; gap: 8px; margin-top: 12px; } .co-coupon-in { flex: 1; min-width: 0; border: 1px dashed #cbd5e1; border-radius: 8px; padding: 9px 12px; font: inherit; text-transform: uppercase; background: #fff; color: #0f172a; }
.co-btn-ghost { border: 1px solid #cbd5e1; background: #fff; border-radius: 8px; padding: 0 14px; font-weight: 600; cursor: pointer; color: #0f172a; }
.co-ok { color: #047857; font-size: 12px; display: flex; gap: 4px; align-items: center; } .co-err { color: #b91c1c; font-size: 12px; }
.co-totals { display: grid; gap: 6px; font-size: 14px; margin-top: 14px; } .co-totals > div { display: flex; justify-content: space-between; gap: 10px; color: #475569; }
.co-totals .co-disc { color: #047857; } .co-total { border-top: 1px solid #eef0f3; padding-top: 8px; font-size: 16px; color: #0f172a !important; } .co-total strong { color: var(--co-primary); font-size: 20px; }
.co-terms { display: flex; gap: 8px; align-items: flex-start; font-size: 12px; margin-top: 14px; color: #475569; }
.co-cta { width: 100%; display: flex; align-items: center; justify-content: center; gap: 8px; background: var(--co-btn); color: var(--co-btn-text); border: 0; border-radius: calc(var(--co-radius) * .75); padding: 15px; font: inherit; font-weight: 800; font-size: 16px; cursor: pointer; margin-top: 12px; box-shadow: 0 10px 24px -12px var(--co-btn); transition: transform .1s, filter .15s; }
.co-cta:hover { filter: brightness(1.05); } .co-cta:active { transform: scale(.99); }
.co-fine { text-align: center; font-size: 11px; color: #64748b; margin: 8px 0 0; }
.co-badge { display: inline-flex; gap: 4px; align-items: center; background: #fee2e2; color: #b91c1c; border: 1px solid #fecaca; border-radius: 999px; padding: 2px 10px; font-size: 11px; font-weight: 800; letter-spacing: .03em; }
.co-sub { font-size: 13px; color: #475569; margin: 10px 0 0; }
.co-only-mobile { display: none; }
/* Modelo Oferta (referência) */
.co-ref { max-width: 1040px; margin: 0 auto; padding: 16px; }
.co-ref-grid { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 20px; align-items: start; } .co-ref-grid > * { min-width: 0; }
.co-ref-side { position: sticky; top: 16px; }
.co-prod { display: flex; gap: 14px; align-items: flex-start; } .co-prod img { width: 84px; height: 84px; border-radius: 12px; object-fit: cover; flex-shrink: 0; }
.co-prod h1 { font-size: 17px; margin: 0 0 6px; color: #0f172a; letter-spacing: .01em; }
.co-price strong { color: var(--co-primary); font-size: 22px; } .co-price s { color: #94a3b8; font-size: 13px; margin-left: 6px; }
.co-foot { display: flex; flex-direction: column; align-items: center; gap: 4px; margin-top: 20px; padding-top: 16px; border-top: 1px solid #eef0f3; font-size: 11px; color: #64748b; text-align: center; }
.co-foot img { max-height: 28px; max-width: 160px; object-fit: contain; } .co-foot span { display: inline-flex; gap: 4px; align-items: center; }
@media (max-width: 860px) { .co-ref-grid { grid-template-columns: minmax(0, 1fr); } .co-ref-side { display: none; } .co-only-mobile { display: block; } }
/* Modelo BecheX Alta Conversão */
.co-bx { max-width: 1120px; margin: 0 auto; padding: 16px 16px 96px; }
.co-bx-head { display: flex; justify-content: space-between; align-items: center; padding: 6px 2px 16px; font-size: 14px; font-weight: 700; }
.co-bx-brand { display: inline-flex; gap: 8px; align-items: center; } .co-bx-brand img { max-height: 30px; max-width: 150px; object-fit: contain; }
.co-bx-lock { display: inline-flex; gap: 6px; align-items: center; color: #047857; font-size: 13px; }
.co-bx-grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 22px; align-items: start; }
.co-bx-right { position: sticky; top: 16px; }
.co-hero { padding: 0; overflow: hidden; }
.co-hero-media { aspect-ratio: 16 / 9; background: linear-gradient(135deg, #0f172a, var(--co-primary)); display: flex; align-items: center; justify-content: center; position: relative; }
.co-hero-media img { width: 100%; height: 100%; object-fit: cover; } .co-hero-media iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; } .co-hero-media span { color: #fff; font-size: 56px; font-weight: 800; }
.co-hero-body { padding: 18px 20px 20px; } .co-hero-body h1 { font-size: 24px; margin: 8px 0 0; line-height: 1.2; color: #0f172a; }
.co-bx-price { display: flex; flex-direction: column; margin-top: 14px; } .co-bx-price s { color: #94a3b8; font-size: 14px; } .co-bx-price strong { font-size: 34px; color: var(--co-primary); line-height: 1.1; letter-spacing: -.02em; } .co-bx-price span { font-size: 12px; color: #64748b; }
.co-chips { list-style: none; padding: 0; margin: var(--co-gap) 0 0; display: flex; flex-wrap: wrap; gap: 8px; } .co-chips li { display: inline-flex; gap: 6px; align-items: center; background: #fff; border: 1px solid #e5e7eb; border-radius: 999px; padding: 6px 12px; font-size: 12px; font-weight: 600; color: #334155; } .co-chips .icon { color: var(--co-primary); }
.co-stepbar { list-style: none; display: flex; gap: 6px; padding: 0; margin: 0 0 6px; counter-reset: st; } .co-stepbar li { flex: 1; font-size: 11px; font-weight: 700; color: #94a3b8; border-top: 3px solid #e2e8f0; padding-top: 6px; } .co-stepbar li.on { color: var(--co-primary); border-color: var(--co-primary); }
.co-steps .co-section:first-of-type { border-top: 0; margin-top: 4px; padding-top: 4px; }
.co-sticky { display: none; }
@media (max-width: 900px) {
  .co-bx-grid { grid-template-columns: minmax(0, 1fr); } .co-bx-grid > * { min-width: 0; } .co-bx-right { position: static; }
  .co-sticky { display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 60; background: #fff; border-top: 1px solid #e5e7eb; padding: 10px 16px; gap: 12px; align-items: center; justify-content: space-between; box-shadow: 0 -10px 30px -20px rgb(15 23 42 / .5); }
  .co-sticky small { display: block; font-size: 11px; color: #64748b; } .co-sticky strong { font-size: 18px; color: #0f172a; }
  .co-cta-sm { width: auto; margin: 0; padding: 12px 18px; font-size: 15px; }
}
/* Editor de checkout */
.ed-wrap { display: grid; grid-template-columns: minmax(0, 440px) minmax(0, 1fr); gap: 18px; align-items: start; }
@media (max-width: 1100px) { .ed-wrap { grid-template-columns: 1fr; } }
.ed-form { display: grid; gap: 12px; } .ed-sec > summary { cursor: pointer; list-style: none; } .ed-sec > summary::-webkit-details-marker { display: none; }
.ed-models { display: grid; gap: 10px; }
.ed-model { display: grid; grid-template-columns: 70px 1fr; grid-template-rows: auto auto; column-gap: 12px; border: 2px solid var(--border); border-radius: 12px; padding: 10px; cursor: pointer; }
.ed-model input { position: absolute; opacity: 0; } .ed-model:has(input:checked) { border-color: rgb(var(--accent)); box-shadow: 0 0 0 3px rgb(var(--accent) / .15); }
.ed-model:has(input:focus-visible) { outline: 2px solid rgb(var(--accent)); }
.ed-model-art { grid-row: 1 / 3; height: 52px; border-radius: 8px; background: #f1f5f9; display: grid; gap: 3px; padding: 5px; }
.ed-model-art i { display: block; border-radius: 3px; background: #cbd5e1; }
.ed-art-classic { grid-template-columns: 1fr 1fr; } .ed-art-reference { grid-template-columns: 2fr 1fr; } .ed-art-reference i:first-child { background: #ef4444; grid-column: 1 / 3; height: 6px; }
.ed-art-bechex { grid-template-columns: 1fr 1fr; background: #0f172a; } .ed-art-bechex i { background: rgb(var(--lime)); opacity: .8; }
.ed-colors { display: flex; flex-wrap: wrap; gap: 10px; } .ed-color { display: flex; flex-direction: column; align-items: center; gap: 4px; font-size: 11px; color: var(--muted); }
.ed-color input { width: 42px; height: 34px; border: 1px solid var(--border); border-radius: 8px; padding: 2px; background: #fff; }
.ed-testi { display: grid; grid-template-columns: 160px 1fr; gap: 8px; margin-bottom: 8px; } @media (max-width: 560px) { .ed-testi { grid-template-columns: 1fr; } }
.ed-bar { position: sticky; bottom: 0; display: flex; gap: 8px; align-items: center; flex-wrap: wrap; padding: 12px; background: var(--surface, #fff); border: 1px solid var(--border); border-radius: 12px; box-shadow: 0 -8px 24px -18px rgb(15 23 42 / .5); z-index: 5; }
.ed-preview { position: sticky; top: 76px; }
.ed-pv-bar { display: flex; gap: 8px; align-items: center; justify-content: space-between; flex-wrap: wrap; margin-bottom: 10px; } .ed-devices { display: flex; gap: 6px; } .ed-devices .chip { display: inline-flex; gap: 6px; align-items: center; }
.ed-frame-wrap { position: relative; border: 1px solid var(--border); border-radius: 14px; overflow: hidden; background: #e2e8f0; height: calc(100vh - 170px); min-height: 520px; display: flex; justify-content: center; transition: background .2s; }
.ed-frame-wrap iframe { width: 100%; height: 100%; border: 0; background: #fff; transition: width .25s; }
.ed-frame-wrap.is-mobile { padding: 14px 0; } .ed-frame-wrap.is-mobile iframe { width: 390px; border-radius: 22px; box-shadow: 0 0 0 8px #0f172a; }
.ed-admin-model { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--border); }
.co-sec-head .co-num { color: #fff; font-size: 13px; }
/* Consentimento de cookies de anúncio e depuração de pixels */
.px-consent { position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 80; max-width: 560px; margin: 0 auto; background: #0f172a; color: #e2e8f0; border-radius: 14px; padding: 14px 16px; box-shadow: 0 16px 40px rgb(0 0 0 / .35); display: flex; gap: 12px; align-items: center; flex-wrap: wrap; font-size: 13px; }
.px-consent p { margin: 0; flex: 1; min-width: 220px; } .px-consent a { color: #86efac; } .px-consent > div { display: flex; gap: 8px; }
.px-accept { background: #22c55e; color: #052e16; border: 0; border-radius: 8px; padding: 8px 14px; font-weight: 700; cursor: pointer; }
.px-debug { position: fixed; right: 12px; top: 12px; z-index: 90; background: #111827; color: #a7f3d0; font: 12px ui-monospace, monospace; padding: 10px 12px; border-radius: 10px; max-width: 360px; max-height: 50vh; overflow: auto; }
.px-debug ol { margin: 6px 0 0; padding-left: 18px; }
.px-tile { width: 30px; height: 30px; border-radius: 8px; } .px-tile .icon { width: 16px; height: 16px; } .px-events { display: grid; gap: 2px; margin-bottom: 8px; }
/* BecheX claro: segue a lógica BecheX (menu preto, textos cinza, item ativo neon) com áreas de conteúdo claras. */
html[data-theme="neon-light"] .sidebar { background: #050605; color: #e8f5e9; border-right: 1px solid #1b261c; box-shadow: 8px 0 30px -24px rgb(var(--lime) / .6); }
html[data-theme="neon-light"] .sidebar .brand-area, html[data-theme="neon-light"] .nav-group { color: rgb(var(--lime)); }
html[data-theme="neon-light"] .nav a { color: #b7c4b9; }
html[data-theme="neon-light"] .nav a:hover { background: rgb(var(--lime) / .08); color: #fff; }
html[data-theme="neon-light"] .nav a.active { background: rgb(var(--lime) / .12); color: rgb(var(--lime)); box-shadow: inset 3px 0 0 rgb(var(--lime)); }
html[data-theme="neon-light"] .nav .count { background: rgb(var(--lime)); color: #000; }
html[data-theme="neon-light"] .sidebar .brand-logo { background: rgb(var(--lime)); color: #000; box-shadow: 0 0 14px rgb(var(--lime) / .45); }
html[data-theme="neon-light"] .page-header h1 { font-weight: 800; }
.theme-mini-neon-light .tm-side { background: #050605 !important; border-color: #1b261c !important; box-shadow: inset -2px 0 0 rgb(var(--lime)); }
/* Logos e imagens de prêmio com fundo transparente não recebem fundo colorido. */
.brand-logo:has(img), html[data-theme] .brand-logo:has(img), html[data-theme] .sidebar .brand-logo:has(img) { background: transparent !important; box-shadow: none !important; }
.goal-media:has(img), .rw-media:has(img), html[data-theme] .goal-media:has(img), html[data-theme] .rw-media:has(img) { background: transparent !important; }
.dash-banner { margin-bottom: 18px; border-radius: 14px; overflow: hidden; border: 1px solid var(--border, #e2e8f0); }
.dash-banner a, .dash-banner img { display: block; width: 100%; } .dash-banner img { height: auto; max-height: 340px; object-fit: cover; }
/* Logotipo no checkout: sempre sem caixa/fundo, respeitando a transparência da imagem. */
.co-cl-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin: 0 0 20px; font-weight: 700; color: rgb(var(--brand)); }
.co-cl-head span { display: inline-flex; gap: 6px; align-items: center; font-size: 13px; }
.co-logo, .co-foot img, .co-bx-brand img { background: transparent !important; border: 0; box-shadow: none; }
.co-logo { max-height: 34px; max-width: 170px; object-fit: contain; }
/* Checkout: depoimentos com foto e estrelas */
.co-testimonials { display: grid; gap: 12px; }
.co-testi { margin: 0; padding: 14px; border: 1px solid #e5e7eb; border-radius: calc(var(--co-radius, 12px) * .8); background: #fff; box-shadow: 0 1px 2px rgb(15 23 42 / .04); }
.co-testi-head { display: flex; gap: 10px; align-items: center; margin-bottom: 8px; }
.co-testi-ph { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; flex: none; background: #f1f5f9; }
.co-testi-ini { display: inline-flex; align-items: center; justify-content: center; font-weight: 800; color: #fff; background: var(--co-primary, #16a34a); }
.co-testi figcaption { font-weight: 700; font-size: 14px; color: #0f172a; }
.co-stars { display: inline-flex; gap: 1px; font-size: 14px; line-height: 1; } .co-stars i { font-style: normal; color: #d1d5db; } .co-stars i.on { color: #f59e0b; }
.co-testimonials .co-testi blockquote { margin: 0; padding: 0; border: 0; background: none; } .co-testi blockquote p { font-size: 14px; color: #334155; }
/* Selo das notificações ilustrativas */
.co-ill { display: block; margin-top: 4px; font-size: 10px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: #64748b; }
/* Texto de concordância (sem caixa de seleção) */
.co-legal { font-size: 12px; color: #64748b; text-align: center; margin: 10px 0 0; } .co-legal a { color: inherit; text-decoration: underline; }
/* Popup de saída */
.co-exit { border: 0; border-radius: 18px; padding: 28px 24px 20px; width: min(420px, calc(100vw - 32px)); text-align: center; box-shadow: 0 30px 80px rgb(15 23 42 / .35); color: #0f172a; font-family: var(--co-font, inherit); }
.co-exit::backdrop { background: rgb(15 23 42 / .55); backdrop-filter: blur(2px); }
.co-exit h2 { margin: 10px 0 6px; font-size: 21px; } .co-exit p { margin: 0 0 14px; color: #475569; font-size: 14px; }
.co-exit-ic { display: inline-flex; width: 52px; height: 52px; border-radius: 50%; align-items: center; justify-content: center; background: color-mix(in srgb, var(--co-primary, #16a34a) 14%, #fff); color: var(--co-primary, #16a34a); } .co-exit-ic .icon { width: 26px; height: 26px; }
.co-exit-code { display: flex; flex-direction: column; gap: 2px; border: 2px dashed var(--co-primary, #16a34a); border-radius: 12px; padding: 10px; margin-bottom: 14px; } .co-exit-code strong { font-size: 20px; letter-spacing: .08em; } .co-exit-code span { font-size: 12px; color: #475569; }
.co-exit .co-cta { width: 100%; }
.co-exit-x { position: absolute; right: 10px; top: 8px; border: 0; background: none; font-size: 24px; line-height: 1; cursor: pointer; color: #64748b; }
.co-exit-no { border: 0; background: none; color: #64748b; font-size: 13px; margin-top: 10px; cursor: pointer; text-decoration: underline; }
/* Acabamento geral dos checkouts */
.co-input:focus-within { border-color: var(--co-primary, #16a34a); box-shadow: 0 0 0 3px color-mix(in srgb, var(--co-primary, #16a34a) 18%, transparent); }
.co-method:has(input:checked) { box-shadow: 0 0 0 3px color-mix(in srgb, var(--co-primary, #16a34a) 15%, transparent); }
.co-cta { transition: transform .12s ease, filter .12s ease, box-shadow .12s ease; } .co-cta:hover { filter: brightness(1.05); transform: translateY(-1px); } .co-cta:active { transform: none; }
.co-salepop { display: flex; flex-direction: column; }
.ed-testi2 { display: flex; gap: 10px; padding: 10px; border: 1px solid var(--border); border-radius: 10px; margin-bottom: 8px; }
.ed-testi-ph { width: 48px; height: 48px; border-radius: 50%; overflow: hidden; flex: none; background: var(--surface-3, #f1f5f9); display: flex; align-items: center; justify-content: center; color: var(--muted); } .ed-testi-ph img { width: 100%; height: 100%; object-fit: cover; }
.ed-testi-fields { flex: 1; min-width: 0; display: grid; gap: 6px; } .ed-testi-row { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; } .ed-testi-row > .input:first-child { flex: 1; min-width: 140px; } .ed-testi-row select.input { width: auto; }
.theme-picker-2, .theme-picker-3 { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.theme-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; } .theme-pair > span { display: grid; gap: 4px; } .theme-pair small { font-size: 11px; color: var(--muted); text-align: center; }
.ed-bumps { list-style: none; margin: 0 0 10px; padding: 0; display: grid; gap: 8px; }
.ed-bumps li { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; border: 1px solid var(--border); border-radius: 10px; padding: 10px 12px; }
.ed-bumps li.is-off { opacity: .7; } .ed-bump-main { display: grid; gap: 2px; min-width: 0; } .ed-bump-act { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }
.offer-card { margin-top: 16px; text-align: center; border: 2px solid rgb(var(--gold)); }
.offer-kicker { display: inline-block; font-size: 12px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: rgb(var(--accent-ink, var(--accent))); }
.offer-cover { width: 100%; max-height: 220px; object-fit: cover; border-radius: 12px; margin: 10px 0; }
.offer-no { display: block; margin: 10px auto 0; background: none; border: 0; color: var(--muted); text-decoration: underline; cursor: pointer; font-size: 13px; }
.co-powered { display: inline-flex; align-items: center; gap: 6px; font-size: 11px; color: #64748b; } .co-powered img { max-height: 18px; max-width: 110px; object-fit: contain; background: transparent !important; }
/* ================================================================ Área de Membros */
/* Editor de aulas */
.rte { border: 1px solid var(--border); border-radius: 10px; overflow: hidden; }
.rte-bar { display: flex; flex-wrap: wrap; gap: 2px; padding: 6px; background: var(--surface-2, #f8fafc); border-bottom: 1px solid var(--border); }
.rte-bar button { border: 1px solid transparent; background: transparent; color: var(--text); border-radius: 6px; padding: 4px 8px; font-size: 12px; cursor: pointer; }
.rte-bar button:hover { background: var(--surface-3, #eef2f7); border-color: var(--border); }
.rte-area { min-height: 120px; border: 0 !important; border-radius: 0 !important; line-height: 1.6; }
.rte-area:focus { outline: 2px solid rgb(var(--accent) / .3); outline-offset: -2px; }
.rte-area h2, .cp-rich h2 { font-size: 18px; margin: 12px 0 6px; } .rte-area h3, .cp-rich h3 { font-size: 15px; margin: 10px 0 4px; }
.rte-area blockquote, .cp-rich blockquote { border-left: 3px solid rgb(var(--accent)); margin: 8px 0; padding: 4px 12px; color: var(--muted); }
.link-row { display: grid; grid-template-columns: 1fr 1.4fr 110px; gap: 6px; margin-bottom: 6px; } @media (max-width: 640px) { .link-row { grid-template-columns: 1fr; } }
.dnd-handle { cursor: grab; color: var(--muted); user-select: none; padding: 0 4px; font-size: 16px; }
.dnd-module.is-dragging, .dnd-lesson.is-dragging { opacity: .5; outline: 2px dashed rgb(var(--accent)); }
/* Painel do infoprodutor */
.mb-courses { display: grid; gap: 14px; }
.mb-course { display: grid; grid-template-columns: 220px 1fr; gap: 16px; border: 1px solid var(--border); border-radius: 14px; background: var(--surface, #fff); overflow: hidden; }
.mb-cover { display: block; aspect-ratio: 16/9; background: linear-gradient(135deg, rgb(var(--brand)), rgb(var(--accent))); } .mb-cover img { width: 100%; height: 100%; object-fit: cover; } .mb-cover span { display: flex; height: 100%; align-items: center; justify-content: center; font-size: 40px; font-weight: 800; color: #fff; }
.mb-body { padding: 14px 14px 14px 0; display: grid; gap: 6px; align-content: start; } .mb-body h3 { margin: 0; } .mb-tags { display: flex; gap: 6px; flex-wrap: wrap; }
@media (max-width: 720px) { .mb-course { grid-template-columns: 1fr; } .mb-body { padding: 0 14px 14px; } }
/* Catálogo do aluno (estilo streaming) */
.nx { --nx-gap: 14px; }
.nx-hello { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 14px; } .nx-hello h1 { margin: 0; }
.nx-stats { display: flex; gap: 14px; flex-wrap: wrap; font-size: 13px; color: var(--muted); } .nx-stats span { display: inline-flex; gap: 6px; align-items: center; }
.nx-hero { position: relative; border-radius: 18px; overflow: hidden; min-height: 300px; display: flex; align-items: flex-end; margin-bottom: 22px; color: #fff;
  background: linear-gradient(90deg, rgb(3 7 18 / .92) 0%, rgb(3 7 18 / .65) 45%, rgb(3 7 18 / .15) 100%), var(--nx-bg, linear-gradient(135deg, rgb(var(--brand)), rgb(var(--accent)))) center / cover no-repeat; animation: nx-fade .5s ease both; }
.nx-hero-in { padding: 32px; max-width: 640px; display: grid; gap: 10px; }
.nx-hero h1 { margin: 0; font-size: clamp(24px, 4vw, 40px); line-height: 1.1; color: #fff; }
.nx-kicker { font-size: 12px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: rgb(var(--gold)); }
.nx-hero-sub { margin: 0; color: #e2e8f0; } .nx-hero-prog { display: grid; gap: 4px; max-width: 360px; } .nx-hero-prog small { color: #cbd5e1; }
.nx-cta { justify-self: start; padding: 12px 22px; font-size: 15px; }
.nx-bar { display: block; height: 5px; border-radius: 99px; background: rgb(148 163 184 / .35); overflow: hidden; } .nx-bar i { display: block; height: 100%; background: rgb(var(--accent)); border-radius: 99px; }
.nx-search { display: flex; gap: 8px; align-items: center; max-width: 420px; margin: 0 0 16px; } .nx-search .icon { color: var(--muted); }
.nx-row { margin-bottom: 26px; animation: nx-fade .4s ease both; }
.nx-row-head { display: flex; align-items: center; gap: 12px; margin-bottom: 10px; } .nx-row-head h2 { margin: 0; font-size: 19px; } .nx-row-head a { font-size: 13px; } .nx-arrows { margin-left: auto; display: flex; gap: 4px; }
.nx-track { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(240px, 280px); gap: var(--nx-gap); overflow-x: auto; scroll-snap-type: x mandatory; padding: 4px 2px 12px; scrollbar-width: thin; }
.nx-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: var(--nx-gap); }
.nx-tile { scroll-snap-align: start; display: flex; flex-direction: column; border-radius: 14px; overflow: hidden; background: var(--surface, #fff); border: 1px solid var(--border); color: inherit; text-decoration: none;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease; }
.nx-tile:hover, .nx-tile:focus-within { transform: translateY(-4px) scale(1.02); box-shadow: 0 18px 40px -18px rgb(2 6 23 / .55); border-color: rgb(var(--accent) / .6); }
.nx-img { position: relative; display: block; aspect-ratio: 16/9; background: linear-gradient(135deg, rgb(var(--brand)), rgb(var(--accent))); overflow: hidden; }
.nx-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s ease; } .nx-tile:hover .nx-img img { transform: scale(1.06); }
.nx-ph { display: flex; height: 100%; align-items: center; justify-content: center; font-size: 42px; font-weight: 800; color: #fff; }
.nx-badge { position: absolute; left: 8px; top: 8px; background: rgb(var(--accent)); color: #fff; font-size: 11px; font-weight: 800; padding: 3px 8px; border-radius: 99px; } .nx-badge-off { background: #64748b; }
.nx-lock { position: absolute; right: 8px; top: 8px; background: rgb(2 6 23 / .65); color: #fff; border-radius: 99px; padding: 5px; display: flex; } .nx-lock .icon { width: 14px; height: 14px; }
.nx-meta { padding: 10px 12px 12px; display: grid; gap: 4px; } .nx-meta strong { font-size: 14px; line-height: 1.3; } .nx-meta small { color: var(--muted); font-size: 12px; }
.nx-desc { font-size: 12px; color: var(--muted); } .nx-price { font-weight: 800; font-size: 15px; } .nx-price s { color: var(--muted); font-weight: 500; font-size: 12px; } .nx-price-lg { font-size: 26px; margin: 0; color: #fff; }
.nx-actions { display: flex; gap: 6px; margin-top: 4px; flex-wrap: wrap; }
.nx-promo { width: 100%; border-radius: 12px; margin-bottom: 12px; } .nx-modules { padding-left: 18px; margin: 0; display: grid; gap: 8px; } .nx-modules li span { display: block; }
@keyframes nx-fade { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .nx-hero, .nx-row { animation: none; } .nx-tile, .nx-img img { transition: none; } }
@media (max-width: 640px) { .nx-hero { min-height: 240px; } .nx-hero-in { padding: 20px; } .nx-track { grid-auto-columns: 78%; } .nx-arrows { display: none; } }
/* Player do curso */
.cp-top { display: flex; justify-content: space-between; align-items: flex-end; gap: 14px; flex-wrap: wrap; padding: 18px 20px; margin-bottom: 16px; border-radius: 16px; color: #fff;
  background: linear-gradient(90deg, rgb(3 7 18 / .9), rgb(3 7 18 / .55)), var(--cp-banner, linear-gradient(135deg, rgb(var(--brand)), rgb(var(--accent)))) center / cover; }
.cp-back { color: #cbd5e1; font-size: 13px; } .cp-course { margin: 4px 0 2px; color: #fff; } .cp-by { font-size: 13px; color: #cbd5e1; }
.cp-prog { display: grid; gap: 4px; min-width: 220px; font-size: 13px; color: #e2e8f0; } .cp-prog .bar { background: rgb(255 255 255 / .2); }
.course.cp { grid-template-columns: minmax(0, 1fr) 340px; }
@media (max-width: 1023px) { .course.cp { grid-template-columns: 1fr; } }
.cp-stage { position: relative; background: #000; user-select: none; -webkit-user-select: none; }
.cp-stage .player { display: block; width: 100%; aspect-ratio: 16/9; height: auto; background: #000; }
.cp-wm { position: absolute; z-index: 5; pointer-events: none; color: rgb(255 255 255 / .38); font-size: clamp(11px, 1.4vw, 15px); font-weight: 700; text-shadow: 0 1px 2px rgb(0 0 0 / .6); white-space: nowrap; transition: left 1.2s ease, top 1.2s ease; }
.cp-tools { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; padding: 8px 16px; border-bottom: 1px solid var(--border); } .cp-tools .input-sm { padding: 4px 8px; width: auto; display: inline-block; }
.cp-rich { line-height: 1.7; margin: 10px 0; } .cp-rich a { text-decoration: underline; }
.cp-gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 8px; margin: 12px 0; } .cp-gallery img { width: 100%; border-radius: 10px; aspect-ratio: 4/3; object-fit: cover; }
.cp-links { display: flex; gap: 8px; flex-wrap: wrap; margin: 12px 0; } .cp-link { display: inline-flex; gap: 6px; align-items: center; }
.cp-file { display: flex; gap: 10px; align-items: center; padding: 12px; margin-bottom: 8px; }
.cp-mod { border-top: 1px solid var(--border); padding: 8px 0; } .cp-mod summary { display: flex; justify-content: space-between; gap: 8px; cursor: pointer; font-weight: 700; font-size: 13px; padding: 4px 0; list-style: none; }
.cp-mod summary::-webkit-details-marker { display: none; } .cp-mod summary small { color: var(--muted); font-weight: 600; } .cp-min { margin-left: auto; color: var(--muted); font-size: 11px; }
/* Certificados */
.cert-thumb { width: 100%; border-radius: 10px; border: 1px solid var(--border); margin: 10px 0; aspect-ratio: 3508 / 2480; object-fit: cover; background: #f8fafc; }
.cert-verify { max-width: 620px; text-align: center; } .cv-badge { display: inline-flex; gap: 8px; align-items: center; font-weight: 800; font-size: 18px; padding: 10px 16px; border-radius: 99px; margin-bottom: 8px; }
.cv-green { background: #dcfce7; color: #14532d; } .cv-red { background: #fee2e2; color: #7f1d1d; }
.cv-data { display: grid; grid-template-columns: max-content 1fr; gap: 8px 16px; text-align: left; margin: 18px auto; max-width: 460px; } .cv-data dt { color: var(--muted); font-weight: 600; } .cv-data dd { margin: 0; font-weight: 600; }
.ce { display: grid; grid-template-columns: 380px minmax(0, 1fr); gap: 16px; align-items: start; } @media (max-width: 1100px) { .ce { grid-template-columns: 1fr; } }
.ce-main { position: sticky; top: 12px; }
.ce-canvas { position: relative; width: 100%; aspect-ratio: 3508 / 2480; container-type: size; background: #fdfbf5 center / cover no-repeat; border-radius: 6px; box-shadow: 0 10px 30px -12px rgb(2 6 23 / .45); overflow: hidden; touch-action: none; }
.ce-default { box-shadow: inset 0 0 0 1.6cqw #fdfbf5, inset 0 0 0 2.2cqw #1a1410, inset 0 0 0 3.6cqw #fdfbf5, inset 0 0 0 3.8cqw #b8892b, 0 10px 30px -12px rgb(2 6 23 / .45); }
.ce-el { position: absolute; transform: translate(-50%, -50%); white-space: nowrap; cursor: move; font-size: calc(var(--s, 20) * 0.1cqh); line-height: 1.15; padding: 0 2px; border: 1px dashed transparent; user-select: none; }
.ce-el:hover, .ce-el.is-sel { border-color: rgb(var(--accent)); background: rgb(var(--accent) / .06); } .ce-el.is-off { opacity: .25; }
.ce-image img, .ce-qr svg { display: block; height: calc(var(--s, 100) * 0.1cqh); width: auto; } .ce-qr svg { width: calc(var(--s, 100) * 0.1cqh); }
.ce-ph { font-size: 2cqh; color: #94a3b8; border: 1px dashed #94a3b8; padding: 1cqh 2cqh; font-family: system-ui; }
.ce-preview { margin-top: 12px; } .ce-preview-head { display: flex; flex-wrap: wrap; gap: 4px 10px; align-items: baseline; margin-bottom: 6px; } .ce-preview img { width: 100%; border-radius: 6px; border: 1px solid var(--border); }
/* Rodapé dos checkouts: logotipo centralizado (definido pelo administrador), selo e links */
.co-foot.co-foot-brand { display: flex; flex-direction: column; align-items: center; gap: 8px; margin-top: 22px; padding-top: 20px; border-top: 1px solid #e8ecf1; text-align: center; font-size: 12px; color: #64748b; }
.co-foot-logo { max-height: 46px; max-width: 220px; width: auto; height: auto; object-fit: contain; background: transparent !important; margin-bottom: 4px; }
.co-foot-name { font-size: 16px; color: #0f172a; }
.co-foot-safe { display: inline-flex; gap: 6px; align-items: center; font-size: 14px; color: #475569; font-weight: 500; } .co-foot-safe .icon { width: 16px; height: 16px; }
.co-foot-brand a { color: inherit; text-decoration: underline; }
.co-cl-head, .co-bx-head { justify-content: flex-end; }
input[type="file"] { max-width: 100%; }
.mb-imgs { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 12px; }
.mb-img { min-width: 0; border: 1px solid var(--border); border-radius: 12px; padding: 12px; display: grid; gap: 8px; align-content: start; overflow: hidden; }
.mb-img .hint { margin: 0; overflow-wrap: anywhere; }
.mb-img-pv { width: 100%; border-radius: 8px; overflow: hidden; background: var(--surface-3, #eef2f7); display: flex; align-items: center; justify-content: center; color: var(--muted); font-size: 12px; }
.mb-img-pv img { width: 100%; height: 100%; object-fit: cover; } .mb-img-pv span { display: inline-flex; gap: 6px; align-items: center; }
.mb-img input[type="file"] { width: 100%; font-size: 12px; }
.switch-row > span { min-width: 0; overflow-wrap: anywhere; }
/* ================================================================ Área do aluno (layout próprio estilo streaming) */
html[data-mx="dark"] body.mx { --mx-bg: #0b0b0d; --mx-side: #0f0f12; --mx-surface: #16161a; --mx-surface-2: #1d1d22; --mx-border: #2a2a31; --mx-text: #f4f4f5; --mx-muted: #a1a1aa; --mx-gold: #fbbf24; color-scheme: dark; }
html[data-mx="light"] body.mx { --mx-bg: #f5f5f7; --mx-side: #ffffff; --mx-surface: #ffffff; --mx-surface-2: #f1f1f4; --mx-border: #e4e4e7; --mx-text: #18181b; --mx-muted: #52525b; --mx-gold: #b45309; color-scheme: light; }
body.mx { margin: 0; background: var(--mx-bg); color: var(--mx-text); --bg: var(--mx-bg); --surface: var(--mx-surface); --surface-2: var(--mx-surface-2); --surface-3: var(--mx-surface-2); --border: var(--mx-border); --text: var(--mx-text); --muted: var(--mx-muted); --heading: var(--mx-text); --accent: var(--mx-accent-rgb); --accent-ink: var(--mx-accent-rgb); }
body.mx a { color: inherit; }
body.mx :is(.card, .empty) { background: var(--mx-surface); border-color: var(--mx-border); color: var(--mx-text); box-shadow: none; }
body.mx :is(h1, h2, h3, .stat-value) { color: var(--mx-text); }
body.mx :is(.input, select.input, textarea.input) { background: var(--mx-surface-2); border-color: var(--mx-border); color: var(--mx-text); }
body.mx .table th { background: var(--mx-surface-2); color: var(--mx-muted); } body.mx :is(.table td, .list li, .card-head) { border-color: var(--mx-border); }
body.mx .btn-primary { background: var(--mx-accent); border-color: var(--mx-accent); color: #fff; } body.mx .btn-outline { background: transparent; border-color: var(--mx-border); color: var(--mx-text); }
body.mx .btn-gold { background: var(--mx-accent); color: #fff; }
body.mx :is(.sub, .muted, .hint, .stat-hint) { color: var(--mx-muted); }
.mx-side { position: fixed; inset: 0 auto 0 0; width: 248px; background: var(--mx-side); border-right: 1px solid var(--mx-border); display: flex; flex-direction: column; gap: 14px; padding: 22px 16px; overflow-y: auto; z-index: 40; }
.mx-brand { display: grid; justify-items: center; gap: 4px; text-decoration: none; padding: 4px 0 10px; text-align: center; }
.mx-brand img { max-width: 170px; max-height: 56px; object-fit: contain; background: transparent; } .mx-brand strong { font-size: 24px; font-weight: 900; letter-spacing: -.02em; } .mx-brand span { font-size: 15px; color: var(--mx-muted); font-weight: 600; }
.mx-nav { display: grid; gap: 4px; } .mx-nav-sec { margin: 12px 0 2px 12px; font-size: 11px; font-weight: 800; letter-spacing: .1em; color: var(--mx-muted); }
.mx-nav a, .mx-nav button { display: flex; align-items: center; gap: 14px; padding: 11px 14px; border-radius: 12px; font-size: 15px; color: var(--mx-text); text-decoration: none; background: none; border: 0; width: 100%; cursor: pointer; font: inherit; text-align: left; transition: background .15s, transform .15s; }
.mx-nav .icon { width: 22px; height: 22px; flex: none; }
.mx-nav a:hover, .mx-nav button:hover { background: var(--mx-surface-2); }
.mx-nav a.active { background: linear-gradient(90deg, var(--mx-accent), rgb(var(--mx-accent-rgb) / .75)); color: #fff; font-weight: 700; box-shadow: 0 10px 24px -12px rgb(var(--mx-accent-rgb) / .9); }
.mx-cheer { margin-top: auto; border: 1px solid rgb(251 191 36 / .45); border-radius: 14px; padding: 16px; text-align: center; display: grid; gap: 6px; font-size: 13px; color: var(--mx-muted); background: linear-gradient(180deg, rgb(251 191 36 / .08), transparent); }
.mx-cheer strong { color: var(--mx-gold); font-size: 16px; } .mx-cheer-ic .icon { width: 34px; height: 34px; color: var(--mx-gold); }
.mx-wrap { margin-left: 248px; min-height: 100vh; }
.mx-top { position: sticky; top: 0; z-index: 30; display: flex; align-items: center; gap: 14px; padding: 14px 28px; background: rgb(from var(--mx-bg) r g b / .88); backdrop-filter: blur(10px); border-bottom: 1px solid var(--mx-border); }
@supports not (color: rgb(from red r g b)) { .mx-top { background: var(--mx-bg); } }
.mx-burger { display: none; background: none; border: 0; color: var(--mx-text); cursor: pointer; padding: 6px; }
.mx-search { flex: 1; max-width: 820px; display: flex; align-items: center; gap: 10px; background: var(--mx-surface-2); border: 1px solid var(--mx-border); border-radius: 14px; padding: 0 16px; }
.mx-search .icon { color: var(--mx-muted); width: 20px; height: 20px; } .mx-search input { flex: 1; min-width: 0; border: 0; outline: 0; background: transparent; color: var(--mx-text); padding: 12px 0; font: inherit; font-size: 15px; }
.mx-actions { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.mx-icon { position: relative; display: inline-flex; align-items: center; justify-content: center; width: 42px; height: 42px; border-radius: 50%; color: var(--mx-text); background: none; border: 0; cursor: pointer; } .mx-icon:hover { background: var(--mx-surface-2); } .mx-icon .icon { width: 22px; height: 22px; }
.mx-dot { position: absolute; top: 2px; right: 0; min-width: 18px; height: 18px; border-radius: 99px; background: var(--mx-accent); color: #fff; font-size: 11px; font-weight: 800; display: flex; align-items: center; justify-content: center; padding: 0 4px; }
html[data-mx="dark"] .mx-when-light, html[data-mx="light"] .mx-when-dark { display: none; }
.mx-user { display: flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 700; } .mx-avatar { width: 40px; height: 40px; border-radius: 50%; background: var(--mx-accent); color: #fff; display: flex; align-items: center; justify-content: center; font-weight: 800; }
.mx-preview-bar { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; margin: 14px 28px 0; padding: 10px 14px; border-radius: 12px; background: rgb(251 191 36 / .14); color: var(--mx-text); font-size: 13px; border: 1px solid rgb(251 191 36 / .4); } .mx-preview-bar a { text-decoration: underline; font-weight: 700; }
.mx-main { padding: 24px 28px 48px; max-width: 1500px; }
.mx-overlay { display: none; }
@media (max-width: 1023px) {
  .mx-side { transform: translateX(-100%); transition: transform .25s; width: 280px; max-width: 86%; } body.mx-open .mx-side { transform: none; }
  body.mx-open .mx-overlay { display: block; position: fixed; inset: 0; background: rgb(0 0 0 / .55); z-index: 35; }
  .mx-wrap { margin-left: 0; } .mx-burger { display: inline-flex; } .mx-top { padding: 10px 14px; gap: 8px; } .mx-main { padding: 16px 14px 40px; } .mx-preview-bar { margin: 10px 14px 0; }
  .mx-user span:last-child { display: none; }
}
@media (max-width: 560px) { .mx-search input::placeholder { font-size: 13px; } .mx-icon { width: 36px; height: 36px; } }
/* Destaque */
.mx-hero { position: relative; border-radius: 20px; overflow: hidden; min-height: 400px; margin-bottom: 30px; background: #000; color: #fff; display: block; animation: none; }
.mx-slide { position: absolute; inset: 0; display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 24px; align-items: center; padding: 36px 40px 56px; opacity: 0; visibility: hidden; transition: opacity .6s ease, visibility .6s;
  background: linear-gradient(90deg, rgb(0 0 0 / .92) 0%, rgb(0 0 0 / .72) 42%, rgb(0 0 0 / .2) 75%, rgb(0 0 0 / .55) 100%), var(--mx-bg, linear-gradient(120deg, #1a1a1f, rgb(var(--mx-accent-rgb) / .55))) center / cover no-repeat; }
.mx-slide.is-on { position: relative; opacity: 1; visibility: visible; min-height: 400px; }
.mx-slide-in { display: grid; gap: 14px; max-width: 620px; justify-items: start; }
.mx-pill { display: inline-flex; align-items: center; gap: 8px; background: var(--mx-accent); color: #fff; font-weight: 700; font-size: 14px; padding: 7px 14px; border-radius: 10px; } .mx-pill .icon { width: 16px; height: 16px; fill: #fff; }
.mx-hero h1 { margin: 0; font-size: clamp(30px, 4.2vw, 54px); line-height: 1.04; font-weight: 900; letter-spacing: -.02em; color: #fff; } .mx-hero h1 em { font-style: normal; color: #fbbf24; }
.mx-hero-desc { margin: 0; font-size: 17px; line-height: 1.5; color: #e4e4e7; max-width: 560px; }
.mx-hero-btns { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; margin-top: 6px; } .mx-hero-btns form { margin: 0; }
.mx-btn { display: inline-flex; align-items: center; gap: 8px; background: var(--mx-accent); color: #fff !important; border: 0; border-radius: 12px; padding: 11px 18px; font-weight: 700; font-size: 14px; text-decoration: none; cursor: pointer; box-shadow: 0 12px 28px -14px rgb(var(--mx-accent-rgb)); transition: transform .15s, filter .15s; }
.mx-btn:hover { transform: translateY(-1px); filter: brightness(1.08); } .mx-btn .icon { width: 18px; height: 18px; fill: currentColor; }
.mx-btn-lg { padding: 14px 24px; font-size: 18px; } .mx-btn-sm { padding: 7px 12px; font-size: 13px; border-radius: 10px; }
.mx-btn-ghost { display: inline-flex; align-items: center; gap: 8px; background: transparent; color: inherit; border: 1.5px solid currentColor; border-radius: 12px; padding: 11px 18px; font-weight: 600; font-size: 14px; cursor: pointer; text-decoration: none; opacity: .92; }
.mx-hero .mx-btn-ghost { color: #fff; border-color: rgb(255 255 255 / .7); } .mx-btn-ghost.mx-btn-sm { padding: 6px 12px; font-size: 13px; border-width: 1px; }
.mx-prog-card { justify-self: end; width: 100%; max-width: 300px; background: rgb(15 15 18 / .82); border: 1px solid rgb(255 255 255 / .12); border-radius: 18px; padding: 22px; display: grid; gap: 14px; backdrop-filter: blur(6px); }
.mx-prog-card > strong { font-size: 19px; }
.mx-ring { --p: 0; width: 132px; height: 132px; border-radius: 50%; margin: 0 auto; display: grid; place-items: center; background: conic-gradient(#22c55e calc(var(--p) * 1%), rgb(255 255 255 / .12) 0); }
.mx-ring span { width: 104px; height: 104px; border-radius: 50%; background: #121216; display: grid; place-items: center; font-size: 30px; font-weight: 900; }
.mx-prog-card ul { list-style: none; margin: 0; padding: 12px 0 0; border-top: 1px solid rgb(255 255 255 / .12); display: grid; gap: 8px; font-size: 13px; }
.mx-prog-card li { display: flex; gap: 8px; align-items: center; color: #e4e4e7; } .mx-prog-card li .icon { width: 18px; height: 18px; flex: none; color: #a1a1aa; } .mx-prog-card li.done .icon { color: #fff; background: #22c55e; border-radius: 50%; padding: 2px; }
.mx-prog-card li span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mx-dots { position: absolute; left: 40px; bottom: 20px; display: flex; gap: 8px; z-index: 2; }
.mx-dots button { width: 10px; height: 10px; border-radius: 99px; border: 0; background: rgb(255 255 255 / .45); cursor: pointer; padding: 0; transition: width .25s, background .25s; } .mx-dots button.is-on { width: 22px; background: var(--mx-accent); }
.mx-muted { color: var(--mx-muted); margin: 0; } .mx-hero .mx-muted { color: #d4d4d8; }
@media (max-width: 900px) { .mx-slide { grid-template-columns: 1fr; padding: 26px 20px 50px; } .mx-prog-card { justify-self: start; max-width: none; grid-template-columns: auto 1fr; align-items: center; } .mx-prog-card > strong { grid-column: 1 / -1; } .mx-ring { width: 96px; height: 96px; margin: 0; } .mx-ring span { width: 76px; height: 76px; font-size: 22px; } .mx-prog-card ul { grid-column: 1 / -1; } .mx-hero-desc { font-size: 15px; } .mx-dots { left: 20px; } }
/* Seções e cartões */
.mx-sec { margin-bottom: 32px; }
.mx-sec-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.mx-sec-head h2, .mx-h1 { margin: 0; font-size: 24px; font-weight: 800; padding-left: 14px; border-left: 5px solid var(--mx-accent); line-height: 1.1; }
.mx-sec-head a { display: inline-flex; align-items: center; gap: 6px; color: var(--mx-accent) !important; font-weight: 700; font-size: 14px; text-decoration: none; } .mx-sec-head a .icon { width: 16px; height: 16px; }
.mx-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 18px; }
.mx-card { display: flex; flex-direction: column; border-radius: 14px; overflow: hidden; background: var(--mx-surface); border: 1px solid var(--mx-border); text-decoration: none; transition: transform .2s ease, box-shadow .2s ease, border-color .2s; }
.mx-card:hover, .mx-card:focus-within { transform: translateY(-4px); border-color: rgb(var(--mx-accent-rgb) / .6); box-shadow: 0 22px 44px -22px rgb(0 0 0 / .7); }
.mx-card-img { position: relative; display: block; aspect-ratio: 16/10; overflow: hidden; background: linear-gradient(135deg, #26262c, rgb(var(--mx-accent-rgb) / .55)); }
.mx-card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; } .mx-card:hover .mx-card-img img { transform: scale(1.06); }
.mx-card-img::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 35%, rgb(0 0 0 / .85)); pointer-events: none; }
.mx-play { position: absolute; left: 50%; top: 42%; transform: translate(-50%, -50%); width: 54px; height: 54px; border-radius: 50%; background: rgb(0 0 0 / .45); border: 2px solid #fff; display: grid; place-items: center; z-index: 1; transition: transform .2s, background .2s; }
.mx-play .icon { width: 22px; height: 22px; fill: #fff; color: #fff; margin-left: 3px; } .mx-card:hover .mx-play { transform: translate(-50%, -50%) scale(1.1); background: var(--mx-accent); }
.mx-card-cap { position: absolute; left: 14px; right: 14px; bottom: 12px; z-index: 1; display: grid; gap: 2px; color: #fff; }
.mx-card-cap strong { font-size: 18px; line-height: 1.2; text-shadow: 0 2px 6px rgb(0 0 0 / .6); } .mx-card-cap small { color: #e4e4e7; font-size: 13px; }
.mx-pct b { font-weight: 900; } .mx-good b, .mx-done b { color: #4ade80; } .mx-mid b { color: #fbbf24; } .mx-zero b { color: #fff; }
.mx-card-bar { display: block; height: 6px; background: rgb(127 127 127 / .25); margin: 10px 14px 14px; border-radius: 99px; overflow: hidden; } .mx-card-bar i { display: block; height: 100%; border-radius: 99px; background: #a1a1aa; }
.mx-card-bar.mx-good i, .mx-card-bar.mx-done i { background: #22c55e; } .mx-card-bar.mx-mid i { background: #f59e0b; }
.mx-card .nx-badge { z-index: 2; } .mx-shop .nx-meta { padding: 12px 14px 14px; }
.mx-continue { display: grid; grid-template-columns: 220px minmax(0, 1fr) minmax(0, 360px); gap: 20px; align-items: center; background: var(--mx-surface); border: 1px solid var(--mx-border); border-radius: 16px; overflow: hidden; }
.mx-continue-img { position: relative; display: block; height: 100%; min-height: 130px; background: linear-gradient(135deg, #26262c, rgb(var(--mx-accent-rgb) / .5)); } .mx-continue-img img { width: 100%; height: 100%; object-fit: cover; position: absolute; inset: 0; } .mx-continue-img .mx-play { top: 50%; }
.mx-continue-body { display: grid; gap: 8px; justify-items: start; padding: 16px 0; } .mx-continue-body strong { font-size: 19px; }
.mx-cert { display: flex; gap: 14px; align-items: center; padding: 16px 20px; border-left: 1px solid var(--mx-border); height: 100%; } .mx-cert strong { color: var(--mx-gold); font-size: 17px; } .mx-cert p { margin: 4px 0 10px; font-size: 14px; }
.mx-cert-ic .icon { width: 40px; height: 40px; color: var(--mx-gold); }
@media (max-width: 1100px) { .mx-continue { grid-template-columns: 180px 1fr; } .mx-cert { grid-column: 1 / -1; border-left: 0; border-top: 1px solid var(--mx-border); } }
@media (max-width: 640px) { .mx-continue { grid-template-columns: 1fr; } .mx-continue-img { min-height: 160px; } .mx-continue-body { padding: 0 16px; } .mx-grid { grid-template-columns: 1fr 1fr; gap: 12px; } .mx-card-cap strong { font-size: 14px; } .mx-play { width: 42px; height: 42px; } .mx-sec-head h2 { font-size: 20px; } }
@media (max-width: 380px) { .mx-grid { grid-template-columns: 1fr; } }
.mx-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; } .mx-list a { display: flex; gap: 12px; align-items: center; padding: 12px 14px; background: var(--mx-surface); border: 1px solid var(--mx-border); border-radius: 12px; text-decoration: none; }
.mx-list small { display: block; color: var(--mx-muted); } .mx-list .icon { color: var(--mx-accent); fill: var(--mx-accent); }
body.mx .school-hero { margin-bottom: 20px; }
body.mx .cp-top { border-radius: 18px; }
body.mx .lesson-link.active { background: rgb(var(--mx-accent-rgb) / .14); color: var(--mx-text); box-shadow: inset 3px 0 0 var(--mx-accent); }
body.mx .bar > span { background: var(--mx-accent); }
@media (prefers-reduced-motion: reduce) { .mx-slide, .mx-card, .mx-card-img img { transition: none; } }
.mx-search { min-width: 0; } .mx-search input { width: 100%; } .mx-actions { flex: none; }
@media (max-width: 560px) { .mx-actions { gap: 2px; } .mx-top { gap: 6px; } .mx-search { padding: 0 10px; } }
@media (max-width: 560px) { .mx-grid { grid-template-columns: 1fr; } .mx-card-cap strong { font-size: 17px; } }
.mx-card .nx-ph { display: none; }
.pix-box { display: grid; gap: 10px; justify-items: center; margin: 16px auto; max-width: 420px; } .pix-qr svg { display: block; border-radius: 10px; border: 1px solid var(--border); }
.pix-copy { display: flex; gap: 8px; width: 100%; } .pix-copy .input { flex: 1; min-width: 0; font-family: ui-monospace, monospace; font-size: 12px; }

/* Gateways, comprovantes e simulação */
.gw-head{display:flex;align-items:center;justify-content:space-between;gap:8px;margin-bottom:6px}
.gw-head h2{margin:0;font-size:1.05rem}
.text-red{color:#dc2626}
.receipt{max-width:640px;margin:32px auto;padding:28px;background:var(--card,#fff);color:var(--text,#111);border:1px solid var(--border,#e5e7eb);border-radius:14px}
.receipt-top{display:flex;justify-content:space-between;align-items:center;gap:12px;border-bottom:1px solid var(--border,#e5e7eb);padding-bottom:12px;margin-bottom:16px}
.receipt-top strong{font-size:1.2rem}
.split-sim{display:grid;gap:6px}
.split-sim div{display:flex;justify-content:space-between;gap:8px;font-size:.92rem}
@media (max-width:560px){.receipt{margin:12px;padding:18px}}
@media print{.no-print,.flashes{display:none!important}.receipt{border:0;margin:0;max-width:none}}

/* Página de pagamento PIX */
.order-card{display:flex;flex-direction:column;align-items:center;gap:6px}
.order-logo{max-height:40px;max-width:180px;object-fit:contain;margin-bottom:6px}
.order-cover{width:88px;height:88px;border-radius:14px;object-fit:cover;box-shadow:0 6px 20px rgba(0,0,0,.12)}
.order-card .pix-box{width:100%;display:flex;flex-direction:column;gap:12px;align-items:center;text-align:left}
.pix-status{display:flex;align-items:center;gap:8px;justify-content:center;margin:0;font-size:.95rem}
.pix-dot{width:10px;height:10px;border-radius:50%;background:#f59e0b;box-shadow:0 0 0 0 rgba(245,158,11,.6);animation:pixPulse 1.6s infinite}
@keyframes pixPulse{70%{box-shadow:0 0 0 10px rgba(245,158,11,0)}100%{box-shadow:0 0 0 0 rgba(245,158,11,0)}}
.pix-qr{background:#fff;padding:12px;border-radius:14px;border:1px solid var(--border,#e5e7eb);line-height:0}
.pix-qr svg{width:220px;height:220px;max-width:70vw;max-height:70vw}
.pix-copy{display:flex;gap:8px;width:100%}
.pix-copy .input{flex:1;min-width:0;font-family:ui-monospace,monospace;font-size:.8rem}
.pix-steps{margin:0;padding-left:20px;font-size:.9rem;line-height:1.6;width:100%}
@media (max-width:480px){.pix-copy{flex-direction:column}.center-card{margin:16px auto;padding:20px}}

/* Produto: menu lateral de seções */
.pd-shell{display:grid;grid-template-columns:220px minmax(0,1fr);gap:20px;align-items:start}
.pd-nav{position:sticky;top:12px;display:flex;flex-direction:column;gap:4px;padding:10px;background:var(--card,#fff);border:1px solid var(--border,#e5e7eb);border-radius:14px}
.pd-nav a{display:flex;align-items:center;gap:10px;padding:10px 12px;border-radius:10px;color:var(--muted,#6b7280);text-decoration:none;font-size:.92rem;font-weight:500}
.pd-nav a svg{width:18px;height:18px;flex:none}
.pd-nav a:hover{background:var(--bg-soft,rgba(0,0,0,.04));color:var(--text,#111)}
.pd-nav a.active{background:color-mix(in srgb,var(--primary,#16a34a) 16%,transparent);color:var(--primary,#16a34a);box-shadow:inset 0 0 0 1px color-mix(in srgb,var(--primary,#16a34a) 45%,transparent)}
.pd-main{min-width:0}
.pd-link{display:flex;flex-wrap:wrap;gap:8px;align-items:center}
.pd-link code{flex:1;min-width:0;overflow-wrap:anywhere;padding:8px 10px;border-radius:8px;background:var(--bg-soft,rgba(0,0,0,.04))}
@media (max-width:900px){.pd-shell{grid-template-columns:1fr}.pd-nav{position:static;flex-direction:row;overflow-x:auto;padding:6px}.pd-nav a{white-space:nowrap;padding:8px 10px}}

/* Caixa de destaque neutra que acompanha qualquer tema (claro ou escuro) */
.soft-box{padding:12px 14px;border-radius:12px;border:1px solid var(--border,#e2e8f0);background:color-mix(in srgb,currentColor 5%,transparent);color:inherit}
.soft-box code{color:inherit;overflow-wrap:anywhere}

/* Dashboard: saldo nos gateways */
.gw-bal-head{display:flex;justify-content:space-between;align-items:center;gap:10px}
.gw-bal-head h2{display:flex;align-items:center;gap:8px}
.gw-bal{display:grid;grid-template-columns:repeat(auto-fit,minmax(260px,1fr));gap:4px 24px}
.gw-bal-row{display:flex;align-items:center;gap:12px;padding:10px 0;border-bottom:1px solid var(--border,#e2e8f0)}
.gw-bal-ic{width:32px;height:32px;border-radius:8px;display:grid;place-items:center;font-weight:800;color:#fff;flex:none;background:#64748b}
.gw-bal-ic.gw-mercadopago{background:#009ee3}.gw-bal-ic.gw-stripe{background:#635bff}.gw-bal-ic.gw-cajupay{background:#0b5d3b}
.gw-bal-name{display:flex;flex-direction:column;min-width:0;flex:1}
.gw-bal-val{display:flex;flex-direction:column;align-items:flex-end;text-align:right}

/* ================= BecheX Premium (claro e escuro) — acabamento sobre as regras BecheX ================= */
html[data-skin="premium"] { --lime: 181 214 92; --lime-2: 205 235 120; --radius-card: 18px; }
html[data-skin="premium"][data-theme="neon-light"] { --bg: #f3f6ef; --surface: #ffffff; --surface-2: #f7faf3; --border: #e3eadc; --heading: #0d140b; --text: #1d2a18; --muted: #5d6b57; --accent: 181 214 92; --accent-ink: 91 122 30; }
html[data-skin="premium"][data-theme="neon"] { --bg: #000000; --surface: #0a0a0a; --surface-2: #111111; --border: #1c1f1a; --accent: 181 214 92; }
html[data-skin="premium"] body { background: var(--bg); }
/* Menu lateral */
html[data-skin="premium"][data-theme="neon-light"] .sidebar { background: #ffffff; color: #1d2a18; border-right: 1px solid var(--border); }
html[data-skin="premium"][data-theme="neon-light"] .sidebar :is(.brand-name, .side-footer, .nav-cat) { color: #1d2a18; }
html[data-skin="premium"][data-theme="neon-light"] .nav a { color: #2b3826; }
html[data-skin="premium"][data-theme="neon-light"] .nav a:hover { background: rgb(var(--lime) / .12); color: #0d140b; }
html[data-skin="premium"][data-theme="neon"] .sidebar { background: #000000; border-right: 1px solid #1a1c18; }
html[data-skin="premium"] .nav a { border-radius: 12px; padding: 10px 14px; font-weight: 500; }
/* Item ativo em verde suave (fundo translúcido e texto verde), sem o degradê forte */
html[data-skin="premium"] .nav a.active { background: rgb(var(--lime) / .16); color: rgb(var(--accent-ink)); font-weight: 600; box-shadow: none; }
html[data-skin="premium"] .nav a.active svg { color: rgb(var(--accent-ink)); }
html[data-skin="premium"][data-theme="neon"] .nav a.active { background: rgb(var(--lime) / .14); color: rgb(var(--lime-2)); }
html[data-skin="premium"][data-theme="neon"] .nav a.active svg { color: rgb(var(--lime-2)); }
html[data-skin="premium"] .nav-cat { letter-spacing: .06em; }
/* Cartões */
html[data-skin="premium"] :is(.card, .rw-card, .app-card) { border-radius: var(--radius-card); }
html[data-skin="premium"][data-theme="neon-light"] :is(.card, .rw-card, .app-card) { box-shadow: 0 1px 2px rgb(13 20 11 / .04), 0 14px 32px -24px rgb(13 20 11 / .35); }
html[data-skin="premium"][data-theme="neon"] :is(.card, .rw-card, .app-card) { background: var(--surface); border-color: var(--border); }
html[data-skin="premium"] .stat { flex-direction: column; align-items: center; text-align: center; gap: 8px; padding: 20px 14px; }
html[data-skin="premium"] .stat-icon { padding: 12px; border-radius: 14px; background: rgb(var(--lime) / .15) !important; color: rgb(var(--lime)) !important; }
html[data-skin="premium"][data-theme="neon-light"] .stat-icon { color: rgb(var(--accent-ink)) !important; }
html[data-skin="premium"] .stat-icon svg { width: 26px; height: 26px; }
html[data-skin="premium"] .stat-value { font-size: 22px; font-weight: 800; }
/* Botões e barra superior */
html[data-skin="premium"] :is(.btn-primary, .btn-gold) { background: linear-gradient(135deg, rgb(var(--lime-2)), rgb(var(--lime))); color: var(--on-lime, #0b1406); border: 0; border-radius: 12px; box-shadow: 0 8px 22px -12px rgb(var(--lime) / .95); }
html[data-skin="premium"] .btn { border-radius: 12px; }
html[data-skin="premium"] .appbar-btn { border-radius: 999px; }
html[data-skin="premium"] .appbar-avatar { background: linear-gradient(135deg, rgb(var(--lime-2)), rgb(var(--lime))); color: var(--on-lime, #0b1406); }
html[data-skin="premium"] :is(.bar > span, .rw-progress span, .goal-progress span) { background: linear-gradient(90deg, rgb(var(--lime)), rgb(var(--lime-2))); box-shadow: none; }
html[data-skin="premium"] .chart rect { fill: rgb(var(--lime)); filter: none; }
/* Boas-vindas com troféu */
.hero-welcome { display: none; }
html[data-skin="premium"] .hero-welcome { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 28px 32px; margin-bottom: 18px; border-radius: 22px; overflow: hidden; position: relative;
  background: radial-gradient(circle at 85% 30%, rgb(var(--lime-2) / .55), transparent 45%), linear-gradient(120deg, #f6ffe8 0%, #e2fbb8 55%, #b8f05a 100%); color: #0d140b; }
html[data-skin="premium"][data-theme="neon"] .hero-welcome { background: radial-gradient(circle at 85% 30%, rgb(var(--lime) / .45), transparent 45%), linear-gradient(120deg, #0b0f09 0%, #13200b 55%, #2d5a07 100%); color: #fff; border: 1px solid #22301a; }
.hero-welcome h2 { margin: 0; font-size: clamp(22px, 3vw, 32px); line-height: 1.1; font-weight: 800; color: inherit !important; }
.hero-welcome h2 strong { display: block; font-size: 1.6em; color: rgb(var(--accent-ink)); }
html[data-skin="premium"][data-theme="neon"] .hero-welcome h2 strong { color: rgb(var(--lime-2)); }
.hero-welcome p { margin: 8px 0 0; font-size: 16px; font-weight: 600; opacity: .9; }
.hero-trophy { width: 140px; height: 140px; flex: none; filter: drop-shadow(0 12px 18px rgb(0 0 0 / .25)); }
@media (max-width: 640px) { html[data-skin="premium"] .hero-welcome { padding: 20px; } .hero-trophy { width: 84px; height: 84px; } }
/* Miniaturas no seletor de design */
.theme-mini-premium { background: #f3f6ef; border: 1px solid #e3eadc; } .theme-mini-premium .tm-side { background: #fff; border: 1px solid #e3eadc; } .theme-mini-premium .tm-top { background: #fff; } .theme-mini-premium .tm-card { background: #fff; } .theme-mini-premium .tm-bar { background: #7cdb15; }
.theme-mini-premium-dark { background: #070807; } .theme-mini-premium-dark .tm-side { background: #0b0d0b; } .theme-mini-premium-dark .tm-top { background: #111411; } .theme-mini-premium-dark .tm-card { background: #111411; } .theme-mini-premium-dark .tm-bar { background: #7cdb15; }
html[data-skin="premium"][data-theme="neon-light"] .side-footer { border-top: 1px solid var(--border); }
html[data-skin="premium"][data-theme="neon-light"] .side-footer :is(div, .email, button) { color: #2b3826 !important; }
html[data-skin="premium"][data-theme="neon-light"] .side-footer .email { color: var(--muted) !important; }
html[data-skin="premium"][data-theme="neon-light"] .sidebar-collapse { color: #2b3826; border-color: var(--border); background: #fff; }
html[data-skin="premium"][data-theme="neon-light"] .brand-area { color: rgb(var(--accent-ink)); }
.gw-bal { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.gw-bal-name strong { white-space: nowrap; }
.gw-bal-val { max-width: 55%; }

/* Card "Próxima conquista": imagem emoldurada, com respiro e sem encostar na borda */
.goal-card { grid-template-columns: 210px 1fr; align-items: stretch; }
.goal-card .goal-media, html[data-theme] .goal-card .goal-media:has(img) { margin: 14px 0 14px 14px; border-radius: 16px; min-height: 0; padding: 12px; overflow: hidden; position: relative;
  background: radial-gradient(circle at 50% 30%, rgb(var(--accent) / .28), transparent 70%), linear-gradient(160deg, rgb(255 255 255 / .06), rgb(0 0 0 / .25)) !important;
  border: 1px solid color-mix(in srgb, rgb(var(--accent)) 30%, transparent); box-shadow: inset 0 0 0 1px rgb(255 255 255 / .04), 0 10px 26px -16px rgb(0 0 0 / .6); }
.goal-card .goal-media img { width: 100%; height: 100%; max-height: 230px; object-fit: contain; border-radius: 10px; filter: drop-shadow(0 10px 18px rgb(0 0 0 / .45)); }
.goal-card .goal-body { padding: 22px 24px; justify-content: center; gap: 8px; }
.goal-card .goal-body h2 { margin: 0; font-size: 22px; letter-spacing: .01em; }
.goal-card .goal-progress { height: 12px; border: 1px solid var(--border, #e2e8f0); }
.goal-card .goal-nums { margin-top: 4px; }
@media (max-width: 560px) { .goal-card .goal-media, html[data-theme] .goal-card .goal-media:has(img) { margin: 14px 14px 0; height: 220px; } .goal-card .goal-body { padding: 18px; } }
/* Banner de boas-vindas: imagem enviada pelo administrador e versão sem imagem */
.hero-img { object-fit: contain; }
html[data-skin="premium"] .hero-welcome.no-media { justify-content: flex-start; }
html[data-skin="premium"] .hero-welcome { min-height: 150px; }
html[data-skin="premium"] .hero-welcome .hero-trophy { margin-right: 12px; }
/* Placa da conquista sem moldura: só a imagem, com espaço até a borda do card */
.goal-card .goal-media, html[data-theme] .goal-card .goal-media:has(img) { background: transparent !important; border: 0 !important; box-shadow: none !important; padding: 0; border-radius: 0; }
.goal-card .goal-media:not(:has(img)) { background: radial-gradient(circle at 50% 40%, rgb(var(--accent) / .22), transparent 70%) !important; }
.goal-card .goal-media img { border-radius: 0; filter: none; }
/* Banner: atalhos e arte de crescimento (quando sem imagem) */
.hero-text { position: relative; z-index: 1; min-width: 0; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.hero-chip { display: inline-flex; align-items: center; gap: 8px; padding: 9px 14px; border-radius: 999px; font-weight: 700; font-size: 13px; text-decoration: none !important;
  background: rgb(255 255 255 / .7); color: #0d140b; border: 1px solid rgb(13 20 11 / .08); backdrop-filter: blur(6px); transition: transform .15s, background .15s; }
.hero-chip svg { width: 16px; height: 16px; }
.hero-chip:hover { transform: translateY(-1px); background: #fff; }
html[data-skin="premium"][data-theme="neon"] .hero-chip { background: rgb(255 255 255 / .08); color: #f3ffe0; border-color: rgb(var(--lime-2) / .25); }
html[data-skin="premium"][data-theme="neon"] .hero-chip:hover { background: rgb(var(--lime-2) / .18); }
.hero-art { width: min(42%, 360px); height: auto; flex: none; color: #0d140b; }
html[data-skin="premium"][data-theme="neon"] .hero-art { color: rgb(var(--lime-2)); }
html[data-skin="premium"] .hero-welcome.no-media { justify-content: space-between; }
@media (max-width: 760px) { .hero-art { display: none; } }
/* Menu lateral do produto segue o tema (sem fundo branco fixo no escuro) */
.pd-nav { background: var(--surface, #fff); }
:is(html[data-theme="dark"], html[data-theme="neon"]) .pd-nav { background: var(--surface, #0f1410); border-color: var(--border, #1f2a20); }
:is(html[data-theme="dark"], html[data-theme="neon"]) .pd-nav a { color: var(--muted, #9aa59b); }
:is(html[data-theme="dark"], html[data-theme="neon"]) .pd-nav a:hover { background: rgb(255 255 255 / .06); color: var(--text, #e5efe6); }
.pd-nav a.active { background: rgb(var(--accent) / .14); color: rgb(var(--accent-ink, var(--accent))); box-shadow: inset 0 0 0 1px rgb(var(--accent) / .45); }
html[data-theme="neon"] .pd-nav a.active { color: rgb(var(--accent)); }
html[data-skin="premium"] .pd-nav a.active { background: rgb(var(--lime) / .16); color: rgb(var(--accent-ink)); box-shadow: none; font-weight: 600; }
html[data-skin="premium"][data-theme="neon"] .pd-nav a.active { background: rgb(var(--lime) / .14); color: rgb(var(--lime-2)); }
.co-unavailable { max-width: 980px; margin: 14px auto; padding: 14px 18px; border-radius: 12px; background: #fef3c7; color: #78350f; border: 1px solid #f59e0b; display: flex; flex-direction: column; gap: 4px; font-size: 14px; }
.approval-toggle { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; }
/* Chamada para publicar o produto */
.publish-cta { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding: 18px 20px; margin-bottom: 16px; border-radius: 16px;
  border: 1px solid rgb(var(--accent) / .45); background: linear-gradient(135deg, rgb(var(--accent) / .16), rgb(var(--accent) / .04)); }
.publish-cta > div { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.publish-cta strong { font-size: 16px; } .publish-cta span { color: var(--muted); font-size: 13px; }
.btn-lg { padding: 13px 26px; font-size: 16px; border-radius: 12px; }
/* Página do pedido: itens comprados (discretos) e rodapé com a logo */
.order-items { list-style: none; padding: 0; margin: 2px 0 6px; display: flex; flex-direction: column; gap: 4px; font-size: 13px; color: var(--muted, #64748b); }
.order-items li { display: flex; align-items: center; gap: 6px; justify-content: center; }
.order-items svg { width: 14px; height: 14px; color: #16a34a; flex: none; }
.order-foot { max-width: 520px; margin: 0 auto 32px; display: flex; flex-direction: column; align-items: center; gap: 8px; color: var(--muted, #64748b); font-size: 12px; }
.order-foot img { max-height: 34px; max-width: 160px; object-fit: contain; opacity: .9; }
.order-foot span { display: inline-flex; align-items: center; gap: 6px; } .order-foot svg { width: 14px; height: 14px; }
.confetti-canvas { position: fixed; inset: 0; pointer-events: none; z-index: 9999; }
/* Editor de checkout: prévia ao vivo sempre ao lado (empilha só em telas estreitas) */
.ed-wrap { grid-template-columns: minmax(300px, 400px) minmax(0, 1fr); }
@media (max-width: 1100px) { .ed-wrap { grid-template-columns: minmax(280px, 360px) minmax(0, 1fr); } }
@media (max-width: 820px) { .ed-wrap { grid-template-columns: 1fr; } .ed-preview { position: static; } }
.ed-preview { top: 12px; }
.ed-frame-wrap { height: calc(100vh - 120px); }
/* Certificado: lista de campos e campos excluídos fora do certificado */
.ce-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.ce-list li { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 6px 8px; border: 1px solid var(--border); border-radius: 10px; font-size: 13px; }
.ce-img-row { display: flex; align-items: center; gap: 10px; margin-top: 8px; }
.ce-thumb { width: 72px; height: 50px; object-fit: contain; border: 1px solid var(--border); border-radius: 8px; background: repeating-conic-gradient(rgba(127,127,127,.15) 0 25%, transparent 0 50%) 0 0/12px 12px; }
.ce-list li.is-off span:first-child { text-decoration: line-through; opacity: .6; }
.ce-list-act { display: flex; gap: 6px; }
.ce-el.is-off { display: none; }
/* Card da próxima conquista: proporções equilibradas no computador e no celular */
.goal-card { grid-template-columns: clamp(130px, 28%, 190px) minmax(0, 1fr); }
.goal-card .goal-media, html[data-theme] .goal-card .goal-media:has(img) { margin: 16px 0 16px 16px; display: flex; align-items: center; justify-content: center; }
.goal-card .goal-media img { width: 100%; height: auto; max-height: 210px; object-fit: contain; }
.goal-card .goal-body h2 { font-size: clamp(17px, 2.2vw, 22px); line-height: 1.2; }
.goal-card .goal-nums { font-size: 12.5px; row-gap: 4px; }
.goal-card .goal-pct { font-size: 24px; }
@media (max-width: 560px) {
  .goal-card { grid-template-columns: 1fr; }
  .goal-card .goal-media, html[data-theme] .goal-card .goal-media:has(img) { margin: 16px 16px 0; height: auto; }
  .goal-card .goal-media img { max-height: 180px; width: auto; max-width: 70%; }
  .goal-card .goal-body { padding: 14px 18px 18px; text-align: left; }
}
/* Termo de acesso */
.terms-gate { display: flex; justify-content: center; padding: 24px 12px; }
.terms-card { width: 100%; max-width: 640px; padding: 24px; border-radius: 18px; background: var(--mx-card, var(--surface, #fff)); border: 1px solid var(--border, #e2e8f0); }
.terms-card h1 { font-size: 22px; margin: 0 0 6px; }
.terms-text { max-height: 46vh; overflow: auto; padding: 14px; margin: 14px 0; border-radius: 12px; border: 1px solid var(--border, #e2e8f0); background: color-mix(in srgb, currentColor 4%, transparent); line-height: 1.6; font-size: 14px; }
.terms-card form { display: grid; gap: 12px; }
.rr-form summary { list-style: none; display: inline-flex; cursor: pointer; } .rr-form summary::-webkit-details-marker { display: none; }
.rr-form form { display: grid; gap: 6px; margin-top: 6px; min-width: 220px; }
/* Leitor protegido de PDF */
.pdfr { min-height: 100vh; background: #1f2937; user-select: none; -webkit-user-select: none; }
.pdfr-bar { position: sticky; top: 0; z-index: 2; display: flex; align-items: center; gap: 12px; flex-wrap: wrap; padding: 10px 16px; background: #111827; color: #f9fafb; }
.pdfr-bar .muted { color: #9ca3af; flex: 1; min-width: 0; }
.pdfr-pages { max-width: 1000px; margin: 0 auto; padding: 16px 12px 40px; display: grid; gap: 14px; }
.pdfr-pages p { color: #e5e7eb; text-align: center; }
.pdfr-page { background: #fff; box-shadow: 0 10px 30px -10px rgb(0 0 0 / .6); line-height: 0; }
@media print { .pdfr { display: none !important; } body::after { content: "Impressão desativada para este documento."; } }
/* Área de Membros: editor com prévia ao lado */
.mx-editor { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); gap: 20px; align-items: start; }
.mx-editor-preview { position: sticky; top: 76px; }
.mx-preview-bar { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; justify-content: space-between; margin-bottom: 10px; }
.mx-preview-modes { display: flex; gap: 6px; flex-wrap: wrap; } .mx-preview-modes .is-on { border-color: rgb(var(--accent)); color: rgb(var(--brand)); }
.mx-preview-frame { border: 1px solid var(--border); border-radius: 14px; overflow: hidden; background: #0b0b0f; height: 72vh; min-height: 460px; transition: max-width .2s; margin: 0 auto; }
.mx-preview-frame iframe { width: 100%; height: 100%; border: 0; display: block; }
.mx-preview-frame.is-mobile { max-width: 390px; }
.mx-course-list { display: grid; gap: 12px; }
.mx-course { display: grid; grid-template-columns: 180px minmax(0, 1fr); gap: 14px; padding: 12px; border: 1px solid var(--border); border-radius: 14px; background: var(--surface, #fff); }
.mx-course-media { display: grid; gap: 6px; }
.mx-banner, .mx-cover { border-radius: 10px; overflow: hidden; background: var(--muted-bg, rgba(127,127,127,.12)); display: flex; align-items: center; justify-content: center; color: var(--muted); font-size: 12px; }
.mx-banner { aspect-ratio: 16 / 5; } .mx-cover { aspect-ratio: 16 / 9; width: 70%; }
.mx-banner img, .mx-cover img { width: 100%; height: 100%; object-fit: cover; }
.mx-course-title { display: flex; flex-wrap: wrap; gap: 6px 10px; align-items: baseline; margin-bottom: 8px; }
.mx-course-opts { display: flex; flex-wrap: wrap; gap: 8px 16px; align-items: center; margin-bottom: 8px; }
.mx-course-links { font-size: 13px; margin-top: 6px; }
@media (max-width: 1100px) { .mx-editor { grid-template-columns: 1fr; } .mx-editor-preview { position: static; } .mx-preview-frame { height: 70vh; } }
@media (max-width: 560px) { .mx-course { grid-template-columns: 1fr; } .mx-cover { width: 50%; } }
.co-bump-desc { white-space: pre-line; } .co-bump-orig { color: #94a3b8; font-weight: 500; font-size: .85em; }
/* Seletor de produtos cadastrados */
.pick { display: grid; gap: 8px; }
.pick-current { padding: 10px 12px; border: 1px solid var(--border); border-radius: 10px; font-weight: 600; }
.pick-dialog { width: min(640px, calc(100vw - 32px)); max-height: 80vh; border: 1px solid var(--border); border-radius: 16px; padding: 16px; background: var(--card, #fff); color: var(--text); }
.pick-dialog::backdrop { background: rgba(2, 6, 23, .55); }
.pick-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 10px; }
.pick-filters { display: flex; gap: 6px; margin: 10px 0; flex-wrap: wrap; }
.pick-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; max-height: 50vh; overflow: auto; }
.pick-list li { display: grid; grid-template-columns: 56px minmax(0, 1fr) auto; gap: 10px; align-items: center; padding: 8px; border: 1px solid var(--border); border-radius: 12px; }
.pick-list li[hidden] { display: none; }
.pick-img { width: 56px; height: 40px; border-radius: 8px; overflow: hidden; background: rgba(127,127,127,.15); } .pick-img img { width: 100%; height: 100%; object-fit: cover; }
.pick-info { min-width: 0; } .pick-info strong { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
/* Editor de order bump: formulário à esquerda, prévia do checkout à direita */
.ob-editor { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 20px; align-items: start; }
.ob-preview { position: sticky; top: 76px; }
.ob-stage { --co-primary: rgb(var(--accent)); --co-radius: 12px; background: #f8fafc; border: 1px solid var(--border); border-radius: 16px; padding: 18px; margin: 0 auto; color: #0f172a; transition: max-width .2s; }
.ob-stage.is-mobile { max-width: 380px; }
.ob-stage .co-sec-head { display: flex; gap: 10px; align-items: center; margin-bottom: 14px; } .ob-stage .co-sec-head span { display: block; font-size: 12px; color: #64748b; }
.ob-desc { min-height: 140px; resize: vertical; line-height: 1.5; }
.ob-clamp { max-width: 340px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
@media (max-width: 1100px) { .ob-editor { grid-template-columns: 1fr; } .ob-preview { position: static; } }
.of-preview { margin-top: 14px; padding: 18px; border: 1px dashed var(--border); border-radius: 14px; text-align: center; background: rgba(127,127,127,.04); }
.of-preview .offer-cover { max-width: 220px; width: 100%; border-radius: 12px; margin: 8px auto; display: block; }
.of-preview .of-text { white-space: pre-line; } .of-preview .price { font-size: 24px; font-weight: 800; }
.of-preview .offer-kicker { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: rgb(var(--accent)); }
/* Premiações: resumo, medalhas, anel de progresso, histórico e animação discreta ao conquistar */
.rw-hero { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 18px; padding: 22px; margin-bottom: 20px; border-radius: 20px; color: #fff;
  background: radial-gradient(circle at 15% 20%, rgb(var(--gold) / .35), transparent 45%), linear-gradient(135deg, rgb(var(--brand)), #0f172a); box-shadow: 0 18px 40px -24px rgba(15, 23, 42, .6); }
.rw-hero-main { display: flex; gap: 18px; align-items: center; min-width: 0; }
.rw-hero h2 { color: #fff; font-size: 22px; margin: 2px 0 6px; overflow-wrap: anywhere; }
.rw-hero-kicker { margin: 0; font-size: 12px; text-transform: uppercase; letter-spacing: .1em; color: rgb(var(--gold)); font-weight: 800; }
.rw-hero-goal, .rw-hero-left { margin: 0; color: rgba(255,255,255,.85); } .rw-hero-left strong { color: rgb(var(--gold)); font-size: 18px; }
.rw-ring { position: relative; width: 112px; height: 112px; flex-shrink: 0; } .rw-ring svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.rw-ring-bg { fill: none; stroke: rgba(255,255,255,.15); stroke-width: 10; } .rw-ring-fg { fill: none; stroke: rgb(var(--gold)); stroke-width: 10; stroke-linecap: round; transition: stroke-dashoffset 1s ease; }
.rw-ring strong { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; font-size: 24px; }
.rw-hero-trophy .icon { width: 72px; height: 72px; color: rgb(var(--gold)); }
.rw-hero-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; align-self: center; }
.rw-hero-stats > div { background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.12); border-radius: 14px; padding: 12px; display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.rw-hero-stats strong { font-size: 18px; overflow-wrap: anywhere; } .rw-hero-stats span { font-size: 12px; color: rgba(255,255,255,.75); }
.rw-medal { position: absolute; top: 10px; right: 10px; display: flex; flex-direction: column; align-items: center; gap: 2px; filter: drop-shadow(0 4px 8px rgba(0,0,0,.35)); }
.rw-medal svg { width: 48px; height: 48px; } .rw-medal span { font-size: 10px; font-weight: 800; color: #fff; background: rgba(15,23,42,.7); padding: 1px 8px; border-radius: 999px; }
.rw-card.state-locked .rw-medal { filter: grayscale(1) opacity(.7); }
.rw-medal.is-won svg { animation: rw-medal-in .9s cubic-bezier(.2, 1.4, .4, 1) both, rw-shine 3s ease-in-out 1s infinite; }
@keyframes rw-medal-in { from { transform: scale(.4) rotate(-20deg); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes rw-shine { 0%, 100% { filter: none; } 50% { filter: brightness(1.25) drop-shadow(0 0 10px rgb(var(--gold) / .8)); } }
.rw-goal-value { margin: 0; font-size: 26px; font-weight: 800; color: var(--text); letter-spacing: -.01em; } .rw-goal-value span { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }
.rw-card.state-achieved .rw-progress span { background: linear-gradient(90deg, rgb(var(--gold)), #fde68a, rgb(var(--gold))); background-size: 200% 100%; animation: rw-bar 2.5s linear infinite; }
@keyframes rw-bar { to { background-position: -200% 0; } }
.rw-history-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.rw-history-list li { display: grid; grid-template-columns: 40px minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 10px 12px; border: 1px solid var(--border); border-radius: 14px; }
.rw-history-list li > span:nth-child(2) { display: flex; flex-direction: column; min-width: 0; }
.rw-hist-dot { width: 40px; height: 40px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; background: rgb(var(--gold) / .18); color: rgb(var(--gold)); }
@media (prefers-reduced-motion: reduce) { .rw-medal.is-won svg, .rw-card.state-achieved .rw-progress span, .rw-claim { animation: none; } }
@media (max-width: 760px) {
  .rw-hero { grid-template-columns: 1fr; padding: 18px; } .rw-hero-main { flex-direction: column; text-align: center; } .rw-ring { width: 128px; height: 128px; }
  .rw-hero-stats { grid-template-columns: 1fr 1fr; } .rw-hero-stats > div:last-child { grid-column: span 2; }
  .rw-grid { grid-template-columns: 1fr; } .rw-goal-value { font-size: 24px; } .rw-nums { flex-direction: column; align-items: flex-start; }
  .rw-history-list li { grid-template-columns: 36px minmax(0, 1fr); } .rw-history-list li > .badge { grid-column: 2; justify-self: start; }
}
/* Celular: toque confortável, sem zoom ao digitar, grades em uma coluna, abas e tabelas roláveis dentro do card */
@media (max-width: 640px) {
  .btn { min-height: 42px; } .btn-sm { min-height: 36px; }
  input.input, select.input, textarea.input { font-size: 16px; }
  .card-body { padding: 14px; }
  .page-header { flex-direction: column; align-items: stretch; gap: 10px; } .page-header .actions { flex-wrap: wrap; }
  .grid.g2, .grid.g3, .grid.g4 { grid-template-columns: 1fr; }
  .tabs { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; } .tabs a { white-space: nowrap; }
  .table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
  .filters .input { min-width: 0; width: 100%; } .filters { display: grid; grid-template-columns: 1fr 1fr; } .filters .btn { width: 100%; }
  dialog { max-width: calc(100vw - 24px); }
  .stat-value { font-size: 20px; }
}

/* Celular com cara de aplicativo: barra superior fixa (marca, ações, perfil) e menu inferior flutuante.
   Só abaixo de 1024px; no computador o menu lateral e a barra superior continuam como antes. */
.tabbar, .appbar-brand { display: none; }
a.appbar-user { color: inherit; text-decoration: none; border-radius: 999px; }
a.appbar-user:hover .appbar-avatar { box-shadow: 0 0 0 3px rgb(var(--accent) / .35); }
.appbar-avatar { transition: box-shadow .2s; }
@media (max-width: 1023px) {
  html { -webkit-text-size-adjust: 100%; }
  .appbar { position: sticky; top: 0; z-index: 20; min-height: 56px; gap: 10px; padding: calc(8px + env(safe-area-inset-top)) max(14px, env(safe-area-inset-right)) 8px max(14px, env(safe-area-inset-left)); box-shadow: 0 8px 24px -20px rgb(15 23 42 / .6); }
  .appbar-brand { display: flex; align-items: center; gap: 8px; min-width: 0; flex: 1 1 auto; color: var(--heading, inherit); font-weight: 800; font-size: 16px; text-decoration: none; }
  .appbar-brand:hover { text-decoration: none; }
  .appbar-brand img { height: 28px; max-width: 128px; object-fit: contain; flex-shrink: 0; }
  .appbar-brand span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .appbar-hello { display: none; }
  .appbar-actions { gap: 6px; flex-shrink: 0; }
  .appbar-btn { width: 36px; height: 36px; border-radius: 12px; }
  .appbar-avatar { width: 34px; height: 34px; }
  .container { padding: 16px max(16px, env(safe-area-inset-right)) calc(104px + env(safe-area-inset-bottom)) max(16px, env(safe-area-inset-left)); }
  .sidebar { transition: transform .28s cubic-bezier(.2, .8, .2, 1); padding-top: env(safe-area-inset-top); padding-bottom: env(safe-area-inset-bottom); }
  .tabbar { display: flex; position: fixed; z-index: 22; left: max(10px, env(safe-area-inset-left)); right: max(10px, env(safe-area-inset-right)); bottom: calc(10px + env(safe-area-inset-bottom)); max-width: 560px; margin: 0 auto; height: 64px; padding: 6px; gap: 2px; border-radius: 22px; background: rgb(255 255 255 / .92); border: 1px solid var(--border); box-shadow: 0 18px 40px -18px rgb(15 23 42 / .55), 0 2px 6px rgb(15 23 42 / .06); backdrop-filter: blur(14px) saturate(1.4); -webkit-backdrop-filter: blur(14px) saturate(1.4); transition: transform .28s cubic-bezier(.2, .8, .2, 1), opacity .2s; }
  .tabbar > * { flex: 1 1 0; min-width: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; border: 0; background: none; border-radius: 16px; color: var(--muted); font: inherit; font-size: 11px; font-weight: 600; line-height: 1.1; cursor: pointer; text-decoration: none; -webkit-tap-highlight-color: transparent; transition: background .2s, color .2s, transform .15s; }
  .tabbar > *:hover { text-decoration: none; color: var(--heading, inherit); }
  .tabbar > *:active { transform: scale(.94); }
  .tabbar > * span { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .tabbar .icon { width: 22px; height: 22px; }
  .tabbar [aria-current="page"] { color: rgb(var(--brand)); background: rgb(var(--brand) / .1); }
  .tabbar [aria-current="page"] .icon { transform: translateY(-1px); }
  body.menu-open .tabbar { transform: translateY(calc(100% + 24px)); opacity: 0; pointer-events: none; }
  .ed-bar { bottom: calc(84px + env(safe-area-inset-bottom)); }
  .toast { top: calc(66px + env(safe-area-inset-top)); left: 12px; right: 12px; max-width: none; }
  .modal, dialog { max-width: calc(100vw - 24px); }
}
:is(html[data-theme="dark"], html[data-theme="neon"]) .tabbar { background: rgb(10 14 20 / .9); box-shadow: 0 18px 40px -16px rgb(0 0 0 / .8); }
:is(html[data-theme="dark"], html[data-theme="neon"]) .tabbar [aria-current="page"] { color: var(--heading); background: rgb(var(--accent) / .24); }
html[data-theme="neon-light"] .tabbar [aria-current="page"] { color: var(--heading); background: rgb(var(--accent) / .22); }

/* iPhone/iPad dão zoom automático ao tocar em campos com texto menor que 16px e a tela fica ampliada,
   "cortando" as bordas. No celular, todos os campos usam 16px (o zoom manual continua permitido). */
@media (max-width: 1023px), (pointer: coarse) {
  input:not([type="checkbox"]):not([type="radio"]):not([type="range"]):not([type="color"]):not([type="file"]), select, textarea { font-size: 16px !important; }
}

/* Celular: nada empurra a página para fora da tela (computador inalterado) */
@media (max-width: 1023px) {
  .input, input:not([type="checkbox"]):not([type="radio"]), select, textarea { min-width: 0; max-width: 100%; }
  .team-list > *, .filters > * { min-width: 0; }
  .team-item { overflow-wrap: anywhere; }
}
@media (max-width: 700px) {
  .filters .input, .filters .grow { min-width: 0; }
  .filters { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }
  .card-head { flex-wrap: wrap; }
  .card-head > .badge { white-space: normal; max-width: 100%; }
}

/* Dashboard do infoprodutor no celular: acesso rápido, números em 2 colunas e últimas vendas em lista */
.dash-quick { display: none; }
@media (max-width: 1023px) {
  .dash-quick { display: block; margin: 16px 0; }
  .dash-quick-head h2 { font-size: 17px; margin: 0 0 10px; color: var(--heading, inherit); }
  .dash-quick-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
  .dash-quick-grid a { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; min-height: 92px; padding: 12px 6px; border-radius: 16px; border: 1px solid var(--border); background: var(--surface, #fff); color: var(--heading, inherit); font-size: 12.5px; font-weight: 600; line-height: 1.2; text-align: center; text-decoration: none; transition: transform .15s, border-color .2s; -webkit-tap-highlight-color: transparent; }
  .dash-quick-grid a:active { transform: scale(.96); }
  .dash-quick-grid a:hover { text-decoration: none; border-color: rgb(var(--accent) / .6); }
  .dash-quick-grid a > span { display: flex; width: 40px; height: 40px; border-radius: 12px; align-items: center; justify-content: center; }
  .dash-quick-grid .icon { width: 22px; height: 22px; }
  .dash-quick-grid .q-green > span { background: rgb(34 197 94 / .14); color: #16a34a; }
  .dash-quick-grid .q-orange > span { background: rgb(249 115 22 / .14); color: #ea580c; }
  .dash-quick-grid .q-gold > span { background: rgb(234 179 8 / .16); color: #ca8a04; }
  .dash-quick-grid .q-blue > span { background: rgb(59 130 246 / .14); color: #2563eb; }
  .grid.g4[data-sensitive] { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .grid.g4[data-sensitive] .card.stat { flex-direction: column; align-items: flex-start; gap: 8px; padding: 14px; }
  .grid.g4[data-sensitive] .stat-value { font-size: 19px; overflow-wrap: anywhere; }
  .grid.g4[data-sensitive] .stat-label { font-size: 12px; }
  .grid.g4[data-sensitive] .stat-hint { font-size: 11px; }
  .dash-recent .table-wrap { overflow: visible; margin: 0 !important; }
  .dash-recent .table td:first-child, .dash-recent .table td:last-child { padding: 0 !important; }
  .dash-recent .table thead { display: none; }
  .dash-recent .table, .dash-recent .table tbody { display: block; }
  .dash-recent .table tr { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 2px 12px; padding: 12px 0; border-bottom: 1px solid var(--border); }
  .dash-recent .table tr:last-child { border-bottom: 0; }
  .dash-recent .table td { display: block; padding: 0; border: 0; }
  .dash-recent .r-prod { grid-column: 1; grid-row: 1; font-weight: 600; color: var(--heading, inherit); overflow-wrap: anywhere; }
  .dash-recent .r-val { grid-column: 2; grid-row: 1; font-weight: 700; text-align: right; white-space: nowrap; }
  .dash-recent .r-date { grid-column: 1; grid-row: 2; font-size: 12px; color: var(--muted); }
  .dash-recent .r-st { grid-column: 2; grid-row: 2; text-align: right; }
}
:is(html[data-theme="dark"], html[data-theme="neon"]) .dash-quick-grid a { background: var(--surface); }
:is(html[data-theme="dark"], html[data-theme="neon"]) .dash-quick-grid :is(.q-green, .q-orange, .q-gold, .q-blue) > span { filter: brightness(1.35); }

/* Tabelas no celular: ficam dentro do cartão (sem passar por cima das bordas ao deslizar para o lado) */
@media (max-width: 640px) {
  .card-body > .table-wrap, .table-wrap { margin: 0 -14px; }
  .card > .table-wrap { margin: 0; }
  .table-wrap { overscroll-behavior-x: contain; }
  .table td.nowrap, .table th { white-space: nowrap; }
}
/* Vendas no celular: cada venda vira um cartão (produto e valor; comprador e status; data, pedido e líquido) */
@media (max-width: 640px) {
  .table-cards { min-width: 0 !important; }
  .table-wrap:has(> .table-cards) { overflow: visible; margin: 0; }
  .table-cards thead { display: none; }
  .table-cards, .table-cards tbody { display: block; width: 100%; }
  .sales-cards tr { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; grid-template-areas: "prod prod val" "buyer buyer st" "date code net"; gap: 4px 10px; padding: 14px 0; border-bottom: 1px solid var(--border); }
  .sales-cards tr:last-child { border-bottom: 0; }
  .sales-cards td { display: block; padding: 0 !important; border: 0 !important; min-width: 0; }
  .sales-cards .c-prod { grid-area: prod; font-weight: 700; color: var(--heading, inherit); overflow-wrap: anywhere; }
  .sales-cards .c-val { grid-area: val; font-weight: 800; text-align: right; white-space: nowrap; color: var(--heading, inherit); }
  .sales-cards .c-buyer { grid-area: buyer; overflow-wrap: anywhere; font-size: 13px; }
  .sales-cards .c-st { grid-area: st; text-align: right; }
  .sales-cards .c-date { grid-area: date; font-size: 12px; color: var(--muted); }
  .sales-cards .c-code { grid-area: code; font-size: 12px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .sales-cards .c-net { grid-area: net; font-size: 12px; text-align: right; color: var(--muted); white-space: nowrap; }
  .sales-cards .c-net::before { content: "Líquido "; }
}

/* Abertura animada do aplicativo (GIF definido pelo administrador) */
html.bx-splashing body { visibility: hidden; }
.bx-splash { visibility: visible; position: fixed; inset: 0; z-index: 9999; display: flex; align-items: center; justify-content: center; padding: env(safe-area-inset-top) 24px env(safe-area-inset-bottom); transition: opacity .45s ease; cursor: pointer; }
.bx-splash img { max-width: min(80vw, 520px); max-height: 70vh; object-fit: contain; }
.bx-splash.out { opacity: 0; pointer-events: none; }

/* Gateways de pagamento: logotipos e cards clicáveis que abrem a configuração */
.gw-logo { display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; border-radius: 12px; overflow: hidden; background: #fff; border: 1px solid var(--border); vertical-align: middle; }
.gw-logo img { width: 100%; height: 100%; object-fit: contain; padding: 4px; }
.gw-logo b { color: #fff; font-weight: 800; } .gw-logo b::before { content: attr(data-i); }
.gw-logo[style*="--gw"] { background: var(--gw); border-color: transparent; }
.gw-logo-sm { width: 26px; height: 26px; border-radius: 7px; } .gw-logo-sm b { font-size: 13px; } .gw-logo-sm img { padding: 2px; }
.gw-logo-md { width: 40px; height: 40px; } .gw-logo-md b { font-size: 18px; }
.gw-logo-lg { width: 56px; height: 56px; border-radius: 14px; } .gw-logo-lg b { font-size: 24px; }
.gw-pick-title { font-size: 17px; margin: 0 0 6px; }
.gw-pick { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 14px; }
.gw-card { display: flex; flex-direction: column; gap: 10px; padding: 16px; border-radius: 16px; border: 1px solid var(--border); background: var(--surface, #fff); transition: border-color .2s, box-shadow .2s, transform .15s; }
.gw-card:hover { border-color: rgb(var(--accent) / .6); box-shadow: 0 10px 30px -18px rgb(15 23 42 / .45); }
.gw-card.is-open { border-color: rgb(var(--accent)); box-shadow: 0 0 0 3px rgb(var(--accent) / .18); }
.gw-card-main { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 12px; align-items: center; color: inherit; text-decoration: none; }
.gw-card-main:hover { text-decoration: none; }
.gw-card-text { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.gw-card-text strong { font-size: 16px; color: var(--heading, inherit); }
.gw-methods { display: flex; flex-wrap: wrap; gap: 4px; }
.gw-chip { font-size: 11px; font-weight: 600; padding: 2px 8px; border-radius: 999px; background: var(--surface-2, #f1f5f9); color: var(--muted); border: 1px solid var(--border); }
.gw-card-kv { margin: 0; }
.gw-card-foot { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; justify-content: space-between; margin-top: auto; }
.gw-logo-edit summary { cursor: pointer; color: var(--muted); }
.gw-config > summary { cursor: pointer; list-style: none; } .gw-config > summary::-webkit-details-marker { display: none; }
.gw-config-title { display: flex; align-items: center; gap: 10px; }
.gw-config[open] .gw-config-hint { display: none; }
.gw-inline { display: inline-flex; align-items: center; gap: 8px; }
@media (max-width: 640px) { .gw-pick { grid-template-columns: minmax(0, 1fr); } .gw-card-main { grid-template-columns: auto minmax(0, 1fr); } .gw-card-status { grid-column: 1 / -1; } }

/* Itens do menu lateral sempre em uma linha (texto longo termina em reticências; o nome completo aparece ao passar o mouse) */
.nav a > span:not(.count) { min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.nav-cat > span:first-child { min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }


/* Visual clean (tema Claro e Escuro): verde-limão (tom oliva), cores sólidas e sem brilhos */
html[data-skin="premium"] :is(.btn-primary, .btn-gold) { background: rgb(var(--lime)); color: var(--on-lime, #1a2e05); box-shadow: none; }
html[data-skin="premium"] :is(.btn-primary, .btn-gold):hover { background: rgb(var(--lime-2)); }
html[data-skin="premium"] .appbar-avatar { background: rgb(var(--lime) / .18); color: rgb(var(--accent-ink, var(--lime))); }
html[data-skin="premium"][data-theme="neon"] .appbar-avatar { color: rgb(var(--lime-2)); }
html[data-skin="premium"] :is(.bar > span, .rw-progress span, .goal-progress span) { background: rgb(var(--lime)); box-shadow: none !important; }
html[data-skin="premium"] :is(.stat-icon, .brand-logo, .sidebar .brand-logo, .rw-card.state-achieved, .theme-opt:has(input:checked)) { box-shadow: none !important; }
html[data-skin="premium"] .chart rect { filter: none !important; }
html[data-skin="premium"] .stat-icon { background: rgb(var(--lime) / .12) !important; }
html[data-skin="premium"][data-theme="neon-light"] .stat-icon { color: rgb(var(--accent-ink)) !important; }
html[data-skin="premium"][data-theme="neon"] .stat-icon { color: rgb(var(--lime-2)) !important; }
html[data-skin="premium"][data-theme="neon-light"] body { background: var(--bg); }
html[data-skin="premium"][data-theme="neon-light"] .hero-welcome { background: linear-gradient(120deg, #f8fdf0 0%, #eef9dc 100%); }
html[data-skin="premium"][data-theme="neon"] .hero-welcome { background: linear-gradient(120deg, #0e120b 0%, #18220f 100%); border: 1px solid var(--border); }
html[data-skin="premium"][data-theme="neon"] .hero-welcome h2 strong { color: rgb(var(--lime)); }
html[data-skin="premium"][data-theme="neon-light"] .wallet-card { background: #141c0e; }
html[data-skin="premium"] .rw-card.state-achieved { border-color: rgb(var(--lime) / .55); }
html[data-skin="premium"][data-theme="neon"] :is(.card, .rw-card, .app-card) { box-shadow: none; }
html[data-skin="premium"][data-theme="neon-light"] :is(.card, .rw-card, .app-card) { box-shadow: 0 1px 2px rgb(13 20 11 / .04); }
html[data-skin="premium"] .nav-acc a.active::before { background: rgb(var(--lime)); }

/* Escuro: fundo preto puro, barra superior preta e cartões quase pretos com borda fina */
html[data-skin="premium"][data-theme="neon"] body { background: #000000; }
html[data-skin="premium"][data-theme="neon"] .appbar { background: rgb(0 0 0 / .88); border-bottom-color: #1a1c18; }
html[data-skin="premium"][data-theme="neon"] .tabbar { background: rgb(8 8 8 / .94); border-color: #1c1f1a; }
html[data-skin="premium"][data-theme="neon"] .hero-welcome { background: #0a0a0a; border: 1px solid var(--border); }
html[data-skin="premium"][data-theme="neon"] .nav a.active { background: rgb(var(--lime) / .12); }

/* Banner de boas-vindas (sem imagem): tipografia, linha fina em verde-limão no topo e atalhos com seta */
html[data-skin="premium"] .hero-welcome.no-media { position: relative; padding: 30px 32px 26px; border-radius: 20px; border: 1px solid var(--border); overflow: hidden; }
html[data-skin="premium"][data-theme="neon"] .hero-welcome.no-media { background: #0a0a0a; }
html[data-skin="premium"][data-theme="neon-light"] .hero-welcome.no-media { background: #ffffff; }
html[data-skin="premium"] .hero-welcome.no-media::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 2px; background: linear-gradient(90deg, rgb(var(--lime)), rgb(var(--lime) / 0) 70%); }
html[data-skin="premium"] .hero-welcome h2 { font-size: clamp(20px, 2.4vw, 26px); font-weight: 600; letter-spacing: -.01em; color: var(--muted) !important; }
html[data-skin="premium"] .hero-welcome h2 strong { font-size: clamp(34px, 4.4vw, 48px); font-weight: 800; letter-spacing: -.03em; line-height: 1.05; margin-top: 2px; }
html[data-skin="premium"][data-theme="neon"] .hero-welcome h2 strong { color: rgb(var(--lime)); }
html[data-skin="premium"][data-theme="neon-light"] .hero-welcome h2 strong { color: #0d140b; }
html[data-skin="premium"] .hero-welcome p { font-weight: 500; color: var(--muted); opacity: 1; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 6px 26px; margin-top: 20px; }
.hero-link { display: inline-flex; align-items: center; gap: 10px; color: var(--heading, inherit); font-weight: 600; font-size: 14px; text-decoration: none !important; padding: 4px 0; }
.hero-link-ic { display: inline-flex; width: 30px; height: 30px; border-radius: 9px; align-items: center; justify-content: center; background: rgb(var(--lime, var(--accent)) / .14); color: rgb(var(--lime, var(--accent))); transition: background .2s, color .2s; }
html[data-theme="neon-light"] .hero-link-ic { color: rgb(var(--accent-ink, var(--accent))); }
.hero-link-ic svg { width: 16px; height: 16px; }
.hero-link-go { color: var(--muted); transition: transform .2s, color .2s; }
.hero-link:hover .hero-link-ic { background: rgb(var(--lime, var(--accent))); color: var(--on-lime, #1a2e05); }
.hero-link:hover .hero-link-go { transform: translateX(4px); color: rgb(var(--lime, var(--accent))); }
@media (prefers-reduced-motion: reduce) { .hero-link-go { transition: none; } }

/* Menu lateral moderno: sem barra lateral nem caixa; o item ativo destaca o ícone num quadrado verde-limão */
html[data-skin="premium"] .nav a svg { width: 28px; height: 28px; padding: 6px; border-radius: 9px; box-sizing: border-box; flex-shrink: 0; transition: background .2s, color .2s; }
html[data-skin="premium"] .nav a { padding: 6px 10px; gap: 10px; background: transparent; }
html[data-skin="premium"] .nav a:hover { background: transparent; color: var(--heading); }
html[data-skin="premium"] .nav a:hover svg { background: rgb(var(--lime) / .14); }
html[data-skin="premium"] .nav a.active, html[data-skin="premium"][data-theme="neon"] .nav a.active { background: transparent; color: var(--heading); font-weight: 600; box-shadow: none; }
html[data-skin="premium"] .nav a.active svg, html[data-skin="premium"][data-theme="neon"] .nav a.active svg { background: rgb(var(--lime)); color: var(--on-lime, #1a2e05); }
html[data-skin="premium"] .nav-acc a.active::before { display: none; }
html[data-skin="premium"][data-theme="neon-light"] .nav a:hover, html[data-skin="premium"][data-theme="neon"] .nav a:hover { background: transparent; }
