:root {
  --bg: #f6f7f4;
  --panel: #ffffff;
  --text: #1d2320;
  --muted: #69736d;
  --line: #dce2dc;
  --field: #fbfcfa;
  --accent: #0f766e;
  --accent-dark: #0b5f59;
  --warning: #9a5a00;
  --warning-bg: #fff7df;
  --success: #136c3a;
  --success-bg: #eaf7ee;
  --error: #a32222;
  --error-bg: #fff0f0;
  --shadow: 0 24px 70px rgba(33, 44, 39, 0.14);
  --shadow-soft: 0 12px 34px rgba(33, 44, 39, 0.1);
  --shadow-lift: 0 18px 46px rgba(33, 44, 39, 0.16);
}

/* iOS settings style for the public recharge page only. */
body.recharge-ios {
  color: #1d1d1f;
  background:
    radial-gradient(circle at 50% -18%, rgba(255, 255, 255, 0.92), transparent 36%),
    #f5f5f7;
  font-family:
    -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text",
    "Microsoft YaHei", "PingFang SC", "Segoe UI", Arial, sans-serif;
}

.recharge-ios .page-shell::before {
  display: none;
}

.recharge-ios-shell {
  width: min(100% - 32px, 760px);
  align-items: start;
  padding: clamp(28px, 6vw, 66px) 0;
}

.recharge-ios-panel {
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
}

.recharge-ios-hero {
  margin: 0 0 22px;
  padding: 0 6px;
}

.recharge-ios .eyebrow {
  color: #0071e3;
  font-size: 13px;
  letter-spacing: 0;
}

.recharge-ios h1 {
  color: #1d1d1f;
  font-size: clamp(34px, 7vw, 52px);
  font-weight: 800;
  line-height: 1.04;
}

.recharge-ios .summary {
  max-width: 620px;
  color: #6e6e73;
  font-size: 16px;
  line-height: 1.55;
}

.recharge-ios .recharge-mode-tabs {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 4px;
  margin: 0 6px 14px;
  padding: 4px;
  border: 1px solid rgba(0, 0, 0, 0.06);
  border-radius: 14px;
  background: rgba(232, 232, 237, 0.88);
}

.recharge-ios .recharge-mode-tab {
  height: 44px;
  padding: 0 16px;
  border: 0;
  border-radius: 10px;
  color: #6e6e73;
  background: transparent;
  box-shadow: none;
  font-size: 14px;
  font-weight: 800;
}

.recharge-ios .recharge-mode-tab:hover {
  color: #1d1d1f;
  background: rgba(255, 255, 255, 0.5);
}

.recharge-ios .recharge-mode-tab.is-active {
  color: #1d1d1f;
  background: #ffffff;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.recharge-ios .recharge-mode-tab:focus-visible {
  outline: 3px solid rgba(0, 113, 227, 0.25);
  outline-offset: 1px;
}

.recharge-ios .recharge-view {
  min-width: 0;
}

.recharge-ios-form {
  gap: 14px;
}

.recharge-ios .verified-flow {
  display: grid;
  gap: 14px;
}

.recharge-ios .verified-flow.is-visible {
  animation: recharge-step-in 180ms ease-out;
}

.recharge-ios .ios-settings-group {
  display: grid;
  gap: 14px;
  margin: 0;
  padding: 18px;
  border: 1px solid rgba(0, 0, 0, 0.07);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.82);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.055);
  backdrop-filter: blur(18px);
}

.recharge-ios .ios-section-title,
.recharge-ios .compact-header h2 {
  margin: 0;
  color: #1d1d1f;
  font-size: 15px;
  font-weight: 800;
  line-height: 1.3;
}

.recharge-ios .field-group {
  gap: 9px;
}

.recharge-ios label,
.recharge-ios .ios-label-line {
  color: #424245;
  font-size: 13px;
  font-weight: 700;
}

.recharge-ios .ios-label-line {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.recharge-ios .ios-label-line a {
  flex: 0 0 auto;
  color: #0071e3;
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
}

.recharge-ios .ios-label-line a:hover {
  text-decoration: underline;
}

.recharge-ios input,
.recharge-ios textarea,
.recharge-ios select {
  color: #1d1d1f;
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 12px;
  background: rgba(245, 245, 247, 0.78);
}

.recharge-ios input,
.recharge-ios select {
  height: 50px;
  padding: 0 16px;
}

.recharge-ios textarea {
  min-height: 178px;
  padding: 14px 16px;
}

.recharge-ios input:focus,
.recharge-ios textarea:focus,
.recharge-ios select:focus {
  border-color: rgba(0, 113, 227, 0.58);
  background: #ffffff;
  box-shadow: 0 0 0 4px rgba(0, 113, 227, 0.13);
}

.recharge-ios .inline-action,
.recharge-ios .wide-action {
  grid-template-columns: minmax(0, 1fr) 88px;
  gap: 10px;
}

.recharge-ios button {
  height: 50px;
  border-radius: 12px;
  font-weight: 800;
}

.recharge-ios #verify-btn,
.recharge-ios #query-btn {
  color: #ffffff;
  background: #0071e3;
}

.recharge-ios #verify-btn:not(:disabled):hover,
.recharge-ios #query-btn:not(:disabled):hover {
  background: #0066cc;
}

.recharge-ios .primary-btn {
  color: #ffffff;
  background: #1d1d1f;
}

.recharge-ios .primary-btn:not(:disabled):hover {
  background: #000000;
}

.recharge-ios .secondary-btn {
  color: #1d1d1f;
  border: 1px solid rgba(0, 0, 0, 0.06);
  background: #e8e8ed;
  box-shadow: none;
}

.recharge-ios .secondary-btn:not(:disabled):hover {
  color: #1d1d1f;
  background: #dedee3;
}

.recharge-ios .ios-action-group {
  gap: 10px;
}

.recharge-ios .step-title-line {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
}

.recharge-ios .step-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  flex: 0 0 30px;
  border-radius: 50%;
  color: #ffffff;
  background: #1d1d1f;
  font-size: 15px;
  font-weight: 800;
  line-height: 1;
}

.recharge-ios .step-hint {
  margin: -2px 0 14px;
  color: #6e6e73;
  font-size: 14px;
  line-height: 1.5;
}

.recharge-ios .action-step-title {
  margin-bottom: 4px;
}

.recharge-ios .session-link-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  padding: 0 12px;
  border-radius: 999px;
  color: #ffffff;
  background: #1d1d1f;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
}

.recharge-ios .session-link-button:hover {
  background: #000000;
}

.recharge-ios .cancel-queue-btn {
  margin-top: 0;
}

.recharge-ios .status-box {
  min-height: 48px;
  align-items: center;
  border: 1px solid rgba(0, 0, 0, 0.06);
  border-radius: 12px;
  background: rgba(245, 245, 247, 0.86);
  box-shadow: none;
  color: #6e6e73;
}

.recharge-ios .status-box[data-state="success"] {
  color: #0f7a3b;
  border-color: rgba(15, 122, 59, 0.16);
  background: #eaf7ee;
}

.recharge-ios .status-box[data-state="error"] {
  color: #b42318;
  border-color: rgba(180, 35, 24, 0.16);
  background: #fff0f0;
}

.recharge-ios .status-box[data-state="warning"] {
  color: #805200;
  border-color: rgba(128, 82, 0, 0.14);
  background: #fff7df;
}

.recharge-ios .submit-result {
  min-height: 22px;
  padding: 0 4px;
  color: #6e6e73;
  font-size: 13px;
}

.recharge-ios .self-service {
  margin-top: 14px;
  padding-top: 18px;
  border-top: 0;
}

.recharge-ios .compact-header {
  margin-bottom: 0;
}

.recharge-ios .batch-query-block {
  display: grid;
  gap: 12px;
  padding-top: 4px;
}

.recharge-ios .batch-query-disclosure {
  margin-top: 2px;
  padding-top: 12px;
  border-top: 1px solid rgba(0, 0, 0, 0.07);
}

.recharge-ios .batch-query-disclosure summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 38px;
  color: #424245;
  cursor: pointer;
  font-size: 13px;
  font-weight: 800;
  list-style: none;
}

.recharge-ios .batch-query-disclosure summary::-webkit-details-marker {
  display: none;
}

.recharge-ios .batch-query-disclosure summary::after {
  content: "+";
  color: #6e6e73;
  font-size: 20px;
  font-weight: 500;
  line-height: 1;
}

.recharge-ios .batch-query-disclosure[open] summary::after {
  content: "-";
}

.recharge-ios .batch-query-table {
  overflow: hidden;
  border-radius: 14px;
}

@keyframes recharge-step-in {
  from {
    opacity: 0;
    transform: translateY(6px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 620px) {
  .recharge-ios-shell {
    width: min(100% - 20px, 760px);
    padding: 22px 0;
  }

  .recharge-ios h1 {
    font-size: 36px;
  }

  .recharge-ios .recharge-mode-tabs {
    margin-right: 0;
    margin-left: 0;
  }

  .recharge-ios .ios-settings-group {
    padding: 14px;
    border-radius: 16px;
  }

  .recharge-ios .ios-label-line {
    align-items: flex-start;
    flex-direction: column;
    gap: 4px;
  }

  .recharge-ios .inline-action,
  .recharge-ios .wide-action {
    grid-template-columns: 1fr;
  }
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  background:
    linear-gradient(120deg, rgba(15, 118, 110, 0.09), transparent 38%),
    linear-gradient(260deg, rgba(154, 90, 0, 0.1), transparent 36%),
    var(--bg);
  background-attachment: fixed;
  font-family:
    Inter, "Microsoft YaHei", "PingFang SC", "Segoe UI", Arial, sans-serif;
}

[hidden] {
  display: none !important;
}

button,
input,
textarea {
  font: inherit;
}

.page-shell {
  width: min(100% - 32px, 760px);
  min-height: 100vh;
  margin: 0 auto;
  display: grid;
  align-items: center;
  padding: 40px 0;
  position: relative;
  isolation: isolate;
}

.page-shell::before,
.admin-shell::before {
  content: "";
  position: absolute;
  inset: 22px -12px;
  z-index: -1;
  border: 1px solid rgba(29, 35, 32, 0.06);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.32);
  box-shadow: var(--shadow-soft);
  pointer-events: none;
}

.recharge-panel {
  width: 100%;
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid rgba(29, 35, 32, 0.08);
  border-radius: 8px;
  box-shadow: var(--shadow-lift);
  padding: clamp(24px, 4vw, 42px);
  position: relative;
  isolation: isolate;
}

.panel-header {
  margin-bottom: 28px;
}

.eyebrow {
  margin: 0 0 8px;
  color: var(--accent);
  font-size: 13px;
  font-weight: 700;
}

h1 {
  margin: 0;
  font-size: clamp(28px, 5vw, 40px);
  line-height: 1.15;
  letter-spacing: 0;
}

.summary {
  margin: 12px 0 0;
  color: var(--muted);
  line-height: 1.7;
}

.form-stack {
  display: grid;
  gap: 20px;
}

.field-group {
  display: grid;
  gap: 8px;
}

label {
  font-size: 14px;
  font-weight: 700;
}

input,
textarea,
select {
  width: 100%;
  min-width: 0;
  color: var(--text);
  background: var(--field);
  border: 1px solid var(--line);
  border-radius: 6px;
  outline: none;
  transition:
    border-color 140ms ease,
    box-shadow 140ms ease,
    background 140ms ease;
}

input,
select {
  height: 46px;
  padding: 0 14px;
}

textarea {
  resize: vertical;
  min-height: 146px;
  padding: 12px 14px;
  line-height: 1.55;
}

input:focus,
textarea:focus,
select:focus {
  border-color: rgba(15, 118, 110, 0.72);
  background: #ffffff;
  box-shadow: 0 0 0 4px rgba(15, 118, 110, 0.12);
}

input:disabled,
textarea:disabled,
select:disabled {
  color: #8a928c;
  background: #eff2ef;
  cursor: not-allowed;
}

.inline-action {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 104px;
  gap: 10px;
}

button {
  height: 46px;
  border: 0;
  border-radius: 6px;
  cursor: pointer;
  font-weight: 700;
}

button:disabled {
  cursor: not-allowed;
  opacity: 0.58;
}

#verify-btn {
  color: #ffffff;
  background: #2f554e;
}

