:root {
  color-scheme: dark;
  --bg: #081019;
  --panel: #111c29;
  --line: #27384b;
  --text: #edf3f8;
  --muted: #93a5b6;
  --accent: #f0b94b;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
* { box-sizing: border-box; }
body {
  min-height: 100vh;
  margin: 0;
  color: var(--text);
  background:
    radial-gradient(circle at 20% 0%, rgba(38, 87, 126, .2), transparent 36rem),
    var(--bg);
}
.auth-shell {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 24px;
}
.auth-card {
  width: min(100%, 430px);
  padding: 34px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(17, 28, 41, .96);
  box-shadow: 0 24px 80px rgba(0, 0, 0, .32);
}
.eyebrow {
  margin: 0 0 12px;
  color: var(--accent);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .18em;
}
h1 { margin: 0; font-size: clamp(26px, 7vw, 36px); line-height: 1.1; }
.muted { margin: 14px 0 26px; color: var(--muted); line-height: 1.55; }
form { display: grid; gap: 18px; }
label { display: grid; gap: 8px; color: #c4d0dc; font-size: 13px; font-weight: 700; }
input {
  width: 100%;
  padding: 13px 14px;
  border: 1px solid var(--line);
  border-radius: 10px;
  outline: none;
  color: var(--text);
  background: #09121c;
}
input:focus { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(240, 185, 75, .12); }
button {
  padding: 13px 16px;
  border: 0;
  border-radius: 10px;
  color: #201804;
  background: var(--accent);
  font-weight: 850;
  cursor: pointer;
}
button.secondary { color: var(--text); background: #243448; }
.alert {
  margin: 0 0 20px;
  padding: 12px 14px;
  border: 1px solid rgba(240, 115, 120, .4);
  border-radius: 10px;
  color: #ffafb3;
  background: rgba(240, 115, 120, .08);
}
.alert.success {
  border-color: rgba(74, 202, 139, .4);
  color: #9eebc4;
  background: rgba(74, 202, 139, .08);
}
.billing-shell { width: min(1180px, calc(100% - 32px)); margin: 0 auto; padding: 36px 0 64px; }
.billing-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 24px; margin-bottom: 28px; }
.billing-head .muted { margin-bottom: 0; }
.billing-actions { display: flex; align-items: center; gap: 12px; }
.billing-actions form { display: block; }
.secondary-link { padding: 12px 15px; border-radius: 10px; color: var(--text); background: #243448; text-decoration: none; font-weight: 750; }
.billing-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: 18px; margin-bottom: 18px; }
.billing-card { margin-bottom: 18px; padding: 24px; border: 1px solid var(--line); border-radius: 18px; background: rgba(17, 28, 41, .96); }
.billing-card h2 { margin: 0 0 12px; }
.billing-card .muted { margin: 10px 0 20px; }
.payment-details { display: grid; gap: 1px; margin: 0 0 22px; overflow: hidden; border: 1px solid var(--line); border-radius: 10px; background: var(--line); }
.payment-details div { display: grid; grid-template-columns: 150px 1fr; gap: 16px; padding: 12px 14px; background: #0c1621; }
.payment-details dt { color: var(--muted); }
.payment-details dd { margin: 0; overflow-wrap: anywhere; }
.mono { font-family: ui-monospace, SFMono-Regular, Consolas, monospace; }
select { width: 100%; padding: 13px 14px; border: 1px solid var(--line); border-radius: 10px; color: var(--text); background: #09121c; }
.billing-table-wrap { overflow-x: auto; margin: 0 -24px -24px; }
.billing-card table { width: 100%; min-width: 760px; border-collapse: collapse; }
.billing-card th, .billing-card td { padding: 13px 18px; border-top: 1px solid var(--line); text-align: left; font-size: 13px; }
.billing-card th { color: var(--muted); }
@media (max-width: 760px) {
  .billing-head { flex-direction: column; }
  .billing-grid { grid-template-columns: 1fr; }
  .billing-actions { width: 100%; justify-content: space-between; }
  .payment-details div { grid-template-columns: 1fr; gap: 5px; }
}
