.redeem-hub-page {
  min-height: 100vh;
  min-height: 100dvh;
  background: transparent;
}

.redeem-shell {
  position: relative;
  z-index: 1;
  width: min(440px, calc(100% - 24px));
  margin: 0 auto;
  padding: max(12px, env(safe-area-inset-top)) 0 calc(104px + env(safe-area-inset-bottom));
}

.redeem-topbar {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr) 34px;
  align-items: center;
  min-height: 48px;
  padding: 5px 7px;
  border: 1px solid rgba(35, 39, 45, .09);
  border-radius: 999px;
  background: rgba(255, 255, 255, .94);
  box-shadow: 0 8px 22px rgba(31, 38, 47, .07);
  backdrop-filter: blur(14px);
}

.redeem-topbar img {
  display: block;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  object-fit: cover;
}

.redeem-topbar strong {
  min-width: 0;
  overflow: hidden;
  color: #252a31;
  font-size: 14px;
  font-weight: 760;
  text-align: center;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.redeem-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 66px;
  align-items: center;
  gap: 18px;
  min-height: 142px;
  margin: 14px 0;
  padding: 22px 24px;
  overflow: hidden;
  border: 1px solid rgba(35, 39, 45, .08);
  border-radius: 8px;
  background: rgba(255, 255, 255, .88);
  box-shadow: 0 10px 30px rgba(31, 38, 47, .055);
}

.redeem-heading {
  min-width: 0;
  padding: 0;
  text-align: left;
}

.redeem-heading > span {
  display: block;
  margin-bottom: 7px;
  color: #999fa7;
  font-size: 10px;
  font-weight: 800;
}

.redeem-heading h1 {
  margin: 0;
  color: #20242a;
  font-size: 26px;
  font-weight: 780;
  line-height: 1.25;
}

.redeem-heading p {
  margin: 7px 0 0;
  color: #818790;
  font-size: 12px;
}

.redeem-hero-icon {
  display: grid;
  place-items: center;
  width: 66px;
  height: 66px;
  border-radius: 20px;
  background: #f2f3f4;
  transform: rotate(5deg);
}

.redeem-hero-icon img {
  display: block;
  width: 38px;
  height: 38px;
  object-fit: contain;
}

.redeem-panel {
  display: grid;
  gap: 16px;
  padding: 20px;
  border: 1px solid rgba(35, 39, 45, .08);
  border-radius: 8px;
  background: rgba(255, 255, 255, .94);
  box-shadow: 0 12px 34px rgba(31, 38, 47, .07);
}

.redeem-panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 26px;
  padding-bottom: 12px;
  border-bottom: 1px solid #eceef0;
}

.redeem-panel-head strong {
  color: #2c3137;
  font-size: 14px;
  font-weight: 780;
}

.redeem-panel-head span {
  color: #a0a5ac;
  font-size: 9px;
  font-weight: 800;
}

.redeem-field {
  display: grid;
  gap: 7px;
}

.redeem-category-hint {
  display: block;
  margin: -3px 0 1px;
  color: #e5484d;
  font-size: 10px;
  line-height: 1.4;
}

.redeem-field > span:first-child {
  color: #4e555e;
  font-size: 12px;
  font-weight: 720;
}

.redeem-field input,
.redeem-field select {
  box-sizing: border-box;
  width: 100%;
  min-height: 44px;
  padding: 0 13px;
  border: 1px solid #e2e5e8;
  border-radius: 7px;
  outline: 0;
  background: #f8f9fa;
  color: #252a31;
  font-size: 13px;
  transition: border-color .18s ease, background .18s ease, box-shadow .18s ease;
}

.redeem-field input:focus,
.redeem-field select:focus {
  border-color: #9ba3ad;
  background: #fff;
  box-shadow: 0 0 0 3px rgba(42, 48, 56, .07);
}

.redeem-field input::placeholder {
  color: #afb4bb;
}

.redeem-select-wrap {
  position: relative;
}

.redeem-select-wrap::after {
  content: "";
  position: absolute;
  top: 50%;
  right: 15px;
  width: 7px;
  height: 7px;
  border-right: 1.5px solid #6f7680;
  border-bottom: 1.5px solid #6f7680;
  pointer-events: none;
  transform: translateY(-70%) rotate(45deg);
}

.redeem-field select {
  padding-right: 38px;
  appearance: none;
}

.redeem-field small {
  color: #9a5b55;
  font-size: 10px;
  line-height: 1.5;
}

.redeem-submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  margin-top: 2px;
  padding: 0 22px;
  border: 0;
  border-radius: 999px;
  background: #24282e;
  color: #fff;
  font-size: 13px;
  font-weight: 760;
  cursor: pointer;
  transition: background .18s ease, transform .18s ease, opacity .18s ease;
}

.redeem-submit:hover { background: #111418; }
.redeem-submit:active { transform: translateY(1px); }
.redeem-submit:disabled { cursor: wait; opacity: .62; }

.redeem-result {
  padding: 10px 12px;
  border: 1px solid #e0e4e7;
  border-radius: 7px;
  background: #f7f8f9;
  color: #5f6670;
  font-size: 12px;
  line-height: 1.55;
}

.redeem-result[data-state="success"] {
  border-color: #cce8dc;
  background: #eef8f3;
  color: #207553;
}

.redeem-result[data-state="error"] {
  border-color: #f0d2d1;
  background: #fff4f3;
  color: #a44842;
}

.redeem-provider {
  margin: 13px 0 0;
  color: #a1a6ad;
  font-size: 10px;
  text-align: center;
}

@media (max-width: 520px) {
  .redeem-shell { width: calc(100% - 20px); padding-top: max(8px, env(safe-area-inset-top)); }
  .redeem-hero { min-height: 126px; margin: 11px 0; padding: 18px; }
  .redeem-heading h1 { font-size: 23px; }
  .redeem-hero-icon { width: 58px; height: 58px; border-radius: 17px; }
  .redeem-hero-icon img { width: 34px; height: 34px; }
  .redeem-panel { gap: 14px; padding: 17px 15px; }
}

@media (max-height: 650px) {
  .redeem-hero { min-height: 104px; padding-block: 14px; }
  .redeem-panel { gap: 12px; }
}