#verify-btn:not(:disabled):hover {
  background: #23463f;
}

.primary-btn {
  width: 100%;
  color: #ffffff;
  background: var(--accent);
}

.primary-btn:not(:disabled):hover {
  background: var(--accent-dark);
}

.secondary-btn {
  width: 100%;
  color: var(--accent);
  background: #eef5f1;
  border: 1px solid rgba(15, 118, 110, 0.22);
  box-shadow: var(--shadow-soft);
}

.secondary-btn:not(:disabled):hover {
  color: #ffffff;
  background: var(--accent);
}

.cancel-queue-btn {
  margin-top: -6px;
}

.hint,
.submit-result {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.6;
}

.hint-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.char-counter {
  flex: 0 0 auto;
  color: var(--muted);
  font-size: 12px;
}

.char-counter[data-state="warning"] {
  color: var(--warning);
  font-weight: 700;
}

.status-box {
  min-height: 52px;
  display: flex;
  align-items: center;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 6px;
  color: var(--muted);
  background: #f8faf7;
  line-height: 1.5;
  box-shadow: var(--shadow-soft);
}

.status-box[data-state="success"] {
  color: var(--success);
  border-color: rgba(19, 108, 58, 0.25);
  background: var(--success-bg);
}

.status-box[data-state="error"] {
  color: var(--error);
  border-color: rgba(163, 34, 34, 0.25);
  background: var(--error-bg);
}

.status-box[data-state="warning"] {
  color: var(--warning);
  border-color: rgba(154, 90, 0, 0.28);
  background: var(--warning-bg);
}

.session-account-confirm {
  margin-top: 10px;
}

.submit-result[data-state="success"] {
  color: var(--success);
}

.submit-result[data-state="error"] {
  color: var(--error);
}

.self-service {
  margin-top: 28px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  position: relative;
}

.compact-header {
  margin-bottom: 16px;
}

h2 {
  margin: 0;
  font-size: 22px;
  line-height: 1.25;
  letter-spacing: 0;
}

.wide-action {
  grid-template-columns: minmax(0, 1fr) 88px 120px;
}

.new-cdk-box {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) 76px;
  gap: 10px;
  align-items: center;
  margin-top: 12px;
  padding: 12px;
  border: 1px solid rgba(19, 108, 58, 0.25);
  border-radius: 8px;
  background: var(--success-bg);
}

.new-cdk-box span {
  color: var(--success);
  font-size: 13px;
  font-weight: 700;
}

.new-cdk-box code {
  overflow-wrap: anywhere;
  color: var(--success);
  font-weight: 700;
}

.new-cdk-box button {
  height: 34px;
  color: #ffffff;
  background: var(--success);
}

.batch-query-block {
  margin-top: 18px;
  display: grid;
  gap: 12px;
}

.batch-query-result {
  min-height: 80px;
  display: block;
  overflow-x: auto;
}

.batch-query-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}

.batch-query-table th,
.batch-query-table td {
  padding: 10px 8px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
  white-space: nowrap;
}

.batch-query-table td:last-child {
  min-width: 220px;
  white-space: normal;
}

.batch-state {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 0 8px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
  color: var(--accent);
  background: #eef5f1;
}

.batch-state[data-state="success"],
.batch-state[data-state="unused"] {
  color: var(--success);
  background: var(--success-bg);
}

.batch-state[data-state="failed"],
.batch-state[data-state="retryable"],
.batch-state[data-state="not_found"] {
  color: var(--error);
  background: var(--error-bg);
}

.batch-state[data-state="pending"],
.batch-state[data-state="operating"],
.batch-state[data-state="submitting"] {
  color: #1f5f9f;
  background: #edf5ff;
}

.admin-shell {
  width: min(100% - 32px, 1180px);
  min-height: 100vh;
  margin: 0 auto;
  padding: 34px 0;
  position: relative;
  isolation: isolate;
}

.admin-panel,
.admin-dashboard {
  width: 100%;
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid rgba(29, 35, 32, 0.08);
  border-radius: 8px;
  box-shadow: var(--shadow-lift);
  padding: clamp(22px, 3vw, 34px);
  position: relative;
  isolation: isolate;
}

.admin-panel {
  max-width: 520px;
  margin: 10vh auto 0;
}

.admin-toolbar {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: center;
  margin-bottom: 22px;
}

.admin-tabs {
  display: flex;
  gap: 8px;
  margin: 0 0 18px;
  border-bottom: 1px solid var(--line);
}

.tab-btn {
  height: 40px;
  padding: 0 14px;
  color: var(--muted);
  background: transparent;
  border-bottom: 2px solid transparent;
  border-radius: 0;
}

.tab-btn.active {
  color: var(--accent);
  border-bottom-color: var(--accent);
}

.toolbar-actions,
.mini-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.toolbar-actions button,
.mini-btn {
  height: 34px;
  padding: 0 12px;
  color: var(--text);
  background: #e8eee9;
}

.toolbar-actions button:disabled,
.mini-btn:disabled,
.status-select:disabled,
.status-note:disabled {
  opacity: 0.58;
  cursor: not-allowed;
}

.toolbar-actions button:hover,
.mini-btn:hover {
  background: #dce5df;
}

.toolbar-actions button:disabled:hover,
.mini-btn:disabled:hover {
  background: #e8eee9;
}

.copy-session-btn {
  color: #ffffff;
  background: var(--accent);
}

.copy-session-btn:hover {
  background: var(--accent-dark);
}

.copy-session-btn:disabled,
.copy-session-btn:disabled:hover {
  color: #53615a;
  background: #e8eee9;
}

.ghost-btn {
  color: var(--muted);
  background: #f0f3f1;
}

.danger-btn {
  color: var(--error);
  background: var(--error-bg);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 14px;
}

.stat-item {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 14px;
  background: #fbfcfa;
}

.stat-item strong {
  display: block;
  font-size: 28px;
  line-height: 1;
  font-variant-numeric: tabular-nums;
  transition: color 180ms ease;
}

.stat-item span,
.muted-line {
  display: block;
  margin-top: 6px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
}

.operator-stats-card {
  margin: 12px 0 14px;
  padding: 14px;
  border: 1px solid rgba(29, 35, 32, 0.08);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.82);
  box-shadow: var(--shadow-soft);
}

.operator-stats-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin: 12px 0 14px;
}

.operator-stats-row .operator-stats-card {
  margin: 0;
}

.operator-stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 10px;
  margin-top: 12px;
}

.operator-stat-item {
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfcfa;
}

.operator-stat-item strong {
  display: block;
  font-size: 26px;
  line-height: 1;
  color: var(--accent);
  font-variant-numeric: tabular-nums;
  transition: color 180ms ease;
}

.stat-item strong.is-number-jumping,
.operator-stat-item strong.is-number-jumping {
  color: var(--accent-dark);
  animation: numberJump 660ms ease;
}

@keyframes numberJump {
  0% {
    transform: translateY(0) scale(1);
  }
  35% {
    transform: translateY(-4px) scale(1.12);
  }
  70% {
    transform: translateY(2px) scale(0.98);
  }
  100% {
    transform: translateY(0) scale(1);
  }
}

.operator-stat-item span {
  display: block;
  margin-top: 6px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.table-wrap {
  width: 100%;
  overflow-x: auto;
  margin-top: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: var(--shadow-soft);
}

.submission-list-group {
  margin-top: 18px;
  padding: 14px;
  border: 1px solid rgba(29, 35, 32, 0.08);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.78);
  box-shadow: var(--shadow-soft);
}

.submission-list-group.processed-list {
  margin-top: 28px;
}

.list-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 40px;
}

.list-header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.collapse-toggle {
  min-width: 66px;
}

.list-header h2 {
  margin: 0;
  font-size: 18px;
  line-height: 1.3;
}

.list-count {
  flex: 0 0 auto;
  padding: 4px 10px;
  border-radius: 999px;
  background: #eef3ef;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.records-table {
  width: 100%;
  min-width: 1020px;
  border-collapse: collapse;
  background: #ffffff;
}

.submissions-table {
  min-width: 920px;
}

.agent-table {
  min-width: 860px;
}

.agent-actions {
  display: grid;
  grid-template-columns: repeat(3, minmax(86px, max-content));
  gap: 8px;
  align-items: center;
}

.agent-note {
  grid-column: 1 / -1;
  min-width: 260px;
}

