/* =====================================================
   AKILIMALI CARE TANZANIA — DESIGN SYSTEM
   Premium University Portal Theme
   ===================================================== */

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

/* ── CSS Custom Properties ── */
/* Clean minimal modern system — Stripe/Linear-style: high-contrast near-white/
   near-black, restrained color, thin borders instead of shadows/blur, one
   confident sans-serif family. Custom-property NAMES are kept from earlier
   iterations for compatibility with generated inline styles across the JS
   files; only VALUES changed. */
:root {
  /* Surfaces — clean white/near-white, not tinted */
  --color-bg-darkest: #f7f7f5;
  --color-bg-dark: #ffffff;
  --color-bg-surface: #ffffff;
  --color-bg-card: #ffffff;
  --color-bg-card-hover: #ffffff;
  --color-bg-elevated: #ffffff;
  --color-bg-input: #f5f5f4;

  /* Text — high-contrast near-black, neutral grays (no brown tint) */
  --color-text-primary: #14140f;
  --color-text-secondary: #55554e;
  --color-text-muted: #8c8c82;
  --color-text-inverse: #ffffff;

  /* Accent Colors — used sparingly: forest green (brand primary), muted
     clay (secondary), fresh green (success), gold (rare, premium highlight) */
  --color-accent-blue: #1e4a38;
  --color-accent-violet: #6b5643;
  --color-accent-teal: #2f7d54;
  --color-accent-gold: #a37324;

  /* Status Colors */
  --color-success: #2f7d54;
  --color-warning: #b3791f;
  --color-error: #b3352a;
  --color-info: #375f78;

  /* Gradients — reserved for the hero backdrop only; components use solid color */
  --gradient-primary: #1e4a38;
  --gradient-accent: #1e4a38;
  --gradient-gold: #a37324;
  --gradient-surface: linear-gradient(180deg, #ffffff 0%, #f7f7f5 100%);
  --gradient-hero: #ffffff;
  --gradient-card: transparent;

  /* Glass — deprecated in favor of flat cards; kept near-zero for compatibility */
  --glass-bg: #ffffff;
  --glass-border: #e5e4e0;
  --glass-blur: none;
  --glass-shadow: none;

  /* Borders — the primary means of separation, not shadow */
  --border-subtle: 1px solid #ececea;
  --border-light: 1px solid #e0dfda;
  --border-accent: 1px solid #1e4a38;

  /* Radius — tighter, more restrained */
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 14px;
  --radius-xl: 18px;
  --radius-full: 50%;

  /* Shadows — nearly flat; separation comes from borders + whitespace */
  --shadow-sm: 0 1px 2px rgba(20, 20, 15, 0.04);
  --shadow-md: 0 2px 8px rgba(20, 20, 15, 0.06);
  --shadow-lg: 0 8px 24px rgba(20, 20, 15, 0.08);
  --shadow-glow-blue: none;
  --shadow-glow-violet: none;
  --shadow-glow-teal: none;

  /* Typography — one confident sans-serif family throughout, hierarchy via weight/size */
  --font-heading: 'Inter', sans-serif;
  --font-body: 'Inter', sans-serif;

  /* Spacing — more generous for a confident, uncrowded layout */
  --space-xs: 4px;
  --space-sm: 8px;
  --space-md: 16px;
  --space-lg: 28px;
  --space-xl: 40px;
  --space-2xl: 64px;
  --space-3xl: 88px;

  /* Sidebar */
  --sidebar-width: 260px;
  --sidebar-collapsed: 72px;
  --topbar-height: 64px;

  /* Transitions */
  --transition-fast: 0.15s ease;
  --transition-base: 0.3s ease;
  --transition-slow: 0.5s ease;
  --transition-spring: 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* ── Reset & Base ── */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

/* ── Scroll Progress Indicator ── */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  width: 0%;
  background: var(--gradient-gold);
  z-index: 999;
  transition: width 0.08s linear;
}

/* ── Section Texture Tints (color wash + subtle dot-grid texture) ── */
.section-tint-green {
  background-color: rgba(30, 74, 56, 0.045);
  background-image: radial-gradient(rgba(30, 74, 56, 0.09) 1px, transparent 1px);
  background-size: 22px 22px;
}
.section-tint-gold {
  background-color: rgba(163, 115, 36, 0.05);
  background-image: radial-gradient(rgba(163, 115, 36, 0.1) 1px, transparent 1px);
  background-size: 22px 22px;
}

[data-counter] {
  font-variant-numeric: tabular-nums;
}

a {
  color: var(--color-accent-blue);
  text-decoration: none;
  transition: color var(--transition-fast);
}
a:hover {
  color: #2f6b52;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--color-text-primary);
}

h1 { font-size: 3rem; font-weight: 800; letter-spacing: -0.03em; }
h2 { font-size: 2.1rem; font-weight: 800; letter-spacing: -0.025em; }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.2rem; }
h5 { font-size: 1.05rem; }
h6 { font-size: 0.95rem; }

p { color: var(--color-text-secondary); }

ul, ol { list-style: none; }

/* ── Utility Classes ── */
.container {
  width: 100%;
  max-width: 1320px;
  margin: 0 auto;
  padding: 0 var(--space-lg);
}

.flex { display: flex; }
.flex-col { flex-direction: column; }
.flex-wrap { flex-wrap: wrap; }
.items-center { align-items: center; }
.items-start { align-items: flex-start; }
.justify-between { justify-content: space-between; }
.justify-center { justify-content: center; }
.gap-xs { gap: var(--space-xs); }
.gap-sm { gap: var(--space-sm); }
.gap-md { gap: var(--space-md); }
.gap-lg { gap: var(--space-lg); }
.gap-xl { gap: var(--space-xl); }
.gap-2xl { gap: var(--space-2xl); }

.text-center { text-align: center; }
.text-right { text-align: right; }
.text-sm { font-size: 0.85rem; }
.text-xs { font-size: 0.75rem; }
.text-lg { font-size: 1.15rem; }
.text-muted { color: var(--color-text-muted); }
.text-secondary { color: var(--color-text-secondary); }
.text-accent { color: var(--color-accent-blue); }
.text-success { color: var(--color-success); }
.text-warning { color: var(--color-warning); }
.text-error { color: var(--color-error); }
.font-semibold { font-weight: 600; }
.font-bold { font-weight: 700; }

.w-full { width: 100%; }
.hidden { display: none !important; }
.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  border: 0;
}

.mt-sm { margin-top: var(--space-sm); }
.mt-md { margin-top: var(--space-md); }
.mt-lg { margin-top: var(--space-lg); }
.mt-xl { margin-top: var(--space-xl); }
.mb-sm { margin-bottom: var(--space-sm); }
.mb-md { margin-bottom: var(--space-md); }
.mb-lg { margin-bottom: var(--space-lg); }
.mb-xl { margin-bottom: var(--space-xl); }

