@import url('https://fonts.googleapis.com/css2?family=Nunito+Sans:opsz,wght@6..12,400;6..12,500;6..12,600;6..12,700;6..12,800&family=Poppins:wght@600;700;800&display=swap');

:root {
  --brand: #FF7A21;
  --brand-dark: #D9580A;
  --brand-soft: #FFF0E5;
  --accent: #f59e0b;
  --danger: #b91c1c;
  --ink: #17202a;
  --muted: #667085;
  --line: #e5e7eb;
  --surface: #ffffff;
  --background: #f5f7f9;
  --shadow: 0 10px 30px rgba(15, 23, 42, .08);
  --radius: 20px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: var(--background);
  color: var(--ink);
  -webkit-tap-highlight-color: transparent;
}
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }
img { display: block; max-width: 100%; }

#app {
  max-width: 760px;
  min-height: 100vh;
  margin: 0 auto;
  background: var(--background);
  padding-bottom: 140px;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  background: rgba(255,255,255,.95);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(229,231,235,.8);
}
.brand { display: flex; align-items: center; gap: 10px; min-width: 0; }
.brand-logo { width: 44px; height: 44px; border-radius: 13px; }
.brand div { display: flex; flex-direction: column; line-height: 1.05; }
.brand strong { font-size: 17px; }
.brand span { color: var(--brand); font-weight: 800; font-size: 13px; letter-spacing: .08em; text-transform: uppercase; }
.top-actions { display: flex; align-items: center; gap: 7px; }
.icon-btn {
  width: 42px; height: 42px; border: 0; border-radius: 14px;
  background: var(--brand-soft); color: var(--brand-dark); font-weight: 900;
}
.account-btn {
  min-height: 42px;
  border: 0;
  border-radius: 14px;
  background: #f1f5f9;
  color: #334155;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 9px;
  font-weight: 800;
}
.account-btn span {
  width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center;
  background: var(--brand); color: white; font-size: 12px;
}
.account-btn small { max-width: 72px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

main { padding: 14px 16px 0; }
.view { display: none; animation: fade .18s ease; }
.view.active { display: block; }
@keyframes fade { from { opacity: .4; transform: translateY(3px); } to { opacity: 1; transform: none; } }

.hero {
  background:
    radial-gradient(circle at 90% 10%, rgba(245,158,11,.28), transparent 32%),
    linear-gradient(145deg, #FF7A21, #102A21);
  color: white;
  border-radius: 28px;
  padding: 26px 22px;
  box-shadow: var(--shadow);
}
.hero h1 { margin: 8px 0 10px; font-size: clamp(28px, 8vw, 42px); line-height: 1.05; }
.hero p { margin: 0; color: rgba(255,255,255,.84); line-height: 1.55; }
.eyebrow { margin: 0; font-size: 11px; font-weight: 900; letter-spacing: .16em; color: var(--brand); }
.hero .eyebrow { color: #99f6e4; }
.hero-actions { display: flex; gap: 10px; margin-top: 22px; flex-wrap: wrap; }

.primary-btn, .secondary-btn, .danger-btn {
  border: 0;
  border-radius: 14px;
  padding: 13px 16px;
  font-weight: 800;
  transition: transform .12s ease, opacity .12s ease;
}
.primary-btn:active, .secondary-btn:active, .danger-btn:active { transform: scale(.98); }
.primary-btn { background: var(--brand); color: white; }
.hero .primary-btn { background: white; color: var(--brand-dark); }
.secondary-btn { background: var(--brand-soft); color: var(--brand-dark); }
.hero .secondary-btn { background: rgba(255,255,255,.14); color: white; border: 1px solid rgba(255,255,255,.28); }
.danger-btn { background: #fee2e2; color: var(--danger); }
.compact { padding: 10px 13px; }
.full { width: 100%; }

.ad-slot {
  min-height: 128px;
  margin: 16px 0;
  border: 1px dashed #a3a3a3;
  border-radius: 18px;
  background: repeating-linear-gradient(135deg, #fafafa, #fafafa 10px, #f4f4f5 10px, #f4f4f5 20px);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center; padding: 18px; color: #52525b;
}
.ad-slot span { font-size: 10px; letter-spacing: .18em; font-weight: 900; color: #71717a; }
.ad-slot strong { margin: 7px 0 2px; }
.ad-slot small { color: #85858d; }

.search-wrap { display: grid; grid-template-columns: 1fr 48px; gap: 8px; margin: 16px 0 20px; }
.search-wrap input, .filter-bar input, .form-grid input, .form-grid textarea, .form-grid select {
  width: 100%; border: 1px solid var(--line); border-radius: 14px; background: white; color: var(--ink); padding: 14px; outline: none;
}
.search-wrap input:focus, .filter-bar input:focus, .form-grid input:focus, .form-grid textarea:focus, .form-grid select:focus {
  border-color: var(--brand); box-shadow: 0 0 0 3px rgba(15,118,110,.12);
}
.search-wrap button { border: 0; border-radius: 14px; background: var(--brand); color: white; font-size: 25px; }

.section-block { margin: 28px 0; }
.section-title, .page-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.section-title h2, .page-heading h1 { margin: 5px 0 0; }
.section-title h2 { font-size: 23px; }
.page-heading { align-items: center; margin: 8px 0 18px; }
.page-heading h1 { font-size: 28px; }
.heading-note { color: var(--muted); display: block; margin-top: 4px; }
.text-btn { border: 0; background: transparent; color: var(--brand); font-weight: 800; padding: 8px 0; white-space: nowrap; }

.category-caption { font-size: 12px; color: var(--muted); font-weight: 700; margin: 10px 0 7px; }
.category-strip {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 92px;
  gap: 10px;
  overflow-x: auto;
  padding: 3px 1px 11px;
  scroll-snap-type: x proximity;
  overscroll-behavior-inline: contain;
  scrollbar-width: none;
}
.category-strip::-webkit-scrollbar { display: none; }
.category-icon-btn {
  min-height: 94px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: white;
  padding: 10px 7px;
  text-align: center;
  scroll-snap-align: start;
  box-shadow: 0 6px 18px rgba(15,23,42,.04);
}
.category-icon-btn .cat-icon {
  width: 43px; height: 43px; margin: 0 auto 8px; border-radius: 14px;
  background: var(--brand-soft); display: grid; place-items: center; font-size: 20px;
}
.category-icon-btn strong { display: block; font-size: 11px; line-height: 1.18; }
.category-icon-btn small { display: block; color: var(--muted); margin-top: 3px; font-size: 10px; }
.category-icon-btn.active {
  background: var(--brand);
  color: white;
  border-color: var(--brand);
}
.category-icon-btn.active .cat-icon { background: rgba(255,255,255,.18); }
.category-icon-btn.active small { color: rgba(255,255,255,.8); }
.filter-categories { margin-bottom: 4px; }

.horizontal-list {
  display: grid; grid-auto-flow: column; grid-auto-columns: 84%; gap: 12px;
  overflow-x: auto; padding: 2px 1px 12px; scroll-snap-type: x mandatory;
}
.horizontal-list > * { scroll-snap-align: start; }

.business-card, .classified-card {
  background: white; border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; box-shadow: 0 7px 22px rgba(15,23,42,.05);
}
.business-card { padding: 14px; display: grid; grid-template-columns: 86px 1fr; gap: 13px; }
.business-card + .business-card { margin-top: 12px; }
.business-image { width: 86px; height: 86px; border-radius: 16px; object-fit: cover; background: #e5e7eb; }
.business-body { min-width: 0; }
.business-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 8px; }
.business-card h3, .classified-card h3 { margin: 0; font-size: 17px; }
.business-card p, .classified-card p { margin: 6px 0 0; color: var(--muted); line-height: 1.42; }
.business-meta { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.badge {
  display: inline-flex; align-items: center; gap: 4px; border-radius: 999px; padding: 5px 8px;
  background: #f1f5f9; color: #475569; font-size: 11px; font-weight: 800;
}
.badge.featured { background: #fef3c7; color: #92400e; }
.badge.pending { background: #e0e7ff; color: #3730a3; }
.social-stats { display: flex; gap: 10px; margin-top: 10px; color: #64748b; font-size: 12px; font-weight: 700; }
.open-card { border: 0; background: none; padding: 0; text-align: left; width: 100%; color: inherit; }

.classified-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 12px; }
.classified-card { position: relative; }
.classified-image { width: 100%; aspect-ratio: 4/3; object-fit: cover; background: #e5e7eb; }
.classified-content { padding: 12px; }
.classified-price { color: var(--brand-dark); font-weight: 900; font-size: 18px; margin-top: 6px; }
.classified-location { font-size: 12px; color: var(--muted); margin-top: 8px; }
.photo-count {
  position: absolute; right: 9px; top: 9px; z-index: 2; background: rgba(17,24,39,.78);
  color: white; padding: 4px 7px; border-radius: 999px; font-size: 10px; font-weight: 800;
}
.promoted-tag {
  position: absolute; top: 10px; left: 10px; z-index: 2;
  background: #f59e0b; color: #111827; border-radius: 999px; padding: 5px 8px; font-size: 10px; font-weight: 900;
}

.filter-bar { display: grid; gap: 9px; margin-bottom: 8px; }
.filter-bar.single { grid-template-columns: 1fr; }
.result-count { color: var(--muted); font-size: 13px; margin: 6px 0 12px; }
.business-list { display: block; }
.native-ad {
  margin: 12px 0; min-height: 94px; border-radius: 18px;
  background: linear-gradient(135deg, #fff7ed, #fffbeb); border: 1px solid #fed7aa; padding: 16px;
}
.native-ad span { font-size: 10px; font-weight: 900; letter-spacing: .12em; color: #9a3412; }
.native-ad strong { display: block; margin-top: 6px; }
.native-ad small { color: #7c2d12; }

.safety-note, .disclaimer-box {
  border-radius: 15px; padding: 13px; margin: 12px 0 16px; line-height: 1.45; font-size: 13px;
}
.safety-note { background: #fffbeb; border: 1px solid #fde68a; color: #713f12; }
.disclaimer-box { background: #fff1f2; border: 1px solid #fecdd3; color: #881337; }
.safety-note strong, .disclaimer-box strong { display: block; }
.disclaimer-box p { margin: 5px 0 0; }
.compact-disclaimer { margin: 0; }

.about-card {
  background: white; border: 1px solid var(--line); border-radius: var(--radius); padding: 20px;
  margin-bottom: 14px; box-shadow: 0 7px 22px rgba(15,23,42,.04);
}
.about-card h2 { margin: 0 0 8px; }
.about-card > p { color: var(--muted); line-height: 1.55; }
.about-grid { display: grid; grid-template-columns: repeat(2,1fr); gap: 10px; margin-top: 16px; }
.about-grid article { background: #f8fafc; border-radius: 14px; padding: 13px; }
.about-grid strong, .about-grid span { display: block; }
.about-grid span { color: var(--muted); font-size: 13px; margin-top: 4px; line-height: 1.4; }
.ad-plan, .rules-list { padding-left: 20px; color: var(--muted); line-height: 1.8; }
.admin-actions { display: grid; gap: 9px; margin-top: 14px; }
.file-label { text-align: center; }

.bottom-nav {
  position: fixed; left: 50%; bottom: 0; z-index: 30; transform: translateX(-50%);
  width: min(760px, 100%); height: calc(76px + env(safe-area-inset-bottom));
  display: grid; grid-template-columns: 1fr 1fr 68px 1fr 1fr; align-items: start;
  padding: 8px 10px calc(8px + env(safe-area-inset-bottom));
  background: rgba(255,255,255,.98); border-top: 1px solid var(--line); box-shadow: 0 -10px 28px rgba(15,23,42,.08);
}
.nav-item { border: 0; background: transparent; color: #64748b; display: flex; flex-direction: column; align-items: center; gap: 3px; padding: 5px; }
.nav-item span { font-size: 20px; height: 25px; }
.nav-item small { font-size: 10px; font-weight: 800; }
.nav-item.active { color: var(--brand); }
.nav-fab {
  width: 58px; height: 58px; margin: -26px auto 0; border: 5px solid var(--background); border-radius: 50%;
  background: var(--brand); color: white; font-size: 30px; line-height: 1; box-shadow: 0 10px 22px rgba(15,118,110,.32);
}
.sticky-ad {
  position: fixed; left: 50%; bottom: calc(76px + env(safe-area-inset-bottom)); z-index: 25;
  transform: translateX(-50%); width: min(730px, calc(100% - 30px));
  border-radius: 13px 13px 0 0; background: #17202a; color: white;
  display: flex; align-items: center; justify-content: space-between; padding: 8px 12px; font-size: 12px;
}
.sticky-ad button { border: 0; border-radius: 9px; padding: 7px 10px; background: var(--accent); color: #111827; font-weight: 900; }

dialog {
  border: 0; padding: 0; width: min(720px, 100%); color: var(--ink);
  box-shadow: 0 28px 80px rgba(15,23,42,.34);
}
dialog::backdrop { background: rgba(15,23,42,.62); backdrop-filter: blur(3px); }
.sheet-dialog { max-height: 91vh; margin: auto auto 0; border-radius: 24px 24px 0 0; overflow-y: auto; }
.form-dialog { max-height: 92vh; border-radius: 24px; overflow-y: auto; padding: 0 18px 20px; }
.form-dialog form { padding-bottom: 4px; }
.sheet-header {
  position: sticky; top: 0; z-index: 5; display: flex; align-items: center; justify-content: space-between; gap: 10px;
  padding: 16px 0; background: rgba(255,255,255,.97); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line);
}
.sheet-dialog .sheet-header { padding-left: 18px; padding-right: 18px; }
.sheet-header h2 { margin: 0; font-size: 20px; }
.close-dialog { border: 0; background: #f1f5f9; width: 38px; height: 38px; border-radius: 50%; font-size: 24px; color: #475569; }

.photo-carousel {
  display: grid; grid-auto-flow: column; grid-auto-columns: 100%; overflow-x: auto;
  scroll-snap-type: x mandatory; scrollbar-width: none; background: #e5e7eb;
}
.photo-carousel::-webkit-scrollbar { display: none; }
.photo-slide { position: relative; scroll-snap-align: start; }
.detail-cover { width: 100%; aspect-ratio: 16/9; object-fit: cover; background: #e5e7eb; }
/* Classificados: área de foto maior e sem corte do produto nos detalhes. */
.classified-detail-carousel { background: #f4f7f0; }
.classified-detail-carousel .photo-slide {
  min-height: clamp(380px, 68vh, 680px);
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f4f7f0;
}
.classified-detail-cover {
  width: 100%;
  height: clamp(380px, 68vh, 680px);
  aspect-ratio: auto;
  object-fit: contain;
  object-position: center;
  background: #f4f7f0;
}
.classified-share-actions { display:flex; justify-content:flex-end; margin:14px 0 8px; }
.share-btn {
  border:0;
  border-radius:12px;
  padding:11px 15px;
  background:var(--green-soft);
  color:var(--green-dark);
  font-weight:900;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:7px;
  cursor:pointer;
}
.share-btn .icon { width:16px; height:16px; }
.slide-number {
  position: absolute; right: 12px; bottom: 12px; background: rgba(17,24,39,.8); color: white;
  border-radius: 999px; padding: 5px 9px; font-size: 11px; font-weight: 800;
}
.swipe-hint { text-align: center; color: var(--muted); font-size: 11px; margin: 7px 0 0; }
.detail-content { padding: 18px; }
.detail-content h2 { margin: 7px 0 0; font-size: 26px; }
.detail-content p { color: var(--muted); line-height: 1.55; }
.detail-info { display: grid; gap: 9px; margin: 16px 0; }
.detail-info div { background: #f8fafc; border-radius: 13px; padding: 11px 12px; }
.detail-info strong { display: block; font-size: 11px; color: #64748b; text-transform: uppercase; letter-spacing: .08em; }
.detail-info span { display: block; margin-top: 3px; }
.contact-actions { display: grid; grid-template-columns: repeat(3,1fr); gap: 8px; margin: 14px 0; }
.contact-actions a { text-decoration: none; text-align: center; padding: 11px 6px; border-radius: 12px; background: var(--brand-soft); color: var(--brand-dark); font-weight: 800; font-size: 12px; }
.like-row { display: flex; align-items: center; gap: 10px; padding: 13px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.like-btn { border: 0; border-radius: 999px; background: #f1f5f9; padding: 10px 14px; font-weight: 800; }
.like-btn.liked { background: #fee2e2; color: #be123c; }
.comments h3 { margin-bottom: 9px; }
.comment-form { display: grid; grid-template-columns: 1fr auto; gap: 8px; }
.comment-form input { min-width: 0; border: 1px solid var(--line); border-radius: 12px; padding: 12px; }
.comment-form button { border: 0; background: var(--brand); color: white; border-radius: 12px; padding: 0 15px; font-weight: 800; }
.comment-list { display: grid; gap: 8px; margin-top: 12px; }
.comment-item { background: #f8fafc; border-radius: 12px; padding: 11px; }
.comment-item strong { display: block; font-size: 13px; }
.comment-item p { margin: 4px 0 0; font-size: 13px; }

.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 12px 0 16px; }
.form-grid label { display: block; color: #334155; font-size: 12px; font-weight: 800; }
.form-grid input, .form-grid textarea, .form-grid select { margin-top: 6px; font-weight: 400; }
.full-field { grid-column: 1 / -1; }
.upload-label span { display: block; color: var(--muted); font-weight: 400; margin-top: 3px; line-height: 1.35; }
.upload-preview {
  display: grid; grid-auto-flow: column; grid-auto-columns: 112px; gap: 9px; overflow-x: auto;
  min-height: 10px; scrollbar-width: none;
}
.upload-preview::-webkit-scrollbar { display: none; }
.upload-preview img { width: 112px; height: 88px; object-fit: cover; border-radius: 12px; border: 1px solid var(--line); }
.check-label { display: flex !important; align-items: flex-start; gap: 9px; background: #f8fafc; padding: 12px; border-radius: 13px; line-height: 1.45; }
.check-label input { width: auto; margin: 3px 0 0; }
.check-label span { font-weight: 500; }
.pricing-banner, .free-banner {
  margin-top: 14px; border-radius: 16px; padding: 14px; display: flex; flex-direction: column;
}
.pricing-banner { background: linear-gradient(135deg, #fffbeb, #fef3c7); border: 1px solid #fde68a; color: #78350f; }
.pricing-banner span { font-size: 10px; font-weight: 900; letter-spacing: .14em; }
.pricing-banner strong { font-size: 20px; margin-top: 4px; }
.pricing-banner small { margin-top: 3px; }
.free-banner { background: var(--brand-soft); color: var(--brand-dark); }
.free-banner strong { font-size: 18px; }
.free-banner span { margin-top: 2px; font-size: 13px; }

.auth-tabs { display: grid; grid-template-columns: 1fr 1fr; gap: 7px; margin: 14px 0; }
.auth-tab { border: 0; border-radius: 12px; background: #f1f5f9; color: #64748b; padding: 11px; font-weight: 800; }
.auth-tab.active { background: var(--brand); color: white; }
.auth-panel { display: none; }
.auth-panel.active { display: block; }
.demo-access { margin-top: 14px; background: #f8fafc; padding: 12px; border-radius: 13px; font-size: 12px; color: var(--muted); }
.demo-access strong, .demo-access span { display: block; }
.demo-access span { margin-top: 4px; }
.account-summary { padding: 14px 0; }
.account-identity { display: flex; align-items: center; gap: 12px; padding: 14px; background: var(--brand-soft); border-radius: 16px; }
.large-avatar { width: 50px; height: 50px; border-radius: 50%; background: var(--brand); color: white; display: grid; place-items: center; font-weight: 900; }
.account-identity strong, .account-identity span { display: block; }
.account-identity span { color: var(--brand-dark); font-size: 13px; margin-top: 2px; }
.my-ads { margin-top: 17px; }
.my-ads h3 { margin-bottom: 8px; }
.my-ad-item { background: #f8fafc; border-radius: 13px; padding: 11px; margin-bottom: 8px; display: flex; justify-content: space-between; gap: 10px; }
.my-ad-item strong, .my-ad-item span { display: block; }
.my-ad-item span { color: var(--muted); font-size: 12px; margin-top: 3px; }
.payment-card { padding: 15px 0; }
.payment-card .price { font-size: 34px; font-weight: 900; color: var(--brand-dark); margin: 8px 0; }
.payment-card ul { color: var(--muted); line-height: 1.7; padding-left: 20px; }
.prototype-note { background: #eef2ff; color: #3730a3; border: 1px solid #c7d2fe; padding: 12px; border-radius: 13px; font-size: 12px; line-height: 1.45; margin-bottom: 12px; }

.toast {
  position: fixed; left: 50%; bottom: 160px; z-index: 90; transform: translate(-50%, 20px);
  max-width: calc(100% - 36px); background: #111827; color: white; border-radius: 12px;
  padding: 11px 15px; opacity: 0; pointer-events: none; transition: .2s ease; font-size: 13px; text-align: center;
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }
.empty-state { text-align: center; background: white; border: 1px solid var(--line); border-radius: var(--radius); padding: 34px 18px; color: var(--muted); }
.hidden { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); border: 0; }

@media (max-width: 520px) {
  .classified-grid { grid-template-columns: 1fr 1fr; }
  .form-grid { grid-template-columns: 1fr; }
  .full-field { grid-column: auto; }
  .contact-actions { grid-template-columns: 1fr 1fr 1fr; }
  .page-heading { align-items: flex-start; }
  .page-heading .compact { max-width: 120px; }
}
@media (max-width: 365px) {
  main { padding-left: 11px; padding-right: 11px; }
  .classified-grid { grid-template-columns: 1fr; }
  .hero { padding: 22px 18px; }
  .account-btn small { display: none; }
}
.loading-card { background:#fff; border:1px solid var(--line); border-radius:18px; padding:28px; text-align:center; color:var(--muted); }
.field-error { color:#b91c1c; font-size:11px; margin-top:4px; display:block; }
.form-error { background:#fee2e2; color:#991b1b; border:1px solid #fecaca; border-radius:12px; padding:11px; margin:10px 0; }
.status-badge { display:inline-flex; border-radius:999px; padding:5px 8px; font-size:11px; font-weight:800; background:#f1f5f9; color:#475569; }
.status-approved { background:#dcfce7; color:#166534; }
.status-pending_review,.status-pending_payment { background:#fef3c7; color:#92400e; }
.status-rejected,.status-suspended { background:#fee2e2; color:#991b1b; }
.account-actions { display:grid; gap:9px; margin-top:14px; }
.payment-box { background:#f8fafc; border:1px solid var(--line); border-radius:16px; padding:15px; margin:14px 0; }
.payment-reference { font-family:ui-monospace,Consolas,monospace; font-size:13px; word-break:break-all; background:#fff; border:1px dashed #cbd5e1; padding:10px; border-radius:10px; }
.copy-btn { margin-top:8px; border:0; background:var(--brand-soft); color:var(--brand-dark); border-radius:10px; padding:9px 11px; font-weight:800; }
.photo-input-note { display:block; color:var(--muted); font-weight:400; margin-top:4px; }
.form-dialog .sheet-header { margin-left:-18px; margin-right:-18px; padding-left:18px; padding-right:18px; }
.business-list .native-ad { margin:12px 0; }
.admin-link { display:block; text-align:center; color:var(--brand); font-weight:800; margin-top:14px; text-decoration:none; }


/* URLs amigáveis */
.open-card { text-decoration: none; display: block; }
.friendly-link-box {
  margin: 14px 0;
  padding: 13px;
  border: 1px solid #99f6e4;
  border-radius: 14px;
  background: #f0fdfa;
}
.friendly-link-box strong { display: block; color: #115e59; font-size: 12px; text-transform: uppercase; letter-spacing: .06em; }
.friendly-link-box a, .account-friendly-url {
  display: block;
  overflow-wrap: anywhere;
  color: #0f766e;
  font-weight: 800;
  margin: 6px 0 9px;
  text-decoration: none;
}
.friendly-link-box .copy-btn { margin-right: 7px; margin-top: 2px; }
.account-friendly-url { font-size: 12px; }

/* Identidade visual Bom Negócio Pedrinhas — componentes centralizados */
:root {
  --brand: #FF7A21;
  --brand-dark: #D9580A;
  --brand-soft: #FFF0E5;
  --green: #5EA331;
  --green-dark: #477E22;
  --green-soft: #EDF6E7;
  --yellow: #FFC21C;
  --coral: #F04432;
  --coral-soft: #FDECEA;
  --deep: #102A21;
  --ink: #183029;
  --muted: #65756F;
  --line: #E8E5DC;
  --surface: #FFFFFF;
  --background: #FFF9EF;
  --shadow: 0 18px 50px rgba(16,42,33,.09);
  --shadow-sm: 0 6px 20px rgba(16,42,33,.07);
  --radius: 22px;
  --font-title: "Poppins", "Segoe UI", sans-serif;
  --font-body: "Nunito Sans", "Segoe UI", sans-serif;
}

body { font-family: var(--font-body); background: var(--background); color: var(--ink); }
body::before {
  content: ""; position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background: radial-gradient(circle at 8% 8%, rgba(255,194,28,.08) 0 8px, transparent 9px), radial-gradient(circle at 91% 22%, rgba(94,163,49,.07) 0 11px, transparent 12px);
  background-size: 130px 130px, 170px 170px;
}
h1,h2,h3,.brand strong,.primary-btn,.secondary-btn { font-family: var(--font-title); }
.icon { width: 1.25em; height: 1.25em; display: block; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.cat-icon .icon { width: 26px; height: 26px; }

#app { max-width: 1180px; background: transparent; padding-bottom: 148px; }
.topbar {
  margin: 12px 16px 0; padding: 10px 14px; border: 1px solid rgba(232,229,220,.9); border-radius: 22px;
  background: rgba(255,255,255,.91); box-shadow: var(--shadow-sm); top: 10px;
}
.brand { gap: 11px; }
.brand-logo { width: 50px; height: 50px; border-radius: 0; object-fit: contain; }
.brand div { line-height: 1; }
.brand strong { font-size: 18px; font-weight: 800; letter-spacing: -.035em; color: var(--deep); }
.brand span { margin-top: 5px; color: var(--green); font-size: 10px; letter-spacing: .28em; }
.account-btn,.icon-btn { transition: transform .18s ease, box-shadow .18s ease, background .18s ease; }
.account-btn { background: var(--green-soft); color: var(--deep); border: 1px solid rgba(94,163,49,.14); padding: 6px 11px 6px 7px; }
.account-btn span { background: var(--green); }
.account-btn:hover,.icon-btn:hover { transform: translateY(-1px); box-shadow: var(--shadow-sm); }
.icon-btn { display: grid; place-items: center; background: var(--brand-soft); color: var(--brand); }

main { padding: 22px 18px 34px; }
.hero {
  position: relative; overflow: hidden; min-height: 365px; display: grid; grid-template-columns: minmax(0,1.35fr) minmax(190px,.65fr); align-items: center;
  padding: clamp(28px,5vw,58px); border-radius: 32px; color: var(--deep); border: 1px solid #F3E6D2;
  background: radial-gradient(circle at 82% 21%, rgba(255,194,28,.28) 0 7px, transparent 8px), radial-gradient(circle at 89% 36%, rgba(94,163,49,.22) 0 13px, transparent 14px), linear-gradient(135deg,#FFFDF8 0%,#FFF1DE 100%);
  box-shadow: var(--shadow);
}
.hero::before { content:""; position:absolute; width:260px; height:260px; right:-80px; bottom:-120px; border-radius:50%; background:rgba(255,122,33,.1); }
.hero-copy { position: relative; z-index: 2; max-width: 690px; }
.hero-mark { width: min(100%,280px); justify-self: end; filter: drop-shadow(0 22px 26px rgba(16,42,33,.13)); transform: rotate(2deg); }
.hero .eyebrow { color: var(--green-dark); }
.hero h1 { max-width: 720px; font-size: clamp(35px,5.1vw,64px); line-height: 1.04; letter-spacing: -.052em; color: var(--deep); }
.hero p { max-width: 620px; color: #54675F; font-size: clamp(15px,2vw,18px); line-height: 1.62; }
.eyebrow { color: var(--green); font-weight: 900; letter-spacing: .14em; }
.primary-btn,.secondary-btn,.danger-btn { min-height: 46px; border-radius: 14px; padding: 12px 18px; transition: transform .18s ease, box-shadow .18s ease, filter .18s ease; }
.primary-btn { background: linear-gradient(135deg,#FF8A2A,#FF6F12); color:#fff; box-shadow: 0 8px 20px rgba(255,122,33,.24); }
.secondary-btn { background:#fff; color:var(--deep); border:1px solid #E9DDCE; }
.primary-btn:hover,.secondary-btn:hover { transform: translateY(-2px); box-shadow: 0 12px 24px rgba(16,42,33,.12); }
.primary-btn:focus-visible,.secondary-btn:focus-visible,button:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible { outline:3px solid rgba(255,194,28,.45); outline-offset:2px; }
button:disabled,.primary-btn:disabled { cursor:not-allowed; opacity:.5; transform:none; box-shadow:none; }

.search-wrap { margin: 20px 0 28px; border: 1px solid #E7E0D6; border-radius: 18px; background: #fff; box-shadow: var(--shadow-sm); }
.search-wrap:focus-within { border-color: rgba(255,122,33,.6); box-shadow: 0 0 0 4px rgba(255,122,33,.09), var(--shadow-sm); }
.search-wrap input,.filter-bar input,.filter-bar select { border-color:#E8E2D8; background:#fff; color:var(--deep); min-height:48px; }
.search-wrap input { border:0; }
.search-wrap button { width:46px; height:46px; margin-right:5px; border-radius:14px; background:var(--brand); color:#fff; display:grid; place-items:center; }
.section-block { margin-top: 32px; }
.section-title h2,.page-heading h1 { color:var(--deep); letter-spacing:-.035em; }
.section-title h2 { font-size:clamp(22px,3vw,30px); }
.text-btn,.admin-link { color:var(--brand); }

.category-strip { gap:11px; padding-bottom:8px; }
.category-icon-btn { width:106px; min-height:112px; padding:12px 9px; border-color:#EEE8DE; border-radius:19px; background:#fff; box-shadow:0 5px 18px rgba(16,42,33,.045); color:var(--deep); }
.category-icon-btn .cat-icon { width:52px; height:52px; display:grid; place-items:center; border-radius:16px; color:var(--brand); background:var(--brand-soft); font-size:0; }
.category-icon-btn:nth-child(3n+2) .cat-icon { color:var(--green); background:var(--green-soft); }
.category-icon-btn:nth-child(3n+3) .cat-icon { color:#D69500; background:#FFF7D7; }
.category-icon-btn:hover { transform:translateY(-3px); border-color:#FFD4B6; }
.category-icon-btn.active { border-color:var(--brand); background:var(--brand); box-shadow:0 10px 25px rgba(255,122,33,.22); }
.category-icon-btn.active .cat-icon { color:var(--brand); background:#fff; }

.horizontal-list,.business-list,.classified-grid { gap:14px; }
.business-card,.classified-card,.about-card,.empty-state,.loading-card { border-color:#EEE7DC; box-shadow:var(--shadow-sm); }
.business-card { border-radius:21px; padding:12px; transition:transform .18s ease,border-color .18s ease; }
.business-card:hover,.classified-card:hover { transform:translateY(-3px); border-color:#FFD5B8; }
.business-image { border-radius:16px; background:var(--green-soft); }
.business-body h3,.classified-content h3 { color:var(--deep); }
.badge { background:#F6F3EC; color:#52645D; }
.icon-badge,.social-stats span,.copy-btn,.like-btn { display:inline-flex; align-items:center; gap:5px; }
.icon-badge .icon,.social-stats .icon,.copy-btn .icon,.like-btn .icon,.classified-location .icon { width:14px; height:14px; flex:0 0 auto; }
.badge.featured,.promoted-tag { background:#FFF2C4; color:#8B6200; }
.classified-card { border-radius:21px; transition:transform .18s ease,border-color .18s ease; }
.classified-image { background:var(--green-soft); }
.classified-price { color:var(--brand-dark); }
.classified-location { color:var(--muted); display:flex; align-items:center; gap:5px; }
.ad-slot { border-color:#E6D4B8; color:#745E3D; background:repeating-linear-gradient(135deg,#FFFDF8,#FFFDF8 12px,#FFF7EA 12px,#FFF7EA 24px); }
.ad-slot span { color:var(--brand); }
.native-ad { background:linear-gradient(135deg,#FFF5E8,#FFF9D8); border-color:#F2D7A2; }
.native-ad span { color:var(--brand-dark); }
.safety-note { background:#FFF7D9; border-color:#F1D36A; color:#73570A; }
.disclaimer-box { background:var(--coral-soft); border-color:#F7C5BF; color:#8E2D22; }
.about-card { border-radius:24px; }
.about-grid article { background:var(--green-soft); }

.bottom-nav { max-width:760px; bottom:18px; border:1px solid rgba(255,255,255,.1); background:rgba(16,42,33,.96); border-radius:22px; box-shadow:0 18px 45px rgba(16,42,33,.25); backdrop-filter:blur(16px); padding:9px 12px; }
.nav-item { color:rgba(255,255,255,.62); border-radius:13px; padding:7px 9px; min-width:72px; }
.nav-item span { font-size:22px; }
.nav-item.active { color:#fff; background:rgba(255,255,255,.1); }
.nav-fab { background:linear-gradient(135deg,#FF8A2A,#FF6F12); border:4px solid var(--deep); box-shadow:0 10px 24px rgba(255,122,33,.35); display:grid; place-items:center; }
.sticky-ad { max-width:720px; bottom:105px; border-radius:14px; background:var(--deep); box-shadow:var(--shadow); }
.sticky-ad button { background:var(--yellow); color:var(--deep); }

dialog { border-radius:26px; box-shadow:0 30px 80px rgba(16,42,33,.25); }
dialog::backdrop { background:rgba(16,42,33,.56); backdrop-filter:blur(5px); }
.sheet-header { background:rgba(255,255,255,.96); }
.close-dialog { display:grid; place-items:center; background:var(--green-soft); color:var(--deep); font-size:16px; }
.form-grid label { color:var(--deep); }
.form-grid input,.form-grid select,.form-grid textarea { border-color:#E3DED3; background:#FFFDF9; }
.form-grid input:focus,.form-grid select:focus,.form-grid textarea:focus,.comment-form input:focus { border-color:var(--brand); box-shadow:0 0 0 4px rgba(255,122,33,.09); outline:0; }
.check-label,.detail-info div,.comment-item,.my-ad-item,.payment-box { background:#FAF8F2; }
.pricing-banner { background:linear-gradient(135deg,#FFF2E6,#FFF7D8); border-color:#F3D19D; color:#7B3E12; }
.free-banner,.account-identity { background:var(--green-soft); color:var(--green-dark); }
.auth-tab { background:#F5F2EB; color:var(--muted); }
.auth-tab.active { background:var(--brand); }
.copy-btn,.contact-actions a { background:var(--green-soft); color:var(--green-dark); }
.friendly-link-box { border-color:#CFE4C1; background:#F4FAF0; }
.friendly-link-box strong,.friendly-link-box a,.account-friendly-url { color:var(--green-dark); }
.like-btn.liked { background:var(--coral-soft); color:var(--coral); }
.comment-form button { background:var(--brand); }
.toast { background:var(--deep); border:1px solid rgba(255,255,255,.12); box-shadow:0 14px 34px rgba(16,42,33,.25); }
.loading-card { position:relative; overflow:hidden; }
.loading-card::after { content:""; display:block; width:54px; height:4px; border-radius:999px; margin:12px auto 0; background:linear-gradient(90deg,var(--brand),var(--yellow),var(--green)); animation:brand-loading 1.1s ease-in-out infinite alternate; }
@keyframes brand-loading { from { transform:scaleX(.3); opacity:.55; } to { transform:scaleX(1); opacity:1; } }

@media (min-width: 820px) {
  .topbar { margin-left:18px; margin-right:18px; }
  .classified-grid { grid-template-columns:repeat(3,1fr); }
  .business-list { grid-template-columns:repeat(2,minmax(0,1fr)); }
  .business-list .native-ad { grid-column:1 / -1; }
  .about-grid { grid-template-columns:repeat(4,1fr); }
}
@media (max-width: 760px) {
  .hero { grid-template-columns:1fr; min-height:0; }
  .hero-mark { position:absolute; width:160px; right:-32px; bottom:-32px; opacity:.16; }
  .hero h1 { max-width:520px; font-size:clamp(34px,10vw,48px); }
}
@media (max-width:520px) {
  .topbar { margin:8px 9px 0; padding:8px 10px; border-radius:18px; }
  .brand-logo { width:43px; height:43px; }
  main { padding-left:12px; padding-right:12px; }
  .hero { border-radius:25px; padding:28px 21px; }
  .hero-actions { display:grid; grid-template-columns:1fr; }
  .bottom-nav { left:50%; right:auto; bottom:10px; transform:translateX(-50%); width:calc(100% - 20px); padding:7px; }
  .nav-item { min-width:0; padding:7px 4px; }
  .nav-item small { font-size:9px; }
  .sticky-ad { left:50%; right:auto; bottom:96px; transform:translateX(-50%); width:calc(100% - 32px); justify-content:center; gap:12px; text-align:center; }
}

/* Mobile alignment hardening — bottom navigation and advertising request */
@media (max-width: 520px) {
  html, body { width: 100%; max-width: 100%; overflow-x: hidden; }

  .bottom-nav {
    left: max(10px, env(safe-area-inset-left));
    right: max(10px, env(safe-area-inset-right));
    width: auto;
    max-width: none;
    margin: 0 auto;
    transform: none;
    justify-content: center;
  }

  .sticky-ad {
    left: max(16px, env(safe-area-inset-left));
    right: max(16px, env(safe-area-inset-right));
    width: auto;
    max-width: none;
    margin: 0 auto;
    transform: none;
    justify-content: center;
    text-align: center;
  }

  #adFormDialog.form-dialog {
    width: calc(100% - 24px);
    max-width: calc(100% - 24px);
    margin: auto;
    padding-left: 16px;
    padding-right: 16px;
  }

  #adFormDialog .sheet-header {
    margin-left: -16px;
    margin-right: -16px;
    padding-left: 16px;
    padding-right: 16px;
  }

  #adFormDialog .sheet-header h2,
  #adFormDialog #adFormError {
    text-align: center;
  }

  #adFormDialog .primary-btn.full,
  [data-open="adForm"].full {
    width: 100%;
    margin-left: auto;
    margin-right: auto;
  }
}

/* Advertising request card — visually centered on phones */
@media (max-width: 520px) {
  .advertising-card { text-align: center; }
  .advertising-card .ad-plan {
    display: inline-block;
    margin: 8px auto 16px;
    text-align: left;
  }
  .advertising-card [data-open="adForm"] {
    display: block;
    width: 100%;
    margin-left: auto;
    margin-right: auto;
  }

  #adFormDialog .sheet-header {
    position: sticky;
    justify-content: center;
    padding-left: 54px;
    padding-right: 54px;
  }
  #adFormDialog .sheet-header h2 {
    width: 100%;
    text-align: center;
  }
  #adFormDialog .sheet-header .close-dialog {
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
  }
}

@media (max-width:520px) {
  .classified-detail-carousel .photo-slide,
  .classified-detail-cover {
    min-height: 380px;
    height: min(64vh, 560px);
  }
  .classified-share-actions { justify-content:stretch; }
  .classified-share-actions .share-btn { width:100%; }
}

/* Publicidade dinâmica */
.ad-region-control { display:flex; justify-content:flex-end; margin:14px 0 -4px; }
.ad-region-control label { display:flex; align-items:center; gap:8px; color:var(--muted); font-size:12px; font-weight:800; }
.ad-region-control select { border:1px solid var(--line); border-radius:12px; background:#fff; padding:9px 11px; color:var(--ink); font-weight:800; }
.ad-slot-dynamic { overflow:hidden; padding:0; position:relative; min-height:128px; }
.ad-slot-dynamic.is-live { border-style:solid; background:#fff; }
.ad-slot-dynamic .dynamic-ad-link { display:block; width:100%; text-decoration:none; color:inherit; position:relative; }
.ad-slot-dynamic .dynamic-ad-image { display:block; width:100%; max-height:250px; min-height:100px; object-fit:cover; background:#f8fafc; }
.ad-slot-dynamic .dynamic-ad-label { position:absolute; left:8px; top:8px; padding:4px 7px; border-radius:999px; background:rgba(16,42,33,.86); color:#fff; font-size:9px; font-weight:900; letter-spacing:.1em; }
.ad-slot-tall .dynamic-ad-image { aspect-ratio:6/5; max-height:360px; }
.ad-empty-action { border:0; background:transparent; color:var(--brand); font-weight:900; margin-top:8px; text-decoration:underline; cursor:pointer; }
.ad-pricing-grid { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:10px; margin:16px 0; }
.ad-price-card { border:1px solid var(--line); border-radius:16px; padding:14px; background:#fff; text-align:left; }
.ad-price-card.recommended { border-color:var(--brand); box-shadow:0 0 0 2px rgba(15,118,110,.08); }
.ad-price-card strong,.ad-price-card span,.ad-price-card small { display:block; }
.ad-price-card strong { color:var(--deep); }
.ad-price-card .ad-price { font-size:22px; color:var(--brand-dark); font-weight:900; margin:5px 0 2px; }
.ad-price-card small { color:var(--muted); line-height:1.35; }
.ad-campaign-item { display:block; background:#FAF8F2; border:1px solid var(--line); border-radius:14px; padding:13px; margin-bottom:10px; }
.ad-campaign-head { display:flex; justify-content:space-between; gap:12px; align-items:flex-start; }
.ad-campaign-head strong { display:block; }
.ad-campaign-meta { color:var(--muted); font-size:12px; margin-top:4px; line-height:1.45; }
.ad-metrics-grid { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:7px; margin-top:10px; }
.ad-metric { background:#fff; border:1px solid var(--line); border-radius:11px; padding:9px; }
.ad-metric strong { font-size:17px; color:var(--deep); }
.ad-metric span { display:block; margin-top:2px; font-size:10px; color:var(--muted); }
.ad-period-title { font-size:10px; font-weight:900; color:var(--brand-dark); letter-spacing:.06em; margin-bottom:4px; }
@media(max-width:520px){
  .ad-pricing-grid{grid-template-columns:1fr;}
  .ad-region-control{justify-content:stretch;}
  .ad-region-control label{width:100%;justify-content:space-between;}
  .ad-region-control select{max-width:65%;}
  .ad-metrics-grid{grid-template-columns:1fr;}
}
.status-active { background:#dcfce7; color:#166534; }
.status-paused { background:#e0e7ff; color:#3730a3; }
.status-expired { background:#e5e7eb; color:#475569; }
.status-pending,.status-draft { background:#fef3c7; color:#92400e; }
