/* ═══════════════════════════════════════════════════════════════════
   Monetization Genius — Main Stylesheet
   Design: Dark premium theme with purple/green accents
   ═══════════════════════════════════════════════════════════════════ */

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

:root {
  --bg:        #09090f;
  --bg2:       #0f0f18;
  --bg3:       #141420;
  --bg4:       #1b1b2a;
  --bg5:       #22223a;
  --text:      #eeeef8;
  --text2:     #9898b8;
  --text3:     #5a5a7a;
  --accent:    #7c5cfc;
  --accent2:   #a87dfc;
  --accent3:   #c4a3ff;
  --green:     #22c55e;
  --green2:    #16a34a;
  --green3:    #4ade80;
  --pink:      #ec4899;
  --pink2:     #f472b6;
  --orange:    #f97316;
  --border:    rgba(255,255,255,0.07);
  --border2:   rgba(255,255,255,0.13);
  --border3:   rgba(255,255,255,0.2);
  --shadow:    0 4px 24px rgba(0,0,0,0.4);
  --shadow-lg: 0 12px 48px rgba(0,0,0,0.5);
  --radius:    10px;
  --radius-lg: 16px;
  --radius-xl: 22px;
  --font:      'Inter', system-ui, sans-serif;
  --font-head: 'Space Grotesk', 'Inter', sans-serif;
  --transition: 0.2s ease;
}

html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; display: block; }
ul { list-style: none; }
button { cursor: pointer; font-family: var(--font); }

/* ── Container ─────────────────────────────────────────────────────── */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* ── Typography ────────────────────────────────────────────────────── */
h1, h2, h3, h4 {
  font-family: var(--font-head);
  font-weight: 700;
  line-height: 1.25;
}

/* ── Buttons ───────────────────────────────────────────────────────── */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--accent);
  color: #fff;
  border: none;
  padding: 10px 22px;
  border-radius: var(--radius);
  font-size: 0.93rem;
  font-weight: 600;
  transition: background var(--transition), transform var(--transition);
  white-space: nowrap;
}
.btn-primary:hover  { background: #6b4de8; transform: translateY(-1px); }
.btn-primary.btn-lg { padding: 13px 28px; font-size: 1rem; border-radius: var(--radius-lg); }
.btn-primary.btn-full { width: 100%; justify-content: center; padding: 13px; }

.btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: transparent;
  color: var(--text2);
  border: 1px solid var(--border2);
  padding: 10px 22px;
  border-radius: var(--radius);
  font-size: 0.93rem;
  font-weight: 600;
  transition: all var(--transition);
}
.btn-ghost:hover { border-color: var(--accent); color: var(--accent2); background: rgba(124,92,252,.08); }
.btn-ghost.btn-lg { padding: 13px 28px; font-size: 1rem; border-radius: var(--radius-lg); }

.btn-outline {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: transparent;
  color: var(--text2);
  border: 1px solid var(--border2);
  padding: 8px 18px;
  border-radius: var(--radius);
  font-size: 0.88rem;
  font-weight: 600;
  transition: all var(--transition);
}
.btn-outline:hover { border-color: var(--accent); color: var(--accent2); }
.btn-outline-lg { display: inline-flex; align-items: center; gap: 6px; background: transparent; color: var(--text); border: 1px solid var(--border3); padding: 11px 22px; border-radius: var(--radius); font-size: 0.93rem; font-weight: 600; transition: all var(--transition); }
.btn-outline-lg:hover { border-color: var(--accent); color: var(--accent2); }

