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

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg:        #0a0a0a;
  --bg2:       #141414;
  --bg3:       #1c1c1c;
  --bg4:       #242424;
  --accent:    #7c3aed;
  --accent2:   #6d28d9;
  --accent3:   #5b21b6;
  --accent-light: #a78bfa;
  --accent-glow:  rgba(124,58,237,0.35);
  --red:       #e50914;
  --text:      #ffffff;
  --text2:     #b3b3b3;
  --text3:     #737373;
  --border:    rgba(255,255,255,0.08);
  --border2:   rgba(255,255,255,0.14);
  --nav-h:     68px;
  --radius:    10px;
  --shadow:    0 8px 40px rgba(0,0,0,0.7);
  --shadow-lg: 0 20px 60px rgba(0,0,0,0.85);
}

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  line-height: 1.5;
}

/* ─── SCROLLBAR ─────────────────────────────────────────── */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: #333; border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: #555; }

/* ─── SELECTION ─────────────────────────────────────────── */
::selection { background: var(--accent); color: #fff; }

/* ─── NAVBAR ─────────────────────────────────────────────── */
.znf-nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 4%;
  z-index: 900;
  transition: background 0.35s ease, box-shadow 0.35s ease;
}
.znf-nav.at-top {
  background: linear-gradient(180deg, rgba(0,0,0,0.75) 0%, transparent 100%);
}
.znf-nav.scrolled {
  background: rgba(10,10,10,0.97);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  box-shadow: 0 1px 0 var(--border);
}
.znf-nav-logo {
  font-size: 26px;
  font-weight: 900;
  letter-spacing: -0.5px;
  text-decoration: none;
  color: #fff;
  display: flex;
  align-items: center;
  gap: 0;
  flex-shrink: 0;
}
.znf-nav-logo .accent {
  background: linear-gradient(135deg, #a78bfa 0%, #7c3aed 60%, #5b21b6 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.znf-nav-links {
  display: flex;
  align-items: center;
  gap: 8px;
}
.znf-nav-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 14px;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  color: var(--text2);
  transition: color 0.2s, background 0.2s;
  white-space: nowrap;
}
.znf-nav-link:hover { color: #fff; background: rgba(255,255,255,0.06); }
.znf-nav-link.active { color: #fff; }
.znf-nav-link.accent-link { color: var(--accent-light); }
.znf-nav-link.accent-link:hover { color: #fff; background: rgba(124,58,237,0.15); }
.znf-nav-badge {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.5px;
  background: var(--accent);
  color: white;
  text-decoration: none;
  transition: background 0.2s, transform 0.2s;
}
.znf-nav-badge:hover { background: var(--accent2); transform: scale(1.03); }
.znf-user-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px 6px 6px;
  border-radius: 30px;
  font-size: 13px;
  font-weight: 500;
  color: var(--text2);
  background: rgba(255,255,255,0.05);
  border: 1px solid var(--border);
}
.znf-avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), var(--accent-light));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 700;
  color: white;
  flex-shrink: 0;
}