.agent-note-shortcuts {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.agent-processed-note {
  display: grid;
  gap: 8px;
  min-width: 280px;
}

.agent-processed-note .agent-note {
  min-width: 0;
}

.inventory-table {
  min-width: 1420px;
}

.exchange-chain-cell {
  min-width: 280px;
  max-width: 420px;
  overflow-wrap: anywhere;
  color: #3f4f48;
  line-height: 1.55;
}

.submissions-table th:nth-child(1),
.submissions-table td:nth-child(1) {
  width: 170px;
}

.submissions-table th:nth-child(2),
.submissions-table td:nth-child(2) {
  width: 210px;
}

.submissions-table th:nth-child(3),
.submissions-table td:nth-child(3) {
  width: 340px;
}

.records-table th,
.records-table td {
  padding: 12px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
  font-size: 13px;
}

.records-table th {
  color: var(--muted);
  background: #f7f9f7;
  font-weight: 700;
}

.records-table tr:last-child td {
  border-bottom: 0;
}

.submission-row-animating-source {
  opacity: 0;
}

.submission-row-reflowing {
  position: relative;
  z-index: 2;
  will-change: transform;
}

.submission-flight-card {
  position: fixed;
  z-index: 2000;
  display: grid;
  overflow: hidden;
  pointer-events: none;
  border: 1px solid rgba(15, 118, 110, 0.18);
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 26px 70px rgba(15, 43, 38, 0.24);
  transform-origin: center center;
  will-change: transform, opacity;
  contain: layout paint;
  backface-visibility: hidden;
}

.submission-flight-cell {
  min-width: 0;
  padding: 12px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: #ffffff;
  color: var(--text);
  font-size: 13px;
  line-height: 1.45;
  overflow: hidden;
  word-break: break-word;
}

.submission-flight-cell:last-child {
  border-right: 0;
}

.submission-flight-card button,
.submission-flight-card input,
.submission-flight-card select,
.submission-flight-card textarea {
  pointer-events: none;
}

.stat-drop-target {
  animation: statDropTargetPulse 780ms ease;
  box-shadow: 0 0 0 4px rgba(15, 118, 110, 0.13);
}

@keyframes statDropTargetPulse {
  0% {
    transform: scale(1);
  }
  42% {
    transform: scale(1.05);
  }
  100% {
    transform: scale(1);
  }
}

.operator-locked-row {
  background: #f7f9f8;
}

.operator-locked-row td {
  opacity: 0.78;
}

.session-value {
  display: block;
  max-width: 320px;
  margin-bottom: 8px;
  padding: 8px;
  overflow-wrap: anywhere;
  border-radius: 6px;
  background: #f3f5f2;
  color: #28322d;
  white-space: pre-wrap;
}

.session-cell .mini-actions {
  display: grid;
  grid-template-columns: 1fr;
  max-width: 320px;
  gap: 10px;
}

.session-cell .copy-session-btn {
  width: 100%;
  height: 48px;
  font-size: 17px;
  font-weight: 800;
  border-radius: 8px;
}

.session-cell .copy-session-btn:disabled,
.session-cell .copy-session-btn:disabled:hover {
  color: #9aa29e;
  background: #f0f3f1;
}

.session-cell .ghost-btn {
  width: 100%;
}

.account-line {
  display: block;
  margin-bottom: 8px;
  color: var(--accent);
  font-size: 12px;
  font-weight: 700;
  overflow-wrap: anywhere;
}

.operator-line {
  display: block;
  margin: -2px 0 8px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  margin-bottom: 8px;
  padding: 0 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
}

.status-pending {
  color: var(--warning);
  background: var(--warning-bg);
}

.status-operating {
  color: #1f5f9f;
  background: #edf5ff;
}

.status-operating.operator-pill {
  min-height: 34px;
  padding: 0 14px;
  color: #ffffff;
  background: #1f5f9f;
  font-size: 15px;
  font-weight: 900;
  box-shadow: 0 8px 18px rgba(31, 95, 159, 0.22);
}

.status-success {
  color: var(--success);
  background: var(--success-bg);
}

.status-failed {
  color: var(--error);
  background: var(--error-bg);
}

.status-canceled {
  color: var(--warning);
  background: var(--warning-bg);
}

.status-select,
.status-note {
  width: 100%;
  height: 34px;
  margin-bottom: 8px;
  padding: 0 10px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--field);
}

.save-status {
  width: 100%;
}

.save-status.saved-status {
  color: #ffffff;
  background: var(--success);
}

.complete-status {
  width: auto;
  min-height: 34px;
  color: #ffffff;
  background: var(--success);
}

.status-save-feedback[data-state="success"] {
  color: var(--success);
  font-weight: 700;
}

.status-shortcuts {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 8px;
}

.failure-resolution {
  display: grid;
  grid-template-columns: minmax(240px, 1fr) auto;
  gap: 8px;
  width: 100%;
}

.failure-reason-select {
  min-width: 0;
  height: 36px;
}

@media (max-width: 760px) {
  .failure-resolution {
    grid-template-columns: 1fr;
  }
}

.admin-toast {
  position: fixed;
  top: 22px;
  right: 22px;
  z-index: 50;
  min-width: 220px;
  max-width: min(420px, calc(100vw - 44px));
  padding: 14px 18px;
  border: 1px solid rgba(19, 108, 58, 0.24);
  border-radius: 8px;
  color: var(--success);
  background: rgba(234, 247, 238, 0.98);
  box-shadow: var(--shadow-lift);
  font-size: 16px;
  font-weight: 800;
  opacity: 0;
  transform: translateY(-8px);
  transition:
    opacity 0.18s ease,
    transform 0.18s ease;
}

.admin-toast.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.admin-toast[data-state="error"] {
  border-color: rgba(163, 34, 34, 0.24);
  color: var(--error);
  background: rgba(255, 240, 240, 0.98);
}

.shortcut-btn {
  width: auto;
  min-height: 34px;
  padding: 6px 10px;
  text-align: left;
  white-space: normal;
}

.generate-form {
  display: grid;
  grid-template-columns: repeat(3, minmax(120px, 1fr)) 132px;
  gap: 12px;
  align-items: end;
  margin-bottom: 14px;
}

.library-form {
  display: grid;
  grid-template-columns: repeat(4, minmax(140px, 1fr));
  gap: 12px;
  align-items: end;
  margin-bottom: 14px;
}

.library-form .span-2 {
  grid-column: span 2;
}

.checkbox-row {
  height: 46px;
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--text);
  font-size: 14px;
  font-weight: 700;
}

.checkbox-row input {
  width: 18px;
  height: 18px;
}

.library-table {
  min-width: 1080px;
}

.generated-codes {
  width: 100%;
  min-height: 160px;
  font-family: Consolas, "Courier New", monospace;
}

.generated-codes-box {
  display: grid;
  gap: 10px;
  margin: 12px 0;
}

.generated-codes-box .mini-btn {
  justify-self: start;
}

.inventory-export-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  margin: 12px 0;
}

.batch-cdk-tool {
  margin: 18px 0;
  padding: 18px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: rgba(240, 245, 242, 0.52);
}

.batch-cdk-heading,
.batch-cdk-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
}

.batch-cdk-heading {
  padding: 0 14px 14px;
}

.batch-cdk-heading h2,
.batch-cdk-heading p {
  margin: 0;
}

.batch-cdk-heading h2 {
  font-size: 18px;
}

.batch-cdk-heading p {
  margin-top: 6px;
  color: var(--muted);
  font-size: 13px;
}

.batch-cdk-limit {
  color: var(--accent-dark);
  font-size: 13px;
  font-weight: 700;
}

.batch-cdk-form {
  display: grid;
  grid-template-columns: minmax(280px, 1fr) 112px;
  gap: 12px;
  align-items: end;
  padding: 0 14px;
}

.batch-cdk-form textarea {
  min-height: 112px;
  font-family: Consolas, "Courier New", monospace;
}

.batch-cdk-form-actions {
  display: grid;
  gap: 8px;
}

.batch-cdk-form-actions .mini-btn {
  width: 100%;
  height: 42px;
}

#batch-cdk-result {
  margin: 10px 14px 0;
}

.batch-cdk-toolbar {
  min-height: 54px;
  padding: 10px 14px;
  background: var(--panel);
  border-top: 1px solid var(--line);
}

.batch-cdk-select-all {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
}

.batch-cdk-select-all input,
.batch-cdk-check {
  width: 18px;
  height: 18px;
}

.batch-cdk-toolbar .danger-btn {
  margin-left: auto;
}

.batch-cdk-table {
  min-width: 920px;
}

.batch-cdk-check-cell {
  width: 72px;
  text-align: center;
}

.batch-cdk-table td:first-child {
  text-align: center;
}

.batch-cdk-row-unavailable {
  background: rgba(154, 90, 0, 0.035);
}

.batch-cdk-row-deleted {
  background: rgba(19, 108, 58, 0.055);
}

.muted-inline {
  color: var(--muted);
  font-size: 12px;
}

.inventory-search-form {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) 88px 88px;
  gap: 10px;
  align-items: end;
  margin: 12px 0 14px;
  max-width: 720px;
}

#submission-search-form {
  grid-template-columns: minmax(220px, 1fr) 132px 88px 88px;
  max-width: 880px;
}

.inventory-search-form .mini-btn {
  height: 46px;
}

.compact-code {
  max-width: 320px;
  margin-bottom: 0;
}

.source-pill {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  margin-bottom: 8px;
  padding: 0 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
}

.source-admin_batch {
  color: var(--success);
  background: var(--success-bg);
}

.source-exchange {
  color: var(--warning);
  background: var(--warning-bg);
}

.source-seed {
  color: var(--muted);
  background: #eef3ef;
}

.exported-pill {
  color: var(--warning);
  background: var(--warning-bg);
}

.not-exported-pill {
  color: var(--success);
  background: var(--success-bg);
}

.exchange-source-row td {
  background: #fffaf0;
}

.cdk-state-unused {
  color: var(--success);
  background: var(--success-bg);
}

.cdk-state-submitting,
.cdk-state-retryable,
.cdk-state-exchanged {
  color: var(--warning);
  background: var(--warning-bg);
}

.cdk-state-used,
.cdk-state-disabled,
.cdk-state-expired,
.cdk-state-not_found {
  color: var(--error);
  background: var(--error-bg);
}

.empty-cell {
  height: 120px;
  color: var(--muted);
  text-align: center !important;
  vertical-align: middle !important;
}

.exchange-page {
  min-height: 100vh;
  background:
    linear-gradient(90deg, rgba(18, 36, 55, 0.44), rgba(18, 36, 55, 0.1) 52%, rgba(18, 36, 55, 0.05)),
    url("exchange-forest-worker.png?v=20260615a") center / cover no-repeat fixed;
}

.exchange-shell {
  min-height: 100vh;
  width: min(100% - 28px, 1040px);
  margin: 0 auto;
  display: grid;
  align-items: center;
  padding: 32px 0;
}

.exchange-card {
  width: min(100%, 560px);
  padding: clamp(22px, 4vw, 34px);
  border: 1px solid rgba(255, 255, 255, 0.52);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.78);
  box-shadow: 0 26px 80px rgba(18, 36, 55, 0.24);
  backdrop-filter: blur(14px);
}