/* ── Animated Background ── */
/* Plain, confident background — no decorative gradient blobs */
.animated-bg {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  z-index: -1;
  background: var(--color-bg-darkest);
  overflow: hidden;
}

/* ── Buttons ── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-sm);
  padding: 10px 24px;
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 600;
  border: none;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all var(--transition-base);
  white-space: nowrap;
  position: relative;
  overflow: hidden;
}

.btn::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(43, 28, 20, 0);
  transition: background var(--transition-fast);
}
.btn:hover::after {
  background: rgba(43, 28, 20, 0.1);
}

.btn-primary {
  background: var(--color-accent-blue);
  color: white;
}
.btn-primary:hover {
  background: #163a2c;
}

.btn-secondary {
  background: var(--color-bg-input);
  color: var(--color-text-primary);
  border: var(--border-light);
}
.btn-secondary:hover {
  background: rgba(43, 28, 20, 0.1);
  border-color: rgba(43, 28, 20, 0.2);
}

.btn-success {
  background: var(--color-success);
  color: white;
}

.btn-danger {
  background: var(--color-error);
  color: white;
}

.btn-gold {
  background: var(--gradient-gold);
  color: var(--color-text-inverse);
}

.btn-ghost {
  background: transparent;
  color: var(--color-text-secondary);
  padding: 8px 16px;
}
.btn-ghost:hover {
  color: var(--color-text-primary);
  background: var(--color-bg-input);
}

.btn-sm {
  padding: 6px 14px;
  font-size: 0.8rem;
}

.btn-lg {
  padding: 14px 36px;
  font-size: 1rem;
}

.btn-icon {
  width: 40px; height: 40px;
  padding: 0;
  border-radius: var(--radius-sm);
  background: var(--color-bg-input);
  color: var(--color-text-secondary);
  border: var(--border-subtle);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  position: relative;
}
.btn-icon:hover {
  color: var(--color-text-primary);
  background: rgba(43, 28, 20, 0.1);
}

/* ── Glass Card ── */
.glass-card {
  background: var(--glass-bg);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border: var(--border-subtle);
  border-radius: var(--radius-lg);
  box-shadow: var(--glass-shadow);
  transition: all var(--transition-base);
}

.glass-card:hover {
  border-color: #d4d3cd;
}

.glass-card--interactive:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

/* ── Stat Card ── */
.stat-card {
  padding: var(--space-lg);
  background: var(--color-bg-card);
  border: var(--border-subtle);
  border-radius: var(--radius-md);
  position: relative;
  transition: border-color var(--transition-fast);
}
.stat-card:hover {
  border-color: #d4d3cd;
}

.stat-card.stat-success,
.stat-card.stat-warning,
.stat-card.stat-error,
.stat-card.stat-info,
.stat-card.stat-gold {
  border-color: #ececea;
}

.stat-card__icon {
  width: 40px; height: 40px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  margin-bottom: var(--space-md);
  color: var(--color-accent-blue);
  background: rgba(30, 74, 56, 0.1);
}

.stat-card__value {
  font-family: var(--font-heading);
  font-size: 1.9rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--color-text-primary);
  line-height: 1;
}

.stat-card__label {
  font-size: 0.85rem;
  color: var(--color-text-muted);
  margin-top: var(--space-xs);
}

.stat-card__trend {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 0.8rem;
  font-weight: 600;
  margin-top: var(--space-sm);
  padding: 3px 8px;
  border-radius: 20px;
}
.stat-card__trend.up {
  color: var(--color-success);
  background: rgba(79, 157, 110, 0.1);
}
.stat-card__trend.down {
  color: var(--color-error);
  background: rgba(192, 57, 43, 0.1);
}

/* ── Stats Grid ── */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: var(--space-lg);
}

/* ── Enrollment Trend Chart (Admin Dashboard, pure CSS bar chart) ── */
.enrollment-chart {
  display: flex;
  align-items: flex-end;
  gap: var(--space-md);
  height: 180px;
  padding-top: var(--space-md);
}

.enrollment-bar-col {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  height: 100%;
  gap: var(--space-xs);
}

.enrollment-bar-track {
  width: 100%;
  max-width: 40px;
  flex: 1;
  display: flex;
  align-items: flex-end;
  background: rgba(43, 28, 20, 0.05);
  border-radius: var(--radius-sm) var(--radius-sm) 0 0;
  overflow: hidden;
}

.enrollment-bar-fill {
  width: 100%;
  min-height: 4px;
  background: var(--gradient-primary);
  border-radius: var(--radius-sm) var(--radius-sm) 0 0;
  transition: height var(--transition-slow);
}

.enrollment-bar-value {
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--color-text-secondary);
}

.enrollment-bar-label {
  font-size: 0.7rem;
  color: var(--color-text-muted);
}

/* ── Dashboard Layout ── */
.dashboard-layout {
  display: flex;
  min-height: 100vh;
}

/* ── Sidebar ── */
.sidebar {
  width: var(--sidebar-width);
  height: 100vh;
  position: fixed;
  top: 0; left: 0;
  background: rgba(255, 253, 248, 0.95);
  backdrop-filter: var(--glass-blur);
  border-right: var(--border-subtle);
  display: flex;
  flex-direction: column;
  z-index: 100;
  transition: transform var(--transition-base);
}

.sidebar__brand {
  padding: var(--space-lg);
  display: flex;
  align-items: center;
  gap: var(--space-md);
  border-bottom: var(--border-subtle);
}

.sidebar__brand img {
  width: 42px; height: 42px;
  border-radius: var(--radius-sm);
}

