/* Cosmic membership checkout */

body.cosmic-recharge-body {
  min-height: 100vh;
  background: #050814;
  color: rgba(241, 238, 230, 0.9);
}

body.cosmic-recharge-body .site-nav {
  background: rgba(5, 8, 20, 0.72);
  border-bottom-color: rgba(239, 199, 120, 0.18);
  backdrop-filter: blur(18px);
}

body.cosmic-recharge-body .site-nav .nav-logo {
  color: #f2d18e;
}

body.cosmic-recharge-body .site-nav .nav-links a,
body.cosmic-recharge-body .site-nav .nav-btn {
  color: rgba(241, 238, 230, 0.68);
}

body.cosmic-recharge-body .site-nav .nav-links a:hover,
body.cosmic-recharge-body .site-nav .nav-btn:hover {
  color: #f6ddaa;
}

body.cosmic-recharge-body .site-nav .nav-cta {
  border-radius: 2px;
  color: #f6ddaa;
}

.cosmic-recharge-page {
  position: relative;
  isolation: isolate;
  min-height: 100svh;
  overflow: hidden;
  padding: clamp(7rem, 12vh, 9.5rem) 1.5rem 4.5rem;
  background: #050814;
}

.cosmic-recharge-backdrop,
.cosmic-recharge-backdrop::after,
.cosmic-recharge-canvas,
.cosmic-recharge-image {
  position: absolute;
  inset: 0;
}

.cosmic-recharge-backdrop {
  z-index: -2;
  overflow: hidden;
  background: #050814;
}

.cosmic-recharge-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 42% 35%;
  opacity: 0.31;
  filter: saturate(0.78) contrast(1.08);
  transform: scale(1.08);
}

.cosmic-recharge-backdrop::after {
  content: "";
  background:
    linear-gradient(100deg, rgba(3, 6, 16, 0.93), rgba(3, 6, 16, 0.5) 45%, rgba(3, 6, 16, 0.9)),
    linear-gradient(180deg, rgba(3, 6, 16, 0.36), rgba(3, 6, 16, 0.95));
}

.cosmic-recharge-canvas {
  width: 100%;
  height: 100%;
  opacity: 0.42;
  mix-blend-mode: screen;
}

.cosmic-recharge-page .auth-shell {
  position: relative;
  width: min(100%, 1180px);
  max-width: 1180px;
  margin: 0 auto;
}

.cosmic-recharge-page .auth-eyebrow {
  margin-bottom: 0.85rem;
  color: #8fd5cf;
  font-family: "Cinzel", "Noto Sans SC", sans-serif;
  font-size: 0.68rem;
  letter-spacing: 0.24em;
  text-align: left;
}

.cosmic-recharge-page .auth-title-wrap {
  justify-content: flex-start;
  margin-bottom: 1.8rem;
}

.cosmic-recharge-page .auth-title-wrap::before,
.cosmic-recharge-page .auth-title-wrap::after {
  display: none;
}

.cosmic-recharge-page .auth-title-wrap h1 {
  color: #f2eee6;
  font-size: clamp(1.7rem, 4.2vw, 2.65rem);
  letter-spacing: 0.05em;
}

.cosmic-recharge-page .recharge-layout {
  grid-template-columns: minmax(0, 1.35fr) minmax(20rem, 0.8fr);
  gap: clamp(1.1rem, 3vw, 2.2rem);
  margin-top: 0;
}

.cosmic-recharge-page .recharge-section-title {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  margin-bottom: 1rem;
  color: #f2eee6;
  font-family: "Cinzel", "Noto Sans SC", sans-serif;
  font-size: 0.76rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.cosmic-recharge-page .recharge-section-title::after {
  content: "";
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, rgba(239, 199, 120, 0.42), transparent);
}

.cosmic-recharge-page .recharge-plan-list {
  gap: 0.85rem;
}

.cosmic-recharge-page .recharge-plan-card {
  position: relative;
  border: 1px solid rgba(241, 238, 230, 0.14);
  border-radius: 2px;
  background: linear-gradient(112deg, rgba(14, 22, 38, 0.9), rgba(8, 13, 25, 0.72));
  box-shadow: 0 16px 32px rgba(0, 0, 0, 0.16);
  transition: border-color 240ms ease, background 240ms ease, transform 240ms ease, box-shadow 240ms ease;
}

.cosmic-recharge-page .recharge-plan-card::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 2px;
  background: transparent;
  transition: background 240ms ease, box-shadow 240ms ease;
}

