:root {
  /* marca Clube do Figurino */
  --brand: #00aaa9;        /* turquesa */
  --brand-dark: #00797a;   /* turquesa para texto e botão (contraste AA) */
  --brand-soft: #ddf3f3;
  --header: #ffffff;
  --action: #063b80;       /* azul profundo */
  --action-dark: #042c61;
  --action-soft: #e4eff6;
  --link: #0a57b5;         /* azul royal */
  --ok: #088443;
  --warn: #f5a623;
  --danger: #d6293e;
  --bg: #f4fafb;           /* gelo claro */
  --card: #ffffff;
  --text: #1e2a32;
  --muted: #5a6e7a;
  --line: #dce9ee;         /* cinza névoa */
  --radius: 12px;
  --shadow: 0 1px 2px rgba(6, 40, 80, .08);
  --shadow-hover: 0 10px 28px rgba(6, 40, 80, .14);
  --display: 'Playfair Display', Georgia, 'Times New Roman', serif;
  --sans: 'Figtree', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
}
* { box-sizing: border-box; }
html, body { margin: 0; }
body {
  font-family: var(--sans);
  background: var(--bg); color: var(--text); font-size: 15px; line-height: 1.45;
  min-height: 100vh; display: flex; flex-direction: column;
}
main { flex: 1; }
a { color: var(--action); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; display: block; }
button, input, select, textarea { font: inherit; color: inherit; }
.container { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 16px; }
.hidden { display: none !important; }
.muted { color: var(--muted); }
.small { font-size: 13px; }

