/* =====================================================================
   The AMZ Research — Course Portal
   Faithful extension of funnel-pages-v3-pivot/Made from claude design/*
   Locked tokens lifted directly from "Sales Page (humanized).html" 2026-05-05
   ===================================================================== */

:root {
  /* Surfaces — near-black canvas, layered paper */
  --canvas:        #0A0B0D;
  --paper:         #131518;
  --paper-2:       #181B20;
  --paper-3:       #1F232A;
  --hairline:      rgba(255,255,255,0.08);
  --hairline-2:    rgba(255,255,255,0.14);
  --hairline-3:    rgba(255,255,255,0.22);

  /* Text */
  --ink-deep:      #FFFFFF;
  --ink:           #E8EAEC;
  --ink-2:         #B5BAC3;
  --ink-3:         #808791;
  --ink-4:         #5A6068;

  /* Brand green — accent only (eyebrows, micro highlights, links) */
  --brand:         #10C090;
  --brand-deep:    #14D9A5;
  --brand-glow:    #1AE6B0;
  --brand-50:      rgba(16,192,144,0.10);
  --brand-100:     rgba(16,192,144,0.18);
  --brand-200:     rgba(16,192,144,0.32);
  --brand-300:     rgba(16,192,144,0.55);
  --brand-soft:    rgba(16,192,144,0.10);
  --brand-soft-2:  rgba(16,192,144,0.20);

  /* Hormozi yellow — PRIMARY CTAs */
  --gold:          #FFD93D;
  --gold-deep:     #F5B800;
  --gold-soft:     rgba(255,217,61,0.12);
  --gold-tint:     rgba(255,217,61,0.06);

  /* Rose — problem accent */
  --rose:          #FF5A6E;
  --rose-soft:     rgba(255,90,110,0.10);

  --dark:          #050608;
  --dark-2:        #0E1014;

  --font-display:  'Inter Tight', -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-body:     'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-serif:    'Instrument Serif', "Times New Roman", serif;

  /* Legacy aliases — older pages/JS (dashboard, index, welcome, certificate) still
     reference these names; map them to the current palette so greens/cards/borders/
     muted text render correctly instead of falling back to browser defaults. 2026-06-05. */
  --green:        var(--brand);
  --green-bright: var(--brand-glow);
  --green-soft:   var(--brand-50);
  --card:         var(--paper-2);
  --card-hover:   var(--paper-3);
  --surface:      var(--paper-2);
  --border:       var(--hairline);
  --text-bright:  var(--ink-deep);
  --text:         var(--ink);
  --text-muted:   var(--ink-3);
  --text-dim:     var(--ink-4);
  --bg-navy:      var(--paper);
  --bg-deepest:   var(--canvas);
}

/* =====================================================
   RESET / BASE
   ===================================================== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; background: var(--canvas); overflow-x: hidden; max-width: 100%; }
body {
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--canvas);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
  max-width: 100%;
  font-feature-settings: "ss01", "cv11";
  min-height: 100vh;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; transition: color .2s ease; }
::selection { background: var(--brand); color: #000; }

/* =====================================================
   LAYOUT
   ===================================================== */
.container { max-width: 1180px; margin: 0 auto; padding: 0 28px; position: relative; }
.container-narrow { max-width: 820px; margin: 0 auto; padding: 0 28px; position: relative; }
.container-wide { max-width: 1320px; margin: 0 auto; padding: 0 28px; position: relative; }
section { padding: 88px 0; position: relative; }
@media (max-width: 768px) { section { padding: 56px 0; } }

/* =====================================================
   TYPOGRAPHY (matches funnel pages exactly)
   ===================================================== */
h1, h2, h3, h4 { font-family: var(--font-display); color: var(--ink-deep); font-weight: 800; }
h1 { font-size: clamp(36px, 5.6vw, 68px); line-height: 0.98; letter-spacing: -0.034em; margin-bottom: 22px; }
h1 .accent { color: var(--brand-deep); }
h1 .serif { font-family: var(--font-serif); font-style: italic; font-weight: 400; letter-spacing: -0.02em; color: var(--brand-deep); }
h2 { font-size: clamp(28px, 4vw, 48px); line-height: 1.04; letter-spacing: -0.028em; margin-bottom: 16px; }
h2 .accent { color: var(--brand-deep); }
h2 .serif { font-family: var(--font-serif); font-style: italic; font-weight: 400; letter-spacing: -0.018em; color: var(--brand-deep); }
h3 { font-size: clamp(20px, 2.2vw, 26px); line-height: 1.18; letter-spacing: -0.016em; margin-bottom: 10px; font-weight: 700; }
h4 { font-size: 17px; font-weight: 700; line-height: 1.3; }
p { font-family: var(--font-body); font-size: 16px; color: var(--ink-2); line-height: 1.65; margin-bottom: 14px; }
p strong { color: #fff; font-weight: 700; }
.lead { font-size: clamp(16px, 1.7vw, 20px); color: var(--ink-2); line-height: 1.55; font-weight: 400; }
.serif, em.serif { font-family: var(--font-serif); font-style: italic; font-weight: 400; color: var(--brand-deep); }

/* =====================================================
   EYEBROW (pill above headings)
   ===================================================== */
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-body);
  font-size: 12px; font-weight: 700; color: var(--brand-deep);
  letter-spacing: .16em; text-transform: uppercase;
  padding: 8px 16px; border-radius: 99px;
  background: var(--brand-50);
  border: 1px solid var(--brand-100);
  margin-bottom: 22px;
}
.eyebrow .pulse {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--brand);
  box-shadow: 0 0 0 0 var(--brand-300);
  animation: pulse-dot 2s ease-in-out infinite;
}
@keyframes pulse-dot {
  0%, 100% { box-shadow: 0 0 0 0 var(--brand-300); opacity: 1; }
  50% { box-shadow: 0 0 0 8px transparent; opacity: 0.6; }
}
.eyebrow.gold { color: var(--gold); background: var(--gold-soft); border-color: var(--gold-soft); }
.eyebrow.gold .pulse { background: var(--gold); }

