:root {
  --ink: #1F1A17;
  --ink-2: #4A413B;
  --muted: #7A6F67;
  --line: #E9E2DB;
  --bg: #F8F5F1;
  --card: #FFFFFF;
  --brand: #D85A30;
  --brand-dark: #B9471F;
  --brand-soft: #FBEDE6;
  --peach: #F0997B;
  --ok: #1D9E75;
  --ok-soft: #E3F4EE;
  --warn: #B7791F;
  --warn-soft: #FBF1DE;
  --danger: #C0392B;
  --wa: #1FA855;
  --radius: 14px;
  --shadow: 0 1px 2px rgba(31,26,23,.05), 0 6px 20px rgba(31,26,23,.06);
  --font: system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; color-scheme: light; }
body::before { content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); z-index: 30; background: var(--ink); }
body { margin: 0; font-family: var(--font); color: var(--ink); background: var(--bg); line-height: 1.45; font-size: 16px; }
img { max-width: 100%; display: block; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
.wrap { width: 100%; max-width: 1120px; margin: 0 auto; padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); }
main.wrap { min-height: 70vh; padding-block: 20px 48px; outline: none; }

.proto-bar { background: var(--ink); color: #CDBFB4; font-size: 12px; text-align: center; padding: 5px 12px; letter-spacing: .02em; }

/* topo */
.topbar { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 20; background: rgba(248,245,241,.92); backdrop-filter: saturate(1.4) blur(10px); border-bottom: 1px solid var(--line); }
.topbar-in { display: flex; align-items: center; justify-content: space-between; height: 60px; gap: 12px; }
.logo { text-decoration: none; font-weight: 900; letter-spacing: .14em; font-size: 17px; white-space: nowrap; }
.logo span { color: var(--ink); }
.logo b { color: var(--brand); font-weight: 900; }
.logo-sm { font-size: 14px; }
.top-actions { display: flex; align-items: center; gap: 8px; }
.user-chip { position: relative; }
.user-chip > button { display: flex; align-items: center; gap: 8px; border: 1px solid var(--line); background: var(--card); border-radius: 999px; padding: 4px 10px 4px 4px; cursor: pointer; font-size: 14px; }
.avatar { width: 30px; height: 30px; border-radius: 50%; background: var(--ink); color: var(--peach); display: grid; place-items: center; font-weight: 800; font-size: 13px; flex: none; }
.avatar.lg { width: 44px; height: 44px; font-size: 17px; }
@media (max-width: 639px) {
  .topbar .logo { font-size: 14px; letter-spacing: .08em; }
  .top-actions { gap: 6px; }
  .top-actions .btn-sm { padding: 8px 11px; }
  .top-actions .btn-primary .ico { display: none; }
}
.chip-name { display: none; }
.user-chip > button { padding: 3px; }
.who-name { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; }
.user-menu { position: absolute; right: 0; top: calc(100% + 6px); background: var(--card); border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--shadow); min-width: 210px; padding: 6px; display: none; }
.user-menu.open { display: block; }
.user-menu .um-head { padding: 8px 10px 10px; border-bottom: 1px solid var(--line); margin-bottom: 4px; font-size: 13px; color: var(--muted); }
.user-menu .um-head strong { display: block; color: var(--ink); font-size: 14px; }
.user-menu a, .user-menu button { display: block; width: 100%; text-align: left; padding: 9px 10px; border-radius: 8px; border: 0; background: none; text-decoration: none; font-size: 14px; cursor: pointer; }
.user-menu a:hover, .user-menu button:hover { background: var(--bg); }

