:root {
  color-scheme: dark;
  --bg: #0f1115; --card: #181b22; --line: #303744; --text: #e8eaf0;
  --muted: #aab2c2; --accent: #6aa8ff; --ink: #0b1220; --glow: #263b59;
}
@media (prefers-color-scheme: light) {
  :root {
    color-scheme: light;
    --bg: #f4f6fa; --card: #fff; --line: #d9e0eb; --text: #17202e;
    --muted: #505c70; --accent: #255fb9; --ink: #fff; --glow: #dceaff;
  }
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; background: var(--bg); color: var(--text); font: 16px/1.55 "Segoe UI", system-ui, sans-serif; }
main { max-width: 850px; margin: auto; padding: 0 18px 40px; }
header, nav, footer { display: flex; align-items: center; flex-wrap: wrap; gap: 16px; }
header { justify-content: space-between; min-height: 72px; }
a { color: var(--accent); }
.brand { display: flex; align-items: center; gap: 10px; color: var(--text); text-decoration: none; font-weight: 700; }
.brand img { width: 34px; }
.hero { padding: clamp(26px, 7vw, 56px) 24px; border: 1px solid var(--line); border-radius: 22px; background: radial-gradient(ellipse at top right, var(--glow), var(--card) 75%); }
h1 { margin: 0; font-size: clamp(32px, 7vw, 54px); letter-spacing: -.045em; line-height: 1.08; }
h2 { margin: 0; font-size: 22px; }
p { color: var(--muted); }
.hero p { margin-bottom: 0; }
.card { margin-top: 16px; padding: clamp(18px, 4vw, 26px); border: 1px solid var(--line); background: var(--card); border-radius: 18px; }
.expiry { margin: 4px 0 18px; }
h3 { font-size: 16px; margin: 0 0 12px; }
.renew { margin-top: 24px; }
.meter { padding: 13px 15px; border-radius: 12px; background: var(--bg); color: var(--text); }
.meter-title { display: flex; justify-content: space-between; align-items: baseline; flex-wrap: wrap; gap: 6px 12px; }
.meter-title span, .meter small, .traffic small, .plan small { color: var(--muted); }
.meter progress { display: block; width: 100%; height: .65rem; margin: 8px 0 4px; accent-color: var(--accent); }
.meter.extra progress { accent-color: #b180ed; }
.traffic { display: grid; gap: 9px; margin: 18px 0; padding: 14px; border: 1px solid var(--line); border-radius: 14px; }
.traffic h3 { margin-bottom: 0; }
.traffic p { margin: 0; }
.plan { display: flex; flex-direction: column; gap: 4px; text-align: left; }
.plan strong { font-size: 1.45rem; color: var(--accent); line-height: 1.1; }
.plan small { font-weight: 400; }
.plan:hover:not(:disabled) { border-color: var(--accent); }
.plans { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 150px), 1fr)); gap: 10px; }
button, .button { font: inherit; font-weight: 650; border: 1px solid var(--line); border-radius: 11px; color: var(--text); background: var(--bg); padding: 10px 14px; cursor: pointer; text-decoration: none; display: inline-block; }
button:disabled { opacity: .55; cursor: default; }
.primary { background: var(--accent); color: var(--ink); border-color: transparent; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
footer { margin-top: 28px; font-size: 14px; }
#message:empty { display: none; }
#payments { margin-bottom: 0; padding-left: 20px; }
dialog.card { width: min(460px, calc(100% - 32px)); margin: auto; color: var(--text); }
dialog::backdrop { background: rgb(0 0 0 / .64); }
.quote-actions { display: flex; gap: 8px; flex-wrap: wrap; }
#quote-lines > div { display: flex; justify-content: space-between; gap: 8px; padding: 6px 0; }
#quote-lines > div:last-child { border-top: 1px solid var(--line); font-weight: 700; }
#quote-lines dd { margin: 0; text-align: right; white-space: nowrap; }
#quote-error:empty { display: none; }
