/* 会员页 · 兑换码开通模式 */

.ms-redeem-mode .ms-hero-tagline {
  margin: 10px auto 0;
  max-width: 28em;
  font-size: clamp(0.95rem, 2.2vw, 1.12rem);
  font-weight: 600;
  letter-spacing: 0.06em;
  color: rgba(210, 195, 240, 0.72);
}

.ms-redeem-mode .ms-hero-path {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 8px 6px;
  margin: 22px auto 0;
  max-width: min(100%, 640px);
  padding: 14px 16px;
  border-radius: 20px;
  border: 1px solid rgba(184, 124, 255, 0.28);
  background: linear-gradient(165deg, rgba(28, 18, 44, 0.55), rgba(10, 6, 18, 0.72));
  box-shadow:
    0 12px 32px rgba(0, 0, 0, 0.22),
    inset 0 1px 0 rgba(255, 255, 255, 0.04);
  backdrop-filter: blur(10px);
}

.ms-hero-path-item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid rgba(184, 124, 255, 0.18);
  background: rgba(12, 8, 22, 0.45);
  transition: border-color 0.25s, box-shadow 0.25s, transform 0.25s;
}

.ms-hero-path-item.is-highlight {
  border-color: rgba(232, 197, 71, 0.42);
  background: linear-gradient(135deg, rgba(232, 197, 71, 0.14), rgba(124, 58, 237, 0.12));
  box-shadow: 0 0 20px rgba(232, 197, 71, 0.12);
}

.ms-hero-path-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  font-size: 0.82rem;
  color: #5ecfb4;
  background: rgba(94, 207, 180, 0.12);
  border: 1px solid rgba(94, 207, 180, 0.22);
  flex-shrink: 0;
}

.ms-hero-path-item.is-highlight .ms-hero-path-icon {
  color: #fde68a;
  background: rgba(232, 197, 71, 0.16);
  border-color: rgba(232, 197, 71, 0.32);
}

.ms-hero-path-label {
  font-size: clamp(0.78rem, 2vw, 0.88rem);
  font-weight: 700;
  letter-spacing: 0.04em;
  color: rgba(245, 238, 216, 0.92);
  white-space: nowrap;
}

.ms-hero-path-arrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  color: rgba(168, 85, 247, 0.55);
  font-size: 0.62rem;
  flex-shrink: 0;
}

.ms-redeem-mode .ms-hero-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-top: 22px;
}

.ms-hero-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 22px;
  border-radius: 999px;
  font-size: 0.92rem;
  font-weight: 700;
  text-decoration: none;
  transition: transform 0.25s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.25s;
}

.ms-hero-btn--primary {
  color: #1a1028;
  background: linear-gradient(135deg, #e8c547, #a67c2a);
  box-shadow: 0 8px 28px rgba(232, 197, 71, 0.28);
}

.ms-hero-btn--ghost {
  color: rgba(245, 238, 216, 0.88);
  border: 1px solid rgba(184, 124, 255, 0.35);
  background: rgba(18, 12, 32, 0.55);
}

.ms-hero-btn:hover {
  transform: translateY(-2px);
}

.ms-flow {
  position: relative;
  max-width: 980px;
  margin: 0 auto 48px;
  padding: 0 clamp(14px, 4vw, 24px);
}

.ms-flow-steps {
  list-style: none;
  margin: 28px 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.ms-flow-step {
  position: relative;
  padding: 20px 18px;
  border-radius: 18px;
  border: 1px solid rgba(184, 124, 255, 0.22);
  background: linear-gradient(165deg, rgba(28, 18, 44, 0.72), rgba(10, 6, 18, 0.88));
  box-shadow: 0 10px 32px rgba(0, 0, 0, 0.22);
}

.ms-flow-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  margin-bottom: 12px;
  border-radius: 12px;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  color: #e8c547;
  background: rgba(232, 197, 71, 0.1);
  border: 1px solid rgba(232, 197, 71, 0.25);
}

.ms-flow-body h3 {
  margin: 0 0 6px;
  font-size: 1rem;
  color: #f5eed8;
}

.ms-flow-body p {
  margin: 0;
  font-size: 0.82rem;
  line-height: 1.5;
  color: rgba(210, 195, 240, 0.58);
}

.ms-card-deck--fluid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: clamp(14px, 2vw, 20px);
}

.ms-card-price-block--redeem .ms-card-redeem-label {
  display: inline-block;
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 0.88rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  color: #e8c547;
  border: 1px solid rgba(232, 197, 71, 0.28);
  background: rgba(232, 197, 71, 0.08);
}

