/* ============================================
   Campfire — Upgrade Page Styles
   ============================================ */

.upgrade-layout {
  max-width: 1100px;
  margin: 0 auto;
  padding: 24px 20px 60px;
}

/* ---- Hero ---- */
.upgrade-hero { text-align: center; margin-bottom: 36px; }
.upgrade-hero h1 { font-size: 28px; font-weight: 800; margin-bottom: 6px; }
.upgrade-hero p { color: var(--text-secondary); font-size: 14px; }

/* ---- Section ---- */
.plans-section { margin-bottom: 36px; }
.plans-section-title {
  font-size: 14px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.5px;
  color: var(--text-muted); margin-bottom: 6px; text-align: center;
}
.plans-section-sub {
  text-align: center; font-size: 12px; color: var(--text-muted); margin-bottom: 18px;
}
.plans-section-sub em { color: var(--text-secondary); font-style: normal; }

/* ---- Plans Grid ---- */
.plans-grid {
  display: grid; gap: 16px; align-items: stretch;
}
.plans-grid-2 {
  grid-template-columns: repeat(2, 1fr);
  max-width: 760px; margin: 0 auto;
}
@media (max-width: 640px) {
  .plans-grid-2 { grid-template-columns: 1fr; }
}

/* ---- Plan Card ---- */
.plan-card {
  padding: 28px; text-align: center;
  display: flex; flex-direction: column;
  position: relative;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.plan-card.featured {
  border-color: rgba(255, 107, 53, 0.4);
  box-shadow: 0 0 20px rgba(255, 107, 53, 0.1);
}
.plan-card.current-plan {
  border-color: var(--success);
  box-shadow: 0 0 20px rgba(67, 233, 123, 0.15);
}
/* Use ::after so it doesn't merge with .glass::before (which sets inset:0
   and would otherwise stretch the badge across the whole card). */
.plan-card.current-plan::after {
  content: 'Your current plan';
  position: absolute; top: -10px; left: 50%; transform: translateX(-50%);
  background: var(--success); color: #000;
  font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.5px;
  padding: 3px 10px; border-radius: 10px;
  white-space: nowrap;
  z-index: 2;
}

/* ---- Plan Badge (top of card) ---- */
.plan-badge {
  display: inline-block; padding: 4px 12px; border-radius: 12px;
  font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.5px;
  margin-bottom: 12px;
}
.plan-badge.free       { background: rgba(255,255,255,0.06); color: var(--text-secondary); }
.plan-badge.member     { background: rgba(67,233,123,0.15); color: var(--success); }
.plan-badge.pro        { background: rgba(255,107,53,0.15); color: var(--accent); }

/* ---- Price ---- */
.plan-price {
  font-size: 60px; line-height: 1; font-weight: 400;
  color: var(--text-primary); margin-bottom: 4px;
  font-family: 'W95FA', 'MS Sans Serif', Tahoma, ui-monospace, monospace;
  letter-spacing: 1px;
}
.plan-price span {
  font-size: 13px; font-weight: 400; color: var(--text-muted);
  font-family: var(--font-body, system-ui, -apple-system, "Segoe UI", sans-serif);
  letter-spacing: 0; margin-left: 2px;
}
.plan-tagline {
  color: var(--text-muted); font-size: 12px; margin-bottom: 18px; min-height: 30px;
}

/* ---- Features ---- */
.plan-features {
  list-style: none; text-align: left; margin-bottom: 20px; flex-grow: 1;
}
.plan-features li { padding: 5px 0; font-size: 13px; color: var(--text-secondary); }
.plan-features li::before { content: '\2713'; color: var(--success); font-weight: 700; margin-right: 8px; }
.plan-features li.section-divider {
  margin-top: 10px; padding-top: 10px;
  border-top: 1px solid rgba(255,255,255,0.06);
  font-size: 10px; color: var(--text-muted);
  text-transform: uppercase; letter-spacing: 0.5px; font-weight: 700;
}
.plan-features li.section-divider::before { content: ''; margin: 0; }

.plan-cta:disabled { opacity: 0.6; }

/* ---- Footer ---- */
.upgrade-footer { text-align: center; margin-top: 24px; }
.upgrade-footer p { font-size: 12px; color: var(--text-muted); }

/* Paid price before the Shop catalog answers (js/upgrade.js applyCatalog). */
.plan-price[data-pending] {
  color: transparent; border-radius: 6px; width: fit-content; min-width: 96px;
  background: linear-gradient(90deg, rgba(255,255,255,0.04) 0%, rgba(255,255,255,0.09) 50%, rgba(255,255,255,0.04) 100%);
  background-size: 200% 100%; animation: skeleton-shimmer 1.6s ease-in-out infinite;
}
.plan-price[data-pending] span { color: transparent; }
