/* ==========================================================================
   TradersVault Academy — Paywall styles
   ========================================================================== */

:root {
  --pw-accent: #06B6D4;          /* academy cyan */
  --pw-gold:   #e8b84b;           /* vault gold */
  --pw-bg-deep: #07070a;
  --pw-panel:  rgba(14, 14, 19, 0.92);
  --pw-border: rgba(255, 255, 255, 0.08);
  --pw-border-strong: rgba(255, 255, 255, 0.14);
  --pw-text:   #f0eee8;
  --pw-text-muted: #9a9ab2;
  --pw-text-faint: #5f5f78;
  --pw-radius: 12px;
  --pw-radius-sm: 8px;
}

[data-theme="light"] {
  --pw-bg-deep: #ffffff;
  --pw-panel: #ffffff;
  --pw-border: rgba(0, 0, 0, 0.08);
  --pw-border-strong: rgba(0, 0, 0, 0.16);
  --pw-text: #1a1a20;
  --pw-text-muted: #555570;
  --pw-text-faint: #8a8aa0;
}

/* ── Homepage: locked course cards ───────────────────────────────────────── */
.pw-locked-card {
  position: relative;
}
.pw-locked-card::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(180deg, transparent 55%, rgba(7,7,10,0.55) 100%);
  pointer-events: none;
  opacity: 0.6;
  transition: opacity 0.2s ease;
}
[data-theme="light"] .pw-locked-card::after {
  background: linear-gradient(180deg, transparent 55%, rgba(255,255,255,0.55) 100%);
}
.pw-locked-card:hover::after { opacity: 0.35; }

.pw-lock-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 9px 4px 8px;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  background: rgba(232, 184, 75, 0.14);
  color: var(--pw-gold);
  border: 1px solid rgba(232, 184, 75, 0.28);
  backdrop-filter: blur(8px);
  z-index: 3;
  pointer-events: none;
}
.pw-lock-badge svg { flex-shrink: 0; }

/* ── Lesson-page gate banner ─────────────────────────────────────────────── */
.pw-gate-banner {
  position: fixed;
  top: 70px;
  left: 0;
  right: 0;
  z-index: 999;
  background: linear-gradient(90deg,
    rgba(6, 182, 212, 0.18),
    rgba(232, 184, 75, 0.22) 60%,
    rgba(232, 184, 75, 0.12));
  backdrop-filter: blur(18px) saturate(1.2);
  -webkit-backdrop-filter: blur(18px) saturate(1.2);
  border-top: 1px solid rgba(232, 184, 75, 0.32);
  border-bottom: 1px solid rgba(232, 184, 75, 0.32);
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.35);
}
body.pw-gated { padding-top: 78px; }
@media (max-width: 720px) {
  .pw-gate-banner { top: 60px; }
  body.pw-gated { padding-top: 100px; }
}
.pw-gate-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 14px clamp(16px, 4vw, 32px);
  display: flex;
  align-items: center;
  gap: 14px;
}
.pw-gate-icon {
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  background: rgba(232, 184, 75, 0.12);
  color: var(--pw-gold);
  border: 1px solid rgba(232, 184, 75, 0.25);
}
.pw-gate-text { flex: 1; min-width: 0; }
.pw-gate-title {
  font-size: 14px;
  font-weight: 800;
  color: var(--pw-text);
  letter-spacing: -0.01em;
}
.pw-gate-sub {
  font-size: 12px;
  color: var(--pw-text-muted);
  margin-top: 2px;
}
.pw-gate-cta {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  height: 36px;
  padding: 0 16px;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.02em;
  background: var(--pw-gold);
  color: #07070a;
  text-decoration: none;
  transition: transform 0.15s ease, filter 0.15s ease, box-shadow 0.2s ease;
  white-space: nowrap;
}
.pw-gate-cta:hover {
  filter: brightness(1.08);
  transform: translateY(-1px);
  box-shadow: 0 8px 24px rgba(232, 184, 75, 0.22);
}
@media (max-width: 560px) {
  .pw-gate-inner { flex-wrap: wrap; }
  .pw-gate-cta { width: 100%; justify-content: center; }
}

