:root {
  color-scheme: light;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
  color: #172033;
  background: #f7f8fa;
  font-synthesis: none;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-width: 320px;
  min-height: 100vh;
  background: #f7f8fa;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input {
  font: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

.site-header {
  height: 64px;
  background: #ffffff;
  border-bottom: 1px solid #e5e8ef;
}

.header-inner,
main,
footer {
  width: min(1120px, calc(100% - 40px));
  margin: 0 auto;
}

.header-inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 16px;
  font-weight: 750;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 7px;
  color: #ffffff;
  background: #172033;
  font-size: 14px;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.nav-link,
.text-link,
.text-button {
  color: #526078;
  font-size: 14px;
  font-weight: 600;
}

.nav-link:hover,
.text-link:hover,
.text-button:hover {
  color: #0f766e;
}

.icon-button {
  display: inline-grid;
  place-items: center;
  width: 38px;
  height: 38px;
  padding: 0;
  border: 1px solid #dfe3ea;
  border-radius: 7px;
  color: #39465b;
  background: #ffffff;
  cursor: pointer;
}

.icon-button:hover {
  border-color: #9ba6b6;
  background: #f2f4f7;
}

svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

main {
  padding: 52px 0 44px;
}

.page-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 28px;
}

.eyebrow {
  margin: 0 0 8px;
  color: #0f766e;
  font-size: 12px;
  font-weight: 750;
}

h1,
h2,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 10px;
  color: #101828;
  font-size: 34px;
  line-height: 1.2;
}

.heading-copy {
  max-width: 650px;
  margin-bottom: 0;
  color: #667085;
  font-size: 15px;
  line-height: 1.7;
}

.status-chip {
  display: inline-flex;
  align-items: center;
  flex: 0 0 auto;
  gap: 8px;
  padding: 8px 11px;
  border: 1px solid #b7e0d9;
  border-radius: 7px;
  color: #0d675f;
  background: #eefaf7;
  font-size: 12px;
  font-weight: 650;
}

.status-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #17a673;
}

.account-strip {
  display: grid;
  grid-template-columns: 1fr 1fr auto;
  align-items: center;
  min-height: 96px;
  margin-bottom: 18px;
  padding: 20px 24px;
  border: 1px solid #dfe3ea;
  border-radius: 8px;
  background: #ffffff;
}

.account-strip > div + div {
  border-left: 1px solid #e8ebf0;
  padding-left: 28px;
}

.metric-label {
  display: block;
  margin-bottom: 6px;
  color: #7b8494;
  font-size: 12px;
}

.metric-value {
  display: block;
  color: #101828;
  font-size: 23px;
  line-height: 1.2;
}

.metric-value.account-value {
  max-width: 300px;
  overflow: hidden;
  font-size: 16px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.account-action {
  display: flex;
  align-items: center;
  gap: 18px;
}

.text-button {
  padding: 4px;
  border: 0;
  background: transparent;
  cursor: pointer;
}

.is-hidden {
  display: none !important;
}

.recharge-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 18px;
}

.panel {
  display: flex;
  flex-direction: column;
  min-height: 370px;
  padding: 28px;
  border: 1px solid #dfe3ea;
  border-radius: 8px;
  background: #ffffff;
}

.redeem-panel {
  border-top: 3px solid #0f766e;
}

.purchase-panel {
  border-top: 3px solid #d97706;
}

.panel-heading {
  display: flex;
  align-items: flex-start;
  gap: 14px;
}

.panel-heading h2 {
  margin-bottom: 7px;
  color: #101828;
  font-size: 20px;
}

.panel-heading p {
  margin-bottom: 0;
  color: #667085;
  font-size: 14px;
  line-height: 1.7;
}

.step-number {
  color: #98a2b3;
  font-size: 12px;
  font-weight: 800;
  line-height: 25px;
}

.store-preview {
  display: flex;
  align-items: center;
  gap: 13px;
  margin: 24px 0 14px;
  padding: 16px;
  border: 1px solid #ece2d4;
  border-radius: 7px;
  background: #fffbf5;
}

.store-logo {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 7px;
  color: #ffffff;
  background: #d97706;
  font-weight: 750;
}

.store-preview strong,
.store-preview span {
  display: block;
}

.store-preview strong {
  margin-bottom: 4px;
  font-size: 14px;
}

.store-preview span {
  color: #7c6548;
  font-size: 12px;
}

.secondary-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 44px;
  padding: 0 18px;
  border-radius: 7px;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
}

.rate-note {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
  color: #667085;
  font-size: 12px;
}

.rate-note strong {
  color: #9a4f08;
  font-size: 13px;
}

.product-options {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 9px;
}

.product-option {
  display: grid;
  grid-template-columns: minmax(42px, auto) 1fr 18px;
  align-items: center;
  gap: 8px;
  min-height: 66px;
  padding: 10px 11px;
  border: 1px solid #e4d6c4;
  border-radius: 7px;
  background: #fffdf9;
}

