/* ============================================================
   Style — Phase 2
   claudecodecourse.co — shared styles (sales + portal)
   ============================================================ */

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

/* ── Design tokens ── */
:root {
  --bg:        #07070f;
  --bg-card:   #0c0c1a;
  --bg-input:  #10101e;
  --border:    rgba(255, 255, 255, 0.07);
  --border-hl: rgba(34, 211, 238, 0.25);
  --cyan:      #22d3ee;
  --purple:    #818cf8;
  --green:     #34d399;
  --red:       #f87171;
  --text:      #e2e8f0;
  --muted:     #64748b;
  --radius:    10px;
}

/* ── Base ── */
html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: 'Space Grotesk', -apple-system, sans-serif;
  min-height: 100vh;
  overflow-x: hidden;
  line-height: 1.6;
}

body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image:
    linear-gradient(rgba(34, 211, 238, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(34, 211, 238, 0.03) 1px, transparent 1px);
  background-size: 48px 48px;
  pointer-events: none;
  z-index: 0;
}

/* ── Orbs ── */
.orb { position: fixed; border-radius: 50%; filter: blur(100px); pointer-events: none; z-index: 0; }
.orb-1 { width: 700px; height: 700px; background: radial-gradient(circle, rgba(34,211,238,0.1) 0%, transparent 70%); top: -250px; right: -150px; }
.orb-2 { width: 550px; height: 550px; background: radial-gradient(circle, rgba(129,140,248,0.09) 0%, transparent 70%); bottom: -150px; left: -150px; }
.orb-3 { width: 400px; height: 400px; background: radial-gradient(circle, rgba(34,211,238,0.06) 0%, transparent 70%); top: 60%; left: 50%; transform: translate(-50%, -50%); }

/* ── Layout ── */
.wrap {
  position: relative;
  z-index: 1;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ── Nav ── */
nav {
  position: sticky; top: 0; z-index: 100;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  background: rgba(7, 7, 15, 0.8);
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px 0;
}
.nav-logo { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.logo-icon { width: 36px; height: 36px; flex-shrink: 0; }
.logo-text {
  font-family: 'JetBrains Mono', monospace;
  font-size: 13px; font-weight: 700;
  letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--text); line-height: 1.2;
}
.logo-text span { color: var(--cyan); }

.nav-links { display: flex; align-items: center; gap: 32px; list-style: none; }
.nav-links a {
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px; font-weight: 500;
  letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--muted); text-decoration: none;
  transition: color 0.15s;
}
.nav-links a:hover { color: var(--cyan); }

/* ── Buttons ── */
.btn {
  background: var(--cyan); color: #07070f;
  border: none; border-radius: var(--radius);
  padding: 10px 20px;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 14px; font-weight: 700; letter-spacing: 0.02em;
  cursor: pointer; text-decoration: none; display: inline-block;
  transition: background 0.15s, transform 0.1s; white-space: nowrap;
}
.btn:hover { background: #38e0fa; }
.btn:active { transform: scale(0.98); }
.btn:disabled { opacity: 0.5; cursor: not-allowed; }
.btn-outline {
  background: transparent; color: var(--text);
  border: 1px solid var(--border);
}
.btn-outline:hover {
  background: rgba(34, 211, 238, 0.06);
  border-color: rgba(34, 211, 238, 0.3); color: var(--cyan);
}
.btn-lg { padding: 14px 28px; font-size: 15px; }
.btn-sm { padding: 7px 14px; font-size: 12px; }

/* ── Section labels / headings ── */
.section-label {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px; letter-spacing: 0.15em; text-transform: uppercase;
  color: var(--cyan); margin-bottom: 16px;
  display: flex; align-items: center; gap: 10px;
}
.section-label::after {
  content: ''; flex: 1; height: 1px;
  background: linear-gradient(90deg, rgba(34,211,238,0.2), transparent);
}

h1 {
  font-size: clamp(40px, 7vw, 72px); font-weight: 700;
  letter-spacing: -0.03em; line-height: 1.08;
  margin-bottom: 24px; color: #fff;
}
h1 .hl, h2 .hl {
  background: linear-gradient(135deg, var(--cyan), var(--purple));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
}
h2 {
  font-size: clamp(28px, 4vw, 44px); font-weight: 700;
  letter-spacing: -0.025em; line-height: 1.12;
  color: #fff; margin-bottom: 16px;
}
.section-sub { font-size: 16px; color: var(--muted); max-width: 560px; line-height: 1.7; }

/* ── Eyebrow ── */
.eyebrow {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px; font-weight: 500;
  letter-spacing: 0.15em; text-transform: uppercase;
  color: var(--cyan); margin-bottom: 28px;
  display: inline-flex; align-items: center; gap: 10px;
  background: rgba(34,211,238,0.06);
  border: 1px solid rgba(34,211,238,0.15);
  padding: 6px 14px; border-radius: 100px;
}
.eyebrow::before {
  content: ''; width: 6px; height: 6px;
  background: var(--cyan); border-radius: 50%; display: inline-block;
}

/* ── Stats ── */
.stats {
  margin: 64px 0;
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 1px; background: var(--border);
  border: 1px solid var(--border);
  border-radius: calc(var(--radius) + 4px); overflow: hidden;
}
.stat { background: var(--bg-card); padding: 28px 24px; text-align: center; }
.stat-num { font-family: 'JetBrains Mono', monospace; font-size: 36px; font-weight: 700; color: var(--cyan); line-height: 1; margin-bottom: 8px; }
.stat-label { font-size: 13px; color: var(--muted); letter-spacing: 0.03em; }

/* ── Meta section ── */
.meta-section { padding: 80px 0; }
.meta-card {
  background: var(--bg-card);
  border: 1px solid rgba(34,211,238,0.12);
  border-radius: calc(var(--radius) + 4px);
  padding: 56px 64px; position: relative; overflow: hidden;
}
.meta-card::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 1px;
  background: linear-gradient(90deg, transparent, var(--cyan), transparent); opacity: 0.4;
}
.meta-card p { font-size: 17px; color: var(--muted); line-height: 1.75; max-width: 640px; margin-top: 16px; }
.meta-card strong { color: var(--text); }

