/* ════════════════════════════════════════════════════════
   SHIRAZI EDUCATION — LMS Design System
   Palette: Navy #0A0E1A | Teal #00D4FF | Gold #FFB800
   Type: Playfair Display + Inter
   ════════════════════════════════════════════════════════ */

:root {
  --navy:   #0A0E1A;
  --navy2:  #111827;
  --navy3:  #1a2236;
  --teal:   #00D4FF;
  --teal2:  #00a8cc;
  --gold:   #FFB800;
  --gold2:  #e0a200;
  --white:  #F0F4FF;
  --muted:  #8892a4;
  --glass:  rgba(255,255,255,0.05);
  --glassborder: rgba(255,255,255,0.1);
  --radius: 16px;
  --radius-sm: 10px;
  --shadow: 0 20px 60px rgba(0,0,0,0.5);
}

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

html { scroll-behavior: smooth; }

body {
  background: var(--navy);
  color: var(--white);
  font-family: 'Inter', sans-serif;
  font-size: 16px;
  line-height: 1.6;
  overflow-x: hidden;
}

/* ── Typography ── */
.gradient-text {
  background: linear-gradient(135deg, var(--teal) 0%, var(--gold) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ── Buttons ── */
.btn-primary {
  background: linear-gradient(135deg, var(--teal), var(--teal2));
  color: var(--navy);
  border: none;
  padding: 12px 28px;
  border-radius: 50px;
  font-weight: 700;
  font-size: 15px;
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}
.btn-primary::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, var(--gold), var(--gold2));
  opacity: 0;
  transition: opacity 0.3s;
}
.btn-primary:hover::before { opacity: 1; }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 10px 30px rgba(0,212,255,0.4); }
.btn-primary span, .btn-primary { position: relative; z-index: 1; }

.btn-ghost {
  background: transparent;
  color: var(--white);
  border: 1px solid var(--glassborder);
  padding: 11px 24px;
  border-radius: 50px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s;
}
.btn-ghost:hover { border-color: var(--teal); color: var(--teal); }

.btn-outline {
  background: transparent;
  color: var(--white);
  border: 2px solid var(--glassborder);
  padding: 12px 28px;
  border-radius: 50px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s;
}
.btn-outline:hover { border-color: var(--teal); color: var(--teal); transform: translateY(-2px); }

.btn-lg { padding: 16px 36px; font-size: 17px; }
.btn-full { width: 100%; }
.btn-sm { padding: 6px 16px; font-size: 13px; border-radius: 20px; }
.mt-1 { margin-top: 12px; }
.w-full { width: 100%; margin-bottom: 8px; }

/* ════════════════════════════════════
   NAV
   ════════════════════════════════════ */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 999;
  padding: 0 40px;
  height: 70px;
  display: flex;
  align-items: center;
  background: rgba(10,14,26,0.8);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--glassborder);
  transition: background 0.3s;
}
.nav.scrolled { background: rgba(10,14,26,0.97); }
.nav-inner {
  width: 100%; max-width: 1280px;
  margin: auto;
  display: flex;
  align-items: center;
  gap: 32px;
}
.nav-logo {
  display: flex; align-items: center; gap: 10px;
  text-decoration: none; color: var(--white);
  flex-shrink: 0;
}
.logo-mark {
  width: 38px; height: 38px;
  background: linear-gradient(135deg, var(--teal), var(--gold));
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  font-weight: 900; font-size: 14px; color: var(--navy);
}
.logo-text { font-family: 'Playfair Display', serif; font-size: 18px; font-weight: 700; }
.logo-text em { font-style: normal; color: var(--teal); }

.nav-links {
  display: flex; list-style: none; gap: 8px; margin: auto;
}
.nav-links a {
  color: var(--muted); text-decoration: none;
  padding: 8px 16px; border-radius: 8px;
  font-size: 15px; font-weight: 500; transition: color 0.2s;
}
.nav-links a:hover { color: var(--white); }

.nav-actions { display: flex; gap: 10px; align-items: center; flex-shrink: 0; }

.hamburger {
  display: none; flex-direction: column; gap: 5px;
  background: none; border: none; cursor: pointer; padding: 8px;
}
.hamburger span { width: 24px; height: 2px; background: var(--white); border-radius: 2px; transition: all 0.3s; }