/* =====================================================
   BUTTONS — primary is GOLD (Hormozi yellow), not green
   Green is for ghost/secondary only
   ===================================================== */
.btn-primary {
  display: inline-flex; align-items: center; justify-content: center; gap: 12px;
  background: linear-gradient(180deg, #FFE15A 0%, var(--gold) 50%, #F0C800 100%);
  color: #0A0B0D;
  font-family: var(--font-display);
  font-size: 17px; font-weight: 800;
  padding: 17px 32px; border-radius: 14px; border: none; cursor: pointer;
  text-decoration: none;
  text-transform: uppercase; letter-spacing: 0.02em;
  box-shadow:
    0 1px 0 rgba(255,255,255,0.6) inset,
    0 -3px 0 rgba(0,0,0,0.18) inset,
    0 12px 28px -6px rgba(255,217,61,0.55),
    0 4px 14px -2px rgba(255,217,61,0.45),
    0 0 0 1px rgba(255,217,61,0.4);
  transition: transform .25s cubic-bezier(.2,.8,.2,1), box-shadow .25s ease, filter .25s ease;
}
.btn-primary:hover {
  transform: translateY(-2px);
  filter: brightness(1.06);
  color: #0A0B0D;
  box-shadow:
    0 1px 0 rgba(255,255,255,0.6) inset,
    0 -3px 0 rgba(0,0,0,0.20) inset,
    0 18px 36px -6px rgba(255,217,61,0.7),
    0 6px 18px -2px rgba(255,217,61,0.55),
    0 0 0 1px rgba(255,217,61,0.55);
}
.btn-primary:active { transform: translateY(0); }
.btn-primary .arrow { font-size: 20px; font-weight: 900; transition: transform .2s ease; line-height: 1; }
.btn-primary:hover .arrow { transform: translateX(4px); }
.btn-primary.large { font-size: 18px; padding: 19px 38px; border-radius: 14px; }
.btn-primary.xlarge { font-size: 21px; padding: 23px 48px; border-radius: 16px; }
.btn-primary.full { width: 100%; }

/* Toolkit / utility button — brand mint variant.
   Used inside .generator-card and any page that wants the "tool"
   feel rather than the yellow money-CTA. Flat solid mint — no glow,
   no white shine inset, no brightness pump. Easy on the eyes for
   tools the buyer uses daily. */
.generator-card .btn-primary,
.btn-primary.tool {
  background: var(--brand);
  color: #042622;
  box-shadow:
    0 -2px 0 rgba(0,0,0,0.10) inset,
    0 2px 4px rgba(0,0,0,0.18);
}
.generator-card .btn-primary:hover,
.btn-primary.tool:hover {
  background: var(--brand-deep);
  color: #042622;
  filter: none;
  box-shadow:
    0 -2px 0 rgba(0,0,0,0.10) inset,
    0 3px 6px rgba(0,0,0,0.22);
}

.btn-ghost {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-body); font-size: 15px; font-weight: 600;
  color: var(--brand-deep); padding: 12px 18px; border-radius: 10px;
  border: 1px solid var(--hairline-2); background: var(--paper);
  transition: all .2s ease;
  cursor: pointer; text-decoration: none;
}
.btn-ghost:hover { border-color: var(--brand); color: var(--brand); transform: translateY(-1px); }

.micro { font-family: var(--font-body); font-size: 13px; color: var(--ink-3); margin-top: 14px; line-height: 1.55; }
.micro strong { color: var(--ink-2); font-weight: 600; }

/* =====================================================
   FORMS
   ===================================================== */
input[type=text], input[type=email], input[type=password], textarea {
  width: 100%; font-family: var(--font-body); font-size: 16px;
  background: var(--paper-2); color: var(--ink-deep);
  border: 1px solid var(--hairline-2); border-radius: 12px;
  padding: 14px 16px;
  transition: border-color .15s ease, box-shadow .15s ease;
}
input:focus, textarea:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-50); }
label { display: block; font-family: var(--font-body); font-size: 13px; font-weight: 600; color: var(--ink-2); margin-bottom: 6px; }

/* =====================================================
   HEADER (sticky, near-black glass)
   ===================================================== */
