/* Recharge / VIP page — RunningHub-inspired layout + auth cosmic background */

body.recharge-active {
  overflow: hidden;
}

body.recharge-active .site-footer {
  position: relative;
  z-index: 120;
  background: rgba(0, 0, 0, 0.85);
  border-top: 1px solid rgba(45, 212, 191, 0.12);
}

body.recharge-active .site-footer a {
  color: rgba(203, 213, 225, 0.75);
}

#recharge-view {
  position: fixed;
  inset: 0;
  z-index: 90;
  overflow: hidden;
}

#recharge-view.hidden {
  display: none !important;
}

.rc-page {
  position: relative;
  height: 100%;
  background: #000;
  color: #f8fafc;
}

/* Cosmic background (mirrors auth-login) */
.rc-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
  z-index: 0;
}

.rc-planet-video {
  position: absolute;
  object-fit: cover;
  border-radius: 50%;
  pointer-events: none;
}

.rc-planet-video-hero {
  inset: 0;
  width: 100%;
  height: 100%;
  border-radius: 0;
  opacity: 0.5;
  animation: auth-hero-drift 30s ease-in-out infinite alternate;
}

.rc-planet-video-1 {
  width: min(300px, 36vw);
  height: min(300px, 36vw);
  left: -4%;
  bottom: 8%;
  border: 2px solid rgba(45, 212, 191, 0.22);
  animation: auth-planet-float 14s ease-in-out infinite;
  opacity: 0.85;
}

.rc-planet-video-2 {
  width: min(240px, 30vw);
  height: min(240px, 30vw);
  right: -2%;
  top: 10%;
  border: 2px solid rgba(59, 130, 246, 0.28);
  animation: auth-planet-float 11s ease-in-out infinite reverse;
  animation-delay: -3s;
  opacity: 0.82;
}

.rc-bg-vignette {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 50% 40%, transparent 0%, rgba(0, 0, 0, 0.4) 55%, rgba(0, 0, 0, 0.88) 100%),
    linear-gradient(180deg, rgba(0, 0, 0, 0.65) 0%, transparent 20%, transparent 60%, rgba(0, 0, 0, 0.92) 100%);
}

