:root { --card:#fff; --text:#0f172a; --muted:#64748b; --primary:#0f766e; --wa:#25D366; }
* { box-sizing: border-box; }
body { margin:0; font-family:system-ui,-apple-system,sans-serif; background:linear-gradient(180deg,#0b1f1a 0%,#f1f5f9 340px); color:var(--text); }
.wrap { max-width:480px; margin:0 auto; padding:14px; }
.hero { color:#f8fafc; text-align:center; padding:10px 4px 18px; }
.badge { display:inline-block; font-size:.75rem; font-weight:600; background:rgba(245,158,11,.18); color:#fcd34d; border:1px solid rgba(245,158,11,.35); padding:5px 12px; border-radius:999px; margin-bottom:10px; }
.hero h1 { font-size:1.5rem; line-height:1.25; margin:0 0 8px; }
.hero p { font-size:.9rem; color:#cbd5e1; margin:0 0 16px; }
.scene-3d { perspective:900px; display:flex; justify-content:center; }
.roof-card-3d { width:100%; max-width:340px; padding:14px; border-radius:16px; background:linear-gradient(135deg,rgba(255,255,255,.14),rgba(255,255,255,.04)); border:1px solid rgba(255,255,255,.2); backdrop-filter:blur(10px); transform:rotateX(12deg) rotateY(-6deg); transition:transform .2s ease-out; box-shadow:0 18px 35px rgba(0,0,0,.35); }
.solar-grid { display:grid; grid-template-columns:repeat(4,1fr); gap:6px; padding:10px; border-radius:10px; background:linear-gradient(135deg,#0f172a,#1e3a8a); border:1px solid #38bdf8; }
.solar-grid span { height:26px; border-radius:3px; background:linear-gradient(135deg,#1d4ed8 0%,#0ea5e9 100%); box-shadow:inset 0 0 6px rgba(255,255,255,.35); }
.card-3d-meta { display:flex; justify-content:space-between; margin-top:10px; text-align:left; }
.card-3d-meta small { display:block; font-size:.72rem; color:#94a3b8; }
.card-3d-meta strong { font-size:1rem; color:#fff; }
.card-3d-meta strong.accent { color:#fcd34d; }
.card { background:var(--card); border-radius:16px; padding:16px; margin-bottom:14px; box-shadow:0 4px 18px rgba(15,23,42,.08); }
.step-title { font-weight:800; font-size:.98rem; margin-bottom:10px; color:#0f5132; }
label { display:block; font-size:.88rem; font-weight:600; margin:12px 0 6px; }
input[type="text"], input[type="number"] { width:100%; padding:11px 12px; border:1px solid #cbd5e1; border-radius:10px; font-size:.95rem; }
input[type="range"] { width:100%; accent-color:var(--primary); }
.bill-num { color:var(--primary); font-size:1.05rem; }
.search-row { display:flex; gap:6px; margin-bottom:10px; }
.btn-search { padding:0 14px; border:none; border-radius:10px; background:var(--primary); color:#fff; font-weight:700; cursor:pointer; }
.btn-icon { width:44px; flex-shrink:0; border:1px solid #cbd5e1; background:#f8fafc; border-radius:10px; font-size:1.15rem; cursor:pointer; }
.map-wrap { position:relative; border-radius:12px; overflow:hidden; border:1px solid #cbd5e1; }
#map { width:100%; height:270px; background:#e2e8f0; }
.map-hint { position:absolute; bottom:8px; left:50%; transform:translateX(-50%); background:rgba(15,23,42,.8); color:#fff; font-size:.74rem; padding:4px 10px; border-radius:999px; pointer-events:none; white-space:nowrap; }
.pin-status { font-size:.78rem; color:var(--muted); margin-top:8px; }
.toggle-group { display:grid; grid-template-columns:1fr 1fr; gap:8px; }
.toggle-btn { padding:10px; border:1px solid #cbd5e1; border-radius:10px; background:#f8fafc; font-weight:700; cursor:pointer; }
.toggle-btn.active { background:#ecfdf5; border-color:var(--primary); color:#065f46; }
.btn-primary { width:100%; padding:14px; border:none; border-radius:12px; background:var(--primary); color:#fff; font-size:1rem; font-weight:700; cursor:pointer; margin-top:14px; }
.btn-primary:disabled { opacity:.65; }
.result-header { display:flex; justify-content:space-between; align-items:center; margin-bottom:10px; }
.result-header h2 { margin:0; font-size:1.05rem; }
.source-badge { font-size:.72rem; font-weight:700; padding:4px 8px; border-radius:999px; background:#dcfce7; color:#166534; }
.stats-grid { display:grid; grid-template-columns:1fr 1fr; gap:10px; }
.stat { background:#f0fdf4; border:1px solid #bbf7d0; border-radius:10px; padding:11px; }
.stat small { display:block; font-size:.75rem; color:#475569; }
.stat strong { font-size:1.1rem; color:#14532d; }
.locked-box { background:#f8fafc; border:1px dashed #94a3b8; border-radius:12px; padding:14px; margin-top:14px; }
.locked-title { font-weight:800; font-size:.92rem; }
.locked-box ul { padding-left:18px; margin:8px 0 12px; font-size:.86rem; color:#334155; }
.blur { filter:blur(4px); user-select:none; }
.btn-wa { display:block; text-align:center; background:var(--wa); color:#fff; text-decoration:none; font-weight:800; padding:14px; border-radius:10px; }
.disclaimer { font-size:.74rem; color:var(--muted); text-align:center; margin:8px 0 0; }
.hidden { display:none; }
