:root {
  --primary: #0f9d6b; --primary-dark: #0b7a53; --side-from: #0b6b4f; --side-to: #0a3d4a; --accent: #f59e0b;
  --bg: #f6f8f7; --card: #fff; --line: #e3e8e6; --text: #10201b; --muted: #5d6b66; --danger: #c0392b;
  --radius: 14px; --shadow: 0 1px 2px rgba(16, 32, 27, .05), 0 6px 20px rgba(16, 32, 27, .05);
}
* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; }
body { font: 15px/1.5 Inter, "Segoe UI", system-ui, -apple-system, sans-serif; color: var(--text); background: var(--bg); }
h1 { font-size: 26px; margin: 0; letter-spacing: -.02em; }
h2 { font-size: 18px; margin: 0 0 6px; }
h3 { font-size: 15px; margin: 0 0 4px; }
p { margin: 0 0 10px; }
a { color: var(--primary-dark); }
.muted { color: var(--muted); }
.small { font-size: 13px; }
svg.ic { width: 18px; height: 18px; flex: none; stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* layout */
.shell { display: flex; min-height: 100vh; }
.side { width: 250px; flex: none; background: linear-gradient(170deg, var(--side-from), var(--side-to)); color: #fff; padding: 18px 10px; position: sticky; top: 0; height: 100vh; overflow-y: auto; }
.brand { display: flex; align-items: center; gap: 10px; padding: 0 6px 16px; }
.brand .logo { width: 38px; height: 38px; border-radius: 11px; background: rgba(255, 255, 255, .16); display: grid; place-items: center; }
.brand b { display: block; font-size: 16px; line-height: 1.15; }
.brand span { font-size: 12px; opacity: .8; }
.brand .pf { margin-left: auto; background: rgba(255, 255, 255, .12); border: 1px solid rgba(255, 255, 255, .25); color: #fff; border-radius: 99px; padding: 6px 10px; font: inherit; font-size: 12px; font-weight: 600; cursor: pointer; display: flex; gap: 5px; align-items: center; }
.nav-sec { font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; opacity: .75; padding: 14px 12px 6px; border-top: 1px solid rgba(255, 255, 255, .14); margin-top: 10px; }
.nav a { display: flex; align-items: center; gap: 10px; padding: 9px 12px; border-radius: 10px; color: #fff; text-decoration: none; font-size: 14px; margin: 2px 0; }
.nav a:hover { background: rgba(255, 255, 255, .1); }
.nav a.on { background: #fff; color: var(--side-from); font-weight: 600; }
.main { flex: 1; min-width: 0; padding: 30px 34px 60px; }
.wrap { max-width: 1180px; margin: 0 auto; }
.head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; margin-bottom: 22px; flex-wrap: wrap; }
.head .acts { display: flex; gap: 8px; flex-wrap: wrap; }
.btn.menu-btn { display: none; }
@media (max-width: 820px) {
  .side { position: fixed; z-index: 30; transform: translateX(-100%); transition: transform .2s; }
  .side.open { transform: none; }
  .main { padding: 64px 16px 40px; }
  .btn.menu-btn { display: flex; position: fixed; top: 12px; left: 12px; z-index: 20; }
}

/* componentes */
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 22px; }
.grid { display: grid; gap: 18px; }
.g3 { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.g2 { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.g4 { grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); }
.stat .bub { width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center; background: color-mix(in srgb, var(--primary) 12%, #fff); color: var(--primary-dark); margin-bottom: 14px; }
.stat .n { font-size: 26px; font-weight: 700; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 1px solid var(--line); background: #fff; color: var(--text); border-radius: 10px; padding: 9px 15px; font: inherit; font-weight: 600; font-size: 14px; cursor: pointer; text-decoration: none; white-space: nowrap; }
.btn:hover { border-color: #c5cfcb; }
.btn.pri { background: var(--primary); border-color: var(--primary); color: #fff; }
.btn.pri:hover { background: var(--primary-dark); }
.btn.danger { color: var(--danger); }
.btn.sm { padding: 5px 10px; font-size: 13px; }
.btn:disabled { opacity: .55; cursor: not-allowed; }
.btn:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible, a:focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; }
label { display: block; font-weight: 600; font-size: 13px; margin: 12px 0 5px; }
input, select, textarea { width: 100%; border: 1px solid var(--line); border-radius: 10px; padding: 9px 12px; font: inherit; background: #fff; color: var(--text); }
input[type=checkbox] { width: auto; margin-right: 8px; }
textarea { min-height: 84px; resize: vertical; }
.check { display: flex; align-items: flex-start; font-weight: 500; }
.row { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.row.end { justify-content: flex-end; margin-top: 18px; }
.sp { flex: 1; }
.tabs { display: inline-flex; background: #e4e9e7; border-radius: 12px; padding: 4px; margin-bottom: 18px; }
.tabs button { border: 0; background: none; padding: 8px 18px; border-radius: 9px; font: inherit; font-weight: 600; font-size: 14px; color: var(--muted); cursor: pointer; }
.tabs button.on { background: #fff; color: var(--primary-dark); box-shadow: 0 0 0 2px var(--primary) inset; }
.empty { text-align: center; padding: 48px 20px; }
.empty .bub { width: 52px; height: 52px; margin: 0 auto 14px; border-radius: 14px; display: grid; place-items: center; background: color-mix(in srgb, var(--primary) 12%, #fff); color: var(--primary-dark); }
.badge { display: inline-block; font-size: 12px; font-weight: 600; padding: 2px 9px; border-radius: 99px; background: #e8edeb; color: var(--muted); }
.badge.ok { background: #d9f3e6; color: #0b6b47; }
.badge.warn { background: #fdecc8; color: #8a5a00; }
.badge.bad { background: #fbdcd8; color: #9c2b1f; }
table { width: 100%; border-collapse: collapse; font-size: 14px; }
th { text-align: left; font-size: 12px; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); padding: 8px 10px; border-bottom: 1px solid var(--line); }
td { padding: 10px; border-bottom: 1px solid var(--line); vertical-align: middle; }
tr:last-child td { border-bottom: 0; }
.tscroll { overflow-x: auto; }
.bar { height: 6px; background: #e8edeb; border-radius: 99px; overflow: hidden; }
.bar i { display: block; height: 100%; background: var(--primary); }
.chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.chip { border: 1px solid var(--line); background: #fff; border-radius: 99px; padding: 4px 11px; font: inherit; font-size: 13px; cursor: pointer; }
.chip.on { background: var(--primary); border-color: var(--primary); color: #fff; }
.item { display: flex; gap: 14px; align-items: center; padding: 14px 0; border-bottom: 1px solid var(--line); }
.item:last-child { border-bottom: 0; }
.item .t { font-weight: 600; }
.click { cursor: pointer; }
.note { background: #fff8e6; border: 1px solid #f4dfa8; color: #6b4b00; border-radius: 10px; padding: 10px 14px; font-size: 13px; margin-bottom: 16px; }

/* modal, popover, toast */
.ov { position: fixed; inset: 0; background: rgba(10, 30, 25, .45); z-index: 50; display: grid; place-items: start center; padding: 6vh 16px; overflow-y: auto; }
.modal { background: #fff; border-radius: 16px; width: 100%; max-width: 520px; padding: 24px; box-shadow: 0 20px 60px rgba(0, 0, 0, .25); }
.modal.wide { max-width: 820px; }
.modal .mh { display: flex; justify-content: space-between; align-items: center; margin-bottom: 6px; }
.x { border: 0; background: none; font-size: 22px; cursor: pointer; color: var(--muted); line-height: 1; padding: 4px 8px; }
.pop { position: fixed; top: 70px; left: 14px; width: 290px; background: #fff; color: var(--text); border-radius: 16px; box-shadow: 0 16px 50px rgba(0, 0, 0, .25); padding: 18px; z-index: 40; }
.pop button.li { display: flex; gap: 10px; align-items: center; width: 100%; border: 0; background: none; padding: 9px 4px; font: inherit; cursor: pointer; border-radius: 8px; text-align: left; }
.pop button.li:hover { background: #f1f5f3; }
#toast-root { position: fixed; bottom: 20px; right: 20px; z-index: 60; display: grid; gap: 8px; }
.toast { background: #10201b; color: #fff; padding: 11px 16px; border-radius: 10px; font-size: 14px; max-width: 360px; }
.toast.err { background: var(--danger); }

/* login */
.auth { min-height: 100vh; display: grid; place-items: center; padding: 20px; background: linear-gradient(160deg, var(--side-from), var(--side-to)); }
.auth .card { width: 100%; max-width: 400px; padding: 30px; }
.auth .links { display: flex; justify-content: center; gap: 16px; margin-top: 16px; font-size: 13px; }

/* stepper do ranking */
.steps { display: flex; justify-content: center; gap: 44px; margin-bottom: 22px; }
.step { text-align: center; font-size: 13px; font-weight: 600; color: var(--muted); }
.step i { display: grid; place-items: center; width: 38px; height: 38px; margin: 0 auto 6px; border-radius: 50%; border: 2px solid var(--line); background: #fff; font-style: normal; }
.step.on { color: var(--text); }
.step.on i { background: var(--primary); border-color: var(--primary); color: #fff; }
.geo { display: grid; gap: 8px; justify-content: center; padding: 22px; background: repeating-linear-gradient(45deg, #eef3f1, #eef3f1 12px, #e7eeeb 12px, #e7eeeb 24px); border-radius: 14px; }
.geo span { width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; color: #fff; font-weight: 700; font-size: 14px; box-shadow: 0 2px 6px rgba(0, 0, 0, .2); }
.r-top { background: #12a150; } .r-mid { background: #e08a00; } .r-low { background: #d4572b; } .r-out { background: #8d9995; font-size: 11px !important; }

/* proposta */
.editor { display: grid; grid-template-columns: minmax(300px, 420px) 1fr; gap: 18px; align-items: start; }
@media (max-width: 1000px) { .editor { grid-template-columns: 1fr; } }
.blk { border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; margin-bottom: 10px; background: #fff; }
.blk .bh { display: flex; align-items: center; gap: 6px; font-weight: 700; font-size: 13px; text-transform: uppercase; color: var(--muted); }
.prop { background: #fff; border-radius: 14px; overflow: hidden; border: 1px solid var(--line); }
.prop section { padding: 44px 40px; border-bottom: 1px solid var(--line); }
.prop.slide section { min-height: 78vh; display: flex; flex-direction: column; justify-content: center; }
.prop section:last-child { border-bottom: 0; }
.prop .hero { background: linear-gradient(150deg, var(--side-from), var(--side-to)); color: #fff; }
.prop .hero h1 { font-size: 38px; line-height: 1.15; margin-bottom: 12px; }
.prop h2 { font-size: 24px; margin-bottom: 14px; }
.prop .price { font-size: 44px; font-weight: 800; color: var(--primary-dark); }
.prop ul { padding-left: 20px; margin: 0; }
.prop li { margin-bottom: 8px; }
.prop .cta { text-align: center; }
.prop .cta .btn { font-size: 17px; padding: 14px 30px; }
.pub { max-width: 900px; margin: 0 auto; padding: 24px 16px 60px; }
.plan { text-align: center; }
.plan .v { font-size: 32px; font-weight: 800; margin: 8px 0; }
@media print { .side, .menu-btn, .acts, .noprint { display: none !important; } .main { padding: 0; } .card { box-shadow: none; } }
@media (max-width: 820px) { .item { flex-wrap: wrap; } .item .sp { min-width: 60%; } }

/* Gestão GBP */
.gbar { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; margin-bottom: 16px; }
.picker { position: relative; flex: 1; min-width: 260px; }
.pbtn { display: flex; align-items: center; gap: 12px; width: 100%; background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 9px 14px; font: inherit; cursor: pointer; line-height: 1.3; }
.pdrop { position: absolute; z-index: 20; top: calc(100% + 6px); left: 0; width: min(520px, 92vw); max-height: 70vh; overflow-y: auto; background: #fff; border: 1px solid var(--line); border-radius: 14px; box-shadow: 0 16px 50px rgba(0, 0, 0, .18); padding: 12px; }
.prow { display: flex; align-items: center; gap: 8px; border-radius: 10px; }
.prow:hover { background: #f1f5f3; }
.prow .pl { flex: 1; display: grid; text-align: left; border: 0; background: none; font: inherit; padding: 9px 8px; cursor: pointer; }
.fav { border: 0; background: none; font-size: 20px; color: #c2570c; cursor: pointer; padding: 6px 10px; }
.acct { position: relative; }
.acct summary { list-style: none; display: flex; align-items: center; gap: 8px; background: #fff; border: 1px solid var(--line); border-radius: 99px; padding: 9px 14px; cursor: pointer; font-size: 14px; }
.acct summary::-webkit-details-marker { display: none; }
.avatar { width: 40px; height: 40px; border-radius: 50%; flex: none; display: grid; place-items: center; background: var(--side-from); color: #fff; font-weight: 700; object-fit: cover; }
.subtabs button { border: 0; background: none; font: inherit; font-size: 14px; padding: 8px 12px; cursor: pointer; color: var(--muted); border-bottom: 2px solid transparent; }
.subtabs button.on { color: var(--primary-dark); border-color: var(--primary); font-weight: 600; }
.pw-wrap { position: relative; display: block; }
.pw-wrap input { padding-right: 42px; }
.pw-eye { position: absolute; right: 6px; top: 50%; transform: translateY(-50%); border: 0; background: none; cursor: pointer; color: var(--muted); padding: 6px; display: grid; place-items: center; border-radius: 8px; }
.pw-eye:hover { color: var(--primary-dark); background: rgba(0,0,0,.05); }