.rc-scroll {
  position: relative;
  z-index: 1;
  height: 100%;
  overflow-y: auto;
  padding: 20px 24px 48px;
  max-width: 1080px;
  margin: 0 auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.rc-scroll::-webkit-scrollbar {
  display: none;
  width: 0;
  height: 0;
}

/* Header */
.rc-header {
  margin-bottom: 32px;
}

.rc-back-btn {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 8px 14px 8px 10px;
  margin-bottom: 24px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  color: #cbd5e1;
  font-size: 14px;
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
}

.rc-back-btn:hover {
  background: rgba(45, 212, 191, 0.12);
  color: #2dd4bf;
}

.rc-hero {
  text-align: center;
  margin-bottom: 20px;
}

.rc-hero-eyebrow {
  font-family: Orbitron, sans-serif;
  font-size: 11px;
  letter-spacing: 0.14em;
  color: #2dd4bf;
  margin-bottom: 10px;
}

.rc-hero-title {
  font-size: clamp(26px, 4vw, 34px);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 8px;
  background: linear-gradient(135deg, #f8fafc 0%, #94a3b8 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.rc-hero-desc {
  font-size: 14px;
  color: #94a3b8;
  max-width: 480px;
  margin: 0 auto;
  line-height: 1.6;
}

.rc-balance-pill {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin: 0 auto;
  padding: 12px 24px;
  max-width: 280px;
  background: rgba(15, 23, 42, 0.65);
  border: 1px solid rgba(45, 212, 191, 0.25);
  border-radius: 999px;
  backdrop-filter: blur(8px);
}

.rc-balance-label {
  font-size: 13px;
  color: #94a3b8;
}

.rc-balance-value {
  font-size: 22px;
  font-weight: 700;
  color: #2dd4bf;
  font-family: Orbitron, sans-serif;
}

/* Sections */
.rc-section {
  margin-bottom: 36px;
}

.rc-section-head {
  margin-bottom: 16px;
}

.rc-section-title {
  font-size: 18px;
  font-weight: 700;
  color: #f1f5f9;
  margin-bottom: 4px;
}

.rc-section-desc {
  font-size: 13px;
  color: #64748b;
}

/* Membership cards — horizontal scroll like RunningHub */
.rc-billing-tabs {
  display: inline-flex;
  gap: 8px;
  padding: 4px;
  margin-bottom: 16px;
  background: rgba(15, 23, 42, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
}

.rc-billing-tab {
  padding: 10px 18px;
  border: none;
  border-radius: 9px;
  background: transparent;
  color: #94a3b8;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
}

.rc-billing-tab:hover {
  color: #e2e8f0;
}

.rc-billing-tab.active {
  background: rgba(255, 255, 255, 0.92);
  color: #0f172a;
}

.rc-package-notice {
  margin-bottom: 16px;
  padding: 14px 16px;
  background: rgba(15, 23, 42, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  font-size: 13px;
  color: #94a3b8;
  line-height: 1.65;
}

.rc-package-notice strong {
  display: block;
  color: #e2e8f0;
  margin-bottom: 6px;
}

.rc-package-note {
  margin-top: 8px;
  font-size: 12px;
  color: #64748b;
}

.rc-membership-shell {
  position: relative;
  display: flex;
  align-items: stretch;
  gap: 10px;
}

.rc-membership-scroll {
  flex: 1;
  min-width: 0;
  overflow-x: scroll;
  overflow-y: hidden;
  padding: 4px 2px 12px;
  scroll-behavior: smooth;
  scroll-snap-type: x proximity;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior-x: contain;
  touch-action: pan-x;
  scrollbar-width: none;
  -ms-overflow-style: none;
  cursor: grab;
}

.rc-membership-scroll.is-dragging {
  cursor: grabbing;
  scroll-snap-type: none;
}

.rc-membership-scroll.is-dragging .rc-vip-card {
  pointer-events: none;
}

.rc-membership-scroll::-webkit-scrollbar {
  display: none;
}

.rc-membership-track {
  display: flex;
  flex-wrap: nowrap;
  align-items: stretch;
  gap: 12px;
  width: max-content;
  padding-right: 4px;
}

.rc-membership-arrow {
  flex: 0 0 36px;
  align-self: center;
  width: 36px;
  height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 50%;
  background: rgba(15, 23, 42, 0.85);
  color: #e2e8f0;
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s, opacity 0.15s;
  backdrop-filter: blur(8px);
}

.rc-membership-arrow:hover:not(:disabled) {
  background: rgba(45, 212, 191, 0.18);
  border-color: rgba(45, 212, 191, 0.45);
  color: #2dd4bf;
}

.rc-membership-arrow:disabled {
  opacity: 0.28;
  cursor: default;
}

.rc-membership-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 14px;
}

.rc-vip-card {
  position: relative;
  flex: none;
  flex-shrink: 0;
  width: 220px;
  min-width: 220px;
  max-width: 220px;
  scroll-snap-align: start;
  padding: 22px 20px 18px;
  background: rgba(15, 23, 42, 0.72);
  border: 1.5px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  cursor: pointer;
  transition: border-color 0.2s, box-shadow 0.2s, transform 0.2s;
  backdrop-filter: blur(10px);
}

.rc-vip-card:hover {
  border-color: rgba(45, 212, 191, 0.35);
  transform: translateY(-2px);
}

.rc-vip-card.selected {
  border-color: #2dd4bf;
  box-shadow: 0 0 0 1px rgba(45, 212, 191, 0.3), 0 12px 40px rgba(45, 212, 191, 0.12);
}

.rc-vip-card.rc-tier-pro.selected {
  border-color: #3b82f6;
  box-shadow: 0 0 0 1px rgba(59, 130, 246, 0.3), 0 12px 40px rgba(59, 130, 246, 0.12);
}

.rc-vip-card.rc-tier-ultimate.selected {
  border-color: #f59e0b;
  box-shadow: 0 0 0 1px rgba(245, 158, 11, 0.35), 0 12px 40px rgba(245, 158, 11, 0.12);
}

.rc-vip-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  font-size: 10px;
  font-weight: 600;
  padding: 3px 8px;
  border-radius: 6px;
  background: rgba(45, 212, 191, 0.15);
  color: #2dd4bf;
}

.rc-vip-card.rc-tier-pro .rc-vip-badge {
  background: rgba(59, 130, 246, 0.15);
  color: #60a5fa;
}

.rc-vip-card.rc-tier-ultimate .rc-vip-badge {
  background: rgba(245, 158, 11, 0.15);
  color: #fbbf24;
}

.rc-vip-tier {
  font-size: 12px;
  font-weight: 600;
  color: #64748b;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 6px;
}

.rc-vip-name {
  font-size: 20px;
  font-weight: 700;
  color: #f8fafc;
  margin-bottom: 12px;
}

.rc-vip-price-row {
  display: flex;
  align-items: baseline;
  gap: 6px;
  margin-bottom: 8px;
}

.rc-vip-price {
  font-size: 32px;
  font-weight: 800;
  color: #f8fafc;
  line-height: 1;
}

.rc-vip-price-original {
  font-size: 14px;
  color: #64748b;
  text-decoration: line-through;
  margin-left: 4px;
}

.rc-vip-price-unit {
  font-size: 16px;
  color: #94a3b8;
}

.rc-vip-credits {
  font-size: 14px;
  font-weight: 600;
  color: #2dd4bf;
  margin-bottom: 10px;
}

.rc-vip-desc {
  font-size: 13px;
  color: #94a3b8;
  line-height: 1.55;
  min-height: 40px;
}

.rc-vip-bonus {
  display: inline-block;
  margin-top: 8px;
  padding: 2px 8px;
  font-size: 11px;
  font-weight: 600;
  border-radius: 4px;
  background: rgba(245, 158, 11, 0.12);
  color: #fbbf24;
}

.rc-vip-duration {
  margin-top: 10px;
  font-size: 12px;
  color: #64748b;
}

/* Selected tier benefits */
.rc-benefits-card {
  margin-top: 16px;
  padding: 18px 20px;
  background: rgba(15, 23, 42, 0.8);
  border: 1px solid rgba(45, 212, 191, 0.2);
  border-radius: 14px;
}

.rc-benefits-title {
  font-size: 15px;
  font-weight: 600;
  color: #f1f5f9;
  margin-bottom: 12px;
}

.rc-benefits-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.rc-benefits-list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 14px;
  color: #cbd5e1;
  line-height: 1.5;
}

.rc-benefits-list li::before {
  content: '✓';
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(45, 212, 191, 0.15);
  color: #2dd4bf;
  font-size: 11px;
  font-weight: 700;
}

/* Compare table */
.rc-compare-wrap {
  overflow-x: auto;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(15, 23, 42, 0.72);
  backdrop-filter: blur(8px);
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.rc-compare-wrap::-webkit-scrollbar {
  display: none;
  width: 0;
  height: 0;
}

.rc-compare-table {
  width: 100%;
  min-width: 640px;
  border-collapse: collapse;
  font-size: 13px;
}

.rc-compare-table th,
.rc-compare-table td {
  padding: 12px 14px;
  text-align: center;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.rc-compare-table th {
  font-weight: 600;
  color: #94a3b8;
  background: rgba(0, 0, 0, 0.25);
  font-size: 12px;
}

.rc-compare-table th:first-child,
.rc-compare-table td:first-child {
  text-align: left;
  color: #e2e8f0;
  font-weight: 500;
  min-width: 140px;
}

.rc-compare-table tbody tr:last-child td {
  border-bottom: none;
}

.rc-compare-yes {
  color: #2dd4bf;
  font-weight: 700;
}

.rc-compare-no {
  color: #475569;
}

.rc-compare-highlight {
  color: #fbbf24;
  font-weight: 600;
}

/* Credits grid */
.rc-credits-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 12px;
}

.rc-credit-card {
  padding: 16px;
  background: rgba(15, 23, 42, 0.65);
  border: 1.5px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  cursor: pointer;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.rc-credit-card:hover {
  border-color: rgba(45, 212, 191, 0.3);
}

.rc-credit-card.selected {
  border-color: #2dd4bf;
  box-shadow: 0 0 0 1px rgba(45, 212, 191, 0.25);
}

.rc-credit-name {
  font-size: 14px;
  font-weight: 600;
  color: #f1f5f9;
  margin-bottom: 8px;
}

.rc-credit-price {
  font-size: 24px;
  font-weight: 800;
  color: #f8fafc;
  margin-bottom: 4px;
}

.rc-credit-points {
  font-size: 13px;
  color: #2dd4bf;
  font-weight: 600;
  margin-bottom: 6px;
}

.rc-credit-uses {
  font-size: 11px;
  color: #64748b;
  line-height: 1.4;
}

.rc-credit-bonus {
  display: inline-block;
  margin-top: 6px;
  font-size: 10px;
  padding: 2px 6px;
  border-radius: 4px;
  background: rgba(245, 158, 11, 0.12);
  color: #fbbf24;
}

/* Platform cards */
.rc-platform-card {
  padding: 18px 20px;
  margin-bottom: 12px;
  background: rgba(15, 23, 42, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
}

.rc-platform-card h3 {
  font-size: 15px;
  font-weight: 600;
  color: #f1f5f9;
  margin-bottom: 10px;
}

.rc-platform-note {
  font-size: 13px;
  color: #94a3b8;
  margin-bottom: 12px;
}

.rc-pricing-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.rc-pricing-col h4 {
  font-size: 13px;
  font-weight: 600;
  color: #cbd5e1;
  margin-bottom: 8px;
}

.rc-pricing-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.rc-pricing-list li {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  font-size: 13px;
  color: #94a3b8;
  padding: 6px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.rc-pricing-list li:last-child {
  border-bottom: none;
}

.rc-pricing-list strong {
  color: #2dd4bf;
  font-weight: 600;
  white-space: nowrap;
}

.rc-platform-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.rc-platform-list li {
  position: relative;
  padding-left: 16px;
  font-size: 13px;
  color: #94a3b8;
  line-height: 1.65;
  margin-bottom: 8px;
}

.rc-platform-list li::before {
  content: '·';
  position: absolute;
  left: 0;
  color: #2dd4bf;
  font-weight: 700;
}

.rc-legal {
  text-align: center;
  font-size: 12px;
  color: #475569;
  line-height: 1.6;
  padding: 8px 0 16px;
}

/* Pay dialog — RunningHub style centered modal */
.rc-pay-overlay {
  position: fixed;
  inset: 0;
  z-index: 130;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.rc-pay-overlay.hidden {
  display: none !important;
}

.rc-pay-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.72);
  backdrop-filter: blur(6px);
}

.rc-pay-dialog {
  position: relative;
  width: min(640px, 100%);
  max-height: calc(100vh - 40px);
  overflow-y: auto;
  padding: 24px 28px 20px;
  background: linear-gradient(160deg, rgba(18, 28, 38, 0.98) 0%, rgba(10, 18, 28, 0.98) 100%);
  border: 1px solid rgba(45, 212, 191, 0.18);
  border-radius: 20px;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.55);
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.rc-pay-dialog::-webkit-scrollbar {
  display: none;
}

.rc-pay-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 32px;
  height: 32px;
  border: none;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.06);
  color: #94a3b8;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  z-index: 2;
}

.rc-pay-close:hover {
  color: #f1f5f9;
  background: rgba(255, 255, 255, 0.1);
}

.rc-pay-header {
  margin-bottom: 16px;
  padding-right: 36px;
}

.rc-pay-title {
  font-size: 20px;
  font-weight: 700;
  color: #f8fafc;
  margin-bottom: 6px;
}

.rc-pay-subtitle {
  font-size: 13px;
  color: #64748b;
}

.rc-pay-order-box {
  padding: 14px 16px;
  margin-bottom: 20px;
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 12px;
}

.rc-pay-order-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.rc-pay-order-list li {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  font-size: 13px;
  color: #94a3b8;
  padding: 6px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.rc-pay-order-list li:last-child {
  border-bottom: none;
  padding-top: 10px;
  margin-top: 4px;
  border-top: 1px dashed rgba(45, 212, 191, 0.2);
  font-size: 14px;
  color: #e2e8f0;
}

.rc-pay-order-list strong {
  color: #2dd4bf;
  font-weight: 600;
}

.rc-pay-body {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 24px;
  align-items: start;
}

.rc-pay-qr-col {
  display: flex;
  justify-content: center;
}

.rc-qr-panel {
  width: 100%;
}

.rc-qr-frame {
  position: relative;
  width: 180px;
  height: 180px;
  margin: 0 auto;
  padding: 10px;
  background: #fff;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.rc-qr-frame img {
  display: block;
  width: 160px;
  height: 160px;
}

.rc-qr-frame img.hidden {
  display: none;
}

.rc-qr-loading {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  font-size: 12px;
  color: #64748b;
  text-align: center;
  padding: 20px;
}

.rc-qr-loading.hidden {
  display: none;
}

.rc-qr-spinner {
  width: 28px;
  height: 28px;
  border: 3px solid #e2e8f0;
  border-top-color: #2dd4bf;
  border-radius: 50%;
  animation: rc-spin 0.8s linear infinite;
}

@keyframes rc-spin {
  to { transform: rotate(360deg); }
}

.rc-pay-info-col {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding-top: 8px;
}

.rc-pay-amount {
  display: flex;
  align-items: baseline;
  gap: 2px;
}

.rc-pay-amount-symbol {
  font-size: 22px;
  font-weight: 700;
  color: #f8fafc;
}

.rc-pay-amount-value {
  font-size: 40px;
  font-weight: 800;
  color: #f8fafc;
  font-family: Orbitron, sans-serif;
  line-height: 1;
}

.rc-pay-methods {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.rc-pay-method {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 12px 14px;
  border: 1.5px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.03);
  color: #cbd5e1;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  text-align: left;
  transition: border-color 0.15s, background 0.15s;
}

.rc-pay-method:hover {
  border-color: rgba(45, 212, 191, 0.25);
  background: rgba(45, 212, 191, 0.05);
}

.rc-pay-method.active {
  border-color: #2dd4bf;
  background: rgba(45, 212, 191, 0.1);
  color: #f1f5f9;
}

.rc-pay-method.hidden {
  display: none;
}

.rc-pay-method-check {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.2);
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  color: transparent;
}

.rc-pay-method.active .rc-pay-method-check {
  border-color: #2dd4bf;
  background: #2dd4bf;
  color: #0f172a;
}

.rc-pay-method.active .rc-pay-method-check::before {
  content: '✓';
  font-weight: 700;
}

.rc-pay-method .jm-pay-icon {
  width: 24px;
  height: 24px;
  border-radius: 6px;
  flex-shrink: 0;
}

.rc-pay-method .jm-pay-icon.wechat {
  background: #07c160;
}

.rc-pay-method .jm-pay-icon.alipay {
  background: #1677ff;
}

.rc-pay-hint {
  font-size: 13px;
  color: #64748b;
  line-height: 1.5;
}

.rc-mock-btn {
  align-self: flex-start;
  padding: 8px 16px;
  border: 1px solid rgba(45, 212, 191, 0.4);
  border-radius: 10px;
  background: transparent;
  color: #2dd4bf;
  font-size: 13px;
  cursor: pointer;
}

.rc-mock-btn:hover {
  background: rgba(45, 212, 191, 0.1);
}

.rc-pay-legal {
  margin-top: 18px;
  padding-top: 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  font-size: 12px;
  color: #475569;
  line-height: 1.6;
  text-align: center;
}

@media (max-width: 768px) {
  .rc-scroll {
    padding: 16px 16px 40px;
  }

  .rc-pricing-grid {
    grid-template-columns: 1fr;
  }

  .rc-membership-grid {
    grid-template-columns: 1fr;
  }

  .rc-pay-body {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .rc-pay-amount-value {
    font-size: 32px;
  }
}

@media (max-width: 520px) {
  .rc-credits-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