.sidebar__brand-text h3 {
  font-size: 0.95rem;
  font-weight: 700;
  line-height: 1.2;
  background: var(--gradient-gold);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.sidebar__brand-text span {
  font-size: 0.7rem;
  color: var(--color-text-muted);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.sidebar__nav {
  flex: 1;
  padding: var(--space-md);
  overflow-y: auto;
}

.sidebar__nav-group {
  margin-bottom: var(--space-lg);
}

.sidebar__nav-label {
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--color-text-muted);
  padding: var(--space-sm) var(--space-md);
  margin-bottom: var(--space-xs);
}

.sidebar__link {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  padding: 10px var(--space-md);
  border-radius: var(--radius-sm);
  color: var(--color-text-secondary);
  font-size: 0.88rem;
  font-weight: 500;
  transition: all var(--transition-fast);
  position: relative;
}

.sidebar__link:hover {
  color: var(--color-text-primary);
  background: rgba(43, 28, 20, 0.05);
}

.sidebar__link.active {
  color: var(--color-text-primary);
  background: rgba(30, 74, 56, 0.12);
}

.sidebar__link.active::before {
  content: '';
  position: absolute;
  left: 0; top: 50%;
  transform: translateY(-50%);
  width: 3px; height: 20px;
  background: var(--color-accent-blue);
  border-radius: 0 3px 3px 0;
}

.sidebar__link .icon {
  width: 20px;
  text-align: center;
  font-size: 1.1rem;
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

/* Inline SVG icon system — scales with the containing element's font-size */
.icon svg,
[data-icon] svg {
  width: 1em;
  height: 1em;
  display: block;
}
[data-icon] {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.sidebar__link .badge {
  margin-left: auto;
  min-width: 20px;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.7rem;
  font-weight: 700;
  background: var(--color-error);
  color: white;
  border-radius: 10px;
  padding: 0 6px;
}

.sidebar__footer {
  padding: var(--space-md);
  border-top: var(--border-subtle);
}

.sidebar__user {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  padding: var(--space-sm);
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: background var(--transition-fast);
}
.sidebar__user:hover {
  background: rgba(43, 28, 20, 0.05);
}

.sidebar__user-avatar {
  width: 36px; height: 36px;
  border-radius: var(--radius-full);
  background: var(--gradient-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.85rem;
  color: white;
  flex-shrink: 0;
}

.sidebar__user-info {
  flex: 1;
  min-width: 0;
}
.sidebar__user-name {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--color-text-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.sidebar__user-role {
  font-size: 0.7rem;
  color: var(--color-text-muted);
}

/* ── Main Content ── */
.main-content {
  flex: 1;
  margin-left: var(--sidebar-width);
  min-height: 100vh;
  background: var(--color-bg-dark);
}

/* ── Topbar ── */
.topbar {
  height: var(--topbar-height);
  padding: 0 var(--space-xl);
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: var(--border-subtle);
  background: rgba(255, 253, 248, 0.8);
  backdrop-filter: var(--glass-blur);
  position: sticky;
  top: 0;
  z-index: 50;
}

.topbar__left {
  display: flex;
  align-items: center;
  gap: var(--space-md);
}

.topbar__title {
  font-family: var(--font-heading);
  font-size: 1.3rem;
  font-weight: 700;
}

.topbar__breadcrumb {
  font-size: 0.8rem;
  color: var(--color-text-muted);
}
.topbar__breadcrumb a { color: var(--color-text-secondary); }
.topbar__breadcrumb span { margin: 0 6px; }

.topbar__right {
  display: flex;
  align-items: center;
  gap: var(--space-md);
}

.topbar__search {
  position: relative;
}
.topbar__search input {
  width: 260px;
  padding: 8px 16px 8px 38px;
  background: var(--color-bg-input);
  border: var(--border-subtle);
  border-radius: var(--radius-sm);
  color: var(--color-text-primary);
  font-family: var(--font-body);
  font-size: 0.85rem;
  transition: all var(--transition-fast);
}
.topbar__search input::placeholder { color: var(--color-text-muted); }
.topbar__search input:focus {
  outline: none;
  border-color: var(--color-accent-blue);
  background: rgba(43, 28, 20, 0.08);
  width: 320px;
}
.topbar__search .search-icon {
  position: absolute;
  left: 12px; top: 50%;
  transform: translateY(-50%);
  color: var(--color-text-muted);
  font-size: 0.85rem;
}

.topbar__notification {
  position: relative;
}
.topbar__notification .notif-badge {
  position: absolute;
  top: -2px; right: -2px;
  width: 18px; height: 18px;
  background: var(--color-error);
  color: white;
  font-size: 0.65rem;
  font-weight: 700;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid var(--color-bg-dark);
}

/* ── Page Content ── */
.page-content {
  padding: var(--space-xl);
}

.page-header {
  margin-bottom: var(--space-xl);
}

.page-header__title {
  font-size: 1.6rem;
  font-weight: 700;
  margin-bottom: var(--space-xs);
}

.page-header__subtitle {
  font-size: 0.9rem;
  color: var(--color-text-muted);
}

/* ── Cards ── */
.card {
  background: var(--glass-bg);
  backdrop-filter: var(--glass-blur);
  border: var(--border-subtle);
  border-radius: var(--radius-md);
  overflow: hidden;
}

.card__header {
  padding: var(--space-lg);
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: var(--border-subtle);
}

.card__title {
  font-size: 1.05rem;
  font-weight: 600;
}

.card__body {
  padding: var(--space-lg);
}

.card__footer {
  padding: var(--space-md) var(--space-lg);
  border-top: var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* ── Tables ── */
.data-table {
  width: 100%;
  border-collapse: collapse;
}

.data-table th {
  padding: var(--space-md) var(--space-lg);
  text-align: left;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--color-text-muted);
  border-bottom: var(--border-light);
  background: rgba(43, 28, 20, 0.02);
}

.data-table td {
  padding: var(--space-md) var(--space-lg);
  font-size: 0.88rem;
  color: var(--color-text-secondary);
  border-bottom: var(--border-subtle);
  transition: background var(--transition-fast);
}

.data-table tr:hover td {
  background: rgba(43, 28, 20, 0.03);
}

.data-table tr:last-child td {
  border-bottom: none;
}

/* ── Badge ── */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 10px;
  font-size: 0.75rem;
  font-weight: 600;
  border-radius: 20px;
  white-space: nowrap;
}

.badge-success {
  background: rgba(79, 157, 110, 0.12);
  color: var(--color-success);
}
.badge-warning {
  background: rgba(201, 138, 44, 0.12);
  color: var(--color-warning);
}
.badge-error {
  background: rgba(192, 57, 43, 0.12);
  color: var(--color-error);
}
.badge-info {
  background: rgba(63, 110, 140, 0.12);
  color: var(--color-info);
}
.badge-primary {
  background: rgba(30, 74, 56, 0.12);
  color: var(--color-accent-blue);
}
.badge-muted {
  background: rgba(43, 28, 20, 0.06);
  color: var(--color-text-muted);
}

/* ── Forms ── */
.form-group {
  margin-bottom: var(--space-lg);
}

.form-label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--color-text-secondary);
  margin-bottom: var(--space-sm);
}

.form-input,
.form-select,
.form-textarea {
  width: 100%;
  padding: 11px 16px;
  background: var(--color-bg-input);
  border: var(--border-light);
  border-radius: var(--radius-sm);
  color: var(--color-text-primary);
  font-family: var(--font-body);
  font-size: 0.9rem;
  transition: all var(--transition-fast);
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  outline: none;
  border-color: var(--color-accent-blue);
  box-shadow: 0 0 0 3px rgba(30, 74, 56, 0.15);
  background: rgba(43, 28, 20, 0.08);
}

.form-input::placeholder { color: var(--color-text-muted); }

.form-select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%238a7a6d' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  padding-right: 36px;
}

.form-textarea {
  resize: vertical;
  min-height: 100px;
}

.form-checkbox {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  cursor: pointer;
}
.form-checkbox input[type="checkbox"] {
  width: 18px; height: 18px;
  accent-color: var(--color-accent-blue);
}

.form-help {
  font-size: 0.78rem;
  color: var(--color-text-muted);
  margin-top: var(--space-xs);
}

/* ── Tabs ── */
.tabs {
  display: flex;
  gap: var(--space-xs);
  border-bottom: var(--border-subtle);
  margin-bottom: var(--space-xl);
  overflow-x: auto;
}

.tab {
  padding: var(--space-md) var(--space-lg);
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--color-text-muted);
  border-bottom: 2px solid transparent;
  cursor: pointer;
  white-space: nowrap;
  transition: all var(--transition-fast);
  background: transparent;
  border-top: none;
  border-left: none;
  border-right: none;
  font-family: var(--font-body);
}

