/* ── RESET & BASE ─────────────────────────── */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
:root {
  --lime:    #CFF317;
  --gold:    #CFF317;   /* alias — some pages ask for --gold; the brand is lime */
  --lime2:   #b8dc0f;
  --lime-dim: rgba(207,243,23,0.12);
  --lime-glow: 0 0 20px rgba(207,243,23,0.35);
  --dark:    #080808;
  --card:    #101010;
  --card2:   #161616;
  --border:  rgba(207,243,23,0.18);
  --text:    #f0f0f0;
  --muted:   #777;
  --success: #4caf50;
  --radius:  12px;
}
body { font-family: 'Segoe UI', sans-serif; background: var(--dark); color: var(--text); min-height: 100vh; }
a { text-decoration: none; color: inherit; }
img { max-width: 100%; }

/* ── LOGO SVG ─────────────────────────────── */
.logo-icon {
  display: inline-flex; align-items: center; gap: 0.6rem;
}
.logo-mark {
  width: 36px; height: 36px;
  background: var(--lime); border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.1rem; font-weight: 900; color: #000; letter-spacing: -1px;
  box-shadow: var(--lime-glow);
  flex-shrink: 0;
}
.logo-text { font-size: 1.1rem; font-weight: 800; letter-spacing: 0.5px; line-height: 1.1; }
.logo-text span { display: block; color: var(--lime); font-size: 0.65rem; font-weight: 600; letter-spacing: 2px; }

/* ── NAVBAR ───────────────────────────────── */
nav {
  position: sticky; top: 0; z-index: 100;
  background: rgba(8,8,8,0.97); backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 5%; height: 68px;
}
.nav-links { display: flex; gap: 2rem; align-items: center; }
.nav-links a { color: var(--muted); font-size: 0.92rem; transition: color 0.2s; }
.nav-links a:hover { color: var(--lime); }
.nav-btn {
  background: var(--lime); color: #000; font-weight: 700;
  padding: 0.5rem 1.4rem; border-radius: 8px; font-size: 0.88rem;
  border: none; cursor: pointer; transition: all 0.2s;
  box-shadow: var(--lime-glow);
}
.nav-btn:hover { background: var(--lime2); transform: translateY(-1px); }
.nav-btn.outline {
  background: transparent; color: var(--lime);
  border: 1.5px solid var(--lime); margin-right: 0.5rem;
  box-shadow: none;
}
.nav-btn.outline:hover { background: var(--lime-dim); }

/* ── BUTTONS ──────────────────────────────── */
.btn {
  display: inline-block; padding: 0.8rem 2rem; border-radius: 8px;
  font-weight: 700; font-size: 0.95rem; cursor: pointer;
  border: none; transition: all 0.2s; text-align: center;
}
.btn-primary {
  background: var(--lime); color: #000;
  box-shadow: var(--lime-glow);
}
.btn-primary:hover { background: var(--lime2); transform: translateY(-2px); box-shadow: 0 0 30px rgba(207,243,23,0.5); }
.btn-outline { background: transparent; color: var(--lime); border: 1.5px solid var(--lime); }
.btn-outline:hover { background: var(--lime-dim); }
.btn-full { width: 100%; display: block; }

/* ── HERO ─────────────────────────────────── */
.hero {
  padding: 6rem 5% 5rem;
  background: radial-gradient(ellipse at 50% 0%, rgba(207,243,23,0.08) 0%, transparent 70%);
  text-align: center; position: relative; overflow: hidden;
}
.hero::before {
  content: ''; position: absolute; top: -50%; left: 50%; transform: translateX(-50%);
  width: 600px; height: 600px; border-radius: 50%;
  background: radial-gradient(circle, rgba(207,243,23,0.06) 0%, transparent 70%);
  pointer-events: none;
}
.hero-badge {
  display: inline-flex; align-items: center; gap: 0.5rem;
  background: var(--lime-dim); color: var(--lime);
  padding: 0.45rem 1.1rem; border-radius: 20px;
  font-size: 0.82rem; font-weight: 600; margin-bottom: 2rem;
  border: 1px solid var(--border);
}
.hero h1 {
  font-size: clamp(2.2rem, 5vw, 4rem); font-weight: 900;
  line-height: 1.15; margin-bottom: 1.2rem; letter-spacing: -0.5px;
}
.hero h1 .highlight { color: var(--lime); }
.hero p { font-size: 1.1rem; color: var(--muted); max-width: 580px; margin: 0 auto 2.5rem; line-height: 1.75; }
.hero-btns { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }
.hero-tagline {
  font-size: 0.82rem; color: var(--muted); margin-top: 2rem;
  letter-spacing: 2px; text-transform: uppercase;
}