/* ── Features ── */
.features-section { padding: 80px 0; }
.features-header { margin-bottom: 48px; }
.features-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.feature-card {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 28px 24px;
  transition: border-color 0.2s, background 0.2s, transform 0.2s; cursor: default;
}
.feature-card:hover { border-color: var(--cyan); background: rgba(34,211,238,0.03); transform: translateY(-2px); }
.feature-icon { font-size: 28px; margin-bottom: 14px; line-height: 1; }
.feature-card h3 { font-size: 15px; font-weight: 600; color: var(--text); margin-bottom: 10px; letter-spacing: -0.01em; }
.feature-card p { font-size: 13.5px; color: var(--muted); line-height: 1.7; }
.feature-tag {
  display: inline-block; margin-top: 16px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--cyan); background: rgba(34,211,238,0.06);
  border: 1px solid rgba(34,211,238,0.12); padding: 3px 10px; border-radius: 100px;
}

/* ── Products ── */
.products-section { padding: 80px 0; }
.products-header { margin-bottom: 48px; }
.kits-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-bottom: 20px; }
.kit-card {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: calc(var(--radius) + 4px); padding: 32px 28px;
  display: flex; flex-direction: column; position: relative;
  transition: border-color 0.2s, transform 0.2s;
}
.kit-card:hover { border-color: rgba(34,211,238,0.2); transform: translateY(-3px); }
.kit-card.featured { border-color: var(--cyan); background: rgba(34,211,238,0.02); }
.kit-badge {
  font-family: 'JetBrains Mono', monospace; font-size: 10px; font-weight: 700;
  letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--cyan); background: rgba(34,211,238,0.1);
  border: 1px solid rgba(34,211,238,0.2); padding: 4px 10px; border-radius: 100px;
  position: absolute; top: 28px; right: 28px;
}
.kit-number { font-family: 'JetBrains Mono', monospace; font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); margin-bottom: 8px; }
.kit-card h3 { font-size: 20px; font-weight: 700; color: #fff; margin-bottom: 12px; letter-spacing: -0.02em; }
.kit-card > p { font-size: 14px; color: var(--muted); line-height: 1.65; margin-bottom: 20px; }
.kit-features { list-style: none; margin-bottom: 28px; flex: 1; }
.kit-features li { display: flex; align-items: flex-start; gap: 10px; font-size: 13.5px; color: var(--muted); padding: 5px 0; border-bottom: 1px solid var(--border); }
.kit-features li:last-child { border-bottom: none; }
.kit-features li .check { color: var(--cyan); font-weight: 700; flex-shrink: 0; margin-top: 1px; }
.kit-pricing { margin-bottom: 20px; }
.kit-was { font-size: 12px; color: var(--muted); text-decoration: line-through; margin-bottom: 4px; }
.kit-price { font-family: 'JetBrains Mono', monospace; font-size: 32px; font-weight: 700; color: #fff; line-height: 1; }
.kit-save { display: inline-block; margin-top: 6px; font-size: 11px; font-family: 'JetBrains Mono', monospace; color: var(--cyan); background: rgba(34,211,238,0.08); border: 1px solid rgba(34,211,238,0.18); padding: 2px 8px; border-radius: 100px; }
.kit-card .btn { width: 100%; text-align: center; }

/* ── Bundle ── */
.bundle-card {
  background: var(--bg-card); border: 1px solid rgba(129,140,248,0.3);
  border-radius: calc(var(--radius) + 4px); padding: 40px;
  display: grid; grid-template-columns: 1fr auto; gap: 40px; align-items: center;
  position: relative; overflow: hidden;
}
.bundle-card::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 2px; background: linear-gradient(90deg, var(--cyan), var(--purple)); }
.bundle-tag { font-family: 'JetBrains Mono', monospace; font-size: 10px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--cyan); background: rgba(34,211,238,0.1); border: 1px solid rgba(34,211,238,0.2); padding: 4px 10px; border-radius: 100px; display: inline-block; margin-bottom: 12px; }
.bundle-card h3 { font-size: 26px; font-weight: 700; color: #fff; margin-bottom: 10px; letter-spacing: -0.02em; }
.bundle-card > div > p { font-size: 15px; color: var(--muted); line-height: 1.65; max-width: 520px; margin-bottom: 16px; }
.bundle-includes { display: flex; gap: 16px; flex-wrap: wrap; }
.bundle-includes span { font-family: 'JetBrains Mono', monospace; font-size: 11px; color: var(--cyan); background: rgba(34,211,238,0.06); border: 1px solid rgba(34,211,238,0.12); padding: 4px 12px; border-radius: 100px; }
.bundle-pricing { text-align: right; flex-shrink: 0; }
.bundle-was { font-size: 12px; color: var(--muted); text-decoration: line-through; margin-bottom: 6px; }
.bundle-price { font-family: 'JetBrains Mono', monospace; font-size: 42px; font-weight: 700; color: #fff; line-height: 1; margin-bottom: 6px; }
.bundle-save { font-size: 11px; font-family: 'JetBrains Mono', monospace; color: var(--cyan); background: rgba(34,211,238,0.08); border: 1px solid rgba(34,211,238,0.18); padding: 3px 10px; border-radius: 100px; display: inline-block; margin-bottom: 18px; }

/* ── Testimonials ── */
.testimonials-section { padding: 80px 0; }
.testimonials-header { margin-bottom: 48px; }
.testi-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-bottom: 16px; }
.testi-card { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius); padding: 28px 26px; display: flex; flex-direction: column; gap: 18px; transition: border-color 0.2s, transform 0.2s; }
.testi-card:hover { border-color: var(--cyan); transform: translateY(-2px); }
.testi-stars { display: flex; gap: 3px; color: var(--cyan); font-size: 13px; letter-spacing: 1px; }
.testi-quote { font-size: 15px; color: var(--text); line-height: 1.65; font-weight: 400; flex: 1; }
.testi-quote::before { content: '\201C'; color: var(--cyan); font-size: 18px; font-weight: 700; margin-right: 2px; }
.testi-author { display: flex; align-items: center; gap: 12px; padding-top: 16px; border-top: 1px solid var(--border); }
.testi-avatar { width: 38px; height: 38px; border-radius: 50%; background: linear-gradient(135deg, var(--cyan), var(--purple)); display: flex; align-items: center; justify-content: center; font-family: 'JetBrains Mono', monospace; font-size: 13px; font-weight: 700; color: #07070f; flex-shrink: 0; }
.testi-name { font-size: 13.5px; font-weight: 600; color: var(--text); line-height: 1.2; }
.testi-role { font-family: 'JetBrains Mono', monospace; font-size: 10.5px; color: var(--muted); letter-spacing: 0.04em; margin-top: 3px; }
.testi-featured { grid-column: span 3; background: rgba(34,211,238,0.03); border-color: rgba(34,211,238,0.15); flex-direction: row; align-items: flex-start; gap: 32px; padding: 32px 36px; }
.testi-featured .testi-quote { font-size: 17px; }
.testi-featured .testi-author { border-top: none; padding-top: 0; flex-shrink: 0; flex-direction: column; align-items: center; text-align: center; min-width: 90px; }
.testi-featured .testi-avatar { width: 52px; height: 52px; font-size: 16px; margin-bottom: 8px; }
.testi-social-proof { display: flex; align-items: center; justify-content: center; gap: 24px; margin-top: 40px; flex-wrap: wrap; }
.tsp-item { font-family: 'JetBrains Mono', monospace; font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); display: flex; align-items: center; gap: 8px; }
.tsp-item::before { content: ''; width: 5px; height: 5px; border-radius: 50%; background: var(--cyan); display: inline-block; }

