/* ============================================================
   YCDAT English — Main Stylesheet
   Design: Refined Navy + Gold — Professional Learning Platform
   ============================================================ */

/* ---- RESET & ROOT ---- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
:root {
  --navy:      #0D1B2A;
  --navy-mid:  #1A2F45;
  --navy-soft: #1E3A5F;
  --gold:      #D4A843;
  --gold-lt:   #F0C96B;
  --gold-bg:   rgba(212,168,67,0.10);
  --gold-brd:  rgba(212,168,67,0.25);
  --cream:     #FAF7F2;
  --white:     #FFFFFF;
  --gray-100:  #F4F2EF;
  --gray-200:  #E8E4DE;
  --gray-300:  #D0CAC0;
  --gray-500:  #9B9189;
  --gray-700:  #5A5248;
  --text:      #1A1A2E;
  --muted:     #6B6560;
  --green:     #1D9E75;
  --blue:      #185FA5;
  --red:       #C0392B;
  --radius:    10px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --shadow:    0 2px 16px rgba(13,27,42,0.08);
  --shadow-md: 0 6px 32px rgba(13,27,42,0.12);
  --font-head: 'Playfair Display', Georgia, serif;
  --font-body: 'DM Sans', system-ui, sans-serif;
  --transition: 0.2s ease;
}
html { font-size: 16px; scroll-behavior: smooth; }
body { font-family: var(--font-body); color: var(--text); background: var(--cream); line-height: 1.6; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

/* ---- TYPOGRAPHY ---- */
h1,h2,h3,h4,h5 { font-family: var(--font-head); line-height: 1.2; }
h1 { font-size: clamp(2rem, 5vw, 3.2rem); }
h2 { font-size: clamp(1.4rem, 3vw, 2rem); }
h3 { font-size: 1.25rem; }
h4 { font-size: 1rem; }
p { line-height: 1.75; color: var(--muted); }

