/* Recharge steps share the observed reference layout; homepage stays independent. */
body.recharge-flow { background: linear-gradient(135deg, #eff6ff, #eef2ff); font-family: ui-sans-serif, system-ui, sans-serif; font-size: 16px; color: #111827; }
body.recharge-flow .header-inner { max-width: 896px; padding: 32px 24px 0; }
body.recharge-flow .primary-layout { max-width: 896px; padding: 16px 24px 0; }
body.recharge-flow .hero { padding: 32px; margin: 0 0 32px; border-radius: 12px; border: 1px solid #ffffff4d; background: #ffffffb3; }
body.recharge-flow .hero h1 { font-size: 36px; line-height: 40px; font-weight: 700; color: #7c83ff; margin: 0; letter-spacing: 0; }
body.recharge-flow .hero::after { content: ''; display: block; width: 96px; height: 4px; margin: 16px auto 0; background: linear-gradient(90deg, #3b82f6, #8b5cf6); border-radius: 2px; }
body.recharge-flow .hero-description { display: none; }
body.recharge-flow .language-control select { min-height: 38px; padding: 8px 14px; background: white; border: 1px solid #d1d5db; border-radius: 6px; box-shadow: 0 1px 2px #0000000d; }
body.recharge-flow .service-switcher { margin: 0 0 16px; min-height: 28px; }
body.recharge-flow .provider-readiness { padding: 4px 12px; line-height: 18px; border-radius: 999px; background: #f3f4f6; border: 1px solid #d1d5db; font-size: 12px; }
body.recharge-flow .provider-readiness::before { display: none; }
body.recharge-flow .provider-readiness.is-available { color: #047857; background: #d1fae5; border-color: #6ee7b7; }
body.recharge-flow .provider-readiness.is-unavailable { color: #92400e; background: #fffbeb; border-color: #fcd34d; }
body.recharge-flow .workspace { padding: 32px; border-radius: 12px; border: 1px solid #ffffff4d; background: #ffffffb3; box-shadow: 0 10px 15px -3px #0000001a, 0 4px 6px -4px #0000001a; }
body.recharge-flow .stepper { max-width: 540px; margin: 0 auto 32px; }
body.recharge-flow .stepper .step { display: flex; align-items: center; justify-content: center; gap: 8px; }
body.recharge-flow .stepper .step span { width: 40px; height: 40px; flex: none; margin: 0; border: 0; background: #e5e7eb; color: #6b7280; font-size: 16px; box-shadow: none; }
body.recharge-flow .stepper .step em { margin: 0; font-size: 14px; color: #111; }
body.recharge-flow .stepper .step.is-current span, body.recharge-flow .stepper .step.is-done span { color: white; background: #3b82f6; box-shadow: none; }
body.recharge-flow .stepper .step::before { display: none; }
body.recharge-flow .stepper .step::after { left: calc(100% - 16px); width: 32px; top: 20px; background: #e5e7eb; }
body.recharge-flow .stepper .step.is-done::after { background: #3b82f6; }
body.recharge-flow [data-step-panel="1"] .section-heading, body.recharge-flow [data-step-panel="2"] .section-heading, body.recharge-flow .details-subtitle { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
body.recharge-flow .field-label { font-size: 16px; line-height: 24px; color: #374151; margin-bottom: 8px; font-weight: 500; }
body.recharge-flow input[type=text], body.recharge-flow textarea { padding: 12px; font-size: 16px; border-radius: 8px; border: 1px solid #d1d5db; background: #ffffff80; }
body.recharge-flow #redeem-card { height: 50px; font-family: inherit; letter-spacing: 0; }
body.recharge-flow .primary-button { min-height: 48px; margin-top: 24px; padding: 12px; font-size: 16px; font-weight: 500; border-radius: 8px; background: linear-gradient(90deg, #3b82f6, #8b5cf6); }
body.recharge-flow .secondary-button { background: #e5e7eb; border-radius: 8px; color: #374151; min-height: 48px; font-size: 16px; font-weight: 500; }
body.recharge-flow .button-row { margin-top: 20px; gap: 16px; }
body.recharge-flow .button-row .primary-button { margin-top: 0; }
body.recharge-flow .verified-card { padding: 16px; margin: 0 0 16px; border: 1px solid #bfdbfe; background: #eff6ff; border-radius: 8px; gap: 8px; }
body.recharge-flow .verified-icon { color: #3b82f6; background: transparent; width: 20px; height: 24px; font-size: 20px; }
body.recharge-flow .verified-card p { margin: 0; color: #3b82f6; font-size: 16px; line-height: 24px; }
body.recharge-flow #product-summary .product-name { font-size: 14px; line-height: 22px; font-weight: 400; color: #4b5563; }
body.recharge-flow #verified-code { margin: 0; font-family: inherit; color: #4b5563; font-size: 14px; }
body.recharge-flow .session-instructions { margin: 0 0 16px; }
body.recharge-flow .session-actions { display: flex; flex-direction: column; gap: 16px; }
body.recharge-flow .session-actions > div { display: flex; align-items: center; gap: 24px; }
body.recharge-flow .session-actions > div::before { content: attr(data-step-label); color: #111827; width: 76px; flex: none; font-size: 14px; }
body.recharge-flow .session-instructions .session-jump { display: inline-flex; min-height: 44px; padding: 10px 20px; font-size: 14px; font-weight: 500; background: #3b82f6; border: 0; border-radius: 6px; color: white; }
body.recharge-flow .session-instructions .session-login { background: #22c55e; color: white; }
body.recharge-flow .session-instructions .session-jump:hover { filter: brightness(.97); background: #3b82f6; }
body.recharge-flow .session-instructions .session-login:hover { background: #22c55e; }
body.recharge-flow .session-instructions .session-tab-hint { font-size: 12px; line-height: 18px; color: #b77900; margin: 8px 0 0; }
body.recharge-flow .session-paste-label { font-size: 14px; line-height: 20px; color: #111827; font-weight: 400; margin-bottom: 8px; }
body.recharge-flow .dynamic-field textarea { min-height: 146px; line-height: 24px; font-family: inherit; }
body.recharge-flow .session-preview { margin: 6px 0 0; }
body.recharge-flow .session-preview.is-valid { padding: 0; border: 0; background: none; }
body.recharge-flow .session-preview .confirm-kv { display: none; }
body.recharge-flow .session-preview > p { font-size: 12px; line-height: 18px; color: #6b7280; font-weight: 400; }
body.recharge-flow .session-preview.is-valid > p { color: #15803d; }
body.recharge-flow .field-counter { display: none; }
body.recharge-flow .confirmation-summary { padding: 20px; border: 1px solid #bbf7d0; border-radius: 8px; background: #ffffff80; margin-bottom: 24px; }
body.recharge-flow .confirmation-summary h2 { font-size: 18px; line-height: 28px; font-weight: 500; padding-bottom: 8px; margin: 0 0 12px; border-bottom: 1px solid #e5e7eb; color: #111; }
body.recharge-flow .confirmation-summary .confirm-kv { border: 0; border-radius: 0; }
body.recharge-flow .confirmation-summary .confirm-kv div { align-items: start; padding: 8px 0; border-bottom: 1px solid #e5e7eb; }
body.recharge-flow .confirmation-summary .confirm-kv div:last-child { border-bottom: 0; padding-bottom: 0; }
body.recharge-flow .confirmation-summary .confirm-kv dt { width: 30%; padding: 0; background: none; color: #4b5563; font-size: 14px; font-weight: 400; }
body.recharge-flow .confirmation-summary .confirm-kv dd { padding: 0; text-align: right; min-width: 0; color: #111827; font-size: 14px; font-weight: 400; }
body.recharge-flow .confirm-sheet .confirm-kv div:nth-child(3) dd { color: #111827; font-weight: 400; }
body.recharge-flow .confirm-sheet > .confirmation-notice { padding: 14px 16px; margin: 0 0 16px; color: #2563eb; background: #eff6ff; border: 1px solid #bfdbfe; border-radius: 8px; font-size: 14px; line-height: 20px; }
body.recharge-flow .confirm-sheet > .confirmation-warning { font-size: 12px; color: #6b7280; margin: 12px 0 0; }
body.recharge-flow [data-confirm-ok] { background: linear-gradient(90deg, #22c55e, #16a34a); }
body.recharge-flow .result-card { background: #ffffff80; padding: 24px; border: 1px solid #bfdbfe; border-radius: 8px; }
body.recharge-flow .result-card.is-success { border-color: #bbf7d0; }
body.recharge-flow .result-card.is-fail { border-color: #fecaca; }
body.recharge-flow .result-card p { font-size: 14px; line-height: 22px; }
body.recharge-flow .kv-list { border-color: #e5e7eb; }
body.recharge-flow .kv-list dt { background: transparent; }
body.recharge-flow .kv-list dt, body.recharge-flow .kv-list dd { font-size: 14px; }
body.recharge-flow .site-footer { margin-top: 20px; font-size: 14px; color: #6b7280; line-height: 20px; }
@media (max-width: 639px) {
  body.recharge-flow .header-inner { padding: 24px 16px 0; gap: 10px; }
  body.recharge-flow .primary-layout { padding: 16px 16px 0; }
  body.recharge-flow .hero { padding: 20px; margin-bottom: 24px; }
  body.recharge-flow .hero h1 { font-size: 30px; line-height: 36px; }
  body.recharge-flow .workspace { padding: 20px; }
  body.recharge-flow .stepper { margin-bottom: 24px; }
  body.recharge-flow .stepper .step { flex-direction: column; gap: 8px; }
  body.recharge-flow .stepper .step span { width: 32px; height: 32px; }
  body.recharge-flow .stepper .step em { font-size: 12px; line-height: 16px; }
  body.recharge-flow .stepper .step::after { top: 16px; left: calc(100% - 8px); width: 16px; }
  body.recharge-flow .session-actions > div { gap: 16px; }
  body.recharge-flow .session-actions > div::before { width: 84px; }
  body.recharge-flow .session-instructions .session-jump { padding: 10px 12px; }
  body.recharge-flow .confirmation-summary { padding: 16px; }
  body.recharge-flow .confirmation-summary h2 { font-size: 16px; line-height: 24px; }
  body.recharge-flow .confirmation-summary .confirm-kv div { flex-direction: column; gap: 6px; padding: 10px 0; }
  body.recharge-flow .confirmation-summary .confirm-kv dt { width: auto; }
  body.recharge-flow .confirmation-summary .confirm-kv dd { text-align: left; overflow-wrap: anywhere; }
  body.recharge-flow .button-row { gap: 12px; }
  body.recharge-flow .button-row button { padding: 12px 8px; font-size: 16px; }
  body.recharge-flow .result-card { padding: 20px 12px; }
}

body.recharge-flow .convenient-services { box-sizing: border-box; width: calc(100% - 48px); max-width: 848px; margin: 28px auto 0; padding: 28px 32px; }
body.recharge-flow .convenient-services h2 { font-size: 20px; line-height: 28px; margin: 0 0 20px; color: #334155; }
body.recharge-flow .convenient-services .service-card { font-family: inherit; font-size: 15px; font-weight: 600; min-height: 50px; cursor: pointer; }
@media (max-width: 639px) { body.recharge-flow .convenient-services { width: calc(100% - 32px); padding: 22px 20px; } }

.query-mode body.recharge-flow .hero { display: none; }
.query-mode body.recharge-flow .header-inner { max-width: 1200px; }
.query-mode body.recharge-flow .primary-layout { max-width: 1200px; padding-top: 24px; }
.query-mode body.recharge-flow .convenient-services { max-width: 1152px; }
.query-mode body.recharge-flow .query-layout { display: block; }
.query-mode body.recharge-flow .query-result { min-width: 0; margin-top: 28px; }
.query-mode body.recharge-flow .query-layout textarea { min-height: 140px; }
.card-table-scroll { max-width: 100%; overflow-x: auto; border: 1px solid #e5eaf3; border-radius: 10px; background: #ffffffb3; }
.card-results-table { width: 100%; min-width: 900px; border-collapse: collapse; text-align: left; font-size: 14px; line-height: 1.6; }
.card-results-table th { padding: 14px 16px; color: #657797; background: #f7f9fd; font-size: 13px; font-weight: 600; white-space: nowrap; }
.card-results-table td { padding: 18px 16px; border-top: 1px solid #eaf0f7; vertical-align: top; color: #374151; }
.card-results-table .card-code { font-family: ui-monospace, Consolas, monospace; font-size: 13px; min-width: 220px; max-width: 300px; overflow-wrap: anywhere; }
.card-results-table .card-account { min-width: 180px; max-width: 250px; overflow-wrap: anywhere; }
.card-results-table .card-time { min-width: 180px; white-space: nowrap; }
.card-results-table small { display: block; margin-top: 4px; color: #71819a; font-size: 12px; }
.card-status { display: inline-block; border-radius: 7px; padding: 2px 10px; white-space: nowrap; font-weight: 600; }
.card-status-used { background: #f0f2f5; color: #273449; }
.card-status-unused { background: #e6f7ef; color: #167248; }
.card-status-warning { background: #fff3d8; color: #986307; }
.copy-card { padding: 0; border: 0; background: none; color: #2563eb; cursor: pointer; font: inherit; font-weight: 600; white-space: nowrap; }
.copy-card:hover { text-decoration: underline; }
.verification-dialog {
  width: min(560px, calc(100vw - 32px));
  max-height: calc(100dvh - 48px);
  box-sizing: border-box;
  padding: 28px;
  border: 1px solid #d7e3f5;
  border-radius: 20px;
  color: #203757;
  background: #fff;
  box-shadow: 0 18px 60px #172d5540;
}
.verification-dialog::backdrop { background: #14233b99; }
.verification-dialog h2 { margin: 0 0 18px; font-size: 24px; }
.verification-dialog p { line-height: 1.7; }
.verification-dialog .button-row { display: flex; flex-direction: column; gap: 12px; }
.verification-dialog .button-row > * { width: 100%; box-sizing: border-box; text-align: center; }
.verification-dialog a { text-decoration: none; }
.verification-dialog a:not([href]) { opacity: .55; cursor: wait; }
