:root {
  --redeem-bg: #f6fbf8;
  --redeem-bg-soft: rgba(255, 255, 255, 0.76);
  --redeem-panel: rgba(255, 255, 255, 0.86);
  --redeem-line: rgba(10, 37, 64, 0.1);
  --redeem-ink: #0f1728;
  --redeem-muted: #64748b;
  --redeem-teal: #14b8a6;
  --redeem-teal-deep: #0f9b8c;
  --redeem-shadow: 0 22px 70px rgba(15, 23, 40, 0.08);
}
body.redeem-page {
  margin: 0;
  color: var(--redeem-ink);
  background:
    radial-gradient(circle at top left, rgba(20, 184, 166, 0.1), transparent 26%),
    radial-gradient(circle at top right, rgba(56, 189, 248, 0.08), transparent 24%),
    linear-gradient(180deg, #f7fcfb 0%, #f3f9f7 100%);
}
.redeem-bg {
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 20% 18%, rgba(45, 212, 191, 0.12), transparent 18%),
    radial-gradient(circle at 80% 72%, rgba(59, 130, 246, 0.08), transparent 18%);
}
.redeem-shell {
  position: relative;
  z-index: 1;
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 36px 0 64px;
}
.redeem-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 18px 26px;
  border: 1px solid rgba(255, 255, 255, 0.9);
  background: var(--redeem-bg-soft);
  border-radius: 28px;
  box-shadow: var(--redeem-shadow);
  backdrop-filter: blur(24px);
}
.redeem-brand {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  color: var(--redeem-ink);
  text-decoration: none;
}
.redeem-brand-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: linear-gradient(135deg, #1ed5b7, #18a99a);
  color: white;
  font-size: 22px;
  box-shadow: 0 12px 30px rgba(20, 184, 166, 0.28);
}
.redeem-brand-text {
  font-family: "Manrope", "Avenir Next", "Segoe UI", sans-serif;
  font-size: 34px;
  font-weight: 800;
  letter-spacing: -0.04em;
}
.redeem-nav {
  display: flex;
  align-items: center;
  gap: 22px;
}
.redeem-nav a {
  color: var(--redeem-muted);
  text-decoration: none;
  font-size: 16px;
}
.redeem-nav a:hover { color: var(--redeem-ink); }
.redeem-main { padding-top: 42px; }
.redeem-hero {
  text-align: center;
  padding: 28px 0 12px;
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 24px;
  border-radius: 999px;
  border: 1px solid rgba(20, 184, 166, 0.18);
  background: rgba(20, 184, 166, 0.12);
  color: #0f8b7f;
  font-weight: 800;
  box-shadow: 0 12px 30px rgba(20, 184, 166, 0.08);
}
.redeem-hero h1 {
  margin: 24px 0 0;
  font-family: "Manrope", "Avenir Next", "Segoe UI", sans-serif;
  font-size: clamp(40px, 7vw, 84px);
  line-height: 0.95;
  letter-spacing: -0.06em;
}
.hero-subtitle {
  max-width: 820px;
  margin: 22px auto 0;
  color: var(--redeem-muted);
  font-size: 20px;
  line-height: 1.8;
}
.step-strip {
  margin: 34px auto 0;
  padding: 34px 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  border-radius: 34px 34px 0 0;
  background: rgba(255, 255, 255, 0.84);
  border: 1px solid rgba(255, 255, 255, 0.92);
  box-shadow: var(--redeem-shadow);
}
.step-item {
  min-width: 180px;
  text-align: center;
  opacity: 0.46;
  transition: opacity 180ms ease, transform 180ms ease;
}
.step-item.is-active, .step-item.is-complete { opacity: 1; }
.step-item.is-active { transform: translateY(-1px); }
.step-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 66px;
  height: 66px;
  border-radius: 50%;
  background: #f3f5f7;
  color: #8793a3;
  border: 1px solid rgba(10, 37, 64, 0.08);
  font-family: "Manrope", "Avenir Next", "Segoe UI", sans-serif;
  font-size: 24px;
  font-weight: 800;
}
.step-item.is-active .step-icon, .step-item.is-complete .step-icon {
  background: rgba(20, 184, 166, 0.1);
  border-color: rgba(20, 184, 166, 0.26);
  color: var(--redeem-teal);
}
.step-item strong {
  display: block;
  margin-top: 16px;
  font-size: 22px;
  font-weight: 800;
}
.step-item p {
  margin: 8px 0 0;
  color: var(--redeem-muted);
}
.step-line {
  width: 88px;
  height: 1px;
  background: rgba(10, 37, 64, 0.14);
}
.redeem-panel-wrap {
  border-radius: 0 0 34px 34px;
  overflow: hidden;
  background: var(--redeem-panel);
  box-shadow: var(--redeem-shadow);
}
.redeem-panel-card {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(320px, 0.9fr);
  gap: 0;
  border: 1px solid rgba(255, 255, 255, 0.92);
  border-top: 1px solid var(--redeem-line);
}
.redeem-form-clean, .result-panel-clean { padding: 42px 44px; }
.redeem-form-clean { background: rgba(255, 255, 255, 0.78); }
.result-panel-clean {
  border-left: 1px solid var(--redeem-line);
  background: linear-gradient(180deg, rgba(247, 250, 252, 0.94), rgba(240, 246, 244, 0.98));
}
.form-block + .form-block { margin-top: 26px; }
.clean-label {
  display: block;
  margin-bottom: 14px;
  font-size: 28px;
  font-weight: 800;
  letter-spacing: -0.03em;
}
.clean-input, .clean-textarea {
  width: 100%;
  border: 1px solid rgba(10, 37, 64, 0.1);
  border-radius: 28px;
  background: #ffffff;
  color: var(--redeem-ink);
  padding: 22px 24px;
  outline: none;
  transition: border-color 180ms ease, box-shadow 180ms ease, transform 180ms ease;
}
.clean-input {
  min-height: 74px;
  font-size: 28px;
  font-weight: 700;
}
.clean-textarea {
  min-height: 250px;
  resize: vertical;
  font-size: 16px;
  line-height: 1.7;
}
.clean-input:focus, .clean-textarea:focus {
  border-color: rgba(20, 184, 166, 0.4);
  box-shadow: 0 0 0 5px rgba(20, 184, 166, 0.08);
}
.hint-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 24px;
}
.hint-chip {
  padding: 10px 14px;
  border-radius: 999px;
  background: rgba(15, 23, 40, 0.04);
  color: var(--redeem-muted);
  font-size: 14px;
}
.form-actions-clean {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 28px;
}
.primary-submit, .secondary-action {
  min-height: 74px;
  border: 0;
  border-radius: 26px;
  font-size: 26px;
  font-weight: 800;
  cursor: pointer;
  transition: transform 180ms ease, box-shadow 180ms ease, opacity 180ms ease;
}
.primary-submit {
  flex: 1 1 440px;
  background: linear-gradient(135deg, #18b59d, #15a492);
  color: white;
  box-shadow: 0 18px 42px rgba(20, 184, 166, 0.24);
}
.secondary-action {
  flex: 0 0 220px;
  background: rgba(15, 23, 40, 0.06);
  color: var(--redeem-ink);
}
.primary-submit:hover, .secondary-action:hover { transform: translateY(-1px); }
.primary-submit:disabled, .secondary-action:disabled {
  opacity: 0.7;
  cursor: wait;
}
.helper-copy {
  margin: 18px 0 0;
  color: var(--redeem-muted);
  line-height: 1.8;
}
.result-kicker {
  display: inline-block;
  color: var(--redeem-teal);
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}
.result-header-clean strong {
  display: block;
  margin-top: 16px;
  font-family: "Manrope", "Avenir Next", "Segoe UI", sans-serif;
  font-size: 50px;
  line-height: 1;
  letter-spacing: -0.05em;
}
.result-copy {
  margin: 18px 0 0;
  color: var(--redeem-muted);
  font-size: 18px;
  line-height: 1.8;
}
.result-json-clean {
  margin: 26px 0 0;
  min-height: 320px;
  max-height: 540px;
  overflow: auto;
  border-radius: 28px;
  padding: 24px;
  background: #0d1320;
  color: #def3ff;
  border: 1px solid rgba(15, 23, 40, 0.08);
  white-space: pre-wrap;
  word-break: break-word;
  line-height: 1.8;
}
.result-panel-clean.is-success { background: linear-gradient(180deg, rgba(238, 252, 248, 0.98), rgba(234, 250, 245, 0.98)); }
.result-panel-clean.is-error { background: linear-gradient(180deg, rgba(255, 247, 244, 0.98), rgba(255, 243, 239, 0.98)); }
.result-panel-clean.is-loading { background: linear-gradient(180deg, rgba(243, 250, 253, 0.98), rgba(237, 247, 251, 0.98)); }
@media (max-width: 1024px) {
  .redeem-panel-card { grid-template-columns: 1fr; }
  .result-panel-clean { border-left: 0; border-top: 1px solid var(--redeem-line); }
}
@media (max-width: 840px) {
  .redeem-shell {
    width: min(1180px, calc(100% - 20px));
    padding-top: 18px;
  }
  .redeem-topbar {
    flex-direction: column;
    align-items: flex-start;
  }
  .redeem-brand-text { font-size: 26px; }
  .redeem-nav {
    width: 100%;
    justify-content: space-between;
  }
  .step-strip {
    padding: 20px 18px;
    flex-direction: column;
  }
  .step-line {
    width: 1px;
    height: 26px;
  }
  .redeem-form-clean, .result-panel-clean { padding: 28px 22px; }
  .clean-label { font-size: 22px; }
  .clean-input { font-size: 22px; }
  .primary-submit, .secondary-action {
    width: 100%;
    flex: 1 1 100%;
    font-size: 22px;
  }
  .result-header-clean strong { font-size: 38px; }
}