/* ── Footer ── */
footer { position: relative; z-index: 1; border-top: 1px solid var(--border); padding: 48px 0 32px; margin-top: 80px; }
.footer-inner { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 16px; margin-bottom: 24px; }
.footer-copy { font-family: 'JetBrains Mono', monospace; font-size: 12px; color: var(--muted); line-height: 1.6; }
.footer-copy strong { color: var(--text); }
.footer-links { display: flex; gap: 20px; }
.footer-links a { font-family: 'JetBrains Mono', monospace; font-size: 12px; color: var(--muted); text-decoration: none; letter-spacing: 0.05em; transition: color 0.15s; }
.footer-links a:hover { color: var(--cyan); }
.footer-built { font-family: 'JetBrains Mono', monospace; font-size: 11px; color: var(--muted); text-align: center; border-top: 1px solid var(--border); padding-top: 20px; letter-spacing: 0.03em; }
.footer-built span { color: var(--cyan); }

/* ── Modals ── */
.modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: rgba(7, 7, 15, 0.85);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  overflow-y: auto;
  padding: 40px 20px;
}
.modal-overlay.is-open { display: flex; align-items: flex-start; justify-content: center; }
.modal-box {
  position: relative;
  background: #0c0c1a;
  border: 1px solid rgba(34, 211, 238, 0.15);
  border-radius: 14px;
  width: 100%;
  max-width: 720px;
  box-shadow: 0 0 80px rgba(34, 211, 238, 0.06), 0 32px 64px rgba(0,0,0,0.6);
}
.modal-close {
  position: sticky;
  top: 0;
  float: right;
  background: none;
  border: none;
  color: var(--muted);
  font-size: 26px;
  line-height: 1;
  cursor: pointer;
  padding: 20px 24px 0;
  transition: color 0.15s;
  z-index: 2;
}
.modal-close:hover { color: var(--cyan); }
.modal-body {
  padding: 12px 48px 48px;
  clear: both;
}
.modal-body h2 {
  font-size: 28px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: #fff;
  margin-bottom: 4px;
}
.modal-body h3 {
  font-size: 15px;
  font-weight: 700;
  color: var(--cyan);
  letter-spacing: 0.03em;
  text-transform: uppercase;
  margin: 32px 0 10px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
}
.modal-body h4 {
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
  margin: 18px 0 6px;
  letter-spacing: 0.02em;
}
.modal-eyebrow {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--cyan);
  margin-bottom: 12px;
}
.modal-effective {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  color: var(--muted);
  margin-bottom: 28px;
}
.modal-body p { font-size: 14px; color: var(--muted); line-height: 1.8; margin-bottom: 12px; }
.modal-body ul { padding-left: 20px; margin-bottom: 12px; }
.modal-body ul li { font-size: 14px; color: var(--muted); line-height: 1.8; margin-bottom: 4px; }
.modal-body strong { color: var(--text); }
.modal-body a { color: var(--cyan); text-decoration: none; }
.modal-body a:hover { text-decoration: underline; }