/* ─── HERO ───────────────────────────────────────────────── */
.znf-hero {
  min-height: 88vh;
  display: flex;
  align-items: flex-end;
  padding: 0 4% 10vh;
  position: relative;
  overflow: hidden;
}
.znf-hero-bg {
  position: absolute;
  inset: 0;
  background: linear-gradient(125deg, #130a2e 0%, #0d0d2b 40%, #0a0a14 80%, var(--bg) 100%);
}
.znf-hero-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 15% 55%, rgba(124,58,237,0.18) 0%, transparent 60%),
    radial-gradient(ellipse 50% 40% at 75% 25%, rgba(167,139,250,0.07) 0%, transparent 55%),
    radial-gradient(ellipse 30% 50% at 90% 80%, rgba(91,33,182,0.1) 0%, transparent 50%);
}
.znf-hero-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to right, rgba(0,0,0,0.85) 0%, rgba(0,0,0,0.55) 45%, transparent 75%),
    linear-gradient(to top, var(--bg) 0%, transparent 35%);
}
.znf-hero-content {
  position: relative;
  z-index: 1;
  max-width: 680px;
  animation: fadeInUp 0.8s ease both;
}
.znf-hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(124,58,237,0.18);
  border: 1px solid rgba(167,139,250,0.3);
  padding: 6px 14px;
  border-radius: 30px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.8px;
  text-transform: uppercase;
  color: #c4b5fd;
  margin-bottom: 22px;
}
.znf-hero-eyebrow::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent-light);
  animation: pulse 2s infinite;
}
.znf-hero-title {
  font-size: clamp(2.4rem, 5.5vw, 4.2rem);
  font-weight: 900;
  line-height: 1.08;
  letter-spacing: -1.5px;
  margin-bottom: 18px;
  text-shadow: 0 2px 20px rgba(0,0,0,0.5);
}
.znf-hero-title .highlight {
  background: linear-gradient(135deg, #c4b5fd, #a78bfa, #7c3aed);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.znf-hero-sub {
  font-size: 17px;
  color: #c4c4c4;
  line-height: 1.65;
  margin-bottom: 36px;
  max-width: 500px;
}
.znf-hero-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

/* ─── BUTTONS ────────────────────────────────────────────── */
.znf-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 28px;
  border-radius: 8px;
  font-size: 15px;
  font-weight: 600;
  font-family: inherit;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.4,0,0.2,1);
  white-space: nowrap;
  letter-spacing: -0.1px;
}
.znf-btn-primary {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 4px 24px var(--accent-glow);
}
.znf-btn-primary:hover {
  background: var(--accent2);
  transform: translateY(-2px);
  box-shadow: 0 8px 32px var(--accent-glow);
  color: #fff;
}
.znf-btn-primary:active { transform: translateY(0); }
.znf-btn-ghost {
  background: rgba(255,255,255,0.1);
  color: #fff;
  border: 1px solid rgba(255,255,255,0.15);
  backdrop-filter: blur(8px);
}
.znf-btn-ghost:hover {
  background: rgba(255,255,255,0.18);
  transform: translateY(-2px);
  color: #fff;
}
.znf-btn-danger {
  background: rgba(229,9,20,0.12);
  color: #ff6b6b;
  border: 1px solid rgba(229,9,20,0.2);
}
.znf-btn-danger:hover {
  background: #e50914;
  color: #fff;
  border-color: #e50914;
  box-shadow: 0 4px 20px rgba(229,9,20,0.4);
}
.znf-btn-sm { padding: 8px 16px; font-size: 13px; }
.znf-btn-lg { padding: 16px 36px; font-size: 16px; }
.znf-btn-full { width: 100%; }

/* ─── SECTIONS ───────────────────────────────────────────── */
.znf-section { padding: 10px 4% 50px; }
.znf-section-title {
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.4px;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.znf-section-title .dot {
  width: 4px; height: 20px;
  background: var(--accent);
  border-radius: 2px;
}

/* ─── COURSE CARDS ───────────────────────────────────────── */
.znf-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 8px;
}
@media (min-width: 1400px) { .znf-grid { grid-template-columns: repeat(6, 1fr); } }
@media (min-width: 1200px) and (max-width: 1399px) { .znf-grid { grid-template-columns: repeat(5, 1fr); } }
@media (min-width: 900px) and (max-width: 1199px) { .znf-grid { grid-template-columns: repeat(4, 1fr); } }
@media (min-width: 600px) and (max-width: 899px) { .znf-grid { grid-template-columns: repeat(3, 1fr); } }

.znf-card {
  position: relative;
  border-radius: 8px;
  overflow: visible;
  cursor: pointer;
  text-decoration: none;
  color: inherit;
  transition: transform 0.3s cubic-bezier(0.4,0,0.2,1), z-index 0s 0.3s;
  display: block;
}
.znf-card:hover {
  transform: scale(1.1);
  z-index: 20;
  transition: transform 0.3s cubic-bezier(0.4,0,0.2,1), z-index 0s 0s;
}
.znf-card-inner {
  border-radius: 8px;
  overflow: hidden;
  aspect-ratio: 16/9;
  position: relative;
  box-shadow: var(--shadow);
  transition: box-shadow 0.3s ease;
}
.znf-card:hover .znf-card-inner {
  box-shadow: var(--shadow-lg), 0 0 0 2px rgba(124,58,237,0.4);
}
.znf-card-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}
.znf-card:hover .znf-card-img { transform: scale(1.06); }
.znf-card-placeholder {
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #2d1b69 0%, #1e1b4b 50%, #1a0a3e 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 44px;
  position: relative;
}
.znf-card-placeholder::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, transparent 40%, rgba(124,58,237,0.15) 100%);
}
.znf-card-base-overlay {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  padding: 32px 10px 10px;
  background: linear-gradient(to top, rgba(0,0,0,0.92) 0%, transparent 100%);
}
.znf-card-base-title {
  font-size: 13px;
  font-weight: 600;
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.znf-card-hover-panel {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(10,0,25,0.97) 0%, rgba(10,0,25,0.7) 60%, transparent 100%);
  padding: 14px 12px 12px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  opacity: 0;
  transition: opacity 0.25s ease;
  pointer-events: none;
}
.znf-card:hover .znf-card-hover-panel { opacity: 1; pointer-events: auto; }
.znf-card-play-btn {
  width: 38px; height: 38px;
  border-radius: 50%;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 8px;
  flex-shrink: 0;
  transition: transform 0.2s;
}
.znf-card-play-btn:hover { transform: scale(1.1); }
.znf-card-hover-title {
  font-size: 13px;
  font-weight: 700;
  margin-bottom: 4px;
  line-height: 1.3;
}
.znf-card-hover-meta {
  font-size: 11px;
  color: var(--text3);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  line-height: 1.4;
}

