/* ==========================================================================
   Pague More — estilos
   Fundo sempre branco. Para aplicar as cores da marca, troque só as variáveis
   --brand, --brand-ink, --brand-soft e --brand-strong abaixo.
   ========================================================================== */
:root {
  --brand: #1d5b69;
  --brand-strong: #164854;
  --brand-soft: #e8f1f3;
  --brand-ink: #ffffff;

  --bg: #ffffff;
  --panel: #f8fafb;
  --ink: #111827;
  --ink-2: #374151;
  --muted: #6b7280;
  --line: #e5e7eb;
  --line-2: #d1d5db;

  --ok: #16a34a;
  --ok-soft: #dcfce7;
  --warn: #ca8a04;
  --warn-bright: #facc15;
  --warn-soft: #fef9c3;
  --bad: #dc2626;
  --bad-soft: #fee2e2;
  --off: #9ca3af;
  --off-soft: #f3f4f6;
  --info-soft: #e0f2fe;

  --radius: 12px;
  --radius-sm: 8px;
  --shadow: 0 1px 2px rgba(17, 24, 39, .05), 0 4px 16px rgba(17, 24, 39, .05);
  --font: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 15px/1.5 var(--font); }
img { max-width: 100%; display: block; }
a { color: var(--brand); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3, h4 { margin: 0 0 .5rem; line-height: 1.25; letter-spacing: -.01em; }
h1 { font-size: 1.6rem; }
h2 { font-size: 1.2rem; }
h3 { font-size: 1.02rem; }
p { margin: 0 0 1rem; }
small, .muted { color: var(--muted); }
.hidden { display: none !important; }
.nowrap { white-space: nowrap; }
.mono { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: .9em; }
.right { text-align: right; }
.center { text-align: center; }
.mt { margin-top: 1rem; } .mt2 { margin-top: 2rem; } .mb { margin-bottom: 1rem; } .mb0 { margin-bottom: 0; }
.row { display: flex; gap: .75rem; align-items: center; flex-wrap: wrap; }
.row.between { justify-content: space-between; }
.stack > * + * { margin-top: .75rem; }
.grow { flex: 1; }

/* ---------- Marca ---------- */
.brand { display: inline-flex; align-items: center; gap: .55rem; font-weight: 800; font-size: 1.15rem; color: var(--ink); letter-spacing: -.02em; }
.brand:hover { text-decoration: none; }
.brand-logo { display: block; height: 38px; width: auto; }
@media (max-width: 480px) { .site-header .brand-logo { height: 32px; } }
.auth-card .brand-logo { height: 56px; margin: 0 auto; }
.sidebar .brand-logo { height: 32px; }
.brand-mark { width: 30px; height: 30px; border-radius: 9px; background: var(--brand); color: var(--brand-ink); display: grid; place-items: center; font-size: .8rem; font-weight: 800; }
.brand b { color: var(--brand); }

/* ---------- Botões ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .4rem; min-height: 40px; padding: .5rem 1rem; border-radius: var(--radius-sm);
  border: 1px solid var(--line-2); background: #fff; color: var(--ink); font: 600 .92rem/1.2 var(--font); cursor: pointer; text-decoration: none; white-space: nowrap; }
.btn:hover { background: var(--panel); text-decoration: none; }
.btn-primary { background: var(--brand); border-color: var(--brand); color: var(--brand-ink); }
.btn-primary:hover { background: var(--brand-strong); }
.btn-danger { color: var(--bad); border-color: #fecaca; }
.btn-danger:hover { background: var(--bad-soft); }
.btn-ok { background: var(--ok); border-color: var(--ok); color: #fff; }
.btn-ok:hover { background: #15803d; }
.btn-sm { min-height: 32px; padding: .3rem .7rem; font-size: .85rem; }
.btn-lg { min-height: 52px; padding: .8rem 1.6rem; font-size: 1.05rem; border-radius: 10px; }
.btn-block { width: 100%; }

/* ---------- Formulários ---------- */
label { display: block; font-weight: 600; font-size: .88rem; color: var(--ink-2); margin-bottom: .3rem; }
.field { margin-bottom: 1rem; }
.field .hint { font-weight: 400; color: var(--muted); font-size: .82rem; margin-top: .25rem; }
.field .error { color: var(--bad); font-size: .82rem; margin-top: .25rem; font-weight: 600; }
.field.has-error input, .field.has-error select, .field.has-error textarea { border-color: var(--bad); }
input[type=text], input[type=email], input[type=password], input[type=tel], input[type=number], input[type=date], input[type=datetime-local], input[type=url], input[type=search], select, textarea {
  width: 100%; min-height: 42px; padding: .55rem .75rem; border: 1px solid var(--line-2); border-radius: var(--radius-sm); background: #fff; color: var(--ink); font: inherit; }
textarea { min-height: 96px; resize: vertical; }
input:focus, select:focus, textarea:focus { outline: 2px solid var(--brand-soft); border-color: var(--brand); }
input[type=file] { font: inherit; width: 100%; padding: .5rem; border: 1px dashed var(--line-2); border-radius: var(--radius-sm); background: var(--panel); }
.check { display: flex; gap: .55rem; align-items: flex-start; font-weight: 500; }
.check input { margin-top: .25rem; width: 18px; height: 18px; accent-color: var(--brand); }
.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 1rem; }
.grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 1rem; }
.grid-4 { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0 1rem; }
fieldset { border: 1px solid var(--line); border-radius: var(--radius); padding: 1rem 1.1rem .2rem; margin: 0 0 1.25rem; }
legend { font-weight: 700; padding: 0 .4rem; }