/* ── Hero ── */
.hero {
  position: relative;
  padding: 96px 0 72px;
  text-align: center;
  background: radial-gradient(ellipse 80% 60% at 50% 0%, rgba(34,211,238,0.07) 0%, transparent 70%);
}
#starfield {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  width: 100%;
  pointer-events: none;
  z-index: 0;
  mask-image: linear-gradient(to bottom, black 55%, transparent 85%);
  -webkit-mask-image: linear-gradient(to bottom, black 55%, transparent 85%);
}
.hero .wrap { position: relative; z-index: 1; }
.hero-sub { font-size: 18px; color: var(--muted); max-width: 560px; margin: 0 auto 48px; line-height: 1.75; }
.hero-ctas { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* "Set Up. Sorted." — glow pulse */
h1 .hl {
  filter: drop-shadow(0 0 8px rgba(34,211,238,0.3)) drop-shadow(0 0 3px rgba(129,140,248,0.25));
  animation: hl-pulse 6s ease-in-out infinite;
}
@keyframes hl-pulse {
  0%, 100% { filter: drop-shadow(0 0 6px rgba(34,211,238,0.25)) drop-shadow(0 0 2px rgba(129,140,248,0.2)); }
  50%       { filter: drop-shadow(0 0 16px rgba(34,211,238,0.5)) drop-shadow(0 0 6px rgba(129,140,248,0.35)); }
}

/* ════════════════════════════════════════════════════════════
   PORTAL — Login page
   ════════════════════════════════════════════════════════════ */

.login-section {
  min-height: calc(100vh - 80px);
  display: flex; align-items: center; justify-content: center;
  padding: 48px 24px;
}

.login-card {
  width: 100%; max-width: 440px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: calc(var(--radius) + 4px);
  padding: 48px 40px;
  position: relative; overflow: hidden;
}

.login-card::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 2px;
  background: linear-gradient(90deg, var(--cyan), var(--purple));
}

.login-logo { display: flex; align-items: center; gap: 12px; margin-bottom: 32px; }

.login-title {
  font-size: 22px; font-weight: 700;
  color: #fff; letter-spacing: -0.02em;
  margin-bottom: 6px;
}

.login-subtitle { font-size: 14px; color: var(--muted); margin-bottom: 32px; line-height: 1.6; }

