:root {
  --bg: #f6f5ef;
  --surface: #fffef9;
  --surface-strong: #ffffff;
  --ink: #07192f;
  --muted: #536273;
  --line: #d7d8d2;
  --brand: #0b7094;
  --brand-strong: #075875;
  --accent: #e6a72e;
  --danger-bg: #fff1ee;
  --danger: #9d2d23;
  --success: #287849;
  --focus: #e6a72e;
  --radius: 18px;
  --shadow: 0 18px 50px rgba(7, 25, 47, .11), 0 2px 8px rgba(7, 25, 47, .06);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--bg);
}

:root[data-theme="dark"] {
  --bg: #071421;
  --surface: #0d2234;
  --surface-strong: #102a40;
  --ink: #f5f7f7;
  --muted: #b8c4cd;
  --line: #284054;
  --brand: #65c2dd;
  --brand-strong: #8bd4e8;
  --danger-bg: #3a211f;
  --danger: #ffb9b0;
  --success: #76d49b;
  --shadow: 0 18px 55px rgba(0, 0, 0, .35);
}

* { box-sizing: border-box; }
body { margin: 0; min-height: 100vh; background: radial-gradient(circle at 12% 12%, rgba(11,112,148,.11), transparent 32rem), var(--bg); }
a { color: var(--brand-strong); }
button, input { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; }

.topbar {
  min-height: 82px;
  max-width: 1180px;
  margin: 0 auto;
  padding: 18px 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
}

.brand-logo {
  width: auto;
  height: 52px;
  object-fit: contain;
}
:root[data-theme="dark"] .brand-logo { filter: brightness(0) invert(1); }

.theme-button, .text-button {
  min-width: 44px;
  min-height: 44px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--ink);
  background: var(--surface);
  cursor: pointer;
}
.theme-button span { display: block; font-size: 1.15rem; line-height: 1; }
.theme-button:hover, .text-button:hover { transform: translateY(-1px); }
.top-actions { display: flex; align-items: center; gap: 12px; }
.top-actions form { margin: 0; }
.text-button { padding: 0 18px; }

.login-layout {
  max-width: 1120px;
  min-height: calc(100vh - 110px);
  margin: 0 auto;
  padding: 50px 28px 90px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(340px, 430px);
  gap: 9vw;
  align-items: center;
}

.login-intro h1 {
  max-width: 720px;
  margin: 10px 0 20px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2.9rem, 6vw, 5.4rem);
  line-height: .98;
  letter-spacing: -.055em;
}
.login-intro > p:not(.eyebrow) { max-width: 580px; font-size: 1.15rem; line-height: 1.65; color: var(--muted); }
.eyebrow { margin: 0; color: var(--brand-strong); font-size: .78rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; overflow-wrap: anywhere; }
.support-card { margin-top: 38px; padding-top: 22px; border-top: 1px solid var(--line); display: flex; gap: 12px 24px; flex-wrap: wrap; color: var(--muted); }
.support-card a { font-weight: 750; text-decoration: none; }

