/* ============================================
   AI MASTER KIT — Main Stylesheet
   Professional Dark Theme
   ============================================ */

:root {
  --bg-base:      #080c14;
  --bg-card:      #0d1421;
  --bg-card2:     #111a2e;
  --bg-hover:     #162038;
  --border:       rgba(99,179,237,0.12);
  --border-hover: rgba(99,179,237,0.28);

  --primary:      #3b82f6;
  --primary-light:#60a5fa;
  --primary-glow: rgba(59,130,246,0.25);
  --accent:       #06b6d4;
  --accent-glow:  rgba(6,182,212,0.2);
  --success:      #10b981;
  --warning:      #f59e0b;
  --danger:       #ef4444;
  --purple:       #8b5cf6;

  --text-base:    #e2e8f0;
  --text-muted:   #94a3b8;
  --text-faint:   #475569;
  --text-white:   #ffffff;

  --font-display: 'Syne', sans-serif;
  --font-body:    'DM Sans', sans-serif;

  --radius-sm:    8px;
  --radius-md:    14px;
  --radius-lg:    20px;
  --radius-xl:    28px;

  --shadow-card:  0 4px 24px rgba(0,0,0,0.4), 0 1px 4px rgba(0,0,0,0.3);
  --shadow-glow:  0 0 40px rgba(59,130,246,0.15);
  --transition:   all 0.22s cubic-bezier(0.4,0,0.2,1);
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  background: var(--bg-base);
  color: var(--text-base);
  min-height: 100vh;
  line-height: 1.6;
  overflow-x: hidden;
}

a { color: var(--primary-light); text-decoration: none; transition: var(--transition); }
a:hover { color: var(--accent); }
img { max-width: 100%; display: block; }
ul, ol { list-style: none; }

