/* ═══════════════════════════════════════════════════════════
   ChatGPTMax.xyz — Checkout Flow Styles
   Dark theme with gradient accents (#6c5ce7 → #ec4899)
   ═══════════════════════════════════════════════════════════ */

/* ── Reset & Base ──────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg:         #0b0e14;
  --bg-card:    #141820;
  --bg-raised:  #1a1f2e;
  --border:     #232a3b;
  --text:       #e4e8f1;
  --text-dim:   #8892a8;
  --accent:     #6c5ce7;
  --accent2:    #a78bfa;
  --green:      #22c55e;
  --orange:     #f59e0b;
  --pink:       #ec4899;
  --gradient:   linear-gradient(135deg, #6c5ce7 0%, #a78bfa 50%, #ec4899 100%);
  --radius:     12px;
  --radius-lg:  20px;
}

[data-theme="light"] {
  --bg:         #ffffff;
  --bg-card:    #f8f9fa;
  --bg-raised:  #f1f3f5;
  --border:     #dee2e6;
  --text:       #1a1a2e;
  --text-dim:   #6c757d;
  --accent:     #6c5ce7;
  --accent2:    #a78bfa;
  --green:      #22c55e;
  --orange:     #f59e0b;
  --pink:       #ec4899;
  --gradient:   linear-gradient(135deg, #6c5ce7 0%, #a78bfa 50%, #ec4899 100%);
}


html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--accent2); text-decoration: none; transition: color .2s; }
a:hover { color: var(--accent); }

/* ── Utility ───────────────────────────────────────────── */
.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.section   { padding: 80px 0; }
.section + .section { border-top: 1px solid var(--border); }