.login-card, .info-card, .balance-card {
  background: var(--surface);
  border: 1px solid color-mix(in srgb, var(--line) 80%, transparent);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.login-card { padding: clamp(26px, 4vw, 42px); }
.login-card h1, .login-card h2 { margin: 0 0 8px; font-size: 2rem; letter-spacing: -.04em; }
.muted, .privacy-note { color: var(--muted); line-height: 1.55; }
.privacy-note { margin: 28px 0 0; font-size: .78rem; }
.login-card form { display: grid; gap: 18px; margin-top: 28px; }
label { display: grid; gap: 8px; font-weight: 700; font-size: .9rem; }
input {
  min-height: 52px;
  width: 100%;
  padding: 0 15px;
  border: 1px solid var(--line);
  border-radius: 12px;
  color: var(--ink);
  background: var(--surface-strong);
}
input:hover { border-color: var(--brand); }
.primary {
  min-height: 52px;
  padding: 0 22px;
  border: 0;
  border-radius: 12px;
  color: #fff;
  background: var(--brand-strong);
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 8px 22px rgba(7, 88, 117, .22);
}
.primary:hover:not(:disabled) { transform: translateY(-2px); box-shadow: 0 12px 26px rgba(7, 88, 117, .28); }
.primary:active:not(:disabled) { transform: translateY(0); }
.primary:disabled { opacity: .5; cursor: not-allowed; box-shadow: none; }
.recovery { display: inline-block; margin-top: 20px; font-weight: 700; }
.alert { margin-top: 18px; padding: 13px 15px; border-radius: 10px; color: var(--danger); background: var(--danger-bg); }
.link-button { display: grid; place-items: center; margin-top: 24px; text-decoration: none; }
.simple-page { max-width: 520px; margin: 10vh auto; padding: 24px; }

.dashboard { max-width: 1180px; margin: 0 auto; padding: 48px 28px 90px; }
.dashboard-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: 26px; }
.dashboard-heading > div { min-width: 0; }
.dashboard-heading h1 { margin: 8px 0 0; font: 700 clamp(2.5rem, 5vw, 4rem)/1 Georgia, serif; letter-spacing: -.05em; }
.status-badge { max-width: 100%; padding: 8px 12px; border: 1px solid var(--line); border-radius: 999px; color: var(--muted); font-size: .82rem; overflow-wrap: anywhere; }
.status-badge--ready { border-color: color-mix(in srgb, var(--brand) 55%, var(--line)); color: var(--brand-strong); font-weight: 750; }
.dashboard-alert { margin: 0 0 24px; padding: 14px 16px; border: 1px solid color-mix(in srgb, var(--danger) 35%, var(--line)); border-radius: 12px; color: var(--danger); background: var(--danger-bg); line-height: 1.5; }
.dashboard-notice { margin: 0 0 24px; padding: 14px 16px; border: 1px solid color-mix(in srgb, var(--brand) 45%, var(--line)); border-radius: 12px; color: var(--ink); background: color-mix(in srgb, var(--brand) 9%, var(--surface)); line-height: 1.5; }
.balance-card { min-height: 220px; padding: 30px; display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; background: linear-gradient(135deg, var(--brand-strong), #073f5f); color: #fff; }
.balance-card p { grid-column: 1/-1; margin: 0; opacity: .8; }
.balance-card strong { min-width: 0; max-width: 100%; font: 700 clamp(2rem, 6vw, 4rem)/1.08 Georgia, serif; overflow-wrap: anywhere; }
.dashboard-grid { margin-top: 24px; display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 24px; }
.info-card { min-height: 170px; padding: 26px; box-shadow: none; }
.info-card h2 { margin: 0; font-size: 1.1rem; }
.card-value { margin: 24px 0 0; font: 700 1.7rem/1.2 Georgia, serif; overflow-wrap: anywhere; }
.billing-summary { display: grid; gap: 12px; margin: 22px 0 0; }
.billing-summary div { display: flex; align-items: baseline; justify-content: space-between; gap: 18px; padding-top: 12px; border-top: 1px solid var(--line); }
.billing-summary dt { color: var(--muted); font-size: .88rem; line-height: 1.4; }
.billing-summary dd { margin: 0; font-weight: 800; text-align: right; white-space: nowrap; }
.billing-summary__service dt { color: var(--ink); }
.billing-summary__service dt span { color: var(--muted); font-weight: 700; white-space: nowrap; }
.billing-summary__total { border-top-color: color-mix(in srgb, var(--brand) 45%, var(--line)); }
.billing-summary__total dt, .billing-summary__total dd { color: var(--ink); font-weight: 850; }
.payment-list { display: grid; gap: 0; margin: 18px 0 0; padding: 0; list-style: none; }
.payment-list li { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 4px 18px; padding: 13px 0; border-top: 1px solid var(--line); }
.payment-list time { color: var(--ink); font-size: .92rem; font-variant-numeric: tabular-nums; }
.payment-list strong { text-align: right; white-space: nowrap; }
.payment-list span { grid-column: 1/-1; color: var(--muted); font-size: .82rem; overflow-wrap: anywhere; }
.internet-summary { display: flex; align-items: baseline; justify-content: space-between; gap: 18px; margin: 22px 0 18px; padding-top: 12px; border-top: 1px solid var(--line); color: var(--muted); }
.internet-summary strong { color: var(--ink); font: 700 1.55rem/1 Georgia, serif; }
.mac-list { display: grid; gap: 8px; margin: 10px 0 0; padding: 0; list-style: none; }
.mac-list code { display: block; width: fit-content; max-width: 100%; padding: 7px 10px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); color: var(--ink); font: 700 .88rem/1.2 ui-monospace, SFMono-Regular, Consolas, monospace; overflow-wrap: anywhere; }
.secondary-action { display: inline-flex; min-height: 44px; align-items: center; justify-content: center; margin-top: 18px; color: var(--brand-strong); font-weight: 800; text-decoration: none; }
.card-actions { display: flex; flex-wrap: wrap; gap: 4px 20px; }
.text-link { color: var(--ink); font-weight: 750; text-decoration: none; }
.device-registration-page { max-width: 650px; margin-top: 5vh; }
.device-registration-page > .eyebrow { margin: 0 0 12px 4px; }
.device-registration-card { padding: clamp(26px, 5vw, 44px); }
.device-registration-card h1 { margin: 0 0 16px; font: 700 clamp(2rem, 5vw, 3.2rem)/1.05 Georgia, serif; letter-spacing: -.045em; }
.device-registration-note { margin-top: 26px; padding: 18px; border-left: 4px solid var(--accent); border-radius: 8px; background: color-mix(in srgb, var(--accent) 9%, var(--surface)); }
.device-registration-note p { margin: 7px 0 0; color: var(--muted); line-height: 1.55; }
.device-registration-form { display: flex; flex-wrap: wrap; align-items: center; gap: 18px; margin-top: 28px; }
.device-registration-form .secondary-action { margin-top: 0; }
.device-address-options { flex: 1 0 100%; display: grid; gap: 10px; min-width: 0; margin: 0; padding: 0; border: 0; }
.device-address-options legend { margin-bottom: 10px; font-weight: 700; }
.device-address-option { display: flex; align-items: center; gap: 12px; padding: 14px 16px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); cursor: pointer; }
.device-address-option:has(input:checked) { border-color: var(--accent); box-shadow: 0 0 0 2px color-mix(in srgb, var(--accent) 24%, transparent); }
.device-address-option input { width: 18px; height: 18px; margin: 0; accent-color: var(--accent); }
.device-address-option span { font-variant-numeric: tabular-nums; }
.support-info-card { grid-column: 1/-1; min-height: auto; }
.support-info-card a { display: inline-block; margin-top: 4px; font-size: 1.2rem; font-weight: 800; text-decoration: none; }
.recovery-payment { max-width: 980px; margin: 0 auto; padding: 48px 28px 90px; }
.recovery-balance { min-height: 190px; }
.recovery-offers { margin-top: 34px; }
.recovery-offers h2 { margin: 8px 0 10px; font: 700 clamp(2rem, 4vw, 3rem)/1.05 Georgia, serif; letter-spacing: -.04em; }
.top-up-card { display: grid; grid-template-columns: minmax(0, 1fr) minmax(280px, 380px); gap: 32px; align-items: end; margin-top: 34px; padding: 30px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.top-up-card h2 { margin: 8px 0 10px; font: 700 clamp(2rem, 4vw, 3rem)/1.05 Georgia, serif; letter-spacing: -.04em; }
.top-up-card p { margin-bottom: 0; }
.top-up-form { display: grid; gap: 10px; }
.top-up-form label { color: var(--muted); font-size: .86rem; font-weight: 750; }
.top-up-form__controls { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 10px; align-items: end; }
.payment-methods { display: flex; gap: 10px; align-items: stretch; }
.payment-methods .secondary-action {
  min-height: 52px;
  margin-top: 0;
  padding: 0 22px;
  border: 1px solid var(--brand-strong);
  border-radius: 12px;
  background: transparent;
  font: inherit;
  font-weight: 800;
  cursor: pointer;
}
.payment-methods .secondary-action:hover { background: color-mix(in srgb, var(--brand) 9%, var(--surface)); }
.top-up-form input { width: 100%; min-width: 0; padding: 14px 16px; border: 1px solid var(--line); border-radius: 12px; color: var(--ink); background: var(--bg); font: 750 1.15rem/1.2 ui-sans-serif, system-ui, sans-serif; }
.offer-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; margin-top: 24px; }
.offer-card { position: relative; display: flex; flex-direction: column; align-items: stretch; gap: 16px; }
.offer-card--recommended { border: 2px solid var(--brand); background: color-mix(in srgb, var(--brand) 7%, var(--surface)); box-shadow: 0 14px 38px rgba(7, 88, 117, .2); }
.offer-card h3 { margin: 0; font-size: 1.2rem; }
.offer-card p { flex: 1; margin: 0; color: var(--muted); line-height: 1.5; }
.offer-card > strong { margin: 10px 0; font: 700 clamp(2rem, 5vw, 3.2rem)/1 Georgia, serif; overflow-wrap: anywhere; }
.offer-card > form { margin-top: auto; }
.offer-label { width: fit-content; padding: 8px 12px; border-radius: 999px; color: var(--bg); background: var(--brand-strong); font-size: .82rem; font-weight: 900; text-transform: uppercase; letter-spacing: .08em; }
.funds-sufficient { margin-top: 34px; padding: clamp(26px, 5vw, 42px); border: 1px solid color-mix(in srgb, var(--success) 45%, var(--line)); border-radius: var(--radius); background: color-mix(in srgb, var(--success) 8%, var(--surface)); }
.funds-sufficient strong { display: block; font: 700 clamp(2rem, 5vw, 3.4rem)/1.05 Georgia, serif; letter-spacing: -.04em; }
.funds-sufficient p { margin: 12px 0 0; }
.recovery-bootstrap { max-width: 560px; margin: 9vh auto; }
.recovery-fallback { display: grid; gap: 10px; margin-top: 24px; }
.recovery-fallback .link-button, .recovery-fallback .secondary-action { width: 100%; margin-top: 0; }
.recovery-intent { display: grid; grid-template-columns: minmax(0, 1fr) minmax(280px, 360px); gap: 2rem; align-items: center; margin-top: 34px; padding: 2rem; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.recovery-intent h2 { margin: 8px 0 10px; font: 700 clamp(2rem, 4vw, 3rem)/1.05 Georgia, serif; letter-spacing: -.04em; }
.intent-amount { display: block; margin-top: 1.5rem; font: 700 clamp(2rem, 6vw, 3.5rem)/1 Georgia, serif; overflow-wrap: anywhere; }
.intent-qr { text-align: center; }
.intent-qr img { display: block; width: min(100%, 320px); height: auto; margin: 0 auto 1rem; padding: .75rem; border-radius: 1rem; background: #fff; }
.intent-bank { display: none; margin-top: 1.5rem; }
.intent-bank[hidden] { display: none; }
.intent-bank p { margin: 0; font-size: .86rem; }
.intent-bank-link { display: flex; align-items: center; justify-content: center; text-align: center; text-decoration: none; }
.intent-status { grid-column: 1 / -1; }
.intent-retry, .intent-replace { grid-column: 1 / -1; }
.intent-replace { display: grid; gap: 10px; padding-top: 1.25rem; border-top: 1px solid var(--line); }
.intent-replace label { color: var(--muted); font-size: .86rem; font-weight: 750; }
.intent-replace input { width: 100%; min-width: 0; padding: 14px 16px; border: 1px solid var(--line); border-radius: 12px; color: var(--ink); background: var(--bg); font: 750 1.15rem/1.2 ui-sans-serif, system-ui, sans-serif; }
.intent-replace p { margin: 0; }
.payment-method-notice { grid-column: 1 / -1; margin: 0; padding: 12px 14px; border-radius: 10px; background: color-mix(in srgb, var(--accent) 9%, var(--surface)); color: var(--ink); }
.payment-notice-mobile { display: none; }
.credit-limit-page { max-width: 820px; }
.credit-limit-summary { min-height: auto; display: grid; grid-template-columns: minmax(180px, .7fr) minmax(0, 1.3fr); gap: 28px; align-items: center; }
.credit-limit-summary .card-value { margin-top: 8px; }
.credit-limit-explanation { margin: 0; padding: 18px 20px; border-left: 4px solid var(--accent); border-radius: 8px; background: color-mix(in srgb, var(--accent) 9%, var(--surface)); line-height: 1.55; }
.credit-limit-offer { display: grid; grid-template-columns: minmax(0, 1fr) minmax(280px, .8fr); gap: 32px; align-items: center; margin-top: 24px; }
.credit-limit-offer h2 { margin-top: 8px; font: 700 clamp(1.7rem, 4vw, 2.6rem)/1.08 Georgia, serif; letter-spacing: -.04em; }
.credit-limit-offer form { display: grid; gap: 16px; }
.credit-limit-offer__amount { margin: 0; font: 700 clamp(2.3rem, 6vw, 3.8rem)/1 Georgia, serif; color: var(--brand-strong); }
.credit-limit-history { margin-top: 24px; }
.credit-limit-history ol { margin: 18px 0 0; padding: 0; list-style: none; }
.credit-limit-history li { padding: 15px 0; border-top: 1px solid var(--line); }
.credit-limit-history li div { display: flex; justify-content: space-between; gap: 20px; }
.credit-limit-history li span { color: var(--brand-strong); font-weight: 750; }
.credit-limit-history li p { margin: 6px 0 0; color: var(--muted); font-size: .86rem; }

@media (max-width: 760px) {
  .topbar { min-height: 70px; padding: 14px 18px; }
  .login-layout { min-height: auto; padding: 36px 18px 64px; grid-template-columns: 1fr; gap: 38px; }
  .login-card { order: 1; }
  .login-intro { order: 2; }
  .login-intro h1 { font-size: clamp(2.5rem, 14vw, 4rem); }
  .login-intro > p:not(.eyebrow) { font-size: 1rem; }
  .support-card { margin-top: 24px; }
  .login-card { padding: 24px; }
  .dashboard { padding: 36px 18px 64px; }
  .dashboard-heading { align-items: flex-start; flex-direction: column; }
  .dashboard-grid { grid-template-columns: 1fr; }
  .support-info-card { grid-column: auto; }
  .balance-card { min-height: 200px; grid-template-columns: 1fr; gap: 22px; }
  .balance-card p { grid-column: auto; }
  .billing-summary div { align-items: flex-start; flex-direction: column; gap: 4px; }
  .billing-summary dd { text-align: left; }
  .device-registration-form { align-items: stretch; flex-direction: column; }
  .recovery-payment { padding: 36px 18px 64px; }
  .offer-grid { grid-template-columns: 1fr; }
  .top-up-card { grid-template-columns: 1fr; padding: 22px; }
  .top-up-form__controls { grid-template-columns: 1fr; }
  .recovery-intent { grid-template-columns: 1fr; padding: 1.25rem; }
  .intent-bank:not([hidden]) { display: grid; }
  [data-payment-card-action], [data-mobile-hidden], .intent-replace--card-only, .payment-notice-desktop { display: none; }
  .payment-notice-mobile { display: inline; }
  .credit-limit-summary, .credit-limit-offer { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: no-preference) {
  .theme-button, .text-button, .primary { transition: transform 140ms ease, box-shadow 140ms ease; }
}

.tariff-change-shell{max-width:720px}.current-plan,.pending-plan,.empty-state{padding:1.25rem;border:1px solid var(--line);border-radius:18px;background:var(--surface)}.current-plan{display:flex;align-items:center;justify-content:space-between;gap:1rem;margin-bottom:1rem}.current-plan span{color:var(--muted)}.current-plan strong{font-size:1.15rem;text-align:right}.pending-plan h2,.empty-state h2{margin:.25rem 0}.tariff-change-form{display:grid;gap:1rem;margin-top:1rem;padding:1.25rem;border:1px solid var(--line);border-radius:18px;background:var(--surface)}.tariff-change-form select{width:100%;min-height:3rem;padding:.7rem .8rem;border:1px solid var(--line);border-radius:12px;background:var(--surface);color:var(--ink);font:inherit}