/* ──────────── ANIMATED BACKGROUND ──────────── */
.bg-mesh {
  position: fixed; inset: 0; z-index: 0;
  pointer-events: none; overflow: hidden;
}
.mesh-orb {
  position: absolute; border-radius: 50%;
  filter: blur(90px); opacity: 0.35;
  animation: orbFloat 18s ease-in-out infinite;
}
.orb-1 { width:600px;height:600px;background:radial-gradient(circle,#1d4ed8,transparent 70%); top:-15%;left:-10%; animation-delay:0s; }
.orb-2 { width:500px;height:500px;background:radial-gradient(circle,#0891b2,transparent 70%); bottom:-10%;right:-5%; animation-delay:-7s; }
.orb-3 { width:400px;height:400px;background:radial-gradient(circle,#7c3aed,transparent 70%); top:40%;left:45%; animation-delay:-14s; }

@keyframes orbFloat {
  0%,100%  { transform: translate(0,0) scale(1); }
  33%      { transform: translate(40px,-30px) scale(1.05); }
  66%      { transform: translate(-25px,20px) scale(0.95); }
}

.global-progress-bar {
  position: fixed; top: 64px; left: 0; right: 0;
  height: 2px; background: rgba(59,130,246,0.15); z-index: 99;
}
.global-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--primary), var(--accent));
  transition: width 1s ease;
  position: relative;
}
.global-progress-fill::after {
  content: ''; position: absolute; right: 0; top: -3px;
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--accent); box-shadow: 0 0 8px var(--accent);
}

/* ──────────── NAVBAR ──────────── */
.navbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  background: rgba(8,12,20,0.85);
  backdrop-filter: blur(20px) saturate(1.8);
  border-bottom: 1px solid var(--border);
  height: 64px;
  transition: var(--transition);
}
.nav-container {
  max-width: 1280px; margin: 0 auto;
  padding: 0 24px;
  height: 100%;
  display: flex; align-items: center; gap: 24px;
}
.nav-logo {
  display: flex; align-items: center; gap: 10px;
  text-decoration: none; flex-shrink: 0;
}
.logo-icon { font-size: 28px; }
.logo-text { display: flex; flex-direction: column; line-height: 1; }
.logo-name {
  font-family: var(--font-display); font-size: 16px; font-weight: 700;
  color: var(--text-white); letter-spacing: -0.3px;
}
.logo-sub {
  font-size: 10px; font-weight: 500; color: var(--accent);
  letter-spacing: 2px; text-transform: uppercase;
}
.nav-links {
  display: flex; align-items: center; gap: 4px; flex: 1; justify-content: center;
}
.nav-link {
  display: flex; align-items: center; gap: 6px;
  padding: 8px 14px; border-radius: var(--radius-sm);
  font-size: 14px; font-weight: 500; color: var(--text-muted);
  transition: var(--transition); text-decoration: none;
}
.nav-link:hover { color: var(--text-white); background: var(--bg-hover); }
.nav-link.active { color: var(--primary-light); background: var(--primary-glow); }
.nav-link i { font-size: 13px; }

.nav-user { display: flex; align-items: center; gap: 12px; }
.nav-streak, .nav-points {
  display: flex; align-items: center; gap: 5px;
  font-size: 13px; font-weight: 600;
  padding: 5px 10px; border-radius: 20px;
}
.nav-streak { background: rgba(245,158,11,0.15); color: var(--warning); }
.nav-streak i { color: var(--warning); }
.nav-points { background: rgba(139,92,246,0.15); color: var(--purple); }
.nav-points i { color: var(--purple); }

.nav-avatar-wrap { position: relative; cursor: pointer; }
.nav-avatar {
  width: 36px; height: 36px; border-radius: 50%;
  border: 2px solid var(--border-hover); object-fit: cover;
}
.nav-avatar-init {
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, var(--primary), var(--purple));
  font-family: var(--font-display); font-size: 15px; font-weight: 700;
  color: white;
}
.user-dropdown {
  position: absolute; top: calc(100% + 12px); right: 0;
  width: 210px; background: var(--bg-card2);
  border: 1px solid var(--border-hover); border-radius: var(--radius-md);
  padding: 8px; box-shadow: var(--shadow-card);
  opacity: 0; pointer-events: none; transform: translateY(-8px);
  transition: var(--transition); z-index: 200;
}
.user-dropdown.open { opacity: 1; pointer-events: all; transform: translateY(0); }
.user-dd-header {
  padding: 10px 12px 12px; border-bottom: 1px solid var(--border);
  margin-bottom: 6px;
}
.user-dd-header strong { display: block; font-size: 14px; color: var(--text-white); }
.user-dd-header small { font-size: 12px; color: var(--text-muted); }
.user-dropdown a {
  display: flex; align-items: center; gap: 10px;
  padding: 9px 12px; border-radius: var(--radius-sm);
  font-size: 13px; color: var(--text-muted);
  transition: var(--transition); text-decoration: none;
}
.user-dropdown a:hover { background: var(--bg-hover); color: var(--text-white); }
.user-dropdown .logout-link:hover { color: var(--danger); }

.nav-toggle {
  display: none; flex-direction: column; gap: 5px;
  background: none; border: none; cursor: pointer; padding: 4px;
}
.nav-toggle span {
  display: block; width: 22px; height: 2px;
  background: var(--text-muted); border-radius: 2px; transition: var(--transition);
}

.nav-auth { display: flex; align-items: center; gap: 10px; margin-left: auto; }
.btn-ghost {
  padding: 8px 18px; border-radius: var(--radius-sm);
  font-size: 14px; font-weight: 500; color: var(--text-muted);
  border: 1px solid var(--border); transition: var(--transition);
}
.btn-ghost:hover { color: var(--text-white); border-color: var(--border-hover); background: var(--bg-hover); }
.btn-primary-sm {
  padding: 8px 18px; border-radius: var(--radius-sm);
  font-size: 14px; font-weight: 600;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  color: white; transition: var(--transition);
}
.btn-primary-sm:hover { transform: translateY(-1px); box-shadow: 0 4px 16px var(--primary-glow); color:white; }

