:root {
  --brand: #ff6b00;
  --brand-dark: #e05500;
  --brand-soft: #fff1e6;
  --navy: #0e2340;
  --navy-2: #16345e;
  --ink: #17202e;
  --muted: #64748b;
  --line: #e6e9ef;
  --bg: #f5f6f9;
  --card: #ffffff;
  --ok: #16a34a;
  --ok-soft: #dcfce7;
  --warn: #b45309;
  --warn-soft: #fef3c7;
  --bad: #dc2626;
  --bad-soft: #fee2e2;
  --wa: #1fa855;
  --radius: 14px;
  --shadow: 0 1px 2px rgba(16, 24, 40, .06), 0 4px 14px rgba(16, 24, 40, .06);
  --shadow-lg: 0 10px 30px rgba(16, 24, 40, .12);
  color-scheme: light;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: 'Plus Jakarta Sans', system-ui, -apple-system, 'Segoe UI', sans-serif; color: var(--ink); background: var(--bg); line-height: 1.5; font-size: 16px; }
img { max-width: 100%; display: block; }
a { color: var(--brand-dark); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3, h4 { line-height: 1.2; margin: 0 0 .5em; letter-spacing: -.01em; }
code { background: #eef1f6; padding: 1px 6px; border-radius: 6px; font-size: .9em; }
[hidden] { display: none !important; }

.container { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 16px; }
.narrow { max-width: 820px; }
.muted { color: var(--muted); }
.tiny { font-size: .82rem; }
.center { text-align: center; margin: 24px 0; }
.page-title { font-size: 1.7rem; margin: 24px 0 16px; }
.section { margin: 36px auto; }
.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.section-head h2 { font-size: 1.35rem; margin: 0; }
.panel { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; box-shadow: var(--shadow); margin-bottom: 16px; }

/* Botões */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 1px solid transparent; border-radius: 10px; padding: 11px 18px; font: inherit; font-weight: 700; font-size: .95rem; cursor: pointer; text-decoration: none !important; transition: .15s; white-space: nowrap; }
.btn:disabled { opacity: .6; cursor: wait; }
.btn-primary { background: var(--brand); color: #fff; box-shadow: 0 4px 12px rgba(255, 107, 0, .3); }
.btn-primary:hover { background: var(--brand-dark); }
.btn-ghost { background: #fff; border-color: var(--line); color: var(--ink); }
.btn-ghost:hover { border-color: #cbd2dc; background: #fafbfc; }
.btn-wa { background: var(--wa); color: #fff; font-size: 1.05rem; padding: 14px 18px; }
.btn-wa:hover { background: #178c46; }
.btn-ok { background: var(--ok); color: #fff; }
.btn-ok:hover { background: #128a3e; }
.btn-danger { background: var(--bad); color: #fff; }
.btn-danger-ghost { background: #fff; border-color: #f3c4c4; color: var(--bad); }
.btn-sm { padding: 7px 12px; font-size: .85rem; border-radius: 8px; }
.btn-block { width: 100%; margin-top: 8px; }

/* Alertas e selos */
.alert { padding: 14px 16px; border-radius: 12px; margin: 16px 0; border: 1px solid; }
.alert-success { background: var(--ok-soft); border-color: #bbf7d0; color: #14532d; }
.alert-error { background: var(--bad-soft); border-color: #fecaca; color: #7f1d1d; }
.alert-info { background: #e8f1ff; border-color: #c7dcff; color: #1e3a6b; }
.alert-warn { background: var(--warn-soft); border-color: #fde68a; color: #78350f; }
.badge { display: inline-block; font-size: .75rem; font-weight: 700; padding: 3px 9px; border-radius: 999px; background: #eef1f6; color: var(--muted); }
.badge-ok { background: var(--ok-soft); color: #15803d; }
.badge-warn { background: var(--warn-soft); color: var(--warn); }
.badge-bad { background: var(--bad-soft); color: var(--bad); }
.badge-featured { background: #fff3c4; color: #92400e; }
.badges { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 4px; }
.pill { margin-left: auto; background: var(--brand); color: #fff; font-size: .72rem; padding: 1px 8px; border-radius: 999px; }

/* Cabeçalho */
.site-header { background: #fff; border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 20; }
.header-row { display: flex; align-items: center; gap: 20px; height: 72px; }
.logo { display: flex; align-items: center; gap: 10px; color: var(--navy); text-decoration: none !important; flex-shrink: 0; }
.logo-mark { width: 40px; height: 40px; border-radius: 12px; background: linear-gradient(135deg, var(--brand), #ff9a3c); color: #fff; display: grid; place-items: center; box-shadow: 0 4px 10px rgba(255, 107, 0, .35); }
.logo-text { display: flex; flex-direction: column; line-height: 1; }
.logo-text strong { font-size: 1.12rem; font-weight: 800; }
.logo-text span { font-size: .78rem; font-weight: 700; color: var(--brand); letter-spacing: .14em; text-transform: uppercase; margin-top: 3px; }
.logo-light { color: #fff; }
.search { flex: 1; display: flex; max-width: 560px; }
.search input { flex: 1; border: 2px solid var(--line); border-right: 0; border-radius: 12px 0 0 12px; padding: 0 16px; height: 46px; font: inherit; outline: none; min-width: 0; }
.search input:focus { border-color: var(--brand); }
.search button { border: 0; background: var(--navy); color: #fff; width: 54px; border-radius: 0 12px 12px 0; cursor: pointer; display: grid; place-items: center; }
.header-actions { display: flex; align-items: center; gap: 14px; margin-left: auto; }
.link-btn { color: var(--ink); font-weight: 600; font-size: .95rem; }
.avatar { width: 38px; height: 38px; border-radius: 50%; background: var(--navy); color: #fff; display: grid; place-items: center; font-weight: 800; text-decoration: none !important; flex-shrink: 0; }
.avatar.big { width: 52px; height: 52px; font-size: 1.3rem; }
.cat-strip { border-top: 1px solid var(--line); background: #fff; }
.cat-strip-inner { display: flex; gap: 4px; overflow-x: auto; scrollbar-width: none; padding-top: 6px; padding-bottom: 6px; }
.cat-strip-inner::-webkit-scrollbar { display: none; }
.cat-strip a { display: flex; align-items: center; gap: 6px; padding: 7px 12px; border-radius: 999px; color: var(--ink); font-size: .87rem; font-weight: 600; white-space: nowrap; text-decoration: none; }
.cat-strip a:hover, .cat-strip a.on { background: var(--brand-soft); color: var(--brand-dark); }

/* Hero */
.hero { background: radial-gradient(1200px 400px at 85% -10%, rgba(255, 140, 50, .35), transparent 60%), linear-gradient(135deg, var(--navy), var(--navy-2)); color: #fff; padding: 56px 0 64px; }
.hero-inner { display: grid; grid-template-columns: 1.5fr 1fr; gap: 40px; align-items: center; }
.eyebrow { display: inline-block; font-weight: 700; font-size: .85rem; background: rgba(255, 255, 255, .12); padding: 6px 12px; border-radius: 999px; margin-bottom: 14px; }
.promo .eyebrow { background: var(--brand-soft); color: var(--brand-dark); }
.hero h1 { font-size: clamp(2rem, 4.2vw, 3.1rem); font-weight: 800; }
.hl { color: #ffb070; }
.hero p { font-size: 1.12rem; color: #d5deeb; max-width: 560px; }
.hero-search { display: flex; background: #fff; padding: 6px; border-radius: 16px; gap: 6px; margin-top: 22px; box-shadow: var(--shadow-lg); }
.hero-search input, .hero-search select { border: 0; font: inherit; padding: 12px; outline: none; min-width: 0; background: transparent; color: var(--ink); }
.hero-search input { flex: 1.4; }
.hero-search select { flex: 1; border-left: 1px solid var(--line); }
.hero-stats { display: flex; gap: 24px; margin-top: 22px; flex-wrap: wrap; color: #c3cfe0; font-size: .92rem; }
.hero-stats strong { color: #fff; font-size: 1.1rem; margin-right: 4px; }
.hero-card { background: #fff; color: var(--ink); border-radius: 20px; padding: 28px; box-shadow: var(--shadow-lg); }
.hero-card ol { list-style: none; padding: 0; margin: 0 0 16px; }
.hero-card li { display: flex; align-items: center; gap: 12px; padding: 10px 0; font-weight: 600; }
.hero-card li span { width: 30px; height: 30px; border-radius: 50%; background: var(--brand-soft); color: var(--brand-dark); display: grid; place-items: center; font-weight: 800; flex-shrink: 0; }

/* Categorias */
.cat-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 12px; }
.cat-tile { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 12px; text-align: center; color: var(--ink); text-decoration: none !important; display: flex; flex-direction: column; align-items: center; gap: 6px; transition: .15s; }
.cat-tile:hover { border-color: var(--cat); transform: translateY(-2px); box-shadow: var(--shadow); }
.cat-icon { width: 54px; height: 54px; border-radius: 16px; background: color-mix(in srgb, var(--cat) 12%, white); display: grid; place-items: center; font-size: 1.7rem; }
.cat-tile strong { font-size: .9rem; line-height: 1.25; }
.cat-tile small { color: var(--muted); font-size: .78rem; }

/* Cards de anúncio */
.grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-break { grid-column: 1 / -1; }
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; color: var(--ink); text-decoration: none !important; display: flex; flex-direction: column; transition: .15s; }
.card:hover { box-shadow: var(--shadow-lg); transform: translateY(-2px); }
.card-img { aspect-ratio: 4 / 3; background: linear-gradient(135deg, color-mix(in srgb, var(--cat) 15%, white), color-mix(in srgb, var(--cat) 30%, white)); position: relative; display: grid; place-items: center; overflow: hidden; }
.card-img img { width: 100%; height: 100%; object-fit: cover; }
.card-ph { font-size: 3rem; opacity: .85; }
.card-ph.big { font-size: 6rem; }
.tag { position: absolute; top: 10px; left: 10px; font-size: .74rem; font-weight: 800; padding: 4px 9px; border-radius: 999px; }
.tag-featured { background: #ffd43b; color: #5c3d00; }
.card-body { padding: 12px 14px 14px; display: flex; flex-direction: column; gap: 3px; flex: 1; }
.card-cat { font-size: .74rem; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); }
.card-title { font-size: .98rem; font-weight: 600; margin: 0; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.card-price { font-size: 1.2rem; font-weight: 800; color: var(--navy); margin-top: auto; padding-top: 6px; }
.card-meta { font-size: .8rem; color: var(--muted); }
.empty { text-align: center; padding: 48px 16px; background: #fff; border: 2px dashed var(--line); border-radius: var(--radius); }
.big-emoji { font-size: 3rem; }

/* Espaços de publicidade */
.ad-slot { position: relative; display: block; border-radius: var(--radius); overflow: hidden; margin: 20px 0; }
.ad-slot-wide { aspect-ratio: 6 / 1; }
.ad-slot-side { aspect-ratio: 6 / 5; margin: 0 0 16px; }
.ad-slot img { width: 100%; height: 100%; object-fit: cover; }
.ad-slot-label { position: absolute; top: 6px; right: 8px; font-size: .65rem; text-transform: uppercase; letter-spacing: .08em; background: rgba(0, 0, 0, .45); color: #fff; padding: 2px 7px; border-radius: 6px; z-index: 1; }
.ad-slot-empty { display: flex; flex-direction: column; justify-content: center; align-items: center; text-align: center; gap: 4px; padding: 16px; background: repeating-linear-gradient(135deg, #fff7f0, #fff7f0 14px, #fff0e3 14px, #fff0e3 28px); border: 2px dashed #ffc999; color: var(--brand-dark); text-decoration: none !important; }
.ad-slot-empty .ad-slot-label { background: var(--brand); }
.ad-slot-empty strong { font-size: 1.25rem; color: var(--navy); }
.ad-slot-empty span:last-child { font-size: .88rem; }

/* Listagem */
.list-layout { display: grid; grid-template-columns: 280px 1fr; gap: 24px; margin-top: 8px; }
.list-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 14px; }
.list-head h1 { margin: 0; font-size: 1.5rem; }
.filters .panel h3 { margin-bottom: 12px; }
.pager { display: flex; justify-content: center; align-items: center; gap: 18px; margin: 28px 0; font-weight: 600; }

/* Formulários */
label { display: flex; flex-direction: column; gap: 6px; font-weight: 600; font-size: .9rem; margin-bottom: 14px; }
.label { font-weight: 600; font-size: .9rem; display: block; margin-bottom: 6px; }
input[type=text], input[type=email], input[type=password], input[type=tel], input[type=number], input[type=search], input[type=date], input[type=file], select, textarea {
  font: inherit; font-weight: 400; border: 1.5px solid #d6dbe3; border-radius: 10px; padding: 11px 12px; background: #fff; color: var(--ink); width: 100%; outline: none; transition: border-color .15s;
}
input:focus, select:focus, textarea:focus { border-color: var(--brand); box-shadow: 0 0 0 3px rgba(255, 107, 0, .14); }
input:disabled { background: #f2f4f7; color: var(--muted); }
textarea { resize: vertical; }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.grid-fields { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 0 14px; }
.check { flex-direction: row; align-items: flex-start; gap: 10px; font-weight: 500; }
.check input { margin-top: 4px; width: 18px; height: 18px; flex-shrink: 0; accent-color: var(--brand); }
.radio-row { display: flex; gap: 18px; flex-wrap: wrap; margin-bottom: 12px; }
.radio-row label { flex-direction: row; align-items: center; gap: 8px; margin: 0; font-weight: 500; }
.radio-row input { accent-color: var(--brand); width: 18px; height: 18px; }
.price-input { max-width: 260px; }
.form-step { display: flex; align-items: center; gap: 10px; font-size: 1.15rem; margin: 26px 0 14px; padding-top: 18px; border-top: 1px solid var(--line); }
.form-step:first-of-type { border-top: 0; padding-top: 0; margin-top: 0; }
.form-step span { width: 30px; height: 30px; border-radius: 50%; background: var(--brand); color: #fff; display: grid; place-items: center; font-size: .9rem; }
.form-step small { font-weight: 500; color: var(--muted); font-size: .8rem; }
.form-actions { display: flex; justify-content: flex-end; gap: 10px; margin-top: 18px; flex-wrap: wrap; }
.cat-pick { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 8px; margin-bottom: 18px; }
.cat-opt { margin: 0; }
.cat-opt input { position: absolute; opacity: 0; pointer-events: none; }
.cat-opt span { display: flex; align-items: center; gap: 8px; padding: 10px 12px; border: 1.5px solid var(--line); border-radius: 10px; cursor: pointer; font-weight: 600; font-size: .85rem; line-height: 1.2; height: 100%; }
.cat-opt b { font-size: 1.3rem; }
.cat-opt input:checked + span { border-color: var(--cat); background: color-mix(in srgb, var(--cat) 9%, white); box-shadow: 0 0 0 2px color-mix(in srgb, var(--cat) 30%, transparent); }
.cat-opt input:focus-visible + span { outline: 2px solid var(--brand); }
fieldset.extras { border: 1px solid var(--line); border-radius: 12px; padding: 14px 14px 0; margin: 0 0 16px; }
legend { font-weight: 700; padding: 0 6px; }
.dropzone { border: 2px dashed #cdd4de; border-radius: 14px; padding: 26px; text-align: center; cursor: pointer; background: #fafbfd; font-weight: 500; }
.dropzone:hover { border-color: var(--brand); background: var(--brand-soft); }
.dropzone input { display: none; }
.photo-preview, .photo-list { display: flex; flex-wrap: wrap; gap: 10px; margin: 0 0 14px; }
.photo-preview img, .photo img { width: 96px; height: 96px; object-fit: cover; border-radius: 10px; border: 1px solid var(--line); }
.photo-preview img:first-child { outline: 3px solid var(--brand); }
.photo { position: relative; }
.photo-del { position: absolute; top: -8px; right: -8px; width: 26px; height: 26px; border-radius: 50%; border: 0; background: var(--bad); color: #fff; cursor: pointer; font-weight: 800; }
.locked-summary { display: flex; gap: 16px; align-items: center; }
.locked-summary img { width: 120px; height: 90px; object-fit: cover; border-radius: 10px; flex-shrink: 0; }
.locked-summary h3 { margin: 4px 0; }

/* Página do anúncio */
.crumbs { font-size: .85rem; color: var(--muted); margin: 18px 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.crumbs a { color: var(--muted); }
.ad-layout { display: grid; grid-template-columns: 1fr 340px; gap: 24px; align-items: start; }
.gallery { margin-bottom: 16px; }
.gallery-main { aspect-ratio: 4 / 3; background: #0b1220; border-radius: var(--radius); overflow: hidden; display: grid; place-items: center; }
.gallery-main:has(.card-ph) { background: linear-gradient(135deg, color-mix(in srgb, var(--cat) 15%, white), color-mix(in srgb, var(--cat) 30%, white)); }
.gallery-main img { width: 100%; height: 100%; object-fit: contain; }
.thumbs { display: flex; gap: 8px; margin-top: 10px; overflow-x: auto; }
.thumbs button { border: 2px solid transparent; padding: 0; border-radius: 10px; overflow: hidden; cursor: pointer; flex-shrink: 0; background: none; }
.thumbs button.on { border-color: var(--brand); }
.thumbs img { width: 84px; height: 64px; object-fit: cover; }
.ad-info h1 { font-size: 1.7rem; margin: 6px 0; }
.ad-price { font-size: 2rem; font-weight: 800; color: var(--navy); margin: 6px 0 12px; }
.ad-meta { display: flex; flex-wrap: wrap; gap: 8px 18px; color: var(--muted); font-size: .88rem; padding-bottom: 16px; border-bottom: 1px solid var(--line); margin-bottom: 16px; }
.details { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; margin: 0 0 18px; }
.details div { background: var(--bg); border-radius: 10px; padding: 10px 12px; }
.details dt { font-size: .75rem; color: var(--muted); font-weight: 600; text-transform: uppercase; letter-spacing: .04em; }
.details dd { margin: 2px 0 0; font-weight: 700; }
.ad-desc { white-space: pre-line; overflow-wrap: anywhere; }
.ad-side { position: sticky; top: 140px; }
.seller { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; }
.seller small { display: block; color: var(--muted); font-size: .8rem; }
.notice { background: #fffaf0; border-color: #fde7c2; }
.notice p { margin: 6px 0 0; font-size: .9rem; color: #5b4630; }
.report summary { cursor: pointer; font-weight: 600; color: var(--muted); font-size: .9rem; }
.report form { margin-top: 12px; display: flex; flex-direction: column; gap: 8px; }

/* Meus anúncios */
.my-ads { display: flex; flex-direction: column; gap: 12px; }
.my-ad { display: grid; grid-template-columns: 140px 1fr auto; gap: 16px; align-items: center; margin: 0; }
.my-ad-img { aspect-ratio: 4 / 3; border-radius: 10px; overflow: hidden; display: grid; place-items: center; background: linear-gradient(135deg, color-mix(in srgb, var(--cat) 15%, white), color-mix(in srgb, var(--cat) 30%, white)); }
.my-ad-img img { width: 100%; height: 100%; object-fit: cover; }
.my-ad-img .card-ph { font-size: 2rem; }
.my-ad h3 { margin: 6px 0 2px; font-size: 1.05rem; }
.my-ad h3 a { color: var(--ink); }
.my-ad-actions { display: flex; flex-direction: column; gap: 6px; align-items: stretch; }
.my-ad-actions form { margin: 0; }
.my-ad-actions .btn { width: 100%; }
.reject { background: var(--bad-soft); color: #7f1d1d; padding: 8px 10px; border-radius: 8px; font-size: .88rem; margin: 8px 0 0; }

/* Autenticação */
.auth-wrap { display: grid; place-items: center; padding: 32px 16px; }
.auth { width: 100%; max-width: 460px; padding: 32px; }
.auth h1 { font-size: 1.6rem; }
.auth-alt { text-align: center; font-size: .92rem; margin: 14px 0 0; }
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; align-items: start; }

/* Páginas institucionais */
.prose { margin-top: 24px; padding: 32px; }
.prose h2 { font-size: 1.2rem; margin-top: 1.6em; }
.prose li { margin-bottom: 6px; }
.rules-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 12px; margin: 18px 0; }
.rules-grid div { background: var(--bad-soft); border-radius: 12px; padding: 14px 16px; }
.rules-grid h3 { font-size: 1rem; margin-bottom: 4px; color: #7f1d1d; }
.rules-grid p { margin: 0; font-size: .88rem; color: #5f2020; }
.trust { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.trust div { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; }
.trust span { font-size: 2rem; }
.trust h3 { margin: 8px 0 4px; font-size: 1.05rem; }
.trust p { margin: 0; color: var(--muted); font-size: .92rem; }
.promo { text-align: center; padding: 48px 16px 28px; max-width: 760px; margin: 0 auto; }
.promo h1 { font-size: clamp(1.7rem, 3.6vw, 2.5rem); }
.promo p { color: var(--muted); font-size: 1.08rem; }
.formats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin: 20px 0; }
.format-shape { background: repeating-linear-gradient(135deg, #fff7f0, #fff7f0 10px, #ffe9d6 10px, #ffe9d6 20px); border: 2px dashed #ffc999; border-radius: 8px; margin-bottom: 12px; aspect-ratio: 6 / 1; }
.format-lateral { aspect-ratio: 6 / 5; max-width: 140px; }

/* Rodapé */
.site-footer { background: var(--navy); color: #c3cfe0; margin-top: 48px; padding: 44px 0 24px; }
.site-footer a { color: #e3eaf5; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 28px; }
.footer-grid h4 { color: #fff; font-size: .95rem; margin-bottom: 10px; }
.footer-grid > div > a:not(.logo) { display: block; font-size: .9rem; padding: 3px 0; }
.muted-light { color: #9fb0c8; font-size: .92rem; }
.disclaimer { margin-top: 30px; padding-top: 20px; border-top: 1px solid rgba(255, 255, 255, .12); font-size: .82rem; color: #9fb0c8; }
.disclaimer strong { color: #dbe4f0; }
.copyright { font-size: .8rem; color: #7f93ae; margin-top: 14px; }

/* Painel administrativo */
.admin-body { background: #f1f3f7; }
.admin { display: grid; grid-template-columns: 250px 1fr; min-height: 100vh; }
.admin-nav { background: var(--navy); color: #fff; padding: 20px 14px; position: sticky; top: 0; height: 100vh; overflow-y: auto; }
.admin-nav .logo { margin: 0 6px 22px; }
.admin-nav nav { display: flex; flex-direction: column; gap: 2px; }
.admin-nav nav a, .admin-nav nav button { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 10px; color: #cfd9e8; font: inherit; font-size: .92rem; font-weight: 600; text-decoration: none; background: none; border: 0; cursor: pointer; width: 100%; text-align: left; }
.admin-nav nav a:hover, .admin-nav nav button:hover { background: rgba(255, 255, 255, .07); color: #fff; }
.admin-nav nav a.on { background: var(--brand); color: #fff; }
.admin-nav hr { border: 0; border-top: 1px solid rgba(255, 255, 255, .12); margin: 12px 0; width: 100%; }
.admin-main { padding: 8px 28px 40px; min-width: 0; }
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-bottom: 18px; }
.stat { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; color: var(--ink); text-decoration: none !important; display: flex; flex-direction: column; box-shadow: var(--shadow); }
.stat small { color: var(--muted); font-weight: 600; }
.stat strong { font-size: 2rem; font-weight: 800; color: var(--navy); }
.stat em { font-style: normal; font-size: .8rem; color: var(--muted); }
.stat-warn { border-left: 5px solid #f59e0b; }
.stat-bad { border-left: 5px solid var(--bad); }
.queue-item { display: flex; align-items: center; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line); color: var(--ink); text-decoration: none !important; }
.queue-item > span:nth-child(2) { flex: 1; min-width: 0; }
.queue-item strong { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.queue-item small { color: var(--muted); }
.thumb { width: 56px; height: 44px; border-radius: 8px; overflow: hidden; display: grid; place-items: center; flex-shrink: 0; font-size: 1.4rem; background: color-mix(in srgb, var(--cat) 15%, white); }
.thumb img { width: 100%; height: 100%; object-fit: cover; }
.thumb.lg { width: 110px; height: 82px; font-size: 2rem; }
.bar { display: grid; grid-template-columns: 190px 1fr 40px; align-items: center; gap: 10px; margin: 8px 0; font-size: .88rem; }
.bar i { height: 10px; background: var(--brand); border-radius: 6px; display: block; }
.bar b { text-align: right; }
.tabs { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 14px; }
.tabs a { padding: 8px 14px; border-radius: 999px; background: #fff; border: 1px solid var(--line); color: var(--ink); font-weight: 600; font-size: .88rem; text-decoration: none; }
.tabs a.on { background: var(--navy); border-color: var(--navy); color: #fff; }
.tabs b { opacity: .65; margin-left: 2px; }
.admin-search { display: flex; gap: 8px; margin-bottom: 16px; max-width: 640px; }
.admin-list { display: flex; flex-direction: column; gap: 10px; }
.admin-row { display: flex; gap: 16px; align-items: center; margin: 0; padding: 14px; }
.admin-row.dim { opacity: .6; }
.admin-row-body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.admin-row-body a { color: var(--ink); }
.admin-row-actions { display: flex; gap: 8px; flex-wrap: wrap; justify-content: flex-end; }
.admin-row-actions form { margin: 0; }
.ai-note { color: var(--warn); }
.review { display: grid; grid-template-columns: 1fr 360px; gap: 20px; align-items: start; }
.review-photos { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 10px; }
.review-photos img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 10px; }
.ai-box.ai-aprovar { border-left: 5px solid var(--ok); }
.ai-box.ai-revisar { border-left: 5px solid #f59e0b; }
.ai-box.ai-bloquear { border-left: 5px solid var(--bad); }
.decision form { margin: 0; }
.decision > form + form { margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--line); }
.decision-more { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--line); }
.decision-more form { margin: 0; }
.table-wrap { overflow-x: auto; padding: 0; }
.table { width: 100%; border-collapse: collapse; font-size: .9rem; }
.table th, .table td { padding: 12px 14px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.table th { background: #f8f9fb; font-size: .78rem; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); }
.table .actions { display: flex; flex-wrap: wrap; gap: 6px; min-width: 260px; }
.table .actions form { margin: 0; }
.big-code { font-size: 1.2rem; font-weight: 800; }
.banner-list { display: flex; flex-direction: column; gap: 10px; }
.banner-item { display: flex; gap: 16px; align-items: center; color: var(--ink); text-decoration: none !important; margin: 0; }
.banner-item img { width: 220px; aspect-ratio: 6 / 1.6; object-fit: cover; border-radius: 8px; background: var(--bg); flex-shrink: 0; }
.banner-item > div { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.banner-preview { max-width: 420px; border-radius: 10px; margin-bottom: 14px; border: 1px solid var(--line); }
.narrow-form { max-width: 720px; }

/* Responsivo */
@media (max-width: 1024px) {
  .grid { grid-template-columns: repeat(3, 1fr); }
  .cat-grid { grid-template-columns: repeat(4, 1fr); }
  .ad-layout, .review { grid-template-columns: 1fr; }
  .ad-side { position: static; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .formats { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 860px) {
  .header-row { flex-wrap: wrap; height: auto; padding-top: 10px; padding-bottom: 10px; gap: 10px; }
  .search { order: 3; flex-basis: 100%; max-width: none; }
  .link-btn { display: none; }
  .btn-cta { padding: 9px 14px; font-size: .88rem; }
  .ad-side { position: static; }
  .hero { padding: 36px 0 40px; }
  .hero-inner { grid-template-columns: 1fr; }
  .hero-card { display: none; }
  .list-layout { grid-template-columns: 1fr; }
  .filters .ad-slot-side { display: none; }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .trust, .two-col { grid-template-columns: 1fr; }
  .admin { grid-template-columns: 1fr; }
  .admin-nav { position: static; height: auto; }
  .admin-nav nav { flex-direction: row; flex-wrap: wrap; }
  .admin-nav nav a, .admin-nav nav button { width: auto; }
  .admin-nav hr { display: none; }
  .admin-main { padding: 8px 16px 32px; }
}
@media (max-width: 600px) {
  .grid, .grid-3 { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .cat-grid { grid-template-columns: repeat(3, 1fr); gap: 8px; }
  .cat-tile { padding: 12px 6px; }
  .cat-icon { width: 44px; height: 44px; font-size: 1.4rem; }
  .cat-tile strong { font-size: .78rem; }
  .card-body { padding: 10px; }
  .card-price { font-size: 1.05rem; }
  .hero-search { flex-direction: column; }
  .hero-search select { border-left: 0; border-top: 1px solid var(--line); }
  .ad-slot-wide { aspect-ratio: 3 / 1; }
  .my-ad { grid-template-columns: 96px 1fr; }
  .my-ad-actions { grid-column: 1 / -1; flex-direction: row; flex-wrap: wrap; }
  .my-ad-actions .btn { width: auto; }
  .admin-row { flex-wrap: wrap; }
  .admin-row-actions { width: 100%; justify-content: flex-start; }
  .stats { grid-template-columns: 1fr 1fr; }
  .stat strong { font-size: 1.5rem; }
  .bar { grid-template-columns: 120px 1fr 30px; }
  .banner-item { flex-direction: column; align-items: stretch; }
  .banner-item img { width: 100%; }
  .footer-grid { grid-template-columns: 1fr; }
  .formats { grid-template-columns: 1fr; }
  .prose, .auth { padding: 22px 18px; }
  .ad-price { font-size: 1.6rem; }
  .logo-text strong { font-size: 1rem; }
}
