/* =========================================================
   Casa das Contas — estilo clean inspirado em marketplaces de itens digitais
   ========================================================= */
:root {
  --primary: #0b6bff;
  --primary-600: #0058e0;
  --primary-50: #eaf2ff;
  --gradient-primary: linear-gradient(90deg, #0b6bff, #4f46e5);
  --gradient-primary-hover: linear-gradient(90deg, #0058e0, #4338ca);
  --text: #24272e;
  --text-2: #5b6170;
  --muted: #8a90a0;
  --border: #e4e7ec;
  --border-strong: #c4cbd6; /* borda no hover dos botões com contorno */
  --bg-hover: #f7f8fa;
  /* Campo em foco (site inteiro): borda cinza mais escura + halo cinza suave, nunca azul */
  --focus-border: #c4cbd6;
  --focus-ring: 0 0 0 4px rgba(15, 23, 42, .05);
  --bg: #ffffff;
  --bg-soft: #f6f7f9;
  --success: #12a454;
  --success-50: #e8f8ef;
  --danger: #e5383b;
  --danger-50: #fdecec;
  --warning: #f2a516;
  --warning-50: #fff6e3;
  --info: #0ea5e9;
  --info-50: #e6f6fd;
  --gold: #d4a017;
  --diamond: #2b7fff;
  --radius: 10px;
  --radius-sm: 8px;
  --shadow: 0 1px 2px rgba(16, 24, 40, .04), 0 1px 3px rgba(16, 24, 40, .06);
  --shadow-lg: 0 12px 32px rgba(16, 24, 40, .12);
  --header-h: 88px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; overflow-x: hidden; scrollbar-gutter: stable; }
body {
  margin: 0;
  font-family: Poppins, Arial, sans-serif;
  font-size: 14px;
  line-height: 1.5;
  color: var(--text);
  background: var(--bg);
  overflow-x: clip;
}
img { max-width: 100%; display: block; }
a { color: var(--primary); text-decoration: none; }
a:hover { color: var(--primary-600); }
h1, h2, h3, h4, h5, h6 { margin: 0; font-weight: 600; line-height: 1.25; }
p { margin: 0 0 .75em; }
button { font-family: inherit; cursor: pointer; }
input, select, textarea { font-family: inherit; font-size: inherit; }
[hidden] { display: none !important; }
/* Largura do conteúdo: mesmos degraus da GGMAX (ocupa a tela até 1720px em Full HD) */
/* --container guarda a largura de cada degrau (também alinha elementos fixos, como os avisos, com o conteúdo) */
.container { width: 100%; max-width: var(--container, none); margin: 0 auto; padding: 0 15px; }
@media (min-width: 768px) { :root { --container: 717px; } }
@media (min-width: 992px) { :root { --container: 941px; } }
@media (min-width: 1200px) { :root { --container: 1149px; } }
@media (min-width: 1300px) { :root { --container: 1249px; } }
@media (min-width: 1480px) { :root { --container: 1433px; } }
@media (min-width: 1512px) { :root { --container: 1461px; } }
@media (min-width: 1678px) { :root { --container: 1600px; } }
@media (min-width: 1920px) { :root { --container: 1720px; } }
.muted { color: var(--muted); }
.center { text-align: center; }
.right { text-align: right; }
.mono { font-family: ui-monospace, SFMono-Regular, Consolas, monospace; font-size: 13px; }
.small { font-size: 12px; }
.nowrap { white-space: nowrap; }
.text-success { color: var(--success) !important; }
.text-danger { color: var(--danger) !important; }
.text-warning { color: var(--warning) !important; }
.text-primary { color: var(--primary) !important; }
.lead { font-size: 16px; }

/* ---------- Botões ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 42px; padding: 0 20px; border-radius: var(--radius-sm);
  border: 1px solid transparent; background: var(--bg-soft); color: var(--text);
  font-weight: 600; font-size: 14px; white-space: nowrap; transition: .15s;
}
.btn:hover { filter: brightness(.97); }
.btn:disabled { opacity: .55; cursor: not-allowed; }
/* Botão principal do site: mesmo degradê do "Anunciar" do topo */
.btn-primary { background: var(--gradient-primary); color: #fff; box-shadow: 0 2px 8px rgba(11, 107, 255, .25); transition: box-shadow .2s, filter .2s; }
.btn-primary:hover { background: var(--gradient-primary-hover); color: #fff; box-shadow: 0 4px 14px rgba(11, 107, 255, .4); }
.btn-primary:disabled { box-shadow: none; }
.btn-success { background: var(--success); color: #fff; }
.btn-danger { background: var(--danger); color: #fff; }
.btn-outline { background: #fff; border-color: var(--primary); color: var(--primary); }
.btn-outline:hover { background: var(--bg-hover); }
.btn-ghost { background: transparent; color: var(--text-2); }
.btn-ghost:hover { background: var(--bg-soft); }
.btn-pill { border-radius: 999px; }
.btn-lg { height: 50px; padding: 0 28px; font-size: 15px; }
.btn-sm { height: 34px; padding: 0 12px; font-size: 13px; }
.btn-block { width: 100%; }

.icon-btn {
  position: relative; display: inline-grid; place-items: center;
  width: 40px; height: 40px; border-radius: 50%;
  border: 1px solid var(--border); background: #fff; color: var(--text); font-size: 17px;
  list-style: none;
}
.icon-btn:hover { background: var(--bg-soft); color: var(--text); }
.icon-btn.danger:hover { color: var(--danger); }
.dot-count {
  position: absolute; top: -4px; right: -4px; min-width: 18px; height: 18px; padding: 0 5px;
  border-radius: 9px; background: var(--danger); color: #fff; font-size: 10px; font-weight: 700;
  display: grid; place-items: center;
}

/* ---------- Topo (mesmo layout da GameMarket) ---------- */
.topbar {
  position: sticky; top: 0; z-index: 50; background: rgba(255, 255, 255, .86);
  backdrop-filter: saturate(180%) blur(12px); border-bottom: 1px solid transparent;
}
.topbar.scrolled { border-bottom-color: var(--border); box-shadow: 0 2px 12px rgba(0, 0, 0, .04); }
.topbar-glow { position: absolute; inset: 0; overflow: hidden; pointer-events: none; }
/* Só um brilho lilás suave à direita (sem azul atrás da logo) */
.topbar-glow span { position: absolute; top: -32px; right: 0; width: 400px; height: 96px; border-radius: 50%; background: rgba(124, 58, 237, .08); filter: blur(48px); }
.topbar-inner { position: relative; display: flex; align-items: center; justify-content: space-between; height: var(--header-h); }
/* Logo (imagem com fundo transparente, proporção ~4,2:1) */
.logo { display: flex; align-items: center; flex-shrink: 0; transition: opacity .2s; }
.logo:hover { opacity: .85; }
.logo img { display: block; width: auto; height: 34px; }
.topbar .logo img { height: 38px; }

/* Busca do topo: campo cinza dentro de uma moldura clara (modelo da GGMAX) */
.search { position: relative; flex: 1; max-width: 720px; margin: 0 40px; padding: 5px; border: 1px solid var(--border); border-radius: 16px; background: #fff; transition: border-color .2s, box-shadow .2s; }
.search:hover { border-color: #cfd5df; }
.search:focus-within { border-color: var(--focus-border); box-shadow: var(--focus-ring); }
.search:focus-within input { background: #eef0f4; }
.search > i { position: absolute; left: 22px; top: 50%; transform: translateY(-50%); font-size: 18px; color: var(--muted); pointer-events: none; }
.search input {
  width: 100%; height: 48px; padding: 0 4.5rem 0 46px; border-radius: 12px; border: 0;
  background: var(--bg-soft); color: var(--text); font-size: 15.5px; outline: none;
}
.search-key {
  position: absolute; right: 20px; top: 50%; transform: translateY(-50%); width: 44px; height: 26px; padding: 0;
  border: 0; border-radius: 8px; background: #0404051a; color: var(--text-2); font-size: 13px; font-weight: 500; line-height: 26px;
}

.topbar-actions { display: flex; align-items: center; gap: 12px; flex-shrink: 0; }
.topbar-nav { display: flex; align-items: center; gap: 8px; }
.tb-link { display: inline-flex; align-items: center; gap: 8px; height: 44px; padding: 0 14px; border: 0; background: none; color: var(--text-2); font-size: 15.5px; font-weight: 600; transition: color .2s; }
.tb-link:hover { color: var(--text); }
.tb-link i { font-size: 19px; }
.tb-sell {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 44px; padding: 0 28px; border-radius: 10px;
  background: var(--gradient-primary); color: #fff; font-size: 15.5px; font-weight: 600;
  box-shadow: 0 2px 8px rgba(11, 107, 255, .25); transition: transform .2s, box-shadow .2s;
}
.tb-sell:hover { color: #fff; background: var(--gradient-primary-hover); transform: scale(1.03); box-shadow: 0 4px 14px rgba(11, 107, 255, .45); }
.tb-sell i { font-size: 18px; }
.tb-icon { position: relative; display: inline-grid; place-items: center; width: 36px; height: 36px; border: 0; border-radius: 50%; background: none; color: var(--text-2); font-size: 19px; transition: background .2s, color .2s; }
.tb-icon:hover { background: var(--bg-soft); color: var(--text); }
.tb-avatar { display: grid; place-items: center; width: 36px; height: 36px; padding: 1px; border: 1px solid #cfd5df; border-radius: 50%; background: var(--bg-soft); transition: border-color .2s, box-shadow .2s; }
.tb-avatar:hover { border-color: #98a2b3; }
.tb-avatar img { width: 32px; height: 32px; border-radius: 50%; object-fit: cover; }
.tb-guest { display: flex; align-items: center; gap: 8px; }
/* Entrar e Cadastrar (visitante): mesma altura do Anunciar */
.tb-auth {
  display: inline-flex; align-items: center; justify-content: center; height: 44px; padding: 0 22px; border: 1.5px solid #cdd6e4; border-radius: 10px;
  background: #fff; color: var(--text); font-size: 15.5px; font-weight: 600;
  box-shadow: 0 1px 2px rgba(15, 23, 42, .06); transition: border-color .2s, color .2s, background .2s;
}
.tb-auth:hover { border-color: var(--border-strong); background: var(--bg-hover); color: var(--text); }
/* Cadastrar: azul sólido da marca com sombra azul (como a GameMarket; o degradê fica no Anunciar) */
.tb-auth.is-solid { border-color: var(--primary); background: var(--primary); color: #fff; box-shadow: 0 4px 12px rgba(11, 107, 255, .3); }
.tb-auth.is-solid:hover { border-color: #0057e0; background: #0057e0; color: #fff; }
.tb-search-toggle, .tb-menu { display: none; }
@media (max-width: 1023.98px) {
  .search.open { display: block; position: absolute; top: 100%; left: 15px; right: 15px; max-width: none; margin: 0; }
  .tb-search-toggle { display: inline-grid; }
  .tb-link span { display: none; }
}
@media (max-width: 767.98px) {
  .topbar-glow, .topbar-nav { display: none; }
  .topbar-actions { gap: 4px; }
}
@media (max-width: 639.98px) {
  .tb-account, .tb-guest { display: none; }
  .tb-menu { display: inline-grid; }
  .topbar .logo img, .logo img { height: 30px; }
}

/* Menu lateral (celular) */
/* Trava a rolagem no <html> (é ele que rola, por causa do overflow-x); travar o body quebrava a topbar fixa */
html:has(body.drawer-open), html:has(body.panel-open), html:has(body.modal-open) { overflow: hidden; }

/* Grupo de campos dentro de um formulário (ex.: "Imagens" no painel de categoria) */
.form-section { display: flex; flex-direction: column; gap: 14px; padding-top: 16px; border-top: 1px solid var(--border); }
.form-section h4 { margin: 0; color: var(--muted); font-size: 12px; font-weight: 600; letter-spacing: .5px; text-transform: uppercase; }

/* Popup de confirmação padrão (partials/confirm-dialog), mesmo modelo do CRM Meta */
.confirm-overlay { position: fixed; inset: 0; z-index: 1100; display: flex; align-items: center; justify-content: center; padding: 16px; background: rgba(0, 0, 0, .5); animation: panelFade .15s ease; }
.confirm-overlay[hidden] { display: none; }
.confirm-box { width: 100%; max-width: 26rem; padding: 24px; border: 1px solid var(--border); border-radius: 12px; background: #fff; box-shadow: 0 10px 30px rgba(0, 0, 0, .25); animation: confirmIn .18s ease; }
.confirm-box h2 { margin: 0; font-size: 18px; font-weight: 600; line-height: 1.35; }
.confirm-box p { margin: 6px 0 0; color: var(--text-2); font-size: 14px; line-height: 1.5; }
.confirm-foot { display: flex; justify-content: flex-end; gap: 8px; margin-top: 20px; }
@keyframes confirmIn { from { opacity: 0; transform: translateY(8px) scale(.98); } to { opacity: 1; transform: none; } }

/* Painel lateral (abre pela direita sobre o conteúdo) */
.side-panel { position: fixed; inset: 0; z-index: 900; }
.side-panel-overlay { position: absolute; inset: 0; background: rgba(15, 23, 42, .45); animation: panelFade .2s ease; }
.side-panel-box {
  position: absolute; top: 0; right: 0; bottom: 0; display: flex; flex-direction: column; width: min(480px, 100%);
  background: #fff; box-shadow: -24px 0 60px rgba(15, 23, 42, .18); animation: panelIn .3s cubic-bezier(.2, .8, .2, 1);
}
.side-panel.is-closing .side-panel-overlay { animation: panelFade .2s ease reverse forwards; }
.side-panel.is-closing .side-panel-box { animation: panelIn .2s ease-in reverse forwards; }
.side-panel-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 18px 22px; border-bottom: 1px solid var(--border); }
.side-panel-head h3 { margin: 0; font-size: 17px; font-weight: 700; }
.side-panel-head small { display: block; margin-top: 2px; color: var(--muted); font-size: 13px; }
.side-panel-body { flex: 1; overflow-y: auto; padding: 22px; }
.side-panel-foot { display: flex; justify-content: flex-end; gap: 10px; padding: 14px 22px; border-top: 1px solid var(--border); background: var(--bg-soft); }
.side-panel-foot .btn-primary { gap: 6px; min-width: 130px; }
@keyframes panelIn { from { transform: translateX(100%); } to { transform: none; } }
@keyframes panelFade { from { opacity: 0; } to { opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .side-panel-overlay, .side-panel-box { animation: none !important; } }
/* Enquanto um bloco carrega sem recarregar a página (data-ajax) */
body.is-loading { cursor: progress; }
body.is-loading [data-region] { opacity: .6; pointer-events: none; transition: opacity .15s; }
/* Rodapé sempre no fim da tela, mesmo em páginas com pouco conteúdo (carrinho vazio, login...) */
body:not(.admin) { display: flex; flex-direction: column; min-height: 100vh; min-height: 100dvh; }
body:not(.admin) > main { flex: 1 0 auto; }
.drawer { position: fixed; inset: 0; z-index: 80; }
.drawer-overlay { position: absolute; inset: 0; background: rgba(10, 14, 24, .5); animation: catFade .2s ease-out; }
.drawer-panel {
  position: absolute; top: 0; right: 0; bottom: 0; display: flex; flex-direction: column; width: min(320px, 86vw);
  overflow-y: auto; background: #fff; box-shadow: -12px 0 40px rgba(16, 24, 40, .18); animation: drawerIn .22s ease-out;
}
@keyframes drawerIn { from { transform: translateX(100%); } to { transform: none; } }
.drawer-head { display: flex; align-items: center; gap: 12px; padding: 14px 16px; border-bottom: 1px solid var(--border); }
.drawer-head > div { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.drawer-head small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--muted); }
.drawer-head .tb-icon { margin-left: auto; }
.drawer-avatar { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; }
.drawer-auth { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; padding: 16px; border-bottom: 1px solid var(--border); }
.drawer-nav { display: flex; flex-direction: column; padding: 8px; }
.drawer-nav a, .drawer-nav button {
  display: flex; align-items: center; gap: 12px; width: 100%; padding: 12px; border: 0; border-radius: 8px;
  background: none; color: var(--text); font-size: 14px; font-weight: 500; text-align: left;
}
.drawer-nav a:hover, .drawer-nav button:hover { background: var(--bg-soft); color: var(--text); }
.drawer-nav i { width: 20px; color: var(--text-2); font-size: 17px; }
.drawer-nav form { margin: 0; }
.drawer-nav .menu-admin, .drawer-nav .menu-admin i { color: var(--primary); }
.drawer-nav .nav-count { margin-left: auto; }
.drawer-sep { height: 1px; margin: 8px 4px; background: var(--border); }

/* Dropdown de sugestões da busca do topo */
.suggest {
  position: absolute; top: calc(100% + 8px); left: 0; right: 0; min-width: 320px; z-index: 60;
  background: #fff; border: 1px solid var(--border); border-radius: 16px; box-shadow: 0 20px 50px rgba(16, 24, 40, .18); overflow: hidden;
}
.suggest-tabs { display: flex; gap: 2px; margin: 12px 12px 0; padding: 2px; height: 36px; border: 1px solid var(--border); border-radius: 12px; background: var(--bg-soft); }
.suggest-tabs button { flex: 1; display: inline-flex; align-items: center; justify-content: center; gap: 6px; border: 0; border-radius: 10px; background: none; color: var(--text-2); font-size: 12px; font-weight: 500; }
.suggest-tabs button.active { background: var(--primary); color: #fff; }
.suggest-tabs button span { padding: 1px 6px; border-radius: 999px; background: var(--primary-50); color: var(--primary); font-size: 10px; font-weight: 600; }
.suggest-tabs button.active span { background: rgba(255, 255, 255, .22); color: #fff; }
.suggest-list { display: flex; flex-direction: column; gap: 6px; padding: 8px 12px 12px; }
.suggest-item { display: flex; align-items: center; gap: 12px; padding: 10px; border: 1px solid var(--border); border-radius: 12px; background: #fafbfc; color: var(--text); transition: .15s; }
.suggest-item:hover { border-color: #cfd5df; background: var(--bg-soft); color: var(--text); }
.suggest-thumb { width: 40px; height: 40px; flex-shrink: 0; border-radius: 8px; overflow: hidden; border: 1px solid var(--border); background: var(--bg-soft); }
.suggest-thumb img { width: 100%; height: 100%; object-fit: cover; }
.suggest-info { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.suggest-info strong { font-size: 13.5px; font-weight: 500; line-height: 1.25; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.suggest-meta { display: flex; align-items: center; gap: 6px; margin-top: 2px; font-size: 12px; color: var(--muted); }
.suggest-meta > span { max-width: 100px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.suggest-meta em { font-style: normal; font-size: 10px; padding: 0 6px; line-height: 16px; border: 1px solid var(--border); border-radius: 999px; color: var(--muted); }
.suggest-seller { margin-top: 2px; font-size: 12px; color: var(--text-2); max-width: 160px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.suggest-seller i { color: #f5b301; font-size: 10px; }
.suggest-price { flex-shrink: 0; display: flex; flex-direction: column; align-items: flex-end; }
.suggest-price small { font-size: 10px; color: var(--muted); line-height: 1; }
.suggest-price b { font-size: 13.5px; color: var(--primary); }
.suggest-arrow { flex-shrink: 0; color: var(--muted); font-size: 14px; transition: color .15s; }
.suggest-item:hover .suggest-arrow { color: var(--text); }
.suggest-all { display: flex; align-items: center; justify-content: center; gap: 8px; margin-top: 2px; padding: 10px; border: 1px dashed rgba(11, 107, 255, .4); border-radius: 12px; color: var(--primary); font-size: 13.5px; font-weight: 500; }
.suggest-all:hover { background: var(--bg-hover); }
.suggest-state { display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 32px 16px; text-align: center; color: var(--text-2); }
.suggest-state > i { font-size: 28px; color: var(--muted); margin-bottom: 8px; }
.suggest-state p { margin: 0; font-size: 13.5px; }
.suggest-spinner { width: 20px; height: 20px; border-radius: 50%; border: 2px solid var(--border); border-top-color: var(--primary); animation: spin .7s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

.dropdown { position: relative; }
.dropdown-menu {
  position: absolute; top: calc(100% + 10px); left: 0; min-width: 230px; padding: 8px;
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius);
  box-shadow: var(--shadow-lg); display: none; z-index: 60;
}
.dropdown.open .dropdown-menu { display: block; }
.dropdown-menu.right { left: auto; right: 0; }
.dropdown-menu a, .dropdown-menu button {
  display: flex; align-items: center; gap: 10px; width: 100%; padding: 9px 12px; border-radius: 6px;
  color: var(--text); background: none; border: 0; text-align: left; font-size: 14px;
}
.dropdown-menu a:hover, .dropdown-menu button:hover { background: var(--bg-soft); color: var(--text); }
.dropdown-menu form { margin: 0; border-top: 1px solid var(--border); margin-top: 6px; padding-top: 6px; }
.dropdown-header { padding: 8px 12px 10px; border-bottom: 1px solid var(--border); margin-bottom: 6px; display: flex; flex-direction: column; }
.dropdown-header small { color: var(--muted); }
.dot { width: 9px; height: 9px; border-radius: 50%; display: inline-block; flex-shrink: 0; }

/* ---------- Avatares ---------- */
.avatar { border-radius: 50%; object-fit: cover; background: var(--bg-soft); }
.avatar-sm { width: 36px; height: 36px; }
.avatar-md { width: 48px; height: 48px; }
.avatar-xl { width: 110px; height: 110px; }

/* ---------- Toasts / alerts ---------- */
/* Avisos no estilo da GGMAX: cartão branco, ícone redondo colorido, × discreto e barra de tempo embaixo */
/* Avisos logo abaixo da topbar (nunca por cima dela) */
/* À direita, alinhados com o fim do conteúdo da topbar (avatar / Cadastrar) */
.toasts { position: fixed; top: calc(var(--toast-top, var(--header-h)) + 12px); right: var(--toast-right, max(15px, calc((100% - var(--container, 100%)) / 2 + 15px))); z-index: 1200; display: flex; flex-direction: column; gap: 10px; max-width: calc(100vw - 40px); }
.toast {
  --tone: var(--primary);
  position: relative; display: flex; align-items: center; gap: 12px; min-width: 320px; max-width: 420px;
  padding: 16px 12px 18px 16px; border-radius: 8px; overflow: hidden; background: #fff; color: var(--text-2);
  font-size: 14.5px; line-height: 1.45; box-shadow: 0 8px 28px rgba(15, 23, 42, .14), 0 0 0 1px rgba(15, 23, 42, .04);
  animation: slidein .25s ease;
}
.toast-success { --tone: var(--success); }
.toast-error { --tone: var(--danger); }
.toast-warning { --tone: #f2a516; }
.toast-info { --tone: var(--primary); }
.toast-icon { flex-shrink: 0; display: grid; place-items: center; width: 18px; height: 18px; color: var(--tone); font-size: 18px; line-height: 1; }
.toast-icon i::before, .toast-close i::before { vertical-align: 0; }
/* Texto em uma linha com altura exata (1.45 = altura em que as maiúsculas da Poppins ficam no meio); ícone e linha centralizados no mesmo eixo */
.toast-msg { flex: 1; min-width: 0; line-height: 1.45; overflow-wrap: anywhere; }
.toast-msg strong { display: block; margin-bottom: 2px; font-weight: 600; }
/* × no fluxo da linha: fica centralizado na altura do ícone e do texto */
.toast-close { flex-shrink: 0; display: grid; place-items: center; width: 26px; height: 26px; padding: 0; border: 0; border-radius: 6px; background: none; color: #a3abb8; font-size: 12px; transition: color .15s, background .15s; }
.toast-close:hover { background: var(--bg-soft); color: var(--text); }
.toast-bar { position: absolute; left: 0; bottom: 0; width: 100%; height: 4px; background: var(--tone); transform-origin: left; animation: toastTime 5s linear forwards; }
.toast:hover .toast-bar { animation-play-state: paused; }
.toast.is-leaving { opacity: 0; transform: translateX(16px); transition: opacity .2s, transform .2s; }
@keyframes toastTime { from { transform: scaleX(1); } to { transform: scaleX(0); } }
@keyframes slidein { from { transform: translateX(30px); opacity: 0; } to { transform: none; opacity: 1; } }
.alert { padding: 14px 16px; border-radius: var(--radius); margin-bottom: 20px; background: var(--bg-soft); }
.alert-warning { background: var(--warning-50); color: #8a5a00; }
.alert-danger { background: var(--danger-50); color: #a1191b; }
.alert-success { background: var(--success-50); color: #0b6b37; }
.alert-muted { background: var(--bg-soft); color: var(--text-2); }

/* ---------- Badges ---------- */
.badge { display: inline-flex; align-items: center; padding: 3px 9px; border-radius: 999px; font-size: 11.5px; font-weight: 600; white-space: nowrap; }
.badge-success { background: var(--success-50); color: var(--success); }
.badge-danger { background: var(--danger-50); color: var(--danger); }
.badge-warning { background: var(--warning-50); color: #b07400; }
.badge-info { background: var(--info-50); color: #0284c7; }
.badge-primary { background: var(--primary-50); color: var(--primary); }
.badge-muted { background: var(--bg-soft); color: var(--text-2); }
.plan-badge { display: inline-block; vertical-align: middle; padding: 1px 7px; border-radius: 4px; font-size: 11px; font-weight: 500; color: #fff; background: #8f99a8; line-height: 1.6; }
.plan-badge.plan-ouro { background: var(--gold); }
.plan-badge.plan-diamante { background: var(--diamond); }

/* ---------- Hero ---------- */
/* Topo da página inicial */
.hero { position: relative; padding: 104px 0 96px; }
/* Manchas de luz desfocadas atrás do título (mesmo efeito da GGMAX); vazam para a seção de baixo, sem divisória */
.hero-light { position: absolute; top: -308px; left: 50%; z-index: -1; width: 1398px; max-width: none; transform: translateX(-50%); pointer-events: none; user-select: none; }
.hero-inner { display: flex; flex-direction: column; align-items: center; text-align: center; }
.hero h1 { margin: 0 0 12px; font-size: clamp(28px, 3.6vw, 44px); font-weight: 700; line-height: 1.15; letter-spacing: -.8px; color: var(--text); }
.hero-lead { margin: 0 0 28px; color: var(--text-2); font-size: 17px; }
.hero-search {
  position: relative; display: flex; align-items: center; width: 100%; max-width: 640px; height: 58px; padding: 6px 6px 6px 48px;
  border: 1px solid var(--border); border-radius: 12px; background: #fff; box-shadow: 0 8px 24px rgba(16, 24, 40, .06); transition: border-color .2s, box-shadow .2s;
}
.hero-search:focus-within { border-color: var(--focus-border); box-shadow: var(--focus-ring), 0 8px 24px rgba(16, 24, 40, .06); }
.hero-search > i { position: absolute; left: 17px; font-size: 18px; color: var(--muted); }
.hero-search input { flex: 1; min-width: 0; height: 100%; margin-right: 10px; border: 0; outline: none; background: none; font-size: 15px; color: var(--text); text-overflow: ellipsis; }
.hero-search .btn { flex-shrink: 0; height: 100%; padding: 0 24px; border-radius: 8px; font-size: 15px; }
.hero-how { display: inline-flex; align-items: center; gap: 8px; margin-top: 24px; color: var(--text-2); font-size: 15.5px; font-weight: 500; transition: color .2s; }
.hero-how i { font-size: 19px; }
.hero-how:hover { color: var(--text); }

/* ---------- Seções ---------- */
.section { margin: 36px auto 48px; }
.section-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 20px; }
.section-head h2 { min-width: 0; font-size: clamp(20px, 2.6vw, 26px); font-weight: 500; letter-spacing: .2px; color: #3b3f48; overflow-wrap: anywhere; }
.link-more {
  display: inline-flex; align-items: center; gap: 8px; flex-shrink: 0; height: 42px; padding: 0 20px;
  border: 1.5px solid #d0d5dd; border-radius: 8px; background: #fff; color: var(--text-2);
  font-size: 14px; font-weight: 500; white-space: nowrap; transition: border-color .2s, color .2s, background .2s;
}
.link-more i { font-size: 16px; transition: transform .2s; }
.link-more:hover { border-color: var(--border-strong); background: var(--bg-hover); color: var(--text); }
.link-more:hover i { transform: translateX(3px); }
.page { padding-top: 24px; padding-bottom: 48px; }
.page.narrow { max-width: 960px; }
.page-title { font-size: clamp(22px, 3vw, 28px); font-weight: 600; margin-bottom: 8px; }
/* Subcategoria: nome da categoria principal antes, mais apagado (ex.: "Facebook › Contas") */
.page-title-parent { color: var(--muted); font-weight: 500; }
.page-title-parent i { margin: 0 2px; font-size: .6em; vertical-align: .15em; }
.page-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 16px; }
.page-head .page-title { margin: 0; }
.page-head p { margin: 4px 0 0; font-size: 14px; }

/* ---------- Painel › Meus anúncios (modelo da GameMarket) ---------- */
/* Abas de status: linha embaixo, aba ativa sublinhada e contador em pílula */
.ads-toolbar { margin-bottom: 16px; }
.ads-tabs { display: flex; gap: 4px; max-width: 100%; overflow-x: auto; box-shadow: inset 0 -1px 0 var(--border); scrollbar-width: none; }
.ads-tabs::-webkit-scrollbar { display: none; }
.ads-tabs button { position: relative; display: inline-flex; align-items: center; gap: 8px; padding: 12px 14px; border: 0; background: none; color: var(--text-2); font-size: 14px; font-weight: 500; white-space: nowrap; transition: color .15s; }
.ads-tabs button::after { content: ""; position: absolute; left: 10px; right: 10px; bottom: 0; height: 2px; border-radius: 2px; background: transparent; transition: background .15s; }
.ads-tabs button span { min-width: 22px; padding: 1px 7px; border-radius: 999px; background: var(--bg-soft); color: var(--text-2); font-size: 11.5px; font-weight: 600; line-height: 18px; text-align: center; transition: background .15s, color .15s; }
.ads-tabs button:hover { color: var(--text); }
.ads-tabs button:hover::after { background: var(--border); }
.ads-tabs button.active { color: var(--primary); font-weight: 600; }
.ads-tabs button.active::after { background: var(--primary); }
.ads-tabs button.active span { background: var(--primary); color: #fff; }
/* Cada anúncio em um card independente (como a GGMAX), com a capa encostada na borda esquerda */
.ads-list { display: flex; flex-direction: column; gap: 12px; }
.ads-row { display: flex; align-items: center; gap: 18px; padding: 0 18px 0 0; overflow: hidden; transition: border-color .2s, box-shadow .2s; }
.ads-row:hover { border-color: #d5dce8; box-shadow: 0 8px 22px -16px rgba(15, 23, 42, .35); }
.ads-thumb { flex-shrink: 0; align-self: stretch; width: 168px; min-height: 104px; background: var(--bg-soft); }
.ads-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s; }
.ads-row:hover .ads-thumb img { transform: scale(1.04); }
.ads-info { flex: 1; min-width: 0; padding: 16px 0; }
.ads-title { display: flex; align-items: center; gap: 8px; min-width: 0; }
.ads-title a { min-width: 0; overflow: hidden; color: var(--text); font-size: 14px; font-weight: 600; text-overflow: ellipsis; white-space: nowrap; }
.ads-title a:hover { color: var(--primary); }
.ads-status { --tone: var(--muted); flex-shrink: 0; display: inline-flex; align-items: center; gap: 4px; padding: 2px 8px; border: 1px solid color-mix(in srgb, var(--tone) 35%, #fff); border-radius: 999px; background: color-mix(in srgb, var(--tone) 10%, #fff); color: var(--tone); font-size: 11px; font-weight: 600; }
.ads-status.is-success { --tone: var(--success); }
.ads-status.is-warning { --tone: #d48a00; }
.ads-status.is-danger { --tone: var(--danger); }
.ads-status.is-muted { --tone: #7b8494; }
.ads-info p { margin: 3px 0 0; overflow: hidden; color: var(--muted); font-size: 12.5px; text-overflow: ellipsis; white-space: nowrap; }
.ads-info p b { color: var(--text-2); font-weight: 500; }
.ads-info .ads-reason { display: flex; align-items: center; gap: 6px; margin-top: 6px; color: var(--danger); white-space: normal; }
.ads-reason a { font-weight: 600; }
.ads-side { flex-shrink: 0; display: flex; align-items: center; gap: 18px; }
.ads-price { min-width: 92px; color: var(--text); font-size: 14.5px; font-weight: 700; text-align: right; }
.ads-price small { display: block; color: var(--muted); font-size: 11px; font-weight: 500; }
/* Largura fixa e alinhado à esquerda: os ícones ficam na mesma coluna em todas as linhas */
.ads-actions { display: flex; align-items: center; gap: 2px; width: 114px; justify-content: flex-start; }
.ads-actions form { margin: 0; }
.ads-act { display: grid; place-items: center; width: 34px; height: 34px; padding: 0; border: 0; border-radius: 8px; background: none; font-size: 15px; transition: background .15s, color .15s; }
/* Fundo do hover na cor do próprio ícone (o cinza sumia no fundo da linha) */
.ads-act:hover { background: color-mix(in srgb, currentColor 14%, transparent); }
.ads-act.is-view { color: #0891b2; }
.ads-act.is-edit { color: var(--success); }
.ads-act.is-pause { color: #d48a00; }
.ads-act.is-play { color: var(--primary); }
@media (max-width: 767.98px) {
  .ads-row { flex-wrap: wrap; gap: 0 14px; padding: 0; }
  .ads-thumb { width: 100%; min-height: 0; aspect-ratio: 16 / 7; }
  .ads-info { flex-basis: 100%; padding: 12px 14px 4px; }
  .ads-side { width: 100%; justify-content: space-between; padding: 0 8px 10px 14px; }
  .ads-price { min-width: 0; text-align: left; }
}
.block-title { font-size: 18px; font-weight: 700; margin: 32px 0 14px; letter-spacing: .2px; }
.breadcrumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; color: var(--text-2); margin-bottom: 20px; font-size: 14px; }
.breadcrumbs a { color: var(--text-2); }
.breadcrumbs a:hover { color: var(--primary); }
.breadcrumbs i { font-size: 11px; color: var(--muted); }

/* ---------- Categorias ---------- */
/* Home: as categorias populares ocupam a largura toda (cartões maiores que na página de categorias) */
.cat-rail { display: grid; grid-template-columns: repeat(8, minmax(0, 1fr)); gap: 16px; }
/* Pôster da home (partials/cat-poster), no estilo da GameMarket */
.cat-poster { position: relative; display: block; aspect-ratio: 2 / 3; border-radius: 14px; overflow: hidden; background: var(--bg-soft); color: #fff; transition: transform .25s, box-shadow .25s; }
.cat-poster > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.cat-poster::after { content: ""; position: absolute; inset: 45% 0 0; background: linear-gradient(180deg, transparent, rgba(8, 12, 24, .85)); pointer-events: none; }
.cat-poster-name { position: absolute; left: 10px; right: 10px; bottom: 16px; z-index: 1; font-size: 16px; font-weight: 700; line-height: 1.25; text-align: center; text-shadow: 0 2px 8px rgba(0, 0, 0, .45); }
.cat-poster:hover { transform: translateY(-4px); box-shadow: 0 18px 34px -16px rgba(15, 23, 42, .45); color: #fff; }
.cat-poster:hover > img { transform: scale(1.05); }
@media (max-width: 1199.98px) { .cat-rail { grid-template-columns: repeat(6, minmax(0, 1fr)); } }
@media (max-width: 991.98px) { .cat-rail { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
/* Página "Todas as categorias": pôsteres 2:3 em grade (3 a 10 por linha, como a GameMarket) */
/* Título, texto e busca empilhados; a busca tem a mesma largura do texto */
.cat-page-head { max-width: 760px; margin-bottom: 24px; }
.cat-page-head p { margin: 0; font-size: 15px; }
.cat-page-search { position: relative; display: block; margin-top: 18px; }
.cat-page-search i { position: absolute; top: 50%; left: 14px; color: var(--muted); transform: translateY(-50%); }
.cat-page-search input { width: 100%; height: 44px; padding: 0 14px 0 40px; border: 1px solid var(--border); border-radius: 10px; background: #fff; color: var(--text); outline: none; transition: border-color .15s, box-shadow .15s; }
.cat-page-search input:focus { border-color: var(--focus-border); box-shadow: var(--focus-ring); }
.poster-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
@media (min-width: 640px) { .poster-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (min-width: 768px) { .poster-grid { grid-template-columns: repeat(6, minmax(0, 1fr)); } }
@media (min-width: 1024px) { .poster-grid { grid-template-columns: repeat(7, minmax(0, 1fr)); } }
@media (min-width: 1280px) { .poster-grid { grid-template-columns: repeat(8, minmax(0, 1fr)); } }
@media (min-width: 1536px) { .poster-grid { grid-template-columns: repeat(10, minmax(0, 1fr)); } }
.poster-grid .cat-poster-name { font-size: 14px; }
@media (max-width: 767.98px) {
  .poster-grid .cat-poster-name { bottom: 10px; font-size: 12.5px; }
}

/* ---------- Card de anúncio ---------- */
.ad-grid { display: grid; gap: 16px; }
/* Colunas dos cards por largura de tela (mesmos pontos da GGMAX) */
.ad-grid.grid-section { grid-template-columns: repeat(6, minmax(0, 1fr)); }
@media (max-width: 1399.98px) { .ad-grid.grid-section { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.ad-grid.grid-wide { grid-template-columns: repeat(6, minmax(0, 1fr)); }
@media (max-width: 1599.98px) { .ad-grid.grid-wide { grid-template-columns: repeat(5, minmax(0, 1fr)); } }
@media (max-width: 1399.98px) { .ad-grid.grid-wide { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (max-width: 991.98px) { .ad-grid.grid-wide { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.ad-grid.grid-listing { grid-template-columns: repeat(5, minmax(0, 1fr)); }
@media (max-width: 1599.98px) { .ad-grid.grid-listing { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (max-width: 1199.98px) { .ad-grid.grid-listing { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 575.98px) { .ad-grid.grid-section, .ad-grid.grid-wide, .ad-grid.grid-listing { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; } }
.ad-card {
  position: relative; display: flex; flex-direction: column; background: #fff; border: 1px solid var(--border);
  border-radius: var(--radius-sm); padding: 7px; color: var(--text); min-width: 0;
  transition: transform .35s cubic-bezier(.2, .8, .2, 1), box-shadow .35s cubic-bezier(.2, .8, .2, 1);
}
/* Hover: o card cresce um pouco, ganha sombra suave e um brilho atravessa a capa */
.ad-card:hover { z-index: 1; transform: scale(1.03); box-shadow: 0 16px 34px -16px rgba(15, 23, 42, .28); color: var(--text); }
.ad-card.is-diamond { border-color: #cfe0ff; }
.ad-card-img { position: relative; aspect-ratio: 16 / 9.5; border-radius: 6px; overflow: hidden; background: var(--bg-soft); }
.ad-card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s cubic-bezier(.2, .8, .2, 1); }
.ad-card-img::after {
  content: ""; position: absolute; inset: 0; pointer-events: none; transform: translateX(-130%) skewX(-18deg);
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .35), transparent);
}
.ad-card:hover .ad-card-img img { transform: scale(1.05); }
.ad-card:hover .ad-card-img::after { transform: translateX(130%) skewX(-18deg); transition: transform .8s ease; }
.ad-card:hover .ad-card-title h3 { color: var(--text); }
@media (prefers-reduced-motion: reduce) {
  .ad-card, .ad-card-img img, .ad-card-img::after { transition: none !important; }
  .ad-card:hover, .ad-card:hover .ad-card-img img { transform: none; }
}
.ad-card-body { display: flex; flex-direction: column; flex: 1; padding: 12px 6px 6px; }
.ad-card-title { display: flex; gap: 8px; align-items: flex-start; min-height: 58px; }
.ad-card-title h3 {
  flex: 1; font-size: 12.5px; font-weight: 500; text-transform: uppercase; line-height: 1.45; color: #3b3f48;
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; word-break: break-word;
}
.chip-icon { flex-shrink: 0; width: 26px; height: 26px; border-radius: 6px; display: grid; place-items: center; background: var(--primary-50); color: var(--primary); font-size: 13px; }
.ad-card-foot { margin-top: auto; padding-top: 14px; display: flex; flex-direction: column; gap: 12px; }
.ad-card-price { display: flex; flex-direction: column; line-height: 1.2; }
.ad-card-price small { color: var(--muted); font-size: 11.5px; }
.ad-card-price strong { color: var(--text); font-size: 19px; font-weight: 700; letter-spacing: -.2px; }
.price-pill { display: inline-block; padding: 4px 12px; border: 1.5px solid var(--primary); border-radius: 6px; color: var(--primary); font-weight: 700; font-size: 14px; white-space: nowrap; }
/* Vendedor no card: avatar, nome e nota (estilo GameMarket) */
.ad-card-seller { display: flex; align-items: center; gap: 6px; max-width: 100%; padding-top: 12px; border-top: 1px solid var(--border); font-size: 12.5px; }
.ad-card-avatar { position: relative; flex-shrink: 0; }
.ad-card-avatar img { width: 22px; height: 22px; border-radius: 50%; object-fit: cover; box-shadow: 0 0 0 1px var(--border); }
.ad-card-avatar i { position: absolute; right: -1px; bottom: -1px; width: 8px; height: 8px; border: 1.5px solid #fff; border-radius: 50%; background: var(--success); }
.ad-card-name { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--text-2); font-weight: 600; }
.ad-card-rating { flex-shrink: 0; display: inline-flex; align-items: center; gap: 3px; }
.ad-card-rating i { color: #f5b301; font-size: 11.5px; }
.ad-card-rating b { color: #d99a00; font-weight: 600; }
.ad-card-rating small { color: var(--muted); font-size: 11.5px; }

/* ---------- Avaliações (home) ---------- */

/* ---------- Benefícios / rodapé ---------- */
.footer { background: #f8f9fb; border-top: 1px solid var(--border); padding: 40px 0 0; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 32px; }
.footer-logo { display: inline-block; margin-bottom: 14px; }
.footer-logo img { display: block; width: auto; height: 36px; }
.footer h6 { font-size: 13px; text-transform: uppercase; letter-spacing: .6px; margin-bottom: 14px; color: var(--text); }
.footer p { color: var(--text-2); font-size: 13px; max-width: 380px; }
.footer a { display: block; color: var(--text-2); font-size: 13.5px; margin-bottom: 8px; }
.footer a:hover { color: var(--primary); }
.footer-bottom { border-top: 1px solid var(--border); margin-top: 24px; padding: 18px 20px; color: var(--muted); font-size: 12.5px; }

/* ---------- Listagem ---------- */
.listing-head { display: flex; align-items: center; gap: 16px; margin-bottom: 16px; }
.listing-thumb { flex-shrink: 0; display: block; width: 72px; height: 72px; overflow: hidden; border-radius: 12px; }
.listing-thumb > img { width: 100%; height: 100%; object-fit: cover; }
.listing { display: grid; grid-template-columns: 250px 1fr; gap: 24px; align-items: start; }
.listing-side { display: flex; flex-direction: column; gap: 16px; }
.filters { display: flex; flex-direction: column; gap: 16px; padding: 18px; border: 1px solid var(--border); border-radius: var(--radius); }
.filters h6, .side-cats h6 { font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: .4px; color: var(--text); }
.side-cats { display: flex; flex-direction: column; gap: 4px; padding: 18px 10px 10px; border: 1px solid var(--border); border-radius: var(--radius); }
.side-cats h6 { padding: 0 8px 10px; }
.side-cats a { padding: 9px 8px; border-radius: 8px; color: var(--text-2); font-weight: 500; }
.side-cats a:hover { background: var(--bg-soft); color: var(--text); }
.side-cats a.active { background: var(--primary-50); color: var(--primary); font-weight: 600; }
.listing-search-box { margin-bottom: 20px; }
.listing-search { position: relative; }
.listing-search-filters { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--border); font-size: 12.5px; color: var(--muted); }
.listing-search-filters[hidden] { display: none; }
.listing-search-filters .chip { padding: 3px 6px 3px 12px; font-size: 12.5px; gap: 4px; max-width: 100%; }
.listing-search-filters .chip > span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.listing-search-filters .chip button { display: grid; place-items: center; width: 20px; height: 20px; border: 0; border-radius: 50%; background: none; color: inherit; opacity: .7; }
.listing-search-filters .chip button:hover { opacity: 1; background: rgba(255, 255, 255, .2); }
.listing-results { transition: opacity .15s; }
.listing-results.is-loading { opacity: .55; pointer-events: none; }
.listing-search > i { position: absolute; left: 16px; top: 50%; transform: translateY(-50%); color: var(--muted); }
.listing-search input { width: 100%; height: 46px; padding: 0 16px 0 44px; border-radius: 999px; border: 1px solid transparent; background: #eef0f3; outline: none; transition: .15s; }
.listing-search input:focus { background: #fff; border-color: var(--focus-border); box-shadow: var(--focus-ring); }
.filter-block label { display: block; font-size: 12px; font-weight: 600; text-transform: uppercase; color: var(--text-2); margin-bottom: 6px; letter-spacing: .3px; }
.chip { display: inline-flex; align-items: center; gap: 6px; padding: 6px 14px; border-radius: 999px; border: 1px solid var(--border); background: #fff; color: var(--text-2); font-size: 13px; font-weight: 500; }
.chip:hover { border-color: var(--border-strong); background: var(--bg-hover); color: var(--text); }
.chip.active { background: var(--primary); border-color: var(--primary); color: #fff; }
.pagination { display: flex; justify-content: center; gap: 6px; margin-top: 28px; }
.pagination button { min-width: 38px; height: 38px; display: grid; place-items: center; padding: 0 10px; border: 1px solid var(--border); border-radius: 8px; background: #fff; color: var(--text); font-size: 14px; transition: border-color .15s, color .15s, background .15s; }
.pagination button:hover { border-color: var(--border-strong); background: var(--bg-hover); color: var(--text); }
.pagination button.active { background: var(--primary); border-color: var(--primary); color: #fff; }
/* Botão com aparência de link (ações dentro do texto) */
.link-btn { padding: 0; border: 0; background: none; color: var(--primary); font: inherit; font-weight: 500; }
.link-btn:hover { text-decoration: underline; }
.empty { text-align: center; padding: 56px 20px; color: var(--muted); }
.empty > i { font-size: 42px; display: block; margin-bottom: 12px; color: #c4c9d3; }
.empty.small { padding: 28px 12px; }
.empty h3 { margin: 0 0 4px; color: var(--text); font-size: 16px; font-weight: 600; }
.empty h3 + p { margin: 0; }
.empty .btn { margin-top: 8px; }

/* ---------- Formulários ---------- */
.input {
  width: 100%; height: 42px; padding: 0 12px; border: 1px solid var(--border); border-radius: var(--radius-sm);
  background: #fff; color: var(--text); outline: none; transition: border-color .15s, box-shadow .15s;
}
textarea.input { height: auto; padding: 10px 12px; resize: vertical; }
select.input { padding-right: 32px; }

/* Campo de imagem com prévia (partials/file-pick) */
.file-pick {
  display: flex; align-items: center; gap: 8px; padding: 12px; border: 1.5px dashed var(--border); border-radius: 12px;
  background: #fff; transition: border-color .2s, background .2s;
}
.file-pick:hover, .file-pick.is-over { border-color: var(--primary); background: var(--primary-50); }
.file-pick:focus-within { border-color: var(--focus-border); box-shadow: var(--focus-ring); }
.file-pick-main { flex: 1; min-width: 0; display: flex; align-items: center; gap: 14px; margin: 0; cursor: pointer; }
.file-pick-remove {
  flex-shrink: 0; display: grid; place-items: center; width: 34px; height: 34px; padding: 0; border: 1px solid var(--border);
  border-radius: 8px; background: #fff; color: var(--text-2); font-size: 15px; transition: color .2s, border-color .2s, background .2s;
}
.file-pick-remove:hover { border-color: var(--danger); background: var(--danger-50); color: var(--danger); }
.file-pick-input { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.file-pick-thumb { flex-shrink: 0; display: grid; place-items: center; width: 56px; height: 56px; border-radius: 10px; overflow: hidden; background: var(--bg-soft); color: var(--muted); font-size: 22px; }
.file-pick-thumb img { width: 100%; height: 100%; object-fit: cover; }
.file-pick-thumb img:not([hidden]) + i { display: none; }
.file-pick.is-round .file-pick-thumb { border-radius: 50%; }
.file-pick-text { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.file-pick-text strong { overflow: hidden; font-size: 14px; font-weight: 600; text-overflow: ellipsis; white-space: nowrap; }
.file-pick-text small { color: var(--muted); font-size: 12px; line-height: 1.4; }
.file-pick-btn { flex-shrink: 0; gap: 6px; pointer-events: none; }
@media (max-width: 575.98px) { .file-pick-btn { display: none; } }

/* Select do site (o nativo fica invisível por baixo, só para o formulário) */
.select { position: relative; }
.select-native { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; pointer-events: none; }
.select-toggle { display: flex; align-items: center; gap: 10px; text-align: left; cursor: pointer; }
.select-toggle:disabled { background: var(--bg-soft); color: var(--muted); cursor: not-allowed; }
.select-toggle.is-placeholder .select-value { color: var(--muted); }
.select-toggle.is-invalid { border-color: var(--danger); }
.select-value { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.select-caret { flex-shrink: 0; color: var(--muted); font-size: 13px; transition: transform .2s; }
.select.is-open .select-toggle { border-color: var(--focus-border); box-shadow: var(--focus-ring); }
.select.is-open .select-caret { transform: rotate(180deg); }
.select-menu {
  position: fixed; z-index: 1000; max-width: calc(100vw - 16px); max-height: 300px; overflow-y: auto; padding: 6px;
  border: 1px solid var(--border); border-radius: 10px; background: #fff; box-shadow: 0 16px 40px rgba(15, 23, 42, .14);
  animation: select-in .14s ease-out;
}
@keyframes select-in { from { opacity: 0; transform: translateY(-4px); } }
.select-option {
  display: flex; align-items: center; gap: 10px; width: 100%; padding: 9px 10px; border: 0; border-radius: 6px;
  background: none; color: var(--text); font: inherit; font-size: 14px; text-align: left; white-space: nowrap; cursor: pointer;
}
.select-option:hover, .select-option:focus { background: var(--bg-soft); outline: none; }
.select-option[aria-selected="true"] { background: var(--primary-50); color: var(--primary); font-weight: 600; }
.select-option i { margin-left: auto; padding-left: 12px; visibility: hidden; }
.select-option[aria-selected="true"] i { visibility: visible; }
.select-option:disabled { opacity: .45; cursor: not-allowed; }
.select-group { padding: 10px 10px 4px; color: var(--muted); font-size: 11.5px; font-weight: 600; letter-spacing: .4px; text-transform: uppercase; }
.select-sm .select-option { padding: 7px 10px; font-size: 13px; }
@media (prefers-reduced-motion: reduce) { .select-menu { animation: none; } .select-caret { transition: none; } }
.input:focus { border-color: var(--focus-border); box-shadow: var(--focus-ring); }
.input:disabled { background: var(--bg-soft); color: var(--muted); }
.input-sm { height: 34px; font-size: 13px; }
.input-color { padding: 4px; }
.field { display: flex; flex-direction: column; gap: 6px; position: relative; }
.field > label { font-weight: 500; font-size: 13.5px; }
.field-error { color: var(--danger); font-size: 12.5px; }
.hint { color: var(--muted); font-size: 12.5px; margin: 6px 0 0; }
.counter { position: absolute; right: 0; top: 2px; color: var(--muted); font-size: 12px; }
.form-stack { display: flex; flex-direction: column; gap: 16px; }
.row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.row-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.check { display: flex; align-items: center; gap: 8px; font-size: 13.5px; cursor: pointer; }
.check input { width: 16px; height: 16px; accent-color: var(--primary); }
.form-card { padding: 24px; display: flex; flex-direction: column; gap: 16px; }
.form-card h3 { font-size: 16px; }
/* Verificações (painel): documentos para liberar a conta de vendedor */
.ver-summary { display: flex; align-items: center; gap: 14px; margin-bottom: 16px; padding: 18px 20px; border: 1px solid var(--border); border-radius: 14px; background: #fff; }
.ver-summary.is-done { border-color: #c6ebd5; background: var(--success-50); }
.ver-summary-icon { display: grid; flex-shrink: 0; place-items: center; width: 42px; height: 42px; border-radius: 12px; background: var(--primary-50); color: var(--primary); font-size: 19px; }
.ver-summary.is-done .ver-summary-icon { background: #fff; color: var(--success); }
.ver-summary > div:not(.ver-progress) { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.ver-summary strong { font-size: 15px; }
.ver-summary small { color: var(--text-2); font-size: 13px; }
.ver-progress { display: flex; gap: 6px; }
.ver-progress span { width: 34px; height: 6px; border-radius: 6px; background: var(--border); }
.ver-progress span.is-on { background: var(--success); }
.ver-notice { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 12px; margin-bottom: 16px; padding: 14px 16px; border: 1px solid #d6e4ff; border-radius: 12px; background: #f4f8ff; color: var(--text-2); font-size: 14px; }
.ver-notice > i { color: var(--primary); font-size: 17px; }
.ver-notice span { flex: 1; min-width: 220px; }
.ver-list { display: flex; flex-direction: column; gap: 12px; }
.ver-card { border: 1px solid var(--border); border-radius: 14px; background: #fff; box-shadow: 0 1px 2px rgba(16, 24, 40, .04); }
.ver-card summary { display: flex; align-items: center; gap: 14px; padding: 16px 20px; cursor: pointer; list-style: none; }
.ver-card summary::-webkit-details-marker { display: none; }
.ver-card-icon { display: grid; flex-shrink: 0; place-items: center; width: 40px; height: 40px; border-radius: 11px; background: var(--primary-50); color: var(--primary); font-size: 18px; }
.ver-card summary strong { flex: 1; min-width: 0; font-size: 15px; }
.ver-state { font-size: 13px; font-weight: 600; text-align: right; }
.ver-state.is-success { color: var(--success); }
.ver-state.is-info { color: var(--primary); }
.ver-state.is-danger { color: var(--danger); }
.ver-state.is-warning { color: #d18a00; }
.ver-state.is-muted { color: var(--muted); font-weight: 500; }
.ver-chevron { color: var(--muted); font-size: 13px; transition: transform .2s; }
.ver-card[open] .ver-chevron { transform: rotate(180deg); }
.ver-body { display: flex; flex-direction: column; gap: 16px; padding: 18px 20px 20px; border-top: 1px solid var(--border); }
.ver-msg { display: flex; align-items: flex-start; gap: 10px; margin: 0; padding: 12px 14px; border-radius: 10px; font-size: 14px; line-height: 1.45; }
.ver-msg i { flex-shrink: 0; margin-top: 1px; }
.ver-msg.is-muted { background: var(--bg-soft); color: var(--text-2); }
/* Documento em análise, verificado ou recusado (como na GGMAX): selo e texto centralizados */
.ver-status-box { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 28px 16px 20px; text-align: center; }
.ver-status-icon { display: grid; place-items: center; width: 44px; height: 44px; margin-bottom: 8px; border-radius: 12px; font-size: 20px; }
.ver-status-box.is-success .ver-status-icon { background: var(--success-50); color: var(--success); }
.ver-status-box.is-info .ver-status-icon { background: var(--primary-50); color: var(--primary); }
.ver-status-box.is-danger .ver-status-icon { background: var(--danger-50); color: var(--danger); }
.ver-status-box strong { font-size: 15.5px; font-weight: 600; }
.ver-status-box p { max-width: 460px; margin: 0; color: var(--text-2); font-size: 14px; }
.ver-status-box small { color: var(--muted); font-size: 12.5px; }
.ver-form { display: flex; flex-direction: column; gap: 14px; }
.ver-drops { display: grid; gap: 16px; }
.ver-drops.is-2 { grid-template-columns: 1fr 1fr; }
.ver-drop-label { display: block; margin-bottom: 8px; color: var(--text); font-size: 13.5px; font-weight: 500; }
.ver-drop {
  position: relative; display: grid; place-items: center; min-height: 120px; overflow: hidden; border: 1.5px dashed #c9d0db; border-radius: 12px;
  background: var(--bg-soft); color: var(--text-2); text-align: center; cursor: pointer; transition: border-color .15s, background .15s;
}
.ver-drop:hover, .ver-drop.is-over { border-color: var(--border-strong); background: #f1f3f7; }
.ver-drop.has-file { border-style: solid; background: #fff; }
.ver-drop img { width: 100%; height: 200px; object-fit: contain; }
.ver-drop-text { display: inline-flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 8px; padding: 16px; font-size: 14px; }
.ver-drop-text i { font-size: 18px; }
.ver-drop-text small { color: var(--muted); }
.ver-actions { display: flex; justify-content: flex-end; }
.ver-help { padding: 14px 16px; border-radius: 12px; background: var(--bg-soft); }
.ver-help-title { display: inline-flex; align-items: center; gap: 6px; margin-bottom: 8px; color: var(--primary); font-size: 12.5px; font-weight: 700; letter-spacing: .5px; text-transform: uppercase; }
.ver-help ul { display: flex; flex-direction: column; gap: 6px; margin: 0; padding: 0; list-style: none; }
.ver-help li { position: relative; padding-left: 16px; color: var(--text-2); font-size: 13.5px; }
.ver-help li::before { content: ""; position: absolute; top: 8px; left: 2px; width: 6px; height: 6px; border-radius: 50%; background: var(--primary); }
.ver-help li.is-bad::before { background: var(--danger); }
.ver-privacy { display: flex; align-items: center; gap: 8px; margin: 18px 0 0; color: var(--muted); font-size: 13px; }
@media (max-width: 575.98px) {
  .ver-drops.is-2 { grid-template-columns: 1fr; }
  .ver-card summary { flex-wrap: wrap; padding: 14px 16px; }
  .ver-state { order: 3; width: 100%; padding-left: 54px; text-align: left; }
  .ver-progress { display: none; }
}

/* Segurança (painel): 2FA e alterar senha */
.sec-card + .sec-card { margin-top: 16px; }
.sec-card h3 { margin: 0; }
.sec-lead { margin: -10px 0 0; color: var(--text-2); font-size: 14px; }
.sec-lead strong { color: var(--text); font-weight: 600; }
.req { color: var(--danger); }
.sent-note { color: var(--text-2); font-weight: 500; }
.plain-fieldset { display: contents; } /* só agrupa os campos para travá-los juntos (disabled) */
.sec-status { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 18px; border-radius: 12px; background: var(--bg-soft); }
.sec-status-label { display: inline-flex; align-items: center; gap: 8px; font-size: 14.5px; font-weight: 600; }
.sec-status-label.is-off { color: var(--danger); }
.sec-actions { display: flex; justify-content: flex-end; padding-top: 16px; border-top: 1px solid var(--border); }
.form-step { display: flex; align-items: center; gap: 10px; font-size: 17px; }
.form-step span { width: 28px; height: 28px; border-radius: 50%; background: var(--primary); color: #fff; display: grid; place-items: center; font-size: 13px; }
.form-actions { display: flex; justify-content: flex-end; gap: 12px; }

.segmented { display: inline-flex; padding: 4px; background: var(--bg-soft); border-radius: 10px; gap: 4px; align-self: flex-start; }
.segmented label { position: relative; padding: 8px 16px; border-radius: 8px; cursor: pointer; font-weight: 500; color: var(--text-2); }
.segmented input { position: absolute; opacity: 0; }
.segmented label:has(input:checked) { background: #fff; color: var(--primary); box-shadow: var(--shadow); }

.switch { display: flex; align-items: center; gap: 12px; cursor: pointer; }
.switch input { position: absolute; opacity: 0; }
.switch-ui { flex-shrink: 0; width: 44px; height: 24px; border-radius: 12px; background: #d0d5dd; position: relative; transition: .2s; }
.switch-ui::after { content: ''; position: absolute; top: 3px; left: 3px; width: 18px; height: 18px; border-radius: 50%; background: #fff; transition: .2s; box-shadow: 0 1px 2px rgba(0,0,0,.2); }
.switch input:checked + .switch-ui { background: var(--primary); }
.switch input:checked + .switch-ui::after { transform: translateX(20px); }

.dropzone { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 28px; border: 2px dashed #cfd5df; border-radius: var(--radius); text-align: center; cursor: pointer; color: var(--text-2); transition: .15s; }
.dropzone:hover, .dropzone.drag { border-color: var(--primary); background: var(--primary-50); }
.dropzone i { font-size: 32px; color: var(--primary); }
.dropzone input { display: none; }
.dropzone small { color: var(--muted); }
.img-preview, .img-manage { display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 10px; }
.img-preview:empty { display: none; }
.img-preview img, .img-item img { width: 100%; aspect-ratio: 16/10; object-fit: cover; border-radius: 8px; border: 1px solid var(--border); }
.img-item { display: flex; flex-direction: column; gap: 4px; font-size: 12px; }
.img-opt { display: flex; align-items: center; gap: 4px; cursor: pointer; }
.img-opt.danger { color: var(--danger); }

.items-table { display: flex; flex-direction: column; gap: 8px; }
.items-head, .items-row { display: grid; grid-template-columns: 1fr 130px 100px 40px; gap: 8px; align-items: center; }
.items-head { font-size: 12px; color: var(--muted); font-weight: 600; text-transform: uppercase; }

.plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.plan-card { display: flex; gap: 10px; padding: 16px; border: 1.5px solid var(--border); border-radius: var(--radius); cursor: pointer; transition: .15s; }
.plan-card div { display: flex; flex-direction: column; gap: 4px; }
.plan-card .plan-badge { align-self: flex-start; }
.plan-card strong { font-size: 16px; }
.plan-card small { color: var(--muted); }
.plan-card input { accent-color: var(--primary); margin-top: 3px; }
.plan-card:has(input:checked) { border-color: var(--primary); background: var(--primary-50); }
.plans.static .plan-card { cursor: default; }
.plans.static strong { font-size: 26px; }

/* ---------- Card genérico ---------- */
.card { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); }
.card-head { display: flex; justify-content: space-between; align-items: center; padding: 16px 18px; border-bottom: 1px solid var(--border); }
.card-head h3 { font-size: 15px; }
/* "Ver todos" no topo dos cartões: mesmo padrão dos "Ver todas as categorias/notificações" */
.see-all { display: inline-flex; align-items: center; gap: 6px; color: var(--text-2); font-size: 13px; font-weight: 500; transition: color .15s; }
.see-all:hover { color: var(--text); }
.see-all i { font-size: 12px; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.prose { padding: 24px 28px; margin-top: 24px; }
.prose h2 { font-size: 18px; margin: 16px 0 8px; }
.prose h2:first-child { margin-top: 0; }
.prose ul { padding-left: 20px; }
.prose li { margin-bottom: 6px; }

/* ---------- Página do anúncio ---------- */
.ad-layout { display: grid; grid-template-columns: minmax(0, 1fr) 400px; gap: 28px; align-items: start; }
.ad-top { display: grid; grid-template-columns: 300px 1fr; gap: 28px; }
.gallery-main { position: relative; display: block; width: 100%; padding: 0; border: 0; border-radius: var(--radius-sm); overflow: hidden; background: var(--bg-soft); cursor: zoom-in; }
.gallery-main img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
.gallery-zoom { position: absolute; top: 8px; right: 8px; width: 32px; height: 32px; border-radius: 50%; background: #fff; display: grid; place-items: center; box-shadow: var(--shadow); color: var(--text); }
.gallery-thumbs { display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px; margin-top: 8px; }
.gallery-thumbs button { padding: 0; border: 2px solid transparent; border-radius: 6px; overflow: hidden; background: none; }
.gallery-thumbs button.active { border-color: var(--primary); }
.gallery-thumbs img { width: 100%; aspect-ratio: 1; object-fit: cover; }
.ad-title { font-size: clamp(20px, 2.4vw, 25px); font-weight: 600; line-height: 1.35; word-break: break-word; }
.auto-badge { display: inline-flex; gap: 6px; align-items: center; margin-top: 12px; padding: 6px 12px; border-radius: 999px; background: var(--primary-50); color: var(--primary); font-weight: 600; font-size: 12.5px; }
.buy-box { display: flex; flex-direction: column; gap: 22px; margin-top: 20px; }
/* Seletor de item e, logo abaixo, preço + comprar */
.buy-deal { display: flex; flex-direction: column; align-items: flex-start; gap: 20px; }
.ad-counters { display: flex; align-items: center; }
.ad-counters > div { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 0 24px; border-right: 1px solid var(--border); }
.ad-counters > div:first-child { padding-left: 0; }
.ad-counters > div:last-child { border-right: 0; }
.ad-counters span { font-size: 12.5px; letter-spacing: .3px; color: var(--text-2); }
.ad-counters strong { font-size: 18px; line-height: 1; }
.buy-row { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
/* Anúncio sem opções: contadores, divisória e preço + comprar na mesma linha */
.buy-box.is-simple { flex-direction: row; align-items: center; flex-wrap: wrap; gap: 16px 0; }
.buy-box.is-simple .ad-counters > div:last-child { border-right: 1px solid var(--border); }
.buy-box.is-simple .buy-deal { padding-left: 24px; }
.price-big { font-size: 24px; font-weight: 700; line-height: 1; color: var(--primary); white-space: nowrap; }
.qty { display: inline-flex; align-items: center; border: 1px solid var(--border); border-radius: 8px; overflow: hidden; }
.qty button { width: 34px; height: 42px; border: 0; background: var(--bg-soft); font-size: 18px; }
.qty input { width: 48px; height: 42px; border: 0; text-align: center; outline: none; -moz-appearance: textfield; }
.qty input::-webkit-outer-spin-button, .qty input::-webkit-inner-spin-button { -webkit-appearance: none; }
/* Botão de compra ao lado do preço */
.buy-btn { min-width: 150px; height: 42px; padding: 0 20px; border-radius: 8px; font-size: 15px; font-weight: 500; }
/* Celular: tudo centralizado, como na GGMAX */
@media (max-width: 767.98px) {
  .ad-summary { text-align: center; }
  .buy-box, .buy-box.is-simple { flex-direction: column; align-items: center; gap: 20px; }
  .buy-deal { align-items: center; width: 100%; }
  .ad-counters > div, .ad-counters > div:first-child { padding: 0 24px; }
  .buy-box.is-simple .ad-counters > div:last-child { border-right: 0; }
  .buy-box.is-simple .buy-deal { padding-left: 0; }
  .buy-row { justify-content: center; gap: 14px 20px; }
  .buy-btn { min-width: 150px; }
}

/* Seletor de item (anúncio com várias opções) */
.item-picker { position: relative; width: 100%; max-width: 420px; }
.item-picker-toggle { position: relative; display: flex; align-items: center; gap: 10px; width: 100%; padding: 14px 16px 12px; border: 1px solid var(--border); border-radius: 10px; background: #fff; color: var(--text); text-align: left; transition: border-color .2s, box-shadow .2s; }
.item-picker-toggle:hover { border-color: #c5ccd8; }
.item-picker-toggle[aria-expanded="true"] { border-color: var(--focus-border); box-shadow: var(--focus-ring); }
.item-picker-label { position: absolute; top: -9px; left: 12px; padding: 0 6px; background: #fff; color: var(--text-2); font-size: 12px; line-height: 18px; }
.item-picker-value { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 15px; font-weight: 500; }
.item-picker-caret { flex-shrink: 0; color: var(--muted); transition: transform .2s; }
.item-picker-toggle[aria-expanded="true"] .item-picker-caret { transform: rotate(180deg); }
.item-picker-menu { position: absolute; top: calc(100% + 6px); left: 0; right: 0; z-index: 30; padding: 10px; border: 1px solid var(--border); border-radius: 12px; background: #fff; box-shadow: 0 16px 40px rgba(15, 23, 42, .14); }
.item-picker-menu[hidden] { display: none; }
.item-picker-search { display: flex; align-items: center; gap: 10px; margin: 0 0 6px; padding: 0 14px; border: 1px solid var(--border); border-radius: 8px; background: var(--bg-soft); color: var(--muted); }
.item-picker-search:focus-within { border-color: var(--focus-border); background: #fff; }
.item-picker-search input { flex: 1; min-width: 0; height: 42px; border: 0; background: none; outline: none; font-size: 14px; color: var(--text); }
.item-picker-list { max-height: 320px; margin: 0; padding: 0; overflow-y: auto; list-style: none; }
.item-picker-option { display: grid; grid-template-columns: 1fr auto 18px; align-items: center; gap: 12px; width: 100%; padding: 12px; border: 0; border-radius: 8px; background: none; color: var(--text); text-align: left; }
.item-picker-option:hover:not(:disabled), .item-picker-option:focus-visible { background: var(--bg-soft); outline: none; }
.item-picker-option[aria-selected="true"] { background: var(--primary-50); }
.item-picker-option:disabled { opacity: .5; cursor: not-allowed; }
.item-picker-text { display: flex; flex-direction: column; gap: 2px; min-width: 0; font-size: 14.5px; line-height: 1.35; overflow-wrap: anywhere; }
.item-picker-text small { color: var(--muted); font-size: 12px; }
.item-picker-option strong { color: var(--primary); font-size: 15px; font-weight: 700; white-space: nowrap; }
.item-picker-check { visibility: hidden; color: var(--primary); }
.item-picker-option[aria-selected="true"] .item-picker-check { visibility: visible; }
.item-picker-empty { margin: 0; padding: 14px 12px; color: var(--muted); font-size: 13.5px; text-align: center; }
@media (max-width: 767.98px) { .item-picker { max-width: 360px; } }
/* Características: três blocos lado a lado com ícone, rótulo e valor */
.spec-grid { display: grid; grid-template-columns: repeat(3, 1fr); margin: 0; padding: 0; list-style: none; }
.spec-grid li { display: flex; align-items: center; gap: 14px; min-width: 0; padding: 20px 24px; border-right: 1px solid var(--border); }
.spec-grid li:last-child { border-right: 0; }
.spec-icon { display: grid; place-items: center; flex-shrink: 0; width: 42px; height: 42px; border-radius: 10px; background: var(--primary-50); color: var(--primary); font-size: 18px; }
.spec-text { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.spec-text small { color: var(--muted); font-size: 12.5px; }
.spec-text strong { font-size: 14.5px; font-weight: 600; overflow-wrap: anywhere; }
.description { padding: 20px 24px; font-size: 14.5px; line-height: 1.7; word-break: break-word; }
.desc-foot { margin-top: 18px; padding-top: 14px; border-top: 1px solid var(--border); font-size: 12px; color: var(--muted); font-weight: 600; }
/* Blocos da página do anúncio: cabeçalho com ícone e título dentro do card */
.panel { margin-top: 28px; padding: 0; overflow: hidden; }
.panel-head { display: flex; align-items: center; gap: 12px; padding: 18px 24px; border-bottom: 1px solid var(--border); }
.panel-head i { color: var(--primary); font-size: 20px; }
.panel-head h2 { margin: 0; font-size: 18px; font-weight: 700; }

/* Perguntas sobre o produto */
.questions-bar { padding: 16px 24px; border-bottom: 1px solid var(--border); }
.questions-warn { display: flex; align-items: flex-start; gap: 8px; margin: 12px 0 0; color: var(--text-2); font-size: 13px; line-height: 1.5; }
/* Ícone com a mesma altura da 1ª linha do texto, centralizado nela */
.questions-warn i { flex-shrink: 0; display: inline-flex; align-items: center; height: calc(13px * 1.5); color: #e0a100; font-size: 14px; line-height: 1; }
.questions-warn i::before { vertical-align: 0; }
.questions-login { display: flex; align-items: center; gap: 10px; color: var(--text-2); font-size: 14px; }
.questions-login i { color: #e0a100; font-size: 16px; }
.questions-login .link-btn { font-weight: 600; }
.questions-empty { display: flex; flex-direction: column; align-items: center; gap: 28px; padding: 52px 24px 44px; text-align: center; }
.questions-empty-icon { display: grid; place-items: center; width: 84px; height: 84px; border-radius: 50%; background: var(--gradient-primary); color: #fff; font-size: 40px; box-shadow: 0 0 0 12px var(--primary-50), 0 0 0 24px rgba(11, 107, 255, .04), 0 14px 30px rgba(11, 107, 255, .3); }
.questions-empty-text { display: flex; flex-direction: column; gap: 4px; }
.questions-empty-text strong { font-size: 16px; font-weight: 600; color: var(--text); }
.questions-empty-text span { color: var(--muted); font-size: 13.5px; }
.ask-form { display: flex; gap: 8px; }
.ask-form .input { flex: 1 1 auto; }
.ask-form.small { margin-top: 8px; }
/* Lista de perguntas (mesmo formato da GameMarket) */
.qa-list { margin: 0; padding: 0; list-style: none; }
.qa { display: grid; grid-template-columns: 40px minmax(0, 1fr); column-gap: 14px; padding: 18px 24px; border-bottom: 1px solid var(--border); }
/* Coluna do avatar: quando há resposta, uma linha desce do avatar e faz a curva até a réplica */
.qa-side { display: flex; flex-direction: column; align-items: center; }
.qa.has-answer .qa-side::after { content: ""; flex: 1; width: 2px; margin-top: 6px; background: var(--border); }
.qa:last-child { border-bottom: 0; }
.qa-avatar { flex-shrink: 0; width: 40px; height: 40px; border-radius: 50%; object-fit: cover; box-shadow: 0 0 0 1px var(--border); }
.qa-body { min-width: 0; }
.qa-meta { display: flex; align-items: baseline; flex-wrap: wrap; gap: 8px; }
.qa-meta strong { font-size: 14.5px; font-weight: 600; }
.qa-seller { color: var(--primary); font-size: 13.5px; font-weight: 600; text-decoration: none; transition: color .2s; }
.qa-seller:hover { color: #4d94ff; text-decoration: none; }
.qa-avatar-link { flex-shrink: 0; height: fit-content; border-radius: 50%; transition: opacity .2s; }
.qa-avatar-link:hover { opacity: .85; }
.qa-badge { align-self: center; padding: 2px 8px; border-radius: 6px; background: var(--primary); color: #fff; font-size: 11.5px; font-weight: 600; line-height: 1.4; }
.qa-meta small { color: var(--muted); font-size: 12.5px; }
.qa-text { margin: 4px 0 0; color: var(--text-2); font-size: 14.5px; line-height: 1.5; overflow-wrap: anywhere; }
.qa-answer { position: relative; grid-column: 2; display: flex; gap: 10px; padding-top: 14px; }
.qa-answer::before { content: ""; position: absolute; top: 0; left: -35px; width: 27px; height: 30px; border-left: 2px solid var(--border); border-bottom: 2px solid var(--border); border-bottom-left-radius: 12px; }
.qa-answer::after { content: ""; position: absolute; top: 25px; left: -9px; border-left: 6px solid var(--border); border-top: 5px solid transparent; border-bottom: 5px solid transparent; }
.qa-answer .qa-avatar { width: 32px; height: 32px; }
.qa-answer .qa-text { margin-top: 2px; font-size: 13.5px; }
/* Campo do vendedor para responder: cresce para baixo conforme o texto */
.qa-reply { margin-top: 14px; border: 1px solid var(--border); border-radius: 10px; background: #fff; overflow: hidden; transition: border-color .15s, box-shadow .15s; }
.qa-reply.is-ask { margin-top: 0; }
.qa-reply:focus-within { border-color: var(--focus-border); box-shadow: var(--focus-ring); }
.qa-reply textarea { display: block; width: 100%; min-height: 64px; max-height: 260px; padding: 12px 14px; border: 0; outline: none; resize: none; background: none; color: var(--text); font: inherit; font-size: 14px; line-height: 1.5; }
.qa-reply-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 8px 8px 8px 14px; border-top: 1px solid var(--border); background: var(--bg-soft); }
.qa-reply-foot small { color: var(--muted); font-size: 12px; }
.qa-reply-foot .btn { gap: 6px; }
.list-more { display: flex; justify-content: center; padding: 16px 24px; border-top: 1px solid var(--border); }

/* Avaliações do anúncio: resumo (nota + distribuição) e lista */
.rv-summary { display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: center; gap: 40px; padding: 22px 24px; border-bottom: 1px solid var(--border); }
.rv-score { display: flex; align-items: center; gap: 14px; padding-right: 40px; border-right: 1px solid var(--border); }
.rv-score > strong { font-size: 44px; font-weight: 700; line-height: 1; }
.rv-score > div { display: flex; flex-direction: column; gap: 6px; }
.rv-score .seller-stars { font-size: 17px; }
.rv-score small { color: var(--muted); font-size: 13px; }
.rv-bars { display: flex; flex-direction: column; gap: 10px; margin: 0; padding: 0; list-style: none; }
.rv-bars li { display: grid; grid-template-columns: 18px 72px minmax(0, 1fr) 32px; align-items: center; gap: 10px; font-size: 13px; color: var(--text-2); }
.rv-bars b { text-align: center; font-weight: 600; font-variant-numeric: tabular-nums; color: var(--text); }
.rv-bar { height: 8px; border-radius: 999px; background: var(--bg-soft); overflow: hidden; }
.rv-bar i { display: block; height: 100%; border-radius: inherit; background: currentColor; }
.rv-bars .is-positive > i, .rv-bars .is-positive .rv-bar { color: var(--success); }
.rv-bars .is-neutral > i, .rv-bars .is-neutral .rv-bar { color: #9aa3b2; }
.rv-bars .is-negative > i, .rv-bars .is-negative .rv-bar { color: var(--danger); }
.rv-list { margin: 0; padding: 0; list-style: none; }
.rv-item { display: flex; align-items: flex-start; gap: 14px; padding: 18px 24px; border-bottom: 1px solid var(--border); }
.rv-item:last-child { border-bottom: 0; }
.rv-body { flex: 1; min-width: 0; }
.rv-body .rv-tags { margin-top: 8px; }
.rv-kind { flex-shrink: 0; display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; color: #fff; font-size: 15px; line-height: 1; }
.rv-kind i, .rv-bars li > i { display: block; line-height: 1; }
.rv-kind.is-positive { background: var(--success); }
.rv-kind.is-neutral { background: #9aa3b2; }
.rv-kind.is-negative { background: var(--danger); }
@media (max-width: 767.98px) {
  .rv-summary { grid-template-columns: 1fr; gap: 18px; }
  .rv-score { padding-right: 0; border-right: 0; }
}
.ad-side { display: flex; flex-direction: column; gap: 16px; position: sticky; top: calc(var(--header-h) + 12px); }
.side-card { padding: 20px; }
.side-card h3 { font-size: 19px; font-weight: 600; margin-bottom: 14px; }
/* Card do vendedor (página do anúncio) — mesmo estilo da GameMarket */
.seller-card { display: flex; flex-direction: column; gap: 14px; padding: 24px; }
@media (max-width: 1199.98px) { .ad-layout { grid-template-columns: minmax(0, 1fr) 360px; } }
.seller-row { display: flex; align-items: center; gap: 16px; margin: -12px; padding: 12px; border-radius: 10px; color: var(--text); transition: background .2s; }
.seller-row:hover { background: var(--bg-soft); color: var(--text); }
.seller-row:hover .seller-name { color: var(--primary); }
.seller-avatar { position: relative; flex-shrink: 0; }
.seller-avatar img { width: 64px; height: 64px; border-radius: 50%; object-fit: cover; box-shadow: 0 0 0 1px var(--border); }
.seller-online { position: absolute; right: 2px; bottom: 2px; width: 14px; height: 14px; border: 2px solid #fff; border-radius: 50%; background: var(--success); }
.seller-body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 6px; }
.seller-line { display: flex; align-items: center; gap: 8px; min-width: 0; }
.seller-name { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 18px; font-weight: 600; transition: color .2s; }
.seller-rep { flex-shrink: 0; display: inline-flex; align-items: center; gap: 4px; padding: 2px 8px; border: 1px solid; border-radius: 999px; font-size: 10.5px; font-weight: 600; }
.seller-rep.is-success { background: var(--success-50); border-color: rgba(18, 164, 84, .3); color: var(--success); }
.seller-rep.is-info { background: var(--primary-50); border-color: rgba(11, 107, 255, .3); color: var(--primary); }
.seller-rep.is-warning { background: var(--warning-50); border-color: rgba(242, 165, 22, .35); color: #b07400; }
.seller-rep.is-danger { background: var(--danger-50); border-color: rgba(229, 56, 59, .3); color: var(--danger); }
.seller-rep.is-muted { background: var(--bg-soft); border-color: var(--border); color: var(--text-2); }
.seller-stars { position: relative; flex-shrink: 0; display: inline-flex; font-size: 17px; line-height: 1; }
.seller-stars-base { display: inline-flex; gap: 2px; color: #d6dae1; }
.seller-stars-fill { position: absolute; inset: 0 auto 0 0; display: inline-flex; gap: 2px; overflow: hidden; white-space: nowrap; color: #f5b301; }
.seller-rating { color: var(--text-2); font-size: 14px; white-space: nowrap; }
.seller-meta { gap: 16px; color: var(--muted); font-size: 13.5px; }
.seller-meta span { display: inline-flex; align-items: center; gap: 5px; white-space: nowrap; }
.seller-meta .is-online { color: var(--success); font-weight: 500; }
.seller-arrow { flex-shrink: 0; color: var(--text-2); font-size: 20px; transition: transform .2s; }
.seller-row:hover .seller-arrow { transform: translateX(3px); }
/* Verificações do vendedor */
.seller-verifs { display: flex; flex-direction: column; gap: 14px; padding: 24px; }
.seller-label { font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: .6px; color: var(--muted); }
.seller-info { display: flex; flex-direction: column; gap: 12px; margin: 0; padding: 0; list-style: none; }
.seller-info li { display: flex; align-items: center; gap: 10px; font-size: 13.5px; }
.seller-info li > i { width: 18px; color: var(--muted); font-size: 15px; }
.seller-info span { flex: 1; color: var(--text-2); }
.seller-info strong { font-weight: 600; text-align: right; }
.seller-info li.is-ok > i, .seller-info li.is-ok strong { color: var(--success); }
.seller-info li.is-pending strong { color: var(--muted); font-weight: 500; }
/* Proteção ao Comprador (página do anúncio) */
.guarantee-card { display: flex; flex-direction: column; gap: 16px; padding: 24px; border-color: #bfe8cf; background: #f6fdf9; }
.guarantee-head { display: flex; align-items: center; gap: 12px; }
.guarantee-head div { display: flex; flex-direction: column; }
.guarantee-head strong { font-size: 15px; font-weight: 600; }
.guarantee-head small { color: var(--text-2); font-size: 12.5px; }
.guarantee-icon { width: 42px; height: 42px; flex-shrink: 0; display: grid; place-items: center; border-radius: 12px; background: var(--success); color: #fff; font-size: 20px; box-shadow: 0 6px 14px rgba(18, 164, 84, .25); }
.guarantee-list { display: flex; flex-direction: column; gap: 10px; margin: 0; padding: 0; list-style: none; }
.guarantee-list li { display: flex; align-items: flex-start; gap: 12px; color: var(--text-2); font-size: 13.5px; line-height: 1.45; }
/* Selos na mesma coluna do ícone do escudo (42px) e texto alinhado ao título */
/* Selo centrado na 1ª linha do texto (13.5px × 1.45) e sem o deslocamento padrão do ícone */
.guarantee-list i { flex-shrink: 0; display: inline-flex; align-items: center; justify-content: center; width: 42px; height: calc(13.5px * 1.45); color: var(--success); font-size: 15px; line-height: 1; }
.guarantee-list i::before, .rv-kind i::before, .rv-bars li > i::before { vertical-align: 0; }
.guarantee-link { display: inline-flex; align-items: center; gap: 6px; align-self: flex-start; margin-left: 54px; color: #0b7a3e; font-size: 13px; font-weight: 600; }
.guarantee-link:hover { color: var(--success); }
.guarantee-link i { transition: transform .2s; }
.guarantee-link:hover i { transform: translateX(3px); }
.guarantee > i { font-size: 30px; color: var(--text); }
.guarantee h3 { margin: 6px 0; }
.guarantee p { color: var(--text-2); font-size: 13px; margin: 0; }

.lightbox { border: 0; padding: 0; background: transparent; max-width: 92vw; max-height: 92vh; }
.lightbox::backdrop { background: rgba(10, 12, 20, .85); }
.lightbox img { max-width: 92vw; max-height: 88vh; border-radius: 8px; }
.lightbox-close { position: fixed; top: 16px; right: 20px; border: 0; background: none; color: #fff; font-size: 36px; }

/* ---------- Avaliações ---------- */
/* Avaliações dos Usuários (home): título centralizado + duas faixas em movimento */
.section-title { display: flex; flex-direction: column; align-items: center; text-align: center; margin-bottom: 28px; }
.section-title-icon { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.section-title-icon span { width: 56px; height: 1px; background: linear-gradient(to right, transparent, rgba(11, 107, 255, .5)); }
.section-title-icon span:last-child { background: linear-gradient(to left, transparent, rgba(11, 107, 255, .5)); }
.section-title-icon i, .section-title-icon img { width: 44px; height: 44px; display: grid; place-items: center; border-radius: 12px; border: 1px solid rgba(11, 107, 255, .25); background: var(--primary-50); color: var(--primary); font-size: 18px; box-shadow: 0 8px 20px rgba(11, 107, 255, .12); }
.section-title-icon img { padding: 9px; }
.section-title p strong { color: var(--primary); font-weight: 500; }
.section-title h2 { font-size: clamp(24px, 3vw, 30px); font-weight: 700; letter-spacing: -.3px; }
.section-title p { max-width: 640px; margin: 10px 0 0; color: var(--text-2); font-size: 15px; }
.reviews-section { margin-left: 0; margin-right: 0; padding: 48px 0; border-top: 1px solid var(--border); }
.rv-rows { display: flex; flex-direction: column; gap: 12px; }
.rv-marquee { position: relative; overflow: hidden; }
.rv-marquee::before, .rv-marquee::after { content: ''; position: absolute; top: 0; bottom: 0; z-index: 1; width: 80px; pointer-events: none; }
.rv-marquee::before { left: 0; background: linear-gradient(to right, var(--bg), transparent); }
.rv-marquee::after { right: 0; background: linear-gradient(to left, var(--bg), transparent); }
.rv-track { display: flex; width: max-content; will-change: transform; }
.rv-marquee:hover .rv-track { animation-play-state: paused; }
.rv-left { animation: rv-left 40s linear infinite; }
.rv-right { animation: rv-right 40s linear infinite; }
@keyframes rv-left { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@keyframes rv-right { from { transform: translateX(-50%); } to { transform: translateX(0); } }
.rv-group { display: flex; gap: 12px; padding-right: 12px; }
.rv-card { flex-shrink: 0; width: 320px; padding: 16px; border: 1px solid var(--border); border-radius: 12px; background: #fff; }
.rv-head { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; }
.rv-avatar { width: 28px; height: 28px; flex-shrink: 0; border-radius: 50%; border: 1px solid var(--border); object-fit: cover; }
.rv-user { flex: 1; min-width: 0; display: flex; flex-direction: column; line-height: 1.3; }
.rv-user strong, .rv-user small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rv-user strong { font-size: 12.5px; font-weight: 500; }
.rv-user small { font-size: 11px; color: var(--muted); }
.rv-stars { display: flex; gap: 2px; flex-shrink: 0; color: #f5b301; font-size: 12px; }
.rv-tags { display: flex; flex-wrap: wrap; gap: 4px; margin-bottom: 8px; }
.rv-tags span { padding: 2px 10px; border: 1px solid rgba(11, 107, 255, .3); border-radius: 999px; background: var(--primary-50); color: var(--primary); font-size: 11px; font-weight: 500; }
.rv-comment { margin: 0; color: var(--text-2); font-size: 13.5px; line-height: 1.5; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
@media (prefers-reduced-motion: reduce) { .rv-track { animation: none; } .rv-marquee { overflow-x: auto; } }
@media (max-width: 640px) { .rv-card { width: 280px; } .rv-marquee::before, .rv-marquee::after { width: 48px; } }

/* O que é a Casa das Contas (home) */
.about-section { margin-left: 0; margin-right: 0; padding: 48px 0; border-top: 1px solid var(--border); }
.about-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.about-card { display: flex; flex-direction: column; gap: 16px; padding: 20px; border: 1px solid var(--border); border-radius: 12px; background: #fff; transition: border-color .3s, box-shadow .3s; }
.about-card:hover { border-color: rgba(11, 107, 255, .5); box-shadow: var(--shadow-lg); }
.about-card h3 { margin-bottom: 6px; font-size: 16px; font-weight: 600; }
.about-card p { margin: 0; color: var(--text-2); font-size: 14px; line-height: 1.6; }
.about-icon { width: 44px; height: 44px; flex-shrink: 0; display: grid; place-items: center; border-radius: 10px; font-size: 20px; }
.about-icon-info { background: var(--info-50); border: 1px solid rgba(14, 165, 233, .2); color: var(--info); }
.about-icon-success { background: var(--success-50); border: 1px solid rgba(18, 164, 84, .25); color: var(--success); }
.about-icon-brand { background: var(--primary-50); border: 1px solid rgba(11, 107, 255, .2); color: var(--primary); }
@media (max-width: 767.98px) { .about-grid { grid-template-columns: 1fr; gap: 16px; } }

/* Seleção de destaques no formulário de avaliação do pedido */
.review-tags-pick { display: flex; flex-wrap: wrap; gap: 6px; }
.review-tags-pick small { width: 100%; }
.review-tags-pick label { cursor: pointer; }
.review-tags-pick input { position: absolute; opacity: 0; }
.review-tags-pick span { display: inline-block; padding: 4px 12px; border: 1px solid var(--border); border-radius: 999px; font-size: 12px; font-weight: 500; color: var(--text-2); transition: .15s; }
.review-tags-pick input:checked + span { border-color: rgba(11, 107, 255, .4); background: var(--primary-50); color: var(--primary); }
.review-tags-pick input:focus-visible + span { box-shadow: 0 0 0 3px var(--primary-50); }

.rating { font-size: 20px; }
.rating-positive { color: var(--success); }
.rating-neutral { color: var(--muted); }
.rating-negative { color: var(--danger); }
.rating-pick { display: flex; gap: 8px; flex-wrap: wrap; }
.rating-pick label { cursor: pointer; }
.rating-pick input { position: absolute; opacity: 0; }
.rating-pick span { display: inline-flex; gap: 6px; padding: 7px 12px; border: 1.5px solid var(--border); border-radius: 8px; font-size: 13px; font-weight: 500; }
.rating-pick input:checked + span { border-color: currentColor; background: var(--bg-soft); }
.review-done { display: flex; gap: 10px; align-items: center; margin-top: 8px; }
.review-done p { margin: 0; }

/* ---------- Perfil ---------- */
/* ---------- Perfil público ---------- */
.prof-hero { position: relative; margin-bottom: 24px; padding: 0; overflow: hidden; }
/* Capa: imagem do vendedor ou o fundo padrão do site */
.prof-hero { --prof-cover-default: radial-gradient(circle at 15% 0%, rgba(124, 58, 237, .35), transparent 55%), radial-gradient(circle at 85% 120%, rgba(11, 107, 255, .45), transparent 55%), linear-gradient(120deg, #0b1b3f, #172554 55%, #1e1b4b); }
.prof-cover { position: relative; height: 260px; background: var(--prof-cover-default); background-position: center; background-size: cover; }
.prof-cover-tools { position: absolute; top: 14px; right: 14px; display: flex; gap: 8px; }
.prof-cover-btn {
  display: inline-flex; align-items: center; gap: 8px; height: 36px; padding: 0 14px; border: 1px solid rgba(255, 255, 255, .25); border-radius: 10px;
  background: rgba(15, 23, 42, .5); color: #fff; font-size: 13.5px; font-weight: 600; backdrop-filter: blur(6px); transition: background .15s;
}
.prof-cover-btn:hover { background: rgba(15, 23, 42, .7); }
.prof-cover-btn.is-primary { border-color: transparent; background: var(--gradient-primary); }
/* Modo reposicionar: arrasta na vertical; só aparecem a dica e Cancelar/Salvar */
.prof-cover-hint, .prof-cover-save { display: none; }
.prof-cover.is-moving { cursor: grab; touch-action: none; user-select: none; }
.prof-cover.is-moving:active { cursor: grabbing; }
.prof-cover.is-moving::after { content: ""; position: absolute; inset: 0; box-shadow: inset 0 0 0 3px rgba(255, 255, 255, .6); pointer-events: none; }
.prof-cover.is-moving .prof-cover-tools { display: none; }
.prof-cover.is-moving .prof-cover-hint {
  position: absolute; top: 50%; left: 50%; display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: 999px;
  background: rgba(15, 23, 42, .55); color: #fff; font-size: 13.5px; font-weight: 500; transform: translate(-50%, -50%); pointer-events: none;
}
.prof-cover.is-moving .prof-cover-save { position: absolute; top: 14px; right: 14px; display: flex; gap: 8px; }
/* A faixa sobe 54px sobre a capa: as partes vazias dela não bloqueiam cliques nem o arrastar da capa; foto e textos continuam clicáveis */
.prof-main { position: relative; display: flex; align-items: flex-start; gap: 20px; margin-top: -54px; padding: 0 28px; pointer-events: none; }
.prof-avatar, .prof-id > *, .photo-dialog { pointer-events: auto; }
.prof-avatar { position: relative; flex-shrink: 0; }
.prof-avatar img { display: block; width: 112px; height: 112px; border: 4px solid #fff; border-radius: 50%; object-fit: cover; background: #fff; box-shadow: 0 10px 24px rgba(15, 23, 42, .18); }
.prof-avatar > i { position: absolute; right: 8px; bottom: 8px; width: 18px; height: 18px; border: 3px solid #fff; border-radius: 50%; background: var(--success); }
/* Própria foto: clicável, com câmera ao passar o mouse */
.prof-avatar.is-own { padding: 0; border: 0; border-radius: 50%; background: none; cursor: pointer; }
.prof-avatar-cam { position: absolute; inset: 4px; display: grid; place-items: center; border-radius: 50%; background: rgba(15, 23, 42, .45); color: #fff; font-size: 26px; opacity: 0; transition: opacity .2s; }
.prof-avatar.is-own:hover .prof-avatar-cam, .prof-avatar.is-own:focus-visible .prof-avatar-cam { opacity: 1; }
.prof-avatar.is-own > i { z-index: 1; }

/* Janela "Alterar foto/capa" (modelo do Instagram, partials/photo-dialog): opções empilhadas */
.photo-dialog { width: min(400px, calc(100vw - 32px)); max-width: none; margin: auto; padding: 0; border: 0; border-radius: 16px; background: #fff; color: var(--text); overflow: hidden; box-shadow: 0 24px 64px rgba(10, 14, 24, .25); }
.photo-dialog[open] { animation: authIn .2s cubic-bezier(.16, 1, .3, 1); }
.photo-dialog::backdrop { background: rgba(15, 20, 30, .55); animation: catFade .2s ease-out; }
.photo-dialog-head { display: flex; flex-direction: column; align-items: center; gap: 12px; padding: 28px 24px 22px; border-bottom: 1px solid var(--border); text-align: center; }
.photo-dialog-head .is-round { width: 64px; height: 64px; border-radius: 50%; object-fit: cover; }
.photo-dialog-head .is-wide { display: block; width: 100%; aspect-ratio: 4 / 1; border-radius: 10px; object-fit: cover; }
.photo-dialog-default { background: var(--prof-cover-default); }
.photo-dialog-head h2 { margin: 0; font-size: 18px; font-weight: 600; }
.photo-dialog-head p { margin: -4px 0 0; color: var(--muted); font-size: 13px; }
.photo-dialog form { margin: 0; }
.photo-opt { display: flex; align-items: center; justify-content: center; width: 100%; height: 50px; border: 0; border-top: 1px solid var(--border); background: none; color: var(--text); font: inherit; font-size: 14.5px; cursor: pointer; transition: background .15s; }
.photo-dialog-head + form .photo-opt { border-top: 0; }
.photo-opt:hover { background: var(--bg-soft); }
.photo-opt.is-primary { color: var(--primary); font-weight: 700; }
.photo-opt.is-danger { color: var(--danger); font-weight: 700; }
.photo-dialog.is-sending .photo-opt { pointer-events: none; opacity: .5; }
/* O avatar invade a capa; o nome começa logo abaixo dela, sobre o fundo branco */
.prof-id { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 6px; padding-top: 66px; }
.prof-id h1 { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; margin: 0; font-size: 26px; font-weight: 700; overflow-wrap: anywhere; }
.prof-rating { display: flex; align-items: center; gap: 8px; font-size: 14px; }
.prof-rating .seller-stars { font-size: 15px; }
.prof-rating > span:last-child { color: var(--muted); }
.prof-meta { display: flex; flex-wrap: wrap; gap: 6px 18px; color: var(--muted); font-size: 13px; }
.prof-meta span { display: inline-flex; align-items: center; gap: 6px; }
.prof-meta .is-online { color: var(--success); font-weight: 500; }
.prof-meta .is-online i { font-size: 8px; }
.prof-bio { margin: 18px 28px 0; padding: 14px 16px; border-radius: 12px; background: var(--bg-soft); color: var(--text-2); font-size: 14px; line-height: 1.65; overflow-wrap: anywhere; }
.prof-bio-view { display: flex; align-items: flex-start; gap: 12px; }
.prof-bio-view p { flex: 1; min-width: 0; margin: 0; }
.prof-bio-empty { color: var(--muted); font-style: italic; }
.prof-bio-edit { display: inline-flex; flex-shrink: 0; align-items: center; gap: 6px; padding: 4px 10px; border: 1px solid var(--border); border-radius: 8px; background: #fff; color: var(--text-2); font-size: 13px; font-weight: 500; transition: border-color .15s, color .15s; }
.prof-bio-edit:hover { border-color: var(--border-strong); color: var(--text); }
.prof-bio-form { display: flex; flex-direction: column; gap: 10px; }
.prof-bio-label { color: var(--text); font-size: 13.5px; font-weight: 600; }
.prof-bio-actions { display: flex; align-items: center; justify-content: flex-end; gap: 8px; }
.prof-bio-count { margin-right: auto; color: var(--muted); font-size: 12.5px; }
.prof-stats { display: grid; grid-template-columns: repeat(4, 1fr); margin-top: 22px; border-top: 1px solid var(--border); }
.prof-stats > div { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 16px 12px; text-align: center; }
.prof-stats > div + div { border-left: 1px solid var(--border); }
.prof-stats strong { font-size: 22px; font-weight: 700; line-height: 1.2; }
.prof-stats span { color: var(--muted); font-size: 12.5px; }
.prof-stats.is-3 { grid-template-columns: repeat(3, 1fr); }
/* Selo do tipo de conta ao lado do nome: Comprador ou Vendedor */
.prof-role { display: inline-flex; align-items: center; gap: 6px; padding: 4px 12px; border: 1px solid var(--border); border-radius: 999px; background: var(--bg-soft); color: var(--text-2); font-size: 13px; font-weight: 600; }
.prof-role.is-seller { border-color: #cfe0ff; background: var(--primary-50); color: var(--primary); }
.prof-hero.is-buyer { padding-bottom: 24px; } /* sem a faixa de números embaixo */
.prof-buyer-reviews { margin-top: 0; }
.prof-layout { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 24px; align-items: start; }
.prof-content .tabs { margin-bottom: 18px; }
.prof-content .panel { margin-top: 0; }
.tab-count { margin-left: 6px; padding: 1px 8px; border-radius: 999px; background: var(--bg-soft); color: var(--text-2); font-size: 12px; }
.tab.active .tab-count { background: var(--primary-50); color: var(--primary); }
.prof-side { position: sticky; top: calc(var(--header-h) + 12px); display: flex; flex-direction: column; gap: 16px; }
.prof-card { display: flex; flex-direction: column; gap: 14px; padding: 22px; }
.prof-card .hint { margin: 0; }
.prof-level { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.prof-level .seller-rep { padding: 4px 12px; font-size: 13px; }
.prof-level small { color: var(--muted); font-size: 13px; }
.prof-level-bar { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; }
.prof-level-bar span { height: 8px; border-radius: 999px; background: var(--bg-soft); }
.prof-level-bar span.is-on.is-success { background: var(--success); }
.prof-level-bar span.is-on.is-info { background: var(--primary); }
.prof-level-bar span.is-on.is-warning { background: #f2a516; }
.prof-level-bar span.is-on.is-danger { background: var(--danger); }
.prof-level-labels { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; margin-top: -8px; color: var(--muted); font-size: 11.5px; text-align: center; }
.rv-ad { display: inline-flex; align-items: center; gap: 6px; margin-top: 8px; color: var(--text-2); font-size: 12.5px; }
.rv-ad:hover { color: var(--primary); }
@media (max-width: 991.98px) {
  .prof-layout { grid-template-columns: 1fr; }
  .prof-side { position: static; order: -1; }
}
@media (max-width: 575.98px) {
  .prof-cover { height: 150px; }
  .prof-cover-btn { height: 32px; padding: 0 10px; font-size: 12.5px; }
  .prof-main { flex-direction: column; align-items: center; margin-top: -48px; padding: 0 16px; text-align: center; }
  .prof-avatar img { width: 96px; height: 96px; }
  .prof-id { padding-top: 6px; }
  .prof-id h1, .prof-rating, .prof-meta { justify-content: center; }
  .prof-id h1 { font-size: 22px; }
  .prof-bio { margin: 16px 16px 0; }
  .prof-stats { grid-template-columns: repeat(2, 1fr); }
  .prof-stats.is-3 { grid-template-columns: repeat(3, 1fr); }
  .prof-stats > div:nth-child(3) { border-left: 0; }
  .prof-stats > div:nth-child(n + 3) { border-top: 1px solid var(--border); }
}
.tabs {
  display: flex; gap: 4px; margin-bottom: 20px; box-shadow: inset 0 -1px 0 var(--border);
  overflow-x: auto; overflow-y: hidden; scrollbar-width: none;
}
.tabs::-webkit-scrollbar { display: none; }
.tab { padding: 10px 16px; border: 0; background: none; color: var(--text-2); font-weight: 500; border-bottom: 2px solid transparent; white-space: nowrap; font-size: 14px; flex-shrink: 0; }
.tab:hover { color: var(--primary); }
.tab.active { color: var(--primary); border-bottom-color: var(--primary); }

/* ---------- Popup da conta no estilo da Stripe: entrar, criar conta, esqueci a senha, nova senha (partials/auth-modal) ---------- */
.auth-modal {
  position: fixed; inset: 0; width: min(540px, calc(100vw - 32px)); max-width: none; height: fit-content; max-height: calc(100dvh - 32px); margin: auto;
  padding: 0; border: 0; border-radius: 16px; background: #fff; color: #353a44;
  box-shadow: 0 30px 60px -12px rgba(50, 50, 93, .25), 0 18px 36px -18px rgba(0, 0, 0, .3); overflow: hidden;
  /* Tamanhos que acompanham a altura da tela (zoom, notebook baixo): tudo encolhe junto e o rodapé fica sempre à vista */
  --auth-h: clamp(40px, 5.2vh, 50px);
  --auth-gap: clamp(10px, 1.9vh, 20px);
  --auth-pad: clamp(24px, 4.6vh, 56px);
}
.auth-modal[open] { display: flex; flex-direction: column; animation: authIn .24s cubic-bezier(.16, 1, .3, 1); }
.auth-modal::backdrop { background: rgba(15, 20, 30, .45); backdrop-filter: blur(4px); animation: catFade .2s ease-out; }
@keyframes authIn { from { opacity: 0; transform: translateY(14px) scale(.98); } to { opacity: 1; transform: none; } }
.auth-pane:not([hidden]) { display: flex; flex: 1; flex-direction: column; min-height: 0; animation: catFade .2s ease-out; }
/* Só o conteúdo rola quando a tela é baixa demais; o rodapé fica fixo embaixo */
.auth-body {
  flex: 1; min-height: 0; margin: 0 4px 0 0; padding: var(--auth-gap) 52px 4px 56px; overflow-y: auto; overscroll-behavior: contain;
  scrollbar-width: thin; scrollbar-color: #d5dbe1 transparent; /* barra fina, afastada da borda e do canto arredondado */
}

.auth-close {
  position: absolute; top: 16px; right: 24px; z-index: 1; display: grid; place-items: center; width: 34px; height: 34px;
  border: 0; border-radius: 8px; background: none; color: #87909f; font-size: 15px; transition: background .15s, color .15s;
}
.auth-close:hover { background: #f5f6f8; color: #353a44; }
/* Logo no topo do popup, alinhada com o conteúdo */
.auth-logo { flex-shrink: 0; align-self: flex-start; width: auto; height: clamp(26px, 3.6vh, 32px); margin: calc(var(--auth-pad) - 8px) 0 0 56px; }
.auth-close i { display: block; line-height: 1; }
.auth-close i::before { display: block; vertical-align: 0; }
.auth-modal:focus { outline: none; }

.auth-title { margin: 0 0 calc(var(--auth-gap) * 1.4); color: #353a44; font-size: clamp(22px, 3.2vh, 28px); font-weight: 600; letter-spacing: -.4px; line-height: 1.25; }
.auth-lead { margin: -16px 0 24px; color: #687385; font-size: 15px; line-height: 1.55; }
.auth-lead strong { color: #353a44; font-weight: 600; word-break: break-all; }
.auth-lead.is-small { margin: 0; font-size: 14px; }

.auth-alert { display: flex; align-items: flex-start; gap: 10px; margin-bottom: 20px; padding: 12px 14px; border: 1px solid #fbd0d0; border-radius: 8px; background: #fff6f6; color: #b42318; font-size: 14px; line-height: 1.45; }
.auth-alert.is-info { border-color: #d6e4ff; background: #f4f8ff; color: #1d4ed8; }
.auth-alert[hidden] { display: none; }
.auth-alert i { flex-shrink: 0; margin-top: 1px; font-size: 16px; }

/* Campos: rótulo em cima, borda fina e halo suave no foco */
.auth-field { min-width: 0; margin-bottom: var(--auth-gap); }
.auth-label { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: clamp(5px, .9vh, 8px); }
.auth-label label { color: #414552; font-size: 15px; font-weight: 500; }
.auth-input {
  width: 100%; height: var(--auth-h); padding: 0 16px; border: 1px solid #d5dbe1; border-radius: 10px; background: #fff; color: #353a44;
  font: inherit; font-size: 15px; outline: none; transition: border-color .15s, box-shadow .15s;
}
.auth-input:hover { border-color: #b8c0cc; }
.auth-input:focus { border-color: var(--focus-border); box-shadow: var(--focus-ring); }
.auth-pass, .auth-prefix { position: relative; }
.auth-pass .auth-input { padding-right: 46px; }
.auth-eye { position: absolute; top: 0; right: 0; display: grid; place-items: center; width: 48px; height: var(--auth-h); border: 0; background: none; color: #87909f; font-size: 17px; transition: color .15s; }
.auth-eye:hover { color: #353a44; }
.auth-prefix span { position: absolute; top: 0; left: 16px; display: flex; align-items: center; height: var(--auth-h); color: #87909f; font-size: 15px; pointer-events: none; }
.auth-prefix .auth-input { padding-left: 32px; }
.auth-error { display: none; margin-top: 6px; color: var(--danger); font-size: 13.5px; }
.auth-field.is-invalid .auth-input { border-color: #f4a6a6; box-shadow: 0 0 0 4px #fdecec; }
.auth-field.is-invalid .auth-error { display: block; }

/* Requisitos da senha (partials/password-rules): vermelho com ✕ até atender, verde com ✓.
   Só aparecem enquanto o foco está na nova senha ou na confirmação (ou no olho de mostrar senha). */
.pass-rules { display: none; flex-direction: column; gap: 6px; margin: 0 0 18px; padding: 14px 16px; border-radius: 12px; background: var(--bg-soft); list-style: none; }
.pass-rules li { display: flex; align-items: center; gap: 8px; color: var(--danger); font-size: 13.5px; transition: color .15s; }
.pass-rules li i { flex-shrink: 0; font-size: 13px; }
.pass-rules li.is-ok { color: var(--success); }
form:has([data-pass-new]:focus, [data-pass-confirm]:focus, [data-pass-toggle]:focus) .pass-rules { display: flex; animation: catFade .15s ease-out; }

/* Caixa de seleção própria (marcada = azul da marca com o check branco) */
.auth-check { display: inline-flex; align-items: center; gap: 10px; margin-bottom: calc(var(--auth-gap) + 2px); color: #353a44; font-size: 15px; cursor: pointer; user-select: none; }
.auth-field .auth-check { margin-bottom: 0; }
.auth-check input {
  flex-shrink: 0; width: 20px; height: 20px; margin: 0; border: 1px solid #c0c8d2; border-radius: 6px; background: #fff center / 13px no-repeat;
  appearance: none; cursor: pointer; transition: background-color .15s, border-color .15s, box-shadow .15s;
}
.auth-check input:hover { border-color: #98a2b3; }
.auth-check input:focus-visible { box-shadow: 0 0 0 4px rgba(11, 107, 255, .15); outline: none; }
.auth-check input:checked {
  border-color: var(--primary); background-color: var(--primary);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M2.5 6.2 5 8.6l4.5-5' fill='none' stroke='%23fff' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}
.auth-field.is-invalid .auth-check input { border-color: #f4a6a6; }
.auth-check a { color: var(--primary); font-weight: 500; }

.auth-link { padding: 0; border: 0; background: none; color: var(--primary); font: inherit; font-size: 15px; font-weight: 500; transition: color .15s; }
.auth-link:hover { color: var(--primary-600); }

/* Botão: mais claro enquanto falta preencher algum campo obrigatório (continua clicável e mostra o que falta) */
.auth-submit { position: relative; height: var(--auth-h); border-radius: 10px; font-size: 16px; box-shadow: none; transition: opacity .2s, filter .2s; }
.auth-submit:hover { box-shadow: none; }
form:has(.auth-input[required]:placeholder-shown, input[type="checkbox"][required]:not(:checked)) .auth-submit { opacity: .45; }
.auth-submit.is-loading { color: transparent; pointer-events: none; opacity: 1; }
.auth-submit.is-loading::after {
  content: ""; position: absolute; inset: 0; width: 20px; height: 20px; margin: auto; border: 2.5px solid rgba(255, 255, 255, .35); border-top-color: #fff;
  border-radius: 50%; animation: authSpin .7s linear infinite;
}
@keyframes authSpin { to { transform: rotate(360deg); } }

/* "Ou faça login com" + Google, Chave de acesso e SSO */
.auth-divider { display: flex; align-items: center; gap: 16px; margin: calc(var(--auth-gap) * 1.2) 0 var(--auth-gap); color: #687385; font-size: 14px; }
.auth-divider::before, .auth-divider::after { content: ""; flex: 1; height: 1px; background: #ebeef1; }
.auth-social { display: flex; flex-direction: column; gap: clamp(8px, 1.4vh, 12px); }
.auth-social-btn {
  display: flex; align-items: center; justify-content: center; gap: 10px; height: var(--auth-h); border: 1px solid #d5dbe1; border-radius: 10px;
  background: #fff; color: #353a44; font-size: 15.5px; font-weight: 500; transition: background .15s, border-color .15s;
}
.auth-social-btn:hover { border-color: #b8c0cc; background: #fafbfc; }
.auth-social-btn i { color: var(--primary); font-size: 18px; }

/* Rodapé num bloco cinza, como na Stripe */
.auth-foot { flex-shrink: 0; margin: calc(var(--auth-gap) * 1.4) 10px 10px; padding: clamp(12px, 2.2vh, 20px) 16px; border: 1px solid #f0f2f5; border-radius: 10px; background: #f9fafb; color: #414552; font-size: 15px; text-align: center; }

/* "Confira seu e-mail" */
[data-forgot-sent][hidden], [data-forgot-form][hidden] { display: none; }
.auth-sent-icon { display: grid; place-items: center; width: 52px; height: 52px; margin-bottom: 20px; border-radius: 14px; background: var(--success-50); color: var(--success); font-size: 24px; }

/* Telas estreitas: menos respiro nas laterais; celular: tela cheia */
@media (max-width: 700px) {
  .auth-body { padding-right: 28px; padding-left: 32px; }
  .auth-logo { margin-left: 32px; }
}
@media (max-width: 575.98px) {
  .auth-modal { width: 100%; height: 100%; max-height: none; border-radius: 0; }
  .auth-modal[open] { animation: catFade .2s ease-out; }
  .auth-logo { height: 28px; margin: 20px 0 0 20px; }
  .auth-body { margin: 0; padding: 24px 20px 4px; }
  .auth-title { font-size: 24px; }
  .auth-close { top: 14px; right: 14px; width: 40px; height: 40px; background: #f5f6f8; }
  .auth-foot { margin-top: 20px; }
}

/* ---------- Pedido ---------- */
.order-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 20px; }
.order-head .badge { font-size: 13px; padding: 6px 14px; }
.steps { display: flex; list-style: none; padding: 0; margin: 0 0 24px; counter-reset: s; }
.steps li { flex: 1; display: flex; align-items: center; gap: 8px; color: var(--muted); font-weight: 500; font-size: 13px; position: relative; }
.steps li:not(:last-child)::after { content: ''; flex: 1; height: 2px; background: var(--border); margin: 0 10px; }
.steps li span { width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; background: var(--bg-soft); font-size: 12px; flex-shrink: 0; }
.steps li.done { color: var(--success); }
.steps li.done span { background: var(--success); color: #fff; }
.steps li.done::after { background: var(--success); }
.steps li.current { color: var(--primary); }
.steps li.current span { background: var(--primary); color: #fff; }
.order-layout { display: grid; grid-template-columns: 1fr 320px; gap: 24px; align-items: start; }
.order-main { display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.order-side { display: flex; flex-direction: column; gap: 16px; }
.order-side .side-card h3 { font-size: 16px; }
.order-side .form-stack { gap: 10px; }
.order-side form + form, .order-side form + details, .order-side details + form { margin-top: 10px; }
.order-product { display: flex; align-items: center; gap: 14px; padding: 12px; color: var(--text); }
.order-product:hover { color: var(--text); border-color: var(--border-strong); }
.order-product img { width: 96px; aspect-ratio: 16/10; object-fit: cover; border-radius: 6px; }
.order-product div { flex: 1; display: flex; flex-direction: column; min-width: 0; }
.delivery-box { padding: 18px; display: flex; flex-direction: column; gap: 10px; border-color: #bfe8cf; background: #f6fdf9; }
.delivery-box h3 { font-size: 15px; display: flex; gap: 8px; color: var(--success); }
.copy-field { display: flex; gap: 8px; }
.copy-field .input { flex: 1; }
.chat { display: flex; flex-direction: column; height: 520px; }
.chat-head { display: flex; align-items: center; gap: 10px; padding: 12px 16px; border-bottom: 1px solid var(--border); }
.chat-head div { display: flex; flex-direction: column; }
.chat-head small { font-size: 12px; }
.chat-body { flex: 1; overflow-y: auto; padding: 16px; display: flex; flex-direction: column; gap: 10px; background: #fafbfc; }
.msg { max-width: 78%; padding: 9px 13px; border-radius: 12px; font-size: 13.5px; word-break: break-word; }
.msg p { margin: 0; }
.msg b { font-size: 12px; display: block; color: var(--primary); }
.msg time { display: block; font-size: 10.5px; opacity: .65; text-align: right; margin-top: 2px; }
.msg-mine { align-self: flex-end; background: var(--primary); color: #fff; border-bottom-right-radius: 4px; }
.msg-other { align-self: flex-start; background: #fff; border: 1px solid var(--border); border-bottom-left-radius: 4px; }
.msg-admin { border-color: var(--warning); }
.msg-system { align-self: center; background: var(--primary-50); color: #29467a; font-size: 12.5px; text-align: center; max-width: 90%; }
.chat-form { display: flex; gap: 8px; padding: 12px; border-top: 1px solid var(--border); }
.chat-locked { display: flex; align-items: center; justify-content: center; gap: 8px; margin: 0; padding: 14px 16px; border-top: 1px solid var(--border); background: var(--bg-soft); color: var(--muted); font-size: 13px; text-align: center; }
.chat-form textarea { flex: 1; min-height: 42px; max-height: 120px; resize: none; }
.dispute summary { cursor: pointer; color: var(--danger); font-weight: 500; font-size: 13.5px; padding: 6px 0; list-style: none; }
.dispute[open] summary { margin-bottom: 8px; }
dl.summary { display: grid; grid-template-columns: 1fr auto; gap: 8px 12px; margin: 0; font-size: 13.5px; }
dl dt { color: var(--text-2); }
dl dd { margin: 0; text-align: right; font-weight: 600; }
dl .total { font-size: 16px; color: var(--text); border-top: 1px solid var(--border); padding-top: 10px; }

/* ---------- Painel ---------- */
/* ---------- Painel do usuário ---------- */
.dash { display: grid; grid-template-columns: 252px minmax(0, 1fr); gap: 32px; padding-top: 28px; padding-bottom: 56px; align-items: start; }
.dash-main { min-width: 0; }

/* Menu lateral: painel branco com sombra suave */
.dash-side {
  position: sticky; top: calc(var(--header-h) + 20px); padding: 10px; border: 1px solid #eceef3; border-radius: 18px; background: #fff;
  box-shadow: 0 1px 2px rgba(16, 24, 40, .04), 0 12px 32px -16px rgba(16, 24, 40, .12);
}
.dash-nav { display: flex; flex-direction: column; gap: 6px; }
.dash-nav-group { display: flex; flex-direction: column; gap: 2px; }
.dash-nav-group + .dash-nav-group { padding-top: 6px; border-top: 1px solid #f1f2f6; }
.dash-nav-title { padding: 10px 12px 6px; color: #98a2b3; font-size: 11px; font-weight: 600; letter-spacing: .9px; text-transform: uppercase; }
/* Como no JusTracker: passar o mouse e o item ativo têm o mesmo fundo; o ativo só ganha o ícone aceso na cor da marca */
.dash-nav a { display: flex; align-items: center; gap: 12px; height: 42px; padding: 0 12px; border-radius: 10px; color: #667085; font-size: 14.5px; font-weight: 500; transition: background .12s, color .12s; }
.dash-nav a > i { flex-shrink: 0; width: 18px; color: currentColor; font-size: 17px; text-align: center; opacity: .7; transition: color .12s, opacity .12s; }
.dash-nav a span { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dash-nav a:hover, .dash-nav a.active { background: var(--bg-soft); color: var(--text); }
.dash-nav a.active { font-weight: 600; }
.dash-nav a.active > i { color: var(--primary); opacity: 1; }
.dash-nav .nav-count { margin-right: 4px; }
.dash-admin-link { margin-top: 4px; border: 1px dashed #d0d5dd; }
.dash-admin-link > i:last-child { width: auto; font-size: 12px; }

/* Cabeçalho das páginas do painel */
.dash-head { margin-bottom: 24px; }
.dash-head h1, .dash .page-title { margin: 0 0 4px; color: var(--text); font-size: 26px; font-weight: 700; letter-spacing: -.4px; }
.dash-head p { margin: 0; color: var(--text-2); font-size: 15px; }
/* Cabeçalho com botão à direita (ex.: Meus anúncios › Novo anúncio) */
.dash-head.has-action { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; }
.dash .page-title { margin-bottom: 20px; }

/* Cartões de números */
.dash-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; margin-bottom: 24px; }
.dash-stats.is-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
/* Cards de resumo: rótulo no topo, ação no canto, valor grande colorido (o saldo vem em destaque) */
.dash-stat {
  display: flex; flex-direction: column; min-width: 0; padding: 22px 24px; border: 1px solid var(--border); border-radius: 14px; background: #fff;
  box-shadow: 0 1px 2px rgba(16, 24, 40, .04);
}
.dash-stat.is-featured { border-color: #d6e4ff; background: linear-gradient(135deg, #f5f9ff 0%, #eef3ff 60%, #f3efff 100%); }
.dash-stat-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 32px; }
.dash-stat-label { color: var(--text-2); font-size: 14px; font-weight: 500; }
.dash-stat.is-featured .dash-stat-label { color: var(--primary); }
.dash-stat-go { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 8px; color: var(--muted); font-size: 14px; transition: background .15s, color .15s; }
.dash-stat-go:hover { background: var(--bg-soft); color: var(--text); }
.dash-stat-action {
  display: inline-flex; align-items: center; gap: 8px; height: 32px; padding: 0 14px; border-radius: 8px; background: var(--gradient-primary); color: #fff;
  font-size: 13.5px; font-weight: 600; box-shadow: 0 2px 8px rgba(11, 107, 255, .25); transition: box-shadow .2s, transform .2s;
}
.dash-stat-action:hover { color: #fff; box-shadow: 0 4px 14px rgba(11, 107, 255, .4); transform: translateY(-1px); }
.dash-stat strong { margin: 14px 0 4px; font-size: 30px; font-weight: 700; letter-spacing: -.6px; line-height: 1.15; overflow-wrap: anywhere; }
.dash-stat strong.is-primary { color: var(--primary); }
.dash-stat strong.is-success { color: var(--success); }
.dash-stat strong.is-warning { color: #d18a00; }
.dash-stat strong.is-text { color: var(--text); }
.dash-stat small { color: var(--muted); font-size: 13px; }

/* Lista em linhas (tickets do suporte) */
.order-list { display: flex; flex-direction: column; }
.order-row { display: flex; align-items: center; gap: 14px; padding: 14px 20px; border-bottom: 1px solid var(--border); color: var(--text); }
.order-row:last-child { border-bottom: 0; }
.order-row:hover { background: var(--bg-soft); color: var(--text); }
.order-row-info { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.order-row-info strong { font-weight: 500; font-size: 13.5px; }
.order-row-end { display: flex; flex-direction: column; align-items: flex-end; gap: 4px; }

/* Blocos de conteúdo do painel */
.dash-card { overflow: hidden; border: 1px solid var(--border); border-radius: 16px; background: #fff; box-shadow: 0 1px 2px rgba(16, 24, 40, .04); }
.dash-card-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 18px 20px; border-bottom: 1px solid var(--border); }
.dash-card-head h2 { margin: 0; font-size: 16px; font-weight: 600; }
.dash-card-head a { display: inline-flex; align-items: center; gap: 6px; color: var(--text-2); font-size: 13.5px; font-weight: 500; }
.dash-card-head a:hover { color: var(--text); }
.dash-card-head a i { font-size: 13px; transition: transform .2s; }
.dash-card-head a:hover i { transform: translateX(2px); }
.dash-empty { display: flex; flex-direction: column; align-items: center; padding: 44px 24px; text-align: center; }
.dash-empty-icon { display: grid; place-items: center; width: 52px; height: 52px; margin-bottom: 14px; border-radius: 14px; background: var(--bg-soft); color: var(--muted); font-size: 22px; }
.dash-empty strong { font-size: 15px; font-weight: 600; }
.dash-empty p { max-width: 340px; margin: 4px 0 16px; color: var(--muted); font-size: 13.5px; line-height: 1.5; }
.dash-empty p:last-child { margin-bottom: 0; }
.dash .card { border-radius: 16px; }
.stat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin: 16px 0 24px; }
.stat-grid.cols-3 { grid-template-columns: repeat(3, 1fr); }

/* Central de Notificações (visão geral do painel) */
.notif-center { margin-top: 8px; scroll-margin-top: calc(var(--header-h) + 16px); } /* "Ver todas" do sino rola até aqui */
.notif-center .dash-card-head h2 { display: flex; align-items: center; gap: 10px; }
.notif-center .dash-card-head h2 > i { color: var(--muted); font-size: 17px; }
.nc-badge { display: grid; place-items: center; min-width: 22px; height: 22px; padding: 0 7px; border-radius: 11px; background: var(--danger); color: #fff; font-size: 12px; font-weight: 600; }
.nc-read-all { display: inline-flex; align-items: center; gap: 6px; padding: 6px 10px; border: 0; border-radius: 8px; background: none; color: var(--text-2); font-size: 13.5px; font-weight: 500; transition: background .15s, color .15s; }
.nc-read-all:hover { background: var(--bg-soft); color: var(--text); }
.nc-tabs { display: flex; gap: 6px; padding: 14px 20px; border-bottom: 1px solid var(--border); overflow-x: auto; scrollbar-width: none; }
.nc-tab { display: inline-flex; flex-shrink: 0; align-items: center; gap: 8px; height: 34px; padding: 0 12px; border: 1px solid transparent; border-radius: 9px; background: none; color: var(--text-2); font-size: 13.5px; font-weight: 500; transition: background .15s, color .15s; }
.nc-tab span { min-width: 20px; padding: 1px 7px; border-radius: 10px; background: var(--bg-soft); color: var(--text-2); font-size: 12px; text-align: center; }
.nc-tab:hover { background: var(--bg-soft); color: var(--text); }
.nc-tab.active { border-color: var(--border); background: #fff; color: var(--text); font-weight: 600; box-shadow: 0 1px 2px rgba(16, 24, 40, .06); }
.nc-tab.active span { background: var(--primary); color: #fff; }
.nc-list { max-height: 640px; overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin; scrollbar-color: #d5dbe1 transparent; }
.nc-item { position: relative; display: flex; align-items: flex-start; gap: 14px; padding: 16px 20px; border-bottom: 1px solid var(--border); cursor: pointer; transition: background .15s; }
.nc-item:last-child { border-bottom: 0; }
.nc-item:hover { background: #fafbfc; }
.nc-item.is-unread { background: #f7faff; }
.nc-item.is-unread .nc-meta time::after { content: ""; display: inline-block; width: 7px; height: 7px; margin-left: 8px; border-radius: 50%; background: var(--primary); vertical-align: 1px; }
.nc-icon { display: grid; flex-shrink: 0; place-items: center; width: 40px; height: 40px; border-radius: 50%; font-size: 17px; }
.nc-icon.is-pedidos, .nc-chip.is-pedidos { background: var(--primary-50); color: var(--primary); }
.nc-icon.is-perguntas, .nc-chip.is-perguntas { background: var(--warning-50); color: #b07400; }
.nc-icon.is-sistema, .nc-chip.is-sistema { background: #f1ecff; color: #7c3aed; }
.nc-body { flex: 1; min-width: 0; }
.nc-meta { display: flex; align-items: center; gap: 10px; margin-bottom: 4px; }
.nc-chip { padding: 2px 8px; border-radius: 6px; font-size: 11.5px; font-weight: 600; }
.nc-meta time { color: var(--muted); font-size: 12.5px; }
.nc-hidden { color: var(--muted); font-size: 12px; font-style: italic; }
.nc-body strong { display: block; color: var(--text); font-size: 14.5px; font-weight: 600; }
.nc-item.is-unread .nc-body strong { color: #0f172a; }
.nc-body p { margin: 2px 0 0; color: var(--text-2); font-size: 13.5px; line-height: 1.5; overflow-wrap: anywhere; }
.nc-actions { display: flex; flex-shrink: 0; gap: 4px; opacity: 0; transition: opacity .15s; }
.nc-item:hover .nc-actions, .nc-actions:focus-within { opacity: 1; }
.nc-act { display: grid; place-items: center; width: 32px; height: 32px; border: 0; border-radius: 8px; background: none; color: var(--muted); font-size: 14px; transition: background .15s, color .15s; }
.nc-act:hover { background: var(--bg-soft); color: var(--text); }
/* Marcar como lida (igual ao popup do sino); some depois de lida e fica só o "Abrir" */
.nc-act.is-read { background: var(--success-50); color: var(--success); font-size: 16px; }
.nc-act.is-read:hover { background: #d3f3e1; color: var(--success); }
.nc-item:not(.is-unread) .nc-act.is-read { display: none; }
@media (hover: none) { .nc-actions { opacity: 1; } }
@media (max-width: 575.98px) { .nc-item { padding: 14px 16px; } .nc-tabs { padding: 12px 16px; } }

/* Cards de pedido (Minhas compras / Minhas vendas), modelo da GGMAX: faixa à esquerda na cor do status */
.ocards { display: flex; flex-direction: column; gap: 14px; }
.ocard {
  --tone: var(--muted); --tone-bg: var(--bg-soft);
  display: flex; align-items: center; gap: 24px; padding: 20px 24px 20px 26px; border: 1px solid var(--border); border-left: 4px solid var(--tone);
  border-radius: 14px; background: #fff; box-shadow: 0 1px 2px rgba(16, 24, 40, .04); transition: box-shadow .2s;
}
.ocard:hover { box-shadow: 0 8px 24px -10px rgba(16, 24, 40, .14); }
.ocard.is-success { --tone: var(--success); --tone-bg: var(--success-50); }
.ocard.is-info { --tone: #0ea5e9; --tone-bg: var(--info-50); }
.ocard.is-primary { --tone: var(--primary); --tone-bg: var(--primary-50); }
.ocard.is-warning { --tone: var(--warning); --tone-bg: var(--warning-50); }
.ocard.is-danger { --tone: var(--danger); --tone-bg: var(--danger-50); }
.ocard.is-muted { --tone: #b4bac6; --tone-bg: var(--bg-soft); }
.ocard-main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 12px; }
.ocard-top { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.ocard-code { padding-right: 12px; border-right: 1px solid var(--border); color: var(--text-2); font-size: 15px; font-weight: 500; letter-spacing: .3px; }
.ocard-status { display: inline-flex; align-items: center; gap: 6px; padding: 5px 12px; border-radius: 8px; background: var(--tone-bg); color: var(--tone); font-size: 13.5px; font-weight: 500; }
.ocard.is-warning .ocard-status { color: #a86b00; }
.ocard.is-muted .ocard-status { color: var(--text-2); }
.ocard-title { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; margin: 0; color: var(--text); font-size: 16px; font-weight: 600; line-height: 1.4; }
.ocard-title a { color: var(--text); }
.ocard-title a:hover { color: var(--text); }
/* Comprador (nas vendas): leva ao perfil, sem mudar de cor */
.ocard-user, .ocard-user:hover { color: var(--text); font-weight: 600; }
.ocard-qty { color: var(--text-2); font-weight: 500; }
.ocard-sep { color: var(--muted); font-size: 12px; }
.ocard-dot { color: var(--muted); }
.ocard-unit { color: var(--text-2); font-weight: 500; }
.ocard-pay { display: flex; align-items: center; gap: 12px; }
.ocard-pay-icon { display: grid; flex-shrink: 0; place-items: center; width: 42px; height: 42px; border-radius: 10px; background: var(--bg-soft); color: var(--text-2); font-size: 19px; }
.ocard-pay-info { display: flex; flex-direction: column; }
.ocard-pay-info strong { font-size: 14.5px; font-weight: 500; }
.ocard-pay-info small { display: inline-flex; align-items: center; gap: 6px; font-size: 13.5px; font-weight: 500; }
.ocard-pay-info small::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.ocard-pay-info .is-success { color: var(--success); }
.ocard-pay-info .is-warning { color: #a86b00; }
.ocard-pay-info .is-muted { color: var(--muted); }
.ocard-foot { display: flex; flex-wrap: wrap; align-items: center; color: var(--text-2); font-size: 14px; }
.ocard-foot span + span { margin-left: 14px; padding-left: 14px; border-left: 1px solid var(--border); }
.ocard-foot b { color: var(--text); font-weight: 600; }
/* Mesmo estilo do "Anunciar" da topbar: degradê da marca, sombra azul e leve aumento no hover */
.ocard-btn {
  flex-shrink: 0; gap: 8px; height: 46px; padding: 0 26px; border-radius: 10px; background: var(--gradient-primary); color: #fff; font-size: 15px; font-weight: 600;
  box-shadow: 0 2px 8px rgba(11, 107, 255, .25); transition: transform .2s, box-shadow .2s;
}
.ocard-btn:hover { background: var(--gradient-primary-hover); color: #fff; filter: none; transform: scale(1.03); box-shadow: 0 4px 14px rgba(11, 107, 255, .45); }
.ocard-btn i { font-size: 17px; }
@media (max-width: 767.98px) {
  .ocard { flex-direction: column; align-items: stretch; gap: 16px; padding: 16px 16px 16px 18px; }
  .ocard-title { font-size: 15px; }
  .ocard-foot { gap: 6px 0; }
  .ocard-btn { width: 100%; }
}

/* Central de Perguntas (painel) */
.qc-item { padding: 18px 22px; border-bottom: 1px solid var(--border); }
.qc-item:last-child { border-bottom: 0; }
.qc-meta { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 10px; color: var(--muted); font-size: 13px; }
.qc-meta a { color: var(--text); font-size: 14px; font-weight: 600; }
.qc-meta a:hover { color: var(--primary); }
.qc-q, .qc-a { display: flex; gap: 10px; margin: 10px 0 0; line-height: 1.5; overflow-wrap: anywhere; }
.qc-q { color: var(--text); font-size: 14.5px; }
.qc-q i, .qc-a i { flex-shrink: 0; margin-top: 2px; color: var(--muted); }
.qc-a { padding: 10px 14px; border-left: 2px solid var(--border-strong); border-radius: 0 10px 10px 0; background: var(--bg-soft); color: var(--text-2); font-size: 14px; }
.qc-wait { display: inline-flex; align-items: center; gap: 6px; margin-top: 12px; padding: 4px 12px; border-radius: 999px; background: var(--warning-50); color: #9a6200; font-size: 12.5px; font-weight: 500; }
.qc-reply { display: flex; gap: 8px; margin-top: 12px; }
.qc-reply .input { flex: 1; min-width: 0; }
@media (max-width: 575.98px) { .qc-item { padding: 16px; } .qc-reply { flex-direction: column; } }
.stat { display: flex; flex-direction: column; gap: 4px; padding: 18px; border: 1px solid var(--border); border-radius: var(--radius); color: var(--text); background: #fff; }
a.stat:hover { border-color: var(--border-strong); color: var(--text); }
.stat span { color: var(--text-2); font-size: 13px; display: flex; gap: 6px; align-items: center; }
.stat strong { font-size: 24px; font-weight: 700; }
.stat small { color: var(--muted); font-size: 12px; }
.stat-primary { background: linear-gradient(135deg, var(--primary), #4f8dff); border: 0; color: #fff; }
.stat-primary span, .stat-primary small { color: rgba(255,255,255,.85); }
.withdraw-card { padding: 18px; }
.withdraw-card h3 { font-size: 15px; margin-bottom: 10px; }
.withdraw-card .form-stack { gap: 8px; }
.table-wrap { overflow-x: auto; }
.table { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.table th { text-align: left; font-size: 12px; text-transform: uppercase; color: var(--muted); font-weight: 600; padding: 12px 14px; border-bottom: 1px solid var(--border); white-space: nowrap; }
.table td { padding: 12px 14px; border-bottom: 1px solid var(--border); vertical-align: middle; }
.table tr:last-child td { border-bottom: 0; }
/* Ações em formulário (admin): podem quebrar linha */
.table form.actions { margin: 0; display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }
/* Ações na célula: a td continua table-cell (flex na td quebra a tabela); tudo na mesma linha */
.table td.actions { white-space: nowrap; width: 1%; text-align: right; }
.table td.actions > * { vertical-align: middle; }
.table td.actions > * + * { margin-left: 6px; }
.table td.actions form { display: inline-flex; margin: 0; gap: 6px; }
.table .th-actions { text-align: right; }
.table-ad { display: flex; gap: 12px; align-items: center; min-width: 260px; }
.table-ad img:not(.avatar) { width: 70px; aspect-ratio: 16/10; object-fit: cover; border-radius: 6px; }
.table-ad div { display: flex; flex-direction: column; }

/* ---------- Páginas ---------- */
.how-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; margin-top: 28px; }
.how-step { padding: 24px; }
.how-step span { width: 36px; height: 36px; border-radius: 50%; background: var(--primary); color: #fff; display: grid; place-items: center; font-weight: 700; margin-bottom: 12px; }
.how-step h3 { margin-bottom: 6px; }
.how-step p { color: var(--text-2); margin: 0; }
.error-page { padding: 80px 20px; }
.error-code { font-size: 96px; font-weight: 800; color: var(--primary-50); -webkit-text-stroke: 2px var(--primary); line-height: 1; }
.error-page h1 { margin: 12px 0 8px; }
.error-page .btn { margin-top: 16px; }

/* ---------- Responsivo ---------- */
@media (max-width: 1100px) {
  .ad-top { grid-template-columns: 1fr; }
  .gallery { max-width: 460px; }
}
@media (max-width: 960px) {
  .ad-layout, .order-layout { grid-template-columns: 1fr; }
  .ad-side { position: static; }
  .listing { grid-template-columns: 1fr; }
  .filters { display: grid; grid-template-columns: repeat(2, 1fr); }
  .filters h6 { grid-column: 1 / -1; }
  .side-cats { flex-direction: row; flex-wrap: wrap; gap: 6px; padding: 14px; }
  .side-cats h6 { width: 100%; padding: 0 0 4px; }
  .side-cats a { padding: 6px 12px; border: 1px solid var(--border); border-radius: 999px; font-size: 13px; }
  .dash { grid-template-columns: 1fr; gap: 20px; }
  .dash-side { position: static; padding: 8px; }
  /* Menu vira uma faixa de links com rolagem lateral */
  .dash-nav { flex-direction: row; gap: 4px; overflow-x: auto; scrollbar-width: none; }
  .dash-nav-group { flex-direction: row; gap: 4px; }
  .dash-nav-group + .dash-nav-group { padding-top: 0; border-top: 0; }
  .dash-nav a { height: 42px; padding-right: 12px; white-space: nowrap; }
  .dash-nav-title { display: none; }
  .dash-stats, .dash-stats.is-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stat-grid, .stat-grid.cols-3 { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 720px) {
  :root { --header-h: 64px; }
  .search { display: none; }
  .row-2, .row-3, .plans, .how-grid, .grid-2 { grid-template-columns: 1fr; }
  .filters { grid-template-columns: 1fr; }
  .items-head { display: none; }
  .items-row { grid-template-columns: 1fr 1fr; }
  .items-row input:first-child { grid-column: 1 / -1; }
  .stat-grid, .stat-grid.cols-3 { grid-template-columns: 1fr; }
  .dash-stats, .dash-stats.is-3 { grid-template-columns: minmax(0, 1fr); }
  .dash-head h1, .dash .page-title { font-size: 22px; }
  .footer-grid { grid-template-columns: 1fr; gap: 20px; }
  .spec-grid { grid-template-columns: 1fr; }
  .spec-grid li { padding: 14px 20px; border-right: 0; border-bottom: 1px solid var(--border); }
  .spec-grid li:last-child { border-bottom: 0; }
  .form-card { padding: 18px; }
  .steps li { font-size: 0; gap: 0; }
  .steps li span { font-size: 12px; }
  .chat { height: 460px; }
  .order-row { flex-wrap: wrap; }
  .order-row-end { flex-direction: row; width: 100%; justify-content: space-between; align-items: center; }
  .toasts { left: 15px; right: 15px; }
  .toast { min-width: 0; max-width: none; }
  .ask-form { flex-direction: column; }
}

/* ---------- Menu de categorias do topo (modelo da GGMAX) ---------- */
.cat-menu {
  position: fixed; inset: auto; top: 76px; right: 16px; margin: 0; display: none; flex-direction: column; max-width: none;
  width: min(1060px, calc(100% - 32px)); max-height: min(78vh, 760px); padding: 0; border: 0; border-radius: 16px;
  background: #fff; color: var(--text); box-shadow: 0 24px 60px rgba(15, 23, 42, .18), 0 0 0 1px rgba(15, 23, 42, .05); overflow: hidden;
}
.cat-menu[open] { display: flex; animation: catIn .16s ease-out; }
.cat-menu::backdrop { background: transparent; }
@keyframes catIn { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }
@keyframes catFade { from { opacity: 0; } to { opacity: 1; } }
.cat-menu-search { position: relative; flex-shrink: 0; margin: 16px 16px 4px; }
.cat-menu-search > i { position: absolute; top: 50%; left: 16px; color: var(--muted); font-size: 16px; transform: translateY(-50%); }
.cat-menu-search input {
  width: 100%; height: 48px; padding: 0 16px 0 46px; border: 1px solid transparent; border-radius: 12px;
  background: var(--bg-soft); color: var(--text); font: inherit; font-size: 15px; outline: none; transition: border-color .15s, background .15s, box-shadow .15s;
}
.cat-menu-search input:focus { background: #fff; border-color: var(--focus-border); box-shadow: var(--focus-ring); }
.cat-menu-search input::-webkit-search-cancel-button { appearance: none; }
.cat-menu-close { display: none; }
.cat-menu-body { flex: 1; min-height: 0; overflow-y: auto; padding: 4px 16px 12px; overscroll-behavior: contain; outline: none; }
.cat-menu-title { display: flex; align-items: center; gap: 6px; margin: 16px 4px 8px; color: var(--muted); font-size: 12.5px; font-weight: 600; letter-spacing: .6px; text-transform: uppercase; }
.cat-menu-title i { color: var(--danger); font-size: 14px; }
.cat-menu-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2px 12px; }
.cat-menu-item { display: flex; align-items: center; gap: 14px; min-width: 0; padding: 8px 12px 8px 8px; border-radius: 12px; color: var(--text); transition: background .15s; }
.cat-menu-item:hover { background: var(--bg-soft); color: var(--text); }
.cat-menu-item img { flex-shrink: 0; width: 48px; height: 48px; border-radius: 12px; object-fit: cover; background: var(--bg-soft); }
.cat-menu-item span { flex: 1; min-width: 0; overflow: hidden; font-size: 15px; font-weight: 500; text-overflow: ellipsis; white-space: nowrap; }
.cat-menu-item > i { flex-shrink: 0; color: var(--muted); font-size: 12px; }
.cat-menu-empty { margin: 0; padding: 32px 0; color: var(--muted); text-align: center; }
.cat-menu-foot { flex-shrink: 0; display: flex; align-items: center; justify-content: center; gap: 8px; padding: 16px; border-top: 1px solid var(--border); color: var(--text-2); font-size: 15px; font-weight: 500; transition: color .15s, background .15s; }
.cat-menu-foot:hover { background: var(--bg-soft); color: var(--text); }
@media (max-width: 1023px) { .cat-menu-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 720px) {
  /* Tela cheia (sem os limites de largura/altura que o navegador põe em <dialog>) */
  .cat-menu { top: 0; right: 0; width: 100%; max-width: none; max-height: none; height: 100%; border-radius: 0; }
  .cat-menu::backdrop { background: rgba(10, 14, 24, .5); }
  .cat-menu-grid { grid-template-columns: 1fr; }
  /* Tela cheia no celular: busca + botão de fechar lado a lado */
  .cat-menu-search { display: flex; align-items: center; gap: 8px; }
  .cat-menu-close { display: grid; place-items: center; flex-shrink: 0; width: 44px; height: 44px; border: 0; border-radius: 12px; background: var(--bg-soft); color: var(--text-2); font-size: 16px; }
  .cat-menu-search input { flex: 1; min-width: 0; }
  .cat-menu-close i::before { vertical-align: 0; }
}

/* ---------- Suporte (tickets) e denúncias ---------- */
.nav-count { margin-left: auto; min-width: 20px; height: 20px; padding: 0 6px; border-radius: 10px; background: var(--danger); color: #fff; font-size: 11px; display: grid; place-items: center; }
.dropdown-menu a.menu-admin { color: var(--primary); font-weight: 600; }
.ticket-icon { width: 40px; height: 40px; flex-shrink: 0; border-radius: 10px; display: grid; place-items: center; background: var(--primary-50); color: var(--primary); font-size: 18px; }
.ticket-thread .card-head { align-items: flex-start; }
.ticket-thread .card-head h3 { font-size: 16px; margin-bottom: 2px; }
.ticket-msgs { display: flex; flex-direction: column; gap: 14px; padding: 20px 18px; background: #fafbfc; }
.ticket-msg { display: flex; gap: 12px; max-width: 85%; }
.ticket-msg.staff { align-self: flex-end; flex-direction: row-reverse; }
.ticket-msg-body { padding: 12px 14px; border-radius: 12px; background: #fff; border: 1px solid var(--border); min-width: 0; }
.ticket-msg.staff .ticket-msg-body { background: var(--primary-50); border-color: #cfe0ff; }
.ticket-msg-head { display: flex; gap: 10px; align-items: baseline; flex-wrap: wrap; margin-bottom: 4px; }
.ticket-msg-head strong { font-size: 13px; }
.ticket-msg p { margin: 0; font-size: 14px; word-break: break-word; }
.ticket-reply { padding: 16px 18px; border-top: 1px solid var(--border); }
.ticket-reply-actions { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.ticket-close { padding: 0 18px 16px; }
.support-btn { margin-top: 12px; }
.desc-foot { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; flex-wrap: wrap; }
.report-box summary { cursor: pointer; color: var(--muted); font-weight: 500; list-style: none; }
.report-box summary:hover { color: var(--danger); }
.report-box[open] summary { color: var(--danger); margin-bottom: 10px; }
.report-box form { width: 280px; max-width: 100%; text-transform: none; font-weight: 400; gap: 8px; }
@media (max-width: 720px) {
  .ticket-msg { max-width: 100%; }
}

/* ---------- Popup de notificações (topo) ---------- */
.notif { position: relative; }
.notif-panel {
  position: absolute; top: calc(100% + 10px); right: -56px; z-index: 60; width: 420px; max-width: calc(100vw - 24px);
  display: flex; flex-direction: column; background: #fff; border: 1px solid var(--border); border-radius: 14px;
  box-shadow: 0 20px 50px rgba(16, 24, 40, .18); overflow: hidden; animation: notifIn .16s ease-out;
}
@keyframes notifIn { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }
.notif-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 14px 16px 10px; }
.notif-title { display: flex; align-items: center; gap: 8px; min-width: 0; }
.notif-title h3 { font-size: 14px; font-weight: 600; }
.notif-read-all { border: 0; background: none; color: var(--primary); font-size: 12px; font-weight: 600; padding: 4px 8px; border-radius: 6px; display: inline-flex; gap: 4px; align-items: center; }
.notif-read-all:hover { background: var(--bg-hover); }
.notif-tabs { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; margin: 0 16px 8px; padding: 4px; border: 1px solid var(--border); border-radius: 12px; background: var(--bg-soft); }
.notif-tabs button { height: 28px; border: 0; border-radius: 8px; background: none; font-size: 12px; font-weight: 500; color: var(--text-2); }
.notif-tabs button.active { background: #fff; color: var(--text); box-shadow: var(--shadow); }
.notif-list { max-height: min(60vh, 420px); overflow-y: auto; overflow-x: hidden; overscroll-behavior: contain; padding: 6px; }
.notif-list:empty { display: none; }
/* Item do sino: ícone (com bolinha se não lida), título + categoria, texto, horário; à direita o check de lida e a lixeira */
.notif-item { position: relative; display: flex; align-items: flex-start; border-radius: 10px; transition: opacity .15s, height .2s ease .1s; }
.notif-item:hover { background: var(--bg-soft); }
.notif-item.unread { background: #f3f8ff; }
.notif-item.unread:hover { background: var(--primary-50); }
.notif-item.removing { opacity: 0; overflow: hidden; pointer-events: none; }
.notif-item-main { flex: 1; min-width: 0; display: flex; gap: 12px; padding: 12px 6px 12px 12px; border: 0; border-radius: 10px; background: none; color: var(--text); font: inherit; text-align: left; }
.notif-item-icon { position: relative; display: grid; flex-shrink: 0; place-items: center; width: 38px; height: 38px; border-radius: 10px; background: var(--bg-soft); color: var(--muted); font-size: 16px; }
.notif-item.unread .notif-item-icon { background: var(--primary-50); color: var(--primary); }
.notif-item.unread .notif-item-icon::after { content: ""; position: absolute; top: -3px; right: -3px; width: 10px; height: 10px; border: 2px solid #fff; border-radius: 50%; background: var(--primary); }
.notif-item-body { flex: 1; min-width: 0; }
.notif-item-head { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; }
.notif-item-head strong { font-size: 13.5px; font-weight: 600; line-height: 1.35; }
.notif-item-head em { padding: 1px 7px; border: 1px solid var(--border); border-radius: 6px; color: var(--muted); font-size: 11px; font-style: normal; font-weight: 500; }
.notif-item-body p { margin: 3px 0 0; color: var(--text-2); font-size: 12.5px; line-height: 1.45; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; overflow-wrap: anywhere; }
.notif-item.is-open .notif-item-body p { display: block; -webkit-line-clamp: unset; }
.notif-item-body time { display: flex; align-items: center; gap: 5px; margin-top: 5px; color: var(--muted); font-size: 11.5px; }
.notif-item-body time i { font-size: 11px; }
.notif-item-actions { display: flex; flex-direction: column; gap: 4px; padding: 10px 10px 10px 0; opacity: 0; transition: opacity .15s; }
/* Lida/apagar só aparecem ao passar o mouse (ou focar pelo teclado); no celular, que não tem hover, ficam sempre visíveis */
.notif-item:hover .notif-item-actions, .notif-item:focus-within .notif-item-actions { opacity: 1; }
@media (hover: none) { .notif-item-actions { opacity: 1; } }
.notif-act { display: grid; place-items: center; width: 30px; height: 30px; border: 0; border-radius: 8px; background: transparent; color: var(--muted); font-size: 14px; transition: background .15s, color .15s; }
.notif-act.is-read { background: var(--success-50); color: var(--success); font-size: 16px; }
.notif-act.is-read:hover { background: #d3f3e1; }
.notif-act.is-hide:hover { background: var(--danger-50); color: var(--danger); }

.notif-empty { display: flex; flex-direction: column; align-items: center; text-align: center; padding: 28px 24px 32px; }
.notif-empty h4 { font-size: 17px; font-weight: 600; margin-top: 14px; }
.notif-empty p { margin: 6px 0 0; color: var(--muted); font-size: 13px; }
/* Mesmo estilo do "Ver todas as categorias" do menu de categorias */
.notif-foot { flex-shrink: 0; display: flex; align-items: center; justify-content: center; gap: 8px; padding: 14px; border-top: 1px solid var(--border); color: var(--text-2); font-size: 14px; font-weight: 500; transition: color .15s, background .15s; }
.notif-foot:hover { background: var(--bg-soft); color: var(--text); }
.notif-loading { display: flex; flex-direction: column; gap: 8px; padding: 6px; }
.notif-loading span { height: 56px; border-radius: 10px; background: linear-gradient(90deg, var(--bg-soft) 25%, #eceef2 50%, var(--bg-soft) 75%); background-size: 200% 100%; animation: shimmer 1.2s infinite; }
@keyframes shimmer { to { background-position: -200% 0; } }
@media (max-width: 720px) {
  .notif-panel { position: fixed; top: calc(var(--header-h) + 4px); left: 12px; right: 12px; width: auto; max-width: none; }
}

/* ---------- Página inicial no celular ---------- */
@media (max-width: 575.98px) {
  .section { margin: 24px auto 32px; }
  .section-head { margin-bottom: 14px; }
  .section-head h2 { font-size: 19px; }
  .link-more { height: 34px; padding: 0 12px; gap: 6px; font-size: 12.5px; }
  .link-more i { font-size: 14px; }

  .hero { padding: 56px 0 48px; }
  .hero h1 { margin-bottom: 10px; }
  .hero-lead { margin-bottom: 22px; font-size: 15px; }
  .hero-search { height: 52px; padding-left: 42px; }
  .hero-search > i { left: 15px; font-size: 17px; }
  .hero-search input { font-size: 14px; }
  .hero-search .btn { padding: 0 16px; font-size: 14px; }

  /* Categorias populares: uma faixa com rolagem lateral em vez de várias linhas de pôsteres */
  .cat-rail {
    display: flex; gap: 10px; margin: 0 -15px; padding: 0 15px 4px;
    overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-left: 15px; scrollbar-width: none;
  }
  .cat-rail::-webkit-scrollbar { display: none; }
  .cat-rail .cat-poster { flex: 0 0 34%; scroll-snap-align: start; }
  .cat-poster-name { bottom: 10px; font-size: 13px; }

  /* Cards de anúncio em 2 colunas: mais compactos */
  .ad-card { padding: 6px; }
  .ad-card-body { padding: 10px 4px 4px; }
  .ad-card-title { min-height: 0; gap: 6px; }
  .ad-card-title h3 { font-size: 11.5px; }
  .chip-icon { width: 22px; height: 22px; font-size: 11px; }
  .price-pill { padding: 3px 10px; font-size: 13px; }
  .ad-card-foot { padding-top: 10px; gap: 8px; }
  .ad-card-price strong { font-size: 15px; }
  .ad-card-price small { font-size: 10.5px; }
  .ad-card-seller { gap: 4px; padding-top: 8px; font-size: 11px; }
  .ad-card-avatar img { width: 18px; height: 18px; }
  .ad-card-rating small { display: none; }

  .reviews-section, .about-section { padding: 32px 0; }
  .section-title { margin-bottom: 20px; }
  .section-title-icon span { width: 32px; }
  .section-title p { font-size: 14px; }
  .about-card { padding: 16px; gap: 12px; }
}

/* ---------- Carrinho ---------- */
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
/* Carrinho: mesmas medidas e posições da GameMarket (max-w-7xl, grade 2/3 + 1/3, lista de 480px) */
.cart-page { max-width: 1120px; margin: 0 auto; padding: 20px 16px 80px; }
.cart-back {
  display: inline-flex; align-items: center; gap: 6px; margin-bottom: 20px; padding: 5px 10px; border: 1px solid var(--border); border-radius: 8px;
  background: #fff; color: var(--text-2); font-size: 13px; font-weight: 500; transition: background .2s, border-color .2s, color .2s;
}
.cart-back:hover { border-color: var(--border-strong); background: var(--bg-hover); color: var(--text); }
.cart-head { display: flex; align-items: center; gap: 10px; margin-bottom: 24px; }
.cart-head-icon { display: grid; place-items: center; padding: 8px; border: 1px solid var(--border); border-radius: 10px; background: var(--bg-soft); color: var(--text-2); font-size: 18px; line-height: 1; }
.cart-head-icon i::before { vertical-align: 0; }
.cart-head h1 { margin: 0; font-size: 19px; font-weight: 600; line-height: 1.3; }
.cart-head p { margin: 1px 0 0; color: var(--muted); font-size: 13px; }
.cart-loading { display: flex; justify-content: center; gap: 6px; padding: 60px 0; }
.cart-loading span { width: 8px; height: 8px; border-radius: 50%; background: var(--border-strong); animation: cartDot 1s infinite ease-in-out; }
.cart-loading span:nth-child(2) { animation-delay: .15s; }
.cart-loading span:nth-child(3) { animation-delay: .3s; }
@keyframes cartDot { 0%, 80%, 100% { opacity: .3; transform: scale(.8); } 40% { opacity: 1; transform: none; } }
.cart-layout { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; align-items: start; }
.cart-box { grid-column: span 2; overflow: hidden; border: 1px solid var(--border); border-radius: 16px; background: #fff; }
.cart-box-head { padding: 16px 24px; border-bottom: 1px solid var(--border); }
.cart-box-head h2 { margin: 0; font-size: 16px; font-weight: 600; }
.cart-box-head h2 span { margin-left: 8px; color: var(--muted); font-size: 14px; font-weight: 400; }
.cart-box-head p { margin: 2px 0 0; color: var(--muted); font-size: 14px; }
.cart-lines { height: 480px; margin: 0; padding: 0 8px; overflow-y: auto; list-style: none; scrollbar-width: thin; scrollbar-color: #d5dbe1 transparent; }
.cart-line { display: flex; gap: 16px; padding: 20px 16px; border-bottom: 1px solid var(--border); border-radius: 12px; transition: background .15s; }
.cart-line:last-child { border-bottom: 0; }
.cart-line:hover { background: var(--bg-hover); }
.cart-line.is-problem .cart-line-thumb, .cart-line.is-problem .cart-line-title, .cart-line.is-problem .cart-line-price { opacity: .5; }
.cart-line-thumb { display: flex; flex-shrink: 0; width: 84px; height: 84px; overflow: hidden; border: 1px solid var(--border); border-radius: 12px; background: var(--bg-soft); }
.cart-line-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .2s; }
.cart-line-thumb:hover img { transform: scale(1.05); }
.cart-line-body { flex: 1; min-width: 0; }
.cart-line-title { margin: 0; font-size: 16px; font-weight: 600; line-height: 1.375; overflow-wrap: anywhere; }
.cart-line-title a { color: var(--text); }
.cart-line-title a:hover { color: var(--primary); }
.cart-line-title span { margin-left: 8px; color: var(--primary); font-size: 14px; font-weight: 400; }
.cart-line-cat { display: flex; align-items: center; gap: 4px; min-width: 0; margin: 2px 0 0; color: var(--muted); font-size: 14px; }
.cart-line-cat i { flex-shrink: 0; font-size: 14px; }
.cart-line-cat span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cart-line-price { display: flex; align-items: center; gap: 8px; margin-top: 8px; }
.cart-line-price strong { color: var(--primary); font-size: 16px; font-weight: 700; }
.cart-line-price span { color: #98a2b3; font-size: 12px; }
.cart-line-stock { display: flex; align-items: center; gap: 6px; margin-top: 4px; color: var(--muted); font-size: 12px; }
.cart-line-stock i { color: #98a2b3; font-size: 14px; }
.cart-line-stock.is-bad, .cart-line-stock.is-bad i { color: var(--danger); }
.cart-line-actions { display: flex; align-items: center; justify-content: space-between; margin-top: 12px; }
.cart-line-remove { display: grid; place-items: center; width: 36px; height: 36px; border: 0; border-radius: 8px; background: none; color: var(--danger); font-size: 16px; transition: background .15s, color .15s; }
.cart-line-remove:hover { background: var(--danger-50); }
/* Quantidade com − e + (sem as setinhas do navegador) */
.qty-stepper { display: inline-flex; align-items: center; border: 1px solid var(--border); border-radius: 8px; background: var(--bg-soft); }
.qty-btn { display: grid; place-items: center; width: 32px; height: 32px; border: 0; background: none; color: var(--text-2); font-size: 15px; transition: background .15s, color .15s; }
.qty-btn:first-child { border-radius: 8px 0 0 8px; }
.qty-btn:last-child { border-radius: 0 8px 8px 0; }
.qty-btn:hover:not(:disabled) { background: #eceef2; color: var(--text); }
.qty-btn:disabled { opacity: .4; cursor: not-allowed; }
.qty-stepper input { width: 48px; height: 40px; border: 0; background: none; color: var(--text); font: inherit; font-size: 14px; font-weight: 600; text-align: center; outline: none; }
.cart-box-foot { display: flex; gap: 12px; padding: 16px 24px; border-top: 1px solid var(--border); }
/* Limpar Carrinho (vermelho, fundo vermelho claro no hover) e Adicionar Mais, lado a lado e do mesmo tamanho */
.cart-foot-btn { flex: 1; display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 10px 16px; border: 1px solid transparent; border-radius: 12px; background: none; font: inherit; font-size: 14px; font-weight: 500; transition: background .2s, border-color .2s, color .2s; }
.cart-foot-btn.is-clear { border-color: rgba(229, 56, 59, .4); color: var(--danger); }
.cart-foot-btn.is-clear:hover { border-color: rgba(229, 56, 59, .6); background: var(--danger-50); color: var(--danger); }
.cart-foot-btn.is-add { border-color: var(--border); background: var(--bg-hover); color: var(--text-2); }
.cart-foot-btn.is-add:hover { border-color: var(--border-strong); background: #eef0f4; color: var(--text); }
.cart-summary { position: sticky; top: calc(var(--header-h) + 24px); overflow: hidden; border: 1px solid var(--border); border-radius: 16px; background: #fff; box-shadow: 0 20px 25px -5px rgba(16, 24, 40, .08), 0 8px 10px -6px rgba(16, 24, 40, .06); }
.cart-summary-body { display: flex; flex-direction: column; gap: 12px; padding: 20px 24px; }
.cart-sum-row { display: flex; justify-content: space-between; color: var(--muted); font-size: 14px; }
.cart-sum-row strong { color: var(--text); font-weight: 500; }
.cart-sum-total { display: flex; align-items: flex-end; justify-content: space-between; padding-top: 16px; border-top: 1px solid var(--border); }
.cart-sum-total span { font-size: 16px; font-weight: 600; }
.cart-sum-total strong { color: var(--primary); font-size: 24px; font-weight: 700; line-height: 1.2; }
.cart-summary-foot { display: flex; flex-direction: column; gap: 16px; padding: 8px 24px 24px; }
.cart-summary-foot .hint { margin: 0; }
.cart-checkout {
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 8px; width: 100%; padding: 12px 20px; border: 0; border-radius: 10px;
  background: var(--gradient-primary); color: #fff; font: inherit; font-size: 16px; font-weight: 600; box-shadow: 0 10px 15px -3px rgba(11, 107, 255, .3); transition: box-shadow .2s, background .2s;
}
.cart-checkout i { font-size: 20px; }
.cart-checkout:hover { background: var(--gradient-primary-hover); box-shadow: 0 20px 25px -5px rgba(11, 107, 255, .35); }
.cart-checkout:disabled { opacity: .5; cursor: not-allowed; }
.cart-checkout.is-loading { color: transparent; pointer-events: none; }
.cart-checkout.is-loading::after { content: ""; position: absolute; inset: 0; width: 20px; height: 20px; margin: auto; border: 2.5px solid rgba(255, 255, 255, .35); border-top-color: #fff; border-radius: 50%; animation: authSpin .7s linear infinite; }
.cart-secure { display: flex; flex-direction: column; gap: 4px; text-align: center; }
.cart-secure span { display: flex; align-items: center; justify-content: center; gap: 6px; color: var(--muted); font-size: 12px; }
.cart-secure span i { width: 6px; height: 6px; border-radius: 50%; background: var(--success); }
.cart-secure p { margin: 0; color: #98a2b3; font-size: 12px; line-height: 1.6; }
.cart-secure a { color: inherit; text-decoration: underline; }
.cart-checkout.is-disabled { opacity: .5; pointer-events: none; }
.cart-checkout:hover { color: #fff; }
.is-free { color: var(--success); font-weight: 500; }

/* Etapas da compra: voltar + "Carrinho › Proteção › Pagamento › Confirmação" em texto, a atual em destaque */
/* Mesma grade do conteúdo: voltar sobre o resumo e as etapas começando no ícone do cartão da direita (20px de recuo) */
.checkout-top { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); align-items: center; gap: 12px 24px; margin-bottom: 24px; }
.checkout-top .cart-back { grid-column: span 2; justify-self: start; margin-bottom: 0; }
.checkout-top .steps { grid-column: span 3; padding-left: 20px; }
.steps { display: flex; flex-wrap: wrap; align-items: center; gap: 0; margin: 0; padding: 0; list-style: none; color: #98a2b3; font-size: 11px; }
.steps li { display: inline-flex; align-items: center; gap: 0; }
/* Seta fina (chevron da GameMarket) entre as etapas, recortada no desenho para ficar coladinha no texto */
.steps li:not(:last-child)::after {
  content: ""; width: 6px; height: 11px; margin: 0 5px; background: #c4cbd6;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns=%27http://www.w3.org/2000/svg%27 viewBox=%270 0 24 24%27 fill=%27none%27 stroke=%27black%27 stroke-width=%272%27 stroke-linecap=%27round%27 stroke-linejoin=%27round%27%3E%3Cpath d=%27M9 5l7 7-7 7%27/%3E%3C/svg%3E") center / 11px 11px no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns=%27http://www.w3.org/2000/svg%27 viewBox=%270 0 24 24%27 fill=%27none%27 stroke=%27black%27 stroke-width=%272%27 stroke-linecap=%27round%27 stroke-linejoin=%27round%27%3E%3Cpath d=%27M9 5l7 7-7 7%27/%3E%3C/svg%3E") center / 11px 11px no-repeat;
}
.steps .is-current { color: var(--text); font-weight: 600; }

/* Etapa Pagamento (mesma estrutura da GameMarket): max-w-5xl, resumo (2/5) à esquerda e forma de pagamento (3/5) */
.checkout-page { max-width: 1024px; margin: 0 auto; padding: 20px 16px 80px; }
.checkout-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 24px; align-items: start; }
.co-summary, .co-card { overflow: hidden; border: 1px solid var(--border); border-radius: 12px; background: #fff; }
.co-summary { grid-column: span 2; position: sticky; top: calc(var(--header-h) + 24px); }
.co-card { grid-column: span 3; }
.co-head { position: relative; display: flex; align-items: center; gap: 10px; padding: 16px 20px 12px; border-bottom: 1px solid var(--border); }
.co-head-icon { display: grid; flex-shrink: 0; place-items: center; width: 28px; height: 28px; border-radius: 8px; background: var(--bg-soft); color: var(--text-2); font-size: 14px; line-height: 1; }
.co-head h2 { margin: 0; font-size: 14px; font-weight: 600; line-height: 20px; }
.co-head > h2 { flex: 1; }
.co-head p { margin: 0; color: #98a2b3; font-size: 11px; }
.co-chip { padding: 2px 8px; border: 1px solid var(--border); border-radius: 999px; background: var(--bg-soft); color: var(--muted); font-size: 12px; font-weight: 500; line-height: 16px; }
/* Resumo (medidas da GameMarket): lista com altura fixa e barrinha de rolagem fina; linhas e total em 14px; total em 20px */
.co-sum-body { padding: 12px 20px; }
.co-items { display: flex; flex-direction: column; gap: 12px; height: 180px; margin: 0 -10px 0 0; padding: 0 10px 0 0; overflow-y: auto; list-style: none; overscroll-behavior: contain; }
/* Barrinha de rolagem fina e arredondada (aparece quando a lista passa da altura) */
.co-items::-webkit-scrollbar { width: 6px; }
.co-items::-webkit-scrollbar-track { background: transparent; }
.co-items::-webkit-scrollbar-thumb { border-radius: 999px; background: #d0d5dd; }
.co-items::-webkit-scrollbar-thumb:hover { background: #98a2b3; }
.co-items::-webkit-scrollbar-button { display: none; }
/* Firefox (não tem ::-webkit-scrollbar); no Chrome essas propriedades desligariam o estilo acima e trariam as setas */
@supports not selector(::-webkit-scrollbar) { .co-items { scrollbar-width: thin; scrollbar-color: #d0d5dd transparent; } }
@media (min-width: 640px) and (max-width: 767.98px) { .co-items { height: 150px; } }
.co-items li { display: flex; gap: 12px; padding-bottom: 12px; border-bottom: 1px solid var(--border); }
.co-items img { flex-shrink: 0; width: 48px; height: 48px; border-radius: 6px; background: var(--bg-soft); object-fit: cover; }
.co-items div { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.co-items strong { overflow: hidden; font-size: 14px; font-weight: 500; line-height: 20px; text-overflow: ellipsis; white-space: nowrap; }
.co-items small { color: var(--muted); font-size: 12px; line-height: 16px; }
.co-items b { font-size: 14px; font-weight: 500; line-height: 20px; text-align: right; white-space: nowrap; }
.co-rows { display: flex; flex-direction: column; gap: 6px; margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--border); font-size: 14px; line-height: 20px; }
.co-rows > div { display: flex; justify-content: space-between; }
.co-rows > div[hidden] { display: none; }
.co-rows > div > span:first-child { color: var(--muted); }
.co-rows .is-charged { color: #d97706; }
/* Linha do plano de proteção, na cor do plano (mesmas cores dos cartões da etapa Proteção) */
.co-rows > .co-plan-row, .co-rows > .co-plan-row > span:first-child { color: var(--tone, #2563eb); }
.co-plan-row > span:first-child { display: inline-flex; align-items: center; gap: 4px; }
.co-plan-row svg { width: 12px; height: 12px; stroke-width: 2.5; }
.co-plan-row.tone-gray { --tone: #475467; }
.co-plan-row.tone-blue { --tone: #2563eb; }
.co-plan-row.tone-purple { --tone: #7c3aed; }
.co-plan-row.tone-green { --tone: #16a34a; }
.co-plan-row.tone-orange { --tone: #ea580c; }
.co-total { display: flex; align-items: center; justify-content: space-between; margin: 0 20px 16px; padding-top: 12px; border-top: 1px solid var(--border); }
.co-total span { color: var(--text-2); font-size: 14px; font-weight: 600; line-height: 20px; }
.co-total strong { font-size: 20px; font-weight: 700; line-height: 28px; }
.co-trust { display: flex; align-items: center; justify-content: center; gap: 12px; padding: 0 20px 16px; color: #98a2b3; font-family: Inter, "Segoe UI", system-ui, -apple-system, sans-serif; font-size: 10px; line-height: 15px; }
.co-trust span { display: inline-flex; align-items: center; gap: 4px; white-space: nowrap; }
.co-trust span i { font-size: 12px; line-height: 1; }
.co-trust span:nth-child(1) i { color: #22c55e; }
.co-trust span:nth-child(3) i { color: #3b82f6; }
.co-trust span:nth-child(5) i { color: #14b8a6; }
.co-trust > i { width: 1px; height: 12px; background: var(--border); }
.co-body { display: flex; flex-direction: column; gap: 16px; padding: 14px 18px 18px; }
/* Abas: PIX fica verde quando ativa, Saldo da carteira fica azul */
.co-tabs { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; padding: 4px; border-radius: 8px; background: var(--bg-soft); }
.co-tab { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 8px 12px; border: 0; border-radius: 6px; background: none; color: var(--muted); font: inherit; font-size: 13.5px; font-weight: 500; transition: background .15s, color .15s, box-shadow .15s; }
.co-tab:hover { color: var(--text); }
.co-tab i { font-size: 16px; }
.co-tab-logo { width: 17px; height: 17px; color: #98a2b3; transition: color .15s; }
.co-tab[aria-selected="true"] { color: #fff; box-shadow: 0 1px 2px rgba(16, 24, 40, .15); }
.co-tab.is-pix[aria-selected="true"] { background: #16a34a; }
.co-tab.is-wallet[aria-selected="true"] { background: var(--primary); }
.co-tab[aria-selected="true"] .co-tab-logo { color: #fff; }
.co-panel { display: flex; flex-direction: column; gap: 14px; }
.co-panel[hidden] { display: none; }
.co-banner { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border: 1px solid; border-radius: 10px; }
.co-banner h4 { margin: 0; font-size: 14.5px; font-weight: 600; line-height: 1.25; }
.co-banner p { margin: 2px 0 0; color: var(--muted); font-size: 12px; }
.co-banner p strong { color: var(--text); }
.co-banner.is-pix { border-color: #bbf7d0; background: #f0fdf4; }
.co-banner.is-pix h4 { color: #15803d; }
.co-banner-logo { flex-shrink: 0; width: 32px; height: 32px; color: #32bcad; }
.co-banner.is-wallet { border-color: #cfe0ff; background: #f4f8ff; }
.co-banner.is-wallet h4 { color: var(--primary); }
.co-banner-icon { display: grid; flex-shrink: 0; place-items: center; width: 32px; height: 32px; color: var(--primary); font-size: 24px; }
.co-field { display: flex; flex-direction: column; gap: 6px; }
.co-field label { color: var(--text-2); font-size: 13px; font-weight: 500; }
.co-field .input { height: 40px; font-size: 14px; }
.co-warning { display: flex; align-items: flex-start; gap: 8px; margin: 0; padding: 12px 14px; border-radius: 10px; background: var(--warning-50); color: #9a6200; font-size: 13.5px; }
.co-submit {
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 8px; width: 100%; height: 44px; border: 0; border-radius: 8px;
  color: #fff; font: inherit; font-size: 14px; font-weight: 600; transition: filter .15s, opacity .15s;
}
.co-submit.is-pix { background: linear-gradient(90deg, #16a34a, #059669); }
.co-submit.is-wallet { background: var(--gradient-primary); }
.co-submit:hover:not(:disabled) { filter: brightness(.94); }
.co-submit:disabled { opacity: .5; cursor: not-allowed; }
.co-submit-logo { width: 16px; height: 16px; }
.co-submit.is-loading { color: transparent; pointer-events: none; }
.co-submit.is-loading > * { visibility: hidden; }
.co-submit.is-loading::after { content: ""; position: absolute; inset: 0; width: 20px; height: 20px; margin: auto; border: 2.5px solid rgba(255, 255, 255, .35); border-top-color: #fff; border-radius: 50%; animation: authSpin .7s linear infinite; }
/* Etapa Proteção (layout da GameMarket): planos em grade de 2 colunas; o último, se sobrar sozinho, ocupa a linha.
   Cada plano tem a sua cor (definida no admin) no nome, no percentual, no preço e quando está marcado. */
.co-stack { grid-column: span 3; display: flex; flex-direction: column; gap: 16px; }
.co-stack .co-card { grid-column: auto; }
.co-head.has-bar::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 2px; background: linear-gradient(90deg, #3b82f6, #8b5cf6); }
.co-head-icon.is-shield { border: 0; background: linear-gradient(135deg, #eff5ff, #f5f0ff); color: #6366f1; }
.co-head-icon.is-shield svg { width: 16px; height: 16px; }
.pt-plans { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; padding: 16px 18px 18px; }
.pt-plan:last-child:nth-child(odd) { grid-column: span 2; }
.pt-plan {
  --tone: #2563eb; --tone-50: #eff5ff; --tone-200: #93b4f5;
  position: relative; display: flex; flex-direction: column; padding: 12px; border: 1px solid var(--border); border-radius: 10px;
  background: var(--bg-soft); cursor: pointer; transition: border-color .15s, background .15s, box-shadow .15s;
}
.pt-plan.tone-gray { --tone: #475467; --tone-50: #f5f6f8; --tone-200: #c4cbd6; }
.pt-plan.tone-purple { --tone: #7c3aed; --tone-50: #f6f1ff; --tone-200: #c4a8f7; }
.pt-plan.tone-green { --tone: #16a34a; --tone-50: #effcf3; --tone-200: #86d9a8; }
.pt-plan.tone-orange { --tone: #ea580c; --tone-50: #fff5ec; --tone-200: #f8b88a; }
.pt-plan:hover { border-color: var(--tone-200); }
.pt-plan:has(input:checked) { border-color: var(--tone-200); background: var(--tone-50); box-shadow: 0 0 0 1px var(--tone-200); }
.pt-plan:has(input:focus-visible) { box-shadow: 0 0 0 1px var(--tone-200), var(--focus-ring); }
.pt-plan input { position: absolute; opacity: 0; pointer-events: none; }
.pt-badge { position: absolute; top: -8px; right: 12px; padding: 1px 8px; border-radius: 999px; background: linear-gradient(90deg, #7c3aed, #4f46e5); color: #fff; font-size: 9px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; }
.pt-title { display: flex; align-items: center; gap: 6px; margin-bottom: 6px; }
.pt-shield { flex-shrink: 0; width: 16px; height: 16px; color: var(--tone); }
.pt-title strong { color: var(--tone); font-size: 12.5px; font-weight: 600; }
.pt-plan.tone-gray .pt-title strong { color: var(--text-2); font-weight: 500; }
.pt-radio { display: grid; flex-shrink: 0; place-items: center; width: 15px; height: 15px; margin-right: 2px; border: 2px solid var(--border-strong); border-radius: 50%; transition: border-color .15s; }
.pt-radio::after { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--tone); transform: scale(0); transition: transform .15s; }
.pt-plan:has(input:checked) .pt-radio { border-color: var(--tone); }
.pt-plan:has(input:checked) .pt-radio::after { transform: scale(1); }
.pt-pct { padding: 0 6px; border: 1px solid var(--tone-200); border-radius: 999px; background: var(--tone-50); color: var(--tone); font-size: 10px; font-weight: 600; line-height: 16px; }
.pt-note, .pt-benefits { margin-left: 23px; }
.pt-note { margin-bottom: 4px; color: var(--muted); font-size: 11px; }
.pt-benefits { display: flex; flex-direction: column; gap: 3px; margin-top: 0; margin-bottom: 0; padding: 0; list-style: none; color: var(--muted); font-size: 11px; line-height: 1.45; }
.pt-benefits li { display: flex; align-items: flex-start; gap: 5px; }
.pt-ic { flex-shrink: 0; width: 12px; height: 12px; margin-top: 2px; color: var(--tone); }
.pt-plan.tone-gray .pt-ic { color: #22c55e; }
.pt-benefits strong { color: var(--tone); font-weight: 600; }
.pt-price { margin: 8px 0 0 23px; color: var(--tone); font-size: 11.5px; font-weight: 600; }
/* Continuar para Pagamento: mesmo botão do Anunciar / Finalizar Compra */
.co-submit.is-next { background: var(--gradient-primary); box-shadow: 0 10px 15px -3px rgba(11, 107, 255, .3); text-decoration: none; transition: box-shadow .2s, background .2s; }
.co-submit.is-next:hover { background: var(--gradient-primary-hover); box-shadow: 0 20px 25px -5px rgba(11, 107, 255, .35); color: #fff; filter: none; }
/* Dentro do cartão (ex.: Gerar Novo QR Code) a sombra é curta, para não vazar pela borda */
.co-body .co-submit.is-next { box-shadow: 0 4px 10px -4px rgba(11, 107, 255, .4); }
.co-body .co-submit.is-next:hover { box-shadow: 0 6px 14px -4px rgba(11, 107, 255, .45); }
/* PIX gerado (padrão da GameMarket): expira em + barra, título, QR 192px em caixa branca, copia e cola e "aguardando" */
.co-tab.is-locked { opacity: .5; cursor: not-allowed; }
.pix-wait { display: flex; flex-direction: column; gap: 16px; }
.pix-expire { display: flex; flex-direction: column; gap: 8px; }
.pix-expire > div { display: flex; align-items: center; justify-content: space-between; font-size: 14px; }
.pix-expire > div > span { display: inline-flex; align-items: center; gap: 4px; color: var(--muted); }
.pix-expire strong { color: var(--success); font-family: ui-monospace, SFMono-Regular, Consolas, monospace; font-weight: 700; }
.pix-expire.is-ending strong { color: var(--danger); }
.pix-bar { display: block; height: 4px; overflow: hidden; border-radius: 999px; background: var(--bg-soft); }
.pix-bar i { display: block; width: 100%; height: 100%; border-radius: inherit; background: var(--success); transform-origin: left; transition: transform 1s linear; }
.pix-title { display: flex; align-items: center; justify-content: center; gap: 8px; margin-bottom: -4px; color: var(--text-2); font-size: 16px; font-weight: 600; line-height: 28px; }
.pix-title-logo { width: 32px; height: 32px; color: #32bcad; }
.pix-qr { box-sizing: content-box; width: 192px; height: 192px; margin: 0 auto; padding: 16px; border: 1px solid var(--border); border-radius: 8px; background: #fff; }
.pix-qr svg { display: block; width: 100%; height: 100%; }
.pix-copy { display: flex; gap: 8px; }
.pix-copy .input { flex: 1; min-width: 0; height: 40px; font-family: ui-monospace, SFMono-Regular, Consolas, monospace; font-size: 12px; }
.pix-copy-btn { display: inline-flex; flex-shrink: 0; align-items: center; justify-content: center; gap: 6px; height: 40px; padding: 0 16px; border: 1px solid var(--border-strong); border-radius: 6px; background: #fff; color: var(--text-2); font: inherit; font-size: 14px; font-weight: 500; transition: background .15s, color .15s; }
.pix-copy-btn:hover { background: var(--bg-hover); color: var(--text); }
.pix-copy-btn.is-copied { border-color: #16a34a; background: #16a34a; color: #fff; }
.pix-copy-btn i { font-size: 16px; }
.pix-status { display: flex; align-items: center; justify-content: center; gap: 8px; padding: 12px; border: 1px solid #cfe0ff; border-radius: 8px; background: #f4f8ff; color: var(--primary); font-size: 14px; }
.pix-spinner { width: 16px; height: 16px; border: 2px solid rgba(11, 107, 255, .25); border-top-color: var(--primary); border-radius: 50%; animation: authSpin .8s linear infinite; }
.pix-sandbox { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; padding: 10px 12px; border: 1px dashed var(--warning); border-radius: 8px; background: var(--warning-50); color: #8a5a00; font-size: 12.5px; }
/* Cancelar: mesma faixa do "Aguardando pagamento", em vermelho */
.pix-cancel-btn { display: flex; align-items: center; justify-content: center; gap: 8px; width: 100%; padding: 12px; border: 1px solid #fecaca; border-radius: 8px; background: #fef2f2; color: var(--danger); font: inherit; font-size: 14px; cursor: pointer; transition: background .15s, border-color .15s; }
.pix-cancel-btn:hover { border-color: #fca5a5; background: #fee2e2; }
.pix-cancel-btn i { font-size: 16px; }
/* PIX expirado: aviso centralizado (fundo rosado) + "Gerar Novo QR Code" */
.pix-expired { display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 40px 24px; border: 1px solid #fecaca; border-radius: 12px; background: linear-gradient(180deg, #fff5f5, #fef2f2); text-align: center; }
.pix-expired-art { display: grid; place-items: center; width: 88px; height: 88px; margin-bottom: 12px; border-radius: 50%; background: radial-gradient(circle at 30% 30%, #fff, #fde2e2); box-shadow: 0 10px 30px -10px rgba(220, 38, 38, .35); color: #e11d48; }
.pix-expired-art svg { width: 44px; height: 44px; }
.pix-expired h3 { margin: 0; color: var(--text); font-size: 18px; font-weight: 600; }
.pix-expired p { max-width: 360px; margin: 0; color: var(--muted); font-size: 14px; }
.co-terms { margin: 0; color: #98a2b3; font-size: 12px; text-align: center; }
.co-terms a { color: inherit; text-decoration: underline; }
@media (max-width: 1023.98px) {
  .checkout-grid { grid-template-columns: minmax(0, 1fr); gap: 16px; }
  .co-summary, .co-card, .co-stack { grid-column: auto; }
  .co-summary { position: static; order: 2; }
  .checkout-top { display: flex; flex-wrap: wrap; justify-content: space-between; }
  .checkout-top .steps { padding-left: 0; }
}
@media (max-width: 639.98px) {
  .checkout-top { flex-direction: column; align-items: stretch; }
  .checkout-top .cart-back { align-self: flex-start; }
  .co-tab { flex-direction: column; gap: 4px; padding: 8px 4px; font-size: 12px; }
  .pt-plans { grid-template-columns: minmax(0, 1fr); padding: 14px; }
  .co-head, .co-sum-body { padding-left: 16px; padding-right: 16px; }
  .co-total { margin-left: 16px; margin-right: 16px; }
  .co-trust { padding-left: 16px; padding-right: 16px; }
  .co-items { height: 120px; gap: 8px; }
  .co-items li { gap: 8px; padding-bottom: 8px; }
  .co-items img { width: 40px; height: 40px; }
  .co-items strong, .co-items b, .co-rows { font-size: 12px; line-height: 16px; }
  .pt-plan:last-child:nth-child(odd) { grid-column: auto; }
}
/* Como na GameMarket: abaixo de 1024px uma coluna; abaixo de 640px foto em cima e botões do rodapé empilhados */
@media (max-width: 1023.98px) {
  .cart-layout { grid-template-columns: minmax(0, 1fr); }
  .cart-box { grid-column: auto; }
  .cart-summary { position: static; }
}
@media (max-width: 639.98px) {
  .cart-lines { height: auto; }
  .cart-line { flex-direction: column; }
  .cart-line-thumb { width: 100%; }
  .cart-box-foot { flex-direction: column; }
}

/* iOS dá zoom ao focar campos com fonte menor que 16px: em telas de toque todos os campos usam 16px */
@media (hover: none) and (pointer: coarse) {
  input:not([type="checkbox"]):not([type="radio"]):not([type="range"]):not([type="file"]), select, textarea { font-size: 16px !important; }
}