.exchange-header {
  display: grid;
  gap: 10px;
  margin-bottom: 22px;
}

.exchange-badge {
  width: max-content;
  padding: 7px 11px;
  border-radius: 999px;
  color: #1d4ed8;
  background: rgba(219, 234, 254, 0.92);
  font-size: 13px;
  font-weight: 800;
}

.exchange-header h1 {
  font-size: clamp(30px, 6vw, 44px);
  color: #111827;
}

.exchange-header p {
  margin: 0;
  color: #475569;
  line-height: 1.75;
}

.exchange-steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 22px;
}

.exchange-step {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 10px;
  border: 1px solid rgba(148, 163, 184, 0.35);
  border-radius: 12px;
  color: #64748b;
  background: rgba(255, 255, 255, 0.66);
  font-size: 13px;
  font-weight: 800;
  text-align: center;
}

.exchange-step.is-active {
  color: #1d4ed8;
  border-color: rgba(59, 130, 246, 0.4);
  background: rgba(219, 234, 254, 0.86);
}

.exchange-form {
  display: grid;
  gap: 14px;
}

.exchange-form label {
  color: #111827;
  font-size: 15px;
}

.exchange-input-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 106px;
  gap: 10px;
}

.exchange-input-row input {
  height: 50px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.88);
}

.exchange-input-row button,
.exchange-primary-btn,
.exchange-success button {
  min-height: 50px;
  border-radius: 12px;
  color: #ffffff;
  background: linear-gradient(135deg, #3b82f6, #2563eb);
  box-shadow: 0 14px 28px rgba(37, 99, 235, 0.22);
}

.exchange-primary-btn {
  width: 100%;
  margin-top: 2px;
  background: linear-gradient(135deg, #fb923c, #f97316);
  box-shadow: 0 14px 28px rgba(249, 115, 22, 0.24);
}

.exchange-primary-btn:disabled,
.exchange-input-row button:disabled,
.exchange-success button:disabled {
  opacity: 0.58;
  cursor: not-allowed;
}

.exchange-result {
  min-height: 72px;
  padding: 14px 15px;
  border: 1px solid rgba(148, 163, 184, 0.32);
  border-radius: 14px;
  color: #475569;
  background: rgba(248, 250, 252, 0.76);
  line-height: 1.6;
}

.exchange-result[data-state="success"] {
  color: #166534;
  border-color: rgba(34, 197, 94, 0.28);
  background: rgba(240, 253, 244, 0.88);
}

.exchange-result[data-state="error"] {
  color: #b91c1c;
  border-color: rgba(248, 113, 113, 0.3);
  background: rgba(254, 242, 242, 0.9);
}

.exchange-result[data-state="info"] {
  color: #1d4ed8;
  border-color: rgba(59, 130, 246, 0.28);
  background: rgba(239, 246, 255, 0.9);
}

.exchange-success {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) 118px;
  align-items: center;
  gap: 10px;
  margin-top: 16px;
  padding: 14px;
  border-radius: 14px;
  color: #14532d;
  background: rgba(240, 253, 244, 0.9);
  border: 1px solid rgba(34, 197, 94, 0.24);
}

.exchange-success span {
  font-weight: 800;
}

.exchange-success code {
  min-width: 0;
  padding: 10px 12px;
  border-radius: 10px;
  color: #111827;
  background: rgba(255, 255, 255, 0.82);
  word-break: break-all;
}

@media (max-width: 620px) {
  .page-shell {
    width: min(100% - 20px, 760px);
    align-items: start;
    padding: 18px 0;
  }

  .recharge-panel {
    padding: 22px 18px;
  }

  .inline-action {
    grid-template-columns: 1fr;
  }

  .wide-action {
    grid-template-columns: 1fr;
  }

  .new-cdk-box {
    grid-template-columns: 1fr;
  }

  #verify-btn {
    width: 100%;
  }

  .admin-shell {
    width: min(100% - 20px, 1180px);
    padding: 18px 0;
  }

  .admin-toolbar {
    align-items: flex-start;
    flex-direction: column;
  }

  .stats-grid {
    grid-template-columns: 1fr;
  }

  .operator-stats-row {
    grid-template-columns: 1fr;
  }

  .admin-tabs {
    overflow-x: auto;
  }

  .generate-form {
    grid-template-columns: 1fr;
  }

  .inventory-search-form {
    grid-template-columns: 1fr;
  }

  .batch-cdk-form {
    grid-template-columns: 1fr;
  }

  .batch-cdk-form-actions {
    grid-template-columns: 1fr 1fr;
  }

  .batch-cdk-toolbar {
    align-items: flex-start;
  }

  .batch-cdk-toolbar .danger-btn {
    width: 100%;
    margin-left: 0;
  }

  .library-form {
    grid-template-columns: 1fr;
  }

  .library-form .span-2 {
    grid-column: auto;
  }

  .exchange-page {
    background-position: 65% center;
  }

  .exchange-shell {
    align-items: end;
    padding: 18px 0;
  }

  .exchange-card {
    border-radius: 14px;
  }

  .exchange-steps,
  .exchange-input-row,
  .exchange-success {
    grid-template-columns: 1fr;
  }
}

/* Final scoped overrides: keep the iOS recharge page isolated from legacy styles above. */
body.recharge-ios main.recharge-ios-shell {
  width: min(100% - 32px, 760px);
  align-items: start;
  padding: clamp(28px, 6vw, 66px) 0;
}

body.recharge-ios section.recharge-ios-panel {
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
}

body.recharge-ios .recharge-ios-form,
body.recharge-ios .self-service.ios-settings-group {
  display: grid;
  gap: 14px;
}

body.recharge-ios .ios-settings-group {
  display: grid;
  gap: 14px;
  padding: 18px;
  border: 1px solid rgba(0, 0, 0, 0.07);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.82);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.055);
}

body.recharge-ios .inline-action,
body.recharge-ios .wide-action {
  grid-template-columns: minmax(0, 1fr) 88px;
}

body.recharge-ios .recharge-ios-panel button {
  height: 50px;
  border-radius: 12px;
}

body.recharge-ios .recharge-ios-panel input,
body.recharge-ios .recharge-ios-panel textarea {
  border-radius: 12px;
}

@media (max-width: 620px) {
  body.recharge-ios main.recharge-ios-shell {
    width: min(100% - 20px, 760px);
    padding: 22px 0;
  }

  body.recharge-ios section.recharge-ios-panel {
    padding: 0;
  }

  body.recharge-ios .inline-action,
  body.recharge-ios .wide-action {
    grid-template-columns: 1fr;
  }
}

/* ==================== 提交成功大提示框 ==================== */
.submit-success-modal {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(15, 30, 22, 0.55);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  animation: submit-success-fade 200ms ease-out;
}

.submit-success-modal__box {
  width: min(100%, 380px);
  background: #ffffff;
  border-radius: 20px;
  padding: 32px 28px 24px;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.25);
  text-align: center;
  animation: submit-success-pop 260ms cubic-bezier(0.2, 0.9, 0.35, 1.2);
}

.submit-success-modal__icon {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: #16a34a;
  color: #ffffff;
  margin: 0 auto 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 44px;
  font-weight: 700;
  line-height: 1;
  box-shadow: 0 12px 28px rgba(22, 163, 74, 0.35);
}

.submit-success-modal__title {
  font-size: 22px;
  font-weight: 700;
  margin: 0 0 8px;
  color: #136c3a;
}

.submit-success-modal__desc {
  font-size: 15px;
  line-height: 1.55;
  color: #4a5a52;
  margin: 0 0 22px;
  word-break: break-all;
}

.submit-success-modal__account {
  display: inline-block;
  background: #eaf7ee;
  color: #136c3a;
  border-radius: 10px;
  padding: 6px 12px;
  margin-top: 4px;
  font-weight: 600;
  font-size: 14px;
}

.submit-success-modal__btn {
  width: 100%;
  padding: 12px 20px;
  border-radius: 12px;
  border: 0;
  background: #16a34a;
  color: #ffffff;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: background 150ms ease;
}

.submit-success-modal__btn:hover,
.submit-success-modal__btn:focus-visible {
  background: #128a3f;
  outline: none;
}

.submit-success-modal__btn:active {
  background: #0f7534;
}