.tab:hover {
  color: var(--color-text-secondary);
}

.tab.active {
  color: var(--color-accent-blue);
  border-bottom-color: var(--color-accent-blue);
}

.tab-content {
  display: none;
  animation: fadeIn 0.3s ease;
}
.tab-content.active {
  display: block;
}

/* ── Progress Bar ── */
.progress-bar {
  width: 100%;
  height: 6px;
  background: rgba(43, 28, 20, 0.08);
  border-radius: 3px;
  overflow: hidden;
}

.progress-bar__fill {
  height: 100%;
  border-radius: 3px;
  background: var(--gradient-primary);
  transition: width var(--transition-slow);
}

.progress-bar__fill.success { background: var(--color-success); }
.progress-bar__fill.warning { background: var(--color-warning); }
.progress-bar__fill.error { background: var(--color-error); }

/* ── Avatar ── */
.avatar {
  width: 40px; height: 40px;
  border-radius: var(--radius-full);
  background: var(--gradient-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.85rem;
  color: white;
  flex-shrink: 0;
}

.avatar-sm { width: 32px; height: 32px; font-size: 0.75rem; }
.avatar-lg { width: 56px; height: 56px; font-size: 1.1rem; }
.avatar-xl { width: 72px; height: 72px; font-size: 1.4rem; }

.avatar-group {
  display: flex;
}
.avatar-group .avatar {
  margin-left: -8px;
  border: 2px solid var(--color-bg-dark);
}
.avatar-group .avatar:first-child { margin-left: 0; }

/* ── Modal ── */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(4px);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition-base);
}

.modal-overlay.active {
  opacity: 1;
  visibility: visible;
}

.modal {
  background: var(--color-bg-surface);
  border: var(--border-light);
  border-radius: var(--radius-lg);
  width: 90%;
  max-width: 560px;
  max-height: 85vh;
  overflow-y: auto;
  box-shadow: var(--shadow-lg);
  transform: translateY(20px) scale(0.97);
  transition: transform var(--transition-base);
}

.modal-overlay.active .modal {
  transform: translateY(0) scale(1);
}

.modal__header {
  padding: var(--space-lg);
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: var(--border-subtle);
}

.modal__title {
  font-size: 1.15rem;
  font-weight: 700;
}

.modal__close {
  width: 32px; height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-sm);
  background: transparent;
  border: none;
  color: var(--color-text-muted);
  cursor: pointer;
  font-size: 1.1rem;
  transition: all var(--transition-fast);
}
.modal__close:hover {
  background: rgba(43, 28, 20, 0.08);
  color: var(--color-text-primary);
}

.modal__body { padding: var(--space-lg); }
.modal__footer {
  padding: var(--space-md) var(--space-lg);
  border-top: var(--border-subtle);
  display: flex;
  justify-content: flex-end;
  gap: var(--space-sm);
}

/* ── Toast Notifications ── */
.toast-container {
  position: fixed;
  top: var(--space-lg);
  right: var(--space-lg);
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.toast {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  padding: var(--space-md) var(--space-lg);
  background: var(--color-bg-surface);
  border: var(--border-light);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  min-width: 320px;
  max-width: 420px;
  animation: toastSlideIn 0.4s var(--transition-spring);
  border-left: 3px solid var(--color-info);
}

.toast.toast-success { border-left-color: var(--color-success); }
.toast.toast-error { border-left-color: var(--color-error); }
.toast.toast-warning { border-left-color: var(--color-warning); }

.toast__icon { font-size: 1.2rem; flex-shrink: 0; }
.toast__content { flex: 1; }
.toast__title {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--color-text-primary);
}
.toast__message {
  font-size: 0.8rem;
  color: var(--color-text-muted);
}
.toast__close {
  background: none; border: none;
  color: var(--color-text-muted);
  cursor: pointer;
  padding: 4px;
  font-size: 0.9rem;
}

@keyframes toastSlideIn {
  from { transform: translateX(100%); opacity: 0; }
  to { transform: translateX(0); opacity: 1; }
}

/* ── Notification Dropdown ── */
.notif-dropdown {
  position: absolute;
  top: 100%;
  right: 0;
  width: 360px;
  background: var(--color-bg-surface);
  border: var(--border-light);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  z-index: 200;
  display: none;
  margin-top: var(--space-sm);
  animation: fadeIn 0.2s ease;
}

.notif-dropdown.active { display: block; }

.notif-dropdown__header {
  padding: var(--space-md) var(--space-lg);
  border-bottom: var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.notif-dropdown__item {
  display: flex;
  gap: var(--space-md);
  padding: var(--space-md) var(--space-lg);
  border-bottom: var(--border-subtle);
  transition: background var(--transition-fast);
  cursor: pointer;
}
.notif-dropdown__item:hover {
  background: rgba(43, 28, 20, 0.03);
}
.notif-dropdown__item.unread {
  background: rgba(30, 74, 56, 0.05);
}

/* ── Empty State ── */
.empty-state {
  text-align: center;
  padding: var(--space-3xl) var(--space-xl);
}
.empty-state__icon {
  font-size: 3rem;
  margin-bottom: var(--space-md);
  opacity: 0.4;
}
.empty-state__title {
  font-size: 1.15rem;
  font-weight: 600;
  margin-bottom: var(--space-sm);
}
.empty-state__text {
  font-size: 0.88rem;
  color: var(--color-text-muted);
  max-width: 360px;
  margin: 0 auto var(--space-lg);
}

/* ── Pagination ── */
.pagination {
  display: flex;
  align-items: center;
  gap: var(--space-xs);
}

.pagination__btn {
  width: 36px; height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-sm);
  background: transparent;
  border: var(--border-subtle);
  color: var(--color-text-secondary);
  cursor: pointer;
  font-size: 0.85rem;
  transition: all var(--transition-fast);
}
.pagination__btn:hover { background: rgba(43, 28, 20, 0.06); }
.pagination__btn.active {
  background: var(--color-accent-blue);
  color: white;
  border-color: var(--color-accent-blue);
}

/* ── Course Card ── */
.course-card {
  background: var(--glass-bg);
  border: var(--border-subtle);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: all var(--transition-base);
}

.course-card:hover {
  transform: translateY(-4px);
  border-color: rgba(30, 74, 56, 0.3);
  box-shadow: var(--shadow-glow-blue);
}

.course-card__banner {
  height: 120px;
  background: var(--gradient-primary);
  position: relative;
  display: flex;
  align-items: flex-end;
  padding: var(--space-md);
}

.course-card__code {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: rgba(255,255,255,0.9);
  background: rgba(0,0,0,0.3);
  padding: 3px 8px;
  border-radius: 4px;
}