.mobile-menu {
  display: none; flex-direction: column;
  background: var(--bg-card); border-top: 1px solid var(--border);
  padding: 12px 16px;
}
.mobile-menu a {
  display: flex; align-items: center; gap: 10px;
  padding: 12px 14px; border-radius: var(--radius-sm);
  font-size: 15px; color: var(--text-muted); transition: var(--transition);
}
.mobile-menu a:hover { background: var(--bg-hover); color: var(--text-white); }

/* ──────────── LAYOUT ──────────── */
.page-wrap {
  max-width: 1280px; margin: 0 auto;
  padding: 88px 24px 40px; position: relative; z-index: 1;
}
.page-wrap-wide { max-width: 1440px; }

/* ──────────── BUTTONS ──────────── */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 24px; border-radius: var(--radius-sm);
  font-family: var(--font-body); font-size: 15px; font-weight: 600;
  cursor: pointer; transition: var(--transition); border: none;
  text-decoration: none; white-space: nowrap;
}
.btn-primary {
  background: linear-gradient(135deg, var(--primary) 0%, #2563eb 100%);
  color: white; box-shadow: 0 4px 16px var(--primary-glow);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 8px 28px var(--primary-glow); color:white; }
.btn-accent {
  background: linear-gradient(135deg, var(--accent) 0%, #0284c7 100%);
  color: white; box-shadow: 0 4px 16px var(--accent-glow);
}
.btn-accent:hover { transform: translateY(-2px); color:white; }
.btn-outline {
  background: transparent; border: 1.5px solid var(--border-hover);
  color: var(--text-base);
}
.btn-outline:hover { background: var(--bg-hover); color: var(--text-white); border-color: var(--primary); }
.btn-success { background: var(--success); color: white; }
.btn-danger { background: var(--danger); color: white; }
.btn-sm { padding: 8px 16px; font-size: 13px; }
.btn-lg { padding: 16px 32px; font-size: 17px; }

/* ──────────── CARDS ──────────── */
.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px;
  box-shadow: var(--shadow-card);
  transition: var(--transition);
  position: relative; overflow: hidden;
}
.card:hover { border-color: var(--border-hover); transform: translateY(-2px); }
.card-glow::before {
  content: ''; position: absolute; inset: 0; opacity: 0;
  background: radial-gradient(circle at 50% 0%, var(--primary-glow), transparent 70%);
  transition: var(--transition); pointer-events: none;
}
.card-glow:hover::before { opacity: 1; }

/* ──────────── FORMS ──────────── */
.form-group { margin-bottom: 20px; }
.form-label {
  display: block; font-size: 13px; font-weight: 600;
  color: var(--text-muted); margin-bottom: 7px;
  text-transform: uppercase; letter-spacing: 0.5px;
}
.form-control {
  width: 100%; padding: 12px 16px;
  background: var(--bg-card2); border: 1.5px solid var(--border);
  border-radius: var(--radius-sm); color: var(--text-base);
  font-family: var(--font-body); font-size: 15px;
  transition: var(--transition);
}
.form-control:focus {
  outline: none; border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--primary-glow);
  background: var(--bg-hover);
}
.form-control::placeholder { color: var(--text-faint); }
textarea.form-control { resize: vertical; min-height: 100px; }
.form-hint { font-size: 12px; color: var(--text-faint); margin-top: 5px; }

/* ──────────── BADGES ──────────── */
.badge {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 3px 10px; border-radius: 20px;
  font-size: 11px; font-weight: 600; letter-spacing: 0.3px;
  text-transform: uppercase;
}
.badge-blue   { background: rgba(59,130,246,0.15);  color: var(--primary-light); }
.badge-green  { background: rgba(16,185,129,0.15);  color: var(--success); }
.badge-yellow { background: rgba(245,158,11,0.15);  color: var(--warning); }
.badge-red    { background: rgba(239,68,68,0.15);   color: var(--danger); }
.badge-purple { background: rgba(139,92,246,0.15);  color: var(--purple); }
.badge-cyan   { background: rgba(6,182,212,0.15);   color: var(--accent); }