@keyframes submit-success-fade {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes submit-success-pop {
  0%   { opacity: 0; transform: scale(0.85); }
  100% { opacity: 1; transform: scale(1); }
}

@media (max-width: 480px) {
  .submit-success-modal__box {
    padding: 26px 20px 20px;
  }
  .submit-success-modal__icon {
    width: 60px;
    height: 60px;
    font-size: 36px;
  }
  .submit-success-modal__title {
    font-size: 20px;
  }
}

/* Guided recharge flow */
body.recharge-ios {
  background: #eef2f5;
}

body.recharge-ios main.recharge-ios-shell {
  width: min(100% - 32px, 880px);
  padding: 36px 0 56px;
}

body.recharge-ios .recharge-ios-hero {
  margin-bottom: 18px;
}

body.recharge-ios h1 {
  font-size: 36px;
  line-height: 1.15;
}

body.recharge-ios .flow-stepper {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  margin: 0 0 14px;
  padding: 10px;
  border: 1px solid #dce3ea;
  border-radius: 8px;
  background: #f8fafc;
}

body.recharge-ios .flow-stepper::before {
  content: "";
  position: absolute;
  top: 29px;
  right: 11%;
  left: 11%;
  height: 2px;
  background: #dce3ea;
}

body.recharge-ios .flow-step {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 30px minmax(0, auto);
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  height: 40px;
  min-width: 0;
  padding: 5px 8px;
  border: 0;
  border-radius: 6px;
  color: #66717d;
  background: #f8fafc;
  box-shadow: none;
  font-size: 13px;
  font-weight: 700;
  transition: color 180ms ease, background-color 180ms ease, transform 180ms ease, box-shadow 180ms ease;
}

body.recharge-ios .flow-step:not(:disabled):hover {
  color: #1f2937;
  background: #edf3f9;
  transform: translateY(-1px);
}

body.recharge-ios .flow-step:disabled {
  color: #9aa4ae;
  opacity: 1;
  cursor: default;
}

body.recharge-ios .flow-step-index {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border: 1px solid #cfd7df;
  border-radius: 50%;
  color: #66717d;
  background: #ffffff;
  line-height: 1;
  transition: color 180ms ease, border-color 180ms ease, background-color 180ms ease, box-shadow 180ms ease;
}

body.recharge-ios .flow-step.is-active {
  color: #1d4ed8;
  background: #eaf1ff;
  box-shadow: inset 0 -2px 0 #2563eb;
}

body.recharge-ios .flow-step.is-active .flow-step-index {
  color: #ffffff;
  border-color: #2563eb;
  background: #2563eb;
  animation: flow-step-pulse 2.2s ease-in-out infinite;
}

body.recharge-ios .flow-step.is-complete {
  color: #0f766e;
}

body.recharge-ios .flow-step.is-complete .flow-step-index {
  color: #ffffff;
  border-color: #0f766e;
  background: #0f766e;
}

body.recharge-ios .verified-flow {
  display: block;
}

body.recharge-ios .flow-panel[hidden],
body.recharge-ios .verified-flow[hidden] {
  display: none !important;
}

body.recharge-ios .ios-settings-group.flow-panel {
  min-height: 410px;
  align-content: start;
  padding: 28px;
  border: 1px solid #d8e0e8;
  border-top: 4px solid #2563eb;
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 14px 36px rgba(31, 41, 55, 0.08);
}

body.recharge-ios .flow-panel.is-active {
  animation: flow-panel-enter 300ms cubic-bezier(0.2, 0.75, 0.25, 1) both;
}

body.recharge-ios .flow-panel-header {
  display: flex;
  align-items: flex-start;
  gap: 13px;
  margin-bottom: 8px;
}

body.recharge-ios .flow-panel-header > div {
  min-width: 0;
}

body.recharge-ios .flow-panel-header .ios-section-title {
  margin: 0 0 6px;
  color: #18212b;
  font-size: 20px;
  font-weight: 800;
}

body.recharge-ios .flow-panel-header .step-hint {
  margin: 0;
}

body.recharge-ios .flow-panel-icon {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  flex: 0 0 34px;
  border-radius: 50%;
  color: #1d4ed8;
  background: #eaf1ff;
  font-size: 13px;
  font-weight: 800;
  animation: flow-icon-enter 420ms ease-out both;
}

body.recharge-ios .flow-panel-icon-session {
  color: #0f766e;
  background: #e6f5f2;
}

body.recharge-ios .flow-panel-icon-confirm {
  color: #15803d;
  background: #e9f7ed;
}

body.recharge-ios .flow-panel-icon-progress {
  position: relative;
  border: 3px solid #d5deea;
  border-top-color: #d97706;
  background: transparent;
  animation: flow-loader-spin 1.1s linear infinite;
}

body.recharge-ios .flow-panel .inline-action {
  grid-template-columns: minmax(0, 1fr) 150px;
}

body.recharge-ios .session-guide {
  display: grid;
  gap: 0;
  margin: 2px 0 8px;
  padding: 0;
  list-style: none;
}

body.recharge-ios .session-guide li {
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr);
  gap: 12px;
  align-items: start;
  padding: 11px 0;
  border-bottom: 1px solid #edf0f3;
}

body.recharge-ios .session-guide li > span {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  color: #0f766e;
  background: #e6f5f2;
  font-weight: 800;
  transition: transform 180ms ease, background-color 180ms ease;
}

body.recharge-ios .session-guide li:hover > span {
  background: #d5eee9;
  transform: scale(1.07);
}

body.recharge-ios .session-guide strong,
body.recharge-ios .session-guide small {
  display: block;
}

body.recharge-ios .session-guide strong {
  color: #24303c;
  font-size: 14px;
}

body.recharge-ios .session-guide small {
  margin-top: 3px;
  color: #6b7580;
  font-size: 13px;
  line-height: 1.45;
}

body.recharge-ios .flow-actions {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-top: auto;
  padding-top: 12px;
}

body.recharge-ios .flow-actions button {
  min-width: 126px;
  transition: transform 160ms ease, box-shadow 160ms ease, background-color 160ms ease;
}

body.recharge-ios .flow-actions button:not(:disabled):active {
  transform: scale(0.98);
}

body.recharge-ios .flow-actions .primary-btn {
  color: #ffffff;
  background: #2563eb;
  box-shadow: 0 8px 20px rgba(37, 99, 235, 0.2);
}

body.recharge-ios .flow-actions .primary-btn:not(:disabled):hover {
  background: #1d4ed8;
  box-shadow: 0 11px 24px rgba(37, 99, 235, 0.26);
  transform: translateY(-1px);
}

body.recharge-ios .flow-back-btn {
  color: #485563;
  border: 1px solid #d7dee6;
  background: #f5f7f9;
  box-shadow: none;
}

body.recharge-ios .confirm-success {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #15803d;
  font-size: 14px;
  font-weight: 800;
  animation: flow-success-enter 420ms ease-out both;
}

body.recharge-ios .confirm-success span {
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  color: #ffffff;
  background: #15803d;
}

body.recharge-ios .confirm-summary {
  margin: 4px 0 8px;
}

body.recharge-ios .confirm-summary > div {
  display: grid;
  grid-template-columns: 120px minmax(0, 1fr);
  gap: 16px;
  padding: 14px 0;
  border-bottom: 1px solid #e8edf1;
}

body.recharge-ios .confirm-summary dt {
  color: #6b7580;
}

body.recharge-ios .confirm-summary dd {
  min-width: 0;
  margin: 0;
  color: #18212b;
  font-weight: 800;
  overflow-wrap: anywhere;
}

body.recharge-ios .product-chip,
body.recharge-ios .progress-badge {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 4px 10px;
  border-radius: 999px;
  color: #1d4ed8;
  background: #eaf1ff;
  font-size: 13px;
  font-weight: 800;
}

body.recharge-ios .progress-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  margin: 2px 0 12px;
}

body.recharge-ios .progress-badge {
  color: #9a5a00;
  background: #fff3d6;
  animation: flow-badge-breathe 2.4s ease-in-out infinite;
}

body.recharge-ios .progress-badge[data-state="success"] {
  color: #15803d;
  background: #e9f7ed;
  animation: none;
}

body.recharge-ios .progress-badge[data-state="error"] {
  color: #b42318;
  background: #fff0f0;
  animation: none;
}

body.recharge-ios .progress-cdk {
  color: #6b7580;
  font-size: 13px;
  overflow-wrap: anywhere;
}

body.recharge-ios .flow-timeline {
  display: grid;
  gap: 0;
  margin: 0;
  padding: 0;
  list-style: none;
}

body.recharge-ios .flow-timeline li {
  position: relative;
  display: grid;
  grid-template-columns: 32px minmax(0, 1fr);
  gap: 12px;
  min-height: 68px;
}

body.recharge-ios .flow-timeline li:not(:last-child)::after {
  content: "";
  position: absolute;
  top: 30px;
  bottom: 0;
  left: 15px;
  width: 2px;
  background: #dbe2e8;
}

body.recharge-ios .timeline-dot {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border: 2px solid #d5dde5;
  border-radius: 50%;
  color: #7b8793;
  background: #ffffff;
  font-weight: 800;
}

body.recharge-ios .flow-timeline li.is-done:not(:last-child)::after {
  background: #63b89a;
  animation: flow-timeline-grow 420ms ease-out both;
  transform-origin: top;
}

body.recharge-ios .flow-timeline li.is-done .timeline-dot {
  color: #ffffff;
  border-color: #15803d;
  background: #15803d;
  animation: flow-mark-pop 340ms cubic-bezier(0.2, 0.9, 0.3, 1.2) both;
}

body.recharge-ios .flow-timeline li.is-active .timeline-dot {
  border-color: #d97706;
  border-top-color: transparent;
  background: #fffaf0;
  animation: flow-loader-spin 1.1s linear infinite;
}

body.recharge-ios .flow-timeline li.is-error .timeline-dot {
  color: #ffffff;
  border-color: #b42318;
  background: #b42318;
}

body.recharge-ios .flow-timeline strong,
body.recharge-ios .flow-timeline small {
  display: block;
}

body.recharge-ios .flow-timeline strong {
  padding-top: 2px;
  color: #24303c;
  font-size: 14px;
}

body.recharge-ios .flow-timeline small {
  margin-top: 4px;
  color: #6b7580;
  font-size: 13px;
}

body.recharge-ios .flow-progress-panel .cancel-queue-btn {
  justify-self: end;
  width: auto;
  min-width: 126px;
}

body.recharge-ios .flow-result {
  margin: 12px 0 0;
  padding: 12px 14px;
  border: 1px solid #d8e0e8;
  border-radius: 8px;
  background: #f8fafc;
}

body.recharge-ios .flow-result:empty {
  display: none;
}

@keyframes flow-panel-enter {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes flow-icon-enter {
  from { opacity: 0; transform: scale(0.82) rotate(-8deg); }
  to { opacity: 1; transform: scale(1) rotate(0); }
}

@keyframes flow-step-pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(37, 99, 235, 0.25); }
  50% { box-shadow: 0 0 0 6px rgba(37, 99, 235, 0); }
}

@keyframes flow-loader-spin {
  to { transform: rotate(360deg); }
}

@keyframes flow-mark-pop {
  from { opacity: 0; transform: scale(0.7); }
  to { opacity: 1; transform: scale(1); }
}

@keyframes flow-timeline-grow {
  from { transform: scaleY(0); }
  to { transform: scaleY(1); }
}

@keyframes flow-success-enter {
  from { opacity: 0; transform: translateX(-8px); }
  to { opacity: 1; transform: translateX(0); }
}

@keyframes flow-badge-breathe {
  0%, 100% { filter: saturate(1); }
  50% { filter: saturate(1.35); }
}