.course-card__body {
  padding: var(--space-lg);
}

.course-card__title {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: var(--space-sm);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.course-card__meta {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  font-size: 0.8rem;
  color: var(--color-text-muted);
  margin-bottom: var(--space-md);
}

.course-card__footer {
  padding: var(--space-md) var(--space-lg);
  border-top: var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.courses-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: var(--space-lg);
}

/* ── Announcement Item ── */
.announcement-item {
  display: flex;
  gap: var(--space-md);
  padding: var(--space-lg);
  border-bottom: var(--border-subtle);
  transition: background var(--transition-fast);
}
.announcement-item:hover {
  background: rgba(43, 28, 20, 0.02);
}
.announcement-item__priority {
  width: 4px;
  border-radius: 2px;
  flex-shrink: 0;
}
.announcement-item__priority.urgent { background: var(--color-error); }
.announcement-item__priority.normal { background: var(--color-info); }
.announcement-item__priority.info { background: var(--color-text-muted); }

/* ── Chat / Message ── */
.message-item {
  display: flex;
  gap: var(--space-md);
  padding: var(--space-md);
  margin-bottom: var(--space-sm);
}

.message-item.sent {
  flex-direction: row-reverse;
}

.message-bubble {
  max-width: 70%;
  padding: var(--space-md) var(--space-lg);
  border-radius: var(--radius-md);
  background: var(--color-bg-input);
  border: var(--border-subtle);
  font-size: 0.88rem;
}

.message-item.sent .message-bubble {
  background: rgba(30, 74, 56, 0.15);
  border-color: rgba(30, 74, 56, 0.2);
}

.message-time {
  font-size: 0.7rem;
  color: var(--color-text-muted);
  margin-top: var(--space-xs);
}

/* ── Payment Method Selector ── */
.payment-method-option {
  flex: 1;
  min-width: 100px;
  padding: var(--space-md);
  text-align: center;
  border: var(--border-light);
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all var(--transition-fast);
}
.payment-method-option .icon { font-size: 1.6rem; margin-bottom: var(--space-xs); }
.payment-method-option.active {
  border-color: var(--color-accent-blue);
  background: rgba(30, 74, 56, 0.1);
}

/* ── QR Code Container ── */
.qr-container {
  width: 200px; height: 200px;
  background: white;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: var(--space-lg) auto;
  padding: var(--space-md);
}

/* ── Calendar / Attendance Heatmap ── */
.attendance-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 4px;
}

.attendance-cell {
  width: 100%;
  aspect-ratio: 1;
  border-radius: 4px;
  background: rgba(43, 28, 20, 0.05);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.7rem;
  color: var(--color-text-muted);
  transition: all var(--transition-fast);
}

.attendance-cell.present { background: rgba(79, 157, 110, 0.25); color: var(--color-success); }
.attendance-cell.absent { background: rgba(192, 57, 43, 0.2); color: var(--color-error); }
.attendance-cell.today { border: 1px solid var(--color-accent-blue); }

/* ── Ticket Item ── */
.ticket-item {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  padding: var(--space-lg);
  border-bottom: var(--border-subtle);
  transition: background var(--transition-fast);
}
.ticket-item:hover { background: rgba(43, 28, 20, 0.02); }

.ticket-id {
  font-family: monospace;
  font-size: 0.8rem;
  color: var(--color-accent-blue);
}

/* ── Landing Page Specific ── */
.hero {
  min-height: 92vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  position: relative;
  overflow: hidden;
  padding: var(--space-3xl) var(--space-lg);
}

/* ── Full-bleed Hero Photo Slideshow (covers the entire hero section) ── */
.hero-slideshow--fullbleed {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  border-radius: 0;
  margin-bottom: 0;
}

.hero-slideshow__slide {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 1.4s ease;
}
.hero-slideshow__slide.active {
  opacity: 1;
}

/* Brand-colored gradient overlay — ties the photos to the palette and keeps
   the overlaid text legible without resorting to a flat black scrim */
.hero-slideshow__gradient {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(15, 30, 23, 0.92) 0%, rgba(15, 30, 23, 0.72) 38%, rgba(30, 74, 56, 0.45) 68%, rgba(163, 115, 36, 0.38) 100%),
    linear-gradient(0deg, rgba(10, 20, 15, 0.35) 0%, rgba(10, 20, 15, 0) 45%);
  pointer-events: none;
}

.hero-slideshow__caption {
  position: absolute;
  left: var(--space-lg);
  bottom: var(--space-lg);
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  z-index: 2;
}

.hero-slideshow__dots {
  position: absolute;
  right: var(--space-lg);
  bottom: var(--space-lg);
  display: flex;
  gap: 6px;
  z-index: 2;
}

.hero-slideshow__dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.45);
  border: none;
  padding: 0;
  cursor: pointer;
  transition: all var(--transition-fast);
}
.hero-slideshow__dot.active {
  width: 20px;
  border-radius: 3px;
  background: #ffffff;
}

/* ── Hero content, overlaid on the slideshow ── */
.hero__content {
  position: relative;
  z-index: 2;
  max-width: 720px;
  text-align: left;
}

.hero--fullbleed .hero__badge {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.28);
  color: #ffffff;
  backdrop-filter: blur(6px);
}

.hero--fullbleed .hero__title {
  color: #ffffff;
}

.hero--fullbleed .hero__subtitle {
  color: rgba(255, 255, 255, 0.86);
  text-align: left;
  margin-left: 0;
}

.hero__motto {
  font-style: italic;
  font-size: 1.05rem;
  color: #e8c878;
  margin-bottom: var(--space-lg);
}

.hero--fullbleed .hero__actions {
  justify-content: flex-start;
}

.hero--fullbleed .hero__stats-row {
  display: flex;
  gap: var(--space-xl);
  flex-wrap: wrap;
  margin-top: var(--space-xl);
}
.hero--fullbleed .hero__stats-row .stat-block {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
}
.hero--fullbleed .hero__stats-row .stat-block .icon {
  width: 34px; height: 34px;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.14);
  color: #ffffff;
  font-size: 1.1rem;
  flex-shrink: 0;
}
.hero--fullbleed .hero__stats-row .stat-block > div > div:first-child {
  color: #ffffff !important;
}
.hero--fullbleed .hero__stats-row .stat-block .text-xs {
  color: rgba(255, 255, 255, 0.7);
}

@media (max-width: 900px) {
  .hero__content { text-align: center; }
  .hero--fullbleed .hero__subtitle { text-align: center; }
  .hero--fullbleed .hero__actions,
  .hero--fullbleed .hero__stats-row { justify-content: center; }
  .hero--fullbleed .hero__stats-row .stat-block { text-align: left; }
}

.hero__logo {
  width: 100px; height: 100px;
  margin: 0 auto var(--space-lg);
  animation: logoFloat 6s infinite ease-in-out;
}

@keyframes logoFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-12px); }
}