/* ── STATS ────────────────────────────────── */
.stats {
  display: flex; justify-content: center; gap: 0; flex-wrap: wrap;
  background: var(--card); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border);
}
.stat {
  text-align: center; padding: 2rem 3rem;
  border-right: 1px solid var(--border); flex: 1; min-width: 140px;
}
.stat:last-child { border-right: none; }
.stat h3 { font-size: 2rem; font-weight: 900; color: var(--lime); text-shadow: var(--lime-glow); }
.stat p { color: var(--muted); font-size: 0.82rem; margin-top: 0.3rem; text-transform: uppercase; letter-spacing: 1px; }

/* ── SECTION ──────────────────────────────── */
.section { padding: 5rem 5%; }
.section-title { font-size: 2rem; font-weight: 900; margin-bottom: 0.5rem; letter-spacing: -0.3px; }
.section-title .highlight { color: var(--lime); }
.section-sub { color: var(--muted); margin-bottom: 2.5rem; font-size: 0.95rem; }

/* ── COURSE CARDS ─────────────────────────── */
.courses-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 1.5rem; }
.course-card {
  background: var(--card2); border: 1px solid rgba(255,255,255,0.06);
  border-radius: var(--radius); overflow: hidden;
  transition: transform 0.2s, border-color 0.2s, box-shadow 0.2s;
}
.course-card:hover {
  transform: translateY(-5px);
  border-color: var(--lime);
  box-shadow: 0 8px 40px rgba(207,243,23,0.12);
}
.course-thumb { width: 100%; height: 185px; object-fit: cover; }
.course-thumb-placeholder {
  width: 100%; height: 185px;
  background: linear-gradient(135deg, #111 0%, #1a2200 100%);
  display: flex; align-items: center; justify-content: center;
  font-size: 3rem;
}
.course-body { padding: 1.3rem; }
.course-tag {
  display: inline-block; font-size: 0.72rem; color: #000; background: var(--lime);
  font-weight: 700; text-transform: uppercase; letter-spacing: 1px;
  padding: 0.2rem 0.7rem; border-radius: 4px; margin-bottom: 0.7rem;
}
.course-title { font-size: 1rem; font-weight: 700; margin-bottom: 0.8rem; line-height: 1.45; color: white; }
.course-meta { display: flex; gap: 1rem; color: var(--muted); font-size: 0.8rem; margin-bottom: 1rem; }
.course-price { display: flex; align-items: center; gap: 0.8rem; margin-bottom: 1.2rem; }
.price-sale { font-size: 1.5rem; font-weight: 900; color: var(--lime); }
.price-original { font-size: 0.88rem; color: var(--muted); text-decoration: line-through; }

/* ── PROGRESS BAR ─────────────────────────── */
.progress-bar { background: #222; border-radius: 10px; height: 5px; margin: 0.5rem 0; }
.progress-fill { height: 100%; border-radius: 10px; background: var(--lime); box-shadow: var(--lime-glow); transition: width 0.5s; }

/* ── CARDS ────────────────────────────────── */
.card {
  background: var(--card2); border: 1px solid rgba(255,255,255,0.07);
  border-radius: var(--radius); padding: 1.5rem;
}

/* ── FORM ─────────────────────────────────── */
.form-group { margin-bottom: 1.2rem; }
.form-group label { display: block; font-size: 0.85rem; color: var(--muted); margin-bottom: 0.5rem; text-transform: uppercase; letter-spacing: 0.5px; }
.form-group input {
  width: 100%; padding: 0.85rem 1rem;
  background: #0d0d0d; border: 1.5px solid rgba(255,255,255,0.08);
  border-radius: 8px; color: white; font-size: 0.95rem;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.form-group input:focus { outline: none; border-color: var(--lime); box-shadow: 0 0 0 3px rgba(207,243,23,0.08); }

/* ── TABS ─────────────────────────────────── */
.tabs { display: flex; border-bottom: 1px solid var(--border); margin-bottom: 1.5rem; }
.tab {
  padding: 0.8rem 1.5rem; font-weight: 600; cursor: pointer;
  color: var(--muted); border-bottom: 2px solid transparent;
  transition: all 0.2s; font-size: 0.92rem;
}
.tab.active { color: var(--lime); border-bottom-color: var(--lime); }

/* ── DASHBOARD ────────────────────────────── */
.dashboard-layout { display: grid; grid-template-columns: 240px 1fr; min-height: calc(100vh - 68px); }
.sidebar { background: var(--card); border-right: 1px solid var(--border); padding: 2rem 1rem; }
.sidebar-item {
  display: flex; align-items: center; gap: 0.8rem;
  padding: 0.8rem 1rem; border-radius: 8px; cursor: pointer;
  color: var(--muted); font-size: 0.9rem; transition: all 0.2s;
  margin-bottom: 0.3rem;
}
.sidebar-item:hover, .sidebar-item.active {
  background: var(--lime-dim); color: var(--lime);
}
.sidebar-icon { font-size: 1rem; width: 20px; text-align: center; }
.main-content { padding: 2.5rem; }

/* ── ALERT ────────────────────────────────── */
.alert { padding: 0.9rem 1rem; border-radius: 8px; margin-bottom: 1rem; font-size: 0.88rem; }
.alert-error   { background: rgba(244,67,54,0.1);  color: #f44336; border: 1px solid rgba(244,67,54,0.25); }
.alert-success { background: rgba(207,243,23,0.1); color: var(--lime); border: 1px solid var(--border); }

/* ── VIDEO PLAYER ─────────────────────────── */
.player-layout { display: grid; grid-template-columns: 1fr 320px; min-height: calc(100vh - 68px); }
.video-area { background: #000; display: flex; flex-direction: column; }
.video-wrapper { position: relative; padding-top: 56.25%; }
.video-wrapper iframe, .video-wrapper video { position: absolute; top: 0; left: 0; width: 100%; height: 100%; border: none; background: #000; }
.video-info { padding: 1.5rem; background: var(--card); border-top: 1px solid var(--border); }
.lesson-sidebar { background: var(--card2); border-left: 1px solid var(--border); overflow-y: auto; max-height: calc(100vh - 68px); }
.lesson-sidebar-header { padding: 1.1rem 1.3rem; border-bottom: 1px solid var(--border); font-weight: 700; font-size: 0.9rem; }
.lesson-section-title {
  padding: 0.7rem 1.3rem; font-size: 0.72rem;
  text-transform: uppercase; letter-spacing: 1.5px;
  color: var(--lime); font-weight: 700;
  background: rgba(207,243,23,0.04);
}
.lesson-item {
  display: flex; align-items: center; gap: 0.8rem;
  padding: 0.85rem 1.3rem; cursor: pointer;
  border-bottom: 1px solid rgba(255,255,255,0.04);
  transition: background 0.2s; font-size: 0.87rem; color: var(--muted);
}
.lesson-item:hover { background: var(--lime-dim); color: var(--text); }
.lesson-item.active { background: rgba(207,243,23,0.1); color: var(--lime); }
.lesson-item.completed { color: var(--text); }
.lesson-check { font-size: 0.85rem; width: 18px; flex-shrink: 0; }
.lesson-duration { margin-left: auto; color: var(--muted); font-size: 0.75rem; flex-shrink: 0; }

/* ── CERTIFICATE ──────────────────────────── */
.cert-card {
  background: linear-gradient(135deg, #0f1a00, #0a0a0a);
  border: 1.5px solid var(--lime); border-radius: var(--radius);
  padding: 2rem; text-align: center;
  box-shadow: 0 0 30px rgba(207,243,23,0.08);
}
.cert-card::before { content: '🏆'; font-size: 2.5rem; display: block; margin-bottom: 1rem; }
.cert-card h3 { color: var(--lime); font-size: 1.05rem; margin-bottom: 0.5rem; }
.cert-card p  { color: var(--muted); font-size: 0.83rem; margin-bottom: 1.5rem; }
.cert-id { font-size: 0.72rem; color: #444; margin-top: 1rem; word-break: break-all; }

/* ── FEATURE PILLS ────────────────────────── */
.features-row { display: flex; flex-wrap: wrap; gap: 0.8rem; margin-bottom: 2rem; }
.feature-pill {
  display: flex; align-items: center; gap: 0.5rem;
  background: var(--lime-dim); border: 1px solid var(--border);
  color: var(--lime); padding: 0.5rem 1rem; border-radius: 30px;
  font-size: 0.82rem; font-weight: 600;
}

/* ── FOOTER ───────────────────────────────── */
footer { background: var(--card); border-top: 1px solid var(--border); padding: 3.5rem 5% 1.5rem; }
.footer-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 2.5rem; margin-bottom: 2.5rem; }
.footer-desc { color: var(--muted); font-size: 0.85rem; line-height: 1.75; margin-top: 0.8rem; }
.footer-heading { font-size: 0.78rem; font-weight: 700; text-transform: uppercase; letter-spacing: 2px; color: var(--lime); margin-bottom: 1rem; }
.footer-links { list-style: none; }
.footer-links li { margin-bottom: 0.6rem; }
.footer-links a { color: var(--muted); font-size: 0.87rem; transition: color 0.2s; }
.footer-links a:hover { color: var(--lime); }
.footer-bottom { text-align: center; color: #444; font-size: 0.8rem; padding-top: 1.5rem; border-top: 1px solid var(--border); }

/* ── GLOW DIVIDER ─────────────────────────── */
.glow-line { height: 1px; background: linear-gradient(90deg, transparent, var(--lime), transparent); margin: 0; opacity: 0.4; }

/* ── RESPONSIVE ───────────────────────────── */
@media (max-width: 768px) {
  .dashboard-layout { grid-template-columns: 1fr; }
  .sidebar { display: none; }
  .player-layout { grid-template-columns: 1fr; }
  .lesson-sidebar { max-height: 280px; }
  .nav-links a:not(.nav-btn) { display: none; }
  .stats { flex-direction: column; }
  .stat { border-right: none; border-bottom: 1px solid var(--border); }
}
