/* Customer redemption: presentation only; the existing forms own the workflow. */
html,body { min-height:100%; }
button,input,textarea { font:inherit; letter-spacing:0; }
.welcome { margin:40px auto 30px; text-align:center; }
.welcome-icon { width:56px; height:56px; margin:0 auto 19px; }
.welcome-icon .brand-symbol { width:56px; height:56px; }
.eyebrow { display:block; color:var(--muted); font-size:12px; font-weight:550; letter-spacing:.1px; line-height:1.5; }
.welcome h1 { margin:9px 0 13px; font-size:42px; line-height:1.4; letter-spacing:-1.5px; font-weight:650; }
.welcome>p { margin:0; color:var(--muted); font-size:14px; line-height:1.9; }
.workspace { width:calc(100% - 38px); max-width:570px; margin:auto; overflow:hidden; border:1px solid rgba(0,0,0,.035); border-radius:24px; background:var(--paper); box-shadow:0 6px 30px rgba(0,0,0,.035); }
.content { min-width:0; }
.pane { display:none; min-width:0; padding:29px 32px 30px; }
.pane.active { display:flex; flex-direction:column; animation:pane-in 260ms var(--ease); }
.pane form { display:flex; flex-direction:column; min-width:0; }
.heading { margin-bottom:22px; }
.step-heading { display:flex; align-items:center; justify-content:space-between; }
.step-heading>span { font-size:11px; color:var(--faint); }
.heading h1 { margin:0; color:var(--ink); font-size:18px; font-weight:600; line-height:1.5; letter-spacing:-.3px; }
.heading p { margin:8px 0 0; color:var(--muted); font-size:12px; line-height:1.85; }
.back { align-self:flex-start; gap:5px; margin:0 0 15px; padding:0; min-height:0; border-radius:0; font-size:11px; line-height:1.5; }
.back::before { content:'←'; font-size:15px; line-height:1; }
.mode-tabs { display:grid; grid-template-columns:1fr 1fr; gap:4px; margin-bottom:28px; padding:4px; border-radius:11px; background:var(--soft); }
.mode-tabs button { padding:9px 13px; border:0; border-radius:8px; color:var(--faint); background:transparent; font-size:13px; cursor:pointer; transition:background 180ms ease,color 180ms ease,box-shadow 180ms ease; }
.mode-tabs button.active { color:var(--ink); background:var(--paper); box-shadow:0 1px 4px #0000000c; font-weight:550; }
label { display:block; margin-bottom:11px; color:var(--ink); font-size:13px; font-weight:500; }
input,textarea { width:100%; min-width:0; padding:14px 16px; border:1px solid var(--line); border-radius:11px; outline:none; color:var(--ink); background:var(--canvas); transition:border-color 180ms ease,box-shadow 180ms ease; }
input { height:53px; font-size:14px; }
textarea { min-height:142px; resize:vertical; font-size:12px; line-height:1.8; }
input::placeholder,textarea::placeholder { color:var(--faint); opacity:1; }
input:focus,textarea:focus { border-color:var(--accent); box-shadow:0 0 0 3px color-mix(in srgb,var(--accent) 17%,transparent); }
.credential-field { position:relative; }
.credential-field input { padding-right:45px; font-size:13px; }
.credential-field>svg { position:absolute; top:18px; right:16px; width:17px; height:17px; color:var(--muted); pointer-events:none; }
.credential-note { margin:11px 0 0; color:var(--muted); font-size:11px; line-height:1.9; }
.field-error { margin:10px 0 0; padding:10px 12px; border-radius:9px; color:var(--red); background:var(--red-soft); font-size:12px; line-height:1.7; overflow-wrap:anywhere; }
.field-error:empty { display:none; }
.actionbar { display:flex; flex-direction:column-reverse; align-items:stretch; gap:9px; margin-top:23px; }
.primary { width:100%; min-height:46px; padding:10px 20px; border-radius:12px; font-size:14px; }
.primary:not(:disabled)::after { content:''; width:16px; height:16px; background:currentColor; mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 12h16M14 6l6 6-6 6'/%3E%3C/svg%3E") center/contain no-repeat; }
.cancel-order { align-self:center; color:var(--muted); }
.mono { font-family:"SFMono-Regular",Consolas,"Liberation Mono",monospace; font-variant-numeric:tabular-nums; }
@media(hover:hover) and (pointer:fine) { .primary:not(:disabled):hover { transform:none; box-shadow:none; } }
.card-footer { display:flex; align-items:center; justify-content:space-between; gap:7px; padding:17px 31px; border-top:1px solid var(--line); color:var(--muted); font-size:11px; line-height:1.5; }
.card-footer>span { display:flex; align-items:center; gap:6px; }
.card-footer svg { width:12px; height:12px; }
.card-footer button { display:flex; align-items:center; gap:4px; padding:2px 0; border:0; color:var(--accent); background:transparent; font-size:11px; cursor:pointer; white-space:nowrap; }
.card-footer button:disabled { opacity:.55; cursor:default; }
.selected-plan { display:flex; align-items:center; gap:10px; margin:0 0 23px; padding:14px; border-radius:12px; color:var(--ink); background:var(--soft); font-size:12px; }
.selected-plan>svg { width:17px; height:17px; color:var(--accent); }
.selected-plan>strong { font-weight:500; overflow-wrap:anywhere; }
.selected-plan>.badge { display:inline-flex; align-items:center; gap:5px; margin-left:auto; padding:5px 9px; border-radius:6px; color:var(--muted); background:var(--paper); font-size:10px; white-space:nowrap; line-height:1.4; }
.selected-plan .badge svg { width:10px; height:10px; }
.plan-strip { display:none; }
.guide-inline { display:flex; align-items:center; justify-content:space-between; gap:12px; margin-bottom:13px; color:var(--muted); font-size:11px; line-height:1.8; }
.guide-inline button { border:0; padding:7px 10px; border-radius:6px; color:var(--muted); background:var(--soft); font-size:11px; white-space:nowrap; cursor:pointer; }
.form-label { display:flex; align-items:center; justify-content:space-between; }
.form-label small { color:var(--faint); font-size:11px; font-weight:400; }
.session-textarea { min-height:135px; border-radius:12px; padding:13px 15px; line-height:1.9; }
.privacy { margin:11px 0 0; color:var(--muted); font-size:11px; line-height:1.9; }
.confirm-list { margin:0; }
.confirm-list>div { display:grid; grid-template-columns:90px minmax(0,1fr); gap:10px; align-items:center; padding:13px 0; border-bottom:1px solid var(--line); }
.confirm-list dt { color:var(--muted); font-size:12px; }
.confirm-list dd { margin:0; color:var(--ink); text-align:right; font-size:12px; font-weight:400; overflow-wrap:anywhere; }
#upgradePreview { margin:0; }
#upgradeSummary { padding:15px; border-radius:12px; background:var(--soft); color:var(--muted); font-size:12px; line-height:1.85; overflow-wrap:anywhere; }
#upgradeSummary.sr-only { padding:0; margin:-1px; }
.upgrade-path { display:flex; align-items:center; justify-content:space-between; gap:0; margin:0 0 23px; padding:29px 20px; border-radius:16px; background:var(--canvas); }
.upgrade-path>div { flex:1; min-width:0; text-align:center; }
.upgrade-path small { display:block; margin-bottom:13px; font-size:11px; color:var(--faint); }
.upgrade-path strong { display:block; font-size:30px; font-weight:600; letter-spacing:-1px; overflow-wrap:anywhere; }
.upgrade-path>svg { width:25px; height:25px; color:var(--muted); }
.upgrade-path .target strong { color:var(--accent); }
.upgrade-tools { display:flex; justify-content:flex-end; flex-wrap:wrap; gap:8px; margin-top:10px; }
.upgrade-tools .text-button { font-size:11px; }
.result-state { display:flex; min-height:245px; flex-direction:column; align-items:center; justify-content:center; text-align:center; }
.result-state h1 { margin:0; font-size:29px; font-weight:600; letter-spacing:-.8px; line-height:1.5; }
.result-message { max-width:420px; margin:12px 0 24px; color:var(--muted); font-size:12px; line-height:1.9; overflow-wrap:anywhere; }
.spinner { width:22px; height:22px; border:2px solid var(--accent-soft); border-top-color:var(--accent); border-radius:50%; animation:spin 900ms ease-in-out infinite; }
.result-icon,.result-symbol { display:grid; place-items:center; width:51px; height:51px; margin:0 auto 21px; border-radius:50%; font-size:26px; font-weight:500; }
.processing-symbol { background:var(--accent-soft); }
.result-pane { padding:36px 32px; }
.success-icon { color:var(--green); background:var(--green-soft); }
.failure-icon { color:var(--red); background:var(--red-soft); }
#failureState.review .failure-icon { color:#9a742f; background:#f8f1e4; }
html[data-theme="dark"] #failureState.review .failure-icon { color:#e8bf68; background:#3b301b; }
.compact { width:100%; margin:25px 0 12px; }
.order-ref { margin:18px 0 0; color:var(--muted); text-align:center; font:11px ui-monospace,SFMono-Regular,Menlo,monospace; line-height:1.8; overflow-wrap:anywhere; }
.order-ref:empty { display:none; }
.result-link { align-self:center; margin-top:10px; }
#upgradeCredentialForm { width:100%; margin:0 0 24px; padding:19px; border:1px solid var(--line); border-radius:14px; background:var(--canvas); text-align:left; }
#upgradeCredentialForm p:not(.field-error) { margin:0 0 10px; color:var(--muted); font-size:11px; line-height:1.85; }
#upgradeCredentialForm>a { align-self:flex-start; margin:0 0 12px -8px; }
#upgradeCredentialForm textarea { background:var(--paper); }
#upgradeCredentialForm button { margin-top:14px; }
#restoreRetry { margin-bottom:20px; }
.mobile-progress { max-width:570px; margin:0 auto 22px; }
.mobile-caption { display:flex; justify-content:space-between; margin:0 1px 12px; color:var(--muted); font-size:11px; }
.mobile-caption strong { color:var(--ink); font-weight:500; }
.progress-segments { display:flex; gap:7px; }
.progress-segments i { flex:1; height:3px; border-radius:3px; background:var(--line); }
.progress-segments i.active { background:var(--accent); }
.stages { display:flex; justify-content:space-between; gap:10px; list-style:none; margin:12px 0 0; padding:0; }
.stage { display:flex; align-items:center; gap:6px; color:var(--muted); font-size:10px; }
.stage-number { font-size:9px; font-variant-numeric:tabular-nums; }
.stage.active { color:var(--accent); }
.stage.done { color:var(--ink); }
body[data-step="1"] .mobile-progress { display:none; }
body:not([data-step="1"]) .welcome-icon { display:none; }
body[data-step="4"] .customer-lower,body[data-step="5"] .customer-lower,body[data-step="5"] .card-footer { display:none; }
.customer-lower { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:22px; width:calc(100% - 38px); max-width:570px; margin:27px auto 0; text-align:center; }
.mini-feature { padding:8px 0; }
.mini-feature svg { width:21px; height:21px; margin-bottom:10px; color:var(--muted); }
.mini-feature h2 { margin:0 0 5px; color:var(--ink); font-size:11px; font-weight:550; }
.mini-feature p { margin:0; color:var(--muted); font-size:10px; line-height:1.9; }
dialog { width:min(520px,calc(100% - 36px)); padding:34px; border:1px solid var(--line); border-radius:22px; color:var(--ink); background:var(--paper); box-shadow:0 16px 80px #00000024; }
dialog::backdrop { background:#00000040; backdrop-filter:blur(8px); }
dialog h2 { margin:0 0 21px; font-size:22px; font-weight:600; line-height:1.5; }
dialog ol { margin:0 0 27px; padding-left:22px; color:var(--muted); font-size:13px; line-height:1.9; }
dialog li+li { margin-top:8px; }
.dialog-close { position:absolute; top:12px; right:12px; width:30px; padding:0; color:var(--muted); font-size:23px; }
.dialog-link { width:100%; }
@keyframes spin { to { transform:rotate(360deg); } }
@keyframes pane-in { from { opacity:0; transform:translateY(6px); } to { opacity:1; transform:translateY(0); } }
@media(min-width:1650px) { .welcome { margin-top:58px; } }
@media(max-width:800px) { .welcome h1 { font-size:37px; } }
@media(max-width:640px) {
  .welcome { margin:30px auto 26px; }
  .welcome-icon,.welcome-icon .brand-symbol { width:50px; height:50px; }
  .welcome-icon { margin-bottom:18px; }
  .eyebrow { font-size:11px; }
  .welcome h1 { font-size:30px; letter-spacing:-1px; margin:10px 0 12px; }
  .welcome>p { font-size:12px; }
  .pane { padding:24px; }
  .heading h1 { font-size:18px; }
  .heading p { font-size:11px; }
  label { font-size:12px; }
  input { height:51px; }
  .credential-field input { padding-left:13px; font-size:12px; }
  .credential-note { font-size:10px; }
  .mode-tabs { margin-bottom:25px; }
  .mode-tabs button { padding:9px; font-size:12px; }
  .primary { min-height:44px; font-size:13px; }
  .card-footer { padding:15px 23px; font-size:10px; }
  .selected-plan { gap:7px; }
  .guide-inline { align-items:flex-start; }
  .confirm-list>div { grid-template-columns:74px minmax(0,1fr); gap:10px; }
  .confirm-list dt { font-size:11px; }
  .confirm-list dd { font-size:12px; }
  .upgrade-path { padding:23px 12px; }
  .upgrade-path strong { font-size:25px; }
  .customer-lower { gap:12px; margin-top:23px; }
  .mini-feature h2 { font-size:10px; }
  .mini-feature p { font-size:9px; }
  .card-footer button { font-size:10px; }
  .result-state { min-height:235px; }
  dialog { padding:31px 24px 24px; }
}
@media(prefers-reduced-motion:reduce) {
  .spinner,.pane.active { animation:none; }
  input,textarea { transition:none; }
}
