:root {
  --bg: #090a0e;
  --surface: #15171d;
  --text: #f5f5f7;
  --muted: #a7aab6;
  --line: #292c35;
  --accent: #ff2545;
  --green: #79d9af;
  --soft-red: #29131b;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

body { background: var(--bg); }
.app-shell { max-width: 680px; }
.app-header { border-bottom: 1px solid var(--line); padding-bottom: 16px; }
.app-header .logo { width: 122px; }
.account-access { color: var(--green); font-size: 13px; }
.account-access svg { color: var(--accent); }
.section-eyebrow { color: var(--muted); font-size: 11px; font-weight: 700; margin: 0 0 9px; }
h1 { font-size: 29px; }
h2 { font-size: 21px; }
p { line-height: 1.5; }
.primary { border-radius: 8px; min-height: 50px; }
.primary:hover { background: #e9233d; }
.bottom-nav { max-width: 680px; background: #0e0f14; }
.bottom-nav button[aria-current="page"] { font-weight: 600; }
.bottom-nav svg { width: 22px; height: 22px; }
.icon-button:hover { background: #20222a; }

#connect-form > .section-title,
.device-section > .section-title { margin-bottom: 10px; }
.connect-intro { max-width: 48ch; }
.code-digit { background: var(--surface); border-color: #414550; }
.code-digit:focus { background: var(--soft-red); }
.code-help { justify-content: center; }
.device-section { border-top: 1px solid var(--line); padding-top: 24px; }
.device-row { background: var(--surface); border-color: var(--line); }
.device-row > .device-icon { color: #8fcaff; }
.device-row .icon-button { background: #20222a; }
.device-state { color: var(--green); }
.device-tools input, .device-tools select { background: #20222a; }

.plan-overview { min-width: 0; }
.pro-summary { grid-template-columns: 40px minmax(0,1fr); padding-bottom: 18px; }
.pro-summary h2 { font-size: 29px; }
.pro-summary > svg { color: var(--accent); }
.details { background: var(--surface); border: 1px solid var(--line); border-radius: 8px; padding: 6px 16px; margin-bottom: 18px; }
.details > div:last-child { border-bottom: 0; }
.details dt { color: var(--muted); }
.details dd { font-weight: 600; overflow-wrap: anywhere; }
.benefit-column { min-width: 0; margin-top: 28px; }
.benefit-heading { font-size: 19px; margin: 0 0 12px; }
.pro-benefits { margin-top: 0; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); padding: 0 16px; }
.pro-benefits li { grid-template-columns: 24px minmax(0,1fr) 44px; gap: 12px; min-height: 80px; padding: 16px 0; }
.pro-benefits li:last-child { border-bottom: 0; }
.pro-benefits li > svg { width: 22px; height: 22px; color: var(--accent); }
.pro-benefits h3 { font-size: 15px; }
.pro-benefits p { font-size: 13px; }

.service-section { background: var(--surface); border: 1px solid var(--line); border-radius: 8px; padding: 20px; }
.services-grid { gap: 12px; }
.service-section h2 { font-size: 19px; }
.service-section .title-with-help > svg { color: var(--accent); }
.service-section .primary { width: 100%; }
.service-guides { border-top: 1px solid var(--line); padding-top: 10px; }
.service-guides a { color: #8fcaff; }
.help-intro { padding-bottom: 16px; border-bottom: 1px solid var(--line); }
.help-intro h2 { font-size: 25px; }
.help-faq h2, .help-title { font-size: 18px; }
.faq-category > summary svg { color: var(--accent); }
.help-row { padding: 13px 8px; border-radius: 6px; }
.help-row:hover { background: var(--surface); }
.native-steps li { border-color: var(--line); }
.native-step-number { color: var(--accent); }
.guide-note { background: #252014; border-left-color: #e3bc65; }

#config-title { font-size: 29px; margin: 0 0 18px; }
#pro-configurator > .text-back { margin-bottom: 10px; }
.config-layout { gap: 30px; }
.config-feature-band { background: #1d171c; border: 1px solid #46303a; border-radius: 8px; padding: 16px; margin: 0 0 24px; }
.config-feature-band h3 { margin: 0 0 5px; font-size: 19px; }
.config-feature-band p { margin: 0 0 12px; font-size: 13px; }
.config-feature-band > div { display: flex; align-items: flex-start; gap: 9px; margin-top: 9px; font-size: 13px; }
.config-feature-band svg { width: 17px; height: 17px; color: var(--accent); }
#pro-configurator fieldset { margin: 0 0 22px; padding-bottom: 22px; }
#pro-configurator legend { font-size: 16px; margin-bottom: 13px; }
.period-options { grid-template-columns: minmax(0,1fr); gap: 8px; }
.period-options label { margin: 0; color: var(--text); }
.period-options label > span { display: flex; flex-direction: column; align-items: flex-start; gap: 5px; padding: 13px 16px 13px 43px; min-height: 70px; background: var(--surface); border-radius: 8px; text-align: left; }
.period-options input:checked + span { background: var(--soft-red); border-color: var(--accent); box-shadow: inset 0 0 0 1px var(--accent); }
.period-options strong { font-size: 17px; font-weight: 650; }
.period-options .period-base-price { font-size: 21px; font-weight: 650; font-variant-numeric: tabular-nums; }
.period-options small { color: var(--muted); font-size: 12px; line-height: 1.35; }
.config-addons { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 8px; }
.config-toggle, .config-device-addon { display: flex; align-items: center; gap: 10px; min-width: 0; min-height: 84px; margin: 0; padding: 12px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); color: var(--text); }
.config-toggle:has(input:checked) { border-color: var(--accent); background: var(--soft-red); }
.config-toggle > span:nth-child(2), .config-device-addon > span:nth-child(2) { min-width: 0; flex: 1; }
.config-toggle strong, .config-device-addon strong { display: block; font-size: 14px; }
.config-toggle small, .config-device-addon small { display: block; margin-top: 3px; color: var(--muted); font-size: 11px; line-height: 1.3; }
.config-addon-icon { display: flex; align-items: center; justify-content: center; color: #8fcaff; }
.config-addon-icon svg { width: 20px; height: 20px; }
.config-toggle input { width: 20px; height: 20px; }
.config-device-addon { grid-column: 1 / -1; flex-wrap: wrap; }
.device-stepper { gap: 2px; margin-left: auto; }
.device-stepper output { width: 38px; font-size: 19px; font-weight: 650; }
.device-stepper .icon-button { min-width: 36px; width: 36px; height: 40px; padding: 9px; background: #20222a; }
.device-stepper svg { width: 18px; height: 18px; }
.config-draft { min-width: 0; border-top: 1px solid var(--line); padding-top: 20px; }
.config-draft h3 { margin: 0 0 12px; font-size: 16px; }
.config-summary { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 9px 0; }
.config-summary > div { padding: 6px 0; }
.config-summary dd { max-width: 58%; overflow-wrap: anywhere; }
.config-breakdown { padding: 12px 0; border-bottom: 1px solid var(--line); color: var(--muted); font-size: 13px; line-height: 1.45; }
.config-breakdown > div { display: flex; justify-content: space-between; gap: 12px; padding: 5px 0; }
.config-breakdown > div span { min-width: 0; }
.config-breakdown strong { flex-shrink: 0; color: var(--text); font-weight: 600; font-variant-numeric: tabular-nums; text-align: right; }
.config-grand { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin: 16px 0 8px; }
.config-grand span { font-weight: 600; }
.config-grand strong { font-size: 22px; line-height: 1.3; font-variant-numeric: tabular-nums; text-align: right; }
.config-safe { display: flex; align-items: center; justify-content: center; gap: 6px; color: var(--muted); font-size: 12px; margin: 10px 0 0; }
.config-safe svg { width: 15px; height: 15px; color: var(--green); }
#config-next { justify-content: space-between; }
#config-next svg { width: 18px; height: 18px; }
.config-checkout { max-width: 560px; margin: 0 auto; }
[data-view="subscription"].is-configuring > .benefit-column { display: none; }
.config-checkout h3 { font-size: 21px; margin: 8px 0 6px; }
.config-checkout > .muted { margin: 0 0 20px; }
.method-list { gap: 8px; }
.method-option { min-height: 78px; padding: 14px; border-radius: 8px; }
.method-option[aria-pressed="true"] { background: var(--soft-red); }
.method-option > svg { color: #8fcaff; }
.method-option strong { font-size: 15px; }
.method-option small { font-size: 12px; }
.method-price { font-weight: 600; }
.crypto-group[aria-expanded="true"] { border-color: var(--accent); }
.crypto-inline { padding: 0 0 0 16px; margin: 8px 0 0; border-left: 2px solid var(--line); }
.config-checkout-footer { margin-top: 24px; }
.config-checkout-footer .config-summary { border-bottom: 0; }
.config-checkout-footer .config-grand { border-top: 1px solid var(--line); padding-top: 16px; }
#config-quote-status { min-height: 0; }
.flow-error { border: 1px solid #583342; border-left: 3px solid var(--accent); border-radius: 6px; background: #271820; }
.secondary { border-radius: 8px; }
#config-term-dialog { max-width: 420px; border-color: #3b3d48; padding: 22px; }
#config-term-dialog h2 { font-size: 21px; }
#config-term-dialog p { font-size: 14px; }
.config-term-value { border: 1px solid #315747; border-radius: 8px; background: #10221b; padding: 14px; margin: 16px 0; }
.config-term-value span, .config-term-value small { display: block; color: var(--muted); font-size: 12px; line-height: 1.5; }
.config-term-value strong { display: block; color: var(--green); font-size: 25px; margin: 4px 0; }
#config-term-dialog .secondary { width: 100%; margin: 8px 0 0; }

@media (min-width: 900px) {
  .app-shell { max-width: 1180px; }
  .bottom-nav { max-width: none; }
  [data-view="subscription"] { grid-template-columns: minmax(0,.9fr) minmax(0,1.1fr); gap: 32px; }
  .benefit-column { border-left: 1px solid var(--line); padding-left: 32px; margin-top: 0; }
  .pro-benefits { border: 0; padding: 0; background: transparent; }
  .config-layout { grid-template-columns: minmax(0,1.25fr) minmax(270px,.75fr); }
  .config-draft { border-top: 0; border-left: 1px solid var(--line); padding: 0 0 0 28px; position: sticky; top: 10px; }
}

@media (max-width: 359px) {
  .config-addons { grid-template-columns: minmax(0,1fr); }
  .config-device-addon { grid-column: auto; }
  .method-option { grid-template-columns: 24px minmax(0,1fr); }
  .method-price { grid-column: 2; }
  .details dt { min-width: 0; }
  .config-grand strong { font-size: 19px; }
}

@media (max-height: 500px) {
  .config-draft { position: static; }
}