@media (max-width: 680px) {
  body.recharge-ios main.recharge-ios-shell {
    width: min(100% - 20px, 880px);
    padding: 22px 0 36px;
  }

  body.recharge-ios h1 {
    font-size: 30px;
  }

  body.recharge-ios .flow-stepper {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  body.recharge-ios .flow-stepper::before {
    display: none;
  }

  body.recharge-ios .flow-step {
    justify-content: start;
  }

  body.recharge-ios .ios-settings-group.flow-panel {
    min-height: 0;
    padding: 20px;
  }

  body.recharge-ios .flow-panel .inline-action {
    grid-template-columns: 1fr;
  }

  body.recharge-ios .flow-actions {
    align-items: stretch;
    flex-direction: column-reverse;
  }

  body.recharge-ios .flow-actions button,
  body.recharge-ios .flow-progress-panel .cancel-queue-btn {
    width: 100%;
  }

  body.recharge-ios .confirm-summary > div {
    grid-template-columns: 1fr;
    gap: 5px;
  }
}

@media (prefers-reduced-motion: reduce) {
  body.recharge-ios .flow-step,
  body.recharge-ios .flow-step-index,
  body.recharge-ios .flow-panel.is-active,
  body.recharge-ios .flow-panel-icon,
  body.recharge-ios .session-guide li > span,
  body.recharge-ios .flow-actions button,
  body.recharge-ios .confirm-success,
  body.recharge-ios .progress-badge,
  body.recharge-ios .flow-timeline li::after,
  body.recharge-ios .timeline-dot {
    animation: none !important;
    transition: none !important;
  }
}

/* Modern light sky-blue recharge workspace */
body.recharge-ios {
  --recharge-ink: #1d2f3c;
  --recharge-muted: #687986;
  --recharge-navy: #285f83;
  --recharge-blue: #3b8fbd;
  --recharge-blue-strong: #2f7fae;
  --recharge-blue-soft: #eaf4fa;
  --recharge-line: #d3dfe7;
  --recharge-soft-line: #e7edf1;
  --recharge-paper: #fffefa;
  min-height: 100vh;
  color: var(--recharge-ink);
  background: linear-gradient(145deg, #e8f4fa 0%, #fafcfd 56%, #deedf5 100%);
}

body.recharge-ios main.recharge-ios-shell {
  display: block;
  width: min(100% - 48px, 1160px);
  padding: 34px 0 54px;
}

body.recharge-ios .recharge-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 26px;
}

body.recharge-ios .recharge-brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  color: var(--recharge-navy);
  font-size: 16px;
  font-weight: 800;
  text-decoration: none;
}

body.recharge-ios .recharge-brand-mark {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border-radius: 7px;
  color: #ffffff;
  background: var(--recharge-blue-strong);
  font-size: 17px;
  font-weight: 900;
}

body.recharge-ios .recharge-topbar .recharge-mode-tabs {
  display: flex;
  width: auto;
  margin: 0;
  padding: 4px;
  border: 1px solid #c5d6e1;
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.66);
  box-shadow: none;
}

body.recharge-ios .recharge-topbar .recharge-mode-tab {
  min-height: 34px;
  padding: 7px 13px;
  border: 0;
  border-radius: 5px;
  color: #597080;
  background: transparent;
  box-shadow: none;
  font-size: 13px;
  font-weight: 800;
}

body.recharge-ios .recharge-topbar .recharge-mode-tab.is-active {
  color: #ffffff;
  background: var(--recharge-blue);
}

body.recharge-ios .recharge-topbar .recharge-mode-tab:not(.is-active):hover {
  color: var(--recharge-navy);
  background: #eef6fa;
}

body.recharge-ios button:focus-visible,
body.recharge-ios a:focus-visible,
body.recharge-ios summary:focus-visible {
  outline: 3px solid rgba(59, 143, 189, 0.34);
  outline-offset: 2px;
}

body.recharge-ios .flow-panel:focus {
  outline: none;
}

body.recharge-ios section.recharge-ios-panel.modern-recharge-workspace {
  display: grid;
  grid-template-columns: 345px minmax(0, 1fr);
  min-height: 670px;
  overflow: hidden;
  padding: 0;
  border: 1px solid rgba(23, 63, 91, 0.18);
  border-radius: 8px;
  background: var(--recharge-paper);
  box-shadow: 0 24px 70px rgba(29, 65, 90, 0.12);
}

body.recharge-ios .recharge-flow-rail {
  display: flex;
  min-width: 0;
  flex-direction: column;
  padding: 40px 36px 34px;
  color: #234c67;
  border-right: 1px solid #cfdfe9;
  background: var(--recharge-blue-soft);
}

body.recharge-ios .recharge-ios-hero {
  margin: 0;
}

body.recharge-ios .recharge-ios-hero .eyebrow {
  margin: 0 0 12px;
  color: #39779d;
  font-size: 13px;
  font-weight: 800;
}

body.recharge-ios .recharge-ios-hero h1 {
  margin: 0;
  color: #234c67;
  font-size: 36px;
  line-height: 1.14;
  font-weight: 850;
}

body.recharge-ios .recharge-ios-hero .summary {
  margin: 15px 0 0;
  color: #55778c;
  font-size: 14px;
  line-height: 1.8;
}

body.recharge-ios .flow-stepper {
  position: relative;
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  margin: 42px 0 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
}

body.recharge-ios .flow-stepper::before {
  position: absolute;
  top: 19px;
  bottom: 19px;
  left: 17px;
  width: 1px;
  height: auto;
  content: "";
  background: #b9d5e4;
}

body.recharge-ios .flow-step {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr);
  gap: 14px;
  align-items: center;
  justify-content: stretch;
  width: 100%;
  height: auto;
  min-width: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  color: #41667c;
  background: transparent;
  box-shadow: none;
  text-align: left;
}

body.recharge-ios .flow-step:not(:disabled):hover {
  color: #173f5b;
  background: transparent;
  transform: translateX(2px);
}

body.recharge-ios .flow-step:disabled {
  color: #597688;
  opacity: 1;
}

body.recharge-ios .flow-step-index {
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  border: 1px solid #a8c7d9;
  border-radius: 50%;
  color: #52758a;
  background: var(--recharge-blue-soft);
  font-size: 13px;
  font-weight: 800;
}

body.recharge-ios .flow-step-copy,
body.recharge-ios .flow-step-label,
body.recharge-ios .flow-step-copy small {
  display: block;
  min-width: 0;
}

body.recharge-ios .flow-step-label {
  color: #41667c;
  font-size: 15px;
  font-weight: 800;
}

body.recharge-ios .flow-step-copy small {
  margin-top: 3px;
  color: #7897a9;
  font-size: 12px;
  font-weight: 500;
}

body.recharge-ios .flow-step.is-active,
body.recharge-ios .flow-step.is-complete {
  color: #173f5b;
  background: transparent;
  box-shadow: none;
}

body.recharge-ios .flow-step.is-active .flow-step-index {
  color: #ffffff;
  border-color: var(--recharge-blue);
  background: var(--recharge-blue);
  box-shadow: 0 0 0 6px rgba(59, 143, 189, 0.1);
  animation: none;
}

body.recharge-ios .flow-step.is-active .flow-step-label {
  color: #173f5b;
}

body.recharge-ios .flow-step.is-complete .flow-step-index {
  color: #ffffff;
  border-color: #2b8a70;
  background: #2b8a70;
}

body.recharge-ios .flow-step.is-complete .flow-step-label {
  color: #2c6857;
}

body.recharge-ios .flow-rail-help {
  display: grid;
  gap: 4px;
  margin-top: auto;
  padding-top: 28px;
  border-top: 1px solid #cddfe9;
  color: #617f91;
  font-size: 12px;
  line-height: 1.65;
}

body.recharge-ios .flow-rail-help strong {
  color: #284f68;
  font-size: 13px;
}

body.recharge-ios .recharge-flow-content {
  display: flex;
  min-width: 0;
  min-height: 670px;
  flex-direction: column;
  padding: 42px 54px 34px;
  background: var(--recharge-paper);
}

body.recharge-ios .flow-content-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding-bottom: 23px;
  border-bottom: 1px solid var(--recharge-soft-line);
}

body.recharge-ios .flow-step-count {
  color: var(--recharge-blue-strong);
  font-size: 13px;
  font-weight: 850;
}

body.recharge-ios .flow-progress-track {
  display: block;
  width: 180px;
  height: 5px;
  overflow: hidden;
  border-radius: 4px;
  background: #e5ecef;
}

body.recharge-ios .flow-progress-fill {
  display: block;
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: var(--recharge-blue);
  transition: width 360ms cubic-bezier(0.2, 0.75, 0.25, 1);
}

body.recharge-ios.is-query-mode .flow-content-head {
  display: none;
}

body.recharge-ios .recharge-view {
  min-width: 0;
}

body.recharge-ios .recharge-view:not([hidden]) {
  animation: recharge-view-enter 260ms ease-out both;
}

body.recharge-ios .recharge-ios-form {
  display: block;
  min-width: 0;
  margin: 0;
}

body.recharge-ios .verified-flow {
  display: block;
}

body.recharge-ios .flow-panel[hidden],
body.recharge-ios .verified-flow[hidden] {
  display: none !important;
}

body.recharge-ios .ios-settings-group.flow-panel {
  display: flex;
  width: min(100%, 610px);
  min-height: 520px;
  align-content: initial;
  flex-direction: column;
  margin: 0 auto;
  padding: 58px 0 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

body.recharge-ios .flow-panel.is-active {
  animation: none;
}

body.recharge-ios .flow-panel.is-active.is-slide-forward {
  animation: flow-panel-slide-forward 340ms cubic-bezier(0.2, 0.75, 0.25, 1) both;
}

body.recharge-ios .flow-panel.is-active.is-slide-backward {
  animation: flow-panel-slide-backward 340ms cubic-bezier(0.2, 0.75, 0.25, 1) both;
}

body.recharge-ios .flow-panel-header {
  display: flex;
  align-items: flex-start;
  gap: 13px;
  margin: 0 0 30px;
}

body.recharge-ios .flow-panel-header .ios-section-title {
  margin: 0;
  color: var(--recharge-ink);
  font-size: 31px;
  line-height: 1.25;
  font-weight: 850;
}

body.recharge-ios .flow-panel-header .step-hint {
  margin: 13px 0 0;
  color: var(--recharge-muted);
  font-size: 15px;
  line-height: 1.75;
}

body.recharge-ios .flow-panel-header:not(.progress-panel-header) .flow-panel-icon {
  display: none;
}

body.recharge-ios .flow-panel .field-group {
  margin: 0;
}

body.recharge-ios .flow-panel .ios-label-line,
body.recharge-ios .flow-panel .field-group > label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 0 0 9px;
  color: #2d4658;
  font-size: 14px;
  font-weight: 800;
}

body.recharge-ios .flow-panel .ios-label-line small {
  color: #87938e;
  font-size: 12px;
  font-weight: 600;
}

body.recharge-ios .flow-panel input,
body.recharge-ios .flow-panel textarea,
body.recharge-ios .ios-query-group input,
body.recharge-ios .ios-query-group textarea {
  border: 1px solid #b0c5d2;
  border-radius: 7px;
  color: var(--recharge-ink);
  background: #fdfefc;
  box-shadow: 0 1px 0 rgba(27, 67, 94, 0.03);
  transition: border-color 160ms ease, box-shadow 160ms ease, background-color 160ms ease;
}

body.recharge-ios .flow-panel input {
  height: 60px;
  padding: 0 16px;
  font-size: 17px;
}

body.recharge-ios .flow-panel textarea {
  min-height: 162px;
  padding: 14px 16px;
  resize: vertical;
}

