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

:root {
  --green-900: #0D2818;
  --green-800: #1B4332;
  --green-700: #2D6A4F;
  --green-600: #40916C;
  --green-500: #52B788;
  --green-400: #74C69D;
  --green-100: #D8F3DC;
  --green-50: #EEF8F0;
  --sand: #D4A373;
  --sand-light: #FAEBD7;
  --cream: #FAFAF8;
  --white: #FFFFFF;
  --gray-900: #111827;
  --gray-700: #374151;
  --gray-500: #6B7280;
  --gray-300: #D1D5DB;
  --gray-100: #F3F4F6;
  --red: #EF4444;
  --red-light: #FEF2F2;
  --yellow: #F59E0B;
  --yellow-light: #FFFBEB;
  --radius: 14px;
  --radius-sm: 8px;
  --shadow-sm: 0 1px 3px rgba(0,0,0,.06), 0 1px 2px rgba(0,0,0,.04);
  --shadow: 0 4px 16px rgba(0,0,0,.08), 0 2px 6px rgba(0,0,0,.05);
  --shadow-lg: 0 12px 40px rgba(0,0,0,.12), 0 4px 12px rgba(0,0,0,.06);
  --transition: .2s cubic-bezier(.4,0,.2,1);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Inter', sans-serif;
  background: var(--cream);
  color: var(--gray-900);
  min-height: 100vh;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* ─── NAVBAR ─── */
.navbar {
  background: rgba(255,255,255,.95);
  border-bottom: 1px solid rgba(0,0,0,.06);
  position: sticky; top: 0; z-index: 200;
  backdrop-filter: blur(12px);
}
.nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}
.nav-brand {
  display: flex; align-items: center; gap: 10px;
  text-decoration: none; color: var(--green-800);
  flex-shrink: 0;
}
.nav-brand .logo-icon {
  width: 36px; height: 36px;
  background: var(--green-800);
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  color: white; font-size: 18px; font-weight: 700;
  font-family: 'Outfit', sans-serif;
}
.nav-brand span {
  font-family: 'Outfit', sans-serif;
  font-size: 17px; font-weight: 600; letter-spacing: -.3px;
}
.nav-links {
  display: flex; align-items: center; gap: 2px;
  list-style: none; margin: 0; padding: 0;
}
/* Direct links */
.nav-links > li > a {
  display: block;
  padding: 7px 13px;
  border-radius: var(--radius-sm);
  text-decoration: none;
  color: var(--gray-700);
  font-size: 14px; font-weight: 500;
  transition: var(--transition);
  white-space: nowrap;
}
.nav-links > li > a:hover { background: var(--green-50); color: var(--green-800); }
.nav-links > li > a.active { background: var(--green-100); color: var(--green-800); font-weight: 600; }

/* ─── DROPDOWN ─── */
.nav-dropdown { position: relative; }
.nav-dropdown-toggle {
  display: flex; align-items: center; gap: 5px;
  padding: 7px 13px;
  border-radius: var(--radius-sm);
  background: none; border: none;
  color: var(--gray-700);
  font-size: 14px; font-weight: 500;
  cursor: pointer;
  transition: var(--transition);
  white-space: nowrap;
  font-family: inherit;
}
.nav-dropdown-toggle:hover,
.nav-dropdown.open .nav-dropdown-toggle { background: var(--green-50); color: var(--green-800); }
.nav-dropdown.has-active .nav-dropdown-toggle { background: var(--green-100); color: var(--green-800); font-weight: 600; }
.nav-arrow { font-size: 9px; transition: transform .2s; line-height: 1; }
.nav-dropdown.open .nav-arrow { transform: rotate(180deg); }