/* ─── EMPTY STATE ────────────────────────────────────────── */
.znf-empty {
  text-align: center;
  padding: 80px 20px;
  border: 1px dashed var(--border2);
  border-radius: 16px;
  background: rgba(255,255,255,0.01);
}
.znf-empty-icon { font-size: 56px; margin-bottom: 20px; opacity: 0.5; }
.znf-empty-title { font-size: 20px; font-weight: 700; margin-bottom: 10px; }
.znf-empty-sub { color: var(--text2); margin-bottom: 28px; font-size: 15px; }

/* ─── COURSE DETAIL HEADER ───────────────────────────────── */
.znf-course-header {
  min-height: 65vh;
  display: flex;
  align-items: flex-end;
  padding: 0 4% 60px;
  position: relative;
  overflow: hidden;
}
.znf-course-bg {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, #13082e 0%, #0d0d2b 50%, var(--bg) 100%);
}
.znf-course-bg-img {
  position: absolute;
  inset: 0;
  object-fit: cover;
  width: 100%;
  height: 100%;
  opacity: 0.15;
  filter: blur(2px);
}
.znf-course-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to right, rgba(0,0,0,0.92) 0%, rgba(0,0,0,0.6) 50%, transparent 80%),
    linear-gradient(to top, var(--bg) 0%, transparent 40%);
}
.znf-course-header-content {
  position: relative;
  z-index: 1;
  max-width: 750px;
  animation: fadeInUp 0.7s ease both;
}
.znf-course-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  background: rgba(124,58,237,0.2);
  border: 1px solid rgba(167,139,250,0.35);
  border-radius: 20px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: #c4b5fd;
  margin-bottom: 18px;
}
.znf-course-title {
  font-size: clamp(2rem, 4.5vw, 3.5rem);
  font-weight: 900;
  line-height: 1.1;
  letter-spacing: -1px;
  margin-bottom: 16px;
}
.znf-course-desc {
  font-size: 16px;
  color: #c0c0c0;
  line-height: 1.65;
  max-width: 580px;
  margin-bottom: 30px;
}
.znf-course-stats {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
}
.znf-stat {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  color: var(--text2);
}
.znf-stat svg { color: var(--accent-light); }