/* ──────────── ALERTS ──────────── */
.alert {
  padding: 14px 18px; border-radius: var(--radius-sm);
  font-size: 14px; font-weight: 500; margin-bottom: 20px;
  display: flex; align-items: center; gap: 10px;
  border-left: 3px solid;
}
.alert-success { background: rgba(16,185,129,0.12); border-color: var(--success); color: #6ee7b7; }
.alert-error   { background: rgba(239,68,68,0.12);  border-color: var(--danger);  color: #fca5a5; }
.alert-info    { background: rgba(59,130,246,0.12); border-color: var(--primary); color: #93c5fd; }
.alert-warning { background: rgba(245,158,11,0.12); border-color: var(--warning); color: #fcd34d; }

/* ──────────── PAGE HEADERS ──────────── */
.page-header { margin-bottom: 36px; }
.page-header .eyebrow {
  font-size: 12px; font-weight: 600; letter-spacing: 2px;
  text-transform: uppercase; color: var(--accent); margin-bottom: 10px;
  display: flex; align-items: center; gap: 8px;
}
.page-header h1 {
  font-family: var(--font-display); font-size: clamp(28px,4vw,44px);
  font-weight: 800; color: var(--text-white); line-height: 1.1;
  margin-bottom: 12px;
}
.page-header p { font-size: 16px; color: var(--text-muted); max-width: 600px; }

/* ──────────── STAT CARDS ──────────── */
.stats-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(200px,1fr));
  gap: 16px; margin-bottom: 32px;
}
.stat-card {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius-md); padding: 20px 22px;
  display: flex; align-items: center; gap: 16px;
  transition: var(--transition); position: relative; overflow: hidden;
}
.stat-card:hover { border-color: var(--border-hover); transform: translateY(-2px); }
.stat-icon {
  width: 48px; height: 48px; border-radius: var(--radius-sm);
  display: flex; align-items: center; justify-content: center;
  font-size: 20px; flex-shrink: 0;
}
.stat-icon-blue   { background: rgba(59,130,246,0.15);  color: var(--primary-light); }
.stat-icon-green  { background: rgba(16,185,129,0.15);  color: var(--success); }
.stat-icon-yellow { background: rgba(245,158,11,0.15);  color: var(--warning); }
.stat-icon-purple { background: rgba(139,92,246,0.15);  color: var(--purple); }
.stat-info { flex: 1; min-width: 0; }
.stat-value {
  font-family: var(--font-display); font-size: 28px; font-weight: 800;
  color: var(--text-white); line-height: 1;
}
.stat-label { font-size: 13px; color: var(--text-muted); margin-top: 3px; }

/* ──────────── TOOL CARDS ──────────── */
.tools-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(300px,1fr));
  gap: 20px;
}
.tool-card {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 24px;
  transition: var(--transition); position: relative; overflow: hidden;
  cursor: pointer;
}
.tool-card:hover { border-color: var(--border-hover); transform: translateY(-3px); box-shadow: var(--shadow-glow); }
.tool-card-top {
  display: flex; align-items: flex-start;
  justify-content: space-between; margin-bottom: 14px;
}
.tool-icon-wrap {
  width: 52px; height: 52px; border-radius: var(--radius-sm);
  display: flex; align-items: center; justify-content: center;
  font-size: 22px; flex-shrink: 0;
}
.tool-day-badge {
  font-size: 11px; font-weight: 700; padding: 4px 10px;
  border-radius: 20px; background: var(--primary-glow);
  color: var(--primary-light); border: 1px solid rgba(59,130,246,0.3);
}
.tool-name {
  font-family: var(--font-display); font-size: 18px; font-weight: 700;
  color: var(--text-white); margin-bottom: 5px;
}
.tool-category { font-size: 12px; color: var(--text-muted); margin-bottom: 12px; }
.tool-desc { font-size: 14px; color: var(--text-muted); line-height: 1.6; margin-bottom: 16px; }
.tool-meta {
  display: flex; align-items: center; gap: 10px;
  flex-wrap: wrap; padding-top: 14px;
  border-top: 1px solid var(--border);
}
.tool-completed-badge {
  display: flex; align-items: center; gap: 5px;
  font-size: 11px; color: var(--success); background: rgba(16,185,129,0.12);
  padding: 3px 10px; border-radius: 20px; font-weight: 600;
}

