/* =========================================================
   COMPRANDOJÁ — estilos (mobile first)
   Layout: barra superior fixa + faixa em degradê da marca,
   cartões estilo marketplace, barra inferior no celular.
   ========================================================= */
:root {
  --g1: #3B2FE3;           /* azul-violeta da marca */
  --g2: #9B48D6;           /* roxo */
  --g3: #E0509A;           /* magenta */
  --grad: linear-gradient(118deg, var(--g1) 0%, var(--g2) 52%, var(--g3) 100%);
  --bg: #F5F4FB;
  --card: #FFFFFF;
  --ink: #17142B;
  --muted: #615C7C;
  --line: #E6E3F2;
  --soft: #EEEBFA;
  --brand-text: #4B33D9;
  --price: #C42A7C;
  --wa: #128C4A;
  --wa-hover: #0D7A3F;
  --star: #F5B301;
  --shadow: 0 1px 2px rgba(35, 25, 90, .06), 0 6px 20px rgba(35, 25, 90, .06);
  --shadow-up: 0 2px 6px rgba(35, 25, 90, .08), 0 14px 34px rgba(35, 25, 90, .12);
  --r: 16px;
  --r-sm: 10px;
  --f-display: "Poppins", "Segoe UI", system-ui, sans-serif;
  --f-body: "Inter", "Segoe UI", system-ui, -apple-system, sans-serif;
  --wrap: 1180px;
  --gut-l: max(16px, env(safe-area-inset-left, 0px));
  --gut-r: max(16px, env(safe-area-inset-right, 0px));
  --hdr-h: 60px;
  --bnav-h: 64px;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0E0C1C; --card: #19162E; --ink: #F2F0FB; --muted: #A9A4C6; --line: #2B2747;
    --soft: #241F42; --brand-text: #A99BFF; --price: #F07CB8; --wa: #16A058; --wa-hover: #1DB866;
    --shadow: 0 1px 2px rgba(0,0,0,.4), 0 6px 20px rgba(0,0,0,.25);
    --shadow-up: 0 2px 6px rgba(0,0,0,.45), 0 14px 34px rgba(0,0,0,.4);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #0E0C1C; --card: #19162E; --ink: #F2F0FB; --muted: #A9A4C6; --line: #2B2747;
  --soft: #241F42; --brand-text: #A99BFF; --price: #F07CB8; --wa: #16A058; --wa-hover: #1DB866;
  --shadow: 0 1px 2px rgba(0,0,0,.4), 0 6px 20px rgba(0,0,0,.25);
  --shadow-up: 0 2px 6px rgba(0,0,0,.45), 0 14px 34px rgba(0,0,0,.4);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--hdr-h) + 12px); }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font: 400 15px/1.55 var(--f-body);
  padding-bottom: calc(var(--bnav-h) + env(safe-area-inset-bottom, 0px));
}
body::before {
  content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px);
  z-index: 60; background: var(--card);
}
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--f-display); line-height: 1.18; margin: 0; text-wrap: balance; letter-spacing: -.01em; }
p { margin: 0; }
:focus-visible { outline: 3px solid var(--g2); outline-offset: 2px; border-radius: 6px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding-left: var(--gut-l); padding-right: var(--gut-r); }
.ico { width: 1.15em; height: 1.15em; flex: none; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; vertical-align: -.18em; }
.ico.fill { fill: currentColor; stroke: none; }
.grad-text { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--ink); color: var(--bg); padding: 10px 14px; border-radius: 8px; }
.skip:focus { top: calc(env(safe-area-inset-top, 0px) + 8px); }