/* ─── MODULES / LESSONS ──────────────────────────────────── */
.znf-modules { padding: 40px 4% 60px; }
.znf-module-block { margin-bottom: 8px; }
.znf-module-header {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 20px 24px;
  background: var(--bg3);
  border-radius: 10px;
  cursor: pointer;
  border: 1px solid transparent;
  transition: background 0.2s, border-color 0.2s;
  user-select: none;
}
.znf-module-header:hover {
  background: var(--bg4);
  border-color: var(--border);
}
.znf-module-header.open {
  background: var(--bg4);
  border-color: rgba(124,58,237,0.25);
  border-bottom-left-radius: 0;
  border-bottom-right-radius: 0;
}
.znf-module-num {
  width: 36px; height: 36px;
  border-radius: 8px;
  background: rgba(124,58,237,0.18);
  border: 1px solid rgba(167,139,250,0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 700;
  color: var(--accent-light);
  flex-shrink: 0;
}
.znf-module-info { flex: 1; min-width: 0; }
.znf-module-title {
  font-size: 15px;
  font-weight: 700;
  margin-bottom: 2px;
}
.znf-module-sub { font-size: 13px; color: var(--text3); }
.znf-module-chevron {
  color: var(--text3);
  transition: transform 0.3s ease;
  flex-shrink: 0;
}
.znf-module-header.open .znf-module-chevron { transform: rotate(180deg); }
.znf-module-body {
  background: rgba(28,28,28,0.8);
  border: 1px solid rgba(124,58,237,0.2);
  border-top: none;
  border-radius: 0 0 10px 10px;
  overflow: hidden;
  max-height: 0;
  transition: max-height 0.35s cubic-bezier(0.4,0,0.2,1);
}
.znf-module-body.open { max-height: 2000px; }
.znf-lesson-row {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 24px;
  cursor: pointer;
  border-bottom: 1px solid var(--border);
  transition: background 0.15s;
}
.znf-lesson-row:last-child { border-bottom: none; }
.znf-lesson-row:hover { background: rgba(124,58,237,0.1); }
.znf-lesson-play {
  width: 34px; height: 34px;
  border-radius: 50%;
  background: rgba(124,58,237,0.15);
  border: 1px solid rgba(167,139,250,0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: background 0.2s, transform 0.2s;
  color: var(--accent-light);
}
.znf-lesson-row:hover .znf-lesson-play {
  background: var(--accent);
  border-color: var(--accent);
  color: white;
  transform: scale(1.1);
}
.znf-lesson-info { flex: 1; min-width: 0; }
.znf-lesson-title {
  font-size: 14px;
  font-weight: 600;
  line-height: 1.3;
  margin-bottom: 2px;
}
.znf-lesson-desc {
  font-size: 12px;
  color: var(--text3);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.znf-lesson-duration {
  font-size: 12px;
  color: var(--text3);
  font-variant-numeric: tabular-nums;
  background: rgba(255,255,255,0.06);
  padding: 3px 8px;
  border-radius: 4px;
  flex-shrink: 0;
}

/* ─── VIDEO MODAL ────────────────────────────────────────── */
.znf-modal {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}
.znf-modal.open { opacity: 1; pointer-events: auto; }
.znf-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.88);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}
.znf-modal-box {
  position: relative;
  z-index: 1;
  background: #111;
  border-radius: 16px;
  width: 100%;
  max-width: 960px;
  max-height: 92vh;
  overflow: hidden;
  box-shadow: 0 40px 100px rgba(0,0,0,0.9), 0 0 0 1px var(--border2);
  transform: scale(0.94) translateY(24px);
  transition: transform 0.35s cubic-bezier(0.34,1.56,0.64,1);
}
.znf-modal.open .znf-modal-box { transform: scale(1) translateY(0); }
.znf-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  border-bottom: 1px solid var(--border);
  background: #111;
  position: sticky;
  top: 0;
  z-index: 1;
}
.znf-modal-title { font-size: 16px; font-weight: 700; }
.znf-modal-close {
  width: 36px; height: 36px;
  border-radius: 50%;
  background: rgba(255,255,255,0.08);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text2);
  cursor: pointer;
  transition: all 0.2s;
  font-size: 18px;
  line-height: 1;
}
.znf-modal-close:hover { background: rgba(255,255,255,0.15); color: #fff; }
.znf-modal-video { aspect-ratio: 16/9; background: #000; }
.znf-modal-video iframe { width: 100%; height: 100%; display: block; }

/* ─── AUTH PAGES ─────────────────────────────────────────── */
.znf-auth-body {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  position: relative;
  overflow: hidden;
  background: var(--bg);
}
.znf-auth-bg {
  position: fixed;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 50% 50%, rgba(124,58,237,0.12) 0%, transparent 65%),
    radial-gradient(ellipse 40% 40% at 20% 20%, rgba(167,139,250,0.06) 0%, transparent 50%),
    radial-gradient(ellipse 40% 40% at 80% 80%, rgba(91,33,182,0.08) 0%, transparent 50%);
  pointer-events: none;
}
.znf-auth-grid {
  position: fixed;
  inset: 0;
  background-image:
    linear-gradient(rgba(124,58,237,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(124,58,237,0.04) 1px, transparent 1px);
  background-size: 60px 60px;
  pointer-events: none;
  mask-image: radial-gradient(ellipse at center, transparent 20%, black 80%);
}
.znf-auth-card {
  position: relative;
  z-index: 1;
  background: rgba(20,20,20,0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--border2);
  border-radius: 18px;
  padding: 44px 40px;
  width: 100%;
  max-width: 420px;
  box-shadow: var(--shadow-lg), 0 0 80px rgba(124,58,237,0.08);
  animation: fadeInUp 0.6s ease both;
}
.znf-auth-logo {
  display: block;
  text-align: center;
  font-size: 32px;
  font-weight: 900;
  letter-spacing: -0.5px;
  text-decoration: none;
  color: #fff;
  margin-bottom: 8px;
}
.znf-auth-logo .accent {
  background: linear-gradient(135deg, #a78bfa, #7c3aed);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.znf-auth-subtitle {
  text-align: center;
  color: var(--text2);
  font-size: 14px;
  margin-bottom: 36px;
}
.znf-form-group { margin-bottom: 16px; }
.znf-form-label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  color: var(--text3);
  margin-bottom: 8px;
}
.znf-input {
  width: 100%;
  background: rgba(255,255,255,0.05);
  border: 1px solid var(--border2);
  color: #fff;
  padding: 13px 16px;
  border-radius: 9px;
  font-size: 15px;
  font-family: inherit;
  outline: none;
  transition: all 0.2s ease;
  -webkit-appearance: none;
}
.znf-input:focus {
  border-color: var(--accent);
  background: rgba(124,58,237,0.06);
  box-shadow: 0 0 0 3px rgba(124,58,237,0.18);
}
.znf-input::placeholder { color: var(--text3); }
.znf-input:-webkit-autofill,
.znf-input:-webkit-autofill:hover,
.znf-input:-webkit-autofill:focus {
  -webkit-box-shadow: 0 0 0 30px #1a1a2e inset;
  -webkit-text-fill-color: #fff;
}
.znf-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 20px 0;
  color: var(--text3);
  font-size: 12px;
}
.znf-divider::before,
.znf-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border);
}
.znf-alert {
  padding: 12px 16px;
  border-radius: 9px;
  font-size: 14px;
  margin-bottom: 16px;
  display: flex;
  align-items: flex-start;
  gap: 10px;
}
.znf-alert-error {
  background: rgba(229,9,20,0.1);
  border: 1px solid rgba(229,9,20,0.25);
  color: #ff8080;
}
.znf-alert-success {
  background: rgba(34,197,94,0.1);
  border: 1px solid rgba(34,197,94,0.25);
  color: #86efac;
}