.mobile-menu {
  display: none;
  position: fixed;
  top: 70px; left: 0; right: 0;
  background: var(--navy2);
  border-bottom: 1px solid var(--glassborder);
  padding: 20px 24px;
  flex-direction: column; gap: 12px;
  z-index: 998;
}
.mobile-menu.open { display: flex; }
.mob-link { color: var(--white); text-decoration: none; font-size: 16px; padding: 8px 0; }

/* ════════════════════════════════════
   HERO
   ════════════════════════════════════ */
.hero {
  min-height: 100vh;
  padding-top: 70px;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
}
.hero-canvas {
  position: absolute; inset: 0; width: 100%; height: 100%;
  z-index: 0; pointer-events: none;
}
.hero-content {
  position: relative; z-index: 1;
  width: 50%;
  padding: 80px 0 80px 100px;
}
.hero-eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  background: var(--glass); border: 1px solid var(--glassborder);
  border-radius: 50px; padding: 8px 20px;
  font-size: 13px; color: var(--teal); font-weight: 600;
  letter-spacing: 0.5px;
  margin-bottom: 28px;
  animation: fadeInDown 0.8s ease forwards;
}
.dot-pulse {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--teal);
  animation: pulse 1.5s infinite;
}
@keyframes pulse {
  0%,100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(0.8); }
}
.hero-headline {
  font-family: 'Playfair Display', serif;
  font-size: clamp(52px, 6vw, 80px);
  font-weight: 900;
  line-height: 1.05;
  margin-bottom: 24px;
  animation: fadeInUp 0.9s 0.1s ease both;
}
.hero-sub {
  color: var(--muted);
  font-size: 18px;
  max-width: 520px;
  margin-bottom: 40px;
  animation: fadeInUp 0.9s 0.2s ease both;
}
.hero-cta {
  display: flex; gap: 16px; flex-wrap: wrap;
  margin-bottom: 60px;
  animation: fadeInUp 0.9s 0.3s ease both;
}
.hero-stats {
  display: flex; align-items: center; gap: 24px;
  animation: fadeInUp 0.9s 0.4s ease both;
}
.stat-num {
  font-family: 'Playfair Display', serif;
  font-size: 32px; font-weight: 900;
  background: linear-gradient(135deg, var(--teal), var(--gold));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  display: block;
}
.stat-label { font-size: 12px; color: var(--muted); font-weight: 500; }
.stat-div { width: 1px; height: 40px; background: var(--glassborder); }

.hero-visual {
  position: absolute; right: 0;
  width: 50%;
  height: 100%;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}