/* ---------- header ---------- */
.site-header { background: var(--header); box-shadow: 0 1px 0 rgba(0,0,0,.08); position: sticky; top: 0; z-index: 50; }
.header-row { display: flex; align-items: center; gap: 20px; height: 64px; }
.logo { display: flex; align-items: center; gap: 8px; color: var(--text); font-weight: 900; font-size: 19px; white-space: nowrap; letter-spacing: -.3px; }
.logo:hover { text-decoration: none; }
.logo svg { width: 38px; height: 38px; flex: none; }
.logo span b { color: var(--brand); }
.search { flex: 1; display: flex; background: #fff; border-radius: 4px; box-shadow: 0 1px 2px rgba(0,0,0,.2); max-width: 640px; }
.search input { flex: 1; border: 0; outline: 0; padding: 0 14px; height: 40px; background: transparent; min-width: 0; }
.search button { border: 0; background: transparent; padding: 0 14px; cursor: pointer; color: var(--muted); border-left: 1px solid var(--line); }
.search button svg { width: 20px; height: 20px; }
.header-actions { display: flex; align-items: center; gap: 16px; white-space: nowrap; font-size: 14px; }
.header-actions a { color: var(--text); }
.btn-publish { background: var(--brand); color: #fff !important; padding: 8px 14px; border-radius: 6px; font-weight: 700; }
.btn-publish:hover { background: var(--brand-dark); text-decoration: none; }
.badge { display: inline-block; background: var(--danger); color: #fff; border-radius: 10px; font-size: 11px; padding: 0 6px; margin-left: 3px; font-weight: 700; vertical-align: top; }
.nav-row { display: flex; gap: 20px; height: 34px; align-items: center; font-size: 14px; overflow-x: auto; scrollbar-width: none; }
.nav-row::-webkit-scrollbar { display: none; }
.nav-row a { color: rgba(30,42,50,.8); white-space: nowrap; }
.menu-btn { display: none; background: none; border: 0; padding: 6px; cursor: pointer; }

/* ---------- buttons / forms ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; border: 0; border-radius: 6px; padding: 0 18px; height: 44px; font-weight: 700; cursor: pointer; font-size: 15px; transition: background .15s; text-decoration: none !important; }
.btn-primary { background: var(--action); color: #fff; }
.btn-primary:hover { background: var(--action-dark); }
.btn-soft { background: var(--action-soft); color: var(--action); }
.btn-soft:hover { background: #c5eaea; }
.btn-whats { background: #1fa855; color: #fff; }
.btn-whats:hover { background: #178a45; }
.btn-ghost { background: transparent; color: var(--action); }
.btn-ghost:hover { background: var(--action-soft); }
.btn-danger { background: #fdecee; color: var(--danger); }
.btn-sm { height: 34px; padding: 0 12px; font-size: 13px; }
.btn-block { width: 100%; }
.btn:disabled { opacity: .55; cursor: default; }

.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 16px; }
.field label { font-size: 14px; font-weight: 600; }
.field .hint { font-size: 12px; color: var(--muted); }
.input, select.input, textarea.input {
  width: 100%; border: 1px solid #b9cbd3; border-radius: 6px; padding: 10px 12px; background: #fff; outline: 0; min-height: 44px;
}
.input:focus { border-color: var(--action); box-shadow: 0 0 0 3px var(--action-soft); }
textarea.input { min-height: 120px; resize: vertical; }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.row3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 14px; }
.check { display: flex; gap: 10px; align-items: center; cursor: pointer; font-weight: 600; }
.check input { width: 18px; height: 18px; accent-color: var(--action); }
.alert { padding: 12px 14px; border-radius: 6px; margin-bottom: 14px; font-size: 14px; }
.alert-error { background: #fdecee; color: #a3192a; }
.alert-ok { background: #e6f7ee; color: #087a3b; }

.panel { background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); padding: 24px; }
.page-title { font-size: 24px; margin: 24px 0 16px; font-weight: 800; }

/* ---------- home ---------- */
.hero { background: linear-gradient(120deg, #2a1452 0%, #5b3bd6 55%, #e8317a 100%); color: #fff; overflow: hidden; position: relative; }
.hero .container { display: grid; grid-template-columns: 1.2fr 1fr; align-items: center; gap: 30px; padding-top: 40px; padding-bottom: 40px; }
.hero h1 { font-size: 38px; line-height: 1.1; margin: 0 0 12px; font-weight: 900; letter-spacing: -.5px; }
.hero p { font-size: 17px; opacity: .92; margin: 0 0 22px; max-width: 520px; }
.hero-ctas { display: flex; gap: 10px; flex-wrap: wrap; }
.hero .btn-primary { background: #fff; color: var(--action); }
.hero .btn-primary:hover { background: #eaf4f7; }
.hero .btn-soft { background: rgba(255,255,255,.14); color: #fff; border: 1px solid rgba(255,255,255,.4); }
.hero-art { display: flex; justify-content: center; }
.hero-art svg { width: 100%; max-width: 360px; height: auto; }

.deals { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: -26px; position: relative; }
.deal-card { background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); padding: 18px; display: flex; gap: 14px; align-items: center; color: var(--text); transition: box-shadow .15s; }
.deal-card:hover { box-shadow: var(--shadow-hover); text-decoration: none; }
.deal-icon { width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center; flex: none; font-size: 22px; }
.deal-card h3 { margin: 0 0 2px; font-size: 16px; }
.deal-card p { margin: 0; font-size: 13px; color: var(--muted); }

.section { margin: 32px 0; }
.section-head { display: flex; align-items: baseline; gap: 14px; margin-bottom: 14px; }
.section-head h2 { margin: 0; font-size: 22px; font-weight: 700; }
.cats { display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px; }
.cat { background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); padding: 16px 10px; text-align: center; color: var(--text); font-size: 14px; font-weight: 600; transition: box-shadow .15s, transform .15s; }
.cat:hover { box-shadow: var(--shadow-hover); text-decoration: none; transform: translateY(-2px); }
.cat .emoji { font-size: 28px; display: block; margin-bottom: 6px; }

.how { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.how .panel h3 { margin: 6px 0; font-size: 16px; }
.how .panel p { margin: 0; color: var(--muted); font-size: 14px; }
.how .step { width: 32px; height: 32px; border-radius: 50%; background: var(--brand-soft); color: var(--brand); font-weight: 900; display: grid; place-items: center; }

/* ---------- cards ---------- */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 16px; }
.card { background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; display: flex; flex-direction: column; position: relative; transition: box-shadow .15s; color: var(--text); }
.card:hover { box-shadow: var(--shadow-hover); text-decoration: none; }
.card .thumb { aspect-ratio: 1 / 1; background: #eef5f7; border-bottom: 1px solid var(--line); }
.card .thumb img { width: 100%; height: 100%; object-fit: cover; }
.card .body { padding: 12px 14px 16px; display: flex; flex-direction: column; gap: 4px; }
.card .price { font-size: 22px; font-weight: 400; }
.card .price small { font-size: 13px; color: var(--muted); }
.card .title { font-size: 14px; color: #37474f; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.card .loc { font-size: 12px; color: var(--muted); }
.fav { position: absolute; top: 8px; right: 8px; width: 34px; height: 34px; border-radius: 50%; background: rgba(255,255,255,.95); border: 0; box-shadow: var(--shadow); cursor: pointer; display: grid; place-items: center; color: var(--action); }
.fav svg { width: 18px; height: 18px; }
.fav.on svg { fill: var(--action); }
.tags { display: flex; gap: 4px; flex-wrap: wrap; }
.tag { font-size: 11px; font-weight: 700; padding: 2px 7px; border-radius: 3px; text-transform: uppercase; letter-spacing: .3px; }
.tag-venda { background: #e3f6ec; color: #087a3b; }
.tag-aluguel { background: var(--action-soft); color: var(--action); }
.tag-troca { background: #fff2dc; color: #a86600; }
.tag-status { background: #eee; color: #555; }

/* ---------- search ---------- */
.search-layout { display: grid; grid-template-columns: 240px 1fr; gap: 24px; margin: 20px 0 40px; }
.filters h1 { font-size: 22px; margin: 0 0 4px; font-weight: 700; word-break: break-word; }
.filters .count { font-size: 14px; color: var(--muted); margin-bottom: 18px; }
.filter-group { margin-bottom: 22px; }
.filter-group h3 { font-size: 15px; margin: 0 0 8px; font-weight: 700; }
.filter-group a { display: block; color: #37474f; font-size: 14px; padding: 3px 0; }
.filter-group a .n { color: var(--muted); }
.filter-group a.on { color: var(--action); font-weight: 700; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 16px; }
.chip { background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 4px 10px; font-size: 13px; color: var(--text); display: inline-flex; gap: 6px; align-items: center; }
.chip:hover { text-decoration: none; border-color: var(--action); }
.price-range { display: flex; gap: 6px; align-items: center; }
.price-range input { width: 80px; min-height: 36px; padding: 6px 8px; }
.results-head { display: flex; justify-content: flex-end; align-items: center; gap: 8px; margin-bottom: 12px; font-size: 14px; }
.results-head select { min-height: 36px; padding: 4px 8px; width: auto; }
.list { display: flex; flex-direction: column; background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); }
.list-item { display: grid; grid-template-columns: 200px 1fr; gap: 20px; padding: 20px; border-bottom: 1px solid var(--line); color: var(--text); position: relative; }
.list-item:last-child { border-bottom: 0; }
.list-item:hover { text-decoration: none; }
.list-item:hover .li-title { color: var(--action); }
.list-item .thumb { width: 200px; height: 200px; background: #eef5f7; border-radius: 6px; overflow: hidden; }
.list-item .thumb img { width: 100%; height: 100%; object-fit: cover; }
.li-title { font-size: 18px; margin: 4px 0 8px; font-weight: 400; }
.li-price { font-size: 26px; margin: 4px 0; }
.li-sub { font-size: 14px; color: var(--muted); margin: 2px 0; }
.li-green { color: var(--ok); font-weight: 600; font-size: 14px; }
.pager { display: flex; justify-content: center; gap: 8px; margin: 24px 0; }
.empty { text-align: center; padding: 60px 20px; background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); }
.empty h2 { margin: 0 0 8px; }
.filters-toggle { display: none; }

/* ---------- listing page ---------- */
.crumbs { font-size: 14px; margin: 18px 0 12px; color: var(--muted); }
.product { background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); display: grid; grid-template-columns: minmax(0, 1fr) 340px; grid-template-areas: 'gal side' 'main side'; gap: 0; }
.product-gallery { grid-area: gal; padding: 24px 24px 0; border-right: 1px solid var(--line); min-width: 0; }
.product-main { grid-area: main; padding: 0 24px 24px; border-right: 1px solid var(--line); min-width: 0; }
.product-side { grid-area: side; padding: 24px; min-width: 0; }
.gallery { display: grid; grid-template-columns: 56px 1fr; gap: 16px; }
.thumbs { display: flex; flex-direction: column; gap: 8px; }
.thumbs button { width: 56px; height: 56px; border: 1px solid var(--line); border-radius: 6px; padding: 2px; background: #fff; cursor: pointer; overflow: hidden; }
.thumbs button.on { border: 2px solid var(--action); }
.thumbs img { width: 100%; height: 100%; object-fit: cover; border-radius: 4px; }
.main-photo { aspect-ratio: 1 / 1; max-height: 560px; display: grid; place-items: center; background: #fafafa; border-radius: 6px; overflow: hidden; cursor: zoom-in; }
.main-photo img { width: 100%; height: 100%; object-fit: contain; }
.p-meta { font-size: 13px; color: var(--muted); }
.p-title { font-size: 22px; font-weight: 700; margin: 6px 0 12px; line-height: 1.25; }
.offer { border: 1px solid var(--line); border-radius: 8px; padding: 14px; margin-bottom: 12px; }
.offer h4 { margin: 0 0 4px; font-size: 13px; text-transform: uppercase; letter-spacing: .4px; color: var(--muted); }
.offer .big { font-size: 30px; font-weight: 300; }
.offer .big small { font-size: 14px; color: var(--muted); }
.offer p { margin: 4px 0 0; font-size: 14px; }
.specs { display: grid; grid-template-columns: 1fr 1fr; gap: 0; border: 1px solid var(--line); border-radius: 8px; overflow: hidden; margin: 10px 0 24px; }
.specs div { padding: 10px 14px; font-size: 14px; border-bottom: 1px solid var(--line); }
.specs div:nth-child(4n+1), .specs div:nth-child(4n+2) { background: #f4fafb; }
.specs b { display: block; font-size: 12px; color: var(--muted); font-weight: 600; }
.desc { white-space: pre-wrap; font-size: 16px; color: #37474f; }
.p-section { border-top: 1px solid var(--line); padding-top: 24px; margin-top: 24px; }
.p-section h2 { font-size: 20px; margin: 0 0 14px; font-weight: 600; }
.ask { display: flex; gap: 10px; margin-bottom: 20px; }
.ask textarea { min-height: 48px; height: 48px; }
.qa { margin-bottom: 16px; font-size: 15px; }
.qa .q { color: #37474f; }
.qa .a { color: var(--muted); padding-left: 14px; border-left: 2px solid var(--line); margin-top: 4px; }
.qa .when { font-size: 12px; color: #8a9ba5; }
.seller-box { border: 1px solid var(--line); border-radius: 8px; padding: 16px; margin-top: 16px; }
.seller-box h3 { margin: 0 0 8px; font-size: 16px; }
.seller-row { display: flex; gap: 10px; align-items: center; margin-bottom: 10px; }
.avatar { width: 44px; height: 44px; border-radius: 50%; background: var(--brand-soft); color: var(--brand); display: grid; place-items: center; font-weight: 900; flex: none; }
.safety { background: #fff8e6; border-radius: 8px; padding: 12px 14px; font-size: 13px; color: #6b5014; margin-top: 16px; }
.safety b { display: block; margin-bottom: 4px; }
.actions-stack { display: flex; flex-direction: column; gap: 8px; margin-top: 12px; }
.lightbox { position: fixed; inset: 0; background: rgba(4,20,45,.92); z-index: 100; display: grid; place-items: center; padding: 20px; cursor: zoom-out; }
.lightbox img { max-height: 92vh; max-width: 96vw; object-fit: contain; }

/* ---------- publish ---------- */
.publish { max-width: 760px; margin: 0 auto 40px; }
.publish .panel { margin-bottom: 16px; }
.publish h2 { font-size: 18px; margin: 0 0 16px; }
.photo-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)); gap: 10px; }
.photo-slot { aspect-ratio: 1/1; border-radius: 8px; overflow: hidden; position: relative; background: #eef5f7; }
.photo-slot img { width: 100%; height: 100%; object-fit: cover; }
.photo-slot .rm { position: absolute; top: 4px; right: 4px; width: 26px; height: 26px; border-radius: 50%; border: 0; background: rgba(0,0,0,.6); color: #fff; cursor: pointer; font-size: 15px; line-height: 1; }
.photo-slot .cover { position: absolute; bottom: 0; left: 0; right: 0; background: rgba(6,59,128,.9); color: #fff; font-size: 11px; text-align: center; padding: 2px; font-weight: 700; }
.photo-add { aspect-ratio: 1/1; border: 2px dashed #b9cbd3; border-radius: 8px; display: grid; place-items: center; cursor: pointer; color: var(--action); font-weight: 700; font-size: 13px; text-align: center; padding: 8px; background: #fff; }
.photo-add:hover { border-color: var(--action); background: var(--action-soft); }
.deal-box { border: 1px solid var(--line); border-radius: 8px; padding: 14px; margin-bottom: 10px; }
.deal-box .deal-fields { margin-top: 12px; }

/* ---------- auth / account ---------- */
.auth { max-width: 440px; margin: 32px auto 48px; }
.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--line); margin-bottom: 20px; overflow-x: auto; }
.tabs button { background: none; border: 0; padding: 12px 14px; cursor: pointer; font-weight: 700; color: var(--muted); border-bottom: 3px solid transparent; white-space: nowrap; }
.tabs button.on { color: var(--action); border-color: var(--action); }
.account-layout { margin: 0 0 40px; }
.my-item { display: grid; grid-template-columns: 80px 1fr auto; gap: 16px; align-items: center; padding: 14px 0; border-bottom: 1px solid var(--line); }
.my-item:last-child { border-bottom: 0; }
.my-item img { width: 80px; height: 80px; object-fit: cover; border-radius: 6px; }
.my-item .t { font-weight: 700; }
.my-actions { display: flex; gap: 6px; flex-wrap: wrap; justify-content: flex-end; }
.q-item { padding: 14px 0; border-bottom: 1px solid var(--line); }
.q-item .ctx { display: flex; gap: 10px; align-items: center; font-size: 13px; color: var(--muted); margin-bottom: 6px; }
.q-item .ctx img { width: 36px; height: 36px; border-radius: 4px; object-fit: cover; }
.q-item form { display: flex; gap: 8px; margin-top: 8px; }

/* ---------- footer ---------- */
.site-footer { background: #fff; border-top: 1px solid var(--line); padding: 28px 0; font-size: 13px; color: var(--muted); margin-top: 20px; }
.site-footer .container { display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.site-footer b { color: var(--text); }

.toast { position: fixed; bottom: 20px; left: 50%; transform: translateX(-50%); background: #0b2545; color: #fff; padding: 12px 18px; border-radius: 8px; z-index: 200; font-size: 14px; box-shadow: var(--shadow-hover); max-width: calc(100% - 32px); }
.skeleton { background: linear-gradient(90deg, #eee 25%, #f6f6f6 50%, #eee 75%); background-size: 200% 100%; animation: sk 1.2s infinite; border-radius: 6px; }
@keyframes sk { to { background-position: -200% 0; } }

/* ---------- responsive ---------- */
@media (max-width: 960px) {
  .product { grid-template-columns: minmax(0, 1fr); grid-template-areas: 'gal' 'side' 'main'; }
  .product-gallery, .product-main { border-right: 0; }
  .product-side { border-bottom: 1px solid var(--line); }
  .cats { grid-template-columns: repeat(3, 1fr); }
  .hero .container { grid-template-columns: 1fr; }
  .hero-art { display: none; }
}
@media (max-width: 760px) {
  .header-row { flex-wrap: wrap; height: auto; padding: 10px 0; gap: 10px; }
  .logo { flex: 1; font-size: 17px; }
  .search { order: 3; flex-basis: 100%; max-width: none; }
  .header-actions .hide-sm { display: none; }
  .nav-row { gap: 16px; }
  .deals { grid-template-columns: 1fr; margin-top: 16px; }
  .how { grid-template-columns: 1fr; }
  .hero h1 { font-size: 28px; }
  .search-layout { grid-template-columns: 1fr; gap: 12px; }
  .filters-toggle { display: inline-flex; }
  .filters .filter-body { display: none; }
  .filters.open .filter-body { display: block; background: #fff; padding: 16px; border-radius: 8px; box-shadow: var(--shadow); margin-top: 10px; }
  .list-item { grid-template-columns: 110px 1fr; gap: 12px; padding: 14px; }
  .list-item .thumb { width: 110px; height: 110px; }
  .li-title { font-size: 15px; }
  .li-price { font-size: 20px; }
  .gallery { grid-template-columns: 1fr; }
  .thumbs { flex-direction: row; order: 2; overflow-x: auto; }
  .thumbs button { flex: none; }
  .row2, .row3 { grid-template-columns: 1fr; gap: 0; }
  .specs { grid-template-columns: 1fr; }
  .specs div:nth-child(n) { background: #fff; }
  .specs div:nth-child(odd) { background: #f4fafb; }
  .my-item { grid-template-columns: 64px 1fr; }
  .my-item img { width: 64px; height: 64px; }
  .my-actions { grid-column: 1 / -1; justify-content: flex-start; }
  .panel { padding: 18px; }
  .product-main, .product-side { padding: 16px; }
  .product-gallery { padding: 12px 12px 0; }
  .product-main .p-section:first-child { border-top: 0; margin-top: 0; }
  .grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .card .price { font-size: 18px; }
  .card .body { padding: 10px; }
  .ask { flex-direction: column; }
}

/* ===================== v2: CEP, negociação, mensagens ===================== */
.icon-link { position: relative; display: inline-flex; align-items: center; padding: 6px; }
.icon-link svg { width: 22px; height: 22px; }
.icon-link .badge { position: absolute; top: -2px; right: -4px; }
.cep-chip { display: inline-flex; align-items: center; gap: 4px; background: none; border: 0; padding: 0; cursor: pointer; font-size: 13px; color: rgba(30,42,50,.85); white-space: nowrap; flex: none; }
.cep-chip svg { width: 16px; height: 16px; }
.cep-chip:hover span { text-decoration: underline; }
.cep-chip b { font-weight: 700; }

.ribbon { position: absolute; left: 0; top: 10px; background: #f5a623; color: #3b2600; font-size: 11px; font-weight: 800; padding: 3px 10px 3px 8px; border-radius: 0 12px 12px 0; text-transform: uppercase; letter-spacing: .3px; box-shadow: 0 1px 3px rgba(0,0,0,.2); }
.card .thumb, .list-item .thumb { position: relative; }
.card.is-negotiating .thumb img, .list-item.is-negotiating .thumb img { opacity: .82; }
.dist { color: var(--ok); font-weight: 700; }

.modal-bg { position: fixed; inset: 0; background: rgba(4,20,45,.55); z-index: 150; display: grid; place-items: center; padding: 16px; }
.modal { background: #fff; border-radius: 12px; padding: 24px; width: 100%; max-width: 420px; position: relative; box-shadow: var(--shadow-hover); max-height: calc(100vh - 32px); overflow-y: auto; }
.modal h2 { margin: 0 0 6px; font-size: 20px; }
.modal-x { position: absolute; top: 10px; right: 12px; background: none; border: 0; font-size: 26px; cursor: pointer; color: var(--muted); line-height: 1; width: 36px; height: 36px; }
.cep-form { display: flex; gap: 8px; margin: 12px 0; }
.cep-form .input { flex: 1; min-width: 0; }

.cep-banner { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); padding: 16px 20px; margin-top: 16px; }
.cep-banner .txt { flex: 1; min-width: 200px; }
.cep-banner b { display: block; font-size: 16px; }
.cep-banner form { display: flex; gap: 8px; flex: 1; min-width: 240px; max-width: 360px; }
.cep-banner .input { min-width: 0; }

.neg-banner { background: #fff5e0; border: 1px solid #f7d58f; color: #6b4a00; border-radius: 8px; padding: 12px 14px; font-size: 14px; margin-bottom: 12px; }
.neg-banner b { display: block; margin-bottom: 2px; }
.place-box { border: 1px solid var(--line); border-radius: 8px; padding: 12px 14px; margin-bottom: 12px; font-size: 14px; }
.place-box .big-dist { font-size: 18px; font-weight: 800; color: var(--ok); }
.msg-box textarea { min-height: 84px; }
.msg-box .btn { margin-top: 8px; }

/* mensagens */
.inbox { display: grid; grid-template-columns: 320px 1fr; background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); height: calc(100vh - 190px); min-height: 460px; overflow: hidden; margin-bottom: 24px; }
.inbox-list { border-right: 1px solid var(--line); overflow-y: auto; }
.inbox-item { display: grid; grid-template-columns: 52px 1fr; gap: 10px; padding: 12px 14px; border-bottom: 1px solid var(--line); color: var(--text); cursor: pointer; position: relative; }
.inbox-item:hover { background: #f4fafb; text-decoration: none; }
.inbox-item.on { background: var(--action-soft); }
.inbox-item img { width: 52px; height: 52px; border-radius: 6px; object-fit: cover; }
.inbox-item .t { font-weight: 700; font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.inbox-item .s { font-size: 13px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.inbox-item.unread .t::after { content: ''; display: inline-block; width: 8px; height: 8px; background: var(--brand); border-radius: 50%; margin-left: 6px; vertical-align: middle; }
.thread { display: flex; flex-direction: column; min-width: 0; }
.thread-head { display: flex; gap: 12px; align-items: center; padding: 12px 16px; border-bottom: 1px solid var(--line); }
.thread-head img { width: 44px; height: 44px; border-radius: 6px; object-fit: cover; }
.thread-head .info { flex: 1; min-width: 0; }
.thread-head .info a { font-weight: 700; color: var(--text); display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.thread-back { display: none; background: none; border: 0; font-size: 22px; cursor: pointer; padding: 4px 8px; }
.thread-actions { display: flex; gap: 6px; flex-wrap: wrap; padding: 10px 16px; border-bottom: 1px solid var(--line); background: #f7fbfc; font-size: 13px; align-items: center; }
.thread-msgs { flex: 1; overflow-y: auto; padding: 16px; display: flex; flex-direction: column; gap: 8px; background: #f4fafb; }
.bubble { max-width: 78%; padding: 8px 12px; border-radius: 12px; background: #fff; box-shadow: var(--shadow); font-size: 15px; white-space: pre-wrap; word-break: break-word; align-self: flex-start; }
.bubble.mine { align-self: flex-end; background: var(--action); color: #fff; }
.bubble .when { display: block; font-size: 11px; opacity: .65; margin-top: 2px; text-align: right; }
.bubble.sys { align-self: center; background: #fff5e0; color: #6b4a00; font-size: 13px; text-align: center; box-shadow: none; max-width: 90%; }
.thread-form { display: flex; gap: 8px; padding: 12px; border-top: 1px solid var(--line); }
.thread-form textarea { min-height: 44px; height: 44px; resize: none; }
.thread-empty { display: grid; place-items: center; text-align: center; color: var(--muted); padding: 40px; height: 100%; }

/* cadastro */
.steps { display: flex; gap: 6px; margin-bottom: 18px; }
.steps span { flex: 1; height: 4px; border-radius: 2px; background: var(--line); }
.steps span.on { background: var(--action); }
.fieldset-title { font-size: 15px; font-weight: 800; margin: 18px 0 10px; padding-top: 14px; border-top: 1px solid var(--line); }
.fieldset-title:first-of-type { border-top: 0; padding-top: 0; margin-top: 0; }
.code-input { font-size: 28px; letter-spacing: 10px; text-align: center; font-weight: 700; }
.lock-note { background: #eaf4f7; border-radius: 8px; padding: 10px 12px; font-size: 13px; color: #37474f; margin-bottom: 14px; }
.row-cep { display: grid; grid-template-columns: 160px 1fr; gap: 14px; }
.row-num { display: grid; grid-template-columns: 120px 1fr; gap: 14px; }
.row-city { display: grid; grid-template-columns: 1fr 100px; gap: 14px; }

/* admin */
.admin-users { width: 100%; border-collapse: collapse; font-size: 13px; }
.admin-users th, .admin-users td { text-align: left; padding: 8px; border-bottom: 1px solid var(--line); vertical-align: top; }
.admin-users th { background: #f4fafb; font-weight: 700; }
.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.stat-row { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 16px; }
.stat { background: #f4fafb; border-radius: 8px; padding: 10px 14px; min-width: 110px; }
.stat b { display: block; font-size: 20px; }
.legal h2 { font-size: 18px; margin-top: 24px; }

@media (max-width: 760px) {
  .inbox { grid-template-columns: 1fr; height: calc(100vh - 200px); height: calc(100dvh - 200px); min-height: 380px; margin-bottom: 12px; }
  .inbox.has-thread .inbox-list { display: none; }
  .inbox:not(.has-thread) .thread { display: none; }
  .thread-back { display: block; }
  .bubble { max-width: 88%; }
  .row-cep, .row-num, .row-city { grid-template-columns: 1fr; gap: 0; }
  .cep-banner form { max-width: none; }
  .modal { padding: 20px 16px; }
  .btn { min-height: 44px; }
  .btn-sm { min-height: 36px; }
  .admin-users { font-size: 12px; }
  .page-title { font-size: 20px; margin: 16px 0 12px; }
}
@media (max-width: 380px) {
  .logo span { font-size: 15px; }
  .logo svg { width: 32px; height: 32px; }
  .btn-publish { padding: 7px 10px; }
  .header-actions { gap: 10px; }
}

@media (max-width: 760px) { .msg-title { font-size: 18px; margin: 10px 0 8px; } }

/* olhinho da senha */
.pw-wrap { position: relative; }
.pw-wrap .input { padding-right: 48px; }
.pw-eye { position: absolute; right: 2px; top: 50%; transform: translateY(-50%); width: 44px; height: 40px; border: 0; background: none; cursor: pointer; color: var(--muted); display: grid; place-items: center; border-radius: 6px; }
.pw-eye:hover { color: var(--action); }
.pw-eye svg { width: 20px; height: 20px; }

/* interrogações de ajuda */
.help-q { display: inline-grid; place-items: center; width: 20px; height: 20px; border-radius: 50%; border: 1px solid #b9cbd3; background: #fff; color: var(--action); font-size: 12px; font-weight: 800; cursor: pointer; margin-left: 6px; vertical-align: middle; padding: 0; line-height: 1; position: relative; }
.help-q::after { content: ''; position: absolute; inset: -12px; } /* área de toque de 44px */
.help-q:hover, .help-q[aria-expanded="true"] { background: var(--action); color: #fff; border-color: var(--action); }
.help-pop { background: #eaf4f7; border-left: 3px solid var(--action); border-radius: 6px; padding: 8px 12px; font-size: 13px; color: #37474f; margin: 4px 0 8px; font-weight: 400; line-height: 1.45; }
.filter-group h3 .help-q, .offer h4 .help-q { margin-left: 4px; }

.deal-all { margin: 0 0 12px; padding: 10px 14px; background: var(--action-soft); border-radius: 8px; }

/* negociação */
.expires { color: #8a5a00; font-weight: 600; }
.offer-chip { background: #e3f6ec; color: #087a3b; font-weight: 800; padding: 2px 10px; border-radius: 12px; }
.agree-note { color: var(--action); font-weight: 700; }
.bubble.prop { background: #e3f6ec; color: #087a3b; font-weight: 800; }
.bubble.prop.mine { background: #0a8f47; color: #fff; }
.contact-card { margin: 10px 16px; padding: 12px 14px; background: #e6f7ee; border: 1px solid #b6e6c9; border-radius: 8px; font-size: 14px; display: grid; gap: 4px; }
.contact-card b { font-size: 15px; }

.filter-group .sub { padding-left: 12px; border-left: 2px solid var(--line); margin: 2px 0 2px 4px; }

/* ===================== v3: marca Clube do Figurino ===================== */
body { font-size: 16px; line-height: 1.5; -webkit-font-smoothing: antialiased; }
a { color: var(--link); }
:focus-visible { outline: 3px solid rgba(0, 170, 169, .5); outline-offset: 2px; }
h1, h2, .page-title, .fieldset-title { font-family: var(--display); font-style: italic; font-weight: 700; color: var(--action); letter-spacing: -.2px; }
.p-title, .li-title { font-family: var(--sans); font-style: normal; color: var(--text); letter-spacing: 0; }
.eyebrow { font-size: 12px; letter-spacing: .18em; text-transform: uppercase; color: var(--brand-dark); font-weight: 700; margin: 0 0 12px; }

/* cabeçalho */
.site-header { box-shadow: 0 1px 0 var(--line); }
.header-row { height: 72px; }
.logo { gap: 10px; font-family: var(--display); font-style: italic; font-weight: 700; font-size: 22px; color: var(--action); letter-spacing: 0; }
.logo img { width: 46px; height: auto; flex: none; }
.logo span b { color: var(--brand-dark); font-weight: 700; }
.search { background: var(--bg); box-shadow: none; border: 1px solid var(--line); border-radius: 999px; transition: border-color .15s, box-shadow .15s; }
.search:focus-within { border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-soft); background: #fff; }
.search input { padding: 0 18px; height: 42px; }
.search button { border-left: 0; padding: 0 16px; color: var(--action); }
.btn-publish { background: var(--action); border-radius: 999px; padding: 9px 18px; font-weight: 600; }
.btn-publish:hover { background: var(--action-dark); }
.nav-row { height: 40px; border-top: 1px solid var(--line); }
.nav-row a { color: var(--muted); font-weight: 500; }
.nav-row a:hover { color: var(--action); text-decoration: none; }
.cep-chip { color: var(--action); }
.cep-chip svg { color: var(--brand-dark); }

/* botões e campos */
.btn { border-radius: 999px; font-weight: 600; padding: 0 22px; transition: background .15s, box-shadow .15s, border-color .15s; }
.btn-soft { background: var(--brand-soft); color: #00595a; }
.btn-soft:hover { background: #c5eaea; }
.btn-ghost { color: var(--link); }
.btn-sm { padding: 0 14px; }
.input, select.input, textarea.input { border-radius: 10px; }
.input:focus { border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-soft); }
.check input { accent-color: var(--brand-dark); }
.panel { box-shadow: none; border: 1px solid var(--line); }
.alert, .offer, .seller-box, .safety, .deal-box, .place-box, .neg-banner, .specs { border-radius: 10px; }

/* página inicial */
.hero { background: #fff; color: var(--text); border-bottom: 1px solid var(--line); }
.hero .container { padding-top: 56px; padding-bottom: 56px; gap: 48px; }
.hero h1 { font-size: 48px; line-height: 1.08; letter-spacing: -.5px; margin-bottom: 16px; }
.hero p { font-size: 18px; opacity: 1; color: var(--muted); margin-bottom: 28px; }
.hero p.eyebrow { font-size: 12px; color: var(--brand-dark); margin-bottom: 12px; }
.hero .btn-primary { background: var(--action); color: #fff; }
.hero .btn-primary:hover { background: var(--action-dark); }
.hero .btn-soft { background: transparent; color: var(--brand-dark); border: 1.5px solid var(--brand); }
.hero .btn-soft:hover { background: var(--brand-soft); }
.hero-art img { width: 100%; max-width: 400px; height: auto; }
.deals { margin-top: 32px; }
.deal-card { box-shadow: none; border: 1px solid var(--line); padding: 20px; transition: box-shadow .15s, border-color .15s; }
.deal-card:hover { border-color: var(--brand); }
.deal-icon { background: var(--brand-soft); color: var(--brand-dark); }
.deal-icon svg { width: 24px; height: 24px; }
.deal-card h3 { font-size: 17px; color: var(--action); }
.deal-card p { font-size: 14px; }
.cep-banner { box-shadow: none; border: 1px solid var(--line); margin-top: 16px; }
.cep-banner b { color: var(--action); }
.section { margin: 48px 0; }
.section-head h2 { font-size: 26px; font-weight: 700; }
.section-head a { font-weight: 600; font-size: 14px; }
.cats { grid-template-columns: repeat(5, 1fr); gap: 10px; }
.cat { box-shadow: none; border: 1px solid var(--line); border-radius: 999px; padding: 12px 10px; color: var(--action); transition: border-color .15s, background .15s; }
.cat:hover { box-shadow: none; transform: none; border-color: var(--brand); background: var(--brand-soft); }
.how .panel h3 { font-size: 17px; color: var(--action); margin: 12px 0 6px; }
.how .step { width: 36px; height: 36px; background: var(--action); color: #fff; font-family: var(--display); font-style: italic; font-weight: 700; font-size: 18px; }

/* anúncios */
.card { box-shadow: none; border: 1px solid var(--line); border-radius: var(--radius); transition: box-shadow .15s, border-color .15s; }
.card:hover { border-color: #b9dfe2; }
.card .price { font-size: 20px; font-weight: 700; color: var(--action); }
.card .price small, .li-price small { font-weight: 400; }
.li-price { font-weight: 700; color: var(--action); }
.offer .big { font-weight: 600; color: var(--action); }
.fav { color: var(--brand-dark); }
.fav.on svg { fill: var(--brand-dark); }
.list, .product, .empty, .inbox { box-shadow: none; border: 1px solid var(--line); }
.avatar { color: var(--brand-dark); font-family: var(--display); font-style: italic; }
.tabs button.on { color: var(--action); border-color: var(--brand); }
.steps span.on { background: var(--brand); }
.inbox-item.unread .t::after { background: var(--brand); }
.help-q { color: var(--brand-dark); }
.help-q:hover, .help-q[aria-expanded="true"] { background: var(--brand-dark); border-color: var(--brand-dark); }
.help-pop { border-left-color: var(--brand); }
.agree-note { color: var(--brand-dark); }

/* rodapé */
.site-footer { background: var(--action); border-top: 0; color: rgba(255, 255, 255, .82); padding: 40px 0; font-size: 14px; margin-top: 48px; }
.site-footer b { color: #fff; font-family: var(--display); font-style: italic; font-size: 20px; }
.site-footer a { color: #9be3e2; }

@media (max-width: 960px) {
  .cats { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 760px) {
  .header-row { height: auto; }
  .logo { font-size: 19px; }
  .logo img { width: 40px; }
  .hero .container { padding-top: 32px; padding-bottom: 32px; }
  .hero h1 { font-size: 32px; }
  .hero p { font-size: 16px; }
  .section { margin: 32px 0; }
  .section-head h2 { font-size: 22px; }
  .cats { grid-template-columns: repeat(2, 1fr); }
  .deals { margin-top: 20px; }
}
@media (max-width: 380px) {
  .logo span { font-size: 16px; }
  .logo img { width: 34px; }
}