/* ---- NAVBAR ---- */
.navbar {
  position: sticky; top: 0; z-index: 1000;
  display: flex; align-items: center; justify-content: space-between;
  background: var(--navy); padding: 0 2rem; height: 64px;
  border-bottom: 1px solid rgba(212,168,67,0.15);
}
.logo { font-family: var(--font-head); color: var(--gold); font-size: 1.25rem; letter-spacing: -0.02em; }
.logo span { color: #fff; }
.nav-links { display: flex; align-items: center; gap: 4px; }
.nav-link { color: rgba(255,255,255,0.65); font-size: 14px; padding: 7px 14px; border-radius: 8px; transition: var(--transition); }
.nav-link:hover, .nav-link.active { color: var(--gold); background: var(--gold-bg); }
.nav-link--admin { color: var(--gold); border: 1px solid var(--gold-brd); margin-left: 4px; }
.nav-user { display: flex; align-items: center; gap: 10px; margin-left: 12px; padding-left: 12px; border-left: 1px solid rgba(255,255,255,0.15); }
.user-avatar { width: 32px; height: 32px; background: var(--gold); color: var(--navy); border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 13px; font-weight: 700; }
.user-name { font-size: 13px; color: rgba(255,255,255,0.8); }
.menu-toggle { display: none; flex-direction: column; gap: 5px; background: none; border: none; cursor: pointer; padding: 6px; }
.menu-toggle span { display: block; width: 22px; height: 2px; background: rgba(255,255,255,0.8); border-radius: 2px; transition: var(--transition); }

/* ---- BUTTONS ---- */
.btn-primary {
  display: inline-flex; align-items: center; gap: 6px;
  background: var(--gold); color: var(--navy); border: none;
  font-family: var(--font-body); font-size: 14px; font-weight: 500;
  padding: 10px 22px; border-radius: var(--radius); cursor: pointer;
  transition: var(--transition); text-decoration: none;
}
.btn-primary:hover { background: var(--gold-lt); transform: translateY(-1px); }
.btn-ghost {
  display: inline-flex; align-items: center; gap: 6px;
  background: rgba(255,255,255,0.08); color: rgba(255,255,255,0.9); border: 1px solid rgba(255,255,255,0.2);
  font-family: var(--font-body); font-size: 14px; padding: 10px 22px; border-radius: var(--radius);
  cursor: pointer; transition: var(--transition); text-decoration: none;
}
.btn-ghost:hover { background: rgba(255,255,255,0.15); }
.btn-secondary {
  display: inline-flex; align-items: center; gap: 6px;
  background: var(--gray-100); color: var(--text); border: 1px solid var(--gray-200);
  font-family: var(--font-body); font-size: 14px; padding: 10px 22px; border-radius: var(--radius);
  cursor: pointer; transition: var(--transition);
}
.btn-secondary:hover { background: var(--gray-200); }
.btn-danger { background: var(--red); color: white; border: none; font-family: var(--font-body); font-size: 14px; padding: 10px 20px; border-radius: var(--radius); cursor: pointer; }
.btn--sm { padding: 6px 14px; font-size: 13px; }
.btn--full { width: 100%; justify-content: center; }

/* ---- FLASH MESSAGES ---- */
.flash {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 2rem; font-size: 14px; font-weight: 500;
}
.flash--success { background: #d4edda; color: #155724; }
.flash--error   { background: #f8d7da; color: #721c24; }
.flash--info    { background: #d1ecf1; color: #0c5460; }
.flash-close { background: none; border: none; font-size: 18px; cursor: pointer; opacity: 0.7; }

/* ---- MAIN CONTENT ---- */
.main-content { min-height: calc(100vh - 64px - 200px); }

/* ---- HERO SECTION ---- */
.hero {
  background: var(--navy); min-height: 500px;
  display: flex; align-items: center; justify-content: center;
  flex-direction: column; text-align: center; padding: 5rem 2rem;
  position: relative; overflow: hidden;
}
.hero::before {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(ellipse at 25% 60%, rgba(212,168,67,0.07) 0%, transparent 55%),
              radial-gradient(ellipse at 75% 20%, rgba(212,168,67,0.05) 0%, transparent 45%);
}
.hero-badge {
  background: var(--gold-bg); border: 1px solid var(--gold-brd);
  color: var(--gold); font-size: 11px; font-weight: 500;
  padding: 5px 16px; border-radius: 20px; letter-spacing: 0.1em;
  text-transform: uppercase; margin-bottom: 1.5rem; position: relative;
}
.hero h1 { color: #fff; max-width: 700px; position: relative; }
.hero h1 em { color: var(--gold); font-style: normal; }
.hero p { color: rgba(255,255,255,0.6); max-width: 520px; margin: 1.5rem auto; position: relative; }
.hero-btns { display: flex; gap: 12px; flex-wrap: wrap; justify-content: center; position: relative; margin-top: 0.5rem; }

/* ---- SECTIONS ---- */
.section { padding: 5rem 2rem; }
.section--alt { background: var(--white); }
.container { max-width: 1100px; margin: 0 auto; }
.section-label { font-size: 11px; font-weight: 500; color: var(--gold); text-transform: uppercase; letter-spacing: 0.12em; margin-bottom: 0.5rem; }
.section-title { font-family: var(--font-head); font-size: clamp(1.6rem, 3vw, 2.2rem); color: var(--navy); margin-bottom: 1rem; }
.section-sub { max-width: 560px; margin-bottom: 3rem; }

/* ---- GRID CARDS ---- */
.grid-3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 20px; }
.grid-4 { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; }
.grid-2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 20px; }

.card {
  background: var(--white); border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg); padding: 1.75rem;
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); border-color: var(--gold-brd); }
.card-icon { width: 48px; height: 48px; border-radius: 12px; background: var(--gold-bg); display: flex; align-items: center; justify-content: center; font-size: 22px; margin-bottom: 1rem; }
.card h3 { font-family: var(--font-head); color: var(--navy); margin-bottom: 0.5rem; }
.card p { font-size: 14px; }

/* ---- STATS BAR ---- */
.stats-bar { background: var(--navy); padding: 3rem 2rem; display: flex; justify-content: center; gap: 5rem; flex-wrap: wrap; border-top: 1px solid rgba(212,168,67,0.2); }
.stat-item { text-align: center; }
.stat-item .num { font-family: var(--font-head); font-size: 2.2rem; color: var(--gold); }
.stat-item .lbl { font-size: 11px; color: rgba(255,255,255,0.45); text-transform: uppercase; letter-spacing: 0.1em; margin-top: 4px; }

/* ---- DASHBOARD LAYOUT ---- */
.dash-layout { display: grid; grid-template-columns: 250px 1fr; min-height: calc(100vh - 64px); }

.sidebar {
  background: var(--white); border-right: 1px solid var(--gray-200);
  padding: 1.75rem 1.25rem; display: flex; flex-direction: column; gap: 2rem;
}
.sidebar-section-title { font-size: 10px; font-weight: 500; color: var(--gray-500); text-transform: uppercase; letter-spacing: 0.12em; margin-bottom: 0.5rem; padding: 0 8px; }
.sidebar-link {
  display: flex; align-items: center; gap: 10px; padding: 9px 12px; border-radius: 10px;
  font-size: 14px; color: var(--muted); cursor: pointer; transition: var(--transition);
  text-decoration: none; margin-bottom: 2px;
}
.sidebar-link .ico { font-size: 16px; width: 22px; text-align: center; }
.sidebar-link:hover, .sidebar-link.active { background: var(--gold-bg); color: var(--navy); }
.sidebar-link.active { font-weight: 500; }
.sidebar-progress { margin-top: auto; padding-top: 1.5rem; border-top: 1px solid var(--gray-200); }
.prog-item { margin-bottom: 12px; }
.prog-label { font-size: 12px; color: var(--muted); margin-bottom: 5px; display: flex; justify-content: space-between; }
.prog-bar { height: 5px; background: var(--gray-200); border-radius: 4px; overflow: hidden; }
.prog-fill { height: 100%; background: var(--gold); border-radius: 4px; }

.dash-main { padding: 2rem; overflow-y: auto; }
.dash-header { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 2rem; flex-wrap: wrap; gap: 1rem; }
.dash-greeting h2 { font-family: var(--font-head); font-size: 1.5rem; color: var(--navy); }
.dash-greeting p { font-size: 13px; color: var(--muted); margin-top: 4px; }
.streak-card { background: var(--gold-bg); border: 1px solid var(--gold-brd); border-radius: var(--radius-lg); padding: 1rem 1.5rem; text-align: center; }
.streak-card .num { font-family: var(--font-head); font-size: 2rem; color: var(--gold); }
.streak-card .lbl { font-size: 11px; color: var(--muted); margin-top: 2px; }

/* ---- STATS CARDS ---- */
.stats-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 14px; margin-bottom: 2rem; }
.stat-card { background: var(--white); border: 1px solid var(--gray-200); border-radius: var(--radius); padding: 1.25rem; text-align: center; }
.stat-card .num { font-family: var(--font-head); font-size: 1.8rem; color: var(--navy); }
.stat-card .lbl { font-size: 12px; color: var(--muted); margin-top: 4px; }

