:root{
  --bg:#0b0f14; --panel:#121821; --panel-2:#161d28; --line:#233040;
  --text:#e6edf6; --muted:#8fa3ba; --accent:#4da3ff; --accent-2:#2b7fd4;
  --good:#3fbf7f; --warn:#e0a72b; --bad:#e0603c; --radius:10px;
}
*{box-sizing:border-box}
html,body{margin:0;padding:0}
body{
  background:var(--bg); color:var(--text); font:15px/1.55 -apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Helvetica,Arial,sans-serif;
  -webkit-font-smoothing:antialiased;
}
a{color:var(--accent); text-decoration:none}
a:hover{text-decoration:underline}
.wrap{max-width:1080px;margin:0 auto;padding:0 20px}

header.top{
  border-bottom:1px solid var(--line); background:rgba(11,15,20,.92);
  position:sticky; top:0; z-index:20; backdrop-filter:blur(8px);
}
.top .wrap{display:flex;align-items:center;gap:16px;height:60px}
.brand{font-weight:700;letter-spacing:.2px;display:flex;align-items:center;gap:9px}
.brand .dot{width:9px;height:9px;border-radius:50%;background:var(--accent);box-shadow:0 0 10px var(--accent)}
.spacer{flex:1}
.nav{display:flex;gap:22px;align-items:center;font-size:14px}
/* #nav-auth is its own flex row so links and the Sign out button share one gap and one
   baseline, instead of inheriting inconsistent whitespace + button padding. */
#nav-auth{display:flex;align-items:center;gap:22px}
.nav a,.nav button.link{
  color:var(--muted); font-size:14px; font-weight:500; line-height:1;
  padding:4px 0; margin:0; border:0; background:none;
}
.nav a:hover,.nav button.link:hover{color:var(--text); text-decoration:none}
.nav a.active{color:var(--text); box-shadow:inset 0 -2px 0 var(--accent-2)}

h1{font-size:26px;margin:26px 0 6px;letter-spacing:-.3px}
h2{font-size:19px;margin:26px 0 10px}
h3{font-size:15px;margin:18px 0 8px;color:var(--muted);text-transform:uppercase;letter-spacing:.8px}
p{margin:8px 0}
.muted{color:var(--muted)}
.small{font-size:13px}
.mono{font-family:ui-monospace,SFMono-Regular,Menlo,Consolas,monospace}

.card{background:var(--panel);border:1px solid var(--line);border-radius:var(--radius);padding:18px;margin:14px 0}
.card.tight{padding:14px}
.row{display:flex;gap:12px;align-items:center;flex-wrap:wrap}
.grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(230px,1fr));gap:12px}

input,select,textarea,button{
  font:inherit; color:var(--text); background:var(--panel-2);
  border:1px solid var(--line); border-radius:8px; padding:9px 11px; outline:none;
}
input:focus,select:focus,textarea:focus{border-color:var(--accent-2)}
button{cursor:pointer;background:var(--accent-2);border-color:var(--accent-2);font-weight:600}
button:hover{filter:brightness(1.08)}
button.ghost{background:transparent;border-color:var(--line);color:var(--muted);font-weight:500}
button.ghost:hover{color:var(--text);border-color:var(--accent-2)}
button.link{background:none;border:none;padding:0;color:var(--muted);font-weight:500}
button:disabled{opacity:.55;cursor:not-allowed}
label{display:block;font-size:13px;color:var(--muted);margin:10px 0 4px}
label.sr{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0)}

/* Terms acceptance: the checkbox and its label sit on one line, and the label must not
   look like the small muted field labels above it -- this is a required consent, not a hint. */
label.check{display:flex;gap:9px;align-items:flex-start;font-size:13.5px;color:var(--text);
  margin:14px 0 0;line-height:1.45;cursor:pointer}
label.check input{width:16px;height:16px;margin:3px 0 0;flex:0 0 auto;accent-color:var(--accent)}
label.check a{text-decoration:underline}

/* Destructive actions. The delete-account card and its button are the only red things on the
   site: they are irreversible, and the colour is the warning. */
.card.danger{border-color:rgba(224,96,60,.45)}
button.danger{background:transparent;border-color:rgba(224,96,60,.6);color:var(--bad)}
button.danger:hover{background:rgba(224,96,60,.1);filter:none}