/* ──────────── DAY LESSONS GRID ──────────── */
.days-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(130px,1fr));
  gap: 12px;
}
.day-cell {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius-md); padding: 16px 12px;
  text-align: center; cursor: pointer; transition: var(--transition);
  text-decoration: none; display: block;
}
.day-cell:hover { border-color: var(--primary); background: var(--bg-hover); transform: translateY(-2px); }
.day-cell.completed { border-color: var(--success); background: rgba(16,185,129,0.08); }
.day-cell.active-day { border-color: var(--primary); background: var(--primary-glow); box-shadow: 0 0 20px var(--primary-glow); }
.day-cell.locked { opacity: 0.45; cursor: default; }
.day-num {
  font-family: var(--font-display); font-size: 22px; font-weight: 800;
  color: var(--text-white); line-height: 1;
}
.day-cell.completed .day-num { color: var(--success); }
.day-cell.active-day .day-num { color: var(--primary-light); }
.day-label { font-size: 11px; color: var(--text-muted); margin-top: 4px; }
.day-check { font-size: 14px; color: var(--success); margin-top: 5px; }

/* ──────────── LESSON DETAIL ──────────── */
.lesson-layout { display: grid; grid-template-columns: 1fr 320px; gap: 28px; }
.lesson-content { min-width: 0; }
.lesson-sidebar {}

.lesson-header-card {
  background: linear-gradient(135deg, var(--bg-card2), var(--bg-card));
  border: 1px solid var(--border-hover); border-radius: var(--radius-xl);
  padding: 32px; margin-bottom: 24px; position: relative; overflow: hidden;
}
.lesson-header-card::before {
  content: ''; position: absolute; top: -50%; right: -10%;
  width: 300px; height: 300px; border-radius: 50%;
  background: radial-gradient(circle, var(--primary-glow), transparent 70%);
}
.lesson-day-tag {
  font-size: 12px; font-weight: 700; letter-spacing: 2px;
  text-transform: uppercase; color: var(--accent); margin-bottom: 10px;
}
.lesson-title {
  font-family: var(--font-display); font-size: 28px; font-weight: 800;
  color: var(--text-white); margin-bottom: 12px; line-height: 1.2;
}
.lesson-meta-row {
  display: flex; flex-wrap: wrap; gap: 12px; align-items: center;
}
.lesson-meta-item {
  display: flex; align-items: center; gap: 6px;
  font-size: 13px; color: var(--text-muted);
}
.lesson-body {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 28px; margin-bottom: 20px;
}
.lesson-body h3 {
  font-family: var(--font-display); font-size: 18px; font-weight: 700;
  color: var(--text-white); margin-bottom: 14px;
  display: flex; align-items: center; gap: 8px;
}
.lesson-body p { font-size: 15px; color: var(--text-muted); line-height: 1.75; margin-bottom: 14px; }

.task-list { display: flex; flex-direction: column; gap: 10px; }
.task-item {
  display: flex; align-items: flex-start; gap: 12px;
  padding: 12px 16px; background: var(--bg-base);
  border: 1px solid var(--border); border-radius: var(--radius-sm);
  transition: var(--transition);
}
.task-item:hover { border-color: var(--primary); background: var(--bg-hover); }
.task-checkbox {
  width: 20px; height: 20px; border: 2px solid var(--border-hover);
  border-radius: 5px; flex-shrink: 0; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: var(--transition); margin-top: 2px;
}
.task-checkbox.checked { background: var(--success); border-color: var(--success); }
.task-text { font-size: 14px; color: var(--text-base); }