.badge {
  display: inline-block; font-size: 11px; font-weight: 700;
  text-transform: uppercase; letter-spacing: 1.2px;
  padding: 4px 10px; border-radius: 20px;
}
.badge-popular  { background: var(--gradient); color: #fff; }
.badge-save     { background: rgba(34,197,94,.15); color: var(--green); }
.badge-premium  { background: rgba(245,158,11,.15); color: var(--orange); }
.badge-active   { background: rgba(34,197,94,.12); color: var(--green); }
.badge-inactive { background: rgba(236,72,153,.12); color: var(--pink); }

/* ── Navigation / Header ───────────────────────────────── */
nav {
  position: sticky; top: 0; z-index: 100;
  background: rgba(11,14,20,.85);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
  padding: 16px 0;
}
nav .nav__inner { display: flex; align-items: center; justify-content: space-between; }
.logo { font-size: 20px; font-weight: 800; text-decoration: none; color: var(--text); }
.logo span { background: var(--gradient); -webkit-background-clip: text; -webkit-text-fill-color: transparent; }
.nav-links { display: flex; gap: 28px; align-items: center; }
.nav-links a { color: var(--text-dim); text-decoration: none; font-size: 14px; font-weight: 500; transition: color .2s; }
.nav-links a:hover { color: var(--text); }
.nav-cta {
  display: inline-flex; align-items: center; gap: .5rem;
  white-space: nowrap;
  background: var(--accent); color: #fff !important;
  padding: 8px 20px; border-radius: 8px; font-weight: 600;
  transition: transform .2s, box-shadow .2s;
}
.nav-cta:hover { transform: translateY(-1px); box-shadow: 0 4px 20px rgba(108,92,231,.4); }

/* ── Theme Toggle ──────────────────────────────────────── */
.theme-toggle {
  display: flex; align-items: center; justify-content: center;
  width: 36px; height: 36px; border-radius: 8px;
  background: rgba(255,255,255,.06); border: 1px solid var(--border);
  color: var(--text-dim); cursor: pointer; transition: all .2s;
  position: relative; flex-shrink: 0;
}
.theme-toggle:hover { background: rgba(255,255,255,.1); color: var(--text); }
.icon-sun { display: none; }
.icon-moon { display: block; }
[data-theme="light"] .icon-sun { display: block; }
[data-theme="light"] .icon-moon { display: none; }

/* ── Nav Toggle (hamburger) ────────────────────────────── */
.nav-toggle {
  display: none;
  background: none; border: none; color: var(--text-dim); cursor: pointer; padding: 4px;
}

/* ── Section Headers ───────────────────────────────────── */
.section-label {
  font-size: 13px; font-weight: 700; text-transform: uppercase;
  letter-spacing: 2px; color: var(--accent2); margin-bottom: 12px;
}
.section-title {
  font-size: clamp(28px, 4vw, 42px); font-weight: 800;
  line-height: 1.15; margin-bottom: 16px;
}
.section-sub { font-size: 17px; color: var(--text-dim); max-width: 580px; }

/* ── Pricing Toggle ────────────────────────────────────── */
.toggle-wrap {
  display: flex; align-items: center; justify-content: center;
  gap: 14px; margin: 36px 0 48px;
}
.toggle-label {
  font-size: 15px; font-weight: 600; color: var(--text-dim);
  cursor: pointer; transition: color .2s; user-select: none;
}
.toggle-label.active { color: var(--text); }
.toggle {
  width: 52px; height: 28px; background: var(--border);
  border-radius: 14px; position: relative; cursor: pointer;
  transition: background .3s; border: none; outline: none;
}
.toggle.annual { background: var(--accent); }
.toggle::after {
  content: ''; position: absolute; top: 3px; left: 3px;
  width: 22px; height: 22px; background: #fff; border-radius: 50%;
  transition: transform .3s;
}
.toggle.annual::after { transform: translateX(24px); }

/* ── Buttons ───────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  width: 100%; padding: 14px 24px; border-radius: 10px;
  font-size: 15px; font-weight: 700; border: none; cursor: pointer;
  transition: transform .2s, box-shadow .2s, background .2s;
  text-decoration: none; font-family: inherit;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn:disabled { opacity: .5; cursor: not-allowed; transform: none; }

.btn-primary {
  background: var(--gradient); color: #fff;
  box-shadow: 0 4px 20px rgba(108,92,231,.35);
}
.btn-primary:hover { box-shadow: 0 8px 32px rgba(108,92,231,.5); }

.btn-outline {
  background: transparent; color: var(--text);
  border: 1.5px solid var(--border);
}
.btn-outline:hover { border-color: var(--accent); background: rgba(108,92,231,.06); }

.btn-danger {
  background: transparent; color: #ef4444;
  border: 1.5px solid rgba(239,68,68,.3);
}
.btn-danger:hover { background: rgba(239,68,68,.08); border-color: #ef4444; }

.btn-sm { width: auto; padding: 10px 20px; font-size: 13px; border-radius: 8px; }
.btn-xs { width: auto; padding: 6px 14px; font-size: 12px; border-radius: 6px; }

/* ── Pricing Cards ─────────────────────────────────────── */
.pricing-grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 24px; max-width: 960px; margin: 0 auto;
}
.price-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 36px 28px;
  position: relative;
  transition: transform .25s, border-color .25s, box-shadow .25s;
}
.price-card:hover {
  transform: translateY(-4px);
  border-color: var(--accent);
  box-shadow: 0 8px 40px rgba(108,92,231,.15);
}
.price-card.popular {
  border-color: var(--accent);
  background: linear-gradient(180deg, rgba(108,92,231,.08) 0%, var(--bg-card) 100%);
}
.price-card .card-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 20px; }
.plan-name { font-size: 18px; font-weight: 700; }
.plan-price { margin-bottom: 8px; }
.plan-price .amount { font-size: 44px; font-weight: 800; }
.plan-price .period { font-size: 15px; color: var(--text-dim); }
.plan-desc { font-size: 14px; color: var(--text-dim); margin-bottom: 24px; line-height: 1.5; }
.plan-features { list-style: none; margin-bottom: 28px; }
.plan-features li {
  font-size: 14px; padding: 8px 0;
  display: flex; align-items: flex-start; gap: 10px;
  color: var(--text-dim);
}
.plan-features li::before {
  content: '✓'; color: var(--green); font-weight: 700; flex-shrink: 0;
  width: 20px; height: 20px; display: flex; align-items: center; justify-content: center;
  background: rgba(34,197,94,.12); border-radius: 50%; font-size: 11px;
}

