.shell {
  display: flex;
  flex-direction: column;
  height: var(--app-viewport-height, 100dvh);
  min-height: var(--app-viewport-height, 100dvh);
  overflow: hidden;
  background:
    radial-gradient(circle at 8% 4%, rgba(255, 255, 255, 0.95) 0 90px, transparent 160px),
    linear-gradient(180deg, #fff9fb 0%, #fcf3f4 52%, #fffefe 100%);
}

.scrollArea {
  min-height: 0;
  flex: 1 1 auto;
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding:
    calc(var(--page-padding-y, 18px) + var(--app-safe-top, 0px))
    calc(var(--page-padding-x, 20px) + var(--app-safe-right, 0px))
    var(--page-section-gap-lg, 22px)
    calc(var(--page-padding-x, 20px) + var(--app-safe-left, 0px));
}

.header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  height: 40px;
}

.backSlot {
  display: inline-flex;
}

.paymentIssueButton {
  border: 0;
  background: transparent;
  color: #b72f70;
  cursor: pointer;
  font: inherit;
  font-size: var(--responsive-caption, 13px);
  font-weight: 800;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.paymentIssueButton:focus-visible {
  border-radius: 6px;
  outline: 2px solid #f657a0;
  outline-offset: 3px;
}

.paymentIssueNotice {
  position: fixed;
  z-index: 80;
  top: calc(68px + var(--app-safe-top, 0px));
  left: 50%;
  width: min(calc(100% - 40px), 500px);
  margin: 0;
  padding: 10px 12px;
  border: 1px solid rgba(39, 174, 96, 0.3);
  border-radius: 14px;
  background: rgba(236, 253, 245, 0.96);
  color: #166534;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.4;
  transform: translateX(-50%);
  box-shadow: 0 12px 30px rgba(22, 101, 52, 0.12);
}

.characterSupportBanner {
  margin-top: var(--page-section-gap, 14px);
  padding: 14px 16px;
  border: 1px solid rgba(246, 87, 160, 0.2);
  border-radius: var(--responsive-card-radius-sm, 22px);
  background: rgba(255, 255, 255, 0.9);
  color: #4a3340;
  box-shadow: 0 10px 24px rgba(246, 87, 160, 0.1);
}

.characterSupportBanner h2 {
  margin: 0;
  color: #24151d;
  font-size: var(--responsive-card-title, 17px);
  line-height: 1.25;
}

.characterSupportBanner p {
  margin: 6px 0 0;
  font-size: var(--responsive-caption, 14px);
  line-height: 1.45;
}

.firstRechargeBanner {
  display: flex;
  align-items: center;
  gap: var(--spacing-md, 12px);
  margin-top: var(--page-section-gap, 14px);
  padding: clamp(10px, 2.222vw, 12px) clamp(12px, 2.593vw, 14px);
  border: 1px solid rgba(255, 95, 174, 0.28);
  border-radius: var(--responsive-card-radius-sm, 22px);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.96) 0%, rgba(255, 239, 248, 0.94) 100%),
    #ffffff;
  box-shadow: 0 14px 32px rgba(255, 95, 174, 0.16);
}

.firstRechargeBadge {
  flex: 0 0 auto;
  padding: 9px 12px;
  border-radius: 999px;
  background: linear-gradient(135deg, #ff5fae 0%, #ff8a34 100%);
  color: #ffffff;
  font-size: clamp(20px, 5.185vw, 28px);
  font-weight: 900;
  line-height: 1;
  box-shadow: 0 10px 22px rgba(255, 95, 174, 0.25);
}

.firstRechargeCopy {
  min-width: 0;
}

.firstRechargeTitle {
  margin: 0;
  color: #181014;
  font-size: var(--responsive-card-title, 17px);
  font-weight: 900;
  line-height: 1.15;
}

.firstRechargeSubtitle {
  margin: var(--responsive-inline-gap-xs, 4px) 0 0;
  color: #75656d;
  font-size: var(--responsive-micro, 12px);
  font-weight: 700;
  line-height: 1.25;
}

.firstRechargeRenewalNotice {
  margin: var(--responsive-inline-gap-xs, 4px) 0 0;
  color: #a23869;
  font-size: var(--responsive-micro, 12px);
  font-weight: 800;
  line-height: 1.3;
}

.offerStack {
  display: flex;
  flex-direction: column;
  gap: var(--page-section-gap, 18px);
  margin-top: var(--page-section-gap, 14px);
}

.userSlot {
  margin-top: var(--spacing-md);
  padding: 0 var(--spacing-xs);
}

.bannerSlot {
  margin-top: var(--spacing-lg);
}

.plansRow {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(92px, 1fr));
  gap: var(--spacing-sm);
  margin-top: var(--spacing-xl);
}

.plansStatus {
  grid-column: 1 / -1;
  margin: 0;
  padding: var(--spacing-md) var(--spacing-xs);
  color: var(--color-text-secondary);
  font-size: var(--responsive-caption, var(--font-size-sm));
  text-align: center;
  line-height: 1.5;
}

.autoRenewCaption {
  margin-top: var(--spacing-xxl);
  padding: 0 var(--spacing-xs);
  font-size: var(--responsive-body, var(--font-size-lg));
  color: #3c3b3b;
}

.benefitsSlot {
  margin-top: var(--spacing-lg);
}

.benefitsPlaceholder {
  min-height: 160px;
}

.paymentMethodSlot {
  margin-top: var(--page-section-gap-lg, 22px);
}

.ctaSlot {
  position: relative;
  z-index: 40;
  flex: 0 0 auto;
  width: 100%;
  max-height: min(50dvh, 360px);
  overflow-y: auto;
  padding:
    12px
    calc(var(--page-padding-x, 20px) + var(--app-safe-right, 0px))
    calc(12px + var(--app-safe-bottom, 0px))
    calc(var(--page-padding-x, 20px) + var(--app-safe-left, 0px));
  border-top: 1px solid rgba(246, 87, 160, 0.14);
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.72) 0%,
    rgba(255, 249, 252, 0.98) 35%
  );
  box-shadow: 0 -12px 30px rgba(87, 35, 59, 0.1);
  backdrop-filter: blur(16px);
}
