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

:root {
  --black: #0A0A0A;
  --black2: #111111;
  --black3: #1A1A1A;
  --white: #F0EDE8;
  --orange: #FF6B1A;
  --orange-dim: #cc5510;
  --maroon: #8B1A1A;
  --gold: #D4A017;
  --gray: #444444;
  --gray-light: #888888;
  --green: #22C55E;
  --red: #EF4444;
}

html { scroll-behavior: smooth; overflow-x: hidden; }
body {
  background: var(--black);
  color: var(--white);
  font-family: 'Montserrat', sans-serif;
  overflow-x: hidden;
  max-width: 100vw;
}

/* Prevent any child from creating horizontal scroll */
#main-site, #course-portal, #admin-panel {
  overflow-x: hidden;
  max-width: 100%;
}

/* -- PAGES -- */
.page { display: none; }
.page.active { display: block; }

/* -- TICKER -- */
.ticker-wrap {
  background: var(--maroon);
  overflow: hidden; padding: 8px 0;
  border-bottom: 1px solid var(--orange);
  max-width: 100%;
}
.ticker-track {
  display: flex; width: max-content;
  animation: ticker 28s linear infinite;
}
.ticker-item {
  display: flex; align-items: center; gap: 6px;
  padding: 0 32px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 13px; font-weight: 600; white-space: nowrap;
}
.ticker-item .sym { color: var(--gold); }
.ticker-item .price { color: var(--white); }
.ticker-item .chg.up { color: var(--green); }
.ticker-item .chg.dn { color: var(--red); }
.ticker-sep { color: var(--gray); margin: 0 8px; }
@keyframes ticker { 0% { transform: translateX(0); } 100% { transform: translateX(-50%); } }

/* -- NAV -- */
nav {
  position: sticky; top: 0; z-index: 100;
  background: rgba(10,10,10,0.97);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid #222;
  padding: 0 40px;
  display: flex; align-items: center; justify-content: space-between;
  height: 68px;
}
.logo {
  font-family: 'Montserrat', sans-serif;
  font-size: 22px; font-weight: 900; letter-spacing: 3px;
  color: var(--white);
  display: flex; align-items: center; gap: 10px;
  cursor: pointer;
}
.logo-dot { color: var(--orange); }
.logo-badge {
  font-size: 9px; font-weight: 800; letter-spacing: 3px;
  color: var(--gold); background: #1a1000;
  padding: 2px 6px; border: 1px solid var(--gold);
  border-radius: 2px; align-self: flex-end; margin-bottom: 3px;
}
.nav-links { display: flex; align-items: center; gap: 32px; list-style: none; }
.nav-links a {
  color: var(--gray-light); text-decoration: none;
  font-size: 13px; font-weight: 600; letter-spacing: 0.5px;
  transition: color 0.2s;
}
.nav-links a:hover { color: var(--orange); }
.nav-cta {
  background: var(--orange) !important; color: var(--black) !important;
  padding: 10px 22px !important; border-radius: 4px;
  font-weight: 800 !important;
}
.nav-cta:hover { background: var(--orange-dim) !important; }

/* -- BTN -- */
.btn-primary {
  background: var(--orange); color: var(--black);
  padding: 16px 36px; border-radius: 4px;
  font-weight: 800; font-size: 15px; letter-spacing: 0.5px;
  font-family: 'Montserrat', sans-serif;
  text-decoration: none; display: inline-block;
  border: none; cursor: pointer;
  transition: background 0.2s, transform 0.15s;
}
.btn-primary:hover { background: var(--orange-dim); transform: translateY(-1px); }
.btn-outline {
  border: 1px solid var(--gray); color: var(--white); background: transparent;
  padding: 16px 36px; border-radius: 4px;
  font-weight: 600; font-size: 15px; font-family: 'Montserrat', sans-serif;
  text-decoration: none; display: inline-block;
  cursor: pointer; transition: border-color 0.2s, color 0.2s;
}
.btn-outline:hover { border-color: var(--orange); color: var(--orange); }

/* -- HERO -- */
.hero {
  min-height: 92vh; display: flex; align-items: center;
  background: var(--black); position: relative; overflow: hidden;
  padding: 80px 40px;
}
.hero::before {
  content: '';
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 60% 50% at 70% 50%, rgba(139,26,26,0.18) 0%, transparent 70%),
    radial-gradient(ellipse 40% 60% at 20% 80%, rgba(255,107,26,0.07) 0%, transparent 60%);
  pointer-events: none;
}
.hero-grid {
  max-width: 1200px; margin: 0 auto;
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 60px; align-items: center; position: relative; z-index: 1;
}
.hero-eyebrow {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px; font-weight: 600; color: var(--orange);
  letter-spacing: 4px; text-transform: uppercase;
  margin-bottom: 20px; display: flex; align-items: center; gap: 10px;
}
.hero-eyebrow::before { content: ''; width: 30px; height: 2px; background: var(--orange); }
.hero h1 {
  font-family: 'Montserrat', sans-serif;
  font-weight: 900;
  font-size: clamp(48px, 6vw, 82px);
  line-height: 1.0; letter-spacing: -1px;
  color: var(--white); margin-bottom: 28px;
}
.hero h1 .accent { color: var(--orange); }
.hero h1 .accent2 { color: var(--gold); }
.hero-sub {
  font-size: 17px; color: var(--gray-light); line-height: 1.8;
  margin-bottom: 40px; max-width: 480px; font-weight: 500;
}
.hero-sub strong { color: var(--white); font-weight: 700; }
.hero-btns { display: flex; gap: 16px; flex-wrap: wrap; }
.hero-stats {
  display: flex; gap: 40px; margin-top: 52px;
  padding-top: 40px; border-top: 1px solid #222;
}
.stat-num {
  font-family: 'Montserrat', sans-serif; font-weight: 900;
  font-size: 38px; color: var(--orange); line-height: 1;
}
.stat-label { font-size: 11px; font-weight: 600; color: var(--gray-light); letter-spacing: 1px; margin-top: 4px; }

.hero-right { position: relative; }
.float-badge {
  position: absolute; top: -16px; right: -16px;
  background: var(--gold); color: var(--black);
  font-weight: 900; font-size: 12px; letter-spacing: 1px;
  padding: 8px 14px; border-radius: 4px; z-index: 2;
  box-shadow: 0 4px 20px rgba(212,160,23,0.4);
}
.hero-video-box {
  background: var(--black3); border: 1px solid #2a2a2a;
  border-radius: 8px; aspect-ratio: 16/9;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  position: relative; overflow: hidden; cursor: pointer;
}
.hero-video-box::before {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(139,26,26,0.2), rgba(255,107,26,0.1));
}
.play-btn {
  width: 72px; height: 72px; background: var(--orange);
  border-radius: 50%; display: flex; align-items: center; justify-content: center;
  position: relative; z-index: 1; transition: transform 0.2s;
}
.hero-video-box:hover .play-btn { transform: scale(1.1); }
.play-btn svg { margin-left: 4px; }
.video-label {
  margin-top: 16px; font-size: 12px; font-weight: 600; color: var(--gray-light);
  position: relative; z-index: 1; letter-spacing: 1px;
}
.chart-overlay {
  position: absolute; bottom: 0; left: 0; right: 0;
  height: 80px; overflow: hidden; opacity: 0.3;
}
.live-indicator {
  position: absolute; bottom: -16px; left: 16px;
  background: var(--black2); border: 1px solid #333;
  padding: 8px 16px; border-radius: 30px;
  display: flex; align-items: center; gap: 8px;
  font-size: 12px; font-weight: 700; color: var(--white); z-index: 2;
}
.live-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--green); animation: pulse 1.5s infinite;
}
@keyframes pulse { 0%,100% { opacity: 1; } 50% { opacity: 0.3; } }