/* ─── ADMIN ──────────────────────────────────────────────── */
.znf-admin-layout {
  padding-top: var(--nav-h);
  min-height: 100vh;
}
.znf-admin-header {
  padding: 36px 4% 28px;
  border-bottom: 1px solid var(--border);
  background: linear-gradient(180deg, rgba(124,58,237,0.04) 0%, transparent 100%);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}
.znf-admin-title { font-size: 28px; font-weight: 800; letter-spacing: -0.5px; }
.znf-admin-sub { color: var(--text2); font-size: 14px; margin-top: 4px; }
.znf-admin-body { padding: 36px 4%; }
.znf-admin-card {
  background: var(--bg3);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: border-color 0.2s, transform 0.2s, box-shadow 0.2s;
}
.znf-admin-card:hover {
  border-color: var(--border2);
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}
.znf-admin-card-img { width: 100%; height: 160px; object-fit: cover; display: block; }
.znf-admin-card-placeholder {
  width: 100%; height: 160px;
  background: linear-gradient(135deg, #2d1b69, #1e1b4b);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 36px;
}
.znf-admin-card-body { padding: 18px; }
.znf-admin-card-title {
  font-size: 15px;
  font-weight: 700;
  margin-bottom: 14px;
  line-height: 1.3;
}
.znf-admin-card-actions { display: flex; gap: 8px; }
.znf-action-btn {
  flex: 1;
  padding: 8px 10px;
  border-radius: 7px;
  font-size: 13px;
  font-weight: 600;
  text-align: center;
  text-decoration: none;
  border: none;
  cursor: pointer;
  font-family: inherit;
  transition: all 0.18s;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
}
.znf-action-edit {
  background: rgba(59,130,246,0.12);
  color: #60a5fa;
  border: 1px solid rgba(59,130,246,0.2);
}
.znf-action-edit:hover {
  background: #3b82f6;
  color: #fff;
  border-color: #3b82f6;
  box-shadow: 0 4px 16px rgba(59,130,246,0.3);
}
.znf-action-manage {
  background: rgba(124,58,237,0.12);
  color: var(--accent-light);
  border: 1px solid rgba(124,58,237,0.2);
}
.znf-action-manage:hover {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
  box-shadow: 0 4px 16px var(--accent-glow);
}
.znf-action-delete {
  background: rgba(229,9,20,0.08);
  color: #ff6b6b;
  border: 1px solid rgba(229,9,20,0.15);
  flex: 0;
  padding: 8px 12px;
}
.znf-action-delete:hover {
  background: #e50914;
  color: #fff;
  border-color: #e50914;
  box-shadow: 0 4px 16px rgba(229,9,20,0.3);
}

/* ADMIN FORM */
.znf-form-card {
  background: var(--bg3);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 32px;
  max-width: 700px;
}
.znf-form-card .znf-input { background: var(--bg4); border-color: rgba(255,255,255,0.1); }
.znf-form-card .znf-input:focus { border-color: var(--accent); background: rgba(124,58,237,0.05); }
.znf-form-card textarea.znf-input { resize: vertical; min-height: 100px; }
.znf-form-hint { font-size: 12px; color: var(--text3); margin-top: 6px; }
.znf-form-actions { display: flex; gap: 12px; margin-top: 28px; }

/* ADMIN LIST ITEMS */
.znf-list-item {
  background: var(--bg3);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 20px 24px;
  transition: border-color 0.2s;
}
.znf-list-item:hover { border-color: var(--border2); }
.znf-list-item-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
}
.znf-lesson-url {
  font-size: 12px;
  color: var(--text3);
  font-family: monospace;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  margin-top: 6px;
}

