/* ===================== etapa 2: loja, estoque, carteira ===================== */
:root { --warn: #a15c07; --warn-soft: #fff4e0; }
.badge-warn { background: var(--warn-soft); color: var(--warn); }
.alert-warn { background: var(--warn-soft); color: var(--warn); }
.btn-sm { padding: 6px 12px; font-size: 13px; }
.btn .ic { width: 17px; height: 17px; }
.icon-btn { width: 34px; height: 38px; border: 1px solid var(--line); background: #fff; border-radius: 8px; cursor: pointer; font-size: 18px; color: var(--muted); }
.icon-btn:hover { color: var(--err); border-color: var(--err); }
.row-gap { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.row3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.grow { flex: 1; min-width: 0; }
.span2 { grid-column: 1 / -1; }
.mono { font-family: ui-monospace, SFMono-Regular, Consolas, monospace; letter-spacing: .02em; }
.big { font-size: 22px; }
.pos { color: var(--ok); }
.neg { color: var(--err); }
textarea { width: 100%; font: inherit; color: var(--text); background: #fff; border: 1px solid var(--line); border-radius: 8px; padding: 10px 12px; resize: vertical; }
input[type=color] { padding: 2px; height: 42px; }
input[type=file] { padding: 8px; background: #fafbfd; }
.fs { border: 1px solid var(--line); border-radius: 10px; padding: 12px 14px 14px; margin: 0; display: grid; gap: 8px; }
.fs legend { font-size: 13px; color: var(--muted); padding: 0 6px; }
.radio { display: flex; align-items: center; gap: 8px; font-size: 14px; color: var(--text) !important; }
.radio input { width: auto; accent-color: var(--brand); }
.inline-num { width: 110px; display: inline-block; padding: 6px 8px; }
.grid2.tight { gap: 12px; }
.card-title { padding: 16px 16px 4px; }
.card-title h2 { margin: 0; }
.highlight { border: 2px solid var(--brand); }
.empty-card { display: flex; gap: 18px; align-items: center; color: var(--muted); }
.empty-card h2 { color: var(--text); }
.table tr.off td { opacity: .5; }
.table .cell-logo { display: flex; gap: 10px; align-items: center; }

/* logos */
.logo-box { width: 40px; height: 40px; border-radius: 10px; overflow: hidden; display: inline-grid; place-items: center; flex: none; background: #eef1f7; }
.logo-box img { width: 100%; height: 100%; object-fit: cover; }
.logo-box.xs { width: 20px; height: 20px; border-radius: 5px; font-size: 9px; }
.logo-box.sm { width: 34px; height: 34px; border-radius: 8px; font-size: 12px; }
.logo-box.lg { width: 56px; height: 56px; border-radius: 14px; font-size: 18px; }
.logo-box.xl { width: 78px; height: 78px; border-radius: 16px; font-size: 24px; }
.logo-box.xxl { width: 104px; height: 104px; border-radius: 22px; font-size: 32px; }
.logo-ini { color: #fff; font-weight: 800; background: var(--brand); }

/* barra de filtros, abas, paginas */
.toolbar { display: flex; flex-wrap: wrap; gap: 10px; padding: 14px; align-items: center; }
.toolbar input, .toolbar select { max-width: 280px; }
.toolbar input { flex: 1; min-width: 180px; }
.tabs-line { display: flex; gap: 4px; border-bottom: 1px solid var(--line); margin-bottom: 14px; overflow-x: auto; }
.tabs-line a { padding: 10px 14px; text-decoration: none; color: var(--muted); font-weight: 600; font-size: 14px; border-bottom: 2px solid transparent; white-space: nowrap; }
.tabs-line a.on { color: var(--brand); border-bottom-color: var(--brand); }
.pager { display: flex; gap: 6px; justify-content: center; margin: 4px 0 20px; }
.pager a, .pager span { min-width: 34px; height: 34px; display: grid; place-items: center; border-radius: 8px; background: #fff; text-decoration: none; font-size: 14px; box-shadow: var(--shadow); }
.pager .on { background: var(--brand); color: #fff; }
.pager .dots { background: none; box-shadow: none; }

/* loja */
.product-list { display: grid; gap: 12px; }
.product-row { display: grid; grid-template-columns: auto 1fr 220px 90px; gap: 18px; align-items: center; text-decoration: none; margin: 0; transition: box-shadow .15s, transform .15s; }
.product-row:hover { box-shadow: 0 6px 24px rgba(20, 24, 40, .1); transform: translateY(-1px); }
.product-row h3 { margin: 0 0 6px; font-size: 16px; display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.meta { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; font-size: 13px; color: var(--muted); }
.meta li::before { content: "\2022"; margin-right: 6px; color: #c3c8d4; }
.pr-store { display: flex; align-items: center; gap: 6px; font-size: 12px; color: var(--muted); margin: 8px 0 0; }
.tiers { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; font-size: 13px; }
.tiers li { display: flex; justify-content: space-between; gap: 10px; }
.tiers b { color: #d1235f; }
.tiers small { color: var(--muted); font-weight: 400; }
.pr-stock { text-align: center; display: grid; }
.pr-stock b { font-size: 20px; }

/* produto */
.grid-buy { display: grid; grid-template-columns: 1fr 360px; gap: 18px; align-items: start; }
.grid-buy .card { margin: 0; }
.pd-head { display: flex; gap: 18px; align-items: center; margin-bottom: 16px; }
.desc { background: #fafbfd; border-radius: 10px; padding: 12px 14px; font-size: 14px; margin: 14px 0; word-break: break-word; }
.buy-box { position: sticky; top: 80px; }
.quote { display: flex; align-items: baseline; gap: 8px; background: var(--brand-soft); border-radius: 10px; padding: 12px 14px; flex-wrap: wrap; }
.quote span { flex: 1; color: var(--muted); font-size: 13px; }
.quote b { font-size: 20px; color: var(--brand); }

/* cartoes de app/loja */
.cards-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 14px; align-content: start; }
.cards-grid .card { margin: 0; }
.app-card, .store-card { display: flex; gap: 14px; align-items: center; }
.app-card h3, .store-card h3 { margin: 0 0 4px; font-size: 16px; }
.app-card p, .store-card p { margin: 0; }

/* entrega de codigos */
.code-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 10px; }
.code-card { background: #fff; border-radius: 10px; box-shadow: var(--shadow); padding: 12px 14px; display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.code-card .code-text { font-size: 16px; font-weight: 700; }
.code-card.used { opacity: .55; }
.cred { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 12px; margin: 12px 0 16px; }
.cred div { background: #fafbfd; border-radius: 10px; padding: 10px 12px; display: grid; }
.pix-box { display: grid; gap: 2px; background: #f5f7fc; border: 1px dashed #c9d3ea; border-radius: 10px; padding: 12px 14px; margin: 10px 0; word-break: break-all; }
[data-copy] { cursor: pointer; }
[data-copy]:hover { color: var(--brand); }
.copied::after { content: " \2713"; color: var(--ok); }

/* carteira */
.balance-card { display: flex; justify-content: space-between; align-items: center; color: #fff; border-radius: 16px; padding: 22px 26px; margin-bottom: 18px;
  background: linear-gradient(120deg, #1e3a8a, var(--brand) 55%, var(--brand-2)); box-shadow: 0 10px 30px rgba(37, 99, 235, .25); }
.balance-card span { display: block; opacity: .8; font-size: 13px; }
.balance-card b { font-size: 34px; margin-right: 6px; }
.balance-card .ic { width: 56px; height: 56px; opacity: .35; }
.wallet-pill { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 99px; background: var(--brand-soft); color: var(--brand); text-decoration: none; font-size: 14px; }
.wallet-pill .ic { width: 17px; height: 17px; }

/* inicio */
.hero { display: flex; justify-content: space-between; align-items: center; gap: 20px; flex-wrap: wrap; color: #fff; border-radius: 16px; padding: 24px 28px; margin-bottom: 20px;
  background: radial-gradient(circle at 85% 20%, rgba(255, 255, 255, .18), transparent 40%), linear-gradient(120deg, #111827, #1e3a8a 60%, var(--brand)); }
.hero h1 { color: #fff; }
.hero p { margin: 4px 0 0; opacity: .85; max-width: 640px; }
.hero-store { background: rgba(255, 255, 255, .12); border-radius: 12px; padding: 12px 16px; display: grid; text-align: center; }
.hero-store span { font-size: 12px; opacity: .8; }
.hero-store b { font-size: 22px; }
a.tile { text-decoration: none; transition: transform .15s; }
a.tile:hover { transform: translateY(-2px); }
.mini small { display: block; font-weight: 400; font-size: 12px; color: var(--muted); }
.mini-tiles .tile { box-shadow: none; background: #f6f7fb; padding: 12px; }
.steps-list { margin: 0; padding-left: 22px; display: grid; gap: 8px; }
.steps-list li.done { color: var(--muted); text-decoration: line-through; }
.setup { border-left: 4px solid var(--brand); }

/* tabela de precos (editor) e combo */
.tier-editor { display: grid; gap: 8px; }
.tier-head { display: grid; grid-template-columns: 1fr 1fr 34px; gap: 8px; font-size: 12px; color: var(--muted); }
.tier-row { display: grid; grid-template-columns: 1fr 1fr 34px; gap: 8px; }
.combo-row { display: grid; grid-template-columns: 1fr 90px 34px; gap: 8px; margin-bottom: 8px; }
.tier-editor .btn { justify-self: start; }
.product-form { display: grid; gap: 14px; }

/* menu: contadores */
.bubble { font-style: normal; background: #ef4444; color: #fff; font-size: 11px; font-weight: 700; min-width: 18px; height: 18px; border-radius: 99px; display: inline-grid; place-items: center; padding: 0 5px; margin-left: 6px; }
.nav-item { display: flex; align-items: center; justify-content: space-between; }

/* aparelhos e outros */
.dev-list { list-style: none; margin: 0 0 10px; padding: 0; display: grid; gap: 8px; }
.dev-list li { display: flex; justify-content: space-between; align-items: center; gap: 10px; background: #fafbfd; border-radius: 10px; padding: 10px 12px; }
.store-head { display: flex; gap: 16px; align-items: center; }
.invite-head { display: flex; gap: 14px; align-items: center; }
.narrow-wide { max-width: 860px; }

@media (max-width: 980px) {
  .grid-buy { grid-template-columns: 1fr; }
  .buy-box { position: static; }
  .product-row { grid-template-columns: auto 1fr; }
  .pr-price, .pr-stock { grid-column: 2; text-align: left; }
}
@media (max-width: 760px) {
  .row2, .row3 { grid-template-columns: 1fr; }
  .wallet-pill b { display: none; }
  .hero { padding: 18px; }
  .balance-card b { font-size: 28px; }
}

/* Recarga: formulario em linha + barra de filtros em grade (0.2.1) */
.recharge-form { display: grid; grid-template-columns: 2fr 1.4fr 1.4fr auto; gap: 12px; align-items: end; }
.filter-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 12px 14px; padding: 16px; align-items: end; }
.filter-grid label { display: flex; flex-direction: column; gap: 6px; font-size: 13px; color: var(--muted); }
.filter-grid .range { display: flex; align-items: center; gap: 6px; }
.filter-grid .range input { min-width: 0; flex: 1; }
.filter-grid .range span { color: var(--muted); }
.filter-actions { display: flex; gap: 8px; }
.table-wrap { overflow-x: auto; }
@media (max-width: 760px) {
  .recharge-form { grid-template-columns: 1fr; }
}

/* Cadastro e seguir loja (0.3.0) */
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.mt { margin-top: 18px; }
.signup-store { margin-top: 4px; }
.follow-row { display: grid; grid-template-columns: 220px 1fr auto; gap: 10px; }
@media (max-width: 760px) {
  .follow-row { grid-template-columns: 1fr; }
}

/* ===== Hubloja (0.4.0): cores tiradas da logo =====
   azul-noite #00103d (Hub) · azul #013db6 (o "play") · laranja #fb4d00/#ff8103 (loja) · verde-agua #00d3cd · roxo #a727fb · amarelo #fed504 */
:root {
  --brand: #0b46c9;
  --brand-2: #00b3c7;
  --brand-soft: #e8efff;
  --accent: #fb5a00;
  --accent-2: #ff8a12;
  --teal: #00d3cd;
  --navy: #00103d;
  --side: #0c1736;
  --side-2: #08112a;
  --side-text: #b4bdd6;
}
.btn-primary { background: linear-gradient(90deg, var(--accent-2), var(--accent)); box-shadow: 0 4px 14px rgba(251, 90, 0, .22); }
.btn-primary:hover { filter: brightness(1.05); box-shadow: 0 6px 18px rgba(251, 90, 0, .3); }
.side { background: linear-gradient(180deg, #0f1d44 0%, var(--side) 38%, var(--side-2) 100%); }
.brand { gap: 10px; padding: 16px 18px; font-size: 21px; letter-spacing: -.3px; }
.brand img { width: 44px; height: 44px; object-fit: contain; filter: drop-shadow(0 3px 6px rgba(0, 0, 0, .35)); transition: transform .2s; }
.brand:hover img { transform: rotate(-6deg) scale(1.06); }
.wm-a { color: inherit; font-weight: 800; }
.wm-b { color: var(--accent-2); font-weight: 800; }
.nav-top.on, .nav-item.on { box-shadow: inset 3px 0 0 var(--teal); }
.nav-item.on { background: rgba(0, 211, 205, .12); }
.nav-head .bubble, .nav-item .bubble { background: var(--accent); }
.avatar { background: linear-gradient(135deg, var(--brand), var(--teal)); }
.tab.on { color: var(--brand); }
input:focus, select:focus, textarea:focus { outline: 3px solid rgba(0, 211, 205, .22); border-color: var(--teal); }

/* tela de entrada com a mascote */
body.auth { background:
  radial-gradient(900px 520px at -10% -10%, rgba(0, 211, 205, .16), transparent 60%),
  radial-gradient(800px 480px at 110% 110%, rgba(251, 90, 0, .12), transparent 60%),
  radial-gradient(600px 400px at 100% 0%, rgba(167, 39, 251, .07), transparent 60%),
  #f7f8fc; }
.auth-box { max-width: 400px; background: rgba(255, 255, 255, .92); border: 1px solid var(--line); border-radius: 18px; padding: 26px 24px 22px;
  box-shadow: 0 10px 40px rgba(0, 16, 61, .08); margin-top: 8px; }
.auth-brand { margin: -6px 0 12px; }
.auth-brand img { width: 150px; height: 150px; object-fit: contain; filter: drop-shadow(0 8px 14px rgba(0, 16, 61, .14)); animation: hub-bob 4s ease-in-out infinite; }
@keyframes hub-bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-5px); } }
@media (prefers-reduced-motion: reduce) { .auth-brand img { animation: none; } }
@media (max-width: 760px) {
  .auth-box { border: 0; box-shadow: none; background: transparent; padding: 14px 16px; }
  .auth-brand img { width: 120px; height: 120px; }
}