.product-option:hover {
  border-color: #d97706;
  background: #fff8ed;
}

.product-option span,
.product-option small,
.product-option strong {
  display: block;
  min-width: 0;
}

.product-option small {
  margin-bottom: 3px;
  color: #8a7863;
  font-size: 10px;
}

.product-option strong {
  color: #26211b;
  font-size: 15px;
  white-space: nowrap;
}

.product-option .product-credit {
  padding-left: 8px;
  border-left: 1px solid #eadfce;
}

.product-option .product-credit strong {
  color: #a45308;
}

.product-option svg {
  width: 16px;
  height: 16px;
  color: #b16a27;
}

.helper-text {
  margin: 10px 0 0;
  color: #8a93a2;
  font-size: 12px;
  text-align: center;
}

#redeem-form {
  display: flex;
  flex: 1;
  flex-direction: column;
  margin-top: 34px;
}

#redeem-form label {
  margin-bottom: 9px;
  color: #344054;
  font-size: 13px;
  font-weight: 650;
}

.code-input-row {
  position: relative;
}

#redemption-code {
  width: 100%;
  height: 48px;
  padding: 0 54px 0 14px;
  border: 1px solid #cfd5de;
  border-radius: 7px;
  color: #172033;
  background: #ffffff;
  outline: none;
}

#redemption-code:focus {
  border-color: #0f766e;
  box-shadow: 0 0 0 3px rgba(15, 118, 110, 0.12);
}

#redemption-code::placeholder {
  color: #a0a8b5;
}

.input-action {
  position: absolute;
  top: 5px;
  right: 5px;
}

.form-message {
  min-height: 42px;
  margin: 10px 0 14px;
  color: #667085;
  font-size: 13px;
  line-height: 1.6;
}

.form-message.is-error {
  color: #b42318;
}

.form-message.is-success {
  color: #08775e;
}

.secondary-button {
  width: 100%;
  margin-top: auto;
  border: 0;
  color: #ffffff;
  background: #0f766e;
}

.secondary-button:hover {
  background: #0a625b;
}

.secondary-button:disabled {
  color: #87909f;
  background: #e8ebef;
  cursor: not-allowed;
}

.instructions {
  display: grid;
  grid-template-columns: 0.8fr 2.2fr;
  gap: 42px;
  padding: 42px 4px 38px;
}

.instructions h2 {
  margin-bottom: 0;
  color: #101828;
  font-size: 22px;
  line-height: 1.4;
}

.instructions ol {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.instructions li {
  display: flex;
  align-items: flex-start;
  gap: 11px;
}

.instructions li > span {
  display: grid;
  flex: 0 0 28px;
  place-items: center;
  width: 28px;
  height: 28px;
  border: 1px solid #cfd5de;
  border-radius: 7px;
  color: #526078;
  background: #ffffff;
  font-size: 12px;
  font-weight: 750;
}

.instructions li p {
  margin: 0;
  color: #667085;
  font-size: 13px;
  line-height: 1.6;
}

.instructions li strong {
  display: block;
  margin-bottom: 3px;
  color: #344054;
}

.notice-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 17px 20px;
  border-left: 3px solid #526078;
  background: #eef1f5;
}

.notice-bar strong,
.notice-bar span {
  font-size: 13px;
}

.notice-bar span {
  margin-left: 6px;
  color: #667085;
}

.notice-bar a {
  flex: 0 0 auto;
  color: #0f766e;
  font-size: 13px;
  font-weight: 700;
}

footer {
  padding: 22px 0 32px;
  color: #98a2b3;
  font-size: 12px;
  text-align: center;
}

@media (max-width: 760px) {
  .header-inner,
  main,
  footer {
    width: min(100% - 28px, 1120px);
  }

  .site-header {
    height: 58px;
  }

  .nav-link {
    display: none;
  }

  main {
    padding-top: 34px;
  }

  .page-heading {
    align-items: flex-start;
    flex-direction: column;
    margin-bottom: 22px;
  }

  h1 {
    font-size: 28px;
  }

  .account-strip {
    grid-template-columns: 1fr 1fr;
    padding: 18px;
  }

  .account-strip > div + div {
    padding-left: 18px;
  }

  .account-strip .account-action {
    grid-column: 1 / -1;
    justify-content: flex-end;
    margin-top: 16px;
    padding: 14px 0 0;
    border-top: 1px solid #e8ebf0;
    border-left: 0;
  }

  .metric-value {
    font-size: 20px;
  }

  .recharge-grid {
    grid-template-columns: 1fr;
  }

  .panel {
    min-height: 350px;
    padding: 22px 18px;
  }

  .product-options {
    grid-template-columns: 1fr;
  }

  .instructions {
    grid-template-columns: 1fr;
    gap: 26px;
    padding: 36px 2px 32px;
  }

  .instructions ol {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .notice-bar {
    align-items: flex-start;
    flex-direction: column;
  }

  .notice-bar span {
    display: block;
    margin: 5px 0 0;
    line-height: 1.6;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}