.field { margin-bottom: 18px; }
.field label { display: block; font-family: 'JetBrains Mono', monospace; font-size: 11px; font-weight: 500; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); margin-bottom: 8px; }
.field input {
  width: 100%; background: var(--bg-input);
  border: 1px solid var(--border); border-radius: var(--radius);
  padding: 12px 16px; font-family: 'Space Grotesk', sans-serif;
  font-size: 15px; color: var(--text); outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.field input:focus { border-color: var(--border-hl); box-shadow: 0 0 0 3px rgba(34,211,238,0.06); }
.field input::placeholder { color: var(--muted); }

.login-submit { width: 100%; margin-top: 8px; padding: 14px; font-size: 15px; }

.msg-box {
  display: none; margin-top: 16px;
  padding: 14px 16px; border-radius: var(--radius);
  font-family: 'JetBrains Mono', monospace; font-size: 12px; line-height: 1.6;
}
.msg-box.error { background: rgba(248,113,113,0.07); border: 1px solid rgba(248,113,113,0.2); color: var(--red); }
.msg-box.success { background: rgba(34,211,238,0.07); border: 1px solid rgba(34,211,238,0.2); color: var(--cyan); }

.login-footer-note { margin-top: 24px; font-size: 12px; color: var(--muted); text-align: center; line-height: 1.6; }
.login-footer-note a { color: var(--cyan); text-decoration: none; }
.login-footer-note a:hover { text-decoration: underline; }

/* ════════════════════════════════════════════════════════════
   PORTAL — Member area
   ════════════════════════════════════════════════════════════ */

.portal-wrap { max-width: 860px; }

.portal-loading {
  min-height: 60vh; display: flex; align-items: center; justify-content: center;
  flex-direction: column; gap: 16px;
  font-family: 'JetBrains Mono', monospace; font-size: 13px; color: var(--muted);
}
.portal-spinner {
  width: 32px; height: 32px; border-radius: 50%;
  border: 2px solid rgba(34,211,238,0.15);
  border-top-color: var(--cyan);
  animation: spin 0.8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

.portal-error-card {
  display: none;
  background: rgba(248,113,113,0.06);
  border: 1px solid rgba(248,113,113,0.2);
  border-radius: calc(var(--radius) + 4px);
  padding: 40px; margin: 80px auto; max-width: 540px; text-align: center;
}
.portal-error-card h2 { font-size: 20px; color: var(--red); margin-bottom: 12px; }
.portal-error-card p { font-size: 14px; color: var(--muted); line-height: 1.7; }
.portal-error-card a { color: var(--cyan); }

.portal-header {
  padding: 40px 0 32px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 48px;
}
.portal-welcome { font-family: 'JetBrains Mono', monospace; font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); margin-bottom: 8px; }
.portal-welcome span { color: var(--cyan); }
.portal-heading { font-size: 28px; font-weight: 700; color: #fff; letter-spacing: -0.02em; }

.portal-kit {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: calc(var(--radius) + 4px); overflow: hidden;
  margin-bottom: 20px;
}
.portal-kit-toggle {
  width: 100%; display: flex; align-items: center; justify-content: space-between;
  gap: 16px; padding: 24px 32px; background: none; border: none; cursor: pointer;
  text-align: left; transition: background 0.15s;
}
.portal-kit-toggle:hover { background: rgba(255,255,255,0.03); }
.portal-kit-toggle-left { display: flex; align-items: center; gap: 20px; }
.portal-kit-toggle .kit-number { font-family: 'JetBrains Mono', monospace; font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); margin-bottom: 4px; white-space: nowrap; }
.portal-kit-toggle h3 { font-size: 18px; font-weight: 700; color: #fff; letter-spacing: -0.02em; margin-bottom: 4px; }
.portal-kit-toggle p { font-size: 13px; color: var(--muted); margin: 0; }
.portal-kit-chevron { font-size: 20px; color: var(--muted); transition: transform 0.2s ease; flex-shrink: 0; }
.portal-kit-body { border-top: 1px solid var(--border); }

/* ── Portal accounts table ── */
.portal-accounts {
  padding: 28px 32px;
  border-bottom: 1px solid var(--border);
  background: rgba(34, 211, 238, 0.03);
}
.portal-accounts-heading { margin-bottom: 18px; }
.portal-accounts-step {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--cyan);
}
.portal-accounts-heading h4 {
  font-size: 18px;
  font-weight: 700;
  color: #fff;
  letter-spacing: -0.02em;
  margin: 4px 0 6px;
}
.portal-accounts-note { font-size: 13px; color: var(--muted); }
.portal-accounts-note strong { color: var(--text); }
.portal-accounts-table-wrap { overflow-x: auto; }
.portal-accounts-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}
.portal-accounts-table th {
  text-align: left;
  padding: 10px 14px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  border-bottom: 1px solid var(--border);
}
.portal-accounts-table td {
  padding: 12px 14px;
  color: var(--muted);
  border-bottom: 1px solid rgba(255,255,255,0.04);
  line-height: 1.5;
}
.portal-accounts-table tr:last-child td { border-bottom: none; }
.portal-accounts-table td strong { color: var(--text); }
.portal-accounts-table td a { color: var(--cyan); text-decoration: none; font-family: 'JetBrains Mono', monospace; font-size: 12px; }
.portal-accounts-table td a:hover { text-decoration: underline; }
.portal-software {
  padding: 28px 32px;
  border-bottom: 1px solid var(--border);
}
.portal-table-divider td {
  padding: 10px 14px 6px;
  background: rgba(34, 211, 238, 0.04);
  border-top: 1px solid rgba(34, 211, 238, 0.15);
  border-bottom: none;
}
.portal-table-section-label {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--cyan);
}
.course-os-toggle {
  width: 100%; display: flex; align-items: center; justify-content: space-between;
  gap: 16px; background: none; border: none; cursor: pointer; padding: 0;
}
.course-os-toggle:hover .portal-os-divider-inner { filter: brightness(1.2); }
.portal-os-divider-inner {
  flex: 1;
  display: flex; align-items: center; gap: 12px;
  padding: 9px 14px;
  background: linear-gradient(90deg, rgba(34,211,238,0.12) 0%, rgba(34,211,238,0.04) 100%);
  border: 1px solid rgba(34,211,238,0.25);
  border-radius: 6px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px; font-weight: 700;
  letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--cyan);
  transition: filter 0.15s;
}
.portal-os-divider-inner::before { content: '▶'; font-size: 8px; opacity: 0.7; }
.course-os-toggle .portal-kit-chevron { padding-right: 16px; }
.course-os-body { border-top: 1px solid var(--border); }

