/* =========================================================
   Goodwill Learning Centre — Modern LMS Design System
   Premium SaaS-style dashboard layer (Notion / Linear / Stripe feel).
   Loaded LAST so it refines the existing design system.
   ========================================================= */

:root {
  /* Brand palette (per spec) */
  --gw-primary: #2563EB;
  --gw-primary-600: #1D4ED8;
  --gw-primary-700: #1E40AF;
  --gw-secondary: #7C3AED;
  --gw-secondary-600: #6D28D9;
  --gw-success: #10B981;
  --gw-warning: #F59E0B;
  --gw-danger: #EF4444;

  --gw-bg: #F8FAFC;
  --gw-surface: #FFFFFF;
  --gw-border: #E2E8F0;
  --gw-border-soft: #EDF1F6;
  --gw-text: #0F172A;
  --gw-text-muted: #64748B;
  --gw-navbar: #FFFFFF;

  /* Radii */
  --gw-r-sm: 12px;
  --gw-r: 16px;
  --gw-r-lg: 20px;
  --gw-r-xl: 24px;

  /* Shadows */
  --gw-shadow-xs: 0 1px 2px rgba(15, 23, 42, 0.05);
  --gw-shadow-sm: 0 1px 3px rgba(15, 23, 42, 0.06), 0 1px 2px rgba(15, 23, 42, 0.04);
  --gw-shadow: 0 4px 16px -4px rgba(15, 23, 42, 0.08), 0 2px 6px -2px rgba(15, 23, 42, 0.05);
  --gw-shadow-md: 0 12px 32px -12px rgba(15, 23, 42, 0.16);
  --gw-shadow-lg: 0 24px 60px -20px rgba(15, 23, 42, 0.22);

  --gw-sidebar-w: 17rem;
  --gw-sidebar-w-collapsed: 5.25rem;
  --gw-navbar-h: 4.75rem;

  --gw-ease: cubic-bezier(0.4, 0, 0.2, 1);
}

/* Soften page background to match premium look */
body, .dashboard-body { background-color: var(--gw-bg); }

/* Glassmorphism surface helper */
.gw-glass {
  background: rgba(255, 255, 255, 0.72);
  -webkit-backdrop-filter: blur(18px) saturate(160%);
  backdrop-filter: blur(18px) saturate(160%);
  border: 1px solid rgba(255, 255, 255, 0.6);
}

/* Generic premium card surface */
.gw-card {
  position: relative;
  background: var(--gw-surface);
  border: 1px solid var(--gw-border);
  border-radius: var(--gw-r-lg);
  box-shadow: var(--gw-shadow-sm);
  transition: box-shadow .25s var(--gw-ease), transform .25s var(--gw-ease), border-color .25s var(--gw-ease);
}
.gw-card:hover { box-shadow: var(--gw-shadow-md); transform: translateY(-3px); }
.gw-card-pad { padding: 1.5rem; }
.gw-card-pad-sm { padding: 1.1rem 1.25rem; }

/* Section heading */
.gw-section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .75rem;
  margin: 2.25rem 0 1.1rem;
}
.gw-section-head h2 {
  display: flex;
  align-items: center;
  gap: .6rem;
  font-size: 1.2rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--gw-text);
}
.gw-section-head .gw-sec-icon {
  width: 2rem; height: 2rem;
  border-radius: 10px;
  display: inline-flex; align-items: center; justify-content: center;
  background: rgba(37, 99, 235, 0.1); color: var(--gw-primary);
  font-size: .9rem;
}
.gw-section-head .gw-link {
  font-size: .82rem; font-weight: 600; color: var(--gw-primary);
  display: inline-flex; align-items: center; gap: .35rem;
}
.gw-section-head .gw-link:hover { color: var(--gw-primary-600); }

/* =========================================================
   SIDEBAR — collapsible (expanded / icon mode)
   ========================================================= */
.sidebar {
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  width: var(--gw-sidebar-w);
  background: linear-gradient(180deg, #0F172A 0%, #111c33 55%, #0b1424 100%);
  border-right: 1px solid rgba(255, 255, 255, 0.06);
  padding: 1.1rem .85rem;
  transition: width .28s var(--gw-ease), left .28s var(--gw-ease);
  z-index: 60;
}
.sidebar::before {
  content: "";
  position: absolute; inset: 0;
  background-image:
    radial-gradient(circle at 22% 0%, rgba(37, 99, 235, 0.22), transparent 45%),
    radial-gradient(circle at 100% 100%, rgba(124, 58, 237, 0.16), transparent 42%);
  pointer-events: none; opacity: .9;
}
.sidebar > * { position: relative; z-index: 1; }

.sidebar-brand {
  display: flex; align-items: center; gap: .7rem;
  margin: 0 .35rem 1.4rem; padding-bottom: 1.1rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  min-height: 3.25rem;
}
.sidebar-brand-logo {
  width: 2.6rem; height: 2.6rem; flex-shrink: 0;
  border-radius: 14px; overflow: hidden; background: #fff;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
  display: flex; align-items: center; justify-content: center;
}
.sidebar-brand-logo img { width: 100%; height: 100%; object-fit: contain; }
.sidebar-brand-text { display: flex; flex-direction: column; line-height: 1.15; overflow: hidden; white-space: nowrap; }
.sidebar-brand-name { font-size: 1.02rem; font-weight: 800; color: #fff; letter-spacing: -0.01em; }
.sidebar-brand-sub {
  font-size: .64rem; font-weight: 600; text-transform: uppercase;
  letter-spacing: 0.14em; color: rgba(165, 190, 220, 0.85);
}

.sidebar-section {
  display: flex; align-items: center; gap: .55rem;
  font-size: .65rem; font-weight: 700; letter-spacing: 0.13em;
  color: rgba(148, 178, 214, 0.6);
  padding: .95rem .7rem .4rem; margin-top: 0;
  white-space: nowrap; overflow: hidden;
}
.sidebar-section::after {
  content: ""; flex: 1; height: 1px;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.14), transparent);
}

