/* AI Students Club — design system. Outfit type, dark blue palette. */

@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@400;500;600;700;800&display=swap');

:root {
  --font: 'Outfit', system-ui, sans-serif;
  --bg: #0a1628;
  --surface: #0f1d35;
  --surface-2: #152744;
  --ink: #eef2ff;
  --muted: #8b9cc0;
  --border: #1e3050;
  --primary: #3b82f6;
  --primary-dark: #2563eb;
  --primary-ink: #ffffff;
  --accent: #a78bfa;
  --accent-dark: #7c3aed;
  --warn: #f59e0b;
  --danger: #ef4444;
  --success: #10b981;
  --radius-sm: 8px;
  --radius: 14px;
  --radius-lg: 20px;
  --shadow: 0 1px 2px rgba(0,0,0,.3), 0 10px 30px rgba(0,0,0,.35);
  --portal-bg: #0a1628;
  --portal-surface: #0f1d35;
  --portal-border: #1e3050;
  --glow-primary: rgba(59,130,246,.15);
  --glow-accent: rgba(124,58,237,.12);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
html, body { margin: 0; padding: 0; }
body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
  line-height: 1.6;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
h1, h2, h3, h4 { margin: 0 0 .5em; font-weight: 700; letter-spacing: -0.02em; }
p { margin: 0 0 1em; color: var(--muted); }
.container { max-width: 1140px; margin: 0 auto; padding: 0 20px; }

/* ── Buttons ── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-family: var(--font); font-weight: 600; font-size: 15px;
  padding: 12px 24px; border-radius: 999px; border: none; cursor: pointer;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
  text-decoration: none;
}
.btn-primary { background: var(--primary); color: var(--primary-ink); }
.btn-primary:hover { background: var(--primary-dark); transform: translateY(-1px); box-shadow: 0 6px 20px rgba(59,130,246,.35); }
.btn-ghost { background: transparent; border: 1.5px solid rgba(255,255,255,.2); color: var(--ink); }
.btn-ghost:hover { border-color: var(--primary); color: var(--primary); }
.btn-accent { background: var(--accent-dark); color: #fff; }
.btn-accent:hover { background: var(--accent); transform: translateY(-1px); box-shadow: 0 6px 20px rgba(124,58,237,.35); }
.btn-outline { background: transparent; border: 1.5px solid var(--border); color: var(--ink); }
.btn-outline:hover { border-color: var(--primary); color: var(--primary); }
.btn-block { width: 100%; }
.btn-sm { padding: 8px 16px; font-size: 13px; }
.btn-danger { background: var(--danger); color: #fff; }

/* ── Top nav (public) ── */
.site-header { position: sticky; top: 0; z-index: 40; background: rgba(10,22,40,.88); backdrop-filter: blur(14px); border-bottom: 1px solid var(--border); }
.site-header .bar { display: flex; align-items: center; justify-content: space-between; padding: 14px 20px; }
.brand { font-weight: 800; font-size: 20px; letter-spacing: -0.02em; }
.brand span { color: var(--primary); }

/* ── Logo size fix ── */
.brand img { max-height: 90px; width: auto; display: block; }
.brand { display: flex; align-items: center; flex-shrink: 0; }
.site-header .bar { flex-wrap: nowrap; gap: 16px; }
.nav-links { flex-shrink: 0; white-space: nowrap; }
.ac-footer .brand img, .ac-footer img.footer-logo, .ac-footer-brand img { max-height: 70px; width: auto; }
.nav-links { display: flex; gap: 28px; font-weight: 500; font-size: 14px; }
.nav-links a:hover { color: var(--primary); }
.mobile-nav { display: none; }

@media (max-width: 760px) {
  .nav-links, .site-header .bar > .btn { display: none; }
  .mobile-nav { display: block; position: relative; }
  .mobile-nav summary { list-style: none; cursor: pointer; width: 34px; height: 34px; display: flex; align-items: center; justify-content: center; border: 1.5px solid var(--border); border-radius: 8px; }
  .mobile-nav summary::-webkit-details-marker { display: none; }
  .mobile-nav[open] summary { border-color: var(--primary); }
  .mobile-nav .menu { position: absolute; right: 0; top: 44px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-sm); box-shadow: var(--shadow); padding: 10px; min-width: 180px; display: flex; flex-direction: column; gap: 2px; z-index: 50; }
  .mobile-nav .menu a { padding: 10px 12px; border-radius: 8px; font-weight: 600; }
  .mobile-nav .menu a:hover { background: var(--bg); }
}


/* ══════════════════════════════════════════════
   HOMEPAGE SECTIONS  (ah- prefix)
   ══════════════════════════════════════════════ */

/* ── Scroll reveal ── */
.ah-reveal { opacity: 0; transform: translateY(24px); transition: opacity .6s ease, transform .6s ease; }
.ah-reveal.is-in { opacity: 1; transform: translateY(0); }