.portal-os-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 9px 14px;
  background: linear-gradient(90deg, rgba(34,211,238,0.12) 0%, rgba(34,211,238,0.04) 100%);
  border: 1px solid rgba(34,211,238,0.25);
  border-radius: 6px;
  margin-bottom: 0;
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--cyan);
}
.portal-os-divider::before {
  content: '▶';
  font-size: 8px;
  opacity: 0.7;
}
.portal-next-step {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 24px 32px;
  border-top: 1px solid var(--border);
  flex-wrap: wrap;
}
.portal-next-step p { font-size: 14px; color: var(--muted); margin: 0; }
.portal-next-btn {
  background: var(--cyan) !important;
  color: #07070f !important;
  white-space: nowrap;
  flex-shrink: 0;
}
.portal-next-btn:hover { background: #06b6d4 !important; }
.portal-windows-note {
  padding: 14px 14px !important;
  background: rgba(129, 140, 248, 0.05);
  border-top: 1px dashed rgba(129, 140, 248, 0.2) !important;
  font-size: 13px;
  color: var(--muted);
  line-height: 1.8;
}
.portal-windows-arrow { color: var(--cyan); font-size: 14px; flex-shrink: 0; }
.portal-windows-tip {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #fff;
  text-decoration: none;
  white-space: nowrap;
  flex-shrink: 0;
}
.portal-windows-tip:hover { color: var(--cyan); }
.portal-windows-cmd { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.portal-windows-label { font-size: 13px; color: var(--muted); white-space: nowrap; flex-shrink: 0; }
.portal-code-wrap {
  display: flex;
  align-items: center;
  flex: 1;
  background: rgba(0,0,0,0.3);
  border: 1px solid var(--border);
  border-radius: 6px;
  overflow: hidden;
  min-width: 0;
}
.portal-code-wrap code {
  flex: 1;
  padding: 8px 12px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  color: var(--cyan);
  white-space: nowrap;
  overflow-x: auto;
  user-select: text;
  -webkit-user-select: text;
  cursor: text;
  scrollbar-width: none;
}
.portal-code-wrap code::-webkit-scrollbar { display: none; }
.portal-copy-btn {
  flex-shrink: 0;
  background: rgba(34,211,238,0.1);
  border: none;
  border-left: 1px solid var(--border);
  color: var(--cyan);
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  padding: 8px 14px;
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
  white-space: nowrap;
}
.portal-copy-btn:hover { background: rgba(34,211,238,0.2); }

.portal-file-list { list-style: none; }
.portal-file {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 16px 32px;
  border-bottom: 1px solid var(--border);
}
.portal-file:last-child { border-bottom: none; }
.portal-file-info { display: flex; align-items: center; gap: 12px; }
.portal-file-type {
  font-family: 'JetBrains Mono', monospace; font-size: 9px; font-weight: 700;
  letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--cyan); background: rgba(34,211,238,0.08);
  border: 1px solid rgba(34,211,238,0.15); padding: 2px 7px; border-radius: 4px;
  flex-shrink: 0;
}
.portal-file-name { font-size: 14px; color: var(--text); }

/* ════════════════════════════════════════════════════════════
   AUTH — Shared layout (login.html + success.html)
   ════════════════════════════════════════════════════════════ */

.auth-main {
  min-height: calc(100vh - 80px);
  display: flex; align-items: center; justify-content: center;
  padding: 48px 24px;
  position: relative; z-index: 1;
}

.auth-wrap { width: 100%; max-width: 480px; }

.auth-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: calc(var(--radius) + 4px);
  padding: 52px 44px;
  position: relative; overflow: hidden;
}
.auth-card::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 2px;
  background: linear-gradient(90deg, var(--cyan), var(--purple));
}