.btn-green-lg {
  display: inline-flex;
  align-items: center;
  background: var(--green2);
  color: #fff;
  border: none;
  padding: 12px 24px;
  border-radius: var(--radius);
  font-size: 0.95rem;
  font-weight: 700;
  transition: background var(--transition), transform var(--transition);
  cursor: pointer;
}
.btn-green-lg:hover { background: #15803d; transform: translateY(-1px); }

/* ── Badges ────────────────────────────────────────────────────────── */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 10px;
  border-radius: 50px;
  font-size: 0.76rem;
  font-weight: 700;
  position: absolute;
  top: 10px;
  left: 10px;
}
.badge-support  { background: rgba(34,197,94,.2);   border: 1px solid rgba(34,197,94,.4);  color: var(--green3); }
.badge-free     { background: rgba(236,72,153,.2);  border: 1px solid rgba(236,72,153,.4); color: var(--pink2); }
.badge-discount { background: rgba(249,115,22,.2);  border: 1px solid rgba(249,115,22,.4); color: #fb923c; top: 10px; left: auto; right: 10px; }

/* ── Navbar ────────────────────────────────────────────────────────── */
.navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(9,9,15,0.92);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.05rem;
  font-family: var(--font-head);
  white-space: nowrap;
  flex-shrink: 0;
}
.nav-logo strong { color: var(--accent2); }
.nav-logo-icon {
  width: 38px; height: 38px;
  background: linear-gradient(135deg, var(--accent), var(--pink));
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.1rem; flex-shrink: 0;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  flex: 1;
  justify-content: center;
}
.nav-links a {
  color: var(--text2);
  font-size: 0.93rem;
  font-weight: 500;
  padding: 6px 14px;
  border-radius: 8px;
  transition: all var(--transition);
}
.nav-links a:hover { color: var(--text); background: rgba(255,255,255,.05); }
.nav-links a.active {
  color: var(--accent2);
  background: rgba(124,92,252,.12);
  border: 1px solid rgba(124,92,252,.25);
}

.nav-auth {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-shrink: 0;
}

/* User dropdown */
.nav-user-menu { position: relative; }
.nav-user-btn {
  display: flex; align-items: center; gap: 8px;
  background: var(--bg3); border: 1px solid var(--border2);
  color: var(--text); padding: 7px 14px; border-radius: 10px;
  font-size: 0.9rem; font-weight: 500; transition: all var(--transition);
}
.nav-user-btn:hover { border-color: var(--border3); }
.nav-avatar {
  width: 28px; height: 28px; border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), var(--pink));
  display: flex; align-items: center; justify-content: center;
  font-size: 0.7rem; font-weight: 800; color: #fff; flex-shrink: 0;
}
.nav-dropdown {
  display: none; position: absolute; top: calc(100% + 8px); right: 0;
  background: var(--bg3); border: 1px solid var(--border2);
  border-radius: var(--radius-lg); min-width: 180px;
  box-shadow: var(--shadow-lg); overflow: hidden; z-index: 200;
}
.nav-dropdown.open { display: block; animation: dropIn .15s ease; }
@keyframes dropIn { from { opacity:0; transform: translateY(-8px); } to { opacity:1; transform: translateY(0); } }
.nav-dropdown a,
.nav-dropdown .dropdown-item-btn {
  display: flex; align-items: center; gap: 10px;
  padding: 11px 16px; font-size: 0.88rem; color: var(--text2);
  transition: all var(--transition); background: none; border: none;
  width: 100%; text-align: right; cursor: pointer; font-family: var(--font);
}
.nav-dropdown a:hover,
.nav-dropdown .dropdown-item-btn:hover { background: var(--bg4); color: var(--text); }
.dropdown-divider { height: 1px; background: var(--border); margin: 4px 0; }

/* Mobile toggle */
.nav-mobile-toggle {
  display: none; flex-direction: column; gap: 5px;
  background: none; border: none; padding: 8px;
}
.nav-mobile-toggle span {
  display: block; width: 22px; height: 2px;
  background: var(--text2); border-radius: 2px; transition: all .2s;
}
.nav-mobile-menu {
  display: none; flex-direction: column;
  background: var(--bg2); border-top: 1px solid var(--border);
  padding: 1rem 1.5rem; gap: 0.5rem;
}
.nav-mobile-menu.open { display: flex; }
.nav-mobile-menu a,
.nav-mobile-menu button {
  color: var(--text2); font-size: 0.95rem; padding: 10px 0;
  border: none; background: none; text-align: left; font-family: var(--font);
}
.btn-primary-mobile {
  background: var(--accent) !important; color: #fff !important;
  border-radius: var(--radius) !important; padding: 10px 18px !important; margin-top: 6px;
}