.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  padding: 6px 16px;
  background: rgba(30, 74, 56, 0.1);
  border: 1px solid rgba(30, 74, 56, 0.2);
  border-radius: 20px;
  font-size: 0.8rem;
  color: var(--color-accent-blue);
  font-weight: 500;
  margin-bottom: var(--space-lg);
}

.hero__title {
  font-size: 3.5rem;
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.03em;
  margin-bottom: var(--space-lg);
  color: var(--color-text-primary);
}

.hero__subtitle {
  font-size: 1.15rem;
  color: var(--color-text-secondary);
  max-width: 600px;
  margin: 0 auto var(--space-xl);
  line-height: 1.7;
}

.hero__actions {
  display: flex;
  gap: var(--space-md);
  justify-content: center;
  flex-wrap: wrap;
}

/* Features Section */
.features-section {
  padding: var(--space-3xl) 0;
}

.section-title {
  font-size: 2.2rem;
  font-weight: 800;
  text-align: center;
  margin-bottom: var(--space-sm);
  position: relative;
  padding-bottom: var(--space-md);
}
.section-title::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 44px;
  height: 3px;
  border-radius: 2px;
  background: var(--gradient-gold);
}

.section-subtitle {
  text-align: center;
  color: var(--color-text-muted);
  max-width: 560px;
  margin: 0 auto var(--space-2xl);
}

.feature-card {
  padding: var(--space-xl);
  background: linear-gradient(160deg, rgba(30, 74, 56, 0.045), rgba(255, 255, 255, 0.5));
  border: var(--border-subtle);
  border-radius: var(--radius-lg);
  transition: border-color var(--transition-fast);
}

.feature-card:hover {
  border-color: #d4d3cd;
}

.feature-card__icon {
  width: 44px; height: 44px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  margin-bottom: var(--space-lg);
  color: var(--color-accent-blue);
  background: rgba(30, 74, 56, 0.1);
}

.feature-card__title {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: var(--space-sm);
  position: relative;
  z-index: 1;
}

.feature-card__text {
  font-size: 0.88rem;
  color: var(--color-text-muted);
  line-height: 1.6;
  position: relative;
  z-index: 1;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: var(--space-lg);
}

/* Pricing Section */
.pricing-section {
  padding: var(--space-3xl) 0;
  background: rgba(43, 28, 20, 0.01);
}

.pricing-card {
  max-width: 480px;
  margin: 0 auto;
  padding: var(--space-2xl);
  background: var(--glass-bg);
  border: var(--border-light);
  border-radius: var(--radius-xl);
  text-align: center;
  position: relative;
}

.pricing-card__badge {
  position: absolute;
  top: -12px; left: 50%;
  transform: translateX(-50%);
  padding: 5px 20px;
  background: var(--gradient-gold);
  color: var(--color-text-inverse);
  font-size: 0.75rem;
  font-weight: 700;
  border-radius: 20px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.pricing-card__price {
  font-family: var(--font-heading);
  font-size: 3.5rem;
  font-weight: 800;
  color: var(--color-text-primary);
  margin: var(--space-lg) 0 var(--space-xs);
}

.pricing-card__price span {
  font-size: 1rem;
  font-weight: 400;
  color: var(--color-text-muted);
}

.pricing-card__features {
  text-align: left;
  margin: var(--space-xl) 0;
}

.pricing-card__features li {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  padding: var(--space-sm) 0;
  font-size: 0.9rem;
  color: var(--color-text-secondary);
}

.pricing-card__features li::before {
  content: '✓';
  color: var(--color-success);
  font-weight: 700;
}

/* Landing Navbar */
.landing-nav {
  position: fixed;
  top: 0; left: 0;
  width: 100%;
  z-index: 100;
  padding: var(--space-md) 0;
  transition: all var(--transition-base);
}

.landing-nav.scrolled {
  background: rgba(255, 253, 248, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: var(--border-subtle);
}

.landing-nav .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.landing-nav__brand {
  display: flex;
  align-items: center;
  gap: var(--space-md);
}

.landing-nav__brand img {
  width: 40px; height: 40px;
}

.landing-nav__brand-name {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 700;
  color: #ffffff;
  transition: color var(--transition-fast);
}

.landing-nav__links {
  display: flex;
  align-items: center;
  gap: var(--space-xl);
}

.landing-nav__link {
  font-size: 0.88rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.85);
  transition: color var(--transition-fast);
}
.landing-nav__link:hover { color: #ffffff; }

.landing-nav .mobile-menu-toggle {
  color: #ffffff;
}

/* Mobile dropdown menu — always a solid light panel with dark text,
   regardless of whether the nav itself is in its transparent-over-hero
   or scrolled state */
@media (max-width: 1024px) {
  .landing-nav__links.landing-nav__links--open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 64px;
    right: 24px;
    background: var(--color-bg-surface);
    padding: 16px;
    border-radius: var(--radius-md);
    border: var(--border-light);
    box-shadow: var(--shadow-lg);
    gap: var(--space-md);
  }
  .landing-nav__links--open .landing-nav__link,
  .landing-nav.scrolled .landing-nav__links--open .landing-nav__link {
    color: var(--color-text-secondary);
  }
  .landing-nav__links--open .landing-nav__link:hover {
    color: var(--color-text-primary);
  }
}

/* Once scrolled past the hero, switch to a solid light bar with dark text */
.landing-nav.scrolled .landing-nav__brand-name {
  color: var(--color-text-primary);
}
.landing-nav.scrolled .landing-nav__link {
  color: var(--color-text-secondary);
}
.landing-nav.scrolled .landing-nav__link:hover {
  color: var(--color-text-primary);
}
.landing-nav.scrolled .mobile-menu-toggle {
  color: var(--color-text-primary);
}

/* Login Page */
.login-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-xl);
}

.login-card {
  width: 100%;
  max-width: 440px;
  background: var(--glass-bg);
  backdrop-filter: var(--glass-blur);
  border: var(--border-light);
  border-radius: var(--radius-xl);
  padding: var(--space-2xl);
  box-shadow: var(--shadow-lg);
}

.login-card__logo {
  width: 72px; height: 72px;
  margin: 0 auto var(--space-lg);
}

.login-card__title {
  text-align: center;
  font-size: 1.5rem;
  margin-bottom: var(--space-xs);
}

.login-card__subtitle {
  text-align: center;
  font-size: 0.88rem;
  color: var(--color-text-muted);
  margin-bottom: var(--space-xl);
}

/* Role Tabs on Login */
.role-tabs {
  display: flex;
  background: var(--color-bg-input);
  border-radius: var(--radius-sm);
  padding: 3px;
  margin-bottom: var(--space-xl);
}

.role-tab {
  flex: 1;
  padding: 8px;
  text-align: center;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--color-text-muted);
  border-radius: 6px;
  cursor: pointer;
  transition: all var(--transition-fast);
  background: transparent;
  border: none;
  font-family: var(--font-body);
}

.role-tab.active {
  background: var(--color-accent-blue);
  color: white;
  box-shadow: var(--shadow-sm);
}