.auth-logo { display: flex; align-items: center; gap: 12px; margin-bottom: 36px; }
.auth-logo-img { width: 36px; height: 36px; }

.auth-title {
  font-size: 24px; font-weight: 700; letter-spacing: -0.02em;
  color: #fff; margin-bottom: 8px;
}
.auth-sub { font-size: 14px; color: var(--muted); line-height: 1.65; margin-bottom: 32px; }

/* Form elements */
.auth-form { margin-top: 8px; }
.form-group { margin-bottom: 20px; }
.form-group label {
  display: block;
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px; font-weight: 500;
  letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--muted); margin-bottom: 8px;
}
.form-group input {
  width: 100%; background: var(--bg-input);
  border: 1px solid var(--border); border-radius: var(--radius);
  padding: 12px 16px;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 15px; color: var(--text); outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.form-group input:focus {
  border-color: rgba(34,211,238,0.4);
  box-shadow: 0 0 0 3px rgba(34,211,238,0.06);
}
.form-group input::placeholder { color: var(--muted); }
.form-hint { font-size: 12px; color: var(--muted); margin-top: 7px; line-height: 1.5; }

/* Full-width button */
.btn-full { width: 100%; text-align: center; justify-content: center; display: block; margin-top: 8px; padding: 14px; font-size: 15px; }

/* Messages */
.msg {
  padding: 13px 16px; border-radius: var(--radius); margin-bottom: 20px;
  font-family: 'JetBrains Mono', monospace; font-size: 12px; line-height: 1.6;
}
.msg-error  { background: rgba(248,113,113,0.07); border: 1px solid rgba(248,113,113,0.22); color: var(--red); }
.msg-success { background: rgba(34,211,238,0.07); border: 1px solid rgba(34,211,238,0.22); color: var(--cyan); }

/* Auth footer */
.auth-footer { margin-top: 28px; font-size: 13px; color: var(--muted); line-height: 1.9; }
.auth-footer a { color: var(--cyan); text-decoration: none; }
.auth-footer a:hover { text-decoration: underline; }

/* ════════════════════════════════════════════════════════════
   PORTAL — Member area (portal.html)
   ════════════════════════════════════════════════════════════ */

.portal-main { padding: 48px 0 80px; position: relative; z-index: 1; }

/* Nav portal right-side */
.nav-portal-right { display: flex; align-items: center; gap: 16px; }
.portal-email-nav {
  font-family: 'JetBrains Mono', monospace; font-size: 11px;
  letter-spacing: 0.05em; color: var(--muted);
}

/* Loading / error states */
.portal-state {
  min-height: 60vh; display: flex; align-items: center; justify-content: center;
  flex-direction: column; gap: 16px; text-align: center;
  font-size: 14px; color: var(--muted);
}
.portal-error-icon {
  font-size: 40px; color: var(--red); line-height: 1;
}
.portal-state .btn { margin-top: 8px; }

/* Spinner */
.spinner {
  width: 32px; height: 32px; border-radius: 50%;
  border: 2px solid rgba(34,211,238,0.15);
  border-top-color: var(--cyan);
  animation: spin 0.8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* Portal header */
.portal-header { padding: 28px 0 20px; border-bottom: 1px solid var(--border); margin-bottom: 24px; }
.portal-header h1 { font-size: clamp(28px, 5vw, 40px); margin-bottom: 12px; }
.portal-header-sub { font-size: 14px; color: var(--muted); line-height: 1.65; max-width: 560px; }

/* Kits list */
.portal-kits-list { display: flex; flex-direction: column; gap: 20px; }

/* Portal support note */
.portal-support { margin-top: 48px; padding-top: 28px; border-top: 1px solid var(--border); font-size: 13px; color: var(--muted); }
.portal-support a { color: var(--cyan); text-decoration: none; }
.portal-support a:hover { text-decoration: underline; }

/* ── Course pages ── */
.course-progress { margin-bottom: 36px; }
.course-progress-label { display: flex; justify-content: space-between; align-items: center; margin-bottom: 10px; }
.course-kit-tag { font-family: 'JetBrains Mono', monospace; font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--cyan); }
.course-page-tag { font-family: 'JetBrains Mono', monospace; font-size: 11px; color: var(--muted); }
.course-progress-track { height: 3px; background: var(--border); border-radius: 2px; overflow: hidden; }
.course-progress-fill { height: 100%; background: linear-gradient(90deg, var(--cyan), var(--purple)); border-radius: 2px; }
.course-header { margin-bottom: 32px; }
.course-step-label { font-family: 'JetBrains Mono', monospace; font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--cyan); margin-bottom: 10px; }
.course-header h1 { font-size: clamp(28px, 4vw, 40px); font-weight: 700; letter-spacing: -0.025em; color: #fff; margin-bottom: 12px; }
.course-header-sub { font-size: 16px; color: var(--muted); max-width: 640px; line-height: 1.7; }
.course-card { background: var(--bg-card); border: 1px solid var(--border); border-radius: calc(var(--radius) + 4px); overflow: hidden; }
.course-steps { padding: 8px 0; }
.course-step { display: flex; gap: 20px; padding: 22px 32px; border-bottom: 1px solid var(--border); }
.course-step:last-child { border-bottom: none; }
.course-step-num { flex-shrink: 0; width: 32px; height: 32px; border-radius: 50%; background: rgba(34,211,238,0.1); border: 1px solid rgba(34,211,238,0.25); display: flex; align-items: center; justify-content: center; font-family: 'JetBrains Mono', monospace; font-size: 13px; font-weight: 700; color: var(--cyan); margin-top: 2px; }
.course-step-body { flex: 1; }
.course-step-body h4 { font-size: 15px; font-weight: 700; color: #fff; margin-bottom: 8px; }
.course-step-body p { font-size: 14px; color: var(--muted); line-height: 1.75; margin-bottom: 0; }
.course-step-body p a { color: var(--cyan); text-decoration: none; }
.course-step-body p a:hover { text-decoration: underline; }
.course-step-body .portal-code-wrap { margin-top: 12px; }
kbd { display: inline-block; padding: 2px 7px; background: rgba(255,255,255,0.07); border: 1px solid rgba(255,255,255,0.15); border-radius: 4px; font-family: 'JetBrains Mono', monospace; font-size: 12px; color: var(--text); }

/* ── Success page ── */
.success-section { min-height: calc(100vh - 80px); display: flex; align-items: center; justify-content: center; padding: 48px 24px; }
.success-card {
  width: 100%; max-width: 520px;
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: calc(var(--radius) + 4px); padding: 56px 48px;
  text-align: center; position: relative; overflow: hidden;
}
.success-card::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 2px; background: linear-gradient(90deg, var(--cyan), var(--purple)); }
.success-icon { font-size: 48px; margin-bottom: 24px; }
.success-card h1 { font-size: 26px; margin-bottom: 16px; }
.success-card p { font-size: 15px; color: var(--muted); line-height: 1.75; margin-bottom: 16px; }
.success-card .passcode-note { font-family: 'JetBrains Mono', monospace; font-size: 13px; color: var(--cyan); background: rgba(34,211,238,0.07); border: 1px solid rgba(34,211,238,0.15); padding: 16px 20px; border-radius: var(--radius); margin: 24px 0; line-height: 1.7; text-align: left; }

/* Success steps */
.success-icon {
  width: 64px; height: 64px; border-radius: 50%;
  background: rgba(34,211,238,0.1); border: 2px solid rgba(34,211,238,0.3);
  display: flex; align-items: center; justify-content: center;
  font-size: 28px; margin: 0 auto 28px; color: var(--cyan); line-height: 1;
}
.success-steps { text-align: left; margin: 28px 0 32px; display: flex; flex-direction: column; gap: 16px; }
.success-step { display: flex; align-items: flex-start; gap: 16px; }
.step-num {
  width: 28px; height: 28px; border-radius: 50%;
  background: rgba(34,211,238,0.1); border: 1px solid rgba(34,211,238,0.25);
  display: flex; align-items: center; justify-content: center;
  font-family: 'JetBrains Mono', monospace; font-size: 12px; font-weight: 700;
  color: var(--cyan); flex-shrink: 0; margin-top: 2px;
}
.step-text { font-size: 14px; line-height: 1.5; }
.step-text strong { display: block; color: var(--text); margin-bottom: 2px; }
.step-text span { color: var(--muted); font-size: 13px; }

/* ── Responsive ── */
@media (max-width: 900px) {
  .features-grid  { grid-template-columns: repeat(2, 1fr); }
  .kits-grid      { grid-template-columns: 1fr; }
  .bundle-card    { grid-template-columns: 1fr; gap: 28px; }
  .bundle-pricing { text-align: left; }
  .stats          { grid-template-columns: repeat(2, 1fr); }
  .meta-card      { padding: 40px 32px; }
  .testi-featured { grid-column: span 1; flex-direction: column; }
  .testi-featured .testi-author { flex-direction: row; text-align: left; }
}

@media (max-width: 600px) {
  .features-grid  { grid-template-columns: 1fr; }
  .stats          { grid-template-columns: repeat(2, 1fr); }
  .nav-links      { display: none; }
  .hero           { padding: 64px 0 48px; }
  .meta-card      { padding: 32px 24px; }
  .bundle-card    { padding: 28px 24px; }
  .login-card     { padding: 36px 24px; }
  .portal-file    { flex-direction: column; align-items: flex-start; }
  .portal-kit-header { padding: 24px; }
  .portal-file    { padding: 14px 24px; }
}