/* ── Teaser fade + hide for gated lesson pages ───────────────────────────── */
.pw-teaser {
  position: relative;
  overflow: hidden;
  max-height: 380px;
  user-select: none;
}
.pw-teaser-fade {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  top: 200px;
  background: linear-gradient(180deg,
    transparent 0%,
    rgba(10, 10, 14, 0.6) 40%,
    var(--pw-bg-deep) 85%);
  pointer-events: none;
}
[data-theme="light"] .pw-teaser-fade {
  background: linear-gradient(180deg, transparent, #ffffff 85%);
}
.pw-hidden { display: none !important; }

/* Quiet "gated" state — tighten footer/sidebar noise */
body.pw-gated .sidebar,
body.pw-gated .lesson-sidebar,
body.pw-gated aside.sidebar {
  display: none !important;
}
body.pw-gated .main-content,
body.pw-gated .lesson-main,
body.pw-gated main {
  margin-left: auto !important;
  max-width: 900px;
}

/* ── Upgrade panel (bottom of gated lesson page) ─────────────────────────── */
.pw-upgrade-panel {
  max-width: 760px;
  margin: 40px auto 80px;
  padding: 0 clamp(16px, 4vw, 24px);
}
.pw-upgrade-card {
  position: relative;
  border-radius: 20px;
  padding: clamp(28px, 5vw, 44px);
  background:
    radial-gradient(ellipse 900px 260px at 50% -80%, rgba(232, 184, 75, 0.10), transparent 60%),
    linear-gradient(180deg, rgba(14, 14, 19, 0.96), rgba(10, 10, 14, 0.96));
  border: 1px solid var(--pw-border-strong);
  overflow: hidden;
  box-shadow: 0 24px 80px rgba(0,0,0,0.4);
}
.pw-upgrade-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1.5px;
  background: linear-gradient(90deg, transparent, var(--pw-gold), transparent);
}
[data-theme="light"] .pw-upgrade-card {
  background:
    radial-gradient(ellipse 900px 260px at 50% -80%, rgba(232, 184, 75, 0.10), transparent 60%),
    #ffffff;
  box-shadow: 0 18px 60px rgba(0,0,0,0.08);
}
.pw-upgrade-kicker {
  font-family: 'Geist Mono', ui-monospace, monospace;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.3em;
  color: var(--pw-gold);
  margin-bottom: 12px;
}
.pw-upgrade-title {
  font-size: clamp(22px, 3.5vw, 30px);
  font-weight: 900;
  color: var(--pw-text);
  letter-spacing: -0.02em;
  line-height: 1.15;
  margin: 0 0 12px;
}
.pw-upgrade-sub {
  color: var(--pw-text-muted);
  font-size: 15px;
  line-height: 1.6;
  margin: 0 0 22px;
  max-width: 560px;
}
.pw-upgrade-benefits {
  list-style: none;
  padding: 0;
  margin: 0 0 26px;
  display: grid;
  gap: 8px;
}
.pw-upgrade-benefits li {
  position: relative;
  padding-left: 26px;
  color: var(--pw-text);
  font-size: 14px;
  line-height: 1.55;
}
.pw-upgrade-benefits li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 7px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: rgba(34, 212, 106, 0.15);
  border: 1px solid rgba(34, 212, 106, 0.35);
}
.pw-upgrade-benefits li::after {
  content: '';
  position: absolute;
  left: 5px;
  top: 10px;
  width: 6px;
  height: 3px;
  border-left: 1.5px solid #22d46a;
  border-bottom: 1.5px solid #22d46a;
  transform: rotate(-45deg);
}
.pw-upgrade-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 18px;
}
.pw-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 48px;
  padding: 0 22px;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0.01em;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: transform 0.15s ease, filter 0.15s ease, box-shadow 0.2s ease, background 0.15s ease;
  font-family: inherit;
}
.pw-btn-primary {
  background: var(--pw-gold);
  color: #07070a;
}
.pw-btn-primary:hover {
  filter: brightness(1.08);
  transform: translateY(-1px);
  box-shadow: 0 10px 32px rgba(232, 184, 75, 0.25);
}
.pw-btn-ghost {
  background: transparent;
  color: var(--pw-text);
  border: 1px solid var(--pw-border-strong);
}
.pw-btn-ghost:hover {
  border-color: var(--pw-gold);
  color: var(--pw-gold);
}
.pw-upgrade-foot {
  font-family: 'Geist Mono', ui-monospace, monospace;
  font-size: 11px;
  color: var(--pw-text-faint);
  letter-spacing: 0.04em;
}

/* ── Modal tabs (sign-in / create account switcher) ──────────────────────── */
.pw-modal-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px;
  padding: 4px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--pw-border);
  border-radius: 10px;
  margin-bottom: 20px;
}
[data-theme="light"] .pw-modal-tabs {
  background: rgba(0, 0, 0, 0.04);
}
.pw-modal-tab {
  height: 36px;
  background: transparent;
  border: none;
  color: var(--pw-text-muted);
  font-size: 13px;
  font-weight: 700;
  font-family: inherit;
  letter-spacing: 0.01em;
  cursor: pointer;
  border-radius: 7px;
  transition: background 0.15s ease, color 0.15s ease;
}
.pw-modal-tab:hover { color: var(--pw-text); }
.pw-modal-tab.active {
  background: var(--pw-panel);
  color: var(--pw-text);
  box-shadow: 0 2px 8px rgba(0,0,0,0.25);
}
[data-theme="light"] .pw-modal-tab.active {
  background: #ffffff;
  box-shadow: 0 1px 3px rgba(0,0,0,0.08);
}