/* ---------- Cartões, tabelas, badges ---------- */
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 1.15rem 1.25rem; }
.card + .card { margin-top: 1rem; }
.card-title { display: flex; align-items: center; justify-content: space-between; gap: .75rem; margin-bottom: .8rem; }
.card-title h2, .card-title h3 { margin: 0; }
.table-wrap { width: 100%; overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: .92rem; }
th { text-align: left; font-size: .76rem; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); font-weight: 700; padding: .55rem .6rem; border-bottom: 1px solid var(--line); white-space: nowrap; }
td { padding: .6rem; border-bottom: 1px solid var(--line); vertical-align: top; }
tr:last-child td { border-bottom: 0; }
tbody tr:hover td { background: #fcfcfd; }
.badge { display: inline-flex; align-items: center; gap: .35rem; padding: .14rem .55rem; border-radius: 999px; font-size: .76rem; font-weight: 700; background: var(--off-soft); color: var(--ink-2); white-space: nowrap; }
.badge::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; opacity: .85; }
.badge.plain::before { display: none; }
.b-ok, .b-available, .b-paid, .b-active, .b-approved, .b-sent, .b-pago { background: var(--ok-soft); color: #166534; }
.b-warn, .b-reserved, .b-pending, .b-pending_review, .b-awaiting_reservation, .b-queued, .b-sending, .b-visita_agendada, .b-negociando { background: var(--warn-soft); color: #854d0e; }
.b-bad, .b-occupied, .b-overdue, .b-rejected, .b-failed, .b-blocked { background: var(--bad-soft); color: #991b1b; }
.b-off, .b-maintenance, .b-cancelled, .b-expired, .b-ended, .b-former, .b-perdido { background: var(--off-soft); color: #4b5563; }
.b-info, .b-novo, .b-reservado { background: var(--info-soft); color: #075985; }

.alert { padding: .8rem 1rem; border-radius: var(--radius-sm); border: 1px solid var(--line); margin-bottom: 1rem; font-weight: 500; word-break: break-word; }
.alert-success { background: var(--ok-soft); border-color: #bbf7d0; color: #14532d; }
.alert-error { background: var(--bad-soft); border-color: #fecaca; color: #7f1d1d; }
.alert-warning { background: var(--warn-soft); border-color: #fde68a; color: #713f12; }
.alert-info { background: var(--info-soft); border-color: #bae6fd; color: #0c4a6e; }

.kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1rem; margin-bottom: 1.25rem; }
.kpi { border: 1px solid var(--line); border-radius: var(--radius); padding: 1rem 1.1rem; background: #fff; }
.kpi .label { font-size: .8rem; color: var(--muted); font-weight: 600; }
.kpi .value { font-size: 1.5rem; font-weight: 800; letter-spacing: -.02em; margin-top: .15rem; font-variant-numeric: tabular-nums; }
.kpi .sub { font-size: .82rem; color: var(--muted); }
.kpi.accent { border-color: var(--brand); background: var(--brand-soft); }
.dl { display: grid; grid-template-columns: 170px 1fr; gap: .35rem 1rem; margin: 0; font-size: .92rem; }
.dl dt { color: var(--muted); font-weight: 600; }
.dl dd { margin: 0; word-break: break-word; }

.bar { height: 10px; background: var(--off-soft); border-radius: 99px; overflow: hidden; display: flex; }
.bar span { display: block; height: 100%; }
.bar .s-available { background: var(--ok); } .bar .s-reserved { background: var(--warn-bright); } .bar .s-occupied { background: var(--bad); } .bar .s-maintenance { background: var(--off); }

/* ---------- Layout público ---------- */
.site-header { border-bottom: 1px solid var(--line); background: #fff; position: sticky; top: 0; z-index: 20; }
.site-header .inner, .site-main, .site-footer .inner { max-width: 1080px; margin: 0 auto; padding-left: 16px; padding-right: 16px; }
.site-header .inner { display: flex; align-items: center; justify-content: space-between; min-height: 64px; gap: 1rem; }
.site-nav { display: flex; gap: 1.1rem; align-items: center; font-weight: 600; font-size: .92rem; }
.site-nav a { color: var(--ink-2); }
.site-main { padding-top: 1.75rem; padding-bottom: 3rem; }
.site-main.narrow { max-width: 760px; }
.site-footer { border-top: 1px solid var(--line); color: var(--muted); font-size: .88rem; }
.site-footer .inner { padding-top: 1.5rem; padding-bottom: 2rem; display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }
.hero { display: grid; grid-template-columns: 1.1fr .9fr; gap: 2.5rem; align-items: center; padding: 2.5rem 0 3rem; }
.hero h1 { font-size: 2.6rem; letter-spacing: -.03em; }
.hero h1 b { color: var(--brand); }
.hero p.lead { font-size: 1.15rem; color: var(--ink-2); max-width: 32rem; }
.hero-photo { border-radius: 18px; overflow: hidden; border: 1px solid var(--line); aspect-ratio: 4 / 3; background: var(--panel); }
.hero-photo img { width: 100%; height: 100%; object-fit: cover; }
.steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1rem; margin: 1rem 0 3rem; }
.step { border: 1px solid var(--line); border-radius: var(--radius); padding: 1.1rem; }
.step .n { width: 30px; height: 30px; border-radius: 50%; background: var(--brand-soft); color: var(--brand); display: grid; place-items: center; font-weight: 800; margin-bottom: .6rem; }
.pill-list { display: flex; flex-wrap: wrap; gap: .5rem; padding: 0; margin: 0; list-style: none; }
.pill-list li { border: 1px solid var(--line); border-radius: 999px; padding: .3rem .8rem; font-size: .88rem; background: #fff; }
.notice { border-left: 4px solid var(--bad); background: var(--bad-soft); padding: .8rem 1rem; border-radius: 0 var(--radius-sm) var(--radius-sm) 0; font-weight: 600; color: #7f1d1d; }

.room-page { display: grid; grid-template-columns: 1.25fr 1fr; gap: 2rem; align-items: start; }
.gallery { display: grid; gap: .6rem; }
.gallery img { border-radius: var(--radius); border: 1px solid var(--line); width: 100%; height: auto; align-self: start; aspect-ratio: 4 / 3; object-fit: cover; }
.price { font-size: 1.8rem; font-weight: 800; letter-spacing: -.02em; }
.price small { font-size: .9rem; font-weight: 600; }
.sticky-cta { position: sticky; top: 84px; }
.countdown { display: inline-flex; gap: .4rem; align-items: center; background: var(--warn-soft); color: #713f12; border-radius: 999px; padding: .25rem .75rem; font-weight: 700; font-size: .85rem; }

/* ---------- Layout do painel ---------- */
.admin { display: grid; grid-template-columns: 248px 1fr; min-height: 100vh; }
.sidebar { border-right: 1px solid var(--line); background: #fff; padding: 1rem .8rem; position: sticky; top: 0; height: 100vh; overflow-y: auto; }
.sidebar .brand { padding: .3rem .5rem 1rem; }
.nav-group { margin-top: .9rem; }
.nav-group .t { font-size: .7rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); font-weight: 700; padding: 0 .6rem .3rem; }
.nav a { display: flex; align-items: center; justify-content: space-between; gap: .5rem; padding: .48rem .6rem; border-radius: var(--radius-sm); color: var(--ink-2); font-weight: 600; font-size: .92rem; }
.nav a:hover { background: var(--panel); text-decoration: none; }
.nav a.active { background: var(--brand-soft); color: var(--brand-strong); }
.count { min-width: 20px; height: 20px; padding: 0 6px; border-radius: 99px; background: var(--bad); color: #fff; font-size: .72rem; display: inline-grid; place-items: center; font-weight: 800; }
.topbar { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: .8rem 1.5rem; border-bottom: 1px solid var(--line); background: #fff; position: sticky; top: 0; z-index: 15; min-height: 60px; }
.topbar .who { display: flex; align-items: center; gap: .9rem; font-size: .9rem; }
.content { padding: 1.5rem; max-width: 1400px; width: 100%; }
.page-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 1rem; flex-wrap: wrap; margin-bottom: 1.25rem; }
.page-head h1 { margin: 0; }
.crumbs { font-size: .85rem; color: var(--muted); margin-bottom: .25rem; }
.menu-toggle { display: none; }
.cols { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); gap: 1rem; align-items: start; }
.cols-even { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; align-items: start; }
.tabs { display: flex; gap: .3rem; flex-wrap: wrap; border-bottom: 1px solid var(--line); margin-bottom: 1rem; }
.tabs a { padding: .55rem .8rem; font-weight: 600; color: var(--muted); border-bottom: 2px solid transparent; margin-bottom: -1px; font-size: .92rem; }
.tabs a.active { color: var(--brand-strong); border-color: var(--brand); }
.tabs a:hover { text-decoration: none; color: var(--ink); }
.filters { display: flex; gap: .6rem; flex-wrap: wrap; align-items: flex-end; margin-bottom: 1rem; }
.filters .field { margin: 0; min-width: 160px; }
.pager { display: flex; gap: .5rem; justify-content: flex-end; margin-top: 1rem; }
.timeline { list-style: none; margin: 0; padding: 0; }
.timeline li { position: relative; padding: 0 0 1rem 1.3rem; border-left: 2px solid var(--line); margin-left: .35rem; }
.timeline li::before { content: ""; position: absolute; left: -6px; top: .3rem; width: 10px; height: 10px; border-radius: 50%; background: var(--brand); }
.timeline li:last-child { padding-bottom: 0; }
.timeline .when { font-size: .78rem; color: var(--muted); }
.docs { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: .75rem; }
.doc { border: 1px solid var(--line); border-radius: var(--radius-sm); padding: .7rem; font-size: .85rem; }
.thumbs { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: .75rem; }
.thumb { border: 1px solid var(--line); border-radius: var(--radius-sm); overflow: hidden; background: var(--panel); }
.thumb img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.thumb form { padding: .4rem; }
.copybox { display: flex; gap: .5rem; }
.copybox input { font-family: ui-monospace, Menlo, monospace; font-size: .82rem; }

/* ---------- Prédio (visão do condomínio) ---------- */
.building-wrap { display: grid; grid-template-columns: minmax(280px, 460px) 1fr; gap: 1.5rem; align-items: start; }
.building { width: 100%; }
.roof { height: 34px; background: var(--ink-2); clip-path: polygon(8% 100%, 50% 0, 92% 100%); margin: 0 6%; }
.tower { border: 3px solid var(--ink-2); border-top-width: 6px; border-radius: 4px 4px 0 0; background: #fff; padding: 6px; display: grid; gap: 6px; }
.floor { display: grid; grid-template-columns: 54px 1fr auto; gap: .6rem; align-items: center; padding: .55rem .6rem; border: 1px solid var(--line); border-radius: 8px; color: var(--ink); background: #fff; }
.floor:hover { border-color: var(--brand); background: var(--brand-soft); text-decoration: none; }
.floor .code { font-weight: 800; font-size: 1.25rem; text-align: center; border-right: 1px solid var(--line); }
.floor .mini { display: grid; grid-template-columns: 1fr 10px 1fr; gap: 3px; }
.floor .mini .side { display: flex; flex-wrap: wrap; gap: 3px; }
.floor .mini .side.r { justify-content: flex-start; }
.floor .mini .hall { background: repeating-linear-gradient(0deg, var(--line) 0 2px, transparent 2px 6px); border-radius: 2px; }
.dot { width: 12px; height: 12px; border-radius: 3px; background: var(--off); }
.dot.st-available { background: var(--ok); } .dot.st-reserved { background: var(--warn-bright); } .dot.st-occupied { background: var(--bad); } .dot.st-maintenance { background: var(--off); }
.floor .name { font-size: .8rem; color: var(--muted); grid-column: 2; margin-top: -2px; }
.floor .nums { font-size: .78rem; color: var(--muted); text-align: right; white-space: nowrap; }
.ground { height: 14px; background: var(--ink-2); border-radius: 0 0 6px 6px; margin: 0 -10px; }
.entrance { width: 70px; height: 26px; margin: -6px auto 0; border: 3px solid var(--ink-2); border-bottom: 0; background: #fff; border-radius: 6px 6px 0 0; }
.legend { display: flex; gap: 1rem; flex-wrap: wrap; font-size: .85rem; color: var(--ink-2); }
.legend span { display: inline-flex; gap: .4rem; align-items: center; }

/* ---------- Planta do pavimento ---------- */
.plan-wrap { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 1.25rem; align-items: start; }
.plan { border: 3px solid var(--ink-2); border-radius: 6px; padding: 10px; display: grid; grid-template-columns: minmax(0, 1fr) 70px minmax(0, 1fr); gap: 10px; background: #fff; max-width: 720px; }
.plan .col { display: grid; gap: 8px; align-content: start; }
.corridor { background: repeating-linear-gradient(180deg, var(--panel) 0 18px, #fff 18px 36px); border-left: 2px dashed var(--line-2); border-right: 2px dashed var(--line-2); display: grid; place-items: center; }
.corridor span { writing-mode: vertical-rl; transform: rotate(180deg); letter-spacing: .3em; font-size: .72rem; color: var(--muted); font-weight: 700; text-transform: uppercase; }
.room-cell { min-height: 74px; border: 1px solid var(--line); border-left-width: 6px; border-radius: 6px; padding: .45rem .6rem; text-align: left; background: #fff; cursor: pointer; font: inherit; color: var(--ink); width: 100%; display: flex; flex-direction: column; justify-content: center; }
.room-cell:hover, .room-cell.selected { box-shadow: 0 0 0 2px var(--brand); }
.room-cell .rc { font-weight: 800; font-size: 1.05rem; }
.room-cell .rn { font-size: .78rem; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.room-cell.st-available { border-left-color: var(--ok); background: #f6fdf8; }
.room-cell.st-reserved { border-left-color: var(--warn-bright); background: #fffdf0; }
.room-cell.st-occupied { border-left-color: var(--bad); background: #fff7f7; }
.room-cell.st-maintenance { border-left-color: var(--off); background: var(--off-soft); }
.col.r .room-cell { border-left-width: 1px; border-right-width: 6px; text-align: right; }
.col.r .room-cell.st-available { border-right-color: var(--ok); }
.col.r .room-cell.st-reserved { border-right-color: var(--warn-bright); }
.col.r .room-cell.st-occupied { border-right-color: var(--bad); }
.col.r .room-cell.st-maintenance { border-right-color: var(--off); }
.side-panel { position: sticky; top: 76px; }
.side-panel .empty { color: var(--muted); text-align: center; padding: 2.5rem 1rem; }
.floor-switch { display: flex; gap: .35rem; flex-wrap: wrap; }
.floor-switch a { min-width: 40px; text-align: center; padding: .3rem .6rem; border: 1px solid var(--line); border-radius: 8px; font-weight: 700; color: var(--ink-2); }
.floor-switch a.active { background: var(--brand); color: #fff; border-color: var(--brand); }

/* ---------- Modal ---------- */
.modal-backdrop { position: fixed; inset: 0; background: rgba(17, 24, 39, .45); display: grid; place-items: center; padding: 16px; z-index: 100; }
.modal { background: #fff; border-radius: 14px; width: min(860px, 100%); max-height: calc(100vh - 32px); overflow: auto; box-shadow: 0 20px 60px rgba(0, 0, 0, .25); }
.modal-head { display: flex; justify-content: space-between; align-items: center; padding: 1rem 1.25rem; border-bottom: 1px solid var(--line); position: sticky; top: 0; background: #fff; }
.modal-body { padding: 1.25rem; }
.x { border: 0; background: none; font-size: 1.6rem; line-height: 1; cursor: pointer; color: var(--muted); }

/* ---------- WhatsApp ---------- */
.board { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(250px, 1fr); gap: .9rem; overflow-x: auto; padding-bottom: .5rem; }
.board-col { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: .7rem; min-height: 300px; }
.board-col h3 { display: flex; justify-content: space-between; align-items: center; font-size: .88rem; margin-bottom: .6rem; }
.board-col h3 .light { width: 10px; height: 10px; border-radius: 50%; display: inline-block; margin-right: .4rem; }
.light.l-novo { background: #0ea5e9; } .light.l-negociando { background: var(--warn-bright); } .light.l-visita_agendada { background: #f97316; }
.light.l-reservado { background: #8b5cf6; } .light.l-pago { background: var(--ok); } .light.l-perdido { background: var(--off); }
.conv-card { display: block; background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: .65rem .75rem; margin-bottom: .55rem; color: var(--ink); }
.conv-card:hover { border-color: var(--brand); text-decoration: none; }
.conv-card .n { font-weight: 700; display: flex; justify-content: space-between; gap: .5rem; }
.conv-card .p { font-size: .84rem; color: var(--muted); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.conv-card .t { font-size: .75rem; color: var(--muted); }
.chat-wrap { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 1rem; align-items: start; }
.chat { border: 1px solid var(--line); border-radius: var(--radius); display: flex; flex-direction: column; height: calc(100vh - 190px); min-height: 460px; }
.chat-head { padding: .8rem 1rem; border-bottom: 1px solid var(--line); display: flex; justify-content: space-between; align-items: center; gap: .5rem; }
.chat-body { flex: 1; overflow-y: auto; padding: 1rem; background: #fbfbfa; display: flex; flex-direction: column; gap: .5rem; }
.msg { max-width: 75%; padding: .5rem .75rem; border-radius: 12px; font-size: .92rem; white-space: pre-wrap; word-break: break-word; }
.msg .meta { display: block; font-size: .7rem; color: var(--muted); margin-top: .2rem; }
.msg.in { background: #fff; border: 1px solid var(--line); align-self: flex-start; border-top-left-radius: 4px; }
.msg.out { background: var(--brand-soft); border: 1px solid #c7e9e3; align-self: flex-end; border-top-right-radius: 4px; }
.msg.out.failed { background: var(--bad-soft); border-color: #fecaca; }
.chat-form { border-top: 1px solid var(--line); padding: .7rem; display: flex; gap: .5rem; }
.chat-form textarea { min-height: 44px; height: 44px; }
.window-off { padding: .75rem 1rem; background: var(--warn-soft); border-top: 1px solid #fde68a; font-size: .88rem; }

/* ---------- Login ---------- */
.auth-page { min-height: 100vh; display: grid; place-items: center; padding: 16px; background: #fff; }
.auth-card { width: min(420px, 100%); border: 1px solid var(--line); border-radius: 16px; padding: 2rem; box-shadow: var(--shadow); }
.auth-card .brand { margin-bottom: 1.5rem; display: flex; justify-content: center; }
.otp { font-size: 1.6rem !important; letter-spacing: .4em; text-align: center; font-family: ui-monospace, Menlo, monospace !important; }
.secret { font-family: ui-monospace, Menlo, monospace; font-size: 1.2rem; letter-spacing: .12em; background: var(--panel); border: 1px dashed var(--line-2); padding: .8rem; border-radius: var(--radius-sm); text-align: center; word-break: break-all; }

.error-page { text-align: center; padding: 4rem 1rem; }
.error-page .code { font-size: 4rem; font-weight: 800; color: var(--brand); letter-spacing: -.04em; }

/* ---------- Responsivo ---------- */
@media (max-width: 1100px) {
  .plan-wrap, .chat-wrap { grid-template-columns: 1fr; }
  .side-panel { position: static; }
  .kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 900px) {
  .admin { grid-template-columns: 1fr; }
  .sidebar { position: fixed; left: 0; top: 0; z-index: 50; width: 270px; transform: translateX(-100%); transition: transform .2s; box-shadow: var(--shadow); }
  .sidebar.open { transform: none; }
  .menu-toggle { display: inline-flex; }
  .cols, .cols-even, .building-wrap, .room-page, .hero { grid-template-columns: 1fr; }
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .content { padding: 1rem 16px; }
  .topbar { padding: .6rem 16px; }
  .sticky-cta { position: static; }
}
@media (max-width: 640px) {
  .grid-2, .grid-3, .grid-4, .steps { grid-template-columns: 1fr; }
  .kpis { grid-template-columns: 1fr 1fr; gap: .6rem; }
  .kpi .value { font-size: 1.2rem; }
  .hero h1 { font-size: 2rem; }
  .dl { grid-template-columns: 1fr; }
  .dl dt { margin-top: .4rem; }
  .site-nav .hide-sm { display: none; }
  .plan { grid-template-columns: minmax(0, 1fr) 34px minmax(0, 1fr); padding: 6px; gap: 6px; }
  .topbar .who .name { display: none; }
  .msg { max-width: 90%; }
}
.narrow-box { max-width: 760px; margin: 0 auto; }
.qty { width: 72px !important; min-height: 36px !important; }
details > summary { cursor: pointer; list-style: none; }
details > summary::-webkit-details-marker { display: none; }
details[open] > summary.btn { margin-bottom: .5rem; }
.page-head details { position: relative; }
.page-head details .card { position: absolute; right: 0; z-index: 10; width: 300px; box-shadow: var(--shadow); }
.side-panel .dl, .modal .dl { grid-template-columns: 110px 1fr; }
.floor .mini .side { gap: 2px; }
.floor .dot { width: 10px; height: 10px; }
.admin > div { min-width: 0; }
.card-title { flex-wrap: wrap; }
.pay-card { border-color: var(--brand); background: var(--brand-soft); }
.pay-card.overdue { border-color: #fecaca; background: var(--bad-soft); }
.pay-amount { font-size: 2rem; font-weight: 800; letter-spacing: -.02em; margin: .4rem 0 .2rem; font-variant-numeric: tabular-nums; }
.mobile-cta { display: none; }
@media (max-width: 900px) {
  .mobile-cta { display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; align-items: center; justify-content: space-between; gap: .75rem;
    background: #fff; border-top: 1px solid var(--line); padding: .7rem 16px calc(.7rem + env(safe-area-inset-bottom)); box-shadow: 0 -4px 16px rgba(17,24,39,.06); }
  .mobile-cta strong { display: block; font-size: 1.05rem; }
  body:has(.mobile-cta) .site-footer { padding-bottom: 84px; }
  .price { font-size: 1.45rem; }
  .gallery img { aspect-ratio: 4 / 3.4; }
}

/* ---------- Celular (Android/iOS): toque, teclado e galeria ---------- */
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
a, button, summary, label, .btn { -webkit-tap-highlight-color: rgba(15, 118, 110, .15); touch-action: manipulation; }
input[type=file]::file-selector-button { font: inherit; font-weight: 600; border: 1px solid var(--line-2); background: #fff; color: var(--ink); border-radius: var(--radius-sm); padding: .55rem .9rem; margin-right: .7rem; cursor: pointer; }
.file-note { display: block; font-size: .82rem; color: var(--muted); margin-top: .3rem; }
.gallery-hint { display: none; }
@media (max-width: 900px) {
  /* 16px evita zoom automático ao focar e fica legível em telas pequenas */
  input[type=text], input[type=email], input[type=password], input[type=tel], input[type=number], input[type=date], input[type=url], input[type=search], select, textarea { font-size: 16px; min-height: 46px; }
  input[type=file] { font-size: 15px; padding: .6rem; }
  input[type=checkbox], input[type=radio] { width: 22px; height: 22px; flex: 0 0 auto; }
  .btn { min-height: 44px; }
  .btn-sm { min-height: 40px; padding-left: .9rem; padding-right: .9rem; }
  .site-nav a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 .25rem; }
  .brand { min-height: 44px; display: inline-flex; align-items: center; }
  .site-footer a { display: inline-flex; align-items: center; min-height: 44px; }
  details > summary { min-height: 44px; display: flex; align-items: center; }
  .site-main .card > a:not(.btn), .site-main p > a:only-child:not(.btn), .site-main .dl a { display: inline-block; padding: .55rem 0; }
  .gallery { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; gap: .6rem; margin: 0 -16px; padding: 0 16px; scrollbar-width: none; -webkit-overflow-scrolling: touch; overscroll-behavior-x: contain; }
  .gallery::-webkit-scrollbar { display: none; }
  .gallery img { flex: 0 0 86%; scroll-snap-align: center; }
  .gallery img:only-child { flex-basis: 100%; }
  .gallery-hint { display: block; font-size: .85rem; color: var(--muted); margin-top: .4rem; text-align: center; }
}

/* =========================================================================
   Landing page (site/home + layouts/landing). Celular primeiro: 360px é a base;
   telas maiores só reorganizam. Cores da placa: verde-petróleo + laranja.
   ========================================================================= */
@font-face { font-family: "Poppins"; font-weight: 600; font-style: normal; font-display: swap; src: url("/assets/fonts/poppins-semibold.woff2") format("woff2"); }
@font-face { font-family: "Poppins"; font-weight: 700; font-style: normal; font-display: swap; src: url("/assets/fonts/poppins-bold.woff2") format("woff2"); }

.lp {
  --petrol: #1d5b69; --petrol-deep: #143f49; --orange: #f5a524; --orange-deep: #e8960f;
  --mist: #eef5f6; --ink: #1c2b31; --ink-soft: #4f6268; --rule: #d6e3e6; --tag-bg: #fff1d2; --tag-ink: #7a4b00;
  --display: "Poppins", ui-sans-serif, system-ui, sans-serif;
  background: #fff; color: var(--ink); font: 16px/1.6 var(--font); -webkit-text-size-adjust: 100%;
}
.lp h1, .lp h2, .lp h3 { font-family: var(--display); color: var(--petrol-deep); margin: 0; }
.lp p { margin: 0; }
.lp a { color: var(--petrol); }
.lp :focus-visible { outline: 3px solid var(--petrol); outline-offset: 3px; border-radius: 6px; }
.lp-wrap { max-width: 1120px; margin: 0 auto; padding: 0 16px; }
.lp-sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.lp-ico { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex: none; }

/* Topo */
.lp-header { position: sticky; top: 0; z-index: 40; background: rgba(255, 255, 255, .96); border-bottom: 1px solid var(--rule); }
.lp-header-in { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 60px; }
.lp-logo img { display: block; height: 30px; width: auto; }
.lp-langs { display: flex; border: 1px solid var(--rule); border-radius: 999px; padding: 3px; }
.lp-langs a { min-width: 40px; min-height: 36px; display: grid; place-items: center; border-radius: 999px; font: 600 .82rem/1 var(--display); color: var(--ink-soft); text-decoration: none; letter-spacing: .02em; }
.lp-langs a[aria-current] { background: var(--petrol); color: #fff; }

/* Botões */
.lp-btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 54px; padding: 0 22px; border-radius: 14px; font: 600 1.02rem/1.2 var(--display); text-decoration: none; border: 0; cursor: pointer; }
.lp-btn svg { width: 22px; height: 22px; flex: none; }
.lp-btn-wa { background: var(--orange); color: var(--petrol-deep); box-shadow: 0 2px 0 var(--orange-deep); }
.lp-btn-wa:hover, .lp-btn-wa:active { background: var(--orange-deep); text-decoration: none; }
.lp .lp-btn-wa { color: var(--petrol-deep); }
.lp-link { display: inline-flex; align-items: center; min-height: 44px; font-weight: 600; text-decoration: underline; text-underline-offset: 4px; }
.lp-soon { color: var(--ink-soft); font-weight: 600; }

/* Hero */
.lp-hero { padding: 28px 0 8px; }
.lp-hero-in { display: grid; gap: 28px; }
.lp-hero h1 { font-size: clamp(2rem, 7.4vw, 3.3rem); line-height: 1.1; letter-spacing: -.025em; font-weight: 700; max-width: 15ch; }
.lp-lead { margin-top: 14px !important; font-size: 1.08rem; color: var(--ink-soft); max-width: 34rem; }
/* Os dois diferenciais, logo abaixo do texto de abertura */
.lp-promises { list-style: none; margin: 20px 0 0; padding: 0; display: grid; gap: 10px; max-width: 34rem; }
.lp-promises li { display: flex; gap: 14px; align-items: center; padding: 14px 16px; border-radius: 14px; background: var(--mist); border-left: 4px solid var(--orange); }
.lp-promises .lp-ico { width: 40px; height: 40px; padding: 8px; border-radius: 11px; background: var(--petrol); color: #fff; }
.lp-promises strong { display: block; font-family: var(--display); font-weight: 600; font-size: 1.12rem; line-height: 1.25; color: var(--petrol-deep); }
.lp-promises span { display: block; margin-top: 2px; font-size: .95rem; color: var(--ink-soft); }
.lp-actions { margin-top: 22px; display: flex; flex-direction: column; align-items: stretch; gap: 6px; }
.lp-actions .lp-link { align-self: center; }
.lp-hero-visual { position: relative; }
.lp-bill-shadow { filter: drop-shadow(0 8px 20px rgba(20, 63, 73, .12)); }
/* Galeria de fotos reais: desliza com o dedo, a próxima foto aparece na borda */
.lp-gallery { margin: 0 -16px; }
.lp-slides { list-style: none; margin: 0; padding: 0 16px; display: flex; gap: 10px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding: 0 16px; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
.lp-slides::-webkit-scrollbar { display: none; }
.lp-slide { flex: 0 0 88%; scroll-snap-align: start; position: relative; border-radius: 18px; overflow: hidden; aspect-ratio: 4 / 3; background: var(--mist); }
.lp-slide img { display: block; width: 100%; height: 100%; object-fit: cover; }
.lp-cap { position: absolute; left: 10px; bottom: 10px; background: rgba(255, 255, 255, .94); color: var(--petrol-deep); font: 600 .85rem/1 var(--display); padding: 8px 12px; border-radius: 999px; }
.lp-dots { display: flex; justify-content: center; gap: 6px; margin-top: 12px; }
.lp-dots span { width: 7px; height: 7px; border-radius: 50%; background: var(--rule); transition: width .2s ease, background .2s ease; }
.lp-dots span.on { width: 20px; border-radius: 99px; background: var(--petrol); }
.lp-gallery-note { text-align: center; margin-top: 6px !important; font-size: .88rem; color: var(--ink-soft); padding: 0 16px; }

/* A "conta do mês": o que está incluso no aluguel */
.lp-bill { position: relative; margin: 16px 0 0; background: #fff; border: 1px solid var(--rule); border-bottom: 0; border-radius: 18px 18px 0 0; padding: 20px 18px 26px;
  -webkit-mask: radial-gradient(circle 7px at 9px 100%, transparent 6.5px, #000 7px) 0 0 / 18px 100% repeat-x;
          mask: radial-gradient(circle 7px at 9px 100%, transparent 6.5px, #000 7px) 0 0 / 18px 100% repeat-x; }
.lp-bill h2 { font-size: 1.05rem; font-weight: 700; padding-bottom: 12px; border-bottom: 2px solid var(--petrol); }
.lp-bill ul { list-style: none; margin: 0; padding: 0; }
.lp-bill li { display: flex; align-items: center; gap: 12px; padding: 11px 0; border-bottom: 1px solid var(--rule); }
.lp-bill .lp-ico { color: var(--petrol); width: 34px; height: 34px; padding: 6px; background: var(--mist); border-radius: 10px; }
.lp-bill-item { flex: 1; font-weight: 600; line-height: 1.3; }
.lp-bill-item small { display: block; font-weight: 400; font-size: .84rem; color: var(--ink-soft); margin-top: 2px; }
.lp-tag { display: inline-flex; align-items: center; gap: 4px; padding: 4px 10px 4px 7px; border-radius: 999px; background: var(--tag-bg); color: var(--tag-ink); font: 600 .8rem/1 var(--display); white-space: nowrap; }
.lp-tag svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.lp-bill-total { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-top: 14px !important; padding-top: 14px; border-top: 2px dashed var(--rule); color: var(--ink-soft); font-weight: 600; line-height: 1.3; }
.lp-bill-total strong { font: 700 1.7rem/1 var(--display); color: var(--petrol); }

/* Seções */
.lp-section { padding: 52px 0 8px; }
.lp-section h2 { font-size: clamp(1.5rem, 5.4vw, 2.1rem); line-height: 1.2; letter-spacing: -.015em; font-weight: 700; }
.lp-sub { margin-top: 8px !important; color: var(--ink-soft); max-width: 36rem; }
.lp-feats { display: grid; gap: 14px; margin-top: 22px; }
.lp-feat { border: 1px solid var(--rule); border-radius: 16px; padding: 20px; }
.lp-ico-lg { width: 46px; height: 46px; padding: 10px; border-radius: 13px; background: var(--petrol); color: #fff; stroke-width: 1.7; }
.lp-feat h3 { font-size: 1.08rem; font-weight: 600; margin-top: 14px; }
.lp-feat p { margin-top: 6px !important; color: var(--ink-soft); }

/* Passo a passo (é uma sequência de verdade: números fazem sentido) */
.lp-steps { list-style: none; margin: 24px 0 0; padding: 0; counter-reset: step; }
.lp-steps li { counter-increment: step; position: relative; padding: 0 0 26px 58px; }
.lp-steps li::before { content: counter(step); position: absolute; left: 0; top: -2px; width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center;
  background: var(--petrol); color: #fff; font: 700 1.05rem/1 var(--display); }
.lp-steps li::after { content: ""; position: absolute; left: 19px; top: 44px; bottom: 4px; width: 2px; background: var(--rule); }
.lp-steps li:last-child { padding-bottom: 0; }
.lp-steps li:last-child::after { display: none; }
.lp-steps h3 { font-size: 1.08rem; font-weight: 600; }
.lp-steps p { margin-top: 4px !important; color: var(--ink-soft); }


.lp-final { margin-top: 52px; background: var(--mist); padding: 40px 0 44px; }
.lp-final-in { display: grid; gap: 12px; justify-items: stretch; }
.lp-final h2 { font-size: clamp(1.45rem, 5.2vw, 2rem); line-height: 1.2; }
.lp-final p { color: var(--ink-soft); margin-bottom: 8px !important; }

.lp-footer { border-top: 1px solid var(--rule); padding: 26px 0 30px; }
.lp-footer-in { display: grid; gap: 14px; }
.lp-footer img { height: 30px; width: auto; display: block; }
.lp-footer-tag { margin-top: 6px !important; color: var(--ink-soft); font-size: .92rem; }
.lp-footer-links { display: flex; flex-wrap: wrap; gap: 4px 22px; }
.lp-footer-links a { min-height: 44px; display: inline-flex; align-items: center; color: var(--ink-soft); }

/* Barra fixa do WhatsApp no celular (some quando um botão do WhatsApp já está na tela) */
.lp-dock { position: fixed; left: 0; right: 0; bottom: 0; z-index: 50; padding: 10px 16px calc(10px + env(safe-area-inset-bottom)); background: #fff; border-top: 1px solid var(--rule);
  transition: transform .25s ease; }
.lp-dock .lp-btn { width: 100%; }
.lp-dock.is-hidden { transform: translateY(110%); }
body.lp:has(.lp-dock) { padding-bottom: 78px; }

@media (min-width: 560px) {
  .lp-actions { flex-direction: row; align-items: center; gap: 22px; }
  .lp-feats { grid-template-columns: 1fr 1fr; }
  .lp-final-in { justify-items: start; }
}
@media (min-width: 900px) {
  .lp-hero { padding: 56px 0 24px; }
  .lp-hero-in { grid-template-columns: 1.05fr 1fr; align-items: center; gap: 56px; }
  .lp-gallery { margin: 0; }
  .lp-slides { padding: 0; scroll-padding: 0; }
  .lp-slide { flex-basis: 100%; }
  .lp-lead { font-size: 1.15rem; }
  .lp-section { padding-top: 80px; }
  .lp-steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
  .lp-steps li { padding: 58px 0 0; }
  .lp-steps li::after { left: 48px; right: -20px; top: 19px; bottom: auto; width: auto; height: 2px; }
  .lp-steps li:last-child::after { display: none; }
  .lp-final { margin-top: 80px; padding: 56px 0; }
  .lp-footer-in { grid-template-columns: 1fr auto; align-items: center; }
  .lp-dock { display: none; }
  body.lp:has(.lp-dock) { padding-bottom: 0; }
}
@media (prefers-reduced-motion: reduce) { .lp-dock, .lp-dots span { transition: none; } }

/* Frente B — seletor de idioma nas páginas públicas (cadastro, área do morador, pagamento) */
.site-langs { --rule: #d6e3e6; --petrol: #1d5b69; --ink-soft: #4f6268; --display: "Poppins", ui-sans-serif, system-ui, sans-serif; flex: none; }
.site-langs a { min-width: 36px; min-height: 36px; padding: 0; text-decoration: none; }
.site-langs a:hover { text-decoration: none; }
@media (max-width: 560px) {
  .site-header .inner { flex-wrap: wrap; row-gap: 4px; padding-top: 8px; padding-bottom: 6px; }
  .site-nav { width: 100%; justify-content: space-between; gap: .6rem; }
  .site-nav .site-langs { margin-left: auto; }
}

/* Caixas de seleção com a mesma altura e cara dos campos de texto (Android, iPhone e computador) */
select { -webkit-appearance: none; appearance: none; height: 42px; padding-right: 2.4rem; line-height: 1.3;
  background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5 6 6.5l5-5' fill='none' stroke='%234b5563' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") no-repeat right .85rem center / 12px 8px; }
select[multiple] { height: auto; background-image: none; padding-right: .75rem; }
@media (max-width: 900px) { select { height: 46px; } }
/* Cadastro: tipo, número e foto do documento no mesmo cartão */
.doc-card { border-color: var(--brand); background: var(--brand-soft); }
.doc-card input[type=file] { background: #fff; }

/* Regras da casa */
.rules-page .rules-sec { margin-top: 14px; }
.rules-sec h2 { font-size: 1.08rem; margin: 0 0 8px; color: var(--brand-strong); }
.rules-sec ul { margin: 0; padding-left: 1.2em; }
.rules-sec li { margin: 6px 0; line-height: 1.5; }
.rules-sec-strong { border-left: 4px solid var(--bad); }
.terms-list { margin: 0; padding-left: 1.4em; }
.terms-list li { margin: 10px 0; line-height: 1.55; }