/* -- SECTION COMMONS -- */
.section-eyebrow {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px; font-weight: 600; color: var(--orange);
  letter-spacing: 4px; text-transform: uppercase; margin-bottom: 20px;
}
.section-header { text-align: center; margin-bottom: 64px; }
.section-header h2 {
  font-weight: 900; font-size: clamp(34px, 4.5vw, 58px);
  line-height: 1.05; margin-bottom: 16px;
}
.section-header p { font-size: 16px; color: var(--gray-light); max-width: 580px; margin: 0 auto; font-weight: 500; }

/* -- PAIN -- */
.pain {
  background: var(--black2); padding: 80px 40px;
  border-top: 1px solid #1a1a1a;
}
.pain-inner { max-width: 900px; margin: 0 auto; text-align: center; }
.pain h2 { font-weight: 900; font-size: clamp(34px, 5vw, 58px); line-height: 1.05; margin-bottom: 20px; }
.pain h2 .red { color: var(--maroon); }
.pain-desc { font-size: 16px; color: var(--gray-light); line-height: 1.8; margin-bottom: 48px; font-weight: 500; }
.pain-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2px; }
.pain-card {
  background: var(--black3); padding: 32px 28px; text-align: left;
  border-top: 3px solid var(--maroon); transition: border-color 0.2s;
}
.pain-card:hover { border-color: var(--orange); }
.pain-icon { font-size: 28px; margin-bottom: 16px; }
.pain-card h3 { font-size: 15px; font-weight: 800; margin-bottom: 10px; }
.pain-card p { font-size: 13px; color: var(--gray-light); line-height: 1.7; font-weight: 500; }