/* MFA Step */
.mfa-step {
  text-align: center;
}

.otp-inputs {
  display: flex;
  gap: var(--space-sm);
  justify-content: center;
  margin: var(--space-xl) 0;
}

.otp-input {
  width: 48px; height: 56px;
  text-align: center;
  font-size: 1.4rem;
  font-weight: 700;
  font-family: var(--font-heading);
  background: var(--color-bg-input);
  border: var(--border-light);
  border-radius: var(--radius-sm);
  color: var(--color-text-primary);
  transition: all var(--transition-fast);
}

.otp-input:focus {
  outline: none;
  border-color: var(--color-accent-blue);
  box-shadow: 0 0 0 3px rgba(30, 74, 56, 0.15);
}

/* ── Footer ── */
.site-footer {
  padding: var(--space-3xl) 0 var(--space-xl);
  border-top: var(--border-subtle);
  background: rgba(43, 28, 20, 0.035);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: var(--space-2xl);
  margin-bottom: var(--space-2xl);
}

.footer-brand p {
  font-size: 0.85rem;
  margin-top: var(--space-md);
  max-width: 300px;
}

.footer-col h4 {
  font-size: 0.88rem;
  font-weight: 700;
  margin-bottom: var(--space-md);
  color: var(--color-text-primary);
}

.footer-col a {
  display: block;
  font-size: 0.85rem;
  color: var(--color-text-muted);
  padding: var(--space-xs) 0;
  transition: color var(--transition-fast);
}
.footer-col a:hover { color: var(--color-text-primary); }

.footer-bottom {
  padding-top: var(--space-xl);
  border-top: var(--border-subtle);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.8rem;
  color: var(--color-text-muted);
}

/* ── Animations ── */
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

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

@keyframes slideInLeft {
  from { opacity: 0; transform: translateX(-20px); }
  to { opacity: 1; transform: translateX(0); }
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}

.animate-fadeIn { animation: fadeIn 0.5s ease; }
.animate-fadeInUp { animation: fadeInUp 0.5s ease; }
.animate-slideInLeft { animation: slideInLeft 0.5s ease; }

/* Staggered animations */
.stagger > *:nth-child(1) { animation-delay: 0.05s; }
.stagger > *:nth-child(2) { animation-delay: 0.1s; }
.stagger > *:nth-child(3) { animation-delay: 0.15s; }
.stagger > *:nth-child(4) { animation-delay: 0.2s; }
.stagger > *:nth-child(5) { animation-delay: 0.25s; }
.stagger > *:nth-child(6) { animation-delay: 0.3s; }

/* ── Skeleton Loading ── */
.skeleton {
  background: linear-gradient(90deg, rgba(43, 28, 20, 0.04) 25%, rgba(43, 28, 20, 0.08) 50%, rgba(43, 28, 20, 0.04) 75%);
  background-size: 200% 100%;
  animation: skeleton-loading 1.5s infinite;
  border-radius: var(--radius-sm);
}

@keyframes skeleton-loading {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* ── Scrollbar ── */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}
::-webkit-scrollbar-track {
  background: transparent;
}
::-webkit-scrollbar-thumb {
  background: rgba(43, 28, 20, 0.1);
  border-radius: 3px;
}
::-webkit-scrollbar-thumb:hover {
  background: rgba(43, 28, 20, 0.2);
}

/* ── Mobile Menu Toggle ── */
.mobile-menu-toggle {
  display: none;
  background: transparent;
  border: none;
  color: var(--color-text-primary);
  font-size: 1.5rem;
  cursor: pointer;
  padding: var(--space-sm);
}

/* ── Mobile Bottom Tab Bar ── */
.mobile-tabbar {
  display: none;
  position: fixed;
  bottom: 0; left: 0;
  width: 100%;
  height: 64px;
  background: rgba(255, 253, 248, 0.95);
  backdrop-filter: var(--glass-blur);
  border-top: var(--border-subtle);
  z-index: 100;
  padding: 0 var(--space-sm);
}

.mobile-tabbar__items {
  display: flex;
  height: 100%;
}

.mobile-tabbar__item {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  color: var(--color-text-muted);
  font-size: 0.65rem;
  font-weight: 500;
  text-decoration: none;
  transition: color var(--transition-fast);
}

.mobile-tabbar__item .icon { font-size: 1.3rem; }

.mobile-tabbar__item.active {
  color: var(--color-accent-blue);
}

/* ── Responsive ── */
@media (max-width: 1024px) {
  .sidebar {
    transform: translateX(-100%);
  }
  .sidebar.open {
    transform: translateX(0);
  }
  .main-content {
    margin-left: 0;
  }
  .mobile-menu-toggle { display: block; }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }

  .features-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 768px) {
  h1 { font-size: 2rem; }
  h2 { font-size: 1.6rem; }

  .hero__title { font-size: 2.4rem; }
  .hero__subtitle { font-size: 1rem; }

  .page-content { padding: var(--space-md); }
  .topbar { padding: 0 var(--space-md); }

  .stats-grid {
    grid-template-columns: 1fr 1fr;
  }

  .courses-grid {
    grid-template-columns: 1fr;
  }

  .features-grid {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr;
  }

  .footer-bottom {
    flex-direction: column;
    gap: var(--space-sm);
    text-align: center;
  }

  .landing-nav__links {
    display: none;
  }

  .mobile-tabbar { display: block; }
  .main-content { padding-bottom: 80px; }

  .topbar__search input {
    width: 180px;
  }
  .topbar__search input:focus {
    width: 220px;
  }

  .data-table {
    display: block;
    overflow-x: auto;
  }
}

@media (max-width: 480px) {
  .hero__title { font-size: 1.8rem; }

  .stats-grid {
    grid-template-columns: 1fr;
  }

  .topbar__search { display: none; }
  .topbar__title { font-size: 1.05rem; }
  .topbar__right { gap: var(--space-sm); }

  .hero__actions {
    flex-direction: column;
    align-items: stretch;
  }

  .login-card {
    padding: var(--space-lg);
  }

  .otp-input {
    width: 40px; height: 48px;
    font-size: 1.1rem;
  }
}

/* ── Dark Closing Band (About/CTA) ── */
.cta-band {
  background: var(--color-accent-blue);
  padding: var(--space-3xl) 0;
  position: relative;
  overflow: hidden;
}
.cta-band::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255,255,255,0.06) 0%, rgba(255,255,255,0) 40%);
  pointer-events: none;
}
.cta-band .section-title,
.cta-band h2 {
  color: #ffffff;
}
.cta-band .section-subtitle {
  color: rgba(255, 255, 255, 0.78);
}
.cta-band .btn-secondary {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.28);
  color: #ffffff;
}
.cta-band .btn-secondary:hover {
  background: rgba(255, 255, 255, 0.18);
}
.cta-band .btn-primary {
  background: #ffffff;
  color: var(--color-accent-blue);
}
.cta-band .btn-primary:hover {
  background: #f0efe9;
}