body.recharge-ios .flow-panel input:focus,
body.recharge-ios .flow-panel textarea:focus,
body.recharge-ios .ios-query-group input:focus,
body.recharge-ios .ios-query-group textarea:focus {
  border-color: var(--recharge-blue);
  outline: 0;
  box-shadow: 0 0 0 4px rgba(59, 143, 189, 0.11);
}

body.recharge-ios .flow-panel .inline-action {
  display: grid;
  grid-template-columns: 1fr;
  gap: 13px;
}

body.recharge-ios .flow-panel .inline-action > button,
body.recharge-ios .flow-actions .primary-btn {
  min-height: 56px;
  border: 1px solid var(--recharge-blue-strong);
  border-radius: 7px;
  color: #ffffff;
  background: var(--recharge-blue);
  box-shadow: 0 7px 18px rgba(47, 127, 174, 0.15);
  font-size: 16px;
  font-weight: 850;
}

body.recharge-ios .flow-panel .inline-action > button:not(:disabled):hover,
body.recharge-ios .flow-actions .primary-btn:not(:disabled):hover {
  background: var(--recharge-blue-strong);
  box-shadow: 0 9px 22px rgba(47, 127, 174, 0.19);
  transform: translateY(-1px);
}

body.recharge-ios .flow-panel button:disabled,
body.recharge-ios .flow-actions .primary-btn:disabled {
  color: #8295a1;
  border-color: #d3dfe7;
  background: #e9eff2;
  box-shadow: none;
  cursor: not-allowed;
}

body.recharge-ios .flow-helper-status {
  position: relative;
  margin-top: 10px;
  padding: 0 0 0 15px;
  border: 0;
  border-radius: 0;
  color: #708079;
  background: transparent;
  font-size: 13px;
}

body.recharge-ios .flow-helper-status::before {
  position: absolute;
  top: 0.55em;
  left: 0;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  content: "";
  background: #c49336;
}

body.recharge-ios .flow-helper-status[data-state="success"]::before {
  background: #2b8a70;
}

body.recharge-ios .flow-helper-status[data-state="error"]::before {
  background: #c24d45;
}

body.recharge-ios .flow-assurance-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 34px;
  padding-top: 24px;
  border-top: 1px solid var(--recharge-soft-line);
}

body.recharge-ios .flow-assurance-grid > div {
  padding: 14px 15px;
  border: 1px solid var(--recharge-line);
  border-radius: 7px;
  background: #f7faf8;
}

body.recharge-ios .flow-assurance-grid strong,
body.recharge-ios .flow-assurance-grid span {
  display: block;
}

body.recharge-ios .flow-assurance-grid strong {
  margin-bottom: 4px;
  color: #385368;
  font-size: 13px;
}

body.recharge-ios .flow-assurance-grid span {
  color: #74817c;
  font-size: 12px;
}

body.recharge-ios .session-guide {
  margin: -4px 0 20px;
}

body.recharge-ios .session-guide li {
  border-bottom-color: var(--recharge-soft-line);
}

body.recharge-ios .session-guide li > span {
  color: #2d7098;
  background: #e3f1f8;
}

body.recharge-ios .session-guide li:hover > span {
  background: #d6eaf5;
}

body.recharge-ios .session-guide-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
  min-width: 0;
}

body.recharge-ios .session-guide-copy {
  min-width: 0;
}

body.recharge-ios .session-guide-action {
  flex: none;
  white-space: nowrap;
}

body.recharge-ios .chatgpt-login-link {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 36px;
  margin: 0;
  padding: 6px 10px 6px 7px;
  color: #245f83;
  border: 1px solid #bad1df;
  border-radius: 7px;
  background: #f2f8fb;
  font-size: 13px;
  font-weight: 800;
  text-decoration: none;
  transition: border-color 160ms ease, background-color 160ms ease, transform 160ms ease;
}

body.recharge-ios .chatgpt-login-link:hover {
  color: #174c6d;
  border-color: #83b3cc;
  background: #e4f2f8;
  transform: translateY(-1px);
}

body.recharge-ios .chatgpt-login-mark {
  display: grid;
  width: 24px;
  height: 24px;
  place-items: center;
  border-radius: 5px;
  color: #ffffff;
  background: var(--recharge-blue-strong);
  font-size: 12px;
  font-weight: 900;
}

body.recharge-ios .chatgpt-login-arrow {
  margin-left: 2px;
  color: #4c88aa;
  font-size: 15px;
}

body.recharge-ios .session-link-button {
  color: var(--recharge-blue-strong);
  border-color: #bdd1dc;
  background: #eff7fb;
}

body.recharge-ios .session-guide .session-link-button {
  min-height: 36px;
  padding: 7px 10px;
  font-size: 12px;
}

body.recharge-ios .session-account-confirm,
body.recharge-ios .flow-result,
body.recharge-ios .ios-query-group .status-box {
  border: 1px solid var(--recharge-line);
  border-radius: 7px;
  background: #f7fafb;
}

body.recharge-ios .flow-actions {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  margin-top: auto;
  padding-top: 24px;
}

body.recharge-ios .flow-actions button {
  min-width: 146px;
}

body.recharge-ios .flow-back-btn {
  min-height: 56px;
  color: #4f6979;
  border: 1px solid #c9d8e1;
  border-radius: 7px;
  background: #f3f7f9;
  box-shadow: none;
}

body.recharge-ios .confirm-success {
  color: #2b7b64;
}

body.recharge-ios .confirm-success span {
  background: #2b8a70;
}

body.recharge-ios .confirm-summary > div {
  border-bottom-color: var(--recharge-soft-line);
}

body.recharge-ios .product-chip {
  color: #2d7098;
  background: #e3f1f8;
}

body.recharge-ios .progress-panel-header {
  align-items: center;
}

body.recharge-ios .flow-panel-icon-progress {
  border-color: #d5e3ea;
  border-top-color: var(--recharge-blue);
}

body.recharge-ios .flow-timeline li.is-active .timeline-dot {
  border-color: var(--recharge-blue);
  border-top-color: transparent;
  background: #f1f8fc;
}

body.recharge-ios .flow-timeline li.is-done:not(:last-child)::after {
  background: #66b39c;
}

body.recharge-ios .flow-timeline li.is-done .timeline-dot {
  border-color: #2b8a70;
  background: #2b8a70;
}

body.recharge-ios .flow-progress-panel .cancel-queue-btn {
  min-height: 44px;
  color: #536d7c;
  border-color: #c9d8e1;
  border-radius: 7px;
  background: #f3f7f9;
}

body.recharge-ios .flow-result {
  width: min(100%, 610px);
  margin: 14px auto 0;
  padding: 12px 14px;
}

body.recharge-ios .flow-result:empty {
  display: none;
}

body.recharge-ios .customer-result-card {
  margin-top: 16px;
  padding: 18px;
  border: 1px solid #c9dce7;
  border-radius: 10px;
  background: #f7fbfd;
  box-shadow: 0 10px 24px rgba(40, 79, 101, 0.08);
}

body.recharge-ios .customer-result-card[hidden] {
  display: none;
}

body.recharge-ios .customer-result-card[data-state="error"] {
  border-color: #e8c3bd;
  background: #fff8f6;
}

body.recharge-ios .customer-result-card[data-state="success"] {
  border-color: #b8ddcf;
  background: #f4fbf8;
}

body.recharge-ios .customer-result-card[data-state="warning"] {
  border-color: #e6d3a7;
  background: #fffaf0;
}

body.recharge-ios .customer-result-card > header {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

body.recharge-ios .customer-result-marker {
  display: grid;
  flex: 0 0 34px;
  width: 34px;
  height: 34px;
  place-items: center;
  border-radius: 50%;
  color: #ffffff;
  background: var(--recharge-blue-strong);
  font-size: 18px;
  font-weight: 900;
}

body.recharge-ios .customer-result-card[data-state="error"] .customer-result-marker {
  background: #bd4c3f;
}

body.recharge-ios .customer-result-card[data-state="success"] .customer-result-marker {
  background: #2b8a70;
}

body.recharge-ios .customer-result-card[data-state="warning"] .customer-result-marker {
  background: #a8791d;
}

body.recharge-ios .customer-result-card header small {
  color: #6f8592;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
}

body.recharge-ios .customer-result-card h3 {
  margin: 2px 0 5px;
  color: #1d3542;
  font-size: 19px;
}

body.recharge-ios .customer-result-card header p {
  margin: 0;
  color: #526b79;
  line-height: 1.55;
}

body.recharge-ios .customer-result-details {
  display: grid;
  gap: 0;
  margin: 16px 0 0;
  border-top: 1px solid #dce8ee;
}

body.recharge-ios .customer-result-details > div {
  display: grid;
  grid-template-columns: 92px minmax(0, 1fr);
  gap: 12px;
  padding: 11px 0;
  border-bottom: 1px solid #e3edf2;
}

body.recharge-ios .customer-result-details dt {
  color: #718692;
  font-size: 13px;
  font-weight: 700;
}

body.recharge-ios .customer-result-details dd {
  margin: 0;
  color: #263f4c;
  font-size: 13px;
  font-weight: 800;
  line-height: 1.45;
}

body.recharge-ios .customer-result-details dd[data-state="reusable"] {
  color: #24755f;
}

body.recharge-ios .customer-result-details dd[data-state="locked"],
body.recharge-ios .customer-result-details dd[data-state="reviewing"] {
  color: #976515;
}

body.recharge-ios .customer-result-details dd[data-state="error"] {
  color: #a84136;
}

body.recharge-ios .customer-result-details dd[data-state="change_account"] {
  color: #a84136;
  font-size: 15px;
}

body.recharge-ios .account-risk-modal {
  width: min(460px, calc(100vw - 36px));
  max-height: calc(100dvh - 40px);
  overflow-y: auto;
  box-sizing: border-box;
  padding: 26px;
  border: 2px solid #bd4c3f;
  border-radius: 16px;
  color: #263f4c;
  background: #fff8f6;
  box-shadow: 0 24px 80px #18242c40;
}

body.recharge-ios .account-risk-modal::backdrop {
  background: #18242c80;
}

body.recharge-ios .account-risk-modal h2 {
  margin: 0 0 16px;
  color: #a84136;
  font-size: 22px;
}

body.recharge-ios .account-risk-modal p {
  line-height: 1.7;
  overflow-wrap: anywhere;
}

body.recharge-ios .account-risk-next {
  font-weight: 700;
}

body.recharge-ios .account-risk-modal .secondary-btn {
  width: 100%;
  margin-top: 12px;
}

body.recharge-ios .customer-result-action {
  width: 100%;
  min-height: 44px;
  margin-top: 14px;
  border: 0;
  border-radius: 7px;
  color: #ffffff;
  background: var(--recharge-blue-strong);
  font-weight: 850;
}

body.recharge-ios .customer-result-recovery-hint {
  margin: 14px 0 0;
  padding: 12px 14px;
  border: 1px solid #e6d3a7;
  border-radius: 7px;
  color: #765415;
  background: #fff8e7;
  font-weight: 750;
  line-height: 1.55;
}

body.recharge-ios .paid-session-recovery-form {
  display: grid;
  gap: 10px;
  margin-top: 12px;
  padding: 14px;
  border: 1px solid #c8dbe6;
  border-radius: 8px;
  background: #ffffff;
}

body.recharge-ios .paid-session-recovery-form label {
  color: #1d3542;
  font-weight: 850;
}

body.recharge-ios .paid-session-recovery-form textarea {
  width: 100%;
  min-height: 150px;
  resize: vertical;
  border: 1px solid #aebfc8;
  border-radius: 7px;
  padding: 12px;
  color: #1d3542;
  background: #ffffff;
  font: inherit;
  line-height: 1.5;
}

body.recharge-ios .paid-session-recovery-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
}

