/* ==========================================================================
   Mercado de Celulares — design system
   Cor da marca: troque --brand / --brand-2. Tudo deriva dos tokens abaixo.
   ========================================================================== */

:root {
  --brand: #7c3aed;
  --brand-2: #2563eb;
  --brand-600: #6d28d9;
  --brand-soft: #f1ebff;
  --brand-ink: #5b21b6;
  --grad: linear-gradient(135deg, var(--brand) 0%, var(--brand-2) 100%);

  --bg: #f6f6fa;
  --bg-elev: #ffffff;
  --surface: #ffffff;
  --surface-2: #f1f1f7;
  --border: #e5e5ef;
  --border-strong: #d4d4e2;
  --text: #13131c;
  --text-2: #3d3d4f;
  --muted: #6b6b80;
  --ok: #16a34a;
  --ok-soft: #e7f8ee;
  --warn: #d97706;
  --warn-soft: #fff4e0;
  --danger: #dc2626;
  --danger-soft: #fdecec;
  --gold: #f59e0b;
  --shadow-sm: 0 1px 2px rgb(19 19 28 / .06);
  --shadow: 0 1px 2px rgb(19 19 28 / .04), 0 8px 24px -10px rgb(19 19 28 / .14);
  --shadow-lg: 0 24px 60px -20px rgb(60 30 130 / .35);
  --radius: 18px;
  --radius-sm: 12px;
  --radius-xs: 8px;
  --font-heading: "Sora", "Segoe UI", system-ui, sans-serif;
  --font-body: "Inter", "Segoe UI", system-ui, sans-serif;
  --header-h: 68px;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --brand-soft: #241a3d;
    --brand-ink: #c4b5fd;
    --bg: #09090f;
    --bg-elev: #101019;
    --surface: #13131d;
    --surface-2: #1b1b28;
    --border: #262636;
    --border-strong: #33334a;
    --text: #f2f2f8;
    --text-2: #cfcfe0;
    --muted: #9696ad;
    --ok-soft: #0f2a1b;
    --warn-soft: #2d2010;
    --danger-soft: #2e1414;
    --shadow: 0 1px 2px rgb(0 0 0 / .4), 0 10px 30px -12px rgb(0 0 0 / .6);
    --shadow-lg: 0 30px 70px -20px rgb(0 0 0 / .75);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --brand-soft: #241a3d;
  --brand-ink: #c4b5fd;
  --bg: #09090f;
  --bg-elev: #101019;
  --surface: #13131d;
  --surface-2: #1b1b28;
  --border: #262636;
  --border-strong: #33334a;
  --text: #f2f2f8;
  --text-2: #cfcfe0;
  --muted: #9696ad;
  --ok-soft: #0f2a1b;
  --warn-soft: #2d2010;
  --danger-soft: #2e1414;
  --shadow: 0 1px 2px rgb(0 0 0 / .4), 0 10px 30px -12px rgb(0 0 0 / .6);
  --shadow-lg: 0 30px 70px -20px rgb(0 0 0 / .75);
  color-scheme: dark;
}

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 16px); }
body {
  margin: 0; min-height: 100vh; display: flex; flex-direction: column;
  background: var(--bg); color: var(--text);
  font: 400 15.5px/1.55 var(--font-body);
  -webkit-font-smoothing: antialiased;
}
main { flex: 1; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3, h4 { font-family: var(--font-heading); line-height: 1.12; margin: 0 0 .5em; letter-spacing: -.02em; }
h1 { font-size: clamp(2rem, 5.2vw, 3.6rem); font-weight: 800; }
h2 { font-size: clamp(1.5rem, 3.2vw, 2.2rem); font-weight: 700; }
h3 { font-size: 1.15rem; font-weight: 700; }
p { margin: 0 0 1em; color: var(--text-2); }
.container { width: 100%; max-width: 1240px; margin: 0 auto; padding: 0 20px; }
.ico { width: 1.15em; height: 1.15em; flex: none; }
.muted { color: var(--muted); }
.grad-text { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.skip-link { position: absolute; left: -9999px; z-index: 200; background: var(--brand); color: #fff; padding: 10px 16px; border-radius: 10px; }
.skip-link:focus { left: 16px; top: 12px; }
:focus-visible { outline: 2.5px solid var(--brand); outline-offset: 2px; border-radius: 6px; }
[hidden] { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}

/* ---------- botões ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 46px; padding: 0 22px; border-radius: 999px; border: 1px solid transparent;
  font-weight: 600; font-size: .95rem; cursor: pointer; white-space: nowrap;
  transition: transform .15s ease-out, box-shadow .15s ease-out, background .15s, border-color .15s, opacity .15s;
}
.btn:active { transform: scale(.98); }
.btn[disabled], .btn.loading { opacity: .6; pointer-events: none; }
.btn-sm { height: 38px; padding: 0 16px; font-size: .88rem; }
.btn-lg { height: 54px; padding: 0 28px; font-size: 1.02rem; }
.btn-block { width: 100%; }
.btn-primary { background: var(--grad); color: #fff; box-shadow: 0 8px 20px -8px rgb(124 58 237 / .6); }
.btn-primary:hover { box-shadow: 0 12px 28px -8px rgb(124 58 237 / .7); transform: translateY(-1px); }
.btn-ghost { background: var(--surface); border-color: var(--border); color: var(--text); }
.btn-ghost:hover { border-color: var(--brand); color: var(--brand-ink); }
.btn-soft { background: var(--brand-soft); color: var(--brand-ink); }
.btn-soft:hover { filter: brightness(.97); }
.btn-ok { background: #16a34a; color: #fff; box-shadow: 0 8px 20px -8px rgb(22 163 74 / .6); }
.btn-ok:hover { background: #15803d; }
.btn-danger { background: var(--danger-soft); color: var(--danger); }
.btn-white { background: #fff; color: #1a1033; }
.btn .spinner { width: 16px; height: 16px; border: 2px solid currentColor; border-right-color: transparent; border-radius: 50%; animation: spin .7s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.link-btn { background: none; border: 0; padding: 0; cursor: pointer; color: inherit; text-align: left; }
.icon-btn {
  width: 42px; height: 42px; border-radius: 999px; border: 1px solid var(--border);
  background: var(--surface); display: inline-grid; place-items: center; cursor: pointer; flex: none;
  transition: border-color .15s, color .15s;
}
.icon-btn:hover { border-color: var(--brand); color: var(--brand-ink); }
.icon-btn .ico { width: 19px; height: 19px; }
.when-dark { display: none; }
:root[data-theme="dark"] .when-dark { display: block; }
:root[data-theme="dark"] .when-light { display: none; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .when-dark { display: block; }
  :root:not([data-theme="light"]) .when-light { display: none; }
}

/* ---------- header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50; height: var(--header-h);
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: saturate(1.6) blur(14px); -webkit-backdrop-filter: saturate(1.6) blur(14px);
  border-bottom: 1px solid color-mix(in srgb, var(--border) 70%, transparent);
}
.header-inner { height: 100%; display: flex; align-items: center; gap: 16px; }
.logo { display: inline-flex; align-items: center; gap: 10px; font-family: var(--font-heading); font-weight: 800; font-size: 1.12rem; letter-spacing: -.02em; flex: none; }
.logo-mark { display: inline-block; }
.logo-mark svg { width: 34px; height: 34px; display: block; filter: drop-shadow(0 6px 10px rgb(124 58 237 / .35)); }
.header-search { flex: 1; max-width: 520px; margin: 0 auto; position: relative; display: none; }
.header-search .ico { position: absolute; left: 16px; top: 50%; transform: translateY(-50%); color: var(--muted); }
.header-search input {
  width: 100%; height: 44px; border-radius: 999px; border: 1px solid var(--border);
  background: var(--surface); padding: 0 18px 0 44px; outline: none; transition: border-color .15s, box-shadow .15s;
}
.header-search input:focus { border-color: var(--brand); box-shadow: 0 0 0 4px color-mix(in srgb, var(--brand) 18%, transparent); }
.header-actions { display: flex; align-items: center; gap: 8px; margin-left: auto; }
.header-cta span { display: none; }
.header-cta { width: 42px; padding: 0; height: 42px; }
.account-dot { position: relative; }
.account-dot::after { content: ""; position: absolute; right: 6px; top: 6px; width: 9px; height: 9px; border-radius: 50%; background: var(--ok); border: 2px solid var(--surface); }
@media (min-width: 560px) { .header-cta { width: auto; padding: 0 16px; } .header-cta span { display: inline; } }
@media (min-width: 860px) { .header-search { display: block; } }
body.home .header-search { visibility: hidden; }
body.home.scrolled .header-search { visibility: visible; }

/* ---------- hero ---------- */
.hero { position: relative; overflow: hidden; padding: 56px 0 40px; isolation: isolate; }
.hero::before {
  content: ""; position: absolute; inset: -40% -10% auto; height: 120%; z-index: -1;
  background:
    radial-gradient(40% 50% at 20% 30%, color-mix(in srgb, var(--brand) 28%, transparent), transparent 70%),
    radial-gradient(35% 45% at 80% 20%, color-mix(in srgb, var(--brand-2) 24%, transparent), transparent 70%),
    radial-gradient(30% 40% at 60% 80%, color-mix(in srgb, #ec4899 14%, transparent), transparent 70%);
  filter: blur(10px);
}
.hero::after {
  content: ""; position: absolute; inset: 0; z-index: -1; opacity: .5;
  background-image: linear-gradient(var(--border) 1px, transparent 1px), linear-gradient(90deg, var(--border) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: radial-gradient(60% 60% at 50% 30%, #000, transparent 75%);
  -webkit-mask-image: radial-gradient(60% 60% at 50% 30%, #000, transparent 75%);
}
.hero-grid { display: grid; gap: 40px; align-items: center; }
@media (min-width: 1000px) { .hero-grid { grid-template-columns: 1.15fr .85fr; } .hero { padding: 72px 0 56px; } }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px 6px 6px; border-radius: 999px;
  background: var(--surface); border: 1px solid var(--border); font-size: .85rem; font-weight: 600; color: var(--text-2);
  box-shadow: var(--shadow-sm); margin-bottom: 20px;
}
.eyebrow b { background: var(--grad); color: #fff; border-radius: 999px; padding: 3px 10px; font-size: .78rem; }
.hero h1 { max-width: 14ch; }
.hero-sub { font-size: clamp(1rem, 2vw, 1.15rem); max-width: 52ch; margin-bottom: 26px; }
.big-search {
  display: flex; align-items: center; gap: 8px; padding: 7px 7px 7px 20px; border-radius: 999px;
  background: var(--surface); border: 1px solid var(--border); box-shadow: var(--shadow-lg); max-width: 600px;
}
.big-search .ico { color: var(--muted); width: 20px; height: 20px; }
.big-search input { flex: 1; min-width: 0; border: 0; outline: 0; background: transparent; font-size: 1.02rem; height: 46px; }
.hero-stats { display: flex; flex-wrap: wrap; gap: 10px 22px; margin-top: 22px; font-size: .92rem; color: var(--muted); }
.hero-stats span { display: inline-flex; align-items: center; gap: 7px; }
.hero-stats b { color: var(--text); font-family: var(--font-heading); }
.hero-stats .ico { color: var(--ok); }

/* mockup de celulares no hero */
.hero-art { position: relative; height: 420px; display: none; }
@media (min-width: 1000px) { .hero-art { display: block; } }
.mock {
  position: absolute; width: 210px; height: 420px; border-radius: 38px; padding: 10px;
  background: linear-gradient(160deg, #2a2a3a, #0e0e16); box-shadow: var(--shadow-lg), inset 0 0 0 1.5px rgb(255 255 255 / .08);
}
.mock-screen { width: 100%; height: 100%; border-radius: 30px; overflow: hidden; position: relative; background: var(--surface); }
.mock-screen::before { content: ""; position: absolute; top: 9px; left: 50%; translate: -50% 0; width: 70px; height: 20px; border-radius: 20px; background: #0b0b12; z-index: 2; }
.mock-1 { left: 8%; top: 20px; rotate: -8deg; animation: floatA 7s ease-in-out infinite; }
.mock-2 { right: 6%; top: 0; rotate: 7deg; animation: floatB 8s ease-in-out infinite; }
@keyframes floatA { 50% { translate: 0 -12px; } }
@keyframes floatB { 50% { translate: 0 10px; } }
.mock-card { position: absolute; inset: 44px 12px 12px; display: flex; flex-direction: column; gap: 10px; }
.mock-photo { flex: 1; border-radius: 18px; background: var(--grad); position: relative; overflow: hidden; }
.mock-photo::after { content: ""; position: absolute; inset: 22% 30%; border-radius: 16px; background: rgb(255 255 255 / .22); border: 2px solid rgb(255 255 255 / .35); }
.mock-line { height: 10px; border-radius: 6px; background: var(--surface-2); }
.mock-price { font: 800 1.25rem var(--font-heading); }
.mock-chip { position: absolute; z-index: 3; display: inline-flex; align-items: center; gap: 8px; padding: 10px 14px; border-radius: 14px; background: var(--surface); border: 1px solid var(--border); box-shadow: var(--shadow); font-size: .85rem; font-weight: 600; }
.mock-chip .ico { color: var(--ok); }
.chip-a { left: 0; bottom: 60px; animation: floatB 6s ease-in-out infinite; }
.chip-b { right: 0; bottom: 120px; animation: floatA 6.5s ease-in-out infinite; }
.chip-b .ico { color: var(--gold); }

/* ---------- marcas ---------- */
.brand-strip { display: flex; gap: 10px; overflow-x: auto; padding: 4px 2px 10px; scrollbar-width: none; margin-top: 26px; }
.brand-strip::-webkit-scrollbar { display: none; }
.chip {
  display: inline-flex; align-items: center; gap: 6px; height: 38px; padding: 0 16px; border-radius: 999px;
  background: var(--surface); border: 1px solid var(--border); font-weight: 600; font-size: .9rem; cursor: pointer; white-space: nowrap; flex: none;
  transition: border-color .15s, background .15s, color .15s;
}
.chip:hover { border-color: var(--brand); }
.chip[aria-pressed="true"] { background: var(--text); color: var(--bg); border-color: var(--text); }

/* ---------- seções ---------- */
.section { padding: 56px 0; }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 16px; margin-bottom: 24px; flex-wrap: wrap; }
.section-head p { margin: 0; }
.kicker { display: inline-block; font-size: .78rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--brand-ink); margin-bottom: 10px; }

/* ---------- filtros ---------- */
.filters {
  position: sticky; top: var(--header-h); z-index: 30; padding: 12px 0;
  background: color-mix(in srgb, var(--bg) 88%, transparent); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
}
.filter-row { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; align-items: center; }
.filter-row::-webkit-scrollbar { display: none; }
.select {
  height: 40px; padding: 0 36px 0 14px; border-radius: 999px; border: 1px solid var(--border); background: var(--surface);
  appearance: none; -webkit-appearance: none; cursor: pointer; font-weight: 500; font-size: .9rem; flex: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23888' stroke-width='3'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 14px center;
}
.select:hover { border-color: var(--border-strong); }
.select.active { border-color: var(--brand); color: var(--brand-ink); background-color: var(--brand-soft); }
.price-inputs { display: flex; align-items: center; gap: 6px; flex: none; }
.price-inputs input { width: 92px; height: 40px; border-radius: 999px; border: 1px solid var(--border); background: var(--surface); padding: 0 14px; font-size: .9rem; outline: none; }
.price-inputs input:focus { border-color: var(--brand); }
.result-info { display: flex; justify-content: space-between; align-items: center; margin: 14px 0 6px; font-size: .92rem; color: var(--muted); gap: 10px; flex-wrap: wrap; }
.result-info b { color: var(--text); }

/* ---------- grid de anúncios ---------- */
.ad-grid { display: grid; gap: 14px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (min-width: 720px) { .ad-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; } }
@media (min-width: 1080px) { .ad-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; } }
.ad-card {
  position: relative; display: flex; flex-direction: column; border-radius: var(--radius); overflow: hidden;
  background: var(--surface); border: 1px solid var(--border); box-shadow: var(--shadow-sm);
  transition: transform .2s ease-out, box-shadow .2s ease-out, border-color .2s;
  animation: cardIn .35s ease-out both;
}
@keyframes cardIn { from { opacity: .35; transform: translateY(8px); } }
.ad-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: var(--border-strong); }
.ad-card.featured { border-color: color-mix(in srgb, var(--gold) 55%, var(--border)); }
.ad-photo { position: relative; aspect-ratio: 1; background: var(--surface-2); overflow: hidden; }
.ad-photo img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease-out; }
.ad-card:hover .ad-photo img { transform: scale(1.04); }
.ad-photo .placeholder { position: absolute; inset: 0; display: grid; place-items: center; color: var(--muted); background: linear-gradient(135deg, var(--surface-2), var(--brand-soft)); }
.ad-photo .placeholder .ico { width: 44px; height: 44px; opacity: .6; }
.badges { position: absolute; left: 10px; top: 10px; display: flex; gap: 6px; flex-wrap: wrap; z-index: 2; }
.badge {
  display: inline-flex; align-items: center; gap: 4px; height: 24px; padding: 0 9px; border-radius: 999px;
  font-size: .72rem; font-weight: 700; letter-spacing: .01em; background: rgb(15 15 25 / .72); color: #fff; backdrop-filter: blur(6px);
}
.badge .ico { width: 12px; height: 12px; }
.badge-gold { background: linear-gradient(135deg, #f59e0b, #f97316); }
.badge-soft { background: var(--brand-soft); color: var(--brand-ink); backdrop-filter: none; }
.badge-ok { background: var(--ok-soft); color: var(--ok); backdrop-filter: none; }
.badge-warn { background: var(--warn-soft); color: var(--warn); backdrop-filter: none; }
.badge-danger { background: var(--danger-soft); color: var(--danger); backdrop-filter: none; }
.badge-muted { background: var(--surface-2); color: var(--muted); backdrop-filter: none; }
.photo-count { position: absolute; right: 10px; bottom: 10px; z-index: 2; }
.ad-body { padding: 12px 14px 14px; display: flex; flex-direction: column; gap: 4px; flex: 1; }
.ad-price { font: 800 1.2rem/1.1 var(--font-heading); letter-spacing: -.02em; }
.ad-title { font-weight: 600; font-size: .93rem; color: var(--text); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: 2.6em; line-height: 1.3; }
.ad-meta { display: flex; flex-wrap: wrap; gap: 4px 10px; font-size: .8rem; color: var(--muted); margin-top: auto; padding-top: 6px; }
.ad-meta span { display: inline-flex; align-items: center; gap: 4px; }
.ad-meta .ico { width: 13px; height: 13px; }
@media (min-width: 720px) { .ad-price { font-size: 1.32rem; } .ad-body { padding: 14px 16px 16px; } }

/* skeleton */
.skeleton { background: linear-gradient(90deg, var(--surface-2) 0%, var(--surface) 50%, var(--surface-2) 100%); background-size: 200% 100%; animation: shimmer 1.3s linear infinite; border-radius: 8px; }
@keyframes shimmer { to { background-position: -200% 0; } }
.ad-card.sk .ad-photo { aspect-ratio: 1; }
.sk-line { height: 14px; margin: 6px 0; }

/* empty */
.empty { grid-column: 1 / -1; text-align: center; padding: 60px 20px; border: 1.5px dashed var(--border-strong); border-radius: var(--radius); background: var(--surface); }
.empty .ico { width: 44px; height: 44px; color: var(--brand); margin: 0 auto 12px; }

/* ---------- banners ---------- */
.promo {
  grid-column: 1 / -1; position: relative; overflow: hidden; border-radius: var(--radius);
  display: grid; align-items: center; min-height: 130px; isolation: isolate; color: #fff;
  background: var(--grad); box-shadow: var(--shadow);
  transition: transform .2s ease-out, box-shadow .2s;
}
.promo:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); }
.promo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.promo.has-img::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgb(10 8 25 / .82), rgb(10 8 25 / .25) 70%, transparent); }
.promo:not(.has-img)::after {
  content: ""; position: absolute; right: -60px; top: -60px; width: 260px; height: 260px; border-radius: 50%; z-index: -1;
  background: radial-gradient(circle, rgb(255 255 255 / .25), transparent 65%);
}
.promo-inner { padding: 22px 24px; display: flex; align-items: center; justify-content: space-between; gap: 18px; flex-wrap: wrap; }
.promo-tag { font-size: .7rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; opacity: .85; }
.promo h3 { margin: 4px 0 2px; font-size: clamp(1.15rem, 2.4vw, 1.6rem); color: #fff; }
.promo p { margin: 0; color: rgb(255 255 255 / .86); font-size: .95rem; }
.promo .btn { flex: none; }
.promo.invite { background: var(--surface); color: var(--text); border: 1.5px dashed var(--border-strong); box-shadow: none; }
.promo.invite h3 { color: var(--text); }
.promo.invite p { color: var(--muted); }
.promo.invite::after { display: none; }
.promo-top { margin-bottom: 8px; }

/* paginação */
.pager { display: flex; justify-content: center; gap: 8px; margin: 32px 0 0; }

/* ---------- como funciona / planos ---------- */
.steps { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); counter-reset: step; }
.step { position: relative; padding: 26px 22px 22px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--border); }
.step::before { counter-increment: step; content: counter(step); position: absolute; top: 20px; right: 20px; font: 800 2.6rem/1 var(--font-heading); color: var(--surface-2); }
.step .icon-wrap { width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; background: var(--brand-soft); color: var(--brand-ink); margin-bottom: 14px; }
.step .icon-wrap .ico { width: 24px; height: 24px; }
.step p { margin: 0; font-size: .94rem; }

.plans { display: grid; gap: 18px; grid-template-columns: repeat(auto-fit, minmax(270px, 1fr)); max-width: 860px; margin: 0 auto; }
.plan { position: relative; padding: 28px; border-radius: 24px; background: var(--surface); border: 1px solid var(--border); display: flex; flex-direction: column; }
.plan.pop { border: 2px solid transparent; background: linear-gradient(var(--surface), var(--surface)) padding-box, var(--grad) border-box; box-shadow: var(--shadow-lg); }
.plan .tag { position: absolute; top: -13px; left: 28px; background: var(--grad); color: #fff; font-size: .75rem; font-weight: 700; border-radius: 999px; padding: 5px 12px; }
.plan-price { font: 800 2.6rem/1 var(--font-heading); letter-spacing: -.03em; margin: 8px 0 4px; }
.plan-price small { font-size: 1rem; font-weight: 600; color: var(--muted); letter-spacing: 0; }
.plan ul { list-style: none; padding: 0; margin: 18px 0 24px; display: grid; gap: 10px; }
.plan li { display: flex; gap: 10px; align-items: flex-start; font-size: .95rem; color: var(--text-2); }
.plan li .ico { color: var(--ok); margin-top: 3px; }
.plan .btn { margin-top: auto; }

.safety { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.tip { display: flex; gap: 14px; padding: 18px; border-radius: var(--radius-sm); background: var(--surface); border: 1px solid var(--border); }
.tip .ico { width: 22px; height: 22px; color: var(--brand); flex: none; margin-top: 2px; }
.tip b { display: block; margin-bottom: 2px; }
.tip p { margin: 0; font-size: .9rem; }

.store-band {
  position: relative; overflow: hidden; border-radius: 28px; padding: 40px 28px; color: #fff; isolation: isolate;
  background: #120a2b; display: grid; gap: 24px; align-items: center;
}
.store-band::before { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(60% 90% at 90% 10%, rgb(124 58 237 / .75), transparent 60%), radial-gradient(50% 80% at 0% 100%, rgb(37 99 235 / .6), transparent 60%); }
.store-band h2, .store-band p { color: #fff; }
.store-band p { opacity: .85; max-width: 56ch; }
@media (min-width: 860px) { .store-band { grid-template-columns: 1.4fr auto; padding: 48px 52px; } }

/* FAQ */
.faq { max-width: 820px; margin: 0 auto; display: grid; gap: 10px; }
.faq details { border-radius: var(--radius-sm); background: var(--surface); border: 1px solid var(--border); overflow: hidden; }
.faq summary { padding: 18px 20px; cursor: pointer; font-weight: 600; list-style: none; display: flex; justify-content: space-between; gap: 16px; align-items: center; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font: 600 1.4rem/1 var(--font-body); color: var(--brand); transition: rotate .2s; }
.faq details[open] summary::after { rotate: 45deg; }
.faq details p { padding: 0 20px 18px; margin: 0; }

/* ---------- footer ---------- */
.site-footer { margin-top: 64px; border-top: 1px solid var(--border); background: var(--bg-elev); padding: 48px 0 24px; font-size: .92rem; }
.footer-grid { display: grid; gap: 30px; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); }
.footer-brand { grid-column: 1 / -1; max-width: 380px; }
@media (min-width: 900px) { .footer-grid { grid-template-columns: 1.6fr 1fr 1fr 1fr; } .footer-brand { grid-column: auto; } }
.footer-brand p { color: var(--muted); margin: 12px 0 16px; }
.site-footer h4 { font-size: .85rem; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); margin-bottom: 14px; }
.site-footer a:not(.logo):not(.btn), .site-footer .link-btn { display: block; color: var(--text-2); padding: 4px 0; }
.site-footer a:not(.logo):not(.btn):hover, .site-footer .link-btn:hover { color: var(--brand-ink); }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; margin-top: 36px; padding-top: 20px; border-top: 1px solid var(--border); color: var(--muted); font-size: .82rem; }

/* ---------- formulários ---------- */
.field { display: grid; gap: 7px; }
.field > span, .label { font-weight: 600; font-size: .9rem; }
.field small, .hint { color: var(--muted); font-size: .82rem; }
.input, .textarea, .field select {
  width: 100%; height: 48px; padding: 0 16px; border-radius: var(--radius-sm); border: 1px solid var(--border);
  background: var(--bg-elev); outline: none; transition: border-color .15s, box-shadow .15s; font-size: 1rem;
}
.field select { appearance: none; -webkit-appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23888' stroke-width='3'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 16px center; padding-right: 40px; }
.textarea { height: auto; min-height: 120px; padding: 14px 16px; resize: vertical; line-height: 1.5; }
.input:focus, .textarea:focus, .field select:focus { border-color: var(--brand); box-shadow: 0 0 0 4px color-mix(in srgb, var(--brand) 16%, transparent); }
.input.invalid { border-color: var(--danger); }
.input-group { position: relative; }
.input-group .prefix { position: absolute; left: 16px; top: 50%; transform: translateY(-50%); color: var(--muted); font-weight: 600; }
.input-group .input { padding-left: 46px; }
.grid-2 { display: grid; gap: 16px; grid-template-columns: 1fr; }
@media (min-width: 640px) { .grid-2 { grid-template-columns: 1fr 1fr; } .grid-3 { grid-template-columns: 1fr 1fr 1fr; } }
.stack { display: grid; gap: 18px; }
.check { display: flex; gap: 12px; align-items: flex-start; cursor: pointer; font-size: .93rem; color: var(--text-2); }
.check input { width: 20px; height: 20px; accent-color: var(--brand); flex: none; margin-top: 1px; }
.pills { display: flex; flex-wrap: wrap; gap: 8px; }
.pill-opt { position: relative; }
.pill-opt input { position: absolute; opacity: 0; pointer-events: none; }
.pill-opt span { display: inline-flex; align-items: center; gap: 6px; height: 42px; padding: 0 16px; border-radius: 999px; border: 1px solid var(--border); background: var(--bg-elev); font-weight: 600; font-size: .9rem; cursor: pointer; transition: all .15s; }
.pill-opt input:checked + span { border-color: var(--brand); background: var(--brand-soft); color: var(--brand-ink); }
.pill-opt input:focus-visible + span { outline: 2.5px solid var(--brand); outline-offset: 2px; }
.switch-row { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 12px 0; cursor: pointer; }
.switch-row small { display: block; color: var(--muted); font-size: .82rem; }
.switch-row input[type="checkbox"] { appearance: none; -webkit-appearance: none; width: 46px; height: 27px; border-radius: 999px; background: var(--border-strong); position: relative; cursor: pointer; transition: background .2s; flex: none; }
.switch-row input[type="checkbox"]::after { content: ""; position: absolute; top: 3px; left: 3px; width: 21px; height: 21px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgb(0 0 0 / .3); transition: translate .2s; }
.switch-row input[type="checkbox"]:checked { background: var(--brand); }
.switch-row input[type="checkbox"]:checked::after { translate: 19px 0; }
.switch-row input:disabled { opacity: .6; }
.form-error { padding: 12px 14px; border-radius: var(--radius-sm); background: var(--danger-soft); color: var(--danger); font-size: .9rem; font-weight: 500; }

/* ---------- cartões de página ---------- */
.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 24px; }
.card-lg { padding: 28px; border-radius: 24px; }
@media (min-width: 640px) { .card-lg { padding: 36px; } }
.page-narrow { max-width: 760px; margin: 0 auto; padding: 40px 20px 0; }
.page-head { padding: 40px 0 20px; }
.page-head p { max-width: 60ch; }

/* auth */
.auth-wrap { min-height: calc(100vh - var(--header-h) - 120px); display: grid; place-items: center; padding: 40px 20px; }
.auth-card { width: 100%; max-width: 440px; }
.tabs { display: grid; grid-template-columns: 1fr 1fr; background: var(--surface-2); padding: 5px; border-radius: 999px; margin-bottom: 24px; }
.tabs button { height: 40px; border: 0; border-radius: 999px; background: transparent; font-weight: 600; cursor: pointer; color: var(--muted); }
.tabs button[aria-selected="true"] { background: var(--surface); color: var(--text); box-shadow: var(--shadow-sm); }

/* ---------- wizard anunciar ---------- */
.wizard { display: grid; gap: 24px; padding: 32px 0 0; }
@media (min-width: 1000px) { .wizard { grid-template-columns: 1fr 340px; align-items: start; } }
.progress { display: flex; gap: 6px; margin-bottom: 26px; }
.progress span { flex: 1; height: 5px; border-radius: 99px; background: var(--surface-2); overflow: hidden; position: relative; }
.progress span.done::after, .progress span.current::after { content: ""; position: absolute; inset: 0; background: var(--grad); }
.progress span.current::after { animation: grow .4s ease-out; }
@keyframes grow { from { transform: scaleX(0); transform-origin: left; } }
.step-label { font-size: .82rem; font-weight: 700; color: var(--brand-ink); text-transform: uppercase; letter-spacing: .1em; }
.wizard-nav { display: flex; justify-content: space-between; gap: 12px; margin-top: 28px; padding-top: 22px; border-top: 1px solid var(--border); }
.wizard-aside { position: sticky; top: calc(var(--header-h) + 20px); display: grid; gap: 16px; }
.preview-card { pointer-events: none; }
.preview-card .ad-card { animation: none; }

.uploader { display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(118px, 1fr)); }
.up-tile { position: relative; aspect-ratio: 1; border-radius: var(--radius-sm); overflow: hidden; background: var(--surface-2); border: 1px solid var(--border); cursor: grab; }
.up-tile img { width: 100%; height: 100%; object-fit: cover; }
.up-tile.dragging { opacity: .4; }
.up-tile .cover { position: absolute; left: 8px; bottom: 8px; }
.up-tile .rm { position: absolute; right: 6px; top: 6px; width: 30px; height: 30px; border-radius: 50%; border: 0; background: rgb(0 0 0 / .65); color: #fff; display: grid; place-items: center; cursor: pointer; }
.up-tile .rm .ico { width: 15px; height: 15px; }
.up-tile .bar { position: absolute; left: 0; right: 0; bottom: 0; height: 4px; background: rgb(0 0 0 / .2); }
.up-tile .bar i { display: block; height: 100%; background: var(--grad); transition: width .2s; }
.up-tile.error { outline: 2px solid var(--danger); }
.up-add {
  aspect-ratio: 1; border-radius: var(--radius-sm); border: 2px dashed var(--border-strong); background: var(--bg-elev);
  display: grid; place-content: center; justify-items: center; gap: 6px; cursor: pointer; color: var(--muted); font-size: .85rem; font-weight: 600; text-align: center; padding: 8px;
  transition: border-color .15s, color .15s, background .15s;
}
.up-add:hover, .up-add.drag { border-color: var(--brand); color: var(--brand-ink); background: var(--brand-soft); }
.up-add .ico { width: 26px; height: 26px; }

.plan-pick { display: grid; gap: 14px; }
@media (min-width: 640px) { .plan-pick { grid-template-columns: 1fr 1fr; } }
.plan-opt { position: relative; cursor: pointer; }
.plan-opt input { position: absolute; opacity: 0; }
.plan-opt .box { height: 100%; padding: 20px; border-radius: var(--radius); border: 2px solid var(--border); background: var(--bg-elev); transition: border-color .15s, box-shadow .15s; display: grid; gap: 6px; }
.plan-opt input:checked + .box { border-color: var(--brand); box-shadow: 0 0 0 4px color-mix(in srgb, var(--brand) 14%, transparent); }
.plan-opt .box b { font-family: var(--font-heading); font-size: 1.05rem; }
.plan-opt .price { font: 800 1.6rem var(--font-heading); }
.plan-opt small { color: var(--muted); }

.review-list { display: grid; gap: 0; border: 1px solid var(--border); border-radius: var(--radius-sm); overflow: hidden; }
.review-list div { display: flex; justify-content: space-between; gap: 16px; padding: 12px 16px; font-size: .93rem; }
.review-list div:nth-child(odd) { background: var(--surface-2); }
.review-list dt { color: var(--muted); }
.review-list dd { margin: 0; font-weight: 600; text-align: right; }

/* ---------- página do anúncio ---------- */
.ad-page { display: grid; gap: 28px; padding-top: 24px; }
@media (min-width: 1000px) { .ad-page { grid-template-columns: minmax(0, 1fr) 380px; align-items: start; } }
.crumbs { display: flex; gap: 8px; align-items: center; font-size: .85rem; color: var(--muted); padding-top: 20px; flex-wrap: wrap; }
.crumbs a:hover { color: var(--brand-ink); }
.crumbs .ico { width: 12px; height: 12px; }
.gallery { display: grid; gap: 10px; }
.gallery-main { position: relative; border-radius: 22px; overflow: hidden; background: var(--surface-2); aspect-ratio: 1; border: 1px solid var(--border); }
@media (min-width: 720px) { .gallery-main { aspect-ratio: 4/3; } }
.gallery-main > .ico { width: 72px; height: 72px; opacity: .45; }
.gallery-main img { width: 100%; height: 100%; object-fit: contain; cursor: zoom-in; }
.gallery-nav { position: absolute; top: 50%; translate: 0 -50%; width: 44px; height: 44px; border-radius: 50%; border: 0; background: rgb(255 255 255 / .92); color: #111; display: grid; place-items: center; cursor: pointer; box-shadow: var(--shadow); }
.gallery-nav.prev { left: 12px; } .gallery-nav.prev .ico { rotate: 180deg; }
.gallery-nav.next { right: 12px; }
.gallery-thumbs { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: thin; }
.gallery-thumbs button { width: 74px; height: 74px; flex: none; border-radius: 12px; overflow: hidden; border: 2px solid transparent; padding: 0; cursor: pointer; background: var(--surface-2); opacity: .7; transition: opacity .15s, border-color .15s; }
.gallery-thumbs button[aria-current="true"] { border-color: var(--brand); opacity: 1; }
.gallery-thumbs img { width: 100%; height: 100%; object-fit: cover; }
.video-facade { position: relative; aspect-ratio: 16/9; border-radius: 18px; overflow: hidden; background: #000; cursor: pointer; border: 0; padding: 0; width: 100%; display: block; }
.video-facade img { width: 100%; height: 100%; object-fit: cover; opacity: .85; transition: opacity .2s; }
.video-facade:hover img { opacity: 1; }
.video-facade .play { position: absolute; inset: 0; margin: auto; width: 74px; height: 52px; border-radius: 16px; background: #ff0033; display: grid; place-items: center; color: #fff; box-shadow: 0 10px 30px rgb(0 0 0 / .4); }
.video-facade .play .ico { width: 26px; height: 26px; fill: #fff; }
.video-frame { aspect-ratio: 16/9; width: 100%; border: 0; border-radius: 18px; }
.buy-box { position: sticky; top: calc(var(--header-h) + 20px); display: grid; gap: 16px; }
.buy-box .price { font: 800 2.3rem/1 var(--font-heading); letter-spacing: -.03em; }
.buy-box h1 { font-size: clamp(1.4rem, 3vw, 1.75rem); margin: 0; }
.specs { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.spec { padding: 12px 14px; border-radius: var(--radius-sm); background: var(--surface-2); }
.spec small { display: block; color: var(--muted); font-size: .76rem; font-weight: 600; text-transform: uppercase; letter-spacing: .06em; }
.spec b { font-size: .98rem; }
.trust { display: grid; gap: 10px; padding: 16px; border-radius: var(--radius-sm); background: var(--ok-soft); color: var(--text-2); font-size: .88rem; }
.trust div { display: flex; gap: 10px; align-items: flex-start; }
.trust .ico { color: var(--ok); margin-top: 2px; }
.extras { display: flex; flex-wrap: wrap; gap: 8px; }
.extras span { display: inline-flex; align-items: center; gap: 6px; padding: 7px 12px; border-radius: 999px; background: var(--surface-2); font-size: .85rem; font-weight: 600; }
.extras .ico { color: var(--ok); width: 14px; height: 14px; }
.desc { white-space: pre-line; color: var(--text-2); }
.seller { display: flex; align-items: center; gap: 12px; }
.avatar { width: 46px; height: 46px; border-radius: 50%; background: var(--grad); color: #fff; display: grid; place-items: center; font: 700 1.1rem var(--font-heading); flex: none; }
.mobile-buy { position: fixed; left: 0; right: 0; bottom: 0; z-index: 45; padding: 12px 16px calc(12px + env(safe-area-inset-bottom)); background: color-mix(in srgb, var(--bg-elev) 92%, transparent); backdrop-filter: blur(12px); border-top: 1px solid var(--border); display: flex; gap: 12px; align-items: center; }
.mobile-buy .price { font: 800 1.3rem var(--font-heading); flex: 1; }
@media (min-width: 1000px) { .mobile-buy { display: none; } }
body.has-mobile-buy .chat-bubble { bottom: 92px; }
@media (min-width: 1000px) { body.has-mobile-buy .chat-bubble { bottom: 20px; } }
body.has-mobile-buy .site-footer { padding-bottom: 110px; }

/* lightbox */
.lightbox { position: fixed; inset: 0; z-index: 120; background: rgb(5 5 10 / .94); display: none; align-items: center; justify-content: center; }
.lightbox.open { display: flex; }
.lightbox img { max-width: 94vw; max-height: 88vh; object-fit: contain; border-radius: 8px; }
.lightbox .icon-btn { position: absolute; top: 16px; right: 16px; background: rgb(255 255 255 / .12); color: #fff; border-color: transparent; }

/* ---------- minha conta ---------- */
.my-list { display: grid; gap: 14px; }
.my-ad { display: grid; grid-template-columns: 96px 1fr; gap: 16px; padding: 16px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--border); }
@media (min-width: 720px) { .my-ad { grid-template-columns: 120px 1fr auto; align-items: center; } }
.my-ad .thumb { width: 96px; height: 96px; border-radius: 14px; overflow: hidden; background: var(--surface-2); display: grid; place-items: center; color: var(--muted); }
@media (min-width: 720px) { .my-ad .thumb { width: 120px; height: 120px; } }
.my-ad .thumb img { width: 100%; height: 100%; object-fit: cover; }
.my-ad h3 { margin: 4px 0; font-size: 1.05rem; }
.my-ad .actions { display: flex; flex-wrap: wrap; gap: 8px; grid-column: 1 / -1; }
@media (min-width: 720px) { .my-ad .actions { grid-column: auto; justify-content: flex-end; max-width: 300px; } }
.queue-meter { margin-top: 8px; height: 8px; border-radius: 99px; background: var(--surface-2); overflow: hidden; max-width: 280px; }
.queue-meter i { display: block; height: 100%; background: var(--grad); }
.notice { display: flex; gap: 12px; padding: 14px 16px; border-radius: var(--radius-sm); background: var(--brand-soft); color: var(--text-2); font-size: .92rem; align-items: flex-start; }
.notice .ico { color: var(--brand-ink); margin-top: 2px; }
.notice.warn { background: var(--warn-soft); } .notice.warn .ico { color: var(--warn); }

/* ---------- modal ---------- */
.modal-backdrop { position: fixed; inset: 0; z-index: 100; background: rgb(8 6 20 / .55); backdrop-filter: blur(4px); display: grid; place-items: end center; padding: 0; animation: fadeIn .2s ease-out; }
@media (min-width: 640px) { .modal-backdrop { place-items: center; padding: 20px; } }
@keyframes fadeIn { from { opacity: 0; } }
.modal { width: 100%; max-width: 480px; max-height: 92vh; overflow-y: auto; background: var(--surface); border-radius: 26px 26px 0 0; padding: 26px; box-shadow: var(--shadow-lg); animation: up .25s ease-out; }
@media (min-width: 640px) { .modal { border-radius: 26px; } }
@keyframes up { from { transform: translateY(24px); opacity: 0; } }
.modal-head { display: flex; justify-content: space-between; align-items: start; gap: 16px; margin-bottom: 14px; }
.modal-head h3 { margin: 0; font-size: 1.3rem; }
.qr { display: grid; place-items: center; padding: 16px; background: #fff; border-radius: 18px; border: 1px solid var(--border); margin: 8px auto 14px; width: fit-content; }
.qr img { width: 220px; height: 220px; image-rendering: pixelated; }
.copy-field { display: flex; gap: 8px; }
.copy-field input { flex: 1; min-width: 0; height: 46px; border-radius: var(--radius-sm); border: 1px solid var(--border); background: var(--surface-2); padding: 0 14px; font-family: ui-monospace, monospace; font-size: .82rem; }
.pay-status { display: flex; align-items: center; justify-content: center; gap: 10px; margin-top: 16px; font-weight: 600; color: var(--muted); font-size: .92rem; }
.pulse { width: 10px; height: 10px; border-radius: 50%; background: var(--warn); animation: pulse 1.4s ease-in-out infinite; }
@keyframes pulse { 50% { opacity: .3; transform: scale(.7); } }
.success-burst { width: 76px; height: 76px; border-radius: 50%; background: var(--ok-soft); color: var(--ok); display: grid; place-items: center; margin: 4px auto 16px; animation: pop .4s cubic-bezier(.2, 1.6, .4, 1); }
.success-burst .ico { width: 38px; height: 38px; }
@keyframes pop { from { transform: scale(.4); opacity: 0; } }

/* ---------- toasts ---------- */
.toasts { position: fixed; z-index: 150; left: 50%; translate: -50% 0; bottom: 24px; display: grid; gap: 8px; width: min(420px, calc(100vw - 32px)); pointer-events: none; }
.toast { padding: 14px 18px; border-radius: 14px; background: var(--text); color: var(--bg); font-weight: 500; font-size: .92rem; box-shadow: var(--shadow-lg); animation: up .25s ease-out; pointer-events: auto; display: flex; gap: 10px; align-items: center; }
.toast.error { background: var(--danger); color: #fff; }
.toast.ok { background: #15803d; color: #fff; }

/* ---------- chat ---------- */
.chat-bubble { position: fixed; right: 20px; bottom: 20px; z-index: 60; width: 56px; height: 56px; border-radius: 50%; border: 0; background: var(--grad); color: #fff; display: grid; place-items: center; cursor: pointer; box-shadow: 0 12px 30px -8px rgb(124 58 237 / .7); transition: transform .2s; }
.chat-bubble:hover { transform: scale(1.06); }
.chat-bubble .ico { width: 24px; height: 24px; }
.chat-panel { position: fixed; right: 16px; bottom: 88px; z-index: 61; width: min(370px, calc(100vw - 32px)); height: min(520px, calc(100vh - 120px)); background: var(--surface); border: 1px solid var(--border); border-radius: 22px; box-shadow: var(--shadow-lg); display: none; flex-direction: column; overflow: hidden; }
.chat-panel.open { display: flex; animation: up .22s ease-out; }
.chat-panel header { display: flex; align-items: center; gap: 12px; padding: 14px 14px 14px 18px; border-bottom: 1px solid var(--border); }
.chat-panel header div { flex: 1; } .chat-panel header small { display: block; color: var(--muted); font-size: .8rem; }
.chat-panel .dot { width: 10px; height: 10px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 0 4px var(--ok-soft); }
.chat-messages { flex: 1; overflow-y: auto; padding: 16px; display: flex; flex-direction: column; gap: 10px; }
.chat-msg { padding: 10px 14px; border-radius: 16px; max-width: 86%; font-size: .92rem; line-height: 1.45; white-space: pre-line; }
.chat-msg.user { align-self: flex-end; background: var(--grad); color: #fff; border-bottom-right-radius: 4px; }
.chat-msg.assistant { align-self: flex-start; background: var(--surface-2); border-bottom-left-radius: 4px; }
.chat-msg.typing { color: var(--muted); }
.chat-panel form { display: flex; gap: 8px; padding: 12px; border-top: 1px solid var(--border); }
.chat-panel form input { flex: 1; min-width: 0; height: 44px; border-radius: 999px; border: 1px solid var(--border); background: var(--bg-elev); padding: 0 16px; outline: none; }
.chat-panel form input:focus { border-color: var(--brand); }
.chat-panel form button { width: 44px; height: 44px; border-radius: 50%; border: 0; background: var(--grad); color: #fff; display: grid; place-items: center; cursor: pointer; }

/* ---------- cookies ---------- */
.cookie-banner { position: fixed; z-index: 90; left: 16px; right: 16px; bottom: 16px; max-width: 560px; padding: 20px; border-radius: 22px; background: var(--surface); border: 1px solid var(--border); box-shadow: var(--shadow-lg); display: none; }
@media (min-width: 640px) { .cookie-banner { left: 24px; right: auto; bottom: 24px; } }
.cookie-banner.open { display: block; animation: up .3s ease-out; }
.cookie-banner p { font-size: .9rem; margin: 6px 0 0; }
.cookie-banner a { color: var(--brand-ink); text-decoration: underline; }
.cookie-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.cookie-actions .btn { flex: 1; }
.cookie-panel { display: none; margin-top: 12px; padding-top: 6px; border-top: 1px solid var(--border); }
.cookie-panel.open { display: block; }

/* ---------- conteúdo (termos etc.) ---------- */
.prose { max-width: 760px; margin: 0 auto; padding: 40px 20px 0; }
.prose h1 { font-size: clamp(1.8rem, 4vw, 2.6rem); }
.prose h2 { font-size: 1.3rem; margin-top: 2em; }
.prose p, .prose li { color: var(--text-2); }
.prose a { color: var(--brand-ink); text-decoration: underline; }

/* ---------- admin ---------- */
.admin { display: grid; gap: 24px; padding: 28px 0 0; }
@media (min-width: 960px) { .admin { grid-template-columns: 220px 1fr; align-items: start; } }
.admin-nav { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; }
@media (min-width: 960px) { .admin-nav { flex-direction: column; position: sticky; top: calc(var(--header-h) + 20px); } }
.admin-nav button { display: flex; align-items: center; gap: 10px; justify-content: flex-start; height: 44px; padding: 0 14px; border-radius: 12px; border: 0; background: transparent; font-weight: 600; color: var(--text-2); cursor: pointer; white-space: nowrap; }
.admin-nav button:hover { background: var(--surface-2); }
.admin-nav button[aria-selected="true"] { background: var(--surface); color: var(--brand-ink); box-shadow: var(--shadow-sm); border: 1px solid var(--border); }
.admin-nav .count { margin-left: auto; min-width: 22px; height: 22px; padding: 0 6px; border-radius: 99px; background: var(--danger); color: #fff; font-size: .72rem; display: grid; place-items: center; }
.stat-grid { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); }
.stat { padding: 18px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--border); }
.stat small { color: var(--muted); font-weight: 600; font-size: .8rem; }
.stat b { display: block; font: 800 1.7rem/1.2 var(--font-heading); margin-top: 4px; letter-spacing: -.02em; }
.stat .bar { margin-top: 10px; height: 6px; border-radius: 99px; background: var(--surface-2); overflow: hidden; }
.stat .bar i { display: block; height: 100%; background: var(--grad); }
.table-wrap { overflow-x: auto; border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); }
table.t { width: 100%; border-collapse: collapse; font-size: .88rem; }
.t th { text-align: left; padding: 12px 14px; font-size: .76rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); border-bottom: 1px solid var(--border); white-space: nowrap; }
.t td { padding: 12px 14px; border-bottom: 1px solid var(--border); vertical-align: top; }
.t tr:last-child td { border-bottom: 0; }
.t .thumb { width: 52px; height: 52px; border-radius: 10px; object-fit: cover; background: var(--surface-2); }
.t .row-actions { display: flex; gap: 6px; flex-wrap: wrap; }
.toolbar { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; margin-bottom: 14px; }
.toolbar .input { height: 42px; max-width: 280px; }
.seg { display: inline-flex; background: var(--surface-2); padding: 4px; border-radius: 999px; gap: 2px; overflow-x: auto; max-width: 100%; }
.seg button { height: 34px; padding: 0 14px; border: 0; border-radius: 999px; background: transparent; font-weight: 600; font-size: .85rem; cursor: pointer; color: var(--muted); white-space: nowrap; }
.seg button[aria-pressed="true"] { background: var(--surface); color: var(--text); box-shadow: var(--shadow-sm); }
.settings-group { margin-bottom: 20px; }
.settings-group h3 { margin-bottom: 6px; }
.settings-group .switch-row, .settings-group .field { padding: 12px 0; border-bottom: 1px solid var(--border); }
.settings-group .field:last-child, .settings-group .switch-row:last-child { border-bottom: 0; }
.save-bar { position: sticky; bottom: 16px; display: flex; justify-content: flex-end; gap: 10px; padding: 12px; border-radius: 999px; background: color-mix(in srgb, var(--surface) 90%, transparent); backdrop-filter: blur(10px); border: 1px solid var(--border); box-shadow: var(--shadow); margin-top: 10px; }