.tip-box {
  background: rgba(6,182,212,0.08); border: 1px solid rgba(6,182,212,0.25);
  border-radius: var(--radius-sm); padding: 16px 18px;
  display: flex; gap: 12px; align-items: flex-start;
}
.tip-icon { font-size: 18px; color: var(--accent); flex-shrink: 0; margin-top: 2px; }
.tip-text { font-size: 14px; color: var(--text-muted); line-height: 1.6; }

/* ──────────── PROGRESS RING ──────────── */
.progress-ring-wrap {
  display: flex; flex-direction: column; align-items: center;
  gap: 12px; padding: 24px;
}
.progress-ring { position: relative; }
.progress-ring svg { transform: rotate(-90deg); }
.progress-ring-text {
  position: absolute; inset: 0;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
}
.ring-percent {
  font-family: var(--font-display); font-size: 30px; font-weight: 800;
  color: var(--text-white);
}
.ring-label { font-size: 11px; color: var(--text-muted); text-align: center; }

/* ──────────── SEARCH & FILTER ──────────── */
.search-filter-bar {
  display: flex; gap: 12px; margin-bottom: 28px; flex-wrap: wrap;
}
.search-wrap {
  flex: 1; min-width: 200px; position: relative;
}
.search-wrap i {
  position: absolute; left: 14px; top: 50%; transform: translateY(-50%);
  color: var(--text-faint); font-size: 14px;
}
.search-wrap .form-control { padding-left: 40px; }
.filter-chips { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.chip {
  padding: 7px 14px; border-radius: 20px;
  font-size: 13px; font-weight: 500; cursor: pointer;
  border: 1.5px solid var(--border); color: var(--text-muted);
  transition: var(--transition); background: transparent;
  font-family: var(--font-body);
}
.chip:hover { border-color: var(--primary); color: var(--primary-light); }
.chip.active { background: var(--primary-glow); border-color: var(--primary); color: var(--primary-light); }

/* ──────────── AUTH PAGES ──────────── */
.auth-wrap {
  min-height: 100vh; display: flex; align-items: center; justify-content: center;
  padding: 24px; position: relative; z-index: 1;
}
.auth-card {
  width: 100%; max-width: 440px;
  background: var(--bg-card); border: 1px solid var(--border-hover);
  border-radius: var(--radius-xl); padding: 40px;
  box-shadow: var(--shadow-card);
}
.auth-logo {
  text-align: center; margin-bottom: 28px;
}
.auth-logo .logo-big { font-size: 48px; }
.auth-logo h2 {
  font-family: var(--font-display); font-size: 22px; font-weight: 800;
  color: var(--text-white); margin-top: 10px;
}
.auth-logo p { font-size: 14px; color: var(--text-muted); }
.auth-divider {
  text-align: center; position: relative; margin: 20px 0;
  font-size: 12px; color: var(--text-faint);
}
.auth-divider::before, .auth-divider::after {
  content: ''; position: absolute; top: 50%;
  width: calc(50% - 20px); height: 1px; background: var(--border);
}
.auth-divider::before { left: 0; }
.auth-divider::after { right: 0; }
.auth-footer { text-align: center; margin-top: 20px; font-size: 14px; color: var(--text-muted); }

/* ──────────── DASHBOARD ──────────── */
.dashboard-grid {
  display: grid; grid-template-columns: 1fr 340px; gap: 24px;
}
.dashboard-main {}
.dashboard-side {}
.section-title {
  font-family: var(--font-display); font-size: 20px; font-weight: 700;
  color: var(--text-white); margin-bottom: 16px;
  display: flex; align-items: center; gap: 8px;
}
.section-title i { color: var(--accent); font-size: 16px; }

.hero-welcome {
  background: linear-gradient(135deg, var(--bg-card2) 0%, #0a1628 100%);
  border: 1px solid var(--border-hover); border-radius: var(--radius-xl);
  padding: 32px; margin-bottom: 24px; position: relative; overflow: hidden;
}
.hero-welcome::after {
  content: ''; position: absolute; right: -50px; top: -50px;
  width: 250px; height: 250px; border-radius: 50%;
  background: radial-gradient(circle, rgba(59,130,246,0.12), transparent 70%);
}
.hero-greeting {
  font-size: 13px; color: var(--accent); font-weight: 600;
  text-transform: uppercase; letter-spacing: 1.5px; margin-bottom: 8px;
}
.hero-name {
  font-family: var(--font-display); font-size: 30px; font-weight: 800;
  color: var(--text-white); margin-bottom: 8px;
}
.hero-sub { font-size: 15px; color: var(--text-muted); margin-bottom: 20px; }
.hero-progress-bar {
  height: 8px; background: var(--bg-base); border-radius: 4px;
  overflow: hidden; margin-bottom: 8px;
}
.hero-progress-fill {
  height: 100%; border-radius: 4px;
  background: linear-gradient(90deg, var(--primary), var(--accent));
  transition: width 1.2s cubic-bezier(0.4,0,0.2,1);
}
.hero-progress-label { font-size: 13px; color: var(--text-muted); }

/* ──────────── ANNOUNCEMENTS ──────────── */
.announcement-item {
  padding: 14px 16px;
  border-radius: var(--radius-sm);
  margin-bottom: 10px;
  font-size: 14px;
  display: flex; gap: 12px;
}
.ann-success { background: rgba(16,185,129,0.1); border-left: 3px solid var(--success); }
.ann-info { background: rgba(59,130,246,0.1); border-left: 3px solid var(--primary); }
.ann-warning { background: rgba(245,158,11,0.1); border-left: 3px solid var(--warning); }
.ann-icon { flex-shrink: 0; margin-top: 2px; }
.ann-title { font-weight: 600; color: var(--text-white); margin-bottom: 3px; font-size: 14px; }
.ann-body { color: var(--text-muted); line-height: 1.5; font-size: 13px; }

/* ──────────── NOTES ──────────── */
.notes-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px,1fr)); gap: 16px; }
.note-card {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius-md); padding: 20px;
  transition: var(--transition); cursor: pointer;
}
.note-card:hover { border-color: var(--border-hover); transform: translateY(-2px); }
.note-title { font-weight: 600; color: var(--text-white); margin-bottom: 8px; font-size: 15px; }
.note-preview { font-size: 13px; color: var(--text-muted); line-height: 1.6; margin-bottom: 12px; }
.note-meta { font-size: 12px; color: var(--text-faint); display: flex; gap: 12px; }