/* ---- INNER CARDS ---- */
.inner-card { background: var(--white); border: 1px solid var(--gray-200); border-radius: var(--radius-lg); padding: 1.5rem; margin-bottom: 1.5rem; }
.inner-card-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 1.25rem; }
.inner-card-title { font-family: var(--font-head); font-size: 1rem; color: var(--navy); }
.inner-card-link { font-size: 13px; color: var(--gold); text-decoration: none; }

/* ---- CALENDAR STRIP ---- */
.cal-strip { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 4px; }
.cal-day { flex-shrink: 0; width: 56px; padding: 10px 6px; border-radius: 10px; border: 1px solid var(--gray-200); text-align: center; cursor: pointer; transition: var(--transition); text-decoration: none; display: block; }
.cal-day:hover { border-color: var(--gold); }
.cal-day.today { background: var(--navy); border-color: var(--navy); }
.cal-day.today .cal-dname, .cal-day.today .cal-num { color: #fff; }
.cal-day.has-event { border-bottom: 2px solid var(--gold); }
.cal-dname { font-size: 10px; color: var(--muted); text-transform: uppercase; letter-spacing: 0.05em; }
.cal-num { font-size: 17px; font-weight: 500; color: var(--navy); margin: 3px 0; }
.cal-dot { width: 5px; height: 5px; background: var(--gold); border-radius: 50%; margin: 0 auto; }

/* ---- MODULE LIST ---- */
.module-list-item { display: flex; align-items: center; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--gray-100); text-decoration: none; }
.module-list-item:last-child { border-bottom: none; }
.module-list-item:hover .mod-name { color: var(--gold); }
.mod-icon { width: 38px; height: 38px; border-radius: 10px; display: flex; align-items: center; justify-content: center; font-size: 18px; flex-shrink: 0; }
.mod-icon--grammar { background: var(--gold-bg); }
.mod-icon--vocab { background: rgba(29,158,117,0.1); }
.mod-icon--conversation { background: rgba(24,95,165,0.1); }
.mod-info { flex: 1; min-width: 0; }
.mod-name { font-size: 14px; font-weight: 500; color: var(--navy); transition: color var(--transition); }
.mod-sub { font-size: 12px; color: var(--muted); margin-top: 2px; }
.mod-badge { font-size: 12px; font-weight: 500; color: var(--gold); }
.mod-badge--done { color: var(--green); }
.mod-badge--soon { color: var(--gray-500); }

