/* ═══════════════════════════════════════════════
   Loja — Tema minimalista
   Paleta: 60% roxo azulado + 30% amarelo + 10% branco.

   Saturação e luminosidade command: as duas cores de marca ficam
   perto (h247/l58 e h42/l57) para competirem no mesmo peso. Antes
   eram l62 e l62 com s85 e s100 — dois tons saturados no mesmo
   brilho, o que faz os dois brigarem na tela em vez de o roxo
   dominar. O --warn é laranja (h24), separado 18° do amarelo, para
   um pedido "aguardando" não parecer destaque da marca.

   As duas rampas são sobrescritas em runtime pelo site.js
   a partir de theme.brandColor e theme.accentColor.
   Sem vídeo de fundo, sem partículas, sem blur.
   Só transições de transform/border/background.
   ═══════════════════════════════════════════════ */
:root {
  /* --- 60% roxo azulado: estrutura, fundo, botões, ativos --- */
  --brand: #5b4bdb;
  --brand-dark: #3e3395;
  --brand-glow: #a59ceb;
  --brand-ink: #ffffff;   /* texto dentro de botão com fundo --brand */
  --brand-rgb: 91,75,219;

  /* --- 30% amarelo: destaque, preço, carrinho, selos --- */
  --accent: #e5b23c;
  --accent-dark: #9c7929;
  --accent-glow: #f1d594;
  --accent-ink: #0b0917;  /* texto dentro de botão com fundo --accent */
  --accent-rgb: 229,178,60;

  /* --- 10% branco + neutros tingidos de roxo --- */
  --bg: #0b0917;
  --bg-soft: #100c1f;
  --surface: #15112e;
  --surface-2: #1c1740;
  --surface-3: #262050;
  --border: rgba(165,156,235,.16);
  --border-strong: rgba(165,156,235,.30);
  --border-accent: rgba(var(--brand-rgb),.40);
  --border-gold: rgba(var(--accent-rgb),.34);
  --text: #f3f2f8;
  --text-2: #c6c3d6;
  --muted: #948fab;

  /* Semânticas (fixas, não são decoração) — verde/vermelho são
     usados só para status de pedido; não contam na paleta. */
  --ok: #3ecf8e;
  --ok-bg: rgba(62,207,142,.13);
  --warn: #e07b39;
  --warn-bg: rgba(224,123,57,.13);
  --danger: #f0616d;
  --danger-bg: rgba(240,97,109,.13);

  --radius: 14px;
  --radius-sm: 10px;
}

*, *::before, *::after { box-sizing: border-box; }

body.site-body {
  margin: 0;
  min-height: 100vh;
  position: relative;
  background: var(--bg);
  color: var(--text);
  font-family: 'Roboto', Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* ── Fundo estático ─────────────────────────────
   Duas camadas, sem animação, sem video, sem canvas,
   sem backdrop-filter. Custo zero de composição.
   O brilho do topo usa --brand-rgb, então o roxo do
   tema aparece no fundo sem nenhuma cor fixa aqui. */
.bg-layer { position: fixed; inset: 0; z-index: -3; pointer-events: none; }
.bg-layer .bg-image {
  position: absolute; inset: 0;
  background-color: var(--bg);
  background-image:
    radial-gradient(120% 80% at 50% -25%, rgba(var(--brand-rgb),.22) 0%, transparent 58%),
    radial-gradient(80% 50% at 88% 8%, rgba(var(--accent-rgb),.07) 0%, transparent 62%);
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
}
.bg-layer .bg-wash {
  position: absolute; inset: 0;
  /* usa rgb do próprio --bg em vez de um valor fixo, para acompanhar o tema */
  background: linear-gradient(180deg, color-mix(in srgb, var(--bg) 30%, transparent) 0%, color-mix(in srgb, var(--bg) 72%, transparent) 62%, var(--bg) 100%);
}

a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }

.wrap { width: 100%; max-width: 1180px; margin: 0 auto; padding: 0 20px; }

/* ── Top navbar (pill) ────────────────────────── */
.topnav { position: sticky; top: 0; z-index: 150; padding: 12px 20px 0; display: flex; justify-content: center; }
.topnav-inner {
  width: fit-content; max-width: calc(100% - 40px); margin: 0 auto;
  display: flex; align-items: center; gap: 8px;
  background: var(--surface-2);
  border: 1px solid var(--border-strong);
  border-radius: 999px; padding: 6px 9px;
  box-shadow: 0 6px 22px rgba(0,0,0,.45);
}
.topnav-logo {
  width: 30px; height: 30px; border-radius: 50%; overflow: hidden; flex-shrink: 0;
  background: var(--surface-3);
  display: flex; align-items: center; justify-content: center;
  font-weight: 900; font-size: 11px; color: var(--text-2);
}
.topnav-logo img { width: 100%; height: 100%; object-fit: cover; }
.topnav-links { display: flex; align-items: center; gap: 6px; flex: 0 0 auto; }
/* controle segmentado: trilho visível separando os itens */
.nav-icon-group {
  display: flex; align-items: center; gap: 2px;
  background: var(--bg-soft); border: 1px solid var(--border);
  border-radius: 999px; padding: 3px;
}
.topnav-link {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 7px 13px; border-radius: 999px;
  font-size: 12.5px; font-weight: 700; color: var(--text-2);
  border: 1px solid transparent; background: transparent; white-space: nowrap;
  transition: background-color .15s, color .15s, border-color .15s;
}
.topnav-link:hover { background: var(--surface-3); color: var(--text); border-color: var(--border-strong); }
.topnav-link.active { background: var(--brand); color: var(--brand-ink); border-color: transparent; }
.topnav-link.icon { padding: 7px 12px; }

/* Rótulo SEMPRE visível.
   Antes era `max-width: 0; opacity: 0` e só abria no :hover — o menu ficava
   ilegível até o mouse passar por cima, e o item ativo ficava só-ícone.
   Sem estado oculto, sem transição de largura, sem JS de revelação. */
.nav-icon-group .topnav-link.icon .label-text {
  display: inline-block; max-width: none; opacity: 1; overflow: visible;
  white-space: nowrap;
}

.nav-divider { width: 1px; height: 22px; background: var(--border); flex-shrink: 0; }
.topnav-right { display: flex; align-items: center; gap: 6px; position: relative; }