/* ── Shared section primitives ── */
.ah-section { padding: 80px 0; }
.ah-center { text-align: center; }
.ah-eyebrow { display: block; color: var(--accent); font-weight: 700; font-size: 13px; text-transform: uppercase; letter-spacing: .1em; margin-bottom: 12px; }
.ah-h2 { font-size: 38px; font-weight: 800; letter-spacing: -0.025em; margin-bottom: 12px; }
.ah-h2 em { font-style: normal; color: var(--primary); }
.ah-sub { color: var(--muted); font-size: 17px; max-width: 640px; margin: 0 auto 40px; line-height: 1.7; }
.ah-badge { display: inline-flex; align-items: center; gap: 6px; background: var(--glow-primary); color: var(--primary); font-weight: 600; font-size: 13px; padding: 6px 16px; border-radius: 999px; margin-bottom: 20px; border: 1px solid rgba(59,130,246,.2); }
.ah-hl { color: var(--primary); }

/* ── HERO ── */
.ah-hero { padding: 80px 0 60px; overflow: hidden; }
.ah-hero-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: 56px; align-items: center; }
.ah-hero h1 { font-size: 48px; font-weight: 800; line-height: 1.1; letter-spacing: -0.03em; margin: 0 0 20px; }
.ah-hero-sub { color: var(--muted); font-size: 17px; line-height: 1.7; max-width: 520px; margin: 0 0 28px; }
.ah-cta-row { display: flex; gap: 14px; flex-wrap: wrap; }
.ah-hero-proof { display: flex; gap: 16px; margin-top: 40px; flex-wrap: wrap; }
.ah-hero-proof-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 14px 20px; text-align: center; min-width: 100px; }
.ah-hero-proof-num { display: block; font-size: 22px; font-weight: 800; color: var(--primary); line-height: 1.2; }
.ah-hero-proof-label { display: block; font-size: 12px; color: var(--muted); margin-top: 4px; line-height: 1.3; }

/* Hero visual with photo */
.ah-hero-visual { position: relative; }
.ah-hero-phone { position: relative; border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow); border: 1px solid var(--border); }
.ah-hero-photo-wrap { border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow); border: 1px solid var(--border); }
.ah-hero-photo { width: 100%; height: auto; display: block; aspect-ratio: 4/3; object-fit: cover; }
.ah-float-card { position: absolute; display: flex; align-items: center; gap: 8px; background: var(--surface); border: 1px solid var(--border); border-radius: 999px; padding: 10px 18px; font-size: 13px; font-weight: 600; box-shadow: var(--shadow); color: var(--ink); white-space: nowrap; }
.ah-float-card svg { color: var(--accent); flex-shrink: 0; }
.ah-float-1 { top: -14px; right: 20px; animation: ah-float 3s ease-in-out infinite; }
.ah-float-2 { bottom: 20px; left: -20px; animation: ah-float 3s ease-in-out infinite .5s; }
@keyframes ah-float { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-6px); } }

@media (max-width: 900px) {
  .ah-hero-grid { grid-template-columns: 1fr; text-align: center; }
  .ah-hero h1 { font-size: 34px; }
  .ah-hero-sub { margin-left: auto; margin-right: auto; }
  .ah-cta-row { justify-content: center; }
  .ah-hero-proof { justify-content: center; }
  .ah-hero-visual { max-width: 420px; margin: 0 auto; }
}
@media (max-width: 520px) { .ah-float-1 { right: 8px; } .ah-float-2 { left: 8px; } }

/* ── PROOF STRIP ── */
.ah-proof-strip { background: var(--surface); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); padding: 36px 0; }
.ah-proof-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; text-align: center; }
.ah-proof-num { font-size: 26px; font-weight: 800; color: var(--primary); }
.ah-proof-num span { color: var(--primary); }
.ah-proof-label { font-size: 13px; color: var(--muted); margin-top: 4px; }
@media (max-width: 700px) { .ah-proof-grid { grid-template-columns: 1fr 1fr; } }

/* ── COURSES GRID ── */
.ah-courses-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 8px; }
@media (max-width: 900px) { .ah-courses-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .ah-courses-grid { grid-template-columns: 1fr; } }

