:root { --navy: #1E3A8A; --coral: #E2775C; --ice: #F0F4FF; --yellow: #FACC15; --text: #1b2430; --muted: #6b7a8c; --line: #e2e7ee; --ok: #22C55E; --bad: #d33; }
* { box-sizing: border-box; }
body { margin: 0; font-family: Figtree, system-ui, Arial, sans-serif; background: var(--ice); color: var(--text); font-size: 15px; }
.hidden { display: none !important; }
a { color: var(--navy); }
h1, h2, h3 { font-family: Lexend, Figtree, sans-serif; margin: 0 0 12px; }
h1 { font-size: 1.5em; } h3 { font-size: 1.05em; }
.muted { color: var(--muted); }
.error { color: var(--bad); min-height: 1.2em; margin-top: 6px; }
.top { background: var(--navy); color: #fff; padding: 14px 20px; display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 10px; }
.brand { font-family: Lexend, sans-serif; font-weight: 700; font-size: 1.15em; }
.brand i { display: inline-block; width: 14px; height: 14px; background: var(--coral); border-radius: 3px 3px 0 0; margin-right: 8px; }
.brand span { font-weight: 400; opacity: .8; font-size: .85em; }
nav a { color: #cfe3f5; text-decoration: none; margin-right: 16px; padding: 6px 0; }
nav a.active { color: #fff; border-bottom: 2px solid var(--coral); }
button.link { background: none; border: 0; color: #cfe3f5; cursor: pointer; font-size: inherit; }
.wrap { max-width: 980px; margin: 0 auto; padding: 22px 16px 60px; }
.card { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 18px; margin-bottom: 16px; }
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; margin-bottom: 16px; }
.stat .label { color: var(--muted); font-size: .85em; } .stat .value { font-family: Lexend, sans-serif; font-size: 1.8em; font-weight: 700; color: var(--navy); }
.btn { display: inline-block; padding: 10px 16px; border-radius: 10px; border: 1px solid var(--line); background: #fff; color: var(--text); cursor: pointer; font-size: 14px; font-weight: 600; text-decoration: none; }
.btn.primary { background: var(--coral); border-color: var(--coral); color: #fff; }
.btn.navy { background: var(--navy); border-color: var(--navy); color: #fff; }
.btn.small { padding: 6px 10px; font-size: 13px; } .btn.danger { color: var(--bad); } .btn:disabled { opacity: .5; cursor: default; }
input, select, textarea { width: 100%; padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; font-size: 15px; font-family: inherit; }
.field { margin-bottom: 14px; } .field label { display: block; font-weight: 600; margin-bottom: 6px; font-size: 14px; }
.row { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.badge { display: inline-block; padding: 3px 9px; border-radius: 99px; font-size: .78em; font-weight: 700; }
.badge.on { background: #e3f6e9; color: #1d7a3b; } .badge.off { background: #fde8e8; color: #a12; } .badge.wait { background: #fff4d6; color: #8a5a00; } .badge.gray { background: #eef1f5; color: #556; }
table { width: 100%; border-collapse: collapse; } th, td { text-align: left; padding: 10px 8px; border-bottom: 1px solid var(--line); vertical-align: middle; } th { font-size: .8em; text-transform: uppercase; color: var(--muted); }
.thumb { width: 96px; height: 54px; object-fit: cover; border-radius: 8px; background: #000; display: block; }
.login { max-width: 420px; margin: 40px auto; }
.login .logo { font-family: Lexend, sans-serif; font-size: 1.4em; font-weight: 700; color: var(--navy); margin-bottom: 4px; }
.tabs { display: flex; gap: 6px; margin-bottom: 14px; } .tabs button { flex: 1; padding: 10px; border: 1px solid var(--line); background: #fff; border-radius: 10px; cursor: pointer; font-weight: 600; } .tabs button.active { background: var(--navy); color: #fff; border-color: var(--navy); }
.progress { height: 8px; background: #e5eaf1; border-radius: 99px; overflow: hidden; margin-top: 10px; } .progress > div { height: 100%; background: var(--coral); width: 0; transition: width .2s; }
.modal { position: fixed; inset: 0; background: rgba(10,20,35,.55); display: flex; align-items: center; justify-content: center; z-index: 50; padding: 16px; }
.modal-box { background: #fff; border-radius: 14px; width: 520px; max-width: 100%; padding: 20px; max-height: 92vh; overflow: auto; }
.modal-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; } .modal-head .link { color: var(--muted); font-size: 18px; }
.modal-actions { display: flex; justify-content: flex-end; gap: 10px; margin-top: 16px; }
.toast { position: fixed; bottom: 20px; left: 50%; transform: translateX(-50%); background: var(--navy); color: #fff; padding: 12px 18px; border-radius: 10px; z-index: 60; } .toast.err { background: var(--bad); }
.city { margin-bottom: 14px; } .city h3 { color: var(--navy); }
.region { margin: 8px 0 10px 10px; } .region .rname { font-weight: 600; margin-bottom: 2px; } .region .bairros { font-size: .82em; line-height: 1.4; margin-bottom: 4px; }
.unit { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border: 1px solid var(--line); border-radius: 10px; margin: 6px 0 6px 14px; background: #fff; cursor: pointer; }
.unit input { width: auto; } .unit.sel { border-color: var(--coral); background: #fff7f4; } .unit.full { opacity: .55; cursor: not-allowed; }
.plan { border: 2px solid var(--line); border-radius: 14px; padding: 16px; } .plan.current { border-color: var(--coral); }
.plan .price { font-family: Lexend, sans-serif; font-size: 1.5em; color: var(--navy); font-weight: 700; }
.plans { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 12px; }
.help { background: #fff; border-left: 4px solid var(--coral); padding: 12px 14px; border-radius: 10px; margin-bottom: 16px; font-size: .95em; }
.cov-map { height: 300px; border-radius: 10px; border: 1px solid var(--line); background: #e9eef5; }
.leaflet-popup-content { font-size: 13px; line-height: 1.4; }
.chk { display: inline-flex; align-items: center; gap: 6px; font-weight: 500; cursor: pointer; } .chk input { width: auto; margin: 0; }
@media (max-width: 600px) { nav a { margin-right: 10px; font-size: .95em; } .thumb { width: 72px; height: 40px; } }

/* sub-tabela (ponto a ponto na participação) */
table.inner { font-size: .9em; }
table.inner th, table.inner td { padding: 5px 8px; }