/* ── Course Detail ─────────────────────────────────────── */
.course-section { background: var(--bg-card); }
.course-card {
  display: grid; grid-template-columns: 380px 1fr; gap: 48px;
  max-width: 960px; margin: 48px auto 0;
  background: var(--bg-raised); border: 1px solid var(--border);
  border-radius: var(--radius-lg); overflow: hidden;
}
.course-thumb {
  background: linear-gradient(135deg, #1a1040 0%, #0f2027 100%);
  display: flex; align-items: center; justify-content: center;
  min-height: 320px; position: relative; overflow: hidden;
}
.course-thumb::before {
  content: ''; position: absolute; inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%236c5ce7' fill-opacity='0.06'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}
.course-thumb-icon {
  position: relative; z-index: 1;
  font-size: 64px; width: 100px; height: 100px;
  background: rgba(108,92,231,.2); border-radius: 24px;
  display: flex; align-items: center; justify-content: center;
  border: 1px solid rgba(108,92,231,.3);
}
.course-info { padding: 40px 40px 40px 0; }
.course-meta { display: flex; gap: 12px; margin-bottom: 16px; flex-wrap: wrap; }
.course-meta span {
  font-size: 12px; color: var(--text-dim);
  display: flex; align-items: center; gap: 4px;
}
.course-title { font-size: 26px; font-weight: 800; margin-bottom: 12px; line-height: 1.25; }
.course-author { font-size: 14px; color: var(--text-dim); margin-bottom: 20px; }
.course-desc-text { font-size: 15px; color: var(--text-dim); margin-bottom: 28px; line-height: 1.65; }

/* ── Dual CTA Block ────────────────────────────────────── */
.cta-block {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 24px;
}
.cta-block h4 { font-size: 15px; font-weight: 700; margin-bottom: 14px; }
.cta-row { display: flex; gap: 12px; margin-bottom: 16px; }
.cta-row:last-child { margin-bottom: 0; }
.cta-option {
  flex: 1; padding: 16px; border-radius: 10px;
  border: 1.5px solid var(--border); background: var(--bg-raised);
  display: flex; flex-direction: column; gap: 6px; cursor: pointer;
  transition: border-color .2s, background .2s;
}
.cta-option:hover, .cta-option.selected {
  border-color: var(--accent); background: rgba(108,92,231,.06);
}
.cta-option .opt-title { font-size: 14px; font-weight: 700; }
.cta-option .opt-price { font-size: 22px; font-weight: 800; }
.cta-option .opt-sub { font-size: 12px; color: var(--text-dim); }
.cta-option .opt-tag { margin-top: auto; }

/* ── Account / Portal Section ──────────────────────────── */
.portal-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 24px;
  max-width: 960px; margin: 48px auto 0;
}
.portal-card {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 32px;
}
.portal-card h3 {
  font-size: 17px; font-weight: 700; margin-bottom: 20px;
  display: flex; align-items: center; gap: 10px;
}
.portal-card h3 .icon {
  width: 32px; height: 32px; border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  font-size: 16px;
}

.plan-status {
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 20px; border-radius: 10px;
  background: var(--bg-raised); border: 1px solid var(--border);
  margin-bottom: 16px;
}
.plan-status .ps-label { font-size: 13px; color: var(--text-dim); }
.plan-status .ps-value { font-size: 15px; font-weight: 700; }
.plan-status .ps-badge {
  font-size: 11px; font-weight: 700; padding: 3px 10px; border-radius: 20px;
  background: rgba(34,197,94,.12); color: var(--green);
}
.plan-status .ps-badge.canceled {
  background: rgba(239,68,68,.12); color: #ef4444;
}

.manage-row {
  display: flex; justify-content: space-between; align-items: center;
  padding: 14px 0; border-bottom: 1px solid var(--border);
}
.manage-row:last-child { border-bottom: none; }
.manage-row .mr-info .mr-title { font-size: 14px; font-weight: 600; }
.manage-row .mr-info .mr-sub   { font-size: 12px; color: var(--text-dim); }
.manage-row .mr-action {
  font-size: 13px; font-weight: 600; color: var(--accent2);
  text-decoration: none; transition: color .2s; cursor: pointer;
}
.manage-row .mr-action:hover { color: var(--accent); }

/* ── Usage Bar ─────────────────────────────────────────── */
.usage-bar-wrap { margin-bottom: 20px; }
.usage-bar-head { display: flex; justify-content: space-between; font-size: 13px; margin-bottom: 8px; }
.usage-bar-head .ub-value { color: var(--accent2); font-weight: 600; }
.usage-bar {
  height: 8px; background: var(--bg-raised); border-radius: 4px; overflow: hidden;
}
.usage-bar-fill {
  height: 100%; border-radius: 4px; background: var(--gradient);
  transition: width .6s ease;
}

/* ── Invoices Table ────────────────────────────────────── */
.inv-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.inv-table th {
  text-align: left; color: var(--text-dim); font-weight: 600;
  padding: 10px 0; border-bottom: 1px solid var(--border);
  font-size: 11px; text-transform: uppercase; letter-spacing: .8px;
}
.inv-table td { padding: 12px 0; border-bottom: 1px solid rgba(35,42,59,.5); }
.inv-table td:last-child { text-align: right; }
.inv-status { font-size: 11px; font-weight: 600; padding: 3px 8px; border-radius: 4px; }
.inv-paid { background: rgba(34,197,94,.1); color: var(--green); }
.inv-pending { background: rgba(245,158,11,.1); color: var(--orange); }
.inv-failed { background: rgba(239,68,68,.1); color: #ef4444; }

/* ── Flash Messages ────────────────────────────────────── */
.flash {
  padding: 16px 20px; border-radius: 10px; margin-bottom: 24px;
  font-size: 14px; display: flex; align-items: center; gap: 10px;
}
.flash-success { background: rgba(34,197,94,.1); border: 1px solid rgba(34,197,94,.2); color: var(--green); }
.flash-error   { background: rgba(239,68,68,.1); border: 1px solid rgba(239,68,68,.2); color: #ef4444; }
.flash-info    { background: rgba(108,92,231,.1); border: 1px solid rgba(108,92,231,.2); color: var(--accent2); }

/* ── No Subscription State ─────────────────────────────── */
.empty-state {
  text-align: center; padding: 48px 24px;
}
.empty-state .icon { font-size: 48px; margin-bottom: 16px; opacity: .6; }
.empty-state h3 { font-size: 18px; font-weight: 700; margin-bottom: 8px; }
.empty-state p { font-size: 14px; color: var(--text-dim); margin-bottom: 24px; max-width: 400px; margin-left: auto; margin-right: auto; }

/* ── Loading Spinner ───────────────────────────────────── */
.spinner {
  display: inline-block; width: 20px; height: 20px;
  border: 2px solid rgba(255,255,255,.2);
  border-top-color: #fff; border-radius: 50%;
  animation: spin .6s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

.loading-overlay {
  position: fixed; inset: 0; z-index: 999;
  background: var(--bg); display: flex; align-items: center;
  justify-content: center; flex-direction: column; gap: 12px;
}
.loading-overlay.hidden { display: none; }
.loading-overlay p { font-size: 14px; color: var(--text-dim); }

/* ── One-time purchase cards ───────────────────────────── */
.otc-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 16px; margin-top: 20px;
}
.otc-card {
  background: var(--bg-raised); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 24px;
  display: flex; flex-direction: column; gap: 8px;
}
.otc-card.bundle { border-color: var(--accent); position: relative; }

/* ── Footer ────────────────────────────────────────────── */
footer {
  border-top: 1px solid var(--border); padding: 40px 0;
  text-align: center; font-size: 13px; color: var(--text-dim);
}
footer a { color: var(--accent2); text-decoration: none; }

/* ── Scroll Fade-in ────────────────────────────────────── */
.fade-up {
  opacity: 0; transform: translateY(24px);
  transition: opacity .6s ease, transform .6s ease;
}
.fade-up.visible { opacity: 1; transform: translateY(0); }

/* ── Payment Buttons (Apple Pay / Google Pay) ──────────── */

.payment-buttons {
  display: flex;
  flex-direction: column;
  gap: 12px;
  width: 100%;
}

.payment-buttons .or-divider {
  display: flex;
  align-items: center;
  gap: 16px;
  margin: 8px 0;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.payment-buttons .or-divider::before,
.payment-buttons .or-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border);
}

/* ── Base Button ─────────────────────────────────────────── */
.pay-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  min-height: 52px;
  padding: 14px 24px;
  border: none;
  border-radius: var(--radius);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  transition:
    transform 0.2s cubic-bezier(0.4, 0, 0.2, 1),
    box-shadow 0.2s cubic-bezier(0.4, 0, 0.2, 1),
    background 0.2s cubic-bezier(0.4, 0, 0.2, 1),
    border-color 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  -webkit-user-select: none;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
}

.pay-btn:active {
  transform: scale(0.98);
}

.pay-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

.pay-btn .btn-label {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.pay-btn .btn-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.pay-btn .btn-text {
  display: inline-flex;
  align-items: center;
}

/* ── Loading spinner ─────────────────────────────────────── */
.pay-btn .btn-spinner {
  display: none;
  width: 20px;
  height: 20px;
  border: 2.5px solid rgba(255,255,255,0.25);
  border-top-color: #fff;
  border-radius: 50%;
  animation: payBtnSpin 0.7s linear infinite;
}

.pay-btn.loading .btn-spinner {
  display: block;
}

.pay-btn.loading .btn-label {
  display: none;
}

@keyframes payBtnSpin {
  to { transform: rotate(360deg); }
}

/* ── Success state ───────────────────────────────────────── */
.pay-btn.success {
  background: var(--green) !important;
  box-shadow: 0 4px 20px rgba(34,197,94,0.3) !important;
}

.pay-btn.success .btn-label {
  display: inline-flex;
  gap: 8px;
}

.pay-btn.success .btn-spinner {
  display: none;
}

/* ── Apple Pay Button ────────────────────────────────────── */
.pay-btn-applepay {
  background: #000;
  color: #fff;
  box-shadow:
    0 1px 3px rgba(0,0,0,0.4),
    inset 0 1px 0 rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.08);
  letter-spacing: 0.01em;
}

.pay-btn-applepay:hover {
  background: #1a1a1a;
  box-shadow:
    0 4px 20px rgba(0,0,0,0.5),
    0 0 0 1px rgba(255,255,255,0.08);
  transform: translateY(-1px);
}

.pay-btn-applepay:active {
  transform: scale(0.98);
  background: #0a0a0a;
}

.pay-btn-applepay .apple-logo {
  width: 18px;
  height: 22px;
  fill: #fff;
}

.pay-btn-applepay .pay-text {
  font-size: 17px;
  font-weight: 500;
  letter-spacing: -0.01em;
}

.pay-btn-applepay .pay-text::before {
  content: 'Pay with';
  font-weight: 400;
  margin-right: 4px;
  opacity: 0.8;
}

/* ── Google Pay Button ───────────────────────────────────── */
.pay-btn-googlepay {
  background: #fff;
  color: #3c4043;
  box-shadow:
    0 1px 3px rgba(0,0,0,0.3),
    0 1px 2px rgba(0,0,0,0.2);
  border: 1px solid rgba(255,255,255,0.1);
  font-family: 'Google Sans', 'Product Sans', 'Inter', -apple-system, sans-serif;
}

.pay-btn-googlepay:hover {
  box-shadow:
    0 4px 16px rgba(0,0,0,0.35),
    0 1px 4px rgba(0,0,0,0.2);
  transform: translateY(-1px);
}

.pay-btn-googlepay:active {
  transform: scale(0.98);
  background: #f1f3f4;
}

.pay-btn-googlepay .google-g {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}

.pay-btn-googlepay .pay-text {
  font-size: 16px;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: #3c4043;
}

/* ── Dark variant of Google Pay ──────────────────────────── */
.pay-btn-googlepay-dark {
  background: #1f1f1f;
  color: #e8eaed;
  border: 1px solid rgba(255,255,255,0.1);
  box-shadow: 0 1px 3px rgba(0,0,0,0.5);
}

.pay-btn-googlepay-dark:hover {
  background: #2d2d2d;
  box-shadow: 0 4px 16px rgba(0,0,0,0.5);
}

.pay-btn-googlepay-dark .pay-text {
  color: #e8eaed;
}

/* ── Express Checkout Container ──────────────────────────── */
.express-checkout {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 24px;
  margin-bottom: 24px;
}

.express-checkout h3 {
  font-size: 15px;
  font-weight: 700;
  margin-bottom: 16px;
  color: var(--text);
}

.express-checkout .pay-btn {
  margin-bottom: 10px;
}

.express-checkout .pay-btn:last-child {
  margin-bottom: 0;
}

/* ── Payment Method Selector ─────────────────────────────── */
.payment-method-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.payment-method {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px;
  border-radius: var(--radius);
  border: 2px solid var(--border);
  background: var(--bg-raised);
  cursor: pointer;
  transition:
    border-color 0.2s cubic-bezier(0.4, 0, 0.2, 1),
    background 0.2s cubic-bezier(0.4, 0, 0.2, 1),
    box-shadow 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
}

.payment-method:hover {
  border-color: rgba(255,255,255,0.12);
  background: var(--bg-card);
}

.payment-method.selected {
  border-color: var(--accent);
  background: rgba(108,92,231,0.04);
  box-shadow: 0 0 0 1px var(--accent);
}

.payment-method .pm-radio {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  border: 2px solid var(--text-dim);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.payment-method.selected .pm-radio {
  border-color: var(--accent);
  background: var(--accent);
}

.payment-method.selected .pm-radio::after {
  content: '';
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #fff;
}

.payment-method .pm-icon {
  width: 40px;
  height: 28px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  background: var(--bg-card);
  border: 1px solid var(--border);
}

.payment-method .pm-icon svg {
  width: 24px;
  height: auto;
}

.payment-method .pm-info {
  flex: 1;
  min-width: 0;
}

.payment-method .pm-name {
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
}

.payment-method .pm-desc {
  font-size: 12px;
  color: var(--text-dim);
}

.payment-method .pm-badge {
  font-size: 10px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 6px;
  background: rgba(108,92,231,0.12);
  color: var(--accent2);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* ── Security Badges ─────────────────────────────────────── */
.security-badges {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
}

.security-badge {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  color: var(--text-dim);
}

.security-badge .badge-icon {
  width: 16px;
  height: 16px;
  opacity: 0.6;
}

/* ── Wallet Container ────────────────────────────────────── */
.wallet-buttons {
  display: flex;
  flex-direction: column;
  gap: 12px;
  width: 100%;
}

.wallet-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 8px 0;
}

.wallet-divider::before,
.wallet-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border);
}

.wallet-divider span {
  font-size: 12px;
  color: var(--text-dim);
  white-space: nowrap;
}

/* ── Unsupported Message ─────────────────────────────────── */
.wallet-unsupported {
  padding: 12px 16px;
  background: var(--bg-raised);
  border-radius: 8px;
  font-size: 13px;
  color: var(--text-dim);
  text-align: center;
}

/* ── Responsive (payment) ────────────────────────────────── */
@media (max-width: 480px) {
  .pay-btn {
    min-height: 48px;
    padding: 12px 20px;
    font-size: 15px;
  }

  .express-checkout {
    padding: 20px 16px;
    border-radius: 12px;
  }

  .security-badges {
    flex-wrap: wrap;
    gap: 12px;
  }
}

/* ── Responsive ────────────────────────────────────────── */
@media (max-width: 768px) {
  .pricing-grid { grid-template-columns: 1fr; max-width: 400px; }
  .course-card { grid-template-columns: 1fr; }
  .course-info { padding: 28px; }
  .portal-grid { grid-template-columns: 1fr; }
  .cta-row { flex-direction: column; }
  .nav-links { gap: 16px; }
  .section { padding: 48px 0; }
}
