/* =============================================
   MLNinja.com — Light Theme Stylesheet
   ============================================= */

:root {
  --primary: #FF6B00;
  --primary-dark: #e05a00;
  --primary-light: #ff8533;
  --accent: #0EA5E9;
  --accent2: #7C3AED;

  /* Light Theme Colors */
  --bg: #F8F9FC;
  --bg2: #F1F3F8;
  --bg3: #E8EBF2;
  --card-bg: #FFFFFF;
  --card-border: #E2E6EF;
  --card-border-hover: #FF6B00;

  --text: #0F172A;
  --text-muted: #64748B;
  --text-dim: #94A3B8;

  --success: #10B981;
  --error: #EF4444;
  --warning: #F59E0B;

  --radius: 12px;
  --radius-lg: 18px;
  --shadow-sm: 0 1px 4px rgba(0,0,0,.06), 0 2px 8px rgba(0,0,0,.04);
  --shadow: 0 4px 16px rgba(0,0,0,.08), 0 1px 4px rgba(0,0,0,.06);
  --shadow-lg: 0 8px 32px rgba(0,0,0,.12);
  --shadow-glow: 0 0 0 3px rgba(255,107,0,.12);

  --font-body: 'Space Grotesk', sans-serif;
  --font-display: 'Syne', sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }

/* ── Typography ────────────────────────────── */
h1,h2,h3,h4,h5 { font-family: var(--font-display); line-height: 1.15; color: var(--text); }
h1 { font-size: clamp(2rem, 5vw, 3.4rem); }
h2 { font-size: clamp(1.5rem, 3.5vw, 2.2rem); }
h3 { font-size: clamp(1.1rem, 2.5vw, 1.4rem); }
p  { color: var(--text-muted); }

.section-label {
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--primary);
  font-family: var(--font-mono);
  display: block;
  margin-bottom: .4rem;
}

/* ── Layout ─────────────────────────────────── */
.container { max-width: 1180px; margin: 0 auto; padding: 0 1.5rem; }
.section    { padding: 5rem 0; }
.section-sm { padding: 3rem 0; }