.cosmic-recharge-page .recharge-plan-card:hover {
  border-color: rgba(239, 199, 120, 0.48);
  background: linear-gradient(112deg, rgba(18, 29, 47, 0.94), rgba(9, 15, 28, 0.82));
  transform: translateY(-2px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.22);
}

.cosmic-recharge-page .recharge-plan-card.is-active {
  border-color: rgba(239, 199, 120, 0.66);
  background: linear-gradient(112deg, rgba(29, 34, 49, 0.95), rgba(10, 17, 30, 0.82));
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.24), inset 0 1px 0 rgba(239, 199, 120, 0.14);
}

.cosmic-recharge-page .recharge-plan-card.is-active::before {
  background: #efc778;
  box-shadow: 0 0 18px rgba(239, 199, 120, 0.58);
}

.cosmic-recharge-page .recharge-plan-head {
  padding: 1rem 1.1rem 0.88rem 1.2rem;
  background: transparent;
}

.cosmic-recharge-page .recharge-plan-name {
  color: #f2eee6;
  font-family: "Noto Serif SC", Georgia, serif;
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0.04em;
}

.cosmic-recharge-page .recharge-plan-arrow {
  color: #efc778;
  font-family: "Cinzel", serif;
  font-size: 1.2rem;
}

.cosmic-recharge-page .recharge-cycle-list {
  gap: 0.55rem;
  padding: 0.65rem 1.1rem 1.15rem 1.2rem;
}

.cosmic-recharge-page .recharge-cycle-btn {
  min-height: 2.65rem;
  border: 1px solid rgba(241, 238, 230, 0.16);
  border-radius: 2px;
  background: rgba(5, 9, 19, 0.48);
  color: rgba(241, 238, 230, 0.56);
  font-family: "Noto Sans SC", system-ui, sans-serif;
  font-size: 0.75rem;
  transition: border-color 180ms ease, color 180ms ease, background 180ms ease, transform 180ms ease;
}

.cosmic-recharge-page .recharge-cycle-btn:hover {
  border-color: rgba(239, 199, 120, 0.55);
  color: #f6ddaa;
  transform: translateY(-1px);
}

.cosmic-recharge-page .recharge-cycle-btn strong {
  color: #f2eee6;
}

.cosmic-recharge-page .recharge-cycle-btn.is-active {
  border-color: rgba(239, 199, 120, 0.84);
  background: rgba(239, 199, 120, 0.13);
  color: #f6ddaa;
  box-shadow: inset 0 0 0 1px rgba(239, 199, 120, 0.14), 0 0 20px rgba(239, 199, 120, 0.07);
}

.cosmic-recharge-page .recharge-checkout-card {
  position: sticky;
  top: 6.4rem;
  border: 1px solid rgba(239, 199, 120, 0.3);
  border-radius: 2px;
  background: linear-gradient(155deg, rgba(19, 28, 46, 0.94), rgba(8, 13, 25, 0.9));
  box-shadow: 0 28px 70px rgba(0, 0, 0, 0.34), inset 0 1px 0 rgba(255, 255, 255, 0.06);
  padding: clamp(1.35rem, 3vw, 2rem);
}

.cosmic-recharge-page .recharge-checkout-label {
  color: #8fd5cf;
  font-family: "Cinzel", "Noto Sans SC", sans-serif;
  font-size: 0.66rem;
  letter-spacing: 0.2em;
}

.cosmic-recharge-page .recharge-checkout-plan {
  margin-top: 0.55rem;
  color: #f4eee1;
  font-family: "Noto Serif SC", Georgia, serif;
  font-size: 1.3rem;
  letter-spacing: 0.04em;
}

.cosmic-recharge-page .recharge-checkout-cycle {
  color: rgba(241, 238, 230, 0.56);
  font-family: "Noto Sans SC", system-ui, sans-serif;
  font-size: 0.76rem;
}

.cosmic-recharge-page .recharge-price-box {
  margin: 1.5rem 0 1rem;
}

.cosmic-recharge-page .recharge-price-currency,
.cosmic-recharge-page .recharge-price-unit {
  color: #efc778;
}

.cosmic-recharge-page .recharge-price-amount {
  color: #f4eee1;
  font-size: clamp(2.8rem, 6vw, 4rem);
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.03em;
}

.cosmic-recharge-page .recharge-account {
  margin-bottom: 1.3rem;
  padding-top: 0.8rem;
  border-top: 1px solid rgba(241, 238, 230, 0.12);
  color: rgba(241, 238, 230, 0.52);
  font-family: "Noto Sans SC", system-ui, sans-serif;
}