header.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(10, 11, 13, 0.78);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border-bottom: 1px solid var(--hairline);
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  max-width: 1320px; margin: 0 auto; padding: 16px 28px;
}
@media (max-width: 768px) { .header-inner { padding: 14px 18px; } }
.logo, .logo-link { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; color: #fff; flex-shrink: 0; text-decoration: none; line-height: 1; }
.logo img, .logo-link img, .logo-img, img.logo-img,
header .logo-img, header img.logo-img,
.header-inner img,
.drawer-header .logo-img, .drawer-header img {
  height: 48px !important; width: auto !important;
  max-width: 260px !important; max-height: 48px !important;
  object-fit: contain !important; display: block !important;
}
@media (max-width: 768px) {
  .logo img, .logo-link img, .logo-img, img.logo-img,
  header .logo-img, header img.logo-img, .header-inner img {
    height: 40px !important; max-width: 220px !important; max-height: 40px !important;
  }
}
.nav-desktop { display: none; align-items: center; gap: 6px; }
.nav-desktop a { font-family: var(--font-body); font-size: 14px; font-weight: 500; color: var(--ink-2); padding: 8px 14px; border-radius: 8px; transition: all .15s ease; }
.nav-desktop a:hover { color: var(--ink-deep); background: var(--paper); }
.nav-desktop a.active { color: var(--brand-deep); background: var(--brand-50); }
.header-right { display: flex; align-items: center; gap: 16px; }
.user-chip { display: inline-flex; align-items: center; gap: 10px; padding: 6px 14px 6px 6px; border-radius: 99px; background: var(--paper); border: 1px solid var(--hairline); }
.user-chip .avatar { width: 30px; height: 30px; border-radius: 50%; background: linear-gradient(135deg, var(--brand) 0%, var(--brand-deep) 100%); color: #0A0B0D; font-weight: 800; font-size: 13px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.user-chip .name { font-family: var(--font-body); font-size: 13px; font-weight: 600; color: var(--ink); }
.menu-toggle { display: flex; align-items: center; justify-content: center; width: 40px; height: 40px; border-radius: 10px; background: var(--paper); border: 1px solid var(--hairline); color: var(--ink-deep); cursor: pointer; }
.menu-toggle svg { width: 20px; height: 20px; }
@media (min-width: 980px) {
  .nav-desktop { display: flex; }
  .menu-toggle { display: none; }
}

/* Mobile drawer */
.mobile-drawer { position: fixed; top: 0; right: -100%; bottom: 0; width: min(320px, 86vw); z-index: 200; background: var(--paper); border-left: 1px solid var(--hairline-2); padding: 24px; display: flex; flex-direction: column; transition: right .3s cubic-bezier(.2,.8,.2,1); box-shadow: -20px 0 60px rgba(0,0,0,.5); }
.mobile-drawer.open { right: 0; }
.drawer-header { display: flex; align-items: center; justify-content: space-between; padding-bottom: 20px; margin-bottom: 24px; border-bottom: 1px solid var(--hairline); }
.drawer-close { width: 38px; height: 38px; border-radius: 10px; background: var(--paper-2); border: 1px solid var(--hairline); color: var(--ink-deep); cursor: pointer; font-size: 20px; }
.drawer-nav { display: flex; flex-direction: column; gap: 4px; flex: 1; }
.drawer-nav a { font-family: var(--font-body); color: var(--ink); font-size: 16px; font-weight: 600; padding: 14px 16px; border-radius: 10px; }
.drawer-nav a.active, .drawer-nav a:hover { background: var(--brand-50); color: var(--brand-deep); }
.drawer-overlay { position: fixed; inset: 0; z-index: 150; background: rgba(0,0,0,.6); backdrop-filter: blur(4px); opacity: 0; pointer-events: none; transition: opacity .3s ease; }
.drawer-overlay.open { opacity: 1; pointer-events: auto; }

/* =====================================================
   HERO (course landing)
   ===================================================== */
.hero { padding: 64px 0 48px; position: relative; overflow: hidden; }
.hero::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(ellipse 70% 40% at 50% 0%, rgba(16,192,144,0.08), transparent 70%),
    radial-gradient(ellipse 50% 30% at 50% 100%, rgba(255,217,61,0.04), transparent 60%);
}
.hero .container { position: relative; z-index: 2; }
.hero-grid { display: grid; grid-template-columns: 1fr; gap: 36px; align-items: center; }
@media (min-width: 980px) { .hero-grid { grid-template-columns: 1.5fr 1fr; gap: 56px; } }
.hero-meta { display: flex; gap: 18px; flex-wrap: wrap; margin-top: 28px; color: var(--ink-3); font-family: var(--font-body); font-size: 14px; }
.hero-meta-item { display: inline-flex; align-items: center; gap: 6px; }
.hero-meta-item strong { color: var(--ink-deep); font-weight: 700; }

/* Progress card (right column on hero) */
.progress-card {
  background: var(--paper);
  border: 1px solid var(--hairline-2);
  border-radius: 18px;
  padding: 28px;
  box-shadow: 0 24px 60px -12px rgba(0,0,0,0.5);
}
.progress-card h3 { font-family: var(--font-display); }
.progress-bar-outer { height: 10px; background: var(--paper-3); border-radius: 99px; overflow: hidden; margin: 14px 0 8px; }
.progress-bar-inner { height: 100%; background: linear-gradient(90deg, var(--brand) 0%, var(--brand-deep) 100%); border-radius: 99px; transition: width .6s cubic-bezier(.2,.8,.2,1); }
.progress-stats { display: flex; justify-content: space-between; font-family: var(--font-body); color: var(--ink-3); font-size: 13px; margin-bottom: 18px; }

/* =====================================================
   MODULE LIST (course landing)
   ===================================================== */
.modules-section { padding: 56px 0 80px; }
.module-card {
  background: var(--paper);
  border: 1px solid var(--hairline);
  border-radius: 16px;
  margin-bottom: 14px;
  overflow: hidden;
  transition: border-color .2s ease, background .2s ease;
}
.module-card:hover { background: var(--paper-2); border-color: var(--hairline-2); }
.module-card.open { border-color: var(--brand-100); }
.module-card-header {
  display: flex; align-items: center; gap: 16px;
  padding: 20px 24px; cursor: pointer; user-select: none;
}
.module-card-header:hover { background: rgba(255,255,255,0.02); }
.module-num {
  width: 38px; height: 38px; flex-shrink: 0; border-radius: 10px;
  background: var(--brand-50); color: var(--brand-deep);
  font-family: var(--font-display); font-weight: 800; font-size: 14px;
  display: flex; align-items: center; justify-content: center;
  border: 1px solid var(--brand-100);
}
.module-info { flex: 1; min-width: 0; }
.module-title { font-family: var(--font-display); color: var(--ink-deep); font-size: 17px; font-weight: 700; line-height: 1.3; margin-bottom: 4px; }
.module-meta { font-family: var(--font-body); color: var(--ink-3); font-size: 13px; }
.module-progress-mini { width: 80px; height: 6px; background: var(--paper-3); border-radius: 99px; overflow: hidden; flex-shrink: 0; }
.module-progress-mini-fill { height: 100%; background: var(--brand); transition: width .4s ease; }
.module-toggle { color: var(--ink-3); transition: transform .25s ease; flex-shrink: 0; }
.module-card.open .module-toggle { transform: rotate(180deg); color: var(--brand-deep); }
.module-lessons { display: none; padding: 4px 16px 16px; }
.module-card.open .module-lessons { display: block; }
.lesson-item {
  display: flex; align-items: center; gap: 12px;
  padding: 12px 16px; margin-bottom: 4px;
  border-radius: 10px;
  font-family: var(--font-body); color: var(--ink-2); font-size: 14.5px;
  transition: all .15s ease;
  cursor: pointer; text-decoration: none;
}
.lesson-item:hover { background: var(--brand-50); color: var(--brand-deep); }
.lesson-item.active { background: var(--brand-50); color: var(--brand-deep); }
.lesson-item .lesson-num { color: var(--ink-4); font-size: 12px; min-width: 28px; font-variant-numeric: tabular-nums; }
.lesson-item .lesson-title { flex: 1; font-weight: 500; }
.lesson-item .lesson-status {
  width: 20px; height: 20px; border-radius: 50%; flex-shrink: 0;
  border: 1.5px solid var(--hairline-2);
  display: flex; align-items: center; justify-content: center;
  font-size: 11px; font-weight: 800;
}
.lesson-item.completed .lesson-status { background: var(--brand); border-color: var(--brand); color: #0A0B0D; }

/* =====================================================
   LESSON PAGE
   ===================================================== */
.lesson-page { display: grid; grid-template-columns: 1fr; gap: 24px; padding: 32px 0 80px; }
@media (min-width: 1080px) { .lesson-page { grid-template-columns: 320px 1fr; gap: 32px; } }

.lesson-sidebar {
  background: var(--paper);
  border: 1px solid var(--hairline);
  border-radius: 16px;
  padding: 22px;
  max-height: calc(100vh - 100px);
  overflow-y: auto;
  position: sticky; top: 90px;
}
.sidebar-title { font-family: var(--font-display); color: var(--ink-deep); font-size: 13px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; margin-bottom: 16px; padding-bottom: 14px; border-bottom: 1px solid var(--hairline); }
.sidebar-module { margin-bottom: 18px; }
.sidebar-module-title { font-family: var(--font-body); color: var(--ink-3); font-size: 12px; font-weight: 700; letter-spacing: 0.06em; padding: 8px 12px; text-transform: uppercase; }
.sidebar-lesson { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 8px; font-family: var(--font-body); color: var(--ink-2); font-size: 13.5px; font-weight: 500; cursor: pointer; transition: all .15s ease; text-decoration: none; line-height: 1.4; }
.sidebar-lesson:hover { background: var(--brand-50); color: var(--brand-deep); }
.sidebar-lesson.active { background: var(--brand-50); color: var(--brand-deep); }
.sidebar-lesson .num { color: var(--ink-4); font-size: 11px; min-width: 22px; font-variant-numeric: tabular-nums; }

.lesson-main {
  background: var(--paper);
  border: 1px solid var(--hairline);
  border-radius: 18px;
  padding: 28px;
  min-width: 0;
}
@media (min-width: 768px) { .lesson-main { padding: 40px; } }
.lesson-breadcrumb { font-family: var(--font-body); color: var(--ink-3); font-size: 13px; margin-bottom: 14px; }
.lesson-breadcrumb a { color: var(--ink-3); }
.lesson-breadcrumb a:hover { color: var(--brand-deep); }
.lesson-title { color: var(--ink-deep); margin-bottom: 24px; }
.lesson-video { aspect-ratio: 16 / 9; width: 100%; border-radius: 14px; overflow: hidden; background: #000; box-shadow: 0 16px 48px -8px rgba(0,0,0,.6); border: 1px solid var(--hairline); margin-bottom: 24px; }
.lesson-video iframe, .lesson-video video { width: 100%; height: 100%; border: 0; display: block; object-fit: contain; background: #000; }
.lesson-content { color: var(--ink-2); line-height: 1.7; font-size: 16px; }
.lesson-content h2 { margin: 28px 0 12px; padding-left: 14px; border-left: 3px solid var(--brand); }

.resources-block {
  background: var(--paper-2);
  border: 1px solid var(--hairline-2);
  border-radius: 14px;
  padding: 22px;
  margin: 24px 0;
}
.resources-block h3 { font-family: var(--font-display); color: var(--ink-deep); font-size: 16px; margin-bottom: 14px; display: flex; align-items: center; gap: 10px; }
.resource-link { display: flex; align-items: center; gap: 12px; padding: 12px 14px; background: var(--paper); border: 1px solid var(--hairline); border-radius: 10px; font-family: var(--font-body); color: var(--ink); font-size: 14px; margin-bottom: 8px; transition: all .15s ease; text-decoration: none; }
.resource-link:hover { background: var(--brand-50); border-color: var(--brand-100); color: var(--brand-deep); }
.resource-link .icon { font-size: 18px; flex-shrink: 0; }

.lesson-nav-buttons { display: flex; gap: 12px; margin-top: 32px; padding-top: 24px; border-top: 1px solid var(--hairline); align-items: center; flex-wrap: wrap; }
.lesson-nav-buttons .spacer { flex: 1; min-width: 8px; }
.btn-mark-complete {
  font-family: var(--font-display);
  background: var(--brand); color: #0A0B0D;
  font-size: 14px; font-weight: 800;
  padding: 12px 22px; border-radius: 10px;
  border: none; cursor: pointer;
  text-transform: uppercase; letter-spacing: 0.04em;
  box-shadow: 0 8px 20px -6px rgba(16,192,144,0.55);
  transition: all .2s ease;
}
.btn-mark-complete:hover { transform: translateY(-1px); filter: brightness(1.1); }
.btn-mark-complete.completed { background: var(--paper-2); color: var(--brand-deep); border: 1px solid var(--brand-100); box-shadow: none; }

/* =====================================================
   FOOTER
   ===================================================== */
.site-footer { background: var(--dark-2); border-top: 1px solid var(--hairline); padding: 36px 0 28px; color: var(--ink-3); margin-top: 60px; }
.footer-inner { display: flex; flex-direction: column; gap: 14px; align-items: center; text-align: center; }
@media (min-width: 768px) { .footer-inner { flex-direction: row; justify-content: space-between; text-align: left; } }
.footer-brand { display: flex; align-items: center; gap: 10px; }
.footer-brand img, .footer-brand .logo-img,
.site-footer img, footer img.logo-img {
  height: 44px !important; width: auto !important;
  max-width: 240px !important; max-height: 44px !important;
  object-fit: contain !important; display: block !important;
}
.footer-copy { font-family: var(--font-body); color: var(--ink-4); font-size: 13px; }
.footer-links { display: flex; gap: 18px; flex-wrap: wrap; justify-content: center; }
.footer-links a { font-family: var(--font-body); color: var(--ink-3); font-size: 13px; }
.footer-links a:hover { color: var(--brand-deep); }

/* =====================================================
   LOGIN PAGE
   ===================================================== */
.login-page { min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 40px 24px; position: relative; overflow: hidden; }
.login-page::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(ellipse 60% 40% at 50% 0%, rgba(16,192,144,0.12), transparent 70%),
    radial-gradient(ellipse 80% 50% at 50% 100%, rgba(16,192,144,0.04), transparent 60%);
}
.login-card {
  position: relative; z-index: 2;
  max-width: 440px; width: 100%;
  background: var(--paper);
  border: 1px solid var(--hairline-2);
  border-radius: 18px;
  padding: 36px;
  box-shadow: 0 30px 80px -16px rgba(0,0,0,0.55);
}
.login-card .logo-img, .login-card img.logo-img, .login-card img {
  height: 56px !important; max-width: 280px !important; max-height: 56px !important;
  width: auto !important; margin: 0 auto 22px !important;
  display: block !important; object-fit: contain !important;
}
.login-card h1 { font-size: 26px; line-height: 1.15; text-align: center; margin-bottom: 8px; }
.login-card p.sub { font-family: var(--font-body); text-align: center; color: var(--ink-3); font-size: 14px; line-height: 1.55; margin-bottom: 26px; }
.login-form .field { margin-bottom: 14px; }

/* =====================================================
   WELCOME PAGE
   ===================================================== */
.welcome-hero { min-height: 100vh; padding: 60px 24px; display: flex; align-items: center; justify-content: center; position: relative; overflow: hidden; }
.welcome-hero::before { content: ""; position: absolute; inset: 0; pointer-events: none; background: radial-gradient(ellipse 70% 40% at 50% 0%, rgba(16,192,144,0.12), transparent 70%); }
.welcome-card-big {
  position: relative; z-index: 2;
  max-width: 720px; width: 100%;
  background: var(--paper);
  border: 1px solid var(--hairline-2);
  border-radius: 22px;
  padding: 56px 40px;
  box-shadow: 0 30px 80px -16px rgba(0,0,0,0.55);
  text-align: center;
}
.welcome-badge-img { width: 140px !important; height: auto !important; max-width: 140px !important; margin: 0 auto 24px !important; display: block !important; object-fit: contain !important; }
@media (max-width: 600px) { .welcome-badge-img { width: 110px !important; max-width: 110px !important; } }
.welcome-stack { display: grid; grid-template-columns: 1fr; gap: 12px; margin-top: 32px; max-width: 480px; margin-left: auto; margin-right: auto; }
@media (min-width: 600px) { .welcome-stack { grid-template-columns: 1fr 1fr; } }
.welcome-stack-item { display: flex; align-items: center; gap: 12px; padding: 14px 18px; background: var(--paper-2); border: 1px solid var(--hairline); border-radius: 12px; text-align: left; }
.welcome-stack-item .check { width: 24px; height: 24px; flex-shrink: 0; background: var(--brand-50); color: var(--brand-deep); border-radius: 50%; display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: 12px; border: 1px solid var(--brand-100); }
.welcome-stack-item .label { font-family: var(--font-body); color: var(--ink); font-size: 14px; font-weight: 600; }

/* =====================================================
   CERTIFICATE PAGE
   ===================================================== */
.cert-page { min-height: 100vh; display: flex; flex-direction: column; align-items: center; padding: 40px 24px; background: var(--canvas); }
.cert-paper { background: #fff; width: 1100px; max-width: 100%; aspect-ratio: 1100 / 780; position: relative; box-shadow: 0 30px 80px rgba(0,0,0,0.5); border-radius: 8px; overflow: hidden; }
.cert-paper-bg { position: absolute; inset: 0; background: url('/assets/certificate-bg-branded.png') center/cover no-repeat; opacity: 0.95; }
.cert-paper-inner { position: relative; padding: 56px 80px; text-align: center; height: 100%; display: flex; flex-direction: column; justify-content: space-between; color: #0A0B0D; font-family: var(--font-display); }
.cert-eyebrow { font-family: var(--font-body); font-size: 12px; letter-spacing: .3em; text-transform: uppercase; color: var(--brand); font-weight: 700; }
.cert-title { font-size: 42px; font-weight: 900; color: #0A0B0D; margin: 8px 0 0; letter-spacing: -0.02em; }
.cert-presented { font-family: var(--font-body); color: #475569; font-size: 16px; font-style: italic; margin-top: 32px; }
.cert-name { font-family: var(--font-serif); font-size: 56px; font-weight: 400; color: #0A0B0D; margin: 12px 0 6px; font-style: italic; letter-spacing: -0.01em; }
.cert-name-line { width: 56%; height: 2px; background: #0A0B0D; margin: 0 auto 18px; }
.cert-completion { font-family: var(--font-body); color: #475569; font-size: 16px; }
.cert-course { font-size: 28px; font-weight: 800; color: var(--brand); margin: 12px 0; }
.cert-sigs { display: flex; justify-content: space-around; margin-top: 32px; gap: 24px; flex-wrap: wrap; }
.cert-sig { text-align: center; min-width: 200px; }
.cert-sig-name { font-family: var(--font-display); font-weight: 700; color: #0A0B0D; font-size: 15px; }
.cert-sig-line { border-top: 1.5px solid #0A0B0D; margin: 4px auto 8px; width: 80%; }
.cert-sig-label { font-family: var(--font-body); font-size: 11px; color: #64748b; text-transform: uppercase; letter-spacing: .15em; }
.cert-actions { margin-top: 28px; display: flex; gap: 12px; flex-wrap: wrap; justify-content: center; }
@media print { .site-header, .site-footer, .cert-actions { display: none !important; } .cert-page { background: #fff; padding: 0; } body { background: #fff !important; } }

/* =====================================================
   DASHBOARD STAT CARDS
   ===================================================== */
.stats-grid { display: grid; grid-template-columns: 1fr; gap: 16px; margin-bottom: 36px; }
@media (min-width: 600px) { .stats-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 920px) { .stats-grid { grid-template-columns: repeat(4, 1fr); } }
.stat-card { background: var(--paper); border: 1px solid var(--hairline); border-radius: 16px; padding: 24px; }
.stat-label { font-family: var(--font-body); color: var(--ink-3); font-size: 11px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; margin-bottom: 10px; }
.stat-value { font-family: var(--font-display); color: var(--ink-deep); font-size: 36px; font-weight: 900; letter-spacing: -.02em; line-height: 1; }
.stat-sub { font-family: var(--font-body); color: var(--ink-4); font-size: 13px; margin-top: 6px; }

.module-progress-row { display: grid; grid-template-columns: 1fr; gap: 12px; padding: 18px 22px; align-items: center; background: var(--paper); border: 1px solid var(--hairline); border-radius: 14px; margin-bottom: 12px; transition: all .15s ease; text-decoration: none; }
@media (min-width: 720px) { .module-progress-row { grid-template-columns: 36px 1fr 100px 60px; gap: 20px; } }
.module-progress-row:hover { background: var(--paper-2); border-color: var(--brand-100); }
.module-progress-row .mp-num { width: 36px; height: 36px; border-radius: 10px; background: var(--brand-50); color: var(--brand-deep); font-family: var(--font-display); font-weight: 800; font-size: 13px; display: flex; align-items: center; justify-content: center; border: 1px solid var(--brand-100); }
.module-progress-row.complete .mp-num { background: var(--brand); color: #0A0B0D; }
.module-progress-row .mp-name { font-family: var(--font-display); color: var(--ink-deep); font-weight: 700; font-size: 15px; }
.module-progress-row .mp-meta { font-family: var(--font-body); color: var(--ink-3); font-size: 13px; margin-top: 2px; }
.module-progress-row .mp-bar { height: 8px; background: var(--paper-3); border-radius: 99px; overflow: hidden; }
.module-progress-row .mp-bar-fill { height: 100%; background: linear-gradient(90deg, var(--brand) 0%, var(--brand-deep) 100%); border-radius: 99px; }
.module-progress-row .mp-pct { font-family: var(--font-display); color: var(--ink-deep); font-weight: 700; font-size: 14px; text-align: right; }
.module-progress-row.complete .mp-pct { color: var(--brand-deep); }

.recent-card { background: var(--paper); border: 1px solid var(--hairline); border-radius: 14px; padding: 18px 22px; margin-bottom: 12px; display: flex; align-items: center; gap: 16px; transition: all .15s ease; text-decoration: none; }
.recent-card:hover { background: var(--paper-2); border-color: var(--brand-100); }
.recent-card .icon { width: 44px; height: 44px; border-radius: 12px; background: var(--brand-50); color: var(--brand-deep); display: flex; align-items: center; justify-content: center; font-size: 16px; flex-shrink: 0; border: 1px solid var(--brand-100); }
.recent-card .info { flex: 1; min-width: 0; }
.recent-card .info .title { font-family: var(--font-display); color: var(--ink-deep); font-weight: 700; font-size: 15px; }
.recent-card .info .sub { font-family: var(--font-body); color: var(--ink-3); font-size: 13px; margin-top: 2px; }
.recent-card .arrow { color: var(--ink-4); font-size: 18px; }

/* =====================================================
   SIDEBAR TOGGLE (mobile lesson page)
   ===================================================== */
.lesson-sidebar-toggle { display: flex; align-items: center; justify-content: center; gap: 8px; width: 100%; padding: 14px; background: var(--paper); border: 1px solid var(--hairline-2); border-radius: 12px; color: var(--ink-deep); font-family: var(--font-display); font-weight: 700; font-size: 15px; margin-bottom: 16px; cursor: pointer; }
@media (min-width: 1080px) { .lesson-sidebar-toggle { display: none; } .lesson-sidebar { display: block !important; } }
@media (max-width: 1079px) { .lesson-sidebar { display: none; position: fixed; left: 0; right: 0; top: 0; bottom: 0; max-height: none; border-radius: 0; padding: 24px; z-index: 200; overflow-y: auto; } .lesson-sidebar.open { display: block; } }

/* =====================================================
   SKELETON / SCROLLBAR
   ===================================================== */
.skeleton { background: linear-gradient(90deg, var(--paper) 0%, var(--paper-2) 50%, var(--paper) 100%); background-size: 200% 100%; animation: shimmer 1.5s infinite; border-radius: 8px; }
@keyframes shimmer { 0% { background-position: 200% 0; } 100% { background-position: -200% 0; } }

::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: var(--canvas); }
::-webkit-scrollbar-thumb { background: var(--hairline-2); border-radius: 5px; }
::-webkit-scrollbar-thumb:hover { background: var(--brand-100); }

/* =====================================================
   Toolkit tile (dashboard) + Random Product Generator
   ===================================================== */
.toolkit-grid { display: grid; grid-template-columns: 1fr; gap: 14px; }
@media (min-width: 760px) { .toolkit-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1080px) { .toolkit-grid { grid-template-columns: 1fr 1fr 1fr; } }
.toolkit-tile { background: var(--paper); border: 1px solid var(--hairline); border-radius: 16px; padding: 24px; transition: all .2s ease; text-decoration: none; display: block; cursor: pointer; }
.toolkit-tile:hover { background: var(--paper-2); border-color: var(--brand-100); transform: translateY(-2px); }
.toolkit-tile.locked:hover { border-color: rgba(255,217,61,0.45); }
.toolkit-tile-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; margin-bottom: 14px; }
.toolkit-tile-icon { width: 48px; height: 48px; border-radius: 12px; background: var(--brand-50); color: var(--brand-deep); display: flex; align-items: center; justify-content: center; font-size: 22px; border: 1px solid var(--brand-100); flex-shrink: 0; }
.toolkit-tile.locked .toolkit-tile-icon { background: var(--gold-soft); color: var(--gold); border-color: rgba(255,217,61,0.25); }
.toolkit-tile-badge { font-size: 11px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; padding: 4px 10px; border-radius: 99px; background: var(--brand-50); color: var(--brand-deep); border: 1px solid var(--brand-100); white-space: nowrap; }
.toolkit-tile.locked .toolkit-tile-badge { background: var(--gold-soft); color: var(--gold); border-color: rgba(255,217,61,0.25); }
.toolkit-tile-title { color: var(--ink-deep); font-family: var(--font-display); font-weight: 800; font-size: 18px; margin: 0 0 6px; }
.toolkit-tile-sub { color: var(--ink-3); font-size: 14px; margin: 0 0 14px; line-height: 1.5; }
.toolkit-tile-cta { color: var(--brand-deep); font-weight: 700; font-size: 14px; display: inline-flex; align-items: center; gap: 6px; }
.toolkit-tile.locked .toolkit-tile-cta { color: var(--gold); }

/* Generator page — main button card */
.generator-card { background: var(--paper); border: 1px solid var(--brand-100); border-radius: 18px; padding: 32px; margin-bottom: 24px; box-shadow: 0 0 60px rgba(16,192,144,0.08); }
.gen-error { background: var(--rose-soft); color: var(--rose); border: 1px solid rgba(255,90,110,0.25); border-radius: 12px; padding: 14px 18px; margin-bottom: 18px; font-size: 14px; font-weight: 600; text-align: center; }

/* Results card */
.results-card { background: var(--paper); border: 1px solid var(--hairline); border-radius: 16px; padding: 22px 24px; margin-bottom: 24px; }
.results-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; gap: 12px; }
.results-list { display: flex; flex-direction: column; gap: 10px; }
.result-row { display: flex; align-items: center; gap: 14px; background: var(--paper-2); border: 1px solid var(--hairline); border-radius: 12px; padding: 14px 16px; }
.result-num { width: 28px; height: 28px; border-radius: 8px; background: var(--brand-50); color: var(--brand-deep); display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: 13px; border: 1px solid var(--brand-100); flex-shrink: 0; }
.result-kw { flex: 1; color: var(--ink-deep); font-weight: 600; font-size: 15px; word-break: break-word; }
.btn-copy { background: transparent; border: 1px solid var(--hairline-2); color: var(--ink-3); width: 36px; height: 36px; border-radius: 8px; cursor: pointer; font-size: 16px; display: flex; align-items: center; justify-content: center; transition: all .15s ease; flex-shrink: 0; }
.btn-copy:hover { color: var(--brand-deep); border-color: var(--brand-200); background: var(--brand-50); }
.btn-text { background: transparent; border: none; color: var(--brand-deep); font-weight: 700; font-size: 13px; cursor: pointer; padding: 6px 10px; border-radius: 8px; }
.btn-text:hover { background: var(--brand-50); }

/* History card */
.history-card { background: var(--paper); border: 1px solid var(--hairline); border-radius: 16px; padding: 22px 24px; }
.history-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; }
.history-list { display: flex; flex-direction: column; gap: 12px; }
.history-row { padding: 14px 16px; background: var(--paper-2); border: 1px solid var(--hairline); border-radius: 12px; }
.history-meta { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; font-size: 12px; }
.history-num { color: var(--brand-deep); font-weight: 800; letter-spacing: .08em; }
.history-time { color: var(--ink-4); }
.history-keywords { display: flex; flex-wrap: wrap; gap: 6px; }
.kw-pill { background: var(--canvas); border: 1px solid var(--hairline); border-radius: 99px; padding: 5px 12px; font-size: 13px; color: var(--ink-2); font-weight: 500; }

/* Paywall card (locked tool page) */
.paywall-card { max-width: 580px; margin: 20px auto 0; background: var(--paper); border: 1px solid var(--hairline); border-radius: 18px; padding: 36px; text-align: center; }
.paywall-list { list-style: none; padding: 0; margin: 0 0 26px; text-align: left; display: flex; flex-direction: column; gap: 10px; }
.paywall-list li { color: var(--ink-2); font-size: 14px; padding: 10px 14px 10px 38px; background: var(--paper-2); border-radius: 10px; position: relative; line-height: 1.5; }
.paywall-list li::before { content: "✓"; position: absolute; left: 14px; top: 12px; color: var(--brand-deep); font-weight: 900; }