/* ──────────── FOOTER ──────────── */
.site-footer {
  background: var(--bg-card); border-top: 1px solid var(--border);
  padding: 24px; margin-top: 60px; position: relative; z-index: 1;
}
.footer-container {
  max-width: 1280px; margin: 0 auto;
  display: flex; flex-wrap: wrap; gap: 20px;
  align-items: center; justify-content: space-between;
}
.footer-brand .footer-logo { font-family: var(--font-display); font-weight: 700; color: var(--text-white); font-size: 16px; }
.footer-brand p { font-size: 13px; color: var(--text-faint); margin-top: 4px; }
.footer-links { display: flex; gap: 20px; }
.footer-links a { font-size: 13px; color: var(--text-muted); }
.footer-links a:hover { color: var(--text-white); }
.footer-copy { font-size: 13px; color: var(--text-faint); }
.footer-copy a { color: var(--text-muted); }

/* ──────────── MODAL ──────────── */
.modal-overlay {
  position: fixed; inset: 0; z-index: 1000;
  background: rgba(0,0,0,0.7); backdrop-filter: blur(4px);
  display: flex; align-items: center; justify-content: center;
  padding: 20px; opacity: 0; pointer-events: none; transition: var(--transition);
}
.modal-overlay.open { opacity: 1; pointer-events: all; }
.modal-box {
  background: var(--bg-card2); border: 1px solid var(--border-hover);
  border-radius: var(--radius-xl); padding: 32px;
  max-width: 560px; width: 100%;
  box-shadow: 0 24px 64px rgba(0,0,0,0.6);
  transform: scale(0.95); transition: var(--transition);
}
.modal-overlay.open .modal-box { transform: scale(1); }
.modal-header {
  display: flex; justify-content: space-between; align-items: flex-start;
  margin-bottom: 20px;
}
.modal-title {
  font-family: var(--font-display); font-size: 20px; font-weight: 700;
  color: var(--text-white);
}
.modal-close {
  background: none; border: none; color: var(--text-muted);
  font-size: 20px; cursor: pointer; padding: 4px;
  transition: var(--transition);
}
.modal-close:hover { color: var(--text-white); }