/* ── Flash Messages ─────────────────────────────────────────────────── */
.flash-container {
  position: fixed; bottom: 1.5rem; left: 50%; transform: translateX(-50%);
  z-index: 999; display: flex; flex-direction: column; gap: 8px; pointer-events: none;
}
.flash {
  display: flex; align-items: center; gap: 10px;
  padding: 12px 20px; border-radius: 50px;
  font-size: 0.9rem; font-weight: 600;
  box-shadow: var(--shadow-lg);
  animation: flashIn .3s ease, flashOut .4s ease 3s forwards;
  pointer-events: auto; white-space: nowrap;
}
@keyframes flashIn  { from { opacity:0; transform: translateY(12px); } to { opacity:1; transform: translateY(0); } }
@keyframes flashOut { from { opacity:1; } to { opacity:0; transform: translateY(12px); } }
.flash-success { background: #14532d; border: 1px solid #16a34a; color: #4ade80; }
.flash-error   { background: #450a0a; border: 1px solid #991b1b; color: #f87171; }
.flash-info    { background: #1e3a5f; border: 1px solid #1d4ed8; color: #60a5fa; }

/* ── Section Layout ─────────────────────────────────────────────────── */
.section { padding: 3rem 0; }
.section-header {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 1.75rem;
}
.section-title { font-size: 1.5rem; font-family: var(--font-head); }

/* ── Hero ───────────────────────────────────────────────────────────── */
.hero { padding: 3.5rem 0 2rem; }
.hero-inner {
  background: var(--bg3);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 3rem 3.5rem;
}
.hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(124,92,252,.14); border: 1px solid rgba(124,92,252,.3);
  color: var(--accent2); padding: 7px 16px; border-radius: 50px;
  font-size: 0.87rem; font-weight: 600; margin-bottom: 1.5rem;
}
.hero-title {
  font-family: var(--font-head);
  font-size: clamp(1.5rem, 3.5vw, 2.6rem);
  font-weight: 800;
  line-height: 1.35;
  margin-bottom: 2rem;
}
.hl-purple { color: var(--accent2); }
.hl-green  { color: var(--green3); }
.hl-pink   { color: var(--pink2); }

.hero-actions { display: flex; gap: 1rem; margin-bottom: 2rem; flex-wrap: wrap; }
.hero-stats {
  display: flex; align-items: center; gap: 2rem;
  padding-top: 1.5rem; border-top: 1px solid var(--border);
}
.stat { display: flex; flex-direction: column; }
.stat-num   { font-size: 1.5rem; font-weight: 800; font-family: var(--font-head); color: var(--text); }
.stat-label { font-size: 0.82rem; color: var(--text3); }
.stat-divider { width: 1px; height: 32px; background: var(--border2); }

/* ── Course Cards ───────────────────────────────────────────────────── */
.courses-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(270px, 1fr));
  gap: 1.25rem;
}
.courses-grid--full { grid-template-columns: repeat(auto-fill, minmax(270px, 1fr)); }

.course-card {
  background: var(--bg3);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: flex; flex-direction: column;
  transition: transform var(--transition), border-color var(--transition), box-shadow var(--transition);
}
.course-card:hover {
  transform: translateY(-4px);
  border-color: rgba(124,92,252,.35);
  box-shadow: 0 12px 40px rgba(124,92,252,.15);
}

.course-thumb {
  position: relative; height: 165px; overflow: hidden; display: block;
}
.course-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.course-card:hover .course-thumb img { transform: scale(1.04); }
.course-thumb-emoji {
  width: 100%; height: 100%;
  display: flex; align-items: center; justify-content: center;
  font-size: 4rem;
}

.course-body { padding: 1.1rem 1.2rem; flex: 1; display: flex; flex-direction: column; }
.course-title {
  font-size: 1rem; font-weight: 700; font-family: var(--font-head);
  color: var(--text); margin-bottom: 0.5rem; line-height: 1.35;
  display: block;
  transition: color var(--transition);
}
.course-title:hover { color: var(--accent2); }
.course-desc {
  font-size: 0.84rem; color: var(--text2); flex: 1;
  margin-bottom: 0.75rem; line-height: 1.55;
}
.course-meta {
  display: flex; align-items: center; justify-content: space-between;
  font-size: 0.84rem; color: var(--text3); margin-bottom: 0.6rem;
}
.course-price { display: flex; align-items: baseline; gap: 6px; }
.price-current { font-size: 1.05rem; font-weight: 800; color: var(--text); }
.price-old     { font-size: 0.8rem; color: var(--text3); text-decoration: line-through; }
.price-free    { font-size: 1rem; font-weight: 800; color: var(--green3); }