.cosmic-recharge-page .payment-methods {
  margin-bottom: 1.15rem;
  padding: 0;
  border: 0;
}

.cosmic-recharge-page .payment-methods legend {
  margin-bottom: 0.65rem;
  color: rgba(241, 238, 230, 0.76);
  font-family: "Noto Sans SC", system-ui, sans-serif;
  font-size: 0.74rem;
  font-weight: 600;
}

.cosmic-recharge-page .payment-method-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.55rem;
}

.cosmic-recharge-page .payment-method-option {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 0.5rem;
  border: 1px solid rgba(241, 238, 230, 0.14);
  border-radius: 2px;
  background: rgba(4, 8, 18, 0.46);
  color: #f1eee6;
  padding: 0.65rem 0.6rem;
  font-family: "Noto Sans SC", system-ui, sans-serif;
  text-align: left;
  cursor: pointer;
  transition: border-color 180ms ease, background 180ms ease, box-shadow 180ms ease;
}

.cosmic-recharge-page .payment-method-option:hover {
  border-color: rgba(239, 199, 120, 0.46);
}

.cosmic-recharge-page .payment-method-option:focus-visible {
  outline: 2px solid #efc778;
  outline-offset: 2px;
}

.cosmic-recharge-page .payment-method-option.is-active {
  border-color: rgba(6, 205, 104, 0.74);
  background: rgba(6, 173, 86, 0.13);
  box-shadow: inset 0 0 0 1px rgba(6, 173, 86, 0.12);
}

.cosmic-recharge-page .payment-method-option.is-alipay.is-active {
  border-color: rgba(22, 119, 255, 0.78);
  background: rgba(22, 119, 255, 0.13);
  box-shadow: inset 0 0 0 1px rgba(22, 119, 255, 0.12);
}

.cosmic-recharge-page .payment-method-icon {
  display: inline-grid;
  width: 1.85rem;
  height: 1.85rem;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 2px;
  background: #06ad56;
  color: #fff;
  font-size: 0.78rem;
  font-weight: 700;
}

.cosmic-recharge-page .payment-method-option.is-alipay .payment-method-icon {
  background: #1677ff;
}

.cosmic-recharge-page .payment-method-copy {
  display: grid;
  min-width: 0;
  gap: 0.08rem;
}

.cosmic-recharge-page .payment-method-copy strong {
  color: #f1eee6;
  font-size: 0.78rem;
  line-height: 1.2;
}