/* -- FEATURES -- */
.features { padding: 100px 40px; background: var(--black); }
.features-inner { max-width: 1200px; margin: 0 auto; }
.features-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.feat-card {
  background: var(--black3); border: 1px solid #1e1e1e;
  border-radius: 6px; padding: 36px 28px;
  transition: border-color 0.25s, transform 0.2s;
  position: relative; overflow: hidden;
}
.feat-card::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0;
  height: 3px; background: var(--orange);
  transform: scaleX(0); transform-origin: left; transition: transform 0.3s;
}
.feat-card:hover::before { transform: scaleX(1); }
.feat-card:hover { border-color: #333; transform: translateY(-4px); }
.feat-num {
  font-weight: 900; font-size: 48px; color: #1e1e1e;
  line-height: 1; position: absolute; top: 20px; right: 20px;
}
.feat-icon { font-size: 32px; margin-bottom: 20px; }
.feat-card h3 { font-size: 17px; font-weight: 800; margin-bottom: 12px; }
.feat-card p { font-size: 13px; color: var(--gray-light); line-height: 1.8; font-weight: 500; }

/* -- MARKETS -- */
.markets { background: var(--black2); padding: 80px 40px; }
.markets-inner { max-width: 1200px; margin: 0 auto; }
.markets-grid {
  display: flex; gap: 16px; flex-wrap: wrap;
  justify-content: center; margin-top: 48px;
}
.market-pill {
  background: var(--black3); border: 1px solid #2a2a2a;
  padding: 20px 36px; border-radius: 50px;
  display: flex; align-items: center; gap: 14px;
  font-size: 15px; font-weight: 800;
  transition: border-color 0.2s, background 0.2s; cursor: pointer;
}
.market-pill:hover { border-color: var(--orange); background: #1a0d06; }
.market-pill .sym2 {
  font-family: 'JetBrains Mono', monospace;
  color: var(--gold); font-size: 13px; font-weight: 600;
}
.market-pill .icon2 { font-size: 22px; }

/* -- PRICING -- */
.pricing { padding: 100px 40px; background: var(--black); }
.pricing-inner { max-width: 900px; margin: 0 auto; }
.pricing-grid {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 28px; margin-top: 64px;
}
.price-card {
  background: var(--black3); border: 1px solid #222;
  border-radius: 8px; padding: 44px 36px;
  display: flex; flex-direction: column;
  transition: border-color 0.2s;
  position: relative; overflow: hidden;
}
.price-card.featured { border-color: var(--orange); background: #120800; }
.price-card.featured::before {
  content: 'MOST POPULAR';
  position: absolute; top: 0; right: 0;
  background: var(--orange); color: var(--black);
  font-size: 10px; font-weight: 800; letter-spacing: 2px;
  padding: 6px 14px;
}
.price-tier {
  font-size: 11px; font-weight: 800; letter-spacing: 3px;
  color: var(--orange); text-transform: uppercase; margin-bottom: 12px;
}
.price-title { font-size: 24px; font-weight: 900; margin-bottom: 8px; }
.price-desc { font-size: 13px; color: var(--gray-light); margin-bottom: 28px; line-height: 1.6; font-weight: 500; }

/* Strikethrough + new price */
.price-row { display: flex; align-items: flex-end; gap: 14px; margin-bottom: 4px; }
.price-original {
  font-size: 22px; font-weight: 700; color: var(--gray);
  text-decoration: line-through; line-height: 1; margin-bottom: 4px;
}
.price-original .cur-orig { font-size: 14px; }
.price-amount {
  font-weight: 900; font-size: 54px; color: var(--white); line-height: 1;
}
.price-amount .cur { font-size: 26px; color: var(--gold); vertical-align: super; }
.price-save {
  display: inline-block; background: rgba(34,197,94,0.15);
  border: 1px solid var(--green); color: var(--green);
  font-size: 11px; font-weight: 800; letter-spacing: 1px;
  padding: 3px 10px; border-radius: 3px; margin-bottom: 24px; margin-top: 4px;
}
.price-period { font-size: 13px; color: var(--gray-light); margin-bottom: 32px; font-weight: 500; }
.price-features { list-style: none; margin-bottom: 36px; flex: 1; }
.price-features li {
  padding: 10px 0; border-bottom: 1px solid #1e1e1e;
  font-size: 13px; color: var(--gray-light); font-weight: 600;
  display: flex; align-items: center; gap: 10px;
}
.price-features li:last-child { border-bottom: none; }
.price-features li .check { color: var(--green); font-size: 16px; flex-shrink: 0; }
.price-features li .cross { color: var(--gray); font-size: 16px; flex-shrink: 0; }
.price-cta, button.price-cta {
  background: var(--orange); color: var(--black);
  padding: 16px 0; border-radius: 4px;
  font-weight: 800; font-size: 14px; letter-spacing: 1px; font-family: 'Montserrat', sans-serif;
  text-align: center; text-decoration: none; display: block;
  border: none; cursor: pointer; text-transform: uppercase;
  transition: background 0.2s;
}
.price-cta:hover { background: var(--orange-dim); }
.price-cta.outline {
  background: transparent; border: 1px solid var(--gray); color: var(--white);
}
.price-cta.outline:hover { border-color: var(--orange); color: var(--orange); }
.price-note { text-align: center; margin-top: 32px; font-size: 13px; color: var(--gray-light); font-weight: 500; }

/* -- TESTIMONIALS -- */
.testimonials { background: var(--black2); padding: 100px 40px; }
.testi-inner { max-width: 1200px; margin: 0 auto; }
.testi-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 64px; }
.testi-card {
  background: var(--black3); border: 1px solid #1e1e1e;
  border-radius: 6px; padding: 32px 28px; position: relative;
}
.testi-card::before {
  content: '"'; font-family: Georgia, serif;
  font-size: 80px; color: var(--orange); opacity: 0.3;
  position: absolute; top: 10px; right: 20px; line-height: 1;
}
.testi-stars { color: var(--gold); font-size: 16px; margin-bottom: 16px; letter-spacing: 2px; }
.testi-text { font-size: 14px; color: var(--gray-light); line-height: 1.8; margin-bottom: 24px; font-style: italic; font-weight: 500; }
.testi-author { display: flex; align-items: center; gap: 12px; }
.testi-avatar {
  width: 44px; height: 44px; border-radius: 50%;
  background: linear-gradient(135deg, var(--maroon), var(--orange));
  display: flex; align-items: center; justify-content: center;
  font-weight: 900; font-size: 16px; color: white; flex-shrink: 0;
}
.testi-name { font-weight: 800; font-size: 14px; }
.testi-meta { font-size: 12px; color: var(--orange); margin-top: 2px; font-weight: 600; }
.testi-upload-banner {
  text-align: center; padding: 48px 40px;
  border: 2px dashed #2a2a2a; border-radius: 8px;
  color: var(--gray-light); margin-top: 24px;
}
.testi-upload-banner p { font-size: 15px; font-weight: 600; }
.testi-upload-banner .hint { font-size: 13px; color: #555; margin-top: 8px; font-weight: 500; }

/* -- PROCESS -- */
.process { padding: 100px 40px; background: var(--black); }
.process-inner { max-width: 1000px; margin: 0 auto; }
.process-steps { display: flex; flex-direction: column; gap: 0; margin-top: 64px; }
.process-step { display: grid; grid-template-columns: 80px 1fr; gap: 0; position: relative; }
.step-left { display: flex; flex-direction: column; align-items: center; }
.step-num {
  width: 52px; height: 52px; border-radius: 50%;
  background: var(--black3); border: 2px solid var(--orange);
  display: flex; align-items: center; justify-content: center;
  font-weight: 900; font-size: 18px; color: var(--orange); flex-shrink: 0; z-index: 1;
}
.step-line { width: 2px; background: #1e1e1e; flex: 1; margin: 8px 0; }
.process-step:last-child .step-line { display: none; }
.step-right { padding: 4px 0 48px 32px; }
.step-right h3 { font-size: 18px; font-weight: 800; margin-bottom: 8px; }
.step-right p { font-size: 14px; color: var(--gray-light); line-height: 1.7; font-weight: 500; }

/* -- CTA BANNER -- */
.cta-banner {
  background: linear-gradient(135deg, var(--maroon) 0%, #3d0000 50%, #1a0800 100%);
  padding: 100px 40px; text-align: center;
  border-top: 1px solid var(--maroon); border-bottom: 1px solid var(--maroon);
  position: relative; overflow: hidden;
}
.cta-banner::before {
  content: 'RESET';
  font-weight: 900; font-size: 280px; color: rgba(255,255,255,0.025);
  position: absolute; top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  white-space: nowrap; pointer-events: none; letter-spacing: 20px;
  overflow: hidden; max-width: 100%;
}
.cta-banner h2 {
  font-weight: 900; font-size: clamp(38px, 5.5vw, 72px);
  line-height: 1.05; margin-bottom: 20px; position: relative; z-index: 1;
}
.cta-banner p {
  font-size: 17px; color: rgba(240,237,232,0.7);
  margin-bottom: 40px; max-width: 600px; margin-left: auto; margin-right: auto;
  position: relative; z-index: 1; font-weight: 500;
}
.cta-banner .btn-primary { font-size: 17px; padding: 18px 48px; position: relative; z-index: 1; }
.cta-guarantee { margin-top: 24px; font-size: 12px; color: rgba(255,255,255,0.4); position: relative; z-index: 1; font-weight: 600; }

/* -- FAQ -- */
.faq { padding: 100px 40px; background: var(--black2); }
.faq-inner { max-width: 800px; margin: 0 auto; }
.faq-list { margin-top: 56px; }
.faq-item { border-bottom: 1px solid #1e1e1e; }
.faq-q {
  padding: 22px 0; display: flex; justify-content: space-between; align-items: center;
  cursor: pointer; font-size: 15px; font-weight: 700; transition: color 0.2s; user-select: none;
}
.faq-q:hover { color: var(--orange); }
.faq-icon { font-size: 20px; color: var(--orange); transition: transform 0.25s; flex-shrink: 0; }
.faq-a {
  max-height: 0; overflow: hidden;
  font-size: 14px; color: var(--gray-light); line-height: 1.8; font-weight: 500;
  transition: max-height 0.35s ease, padding 0.25s;
}
.faq-item.open .faq-a { max-height: 200px; padding-bottom: 20px; }
.faq-item.open .faq-icon { transform: rotate(45deg); }

/* -- PAYMENT -- */
.payment { padding: 80px 40px; background: var(--black); }
.payment-inner { max-width: 900px; margin: 0 auto; text-align: center; }
.payment-inner h2 { font-weight: 900; font-size: 44px; margin-bottom: 12px; }
.payment-inner p { font-size: 14px; color: var(--gray-light); margin-bottom: 40px; font-weight: 500; }
.payment-options { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; margin-bottom: 32px; }
.pay-opt {
  background: var(--black3); border: 1px solid #2a2a2a;
  border-radius: 8px; padding: 20px 28px;
  font-size: 15px; font-weight: 700; color: var(--white);
  display: flex; align-items: center; gap: 10px;
  cursor: pointer; transition: border-color 0.2s;
}
.pay-opt.active { border-color: var(--orange); }
.pay-opt:hover { border-color: var(--gold); }
.pay-note { font-size: 13px; color: var(--gray-light); line-height: 1.8; font-weight: 500; }

/* -- FOOTER -- */
footer { background: var(--black2); border-top: 1px solid #1a1a1a; padding: 60px 40px 32px; }
.footer-grid {
  max-width: 1200px; margin: 0 auto;
  display: grid; grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px; margin-bottom: 48px;
}
.footer-logo {
  font-weight: 900; font-size: 26px; letter-spacing: 3px;
  color: var(--white); margin-bottom: 16px;
}
.footer-logo span { color: var(--orange); }
.footer-about { font-size: 13px; color: var(--gray-light); line-height: 1.8; font-weight: 500; }
.footer-col h4 {
  font-size: 11px; font-weight: 800; letter-spacing: 2px;
  color: var(--orange); text-transform: uppercase; margin-bottom: 20px;
}
.footer-col ul { list-style: none; }
.footer-col ul li { margin-bottom: 12px; }
.footer-col ul li a {
  color: var(--gray-light); text-decoration: none;
  font-size: 13px; font-weight: 600; transition: color 0.2s;
}
.footer-col ul li a:hover { color: var(--orange); }
.footer-social { display: flex; gap: 12px; margin-top: 24px; }
.soc-btn {
  width: 38px; height: 38px; border-radius: 4px;
  background: var(--black3); border: 1px solid #2a2a2a;
  display: flex; align-items: center; justify-content: center;
  font-size: 16px; cursor: pointer; text-decoration: none;
  color: var(--gray-light); transition: border-color 0.2s, color 0.2s;
}
.soc-btn:hover { border-color: var(--orange); color: var(--orange); }
.footer-bottom {
  max-width: 1200px; margin: 0 auto;
  border-top: 1px solid #1a1a1a; padding-top: 24px;
  display: flex; justify-content: space-between; align-items: center;
  flex-wrap: wrap; gap: 12px; font-size: 12px; color: var(--gray-light); font-weight: 600;
}
.footer-bottom a { color: var(--gray-light); text-decoration: none; }
.footer-bottom a:hover { color: var(--orange); }
.footer-disclaimer { max-width: 1200px; margin: 0 auto; font-size: 11px; color: #333; margin-top: 24px; line-height: 1.7; font-weight: 500; }

/* -- STICKY BAR -- */
.sticky-bar {
  position: fixed; bottom: 0; left: 0; right: 0;
  background: rgba(10,10,10,0.97); border-top: 1px solid #222;
  padding: 12px 24px; display: none;
  align-items: center; justify-content: space-between; z-index: 99;
}
.sticky-bar-text { font-size: 14px; font-weight: 700; }
.sticky-bar-text span { color: var(--orange); }

/* -- SCROLL REVEAL -- */
.reveal { opacity: 1; transform: none; }
@media (prefers-reduced-motion: no-preference) {
  .js-reveal-ready .reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.5s ease, transform 0.5s ease; }
  .js-reveal-ready .reveal.visible { opacity: 1; transform: translateY(0); }
}

/* -------------------------------------------
   COURSE PORTAL (Student)
------------------------------------------- */
#course-portal {
  min-height: 100vh; background: var(--black);
  display: none; flex-direction: column;
}
#course-portal.active { display: flex; }
.portal-nav {
  background: var(--black2); border-bottom: 1px solid #222;
  padding: 0 32px; height: 60px;
  display: flex; align-items: center; justify-content: space-between;
}
.portal-brand { font-weight: 900; font-size: 18px; letter-spacing: 2px; }
.portal-brand span { color: var(--orange); }
.portal-user {
  display: flex; align-items: center; gap: 16px;
  font-size: 13px; font-weight: 600; color: var(--gray-light);
}
.portal-logout {
  background: transparent; border: 1px solid #333; color: var(--gray-light);
  padding: 6px 14px; border-radius: 4px; cursor: pointer;
  font-family: 'Montserrat', sans-serif; font-size: 12px; font-weight: 700;
  transition: border-color 0.2s;
}
.portal-logout:hover { border-color: var(--orange); color: var(--orange); }
.portal-layout {
  display: grid; grid-template-columns: 300px 1fr; flex: 1; overflow: hidden;
  height: calc(100vh - 60px);
}
.portal-sidebar {
  background: var(--black2); border-right: 1px solid #1e1e1e;
  overflow-y: auto; padding: 24px 0;
}
.sidebar-title {
  font-size: 11px; font-weight: 800; letter-spacing: 3px; color: var(--orange);
  text-transform: uppercase; padding: 0 24px; margin-bottom: 16px;
}
.lesson-item {
  padding: 14px 24px; cursor: pointer;
  display: flex; align-items: flex-start; gap: 12px;
  transition: background 0.15s; border-left: 3px solid transparent;
}
.lesson-item:hover { background: rgba(255,107,26,0.05); }
.lesson-item.active { background: rgba(255,107,26,0.1); border-left-color: var(--orange); }
.lesson-item.locked { opacity: 0.4; cursor: not-allowed; }
.lesson-num {
  font-family: 'JetBrains Mono', monospace; font-size: 11px;
  font-weight: 600; color: var(--gray); margin-top: 2px; flex-shrink: 0;
}
.lesson-info h4 { font-size: 13px; font-weight: 700; margin-bottom: 3px; line-height: 1.4; }
.lesson-info span { font-size: 11px; color: var(--gray-light); font-weight: 600; }
.lesson-status { margin-left: auto; flex-shrink: 0; font-size: 14px; }
.portal-main { overflow-y: auto; padding: 32px; }

/* -- Mobile lesson drawer -- */
.mob-lessons-bar {
  display: none;
  background: var(--black2);
  border-bottom: 1px solid #1e1e1e;
  padding: 0 16px;
  height: 48px;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  position: sticky;
  top: 0;
  z-index: 50;
}
.mob-lessons-bar-label { font-size: 12px; font-weight: 800; letter-spacing: 2px; color: var(--orange); text-transform: uppercase; }
.mob-lessons-bar-info { font-size: 12px; color: var(--gray-light); font-weight: 600; }
.mob-lessons-bar-arrow { font-size: 18px; color: var(--orange); transition: transform 0.2s; }
.mob-lessons-bar.open .mob-lessons-bar-arrow { transform: rotate(180deg); }
.mob-lesson-drawer {
  display: none;
  background: var(--black2);
  border-bottom: 2px solid var(--orange);
  max-height: 55vh;
  overflow-y: auto;
}
.mob-lesson-drawer.open { display: block; }

.video-player-wrap {
  background: #000; border-radius: 8px; overflow: hidden;
  aspect-ratio: 16/9; position: relative;
  display: flex; align-items: center; justify-content: center;
  border: 1px solid #1e1e1e; margin-bottom: 28px;
}
.video-placeholder {
  display: flex; flex-direction: column; align-items: center; gap: 16px;
  color: var(--gray-light);
}
.video-placeholder .big-play {
  width: 80px; height: 80px; background: var(--orange); border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; transition: transform 0.2s;
}
.video-placeholder .big-play:hover { transform: scale(1.1); }
.video-placeholder .vt { font-size: 14px; font-weight: 600; }
.video-placeholder .vs { font-size: 12px; color: #555; font-weight: 500; }

/* Actual iframe player */
.video-player-wrap iframe, .video-player-wrap video {
  position: absolute; inset: 0; width: 100%; height: 100%; border: none;
}

/* security overlay */
.vid-security {
  position: absolute; inset: 0;
  background: transparent;
  z-index: 10;
  user-select: none;
  pointer-events: none;
}
.vid-watermark {
  position: absolute; bottom: 20px; right: 20px;
  font-size: 12px; font-weight: 800; color: rgba(255,107,26,0.25);
  letter-spacing: 2px; pointer-events: none; user-select: none;
}

.lesson-header h1 { font-size: 26px; font-weight: 900; margin-bottom: 8px; }
.lesson-header p { font-size: 14px; color: var(--gray-light); margin-bottom: 24px; font-weight: 500; }
.lesson-meta {
  display: flex; gap: 20px; margin-bottom: 32px; flex-wrap: wrap;
}
.lesson-meta-badge {
  background: var(--black3); border: 1px solid #2a2a2a;
  padding: 6px 14px; border-radius: 20px;
  font-size: 12px; font-weight: 700; color: var(--gray-light);
  display: flex; align-items: center; gap: 6px;
}
.lesson-notes {
  background: var(--black3); border: 1px solid #1e1e1e;
  border-radius: 6px; padding: 24px; margin-bottom: 24px;
}
.lesson-notes h3 { font-size: 14px; font-weight: 800; margin-bottom: 12px; color: var(--orange); }
.lesson-notes p { font-size: 13px; color: var(--gray-light); line-height: 1.8; font-weight: 500; }
.lesson-nav { display: flex; gap: 12px; }
.prev-btn, .next-btn {
  padding: 12px 24px; border-radius: 4px; cursor: pointer;
  font-family: 'Montserrat', sans-serif; font-size: 13px; font-weight: 800;
  border: none; transition: background 0.2s;
}
.prev-btn { background: var(--black3); color: var(--white); border: 1px solid #333; }
.prev-btn:hover { border-color: var(--orange); color: var(--orange); }
.next-btn { background: var(--orange); color: var(--black); }
.next-btn:hover { background: var(--orange-dim); }

/* progress bar */
.progress-wrap { padding: 16px 24px; background: var(--black2); border-bottom: 1px solid #1e1e1e; }
.progress-top { display: flex; justify-content: space-between; margin-bottom: 8px; font-size: 12px; font-weight: 700; color: var(--gray-light); }
.progress-bar-bg { background: #1e1e1e; border-radius: 3px; height: 4px; }
.progress-bar-fill { background: var(--orange); height: 4px; border-radius: 3px; transition: width 0.3s; }

/* -------------------------------------------
   LOGIN MODAL
------------------------------------------- */
#login-overlay {
  display: none; position: fixed; inset: 0;
  background: rgba(0,0,0,0.92); z-index: 999;
  align-items: center; justify-content: center;
}
#login-overlay.active { display: flex; }
.login-box {
  background: var(--black2); border: 1px solid #2a2a2a;
  border-radius: 8px; padding: 48px 40px; width: 100%; max-width: 420px;
  position: relative;
}
.login-logo { font-weight: 900; font-size: 20px; letter-spacing: 2px; margin-bottom: 8px; }
.login-logo span { color: var(--orange); }
.login-sub { font-size: 13px; color: var(--gray-light); margin-bottom: 32px; font-weight: 500; }
.login-close {
  position: absolute; top: 16px; right: 16px;
  background: transparent; border: none; color: var(--gray-light);
  font-size: 20px; cursor: pointer;
}
.form-group { margin-bottom: 20px; }
.form-group label { display: block; font-size: 12px; font-weight: 800; letter-spacing: 1px; color: var(--gray-light); margin-bottom: 8px; }
.form-group input {
  width: 100%; background: var(--black3); border: 1px solid #2a2a2a;
  border-radius: 4px; padding: 12px 16px;
  color: var(--white); font-family: 'Montserrat', sans-serif;
  font-size: 14px; font-weight: 500;
  outline: none; transition: border-color 0.2s;
}
.form-group input:focus { border-color: var(--orange); }
.login-btn {
  width: 100%; background: var(--orange); color: var(--black);
  border: none; padding: 14px; border-radius: 4px;
  font-family: 'Montserrat', sans-serif; font-size: 14px; font-weight: 800;
  cursor: pointer; transition: background 0.2s; letter-spacing: 1px;
}
.login-btn:hover { background: var(--orange-dim); }
.login-err { color: var(--red); font-size: 12px; font-weight: 600; margin-top: 12px; text-align: center; display: none; }

/* -------------------------------------------
   ADMIN PANEL
------------------------------------------- */
#admin-panel {
  display: none; min-height: 100vh;
  background: var(--black); font-family: 'Montserrat', sans-serif;
}
#admin-panel.active { display: block; }
.admin-nav {
  background: var(--black2); border-bottom: 1px solid #333;
  padding: 0 32px; height: 60px;
  display: flex; align-items: center; justify-content: space-between;
}
.admin-title { font-weight: 900; font-size: 16px; color: var(--orange); letter-spacing: 2px; }
.admin-tabs {
  display: flex; gap: 0; margin-top: 0;
  background: var(--black2); border-bottom: 1px solid #222;
  padding: 0 32px;
}
.admin-tab {
  padding: 16px 24px; cursor: pointer;
  font-size: 13px; font-weight: 700; color: var(--gray-light);
  border-bottom: 2px solid transparent; transition: color 0.2s;
  background: transparent; border-top: none; border-left: none; border-right: none;
  font-family: 'Montserrat', sans-serif;
}
.admin-tab.active { color: var(--orange); border-bottom-color: var(--orange); }
.admin-tab:hover { color: var(--white); }
.admin-body { padding: 32px; max-width: 900px; }
.admin-section { display: none; }
.admin-section.active { display: block; }
.admin-section h2 { font-size: 22px; font-weight: 900; margin-bottom: 24px; }
.admin-card {
  background: var(--black2); border: 1px solid #2a2a2a;
  border-radius: 6px; padding: 28px; margin-bottom: 20px;
}
.admin-card h3 { font-size: 14px; font-weight: 800; color: var(--orange); margin-bottom: 16px; letter-spacing: 1px; }
.admin-field { margin-bottom: 16px; }
.admin-field label { display: block; font-size: 11px; font-weight: 800; letter-spacing: 1px; color: var(--gray-light); margin-bottom: 6px; }
.admin-field input, .admin-field textarea, .admin-field select {
  width: 100%; background: var(--black3); border: 1px solid #333;
  border-radius: 4px; padding: 10px 14px;
  color: var(--white); font-family: 'Montserrat', sans-serif;
  font-size: 13px; font-weight: 500; outline: none; transition: border-color 0.2s;
}
.admin-field input:focus, .admin-field textarea:focus, .admin-field select:focus { border-color: var(--orange); }
.admin-field textarea { height: 80px; resize: vertical; }
.admin-field select option { background: var(--black3); }
.admin-btn {
  background: var(--orange); color: var(--black); border: none;
  padding: 10px 22px; border-radius: 4px; cursor: pointer;
  font-family: 'Montserrat', sans-serif; font-size: 13px; font-weight: 800;
  transition: background 0.2s;
}
.admin-btn:hover { background: var(--orange-dim); }
.admin-btn.del { background: var(--maroon); color: white; }
.admin-btn.del:hover { background: #6a1111; }
.admin-btn.secondary { background: var(--black3); color: var(--white); border: 1px solid #333; }
.admin-btn.secondary:hover { border-color: var(--orange); }
.lesson-list-item {
  background: var(--black3); border: 1px solid #2a2a2a;
  border-radius: 4px; padding: 14px 18px; margin-bottom: 10px;
  display: flex; align-items: center; gap: 12px;
}
.lesson-list-item .drag-handle { color: #444; cursor: grab; font-size: 18px; }
.lesson-list-item .lesson-list-info { flex: 1; }
.lesson-list-item .lesson-list-info h4 { font-size: 13px; font-weight: 700; }
.lesson-list-item .lesson-list-info p { font-size: 11px; color: var(--gray-light); margin-top: 2px; font-weight: 500; }
.admin-notice {
  background: rgba(255,107,26,0.1); border: 1px solid var(--orange);
  border-radius: 6px; padding: 16px 20px; margin-bottom: 24px;
  font-size: 13px; font-weight: 600; color: var(--orange); line-height: 1.6;
}
.student-row {
  background: var(--black3); border: 1px solid #2a2a2a; border-radius: 4px;
  padding: 14px 18px; margin-bottom: 8px;
  display: grid; grid-template-columns: 1fr 1fr 120px 100px;
  align-items: center; gap: 12px;
}
.student-row span { font-size: 13px; font-weight: 600; }
.student-row .email { color: var(--gray-light); font-size: 12px; font-weight: 500; }
.badge-active { background: rgba(34,197,94,0.15); color: var(--green); padding: 3px 10px; border-radius: 3px; font-size: 11px; font-weight: 800; }
.badge-revoke { background: rgba(239,68,68,0.15); color: var(--red); padding: 3px 10px; border-radius: 3px; font-size: 11px; font-weight: 800; }

/* - RESPONSIVE - */
@media (max-width: 900px) {
  nav { padding: 0 16px; height: 60px; }
  .nav-links { display: none; }
  .hamburger { display: flex; }
  .hero { padding: 48px 16px 60px; }
  .hero-grid { grid-template-columns: 1fr; gap: 36px; }
  .hero h1 { font-size: clamp(36px, 9vw, 56px); }
  .hero-sub { font-size: 15px; }
  .hero-btns { flex-direction: column; gap: 12px; }
  .hero-btns .btn-primary, .hero-btns .btn-outline { width: 100%; text-align: center; padding: 14px 20px; }
  .hero-stats { gap: 20px; flex-wrap: wrap; }
  .stat-num { font-size: 28px; }
  .pain { padding: 56px 16px; }
  .pain-grid { grid-template-columns: 1fr; }
  .features { padding: 60px 16px; }
  .features-grid { grid-template-columns: 1fr; }
  .markets { padding: 56px 16px; }
  .pricing { padding: 60px 16px; }
  .pricing-grid { grid-template-columns: 1fr; }
  .price-card { padding: 32px 24px; }
  .price-amount { font-size: 42px; }
  .testi-grid { grid-template-columns: 1fr; }
  .testimonials { padding: 60px 16px; }
  .process { padding: 60px 16px; }
  .cta-banner { padding: 60px 16px; }
  .faq { padding: 60px 16px; }
  .payment { padding: 48px 16px; }
  footer { padding: 48px 16px 100px; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
  .sticky-bar { display: flex; }
  body { padding-bottom: 70px; }
  .portal-layout { grid-template-columns: 1fr; display: block; height: auto; }
  .portal-sidebar { display: none; }
  .mob-lessons-bar { display: flex; }
  .portal-main { padding: 20px 16px; }
  .admin-body { padding: 16px; }
  .admin-tabs { overflow-x: auto; white-space: nowrap; padding: 0 16px; -webkit-overflow-scrolling: touch; }
  .rt-modal { padding: 28px 16px; }
  .about-founders { grid-template-columns: 1fr; }
  #founders { padding: 60px 16px !important; }
}
@media (max-width: 600px) {
  .footer-grid { grid-template-columns: 1fr; }
  .markets-grid { flex-direction: column; align-items: stretch; }
  .hero-stats { gap: 16px; flex-wrap: wrap; }
  .pricing-grid { grid-template-columns: 1fr; }
  .login-box { padding: 32px 20px; margin: 16px; }
  nav { padding: 0 12px; }
  .logo { font-size: 18px; letter-spacing: 2px; }
  .price-amount { font-size: 36px; }
  .section-header h2 { font-size: clamp(26px,7vw,40px); }
  .payment-options { flex-direction: column; }
  .contact-grid { grid-template-columns: 1fr; }
}

/* -- MODALS (About, Terms, Privacy, Contact) -- */
.rt-modal-overlay {
  display: none; position: fixed; inset: 0;
  background: rgba(0,0,0,0.92); z-index: 998;
  align-items: flex-start; justify-content: center;
  overflow-y: auto; padding: 40px 20px;
}
.rt-modal-overlay.active { display: flex; }
.rt-modal {
  background: var(--black2); border: 1px solid #2a2a2a;
  border-radius: 10px; padding: 48px 44px;
  width: 100%; max-width: 720px;
  position: relative; margin: auto;
}
.rt-modal-close {
  position: absolute; top: 16px; right: 20px;
  background: transparent; border: none; color: var(--gray-light);
  font-size: 22px; cursor: pointer; transition: color 0.2s;
}
.rt-modal-close:hover { color: var(--orange); }
.rt-modal h2 {
  font-size: 28px; font-weight: 900; margin-bottom: 8px;
  color: var(--white);
}
.rt-modal .modal-eyebrow {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px; font-weight: 600; color: var(--orange);
  letter-spacing: 4px; text-transform: uppercase; margin-bottom: 20px;
  display: flex; align-items: center; gap: 8px;
}
.rt-modal .modal-eyebrow::before { content: ''; width: 24px; height: 2px; background: var(--orange); }
.rt-modal p { font-size: 14px; color: var(--gray-light); line-height: 1.9; font-weight: 500; margin-bottom: 16px; }
.rt-modal h3 { font-size: 15px; font-weight: 800; color: var(--white); margin: 28px 0 10px; }
.rt-modal a { color: var(--orange); text-decoration: none; }
.rt-modal a:hover { text-decoration: underline; }
.rt-modal hr { border: none; border-top: 1px solid #222; margin: 28px 0; }
.about-founders {
  display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin: 28px 0;
}
.founder-card {
  background: var(--black3); border: 1px solid #2a2a2a;
  border-radius: 8px; padding: 24px 20px; text-align: center;
}
.founder-avatar {
  width: 64px; height: 64px; border-radius: 50%;
  background: linear-gradient(135deg, var(--maroon), var(--orange));
  display: flex; align-items: center; justify-content: center;
  font-weight: 900; font-size: 22px; color: white;
  margin: 0 auto 14px;
}
.founder-name { font-size: 16px; font-weight: 900; color: var(--white); margin-bottom: 4px; }
.founder-role { font-size: 12px; font-weight: 700; color: var(--orange); letter-spacing: 1px; margin-bottom: 8px; }
.founder-desc { font-size: 12px; color: var(--gray-light); line-height: 1.6; font-weight: 500; }
.about-logo-wrap { text-align: center; margin-bottom: 28px; }
.about-logo-wrap img { width: 80px; height: 80px; object-fit: cover; border-radius: 12px; }
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin: 24px 0; }
.contact-card {
  background: var(--black3); border: 1px solid #2a2a2a;
  border-radius: 8px; padding: 20px; display: flex; align-items: center; gap: 14px;
  text-decoration: none; color: var(--white); transition: border-color 0.2s;
}
.contact-card:hover { border-color: var(--orange); }
.contact-card .cc-icon { font-size: 26px; flex-shrink: 0; }
.contact-card .cc-label { font-size: 11px; font-weight: 800; color: var(--orange); letter-spacing: 1px; text-transform: uppercase; margin-bottom: 3px; }
.contact-card .cc-val { font-size: 13px; font-weight: 600; color: var(--gray-light); }
@media (max-width: 600px) {
  .rt-modal { padding: 32px 20px; }
  .about-founders { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
}


/* ----------------------------------------
   RT AI CHATBOT
---------------------------------------- */
#rt-chat-bubble {
  position: fixed; bottom: 28px; right: 28px; z-index: 9999;
  width: 60px; height: 60px; border-radius: 50%;
  background: var(--orange);
  box-shadow: 0 4px 24px rgba(255,107,26,0.5);
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; border: none;
  transition: transform 0.2s, box-shadow 0.2s;
  font-size: 26px;
}
#rt-chat-bubble:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 32px rgba(255,107,26,0.7);
}
#rt-chat-bubble .bubble-close { display: none; }
#rt-chat-bubble.open .bubble-icon { display: none; }
#rt-chat-bubble.open .bubble-close { display: block; font-size: 22px; }

/* Pulse ring when closed */
#rt-chat-bubble::before {
  content: '';
  position: absolute; inset: -4px; border-radius: 50%;
  border: 2px solid var(--orange); opacity: 0;
  animation: chatPulse 2.5s ease-out infinite;
}
@keyframes chatPulse {
  0% { transform: scale(1); opacity: 0.7; }
  100% { transform: scale(1.5); opacity: 0; }
}
#rt-chat-bubble.open::before { display: none; }

/* Unread badge */
#rt-chat-badge {
  position: absolute; top: -2px; right: -2px;
  width: 18px; height: 18px; border-radius: 50%;
  background: var(--green); color: #000;
  font-size: 10px; font-weight: 900;
  display: flex; align-items: center; justify-content: center;
  border: 2px solid var(--black);
}
#rt-chat-badge.hidden { display: none; }

/* Chat window */
#rt-chat-window {
  position: fixed; bottom: 100px; right: 28px; z-index: 9998;
  width: 380px; max-height: 580px;
  background: var(--black2); border: 1px solid #2a2a2a;
  border-radius: 16px; display: flex; flex-direction: column;
  box-shadow: 0 20px 60px rgba(0,0,0,0.6);
  transform: scale(0.85) translateY(20px);
  opacity: 0; pointer-events: none;
  transition: transform 0.25s cubic-bezier(0.34,1.56,0.64,1), opacity 0.2s ease;
  transform-origin: bottom right;
  overflow: hidden;
}
#rt-chat-window.open {
  transform: scale(1) translateY(0);
  opacity: 1; pointer-events: all;
}

/* Chat header */
.chat-header {
  background: linear-gradient(135deg, var(--maroon), #2a0a00);
  border-bottom: 1px solid #3a1a0a;
  padding: 16px 18px;
  display: flex; align-items: center; gap: 12px;
  flex-shrink: 0;
}
.chat-header-avatar {
  width: 40px; height: 40px; border-radius: 50%;
  background: var(--orange);
  display: flex; align-items: center; justify-content: center;
  font-size: 18px; flex-shrink: 0; position: relative;
}
.chat-header-avatar::after {
  content: '';
  position: absolute; bottom: 1px; right: 1px;
  width: 10px; height: 10px; border-radius: 50%;
  background: var(--green); border: 2px solid var(--black2);
}
.chat-header-info { flex: 1; }
.chat-header-name {
  font-size: 14px; font-weight: 900; color: var(--white);
  letter-spacing: 0.5px;
}
.chat-header-status {
  font-size: 11px; color: var(--green); font-weight: 600; margin-top: 1px;
}
.chat-header-close {
  background: transparent; border: none; color: rgba(255,255,255,0.4);
  font-size: 18px; cursor: pointer; padding: 4px;
  transition: color 0.2s;
}
.chat-header-close:hover { color: var(--white); }

/* Messages area */
#chat-messages {
  flex: 1; overflow-y: auto; padding: 16px;
  display: flex; flex-direction: column; gap: 12px;
  min-height: 0;
}
#chat-messages::-webkit-scrollbar { width: 4px; }
#chat-messages::-webkit-scrollbar-track { background: transparent; }
#chat-messages::-webkit-scrollbar-thumb { background: #333; border-radius: 2px; }

.chat-msg {
  display: flex; gap: 8px; max-width: 100%;
  animation: msgIn 0.2s ease;
}
@keyframes msgIn {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}
.chat-msg.user { flex-direction: row-reverse; }

.msg-avatar {
  width: 28px; height: 28px; border-radius: 50%; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  font-size: 12px; font-weight: 800; margin-top: 2px;
}
.chat-msg.bot .msg-avatar { background: var(--orange); color: var(--black); }
.chat-msg.user .msg-avatar { background: #2a2a2a; color: var(--gray-light); }

.msg-bubble {
  padding: 10px 14px; border-radius: 14px;
  font-size: 13px; line-height: 1.7; font-weight: 500;
  max-width: 78%;
}
.chat-msg.bot .msg-bubble {
  background: var(--black3); color: var(--white);
  border-bottom-left-radius: 4px;
  border: 1px solid #222;
}
.chat-msg.user .msg-bubble {
  background: var(--orange); color: var(--black);
  border-bottom-right-radius: 4px;
  font-weight: 700;
}

/* Typing indicator */
.chat-typing { display: flex; gap: 8px; align-items: flex-end; }
.typing-dots {
  display: flex; gap: 4px; padding: 12px 16px;
  background: var(--black3); border-radius: 14px; border-bottom-left-radius: 4px;
  border: 1px solid #222;
}
.typing-dots span {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--orange); opacity: 0.4;
  animation: typingBounce 1.2s ease-in-out infinite;
}
.typing-dots span:nth-child(2) { animation-delay: 0.2s; }
.typing-dots span:nth-child(3) { animation-delay: 0.4s; }
@keyframes typingBounce {
  0%, 60%, 100% { transform: translateY(0); opacity: 0.4; }
  30% { transform: translateY(-6px); opacity: 1; }
}

/* Quick replies */
.quick-replies {
  display: flex; flex-wrap: wrap; gap: 6px;
  padding: 0 16px 8px; flex-shrink: 0;
}
.quick-reply-btn {
  background: transparent; border: 1px solid #333;
  color: var(--gray-light); padding: 6px 12px; border-radius: 20px;
  font-size: 12px; font-weight: 600; cursor: pointer;
  font-family: 'Montserrat', sans-serif;
  transition: border-color 0.2s, color 0.2s, background 0.2s;
  white-space: nowrap;
}
.quick-reply-btn:hover {
  border-color: var(--orange); color: var(--orange);
  background: rgba(255,107,26,0.05);
}

/* Input area */
.chat-input-area {
  padding: 12px 14px; border-top: 1px solid #1e1e1e;
  display: flex; gap: 8px; align-items: flex-end; flex-shrink: 0;
  background: var(--black2);
}
#chat-input {
  flex: 1; background: var(--black3); border: 1px solid #2a2a2a;
  border-radius: 10px; padding: 10px 14px;
  color: var(--white); font-family: 'Montserrat', sans-serif;
  font-size: 13px; font-weight: 500; outline: none;
  resize: none; max-height: 80px; min-height: 40px;
  transition: border-color 0.2s; line-height: 1.5;
}
#chat-input:focus { border-color: var(--orange); }
#chat-input::placeholder { color: #444; }
#chat-send-btn {
  width: 40px; height: 40px; border-radius: 10px;
  background: var(--orange); border: none; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0; transition: background 0.2s, transform 0.15s;
}
#chat-send-btn:hover { background: var(--orange-dim); transform: scale(1.05); }
#chat-send-btn:disabled { background: #333; cursor: not-allowed; transform: none; }

/* Powered by footer */
.chat-powered {
  text-align: center; font-size: 10px; color: #333; font-weight: 600;
  padding: 6px; border-top: 1px solid #1a1a1a; flex-shrink: 0;
  letter-spacing: 0.5px;
}

@media (max-width: 480px) {
  #rt-chat-window { width: calc(100vw - 24px); right: 12px; bottom: 90px; }
  #rt-chat-bubble { bottom: 20px; right: 16px; }
}


/* -- MOBILE OVERFLOW GUARD -- */
section, footer, nav, .ticker-wrap {
  max-width: 100%;
  box-sizing: border-box;
}
.hero-grid, .features-inner, .markets-inner, .pricing-inner,
.testi-inner, .process-inner, .faq-inner, .footer-grid,
.payment-inner, .pain-inner, .admin-body, .portal-layout {
  max-width: 100%;
}

/* -- HERO VIDEO REAL EMBED -- */
.hero-video-thumb {
  position:absolute;inset:0;display:flex;flex-direction:column;
  align-items:center;justify-content:center;cursor:pointer;
  background:linear-gradient(135deg,rgba(139,26,26,0.25),rgba(255,107,26,0.12));
}
.hero-yt-player { border-radius:8px; overflow:hidden; }

/* -- DOUBTS & FEEDBACK -- */
.doubts-section {
  padding:28px 32px;border-top:1px solid #1e1e1e;
  background:var(--black2);
}
.doubts-title {
  font-size:17px;font-weight:900;color:var(--white);margin-bottom:6px;
}
.doubts-sub {
  font-size:13px;color:var(--gray-light);margin-bottom:16px;line-height:1.6;
}
.doubt-form {
  display:flex;flex-direction:column;gap:10px;margin-bottom:24px;
}
.doubt-form textarea {
  background:var(--black3);border:1px solid #2a2a2a;border-radius:8px;
  padding:12px 14px;color:var(--white);font-family:'Montserrat',sans-serif;
  font-size:13px;resize:vertical;outline:none;min-height:80px;
  transition:border-color 0.2s;
}
.doubt-form textarea:focus { border-color:var(--orange); }
.doubt-submit {
  align-self:flex-end;background:var(--orange);color:#000;
  border:none;border-radius:8px;padding:10px 24px;
  font-size:13px;font-weight:800;cursor:pointer;
  font-family:'Montserrat',sans-serif;transition:opacity 0.2s;
}
.doubt-submit:hover { opacity:0.85; }
.doubts-list { display:flex;flex-direction:column;gap:14px; }
.doubt-card {
  background:var(--black3);border:1px solid #222;border-radius:8px;
  padding:14px 16px;
}
.doubt-meta {
  display:flex;justify-content:space-between;align-items:center;
  margin-bottom:8px;
}
.doubt-author { font-size:12px;font-weight:800;color:var(--orange); }
.doubt-time { font-size:11px;color:#444; }
.doubt-text { font-size:13px;color:var(--gray-light);line-height:1.7; }
.doubt-reply {
  margin-top:10px;padding:10px 14px;
  background:rgba(255,107,26,0.06);border-left:3px solid var(--orange);
  border-radius:0 6px 6px 0;
}
.doubt-reply-label { font-size:11px;font-weight:800;color:var(--orange);margin-bottom:4px; }
.doubt-reply-text { font-size:13px;color:var(--gray-light);line-height:1.6; }

/* -- PROGRESS RING in portal -- */
.progress-ring-wrap {
  display:flex;align-items:center;gap:16px;padding:16px 24px;
  background:var(--black2);border-bottom:1px solid #1e1e1e;flex-wrap:wrap;
}
.progress-ring-info { flex:1; }
.progress-ring-label { font-size:11px;font-weight:800;color:var(--orange);letter-spacing:2px;margin-bottom:4px; }
.progress-ring-stats { font-size:20px;font-weight:900;color:var(--white); }
.progress-ring-sub { font-size:12px;color:var(--gray-light);margin-top:2px; }
.progress-bar-bg { background:#1e1e1e;border-radius:3px;height:6px;margin-top:10px; }
.progress-bar-fill { background:linear-gradient(90deg,var(--maroon),var(--orange));height:6px;border-radius:3px;transition:width 0.4s ease; }

/* -- PAYMENT FORM FOCUS -- */
#pay-name:focus,#pay-email:focus,#pay-phone:focus {
  border-color:var(--orange) !important;
}

/* -- LESSON ITEM IMPROVED -- */
.lesson-item {
  display:flex;align-items:center;gap:10px;
  padding:12px 14px;cursor:pointer;border-bottom:1px solid #111;
  transition:background 0.15s;
}
.lesson-item:hover { background:rgba(255,107,26,0.06); }
.lesson-item.active { background:rgba(255,107,26,0.1);border-left:3px solid var(--orange); }
.lesson-item.completed .lesson-num { color:var(--green); }
.lesson-num { font-size:12px;font-weight:800;color:#444;min-width:22px;font-family:'JetBrains Mono',monospace; }
.lesson-info h4 { font-size:13px;font-weight:700;color:var(--white);margin-bottom:2px; }
.lesson-info span { font-size:11px;color:#555; }
.lesson-status { margin-left:auto;font-size:14px;flex-shrink:0; }


/* -- HAMBURGER / MOBILE NAV -- */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 4px;
  background: transparent;
  border: none;
  z-index: 1001;
}
.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: all 0.3s ease;
}
.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.mobile-nav-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.97);
  z-index: 1000;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0;
}
.mobile-nav-overlay.open { display: flex; }
.mobile-nav-overlay ul {
  list-style: none;
  text-align: center;
  padding: 0;
  margin: 0;
  width: 100%;
}
.mobile-nav-overlay ul li {
  border-bottom: 1px solid #1a1a1a;
}
.mobile-nav-overlay ul li a {
  display: block;
  padding: 20px 32px;
  font-size: 18px;
  font-weight: 800;
  color: var(--white);
  text-decoration: none;
  letter-spacing: 1px;
  transition: color 0.2s, background 0.2s;
}
.mobile-nav-overlay ul li a:hover,
.mobile-nav-overlay ul li a:active {
  color: var(--orange);
  background: rgba(255,107,26,0.06);
}
.mobile-nav-overlay .mob-cta {
  margin-top: 24px;
  background: var(--orange);
  color: #000 !important;
  border-radius: 8px;
  font-size: 16px !important;
  padding: 16px 48px !important;
  font-weight: 900 !important;
}
.mobile-nav-overlay .mob-login {
  color: var(--orange) !important;
  font-size: 14px !important;
  padding: 12px 32px !important;
  border: 1px solid #2a2a2a;
  border-radius: 8px;
  margin-top: 8px;
}

@media (max-width: 768px) {
  .hamburger { display: flex; }
  nav .nav-links { display: none !important; }
}
/* Production hardening additions */
img { max-width: 100%; height: auto; }
button:disabled { opacity: 0.55; cursor: not-allowed; }
.auth-status, .payment-status {
  margin-top: 12px;
  font-size: 12px;
  font-weight: 700;
  color: var(--gray-light);
  line-height: 1.5;
}
#success-status[data-state="pending"] { color: var(--gray-light); }
#success-status[data-state="verified"] { color: var(--green); font-weight: 800; }
.locked-state {
  border: 1px solid rgba(255,107,26,0.35);
  background: rgba(255,107,26,0.06);
  border-radius: 8px;
  padding: 16px;
  color: var(--gray-light);
  font-size: 13px;
  line-height: 1.7;
}
.admin-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 8px;
  border-radius: 999px;
  background: rgba(255,107,26,0.1);
  color: var(--orange);
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.8px;
  text-transform: uppercase;
}
@media (max-width: 760px) {
  nav { padding: 0 16px; }
  .hero { padding-left: 16px; padding-right: 16px; }
  .hero h1, .payment-inner h2 { font-size: clamp(34px, 12vw, 54px); line-height: 0.95; }
  .price-card, .admin-card, .rt-modal { max-width: 100%; }
  .sticky-bar { left: 12px; right: 12px; width: auto; }
  .portal-nav, .admin-nav { padding-left: 16px; padding-right: 16px; gap: 10px; }
}