/* ---- WORD CHIPS ---- */
.word-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.word-chip {
  background: var(--gray-100); border: 1px solid var(--gray-200);
  border-radius: 20px; font-size: 13px; padding: 6px 16px; color: var(--navy);
  cursor: pointer; transition: all var(--transition); font-weight: 500;
}
.word-chip:hover { border-color: var(--gold); }
.word-chip.learned { background: var(--gold); border-color: var(--gold); color: var(--navy); }
.word-chip.learned::before { content: '✓ '; font-size: 11px; }

/* ---- GRAMMAR LAYOUT ---- */
.gram-layout { display: grid; grid-template-columns: 280px 1fr; min-height: calc(100vh - 64px); }
.gram-sidebar { background: var(--white); border-right: 1px solid var(--gray-200); padding: 1.5rem; overflow-y: auto; }
.gram-sidebar h3 { font-family: var(--font-head); font-size: 1rem; color: var(--navy); margin-bottom: 1.25rem; }
.tense-group { margin-bottom: 1.5rem; }
.tense-group-label { font-size: 10px; font-weight: 500; color: var(--gray-500); text-transform: uppercase; letter-spacing: 0.1em; padding: 0 8px; margin-bottom: 6px; }
.tense-btn {
  display: flex; align-items: center; justify-content: space-between;
  width: 100%; text-align: left; padding: 9px 12px; border-radius: 8px;
  border: none; background: none; font-family: var(--font-body); font-size: 13.5px;
  color: var(--muted); cursor: pointer; transition: all var(--transition); margin-bottom: 2px;
  text-decoration: none;
}
.tense-btn:hover, .tense-btn.active { background: var(--gold-bg); color: var(--navy); font-weight: 500; }
.tense-done { font-size: 11px; color: var(--green); }
.tense-level { font-size: 10px; padding: 2px 7px; border-radius: 10px; background: var(--gray-100); color: var(--gray-700); }
.tense-level--intermediate { background: rgba(212,168,67,0.15); color: #8B6914; }
.tense-level--advanced { background: rgba(153,53,86,0.12); color: #993556; }

.gram-content { padding: 2rem 2.5rem; overflow-y: auto; }
.gram-header { margin-bottom: 2rem; padding-bottom: 1.5rem; border-bottom: 1px solid var(--gray-200); }
.gram-breadcrumb { font-size: 12px; color: var(--muted); margin-bottom: 0.75rem; }
.gram-breadcrumb a { color: var(--gold); }
.gram-title { font-family: var(--font-head); font-size: 2.2rem; color: var(--navy); }
.gram-meta { display: flex; gap: 12px; margin-top: 10px; flex-wrap: wrap; }
.gram-tag { font-size: 12px; padding: 3px 12px; border-radius: 12px; background: var(--gray-100); color: var(--gray-700); }
.gram-tag--gold { background: var(--gold-bg); color: var(--gold); }

/* ---- LESSON SECTIONS ---- */
.lesson-section { background: var(--white); border: 1px solid var(--gray-200); border-radius: var(--radius-lg); padding: 1.75rem; margin-bottom: 1.5rem; }
.lesson-section-title { font-family: var(--font-head); font-size: 1.1rem; color: var(--navy); margin-bottom: 1.25rem; display: flex; align-items: center; gap: 8px; }
.formula-box {
  background: var(--navy); color: #fff; padding: 1.25rem 1.5rem;
  border-radius: 10px; font-family: 'Courier New', monospace; font-size: 14px;
  line-height: 1.9; margin-bottom: 1rem; border-left: 3px solid var(--gold);
}
.formula-box em { color: var(--gold-lt); font-style: normal; font-weight: 600; }
.lesson-explanation { font-size: 15px; color: var(--text); line-height: 1.8; }
.lesson-explanation h4 { font-family: var(--font-head); color: var(--navy); margin: 1.25rem 0 0.5rem; }
.lesson-explanation ul { padding-left: 1.5rem; margin: 0.5rem 0; }
.lesson-explanation li { margin-bottom: 6px; font-size: 14.5px; line-height: 1.7; }
.lesson-explanation strong { color: var(--navy); font-weight: 600; }
.lesson-explanation em { color: var(--gold); font-style: normal; font-weight: 500; }

.examples-list { list-style: none; }
.examples-list li { padding: 12px 0; border-bottom: 1px solid var(--gray-100); font-size: 14.5px; }
.examples-list li:last-child { border-bottom: none; }
.ex-sentence { color: var(--text); font-weight: 400; }
.ex-sentence .hl { color: var(--gold); font-weight: 600; }
.ex-tag { display: inline-block; font-size: 11px; padding: 2px 8px; border-radius: 8px; background: var(--gray-100); color: var(--muted); margin-left: 8px; }
.ex-translation { font-size: 13px; color: var(--muted); font-style: italic; margin-top: 3px; }

/* ---- EXERCISES ---- */
.exercise-box { background: var(--cream); border: 1px solid var(--gray-200); border-radius: var(--radius-lg); padding: 1.75rem; margin-bottom: 1.5rem; }
.exercise-title { font-family: var(--font-head); font-size: 1.1rem; color: var(--navy); margin-bottom: 0.5rem; }
.exercise-instructions { font-size: 13px; color: var(--muted); margin-bottom: 1.5rem; padding-bottom: 1rem; border-bottom: 1px solid var(--gray-200); }
.exo-question { margin-bottom: 1.25rem; font-size: 15px; color: var(--text); line-height: 1.7; }
.exo-num { color: var(--gold); font-weight: 600; margin-right: 8px; }
.fill-input {
  border: none; border-bottom: 2px solid var(--gold); background: transparent;
  font-family: var(--font-body); font-size: 15px; color: var(--navy);
  width: 140px; outline: none; padding: 2px 6px; transition: var(--transition);
}
.fill-input:focus { border-color: var(--navy); }
.fill-input.correct { border-color: var(--green); color: var(--green); }
.fill-input.wrong { border-color: var(--red); color: var(--red); }
.feedback-msg { margin-top: 1.5rem; padding: 12px 16px; border-radius: 10px; font-size: 14px; font-weight: 500; display: none; }
.feedback-msg.success { background: rgba(29,158,117,0.1); color: var(--green); display: block; }
.feedback-msg.error { background: rgba(192,57,43,0.1); color: var(--red); display: block; }

/* ---- VOCABULARY ---- */
.vocab-week-header { background: var(--navy); color: #fff; padding: 1.75rem; border-radius: var(--radius-lg); margin-bottom: 1.5rem; display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 1rem; }
.vocab-week-info h2 { font-family: var(--font-head); color: #fff; }
.vocab-week-info p { color: rgba(255,255,255,0.6); font-size: 13px; margin-top: 4px; }
.vocab-week-badge { background: var(--gold); color: var(--navy); font-size: 13px; font-weight: 600; padding: 8px 18px; border-radius: 20px; }

.word-card {
  background: var(--white); border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg); padding: 1.5rem; margin-bottom: 1rem;
  transition: var(--transition);
}
.word-card:hover { border-color: var(--gold-brd); }
.word-card.learned { border-left: 3px solid var(--green); }
.word-card-header { display: flex; align-items: flex-start; justify-content: space-between; margin-bottom: 1rem; gap: 1rem; }
.word-title-group { flex: 1; }
.word-title { font-family: var(--font-head); font-size: 1.4rem; color: var(--navy); }
.word-phonetic { font-size: 13px; color: var(--muted); margin-top: 2px; }
.word-pos-badge { font-size: 11px; padding: 3px 10px; border-radius: 12px; background: var(--gold-bg); color: var(--gold); font-weight: 500; text-transform: uppercase; letter-spacing: 0.06em; flex-shrink: 0; }
.word-definition { font-size: 15px; color: var(--text); font-weight: 500; margin-bottom: 0.75rem; }
.word-definition-fr { font-size: 13.5px; color: var(--muted); font-style: italic; margin-bottom: 1rem; }
.word-example { background: var(--gray-100); border-left: 3px solid var(--gold); padding: 10px 14px; border-radius: 0 8px 8px 0; font-size: 14px; color: var(--text); margin-bottom: 8px; line-height: 1.6; }
.word-meta { display: flex; gap: 16px; margin-top: 1rem; padding-top: 1rem; border-top: 1px solid var(--gray-100); flex-wrap: wrap; }
.word-syn { font-size: 12px; color: var(--muted); }
.word-syn strong { color: var(--navy); font-weight: 500; }
.word-learn-btn { margin-top: 1rem; }

/* ---- AUTH FORMS ---- */
.auth-wrapper { min-height: calc(100vh - 64px); display: flex; align-items: center; justify-content: center; padding: 2rem; }
.auth-card { background: var(--white); border: 1px solid var(--gray-200); border-radius: var(--radius-xl); padding: 2.5rem; width: 100%; max-width: 440px; box-shadow: var(--shadow-md); }
.auth-logo { text-align: center; margin-bottom: 2rem; }
.auth-logo .logo { font-size: 1.5rem; display: inline-block; }
.auth-title { font-family: var(--font-head); font-size: 1.6rem; color: var(--navy); text-align: center; margin-bottom: 0.5rem; }
.auth-sub { font-size: 13px; text-align: center; color: var(--muted); margin-bottom: 2rem; }
.form-group { margin-bottom: 1.25rem; }
.form-label { display: block; font-size: 13px; font-weight: 500; color: var(--navy); margin-bottom: 6px; }
.form-input {
  width: 100%; padding: 11px 14px; border: 1px solid var(--gray-300);
  border-radius: var(--radius); font-family: var(--font-body); font-size: 14px;
  color: var(--text); background: var(--white); transition: var(--transition); outline: none;
}
.form-input:focus { border-color: var(--gold); box-shadow: 0 0 0 3px rgba(212,168,67,0.1); }
.form-input.error { border-color: var(--red); }
.form-error { font-size: 12px; color: var(--red); margin-top: 4px; }
.form-note { font-size: 12px; color: var(--muted); margin-top: 4px; }
.auth-footer { text-align: center; font-size: 13px; color: var(--muted); margin-top: 1.5rem; }
.auth-footer a { color: var(--gold); }

/* ---- ADMIN ---- */
.admin-layout { display: grid; grid-template-columns: 230px 1fr; min-height: calc(100vh - 64px); }
.admin-sidebar { background: var(--navy); padding: 1.75rem 1.25rem; }
.admin-sidebar-title { font-size: 11px; color: rgba(255,255,255,0.4); text-transform: uppercase; letter-spacing: 0.1em; margin-bottom: 0.5rem; padding: 0 8px; }
.admin-link { display: flex; align-items: center; gap: 10px; padding: 9px 12px; border-radius: 8px; color: rgba(255,255,255,0.65); font-size: 13.5px; text-decoration: none; margin-bottom: 2px; transition: var(--transition); }
.admin-link:hover, .admin-link.active { background: var(--gold-bg); color: var(--gold); }
.admin-main { padding: 2rem; background: var(--cream); }
.admin-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 2rem; }
.admin-header h1 { font-family: var(--font-head); font-size: 1.75rem; color: var(--navy); }

/* ---- TABLE ---- */
.table-wrapper { overflow-x: auto; border-radius: var(--radius-lg); border: 1px solid var(--gray-200); }
table { width: 100%; border-collapse: collapse; background: var(--white); }
thead { background: var(--navy); }
thead th { padding: 12px 16px; text-align: left; font-size: 12px; font-weight: 500; color: rgba(255,255,255,0.7); text-transform: uppercase; letter-spacing: 0.06em; }
tbody tr { border-bottom: 1px solid var(--gray-100); transition: background var(--transition); }
tbody tr:last-child { border-bottom: none; }
tbody tr:hover { background: var(--gray-100); }
tbody td { padding: 13px 16px; font-size: 14px; color: var(--text); }
.badge { display: inline-block; font-size: 11px; padding: 3px 10px; border-radius: 12px; font-weight: 500; }
.badge--green { background: rgba(29,158,117,0.12); color: var(--green); }
.badge--gold { background: var(--gold-bg); color: var(--gold); }
.badge--red { background: rgba(192,57,43,0.12); color: var(--red); }
.badge--gray { background: var(--gray-100); color: var(--gray-700); }
.badge--blue { background: rgba(24,95,165,0.1); color: var(--blue); }
.td-actions { display: flex; gap: 8px; }
.btn-action { background: none; border: 1px solid var(--gray-200); border-radius: 6px; padding: 5px 12px; font-size: 12px; cursor: pointer; transition: var(--transition); color: var(--text); text-decoration: none; display: inline-flex; align-items: center; gap: 4px; }
.btn-action:hover { border-color: var(--gold); color: var(--gold); }
.btn-action--danger:hover { border-color: var(--red); color: var(--red); }

/* ---- FOOTER ---- */
.footer { background: var(--navy); padding: 3.5rem 2rem 0; }
.footer-inner { max-width: 1100px; margin: 0 auto; display: grid; grid-template-columns: 1fr auto; gap: 3rem; padding-bottom: 3rem; border-bottom: 1px solid rgba(255,255,255,0.08); flex-wrap: wrap; }
.footer-brand p { color: rgba(255,255,255,0.45); font-size: 13px; margin-top: 0.75rem; max-width: 320px; }
.footer-links { display: flex; gap: 3rem; }
.footer-col h4 { font-family: var(--font-head); color: rgba(255,255,255,0.8); font-size: 0.9rem; margin-bottom: 1rem; }
.footer-col a { display: block; color: rgba(255,255,255,0.45); font-size: 13px; margin-bottom: 8px; transition: color var(--transition); }
.footer-col a:hover { color: var(--gold); }
.footer-bottom { max-width: 1100px; margin: 0 auto; padding: 1.25rem 0; }
.footer-bottom p { font-size: 12px; color: rgba(255,255,255,0.25); }

/* ---- PAGINATION ---- */
.pagination { display: flex; justify-content: center; gap: 6px; margin-top: 2rem; }
.page-btn { padding: 8px 14px; border: 1px solid var(--gray-200); border-radius: 8px; font-size: 13px; cursor: pointer; background: var(--white); color: var(--text); text-decoration: none; transition: var(--transition); }
.page-btn:hover, .page-btn.active { background: var(--gold); border-color: var(--gold); color: var(--navy); }

/* ---- HELPERS ---- */
.text-gold { color: var(--gold); }
.text-muted { color: var(--muted); }
.text-navy { color: var(--navy); }
.text-green { color: var(--green); }
.text-red { color: var(--red); }
.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.flex { display: flex; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.gap-2 { gap: 0.5rem; }
.gap-3 { gap: 1rem; }
.hidden { display: none; }

/* ---- RESPONSIVE ---- */
@media (max-width: 900px) {
  .dash-layout, .gram-layout, .admin-layout { grid-template-columns: 1fr; }
  .sidebar, .gram-sidebar, .admin-sidebar { display: none; }
  .sidebar.open, .gram-sidebar.open, .admin-sidebar.open { display: block; }
  .footer-inner { grid-template-columns: 1fr; }
  .footer-links { flex-wrap: wrap; gap: 2rem; }
}
@media (max-width: 680px) {
  .menu-toggle { display: flex; }
  .nav-links { display: none; flex-direction: column; position: absolute; top: 64px; left: 0; right: 0; background: var(--navy); padding: 1rem; border-top: 1px solid rgba(212,168,67,0.15); z-index: 999; }
  .nav-links.open { display: flex; }
  .nav-user { flex-direction: column; align-items: flex-start; border-left: none; border-top: 1px solid rgba(255,255,255,0.1); padding-top: 1rem; margin-top: 0.5rem; width: 100%; }
  .hero { padding: 3rem 1.5rem; }
  .section { padding: 3rem 1.5rem; }
  .stats-bar { gap: 2rem; }
  .gram-content { padding: 1.5rem; }
  .auth-card { padding: 1.75rem; }
}