.nav-dropdown-menu {
  display: none;
  position: absolute;
  top: calc(100% + 8px);
  left: 50%; transform: translateX(-50%);
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: 12px;
  box-shadow: 0 8px 28px rgba(0,0,0,.13);
  min-width: 190px;
  padding: 6px;
  z-index: 300;
  list-style: none;
}
.nav-dropdown.open .nav-dropdown-menu { display: block; }
.nav-dropdown-menu li a {
  display: block;
  padding: 9px 14px;
  border-radius: 8px;
  text-decoration: none;
  color: var(--gray-700);
  font-size: 14px; font-weight: 500;
  transition: var(--transition);
  white-space: nowrap;
}
.nav-dropdown-menu li a:hover { background: var(--green-50); color: var(--green-800); }
.nav-dropdown-menu li a.active { background: var(--green-100); color: var(--green-800); font-weight: 600; }
.nav-dropdown-menu .menu-label {
  padding: 4px 14px 2px;
  font-size: 10px; font-weight: 700; letter-spacing: .5px;
  color: var(--gray-400); text-transform: uppercase;
}

.nav-mobile-btn {
  display: none;
  background: none; border: none;
  cursor: pointer; padding: 6px;
  color: var(--gray-700);
}

/* ─── HERO ─── */
.hero {
  background: linear-gradient(135deg, var(--green-900) 0%, var(--green-700) 100%);
  color: white;
  padding: 72px 24px 80px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute; inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Ccircle cx='30' cy='30' r='20'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}
.hero-content { position: relative; max-width: 680px; margin: 0 auto; }
.hero-badge {
  display: inline-flex; align-items: center; gap: 6px;
  background: rgba(255,255,255,.12);
  border: 1px solid rgba(255,255,255,.2);
  border-radius: 100px;
  padding: 5px 14px;
  font-size: 12px; font-weight: 500;
  letter-spacing: .5px;
  text-transform: uppercase;
  margin-bottom: 24px;
}
.hero h1 {
  font-family: 'Outfit', sans-serif;
  font-size: clamp(32px, 5vw, 52px);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -1px;
  margin-bottom: 20px;
}
.hero p {
  font-size: 17px;
  color: rgba(255,255,255,.75);
  margin-bottom: 36px;
  max-width: 480px;
  margin-left: auto; margin-right: auto;
}
.hero-actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

/* ─── BUTTONS ─── */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 11px 22px;
  border-radius: var(--radius-sm);
  font-size: 14px; font-weight: 600;
  cursor: pointer;
  border: none;
  text-decoration: none;
  transition: var(--transition);
  white-space: nowrap;
}
.btn-primary {
  background: var(--green-600);
  color: white;
}
.btn-primary:hover { background: var(--green-700); transform: translateY(-1px); box-shadow: var(--shadow); }
.btn-white {
  background: white;
  color: var(--green-800);
}
.btn-white:hover { background: var(--cream); transform: translateY(-1px); box-shadow: var(--shadow); }
.btn-outline {
  background: transparent;
  color: var(--green-700);
  border: 1.5px solid var(--green-400);
}
.btn-outline:hover { background: var(--green-50); }
.btn-ghost {
  background: transparent;
  color: var(--gray-500);
}
.btn-ghost:hover { background: var(--gray-100); color: var(--gray-700); }
.btn-danger {
  background: var(--red);
  color: white;
}
.btn-danger:hover { opacity: .85; }
.btn-sm { padding: 7px 14px; font-size: 13px; }
.btn-lg { padding: 14px 28px; font-size: 16px; }
.btn:disabled { opacity: .5; cursor: not-allowed; pointer-events: none; }

/* ─── FEATURE CARDS ─── */
.section { padding: 56px 24px; }
.section-inner { max-width: 1100px; margin: 0 auto; }
.section-title {
  font-family: 'Outfit', sans-serif;
  font-size: 26px; font-weight: 700;
  color: var(--gray-900);
  letter-spacing: -.5px;
  margin-bottom: 6px;
}
.section-subtitle {
  font-size: 15px; color: var(--gray-500);
  margin-bottom: 36px;
}
.grid-3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 20px; }
.grid-2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 20px; }

.card {
  background: var(--white);
  border: 1px solid rgba(0,0,0,.06);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}