/* ── Dropdown da conta ────────────────────────── */
.nav-account-wrap { position: relative; }
.account-dropdown {
  position: absolute; top: calc(100% + 10px); right: 0; min-width: 200px;
  background: var(--surface-2); border: 1px solid var(--border); border-radius: 12px;
  box-shadow: 0 12px 32px rgba(0,0,0,.5); padding: 6px; z-index: 250;
  opacity: 0; transform: translateY(-6px); pointer-events: none;
  transition: opacity .16s ease, transform .16s ease;
}
.account-dropdown.open { opacity: 1; transform: translateY(0); pointer-events: auto; }
.account-dropdown-head {
  padding: 10px 12px 8px; font-size: 11px; color: var(--muted);
  border-bottom: 1px solid var(--border); margin-bottom: 4px;
}
.account-dropdown-head strong { display: block; color: var(--text); font-size: 13px; margin-top: 2px; }
.account-dropdown a, .account-dropdown button {
  display: flex; align-items: center; gap: 8px; width: 100%; text-align: left;
  background: none; border: none; color: var(--text-2); font-size: 13px; font-weight: 600;
  padding: 9px 10px; border-radius: 8px; transition: background-color .12s, color .12s;
}
.account-dropdown a:hover, .account-dropdown button:hover { background: var(--surface-3); color: var(--text); }
.account-dropdown button.danger { color: var(--danger); }
.account-dropdown button.danger:hover { color: var(--danger); background: var(--danger-bg); }

.topnav-cart {
  display: inline-flex; align-items: center; gap: 7px;
  background: var(--accent); color: var(--accent-ink); border: 1px solid transparent;
  padding: 6px 14px; border-radius: 999px; font-weight: 800; font-size: 12.5px;
  transition: background-color .15s, border-color .15s;
}
.topnav-cart:hover { background: var(--accent-dark); border-color: var(--border-strong); }
.nav-player-pill { display: inline-flex; align-items: center; gap: 7px; background: rgba(255,255,255,.06); }
.nav-player-pill img { width: 20px; height: 20px; border-radius: 5px; }
.cart-count-badge {
  background: rgba(0,0,0,.25); border-radius: 999px;
  min-width: 20px; height: 20px; padding: 0 5px;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 11px; font-weight: 900;
}

/* ── Hero ─────────────────────────────────────── */
.hero { padding: 64px 0 40px; }
.hero-grid { display: flex; align-items: center; justify-content: space-between; gap: 40px; flex-wrap: wrap; }
.hero-text { flex: 1; min-width: 280px; }
.hero-title { font-size: clamp(28px, 4.2vw, 44px); font-weight: 900; line-height: 1.15; margin: 0 0 16px; }
.hero-title .brand-word { color: var(--accent); }
.hero-subtitle { color: var(--muted); font-size: 15px; max-width: 480px; margin: 0 0 26px; line-height: 1.6; }
.hero-cta-row { display: flex; gap: 12px; flex-wrap: wrap; }
/* Base dos botoes.
   Antes `.btn-primary` e `.btn-secondary` repetiam as mesmas cinco
   declaracoes, e o HTML usava `class="btn btn-secondary pay-go"` sem que
   `btn` tivesse regra nenhuma: o botao so ficava bom por sorte de estar
   do lado de uma variante. Se alguem usasse `btn` sozinho, saia um pedaco
   de texto sem cara de botao. Agora a base existe e vale sozinha. */
.btn,
.btn-primary,
.btn-secondary {
  padding: 12px 20px; border-radius: 10px; font-size: 14px;
  display: inline-flex; align-items: center; gap: 8px;
  transition: background-color .15s, border-color .15s;
}
/* Neutro, o mesmo da variante secundaria, para `btn` nao ficar pelado. */
.btn {
  background: var(--surface-2); color: var(--text); border: 1px solid var(--border);
  font-weight: 700;
}
.btn-primary {
  background: var(--brand); color: var(--brand-ink); border: 1px solid transparent;
  font-weight: 800;
}
.btn-primary:hover { background: var(--brand-dark); }
.btn-secondary {
  background: var(--surface-2); color: var(--text); border: 1px solid var(--border);
  font-weight: 700;
}
.btn-secondary:hover { background: var(--surface-3); border-color: var(--border-strong); }
.hero-crest-wrap { flex-shrink: 0; display: flex; flex-direction: column; align-items: center; gap: 10px; }
.hero-crest {
  width: clamp(180px, 20vw, 260px); height: clamp(180px, 20vw, 260px); object-fit: contain;
  /* Entrada ÚNICA, sem loop.
     Antes: `crestFloat 9s ease-in-out infinite alternate` — um translateY
     de ±8px sem parar, sobre um PNG RGBA de 415px com 50% de pixels
     transparentes, dentro de um flex cujo tamanho vinha de clamp(...,20vw,...).
     Três fatores juntos derrubavam o FPS:
       1. camada de composição viva para sempre, mesmo com a página parada;
       2. `vw` recalcula a cada mudança de largura da viewport (a scrollbar
          some quando o carrinho abre) e invalida a animação no meio do quadro;
       3. sem `will-change`, a promoção para camada era heurística e podia ser
          descartada sob pressão de memória — aí o transform cai para paint
          na thread principal, que é o travamento visível.
     Sem loop infinito não há camada permanente nem repaint por quadro. */
  animation: crestIn .55s cubic-bezier(.2,.7,.3,1) both;
}
@keyframes crestIn {
  from { opacity: 0; transform: translateY(14px) scale(.95); }
  to   { opacity: 1; transform: none; }
}
.hero-season-tag {
  font-size: 12px; letter-spacing: 2px; color: var(--muted); font-weight: 700;
  border-top: 1px solid var(--border); padding-top: 8px; width: 100%; text-align: center;
}

/* ── Stat cards ───────────────────────────────── */
.stat-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; padding: 0 0 40px; }
.stat-card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 16px 18px; display: flex; align-items: center; gap: 12px;
  transition: border-color .15s;
}
.stat-card:hover { border-color: var(--border-strong); }
.stat-card .stat-icon { font-size: 20px; color: var(--accent); }
.stat-card strong { display: block; font-size: 14px; }
.stat-card span { display: block; font-size: 12px; color: var(--muted); margin-top: 2px; }

/* ── Títulos de seção ─────────────────────────── */
.section-title { font-size: 18px; font-weight: 800; margin: 0 0 16px; display: flex; align-items: center; gap: 8px; }
.section-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; }
.section-link { color: var(--brand-glow); font-size: 13px; font-weight: 700; }
.section-link:hover { color: var(--text); }

