:root {
  --ink: #172033;
  --muted: #667085;
  --surface: #ffffff;
  --soft: #f4f6fa;
  --line: #e5e9f1;
  --accent: #375dfb;
  --accent-dark: #2446d8;
  --accent-soft: #eef2ff;
  --success: #087a55;
  --success-soft: #e9f8f1;
  --danger: #b42318;
  --danger-soft: #fff1f0;
  --shadow: 0 18px 50px rgba(23, 32, 51, .10);
}
* { box-sizing: border-box; }
html { min-height: 100%; background: var(--soft); }
body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  background:
    radial-gradient(circle at 5% 0%, rgba(55, 93, 251, .13), transparent 28rem),
    radial-gradient(circle at 100% 100%, rgba(8, 122, 85, .08), transparent 30rem),
    var(--soft);
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
a { color: inherit; }
button, input { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
.page-shell { width: min(1180px, calc(100% - 32px)); margin: 0 auto; min-height: 100vh; display: flex; flex-direction: column; }
.site-header { min-height: 94px; display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; }
.brand-mark { width: 42px; height: 42px; display: grid; place-items: center; border-radius: 14px; color: white; background: linear-gradient(145deg, var(--accent), #6d83ff); font-weight: 800; box-shadow: 0 9px 24px rgba(55, 93, 251, .25); }
.brand strong, .brand small { display: block; }
.brand strong { font-size: 1rem; }
.brand small { margin-top: 2px; color: var(--muted); font-size: .75rem; }
.main-content { flex: 1; padding: 32px 0 60px; }
.site-footer { min-height: 72px; display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 10px; color: var(--muted); font-size: .9rem; border-top: 1px solid rgba(102, 112, 133, .18); }
.site-footer a { color: var(--ink); text-underline-offset: 3px; }
.eyebrow { margin: 0 0 10px; text-transform: uppercase; letter-spacing: .12em; font-size: .72rem; font-weight: 800; color: var(--accent); }
h1, h2, h3, p { margin-top: 0; }
h1 { margin-bottom: 16px; font-size: clamp(2rem, 5vw, 4rem); line-height: 1.04; letter-spacing: -.045em; }
h2 { margin-bottom: 10px; font-size: clamp(1.6rem, 3vw, 2.25rem); letter-spacing: -.035em; }
h3 { margin-bottom: 8px; font-size: 1.25rem; }
.muted { color: var(--muted); }
.auth-layout { display: grid; grid-template-columns: 1.15fr .85fr; gap: clamp(34px, 8vw, 100px); align-items: center; min-height: 610px; }
.auth-intro > p:not(.eyebrow) { max-width: 620px; color: var(--muted); font-size: 1.08rem; line-height: 1.7; }
.feature-list { display: grid; gap: 18px; margin-top: 44px; max-width: 650px; }
.feature-list > div { display: grid; grid-template-columns: 44px 1fr; gap: 16px; align-items: start; }
.feature-list > div > span { width: 38px; height: 38px; display: grid; place-items: center; border-radius: 12px; background: var(--surface); color: var(--accent); font-size: .78rem; font-weight: 800; box-shadow: 0 5px 18px rgba(23, 32, 51, .06); }
.feature-list p { margin: 0; color: var(--muted); line-height: 1.5; }
.feature-list strong { color: var(--ink); }
.auth-card, .plan-card, .detail-card, .state-card { background: rgba(255,255,255,.94); border: 1px solid rgba(229,233,241,.9); box-shadow: var(--shadow); }
.auth-card { padding: clamp(28px, 5vw, 48px); border-radius: 28px; }
.form-stack { display: grid; gap: 20px; margin-top: 28px; }
.form-stack label > span:first-child { display: block; margin-bottom: 8px; font-size: .9rem; font-weight: 700; }
.form-stack input { width: 100%; height: 52px; padding: 0 15px; border: 1px solid #ccd3df; border-radius: 13px; background: #fff; color: var(--ink); outline: none; transition: border-color .2s, box-shadow .2s; }
.form-stack input:focus { border-color: var(--accent); box-shadow: 0 0 0 4px rgba(55,93,251,.12); }
.password-field { position: relative; display: block; }
.password-field input { padding-right: 72px; }
.text-button { position: absolute; right: 8px; top: 7px; height: 38px; padding: 0 10px; border: 0; background: transparent; color: var(--accent); font-weight: 700; cursor: pointer; }
.primary-button, .secondary-button, .ghost-button { min-height: 44px; display: inline-flex; align-items: center; justify-content: center; border-radius: 12px; padding: 0 18px; border: 1px solid transparent; text-decoration: none; font-weight: 750; cursor: pointer; transition: transform .15s, background .15s, border-color .15s; }
.primary-button { color: #fff; background: var(--accent); }
.primary-button:hover { background: var(--accent-dark); transform: translateY(-1px); }
.secondary-button { color: var(--ink); background: #fff; border-color: var(--line); }
.secondary-button:hover, .ghost-button:hover { border-color: #c6cedb; background: #f9fafc; }
.ghost-button { background: transparent; border-color: var(--line); color: var(--ink); }
.form-stack > .primary-button { width: 100%; height: 52px; }
.support-box { margin-top: 28px; padding-top: 24px; border-top: 1px solid var(--line); }
.support-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 14px; }
.support-actions.centered { justify-content: center; }
.alert { margin: 18px 0 0; padding: 13px 15px; border-radius: 12px; font-size: .9rem; line-height: 1.45; }
.alert-error { color: var(--danger); background: var(--danger-soft); border: 1px solid #ffd4d0; }
.alert-info { color: #344054; background: #f8f9fc; border: 1px solid var(--line); }
.account-heading { display: flex; justify-content: space-between; gap: 24px; align-items: flex-start; margin-bottom: 28px; }
.account-heading h1 { margin-bottom: 8px; font-size: clamp(2rem, 4vw, 3.2rem); }
.status-pill { display: inline-flex; align-items: center; gap: 8px; padding: 9px 14px; border-radius: 999px; font-size: .82rem; font-weight: 800; }
.status-pill::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: currentColor; }
.status-running-active { color: var(--success); background: var(--success-soft); }
.status-used { color: #5d6472; background: #eceff4; }
.plan-card { padding: clamp(24px, 4vw, 42px); border-radius: 28px; }
.plan-title-row { display: flex; justify-content: space-between; gap: 24px; align-items: flex-start; }
.plan-total { text-align: right; }
.plan-total span, .metric-card span { display: block; color: var(--muted); font-size: .84rem; margin-bottom: 5px; }
.plan-total strong { font-size: 1.35rem; }
.progress-copy { display: flex; justify-content: space-between; gap: 16px; margin: 28px 0 10px; font-size: .84rem; font-weight: 750; }
.progress-track { height: 13px; overflow: hidden; border-radius: 99px; background: #e8ecf4; }
.progress-track span { display: block; height: 100%; width: min(var(--progress), 100%); border-radius: inherit; background: linear-gradient(90deg, var(--accent), #7890ff); }
.metric-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-top: 30px; }
.metric-card { min-height: 150px; padding: 22px; border-radius: 18px; border: 1px solid var(--line); background: #fbfcfe; display: flex; flex-direction: column; justify-content: center; }
.metric-card.emphasis { color: #fff; background: linear-gradient(145deg, var(--accent), #647cff); border-color: transparent; }
.metric-card.emphasis span, .metric-card.emphasis small { color: rgba(255,255,255,.78); }
.metric-card strong { display: block; margin: 3px 0 8px; font-size: clamp(1.4rem, 3vw, 2rem); letter-spacing: -.035em; }
.metric-card small { color: var(--muted); line-height: 1.4; }
.details-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-top: 20px; }
.detail-card { min-height: 245px; padding: 30px; border-radius: 24px; }
dl { margin: 24px 0 0; }
dl > div { display: flex; justify-content: space-between; gap: 20px; padding: 16px 0; border-top: 1px solid var(--line); }
dt { color: var(--muted); }
dd { margin: 0; font-weight: 800; }
.support-detail { display: flex; flex-direction: column; justify-content: space-between; }
.state-card { max-width: 720px; margin: 70px auto; padding: clamp(32px, 6vw, 68px); text-align: center; border-radius: 28px; }
.state-card h1 { font-size: clamp(2rem, 4vw, 3rem); }
.state-card > p:not(.eyebrow) { color: var(--muted); line-height: 1.65; }
.state-icon { width: 54px; height: 54px; margin: 0 auto 24px; display: grid; place-items: center; border-radius: 18px; color: var(--accent); background: var(--accent-soft); font-size: 1.4rem; font-weight: 900; }
@media (max-width: 900px) {
  .auth-layout { grid-template-columns: 1fr; min-height: auto; }
  .auth-intro { padding-top: 20px; }
  .metric-grid { grid-template-columns: repeat(2, 1fr); }
  .details-grid { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  .page-shell { width: min(100% - 22px, 1180px); }
  .site-header { min-height: 78px; }
  .brand small { display: none; }
  .main-content { padding-top: 18px; }
  .auth-intro h1 { font-size: 2.55rem; }
  .feature-list { margin-top: 30px; }
  .account-heading, .plan-title-row { flex-direction: column; }
  .plan-total { text-align: left; }
  .metric-grid { grid-template-columns: 1fr; }
  .metric-card { min-height: 130px; }
  .progress-copy { font-size: .76rem; }
  .site-footer { padding: 18px 0; }
}