.course-support-tag {
  font-size: 0.78rem; color: var(--green3);
  padding-top: 0.5rem; border-top: 1px solid var(--border);
  margin-bottom: 0.6rem;
}

.course-cta { margin-top: auto; }
.course-cta form { margin: 0; }

.btn-enroll, .btn-enroll-free, .btn-support-enroll, .btn-enrolled {
  display: block; width: 100%; padding: 10px;
  border-radius: var(--radius); font-size: 0.88rem; font-weight: 700;
  text-align: center; border: none; transition: all var(--transition);
  cursor: pointer; font-family: var(--font);
}
.btn-enroll {
  background: var(--accent); color: #fff;
}
.btn-enroll:hover { background: #6b4de8; }
.btn-enroll-free {
  background: rgba(34,197,94,.15); color: var(--green3);
  border: 1px solid rgba(34,197,94,.3);
}
.btn-enroll-free:hover { background: rgba(34,197,94,.25); }
.btn-support-enroll {
  background: rgba(34,197,94,.12); color: var(--green3);
  border: 1px solid rgba(34,197,94,.25);
}
.btn-support-enroll:hover { background: rgba(34,197,94,.22); }
.btn-enrolled {
  background: var(--bg4); color: var(--text2);
  border: 1px solid var(--border2);
}

/* ── Special Cards ─────────────────────────────────────────────────── */
.special-cards-row {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.25rem;
  margin-top: 1.25rem;
}
.special-card {
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  display: flex; flex-direction: column; gap: 0.75rem;
  cursor: pointer; transition: transform var(--transition);
}
.special-card:hover { transform: translateY(-3px); }
.special-card--support {
  background: linear-gradient(135deg, #16172b, #1a1e38);
  border: 1px solid rgba(124,92,252,.25);
}
.special-card--browse {
  background: var(--bg3);
  border: 1px solid var(--border);
}
.special-card h3 { font-size: 1.1rem; font-weight: 700; font-family: var(--font-head); }
.special-card p  { font-size: 0.88rem; color: var(--text2); }
.special-card-hearts { font-size: 1.5rem; }

.badge-support-inline {
  display: inline-flex; align-items: center; gap: 5px;
  background: rgba(34,197,94,.15); border: 1px solid rgba(34,197,94,.3);
  color: var(--green3); padding: 4px 12px; border-radius: 50px;
  font-size: 0.78rem; font-weight: 700; width: fit-content;
}
.badge-free-inline {
  display: inline-flex; align-items: center; gap: 5px;
  background: rgba(236,72,153,.15); border: 1px solid rgba(236,72,153,.3);
  color: var(--pink2); padding: 4px 12px; border-radius: 50px;
  font-size: 0.78rem; font-weight: 700; width: fit-content;
}
.big-course-num {
  font-size: 2.2rem; font-weight: 900; font-family: var(--font-head);
  line-height: 1;
}

/* ── Services Section ──────────────────────────────────────────────── */
.services-section {
  background: var(--bg2);
  padding: 4rem 0;
  margin: 1rem 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.services-page-hero {
  padding: 4rem 0 2rem;
  text-align: center;
}
.services-page-hero h1 { font-size: clamp(1.8rem, 4vw, 3rem); margin-bottom: 1rem; }
.services-page-hero p { color: var(--text2); max-width: 560px; margin: 0 auto 2.5rem; }

.services-badge {
  display: inline-flex; align-items: center; gap: 7px;
  background: rgba(251,191,36,.12); border: 1px solid rgba(251,191,36,.3);
  color: #fbbf24; padding: 6px 14px; border-radius: 50px;
  font-size: 0.84rem; font-weight: 600; margin-bottom: 1.25rem;
}
.services-title {
  font-size: clamp(1.4rem, 3vw, 2.1rem);
  font-family: var(--font-head); font-weight: 800;
  line-height: 1.35; margin-bottom: 0.75rem;
}
.services-title .hl-green { color: var(--green3); }
.services-desc { color: var(--text2); max-width: 640px; margin-bottom: 2.5rem; }

.text-center { text-align: center; }
.text-center .services-desc { margin: 0 auto 2.5rem; }
.text-center .services-badge { margin: 0 auto 1.25rem; display: flex; width: fit-content; }

.services-cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.5rem;
}
.services-cards--full { grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); }

.service-card {
  background: var(--bg3);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  display: flex; flex-direction: column; gap: 1rem;
  transition: border-color var(--transition);
}
.service-card:hover { border-color: var(--border3); }

.service-type-badge {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 5px 13px; border-radius: 50px; font-size: 0.8rem; font-weight: 700;
  width: fit-content;
}
.svc-build   { background: rgba(124,92,252,.14); color: var(--accent2); border: 1px solid rgba(124,92,252,.3); }
.svc-train   { background: rgba(34,197,94,.12);  color: var(--green3);  border: 1px solid rgba(34,197,94,.25); }
.svc-consult { background: rgba(249,115,22,.14); color: #fb923c;        border: 1px solid rgba(249,115,22,.3); }

.service-card h3 { font-size: 1.2rem; font-weight: 700; font-family: var(--font-head); }
.service-card p  { font-size: 0.88rem; color: var(--text2); line-height: 1.65; }

.service-features { display: flex; flex-direction: column; gap: 7px; }
.service-features li {
  display: flex; align-items: flex-start; gap: 9px;
  font-size: 0.88rem; color: var(--text2);
}
.service-features li::before {
  content: "✓"; color: var(--green3); font-weight: 700; flex-shrink: 0; margin-top: 1px;
}

.btn-service {
  display: inline-flex; align-items: center; gap: 6px;
  background: var(--bg4); border: 1px solid var(--border2);
  color: var(--text); padding: 11px 20px; border-radius: var(--radius);
  font-size: 0.9rem; font-weight: 600; transition: all var(--transition);
  margin-top: auto;
}
.btn-service:hover { background: rgba(124,92,252,.1); border-color: var(--accent); color: var(--accent2); }

/* ── Course Detail Page ─────────────────────────────────────────────── */
.course-detail-page { padding: 3rem 0; }
.course-detail-hero {
  display: grid; grid-template-columns: 1fr 360px; gap: 3rem; align-items: start;
}
.course-detail-badges { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 1rem; }
.course-detail-badges .badge { position: static; }
.course-detail-content h1 { font-size: clamp(1.6rem, 3vw, 2.5rem); margin-bottom: 1rem; }
.course-detail-desc { font-size: 1rem; color: var(--text2); line-height: 1.7; margin-bottom: 1.5rem; }
.course-detail-meta {
  display: flex; align-items: center; gap: 1rem;
  margin-bottom: 1.75rem; flex-wrap: wrap;
}
.cdm-price       { font-size: 1.4rem; font-weight: 800; color: var(--text); }
.cdm-old-price   { font-size: 0.9rem; color: var(--text3); text-decoration: line-through; }
.cdm-price-free  { font-size: 1.4rem; font-weight: 800; color: var(--green3); }
.course-detail-cta { display: flex; flex-direction: column; gap: .75rem; }
.cta-note { font-size: 0.85rem; color: var(--text3); }
.cta-note a { color: var(--accent2); }
.btn-support-lg {
  display: inline-flex; align-items: center; justify-content: center;
  background: rgba(34,197,94,.15); color: var(--green3);
  border: 1px solid rgba(34,197,94,.35);
  padding: 13px 28px; border-radius: var(--radius-lg);
  font-size: 1rem; font-weight: 700; cursor: pointer;
  transition: all var(--transition); font-family: var(--font);
}
.btn-support-lg:hover { background: rgba(34,197,94,.25); }

.course-detail-thumb {
  border-radius: var(--radius-xl); height: 300px;
  display: flex; align-items: center; justify-content: center;
  position: sticky; top: 80px;
}
.course-detail-emoji { font-size: 6rem; }

/* ── Courses Page Header ────────────────────────────────────────────── */
.courses-page-header {
  padding: 3rem 0 2rem;
  text-align: center;
  background: linear-gradient(180deg, var(--bg3) 0%, var(--bg) 100%);
  border-bottom: 1px solid var(--border);
}
.courses-page-header h1 { font-size: 2rem; margin-bottom: 0.5rem; }
.courses-page-header p  { color: var(--text2); }

.filter-bar-wrapper { border-bottom: 1px solid var(--border); background: var(--bg2); }
.filter-bar {
  display: flex; gap: 0.5rem; padding: 1.25rem 0; flex-wrap: wrap;
}
.filter-btn {
  background: var(--bg3); border: 1px solid var(--border);
  color: var(--text2); padding: 7px 18px; border-radius: 50px;
  font-size: 0.87rem; font-weight: 600; transition: all var(--transition);
  text-decoration: none;
}
.filter-btn:hover, .filter-btn.active {
  background: rgba(124,92,252,.14); border-color: rgba(124,92,252,.4); color: var(--accent2);
}

/* ── Empty State ────────────────────────────────────────────────────── */
.empty-state {
  text-align: center; padding: 5rem 2rem;
  display: flex; flex-direction: column; align-items: center; gap: 1rem;
}
.empty-icon { font-size: 3.5rem; }
.empty-state h3 { font-size: 1.4rem; }
.empty-state p  { color: var(--text2); }

/* ── Auth Pages ─────────────────────────────────────────────────────── */
.auth-page {
  min-height: calc(100vh - 64px);
  display: flex; align-items: center; justify-content: center;
  padding: 2rem;
}
.auth-box {
  background: var(--bg3);
  border: 1px solid var(--border2);
  border-radius: var(--radius-xl);
  padding: 2.5rem;
  width: 100%; max-width: 440px;
}
.auth-logo { font-size: 2.5rem; margin-bottom: 1rem; text-align: center; }
.auth-box h1 { font-size: 1.6rem; font-weight: 800; margin-bottom: 0.3rem; text-align: center; }
.auth-sub    { color: var(--text2); font-size: 0.92rem; margin-bottom: 1.75rem; text-align: center; }
.auth-form   { display: flex; flex-direction: column; gap: 1rem; }

.form-group { display: flex; flex-direction: column; gap: 0.4rem; }
.form-group label { font-size: 0.87rem; font-weight: 600; color: var(--text2); }
.form-group input,
.form-group input[type="email"],
.form-group input[type="password"],
.form-group input[type="text"] {
  background: var(--bg4); border: 1px solid var(--border2);
  color: var(--text); padding: 11px 14px; border-radius: var(--radius);
  font-family: var(--font); font-size: 0.95rem; outline: none;
  transition: border-color var(--transition); width: 100%;
}
.form-group input:focus { border-color: var(--accent); }
.form-group input::placeholder { color: var(--text3); }
.form-group input.input-error { border-color: #ef4444; }

.input-group { position: relative; }
.input-group input { padding-right: 44px; }
.input-toggle-pw {
  position: absolute; right: 12px; top: 50%; transform: translateY(-50%);
  background: none; border: none; color: var(--text3); padding: 4px;
  transition: color var(--transition);
}
.input-toggle-pw:hover { color: var(--text); }

.form-row { display: flex; align-items: center; justify-content: space-between; }
.checkbox-label { display: flex; align-items: center; gap: 7px; font-size: 0.88rem; color: var(--text2); cursor: pointer; }
.forgot-link { font-size: 0.87rem; color: var(--accent2); }
.forgot-link:hover { text-decoration: underline; }

.form-divider {
  position: relative; text-align: center; color: var(--text3); font-size: 0.83rem;
}
.form-divider::before, .form-divider::after {
  content: ''; position: absolute; top: 50%;
  width: 42%; height: 1px; background: var(--border);
}
.form-divider::before { right: 0; }
.form-divider::after  { left: 0; }
.form-divider span { position: relative; background: var(--bg3); padding: 0 10px; }

.auth-switch { text-align: center; font-size: 0.88rem; color: var(--text2); }
.auth-switch a { color: var(--accent2); font-weight: 600; }
.auth-switch a:hover { text-decoration: underline; }

.form-error-box {
  background: rgba(239,68,68,.1); border: 1px solid rgba(239,68,68,.3);
  border-radius: var(--radius); padding: 12px 16px;
  color: #f87171; font-size: 0.87rem;
}
.form-error-box p + p { margin-top: 4px; }

/* ── Dashboard ───────────────────────────────────────────────────────── */
.dashboard-page { padding: 3rem 0; }
.dashboard-header {
  display: flex; align-items: center; gap: 1.25rem; margin-bottom: 2rem;
}
.dashboard-avatar {
  width: 60px; height: 60px; border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), var(--pink));
  display: flex; align-items: center; justify-content: center;
  font-size: 1.1rem; font-weight: 800; color: #fff; flex-shrink: 0;
}
.dashboard-header h1 { font-size: 1.7rem; margin-bottom: 0.2rem; }
.dashboard-email { color: var(--text3); font-size: 0.9rem; }
.dashboard-stats {
  display: flex; gap: 1.5rem; flex-wrap: wrap;
  padding: 1.5rem; background: var(--bg3);
  border: 1px solid var(--border); border-radius: var(--radius-lg);
  margin-bottom: 1rem;
}
.dash-stat { display: flex; flex-direction: column; }
.dash-stat-num   { font-size: 1.5rem; font-weight: 800; font-family: var(--font-head); }
.dash-stat-label { font-size: 0.82rem; color: var(--text3); }

/* ── Support / Pay-What-You-Want Modal ──────────────────────────────── */
.modal-overlay {
  display: none; position: fixed; inset: 0;
  background: rgba(0,0,0,.7); backdrop-filter: blur(6px);
  z-index: 300; align-items: center; justify-content: center; padding: 1rem;
}
.modal-overlay.open { display: flex; }
.modal {
  background: var(--bg3); border: 1px solid var(--border2);
  border-radius: var(--radius-xl); padding: 2.25rem;
  width: 100%; max-width: 480px; position: relative;
  animation: modalIn .25s ease;
  text-align: center;
}
@keyframes modalIn { from { opacity:0; transform: scale(.94) translateY(20px); } to { opacity:1; transform: scale(1) translateY(0); } }

.modal-close {
  position: absolute; top: 1rem; right: 1rem;
  background: var(--bg4); border: 1px solid var(--border); color: var(--text2);
  width: 34px; height: 34px; border-radius: 8px; display: flex;
  align-items: center; justify-content: center; transition: all var(--transition);
}
.modal-close:hover { background: rgba(255,255,255,.08); color: var(--text); }
.modal-icon { font-size: 2.5rem; margin-bottom: .75rem; }
.modal h2   { font-size: 1.4rem; font-weight: 800; margin-bottom: .4rem; }
.modal p    { color: var(--text2); font-size: 0.9rem; margin-bottom: 1.5rem; }

.support-amounts {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: .6rem; margin-bottom: 1rem;
}
.amt-btn {
  background: var(--bg4); border: 1px solid var(--border);
  color: var(--text); padding: 12px 8px; border-radius: var(--radius);
  font-family: var(--font); font-size: 0.92rem; font-weight: 700;
  cursor: pointer; transition: all var(--transition);
}
.amt-btn:hover, .amt-btn.selected {
  background: rgba(124,92,252,.18); border-color: var(--accent); color: var(--accent2);
}

.custom-amount-input {
  background: var(--bg4); border: 1px solid var(--border2);
  color: var(--text); padding: 11px 14px; border-radius: var(--radius);
  font-family: var(--font); font-size: 0.95rem; outline: none;
  text-align: center; width: 100%; margin-bottom: 1rem;
  transition: border-color var(--transition);
}
.custom-amount-input:focus { border-color: var(--green); }

.btn-support-confirm {
  width: 100%; background: var(--green2); color: #fff;
  border: none; padding: 13px; border-radius: var(--radius);
  font-family: var(--font); font-size: 1rem; font-weight: 700;
  cursor: pointer; transition: background var(--transition), transform var(--transition);
}
.btn-support-confirm:hover { background: #15803d; transform: translateY(-1px); }
.support-note { font-size: 0.8rem; color: var(--text3); margin-top: .75rem !important; margin-bottom: 0 !important; }

/* ── 404 Page ───────────────────────────────────────────────────────── */
.not-found-page {
  min-height: calc(100vh - 64px);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 1.25rem; text-align: center; padding: 2rem;
}
.not-found-404 {
  font-size: clamp(5rem, 18vw, 11rem);
  font-weight: 900; font-family: var(--font-head); line-height: 1;
  background: linear-gradient(135deg, var(--accent), var(--pink));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}
.not-found-page h2 { font-size: 1.5rem; }
.not-found-page p  { color: var(--text2); }
.not-found-actions { display: flex; gap: 1rem; flex-wrap: wrap; justify-content: center; }

/* ── Footer ─────────────────────────────────────────────────────────── */
.footer {
  background: var(--bg2);
  border-top: 1px solid var(--border);
  padding: 3rem 0 0;
  margin-top: 4rem;
}
.footer-container {
  max-width: 1200px; margin: 0 auto; padding: 0 1.5rem 2rem;
  display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 3rem;
}
.footer-logo {
  display: flex; align-items: center; gap: 10px;
  font-size: 1.05rem; font-family: var(--font-head);
  margin-bottom: .75rem;
}
.footer-logo strong { color: var(--accent2); }
.footer-logo-icon {
  width: 34px; height: 34px;
  background: linear-gradient(135deg, var(--accent), var(--pink));
  border-radius: 9px; display: flex; align-items: center; justify-content: center;
}
.footer-tagline { color: var(--text3); font-size: 0.88rem; }
.footer-links-group h4 { font-size: 0.87rem; font-weight: 700; color: var(--text2); margin-bottom: .75rem; letter-spacing: .04em; text-transform: uppercase; }
.footer-links-group ul { display: flex; flex-direction: column; gap: .4rem; }
.footer-links-group a { color: var(--text3); font-size: 0.88rem; transition: color var(--transition); }
.footer-links-group a:hover { color: var(--text); }
.footer-bottom {
  border-top: 1px solid var(--border); padding: 1rem 1.5rem; text-align: center;
  color: var(--text3); font-size: 0.84rem;
}

/* ── Scrollbar ──────────────────────────────────────────────────────── */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--bg5); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--accent); }