/* ---------- cabeçalho ---------- */
.hdr {
  position: sticky; top: env(safe-area-inset-top, 0px); z-index: 50;
  background: var(--card); border-bottom: 1px solid var(--line);
}
.hdr .wrap { height: var(--hdr-h); display: flex; align-items: center; gap: 16px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; min-width: 0; }
.brand img { width: 38px; height: 38px; border-radius: 10px; box-shadow: 0 0 0 2px var(--card), 0 0 0 3px var(--g2); }
.brand b { font: 700 20px/1 var(--f-display); white-space: nowrap; }
.nav { display: none; margin-left: auto; align-items: center; gap: 4px; }
.nav a { text-decoration: none; font-weight: 500; padding: 8px 12px; border-radius: 999px; color: var(--ink); }
.nav a:hover { background: var(--soft); }
.nav a[aria-current="page"] { color: var(--brand-text); background: var(--soft); }
.hdr-cta { margin-left: auto; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font: 600 14px/1 var(--f-body); padding: 11px 18px; border-radius: 999px;
  border: 0; cursor: pointer; text-decoration: none; transition: transform .15s, box-shadow .15s, background .15s;
}
.btn-grad { background: var(--grad); color: #fff; box-shadow: 0 6px 16px rgba(155, 72, 214, .35); }
.btn-grad:hover { transform: translateY(-1px); box-shadow: 0 10px 22px rgba(155, 72, 214, .45); }
.btn-ghost { background: var(--soft); color: var(--brand-text); }
.btn-ghost:hover { background: var(--line); }
.btn-line { background: transparent; color: var(--ink); border: 1px solid var(--line); }
.btn-danger { background: transparent; color: #C0263D; border: 1px solid currentColor; }
.btn-sm { padding: 8px 12px; font-size: 13px; }
@media (min-width: 900px) {
  .nav { display: flex; }
  .hdr-cta { margin-left: 8px; }
}

/* ---------- barra inferior (celular) ---------- */
.bnav {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 50;
  background: var(--card); border-top: 1px solid var(--line);
  padding: 6px var(--gut-r) calc(6px + env(safe-area-inset-bottom, 0px)) var(--gut-l);
  display: grid; grid-template-columns: repeat(5, 1fr);
}
.bnav a {
  display: flex; flex-direction: column; align-items: center; gap: 3px; text-decoration: none;
  font-size: 11px; font-weight: 500; color: var(--muted); padding: 4px 0; border-radius: 10px;
}
.bnav a .ico { width: 22px; height: 22px; }
.bnav a[aria-current="page"] { color: var(--brand-text); }
.bnav a.bnav-cta .ico { background: var(--grad); color: #fff; border-radius: 10px; padding: 4px; width: 30px; height: 30px; margin-top: -4px; }
@media (min-width: 900px) {
  .bnav { display: none; }
  body { padding-bottom: 0; }
}

/* ---------- faixa principal / hero ---------- */
.hero { background: var(--grad); color: #fff; position: relative; overflow: hidden; }
.hero::after {
  content: ""; position: absolute; inset: auto -10% -60% auto; width: 520px; height: 520px; border-radius: 50%;
  background: radial-gradient(circle, rgba(255,255,255,.18), transparent 65%); pointer-events: none;
}
.hero .wrap { padding-block: 40px 44px; position: relative; z-index: 1; text-align: center; }
.hero h1 { font-size: clamp(28px, 7vw, 54px); font-weight: 800; max-width: 760px; margin: 0 auto; }
.hero .lead { margin: 12px auto 0; opacity: .92; font-size: clamp(15px, 2.4vw, 19px); max-width: 560px; }
.search {
  margin: 26px auto 0; max-width: 640px; display: flex; gap: 8px; background: #fff;
  padding: 6px; border-radius: 16px; box-shadow: 0 18px 40px rgba(20, 10, 70, .28);
}
.search label { flex: 1; display: flex; align-items: center; gap: 8px; padding-left: 12px; color: #6B6688; min-width: 0; }
.search input {
  flex: 1; min-width: 0; border: 0; outline: 0; background: transparent; color: #17142B;
  font: 500 16px/1.2 var(--f-body); padding: 12px 0;
}
.search input::placeholder { color: #8D88A8; }
.search:focus-within { box-shadow: 0 0 0 3px rgba(255,255,255,.6), 0 18px 40px rgba(20, 10, 70, .28); }
.search .btn { border-radius: 12px; padding: 0 20px; font-size: 15px; }
.chips { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: 16px; }
.chip {
  font-size: 13px; font-weight: 600; text-decoration: none; padding: 7px 14px; border-radius: 999px;
  background: rgba(255,255,255,.18); color: #fff; border: 1px solid rgba(255,255,255,.25);
}
.chip:hover { background: rgba(255,255,255,.3); }
.hero-stats { display: flex; justify-content: center; gap: 22px; margin-top: 22px; font-size: 13px; opacity: .92; flex-wrap: wrap; }
.hero-stats b { font: 700 18px var(--f-display); display: block; font-variant-numeric: tabular-nums; }
.hero-search { margin-top: 18px; text-align: left; }
.hero-search .search { margin: 0; max-width: 560px; }

.page-hero { background: var(--grad); color: #fff; }
.page-hero .wrap { padding-block: 28px 30px; }
.page-hero h1 { font-size: clamp(26px, 5.5vw, 40px); font-weight: 700; display: flex; align-items: center; gap: 12px; }
.page-hero h1 .emo { font-size: .9em; }
.page-hero p { margin-top: 6px; opacity: .92; max-width: 640px; }
.crumbs { display: flex; flex-wrap: wrap; gap: 6px; font-size: 13px; opacity: .9; margin-bottom: 10px; }
.crumbs a { color: #fff; }

/* ---------- seções ---------- */
.sec { padding-block: 36px; }
.sec + .sec { padding-top: 8px; }
.sec-alt { background: var(--soft); }
.sec-head { display: flex; align-items: end; justify-content: space-between; gap: 12px; margin-bottom: 18px; }
.sec-head h2 { font-size: clamp(22px, 4.4vw, 30px); font-weight: 700; }
.sec-head a { font-weight: 600; color: var(--brand-text); text-decoration: none; white-space: nowrap; font-size: 14px; }
.sec-head a:hover { text-decoration: underline; }

/* ---------- categorias ---------- */
.cats { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 12px; }
.cat {
  background: var(--card); border-radius: var(--r); padding: 18px 12px; text-align: center; text-decoration: none;
  box-shadow: var(--shadow); transition: transform .15s, box-shadow .15s; display: grid; gap: 6px; justify-items: center;
}
.cat:hover { transform: translateY(-3px); box-shadow: var(--shadow-up); }
.cat .emo { font-size: 36px; line-height: 1; }
.cat b { font: 600 14.5px/1.25 var(--f-display); }
.cat small { color: var(--muted); font-size: 12.5px; }
@media (max-width: 599px) {
  .cats.scroll { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 6px; margin-right: calc(-1 * var(--gut-r)); padding-right: var(--gut-r); }
  .cats.scroll .cat { flex: 0 0 116px; scroll-snap-align: start; }
}

/* ---------- bairros ---------- */
.bairros { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 12px; }
.bairro {
  background: var(--card); border-radius: var(--r); padding: 14px 16px; display: flex; align-items: center; gap: 14px;
  text-decoration: none; box-shadow: var(--shadow); transition: transform .15s, box-shadow .15s;
}
.bairro:hover { transform: translateY(-2px); box-shadow: var(--shadow-up); }
.pin { width: 44px; height: 44px; border-radius: 12px; background: var(--grad); color: #fff; display: grid; place-items: center; flex: none; }
.pin .ico { width: 22px; height: 22px; }
.bairro b { font: 600 15.5px/1.2 var(--f-display); display: block; }
.bairro small { color: var(--muted); font-size: 13px; }

/* ---------- cartão de empresa ---------- */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 18px; }
.emp { background: var(--card); border-radius: var(--r); overflow: hidden; box-shadow: var(--shadow); display: flex; flex-direction: column; min-width: 0; }
.emp-img { position: relative; aspect-ratio: 16 / 8; max-width: 100%; }
.emp-img > img, .emp-img > .ph { width: 100%; height: 100%; object-fit: cover; }
.badges { position: absolute; top: 10px; left: 10px; display: flex; gap: 6px; flex-wrap: wrap; }
.badge { display: inline-flex; align-items: center; gap: 4px; font: 600 12px/1 var(--f-body); padding: 6px 10px; border-radius: 999px; background: var(--grad); color: #fff; }
.badge.demo { background: rgba(23, 20, 43, .72); }
.badge.tag { background: var(--soft); color: var(--brand-text); }
.emp-body { min-width: 0; padding: 16px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.emp h3 { font-size: 18px; font-weight: 700; }
.emp h3 a { text-decoration: none; }
.emp h3 a:hover { color: var(--brand-text); }
.loc { display: flex; align-items: center; gap: 5px; color: var(--muted); font-size: 13.5px; }
.desc { color: var(--muted); font-size: 14px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.prods { display: grid; grid-template-columns: minmax(0, 1fr); gap: 8px; margin-top: 8px; min-width: 0; }
.prow { background: var(--bg); border-radius: var(--r-sm); padding: 10px 12px; display: flex; align-items: center; gap: 10px; }
.prow > div { flex: 1; min-width: 0; }
.prow span { display: block; font-size: 14px; font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.price { font-weight: 700; font-variant-numeric: tabular-nums; }
.price s { color: var(--muted); font-weight: 400; font-size: .86em; margin-right: 6px; }
.price .now { color: var(--price); }
.more { text-align: center; margin-top: auto; padding-top: 10px; font-weight: 600; font-size: 14px; color: var(--brand-text); text-decoration: none; }
.more:hover { text-decoration: underline; }

/* foto ilustrativa (quando não há foto real) */
.ph { display: grid; place-items: center; position: relative; color: #fff; overflow: hidden; }
.ph .emo { font-size: 54px; filter: drop-shadow(0 6px 10px rgba(0,0,0,.25)); }
.ph::after {
  content: "ilustração"; position: absolute; right: 8px; bottom: 6px; font-size: 10px; letter-spacing: .06em;
  text-transform: uppercase; opacity: .75;
}

/* ---------- botão WhatsApp ---------- */
.wa {
  display: inline-flex; align-items: center; justify-content: center; gap: 7px; background: var(--wa); color: #fff;
  font: 700 14px/1 var(--f-body); padding: 12px 16px; border-radius: 999px; text-decoration: none; transition: background .15s, transform .15s;
  white-space: nowrap;
}
.wa:hover { background: var(--wa-hover); transform: translateY(-1px); }
.wa.sm { font-size: 12.5px; padding: 8px 12px; }
.wa.block { width: 100%; }
.wa.lg { font-size: 16px; padding: 15px 22px; }
.wa .ico { width: 1.2em; height: 1.2em; }
.wa-note { font-size: 12px; color: var(--muted); text-align: center; }

/* ---------- resultado de produto ---------- */
.pgrid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
@media (min-width: 700px) { .pgrid { grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 16px; } }
.pcard { background: var(--card); border-radius: var(--r); overflow: hidden; box-shadow: var(--shadow); display: flex; flex-direction: column; min-width: 0; }
.pcard .pimg { aspect-ratio: 4 / 3; max-width: 100%; }
.pcard .pimg > img, .pcard .pimg > .ph { width: 100%; height: 100%; object-fit: cover; }
.pcard .ph .emo { font-size: 44px; }
.pbody { padding: 12px; display: flex; flex-direction: column; gap: 4px; flex: 1; }
.pbody h3 { font: 600 14.5px/1.3 var(--f-display); }
.pbody .pdesc { font-size: 12.5px; color: var(--muted); }
.pbody .price { font-size: 17px; margin-top: 2px; }
.pbody .price s { display: block; margin: 0; }
.pemp { font-size: 12.5px; color: var(--muted); border-top: 1px dashed var(--line); padding-top: 8px; margin-top: auto; }
.pemp a { color: var(--ink); font-weight: 600; text-decoration: none; }
.pemp a:hover { color: var(--brand-text); }
.pbody .wa { margin-top: 8px; }
@media (max-width: 420px) { .pbody .wa span { font-size: 12px; } .pbody .wa { padding: 10px 8px; } }

/* ---------- filtros ---------- */
.filters { display: flex; flex-wrap: wrap; gap: 10px; align-items: end; margin-bottom: 18px; }
.field { display: grid; gap: 4px; font-size: 12.5px; font-weight: 600; color: var(--muted); min-width: 0; }
.field select, .field input, .field textarea {
  font: 500 15px/1.3 var(--f-body); color: var(--ink); background: var(--card); border: 1px solid var(--line);
  border-radius: var(--r-sm); padding: 10px 12px; width: 100%; min-width: 0;
}
.field textarea { resize: vertical; min-height: 84px; }
.field select:focus, .field input:focus, .field textarea:focus { outline: 2px solid var(--g2); outline-offset: 0; border-color: transparent; }
.filters .field { flex: 1 1 180px; }
.count { color: var(--muted); font-size: 14px; margin-bottom: 14px; }
.count b { color: var(--ink); }
.sub-h { font-size: 20px; font-weight: 700; margin: 26px 0 14px; }

/* ---------- estado vazio ---------- */
.empty { background: var(--card); border-radius: var(--r); padding: 34px 20px; text-align: center; box-shadow: var(--shadow); display: grid; gap: 12px; justify-items: center; }
.empty .big { font-size: 44px; }
.empty h2 { font-size: 21px; }
.empty p { color: var(--muted); max-width: 460px; }
.empty .acts { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; }
.empty .chips .chip { background: var(--soft); color: var(--brand-text); border-color: transparent; }

/* ---------- página da empresa ---------- */
.ep { display: grid; gap: 18px; margin-top: -46px; position: relative; z-index: 2; }
.ep-card { background: var(--card); border-radius: var(--r); box-shadow: var(--shadow); overflow: hidden; min-width: 0; }
.ep-top { display: grid; }
.ep-top .emp-img { aspect-ratio: 16 / 7; }
.ep-main { padding: 18px; display: grid; gap: 10px; }
.ep-main h1 { font-size: clamp(24px, 5vw, 34px); font-weight: 800; }
.ep-meta { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.ep-main .lead { color: var(--muted); font-size: 15.5px; }
.ep-cta { display: grid; gap: 6px; margin-top: 4px; }
.info { padding: 18px; display: grid; gap: 14px; }
.info h2 { font-size: 17px; }
.info dl { margin: 0; display: grid; gap: 12px; }
.info dt { font-size: 12px; font-weight: 600; letter-spacing: .05em; text-transform: uppercase; color: var(--muted); display: flex; align-items: center; gap: 6px; }
.info dd { margin: 2px 0 0; overflow-wrap: anywhere; }
.info dd a { color: var(--brand-text); }
.info ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 2px; }
.socials { display: flex; flex-wrap: wrap; gap: 8px; }
@media (min-width: 900px) {
  .ep { grid-template-columns: minmax(0, 1fr) 340px; align-items: start; }
  .ep-top { grid-template-columns: 1.05fr 1fr; }
  .ep-top .emp-img { aspect-ratio: auto; min-height: 100%; }
  .ep-side { position: sticky; top: calc(var(--hdr-h) + 16px); }
}

/* ---------- blog ---------- */
.posts { display: grid; gap: 14px; }
.post-card { background: var(--card); border-radius: var(--r); padding: 20px; box-shadow: var(--shadow); text-decoration: none; display: grid; gap: 6px; transition: transform .15s, box-shadow .15s; }
.post-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-up); }
.eyebrow { font-size: 11.5px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--price); }
.post-card h3 { font-size: 19px; font-weight: 700; }
.post-card p { color: var(--muted); }
.post-card time { font-size: 12.5px; color: var(--muted); }
.article { max-width: 700px; margin: 0 auto; background: var(--card); border-radius: var(--r); padding: 26px 20px; box-shadow: var(--shadow); }
.article p { font-size: 16.5px; line-height: 1.7; margin-bottom: 16px; }
.article h2 { font-size: 21px; margin: 26px 0 10px; }
.article .meta { color: var(--muted); font-size: 13.5px; margin-bottom: 18px; }
@media (min-width: 900px) { .posts.cols { grid-template-columns: repeat(3, minmax(0, 1fr)); } .article { padding: 40px 48px; } }

/* ---------- anuncie ---------- */
.anuncie-box {
  background: var(--grad); color: #fff; border-radius: 22px; padding: 26px 22px; display: grid; gap: 18px;
  align-items: center; position: relative; overflow: hidden;
}
.anuncie-box img { width: 120px; height: 120px; border-radius: 50%; border: 4px solid rgba(255,255,255,.5); justify-self: center; }
.anuncie-box h2 { font-size: clamp(22px, 4.6vw, 32px); font-weight: 800; }
.anuncie-box p { opacity: .92; margin-top: 6px; }
.anuncie-box .btn { background: #fff; color: var(--g1); margin-top: 14px; }
@media (min-width: 760px) { .anuncie-box { grid-template-columns: auto 1fr; padding: 32px 40px; gap: 32px; } .anuncie-box img { width: 150px; height: 150px; } }
.feats { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 14px; }
.feat { background: var(--card); border-radius: var(--r); padding: 20px; box-shadow: var(--shadow); display: grid; gap: 6px; }
.feat .pin { width: 40px; height: 40px; }
.feat h3 { font-size: 16.5px; }
.feat p { color: var(--muted); font-size: 14px; }
.steps { counter-reset: s; display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); padding: 0; margin: 0; list-style: none; }
.steps li { counter-increment: s; background: var(--card); border-radius: var(--r); padding: 18px 18px 18px 64px; position: relative; box-shadow: var(--shadow); }
.steps li::before { content: counter(s); position: absolute; left: 18px; top: 16px; width: 32px; height: 32px; border-radius: 50%; background: var(--grad); color: #fff; font: 700 15px/32px var(--f-display); text-align: center; }
.steps b { display: block; font-family: var(--f-display); }
.steps span { color: var(--muted); font-size: 14px; }
.plans { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); }
.plan { background: var(--card); border-radius: var(--r); padding: 22px; box-shadow: var(--shadow); border: 2px solid transparent; display: grid; gap: 10px; align-content: start; }
.plan.hl { border-color: var(--g2); }
.plan h3 { font-size: 19px; }
.plan ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 6px; font-size: 14px; }
.plan li::before { content: "✓"; color: var(--wa); font-weight: 700; margin-right: 8px; }
.plan .val { color: var(--muted); font-size: 13px; }

/* ---------- formulários ---------- */
.form-card { background: var(--card); border-radius: var(--r); padding: 22px 18px; box-shadow: var(--shadow); display: grid; gap: 14px; }
.form-grid { display: grid; gap: 14px; grid-template-columns: 1fr; }
@media (min-width: 700px) { .form-grid { grid-template-columns: 1fr 1fr; } .form-grid .full { grid-column: 1 / -1; } .form-card { padding: 28px; } }
.field .hint { font-weight: 400; font-size: 12px; color: var(--muted); }
.field.err input, .field.err select { border-color: #C0263D; }
.field .msg { color: #C0263D; font-weight: 500; }
.check { display: flex; align-items: center; gap: 8px; font-weight: 500; font-size: 14px; color: var(--ink); }
.check input { width: 18px; height: 18px; accent-color: var(--g2); }
.ok-box { background: var(--soft); border-radius: var(--r); padding: 20px; display: grid; gap: 10px; }
.ok-box h3 { font-size: 18px; }
.notice { background: var(--soft); color: var(--ink); border-radius: var(--r-sm); padding: 12px 14px; font-size: 13.5px; display: flex; gap: 10px; align-items: flex-start; }
.copyline { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.copyline code { font: 500 15px var(--f-body); user-select: all; background: var(--soft); padding: 6px 10px; border-radius: 8px; overflow-wrap: anywhere; }

/* ---------- painel de cadastro ---------- */
.tabs { display: flex; gap: 6px; overflow-x: auto; padding-bottom: 4px; margin-bottom: 16px; }
.tabs button { font: 600 14px var(--f-body); border: 1px solid var(--line); background: var(--card); color: var(--ink); padding: 9px 16px; border-radius: 999px; cursor: pointer; white-space: nowrap; }
.tabs button[aria-selected="true"] { background: var(--grad); color: #fff; border-color: transparent; }
.adm-list { display: grid; gap: 10px; }
.adm-row { background: var(--card); border-radius: var(--r-sm); padding: 12px 14px; box-shadow: var(--shadow); display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.adm-row .t { flex: 1 1 200px; min-width: 0; }
.adm-row .t b { display: block; font-family: var(--f-display); }
.adm-row .t small { color: var(--muted); }
.adm-row .acts { display: flex; gap: 6px; flex-wrap: wrap; }
.pill { font-size: 11.5px; font-weight: 600; padding: 3px 8px; border-radius: 999px; background: var(--soft); color: var(--brand-text); margin-left: 6px; }
.pill.off { background: #FBE3E7; color: #A3172E; }
.prod-ed { border: 1px dashed var(--line); border-radius: var(--r-sm); padding: 14px; display: grid; gap: 10px; grid-template-columns: 1fr; position: relative; }
@media (min-width: 700px) { .prod-ed { grid-template-columns: 2fr 1fr 1fr; } .prod-ed .full { grid-column: 1 / -1; } }
.thumb { width: 72px; height: 54px; border-radius: 8px; object-fit: cover; background: var(--soft); }
.fieldset { border: 1px solid var(--line); border-radius: var(--r); padding: 16px; display: grid; gap: 12px; }
.fieldset > legend { font: 700 15px var(--f-display); padding: 0 6px; }
details.fieldset > summary { cursor: pointer; font: 700 15px var(--f-display); }
.export textarea { font: 12.5px/1.45 ui-monospace, SFMono-Regular, Menlo, monospace; min-height: 260px; }
.toolbar { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.inline-ed { display: grid; grid-template-columns: 64px minmax(0, 1fr) auto; gap: 8px; align-items: end; background: var(--card); padding: 10px; border-radius: var(--r-sm); box-shadow: var(--shadow); }
.inline-ed .field.full { grid-column: 1 / -1; }
.inline-ed.b { grid-template-columns: minmax(0, 1fr) auto; }

/* ---------- aviso flutuante ---------- */
.toast {
  position: fixed; left: 50%; transform: translateX(-50%) translateY(20px); opacity: 0;
  bottom: calc(var(--bnav-h) + 16px + env(safe-area-inset-bottom, 0px)); z-index: 90;
  background: var(--ink); color: var(--bg); padding: 12px 18px; border-radius: 12px; font-weight: 500;
  transition: opacity .2s, transform .2s; max-width: calc(100% - 32px); pointer-events: none;
}
.toast.on { opacity: 1; transform: translateX(-50%) translateY(0); }
@media (min-width: 900px) { .toast { bottom: 24px; } }

/* ---------- rodapé ---------- */
.foot { background: #12102A; color: #CFCBE6; margin-top: 40px; }
.foot .wrap { padding-block: 36px 24px; }
.foot-grid { display: grid; gap: 26px; grid-template-columns: 1fr 1fr; }
.foot-grid > div:first-child { grid-column: 1 / -1; }
.foot .brand b { color: #fff; }
.foot p { font-size: 14px; margin-top: 10px; max-width: 280px; }
.foot h3 { color: #fff; font-size: 15px; margin-bottom: 10px; }
.foot ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; font-size: 14px; }
.foot a { color: #CFCBE6; text-decoration: none; }
.foot a:hover { color: #fff; text-decoration: underline; }
.foot .socials a { width: 38px; height: 38px; border-radius: 50%; background: rgba(255,255,255,.08); display: grid; place-items: center; }
.foot .socials a:hover { background: rgba(255,255,255,.18); }
.foot-bottom { border-top: 1px solid rgba(255,255,255,.1); margin-top: 26px; padding-top: 16px; font-size: 12.5px; text-align: center; color: #9C97BC; }
@media (min-width: 900px) { .foot-grid { grid-template-columns: 1.4fr 1fr 1fr 1.2fr; } .foot-grid > div:first-child { grid-column: auto; } }

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