/* BREADCRUMB */
.znf-breadcrumb {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: var(--text3);
  margin-bottom: 6px;
}
.znf-breadcrumb a { color: var(--text3); text-decoration: none; transition: color 0.2s; }
.znf-breadcrumb a:hover { color: var(--accent-light); }
.znf-breadcrumb-sep { color: var(--border2); }

/* ─── UTILITIES ──────────────────────────────────────────── */
.znf-badge {
  display: inline-flex;
  align-items: center;
  padding: 3px 10px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
}
.znf-badge-purple {
  background: rgba(124,58,237,0.15);
  color: var(--accent-light);
  border: 1px solid rgba(124,58,237,0.2);
}
.znf-badge-blue {
  background: rgba(59,130,246,0.12);
  color: #93c5fd;
  border: 1px solid rgba(59,130,246,0.2);
}

/* ─── ANIMATIONS ─────────────────────────────────────────── */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(28px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}
@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%       { opacity: 0.6; transform: scale(0.85); }
}
@keyframes shimmer {
  0%   { background-position: -200% 0; }
  100% { background-position:  200% 0; }
}
.znf-animate { animation: fadeInUp 0.6s ease both; }
.znf-animate-delay-1 { animation-delay: 0.1s; }
.znf-animate-delay-2 { animation-delay: 0.2s; }
.znf-animate-delay-3 { animation-delay: 0.3s; }
.znf-animate-delay-4 { animation-delay: 0.4s; }
.znf-stagger > * {
  opacity: 0;
  animation: fadeInUp 0.5s ease forwards;
}
.znf-stagger > *:nth-child(1)  { animation-delay: 0.05s; }
.znf-stagger > *:nth-child(2)  { animation-delay: 0.1s; }
.znf-stagger > *:nth-child(3)  { animation-delay: 0.15s; }
.znf-stagger > *:nth-child(4)  { animation-delay: 0.2s; }
.znf-stagger > *:nth-child(5)  { animation-delay: 0.25s; }
.znf-stagger > *:nth-child(6)  { animation-delay: 0.3s; }
.znf-stagger > *:nth-child(7)  { animation-delay: 0.35s; }
.znf-stagger > *:nth-child(8)  { animation-delay: 0.4s; }
.znf-stagger > *:nth-child(9)  { animation-delay: 0.45s; }
.znf-stagger > *:nth-child(10) { animation-delay: 0.5s; }

/* ─── RESPONSIVE ─────────────────────────────────────────── */
@media (max-width: 640px) {
  .znf-auth-card { padding: 32px 24px; }
  .znf-form-actions { flex-direction: column; }
  .znf-admin-header { flex-direction: column; align-items: flex-start; }
  .znf-hero { padding: 0 6% 60px; }
}