/* ── Homepage pricing section ─────────────────────────────────────────────── */
.pricing-section { padding: clamp(60px, 8vw, 100px) 0; }
.pricing-section .section-header { text-align: center; margin-bottom: 48px; }
.pricing-section .section-kicker {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.18em;
  color: var(--pw-gold);
  margin-bottom: 10px;
}
.pricing-section .section-title {
  font-size: clamp(28px, 4vw, 42px);
  font-weight: 800;
  letter-spacing: -0.02em;
  margin: 0 0 12px;
}
.pricing-section .section-subtitle {
  font-size: 16px;
  color: var(--pw-text-muted);
  max-width: 560px;
  margin: 0 auto;
}
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
  max-width: 880px;
  margin: 0 auto;
}
@media (max-width: 780px) { .pricing-grid { grid-template-columns: 1fr; } }
.pricing-card {
  position: relative;
  padding: 32px;
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(22, 22, 28, 0.9), rgba(14, 14, 18, 0.9));
  border: 1px solid var(--pw-border);
  display: flex;
  flex-direction: column;
  gap: 14px;
}
[data-theme="light"] .pricing-card {
  background: linear-gradient(180deg, #ffffff, #fafafa);
}
.pricing-card-featured {
  border: 1px solid rgba(232, 184, 75, 0.45);
  background: linear-gradient(180deg,
    rgba(232, 184, 75, 0.08),
    rgba(22, 22, 28, 0.95));
  box-shadow: 0 16px 60px rgba(232, 184, 75, 0.1);
}
.pricing-badge {
  position: absolute;
  top: -12px;
  right: 24px;
  padding: 6px 12px;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.14em;
  background: var(--pw-gold);
  color: #07070a;
  border-radius: 999px;
}
.pricing-kicker {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.16em;
  color: var(--pw-text-muted);
}
.pricing-card-featured .pricing-kicker { color: var(--pw-gold); }
.pricing-card-included .pricing-kicker { color: #10b981; }
.pricing-plan {
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.01em;
  margin: 0;
  color: var(--pw-text);
}
.pricing-price {
  display: flex;
  align-items: baseline;
  gap: 4px;
  margin: 4px 0 6px;
}
.pricing-currency {
  font-size: 20px;
  font-weight: 700;
  color: var(--pw-text);
  opacity: 0.8;
}
.pricing-amount {
  font-size: 44px;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--pw-text);
  line-height: 1;
}
.pricing-period {
  font-size: 14px;
  color: var(--pw-text-muted);
  margin-left: 4px;
}
.pricing-blurb {
  font-size: 14px;
  color: var(--pw-text-muted);
  line-height: 1.5;
  margin: 0;
}
.pricing-features {
  list-style: none;
  padding: 0;
  margin: 6px 0 10px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1;
}
.pricing-features li {
  font-size: 14px;
  color: var(--pw-text);
  display: flex;
  align-items: center;
  gap: 10px;
}
.pricing-features svg {
  color: #10b981;
  flex-shrink: 0;
}
.pricing-card-featured .pricing-features svg { color: var(--pw-gold); }
.btn-block {
  display: flex;
  width: 100%;
  justify-content: center;
  align-items: center;
  gap: 8px;
}
.pricing-foot {
  font-size: 12px;
  color: var(--pw-text-muted);
  text-align: center;
  margin-top: 2px;
}
.pricing-teaser-note {
  text-align: center;
  font-size: 14px;
  color: var(--pw-text-muted);
  margin-top: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}
.pricing-teaser-note svg { color: #10b981; }
.pricing-teaser-note a {
  color: var(--pw-text);
  text-decoration: underline;
  text-decoration-color: rgba(232, 184, 75, 0.5);
  text-underline-offset: 3px;
}
.pricing-teaser-note a:hover { color: var(--pw-gold); }

/* ── Compact strategy chip grid ──────────────────────────────────────────── */
.strategy-chip-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  max-width: 1000px;
  margin: 0 auto;
}
@media (max-width: 880px) { .strategy-chip-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .strategy-chip-grid { grid-template-columns: 1fr; } }

.strategy-chip {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 18px;
  border-radius: 12px;
  background: rgba(22, 22, 28, 0.65);
  border: 1px solid var(--pw-border);
  text-decoration: none;
  color: var(--pw-text);
  transition: transform 0.18s ease, border-color 0.18s ease, background 0.18s ease;
  overflow: hidden;
}
[data-theme="light"] .strategy-chip {
  background: #ffffff;
}
.strategy-chip::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  background: var(--strat-color, #06B6D4);
  opacity: 0.7;
}
.strategy-chip:hover {
  transform: translateY(-2px);
  border-color: var(--strat-color, rgba(232, 184, 75, 0.4));
  background: rgba(30, 30, 38, 0.85);
}
[data-theme="light"] .strategy-chip:hover {
  background: #fafafa;
}
.strategy-chip-dot {
  flex-shrink: 0;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--strat-color, #06B6D4);
  box-shadow: 0 0 12px var(--strat-color, #06B6D4);
}
.strategy-chip-name {
  font-size: 15px;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--pw-text);
  margin-right: auto;
}
.strategy-chip-tag {
  font-size: 12px;
  color: var(--pw-text-muted);
  text-align: right;
  white-space: nowrap;
}
@media (max-width: 520px) {
  .strategy-chip-tag { white-space: normal; max-width: 45%; }
}