/* ── Grade e cards de produto ─────────────────── */
.product-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 16px; }
.product-card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  overflow: hidden; display: flex; flex-direction: column;
  transition: border-color .15s, transform .15s;
}
.product-card:hover { border-color: var(--border-strong); transform: translateY(-2px); }
/* a imagem é o gatilho do modal de detalhes; é um <button>, não <a> */
.product-card-media {
  position: relative; display: block; width: 100%; padding: 0; border: 0; background: none;
  cursor: pointer; line-height: 0;
}
.product-card-media:focus-visible { outline: 2px solid var(--brand); outline-offset: -2px; }
.product-card-media img { width: 100%; aspect-ratio: 1/1; object-fit: cover; background: var(--bg-soft); }
.product-card-noimg { display: grid; place-items: center; aspect-ratio: 1/1; font-size: 40px; background: var(--bg-soft); line-height: 1; }
.product-card-media .price-discount { position: absolute; top: 8px; left: 8px; line-height: 1.4; }
.product-card-soldout {
  position: absolute; inset: auto 0 0 0; background: rgba(0,0,0,.72); color: #fff;
  font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: .6px;
  padding: 6px; text-align: center; line-height: 1.4;
}
.product-card-body { padding: 14px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.product-card-title { font-size: 14px; font-weight: 800; margin: 0; }
.product-card-summary {
  font-size: 12px; color: var(--muted); margin: 0; line-height: 1.5; flex: 1;
  display: -webkit-box; -webkit-line-clamp: 2; line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.price-row { display: flex; align-items: baseline; gap: 8px; margin-top: 4px; }
.price-old { text-decoration: line-through; color: var(--muted); font-size: 12px; }
.price-now { color: var(--accent); font-weight: 900; font-size: 17px; }
.price-discount { background: rgba(var(--accent-rgb),.15); color: var(--accent-glow); font-size: 11px; font-weight: 800; padding: 2px 6px; border-radius: 6px; }
.product-card-actions { display: flex; gap: 8px; margin-top: 10px; padding: 0 14px 14px; }
.product-card-actions .btn-primary { flex: 1; justify-content: center; padding: 9px 10px; font-size: 12px; border-radius: 8px; }
.btn-plain {
  display: inline-flex; align-items: center; justify-content: center; padding: 9px 12px;
  border-radius: 8px; font-size: 12px; font-weight: 700; color: var(--text-2);
  border: 1px solid var(--border); transition: border-color .15s, color .15s;
}
.btn-plain:hover { border-color: var(--border-strong); color: var(--text); }

/* ── Página de produto ────────────────────────── */
.product-detail-grid { display: grid; grid-template-columns: minmax(260px, 400px) 1fr; gap: 30px; align-items: start; }
.product-detail-image {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); overflow: hidden;
  display: flex; align-items: center; justify-content: center;
}
.product-detail-image img { width: 100%; height: auto; max-height: 420px; display: block; object-fit: contain; }
.product-detail-info h1 { font-size: 26px; margin: 0; }
.product-detail-payment-note { font-size: 12px; color: var(--muted); display: block; margin-bottom: 18px; }
.product-detail-desc-box {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 10px; padding: 14px 16px; margin-bottom: 18px;
}
.product-detail-desc-label { font-size: 11px; text-transform: uppercase; letter-spacing: .5px; color: var(--muted); font-weight: 700; }
.product-detail-desc-box p { margin: 8px 0 0; font-size: 13px; color: var(--text-2); line-height: 1.6; }
.product-detail-feature-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-top: 34px; }

/* ── Loja: lateral de categorias + área de produtos ── */
.shop-layout {
  display: grid; grid-template-columns: 264px minmax(0, 1fr); gap: 22px;
  padding: 26px 0 60px; align-items: start;
}

.shop-sidebar {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); overflow: hidden;
  position: sticky; top: 84px; max-height: calc(100vh - 104px);
  display: flex; flex-direction: column;
}
.shop-sidebar-head {
  display: flex; align-items: baseline; justify-content: space-between; gap: 8px;
  padding: 13px 14px; border-bottom: 1px solid var(--border);
  background: var(--surface-2);
}
.shop-sidebar-title { font-size: 12px; font-weight: 800; text-transform: uppercase; letter-spacing: .6px; }
.shop-sidebar-title::before { content: "🏷️ "; }
.shop-sidebar-hint { font-size: 11px; color: var(--muted); font-weight: 700; }
.shop-sidebar-list { overflow-y: auto; padding: 8px; display: flex; flex-direction: column; gap: 3px; }