.card:hover { box-shadow: var(--shadow); transform: translateY(-2px); }
.card-icon {
  width: 48px; height: 48px;
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  font-size: 22px;
  margin-bottom: 16px;
}
.card-icon.green { background: var(--green-100); }
.card-icon.sand { background: var(--sand-light); }
.card-title {
  font-family: 'Outfit', sans-serif;
  font-size: 17px; font-weight: 600;
  margin-bottom: 8px;
}
.card-desc { font-size: 14px; color: var(--gray-500); line-height: 1.65; }
.card-link {
  display: inline-flex; align-items: center; gap: 6px;
  margin-top: 16px;
  font-size: 13px; font-weight: 600;
  color: var(--green-700);
  text-decoration: none;
}
.card-link:hover { color: var(--green-800); }

/* ─── QUIZ ─── */
.quiz-container {
  max-width: 720px; margin: 0 auto; padding: 40px 24px;
}
.quiz-header {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 32px; flex-wrap: wrap; gap: 12px;
}
.quiz-title {
  font-family: 'Outfit', sans-serif;
  font-size: 22px; font-weight: 700;
}
.progress-bar-wrap {
  background: var(--gray-100);
  border-radius: 100px;
  height: 8px;
  overflow: hidden;
  flex: 1; min-width: 120px;
}
.progress-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--green-500), var(--green-600));
  border-radius: 100px;
  transition: width .4s ease;
}
.quiz-stats {
  display: flex; gap: 16px;
  font-size: 13px; color: var(--gray-500);
}
.quiz-stats strong { color: var(--gray-900); }

.quiz-card {
  background: var(--white);
  border: 1px solid rgba(0,0,0,.06);
  border-radius: var(--radius);
  padding: 36px 32px;
  box-shadow: var(--shadow);
  margin-bottom: 24px;
  text-align: center;
}
.quiz-question-label {
  font-size: 12px; font-weight: 600;
  text-transform: uppercase; letter-spacing: 1px;
  color: var(--gray-500);
  margin-bottom: 12px;
}
.quiz-word {
  font-family: 'Outfit', sans-serif;
  font-size: clamp(28px, 5vw, 42px);
  font-weight: 700;
  color: var(--green-800);
  letter-spacing: -1px;
  margin-bottom: 8px;
}
.quiz-mastery {
  display: flex; gap: 6px; justify-content: center; align-items: center;
  margin-top: 16px;
}
.mastery-dot {
  width: 10px; height: 10px; border-radius: 50%;
  border: 2px solid var(--green-400);
  transition: var(--transition);
}
.mastery-dot.filled { background: var(--green-500); border-color: var(--green-500); }