/* ──────────── LOADING ──────────── */
.spinner {
  display: inline-block; width: 20px; height: 20px;
  border: 2.5px solid var(--border); border-top-color: var(--primary);
  border-radius: 50%; animation: spin 0.7s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ──────────── PROFILE PAGE ──────────── */
.profile-avatar-big {
  width: 90px; height: 90px; border-radius: 50%;
  border: 3px solid var(--primary); margin: 0 auto 16px;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display); font-size: 36px; font-weight: 800;
  background: linear-gradient(135deg, var(--primary), var(--purple));
  color: white;
}

/* ──────────── TOAST ──────────── */
.toast-container {
  position: fixed; bottom: 24px; right: 24px; z-index: 2000;
  display: flex; flex-direction: column; gap: 10px;
}
.toast {
  background: var(--bg-card2); border: 1px solid var(--border-hover);
  border-radius: var(--radius-md); padding: 14px 18px;
  display: flex; align-items: center; gap: 12px;
  min-width: 280px; box-shadow: var(--shadow-card);
  animation: toastIn 0.3s ease forwards;
}
@keyframes toastIn {
  from { transform: translateX(100%); opacity: 0; }
  to   { transform: translateX(0);    opacity: 1; }
}
.toast-icon { font-size: 18px; flex-shrink: 0; }
.toast-msg { font-size: 14px; color: var(--text-base); }
.toast.success .toast-icon { color: var(--success); }
.toast.error   .toast-icon { color: var(--danger); }
.toast.info    .toast-icon { color: var(--primary-light); }

/* ──────────── RESPONSIVE ──────────── */
@media (max-width: 1024px) {
  .dashboard-grid { grid-template-columns: 1fr; }
  .lesson-layout  { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  .nav-links { display: none; }
  .nav-streak, .nav-points { display: none; }
  .nav-toggle { display: flex; }
  .mobile-menu { display: flex; }
  .mobile-menu.hidden { display: none; }

  .page-wrap { padding: 80px 16px 32px; }
  .tools-grid { grid-template-columns: 1fr; }
  .days-grid  { grid-template-columns: repeat(auto-fill, minmax(90px,1fr)); }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .auth-card  { padding: 28px 20px; }
  .footer-container { flex-direction: column; text-align: center; }
}

@media (max-width: 480px) {
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .search-filter-bar { flex-direction: column; }
}

/* ──────────── ANIMATIONS ──────────── */
.fade-in   { animation: fadeIn 0.5s ease forwards; }
.slide-up  { animation: slideUp 0.5s ease forwards; }

@keyframes fadeIn  { from { opacity:0; } to { opacity:1; } }
@keyframes slideUp { from { opacity:0; transform:translateY(20px); } to { opacity:1; transform:translateY(0); } }

.stagger > * { opacity: 0; animation: slideUp 0.5s ease forwards; }
.stagger > *:nth-child(1) { animation-delay: 0.05s; }
.stagger > *:nth-child(2) { animation-delay: 0.10s; }
.stagger > *:nth-child(3) { animation-delay: 0.15s; }
.stagger > *:nth-child(4) { animation-delay: 0.20s; }
.stagger > *:nth-child(5) { animation-delay: 0.25s; }
.stagger > *:nth-child(6) { animation-delay: 0.30s; }
.stagger > *:nth-child(n+7) { animation-delay: 0.35s; }