/* ── Buttons ─────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; gap: .5rem;
  padding: .7rem 1.6rem; border-radius: var(--radius);
  font-family: var(--font-body); font-weight: 600; font-size: .9rem;
  cursor: pointer; border: none; transition: all .18s ease; white-space: nowrap;
}
.btn-primary { background: var(--primary); color: #fff; box-shadow: 0 2px 12px rgba(255,107,0,.3); }
.btn-primary:hover { background: var(--primary-dark); transform: translateY(-1px); box-shadow: 0 4px 20px rgba(255,107,0,.4); }
.btn-secondary { background: #fff; color: var(--text); border: 1.5px solid var(--card-border); box-shadow: var(--shadow-sm); }
.btn-secondary:hover { border-color: var(--primary); color: var(--primary); }
.btn-ghost { background: transparent; color: var(--text-muted); border: 1.5px solid var(--card-border); }
.btn-ghost:hover { color: var(--primary); border-color: var(--primary); background: rgba(255,107,0,.04); }
.btn-accent  { background: var(--accent2); color: #fff; }
.btn-accent:hover  { background: #6d28d9; transform: translateY(-1px); }
.btn-success { background: var(--success); color: #fff; }
.btn-outline { background: transparent; border: 2px solid var(--primary); color: var(--primary); }
.btn-outline:hover { background: var(--primary); color: #fff; }
.btn-lg  { padding: .9rem 2.2rem; font-size: 1rem; border-radius: var(--radius-lg); }
.btn-sm  { padding: .45rem 1rem; font-size: .82rem; border-radius: 8px; }
.btn-full { width: 100%; justify-content: center; }

/* ── Cards ──────────────────────────────────── */
.card {
  background: var(--card-bg);
  border: 1.5px solid var(--card-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: all .2s ease;
  box-shadow: var(--shadow-sm);
}
.card:hover {
  border-color: rgba(255,107,0,.35);
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
}

/* ── Grid ───────────────────────────────────── */
.grid-3 { display: grid; grid-template-columns: repeat(3,1fr); gap: 1.5rem; }
.grid-4 { display: grid; grid-template-columns: repeat(4,1fr); gap: 1.25rem; }
.grid-2 { display: grid; grid-template-columns: repeat(2,1fr); gap: 1.5rem; }
@media (max-width:1024px) { .grid-4{grid-template-columns:repeat(2,1fr);} .grid-3{grid-template-columns:repeat(2,1fr);} }
@media (max-width:640px)  { .grid-4,.grid-3,.grid-2{grid-template-columns:1fr;} }

/* ── Badge ──────────────────────────────────── */
.badge {
  display: inline-flex; align-items: center;
  padding: .2rem .65rem; border-radius: 100px;
  font-size: .72rem; font-weight: 700; letter-spacing: .3px;
}
.badge-primary { background: rgba(255,107,0,.1); color: var(--primary); border: 1px solid rgba(255,107,0,.2); }
.badge-accent  { background: rgba(14,165,233,.1); color: var(--accent); }
.badge-success { background: rgba(16,185,129,.1); color: var(--success); }
.badge-free    { background: rgba(16,185,129,.1); color: var(--success); }
.badge-basic   { background: rgba(245,158,11,.1); color: var(--warning); }
.badge-premium { background: rgba(124,58,237,.1); color: var(--accent2); }
.badge-hot     { background: var(--primary); color: #fff; font-size: .63rem; padding: .12rem .45rem; vertical-align: middle; margin-left: .3rem; border-radius: 4px; }
.badge-beginner     { background: rgba(16,185,129,.1); color: var(--success); }
.badge-intermediate { background: rgba(245,158,11,.1); color: var(--warning); }
.badge-advanced     { background: rgba(239,68,68,.1); color: var(--error); }

/* ── Navbar ─────────────────────────────────── */
.navbar {
  position: sticky; top: 0; z-index: 1000;
  background: rgba(255,255,255,.95);
  backdrop-filter: blur(20px);
  border-bottom: 1.5px solid var(--card-border);
  padding: .85rem 0;
  transition: all .3s;
  box-shadow: 0 1px 8px rgba(0,0,0,.06);
}
.navbar.scrolled { padding: .6rem 0; box-shadow: var(--shadow); }
.navbar-inner { display: flex; align-items: center; gap: 1.25rem; }
.logo { display: flex; align-items: center; gap: .45rem; font-family: var(--font-display); font-size: 1.45rem; font-weight: 800; flex-shrink: 0; }
.logo-icon { font-size: 1.35rem; }
.logo-accent { color: var(--primary); }

.nav-links { display: flex; align-items: center; gap: .1rem; flex: 1; }
.nav-link {
  padding: .45rem .85rem; color: var(--text-muted);
  font-weight: 500; font-size: .88rem; border-radius: 8px;
  transition: all .15s; white-space: nowrap;
}
.nav-link:hover, .nav-link.active { color: var(--text); background: var(--bg2); }
.nav-highlight { color: var(--primary) !important; font-weight: 600; }

.nav-actions { display: flex; align-items: center; gap: .65rem; margin-left: auto; }
.nav-search { display: flex; align-items: center; }
.nav-search-input {
  background: var(--bg2); border: 1.5px solid var(--card-border); color: var(--text);
  padding: .42rem .9rem; border-radius: 8px 0 0 8px;
  font-size: .83rem; width: 150px; transition: all .25s; font-family: var(--font-body);
}
.nav-search-input:focus { outline: none; border-color: var(--primary); width: 190px; background: #fff; }
.nav-search-btn { background: var(--primary); border: none; color: #fff; padding: .42rem .8rem; border-radius: 0 8px 8px 0; cursor: pointer; }

/* Dropdown */
.nav-dropdown { position: relative; }
.dropdown-menu {
  position: absolute; top: calc(100% + .6rem); left: 0;
  background: #fff; border: 1.5px solid var(--card-border);
  border-radius: var(--radius); padding: .4rem; min-width: 210px;
  opacity: 0; visibility: hidden; transform: translateY(-6px);
  transition: all .2s; z-index: 100;
  box-shadow: var(--shadow-lg);
}
.nav-dropdown:hover .dropdown-menu { opacity: 1; visibility: visible; transform: translateY(0); }
.dropdown-item {
  display: flex; align-items: center; gap: .65rem;
  padding: .55rem .9rem; border-radius: 8px;
  font-size: .86rem; color: var(--text-muted); transition: all .13s;
}
.dropdown-item:hover { color: var(--primary); background: rgba(255,107,0,.05); }
.dropdown-item i { color: var(--primary); width: 16px; text-align: center; }

/* Nav user */
.nav-user-menu { position: relative; }
.nav-avatar { cursor: pointer; display: block; }
.avatar-img { width: 34px; height: 34px; border-radius: 50%; border: 2px solid var(--primary); object-fit: cover; }
.user-dropdown {
  position: absolute; top: calc(100% + .75rem); right: 0;
  background: #fff; border: 1.5px solid var(--card-border);
  border-radius: var(--radius); padding: .4rem; min-width: 175px;
  opacity: 0; visibility: hidden; transform: translateY(-6px);
  transition: all .2s; z-index: 100; box-shadow: var(--shadow-lg);
}
.nav-user-menu:hover .user-dropdown { opacity: 1; visibility: visible; transform: translateY(0); }
.user-dropdown a {
  display: flex; align-items: center; gap: .65rem;
  padding: .55rem .9rem; border-radius: 8px;
  font-size: .86rem; color: var(--text-muted); transition: all .13s;
}
.user-dropdown a:hover { color: var(--primary); background: rgba(255,107,0,.05); }
.user-dropdown hr { border: none; border-top: 1px solid var(--card-border); margin: .35rem 0; }

.hamburger { display: none; flex-direction: column; gap: 5px; background: none; border: none; cursor: pointer; padding: .25rem; }
.hamburger span { display: block; width: 22px; height: 2px; background: var(--text); border-radius: 2px; transition: all .3s; }

/* ── Flash ───────────────────────────────────── */
.flash-msg {
  position: fixed; top: 76px; right: 1.5rem; z-index: 9999;
  padding: .9rem 1.4rem; border-radius: var(--radius);
  display: flex; align-items: center; gap: .7rem; font-weight: 500;
  animation: slideIn .3s ease; max-width: 380px; box-shadow: var(--shadow-lg);
  font-size: .88rem;
}
.flash-success { background: #fff; border: 1.5px solid var(--success); color: var(--success); }
.flash-error   { background: #fff; border: 1.5px solid var(--error);   color: var(--error); }
.flash-close   { background: none; border: none; color: inherit; cursor: pointer; margin-left: auto; font-size: 1.1rem; opacity: .6; }
@keyframes slideIn { from { opacity:0; transform:translateX(16px); } to { opacity:1; transform:translateX(0); } }

/* ── Hero ────────────────────────────────────── */
.hero {
  position: relative; min-height: 84vh;
  display: flex; align-items: center; overflow: hidden; padding: 4rem 0;
  background: linear-gradient(135deg, #FFF8F3 0%, #F8F9FC 50%, #F0F4FF 100%);
}
.hero-bg {
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse at 5% 50%, rgba(255,107,0,.1) 0%, transparent 55%),
    radial-gradient(ellipse at 95% 20%, rgba(124,58,237,.07) 0%, transparent 50%),
    radial-gradient(ellipse at 60% 90%, rgba(14,165,233,.06) 0%, transparent 50%);
}
.hero-grid-lines {
  position: absolute; inset: 0;
  background-image: linear-gradient(rgba(255,107,0,.05) 1px, transparent 1px),
                    linear-gradient(90deg, rgba(255,107,0,.05) 1px, transparent 1px);
  background-size: 56px 56px;
}
.hero-content { position: relative; z-index: 1; max-width: 680px; }
.hero-eyebrow {
  display: inline-flex; align-items: center; gap: .45rem;
  background: rgba(255,107,0,.08); border: 1.5px solid rgba(255,107,0,.25);
  color: var(--primary); padding: .35rem .9rem; border-radius: 100px;
  font-size: .78rem; font-weight: 700; letter-spacing: 1px; text-transform: uppercase;
  margin-bottom: 1.4rem; font-family: var(--font-mono);
}
.hero h1 { margin-bottom: 1.1rem; }
.hero h1 .highlight {
  color: var(--primary); position: relative; display: inline-block;
}
.hero h1 .highlight::after {
  content: ''; position: absolute; bottom: -3px; left: 0; right: 0;
  height: 3px; background: linear-gradient(90deg, var(--primary), transparent);
  border-radius: 2px;
}
.hero-desc { font-size: 1.1rem; color: var(--text-muted); margin-bottom: 2.2rem; line-height: 1.75; }
.hero-actions { display: flex; gap: .9rem; flex-wrap: wrap; margin-bottom: 2.8rem; }
.hero-stats { display: flex; gap: 2.5rem; }
.hero-stat-num { font-family: var(--font-display); font-size: 1.7rem; font-weight: 800; color: var(--primary); }
.hero-stat-label { font-size: .78rem; color: var(--text-muted); }

/* ── Section Headers ─────────────────────────── */
.section-header { text-align: center; margin-bottom: 3rem; }
.section-header h2 { margin: .4rem 0 .85rem; }
.section-header p { color: var(--text-muted); max-width: 520px; margin: 0 auto; font-size: .95rem; }

/* ── Category Cards ──────────────────────────── */
.cat-card {
  background: var(--card-bg); border: 1.5px solid var(--card-border);
  border-radius: var(--radius-lg); padding: 1.65rem; text-align: center;
  cursor: pointer; transition: all .22s;
  box-shadow: var(--shadow-sm);
}
.cat-card:hover {
  border-color: var(--cat-color, var(--primary));
  transform: translateY(-4px); box-shadow: var(--shadow-lg);
  background: linear-gradient(135deg, #fff, rgba(255,107,0,.02));
}
.cat-icon {
  width: 56px; height: 56px; border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.5rem; margin: 0 auto .9rem;
}
.cat-card h3 { font-size: 1rem; margin-bottom: .3rem; color: var(--text); }
.cat-card p  { font-size: .8rem; color: var(--text-muted); }

/* ── Course Cards ────────────────────────────── */
.course-card { cursor: pointer; }
.course-thumb {
  height: 185px; background: linear-gradient(135deg, #FFF3EA, #F8F9FC);
  display: flex; align-items: center; justify-content: center;
  font-size: 3.5rem; position: relative; overflow: hidden;
}
.course-thumb img { width: 100%; height: 100%; object-fit: cover; }
.course-level { position: absolute; top: .7rem; left: .7rem; }
.course-body { padding: 1.2rem; }
.course-meta { display: flex; align-items: center; gap: .9rem; margin-bottom: .65rem; font-size: .78rem; color: var(--text-muted); }
.course-meta i { color: var(--primary); }
.course-title { font-size: 1rem; margin-bottom: .45rem; color: var(--text); transition: color .15s; }
.course-card:hover .course-title { color: var(--primary); }
.course-desc { font-size: .82rem; color: var(--text-muted); margin-bottom: .9rem; line-height: 1.6; }
.course-footer { display: flex; align-items: center; justify-content: space-between; }
.course-price { font-family: var(--font-display); font-size: 1rem; font-weight: 700; }
.course-price .free { color: var(--success); }

/* ── Tool Cards ──────────────────────────────── */
.tool-card {
  background: var(--card-bg); border: 1.5px solid var(--card-border);
  border-radius: var(--radius-lg); overflow: hidden;
  transition: all .22s; cursor: pointer; display: flex; flex-direction: column;
  box-shadow: var(--shadow-sm);
}
.tool-card:hover { border-color: rgba(255,107,0,.4); transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.tool-thumb {
  height: 155px;
  background: linear-gradient(135deg, #FFF3EA, #F8F9FC);
  display: flex; align-items: center; justify-content: center;
  font-size: 3rem; position: relative; overflow: hidden;
}
.tool-thumb img { width: 100%; height: 100%; object-fit: cover; }
.tool-body { padding: 1.1rem; flex: 1; display: flex; flex-direction: column; }
.tool-title { font-size: .95rem; font-weight: 700; margin-bottom: .35rem; color: var(--text); }
.tool-desc  { font-size: .8rem; color: var(--text-muted); margin-bottom: .9rem; flex: 1; line-height: 1.55; }
.tool-footer { display: flex; align-items: center; justify-content: space-between; }
.tool-lessons { font-size: .78rem; color: var(--text-muted); }

/* ── Pricing ─────────────────────────────────── */
.pricing-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 1.5rem; max-width: 900px; margin: 0 auto; }
@media (max-width:768px) { .pricing-grid { grid-template-columns: 1fr; max-width: 380px; } }
.pricing-card {
  background: var(--card-bg); border: 1.5px solid var(--card-border);
  border-radius: var(--radius-lg); padding: 2rem; text-align: center;
  position: relative; transition: all .22s; box-shadow: var(--shadow-sm);
}
.pricing-card.featured {
  border-color: var(--primary);
  background: linear-gradient(160deg, #FFF8F3, #fff);
  box-shadow: 0 8px 32px rgba(255,107,0,.15);
}
.pricing-popular-tag {
  position: absolute; top: -14px; left: 50%; transform: translateX(-50%);
  background: var(--primary); color: #fff; padding: .28rem 1.1rem;
  border-radius: 100px; font-size: .7rem; font-weight: 700; letter-spacing: 1px;
}
.pricing-icon   { font-size: 2.4rem; margin-bottom: .9rem; }
.pricing-name   { font-size: .82rem; font-weight: 700; text-transform: uppercase; letter-spacing: 1.5px; color: var(--text-muted); margin-bottom: .5rem; }
.pricing-price  { font-family: var(--font-display); font-size: 2.6rem; font-weight: 800; color: var(--text); margin-bottom: .2rem; }
.pricing-price.free { color: var(--success); }
.pricing-price sup { font-size: 1.1rem; vertical-align: top; margin-top: .55rem; color: var(--text-muted); }
.pricing-per    { font-size: .8rem; color: var(--text-muted); margin-bottom: 1.4rem; }
.pricing-features { text-align: left; margin-bottom: 1.6rem; }
.pricing-features li { display: flex; align-items: flex-start; gap: .55rem; padding: .45rem 0; border-bottom: 1px solid var(--card-border); font-size: .85rem; color: var(--text-muted); }
.pricing-features li i { color: var(--success); margin-top: .2rem; flex-shrink: 0; }
.pricing-features li.no i { color: var(--error); }

/* ── Testimonials ────────────────────────────── */
.testimonials-grid { display: grid; grid-template-columns: repeat(2,1fr); gap: 1.4rem; }
@media (max-width:768px) { .testimonials-grid { grid-template-columns: 1fr; } }
.testimonial-card {
  background: var(--card-bg); border: 1.5px solid var(--card-border);
  border-radius: var(--radius-lg); padding: 1.6rem; box-shadow: var(--shadow-sm);
}
.testimonial-stars { color: var(--warning); margin-bottom: .65rem; font-size: .88rem; }
.testimonial-text  { color: var(--text-muted); font-size: .89rem; line-height: 1.72; margin-bottom: 1.1rem; font-style: italic; }
.testimonial-author { display: flex; align-items: center; gap: .7rem; }
.testimonial-avatar {
  width: 42px; height: 42px; border-radius: 50%;
  background: linear-gradient(135deg, #FFF3EA, #FFE0CC);
  border: 2px solid rgba(255,107,0,.3);
  display: flex; align-items: center; justify-content: center; font-size: 1.2rem; overflow: hidden;
}
.testimonial-name { font-weight: 700; font-size: .88rem; color: var(--text); }
.testimonial-role { font-size: .75rem; color: var(--text-muted); }

/* ── FAQ ─────────────────────────────────────── */
.faq-item { border: 1.5px solid var(--card-border); border-radius: var(--radius); margin-bottom: .6rem; overflow: hidden; background: var(--card-bg); }
.faq-question {
  width: 100%; background: var(--card-bg); border: none; color: var(--text);
  padding: 1rem 1.4rem; text-align: left; font-family: var(--font-body);
  font-size: .92rem; font-weight: 600; cursor: pointer;
  display: flex; align-items: center; justify-content: space-between; gap: 1rem; transition: background .15s;
}
.faq-question:hover { background: var(--bg2); }
.faq-question.active { color: var(--primary); background: rgba(255,107,0,.03); }
.faq-icon { font-size: .78rem; transition: transform .3s; flex-shrink: 0; color: var(--text-dim); }
.faq-question.active .faq-icon { transform: rotate(180deg); color: var(--primary); }
.faq-answer { display: none; padding: .9rem 1.4rem 1.1rem; color: var(--text-muted); font-size: .88rem; line-height: 1.72; background: var(--bg2); border-top: 1px solid var(--card-border); }
.faq-answer.open { display: block; }

/* ── Forms ───────────────────────────────────── */
.form-group { margin-bottom: 1.15rem; }
.form-label { display: block; font-size: .84rem; font-weight: 600; margin-bottom: .45rem; color: var(--text); }
.form-control {
  width: 100%; background: var(--bg2); border: 1.5px solid var(--card-border);
  color: var(--text); padding: .75rem 1rem; border-radius: var(--radius);
  font-family: var(--font-body); font-size: .9rem; transition: all .18s;
}
.form-control:focus { outline: none; border-color: var(--primary); background: #fff; box-shadow: 0 0 0 3px rgba(255,107,0,.1); }
.form-control::placeholder { color: var(--text-dim); }
select.form-control { cursor: pointer; }
textarea.form-control { resize: vertical; min-height: 110px; }
.form-error { font-size: .78rem; color: var(--error); margin-top: .3rem; }
.form-hint  { font-size: .76rem; color: var(--text-dim); margin-top: .3rem; }

/* ── Auth ────────────────────────────────────── */
.auth-page {
  min-height: 100vh; display: flex; align-items: center; justify-content: center;
  padding: 2rem 1.5rem;
  background: linear-gradient(135deg, #FFF8F3 0%, #F8F9FC 100%);
}
.auth-card {
  background: var(--card-bg); border: 1.5px solid var(--card-border);
  border-radius: var(--radius-lg); padding: 2.4rem;
  width: 100%; max-width: 430px; box-shadow: var(--shadow-lg);
}
.auth-logo { text-align: center; margin-bottom: 1.75rem; }
.auth-title { font-size: 1.5rem; margin-bottom: .35rem; }
.auth-subtitle { color: var(--text-muted); font-size: .87rem; margin-bottom: 1.75rem; }
.auth-footer { text-align: center; margin-top: 1.1rem; font-size: .85rem; color: var(--text-muted); }
.auth-footer a { color: var(--primary); font-weight: 600; }

/* ── Dashboard ───────────────────────────────── */
.dash-layout { display: grid; grid-template-columns: 230px 1fr; gap: 1.75rem; min-height: calc(100vh - 80px); padding: 2rem 0; }
@media (max-width:900px) { .dash-layout { grid-template-columns: 1fr; } }
.dash-sidebar {
  background: var(--card-bg); border: 1.5px solid var(--card-border);
  border-radius: var(--radius-lg); padding: 1.4rem; height: fit-content;
  position: sticky; top: 90px; box-shadow: var(--shadow-sm);
}
.dash-nav-item {
  display: flex; align-items: center; gap: .7rem;
  padding: .7rem .9rem; border-radius: var(--radius);
  color: var(--text-muted); font-size: .87rem; font-weight: 500;
  margin-bottom: .2rem; transition: all .15s; cursor: pointer;
}
.dash-nav-item:hover, .dash-nav-item.active { color: var(--text); background: var(--bg2); }
.dash-nav-item.active { color: var(--primary); background: rgba(255,107,0,.06); }
.dash-nav-item i { width: 17px; color: var(--primary); }

.dash-welcome {
  background: linear-gradient(135deg, #FFF8F3, #FFF0E6);
  border: 1.5px solid rgba(255,107,0,.2); border-radius: var(--radius-lg);
  padding: 1.6rem 1.75rem; margin-bottom: 1.75rem;
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
}
.dash-stats-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 1rem; margin-bottom: 1.75rem; }
@media (max-width:768px) { .dash-stats-grid { grid-template-columns: repeat(2,1fr); } }
.dash-stat {
  background: var(--card-bg); border: 1.5px solid var(--card-border);
  border-radius: var(--radius); padding: 1.2rem; text-align: center; box-shadow: var(--shadow-sm);
}
.dash-stat-num   { font-family: var(--font-display); font-size: 1.75rem; font-weight: 800; color: var(--primary); }
.dash-stat-label { font-size: .76rem; color: var(--text-muted); margin-top: .2rem; }

/* Progress Bar */
.progress-bar  { background: var(--bg3); border-radius: 100px; height: 6px; overflow: hidden; margin-top: .4rem; }
.progress-fill { height: 100%; background: linear-gradient(90deg, var(--primary), var(--primary-light)); border-radius: 100px; transition: width .5s ease; }

/* ── Lesson Page ─────────────────────────────── */
.lesson-layout { display: grid; grid-template-columns: 1fr 310px; gap: 1.75rem; padding: 1.75rem 0; }
@media (max-width:1024px) { .lesson-layout { grid-template-columns: 1fr; } }
.lesson-video-wrap { background: #000; border-radius: var(--radius-lg); overflow: hidden; aspect-ratio: 16/9; margin-bottom: 1.4rem; }
.lesson-video-wrap iframe { width: 100%; height: 100%; border: none; }
.lesson-locked {
  aspect-ratio: 16/9; background: linear-gradient(135deg, #FFF3EA, var(--bg2));
  border-radius: var(--radius-lg); display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: .9rem; text-align: center;
  margin-bottom: 1.4rem; border: 2px dashed rgba(255,107,0,.3);
}
.locked-icon { font-size: 2.8rem; color: var(--primary); }
.lesson-content { background: var(--card-bg); border: 1.5px solid var(--card-border); border-radius: var(--radius-lg); padding: 1.75rem; margin-bottom: 1.4rem; box-shadow: var(--shadow-sm); }
.lesson-content h3, .lesson-content h4 { color: var(--primary); margin: 1.3rem 0 .65rem; }
.lesson-content p  { color: var(--text-muted); line-height: 1.8; margin-bottom: .9rem; }
.lesson-content ul { margin-left: 1.4rem; }
.lesson-content li { color: var(--text-muted); margin-bottom: .35rem; }

.lesson-sidebar { display: flex; flex-direction: column; gap: 1.1rem; }
.lesson-list { background: var(--card-bg); border: 1.5px solid var(--card-border); border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-sm); }
.lesson-list-header { padding: .9rem 1.1rem; border-bottom: 1px solid var(--card-border); font-weight: 700; display: flex; justify-content: space-between; align-items: center; font-size: .88rem; background: var(--bg2); }
.lesson-list-item {
  display: flex; align-items: center; gap: .65rem;
  padding: .8rem 1.1rem; border-bottom: 1px solid rgba(0,0,0,.05);
  font-size: .84rem; cursor: pointer; transition: background .12s;
}
.lesson-list-item:hover { background: var(--bg2); }
.lesson-list-item.active { background: rgba(255,107,0,.06); color: var(--primary); }
.lesson-list-item.completed .lesson-num { background: var(--success); color: #fff; }
.lesson-list-item.locked { opacity: .5; cursor: not-allowed; }
.lesson-num { width: 24px; height: 24px; border-radius: 50%; background: var(--bg3); display: flex; align-items: center; justify-content: center; font-size: .72rem; font-weight: 700; flex-shrink: 0; color: var(--text-muted); }
.lesson-list-title { flex: 1; }
.lesson-duration { font-size: .73rem; color: var(--text-dim); white-space: nowrap; }
.lesson-nav { display: flex; gap: .9rem; margin-top: 1.4rem; }
.lesson-nav .btn { flex: 1; justify-content: center; }

/* Takeaways */
.takeaways { background: rgba(14,165,233,.05); border: 1.5px solid rgba(14,165,233,.18); border-radius: var(--radius); padding: 1.1rem; margin-bottom: 1.4rem; }
.takeaways h4 { color: var(--accent); margin-bottom: .65rem; font-size: .92rem; }
.takeaway-item { display: flex; align-items: flex-start; gap: .55rem; padding: .3rem 0; font-size: .85rem; color: var(--text-muted); }
.takeaway-item::before { content: '⚡'; flex-shrink: 0; }

/* ── Quiz ────────────────────────────────────── */
.quiz-card { background: var(--card-bg); border: 1.5px solid var(--card-border); border-radius: var(--radius-lg); padding: 2rem; max-width: 680px; margin: 0 auto; box-shadow: var(--shadow); }
.quiz-q-num { font-size: .8rem; color: var(--text-muted); margin-bottom: .9rem; font-family: var(--font-mono); }
.quiz-question { font-size: 1.05rem; font-weight: 600; margin-bottom: 1.3rem; line-height: 1.5; color: var(--text); }
.quiz-options { display: flex; flex-direction: column; gap: .65rem; margin-bottom: 1.75rem; }
.quiz-option {
  display: flex; align-items: flex-start; gap: .8rem;
  padding: .9rem 1.1rem; border: 1.5px solid var(--card-border);
  border-radius: var(--radius); cursor: pointer; transition: all .15s; background: var(--bg2);
}
.quiz-option:hover   { border-color: var(--primary); background: rgba(255,107,0,.04); }
.quiz-option.selected{ border-color: var(--primary); background: rgba(255,107,0,.07); }
.quiz-option.correct { border-color: var(--success); background: rgba(16,185,129,.07); }
.quiz-option.wrong   { border-color: var(--error);   background: rgba(239,68,68,.06); }
.quiz-option-letter  { width: 28px; height: 28px; border-radius: 50%; background: var(--card-bg); border: 1.5px solid var(--card-border); display: flex; align-items: center; justify-content: center; font-size: .78rem; font-weight: 700; flex-shrink: 0; color: var(--text-muted); }

/* ── Certificate ─────────────────────────────── */
.certificate-wrap { max-width: 780px; margin: 0 auto; }
.certificate-card {
  background: linear-gradient(135deg, #FFF8F3, #FFF0E6, #FFFFFF);
  border: 3px solid var(--primary); border-radius: 20px; padding: 3rem; text-align: center; position: relative; overflow: hidden;
  box-shadow: 0 20px 60px rgba(255,107,0,.15);
}
.cert-decoration { position: absolute; width: 200px; height: 200px; border-radius: 50%; background: radial-gradient(circle, rgba(255,107,0,.08), transparent); }
.cert-decoration.tl { top: -50px; left: -50px; }
.cert-decoration.br { bottom: -50px; right: -50px; }
.cert-logo { font-size: 3rem; margin-bottom: 1rem; }
.cert-presents { font-size: .82rem; color: var(--text-muted); letter-spacing: 3px; text-transform: uppercase; margin-bottom: 1.4rem; }
.cert-name     { font-size: 2.4rem; font-weight: 800; color: var(--primary); margin-bottom: .65rem; }
.cert-completed{ font-size: .88rem; color: var(--text-muted); margin-bottom: .4rem; }
.cert-course   { font-size: 1.5rem; font-weight: 700; color: var(--text); margin-bottom: 1.75rem; }
.cert-footer   { display: flex; justify-content: space-between; align-items: flex-end; margin-top: 1.75rem; border-top: 1.5px solid rgba(255,107,0,.2); padding-top: 1.3rem; }
.cert-id  { font-family: var(--font-mono); font-size: .72rem; color: var(--text-muted); }
.cert-date{ font-size: .82rem; color: var(--text-muted); }

/* ── CTA Banner ──────────────────────────────── */
.cta-banner {
  background: linear-gradient(135deg, #FFF8F3, #FFF0E6);
  border: 1.5px solid rgba(255,107,0,.25); border-radius: var(--radius-lg);
  padding: 3rem 2rem; text-align: center; position: relative; overflow: hidden;
}
.cta-banner::before {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(ellipse at 50% 100%, rgba(255,107,0,.06), transparent 70%);
}
.cta-banner > * { position: relative; z-index: 1; }
.cta-banner h2 { margin-bottom: .65rem; }
.cta-banner p  { color: var(--text-muted); margin-bottom: 1.6rem; }
.cta-actions   { display: flex; gap: .9rem; justify-content: center; flex-wrap: wrap; }

/* ── Admin ───────────────────────────────────── */
.admin-layout { display: grid; grid-template-columns: 215px 1fr; min-height: 100vh; }
.admin-sidebar { background: #fff; border-right: 1.5px solid var(--card-border); padding: 1.4rem 0; box-shadow: 1px 0 8px rgba(0,0,0,.04); }
.admin-sidebar .logo { padding: 0 1.2rem 1.4rem; border-bottom: 1px solid var(--card-border); display: flex; }
.admin-nav { margin-top: 1.4rem; }
.admin-nav-item {
  display: flex; align-items: center; gap: .7rem;
  padding: .65rem 1.2rem; color: var(--text-muted);
  font-size: .86rem; font-weight: 500; transition: all .13s;
  border-left: 2.5px solid transparent;
}
.admin-nav-item:hover, .admin-nav-item.active { color: var(--text); background: var(--bg2); }
.admin-nav-item.active { color: var(--primary); border-left-color: var(--primary); background: rgba(255,107,0,.04); }
.admin-nav-item i { width: 17px; text-align: center; }
.admin-main { padding: 2rem; overflow-y: auto; background: var(--bg); }
.admin-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 1.75rem; }
.admin-title { font-size: 1.4rem; font-weight: 800; }

.admin-table { width: 100%; border-collapse: collapse; }
.admin-table th, .admin-table td { padding: .85rem 1rem; text-align: left; border-bottom: 1px solid var(--card-border); font-size: .85rem; }
.admin-table th { color: var(--text-muted); font-weight: 600; font-size: .78rem; text-transform: uppercase; letter-spacing: .5px; background: var(--bg2); }
.admin-table tbody tr:hover { background: var(--bg2); }
.admin-table .actions { display: flex; gap: .4rem; }
.btn-icon { width: 30px; height: 30px; border-radius: 7px; border: none; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; font-size: .78rem; transition: all .13s; }
.btn-edit   { background: rgba(14,165,233,.1); color: var(--accent); }
.btn-edit:hover { background: rgba(14,165,233,.2); }
.btn-delete { background: rgba(239,68,68,.1); color: var(--error); }
.btn-delete:hover { background: rgba(239,68,68,.2); }

/* ── Info Boxes ──────────────────────────────── */
.info-grid { display: grid; grid-template-columns: repeat(2,1fr); gap: 1.1rem; margin-bottom: 1.75rem; }
@media (max-width:640px) { .info-grid { grid-template-columns: 1fr; } }
.info-box { background: var(--card-bg); border: 1.5px solid var(--card-border); border-radius: var(--radius); padding: 1.4rem; box-shadow: var(--shadow-sm); }
.info-box h4 { font-size: .95rem; margin-bottom: .7rem; color: var(--primary); display: flex; align-items: center; gap: .45rem; }
.info-box p, .info-box li { font-size: .86rem; color: var(--text-muted); line-height: 1.7; }
.info-box ul { margin-left: .9rem; }
.info-box li { margin-bottom: .3rem; list-style: disc; }

/* ── Breadcrumb ──────────────────────────────── */
.breadcrumb { display: flex; align-items: center; gap: .45rem; font-size: .8rem; color: var(--text-dim); margin-bottom: 1.4rem; flex-wrap: wrap; }
.breadcrumb a { color: var(--text-muted); transition: color .13s; }
.breadcrumb a:hover { color: var(--primary); }
.breadcrumb .sep { color: var(--text-dim); }

/* ── Search ──────────────────────────────────── */
.search-input-lg {
  width: 100%; background: var(--card-bg);
  border: 1.5px solid var(--card-border); color: var(--text);
  padding: 1rem 1.4rem; border-radius: var(--radius-lg);
  font-size: 1.05rem; font-family: var(--font-body); transition: all .2s;
  box-shadow: var(--shadow-sm);
}
.search-input-lg:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px rgba(255,107,0,.1); }
.search-result-item { display: flex; gap: 1rem; padding: 1.2rem 0; border-bottom: 1px solid var(--card-border); }
.search-result-thumb { width: 76px; height: 56px; border-radius: 8px; background: var(--bg2); display: flex; align-items: center; justify-content: center; font-size: 1.7rem; flex-shrink: 0; overflow: hidden; }
.search-result-info h4 { font-size: .92rem; margin-bottom: .28rem; transition: color .15s; color: var(--text); }
.search-result-info h4:hover { color: var(--primary); }
.search-result-info p { font-size: .8rem; color: var(--text-muted); }

/* ── Footer ──────────────────────────────────── */
.footer { border-top: 1.5px solid var(--card-border); background: #fff; }
.footer-top { padding: 3.5rem 0 2.5rem; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr 1.4fr; gap: 2.5rem; }
@media (max-width:900px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width:580px) { .footer-grid { grid-template-columns: 1fr; } }
.footer-tagline { font-size: .85rem; color: var(--text-muted); margin: .65rem 0 1.1rem; max-width: 240px; }
.footer-social { display: flex; gap: .6rem; }
.footer-social a {
  width: 34px; height: 34px; border-radius: 8px;
  background: var(--bg2); display: flex; align-items: center; justify-content: center;
  color: var(--text-muted); font-size: .85rem; transition: all .18s; border: 1.5px solid var(--card-border);
}
.footer-social a:hover { background: var(--primary); color: #fff; border-color: var(--primary); }
.footer-heading { font-size: .76rem; font-weight: 700; color: var(--text); letter-spacing: 1.5px; text-transform: uppercase; margin-bottom: 1.1rem; font-family: var(--font-mono); }
.footer-links li { margin-bottom: .55rem; }
.footer-links a { font-size: .85rem; color: var(--text-muted); transition: color .13s; }
.footer-links a:hover { color: var(--primary); }
.footer-input { width: 100%; background: var(--bg2); border: 1.5px solid var(--card-border); color: var(--text); padding: .6rem .9rem; border-radius: var(--radius); font-size: .83rem; margin-bottom: .65rem; font-family: var(--font-body); }
.footer-input:focus { outline: none; border-color: var(--primary); }
.footer-bottom { border-top: 1px solid var(--card-border); padding: 1.3rem 0; text-align: center; font-size: .8rem; color: var(--text-muted); background: var(--bg2); }

/* ── Utility ─────────────────────────────────── */
.text-center { text-align: center; }
.text-muted  { color: var(--text-muted); }
.text-primary{ color: var(--primary); }
.text-success{ color: var(--success); }
.text-error  { color: var(--error); }
.mt-1{margin-top:.5rem;}.mt-2{margin-top:1rem;}.mt-3{margin-top:1.5rem;}.mt-4{margin-top:2rem;}
.mb-1{margin-bottom:.5rem;}.mb-2{margin-bottom:1rem;}.mb-3{margin-bottom:1.5rem;}.mb-4{margin-bottom:2rem;}
.flex { display: flex; }
.flex-center { display: flex; align-items: center; justify-content: center; }
.gap-1{gap:.5rem;}.gap-2{gap:1rem;}
.hidden { display: none !important; }
.divider { border: none; border-top: 1.5px solid var(--card-border); margin: 1.75rem 0; }

/* Skill tags */
.skills-list { display: flex; flex-wrap: wrap; gap: .45rem; margin-top: .65rem; }
.skill-tag { background: rgba(14,165,233,.07); border: 1px solid rgba(14,165,233,.2); color: var(--accent); padding: .22rem .75rem; border-radius: 100px; font-size: .76rem; font-weight: 600; }

/* Roadmap */
.roadmap { position: relative; padding-left: 2rem; }
.roadmap::before { content: ''; position: absolute; left: 8px; top: 8px; bottom: 0; width: 2px; background: linear-gradient(to bottom, var(--primary), rgba(255,107,0,.1)); }
.roadmap-step { position: relative; margin-bottom: 1.4rem; }
.roadmap-step::before { content: attr(data-num); position: absolute; left: -2rem; top: 1px; width: 20px; height: 20px; border-radius: 50%; background: var(--primary); color: #fff; font-size: .68rem; font-weight: 700; display: flex; align-items: center; justify-content: center; }
.roadmap-step h4 { font-size: .92rem; margin-bottom: .22rem; color: var(--text); }
.roadmap-step p  { font-size: .8rem; color: var(--text-muted); }

/* Upgrade prompt */
.upgrade-prompt {
  background: linear-gradient(135deg, rgba(124,58,237,.06), rgba(255,107,0,.04));
  border: 1.5px solid rgba(124,58,237,.2); border-radius: var(--radius-lg);
  padding: 1.6rem; text-align: center; margin-top: 1.1rem;
}
.upgrade-prompt h4 { margin-bottom: .4rem; color: var(--text); }
.upgrade-prompt p  { font-size: .85rem; color: var(--text-muted); margin-bottom: 1.1rem; }

/* Tags */
.tags { display: flex; gap: .4rem; flex-wrap: wrap; margin-bottom: .9rem; }
.tag { background: var(--bg3); color: var(--text-muted); padding: .18rem .65rem; border-radius: 100px; font-size: .73rem; font-weight: 500; border: 1px solid var(--card-border); }

/* Spinner */
.spinner { width: 22px; height: 22px; border: 2.5px solid rgba(255,107,0,.2); border-top-color: var(--primary); border-radius: 50%; animation: spin .6s linear infinite; display: inline-block; }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes fadeUp { from { opacity:0; transform:translateY(24px); } to { opacity:1; transform:translateY(0); } }
.animate-fade-up { animation: fadeUp .55s ease both; }
.animate-delay-1 { animation-delay: .1s; }
.animate-delay-2 { animation-delay: .2s; }
.animate-delay-3 { animation-delay: .3s; }

/* Tool hero */
.tool-hero { padding: 3.5rem 0 2.5rem; background: linear-gradient(135deg, #FFF8F3 0%, #F8F9FC 100%); border-bottom: 1.5px solid var(--card-border); }
.tool-hero-bg { display: none; }
.tool-hero-inner { display: grid; grid-template-columns: 1fr 320px; gap: 2.5rem; align-items: center; }
@media (max-width:900px) { .tool-hero-inner { grid-template-columns: 1fr; } }
.tool-hero-img { background: linear-gradient(135deg, #FFF3EA, #F8F9FC); border-radius: var(--radius-lg); aspect-ratio: 16/10; display: flex; align-items: center; justify-content: center; font-size: 5rem; border: 1.5px solid var(--card-border); overflow: hidden; box-shadow: var(--shadow); }
.tool-hero-img img { width: 100%; height: 100%; object-fit: cover; }

/* Mobile nav */
@media (max-width:768px) {
  .nav-links { display: none; position: fixed; top: 64px; left: 0; right: 0; background: #fff; padding: .75rem; flex-direction: column; align-items: flex-start; border-bottom: 1.5px solid var(--card-border); box-shadow: var(--shadow); z-index: 999; }
  .nav-links.open { display: flex; }
  .nav-search { display: none; }
  .hamburger { display: flex; }
  .hero-stats { gap: 1.5rem; }
  .dash-sidebar { position: static; }
  .lesson-layout { grid-template-columns: 1fr; }
}

/* "Why MLNinja" section alt bg */
.section-alt { background: linear-gradient(135deg, #FFF8F3, #F8F9FC); }

/* Accent strip */
.orange-strip { background: var(--primary); color: #fff; padding: 1rem 0; text-align: center; font-weight: 600; font-size: .9rem; }

/* ── Missing utility classes ──────────────────────────────── */

/* Logo text parts */
.logo-text { font-family: var(--font-display); font-size: 1.25rem; font-weight: 800; color: var(--text); }
.logo-accent { color: var(--primary); }

/* Dash content area */
.dash-content { min-width: 0; }

/* Footer brand + cols */
.footer-brand { max-width: 260px; }
.footer-col {}
.footer-newsletter { display: flex; gap: .5rem; }
.footer-input { flex: 1; padding: .5rem .85rem; border: 1.5px solid var(--card-border); border-radius: var(--radius); background: var(--bg2); color: var(--text); font-size: .88rem; outline: none; }
.footer-input:focus { border-color: var(--primary); }
.footer-heading { font-size: .82rem; text-transform: uppercase; letter-spacing: .07em; color: var(--text-muted); margin-bottom: .85rem; font-weight: 700; }
.footer-links { list-style: none; display: flex; flex-direction: column; gap: .4rem; }
.footer-links a { font-size: .88rem; color: var(--text-muted); text-decoration: none; transition: color .2s; }
.footer-links a:hover { color: var(--primary); }
.footer-tagline { font-size: .88rem; color: var(--text-muted); margin: .6rem 0 1rem; line-height: 1.5; }
.footer-social { display: flex; gap: .6rem; }
.footer-social a { width: 34px; height: 34px; border-radius: 8px; background: var(--bg3); border: 1.5px solid var(--card-border); display: flex; align-items: center; justify-content: center; color: var(--text-muted); font-size: .9rem; transition: all .2s; text-decoration: none; }
.footer-social a:hover { background: var(--primary); border-color: var(--primary); color: #fff; }

/* Progress pct label */
.progress-pct { font-size: .82rem; color: var(--primary); font-weight: 700; white-space: nowrap; }

/* Quiz progress bar wrapper */
.quiz-progress-bar { margin-bottom: 1.5rem; }

/* Quiz question block */
.quiz-question-block {}

/* Search page header */
.search-header { margin-bottom: 2rem; }
.search-input-lg { width: 100%; padding: .75rem 1rem; border: 1.5px solid var(--card-border); border-radius: var(--radius); background: var(--card-bg); color: var(--text); font-size: 1rem; outline: none; }
.search-input-lg:focus { border-color: var(--primary); }

/* Nav dropdown toggle */
.dropdown-toggle { cursor: pointer; }

/* mb-2 utility */
.mb-2 { margin-bottom: .5rem !important; }
.mb-4 { margin-bottom: 1rem !important; }
.mt-3 { margin-top: .75rem !important; }
.mt-4 { margin-top: 1rem !important; }