.ms-redeem-hub {
  position: relative;
  max-width: 980px;
  margin: 0 auto 48px;
  padding: clamp(28px, 4vw, 36px) clamp(16px, 4vw, 24px);
  border-radius: 28px;
  border: 1px solid rgba(184, 124, 255, 0.28);
  background:
    radial-gradient(ellipse 100% 60% at 50% 0%, rgba(124, 58, 237, 0.16), transparent 58%),
    linear-gradient(168deg, rgba(18, 12, 32, 0.92), rgba(8, 5, 16, 0.96));
  overflow: hidden;
}

.ms-redeem-hub-glow {
  position: absolute;
  inset: -40%;
  background: conic-gradient(from 0deg, transparent, rgba(232, 197, 71, 0.06), transparent, rgba(94, 207, 180, 0.05), transparent);
  animation: ms-redeem-glow 12s linear infinite;
  pointer-events: none;
}

@keyframes ms-redeem-glow {
  to { transform: rotate(360deg); }
}

.ms-redeem-head {
  position: relative;
  z-index: 1;
  text-align: center;
  margin-bottom: 24px;
}

.ms-redeem-layout {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(16px, 3vw, 24px);
}

.ms-cs-card {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: clamp(20px, 3vw, 28px);
  border-radius: 22px;
  border: 1px solid rgba(184, 124, 255, 0.22);
  background: linear-gradient(165deg, rgba(28, 18, 44, 0.78), rgba(10, 6, 18, 0.9));
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.28);
  overflow: hidden;
}

.ms-redeem-card {
  position: relative;
  padding: clamp(20px, 3vw, 28px);
  border-radius: 22px;
  border: 1px solid rgba(184, 124, 255, 0.22);
  background: linear-gradient(165deg, rgba(28, 18, 44, 0.78), rgba(10, 6, 18, 0.9));
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.28);
  overflow: hidden;
}

.ms-cs-card-flare,
.ms-redeem-card-flare {
  position: absolute;
  inset: -30%;
  background: radial-gradient(circle at 30% 20%, rgba(232, 197, 71, 0.08), transparent 55%);
  pointer-events: none;
}

.ms-cs-title,
.ms-redeem-card-title {
  position: relative;
  width: 100%;
  margin: 0 0 8px;
  font-size: 1.15rem;
  color: #f5eed8;
  text-align: center;
}

.ms-cs-hint,
.ms-redeem-card-sub {
  position: relative;
  width: 100%;
  margin: 0 0 18px;
  font-size: 0.84rem;
  color: rgba(210, 195, 240, 0.58);
  text-align: center;
}

.ms-cs-qr-wrap {
  position: relative;
  width: min(100%, 220px);
  margin: 0 auto 14px;
  aspect-ratio: 1;
  flex-shrink: 0;
}

.ms-cs-qr-ring {
  position: absolute;
  inset: -8px;
  border-radius: 22px;
  border: 1px dashed rgba(94, 207, 180, 0.35);
  animation: ms-qr-ring 8s linear infinite;
  pointer-events: none;
}

@keyframes ms-qr-ring {
  to { transform: rotate(360deg); }
}

.ms-cs-qr,
.ms-cs-qr-placeholder {
  position: absolute;
  inset: 0;
  z-index: 1;
  width: 100%;
  height: 100%;
  margin: 0;
  border-radius: 18px;
}

.ms-cs-qr {
  object-fit: contain;
  object-position: center;
  padding: 10px;
  box-sizing: border-box;
  background: #fff;
  border: 1px solid rgba(184, 124, 255, 0.18);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.18);
}

.ms-cs-qr[hidden],
.ms-cs-qr-placeholder[hidden] {
  display: none !important;
}

.ms-cs-qr-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border: 1px dashed rgba(184, 124, 255, 0.28);
  background: rgba(0, 0, 0, 0.25);
  color: rgba(210, 195, 240, 0.55);
  font-size: 0.82rem;
}

.ms-cs-qr-wrap.is-loaded .ms-cs-qr-placeholder {
  display: none !important;
}

.ms-cs-qr-placeholder i {
  font-size: 2rem;
  color: #5ecfb4;
}

.ms-cs-id {
  width: 100%;
  text-align: center;
  font-size: 0.84rem;
  color: rgba(210, 195, 240, 0.72);
}

.ms-cs-copy {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: min(100%, 220px);
  margin-top: 12px;
  padding: 10px 16px;
  border-radius: 12px;
  border: 1px solid rgba(184, 124, 255, 0.28);
  background: rgba(124, 58, 237, 0.12);
  color: rgba(245, 238, 216, 0.88);
  cursor: pointer;
}