.sidebar-link {
  position: relative;
  display: flex; align-items: center; gap: .8rem;
  padding: .62rem .72rem; border-radius: 11px;
  color: rgba(226, 236, 247, 0.78);
  font-weight: 500; font-size: .9rem;
  margin: .12rem 0; white-space: nowrap; overflow: hidden;
  transition: background .18s var(--gw-ease), color .18s var(--gw-ease), transform .18s var(--gw-ease);
}
.sidebar-link::before {
  content: ""; position: absolute; left: 0; top: 50%;
  transform: translateY(-50%) scaleY(0);
  width: 3px; height: 60%; border-radius: 0 4px 4px 0;
  background: linear-gradient(180deg, var(--gw-primary), var(--gw-secondary));
  transition: transform .2s var(--gw-ease);
}
.sidebar-link:hover { background: rgba(255, 255, 255, 0.06); color: #fff; transform: translateX(2px); }
.sidebar-link.active {
  background: linear-gradient(90deg, rgba(37, 99, 235, 0.24), rgba(124, 58, 237, 0.10));
  color: #fff; font-weight: 600; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.06);
}
.sidebar-link.active::before { transform: translateY(-50%) scaleY(1); }
.sidebar-link-icon { width: 1.25rem; height: 1.25rem; flex-shrink: 0; color: inherit; opacity: .92; }
.sidebar-link-text { transition: opacity .2s var(--gw-ease); }

.sidebar-footer { border-top: 1px solid rgba(255, 255, 255, 0.08); margin-top: auto; padding-top: .9rem; }
.sidebar-footer .btn-ghost {
  width: 100%; justify-content: flex-start; border-radius: 11px; padding: .62rem .72rem;
  color: rgba(226, 236, 247, 0.85) !important; font-weight: 500; font-size: .9rem;
  transition: background .15s ease, color .15s ease;
}
.sidebar-footer .btn-ghost:hover { background: rgba(239, 68, 68, 0.16); color: #ffd9d9 !important; }

.sidebar-nav::-webkit-scrollbar { width: 6px; }
.sidebar-nav::-webkit-scrollbar-thumb { background: rgba(255, 255, 255, 0.14); border-radius: 999px; }
.sidebar-nav::-webkit-scrollbar-thumb:hover { background: rgba(255, 255, 255, 0.26); }

/* Collapse toggle button (inside sidebar footer) */
.sidebar-collapse-btn {
  width: 100%; display: flex; align-items: center; gap: .7rem;
  padding: .55rem .7rem; margin-bottom: .5rem;
  border: 1px solid rgba(255, 255, 255, 0.1); border-radius: 11px;
  background: rgba(255, 255, 255, 0.04); color: rgba(226, 236, 247, 0.85);
  font-size: .82rem; font-weight: 600; cursor: pointer;
  transition: background .18s ease, color .18s ease;
}
.sidebar-collapse-btn:hover { background: rgba(255, 255, 255, 0.1); color: #fff; }
.sidebar-collapse-btn i { font-size: .85rem; transition: transform .28s var(--gw-ease); }

/* Collapsed state */
.sidebar.collapsed { width: var(--gw-sidebar-w-collapsed); padding-left: .6rem; padding-right: .6rem; }
.sidebar.collapsed .sidebar-brand-text,
.sidebar.collapsed .sidebar-section,
.sidebar.collapsed .sidebar-link-text,
.sidebar.collapsed .sidebar-collapse-btn .collapse-label { opacity: 0; width: 0; overflow: hidden; }
.sidebar.collapsed .sidebar-section { padding: .9rem 0 .3rem; }
.sidebar.collapsed .sidebar-section::after { display: none; }
.sidebar.collapsed .sidebar-brand { justify-content: center; margin: 0 0 1.4rem; padding-bottom: 1.1rem; }
.sidebar.collapsed .sidebar-link { justify-content: center; padding-left: 0; padding-right: 0; }
.sidebar.collapsed .sidebar-footer .btn-ghost,
.sidebar.collapsed .sidebar-collapse-btn { justify-content: center; }
.sidebar.collapsed .sidebar-collapse-btn { gap: 0; }
.sidebar.collapsed .sidebar-collapse-btn i { transform: rotate(180deg); }

/* Tooltip on collapsed links */
.sidebar.collapsed .sidebar-link { position: relative; }
.sidebar.collapsed .sidebar-link:hover .sidebar-link-text {
  opacity: 1; width: auto; overflow: visible; position: absolute; left: calc(100% + .6rem); top: 50%;
  transform: translateY(-50%); white-space: nowrap;
  background: #0F172A; color: #fff; padding: .4rem .7rem; border-radius: 8px;
  font-size: .8rem; font-weight: 600; box-shadow: var(--gw-shadow-md);
  border: 1px solid rgba(255, 255, 255, 0.1); pointer-events: none; z-index: 80;
}

/* =========================================================
   TOP NAVBAR
   ========================================================= */
.gw-topbar {
  position: sticky; top: 0.65rem; z-index: 40;
  display: flex; align-items: center; gap: 1rem;
  height: var(--gw-navbar-h);
  padding: 0 1.75rem;
  margin: 0 0 1.5rem;
}
.gw-topbar-greeting { min-width: 0; }
.gw-topbar-greeting h1 {
  font-size: 1.4rem; font-weight: 800; letter-spacing: -0.02em; color: var(--gw-text);
  line-height: 1.15; display: flex; align-items: center; gap: .5rem;
}
.gw-topbar-greeting p { font-size: .85rem; color: var(--gw-text-muted); margin-top: .15rem; }
.gw-topbar-spacer { flex: 1; }

.gw-top-actions { display: flex; align-items: center; gap: .5rem; }
.gw-icon-btn {
  position: relative;
  width: 2.75rem; height: 2.75rem;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 14px; border: 1px solid var(--gw-border); background: #fff;
  color: var(--gw-text-muted); font-size: 1.05rem; cursor: pointer;
  transition: background .18s ease, color .18s ease, border-color .18s ease, transform .18s ease;
}
.gw-icon-btn:hover { background: #F8FAFC; color: var(--gw-primary); border-color: rgba(37, 99, 235, 0.35); transform: translateY(-1px); }
.gw-icon-btn .gw-dot {
  position: absolute; top: .55rem; right: .6rem;
  width: .55rem; height: .55rem; border-radius: 50%;
  background: var(--gw-danger); border: 2px solid #fff;
  animation: gwPulse 2s infinite;
}
@keyframes gwPulse {
  0% { box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.5); }
  70% { box-shadow: 0 0 0 6px rgba(239, 68, 68, 0); }
  100% { box-shadow: 0 0 0 0 rgba(239, 68, 68, 0); }
}

.gw-user {
  display: flex; align-items: center; gap: .65rem;
  padding: .35rem .35rem .35rem .9rem; margin-left: .25rem;
  border: 1px solid var(--gw-border); border-radius: 999px; background: #fff;
  cursor: pointer; transition: border-color .18s ease, box-shadow .18s ease;
}
.gw-user:hover { border-color: rgba(37, 99, 235, 0.35); box-shadow: var(--gw-shadow-sm); }
.gw-user-name { font-size: .85rem; font-weight: 600; color: var(--gw-text); line-height: 1.1; }
.gw-user-role { font-size: .7rem; color: var(--gw-text-muted); }
.gw-avatar {
  width: 2.4rem; height: 2.4rem; border-radius: 50%; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: .95rem; color: #fff;
  background: linear-gradient(135deg, var(--gw-primary), var(--gw-secondary));
  box-shadow: 0 4px 10px rgba(37, 99, 235, 0.3);
}
.gw-avatar.sm { width: 2rem; height: 2rem; font-size: .8rem; }

/* Dropdown menus */
.gw-menu {
  position: absolute; top: calc(100% + .6rem); right: 0;
  min-width: 18rem; max-width: 22rem;
  background: #fff; border: 1px solid var(--gw-border); border-radius: var(--gw-r);
  box-shadow: var(--gw-shadow-lg); padding: .5rem;
  opacity: 0; visibility: hidden; transform: translateY(-8px) scale(.98);
  transform-origin: top right;
  transition: opacity .2s var(--gw-ease), transform .2s var(--gw-ease), visibility .2s;
  z-index: 70;
}
.gw-menu.open { opacity: 1; visibility: visible; transform: translateY(0) scale(1); }
.gw-menu-head { padding: .6rem .8rem .5rem; border-bottom: 1px solid var(--gw-border-soft); margin-bottom: .4rem; }
.gw-menu-head .gw-user-name { font-size: .95rem; }
.gw-menu-item {
  display: flex; align-items: center; gap: .7rem;
  padding: .6rem .8rem; border-radius: 12px; color: var(--gw-text);
  font-size: .875rem; font-weight: 500; cursor: pointer; text-decoration: none;
  transition: background .15s ease, color .15s ease;
}
.gw-menu-item i { width: 1.1rem; text-align: center; color: var(--gw-text-muted); }
.gw-menu-item:hover { background: #F1F5F9; color: var(--gw-primary); }
.gw-menu-item.danger:hover { background: rgba(239, 68, 68, 0.08); color: var(--gw-danger); }
.gw-menu-item.danger:hover i { color: var(--gw-danger); }
.gw-menu-divider { height: 1px; background: var(--gw-border-soft); margin: .4rem .2rem; }

/* Notifications list inside menu */
.gw-notif-item {
  display: flex; gap: .7rem; padding: .7rem .8rem; border-radius: 12px;
  cursor: pointer; transition: background .15s ease; text-decoration: none; color: inherit;
}
.gw-notif-item:hover { background: #F8FAFC; }
.gw-notif-ico {
  width: 2.2rem; height: 2.2rem; border-radius: 10px; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center; font-size: .85rem; color: #fff;
}
.gw-notif-ico.blue { background: linear-gradient(135deg, #3B82F6, #2563EB); }
.gw-notif-ico.green { background: linear-gradient(135deg, #34D399, #059669); }
.gw-notif-ico.amber { background: linear-gradient(135deg, #FBBF24, #F59E0B); }
.gw-notif-ico.violet { background: linear-gradient(135deg, #A78BFA, #7C3AED); }
.gw-notif-ico.red { background: linear-gradient(135deg, #FB7185, #EF4444); }
.gw-notif-body { min-width: 0; flex: 1; }
.gw-notif-body .t { font-size: .85rem; font-weight: 600; color: var(--gw-text); }
.gw-notif-body .d { font-size: .8rem; color: var(--gw-text-muted); margin-top: .1rem; line-height: 1.4; }
.gw-notif-body .time { font-size: .72rem; color: #94A3B8; margin-top: .2rem; }
.gw-notif-empty { padding: 2rem 1rem; text-align: center; color: var(--gw-text-muted); font-size: .85rem; }

/* =========================================================
   APP SHELL — sidebar + scrollable content
   ========================================================= */
.dashboard-body { height: 100vh; }
.dashboard-main {
  height: 100vh; overflow-y: auto; overflow-x: hidden;
  scroll-behavior: smooth; padding: 0 1.5rem 2rem;
  transition: margin-left .28s var(--gw-ease);
}
@media (min-width: 768px) {
  .dashboard-main { margin-left: var(--gw-sidebar-w); padding: 0 2rem 2.5rem; }
  body.sidebar-collapsed .dashboard-main { margin-left: var(--gw-sidebar-w-collapsed); }
}
.dashboard-main::-webkit-scrollbar { width: 10px; }
.dashboard-main::-webkit-scrollbar-track { background: transparent; }
.dashboard-main::-webkit-scrollbar-thumb {
  background: rgba(15, 23, 42, 0.16); border-radius: 999px; border: 3px solid transparent; background-clip: content-box;
}
.dashboard-main::-webkit-scrollbar-thumb:hover { background: rgba(15, 23, 42, 0.3); background-clip: content-box; }

/* =========================================================
   KPI CARDS (icon + value + % change + sparkline)
   ========================================================= */
.kpi-grid { display: grid; gap: 1.1rem; margin-top: 1.25rem; }
@media (min-width: 640px) { .kpi-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .kpi-grid { grid-template-columns: repeat(4, 1fr); } }.kpi-card {
  position: relative; overflow: hidden;
  background: var(--gw-surface); border: 1px solid var(--gw-border);
  border-radius: var(--gw-r-lg); padding: 1.35rem 1.4rem 1rem;
  box-shadow: var(--gw-shadow-sm);
  transition: box-shadow .25s var(--gw-ease), transform .25s var(--gw-ease), border-color .25s var(--gw-ease);
}
.kpi-card::before {
  content: ""; position: absolute; top: 0; left: 0; right: 0; height: 4px;
  background: linear-gradient(90deg, var(--gw-primary), var(--gw-secondary));
  opacity: .9;
}
.kpi-card:hover { box-shadow: var(--gw-shadow-md); transform: translateY(-4px); border-color: rgba(37, 99, 235, 0.3); }
.kpi-top { display: flex; align-items: center; justify-content: space-between; }
.kpi-icon {
  width: 3rem; height: 3rem; border-radius: 14px; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center; font-size: 1.25rem; color: #fff;
  box-shadow: 0 8px 18px -6px rgba(37, 99, 235, 0.5);
}
.kpi-icon.blue { background: linear-gradient(135deg, #3B82F6, #2563EB); }
.kpi-icon.violet { background: linear-gradient(135deg, #A78BFA, #7C3AED); }
.kpi-icon.green { background: linear-gradient(135deg, #34D399, #059669); }
.kpi-icon.amber { background: linear-gradient(135deg, #FBBF24, #F59E0B); }
.kpi-icon.red { background: linear-gradient(135deg, #FB7185, #EF4444); }
.kpi-icon.teal { background: linear-gradient(135deg, #2DD4BF, #0D9488); }
.kpi-icon.indigo { background: linear-gradient(135deg, #818CF8, #4F46E5); }

.kpi-delta {
  display: inline-flex; align-items: center; gap: .25rem;
  font-size: .78rem; font-weight: 700; padding: .25rem .55rem; border-radius: 999px;
}
.kpi-delta.up { background: rgba(16, 185, 129, 0.12); color: #047857; }
.kpi-delta.down { background: rgba(239, 68, 68, 0.12); color: #B91C1C; }
.kpi-label { margin-top: 1rem; font-size: .78rem; font-weight: 600; text-transform: uppercase; letter-spacing: .06em; color: var(--gw-text-muted); }
.kpi-value { font-size: 2.05rem; font-weight: 800; letter-spacing: -0.03em; color: var(--gw-text); line-height: 1.05; margin-top: .15rem; }
.kpi-spark { margin-top: .65rem; height: 2.4rem; width: 100%; }
.kpi-spark svg { width: 100%; height: 100%; display: block; overflow: visible; }

/* =========================================================
   ANALYTICS SECTION (two-column charts)
   ========================================================= */
.analytics-grid { display: grid; gap: 1.5rem; }
@media (min-width: 1024px) { .analytics-grid { grid-template-columns: 1.35fr 1fr; } }

/* --- Analytics card header - improved spacing & alignment --- */
.chart-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.25rem;
  flex-wrap: wrap;
}
.chart-card-head > div {
  min-width: 0;
  flex: 1;
}
.chart-card-head h3 {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--gw-text);
  letter-spacing: -0.015em;
  line-height: 1.25;
  margin-bottom: 0.1rem;
}
.chart-card-head p {
  font-size: .82rem;
  color: var(--gw-text-muted);
  margin-top: .15rem;
  line-height: 1.4;
}

/* --- Premium segmented control pill --- */
.gw-segmented {
  display: inline-flex;
  padding: .25rem;
  background: #F1F5F9;
  border-radius: 999px;
  gap: .15rem;
  flex-shrink: 0;
  align-self: center;
  border: 1px solid rgba(226, 232, 240, 0.5);
  box-shadow: inset 0 1px 2px rgba(15, 23, 42, 0.04);
}
.gw-segmented button {
  border: none;
  background: transparent;
  padding: .4rem .9rem;
  border-radius: 999px;
  font-size: .78rem;
  font-weight: 600;
  color: var(--gw-text-muted);
  cursor: pointer;
  transition: background .2s ease, color .2s ease, box-shadow .2s ease, transform .15s ease;
  white-space: nowrap;
}
.gw-segmented button:hover {
  color: var(--gw-text);
  background: rgba(255, 255, 255, 0.5);
}
.gw-segmented button.active {
  background: #fff;
  color: var(--gw-primary);
  box-shadow: 0 1px 4px rgba(15, 23, 42, 0.08), 0 0 0 1px rgba(226, 232, 240, 0.6);
}

/* --- Chart container with improved spacing --- */
.gw-chart-wrap {
  position: relative;
  height: 17rem;
  margin-top: .25rem;
  padding: 0.35rem 0;
}
.gw-chart-wrap.sm {
  height: 14rem;
}
.gw-chart-wrap canvas {
  display: block;
  width: 100%;
  height: 100%;
}
.gw-chart-wrap.sm canvas {
  display: block;
  width: 100%;
  height: 100%;
}
/* Analytics card inner padding refinement */
.analytics-grid .gw-card-pad {
  padding: 1.5rem 1.5rem 1.4rem;
}
.analytics-grid .gw-card-pad:hover {
  border-color: rgba(37, 99, 235, 0.25);
}

/* Course performance legend */
.gw-legend { display: flex; flex-direction: column; gap: .7rem; margin-top: 1rem; }
.gw-legend-row { display: flex; align-items: center; gap: .65rem; font-size: .85rem; }
.gw-legend-dot { width: .65rem; height: .65rem; border-radius: 50%; flex-shrink: 0; }
.gw-legend-row .name { font-weight: 600; color: var(--gw-text); flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.gw-legend-row .val { font-weight: 700; color: var(--gw-text); }
.gw-progress-line { height: .4rem; border-radius: 999px; background: #EEF2F7; overflow: hidden; flex: 1.4; }
.gw-progress-line > span { display: block; height: 100%; border-radius: 999px; background: linear-gradient(90deg, var(--gw-primary), var(--gw-secondary)); }

/* =========================================================
   QUICK ACTIONS (gradient icons)
   ========================================================= */
.qa-grid {
  display: grid;
  gap: 1.1rem;
  margin-top: 1.25rem;
}
@media (min-width: 640px) { .qa-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .qa-grid { grid-template-columns: repeat(3, 1fr); } }

/* --- Premium quick-action card tile --- */
.quick-action {
  position: relative; overflow: hidden;
  display: flex; align-items: center; gap: 1.1rem;
  background: var(--gw-surface);
  border: 1px solid var(--gw-border);
  border-radius: var(--gw-r-lg);
  padding: 1.2rem 1.35rem;
  text-decoration: none; color: var(--gw-text);
  transition: box-shadow .3s var(--gw-ease), transform .3s var(--gw-ease), border-color .3s var(--gw-ease);
  cursor: pointer;
}

/* Left accent bar — slides in on hover */
.quick-action::after {
  content: "";
  position: absolute; left: 0; top: 0; bottom: 0;
  width: 4px;
  background: var(--qa-color, var(--gw-primary));
  opacity: 0;
  transition: opacity .25s var(--gw-ease);
  border-radius: 0 3px 3px 0;
}

/* Top accent bar — reveals on hover */
.quick-action::before {
  content: "";
  position: absolute; top: 0; left: 1.35rem; right: 1.35rem;
  height: 3px;
  border-radius: 0 0 999px 999px;
  background: linear-gradient(90deg, var(--qa-color, var(--gw-primary)), var(--gw-secondary));
  opacity: 0;
  transition: opacity .25s var(--gw-ease);
  pointer-events: none;
}

.quick-action:hover {
  box-shadow: var(--gw-shadow-md);
  transform: translateY(-4px);
  border-color: transparent;
  background: linear-gradient(135deg, var(--gw-surface) 60%, rgba(37, 99, 235, 0.03) 100%);
}
.quick-action:hover::after { opacity: 1; }
.quick-action:hover::before { opacity: 1; }
.quick-action:hover .qa-icon {
  transform: scale(1.1) rotate(-4deg);
  box-shadow: 0 14px 28px -10px var(--qa-shadow, rgba(37, 99, 235, 0.6));
}
.quick-action:active {
  transform: translateY(-1px) scale(0.99);
}

.qa-icon {
  width: 3.2rem;
  height: 3.2rem;
  border-radius: 16px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  color: #fff;
  background: var(--qa-color, var(--gw-primary));
  box-shadow: 0 10px 22px -8px var(--qa-shadow, rgba(37, 99, 235, 0.55));
  transition: transform .3s var(--gw-ease), box-shadow .3s var(--gw-ease);
}

.qa-body {
  min-width: 0;
  flex: 1;
}
.qa-body .qa-title {
  font-size: .98rem;
  font-weight: 700;
  color: var(--gw-text);
  letter-spacing: -0.01em;
  line-height: 1.25;
}
.qa-body .qa-sub {
  font-size: .8rem;
  color: var(--gw-text-muted);
  margin-top: .15rem;
  line-height: 1.35;
}

.quick-action .qa-arrow {
  margin-left: auto;
  flex-shrink: 0;
  color: var(--gw-text-muted);
  font-size: .9rem;
  transition: transform .25s var(--gw-ease), color .25s var(--gw-ease);
}
.quick-action:hover .qa-arrow {
  transform: translateX(4px);
  color: var(--gw-primary);
}

/* =========================================================
   ACTIVITY TIMELINE
   ========================================================= */
.timeline { position: relative; padding-left: 1.6rem; margin-top: .25rem; }
.timeline::before {
  content: ""; position: absolute; left: .55rem; top: .4rem; bottom: .4rem;
  width: 2px; background: linear-gradient(180deg, var(--gw-primary), transparent);
  border-radius: 2px;
}
.tl-item { position: relative; padding: 0 0 1.25rem; }
.tl-item:last-child { padding-bottom: 0; }
.tl-dot {
  position: absolute; left: -1.6rem; top: .15rem;
  width: 1.15rem; height: 1.15rem; border-radius: 50%;
  background: #fff; border: 3px solid var(--gw-primary);
  display: flex; align-items: center; justify-content: center; z-index: 1;
}
.tl-dot.green { border-color: var(--gw-success); }
.tl-dot.amber { border-color: var(--gw-warning); }
.tl-dot.violet { border-color: var(--gw-secondary); }
.tl-dot.red { border-color: var(--gw-danger); }
.tl-dot i { font-size: .55rem; color: inherit; }
.tl-head { display: flex; align-items: center; gap: .5rem; }
.tl-title { font-size: .9rem; font-weight: 600; color: var(--gw-text); }
.tl-meta { font-size: .78rem; color: var(--gw-text-muted); margin-top: .15rem; }
.tl-time { font-size: .72rem; color: #94A3B8; margin-left: auto; white-space: nowrap; flex-shrink: 0; }
.tl-card {
  margin-top: .5rem; padding: .7rem .85rem; border-radius: 12px;
  background: #F8FAFC; border: 1px solid var(--gw-border-soft);
}
.tl-avatar {
  width: 1.6rem; height: 1.6rem; border-radius: 50%; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center; font-size: .7rem; font-weight: 700; color: #fff;
}

/* =========================================================
   NOTIFICATIONS SIDE PANEL (right rail)
   ========================================================= */
.notif-panel { display: flex; flex-direction: column; gap: .75rem; }
.notif-card {
  display: flex; gap: .8rem; padding: .9rem 1rem; border-radius: var(--gw-r);
  background: var(--gw-surface); border: 1px solid var(--gw-border);
  transition: box-shadow .2s ease, transform .2s ease, border-color .2s ease;
}
.notif-card:hover { box-shadow: var(--gw-shadow); transform: translateY(-2px); border-color: rgba(37, 99, 235, 0.25); }
.notif-card .gw-notif-ico { width: 2.4rem; height: 2.4rem; font-size: .9rem; }
.notif-card .gw-notif-body .t { font-size: .88rem; }
.notif-card .badge { font-size: .65rem; padding: .1rem .5rem; border-radius: 999px; font-weight: 700; }
.badge-new { background: rgba(37, 99, 235, 0.12); color: var(--gw-primary); }

/* Right-rail layout for admin */
.admin-cols { display: grid; gap: 1.25rem; }
@media (min-width: 1200px) { .admin-cols { grid-template-columns: 1fr 24rem; align-items: start; } }

/* =========================================================
   STUDENT — WELCOME BANNER
   ========================================================= */
.gw-welcome-badge {
  width: 3rem;
  height: 3rem;
  border-radius: 16px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.18);
  box-shadow: 0 8px 24px -8px rgba(0, 0, 0, 0.2);
}

.gw-welcome {
  position: relative; overflow: hidden;
  display: flex; align-items: center; gap: 1.25rem;
  border-radius: var(--gw-r-xl); padding: 1.75rem 2rem;
  background: linear-gradient(120deg, #0F172A 0%, #1b2c4d 52%, #2a1d52 100%);
  color: #fff; box-shadow: var(--gw-shadow-md); margin-bottom: 1.5rem;
}
.gw-welcome::before {
  content: ""; position: absolute; right: -60px; top: -80px; width: 280px; height: 280px; border-radius: 50%;
  background: radial-gradient(circle, rgba(124, 58, 237, 0.4), transparent 70%); pointer-events: none;
}
.gw-welcome::after {
  content: ""; position: absolute; left: 30%; bottom: -60px; width: 220px; height: 220px; border-radius: 50%;
  background: radial-gradient(circle, rgba(37, 99, 235, 0.4), transparent 70%); pointer-events: none;
}
.gw-welcome > * { position: relative; z-index: 1; }
.gw-welcome h1 { font-size: 1.7rem; font-weight: 800; letter-spacing: -0.02em; display: flex; align-items: center; gap: .5rem; }
#heroGreeting, #welcomeTitle { color: #fff; }
.gw-welcome p { color: rgba(214, 230, 245, 0.85); font-size: .92rem; margin-top: .3rem; }
.gw-welcome .gw-avatar { width: 3.5rem; height: 3.5rem; font-size: 1.3rem; margin-left: auto; }

/* Continue learning featured card */
.gw-continue {
  position: relative; overflow: hidden;
  display: grid; grid-template-columns: 13rem 1fr; gap: 0;
  border-radius: var(--gw-r-xl); background: var(--gw-surface);
  border: 1px solid var(--gw-border); box-shadow: var(--gw-shadow);
}
.gw-continue-thumb {
  position: relative; min-height: 12rem; overflow: hidden;
  background: linear-gradient(135deg, #2563EB, #7C3AED);
  display: flex; align-items: center; justify-content: center;
}
.gw-continue-thumb img { width: 100%; height: 100%; object-fit: cover; }
.gw-continue-thumb .play-badge {
  position: absolute; width: 3.5rem; height: 3.5rem; border-radius: 50%;
  background: rgba(255, 255, 255, 0.9); color: var(--gw-primary);
  display: flex; align-items: center; justify-content: center; font-size: 1.2rem;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.25);
}
.gw-continue-body { padding: 1.5rem 1.75rem; display: flex; flex-direction: column; justify-content: center; }
.gw-continue-body .eyebrow { font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--gw-primary); }
.gw-continue-body h3 { font-size: 1.35rem; font-weight: 800; color: var(--gw-text); letter-spacing: -0.02em; margin-top: .35rem; }
.gw-continue-body .lesson { font-size: .88rem; color: var(--gw-text-muted); margin-top: .35rem; }
.gw-continue-meta { display: flex; align-items: center; gap: 1.25rem; margin-top: 1rem; }
.gw-continue-meta .m { font-size: .8rem; color: var(--gw-text-muted); }
.gw-continue-meta .m b { color: var(--gw-text); font-weight: 700; }
.gw-continue-foot { display: flex; align-items: center; gap: 1rem; margin-top: 1.25rem; flex-wrap: wrap; }

/* Progress bar (premium) */
.gw-progress { width: 100%; height: .65rem; background: #EEF2F7; border-radius: 999px; overflow: hidden; box-shadow: inset 0 1px 2px rgba(15, 23, 42, 0.06); }
.gw-progress > span {
  display: block; height: 100%; border-radius: 999px;
  background: linear-gradient(90deg, var(--gw-primary), var(--gw-secondary));
  transition: width .6s var(--gw-ease);
}
.gw-progress-lg { height: .85rem; }

/* Learning stats */
.lstat-grid { display: grid; gap: 1rem; margin-top: 1.1rem; }
@media (min-width: 640px) { .lstat-grid { grid-template-columns: repeat(3, 1fr); } }
.lstat {
  position: relative; overflow: hidden; background: var(--gw-surface);
  border: 1px solid var(--gw-border); border-radius: var(--gw-r-lg); padding: 1.25rem 1.35rem;
  box-shadow: var(--gw-shadow-sm); transition: box-shadow .25s var(--gw-ease), transform .25s var(--gw-ease), border-color .25s var(--gw-ease);
}
.lstat:hover { box-shadow: var(--gw-shadow-md); transform: translateY(-4px); border-color: rgba(37, 99, 235, 0.3); }
.lstat::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 4px; background: var(--lstat-color, var(--gw-primary)); }
.lstat .lstat-ico { width: 2.75rem; height: 2.75rem; border-radius: 13px; display: flex; align-items: center; justify-content: center; font-size: 1.15rem; color: #fff; background: var(--lstat-color, var(--gw-primary)); box-shadow: 0 8px 18px -6px var(--lstat-shadow, rgba(37, 99, 235, 0.5)); }
.lstat .lstat-val { font-size: 1.9rem; font-weight: 800; letter-spacing: -0.02em; color: var(--gw-text); margin-top: .9rem; }
.lstat .lstat-label { font-size: .8rem; color: var(--gw-text-muted); font-weight: 500; }

/* Schedule widget */
.gw-schedule { display: flex; flex-direction: column; gap: .75rem; }
.gw-class-row {
  display: flex; align-items: center; gap: .9rem; padding: .85rem 1rem; border-radius: var(--gw-r);
  background: #F8FAFC; border: 1px solid var(--gw-border-soft);
  transition: background .18s ease, box-shadow .18s ease;
}
.gw-class-row:hover { background: #fff; box-shadow: var(--gw-shadow-sm); }
.gw-class-time { text-align: center; flex-shrink: 0; width: 3.4rem; }
.gw-class-time .h { font-size: .95rem; font-weight: 800; color: var(--gw-text); line-height: 1; }
.gw-class-time .ap { font-size: .65rem; color: var(--gw-text-muted); font-weight: 600; }
.gw-class-info { flex: 1; min-width: 0; }
.gw-class-info .cn { font-size: .9rem; font-weight: 700; color: var(--gw-text); }
.gw-class-info .ct { font-size: .78rem; color: var(--gw-text-muted); margin-top: .1rem; }
.gw-status-pill { font-size: .68rem; font-weight: 700; padding: .2rem .55rem; border-radius: 999px; }
.gw-status-pill.live { background: rgba(239, 68, 68, 0.12); color: #B91C1C; }
.gw-status-pill.upcoming { background: rgba(37, 99, 235, 0.12); color: var(--gw-primary); }

/* Course cards */
.course-grid { display: grid; gap: 1.1rem; }
@media (min-width: 640px) { .course-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1200px) { .course-grid { grid-template-columns: repeat(3, 1fr); } }
.course-card {
  position: relative; overflow: hidden; display: flex; flex-direction: column;
  background: var(--gw-surface); border: 1px solid var(--gw-border); border-radius: var(--gw-r-lg);
  box-shadow: var(--gw-shadow-sm); transition: box-shadow .25s var(--gw-ease), transform .25s var(--gw-ease), border-color .25s var(--gw-ease);
}
.course-card:hover { box-shadow: var(--gw-shadow-md); transform: translateY(-4px); border-color: rgba(37, 99, 235, 0.3); }
.course-thumb {
  position: relative; aspect-ratio: 16/9; overflow: hidden;
  background: linear-gradient(135deg, #2563EB, #7C3AED);
  display: flex; align-items: center; justify-content: center;
}
.course-thumb img { width: 100%; height: 100%; object-fit: cover; }
.course-thumb .course-glyph { font-size: 2.2rem; color: rgba(255, 255, 255, 0.92); }
.course-thumb .course-badge {
  position: absolute; top: .75rem; left: .75rem; font-size: .68rem; font-weight: 700;
  background: rgba(255, 255, 255, 0.92); color: var(--gw-text); padding: .25rem .6rem; border-radius: 999px;
}
.course-body { padding: 1.1rem 1.25rem 1.25rem; display: flex; flex-direction: column; flex: 1; }
.course-title { font-size: 1.02rem; font-weight: 700; color: var(--gw-text); letter-spacing: -0.01em; }
.course-inst { font-size: .82rem; color: var(--gw-text-muted); margin-top: .2rem; display: flex; align-items: center; gap: .4rem; }
.course-meta { display: flex; align-items: center; justify-content: space-between; margin-top: .9rem; font-size: .78rem; color: var(--gw-text-muted); }
.course-meta b { color: var(--gw-text); font-weight: 700; }
.course-foot { margin-top: auto; padding-top: 1rem; display: flex; align-items: center; gap: .75rem; }
.gw-resume-btn {
  flex: 1; display: inline-flex; align-items: center; justify-content: center; gap: .45rem;
  padding: .6rem 1rem; border-radius: 12px; font-size: .85rem; font-weight: 700;
  background: linear-gradient(135deg, var(--gw-primary), var(--gw-primary-600)); color: #fff;
  box-shadow: 0 8px 18px -6px rgba(37, 99, 235, 0.5);
  transition: transform .18s ease, box-shadow .18s ease; cursor: pointer; border: none; text-decoration: none;
}
.gw-resume-btn:hover { transform: translateY(-1px); box-shadow: 0 12px 24px -6px rgba(37, 99, 235, 0.6); }

/* Announcements */
.gw-announce {
  display: flex; gap: 1rem; padding: 1.1rem 1.25rem; border-radius: var(--gw-r);
  background: var(--gw-surface); border: 1px solid var(--gw-border);
  transition: box-shadow .2s ease, border-color .2s ease; text-decoration: none; color: inherit;
}
.gw-announce:hover { box-shadow: var(--gw-shadow); border-color: rgba(37, 99, 235, 0.25); }
.gw-announce-ico {
  width: 2.6rem; height: 2.6rem; border-radius: 13px; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center; font-size: 1rem; color: #fff;
  background: linear-gradient(135deg, var(--gw-primary), var(--gw-secondary));
}
.gw-announce-body { flex: 1; min-width: 0; }
.gw-announce-body .at { display: flex; align-items: center; gap: .6rem; }
.gw-announce-body .at .tt { font-size: .98rem; font-weight: 700; color: var(--gw-text); }
.gw-announce-body p { font-size: .85rem; color: var(--gw-text-muted); margin-top: .3rem; line-height: 1.5; }
.gw-prio { font-size: .66rem; font-weight: 700; padding: .15rem .55rem; border-radius: 999px; }
.gw-prio.high { background: rgba(239, 68, 68, 0.12); color: #B91C1C; }
.gw-prio.medium { background: rgba(245, 158, 11, 0.14); color: #B45309; }
.gw-prio.low { background: rgba(16, 185, 129, 0.12); color: #047857; }
.gw-announce-date { font-size: .74rem; color: #94A3B8; margin-top: .35rem; }

/* Points pill */
.gw-points { display: inline-flex; align-items: center; gap: .4rem; padding: .35rem .8rem; border-radius: 999px; background: rgba(124, 58, 237, 0.1); color: var(--gw-secondary); font-weight: 700; font-size: .82rem; }

/* =========================================================
   QUICK LINKS GRID — Student Dashboard
   Premium card tiles with hover effects, staggered entrance,
   gradient icons, arrow indicators, and soft glow.
   ========================================================= */
.ql-grid {
  display: grid;
  gap: 1rem;
  margin-top: .25rem;
}
@media (min-width: 540px) { .ql-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 900px) { .ql-grid { grid-template-columns: repeat(3, 1fr); } }

.ql-card {
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  gap: .25rem;
  padding: 1.4rem 1.5rem 1.5rem;
  border-radius: var(--gw-r-lg);
  background: var(--gw-surface);
  border: 1px solid var(--gw-border);
  box-shadow: var(--gw-shadow-sm);
  text-decoration: none;
  color: var(--gw-text);
  cursor: pointer;
  transition: box-shadow .35s var(--gw-ease), transform .35s var(--gw-ease), border-color .35s var(--gw-ease), background .35s var(--gw-ease);
}

/* Subtle dot-grid background pattern */
.ql-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle, rgba(15, 23, 42, 0.04) 1px, transparent 1px);
  background-size: 18px 18px;
  opacity: 0;
  transition: opacity .4s var(--gw-ease);
  pointer-events: none;
}

/* Top accent bar — color-coded per variant, reveals on hover */
.ql-card::after {
  content: "";
  position: absolute;
  top: 0;
  left: 1.5rem;
  right: 1.5rem;
  height: 3px;
  border-radius: 0 0 999px 999px;
  background: var(--ql-clr, var(--gw-primary));
  opacity: 0;
  transform: scaleX(.6);
  transition: opacity .3s var(--gw-ease), transform .4s var(--gw-ease);
  pointer-events: none;
}

/* Hover state — lift, glow border, subtle pattern reveal */
.ql-card:hover {
  box-shadow: 0 16px 40px -12px var(--ql-shadow, rgba(37, 99, 235, 0.45));
  transform: translateY(-6px) scale(1.01);
  border-color: var(--ql-clr, rgba(37, 99, 235, 0.3));
  background: var(--gw-surface);
  background: linear-gradient(135deg, var(--gw-surface) 70%, color-mix(in srgb, var(--ql-clr, #2563EB) 4%, var(--gw-surface)) 100%);
}
.ql-card:hover::before { opacity: 1; }
.ql-card:hover::after {
  opacity: 1;
  transform: scaleX(1);
}

/* Active press state */
.ql-card:active {
  transform: translateY(-1px) scale(.98);
  transition-duration: .1s;
}

/* Right-arrow indicator that slides in on hover */
.ql-card .ql-arrow {
  position: absolute;
  right: 1.1rem;
  top: 1.3rem;
  font-size: .75rem;
  color: var(--ql-clr, var(--gw-primary));
  opacity: 0;
  transform: translateX(-6px);
  transition: opacity .3s var(--gw-ease), transform .35s var(--gw-ease);
  pointer-events: none;
}
.ql-card:hover .ql-arrow {
  opacity: 1;
  transform: translateX(0);
}

/* Icon — gradient background, 3D shadow, smooth scaling */
.ql-ico {
  width: 2.85rem;
  height: 2.85rem;
  border-radius: 15px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  color: #fff;
  background: var(--ql-clr, #2563EB);
  background: linear-gradient(135deg, var(--ql-clr, #2563EB), color-mix(in srgb, var(--ql-clr, #2563EB) 70%, #fff 30%));
  box-shadow: 0 8px 20px -6px var(--ql-shadow, rgba(37, 99, 235, 0.55));
  margin-bottom: .7rem;
  transition: transform .4s var(--gw-ease), box-shadow .4s var(--gw-ease), border-radius .3s var(--gw-ease);
  position: relative;
  z-index: 1;
}
.ql-card:hover .ql-ico {
  transform: scale(1.12) rotate(-5deg);
  box-shadow: 0 16px 32px -10px var(--ql-shadow, rgba(37, 99, 235, 0.7));
  border-radius: 12px;
}

/* Icon inner glow ring */
.ql-ico::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.25) 0%, transparent 50%);
  pointer-events: none;
}

/* Label */
.ql-label {
  font-size: 1rem;
  font-weight: 700;
  color: var(--gw-text);
  letter-spacing: -0.01em;
  position: relative;
  z-index: 1;
}

/* Description */
.ql-desc {
  font-size: .8rem;
  color: var(--gw-text-muted);
  margin-top: .15rem;
  line-height: 1.4;
  position: relative;
  z-index: 1;
}

/* =============================
   Staggered entrance animation
   ============================= */
@keyframes qlFadeUp {
  from { opacity: 0; transform: translateY(18px) scale(.96); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}
.ql-card {
  animation: qlFadeUp .5s var(--gw-ease) both;
}
.ql-card:nth-child(1) { animation-delay: 0.20s; }
.ql-card:nth-child(2) { animation-delay: 0.25s; }
.ql-card:nth-child(3) { animation-delay: 0.30s; }
.ql-card:nth-child(4) { animation-delay: 0.35s; }
.ql-card:nth-child(5) { animation-delay: 0.40s; }
.ql-card:nth-child(6) { animation-delay: 0.45s; }
.ql-card:nth-child(7) { animation-delay: 0.50s; }
.ql-card:nth-child(8) { animation-delay: 0.55s; }

/* =============================
   Quick Link color variants
   ============================= */
.ql-blue   { --ql-clr: #2563EB; --ql-shadow: rgba(37, 99, 235, 0.5); }
.ql-green  { --ql-clr: #10B981; --ql-shadow: rgba(16, 185, 129, 0.5); }
.ql-violet { --ql-clr: #7C3AED; --ql-shadow: rgba(124, 58, 237, 0.5); }
.ql-amber  { --ql-clr: #F59E0B; --ql-shadow: rgba(245, 158, 11, 0.5); }
.ql-teal   { --ql-clr: #0D9488; --ql-shadow: rgba(13, 148, 136, 0.5); }
.ql-indigo { --ql-clr: #4F46E5; --ql-shadow: rgba(79, 70, 229, 0.5); }
.ql-red    { --ql-clr: #EF4444; --ql-shadow: rgba(239, 68, 68, 0.5); }

/* =============================
   Responsive tweaks
   ============================= */
@media (max-width: 479px) {
  .ql-card { padding: 1.2rem 1.25rem; }
  .ql-ico { width: 2.5rem; height: 2.5rem; font-size: 1.05rem; margin-bottom: .55rem; }
}

/* Announcements grid */
.announce-grid {
  display: flex;
  flex-direction: column;
  gap: .9rem;
}

/* Decorative section divider — subtle rhythm break between sections */
.gw-divider {
  height: 1px;
  margin: 1rem 0;
  background: linear-gradient(90deg, transparent 0%, var(--gw-border) 15%, var(--gw-border) 85%, transparent 100%);
  position: relative;
}
.gw-divider::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 50%;
  background: var(--gw-bg);
  border: 1px solid var(--gw-border);
  display: flex;
  align-items: center;
  justify-content: center;
}
.gw-divider::after {
  content: "\f141";
  font-family: "Font Awesome 6 Free";
  font-weight: 900;
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  font-size: .65rem;
  color: var(--gw-text-muted);
}

/* =========================================================
   SKELETON LOADERS
   ========================================================= */
.gw-skeleton {
  position: relative; overflow: hidden;
  background: #E9EEF5; border-radius: 8px;
}
.gw-skeleton::after {
  content: ""; position: absolute; inset: 0;
  transform: translateX(-100%);
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.6), transparent);
  animation: gwShimmer 1.4s infinite;
}
@keyframes gwShimmer { 100% { transform: translateX(100%); } }

/* Entrance animation */
@keyframes gwRise { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: translateY(0); } }
.gw-rise { animation: gwRise .45s var(--gw-ease) both; }
.gw-rise:nth-child(2) { animation-delay: .05s; }
.gw-rise:nth-child(3) { animation-delay: .1s; }
.gw-rise:nth-child(4) { animation-delay: .15s; }
.gw-rise:nth-child(5) { animation-delay: .2s; }
.gw-rise:nth-child(6) { animation-delay: .25s; }
/* Explicit stagger delays (shell inserts a topbar, so nth-child offsets are unreliable) */
.gw-rise.gw-delay-1 { animation-delay: .05s; }
.gw-rise.gw-delay-2 { animation-delay: .1s; }
.gw-rise.gw-delay-3 { animation-delay: .15s; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}

/* =========================================================
   SHELL UPGRADE — auto-applied to every admin/student page
   Repurpose the legacy .admin-hero / inline header into the
   premium sticky top navbar, and smooth the page content.
   ========================================================= */
.gw-topbar .gw-topbar-greeting h1 { font-size: 1.35rem; }
.gw-topbar .gw-topbar-greeting p { font-size: .82rem; }

/* Page-specific header (sub-pages, not dashboard) */
.gw-topbar-page {
  display: flex !important;
  align-items: center;
  gap: .85rem;
}
.gw-topbar-page .gw-page-icon {
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.15rem;
  color: #fff;
  background: linear-gradient(135deg, var(--gw-primary), var(--gw-secondary));
  box-shadow: 0 8px 18px -6px rgba(37, 99, 235, 0.4);
  flex-shrink: 0;
}
.gw-topbar-page h1 {
  font-size: 1.2rem !important;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--gw-text);
  line-height: 1.15;
}
.gw-topbar-page h1 + p {
  font-size: .8rem;
  color: var(--gw-text-muted);
  margin-top: .08rem;
}
/* Constrain the title wrapper so long greetings ellipsize instead of
   overflowing past the viewport edge on small screens. */
.gw-topbar-page > div:not(.gw-page-icon) {
  min-width: 0;
  overflow: hidden;
}
.gw-topbar-greeting { min-width: 0; }

/* Hide the legacy hero gradient once the shell has replaced it */
.gw-hero-replaced { display: none !important; }

/* Page content sits below the glass navbar with breathing room */
.dashboard-main > .gw-section-head:first-of-type,
.dashboard-main > .stats-grid:first-of-type,
.dashboard-main > .admin-cols:first-of-type { margin-top: 0; }

/* Make existing cards/charts feel premium everywhere */
.dashboard-main .card,
.dashboard-main .content-card,
.dashboard-main .form-card,
.dashboard-main .info-panel-card {
  border-radius: var(--gw-r-lg);
  border: 1px solid var(--gw-border);
  box-shadow: var(--gw-shadow-sm);
  transition: box-shadow .25s var(--gw-ease), transform .25s var(--gw-ease), border-color .25s var(--gw-ease);
}
.dashboard-main .card:hover,
.dashboard-main .content-card:hover,
.dashboard-main .form-card:hover { box-shadow: var(--gw-shadow-md); transform: translateY(-2px); }

/* Stats grids inside normal pages -> use KPI-ish tiles */
.dashboard-main .stats-grid.grid-cols-1 { grid-template-columns: repeat(1, 1fr); }
.dashboard-main .stats-grid.cols-3,
.dashboard-main .stats-grid.grid-cols-3,
.dashboard-main .stats-grid[style*="repeat(3"] { grid-template-columns: repeat(3, 1fr); }
.dashboard-main .stats-grid.cols-4,
.dashboard-main .stats-grid[style*="repeat(4"] { grid-template-columns: repeat(4, 1fr); }
.dashboard-main .stats-grid.cols-5,
.dashboard-main .stats-grid[style*="repeat(5"] { grid-template-columns: repeat(5, 1fr); }
.dashboard-main .stats-grid.cols-6,
.dashboard-main .stats-grid[style*="repeat(6"] { grid-template-columns: repeat(6, 1fr); }

/* Data tables inside cards: rounded + premium */
.dashboard-main .card .card-content.p-0 { border-radius: var(--gw-r-lg); overflow: hidden; }
.dashboard-main .data-table thead th {
  background: #F8FAFC; color: var(--gw-text-muted);
  font-weight: 600; font-size: .75rem; text-transform: uppercase; letter-spacing: .05em;
  border-bottom: 1px solid var(--gw-border);
}
.dashboard-main .data-table tbody tr:hover { background: rgba(37,99,235,0.04); }
.dashboard-main .data-table tbody td { border-bottom-color: #EEF2F7; }

/* Buttons */
.dashboard-main .btn-primary { box-shadow: 0 4px 12px -4px rgba(37,99,235,.5); }
.dashboard-main .btn-primary:hover:not(:disabled) { box-shadow: 0 6px 16px -4px rgba(37,99,235,.55); }

/* Section headings used inside pages (inline-styled flex headers) */
.dashboard-main > div[style*="display:flex;align-items:flex-start;justify-content:space-between"] h1,
.dashboard-main > div[style*="display:flex;align-items:center"] h1 {
  font-size: 1.5rem; font-weight: 800; letter-spacing: -0.02em; color: var(--gw-text);
}
.dashboard-main > div[style*="display:flex;align-items:flex-start;justify-content:space-between"] p,
.dashboard-main > div[style*="display:flex;align-items:center"] p { color: var(--gw-text-muted); font-size: .9rem; }

/* Hide the now-redundant legacy sidebar toggle inside replaced hero (we keep mobile toggle via overlay) */
/* Sidebar toggle visibility handled by sidebar.css (hidden on desktop at 769px+) 
   and responsive.css (shown on mobile at max-width 991px). */

/* Generic generated page header for pages without a hero (social/player/videos) */
.gw-page-header {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  margin-bottom: 1.5rem;
}
.gw-page-header h1 { font-size: 1.5rem; font-weight: 800; letter-spacing: -0.02em; color: var(--gw-text); }
.gw-page-header p { font-size: .88rem; color: var(--gw-text-muted); margin-top: .2rem; }

/* =========================================================
   RESPONSIVE — Modern LMS components
   ========================================================= */
@media (max-width: 1199px) {
  .admin-cols { grid-template-columns: 1fr; }
}
@media (max-width: 1023px) {
  .analytics-grid { grid-template-columns: 1fr; }
}
@media (max-width: 767px) {
  .gw-topbar { padding: 0 1rem; height: auto; flex-wrap: wrap; padding-top: .9rem; padding-bottom: .9rem; gap: .75rem; }
  .gw-topbar-greeting { flex: 1; min-width: 0; }
  .gw-user-name, .gw-user-role { display: none; }
  .gw-user { padding-left: .5rem; margin-left: 0; }
  .gw-welcome { flex-direction: row; padding: 1.25rem 1.4rem; }
  .gw-welcome h1 { font-size: 1.35rem; }
  .gw-continue { grid-template-columns: 1fr; }
  .gw-continue-thumb { min-height: 9rem; }
  .kpi-grid, .qa-grid, .lstat-grid { grid-template-columns: repeat(2, 1fr); }
  .gw-menu { position: fixed; left: 1rem; right: 1rem; min-width: 0; max-width: none; }
}
@media (max-width: 479px) {
  .kpi-grid, .qa-grid, .lstat-grid, .course-grid { grid-template-columns: 1fr; }
  .gw-continue-meta { gap: .75rem; }
}

/* =========================================================
   Student — Available Classes (Premium Catalog Cards)
   ========================================================= */
#availableClassesGrid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(310px, 1fr));
  gap: 1.35rem;
  margin-top: 1.5rem;
}

.ac-card {
  position: relative;
  background: #fff;
  border: 1px solid var(--gw-border);
  border-radius: var(--gw-r-lg);
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.04);
  overflow: hidden;
  transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  flex-direction: column;
}
.ac-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 48px -16px rgba(15, 23, 42, 0.18);
  border-color: rgba(99, 102, 241, 0.25);
}
.ac-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, #6366f1, #0ea5e9);
  z-index: 2;
}

/* Banner area */
.ac-card-banner {
  position: relative;
  padding: 1.75rem 1.5rem 1.25rem;
  background-image: var(--ac-banner-bg, linear-gradient(135deg, #6366f1 0%, #0ea5e9 60%, #06b6d4 100%));
  background-position: center 30%;
  background-size: cover;
  background-repeat: no-repeat;
  overflow: hidden;
  min-height: 7rem;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
}
.ac-banner-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(15, 23, 42, 0.6);
  z-index: 1;
}
.ac-card-banner::before {
  content: "";
  position: absolute;
  right: -30px;
  top: -40px;
  width: 160px;
  height: 160px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  pointer-events: none;
}
.ac-card-banner::after {
  content: "";
  position: absolute;
  left: -20px;
  bottom: -50px;
  width: 120px;
  height: 120px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.05);
  pointer-events: none;
}
.ac-grade-pill {
  position: relative;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 0.3rem 0.8rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.2);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.25);
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
}
.ac-banner-icon {
  position: relative;
  z-index: 2;
  font-size: 2.2rem;
  color: rgba(255, 255, 255, 0.2);
  align-self: flex-end;
  transition: transform 0.35s ease, opacity 0.35s ease;
}
.ac-card:hover .ac-banner-icon {
  transform: scale(1.15) rotate(-5deg);
  opacity: 0.35;
}

/* Card body */
.ac-card-body {
  padding: 1.35rem 1.5rem 0;
  flex: 1;
  display: flex;
  flex-direction: column;
}
.ac-card-title {
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--gw-text);
  letter-spacing: -0.02em;
  line-height: 1.3;
}
.ac-card-meta {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 0.35rem;
  font-size: 0.8rem;
  color: var(--gw-text-muted);
}
.ac-card-meta i {
  color: var(--gw-primary);
  width: 1rem;
  text-align: center;
  font-size: 0.75rem;
}
.ac-card-desc {
  font-size: 0.85rem;
  color: #64748b;
  line-height: 1.55;
  margin-top: 0.65rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Locked video preview block */
.ac-preview {
  margin-top: 0.75rem;
  padding: 0.65rem 0.85rem;
  background: #f8fafc;
  border: 1px solid #eef2f7;
  border-radius: 12px;
}
.ac-preview-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.78rem;
  color: #94a3b8;
  padding: 0.2rem 0;
}
.ac-preview-item i {
  font-size: 0.65rem;
  color: #94a3b8;
  width: 0.85rem;
}
.ac-preview-more {
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--gw-primary);
  margin-top: 0.25rem;
  display: block;
}

/* Action buttons */
.ac-actions {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  margin-top: 0.85rem;
  padding-top: 0.85rem;
  border-top: 1px solid var(--gw-border-soft);
}
.ac-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.5rem 1.1rem;
  font-size: 0.8rem;
  font-weight: 700;
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.2s ease;
  text-decoration: none;
  border: none;
  line-height: 1.2;
}
.ac-btn-details {
  background: transparent;
  color: #475569;
  border: 1px solid var(--gw-border);
}
.ac-btn-details:hover {
  border-color: rgba(99, 102, 241, 0.4);
  color: var(--gw-primary);
  background: rgba(99, 102, 241, 0.04);
  transform: translateY(-1px);
}
.ac-btn-primary {
  background: linear-gradient(135deg, var(--gw-primary), var(--gw-primary-600));
  color: #fff;
  box-shadow: 0 4px 12px -4px rgba(37, 99, 235, 0.45);
  margin-left: auto;
}
.ac-btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 16px -4px rgba(37, 99, 235, 0.55);
}
.ac-badge-pending {
  margin-left: auto;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 0.3rem 0.75rem;
  border-radius: 999px;
  background: rgba(245, 158, 11, 0.12);
  color: #D97706;
}
.ac-badge-granted {
  margin-left: auto;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 0.3rem 0.75rem;
  border-radius: 999px;
  background: rgba(16, 185, 129, 0.12);
  color: #047857;
}

/* Card footer */
.ac-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.85rem 1.5rem;
  margin-top: 0.85rem;
  background: #fafcfe;
  border-top: 1px solid var(--gw-border-soft);
}
.ac-fee {
  display: flex;
  flex-direction: column;
}
.ac-fee-amount {
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--gw-primary);
  line-height: 1;
}
.ac-fee-amount i {
  font-size: 0.8rem;
  margin-right: 0.2rem;
}
.ac-fee-period {
  font-size: 0.68rem;
  color: var(--gw-text-muted);
  margin-top: 0.05rem;
}
.ac-fee-rec {
  font-size: 0.78rem;
  color: var(--gw-text-muted);
  display: flex;
  align-items: center;
  gap: 0.35rem;
}
.ac-fee-rec i {
  color: var(--gw-primary);
  font-size: 0.72rem;
}

/* Empty state */
.ac-empty {
  grid-column: 1 / -1;
  text-align: center;
  padding: 4rem 1rem;
  border: 2px dashed var(--gw-border);
  border-radius: var(--gw-r-lg);
  background: #fafcfe;
}
.ac-empty-icon {
  font-size: 2.5rem;
  color: #cbd5e1;
  display: block;
  margin-bottom: 0.75rem;
}
.ac-empty-text {
  font-size: 0.9rem;
  color: var(--gw-text-muted);
}

/* =========================================================
   Shared Modal Styles (used by available-classes detail modal)
   ========================================================= */
.gw-modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 100;
  background: rgba(15, 39, 71, 0.55);
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
  align-items: center;
  justify-content: center;
  padding: 1rem;
}
.gw-modal {
  width: 100%;
  max-width: 540px;
  max-height: 88vh;
  overflow-y: auto;
  background: #fff;
  border-radius: var(--gw-r-lg);
  box-shadow: var(--gw-shadow-lg);
}
.gw-modal-head .grade-badge {
  display: inline-block;
  font-size: 0.75rem;
  background-color: rgba(239, 68, 68, 0.2);
  padding: 0.125rem 0.5rem;
  border-radius: var(--radius-sm);
  color: var(--accent-foreground);
}
.gw-modal-close {
  background: none;
  border: none;
  font-size: 1.75rem;
  line-height: 1;
  color: var(--gw-text-muted);
  cursor: pointer;
  padding: 0.25rem;
}
.gw-modal-month-head {
  margin-top: 0.8rem;
  font-weight: 700;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--gw-text);
}
.gw-modal-locked-head {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--gw-text-muted);
  margin-bottom: 0.4rem;
}
.gw-modal-body .ac-preview-item {
  padding: 0.3rem 0;
  margin-left: 0.5rem;
}
.gw-modal-body .ac-preview-more {
  display: inline-block;
  margin-top: 0.4rem;
  margin-left: 0.5rem;
}
.gw-modal-note {
  text-align: center;
  font-size: 0.72rem;
  color: var(--gw-text-muted);
  margin-top: 0.6rem;
}
.gw-enroll-btn {
  margin-top: 1.5rem;
  height: 3rem;
  font-weight: 700;
  font-size: 1rem;
  width: 100%;
  border: none;
}
.gw-modal-stat-val.primary { color: var(--gw-primary); }
.gw-modal-stat-val.text { color: var(--gw-text); }
.gw-modal-head {
  padding: 1.75rem 1.75rem 0.5rem;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
}
.gw-modal-head h2 {
  font-size: 1.45rem;
  font-weight: 800;
  color: var(--gw-text);
  margin-top: 0.5rem;
  line-height: 1.25;
  letter-spacing: -0.02em;
}
.gw-modal-body {
  padding: 0 1.75rem 1.75rem;
}
.gw-modal-desc {
  color: var(--gw-text-muted);
  font-size: 0.95rem;
  line-height: 1.6;
  margin-top: 0.5rem;
}
.gw-modal-stats {
  margin-top: 1.25rem;
  display: flex;
  gap: 2rem;
  align-items: flex-end;
}
.gw-modal-stat-val { font-size: 1.35rem; font-weight: 800; line-height: 1.1; }
.gw-modal-stat-label { font-size: 0.75rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.05em; color: var(--gw-text-muted); margin-top: 0.25rem; }

/* =========================================================
   Student — My Classes (Premium Cards)
   ========================================================= */
.mc-stats {
  display: flex;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
}
.mc-stat-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.45rem 1.1rem;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 700;
  background: #ffffff;
  border: 1px solid var(--gw-border);
  box-shadow: var(--gw-shadow-xs);
  transition: all 0.25s var(--gw-ease);
}
.mc-stat-pill:hover { box-shadow: var(--gw-shadow-sm); transform: translateY(-2px); }
.mc-stat-pill i { font-size: 0.72rem; }
.mc-stat-pill .num { font-weight: 800; }
.mc-stat-pill.enrolled { border-color: rgba(99, 102, 241, 0.25); background: rgba(99, 102, 241, 0.03); }
.mc-stat-pill.enrolled i { color: #6366f1; }
.mc-stat-pill.granted { border-color: rgba(124, 58, 237, 0.25); background: rgba(124, 58, 237, 0.03); }
.mc-stat-pill.granted i { color: #7c3aed; }
.mc-stat-pill.free { border-color: rgba(16, 185, 129, 0.25); background: rgba(16, 185, 129, 0.03); }
.mc-stat-pill.free i { color: #10b981; }

#enrolledClasses, #grantedClasses, #freeVideosContainer {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(290px, 1fr));
  gap: 1.1rem;
}

.mc-card {
  position: relative;
  background: var(--gw-surface);
  border: 1px solid var(--gw-border);
  border-radius: var(--gw-r-lg);
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.04);
  transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.mc-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, #6366f1, #0ea5e9);
  z-index: 2;
}
.mc-card:hover {
  box-shadow: 0 20px 48px -16px rgba(15, 23, 42, 0.18);
  transform: translateY(-6px);
  border-color: rgba(99, 102, 241, 0.25);
}

.mc-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.35rem 1.4rem 1rem;
  background: linear-gradient(135deg, #6366f1 0%, #0ea5e9 60%, #06b6d4 100%);
  color: #fff;
  position: relative;
  overflow: hidden;
  min-height: 4.5rem;
}
.mc-card-head::before {
  content: "";
  position: absolute;
  right: -30px;
  top: -40px;
  width: 140px;
  height: 140px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  pointer-events: none;
}
.mc-card-head::after {
  content: "";
  position: absolute;
  left: -20px;
  bottom: -50px;
  width: 110px;
  height: 110px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.05);
  pointer-events: none;
}
.mc-card-head .grade {
  position: relative;
  z-index: 1;
  background: rgba(255, 255, 255, 0.2);
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
  padding: 0.3rem 0.75rem;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  border: 1px solid rgba(255, 255, 255, 0.28);
  font-size: 0.72rem;
  font-weight: 700;
}
.mc-card-head .head-icon {
  position: relative;
  z-index: 1;
  opacity: 0.35;
  font-size: 1.5rem;
  transition: opacity 0.35s ease, transform 0.35s ease;
}
.mc-card:hover .mc-card-head .head-icon { opacity: 0.55; transform: scale(1.15) rotate(-5deg); }
.mc-card-head.free-head { background: linear-gradient(135deg, #059669 0%, #34d399 60%, #6ee7b7 100%); }
.mc-card-head.grant-head { background: linear-gradient(135deg, #7c3aed 0%, #a78bfa 60%, #c4b5fd 100%); }

.mc-card-body {
  padding: 1.15rem 1.35rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}
.mc-card-body .title { font-size: 1.05rem; font-weight: 800; color: var(--gw-text); line-height: 1.35; letter-spacing: -0.01em; }
.mc-card-body .desc { font-size: 0.82rem; color: #64748b; margin-top: 0.5rem; line-height: 1.55; }
.mc-card-body .meta { display: flex; align-items: center; gap: 0.5rem; margin-top: 0.55rem; font-size: 0.8rem; color: #475569; font-weight: 500; }
.mc-card-body .meta i { color: #6366f1; width: 1rem; text-align: center; font-size: 0.75rem; }

.mc-card-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.85rem 1.35rem;
  border-top: 1px solid var(--gw-border-soft);
  background: #fafcfe;
  margin-top: auto;
}
.mc-card-foot .vid-count { font-size: 0.8rem; color: var(--gw-text-muted); font-weight: 600; display: flex; align-items: center; gap: 0.35rem; }
.mc-card-foot .vid-count i { color: #0ea5e9; }
.mc-card-foot .btn-sm {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.8rem;
  padding: 0.5rem 1.1rem;
  border-radius: 10px;
  font-weight: 700;
  background: linear-gradient(135deg, #6366f1, #4f46e5);
  color: #fff;
  border: none;
  box-shadow: 0 4px 10px rgba(99, 102, 241, 0.25);
  transition: all 0.22s var(--gw-ease);
  cursor: pointer;
  text-decoration: none;
}
.mc-card-foot .btn-sm:hover {
  background: linear-gradient(135deg, #4f46e5, #3730a3);
  box-shadow: 0 6px 16px rgba(99, 102, 241, 0.35);
  transform: translateY(-1px);
}

.mc-section-heading {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  margin-top: 1.75rem;
  margin-bottom: 0.75rem;
  padding-bottom: 0.7rem;
  border-bottom: 2px solid var(--gw-border-soft);
}
.mc-section-heading h2 { font-size: 1.05rem; font-weight: 700; color: var(--gw-text); margin: 0; }
.mc-section-heading .badge-count {
  font-size: 0.68rem;
  font-weight: 700;
  padding: 0.15rem 0.55rem;
  border-radius: 999px;
  background: #f1f5f9;
  color: var(--gw-text-muted);
  border: 1px solid var(--gw-border);
}
.mc-section-heading i { font-size: 0.9rem; }

.mc-empty {
  grid-column: 1 / -1;
  text-align: center;
  padding: 3rem 1rem;
  color: var(--gw-text-muted);
  border: 2px dashed var(--gw-border);
  border-radius: var(--gw-r-lg);
  background: #fafcfe;
}
.mc-empty i { font-size: 2.25rem; display: block; margin-bottom: 0.65rem; color: #cbd5e1; }
.mc-empty a { color: var(--gw-primary); font-weight: 700; text-decoration: underline; }

.mc-footnote {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 2rem;
  padding: 0.85rem 1.1rem;
  border-radius: var(--gw-r-sm);
  background: rgba(99, 102, 241, 0.04);
  border: 1px solid rgba(99, 102, 241, 0.12);
  font-size: 0.78rem;
  color: #475569;
  font-weight: 500;
}
.mc-footnote i { color: #6366f1; flex-shrink: 0; }

@media (max-width: 640px) {
  #enrolledClasses, #grantedClasses, #freeVideosContainer { grid-template-columns: 1fr; }
}

/* =========================================================
   Student — Study Materials (Notes)
   ========================================================= */
#materialsGrid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 1rem;
  margin-top: 1.5rem;
}
#materialsGrid .card {
  background: var(--gw-surface);
  border: 1px solid var(--gw-border);
  border-radius: var(--gw-r);
  box-shadow: var(--gw-shadow-sm);
  transition: all 0.3s var(--gw-ease);
  overflow: hidden;
}
#materialsGrid .card:hover {
  transform: translateY(-4px);
  box-shadow: var(--gw-shadow-md);
  border-color: rgba(99, 102, 241, 0.25);
}
.material-row {
  display: flex;
  align-items: center;
  gap: 1.15rem;
  padding: 1.35rem 1.4rem;
}
.material-icon {
  width: 3.5rem;
  height: 3.5rem;
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.08), rgba(14, 165, 169, 0.06));
  border: 1px solid rgba(99, 102, 241, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  flex-shrink: 0;
  transition: transform 0.3s ease;
}
#materialsGrid .card:hover .material-icon { transform: scale(1.08) rotate(3deg); }
.material-info { flex: 1; min-width: 0; }
.material-title {
  font-size: 0.975rem;
  font-weight: 700;
  color: var(--gw-text);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  letter-spacing: -0.01em;
}
.material-course {
  font-size: 0.8rem;
  color: var(--gw-text-muted);
  margin-top: 0.3rem;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  flex-wrap: wrap;
}
.material-course i { color: var(--gw-primary); font-size: 0.72rem; }
#materialsGrid .btn-outline {
  border: 1px solid var(--gw-border);
  background: var(--gw-surface);
  color: #334155;
  font-weight: 700;
  border-radius: 10px;
  padding: 0.5rem 1rem;
  font-size: 0.8rem;
  white-space: nowrap;
  flex-shrink: 0;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}
#materialsGrid .btn-outline:hover {
  border-color: rgba(99, 102, 241, 0.4);
  color: var(--gw-primary);
  background: rgba(99, 102, 241, 0.04);
  transform: translateY(-1px);
}
#materialsGrid .empty-state {
  grid-column: 1 / -1;
  text-align: center;
  padding: 3rem 1rem;
  color: var(--gw-text-muted);
  border: 2px dashed var(--gw-border);
  border-radius: var(--gw-r);
  background: #fafcfe;
  font-size: 0.9rem;
}

/* =========================================================
   Student — Follow Us
   ========================================================= */
.fu-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1.1rem;
  margin-top: 1.5rem;
}
.fu-card {
  position: relative;
  display: flex;
  align-items: center;
  gap: 1.15rem;
  padding: 1.4rem;
  background: var(--gw-surface);
  border: 1px solid var(--gw-border);
  border-radius: var(--gw-r-lg);
  box-shadow: var(--gw-shadow-sm);
  text-decoration: none;
  transition: all 0.3s var(--gw-ease);
  overflow: hidden;
}
.fu-card::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 4px;
  border-radius: 0 4px 4px 0;
  transition: width 0.25s ease;
}
.fu-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--gw-shadow-md);
  border-color: rgba(15, 23, 42, 0.08);
}
.fu-card:hover::before { width: 6px; }
.fu-card:active { transform: translateY(-2px); }
.fu-icon-wrap {
  width: 3.5rem;
  height: 3.5rem;
  border-radius: var(--gw-r);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.45rem;
  flex-shrink: 0;
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.25s ease;
}
.fu-card:hover .fu-icon-wrap {
  transform: scale(1.1) rotate(-3deg);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
}
.fu-info { min-width: 0; flex: 1; }
.fu-platform { font-size: 0.975rem; font-weight: 700; color: var(--gw-text); letter-spacing: -0.01em; }
.fu-handle { font-size: 0.78rem; color: var(--gw-text-muted); margin-top: 0.2rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 500; }
.fu-card[data-platform*="facebook"]::before { background: #1877F2; }
.fu-card[data-platform*="facebook"] .fu-icon-wrap { background: rgba(24,119,242,0.1); color: #1877F2; }
.fu-card[data-platform*="instagram"]::before { background: linear-gradient(180deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888); }
.fu-card[data-platform*="instagram"] .fu-icon-wrap { background: rgba(228,64,95,0.1); color: #E4405F; }
.fu-card[data-platform*="youtube"]::before { background: #FF0000; }
.fu-card[data-platform*="youtube"] .fu-icon-wrap { background: rgba(255,0,0,0.08); color: #FF0000; }
.fu-card[data-platform*="whatsapp"]::before { background: #25D366; }
.fu-card[data-platform*="whatsapp"] .fu-icon-wrap { background: rgba(37,211,102,0.1); color: #25D366; }
.fu-card[data-platform*="twitter"]::before { background: #1DA1F2; }
.fu-card[data-platform*="twitter"] .fu-icon-wrap { background: rgba(29,161,242,0.1); color: #1DA1F2; }
.fu-card[data-platform*="tiktok"]::before { background: #010101; }
.fu-card[data-platform*="tiktok"] .fu-icon-wrap { background: rgba(0,0,0,0.06); color: #010101; }
.fu-card[data-platform*="telegram"]::before { background: #0088CC; }
.fu-card[data-platform*="telegram"] .fu-icon-wrap { background: rgba(0,136,204,0.1); color: #0088CC; }
.fu-card[data-platform*="linkedin"]::before { background: #0A66C2; }
.fu-card[data-platform*="linkedin"] .fu-icon-wrap { background: rgba(10,102,194,0.1); color: #0A66C2; }
.fu-card::before { background: var(--gw-primary); }
.fu-icon-wrap { background: rgba(99,102,241,0.08); color: var(--gw-primary); }
.fu-empty {
  grid-column: 1 / -1; text-align: center; padding: 3.5rem 1rem; color: var(--gw-text-muted);
  border: 2px dashed var(--gw-border); border-radius: var(--gw-r-lg); background: #fafcfe;
}
.fu-empty i { display: block; font-size: 2.75rem; margin-bottom: 1rem; color: #cbd5e1; }
.fu-empty p { font-size: 0.9rem; }
/* Redesigned social cards — vertical layout with gradient banner header */
.fu-card {
  position: relative;
  overflow: hidden;
  background: var(--gw-surface);
  border: 1px solid var(--gw-border);
  border-radius: var(--gw-r-lg);
  box-shadow: var(--gw-shadow-sm);
  text-decoration: none;
  display: flex;
  flex-direction: column;
  padding: 0;
  gap: 0;
  align-items: stretch;
  transition: box-shadow .35s var(--gw-ease), transform .35s var(--gw-ease), border-color .35s var(--gw-ease);
  animation: fuFadeUp .5s var(--gw-ease) both;
}
.fu-card:nth-child(1) { animation-delay: 0.06s; }
.fu-card:nth-child(2) { animation-delay: 0.10s; }
.fu-card:nth-child(3) { animation-delay: 0.14s; }
.fu-card:nth-child(4) { animation-delay: 0.18s; }
.fu-card:nth-child(5) { animation-delay: 0.22s; }
.fu-card:nth-child(6) { animation-delay: 0.26s; }
.fu-card:nth-child(7) { animation-delay: 0.30s; }
.fu-card:nth-child(8) { animation-delay: 0.34s; }
@keyframes fuFadeUp {
  from { opacity: 0; transform: translateY(24px) scale(.96); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}
.fu-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 40px -12px rgba(15, 23, 42, 0.18);
  border-color: transparent;
}
.fu-card:active {
  transform: translateY(-2px) scale(.98);
  transition-duration: .1s;
}

/* Colored gradient banner header */
.fu-card-head {
  position: relative;
  height: 5.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  transition: height .35s var(--gw-ease);
}
.fu-card:hover .fu-card-head {
  height: 6.25rem;
}
.fu-card-head::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(255,255,255,0) 40%, rgba(0,0,0,0.15) 100%);
  pointer-events: none;
}

/* Large icon in the banner */
.fu-head-icon {
  position: relative;
  z-index: 1;
  width: 3.2rem;
  height: 3.2rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  color: #fff;
  background: rgba(255,255,255,0.18);
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
  box-shadow: 0 8px 24px -4px rgba(0,0,0,0.25);
  transition: transform .35s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow .35s ease;
}
.fu-card:hover .fu-head-icon {
  transform: scale(1.15) rotate(-8deg);
  box-shadow: 0 12px 32px -6px rgba(0,0,0,0.35);
}
.fu-head-icon i { filter: drop-shadow(0 2px 4px rgba(0,0,0,0.15)); }

/* Card body */
.fu-card-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: .35rem;
  padding: 1.1rem 1.25rem 1.25rem;
}
.fu-plat-name {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--gw-text);
  letter-spacing: -0.01em;
  line-height: 1.2;
}
.fu-plat-handle {
  font-size: .78rem;
  color: var(--gw-text-muted);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-weight: 500;
}

/* CTA button */
.fu-card-btn {
  margin-top: auto;
  margin-top: .9rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .45rem;
  padding: .55rem 1rem;
  border-radius: 10px;
  font-size: .82rem;
  font-weight: 700;
  color: var(--gw-text-muted);
  background: var(--gw-border-soft);
  transition: background .3s ease, color .3s ease, gap .3s ease;
}
.fu-card:hover .fu-card-btn {
  background: rgba(37, 99, 235, 0.1);
  color: var(--gw-primary);
  gap: .65rem;
}
.fu-card-btn i {
  font-size: .7rem;
  transition: transform .3s ease;
}
.fu-card:hover .fu-card-btn i {
  transform: translateX(3px);
}

/* WhatsApp quick connect banner */
.fu-whatsapp {
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  gap: 1.25rem;
  margin-top: 2rem;
  padding: 1.75rem 2rem;
  border-radius: var(--gw-r-xl);
  background: linear-gradient(135deg, #0d2818 0%, #1a4a2e 50%, #128C7E 100%);
}
.fu-wa-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
}
.fu-wa-bg::before {
  content: '';
  position: absolute; right: -40px; top: -60px;
  width: 220px; height: 220px; border-radius: 50%;
  background: radial-gradient(circle, rgba(37,211,102,0.3), transparent 70%);
}
.fu-wa-bg::after {
  content: '';
  position: absolute; left: 20%; bottom: -40px;
  width: 160px; height: 160px; border-radius: 50%;
  background: radial-gradient(circle, rgba(18,140,126,0.25), transparent 70%);
}
.fu-wa-content {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 1.25rem;
  width: 100%;
}
.fu-wa-icon {
  width: 3.5rem;
  height: 3.5rem;
  border-radius: 18px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  color: #fff;
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.15);
}
.fu-wa-text { flex: 1; min-width: 0; }
.fu-wa-title { font-size: 1.15rem; font-weight: 800; color: #fff; letter-spacing: -0.01em; }
.fu-wa-desc { font-size: .85rem; color: rgba(214, 230, 245, 0.85); margin-top: .2rem; }
.fu-wa-btn {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .7rem 1.35rem;
  border-radius: 999px;
  font-size: .9rem;
  font-weight: 700;
  color: #0d2818;
  background: #fff;
  text-decoration: none;
  transition: transform .2s ease, box-shadow .2s ease;
}
.fu-wa-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.2);
}
.fu-wa-btn i { font-size: 1.1rem; color: #25D366; }

@media (max-width: 640px) {
  .fu-grid { grid-template-columns: 1fr; }
  .fu-wa-content { flex-direction: column; text-align: center; }
  .fu-wa-btn { width: 100%; justify-content: center; }
}

/* =========================================================
   Student — Profile
   ========================================================= */
.pr-page-wrap {
  max-width: 760px;
  display: flex;
  flex-direction: column;
  gap: 1.35rem;
}
.pr-card {
  background: var(--gw-surface);
  border: 1px solid var(--gw-border);
  border-radius: var(--gw-r-lg);
  box-shadow: var(--gw-shadow-sm);
  overflow: hidden;
  transition: box-shadow 0.3s ease;
}
.pr-card:hover { box-shadow: var(--gw-shadow-md); }
.pr-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 1.15rem 1.6rem;
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.04), rgba(14, 165, 169, 0.03));
  border-bottom: 1px solid var(--gw-border-soft);
}
.pr-card-head-left { display: flex; align-items: center; gap: 0.75rem; }
.pr-card-head-icon {
  width: 2.4rem; height: 2.4rem; border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1rem; flex-shrink: 0;
}
.pr-card-head h2 { font-size: 1.025rem; font-weight: 700; color: var(--gw-text); margin: 0; letter-spacing: -0.01em; }
.pr-card-body { padding: 1.4rem 1.6rem 1.6rem; }
.pr-avatar-wrap {
  display: flex;
  align-items: center;
  gap: 1.35rem;
  padding: 1.6rem 1.6rem 0;
}
.pr-avatar {
  width: 5rem; height: 5rem; border-radius: 50%;
  background: linear-gradient(135deg, var(--gw-primary), var(--gw-secondary));
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-size: 1.75rem; font-weight: 800; flex-shrink: 0;
  box-shadow: 0 8px 24px -6px rgba(99, 102, 241, 0.4);
  border: 3px solid rgba(255, 255, 255, 0.9);
  outline: 2px solid rgba(99, 102, 241, 0.15);
  transition: transform 0.3s ease;
}
.pr-avatar-wrap:hover .pr-avatar { transform: scale(1.05); }
.pr-avatar-name { font-size: 1.2rem; font-weight: 800; color: var(--gw-text); letter-spacing: -0.02em; }
.pr-avatar-role {
  font-size: 0.8rem; color: var(--gw-text-muted); margin-top: 0.15rem; font-weight: 500;
  display: flex; align-items: center; gap: 0.35rem;
}
.pr-avatar-role::before { content: ''; display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: var(--gw-success); }
.pr-fields { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 0.85rem; }
.pr-field {
  padding: 0.7rem 0.95rem;
  background: #f8fafc;
  border: 1px solid var(--gw-border);
  border-radius: var(--gw-r-sm);
  transition: border-color 0.2s ease;
}
.pr-field:hover { border-color: rgba(99, 102, 241, 0.2); }
.pr-field-label { font-size: 0.665rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.07em; color: var(--gw-text-muted); margin-bottom: 0.25rem; }
.pr-field-value { font-size: 0.9rem; font-weight: 600; color: var(--gw-text); word-break: break-word; }
.pr-field-full { grid-column: 1 / -1; }
.pr-btn {
  display: inline-flex; align-items: center; gap: 0.45rem;
  padding: 0.6rem 1.25rem; border: none; border-radius: 11px;
  font-weight: 700; font-size: 0.875rem; color: #fff;
  background: linear-gradient(135deg, var(--gw-primary), var(--gw-primary-600));
  box-shadow: 0 4px 14px -4px rgba(99, 102, 241, 0.4);
  cursor: pointer; transition: all 0.22s ease;
}
.pr-btn:hover { background: linear-gradient(135deg, var(--gw-primary-600), var(--gw-primary-700)); transform: translateY(-2px); box-shadow: 0 6px 20px -4px rgba(99, 102, 241, 0.5); }
.pr-btn-ghost { background: transparent; color: var(--gw-text-muted); box-shadow: none; border: 1px solid var(--gw-border); }
.pr-btn-ghost:hover { background: #f8fafc; color: var(--gw-text); transform: translateY(-1px); box-shadow: var(--gw-shadow-xs); border-color: #cbd5e1; }
.pr-card-body .form-input,
.pr-card-body .form-select,
.pr-card-body .form-textarea,
.pr-card-body input[type="text"],
.pr-card-body input[type="email"],
.pr-card-body input[type="password"],
.pr-card-body input[type="number"],
.pr-card-body textarea,
.pr-card-body select {
  background: #f8fafc;
  border-color: var(--gw-border);
  border-radius: var(--gw-r-sm);
  font-size: 0.9rem;
  color: var(--gw-text);
  transition: all 0.2s ease;
}
.pr-card-body input:focus,
.pr-card-body textarea:focus,
.pr-card-body select:focus {
  background: var(--gw-surface);
  border-color: var(--gw-primary);
  box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.1);
  outline: none;
}
.pr-card-body input:disabled { opacity: 0.6; background: #f1f5f9; cursor: not-allowed; }
.pr-card-body .form-label { font-size: 0.8rem; font-weight: 650; color: #374151; margin-bottom: 0.45rem; }
@media (max-width: 640px) {
  .pr-fields { grid-template-columns: 1fr; }
  .pr-card-body { padding: 1.1rem 1.15rem 1.25rem; }
  .pr-avatar-wrap { padding: 1.25rem 1.15rem 0; }
  .pr-page-wrap { max-width: 100%; }
}

/* Profile responsive grid — 1 col mobile, 2 cols desktop */
.pr-grid {
  display: grid;
  gap: 1.25rem;
  width: 100%;
}
@media (min-width: 640px) { .pr-grid { grid-template-columns: 1fr 1fr; } }

/* Card that spans full width across both columns */
.pr-card-wide {
  grid-column: 1 / -1;
}

/* =========================================================
   STUDENT NOTES / BOOKS TABS
   ========================================================= */
.gw-tabs {
  display: flex;
  gap: .25rem;
  padding: .25rem;
  margin: 0 0 1.25rem;
  background: #F1F5F9;
  border-radius: 14px;
  border: 1px solid rgba(226, 232, 240, 0.5);
  box-shadow: inset 0 1px 2px rgba(15, 23, 42, 0.04);
  width: fit-content;
}
.gw-tab {
  border: none;
  background: transparent;
  padding: .55rem 1.2rem;
  border-radius: 11px;
  font-size: .85rem;
  font-weight: 600;
  color: var(--gw-text-muted);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  transition: background .2s ease, color .2s ease, box-shadow .2s ease;
}
.gw-tab:hover { color: var(--gw-text); background: rgba(255,255,255,0.5); }
.gw-tab.active {
  background: #fff;
  color: var(--gw-primary);
  box-shadow: 0 1px 4px rgba(15,23,42,0.08), 0 0 0 1px rgba(226,232,240,0.6);
}
.gw-tab i { font-size: .9rem; }

/* Empty state */
.nt-empty {
  grid-column: 1 / -1;
  text-align: center;
  padding: 3.5rem 1rem;
  color: var(--gw-text-muted);
  border: 2px dashed var(--gw-border);
  border-radius: var(--gw-r-lg);
  background: #fafcfe;
}
.nt-empty i { display: block; font-size: 2.5rem; margin-bottom: .75rem; color: #cbd5e1; }
.nt-empty p { font-size: .9rem; }

.nt-book-free { font-size: .78rem; font-weight: 600; color: var(--gw-text-muted); display: flex; align-items: center; gap: .3rem; }