/* ── Value Band (horizontal divided list, replaces boxed cards) ── */
.value-band {
  display: flex;
  border: var(--border-subtle);
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: rgba(255, 255, 255, 0.5);
}
.value-band__item {
  flex: 1;
  padding: var(--space-xl) var(--space-lg);
  border-right: var(--border-subtle);
}
.value-band__item:last-child { border-right: none; }
.value-band__item .icon {
  width: 44px; height: 44px;
  border-radius: var(--radius-sm);
  color: var(--color-accent-blue);
  font-size: 1.3rem;
  margin-bottom: var(--space-md);
  background: rgba(30, 74, 56, 0.1);
}
.value-band__item:nth-child(even) .icon {
  color: var(--color-accent-gold);
  background: rgba(163, 115, 36, 0.12);
}
@media (max-width: 900px) {
  .value-band { flex-direction: column; }
  .value-band__item { border-right: none; border-bottom: var(--border-subtle); }
  .value-band__item:last-child { border-bottom: none; }
}

/* ── Compact Feature Row List (replaces dense card grid) ── */
.feature-row-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 var(--space-2xl);
}
.feature-row {
  display: flex;
  gap: var(--space-md);
  padding: var(--space-lg) 0;
  border-bottom: var(--border-subtle);
}
.feature-row .icon {
  width: 40px; height: 40px;
  border-radius: var(--radius-sm);
  flex-shrink: 0;
  color: var(--color-accent-blue);
  font-size: 1.2rem;
  background: rgba(30, 74, 56, 0.1);
}
.feature-row__title {
  font-weight: 700;
  font-size: 0.95rem;
  margin-bottom: 4px;
}
.feature-row__text {
  font-size: 0.85rem;
  color: var(--color-text-muted);
  line-height: 1.55;
}
@media (max-width: 768px) {
  .feature-row-list { grid-template-columns: 1fr; }
}

/* ── Numbered Program Card ── */
.numbered-card {
  padding: var(--space-xl);
  border: var(--border-subtle);
  border-radius: var(--radius-lg);
  background: linear-gradient(160deg, rgba(30, 74, 56, 0.05), rgba(255, 255, 255, 0.4));
  position: relative;
}
.numbered-card__num {
  font-family: var(--font-heading);
  font-size: 2.5rem;
  font-weight: 800;
  color: rgba(163, 115, 36, 0.2);
  line-height: 1;
  margin-bottom: var(--space-md);
}

/* ── Asymmetric Campus Layout ── */
.campus-layout {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: var(--space-xl);
  align-items: stretch;
}
.campus-featured {
  border: var(--border-subtle);
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  background: rgba(163, 115, 36, 0.05);
}
.campus-featured__image {
  aspect-ratio: 16 / 10;
  overflow: hidden;
}
.campus-featured__image img {
  width: 100%; height: 100%;
  object-fit: cover;
}
.campus-featured__body {
  padding: var(--space-xl);
}
.campus-featured__tag {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--color-accent-blue);
  margin-bottom: var(--space-sm);
}
.campus-list {
  display: flex;
  flex-direction: column;
  gap: 0;
  border: var(--border-subtle);
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: rgba(30, 74, 56, 0.04);
}
.campus-list__item {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  padding: var(--space-lg);
  border-bottom: var(--border-subtle);
}
.campus-list__item:last-child { border-bottom: none; }
.campus-list__item .icon {
  width: 40px; height: 40px;
  border-radius: var(--radius-sm);
  flex-shrink: 0;
  color: var(--color-accent-blue);
  font-size: 1.15rem;
  background: rgba(30, 74, 56, 0.1);
}
.campus-list__item:nth-child(even) .icon {
  color: var(--color-accent-gold);
  background: rgba(163, 115, 36, 0.12);
}
.campus-list__title {
  font-weight: 700;
  font-size: 0.92rem;
  margin-bottom: 2px;
}
.campus-list__text {
  font-size: 0.8rem;
  color: var(--color-text-muted);
  line-height: 1.5;
}
@media (max-width: 900px) {
  .campus-layout { grid-template-columns: 1fr; }
}

/* ── Photo Gallery — Single-Row Auto-Rotating Carousel ── */
.moments-carousel {
  overflow: hidden;
  position: relative;
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 4%, #000 96%, transparent 100%);
  mask-image: linear-gradient(90deg, transparent 0, #000 4%, #000 96%, transparent 100%);
}

.moments-carousel__track {
  display: flex;
  gap: var(--space-md);
  width: max-content;
  animation: momentsScroll 36s linear infinite;
}
.moments-carousel:hover .moments-carousel__track {
  animation-play-state: paused;
}

@keyframes momentsScroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

.gallery-item {
  border-radius: var(--radius-md);
  overflow: hidden;
  cursor: pointer;
  position: relative;
  box-shadow: var(--shadow-sm);
  transition: box-shadow var(--transition-base);
  flex-shrink: 0;
  width: 300px;
  height: 230px;
}
.gallery-item:hover {
  box-shadow: var(--shadow-lg);
}
.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-slow);
  display: block;
}
.gallery-item:hover img {
  transform: scale(1.05);
}

.gallery-item__scrim {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0) 55%, rgba(0,0,0,0.55) 100%);
  pointer-events: none;
}
.gallery-item__caption {
  position: absolute;
  left: var(--space-md);
  bottom: var(--space-sm);
  right: var(--space-md);
  color: #ffffff;
  font-size: 0.85rem;
  font-weight: 600;
  z-index: 2;
  text-shadow: 0 1px 3px rgba(0,0,0,0.4);
}

@media (max-width: 640px) {
  .gallery-item { width: 230px; height: 180px; }
}

@media (prefers-reduced-motion: reduce) {
  .moments-carousel__track { animation: none; }
}

.gallery-lightbox img {
  max-width: 92vw;
  max-height: 88vh;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  display: block;
}
.gallery-lightbox__close {
  position: absolute;
  top: -44px;
  right: 0;
  width: 36px; height: 36px;
  border-radius: var(--radius-full);
  background: rgba(255, 255, 255, 0.92);
  color: var(--color-text-primary);
  border: none;
  cursor: pointer;
  font-size: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ── Print Styles (for transcripts) ── */
@media print {
  .sidebar,
  .topbar,
  .mobile-tabbar,
  .btn { display: none !important; }

  .main-content {
    margin-left: 0 !important;
  }

  body {
    background: white;
    color: #333;
  }

  .glass-card,
  .card {
    background: white;
    border: 1px solid #ddd;
    box-shadow: none;
  }
}

/* Audit: visible keyboard focus and accessible motion preferences. */
:focus-visible { outline: 3px solid var(--color-accent-gold, #a86b20); outline-offset: 3px; }
[hidden] { display: none !important; }
.demo-notice { padding: 12px 16px; margin: 12px 0; border: 1px solid #b89255; border-radius: 8px; background: #fff5df; color: #573b13; font-size: .85rem; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}