.cosmic-recharge-page .payment-method-copy small {
  overflow: hidden;
  color: rgba(241, 238, 230, 0.46);
  font-size: 0.66rem;
  line-height: 1.2;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.cosmic-recharge-page .wechat-pay-btn {
  min-height: 3.25rem;
  border: 1px solid rgba(6, 205, 104, 0.62);
  border-radius: 2px;
  background: linear-gradient(110deg, #07964f, #0bc86a);
  box-shadow: 0 14px 30px rgba(6, 173, 86, 0.2);
  font-family: "Noto Sans SC", system-ui, sans-serif;
}

.cosmic-recharge-page .wechat-pay-btn:hover {
  box-shadow: 0 18px 36px rgba(6, 173, 86, 0.28);
}

.cosmic-recharge-page .payment-submit-btn.is-alipay {
  border-color: rgba(69, 149, 255, 0.68);
  background: linear-gradient(110deg, #125dc7, #1677ff);
  box-shadow: 0 14px 30px rgba(22, 119, 255, 0.23);
}

.cosmic-recharge-page .payment-submit-btn.is-alipay:hover {
  box-shadow: 0 18px 36px rgba(22, 119, 255, 0.3);
}

.cosmic-recharge-page .recharge-pay-hint,
.cosmic-recharge-page .pricing-policy {
  color: rgba(241, 238, 230, 0.46);
  font-family: "Noto Sans SC", system-ui, sans-serif;
}

.cosmic-recharge-page .recharge-back-link {
  color: #efc778;
  font-family: "Noto Sans SC", system-ui, sans-serif;
}

.cosmic-recharge-page .auth-footer-note {
  color: rgba(241, 238, 230, 0.32);
  font-family: "Cinzel", "Noto Sans SC", sans-serif;
}

/* Payment modal */
.cosmic-recharge-page + .pay-modal .pay-modal-backdrop {
  background: rgba(2, 5, 14, 0.8);
  backdrop-filter: blur(10px);
}

.pay-modal-card.cosmic-pay-modal-card,
.cosmic-recharge-body .pay-modal-card {
  width: min(100%, 25rem);
  border: 1px solid rgba(239, 199, 120, 0.34);
  border-radius: 2px;
  background: linear-gradient(145deg, rgba(18, 28, 47, 0.98), rgba(6, 11, 22, 0.98));
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.55), inset 0 1px 0 rgba(255, 255, 255, 0.07);
  color: #f1eee6;
}

.cosmic-recharge-body .pay-modal-close {
  color: rgba(241, 238, 230, 0.58);
}

.cosmic-recharge-body .pay-modal-close:hover {
  color: #f6ddaa;
}

.cosmic-recharge-body .pay-modal-eyebrow {
  color: #8fd5cf;
  font-family: "Cinzel", "Noto Sans SC", sans-serif;
}

.cosmic-recharge-body .pay-modal-title {
  color: #f4eee1;
  font-family: "Noto Serif SC", Georgia, serif;
}

.cosmic-recharge-body .pay-modal-amount {
  color: #efc778;
  font-variant-numeric: tabular-nums;
}

.cosmic-recharge-body .pay-modal-qr {
  border-color: rgba(239, 199, 120, 0.34);
  border-radius: 2px;
  background: #f7f7f2;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.28);
}

.cosmic-recharge-body .pay-modal-qr-placeholder {
  color: #5d6879;
}

.cosmic-recharge-body .pay-modal-hint {
  color: rgba(241, 238, 230, 0.58);
}

.cosmic-recharge-body .pay-modal-status {
  color: #8fd5cf;
}

.cosmic-recharge-body .pay-modal-status.is-alipay,
.cosmic-recharge-body .pay-modal-eyebrow.is-alipay {
  color: #66a8ff;
}

.cosmic-recharge-body .pay-modal-mock-btn {
  border-color: rgba(239, 199, 120, 0.4);
  border-radius: 2px;
  background: rgba(239, 199, 120, 0.1);
  color: #f6ddaa;
}

@media (max-width: 820px) {
  .cosmic-recharge-page .recharge-layout {
    grid-template-columns: 1fr;
  }

  .cosmic-recharge-page .recharge-checkout-card {
    position: static;
  }
}

@media (max-width: 560px) {
  body.cosmic-recharge-body .site-nav {
    padding: 0.9rem 1rem;
  }

  body.cosmic-recharge-body .site-nav .nav-logo {
    font-size: 0.76rem;
    letter-spacing: 0.16em;
  }

  body.cosmic-recharge-body .site-nav .nav-links {
    gap: 0.65rem;
  }

  body.cosmic-recharge-body .site-nav .nav-links li:nth-child(2),
  body.cosmic-recharge-body .site-nav .nav-links li:nth-child(3) {
    display: none;
  }

  body.cosmic-recharge-body .site-nav .nav-cta {
    padding: 0.45rem 0.65rem;
  }

  .cosmic-recharge-page {
    padding: 6.2rem 1rem 3rem;
  }

  .cosmic-recharge-page .recharge-checkout-card {
    padding: 1.25rem 1.05rem;
  }

  .cosmic-recharge-page .payment-method-list {
    grid-template-columns: 1fr;
  }

  .cosmic-recharge-page .recharge-cycle-btn {
    flex: 1 1 auto;
    justify-content: center;
  }
}

@media (prefers-reduced-motion: reduce) {
  .cosmic-recharge-image {
    transform: none;
  }
}

/* Keep checkout calm while giving it the same real deep-space depth as the entry flow. */
.cosmic-recharge-deep-space {
  position: absolute;
  z-index: 1;
  inset: 0;
  overflow: hidden;
  background: transparent;
  pointer-events: none;
}

.cosmic-recharge-deep-space .xillion-deep-space-canvas,
.cosmic-recharge-deep-space .xillion-deep-space-fallback-canvas {
  display: block;
  width: 100% !important;
  height: 100% !important;
}

.cosmic-recharge-image {
  z-index: 0;
  opacity: 0.64;
  filter: saturate(0.6) contrast(1.06) brightness(0.6);
}

.cosmic-recharge-backdrop::after {
  z-index: 2;
  background:
    linear-gradient(100deg, rgba(2, 5, 14, 0.9), rgba(2, 5, 14, 0.42) 47%, rgba(2, 5, 14, 0.84)),
    linear-gradient(180deg, rgba(2, 5, 14, 0.32), rgba(2, 5, 14, 0.9));
}

@media (prefers-reduced-motion: reduce) {
  .cosmic-recharge-deep-space {
    background: #050814;
  }
}

.cosmic-recharge-page .cosmic-recharge-backdrop {
  z-index: 0;
}

.cosmic-recharge-page .auth-shell {
  z-index: 1;
}