.quiz-options {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.quiz-option {
  background: var(--white);
  border: 2px solid var(--gray-200, #E5E7EB);
  border-radius: 12px;
  padding: 15px 18px;
  font-size: 15px; font-weight: 500;
  cursor: pointer;
  text-align: left;
  transition: var(--transition);
  color: var(--gray-900);
}
.quiz-option:hover:not(:disabled) {
  border-color: var(--green-400);
  background: var(--green-50);
  transform: translateY(-1px);
}
.quiz-option.correct {
  border-color: var(--green-500);
  background: var(--green-50);
  color: var(--green-800);
}
.quiz-option.wrong {
  border-color: var(--red);
  background: var(--red-light);
  color: var(--red);
}
.quiz-option:disabled { cursor: default; }

.quiz-feedback {
  padding: 14px 20px;
  border-radius: var(--radius-sm);
  font-size: 14px; font-weight: 500;
  display: flex; align-items: center; gap: 10px;
  margin-bottom: 16px;
  animation: slideUp .3s ease;
}
.quiz-feedback.correct { background: var(--green-50); color: var(--green-800); }
.quiz-feedback.wrong { background: var(--red-light); color: var(--red); }

.quiz-eliminated-banner {
  background: linear-gradient(135deg, var(--green-700), var(--green-600));
  color: white;
  padding: 20px 24px;
  border-radius: var(--radius);
  text-align: center;
  margin-bottom: 24px;
  animation: slideUp .4s ease;
}
.quiz-eliminated-banner h3 {
  font-family: 'Outfit', sans-serif;
  font-size: 18px; font-weight: 700;
  margin-bottom: 4px;
}
.quiz-eliminated-banner p { font-size: 14px; opacity: .85; }

/* Quiz ayar satırı */
.quiz-settings-row {
  display: flex;
  gap: 8px;
  margin-top: 14px;
  justify-content: center;
  flex-wrap: wrap;
}
.setting-group {
  display: flex;
  border: 1.5px solid var(--gray-200, #e5e7eb);
  border-radius: 8px;
  overflow: hidden;
}
.setting-btn {
  background: none;
  border: none;
  cursor: pointer;
  font-size: 12px;
  font-weight: 600;
  padding: 5px 11px;
  color: var(--gray-500, #6b7280);
  transition: background .15s, color .15s;
  line-height: 1.4;
}
.setting-btn + .setting-btn { border-left: 1.5px solid var(--gray-200, #e5e7eb); }
.setting-btn.active { background: var(--green-600, #16a34a); color: #fff; }
.setting-btn:not(.active):hover { background: var(--gray-100, #f3f4f6); }

.all-done-card {
  background: var(--white);
  border: 1px solid rgba(0,0,0,.06);
  border-radius: var(--radius);
  padding: 48px 32px;
  text-align: center;
  box-shadow: var(--shadow);
}
.all-done-card .trophy { font-size: 56px; margin-bottom: 16px; }
.all-done-card h2 {
  font-family: 'Outfit', sans-serif;
  font-size: 26px; font-weight: 700;
  color: var(--green-800); margin-bottom: 8px;
}
.all-done-card p { font-size: 15px; color: var(--gray-500); margin-bottom: 28px; }

/* ─── STATS PILLS ─── */
.stats-row {
  display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 20px;
}
.stat-pill {
  display: inline-flex; align-items: center; gap: 6px;
  background: var(--white);
  border: 1px solid rgba(0,0,0,.08);
  border-radius: 100px;
  padding: 5px 12px;
  font-size: 13px; font-weight: 500;
  box-shadow: var(--shadow-sm);
}
.stat-pill .dot {
  width: 7px; height: 7px; border-radius: 50%;
}
.dot-green { background: var(--green-500); }
.dot-red { background: var(--red); }
.dot-yellow { background: var(--yellow); }
.dot-gray { background: var(--gray-300); }

/* ─── WORD TABLE ─── */
.word-table { width: 100%; border-collapse: collapse; }
.word-table th {
  text-align: left;
  padding: 10px 16px;
  font-size: 12px; font-weight: 600;
  text-transform: uppercase; letter-spacing: .8px;
  color: var(--gray-500);
  border-bottom: 2px solid var(--gray-100);
}
.word-table td {
  padding: 12px 16px;
  border-bottom: 1px solid var(--gray-100);
  font-size: 14px;
}
.word-table tr:hover td { background: var(--gray-50, #F9FAFB); }
.word-table .german { font-weight: 600; color: var(--green-800); }
.word-table .badge {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 100px;
  font-size: 11px; font-weight: 600;
  background: var(--green-100);
  color: var(--green-800);
}

/* ─── GAMES ─── */
.game-section { padding: 40px 24px; }
.game-inner { max-width: 900px; margin: 0 auto; }
.game-tabs {
  display: flex; gap: 4px;
  background: var(--gray-100);
  border-radius: 12px;
  padding: 4px;
  margin-bottom: 32px;
  width: fit-content;
}
.game-tab {
  padding: 8px 20px;
  border-radius: 10px;
  font-size: 14px; font-weight: 500;
  cursor: pointer;
  border: none;
  background: transparent;
  color: var(--gray-500);
  transition: var(--transition);
}
.game-tab.active {
  background: var(--white);
  color: var(--gray-900);
  box-shadow: var(--shadow-sm);
}

/* HANGMAN */
.hangman-wrapper {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  align-items: start;
}
.hangman-canvas-wrap {
  aspect-ratio: 1;
  max-width: 280px;
}
#hangman-canvas { width: 100%; height: 100%; }
.hangman-word {
  display: flex; gap: 8px; justify-content: center; flex-wrap: wrap;
  margin: 24px 0;
}
.letter-blank {
  width: 38px; height: 44px;
  display: flex; flex-direction: column;
  align-items: center; justify-content: flex-end;
  gap: 4px;
}
.letter-blank .letter {
  font-family: 'Outfit', sans-serif;
  font-size: 22px; font-weight: 700;
  color: var(--green-800);
  line-height: 1;
  min-height: 28px;
}
.letter-blank .underline {
  width: 100%; height: 2px;
  background: var(--gray-300);
  border-radius: 2px;
}
.hangman-hint { font-size: 14px; color: var(--gray-500); margin-bottom: 20px; }
.keyboard {
  display: flex; flex-wrap: wrap; gap: 5px;
  max-width: 380px;
}
.key-btn {
  width: 38px; height: 38px;
  border: 1.5px solid var(--gray-300);
  border-radius: 8px;
  font-size: 13px; font-weight: 600;
  cursor: pointer;
  background: var(--white);
  transition: var(--transition);
  color: var(--gray-700);
}
.key-btn:hover:not(:disabled) { border-color: var(--green-400); background: var(--green-50); }
.key-btn.correct { background: var(--green-500); border-color: var(--green-500); color: white; }
.key-btn.wrong { background: var(--gray-100); border-color: var(--gray-200, #E5E7EB); color: var(--gray-300); cursor: not-allowed; }
.key-btn:disabled { opacity: .5; cursor: not-allowed; }

/* WORD SEARCH */
.wordsearch-wrap {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 32px;
  align-items: start;
}
.ws-grid { display: inline-block; user-select: none; }
.ws-cell {
  width: 34px; height: 34px;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 14px; font-weight: 600;
  cursor: pointer;
  border-radius: 6px;
  transition: var(--transition);
  color: var(--gray-700);
  font-family: 'Outfit', sans-serif;
}
.ws-cell:hover { background: var(--green-50); color: var(--green-700); }
.ws-cell.selected { background: var(--green-200, #B7E4C7); color: var(--green-900); }
.ws-cell.found { background: var(--green-500); color: white; }
.ws-row { display: flex; }
.ws-word-list { min-width: 180px; }
.ws-word-list h4 {
  font-size: 13px; font-weight: 600; text-transform: uppercase; letter-spacing: .8px;
  color: var(--gray-500); margin-bottom: 12px;
}
.ws-word-item {
  font-size: 14px; font-weight: 500;
  padding: 4px 0;
  color: var(--gray-700);
  transition: var(--transition);
}
.ws-word-item.found { color: var(--green-600); text-decoration: line-through; }

/* ─── PAGE HEADER ─── */
.page-header {
  background: linear-gradient(135deg, var(--green-900), var(--green-700));
  padding: 44px 24px 48px;
  position: relative; overflow: hidden;
}
.page-header::before {
  content: '';
  position: absolute; inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='40' height='40' viewBox='0 0 40 40' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Crect x='10' y='10' width='20' height='20' rx='4'/%3E%3C/g%3E%3C/svg%3E");
}
.page-header-inner { max-width: 1100px; margin: 0 auto; position: relative; }
.page-header h1 {
  font-family: 'Outfit', sans-serif;
  font-size: clamp(26px, 4vw, 38px);
  font-weight: 700; color: white;
  letter-spacing: -1px;
  margin-bottom: 8px;
}
.page-header p { font-size: 15px; color: rgba(255,255,255,.7); max-width: 500px; }

/* ─── ADMIN ─── */
.admin-layout {
  display: grid;
  grid-template-columns: 240px 1fr;
  min-height: 100vh;
}
.admin-sidebar {
  background: var(--green-900);
  padding: 24px 0;
  position: sticky; top: 0;
  height: 100vh;
  overflow-y: auto;
}
.admin-sidebar-brand {
  padding: 0 20px 20px;
  border-bottom: 1px solid rgba(255,255,255,.08);
  margin-bottom: 16px;
}
.admin-sidebar-brand h2 {
  font-family: 'Outfit', sans-serif;
  font-size: 16px; font-weight: 700;
  color: white;
}
.admin-sidebar-brand p { font-size: 12px; color: rgba(255,255,255,.4); margin-top: 2px; }
.admin-nav { list-style: none; padding: 0 12px; }
.admin-nav li a {
  display: flex; align-items: center; gap: 10px;
  padding: 9px 12px;
  border-radius: 8px;
  text-decoration: none;
  font-size: 14px; font-weight: 500;
  color: rgba(255,255,255,.6);
  transition: var(--transition);
  margin-bottom: 2px;
}
.admin-nav li a:hover { background: rgba(255,255,255,.08); color: white; }
.admin-nav li a.active { background: var(--green-700); color: white; }
.admin-content { padding: 32px; background: var(--gray-50, #F9FAFB); }
.admin-page { display: none; }
.admin-page.active { display: block; }
.admin-content h2 {
  font-family: 'Outfit', sans-serif;
  font-size: 22px; font-weight: 700; margin-bottom: 24px;
}

.stat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 16px; margin-bottom: 32px; }
.stat-card {
  background: var(--white);
  border: 1px solid rgba(0,0,0,.06);
  border-radius: 12px;
  padding: 20px;
  box-shadow: var(--shadow-sm);
}
.stat-card .label { font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: .8px; color: var(--gray-500); margin-bottom: 8px; }
.stat-card .value {
  font-family: 'Outfit', sans-serif;
  font-size: 32px; font-weight: 700;
  color: var(--green-800);
}
.stat-card .sublabel { font-size: 12px; color: var(--gray-500); margin-top: 4px; }

.form-group { margin-bottom: 18px; }
.form-label { display: block; font-size: 13px; font-weight: 600; color: var(--gray-700); margin-bottom: 6px; }
.form-input, .form-select, .form-textarea {
  width: 100%;
  padding: 10px 14px;
  border: 1.5px solid var(--gray-300);
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-family: inherit;
  background: var(--white);
  color: var(--gray-900);
  transition: var(--transition);
}
.form-input:focus, .form-select:focus, .form-textarea:focus {
  outline: none;
  border-color: var(--green-500);
  box-shadow: 0 0 0 3px rgba(82,183,136,.15);
}
.form-textarea { resize: vertical; min-height: 80px; }

/* ─── LOGIN SCREEN ─── */
.login-screen {
  min-height: 100vh;
  display: flex; align-items: center; justify-content: center;
  background: var(--green-900);
  padding: 24px;
}
.login-card {
  background: var(--white);
  border-radius: 20px;
  padding: 40px;
  width: 100%; max-width: 380px;
  box-shadow: var(--shadow-lg);
}
.login-card h1 {
  font-family: 'Outfit', sans-serif;
  font-size: 22px; font-weight: 700;
  margin-bottom: 6px;
}
.login-card p { font-size: 14px; color: var(--gray-500); margin-bottom: 28px; }

/* ─── MODAL ─── */
.modal-overlay {
  position: fixed; inset: 0;
  background: rgba(0,0,0,.5);
  backdrop-filter: blur(4px);
  display: flex; align-items: center; justify-content: center;
  z-index: 1000;
  padding: 24px;
  animation: fadeIn .2s ease;
}
.modal {
  background: var(--white);
  border-radius: var(--radius);
  padding: 28px;
  width: 100%; max-width: 480px;
  max-height: 90vh; overflow-y: auto;
  box-shadow: var(--shadow-lg);
  animation: slideUp .3s ease;
}
.modal h3 {
  font-family: 'Outfit', sans-serif;
  font-size: 18px; font-weight: 700;
  margin-bottom: 20px;
}
.modal-actions { display: flex; gap: 10px; justify-content: flex-end; margin-top: 24px; }

/* ─── ALERTS ─── */
.alert {
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  font-size: 14px;
  margin-bottom: 16px;
  animation: slideUp .3s ease;
}
.alert-success { background: var(--green-50); color: var(--green-800); border-left: 3px solid var(--green-500); }
.alert-error { background: var(--red-light); color: var(--red); border-left: 3px solid var(--red); }

/* ─── CHART ─── */
.mini-chart { display: flex; align-items: flex-end; gap: 4px; height: 60px; }
.chart-bar {
  flex: 1; min-width: 4px;
  background: var(--green-200, #B7E4C7);
  border-radius: 3px 3px 0 0;
  transition: var(--transition);
  position: relative;
}
.chart-bar:hover { background: var(--green-500); }

/* ─── FOOTER ─── */
.footer {
  background: var(--green-900);
  color: rgba(255,255,255,.5);
  text-align: center;
  padding: 24px;
  font-size: 13px;
  margin-top: auto;
}
.footer a { color: rgba(255,255,255,.7); text-decoration: none; }
.footer a:hover { color: white; }

/* ─── ANIMATIONS ─── */
@keyframes slideUp {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}
@keyframes shake {
  0%, 100% { transform: translateX(0); }
  25% { transform: translateX(-6px); }
  75% { transform: translateX(6px); }
}
.shake { animation: shake .35s ease; }
.fade-in { animation: slideUp .4s ease; }

/* ─── RESPONSIVE ─── */
@media (max-width: 768px) {
  .nav-links { display: none; }
  .nav-mobile-btn { display: flex; }
  .nav-links.mobile-open {
    display: flex; flex-direction: column;
    position: fixed; top: 64px; left: 0; right: 0;
    background: var(--white);
    padding: 10px;
    border-bottom: 1px solid rgba(0,0,0,.06);
    box-shadow: var(--shadow);
    z-index: 199;
    max-height: calc(100vh - 64px);
    overflow-y: auto;
  }
  .nav-links.mobile-open > li > a { padding: 11px 14px; font-size: 15px; }
  .nav-dropdown-toggle { padding: 11px 14px; font-size: 15px; width: 100%; justify-content: space-between; }
  .nav-dropdown-menu {
    display: none; position: static; transform: none;
    box-shadow: none; border: none;
    background: var(--gray-50); border-radius: 8px;
    margin: 4px 0; padding: 4px;
    min-width: unset;
  }
  .nav-dropdown.open .nav-dropdown-menu { display: block; }
  .nav-dropdown-menu li a { padding: 9px 20px; font-size: 14px; }
  .nav-dropdown-menu .menu-label { padding: 6px 20px 2px; }
  .quiz-options { grid-template-columns: 1fr; }
  .hangman-wrapper { grid-template-columns: 1fr; }
  .wordsearch-wrap { grid-template-columns: 1fr; }
  .admin-layout { grid-template-columns: 1fr; }
  .admin-sidebar { position: static; height: auto; }
  .hero { padding: 48px 24px 56px; }
}

/* ─── UTILITY ─── */
.hidden { display: none !important; }
.text-center { text-align: center; }
.text-sm { font-size: 13px; }
.text-muted { color: var(--gray-500); }
.mt-1 { margin-top: 8px; }
.mt-2 { margin-top: 16px; }
.mt-3 { margin-top: 24px; }
.mb-2 { margin-bottom: 16px; }
.mb-3 { margin-bottom: 24px; }
.flex { display: flex; }
.flex-center { display: flex; align-items: center; justify-content: center; }
.gap-2 { gap: 8px; }
.gap-3 { gap: 12px; }
.w-full { width: 100%; }
.separator { height: 1px; background: var(--gray-100); margin: 24px 0; }