body.recharge-ios .paid-session-recovery-links a {
  color: var(--recharge-blue-strong);
  font-weight: 750;
}

body.recharge-ios .paid-session-recovery-form .customer-result-action {
  margin-top: 0;
}

body.recharge-ios .paid-session-recovery-status {
  margin: 0;
  color: #526b79;
  line-height: 1.5;
}

body.recharge-ios .paid-session-recovery-status[data-state="error"] {
  color: #a84136;
}

body.recharge-ios .paid-session-recovery-status[data-state="success"] {
  color: #23755f;
}

body.recharge-ios .customer-result-action:hover {
  background: #236789;
}

body.recharge-ios .ios-query-group > .customer-result-card {
  margin-top: 14px;
}

@media (max-width: 640px) {
  body.recharge-ios .customer-result-card {
    padding: 15px;
  }

  body.recharge-ios .customer-result-details > div {
    grid-template-columns: 1fr;
    gap: 4px;
  }
}

body.recharge-ios .recharge-support-note {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-top: auto;
  padding-top: 24px;
  color: #77858d;
  font-size: 12px;
}

body.recharge-ios .recharge-support-note > span {
  display: grid;
  width: 22px;
  height: 22px;
  place-items: center;
  border-radius: 50%;
  color: #725b27;
  background: #f6f0df;
  font-weight: 900;
}

body.recharge-ios .ios-query-group {
  width: min(100%, 610px);
  margin: 64px auto 0;
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
}

body.recharge-ios .ios-query-group .compact-header {
  margin-bottom: 30px;
}

body.recharge-ios .query-kicker {
  margin: 0 0 7px;
  color: var(--recharge-blue-strong);
  font-size: 13px;
  font-weight: 800;
}

body.recharge-ios .ios-query-group h2 {
  margin: 0;
  color: var(--recharge-ink);
  font-size: 31px;
}

body.recharge-ios .ios-query-group .compact-header > p:last-child {
  margin: 11px 0 0;
  color: var(--recharge-muted);
  line-height: 1.65;
}

body.recharge-ios .ios-query-group .inline-action,
body.recharge-ios .ios-query-group .wide-action {
  display: grid;
  grid-template-columns: 1fr;
  gap: 13px;
}

body.recharge-ios .ios-query-group input {
  height: 60px;
  padding: 0 16px;
  font-size: 17px;
}

body.recharge-ios .ios-query-group .inline-action > button {
  min-height: 56px;
  border: 1px solid var(--recharge-blue-strong);
  border-radius: 7px;
  color: #ffffff;
  background: var(--recharge-blue);
  box-shadow: 0 7px 18px rgba(47, 127, 174, 0.15);
  font-size: 16px;
  font-weight: 850;
}

body.recharge-ios .batch-query-disclosure {
  border-color: var(--recharge-line);
  border-radius: 7px;
  background: #f8fafb;
}

@keyframes flow-panel-slide-forward {
  from { opacity: 0; transform: translateX(34px); }
  to { opacity: 1; transform: translateX(0); }
}

@keyframes flow-panel-slide-backward {
  from { opacity: 0; transform: translateX(-34px); }
  to { opacity: 1; transform: translateX(0); }
}

@keyframes recharge-view-enter {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 860px) {
  body.recharge-ios main.recharge-ios-shell {
    width: min(100% - 24px, 680px);
    padding: 22px 0 38px;
  }

  body.recharge-ios section.recharge-ios-panel.modern-recharge-workspace {
    grid-template-columns: 1fr;
  }

  body.recharge-ios .recharge-flow-rail {
    padding: 28px 24px 24px;
    border-right: 0;
    border-bottom: 1px solid #cfdfe9;
  }

  body.recharge-ios .recharge-ios-hero h1 {
    font-size: 31px;
  }

  body.recharge-ios .recharge-ios-hero h1 br {
    display: block;
  }

  body.recharge-ios .flow-stepper {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 8px;
    margin-top: 28px;
  }

  body.recharge-ios .flow-stepper::before {
    top: 17px;
    right: 9%;
    bottom: auto;
    left: 9%;
    width: auto;
    height: 1px;
  }

  body.recharge-ios .flow-step {
    display: block;
    text-align: center;
  }

  body.recharge-ios .flow-step:not(:disabled):hover {
    transform: none;
  }

  body.recharge-ios .flow-step-index {
    width: 34px;
    height: 34px;
    margin: 0 auto 8px;
  }

  body.recharge-ios .flow-step-label {
    font-size: 12px;
  }

  body.recharge-ios .flow-step-copy small,
  body.recharge-ios .flow-rail-help {
    display: none;
  }

  body.recharge-ios .recharge-flow-content {
    min-height: 610px;
    padding: 28px 30px 26px;
  }

  body.recharge-ios .ios-settings-group.flow-panel {
    min-height: 500px;
    padding-top: 40px;
  }

  body.recharge-ios .ios-query-group {
    margin-top: 40px;
  }
}

@media (max-width: 560px) {
  body.recharge-ios main.recharge-ios-shell {
    width: min(100% - 20px, 680px);
    padding-top: 16px;
  }

  body.recharge-ios .recharge-topbar {
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 16px;
  }

  body.recharge-ios .recharge-brand {
    font-size: 14px;
  }

  body.recharge-ios .recharge-brand-mark {
    width: 30px;
    height: 30px;
    font-size: 15px;
  }

  body.recharge-ios .recharge-topbar .recharge-mode-tabs {
    padding: 3px;
  }

  body.recharge-ios .recharge-topbar .recharge-mode-tab {
    min-height: 30px;
    padding: 6px 9px;
    font-size: 12px;
  }

  body.recharge-ios .recharge-flow-rail {
    padding: 23px 18px 20px;
  }

  body.recharge-ios .recharge-ios-hero .eyebrow {
    margin-bottom: 7px;
  }

  body.recharge-ios .recharge-ios-hero h1 {
    font-size: 27px;
  }

  body.recharge-ios .recharge-ios-hero .summary {
    margin-top: 10px;
    font-size: 13px;
  }

  body.recharge-ios .flow-stepper {
    gap: 4px;
  }

  body.recharge-ios .flow-step-label {
    font-size: 11px;
  }

  body.recharge-ios .recharge-flow-content {
    min-height: 580px;
    padding: 24px 20px 22px;
  }

  body.recharge-ios .flow-content-head {
    padding-bottom: 18px;
  }

  body.recharge-ios .flow-progress-track {
    width: 118px;
  }

  body.recharge-ios .ios-settings-group.flow-panel {
    min-height: 470px;
    padding-top: 32px;
  }

  body.recharge-ios .flow-panel-header {
    margin-bottom: 24px;
  }

  body.recharge-ios .flow-panel-header .ios-section-title,
  body.recharge-ios .ios-query-group h2 {
    font-size: 25px;
  }

  body.recharge-ios .flow-panel-header .step-hint {
    font-size: 14px;
  }

  body.recharge-ios .flow-assurance-grid {
    grid-template-columns: 1fr;
    margin-top: 26px;
  }

  body.recharge-ios .flow-actions {
    align-items: stretch;
    flex-direction: column-reverse;
  }

  body.recharge-ios .flow-actions button,
  body.recharge-ios .flow-progress-panel .cancel-queue-btn {
    width: 100%;
  }

  body.recharge-ios .confirm-summary > div {
    grid-template-columns: 1fr;
    gap: 5px;
  }

  body.recharge-ios .recharge-support-note {
    align-items: flex-start;
  }
}

@media (prefers-reduced-motion: reduce) {
  body.recharge-ios .flow-panel.is-active.is-slide-forward,
  body.recharge-ios .flow-panel.is-active.is-slide-backward,
  body.recharge-ios .recharge-view:not([hidden]) {
    animation: none !important;
  }
}

body.recharge-ios .queue-preview {
  display: grid;
  grid-template-columns: minmax(150px, 1fr) auto;
  align-items: center;
  gap: 8px 24px;
  margin-top: 8px;
  padding: 14px 16px;
  border-top: 1px solid #cfe0e8;
  border-bottom: 1px solid #cfe0e8;
  background: #f2f8fa;
}

body.recharge-ios .queue-preview-heading,
body.recharge-ios .queue-preview-values,
body.recharge-ios .queue-preview-values p {
  display: flex;
  align-items: center;
}

body.recharge-ios .queue-preview-heading {
  gap: 9px;
  color: #284b5e;
  font-size: 14px;
}

body.recharge-ios .queue-preview-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #3b8fbd;
  box-shadow: 0 0 0 4px rgba(59, 143, 189, 0.12);
}

body.recharge-ios .queue-preview-values {
  justify-content: flex-end;
  gap: 24px;
}

body.recharge-ios .queue-preview-values p {
  gap: 6px;
  margin: 0;
  color: #657884;
  font-size: 13px;
  white-space: nowrap;
}

body.recharge-ios .queue-preview-values strong {
  color: #256f98;
  font-size: 19px;
  font-weight: 850;
}

body.recharge-ios .queue-preview small {
  grid-column: 1 / -1;
  color: #71838e;
  font-size: 12px;
  line-height: 1.45;
}

body.recharge-ios .queue-preview[data-state="error"] .queue-preview-dot {
  background: #b7791f;
  box-shadow: 0 0 0 4px rgba(183, 121, 31, 0.12);
}

@media (max-width: 760px) {
  body.recharge-ios .queue-preview {
    grid-template-columns: 1fr;
    gap: 12px;
    padding: 14px 12px;
  }

  body.recharge-ios .queue-preview-values {
    justify-content: space-between;
    gap: 12px;
  }
}