.hero-mockup {
  width: 340px;
  background: var(--navy2);
  border-radius: var(--radius);
  border: 1px solid var(--glassborder);
  box-shadow: var(--shadow);
  overflow: hidden;
  animation: float 6s ease-in-out infinite;
}
@keyframes float {
  0%,100% { transform: translateY(0); }
  50% { transform: translateY(-16px); }
}
.mockup-bar {
  display: flex; gap: 6px; padding: 14px 16px;
  background: var(--navy3); border-bottom: 1px solid var(--glassborder);
}
.mockup-bar span { width: 12px; height: 12px; border-radius: 50%; }
.mockup-bar span:nth-child(1) { background: #ff5f57; }
.mockup-bar span:nth-child(2) { background: #febc2e; }
.mockup-bar span:nth-child(3) { background: #28c840; }
.mockup-body { padding: 16px; display: flex; flex-direction: column; gap: 12px; }
.mkp-course {
  display: flex; align-items: center; gap: 12px;
  padding: 12px; border-radius: var(--radius-sm);
  border: 1px solid var(--glassborder); transition: border-color 0.3s;
}
.mkp-course.active { border-color: var(--teal); background: rgba(0,212,255,0.05); }
.mkp-thumb {
  width: 48px; height: 48px; border-radius: 10px; flex-shrink: 0;
  background: linear-gradient(135deg, #00D4FF, #0077ff);
}
.mkp-thumb.t2 { background: linear-gradient(135deg, #FFB800, #ff6b00); }
.mkp-thumb.t3 { background: linear-gradient(135deg, #b44dff, #7b2fff); }
.mkp-info { flex: 1; }
.mkp-info strong { font-size: 13px; display: block; margin-bottom: 4px; }
.mkp-info small { font-size: 11px; color: var(--muted); }
.progress-bar { height: 4px; background: var(--glass); border-radius: 2px; overflow: hidden; margin: 4px 0; }
.progress-fill { height: 100%; border-radius: 2px; background: linear-gradient(90deg, var(--teal), var(--gold)); }

/* Floating cards */
.float-card {
  position: absolute;
  background: rgba(17,24,39,0.9);
  backdrop-filter: blur(20px);
  border: 1px solid var(--glassborder);
  border-radius: var(--radius-sm);
  padding: 14px 18px;
  display: flex; align-items: center; gap: 12px;
  box-shadow: var(--shadow);
  animation: float 6s ease-in-out infinite;
}
.fc1 { top: 25%; left: 52%; animation-delay: 0s; animation-duration: 5s; }
.fc2 { bottom: 30%; left: 50%; animation-delay: 1.5s; animation-duration: 7s; }
.fc3 { top: 20%; right: 5%; animation-delay: 0.8s; animation-duration: 6s; }
.fc-icon { font-size: 26px; }
.fc-text { font-size: 13px; }
.fc-text strong { display: block; font-size: 14px; }
.fc-text small { color: var(--muted); font-size: 11px; }

.hero-scroll-hint {
  position: absolute; bottom: 30px; left: 50%; transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  color: var(--muted); font-size: 12px; z-index: 2;
}
.scroll-mouse {
  width: 22px; height: 36px; border: 2px solid var(--glassborder);
  border-radius: 12px; display: flex; justify-content: center; padding-top: 6px;
}
.scroll-wheel {
  width: 4px; height: 8px; background: var(--teal);
  border-radius: 2px; animation: scroll-down 2s infinite;
}
@keyframes scroll-down { 0%{transform:translateY(0);opacity:1} 100%{transform:translateY(10px);opacity:0} }

/* ════════════════════════════════════
   TICKER
   ════════════════════════════════════ */
.ticker-wrap {
  overflow: hidden;
  background: var(--navy3);
  border-top: 1px solid var(--glassborder);
  border-bottom: 1px solid var(--glassborder);
  padding: 14px 0;
  white-space: nowrap;
}
.ticker-wrap.ticker-alt {
  background: linear-gradient(90deg, var(--teal) 0%, var(--gold) 100%);
  opacity: 0.92;
}
.ticker-track {
  display: inline-flex; gap: 48px;
  animation: ticker-ltr 30s linear infinite;
}
.ticker-rtl { animation: ticker-rtl 28s linear infinite; }
.ticker-track span {
  font-size: 14px; font-weight: 600; color: var(--muted); letter-spacing: 0.3px;
}
.ticker-alt .ticker-track span { color: var(--navy); }
@keyframes ticker-ltr { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@keyframes ticker-rtl { from { transform: translateX(-50%); } to { transform: translateX(0); } }
.ticker-wrap:hover .ticker-track { animation-play-state: paused; }

/* ════════════════════════════════════
   SECTION BASE
   ════════════════════════════════════ */
.section { padding: 100px 0; }
.container { width: 100%; max-width: 1280px; margin: auto; padding: 0 40px; }

.section-header { text-align: center; margin-bottom: 64px; }
.eyebrow {
  display: inline-block;
  color: var(--teal); font-weight: 700; font-size: 13px;
  letter-spacing: 2px; text-transform: uppercase;
  margin-bottom: 16px;
}
.section-title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(34px, 4vw, 52px);
  font-weight: 900; line-height: 1.1;
  margin-bottom: 16px;
}
.section-sub { color: var(--muted); font-size: 18px; max-width: 560px; margin: auto; }

/* ════════════════════════════════════
   SOLUTION CARDS
   ════════════════════════════════════ */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.solution-card {
  background: var(--glass);
  border: 1px solid var(--glassborder);
  border-radius: var(--radius);
  padding: 36px 30px;
  position: relative; overflow: hidden;
  transition: transform 0.3s, border-color 0.3s, box-shadow 0.3s;
  cursor: pointer;
  will-change: transform;
}
.solution-card:hover {
  border-color: var(--teal);
  box-shadow: 0 0 40px rgba(0,212,255,0.15), 0 20px 60px rgba(0,0,0,0.4);
}
.solution-card.featured {
  border-color: var(--gold);
  background: linear-gradient(135deg, rgba(255,184,0,0.08), rgba(0,212,255,0.05));
}
.solution-card.featured:hover { border-color: var(--gold); box-shadow: 0 0 40px rgba(255,184,0,0.2); }

.card-glow {
  position: absolute; top: -60px; right: -60px;
  width: 200px; height: 200px; border-radius: 50%;
  background: radial-gradient(circle, rgba(0,212,255,0.1), transparent 70%);
  pointer-events: none; transition: opacity 0.3s;
}
.featured .card-glow { background: radial-gradient(circle, rgba(255,184,0,0.15), transparent 70%); }
.solution-card:hover .card-glow { opacity: 2; }

.card-badge {
  position: absolute; top: 20px; right: 20px;
  background: linear-gradient(135deg, var(--gold), var(--gold2));
  color: var(--navy); font-size: 11px; font-weight: 800;
  padding: 4px 12px; border-radius: 20px; letter-spacing: 0.5px;
  text-transform: uppercase;
}
.card-icon-wrap {
  width: 56px; height: 56px; border-radius: 16px;
  background: var(--glass); border: 1px solid var(--glassborder);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 20px;
  transition: transform 0.3s;
}
.solution-card:hover .card-icon-wrap { transform: scale(1.1) rotate(-5deg); }
.card-icon { font-size: 28px; }
.solution-card h3 {
  font-family: 'Playfair Display', serif;
  font-size: 22px; font-weight: 700; margin-bottom: 12px;
}
.solution-card p { color: var(--muted); font-size: 15px; margin-bottom: 20px; line-height: 1.6; }
.card-list { list-style: none; margin-bottom: 24px; display: flex; flex-direction: column; gap: 8px; }
.card-list li {
  font-size: 14px; color: var(--muted);
  padding-left: 20px; position: relative;
}
.card-list li::before { content: '→'; position: absolute; left: 0; color: var(--teal); }
.card-link { color: var(--teal); text-decoration: none; font-weight: 600; font-size: 14px; transition: gap 0.2s; }
.card-link:hover { color: var(--gold); }

/* ════════════════════════════════════
   FEATURES SECTION
   ════════════════════════════════════ */
.features-section { background: var(--navy2); }
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.feat-card {
  background: var(--glass);
  border: 1px solid var(--glassborder);
  border-radius: var(--radius);
  padding: 36px 28px;
  position: relative;
  transition: transform 0.3s, border-color 0.3s, box-shadow 0.3s;
  cursor: pointer;
}
.feat-card:hover {
  transform: translateY(-8px);
  border-color: var(--teal);
  box-shadow: 0 20px 50px rgba(0,212,255,0.12);
}
.feat-num {
  font-family: 'Playfair Display', serif;
  font-size: 56px; font-weight: 900;
  color: rgba(255,255,255,0.04);
  position: absolute; top: 16px; right: 20px;
  line-height: 1;
}
.feat-icon { font-size: 36px; margin-bottom: 16px; }
.feat-card h4 { font-size: 20px; font-weight: 700; margin-bottom: 10px; }
.feat-card p { color: var(--muted); font-size: 14px; line-height: 1.6; }

/* ════════════════════════════════════
   ABOUT
   ════════════════════════════════════ */
.about-section { background: var(--navy); }
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: center; }
.about-text p { color: var(--muted); font-size: 16px; margin-bottom: 20px; line-height: 1.8; }
.about-badges { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.badge-item {
  background: var(--glass); border: 1px solid var(--glassborder);
  border-radius: 50px; padding: 8px 20px; font-size: 14px; font-weight: 600;
}
.about-card-stack { display: flex; flex-direction: column; gap: 20px; }
.abt-card {
  background: var(--glass); border: 1px solid var(--glassborder);
  border-radius: var(--radius); padding: 28px 24px;
  display: flex; gap: 20px; align-items: flex-start;
  transition: transform 0.3s, border-color 0.3s;
}
.abt-card:hover { transform: translateX(8px); border-color: var(--teal); }
.abt-gold:hover { border-color: var(--gold); }
.abt-teal:hover { border-color: var(--teal); }
.abt-icon { font-size: 32px; flex-shrink: 0; }
.abt-card h4 { font-size: 18px; font-weight: 700; margin-bottom: 6px; }
.abt-card p { color: var(--muted); font-size: 14px; }

/* ════════════════════════════════════
   CONTACT
   ════════════════════════════════════ */
.contact-section { background: var(--navy2); }
.contact-grid { display: grid; grid-template-columns: 1fr 1.6fr; gap: 64px; }
.contact-info { display: flex; flex-direction: column; gap: 28px; }
.contact-item { display: flex; gap: 20px; align-items: flex-start; }
.ci-icon {
  width: 48px; height: 48px; border-radius: 14px; flex-shrink: 0;
  background: var(--glass); border: 1px solid var(--glassborder);
  display: flex; align-items: center; justify-content: center; font-size: 22px;
}
.contact-item strong { display: block; margin-bottom: 4px; }
.contact-item div { color: var(--muted); font-size: 14px; }
.contact-item div strong { color: var(--white); }

.contact-form { display: flex; flex-direction: column; gap: 16px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-group { display: flex; flex-direction: column; gap: 6px; }
.form-group label { font-size: 13px; font-weight: 600; color: var(--muted); }
.form-group input, .form-group textarea, .chat-input {
  background: var(--glass);
  border: 1px solid var(--glassborder);
  border-radius: var(--radius-sm);
  padding: 12px 16px;
  color: var(--white);
  font-size: 15px;
  font-family: 'Inter', sans-serif;
  transition: border-color 0.3s;
  outline: none;
  resize: vertical;
}
.form-group input:focus, .form-group textarea:focus, .chat-input:focus { border-color: var(--teal); }
.form-group input::placeholder, .form-group textarea::placeholder, .chat-input::placeholder { color: var(--muted); }

/* ════════════════════════════════════
   FOOTER
   ════════════════════════════════════ */
.footer { background: var(--navy); border-top: 1px solid var(--glassborder); padding: 60px 0 40px; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 48px; margin-bottom: 48px; }
.footer-brand p { color: var(--muted); font-size: 14px; margin-top: 16px; max-width: 280px; }
.footer-col { display: flex; flex-direction: column; gap: 12px; }
.footer-col strong { font-size: 14px; font-weight: 700; margin-bottom: 4px; }
.footer-col a { color: var(--muted); text-decoration: none; font-size: 14px; transition: color 0.2s; }
.footer-col a:hover { color: var(--white); }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; padding-top: 32px; border-top: 1px solid var(--glassborder); }
.footer-bottom p { color: var(--muted); font-size: 13px; }
.social-links { display: flex; gap: 20px; }
.social-links a { color: var(--muted); text-decoration: none; font-size: 13px; transition: color 0.2s; }
.social-links a:hover { color: var(--teal); }

/* ════════════════════════════════════
   MODALS
   ════════════════════════════════════ */
.modal-overlay {
  position: fixed; inset: 0; z-index: 2000;
  background: rgba(0,0,0,0.8); backdrop-filter: blur(10px);
  display: flex; align-items: center; justify-content: center;
  opacity: 0; visibility: hidden;
  transition: all 0.3s;
}
.modal-overlay.open { opacity: 1; visibility: visible; }
.modal {
  background: var(--navy2);
  border: 1px solid var(--glassborder);
  border-radius: 24px;
  padding: 40px 44px;
  width: 100%; max-width: 480px;
  position: relative;
  transform: translateY(20px) scale(0.96);
  transition: transform 0.3s;
  max-height: 90vh;
  overflow-y: auto;
}
.modal-overlay.open .modal { transform: translateY(0) scale(1); }
.modal-close {
  position: absolute; top: 20px; right: 20px;
  background: var(--glass); border: 1px solid var(--glassborder);
  border-radius: 50%; width: 36px; height: 36px;
  color: var(--muted); cursor: pointer; font-size: 16px;
  transition: all 0.2s;
}
.modal-close:hover { color: var(--white); background: var(--glassborder); }
.modal-logo {
  width: 52px; height: 52px;
  background: linear-gradient(135deg, var(--teal), var(--gold));
  border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
  font-weight: 900; font-size: 18px; color: var(--navy);
  margin-bottom: 20px;
}
.modal-title { font-family: 'Playfair Display', serif; font-size: 28px; font-weight: 900; margin-bottom: 8px; }
.modal-sub { color: var(--muted); font-size: 15px; margin-bottom: 28px; }
.modal-foot { text-align: center; margin-top: 20px; color: var(--muted); font-size: 14px; }
.modal-foot a { color: var(--teal); text-decoration: none; font-weight: 600; }

.role-tabs {
  display: flex; gap: 8px; margin-bottom: 24px;
  background: var(--glass); border: 1px solid var(--glassborder);
  border-radius: 50px; padding: 4px;
}
.role-tab {
  flex: 1; padding: 8px; border-radius: 40px;
  border: none; background: transparent;
  color: var(--muted); font-weight: 600; font-size: 14px;
  cursor: pointer; transition: all 0.25s;
}
.role-tab.active { background: linear-gradient(135deg, var(--teal), var(--teal2)); color: var(--navy); }

.form-error {
  background: rgba(255,80,80,0.1); border: 1px solid rgba(255,80,80,0.3);
  border-radius: 8px; padding: 10px 14px;
  color: #ff8080; font-size: 13px;
}
.info-banner {
  background: rgba(255,184,0,0.1); border: 1px solid rgba(255,184,0,0.3);
  border-radius: 8px; padding: 12px 16px;
  color: var(--gold); font-size: 13px; margin-bottom: 16px;
}
.hidden { display: none !important; }

/* ════════════════════════════════════
   DASHBOARDS
   ════════════════════════════════════ */
.dashboard-overlay {
  position: fixed; inset: 0; z-index: 3000;
  background: var(--navy);
  transition: opacity 0.3s;
}
.dashboard-overlay.hidden { display: none; }
.dashboard { display: flex; height: 100vh; overflow: hidden; }

/* Sidebar */
.dash-sidebar {
  width: 240px; flex-shrink: 0;
  background: var(--navy2);
  border-right: 1px solid var(--glassborder);
  display: flex; flex-direction: column;
  overflow-y: auto; padding: 20px 0;
}
.admin-sidebar { background: #0d1220; }
.dash-logo {
  display: flex; align-items: center; gap: 10px;
  padding: 0 20px 20px;
  border-bottom: 1px solid var(--glassborder);
  margin-bottom: 16px; font-weight: 700; font-size: 16px;
}
.dash-nav { display: flex; flex-direction: column; gap: 2px; padding: 0 10px; flex: 1; }
.dash-link {
  padding: 10px 14px; border-radius: var(--radius-sm);
  color: var(--muted); text-decoration: none; font-size: 14px; font-weight: 500;
  cursor: pointer; transition: all 0.2s; display: block;
}
.dash-link:hover { background: var(--glass); color: var(--white); }
.dash-link.active { background: linear-gradient(135deg, rgba(0,212,255,0.15), rgba(0,212,255,0.05)); color: var(--teal); border-left: 3px solid var(--teal); }
.admin-dash .dash-link.active { color: var(--gold); border-color: var(--gold); background: rgba(255,184,0,0.08); }
.dash-logout {
  margin: 16px 10px 0;
  background: transparent; border: 1px solid rgba(255,80,80,0.3);
  color: rgba(255,80,80,0.8); padding: 10px 14px;
  border-radius: var(--radius-sm); cursor: pointer; font-size: 14px;
  transition: all 0.2s;
}
.dash-logout:hover { background: rgba(255,80,80,0.1); color: #ff8080; }

/* Main area */
.dash-main { flex: 1; display: flex; flex-direction: column; overflow: hidden; }
.dash-header {
  display: flex; justify-content: space-between; align-items: center;
  padding: 20px 32px;
  border-bottom: 1px solid var(--glassborder);
  flex-shrink: 0;
}
.dash-header h2 { font-size: 22px; font-weight: 700; }
.dash-date { color: var(--muted); font-size: 13px; margin-top: 2px; }
.dash-header-right { display: flex; align-items: center; gap: 16px; }
.xp-badge {
  background: linear-gradient(135deg, rgba(0,212,255,0.15), rgba(0,212,255,0.05));
  border: 1px solid rgba(0,212,255,0.3);
  color: var(--teal); padding: 6px 16px; border-radius: 50px;
  font-size: 13px; font-weight: 700;
}
.admin-badge { background: rgba(255,184,0,0.1); border-color: rgba(255,184,0,0.3); color: var(--gold); }
.avatar-circle {
  width: 40px; height: 40px; border-radius: 50%;
  background: linear-gradient(135deg, var(--teal), var(--gold));
  display: flex; align-items: center; justify-content: center;
  font-weight: 900; font-size: 16px; color: var(--navy);
}
.admin-avatar { background: linear-gradient(135deg, var(--gold), #ff8c00); }

.dash-content {
  flex: 1; overflow-y: auto; padding: 28px 32px;
}

/* Panels */
.panel { display: none; }
.panel.active { display: block; animation: fadeInUp 0.4s ease; }
.panel-title { font-family: 'Playfair Display', serif; font-size: 28px; font-weight: 900; margin-bottom: 24px; }

.panel-grid-4 { display: grid; grid-template-columns: repeat(4,1fr); gap: 20px; margin-bottom: 24px; }
.panel-grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-bottom: 24px; }

.kpi-card {
  background: var(--glass); border: 1px solid var(--glassborder);
  border-radius: var(--radius); padding: 24px 20px;
  text-align: center; transition: transform 0.3s, border-color 0.3s;
}
.kpi-card:hover { transform: translateY(-4px); border-color: var(--teal); }
.kpi-admin:hover { border-color: var(--gold); }
.kpi-icon { font-size: 28px; margin-bottom: 8px; }
.kpi-val { font-family: 'Playfair Display', serif; font-size: 28px; font-weight: 900; background: linear-gradient(135deg, var(--teal), var(--gold)); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
.kpi-label { color: var(--muted); font-size: 12px; font-weight: 600; margin-top: 4px; }

.dash-card {
  background: var(--glass); border: 1px solid var(--glassborder);
  border-radius: var(--radius); padding: 24px;
}
.dash-card h4 { font-size: 16px; font-weight: 700; margin-bottom: 20px; }

.course-row { display: flex; align-items: center; gap: 14px; margin-bottom: 16px; }
.course-row:last-child { margin-bottom: 0; }
.course-thumb { width: 44px; height: 44px; border-radius: 10px; flex-shrink: 0; background: linear-gradient(135deg, var(--teal), #0077ff); }
.course-thumb.t2 { background: linear-gradient(135deg, var(--gold), #ff6b00); }
.course-thumb.t3 { background: linear-gradient(135deg, #b44dff, #7b2fff); }
.course-row strong { font-size: 14px; display: block; margin-bottom: 2px; }
.course-row small { font-size: 12px; color: var(--muted); }
.course-row > div:last-child { flex: 1; }

.schedule-item { display: flex; align-items: center; gap: 14px; padding: 12px 0; border-bottom: 1px solid var(--glassborder); }
.schedule-item:last-child { border-bottom: none; }
.sch-time { font-size: 12px; color: var(--muted); width: 60px; flex-shrink: 0; font-weight: 600; }
.schedule-item > div { flex: 1; }
.schedule-item strong { font-size: 14px; display: block; }
.schedule-item small { color: var(--muted); font-size: 12px; }
.badge-live { background: rgba(255,80,80,0.15); color: #ff5555; font-size: 10px; font-weight: 800; padding: 3px 8px; border-radius: 20px; border: 1px solid rgba(255,80,80,0.3); }
.badge-due { background: rgba(255,184,0,0.15); color: var(--gold); font-size: 10px; font-weight: 800; padding: 3px 8px; border-radius: 20px; border: 1px solid rgba(255,184,0,0.3); }
.badge-meet { background: rgba(0,212,255,0.15); color: var(--teal); font-size: 10px; font-weight: 800; padding: 3px 8px; border-radius: 20px; border: 1px solid rgba(0,212,255,0.3); }

.achievements-row { display: flex; flex-wrap: wrap; gap: 10px; }
.ach-badge {
  background: linear-gradient(135deg, rgba(0,212,255,0.1), rgba(255,184,0,0.1));
  border: 1px solid var(--glassborder);
  padding: 8px 16px; border-radius: 50px; font-size: 13px; font-weight: 600;
}
.ach-badge.locked { opacity: 0.4; }

/* Course grid */
.course-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 20px; }
.course-card { background: var(--glass); border: 1px solid var(--glassborder); border-radius: var(--radius); overflow: hidden; transition: transform 0.3s; }
.course-card:hover { transform: translateY(-6px); border-color: var(--teal); }
.cc-header { height: 120px; background: linear-gradient(135deg, var(--teal), #0077ff); }
.cc-header.c2 { background: linear-gradient(135deg, var(--gold), #ff6b00); }
.cc-header.c3 { background: linear-gradient(135deg, #b44dff, #7b2fff); }
.cc-header.c4 { background: linear-gradient(135deg, #00ff88, #00cc6a); }
.cc-body { padding: 20px; }
.cc-body h4 { font-size: 16px; font-weight: 700; margin-bottom: 6px; }
.cc-body p { color: var(--muted); font-size: 13px; margin-bottom: 14px; }
.cc-footer { display: flex; justify-content: space-between; align-items: center; margin-top: 12px; }
.cc-footer span { font-size: 13px; font-weight: 700; color: var(--teal); }

/* AI Chat */
.ai-chat { background: var(--glass); border: 1px solid var(--glassborder); border-radius: var(--radius); overflow: hidden; height: 500px; display: flex; flex-direction: column; }
.chat-messages { flex: 1; overflow-y: auto; padding: 20px; display: flex; flex-direction: column; gap: 14px; }
.chat-msg { max-width: 75%; padding: 12px 16px; border-radius: 16px; font-size: 14px; line-height: 1.5; }
.chat-msg.bot { background: var(--navy3); border: 1px solid var(--glassborder); align-self: flex-start; border-bottom-left-radius: 4px; }
.chat-msg.user { background: linear-gradient(135deg, var(--teal), var(--teal2)); color: var(--navy); align-self: flex-end; border-bottom-right-radius: 4px; font-weight: 600; }
.chat-input-row { display: flex; gap: 10px; padding: 16px; border-top: 1px solid var(--glassborder); }
.chat-input { flex: 1; }

/* Empty panels */
.empty-panel { text-align: center; padding: 80px 40px; }
.empty-icon { font-size: 56px; margin-bottom: 20px; }
.empty-panel p { color: var(--muted); font-size: 16px; margin-bottom: 24px; }

/* Admin tables */
.mini-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.mini-table th { color: var(--muted); font-size: 12px; font-weight: 700; text-align: left; padding: 8px 12px; border-bottom: 1px solid var(--glassborder); }
.mini-table td { padding: 12px; border-bottom: 1px solid rgba(255,255,255,0.04); }

.data-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.data-table th { color: var(--muted); font-size: 12px; font-weight: 700; text-align: left; padding: 10px 14px; border-bottom: 1px solid var(--glassborder); }
.data-table td { padding: 14px; border-bottom: 1px solid rgba(255,255,255,0.04); }
.table-toolbar { display: flex; justify-content: space-between; align-items: center; margin-bottom: 16px; }
.table-search { background: var(--glass); border: 1px solid var(--glassborder); border-radius: var(--radius-sm); padding: 10px 16px; color: var(--white); font-size: 14px; outline: none; }
.table-search:focus { border-color: var(--teal); }
.status-badge { padding: 4px 10px; border-radius: 20px; font-size: 11px; font-weight: 700; }
.status-badge.active { background: rgba(0,255,136,0.1); color: #00ff88; }
.status-badge.inactive { background: rgba(255,80,80,0.1); color: #ff8080; }

.health-row { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; font-size: 13px; }
.health-row span:first-child { color: var(--muted); width: 110px; flex-shrink: 0; }
.health-row span:last-child { font-weight: 700; width: 56px; text-align: right; }
.health-bar { flex: 1; height: 6px; background: var(--glass); border-radius: 3px; overflow: hidden; }
.health-fill { height: 100%; border-radius: 3px; background: linear-gradient(90deg, var(--teal), #0077ff); }
.hf-gold { background: linear-gradient(90deg, var(--gold), #ff6b00); }
.hf-teal { background: linear-gradient(90deg, #00ff88, #00cc6a); }
.hf-warn { background: linear-gradient(90deg, #ff8c00, #ff4444); }

.quick-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.qa-btn {
  background: var(--glass); border: 1px solid var(--glassborder);
  border-radius: var(--radius-sm); padding: 12px 20px;
  color: var(--white); font-size: 14px; font-weight: 600; cursor: pointer;
  transition: all 0.2s;
}
.qa-btn:hover { border-color: var(--gold); color: var(--gold); transform: translateY(-2px); }

/* ════════════════════════════════════
   ANIMATIONS
   ════════════════════════════════════ */
@keyframes fadeInDown { from { opacity:0; transform:translateY(-20px); } to { opacity:1; transform:translateY(0); } }
@keyframes fadeInUp { from { opacity:0; transform:translateY(20px); } to { opacity:1; transform:translateY(0); } }

/* Scroll reveal */
.reveal { opacity: 0; transform: translateY(40px); transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }

/* ════════════════════════════════════
   RESPONSIVE
   ════════════════════════════════════ */
@media (max-width: 1100px) {
  .hero-content { width: 60%; padding-left: 48px; }
  .hero-visual { width: 40%; }
  .float-card { display: none; }
  .cards-grid { grid-template-columns: 1fr 1fr; }
  .features-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .panel-grid-4 { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 768px) {
  .nav { padding: 0 20px; }
  .nav-links, .nav-actions { display: none; }
  .hamburger { display: flex; }
  .hero { flex-direction: column; }
  .hero-content { width: 100%; padding: 100px 24px 60px; }
  .hero-visual { position: relative; width: 100%; height: auto; padding: 0 24px 60px; }
  .hero-mockup { width: 100%; }
  .cards-grid, .features-grid, .contact-grid, .about-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .panel-grid-4, .panel-grid-2 { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .dash-sidebar { width: 64px; }
  .dash-sidebar .dash-logo span:last-child, .dash-link { font-size: 0; padding: 12px; }
  .dash-link { text-align: center; }
  .dash-sidebar .dash-logo { justify-content: center; }
}
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
}
