:root {
  color-scheme: dark;
  --bg: #07101f;
  --surface: #101d32;
  --border: #263a57;
  --text: #f4f7fb;
  --muted: #9caec4;
  --accent: #5de1d1;
  --danger: #ff7b83;
}

* { box-sizing: border-box; }
body {
  margin: 0;
  min-height: 100vh;
  background: radial-gradient(circle at top right, #173453 0, var(--bg) 48%);
  color: var(--text);
  font-family: system-ui, sans-serif;
}
.shell { width: min(980px, calc(100% - 32px)); margin: 0 auto; padding: 32px 0 64px; }
.brand { display: flex; gap: 10px; align-items: center; font-weight: 700; letter-spacing: .02em; margin-bottom: 48px; }
.brand-mark { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 9px; background: var(--accent); color: #06201e; }
h1, h2 { margin: 0 0 12px; }
h1 { font-size: clamp(1.7rem, 4vw, 2.5rem); }
h2 { font-size: 1.25rem; }
.eyebrow { color: var(--accent); font-size: .72rem; font-weight: 800; letter-spacing: .16em; margin: 0 0 10px; }
.muted { color: var(--muted); line-height: 1.55; }
.card { background: color-mix(in srgb, var(--surface) 94%, transparent); border: 1px solid var(--border); border-radius: 18px; padding: 24px; box-shadow: 0 18px 50px #0003; }
.narrow { width: min(440px, 100%); margin: 10vh auto 0; }
.topline { display: flex; justify-content: space-between; gap: 24px; align-items: center; margin-bottom: 24px; }
.grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.danger-zone { margin-top: 16px; }
label { display: block; margin: 18px 0 7px; color: var(--muted); font-size: .9rem; }
input { width: 100%; padding: 13px 14px; border-radius: 10px; border: 1px solid var(--border); background: #091527; color: var(--text); font-size: 1rem; }
button { border: 0; border-radius: 10px; padding: 12px 16px; margin-top: 18px; background: var(--accent); color: #06201e; font-weight: 800; cursor: pointer; }
button.secondary { background: transparent; color: var(--text); border: 1px solid var(--border); margin-top: 0; }
button.danger { background: var(--danger); }
.text-link, .danger-link { color: var(--accent); text-decoration: none; background: none; border: 0; padding: 0; margin-top: 18px; font-weight: 700; }
.danger-link { color: var(--danger); margin: 0; }
.error { padding: 12px; color: #ffd7d9; background: #5e2029; border-radius: 9px; }
.status { display: inline-block; padding: 5px 9px; border-radius: 99px; background: #233550; color: var(--accent); font-size: .82rem; }
.status-payment_required, .status-expired { color: #ffd18a; }
.status-past_due { color: #ffbd79; }
.devices { list-style: none; padding: 0; margin: 20px 0 0; }
.devices li { display: flex; justify-content: space-between; gap: 12px; align-items: center; padding: 12px 0; border-top: 1px solid var(--border); }
.devices small { display: block; color: var(--muted); margin-top: 4px; }
.legal { line-height: 1.7; }
@media (max-width: 700px) { .grid { grid-template-columns: 1fr; } .topline { align-items: flex-start; flex-direction: column; } }