.tag{display:inline-block;font-size:11.5px;padding:2px 8px;border-radius:999px;border:1px solid var(--line);color:var(--muted);margin:0 6px 4px 0}
.tag.ok{color:var(--good);border-color:rgba(63,191,127,.4)}
.tag.warn{color:var(--warn);border-color:rgba(224,167,43,.4)}
.tag.hot{color:var(--accent);border-color:rgba(77,163,255,.45)}
.tag.bad{color:var(--bad);border-color:rgba(224,96,60,.4)}

.bill{border:1px solid var(--line);border-radius:var(--radius);background:var(--panel);padding:16px;margin:12px 0}
.bill h4{margin:0 0 6px;font-size:16.5px;line-height:1.35;font-weight:650}
.bill .meta{font-size:12.5px;color:var(--muted);display:flex;gap:14px;flex-wrap:wrap;align-items:center}
.bill .desc{color:#c3d0df;font-size:14px;margin:9px 0 4px}
.bill .actions{display:flex;gap:8px;margin-top:12px;flex-wrap:wrap}
.bill .num{font-family:ui-monospace,Menlo,monospace;color:var(--accent);font-weight:700}

.empty{text-align:center;padding:40px 20px;color:var(--muted);border:1px dashed var(--line);border-radius:var(--radius);margin:14px 0}
.empty strong{color:var(--text);display:block;margin-bottom:6px;font-size:16px}

.stat{background:var(--panel-2);border:1px solid var(--line);border-radius:var(--radius);padding:12px 14px}
.stat .n{font-size:22px;font-weight:700}
.stat .l{font-size:12px;color:var(--muted);text-transform:uppercase;letter-spacing:.7px}

table{width:100%;border-collapse:collapse;font-size:13.5px}
th,td{text-align:left;padding:8px 10px;border-bottom:1px solid var(--line)}
th{color:var(--muted);font-weight:600;font-size:12px;text-transform:uppercase;letter-spacing:.6px}
tr.clickable:hover{background:var(--panel-2);cursor:pointer}

.toast{position:fixed;bottom:18px;left:50%;transform:translateX(-50%);background:var(--panel-2);
  border:1px solid var(--line);border-radius:999px;padding:10px 18px;font-size:14px;z-index:100;
  box-shadow:0 8px 30px rgba(0,0,0,.5);max-width:90vw}
.toast.err{border-color:rgba(224,96,60,.6)}
.toast.ok{border-color:rgba(63,191,127,.5)}

/* Inline form feedback, so an auth failure sits next to the fields rather than in a toast
   that vanishes before someone reads it. */
.notice{border:1px solid var(--line);border-radius:var(--radius);padding:10px 12px;margin:12px 0;font-size:13px}
.notice.err{border-color:rgba(224,96,60,.6);background:rgba(224,96,60,.07)}
.notice.ok{border-color:rgba(63,191,127,.5);background:rgba(63,191,127,.07)}

.center{max-width:430px;margin:60px auto}
footer{border-top:1px solid var(--line);margin-top:60px;padding:22px 0 60px;color:var(--muted);font-size:13px}
.spin{display:inline-block;width:14px;height:14px;border:2px solid var(--line);border-top-color:var(--accent);border-radius:50%;animation:s .8s linear infinite;vertical-align:-2px}
@keyframes s{to{transform:rotate(360deg)}}

/* ---------- plain language vs the statutory text ---------- */
/* The layman's title is the headline; the official wording is never hidden, just
   de-emphasised. Muted left rule = "this is the legalese". */
.official{color:var(--muted);font-size:13.5px;padding-left:11px;border-left:2px solid var(--line);margin:6px 0 8px}
.official.big{font-size:14.5px;color:#b9c8da}
.official .lbl,.lbl{display:block;font-size:11px;text-transform:uppercase;letter-spacing:.8px;
  color:var(--muted);margin-bottom:3px}
.card.official{background:var(--panel-2);color:var(--muted)}

ul.bullets{margin:10px 0 4px;padding-left:20px}
ul.bullets li{margin:5px 0}

/* ---------- spotlight ---------- */
.spot{display:grid;grid-template-columns:repeat(auto-fill,minmax(300px,1fr));gap:12px;margin:10px 0 20px}
.spot-card{display:block;background:var(--panel);border:1px solid var(--line);border-left:3px solid var(--accent-2);
  border-radius:var(--radius);padding:14px;color:var(--text)}
.spot-card:hover{border-color:var(--accent-2);text-decoration:none}
.spot-card .meta{font-size:12px;color:var(--muted);display:flex;gap:10px;align-items:center;flex-wrap:wrap}
.spot-t{font-weight:600;margin-top:8px;line-height:1.35}
