:root {
  --p3-bg: #071427;
  --p3-bg-soft: #0d1d36;
  --p3-card: #0f1f3b;
  --p3-line: rgba(191, 219, 254, 0.18);
  --p3-text: #e5eefc;
  --p3-muted: #a8b8d4;
  --p3-blue: #2563eb;
  --p3-green: #10b981;
}

body.pms3-theme {
  font-family: 'Inter', sans-serif;
  background: radial-gradient(1200px 600px at -10% -20%, rgba(37, 99, 235, 0.22), transparent 60%), radial-gradient(900px 520px at 105% 10%, rgba(16, 185, 129, 0.2), transparent 60%), linear-gradient(180deg, #071427 0%, #091831 55%, #071427 100%);
  color: var(--p3-text);
}

body.pms3-theme .site-header {
  background: rgba(9, 18, 38, 0.82) !important;
  border-bottom: 1px solid var(--p3-line) !important;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

body.pms3-theme .nav-shell { min-height: 80px; }

body.pms3-theme .brand-title,
body.pms3-theme .mc-lockup__wordmark {
  color: #fff !important;
  font-weight: 700;
}

body.pms3-theme .brand-sub,
body.pms3-theme .mc-lockup__tag {
  color: #c8dbff !important;
  border: 0 !important;
  background: transparent !important;
  font-size: 0.62rem;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

body.pms3-theme .brand img,
body.pms3-theme .mc-lockup__mark {
  width: 36px;
  height: 36px;
  border: 0 !important;
  background: transparent !important;
  filter: brightness(0) invert(1);
}

body.pms3-theme .main-nav a {
  color: rgba(229, 238, 252, 0.84) !important;
  border-color: transparent !important;
  background: transparent !important;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-size: 0.72rem;
  font-weight: 700;
}

body.pms3-theme .main-nav a:hover,
body.pms3-theme .main-nav a[aria-current='page'] {
  color: #fff !important;
  background: rgba(37, 99, 235, 0.17) !important;
  border-color: rgba(147, 197, 253, 0.42) !important;
}

body.pms3-theme .main-nav a.nav-utility {
  background: linear-gradient(135deg, #1d4ed8, #10b981) !important;
  color: #fff !important;
  border-color: transparent !important;
}

body.pms3-theme .nav-cta.btn,
body.pms3-theme .btn.btn-primary {
  background: linear-gradient(135deg, #2563eb, #10b981) !important;
  border-color: transparent !important;
  color: #fff !important;
  box-shadow: 0 14px 28px rgba(37, 99, 235, 0.26);
}

body.pms3-theme .btn.btn-primary:hover { filter: brightness(1.05); }

body.pms3-theme .btn.btn-secondary {
  background: rgba(255, 255, 255, 0.07) !important;
  color: #e2ecff !important;
  border: 1px solid rgba(191, 219, 254, 0.34) !important;
}

body.pms3-theme main { padding-top: 86px; }

body.pms3-theme .hero-mini {
  background: linear-gradient(180deg, #0d1f3f 0%, #0a1933 100%) !important;
  border-bottom: 1px solid var(--p3-line) !important;
  padding: 10rem 0 4.7rem !important;
}

body.pms3-theme .hero-mini h1,
body.pms3-theme .hero-mini .section-header h2,
body.pms3-theme h1,
body.pms3-theme h2,
body.pms3-theme h3,
body.pms3-theme h4 {
  color: #f8fbff !important;
}

body.pms3-theme .hero-mini p,
body.pms3-theme p,
body.pms3-theme li,
body.pms3-theme .section-header p,
body.pms3-theme .section-intro {
  color: var(--p3-muted);
}

body.pms3-theme .section-label {
  color: #7dd3fc !important;
  letter-spacing: 0.13em;
}

body.pms3-theme .section {
  background: transparent;
}

body.pms3-theme .section-muted,
body.pms3-theme .stats-bar,
body.pms3-theme .ticker-strip {
  background: #0b1a33 !important;
  border-color: var(--p3-line) !important;
}

body.pms3-theme .glass-card,
body.pms3-theme .glass-card-static,
body.pms3-theme .feature-card,
body.pms3-theme .pricing-card,
body.pms3-theme .faq-item,
body.pms3-theme .cohort-panel,
body.pms3-theme .auth-shell .glass-card-static {
  background: linear-gradient(180deg, rgba(16, 31, 58, 0.88), rgba(11, 23, 44, 0.86)) !important;
  border: 1px solid rgba(148, 163, 184, 0.28) !important;
  box-shadow: 0 18px 42px rgba(3, 10, 24, 0.38);
}

body.pms3-theme .badge,
body.pms3-theme .course-meta .badge,
body.pms3-theme .chip,
body.pms3-theme .status-chip {
  background: rgba(37, 99, 235, 0.18) !important;
  border-color: rgba(125, 211, 252, 0.36) !important;
  color: #dbeafe !important;
}

body.pms3-theme input,
body.pms3-theme select,
body.pms3-theme textarea {
  background: rgba(8, 18, 36, 0.86) !important;
  border-color: rgba(148, 163, 184, 0.34) !important;
  color: #f8fbff !important;
}

body.pms3-theme input::placeholder,
body.pms3-theme textarea::placeholder {
  color: #8da6c8 !important;
}

body.pms3-theme .footer {
  background: #08152b !important;
  border-top: 1px solid var(--p3-line) !important;
}

body.pms3-theme .footer p,
body.pms3-theme .footer a,
body.pms3-theme .footer-bottom,
body.pms3-theme .footer-col h4 {
  color: #c6d6ef !important;
}

@media (max-width: 1080px) {
  body.pms3-theme .main-nav {
    background: rgba(8, 17, 34, 0.98) !important;
    border: 1px solid rgba(148, 163, 184, 0.28) !important;
  }
}

/* Keep legacy inline dark text readable inside PMS3 dark cards */
body.pms3-theme .glass-card [style*="color:#0f172a"],
body.pms3-theme .glass-card [style*="color: #0f172a"],
body.pms3-theme .glass-card-static [style*="color:#0f172a"],
body.pms3-theme .glass-card-static [style*="color: #0f172a"] {
  color: #edf4ff !important;
}

body.pms3-theme .glass-card [style*="color:var(--ink-muted)"],
body.pms3-theme .glass-card [style*="color: var(--ink-muted)"],
body.pms3-theme .glass-card-static [style*="color:var(--ink-muted)"],
body.pms3-theme .glass-card-static [style*="color: var(--ink-muted)"] {
  color: #9eb4d6 !important;
}

body.pms3-theme .glass-card [style*="color:var(--ink-soft)"],
body.pms3-theme .glass-card [style*="color: var(--ink-soft)"],
body.pms3-theme .glass-card-static [style*="color:var(--ink-soft)"],
body.pms3-theme .glass-card-static [style*="color: var(--ink-soft)"] {
  color: #c8d8f1 !important;
}

body.pms3-theme #ty-course,
body.pms3-theme #ty-email,
body.pms3-theme #ty-amount {
  color: #f8fbff !important;
}