.ah-course-card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  overflow: hidden; box-shadow: var(--shadow); text-align: left;
  transition: transform .2s ease, box-shadow .2s ease; display: block;
}
.ah-course-card:hover { transform: translateY(-4px); box-shadow: 0 12px 40px rgba(0,0,0,.5); }
.ah-course-media { position: relative; }
.ah-course-media .thumb-wrap { border-radius: 0; }
.ah-course-body { padding: 20px; }
.ah-course-eyebrow { display: block; font-size: 11px; color: var(--accent); font-weight: 700; text-transform: uppercase; letter-spacing: .06em; margin-bottom: 6px; }
.ah-course-discount { display: flex; align-items: center; gap: 10px; margin-bottom: 6px; }
.ah-course-was { color: var(--muted); text-decoration: line-through; font-size: 14px; }
.ah-course-off { background: rgba(239,68,68,.15); color: #f87171; font-size: 12px; font-weight: 700; padding: 2px 8px; border-radius: 999px; }
.ah-course-title { font-size: 18px; margin-bottom: 6px; color: var(--ink); }
.ah-course-tagline { font-size: 14px; color: var(--muted); margin-bottom: 14px; }
.ah-course-cta { display: inline-block; font-size: 14px; font-weight: 600; color: var(--primary); }

/* ── OFFER / PRICING ── */
.ah-offer { background: var(--surface); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.ah-offer-header { display: flex; align-items: center; justify-content: space-between; gap: 24px; margin-bottom: 40px; flex-wrap: wrap; }
.ah-offer-header-left { flex: 1; min-width: 280px; }
.ah-offer-limited { display: inline-block; background: rgba(239,68,68,.12); color: #f87171; font-weight: 700; font-size: 12px; padding: 4px 14px; border-radius: 999px; margin-bottom: 12px; text-transform: uppercase; letter-spacing: .05em; }
.ah-offer-discount-badge { background: var(--primary); color: #fff; font-weight: 800; font-size: 24px; padding: 18px 28px; border-radius: var(--radius); white-space: nowrap; flex-shrink: 0; }

.ah-offer-card { position: relative; background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 48px; overflow: hidden; }
.ah-offer-glow { position: absolute; top: -120px; right: -80px; width: 320px; height: 320px; background: radial-gradient(circle, var(--glow-primary), transparent 70%); pointer-events: none; }
.ah-offer-top { text-align: center; margin-bottom: 40px; position: relative; }
.ah-offer-badge { display: inline-block; background: var(--primary); color: var(--primary-ink); font-weight: 700; font-size: 13px; padding: 6px 18px; border-radius: 999px; margin-top: 12px; }
.ah-offer-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; position: relative; }
@media (max-width: 900px) { .ah-offer-grid { grid-template-columns: 1fr; } .ah-offer-card { padding: 28px; } }

.ah-plan-card { background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius); padding: 32px; position: relative; transition: transform .2s ease, box-shadow .2s ease; }
.ah-plan-card:hover { transform: translateY(-4px); box-shadow: 0 12px 40px rgba(0,0,0,.4); }
.ah-plan-card h3 { font-size: 20px; margin-bottom: 8px; }
.ah-plan-price { font-size: 36px; font-weight: 800; color: var(--primary); }
.ah-plan-sub { font-size: 14px; color: var(--muted); margin-bottom: 24px; }
.ah-plan-price-row { display: flex; align-items: center; gap: 10px; margin-bottom: 6px; }
.ah-plan-was { color: var(--muted); text-decoration: line-through; font-size: 15px; }
.ah-plan-features { list-style: none; padding: 0; margin: 0 0 24px; }
.ah-plan-features li { display: flex; align-items: center; gap: 10px; padding: 8px 0; font-size: 14px; color: var(--ink); border-bottom: 1px solid rgba(255,255,255,.04); }
.ah-plan-features li:last-child { border-bottom: none; }
.ah-plan-features svg { flex-shrink: 0; }
.ah-plan-featured { border-color: var(--primary); background: linear-gradient(180deg, rgba(59,130,246,.08), var(--bg)); }
.ah-plan-popular { position: absolute; top: -1px; left: 50%; transform: translateX(-50%); background: var(--primary); color: #fff; font-weight: 700; font-size: 12px; padding: 4px 16px; border-radius: 0 0 8px 8px; }

/* Plan gradient borders */
.ah-plan-green { border-color: rgba(16,185,129,.3); }
.ah-plan-green:hover { border-color: rgba(16,185,129,.6); }
.ah-plan-gold { border-color: rgba(59,130,246,.4); }
.ah-plan-gold:hover { border-color: rgba(59,130,246,.7); }
.ah-plan-red { border-color: rgba(167,139,250,.3); }
.ah-plan-red:hover { border-color: rgba(167,139,250,.6); }
.ah-plan-super { position: absolute; top: -1px; left: 50%; transform: translateX(-50%); background: var(--accent-dark); color: #fff; font-weight: 700; font-size: 12px; padding: 4px 16px; border-radius: 0 0 8px 8px; }

/* ── SOLD SEPARATELY ── */
.ah-sold-sep { text-align: center; font-size: 14px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .08em; margin: 48px 0 24px; padding-top: 32px; border-top: 1px solid var(--border); }
.ah-extra-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
@media (max-width: 800px) { .ah-extra-grid { grid-template-columns: 1fr; } }
.ah-extra-card { background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius); padding: 28px; position: relative; transition: transform .2s ease; }
.ah-extra-card:hover { transform: translateY(-3px); }
.ah-extra-gold { border-color: rgba(59,130,246,.25); }
.ah-extra-purple { border-color: rgba(167,139,250,.25); }
.ah-extra-tag { display: inline-block; font-weight: 700; font-size: 11px; padding: 4px 12px; border-radius: 999px; text-transform: uppercase; letter-spacing: .04em; margin-bottom: 16px; }
.ah-tag-gold { background: rgba(59,130,246,.12); color: var(--primary); }
.ah-tag-purple { background: rgba(167,139,250,.12); color: var(--accent); }
.ah-extra-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 20px; margin-bottom: 20px; flex-wrap: wrap; }
.ah-extra-title { font-size: 20px; font-weight: 700; margin-bottom: 6px; }
.ah-extra-desc { font-size: 14px; color: var(--muted); margin: 0; }
.ah-extra-price-block { text-align: right; flex-shrink: 0; }
.ah-extra-was { color: var(--muted); text-decoration: line-through; font-size: 14px; display: block; margin-bottom: 4px; }
.ah-extra-price { font-size: 28px; font-weight: 800; color: var(--primary); line-height: 1.2; }
.ah-extra-usd { font-size: 13px; color: var(--muted); display: block; margin-top: 4px; }
.ah-per { font-size: 16px; font-weight: 500; color: var(--muted); }

/* ── DISCORD / COMMUNITY ── */
.ah-discord { background: var(--bg); border-top: 1px solid var(--border); }
.ah-discord-wrap { display: grid; grid-template-columns: 1.2fr .8fr; gap: 48px; align-items: center; }
@media (max-width: 800px) { .ah-discord-wrap { grid-template-columns: 1fr; } }
.ah-discord-copy { }
.ah-discord-icon { display: block; margin-bottom: 18px; }
.ah-discord-panel { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 32px; text-align: center; }
.ah-discord-membership { display: inline-block; background: var(--glow-accent); color: var(--accent); font-weight: 700; font-size: 12px; padding: 4px 14px; border-radius: 999px; margin-bottom: 14px; text-transform: uppercase; letter-spacing: .05em; }
.ah-discord-price { font-size: 28px; font-weight: 800; color: var(--ink); margin-bottom: 4px; }
.ah-discord-price span { font-size: 16px; font-weight: 500; color: var(--muted); }
.ah-discord-usd { font-size: 14px; color: var(--muted); margin-bottom: 18px; }
.ah-discord-tags { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; }
.ah-discord-tags span { background: var(--surface-2); border: 1px solid var(--border); padding: 6px 14px; border-radius: 999px; font-size: 12px; font-weight: 600; color: var(--muted); }

/* Community (also used by community section) */
.ah-community { background: var(--bg); border-top: 1px solid var(--border); }
.ah-community-wrap { display: grid; grid-template-columns: 1.2fr .8fr; gap: 48px; align-items: center; }
@media (max-width: 800px) { .ah-community-wrap { grid-template-columns: 1fr; } }
.ah-community-list { list-style: none; padding: 0; margin: 20px 0; }
.ah-community-list li { display: flex; align-items: center; gap: 12px; padding: 10px 0; font-size: 15px; color: var(--ink); }
.ah-community-list svg { flex-shrink: 0; }
.ah-community-note { font-size: 13px; color: var(--muted); font-style: italic; }
.ah-community-panel { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 32px; text-align: center; }
.ah-community-tag { display: inline-block; background: rgba(16,185,129,.12); color: var(--success); font-weight: 700; font-size: 12px; padding: 4px 14px; border-radius: 999px; margin-bottom: 14px; text-transform: uppercase; letter-spacing: .05em; }
.ah-community-price { font-size: 28px; font-weight: 800; color: var(--ink); margin-bottom: 4px; }
.ah-community-alt { font-size: 14px; color: var(--muted); margin-bottom: 18px; }
.ah-community-perks { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; }
.ah-community-perks span { background: var(--surface-2); border: 1px solid var(--border); padding: 6px 14px; border-radius: 999px; font-size: 12px; font-weight: 600; color: var(--muted); }

/* ── HOW IT WORKS ── */
.ah-how { background: var(--surface); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.ah-how-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; margin-bottom: 32px; }
@media (max-width: 900px) { .ah-how-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .ah-how-grid { grid-template-columns: 1fr; } }

.ah-how-step { text-align: center; padding: 24px 16px; }
.ah-how-num { display: flex; align-items: center; justify-content: center; width: 48px; height: 48px; border-radius: 50%; background: var(--primary); color: #fff; font-weight: 800; font-size: 20px; margin: 0 auto 16px; }
.ah-how-title { font-size: 17px; margin-bottom: 8px; }
.ah-how-text { font-size: 14px; color: var(--muted); line-height: 1.6; margin: 0; }
.ah-how-note { font-size: 13px; color: var(--muted); max-width: 680px; margin: 0 auto; padding: 20px 24px; background: var(--glow-primary); border: 1px solid rgba(59,130,246,.15); border-radius: var(--radius-sm); }

/* ── FOUNDERS / INSTRUCTORS ── */
.ah-founders { background: var(--bg); }
.ah-founders-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
@media (max-width: 700px) { .ah-founders-grid { grid-template-columns: 1fr; max-width: 380px; margin: 0 auto; } }

.ah-founder-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 32px; text-align: center; transition: transform .2s ease; }
.ah-founder-card:hover { transform: translateY(-4px); }
.ah-founder-photo { width: 100px; height: 100px; border-radius: 50%; overflow: hidden; margin: 0 auto 18px; border: 3px solid var(--primary); position: relative; }
.ah-founder-photo img { width: 100%; height: 100%; object-fit: cover; }
.ah-founder-overlay { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; background: linear-gradient(0deg, rgba(10,22,40,.85) 0%, transparent 60%); border-radius: 50%; opacity: 0; transition: opacity .25s ease; padding: 10px 4px; }
.ah-founder-card:hover .ah-founder-overlay { opacity: 1; }
.ah-founder-name { font-size: 20px; margin-bottom: 4px; }
.ah-founder-role { display: block; font-size: 12px; color: var(--accent); font-weight: 700; text-transform: uppercase; letter-spacing: .05em; margin-bottom: 12px; }
.ah-founder-bio { font-size: 14px; color: var(--muted); line-height: 1.6; margin: 0; }

/* ── FAQ ── */
.ah-faq { background: var(--surface); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.ah-faq-list { max-width: 720px; margin: 0 auto; text-align: left; }
.ah-faq-item { border-bottom: 1px solid var(--border); }
.ah-faq-item summary { display: flex; align-items: center; justify-content: space-between; cursor: pointer; padding: 20px 0; font-weight: 600; font-size: 16px; list-style: none; color: var(--ink); }
.ah-faq-item summary::-webkit-details-marker { display: none; }
.ah-faq-plus { width: 24px; height: 24px; border-radius: 50%; border: 1.5px solid var(--border); display: flex; align-items: center; justify-content: center; flex-shrink: 0; margin-left: 16px; position: relative; transition: transform .2s ease, border-color .2s ease; }
.ah-faq-plus::before, .ah-faq-plus::after { content: ''; position: absolute; background: var(--muted); border-radius: 1px; }
.ah-faq-plus::before { width: 10px; height: 1.5px; }
.ah-faq-plus::after { width: 1.5px; height: 10px; transition: transform .2s ease; }
.ah-faq-item[open] .ah-faq-plus { border-color: var(--primary); transform: rotate(45deg); }
.ah-faq-item[open] .ah-faq-plus::before, .ah-faq-item[open] .ah-faq-plus::after { background: var(--primary); }
.ah-faq-body { padding: 0 0 20px; }
.ah-faq-body p { font-size: 15px; line-height: 1.7; color: var(--muted); margin: 0; }
.ah-faq-help { margin-top: 28px; font-size: 15px; color: var(--muted); }
.ah-faq-help a { color: var(--primary); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }

/* ── FINAL CTA ── */
.ah-final { position: relative; background: var(--bg); overflow: hidden; text-align: center; padding: 100px 0; }
.ah-final-glow { position: absolute; top: 50%; left: 50%; width: 600px; height: 400px; transform: translate(-50%, -50%); background: radial-gradient(ellipse, var(--glow-primary), transparent 70%); pointer-events: none; }
.ah-final-inner { position: relative; }
.ah-final .ah-h2 { font-size: 42px; }
@media (max-width: 600px) { .ah-final .ah-h2 { font-size: 28px; } .ah-final { padding: 60px 0; } }

/* ── WHATSAPP CTA BAR ── */
.ah-whatsapp-bar { background: var(--surface); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); padding: 24px 0; }

/* ── STICKY MOBILE CTA ── */
.ah-mcta { display: none; }
@media (max-width: 640px) {
  .ah-mcta {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 50;
    background: var(--surface); border-top: 1px solid var(--border);
    display: flex; align-items: center; justify-content: space-between; gap: 12px;
    padding: 12px 16px; box-shadow: 0 -8px 24px rgba(0,0,0,.5);
  }
  .ah-mcta-price { flex: 1; }
  .ah-mcta-was { display: block; font-size: 12px; color: var(--muted); text-decoration: line-through; }
  .ah-mcta-now { display: block; font-size: 15px; font-weight: 800; color: var(--primary); }
  .ah-mcta-sub { display: block; font-size: 11px; color: var(--muted); }
  .ah-mcta-btn {
    background: var(--primary); color: #fff; font-weight: 700; font-size: 14px;
    padding: 10px 22px; border-radius: 999px; white-space: nowrap; text-decoration: none;
  }
  body { padding-bottom: 72px; }
}

/* ── WhatsApp / contact FAB ── */
.wa-fab {
  position: fixed; bottom: 24px; right: 24px; z-index: 45;
  width: 56px; height: 56px; border-radius: 50%;
  background: var(--success); color: #fff;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 16px rgba(16,185,129,.4);
  transition: transform .2s ease, box-shadow .2s ease;
}
.wa-fab:hover { transform: scale(1.08); box-shadow: 0 8px 24px rgba(16,185,129,.5); }
@media (max-width: 640px) { .wa-fab { bottom: 84px; } }


/* ══════════════════════════════════════════════
   RICH FOOTER  (ac- prefix)
   ══════════════════════════════════════════════ */
.ac-footer { background: var(--surface); border-top: 1px solid var(--border); padding: 56px 0 0; color: var(--muted); font-size: 14px; }
.ac-footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 32px; }
@media (max-width: 760px) { .ac-footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 480px) { .ac-footer-grid { grid-template-columns: 1fr; } }

.ac-footer-tagline { font-size: 14px; line-height: 1.7; margin-top: 8px; }
.ac-footer-social { display: flex; gap: 14px; margin-top: 18px; }
.ac-footer-social a { color: var(--muted); transition: color .15s ease; }
.ac-footer-social a:hover { color: var(--primary); }
.ac-footer-col a { display: block; margin-bottom: 10px; color: var(--muted); transition: color .15s ease; }
.ac-footer-col a:hover { color: var(--primary); }
.ac-footer-heading { font-size: 13px; text-transform: uppercase; letter-spacing: .05em; color: var(--ink); margin-bottom: 16px; font-weight: 700; }
.ac-footer-contact-item { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; font-size: 13px; }
.ac-footer-contact-item svg { color: var(--accent); flex-shrink: 0; }
.ac-footer-bottom { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px; margin-top: 36px; padding: 20px 0; border-top: 1px solid var(--border); }
.ac-footer-bottom p { margin: 0; font-size: 13px; }
.ac-footer-legal { display: flex; gap: 20px; font-size: 13px; }
.ac-footer-legal a { color: var(--muted); }
.ac-footer-legal a:hover { color: var(--primary); }


/* ══════════════════════════════════════════════
   COURSE CATALOG & DETAIL PAGES  (shared)
   ══════════════════════════════════════════════ */

/* Grids */
.grid { display: grid; gap: 24px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 900px) { .grid-3, .grid-2 { grid-template-columns: 1fr; } }

.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.thumb { aspect-ratio: 16/9; background: linear-gradient(135deg, var(--primary-dark), var(--accent-dark)); display: flex; align-items: center; justify-content: center; color: #fff; font-weight: 700; font-size: 18px; text-align: center; padding: 20px; }
.thumb img { width: 100%; height: 100%; object-fit: cover; }
.thumb-wrap { position: relative; border-radius: var(--radius-sm); overflow: hidden; }
.course-card .thumb-wrap { border-radius: 0; }
.price-tag { position: absolute; top: 10px; right: 10px; background: var(--bg); color: var(--primary); font-weight: 800; font-size: 13px; padding: 5px 12px; border-radius: 999px; box-shadow: var(--shadow); }
.discount-ribbon { position: absolute; top: 10px; left: 10px; background: var(--danger); color: #fff; font-weight: 700; font-size: 11px; padding: 5px 10px; border-radius: 999px; text-transform: uppercase; letter-spacing: .03em; }
.course-card .body { padding: 20px; }
.course-card .instructor { font-size: 12px; color: var(--accent); font-weight: 700; text-transform: uppercase; letter-spacing: .04em; margin-bottom: 6px; }
.course-card h3 { font-size: 18px; margin-bottom: 6px; }
.course-card .price-row { display: flex; align-items: baseline; gap: 8px; margin: 14px 0; }
.price-now { font-size: 22px; font-weight: 800; color: var(--primary); }
.price-was { color: var(--muted); text-decoration: line-through; font-size: 14px; }

/* Course detail sidebar stacks on mobile */
.course-layout { display: grid; grid-template-columns: 2fr 1fr; gap: 40px; align-items: start; }
@media (max-width: 900px) { .course-layout { grid-template-columns: 1fr; } .course-layout > div:last-child { position: static !important; } }
.course-layout h1 { font-size: 32px; }
.course-layout p.lead { font-size: 17px; }

/* Section (used in catalog and other pages) */
.section { padding: 64px 0; }
.section-head { text-align: center; max-width: 620px; margin: 0 auto 40px; }
.section-head .eyebrow { color: var(--accent); font-weight: 700; font-size: 13px; text-transform: uppercase; letter-spacing: .08em; }

/* Steps (used on checkout and other pages) */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
@media (max-width: 900px) { .steps { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .steps { grid-template-columns: 1fr; } }
.step { text-align: center; }
.step .num { width: 40px; height: 40px; border-radius: 50%; background: var(--primary); color: #fff; display: flex; align-items: center; justify-content: center; font-weight: 700; margin: 0 auto 14px; }

/* FAQ (shared with course detail pages) */
details.faq { border-bottom: 1px solid var(--border); padding: 16px 0; }
details.faq summary { cursor: pointer; font-weight: 600; list-style: none; }
details.faq summary::-webkit-details-marker { display: none; }

/* Data table horizontal scroll */
.table-scroll { width: 100%; overflow-x: auto; -webkit-overflow-scrolling: touch; }

/* Feature rows (course detail) */
.icon-tile { width: 52px; height: 52px; border-radius: var(--radius-sm); background: var(--glow-primary); display: flex; align-items: center; justify-content: center; margin-bottom: 16px; flex-shrink: 0; }
.icon-tile svg { width: 26px; height: 26px; display: block; color: var(--primary); }
.icon-tile.accent { background: var(--glow-accent); }
.icon-tile.accent svg { color: var(--accent); }
.feature-row { display: flex; gap: 16px; align-items: flex-start; margin-bottom: 22px; }
.feature-row .icon-tile { margin-bottom: 0; }
.feature-row h4 { margin-bottom: 4px; }
.feature-row p { margin-bottom: 0; }
.feature-row:last-child { margin-bottom: 0; }

/* Trust row */
.trust-row { display: flex; gap: 20px; margin-top: 18px; flex-wrap: wrap; }
.trust-row .trust-item { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--muted); font-weight: 600; }
.trust-row svg { width: 18px; height: 18px; color: var(--accent); flex-shrink: 0; }

.contact-side { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 28px; box-shadow: var(--shadow); }


/* ══════════════════════════════════════════════
   STATIC PAGES
   ══════════════════════════════════════════════ */
.page-hero { padding: 56px 0 8px; text-align: center; }
.page-hero .eyebrow { color: var(--accent); font-weight: 700; font-size: 13px; text-transform: uppercase; letter-spacing: .08em; margin-bottom: 10px; }
.page-hero h1 { font-size: 38px; max-width: 700px; margin: 0 auto 14px; }
.page-hero p.lead { max-width: 600px; margin: 0 auto; font-size: 17px; }

.legal-nav { display: flex; flex-wrap: wrap; gap: 8px 20px; justify-content: center; margin: 0 0 40px; font-size: 13px; }
.legal-nav a { color: var(--muted); font-weight: 600; padding-bottom: 2px; border-bottom: 2px solid transparent; }
.legal-nav a:hover, .legal-nav a.active { color: var(--primary); border-color: var(--primary); }
.legal-section { margin-bottom: 30px; }
.legal-section h3 { font-size: 18px; margin-bottom: 10px; }
.legal-section ul { padding-left: 20px; margin: 0 0 1em; color: var(--muted); }
.legal-section li { margin-bottom: 6px; }

.empty-state { text-align: center; padding: 50px 20px; grid-column: 1 / -1; }
.empty-state svg { margin: 0 auto 18px; display: block; }

.error-page { min-height: 70vh; display: flex; align-items: center; justify-content: center; text-align: center; padding: 60px 20px; }
.error-page .code { font-size: 13px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--accent); margin-bottom: 10px; }
.error-page h1 { font-size: 32px; margin-bottom: 10px; }
.error-page p { max-width: 400px; margin: 0 auto 24px; }
.error-page svg { margin: 0 auto 20px; display: block; }


/* ══════════════════════════════════════════════
   ALERTS & FORMS
   ══════════════════════════════════════════════ */
.alert { padding: 14px 18px; border-radius: var(--radius-sm); margin-bottom: 18px; font-size: 14px; }
.alert-error { background: rgba(239,68,68,.1); color: #f87171; border: 1px solid rgba(239,68,68,.3); }
.alert-success { background: rgba(16,185,129,.1); color: var(--success); border: 1px solid rgba(16,185,129,.3); }

.field { margin-bottom: 18px; }
.field label { display: block; font-weight: 600; font-size: 14px; margin-bottom: 6px; }
.field input, .field select, .field textarea {
  width: 100%; padding: 11px 14px; border: 1.5px solid var(--border); border-radius: var(--radius-sm);
  font-family: var(--font); font-size: 15px; background: var(--surface-2); color: var(--ink);
}
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--primary); }
.field-hint { font-size: 12px; color: var(--muted); margin-top: 4px; }

.wizard-steps { display: flex; justify-content: center; gap: 10px; margin: 28px 0 36px; }
.wizard-steps .ws { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--muted); font-weight: 600; }
.wizard-steps .ws .circle { width: 26px; height: 26px; border-radius: 50%; background: var(--border); color: #fff; display: flex; align-items: center; justify-content: center; font-size: 12px; }
.wizard-steps .ws.active .circle { background: var(--primary); }
.payment-method { border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 14px 16px; margin-bottom: 10px; }
.payment-method b { display: block; color: var(--primary); }


/* ══════════════════════════════════════════════
   PORTAL (student + admin)
   ══════════════════════════════════════════════ */
.portal { display: flex; min-height: 100vh; background: var(--portal-bg); color: var(--ink); }
.portal-sidebar { width: 240px; background: var(--portal-surface); border-right: 1px solid var(--portal-border); padding: 20px 16px; flex-shrink: 0; }
.portal-sidebar .brand { color: #fff; font-size: 18px; margin-bottom: 28px; display: block; padding: 0 8px; }
.portal-sidebar nav a { display: block; padding: 10px 12px; border-radius: 10px; color: var(--muted); font-weight: 500; font-size: 14px; margin-bottom: 4px; transition: background .15s ease, color .15s ease; }
.portal-sidebar nav a:hover, .portal-sidebar nav a.active { background: var(--primary); color: #fff; }
.portal-main { flex: 1; min-width: 0; }
.portal-topbar { display: flex; justify-content: space-between; align-items: center; padding: 18px 28px; border-bottom: 1px solid var(--portal-border); gap: 12px; }
.portal-content { padding: 28px; }
.portal-card { background: var(--portal-surface); border: 1px solid var(--portal-border); border-radius: var(--radius); padding: 22px; }
.portal-content p, .portal-content label.field-hint { color: var(--muted); }
.stat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-bottom: 28px; }
.menu-toggle { display: none; }

@media (max-width: 900px) {
  .stat-grid { grid-template-columns: 1fr 1fr; }
  .portal-content { padding: 18px; }
  .portal-topbar { padding: 14px 18px; }
  .menu-toggle { display: inline-flex; }
  .portal-sidebar {
    position: fixed; inset: 0 25% 0 0; z-index: 60; transform: translateX(-100%);
    transition: transform .2s ease; box-shadow: var(--shadow);
  }
  #sidebar-toggle:checked ~ .portal-sidebar { transform: translateX(0); }
  .sidebar-scrim { display: none; position: fixed; inset: 0; background: rgba(0,0,0,.5); z-index: 55; }
  #sidebar-toggle:checked ~ .sidebar-scrim { display: block; }
}
@media (max-width: 480px) { .stat-grid { grid-template-columns: 1fr; } }
.stat-tile { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 20px; }
.stat-tile b { display: block; font-size: 26px; }
.stat-tile span { color: var(--muted); font-size: 13px; }

table.data { width: 100%; border-collapse: collapse; font-size: 14px; }
table.data th { text-align: left; color: var(--muted); font-weight: 600; font-size: 12px; text-transform: uppercase; letter-spacing: .04em; padding: 10px 14px; border-bottom: 1px solid var(--portal-border); }
table.data td { padding: 14px; border-bottom: 1px solid var(--portal-border); }
table.data tr:last-child td { border-bottom: none; }
.badge-status { padding: 4px 10px; border-radius: 999px; font-size: 12px; font-weight: 700; }
.badge-pending { background: rgba(245,158,11,.12); color: #fbbf24; }
.badge-approved { background: rgba(16,185,129,.12); color: #34d399; }
.badge-rejected { background: rgba(239,68,68,.12); color: #f87171; }


/* ══════════════════════════════════════════════
   LESSON PLAYER
   ══════════════════════════════════════════════ */
.player-shell { display: flex; height: 100vh; }
.player-main { flex: 1; display: flex; flex-direction: column; min-width: 0; background: #000; }
.player-topbar { background: var(--portal-surface); padding: 14px 20px; display: flex; align-items: center; justify-content: space-between; color: #fff; border-bottom: 1px solid var(--portal-border); }
.player-video { flex: 1; background: #000; display: flex; align-items: center; justify-content: center; }
.player-video iframe, .player-video video { width: 100%; height: 100%; border: 0; }
.player-notes { background: var(--portal-surface); color: var(--muted); padding: 20px 24px; border-top: 1px solid var(--portal-border); }
.player-footer { background: var(--portal-surface); padding: 14px 20px; display: flex; justify-content: space-between; border-top: 1px solid var(--portal-border); }
.player-sidebar { width: 320px; background: var(--portal-surface); border-left: 1px solid var(--portal-border); overflow-y: auto; flex-shrink: 0; }
.player-sidebar-head { padding: 18px 18px 14px; border-bottom: 1px solid var(--portal-border); }
.progress-track { height: 6px; border-radius: 999px; background: var(--portal-border); overflow: hidden; margin-bottom: 8px; }
.progress-fill { height: 100%; background: var(--primary); border-radius: 999px; transition: width .3s ease; }
.player-sidebar .module-title { padding: 14px 18px 8px; font-size: 12px; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); font-weight: 700; }
.player-sidebar .lesson-link { display: flex; align-items: center; gap: 10px; padding: 12px 18px; color: var(--muted); font-size: 14px; border-left: 3px solid transparent; }
.player-sidebar .lesson-link.active { background: var(--glow-primary); color: #fff; border-left-color: var(--primary); }
.player-sidebar .lesson-link .tick { width: 18px; height: 18px; border-radius: 50%; border: 1.5px solid var(--border); flex-shrink: 0; display: flex; align-items: center; justify-content: center; }
.player-sidebar .lesson-link.done .tick { background: var(--success); border-color: var(--success); }
.player-sidebar .lesson-link-num { color: var(--muted); font-size: 12px; flex-shrink: 0; }
.player-toggle { display: none; background: transparent; border: 1px solid var(--portal-border); color: #fff; border-radius: 8px; width: 34px; height: 34px; cursor: pointer; }

@media (max-width: 900px) {
  .player-toggle { display: inline-flex; align-items: center; justify-content: center; }
  .player-sidebar {
    position: fixed; inset: 0 15% 0 auto; z-index: 60; transform: translateX(100%);
    transition: transform .2s ease;
  }
  #player-sidebar-toggle:checked ~ .player-sidebar { transform: translateX(0); }
  #player-sidebar-toggle:checked ~ .player-scrim { display: block; }
  .player-scrim { display: none; position: fixed; inset: 0; background: rgba(0,0,0,.5); z-index: 55; }
  .player-video { aspect-ratio: 16/9; flex: 0 0 auto; }
  .player-shell { flex-direction: column; height: auto; min-height: 100vh; }
  .player-main { flex: 0 0 auto; }
}

/* ── Brand Logo ── */
.brand-logo {
  height: 70px;
  width: auto;
  display: inline-block;
  vertical-align: middle;
}
.portal-sidebar .brand-logo { height: 70px; }

/* ── Eye toggle (show/hide password/email) ── */
.eye-field {
  position: relative;
  display: flex;
  align-items: center;
}
.eye-field .eye-input {
  flex: 1;
  padding-right: 44px;
}
.eye-btn {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  cursor: pointer;
  color: var(--muted);
  padding: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.eye-btn:hover { color: var(--ink); }


/* ── Products Grid (4-col → 2-col → 1-col) ── */
.ah-products-grid { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 900px) { .ah-products-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .ah-products-grid { grid-template-columns: 1fr; } }