.ms-redeem-form {
  position: relative;
}

.ms-redeem-label {
  display: block;
  margin-bottom: 8px;
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  color: rgba(210, 195, 240, 0.55);
}

.ms-redeem-input-wrap {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.ms-redeem-input {
  width: 100%;
  padding: 14px 16px;
  border-radius: 14px;
  border: 1px solid rgba(184, 124, 255, 0.28);
  background: rgba(8, 5, 16, 0.72);
  color: #f5eed8;
  font-size: 1rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.ms-redeem-input:focus {
  outline: none;
  border-color: rgba(232, 197, 71, 0.45);
  box-shadow: 0 0 24px rgba(232, 197, 71, 0.12);
}

.ms-redeem-submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  padding: 14px 20px;
  border: none;
  border-radius: 14px;
  font-size: 0.96rem;
  font-weight: 800;
  cursor: pointer;
  color: #1a1028;
  background: linear-gradient(135deg, #e8c547, #a67c2a);
  box-shadow: 0 10px 28px rgba(232, 197, 71, 0.28);
  transition: transform 0.2s, box-shadow 0.2s;
}

.ms-redeem-submit:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 34px rgba(232, 197, 71, 0.35);
}

.ms-redeem-tip {
  margin: 14px 0 0;
  font-size: 0.8rem;
  color: rgba(210, 195, 240, 0.48);
  text-align: center;
}

.ms-shop-buy--cs {
  background: linear-gradient(135deg, rgba(94, 207, 180, 0.18), rgba(124, 58, 237, 0.18));
  border-color: rgba(94, 207, 180, 0.35);
}

.ms-redeem-success {
  position: fixed;
  inset: 0;
  z-index: 1300;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.ms-redeem-success[hidden] {
  display: none !important;
}

.ms-redeem-success-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(6, 4, 12, 0.88);
  backdrop-filter: blur(12px);
}

.ms-redeem-success-panel {
  position: relative;
  z-index: 1;
  width: min(92vw, 380px);
  padding: 36px 28px 28px;
  border-radius: 24px;
  border: 1px solid rgba(232, 197, 71, 0.38);
  background: linear-gradient(168deg, rgba(28, 18, 44, 0.98), rgba(8, 5, 16, 0.99));
  text-align: center;
  overflow: hidden;
  animation: ms-success-in 0.55s cubic-bezier(0.22, 1, 0.36, 1) both;
}

@keyframes ms-success-in {
  from { opacity: 0; transform: scale(0.85) translateY(20px); }
  to { opacity: 1; transform: scale(1) translateY(0); }
}

.ms-redeem-success-rays {
  position: absolute;
  inset: -30%;
  background: repeating-conic-gradient(from 0deg, transparent 0deg 12deg, rgba(232, 197, 71, 0.04) 12deg 13deg);
  animation: ms-redeem-glow 10s linear infinite;
}

.ms-redeem-success-icon {
  position: relative;
  display: inline-flex;
  width: 72px;
  height: 72px;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  font-size: 1.8rem;
  color: #1a1028;
  background: linear-gradient(145deg, #e8c547, #a67c2a);
  box-shadow: 0 0 40px rgba(232, 197, 71, 0.35);
}

.ms-redeem-success-panel h3 {
  position: relative;
  margin: 16px 0 8px;
  color: #e8c547;
}

.ms-redeem-success-panel p {
  position: relative;
  margin: 0 0 22px;
  color: rgba(210, 195, 240, 0.65);
}

.ms-redeem-success-btn {
  position: relative;
  padding: 12px 32px;
  border: none;
  border-radius: 999px;
  font-weight: 700;
  cursor: pointer;
  color: #1a1028;
  background: linear-gradient(135deg, #e8c547, #a67c2a);
}

@media (max-width: 800px) {
  .ms-flow-steps {
    grid-template-columns: 1fr;
  }

  .ms-redeem-layout {
    grid-template-columns: 1fr;
  }

  .ms-redeem-mode .ms-hero-path {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
    padding: 16px 14px;
  }

  .ms-hero-path-item {
    justify-content: center;
    width: 100%;
  }

  .ms-hero-path-arrow {
    transform: rotate(90deg);
    width: auto;
    height: 14px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .ms-redeem-hub-glow,
  .ms-cs-qr-ring,
  .ms-redeem-success-rays {
    animation: none !important;
  }
}