/* botões */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 1px solid transparent; border-radius: 12px; padding: 11px 18px; font-weight: 700; font-size: 15px; text-decoration: none; cursor: pointer; transition: background .15s, transform .05s, border-color .15s; white-space: nowrap; }
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--brand); color: #fff; }
.btn-primary:hover { background: var(--brand-dark); }
.btn-dark { background: var(--ink); color: #fff; }
.btn-dark:hover { background: #352D28; }
.btn-ghost { background: var(--card); border-color: var(--line); color: var(--ink); }
.btn-ghost:hover { border-color: #D3C8BE; }
.btn-wa { background: var(--wa); color: #fff; }
.btn-wa:hover { background: #18914A; }
.btn-sm { padding: 8px 12px; font-size: 14px; border-radius: 10px; }
.btn-block { width: 100%; }
.btn[disabled] { opacity: .55; cursor: not-allowed; }
.btn-danger-ghost { background: var(--card); border-color: #EBC8C3; color: var(--danger); }
.btn-danger { background: var(--danger); color: #fff; }
.link-btn { background: none; border: 0; padding: 0; color: var(--brand); font-weight: 600; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
.link-btn[disabled] { color: var(--muted); cursor: default; text-decoration: none; }
.text-link { color: var(--brand); font-weight: 600; text-underline-offset: 3px; }
.ico { width: 18px; height: 18px; flex: none; }

/* home */
.hero { background: var(--ink); color: #fff; border-radius: 20px; padding: 26px 20px 22px; margin-bottom: 18px; position: relative; overflow: hidden; }
.hero::after { content: ""; position: absolute; right: -80px; top: -80px; width: 260px; height: 260px; border-radius: 50%; background: radial-gradient(circle, rgba(216,90,48,.35), transparent 70%); }
.hero h1 { margin: 0 0 6px; font-size: 26px; line-height: 1.15; letter-spacing: -.01em; position: relative; }
.hero h1 em { font-style: normal; color: var(--peach); }
.hero p { margin: 0 0 16px; color: #CDBFB4; font-size: 15px; position: relative; max-width: 560px; }
.search { display: flex; gap: 8px; position: relative; z-index: 1; }
.search-field { flex: 1; position: relative; }
.search-field svg { position: absolute; left: 13px; top: 50%; transform: translateY(-50%); color: var(--muted); }
.search input { width: 100%; height: 48px; border-radius: 12px; border: 0; padding: 0 14px 0 42px; font-size: 16px; background: #fff; color: var(--ink); }
.search .btn { height: 48px; }
.hero-cta { display: flex; gap: 8px; margin-top: 12px; position: relative; z-index: 1; flex-wrap: wrap; }
.hero-cta .btn-ghost { background: transparent; color: #fff; border-color: rgba(255,255,255,.25); }

.filters { display: flex; flex-direction: column; gap: 10px; margin-bottom: 16px; }
.chips { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 4px; scrollbar-width: none; }
.chips::-webkit-scrollbar { display: none; }
.chip { flex: none; display: inline-flex; align-items: center; gap: 7px; border: 1px solid var(--line); background: var(--card); padding: 8px 14px; border-radius: 999px; font-size: 14px; font-weight: 600; cursor: pointer; }
.chip .dot { width: 9px; height: 9px; border-radius: 50%; }
.chip.active { background: var(--ink); border-color: var(--ink); color: #fff; }
.filter-row { display: flex; gap: 8px; align-items: center; justify-content: space-between; }
.select { height: 40px; border: 1px solid var(--line); border-radius: 10px; background: var(--card); padding: 0 34px 0 12px; font-size: 14px; appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%237A6F67' stroke-width='1.6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 12px center; }
.result-count { color: var(--muted); font-size: 14px; }

.grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.ad-card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; text-decoration: none; display: flex; flex-direction: column; transition: box-shadow .15s, transform .15s; }
.ad-card:hover { box-shadow: var(--shadow); transform: translateY(-2px); }
.ad-thumb { position: relative; aspect-ratio: 4 / 3; background: #EEE7E0; }
.ad-thumb img { width: 100%; height: 100%; object-fit: cover; }
.badge-feat { position: absolute; left: 8px; top: 8px; background: var(--ink); color: var(--peach); font-size: 11px; font-weight: 800; letter-spacing: .06em; padding: 4px 8px; border-radius: 6px; }
.ad-body { padding: 10px 12px 12px; display: flex; flex-direction: column; gap: 4px; flex: 1; }
.cat-tag { display: inline-flex; align-self: flex-start; align-items: center; color: #fff; font-size: 11px; font-weight: 800; letter-spacing: .05em; text-transform: uppercase; padding: 3px 8px; border-radius: 6px; }
.ad-title { font-size: 14px; font-weight: 600; line-height: 1.3; margin: 2px 0 0; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: 2.6em; }
.ad-price { font-size: 18px; font-weight: 800; letter-spacing: -.01em; }
.ad-price small { font-size: 13px; font-weight: 600; color: var(--muted); }
.ad-meta { font-size: 12px; color: var(--muted); margin-top: auto; padding-top: 4px; }
.empty { text-align: center; padding: 48px 16px; color: var(--muted); background: var(--card); border: 1px dashed var(--line); border-radius: var(--radius); }
.empty strong { display: block; color: var(--ink); font-size: 17px; margin-bottom: 6px; }

/* páginas / formulários */
.page { max-width: 520px; margin: 0 auto; }
.page-wide { max-width: 980px; margin: 0 auto; }
.back { display: inline-flex; align-items: center; gap: 6px; color: var(--muted); text-decoration: none; font-size: 14px; font-weight: 600; margin-bottom: 12px; }
.back:hover { color: var(--ink); }
.panel { background: var(--card); border: 1px solid var(--line); border-radius: 18px; padding: 22px 18px; }
.panel + .panel { margin-top: 14px; }
.page h1 { font-size: 24px; line-height: 1.2; margin: 0 0 6px; letter-spacing: -.01em; }
.lead { color: var(--muted); margin: 0 0 18px; font-size: 15px; }
.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 14px; }
.field label, .label { font-size: 14px; font-weight: 700; }
.field .hint { font-size: 12.5px; color: var(--muted); font-weight: 400; }
.req { color: var(--brand); }
.input, .textarea { width: 100%; height: 46px; border: 1px solid #DDD3C9; border-radius: 11px; padding: 0 13px; font-size: 16px; background: #fff; transition: border-color .15s, box-shadow .15s; }
.textarea { height: auto; min-height: 96px; padding: 11px 13px; resize: vertical; line-height: 1.4; }
.input:focus, .textarea:focus, .select:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px rgba(216,90,48,.15); }
.input[readonly] { background: var(--bg); color: var(--ink-2); }
.field.invalid .input, .field.invalid .textarea, .field.invalid .select { border-color: var(--danger); }
.err { color: var(--danger); font-size: 12.5px; display: none; }
.field.invalid .err { display: block; }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.counter { font-size: 12px; color: var(--muted); text-align: right; margin-top: -2px; }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; padding: 12px; background: var(--bg); border-radius: 11px; border: 1px solid var(--line); cursor: pointer; margin-bottom: 16px; }
.check input { width: 18px; height: 18px; margin: 1px 0 0; accent-color: var(--brand); flex: none; }
.check.invalid { border-color: var(--danger); }
.divider { display: flex; align-items: center; gap: 12px; color: var(--muted); font-size: 13px; margin: 18px 0; }
.divider::before, .divider::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.btn-google { width: 100%; background: #fff; border: 1px solid #DADCE0; color: #3C4043; font-weight: 600; height: 48px; }
.btn-google:hover { background: #F8F9FA; }
.btn-google.connected { border-color: var(--ok); color: var(--ok); }
.note { display: flex; gap: 10px; padding: 12px 14px; border-radius: 12px; font-size: 13.5px; background: var(--brand-soft); color: #7A3418; margin-bottom: 16px; text-align: left; }
.note.info { background: #EEF4FB; color: #24527F; }
.note.ok { background: var(--ok-soft); color: #11684C; }
.note.warn { background: var(--warn-soft); color: #7A5110; }
.note svg { flex: none; margin-top: 1px; }
.note code { background: rgba(255,255,255,.6); padding: 1px 6px; border-radius: 5px; font-weight: 800; letter-spacing: .08em; }
.small { font-size: 13.5px; color: var(--muted); }
.center { text-align: center; }
.mt { margin-top: 16px; }
.stack { display: flex; flex-direction: column; gap: 10px; }

/* código 6 dígitos */
.otp { display: flex; gap: 8px; justify-content: space-between; margin: 8px 0 14px; }
.otp input { width: 100%; max-width: 54px; height: 58px; text-align: center; font-size: 24px; font-weight: 800; border: 1px solid #DDD3C9; border-radius: 12px; background: #fff; }
.otp input:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px rgba(216,90,48,.15); }
.otp.invalid input { border-color: var(--danger); }
.resend-row { display: flex; justify-content: space-between; align-items: center; font-size: 14px; margin-bottom: 16px; }

/* estados */
.state-ico { width: 64px; height: 64px; border-radius: 50%; display: grid; place-items: center; margin: 0 auto 14px; }
.state-ico.wait { background: var(--warn-soft); color: var(--warn); }
.state-ico.ok { background: var(--ok-soft); color: var(--ok); }
.state-ico.user { background: var(--brand-soft); color: var(--brand); }
.steps { list-style: none; padding: 0; margin: 18px 0; text-align: left; }
.steps li { display: flex; gap: 12px; padding: 10px 0; position: relative; }
.steps li:not(:last-child)::after { content: ""; position: absolute; left: 13px; top: 38px; bottom: -6px; width: 2px; background: var(--line); }
.step-dot { width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; flex: none; font-size: 13px; font-weight: 800; background: var(--bg); border: 2px solid var(--line); color: var(--muted); }
.steps .done .step-dot { background: var(--ok); border-color: var(--ok); color: #fff; }
.steps .now .step-dot { background: var(--warn-soft); border-color: var(--warn); color: var(--warn); }
.steps strong { display: block; font-size: 15px; }
.steps span { font-size: 13px; color: var(--muted); }
.masked { font-weight: 800; font-size: 17px; background: var(--bg); border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; text-align: center; margin: 4px 0 16px; letter-spacing: .02em; }

.verified { display: inline-flex; align-items: center; gap: 5px; background: var(--ok-soft); color: #11684C; font-size: 12px; font-weight: 800; padding: 4px 9px 4px 7px; border-radius: 999px; letter-spacing: .02em; }
.pending-pill { display: inline-flex; align-items: center; gap: 5px; background: var(--warn-soft); color: #7A5110; font-size: 12px; font-weight: 800; padding: 4px 9px; border-radius: 999px; }
.who { display: flex; align-items: center; gap: 12px; padding: 12px; background: var(--bg); border-radius: 12px; margin-bottom: 18px; }
.who .who-txt { flex: 1; min-width: 0; font-size: 14px; }
.who .who-txt strong { display: block; font-size: 15px; }

/* upload */
.photos { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.photo-slot { position: relative; aspect-ratio: 1; border: 1.5px dashed #D3C8BE; border-radius: 12px; background: var(--bg); display: grid; place-items: center; cursor: pointer; overflow: hidden; color: var(--muted); font-size: 13px; text-align: center; }
.photo-slot:hover { border-color: var(--brand); color: var(--brand); }
.photo-slot input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.photo-slot img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.photo-slot .rm { position: absolute; right: 6px; top: 6px; width: 28px; height: 28px; border-radius: 50%; border: 0; background: rgba(31,26,23,.8); color: #fff; cursor: pointer; z-index: 2; font-size: 16px; line-height: 1; }
.photo-slot .slot-label { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 8px; }
.price-row { display: grid; grid-template-columns: 1fr 130px; gap: 10px; }
.input-prefix { position: relative; }
.input-prefix span { position: absolute; left: 13px; top: 50%; transform: translateY(-50%); font-weight: 700; color: var(--muted); }
.input-prefix .input { padding-left: 42px; }
.field .select { height: 46px; border-color: #DDD3C9; border-radius: 11px; font-size: 16px; }

/* anúncio */
.ad-page { display: grid; gap: 16px; grid-template-areas: "gal" "side" "desc"; }
.ad-gallery { grid-area: gal; }
.ad-aside { grid-area: side; }
.ad-desc { grid-area: desc; }
.gallery-main { aspect-ratio: 4 / 3; border-radius: 16px; overflow: hidden; background: #EEE7E0; }
.gallery-main img { width: 100%; height: 100%; object-fit: cover; }
.thumbs { display: flex; gap: 8px; margin-top: 8px; }
.thumbs button { width: 72px; height: 54px; border-radius: 10px; overflow: hidden; border: 2px solid transparent; padding: 0; cursor: pointer; background: none; }
.thumbs button.active { border-color: var(--brand); }
.thumbs img { width: 100%; height: 100%; object-fit: cover; }
.ad-info h1 { font-size: 22px; line-height: 1.25; margin: 10px 0 6px; }
.big-price { font-size: 32px; font-weight: 900; letter-spacing: -.02em; margin: 4px 0; }
.big-price small { font-size: 16px; color: var(--muted); font-weight: 600; }
.meta-line { color: var(--muted); font-size: 14px; display: flex; flex-wrap: wrap; gap: 4px 12px; }
.desc { white-space: pre-line; font-size: 15.5px; color: var(--ink-2); margin: 0; }
.details-list { display: flex; flex-wrap: wrap; gap: 6px; margin: 12px 0 0; padding: 0; list-style: none; }
.details-list li { background: var(--bg); border: 1px solid var(--line); border-radius: 8px; padding: 5px 10px; font-size: 13px; font-weight: 600; }
.seller { display: flex; align-items: center; gap: 12px; }
.seller-txt { flex: 1; min-width: 0; }
.seller-txt strong { display: block; }
.seller-txt span { font-size: 13px; color: var(--muted); }
.sticky-cta { position: sticky; bottom: 12px; z-index: 5; }
.safety { font-size: 12.5px; color: var(--muted); margin: 10px 0 0; }
.owner-box { border: 1px dashed var(--brand); background: var(--brand-soft); }

/* card gerado */
.card-stage { background: #2A231F; border-radius: 18px; padding: 16px; display: grid; place-items: center; }
.card-stage canvas { width: 100%; max-width: 420px; height: auto; border-radius: 10px; box-shadow: 0 18px 40px rgba(0,0,0,.35); display: block; }
.card-side { margin-top: 14px; }
@media (min-width: 900px) { .card-side { margin-top: 0; } }
.card-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 14px; }
.success-head { display: flex; gap: 12px; align-items: center; margin-bottom: 14px; }
.success-head .state-ico { margin: 0; width: 46px; height: 46px; flex: none; }
.rules { margin: 12px 0 0; padding: 0; list-style: none; font-size: 13.5px; color: var(--ink-2); }
.rules li { display: flex; gap: 8px; align-items: center; padding: 4px 0; }
.rules svg { color: var(--ok); flex: none; }

/* moderador */
.mod-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 10px; margin-bottom: 16px; }
.mod-head h1 { margin: 0; font-size: 24px; }
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-bottom: 16px; }
.stat { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 12px 14px; }
.stat b { display: block; font-size: 24px; letter-spacing: -.02em; }
.stat span { font-size: 12.5px; color: var(--muted); }
.tabs { display: flex; gap: 4px; background: #EFE9E3; padding: 4px; border-radius: 12px; margin-bottom: 14px; }
.tabs button { flex: 1; border: 0; background: none; padding: 9px 10px; border-radius: 9px; font-weight: 700; font-size: 14px; cursor: pointer; color: var(--ink-2); }
.tabs button.active { background: var(--card); color: var(--ink); box-shadow: 0 1px 3px rgba(0,0,0,.08); }
.tabs .count { display: inline-grid; place-items: center; min-width: 20px; height: 20px; padding: 0 6px; border-radius: 10px; background: var(--brand); color: #fff; font-size: 11.5px; margin-left: 4px; }
.mod-list { display: flex; flex-direction: column; gap: 10px; }
.mod-item { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 14px; display: flex; flex-direction: column; gap: 12px; }
.mod-top { display: flex; gap: 12px; align-items: center; }
.mod-top .grow { flex: 1; min-width: 0; }
.mod-top strong { display: block; font-size: 15px; }
.mod-top .sub { font-size: 13px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.kv { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; font-size: 13px; }
.kv div { background: var(--bg); border-radius: 9px; padding: 7px 10px; }
.kv span { display: block; color: var(--muted); font-size: 11.5px; text-transform: uppercase; letter-spacing: .05em; font-weight: 700; }
.kv b { font-size: 14px; }
.kv .lgnd b { font-size: 16px; letter-spacing: .06em; color: var(--brand-dark); }
.mod-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.mod-actions .btn { flex: 1; }
.mod-thumb { width: 64px; height: 48px; border-radius: 9px; overflow: hidden; flex: none; background: #EEE7E0; }
.mod-thumb img { width: 100%; height: 100%; object-fit: cover; }
.done-item { opacity: .7; }

/* rodapé */
.footer { border-top: 1px solid var(--line); background: var(--card); padding: 24px 0 30px; }
.footer p { color: var(--muted); font-size: 13.5px; margin: 6px 0 12px; }
.footer-links { display: flex; flex-wrap: wrap; gap: 8px 18px; font-size: 14px; }
.footer-links a { color: var(--ink-2); text-decoration: none; }
.footer-links a:hover { color: var(--brand); }
.footer-links .link-btn { font-weight: 500; font-size: 14px; color: var(--muted); }

/* toast */
.toast { position: fixed; left: 50%; bottom: calc(20px + env(safe-area-inset-bottom, 0px)); transform: translate(-50%, 20px); background: var(--ink); color: #fff; padding: 12px 18px; border-radius: 12px; font-size: 14px; box-shadow: 0 10px 30px rgba(0,0,0,.25); opacity: 0; pointer-events: none; transition: opacity .2s, transform .2s; z-index: 50; max-width: calc(100% - 32px); text-align: center; }
.toast.show { opacity: 1; transform: translate(-50%, 0); }

@media (min-width: 640px) {
  .chip-name { display: inline; }
  .user-chip > button { padding: 4px 10px 4px 4px; }
  .grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
  .hero { padding: 36px 32px 30px; }
  .hero h1 { font-size: 34px; }
  .filters { flex-direction: row; align-items: center; justify-content: space-between; }
  .panel { padding: 28px 28px; }
  .ad-title { font-size: 15px; }
  .mod-item { flex-direction: row; align-items: center; }
  .mod-item .kv { flex: 1.3; grid-template-columns: repeat(4, 1fr); }
  .mod-top { flex: 1; }
  .mod-actions { flex: none; }
  .mod-actions .btn { flex: none; }
}
@media (min-width: 900px) {
  .grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .ad-page { grid-template-columns: 1.25fr 1fr; grid-template-areas: "gal side" "desc side"; grid-template-rows: auto 1fr; align-items: start; gap: 20px 28px; }
  .ad-aside { position: sticky; top: 80px; }
  .sticky-cta { position: static; }
  .card-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; align-items: start; }
}

/* banners de patrocínio */
.banner { position: relative; overflow: hidden; display: grid; grid-template-columns: auto 1fr; align-items: center; gap: 12px 14px; width: 100%; border: 0; border-radius: 16px; padding: 30px 16px 16px; text-align: left; color: #fff; text-decoration: none; cursor: pointer; font: inherit; background: linear-gradient(120deg, var(--b1), var(--b2)); }
.banner::after { content: ""; position: absolute; right: -60px; top: -60px; width: 220px; height: 220px; border-radius: 50%; background: rgba(255,255,255,.08); pointer-events: none; }
.banner:focus-visible { outline: 3px solid var(--peach); outline-offset: 2px; }
.bn-label { position: absolute; top: 9px; right: 10px; font-size: 10.5px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; background: rgba(0,0,0,.28); padding: 3px 7px; border-radius: 6px; z-index: 1; }
.bn-ico { width: 52px; height: 52px; border-radius: 14px; background: rgba(255,255,255,.16); display: grid; place-items: center; align-self: start; }
.bn-ico svg { width: 30px; height: 30px; }
.bn-txt { min-width: 0; display: flex; flex-direction: column; gap: 3px; position: relative; z-index: 1; }
.bn-sponsor { font-size: 12.5px; font-weight: 700; opacity: .85; }
.bn-title { font-size: 17px; line-height: 1.25; }
.bn-text { font-size: 13.5px; opacity: .88; line-height: 1.35; }
.bn-cta { grid-column: 2; justify-self: start; background: #FFFCF8; color: var(--ink); font-weight: 800; font-size: 14px; padding: 9px 14px; border-radius: 10px; position: relative; z-index: 1; }
.banner:hover .bn-cta { background: #fff; }

/* topo: grande e rotativo */
.bn-carousel { margin: 0 0 18px; }
.banner-topo { min-height: 210px; padding: 38px 20px 22px; gap: 14px 18px; border-radius: 20px; }
.banner-topo .bn-ico { width: 64px; height: 64px; border-radius: 18px; }
.banner-topo .bn-ico svg { width: 38px; height: 38px; }
.banner-topo .bn-title { font-size: 23px; letter-spacing: -.01em; }
.banner-topo .bn-text { font-size: 15px; }
.banner-topo .bn-cta { font-size: 15px; padding: 11px 18px; }
.bn-slide { animation: bnIn .45s ease both; }
@keyframes bnIn { from { opacity: 0; transform: translateX(14px); } }
.bn-dots { display: flex; gap: 6px; justify-content: center; margin-top: 10px; }
.bn-dot { width: 8px; height: 8px; border-radius: 4px; border: 0; padding: 0; background: #D3C8BE; cursor: pointer; transition: width .2s, background .2s; }
.bn-dot.active { width: 22px; background: var(--ink); }
.bn-inline { grid-column: 1 / -1; }
.ad-aside .banner-lateral { margin-top: 14px; }
.cat-sponsor { display: flex; align-items: center; gap: 10px; width: 100%; background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px; font: inherit; font-size: 13.5px; text-align: left; cursor: pointer; margin-bottom: 12px; color: var(--ink); }
.cat-sponsor .dot { width: 10px; height: 10px; border-radius: 50%; flex: none; }
.cat-sponsor > span:nth-child(2) { flex: 1; min-width: 0; }
.cs-tag { font-size: 10.5px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
@media (prefers-reduced-motion: reduce) { .bn-slide { animation: none; } .bn-dot { transition: none; } }
@media (min-width: 640px) {
  .banner { grid-template-columns: auto 1fr auto; }
  .bn-cta { grid-column: 3; justify-self: end; align-self: center; }
  .banner-topo { min-height: 260px; padding: 44px 40px 36px; gap: 18px 28px; }
  .banner-topo .bn-ico { width: 88px; height: 88px; border-radius: 22px; }
  .banner-topo .bn-ico svg { width: 52px; height: 52px; }
  .banner-topo .bn-title { font-size: 34px; line-height: 1.12; }
  .banner-topo .bn-text { font-size: 17px; max-width: 560px; }
  .banner-topo .bn-cta { font-size: 16px; padding: 14px 22px; }
  .banner-lateral { grid-template-columns: auto 1fr; }
  .banner-lateral .bn-cta { grid-column: 2; justify-self: start; }
}