.shop-side-item,
.shop-group-btn,
.shop-side-sub {
  display: flex; align-items: center; gap: 9px; width: 100%;
  padding: 9px 10px; border: 1px solid transparent; border-radius: 8px;
  background: none; color: var(--text-2); font-size: 13px; font-weight: 700;
  text-align: left; cursor: pointer; font-family: inherit;
  transition: background-color .12s, color .12s, border-color .12s;
}
.shop-side-item:hover,
.shop-group-btn:hover,
.shop-side-sub:hover { background: var(--surface-2); color: var(--text); }
.shop-side-item.active { background: rgba(var(--brand-rgb),.16); border-color: rgba(var(--brand-rgb),.4); color: var(--brand-glow); }
.shop-side-icon { font-size: 15px; line-height: 1; flex-shrink: 0; }
.shop-side-name { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.shop-side-count {
  font-size: 11px; font-weight: 800; color: var(--muted);
  background: var(--surface-2); border-radius: 999px; padding: 1px 7px; flex-shrink: 0;
}
.shop-side-item.active .shop-side-count { background: rgba(var(--brand-rgb),.25); color: var(--brand-glow); }

/* a gaveta abre/fecha por atributo de dado — sem JS de animação */
.shop-group { border-radius: 8px; }
.shop-group[data-open="true"] > .shop-group-btn {
  background: var(--surface-2); color: var(--text); border-color: var(--border);
  border-bottom-left-radius: 0; border-bottom-right-radius: 0;
}
.shop-group-chev {
  width: 7px; height: 7px; flex-shrink: 0; margin-right: 2px;
  border-right: 2px solid currentColor; border-bottom: 2px solid currentColor;
  transform: rotate(45deg); opacity: .55;
  transition: transform .18s ease, opacity .18s ease;
}
.shop-group[data-open="true"] .shop-group-chev { transform: rotate(-135deg); opacity: 1; }
.shop-group-panel { display: none; flex-direction: column; gap: 2px; padding: 4px 0 6px 6px; margin-left: 12px; border-left: 1px solid var(--border); }
.shop-group[data-open="true"] .shop-group-panel { display: flex; }
.shop-side-sub { font-size: 12.5px; font-weight: 600; padding: 7px 10px; }
.shop-side-sub .shop-side-icon { font-size: 12px; }
.shop-side-sub.active { background: rgba(var(--accent-rgb),.14); border-color: rgba(var(--accent-rgb),.38); color: var(--accent-glow); }
.shop-side-sub.active .shop-side-count { background: rgba(var(--accent-rgb),.22); color: var(--accent-glow); }

.shop-content { min-width: 0; }
.shop-head {
  display: flex; align-items: flex-end; justify-content: space-between;
  gap: 16px; flex-wrap: wrap; margin-bottom: 18px; scroll-margin-top: 84px;
}
.shop-head-text { min-width: 0; }
.shop-head .breadcrumb { margin-bottom: 5px; }
.shop-head-count { color: var(--muted); font-weight: 600; font-size: 13px; margin-left: 6px; }
.shop-search-input {
  background: var(--surface-2); border: 1px solid var(--border); color: var(--text);
  padding: 9px 12px; border-radius: 9px; font-size: 13px; width: 210px; max-width: 100%;
  transition: border-color .15s;
}
.shop-search-input:focus { outline: none; border-color: var(--brand); }

.filter-pills { display: flex; gap: 8px; margin-bottom: 18px; flex-wrap: wrap; }
.topbuyer-strip {
  display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin-bottom: 26px;
  padding: 12px 16px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
}
.topbuyer-strip h3 { font-size: 12px; text-transform: uppercase; letter-spacing: .5px; color: var(--muted); margin: 0; flex-shrink: 0; }
.topbuyer-row { display: flex; align-items: center; gap: 6px; font-size: 12px; color: var(--text-2); background: var(--surface-2); padding: 4px 10px 4px 4px; border-radius: 999px; }
.topbuyer-row img { width: 22px; height: 22px; border-radius: 50%; }
.topbuyer-rank { color: var(--accent); font-weight: 800; }
.breadcrumb { font-size: 12px; color: var(--muted); margin-bottom: 12px; }
.breadcrumb a:hover { color: var(--text); }
.breadcrumb b { color: var(--text); }

/* ── Sidebar da home ──────────────────────────── */
.home-grid { display: grid; grid-template-columns: 1fr 300px; gap: 22px; align-items: start; }
.home-sidebar { display: flex; flex-direction: column; gap: 16px; }
.side-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 16px; }
.side-card h3 { font-size: 14px; margin: 0 0 12px; display: flex; align-items: center; gap: 6px; }
.novidade-item { display: flex; align-items: center; gap: 10px; padding: 10px 0; border-top: 1px solid var(--border); }
.novidade-item:first-child { border-top: none; padding-top: 0; }
.novidade-thumb { width: 44px; height: 44px; border-radius: 8px; object-fit: cover; flex-shrink: 0; background: var(--surface-2); }
.novidade-thumb-fallback { display: flex; align-items: center; justify-content: center; font-size: 16px; }
.novidade-text { display: flex; flex-direction: column; min-width: 0; }
.novidade-item strong { display: block; font-size: 13px; margin-bottom: 3px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.novidade-item:hover strong { color: var(--brand-glow); }
.novidade-item span { font-size: 11px; color: var(--muted); }
.discord-card p { font-size: 12px; color: var(--muted); margin: 0 0 12px; line-height: 1.6; }
.discord-card .btn-primary { width: 100%; justify-content: center; }

/* ── Painel de top compradores ────────────────── */
.topbuyers-panel { margin-top: 34px; }
.topbuyers-panel-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; flex-wrap: wrap; }
.topbuyers-panel-head .section-title { margin: 0; }
.topbuyers-toggle { display: flex; align-items: center; background: var(--surface-2); border: 1px solid var(--border); border-radius: 999px; padding: 3px; }
.topbuyers-toggle-btn {
  background: none; border: none; color: var(--muted); font-size: 12.5px; font-weight: 700;
  padding: 7px 14px; border-radius: 999px; transition: background-color .15s, color .15s;
}
.topbuyers-toggle-btn.active { background: var(--brand); color: var(--brand-ink); }
.topbuyer-champion {
  display: flex; align-items: center; gap: 14px;
  background: var(--surface); border: 1px solid var(--border-gold);
  border-radius: var(--radius); padding: 16px 18px; margin-bottom: 10px;
}
.topbuyer-champion-crown { font-size: 20px; flex-shrink: 0; }
.topbuyer-champion-avatar { width: 48px; height: 48px; border-radius: 10px; flex-shrink: 0; image-rendering: pixelated; box-shadow: 0 0 0 2px var(--border-strong); }
.topbuyer-champion-info { display: flex; flex-direction: column; gap: 2px; min-width: 0; flex: 1; }
.topbuyer-champion-label { font-size: 10.5px; font-weight: 800; letter-spacing: .5px; color: var(--accent); text-transform: uppercase; }
.topbuyer-champion-info strong { font-size: 15px; }
.topbuyer-champion-sub { font-size: 12px; color: var(--muted); }
.topbuyer-champion-amount { text-align: right; flex-shrink: 0; }
.topbuyer-champion-amount strong { display: block; font-size: 16px; font-weight: 900; color: var(--text); }
.topbuyer-champion-amount span { font-size: 11px; color: var(--muted); }
.topbuyer-list-row {
  display: flex; align-items: center; gap: 12px;
  background: var(--surface-2); border: 1px solid var(--border);
  border-radius: 10px; padding: 10px 14px; margin-bottom: 8px;
}
.topbuyer-list-rank { font-size: 14px; width: 22px; text-align: center; flex-shrink: 0; color: var(--muted); font-weight: 800; }
.topbuyer-list-avatar { width: 30px; height: 30px; border-radius: 7px; flex-shrink: 0; image-rendering: pixelated; }
.topbuyer-list-info { display: flex; flex-direction: column; gap: 1px; min-width: 0; flex: 1; }
.topbuyer-list-info strong { font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.topbuyer-list-info span { font-size: 11px; color: var(--muted); }
.topbuyer-list-amount { font-size: 13px; font-weight: 800; color: var(--text); flex-shrink: 0; }

/* ── Card de perfil ───────────────────────────── */
.profile-card { padding: 0; overflow: hidden; }
.profile-card-banner {
  height: 64px; display: flex; align-items: flex-end; padding: 0 14px;
  /* a cortina é o --bg do tema, não um preto neutro: com cinza ficava
     um retângulo sujo em cima da foto num site roxo. */
  background:
    linear-gradient(180deg, rgba(11,9,23,.10), rgba(11,9,23,.88)),
    url("/img/profile-banner.jpg") center 65%/cover no-repeat;
}
.profile-card-avatar {
  width: 46px; height: 46px; border-radius: 10px; transform: translateY(50%);
  image-rendering: pixelated; box-shadow: 0 0 0 3px var(--surface);
}
.profile-card-body { padding: 30px 14px 14px; }
.profile-card-name-row { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 14px; }
.profile-card-name-row strong { font-size: 14px; }
.profile-card-edit { font-size: 11px; font-weight: 700; color: var(--brand-glow); display: inline-flex; align-items: center; gap: 4px; white-space: nowrap; }
.profile-card-edit:hover { text-decoration: underline; }
.profile-card-rank-row { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-bottom: 12px; }
.profile-card-rank-box { background: var(--surface-2); border: 1px solid var(--border); border-radius: 9px; padding: 9px 10px; text-align: center; }
.profile-card-rank-box span { display: block; font-size: 9.5px; font-weight: 700; letter-spacing: .4px; text-transform: uppercase; color: var(--muted); margin-bottom: 3px; }
.profile-card-rank-box strong { font-size: 15px; color: var(--brand-glow); }
.profile-card-stat-row { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 9px 0; border-top: 1px solid var(--border); font-size: 12px; color: var(--muted); }
.profile-card-stat-value { text-align: right; font-size: 11px; color: var(--muted); }
.profile-card-stat-value strong { display: block; font-size: 13px; color: var(--text); font-weight: 800; }
.profile-card-guest { text-align: center; }

/* ── Banner em destaque ───────────────────────── */
.featured-banner {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 20px; display: flex; gap: 18px; align-items: center; margin-bottom: 40px;
}
.featured-banner img { width: 96px; height: 96px; border-radius: 12px; object-fit: cover; flex-shrink: 0; }
.featured-badge {
  display: inline-block; background: rgba(var(--accent-rgb),.15); color: var(--accent-glow);
  font-size: 11px; font-weight: 800; padding: 3px 8px; border-radius: 6px; margin-bottom: 6px;
}

/* ── Blog ─────────────────────────────────────── */
.blog-list { display: flex; flex-direction: column; gap: 14px; }
.blog-card {
  display: flex; gap: 18px; background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 16px; align-items: center;
  transition: border-color .15s;
}
.blog-card:hover { border-color: var(--border-strong); }
.blog-card img { width: 120px; height: 90px; border-radius: 10px; object-fit: cover; flex-shrink: 0; background: var(--bg-soft); }
.blog-card-body { flex: 1; min-width: 0; }
.blog-card-title { font-size: 16px; font-weight: 800; margin: 0 0 6px; }
.blog-card-meta { font-size: 12px; color: var(--muted); display: flex; gap: 10px; margin-bottom: 6px; }
.blog-card-desc { font-size: 13px; color: var(--text-2); margin: 0 0 8px; overflow: hidden; text-overflow: ellipsis; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.blog-read-more { color: var(--brand-glow); font-size: 13px; font-weight: 700; }
.blog-read-more:hover { color: var(--text); }
.blog-post-full { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 26px; }
.blog-post-full img { width: 100%; max-height: 320px; object-fit: cover; border-radius: 12px; margin-bottom: 18px; }
.blog-post-full h1 { font-size: 26px; margin: 0 0 8px; }
.blog-post-full .blog-card-meta { margin-bottom: 20px; }
.blog-post-full p { color: var(--text-2); line-height: 1.7; white-space: pre-wrap; }

/* ── Rodapé ───────────────────────────────────── */
.site-footer { border-top: 1px solid var(--border); padding: 44px 0 26px; margin-top: 60px; background: var(--bg-soft); }
.footer-grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 30px; margin-bottom: 30px; }
.footer-brand-name { font-size: 18px; font-weight: 900; margin: 0 0 10px; }
.footer-brand-name .brand-word { color: var(--accent); }
.footer-about { color: var(--muted); font-size: 13px; line-height: 1.6; max-width: 320px; }
.footer-col h4 { font-size: 13px; margin: 0 0 12px; }
.footer-col a { display: block; color: var(--muted); font-size: 13px; margin-bottom: 9px; }
.footer-col a:hover { color: var(--text); }
.social-btn-row { display: flex; flex-wrap: wrap; gap: 8px; }
.social-btn {
  display: inline-flex; align-items: center; gap: 6px;
  background: var(--surface-2); border: 1px solid var(--border);
  padding: 8px 12px; border-radius: 9px; font-size: 12px; font-weight: 700;
  transition: background-color .15s, border-color .15s, color .15s;
}
.social-btn:hover { background: var(--surface-3); border-color: var(--border-strong); color: var(--text); }
.footer-bottom {
  border-top: 1px solid var(--border); padding-top: 18px;
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px;
  font-size: 12px; color: var(--muted);
}

/* ── Drawer do carrinho ───────────────────────── */
.cart-overlay { position: fixed; inset: 0; background: rgba(0,0,0,.6); z-index: 190; }
.cart-drawer {
  position: fixed; top: 0; right: 0; height: 100%; width: min(420px, 100vw);
  background: var(--surface); border-left: 1px solid var(--border);
  z-index: 200; display: flex; flex-direction: column;
}
.cart-drawer-header { display: flex; align-items: center; justify-content: space-between; padding: 18px 20px; border-bottom: 1px solid var(--border); }
.cart-drawer-header h3 { margin: 0; font-size: 16px; display: flex; align-items: center; gap: 8px; }
.cart-drawer-close {
  background: none; border: 1px solid transparent; color: var(--muted);
  font-size: 16px; width: 30px; height: 30px; border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  transition: border-color .15s, color .15s;
}
.cart-drawer-close:hover { border-color: var(--border-strong); color: var(--text); }
.cart-drawer-body { flex: 1; overflow-y: auto; padding: 16px 20px; display: flex; flex-direction: column; gap: 14px; }
.cart-empty { display: flex; flex-direction: column; align-items: center; text-align: center; padding: 60px 20px; gap: 6px; }
.cart-empty-icon {
  width: 70px; height: 70px; border-radius: 50%; background: var(--surface-2);
  border: 1px solid var(--border); display: flex; align-items: center; justify-content: center;
  font-size: 26px; color: var(--muted); margin-bottom: 14px;
}
.cart-empty strong { font-size: 15px; font-weight: 800; }
.cart-empty p { font-size: 13px; color: var(--muted); margin: 4px 0 18px; max-width: 240px; line-height: 1.5; }
.cart-item { display: flex; gap: 10px; align-items: center; background: var(--surface-2); border: 1px solid var(--border); border-radius: 10px; padding: 10px; }
.cart-item-name { font-size: 13px; font-weight: 700; margin: 0 0 3px; }
.cart-item-price { font-size: 12px; color: var(--muted); }
.cart-item-qty { display: flex; align-items: center; gap: 6px; margin-left: auto; }
.cart-item-qty button {
  width: 24px; height: 24px; border-radius: 6px; border: 1px solid var(--border);
  background: var(--surface-3); color: var(--text); font-size: 13px;
  display: flex; align-items: center; justify-content: center;
  transition: border-color .15s, color .15s;
}
.cart-item-qty button:hover { border-color: var(--border-strong); color: var(--brand-glow); }
.cart-item-remove { background: none; border: none; color: var(--danger); font-size: 15px; padding: 0 2px; }
.cart-field { display: flex; flex-direction: column; gap: 6px; }
.cart-field label { font-size: 11px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .4px; }
.cart-field input, .cart-field select {
  background: var(--surface-2); border: 1px solid var(--border); color: var(--text);
  padding: 10px 12px; border-radius: 9px; font-size: 13px;
}
.platform-toggle { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.platform-toggle button {
  background: var(--surface-2); border: 1px solid var(--border); color: var(--text-2);
  padding: 9px; border-radius: 9px; font-size: 13px; font-weight: 700;
  transition: border-color .15s, color .15s, background-color .15s;
}
.platform-toggle button:hover { border-color: var(--border-strong); }
.platform-toggle button.active { background: var(--brand); border-color: transparent; color: var(--brand-ink); }
.coupon-row { display: grid; grid-template-columns: 1fr auto; gap: 8px; }
.coupon-row button { background: var(--surface-2); border: 1px solid var(--border); color: var(--text); border-radius: 9px; padding: 0 14px; font-size: 12px; font-weight: 700; }
.coupon-row button:hover { border-color: var(--border-strong); color: var(--brand-glow); }
.coupon-feedback { font-size: 12px; color: var(--ok); min-height: 1.2em; }
.coupon-feedback:empty { display: none; }
.cart-drawer-summary { border-top: 1px solid var(--border); padding: 16px 20px 20px; display: flex; flex-direction: column; gap: 10px; }
.cart-total-row { display: flex; justify-content: space-between; font-size: 13px; color: var(--muted); }
.cart-total-row.grand { font-size: 16px; color: var(--text); font-weight: 800; }
.cart-drawer-summary .btn-primary { width: 100%; justify-content: center; padding: 13px; font-size: 14px; }
.cart-secondary-btn {
  width: 100%; text-align: center; background: var(--surface-2); border: 1px solid var(--border);
  color: var(--text); padding: 12px; border-radius: 10px; font-size: 13px; font-weight: 700;
  transition: background-color .15s, border-color .15s;
}
.cart-secondary-btn:hover { background: var(--surface-3); border-color: var(--border-strong); }
.cart-note { font-size: 11px; color: var(--muted); text-align: center; }
.cart-required-hint { font-size: 11.5px; color: var(--warn); text-align: center; min-height: 1.2em; }
.cart-required-hint:empty { display: none; }
.cart-drawer-summary .btn-primary:disabled { opacity: .5; cursor: not-allowed; filter: saturate(.55); }
.cart-field input.invalid { border-color: var(--danger); box-shadow: 0 0 0 3px var(--danger-bg); }

/* feedback de "adicionado ao carrinho": toast clicável + pulso no contador */
.cart-toast {
  position: fixed; left: 50%; bottom: 24px; transform: translate(-50%, 18px);
  background: var(--brand); color: var(--brand-ink); border: none;
  padding: 11px 18px; border-radius: 999px; font-size: 13px; font-weight: 700;
  box-shadow: 0 8px 24px rgba(0,0,0,.35); opacity: 0; transition: opacity .18s ease, transform .18s ease;
  z-index: 500; cursor: pointer;
}
.cart-toast.show { opacity: 1; transform: translate(-50%, 0); }
@keyframes cartBumpPulse { 0% { transform: scale(1); } 45% { transform: scale(1.45); } 100% { transform: scale(1); } }
.cart-count-badge.bump { animation: cartBumpPulse .32s ease; }

/* banner de anúncio da home (imagem do painel) */
.anuncio-wrap { margin-top: 18px; }
.anuncio-banner {
  display: block; border-radius: 14px; overflow: hidden;
  border: 1px solid var(--border); box-shadow: 0 10px 30px rgba(0,0,0,.25);
  transition: transform .15s ease, border-color .15s ease;
}
.anuncio-banner:hover { transform: translateY(-2px); border-color: var(--border-strong); }
.anuncio-banner img { display: block; width: 100%; max-height: 340px; object-fit: cover; }

/* ── Modais ───────────────────────────────────── */
.modal-overlay { position: fixed; inset: 0; background: rgba(0,0,0,.65); z-index: 300; display: flex; align-items: center; justify-content: center; padding: 20px; }
.modal-box { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 24px; width: min(380px, 100%); }
.modal-box h3 { margin: 0 0 8px; font-size: 16px; }
.modal-box p { color: var(--muted); font-size: 13px; margin: 0 0 16px; line-height: 1.5; }
.modal-box .btn-primary { width: 100%; justify-content: center; margin-top: 6px; }
.rank-result { margin-top: 16px; background: var(--surface-2); border: 1px solid var(--border); border-radius: 10px; padding: 12px; font-size: 13px; }
.rank-result strong { color: var(--brand-glow); }

/* ── Tela de pagamento ──────────────────────────
   O LivePix não expõe o Pix na API v2, mas o navegador de checkout
   deles tem um endpoint interno que devolve o payload EMV (copia-e-cola).
   O servidor busca esse payload e a gente desenha o QR no próprio site —
   modal compacto, sem iframe. Se a busca falhar, fica o botão de pagar
   no site do LivePix. */
.pay-modal { position: relative; width: min(400px, 96%); }
.pay-qr {
  display: grid; place-items: center; margin: 14px 0 0;
  padding: 12px; border-radius: 14px;
  background: var(--surface-2); border: 1px solid var(--border);
}
.pay-qr svg { width: 220px; height: 220px; display: block; }
.pay-qr-placeholder { color: var(--muted); font-size: 13px; text-align: center; padding: 64px 10px; }
.pay-qr.is-hidden { display: none; }
.pay-copy { display: flex; gap: 8px; margin-top: 10px; }
.pay-copy.is-hidden { display: none; }
.pay-code {
  flex: 1; min-width: 0; width: 0; padding: 10px 12px; font-size: 11px;
  font-family: monospace; color: var(--muted);
  background: var(--surface-2); border: 1px solid var(--border);
  border-radius: 9px;
}
.pay-copy-btn {
  flex: 0 0 auto; padding: 0 16px; border-radius: 9px; cursor: pointer;
  background: var(--accent); color: var(--accent-ink);
  border: 1px solid transparent; font-weight: 800; font-size: 12px;
}
.pay-copy-btn:hover { background: var(--accent-dark); }
.pay-close {
  position: absolute; top: 12px; right: 12px; width: 28px; height: 28px;
  display: grid; place-items: center; border-radius: 8px; cursor: pointer;
  background: var(--surface-2); border: 1px solid var(--border);
  color: var(--muted); font-size: 13px; line-height: 1;
}
.pay-close:hover { color: var(--text); border-color: var(--border-strong); }
.pay-total { font-size: 26px; font-weight: 800; letter-spacing: -.5px; margin-bottom: 4px; }
.pay-note { margin: 0 0 16px !important; }
.pay-note.pay-ok { color: var(--ok) !important; }
.pay-note.pay-warn { color: var(--warn) !important; }
.pay-go {
  width: 100%; justify-content: center; margin-top: 12px !important;
  background: var(--surface-2); color: var(--text);
}
.pay-go:hover { background: var(--border-strong); color: var(--text); }
.pay-go.is-hidden { display: none; }
.pay-hint { font-size: 12px !important; margin: 12px 0 0 !important; }
.pay-clock {
  margin-top: 14px; padding: 9px 12px; border-radius: 9px; text-align: center;
  background: var(--surface-2); border: 1px solid var(--border);
  font-size: 12px; font-weight: 700; color: var(--accent-glow);
  font-variant-numeric: tabular-nums;
}
.pay-link { display: block; margin-top: 12px; text-align: center; font-size: 12px; color: var(--muted); }
.pay-link:hover { color: var(--brand-glow); }
/* Modal de detalhes: 2 colunas no desktop, empilhado no celular. */
.product-modal-content {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 24px; width: min(420px, 100%); position: relative;
}
.product-modal-close {
  position: absolute; top: 12px; right: 12px; background: none; border: none;
  color: var(--muted); font-size: 18px; cursor: pointer; z-index: 2;
  width: 30px; height: 30px; border-radius: 8px; line-height: 1;
}
.product-modal-close:hover { color: var(--text); background: var(--surface-2); }

.pm-box {
  width: min(900px, 100%); max-height: 90vh; overflow-y: auto; padding: 0;
  display: grid; grid-template-columns: 290px minmax(0, 1fr);
  grid-template-areas: "media desc" "actions actions";
}
.pm-media { grid-area: media; padding: 24px; background: var(--surface-2); border-right: 1px solid var(--border); }
.pm-media img { width: 100%; aspect-ratio: 1; object-fit: contain; border-radius: 10px; background: var(--bg-soft); }
.pm-noimg { display: grid; place-items: center; aspect-ratio: 1; font-size: 56px; background: var(--bg-soft); border-radius: 10px; }
.pm-name { margin: 14px 0 4px; font-size: 18px; line-height: 1.3; }
.pm-cat { font-size: 11px; color: var(--muted); text-transform: uppercase; letter-spacing: .5px; font-weight: 700; }
.pm-price { margin-top: 12px; }
.pm-price .price-now { font-size: 26px; }
.pm-pix { display: block; margin-top: 6px; font-size: 11px; color: var(--muted); }

/* Descrição em blocos: título + itens com check */
.pm-desc { grid-area: desc; padding: 24px; min-width: 0; }
.pm-block + .pm-block { margin-top: 20px; padding-top: 18px; border-top: 1px solid var(--border); }
.pm-block-title {
  margin: 0 0 9px; font-size: 12px; font-weight: 800;
  text-transform: uppercase; letter-spacing: .7px; color: var(--brand-glow);
}
.pm-text { margin: 0; font-size: 13px; color: var(--text-2); line-height: 1.65; }
.pm-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.pm-list li { position: relative; padding-left: 26px; font-size: 13px; color: var(--text-2); line-height: 1.55; }
.pm-list li::before {
  content: "✓"; position: absolute; left: 0; top: 0;
  width: 18px; height: 18px; border-radius: 50%; line-height: 18px; text-align: center;
  font-size: 10px; font-weight: 900;
  background: rgba(var(--accent-rgb),.18); color: var(--accent-glow);
}
.pm-empty { margin: 0; font-size: 13px; color: var(--muted); font-style: italic; }

.pm-actions {
  grid-area: actions; display: flex; gap: 10px; align-items: center;
  padding: 16px 24px; border-top: 1px solid var(--border); background: var(--surface-2);
}
.pm-actions .btn-primary { flex: 1; justify-content: center; padding: 12px; }
.buy-ping {
  position: fixed; left: 20px; bottom: 20px; z-index: 180;
  background: var(--surface-2); border: 1px solid var(--border); border-radius: 10px;
  padding: 10px 16px; font-size: 12px; color: var(--text-2);
}
.hidden { display: none !important; }
.empty-state { text-align: center; color: var(--muted); padding: 60px 0; font-size: 14px; }

/* ── Página da conta ──────────────────────────── */
.account-page { max-width: 640px; margin: 0 auto; padding: 34px 0 70px; }
.account-tabs { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 26px; }
.account-tab {
  background: var(--surface-2); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 16px; text-align: center; color: var(--text-2);
  transition: border-color .15s, background-color .15s, color .15s;
}
.account-tab strong { display: block; font-size: 14px; margin: 6px 0 3px; color: inherit; }
.account-tab span { font-size: 11.5px; color: var(--muted); }
.account-tab.active { border-color: var(--brand); background: rgba(var(--brand-rgb),.10); color: var(--text); }
.account-tab .tab-icon { font-size: 20px; }
.account-field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 16px; }
.account-field label { font-size: 11px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .4px; }
.account-field input { background: var(--surface-2); border: 1px solid var(--border); color: var(--text); padding: 12px 14px; border-radius: 10px; font-size: 14px; }
.account-field input:disabled { color: var(--muted); opacity: .8; }
.account-hint { font-size: 11.5px; color: var(--muted); margin: -8px 0 18px; }
.account-save-btn { width: 100%; justify-content: center; padding: 13px; font-size: 14px; }
.account-toast { margin-top: 14px; font-size: 12.5px; color: var(--ok); min-height: 1.2em; }
.account-logged-out { text-align: center; padding: 70px 20px; color: var(--muted); }
.account-logged-out .btn-primary { margin-top: 16px; }

/* ── Página de compras ────────────────────────── */
.purchases-page { padding: 34px 0 70px; }
.purchases-grid { display: grid; grid-template-columns: 220px 1fr; gap: 24px; align-items: start; }
.purchases-filters { background: var(--surface-2); border: 1px solid var(--border); border-radius: var(--radius); padding: 14px; position: sticky; top: 90px; }
.purchases-filters-title { font-size: 11px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .4px; margin: 0 0 8px 4px; }
.purchases-filter-btn {
  display: flex; align-items: center; width: 100%; text-align: left;
  background: none; border: none; color: var(--text-2); font-size: 13.5px; font-weight: 600;
  padding: 9px 10px; border-radius: 8px; margin-bottom: 2px;
  transition: background-color .12s, color .12s;
}
.purchases-filter-btn:hover { background: var(--surface-3); color: var(--text); }
.purchases-filter-btn.active { background: var(--brand); color: var(--brand-ink); }
.purchases-search { width: 100%; margin-bottom: 16px; }
.order-row {
  display: flex; align-items: center; gap: 14px; background: var(--surface);
  border: 1px solid var(--border); border-radius: 12px; padding: 14px 16px; margin-bottom: 10px;
}
.order-row-id { font-weight: 800; font-size: 13px; }
.order-row-date { font-size: 11.5px; color: var(--muted); }
.order-row-total { font-weight: 800; font-size: 14px; margin-left: auto; }
.order-status-badge { font-size: 11px; font-weight: 800; padding: 4px 10px; border-radius: 999px; text-transform: uppercase; letter-spacing: .3px; }
.order-status-badge.paid,
.order-status-badge.approved { background: var(--ok-bg); color: var(--ok); }
.order-status-badge.pending_approval,
.order-status-badge.pending { background: var(--warn-bg); color: var(--warn); }
.order-status-badge.rejected,
.order-status-badge.cancelled { background: var(--danger-bg); color: var(--danger); }

/* Selo de pagamento: menor que o badge de entrega e com outro peso, para
   "pago, mas ainda na fila" não parecer o mesmo estado de "entregue". */
.order-pay-chip {
  display: inline-block; margin-top: 6px; font-size: 11px; font-weight: 700;
  padding: 3px 9px; border-radius: 999px; border: 1px solid transparent;
}
.order-pay-chip.paid { background: var(--ok-bg); color: var(--ok); border-color: rgba(62,207,142,.3); }
.order-pay-chip.waiting { background: var(--warn-bg); color: var(--warn); border-color: rgba(224,123,57,.3); }
.order-pay-chip.expired { background: var(--danger-bg); color: var(--danger); border-color: rgba(240,97,109,.3); }

/* ── Modo Desempenho ─────────────────────────── */
body.perf-mode *,
body.perf-mode *::before,
body.perf-mode *::after { animation: none !important; transition: none !important; }
body.perf-mode .bg-layer .bg-wash { display: none; }

/* ── Respeita quem pediu menos movimento ──────── */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

@media (max-width: 900px) {
  .home-grid { grid-template-columns: 1fr; }
  .product-detail-grid { grid-template-columns: 1fr; }
  .product-detail-feature-row { grid-template-columns: 1fr; }
  .hero { padding: 40px 0 30px; }
  .hero-crest { width: 150px; height: 150px; }
  /* A lateral deixa de ser coluna fixa e vira bloco acima da grade.
     Não usa sticky porque aí ela ocuparia a tela inteira sem resultado
     embaixo. */
  .shop-layout { grid-template-columns: 1fr; gap: 18px; }
  .shop-sidebar { position: static; max-height: 340px; }
  /* modal em coluna: imagem e preço em cima, descrição embaixo */
  .pm-box { grid-template-columns: 1fr; grid-template-areas: "media" "desc" "actions"; }
  .pm-media { border-right: none; border-bottom: 1px solid var(--border); }
  .pm-media img, .pm-noimg { aspect-ratio: 16/9; font-size: 40px; }
  .pm-name { margin: 12px 0 4px; font-size: 16px; }
  .pm-price .price-now { font-size: 22px; }
}

@media (max-width: 720px) {
  .wrap { padding: 0 14px; }
  .topnav { padding: 10px 12px 0; }
  /* com os rotulos sempre abertos a barra chega a ~706px; aqui aperta
     fonte e padding para caber folgada nos 696px utiliveis de uma tela de 720. */
  .topnav-inner { width: 100%; max-width: 100%; padding: 5px 7px; gap: 4px; }
  .topnav-link { padding: 6px 11px; font-size: 11.5px; }
  .topnav-link.icon { padding: 5px 9px; font-size: 11.5px; }
  .nav-icon-group { padding: 2px; gap: 1px; }
  .topnav-cart { padding: 6px 10px; font-size: 11.5px; }
  .nav-divider { height: 18px; }
  .hero { padding: 30px 0 26px; }
  .hero-grid { gap: 24px; }
  .hero-crest-wrap { width: 100%; order: -1; }
  .hero-crest { width: 120px; height: 120px; margin: 0 auto; }
  .hero-title { font-size: 26px; }
  .hero-subtitle { font-size: 14px; }
  .hero-cta-row { width: 100%; }
  .hero-cta-row .btn-primary, .hero-cta-row .btn-secondary { flex: 1; justify-content: center; }
  .stat-row { grid-template-columns: 1fr; gap: 10px; }
  .stat-card { padding: 13px 14px; }
  .product-grid { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
  .product-card-body { padding: 10px; gap: 4px; }
  .product-card-title { font-size: 13px; }
  .product-card-summary { -webkit-line-clamp: 2; line-clamp: 2; }
  .price-now { font-size: 15px; }
  .product-card-actions { gap: 6px; }
  .product-card-actions .btn-primary { padding: 9px 6px; }
  .shop-head { flex-direction: column; align-items: stretch; gap: 12px; }
  .shop-search-input { width: 100%; }
  .shop-sidebar { max-height: 300px; }
  .topbuyer-strip { padding: 10px 12px; }
  .home-grid { gap: 16px; }
  .purchases-grid { grid-template-columns: 1fr; }
  .purchases-filters { position: static; display: flex; gap: 6px; overflow-x: auto; padding: 10px; }
  .purchases-filters-title { display: none; }
  .purchases-filter-btn { white-space: nowrap; width: auto; }
  .account-tabs { grid-template-columns: 1fr 1fr; }
  .blog-post-full { padding: 18px; }
  .blog-post-full h1 { font-size: 21px; }
  .modal-box { padding: 18px; }
  .product-modal-content { padding: 0; width: min(420px, 100%); }
  .pm-media, .pm-desc, .pm-actions { padding: 16px; }
  .footer-grid { grid-template-columns: 1fr; gap: 24px; }
  .blog-card { flex-direction: column; align-items: flex-start; }
  .blog-card img { width: 100%; height: 160px; }
  .footer-about { max-width: 100%; }
  .footer-bottom { flex-direction: column; align-items: flex-start; gap: 6px; }
  .cart-drawer { width: 100vw; }
  .buy-ping { left: 12px; right: 12px; bottom: 12px; font-size: 11px; }
}

@media (max-width: 480px) {
  /* abaixo de 480px não cabe texto: vira barra de ícones.
     Repete o seletor completo porque a regra do desktop tem especificidade
     maior (3 classes) e venceria um `.topnav-link .label-text` simples. */
  .topnav-link .label-text,
  .nav-icon-group .topnav-link.icon .label-text { display: none; }
  .topnav-link, .nav-icon-group .topnav-link.icon { padding: 8px; }
  .topnav-cart .label-text { display: none; }
  .hero-title { font-size: 22px; }
  .btn, .btn-primary, .btn-secondary { padding: 11px 14px; font-size: 13px; }
  .product-grid { grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); }
  .section-title { font-size: 15px; }
}

/* ── Scrollbar ────────────────────────────────── */
::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--surface-3); border-radius: 10px; }
/* o hover usava #2c313a, um cinza frio do tema anterior: era a única
   cor do site fora da paleta e aparecia toda vez que a pessoa rola. */
::-webkit-scrollbar-thumb:hover { background: var(--brand-dark); }

/* ── Foco ─────────────────────────────────────── */
input:focus, select:focus, textarea:focus {
  outline: none;
  border-color: var(--brand) !important;
  box-shadow: 0 0 0 3px rgba(var(--brand-rgb),.18);
}