/* ── Responsive ─────────────────────────────────────────────────────── */
@media (max-width: 900px) {
  .nav-links   { display: none; }
  .nav-mobile-toggle { display: flex; }
  .hero-inner  { padding: 2rem 1.75rem; }
  .course-detail-hero { grid-template-columns: 1fr; }
  .course-detail-thumb { position: static; height: 220px; }
  .footer-container { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: span 2; }
}

@media (max-width: 620px) {
  .nav-auth .btn-ghost { display: none; }
  .hero-title  { font-size: 1.4rem; }
  .hero-stats  { gap: 1.25rem; }
  .services-cards, .services-cards--full { grid-template-columns: 1fr; }
  .courses-grid { grid-template-columns: 1fr; }
  .footer-container { grid-template-columns: 1fr; }
  .footer-brand { grid-column: span 1; }
  .support-amounts { grid-template-columns: repeat(2, 1fr); }
}

/* ── Pagination ─────────────────────────────────────────────────────── */
.pagination-nav {
  display: flex; align-items: center; justify-content: center;
  gap: 6px; padding: 2.5rem 0;
}
.page-btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 38px; height: 38px; padding: 0 12px;
  background: var(--bg3); border: 1px solid var(--border);
  color: var(--text2); border-radius: var(--radius); font-size: 0.88rem;
  font-weight: 600; transition: all var(--transition); text-decoration: none;
}
.page-btn:hover           { border-color: var(--accent); color: var(--accent2); background: rgba(124,92,252,.1); }
.page-btn--active         { background: var(--accent); border-color: var(--accent); color: #fff; }
.page-btn--active:hover   { background: #6b4de8; }
.page-btn--disabled       { opacity: 0.4; cursor: not-allowed; pointer-events: none; }
.page-btn--dots           { border: none; background: none; color: var(--text3); min-width: auto; }
