/* ============================================================
   Zoestra Studio — Portal Dashboard
   Brand-matched · Fixed expanded sidebar · Fully responsive
   ============================================================ */
@import url('https://fonts.googleapis.com/css2?family=Inter:ital,opsz,wght@0,14..32,100..900;1,14..32,100..900&display=swap');

:root {
  --font-sans: 'Inter', ui-sans-serif, system-ui, sans-serif;

  /* Exact brand palette — matched to main site */
  --white:       #ffffff;
  --dark:        #1a1a1a;
  --charcoal:    #1e1e1e;
  --grey:        #6b6b6b;
  --cream:       #f9f7f4;

  --purple:      #8b5cf6;
  --purple-dark: #7c3aed;
  --purple-light:  rgba(139, 92, 246, 0.1);
  --purple-medium: rgba(139, 92, 246, 0.18);
  --purple-glow: rgba(139, 92, 246, 0.35);

  --teal:        #14b8a6;
  --teal-dark:   #0d9488;
  --teal-light:  rgba(20, 184, 166, 0.1);
  --teal-glow:   rgba(20, 184, 166, 0.3);

  --yellow:      #f5a623;
  --yellow-light: rgba(245, 166, 35, 0.1);

  --mint:        #d0f0e4;
  --mint-dark:   #5a9e86;
  --green:       #2d8a6e;
  --green-light: rgba(45, 138, 110, 0.1);

  --red:          #ef4444;
  --red-light:    rgba(239, 68, 68, 0.1);

  /* Layout */
  --sidebar-width: 240px;
  --card-radius: 24px;

  /* Transitions — matched to main site */
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-smooth: 0.35s cubic-bezier(0.22, 0.61, 0.36, 1);
}

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

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

body {
  font-family: var(--font-sans);
  background-color: var(--cream);
  color: var(--charcoal);
  line-height: 1.6;
  height: 100vh;
}

a { text-decoration: none; color: inherit; }
ul { list-style: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }

/* ============================================================
   Page shell
   ============================================================ */
.dashboard-page {
  display: flex;
  height: 100vh;
  overflow: hidden;
}

/* ============================================================
   Sidebar — fixed, expanded, dark with strong contrast
   ============================================================ */
.dashboard-sidebar {
  width: var(--sidebar-width);
  min-width: var(--sidebar-width);
  height: 100vh;
  background-color: var(--dark);
  display: flex;
  flex-direction: column;
  align-items: stretch;
  padding: 1.5rem 0.75rem;
  position: relative;
  z-index: 100;
  border-right: 2px solid rgba(139, 92, 246, 0.25);
  box-shadow: 4px 0 20px rgba(0, 0, 0, 0.15);
  overflow: hidden;
}

/* Logo */
.dashboard-sidebar__logo {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  padding: 0 0.85rem;
  margin-bottom: 2rem;
  flex-shrink: 0;
  gap: 0.65rem;
  user-select: none;
}

.dashboard-sidebar__logo-img {
  width: 32px;
  height: 32px;
  flex-shrink: 0;
  color: #ffffff;
}

.dashboard-sidebar__logo-text {
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--white);
  letter-spacing: 0.06em;
  white-space: nowrap;
  opacity: 1;
  overflow: hidden;
}

/* Nav */
.dashboard-sidebar__nav {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0.75rem;
  width: 100%;
  padding: 0 0.5rem;
  overflow-y: auto;
  overflow-x: hidden;
}

.dashboard-sidebar__nav::-webkit-scrollbar { width: 0; height: 0; }
.dashboard-sidebar__nav::-webkit-scrollbar-track { background: transparent; }
.dashboard-sidebar__nav::-webkit-scrollbar-thumb { background-color: transparent; }
.dashboard-sidebar__nav { scrollbar-width: none; -ms-overflow-style: none; }

/* Nav item */
.dashboard-sidebar__item {
  position: relative;
  min-height: 48px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  padding: 0.75rem 0.85rem;
  color: rgba(255, 255, 255, 0.45);
  transition: all var(--transition);
  gap: 0.75rem;
  text-decoration: none;
}

.dashboard-sidebar__item:hover {
  color: rgba(255, 255, 255, 0.9);
  background-color: rgba(255, 255, 255, 0.05);
}

.sidebar-unread-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--purple);
  box-shadow: 0 0 6px var(--purple-glow);
  margin-left: auto;
  flex-shrink: 0;
}

.dashboard-sidebar__item--active {
  color: var(--white);
  background-color: var(--purple-medium);
}

.dashboard-sidebar__item--active:hover {
  background-color: rgba(139, 92, 246, 0.28);
}

.dashboard-sidebar__item-icon {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.dashboard-sidebar__item-label {
  font-size: 0.88rem;
  font-weight: 500;
  white-space: nowrap;
  opacity: 1;
  overflow: hidden;
}

/* Tooltip — hidden when expanded */
.dashboard-sidebar__tooltip {
  display: none;
}

/* Bottom */
.dashboard-sidebar__bottom {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0.15rem;
  width: 100%;
  padding: 0 0.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 0.75rem;
  margin-top: auto;
  flex-shrink: 0;
}

/* ============================================================
   Main area — strict viewport containment
   ============================================================ */
.dashboard-main {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  padding: 1.5rem;
  display: flex;
  justify-content: center;
}

/* Floating card — fixed viewport height, internal content scrolls */
.dashboard-card {
  width: 100%;
  max-width: 1320px;
  height: 100%;
  background-color: var(--white);
  border-radius: var(--card-radius);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04), 0 6px 24px rgba(0, 0, 0, 0.06);
  border: 1px solid rgba(0, 0, 0, 0.05);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  position: relative;
}

/* ============================================================
   Header top row
   ============================================================ */
.dashboard-card__header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  padding: 2rem 2.5rem 1.5rem;
  flex-wrap: wrap;
  gap: 1.5rem;
  flex-shrink: 0;
}

/* Mobile hamburger toggle */
.dashboard-hamburger {
  display: none;
  position: absolute;
  top: 20px;
  right: 20px;
  z-index: 100;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: transparent;
  border: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  cursor: pointer;
}
.dashboard-hamburger__bar {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--charcoal);
  border-radius: 2px;
  transition: all var(--transition);
}

/* Sidebar overlay for mobile */
.dashboard-sidebar-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  z-index: 99;
}

/* Sidebar close button (mobile only) */
.dashboard-sidebar__close {
  display: none;
  position: absolute;
  top: 1.25rem;
  right: 1rem;
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: transparent;
  border: none;
  align-items: center;
  justify-content: center;
  color: rgba(255, 255, 255, 0.7);
  cursor: pointer;
  z-index: 102;
  transition: all var(--transition);
}
.dashboard-sidebar__close:hover {
  background: rgba(255, 255, 255, 0.15);
  color: var(--white);
}

.dashboard-breadcrumb {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.82rem;
  color: var(--grey);
  margin-bottom: 0.5rem;
}

.dashboard-breadcrumb__sep { color: rgba(0, 0, 0, 0.2); }
.dashboard-breadcrumb__current { color: var(--charcoal); font-weight: 600; }

.dashboard-title {
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--dark);
  letter-spacing: -0.03em;
  line-height: 1.15;
}

.dashboard-title__sub {
  font-size: 0.88rem;
  font-weight: 400;
  color: var(--grey);
  margin-top: 0.25rem;
}

/* Action buttons — matched to main site .btn styles */
.dashboard-header-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-shrink: 0;
}

.dashboard-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-weight: 600;
  font-size: 0.88rem;
  padding: 0.65rem 1.4rem;
  border-radius: 100px;
  transition: all var(--transition);
  white-space: nowrap;
  letter-spacing: 0.01em;
}

.dashboard-btn--primary {
  background-color: var(--purple);
  color: var(--white);
}
.dashboard-btn--primary:hover {
  background-color: var(--purple-dark);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px var(--purple-glow);
}

.dashboard-btn--outline {
  border: 1.5px solid rgba(0, 0, 0, 0.12);
  color: var(--charcoal);
  background: transparent;
}
.dashboard-btn--outline:hover {
  border-color: rgba(0, 0, 0, 0.25);
  background-color: rgba(0, 0, 0, 0.02);
  transform: translateY(-1px);
}

/* ============================================================
   Tabs — horizontal scroll with breathable edges
   ============================================================ */
.dashboard-tabs {
  display: flex;
  gap: 0;
  padding: 1.75rem 2.5rem 0;
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
  overflow-x: auto;
  -ms-overflow-style: none;
  scrollbar-width: none;
  flex-shrink: 0;
}
.dashboard-tabs::-webkit-scrollbar { display: none; }

.dashboard-tab {
  padding: 0.75rem 1.25rem;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--grey);
  position: relative;
  transition: color var(--transition);
  white-space: nowrap;
  flex-shrink: 0;
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
}

.dashboard-tab:hover { color: var(--charcoal); }

.dashboard-tab--active {
  color: var(--purple);
  border-bottom-color: var(--purple);
}

.dashboard-tab__count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.7rem;
  font-weight: 700;
  min-width: 20px;
  height: 20px;
  border-radius: 6px;
  padding: 0 0.35rem;
  margin-left: 0.4rem;
  background-color: rgba(0, 0, 0, 0.04);
  color: var(--grey);
}

.dashboard-tab--active .dashboard-tab__count {
  background-color: var(--purple-light);
  color: var(--purple);
}

/* ============================================================
   Filter bar
   ============================================================ */
.dashboard-filters {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.5rem 2.5rem;
  gap: 1rem;
  flex-wrap: wrap;
}

.dashboard-filters__label {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--charcoal);
  white-space: nowrap;
}

.dashboard-search {
  position: relative;
  flex: 1;
  max-width: 360px;
  min-width: 200px;
}

.dashboard-search__icon {
  position: absolute;
  left: 1rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--grey);
  opacity: 0.5;
  pointer-events: none;
}

.dashboard-search__input {
  width: 100%;
  font-family: inherit;
  font-size: 0.88rem;
  padding: 0.65rem 1rem 0.65rem 2.65rem;
  background-color: var(--cream);
  border: 1.5px solid transparent;
  border-radius: 12px;
  color: var(--charcoal);
  outline: none;
  transition: all var(--transition);
}

.dashboard-search__input::placeholder { color: rgba(0, 0, 0, 0.3); }
.dashboard-search__input:focus {
  border-color: var(--purple);
  background-color: var(--white);
  box-shadow: 0 0 0 3px var(--purple-light);
}

/* ============================================================
   Content split
   ============================================================ */
.dashboard-content {
  display: flex;
  flex: 1;
}

.dashboard-content__table {
  flex: 1;
  min-width: 0;
}

/* ============================================================
   Data table
   ============================================================ */
.dashboard-table-wrap {
  padding: 0 2.5rem 2.5rem;
  overflow-x: auto;
}

.dashboard-table {
  width: 100%;
  border-collapse: collapse;
}

.dashboard-table th {
  text-align: left;
  padding: 0.85rem 1rem;
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--grey);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
  white-space: nowrap;
  background-color: var(--white);
  position: sticky;
  top: 0;
}

.dashboard-table td {
  padding: 1rem;
  font-size: 0.88rem;
  color: var(--charcoal);
  border-bottom: 1px solid rgba(0, 0, 0, 0.04);
  white-space: nowrap;
  vertical-align: middle;
}

.dashboard-table tbody tr {
  transition: background-color var(--transition);
}

.dashboard-table tbody tr:hover {
  background-color: rgba(139, 92, 246, 0.03);
}

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

/* Learner cell */
.dashboard-table__learner {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.dashboard-table__avatar {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--white);
  flex-shrink: 0;
}

.dashboard-table__avatar--purple { background-color: var(--purple); }
.dashboard-table__avatar--teal   { background-color: var(--teal); }
.dashboard-table__avatar--yellow { background-color: var(--yellow); }
.dashboard-table__avatar--green  { background-color: var(--green); }
.dashboard-table__avatar--grey   { background-color: var(--grey); }
.dashboard-table__avatar--dark   { background-color: var(--charcoal); }

.dashboard-table__name {
  font-weight: 600;
  color: var(--charcoal);
}

.dashboard-table__email {
  font-size: 0.78rem;
  color: var(--grey);
}

/* Pill badge — matched to main site colors */
.dashboard-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.78rem;
  font-weight: 600;
  padding: 0.3rem 0.7rem;
  border-radius: 100px;
  white-space: nowrap;
}

.dashboard-badge__dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  flex-shrink: 0;
}

.dashboard-badge--active {
  background-color: var(--green-light);
  color: var(--mint-dark);
}
.dashboard-badge--active .dashboard-badge__dot { background-color: var(--green); }

.dashboard-badge--pending {
  background-color: var(--yellow-light);
  color: #c78512;
}
.dashboard-badge--pending .dashboard-badge__dot { background-color: var(--yellow); }

.dashboard-badge--completed {
  background-color: var(--purple-light);
  color: var(--purple);
}
.dashboard-badge--completed .dashboard-badge__dot { background-color: var(--purple); }

.dashboard-badge--waitlisted {
  background-color: rgba(107, 107, 107, 0.1);
  color: var(--grey);
}
.dashboard-badge--waitlisted .dashboard-badge__dot { background-color: var(--grey); }

/* Amount */
.dashboard-table__amount {
  font-weight: 700;
  color: var(--charcoal);
}

/* Actions */
.dashboard-table__actions {
  position: relative;
}

.dashboard-table__menu-btn {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--grey);
  transition: all var(--transition);
}
.dashboard-table__menu-btn:hover {
  background-color: rgba(0, 0, 0, 0.04);
  color: var(--charcoal);
}

/* ============================================================
   Detail panel
   ============================================================ */
.dashboard-panel {
  width: 340px;
  min-width: 340px;
  border-left: 1px solid rgba(0, 0, 0, 0.06);
  display: flex;
  flex-direction: column;
  overflow-y: auto;
}

.dashboard-panel::-webkit-scrollbar { width: 5px; }
.dashboard-panel::-webkit-scrollbar-track { background: transparent; }
.dashboard-panel::-webkit-scrollbar-thumb { background-color: rgba(0, 0, 0, 0.08); border-radius: 3px; }

.dashboard-panel__tabs {
  display: flex;
  padding: 1.25rem 1.5rem 0;
  gap: 0.25rem;
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.dashboard-panel__tab {
  padding: 0.65rem 1rem;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--grey);
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
  transition: all var(--transition);
}
.dashboard-panel__tab:hover { color: var(--charcoal); }
.dashboard-panel__tab--active { color: var(--purple); border-bottom-color: var(--purple); }

.dashboard-panel__body {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1.75rem;
}

.dashboard-panel__section-label {
  font-size: 0.68rem;
  font-weight: 700;
  color: var(--grey);
  text-transform: uppercase;
  letter-spacing: 0.07em;
  margin-bottom: 0.75rem;
}

.dashboard-panel__creator {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.dashboard-panel__creator-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--purple), var(--teal));
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-weight: 700;
  font-size: 0.8rem;
  flex-shrink: 0;
}

.dashboard-panel__creator-name {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--charcoal);
}

.dashboard-panel__creator-role {
  font-size: 0.78rem;
  color: var(--grey);
}

/* Timeline */
.dashboard-panel__timeline {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.dashboard-panel__tl-item {
  display: flex;
  gap: 0.75rem;
}

.dashboard-panel__tl-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  margin-top: 0.42rem;
  flex-shrink: 0;
}
.dashboard-panel__tl-dot--purple { background-color: var(--purple); }
.dashboard-panel__tl-dot--teal   { background-color: var(--teal); }
.dashboard-panel__tl-dot--yellow { background-color: var(--yellow); }

.dashboard-panel__tl-title {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--charcoal);
}
.dashboard-panel__tl-date {
  font-size: 0.76rem;
  color: var(--grey);
}

/* Labels */
.dashboard-panel__labels {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.dashboard-panel__tag {
  font-size: 0.73rem;
  font-weight: 600;
  padding: 0.3rem 0.65rem;
  border-radius: 100px;
}
.dashboard-panel__tag--purple { background-color: var(--purple-light); color: var(--purple); }
.dashboard-panel__tag--teal   { background-color: var(--teal-light); color: var(--teal-dark); }
.dashboard-panel__tag--yellow { background-color: var(--yellow-light); color: #c78512; }
.dashboard-panel__tag--green  { background-color: var(--green-light); color: var(--mint-dark); }

/* Team */
.dashboard-panel__team {
  display: flex;
  align-items: center;
}
.dashboard-panel__team-stack {
  display: flex;
  align-items: center;
}
.dashboard-panel__team-avatar {
  width: 34px; height: 34px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 0.68rem; font-weight: 700;
  color: var(--white);
  border: 2.5px solid var(--white);
  margin-left: -8px;
  flex-shrink: 0;
}
.dashboard-panel__team-avatar:first-child { margin-left: 0; }
.dashboard-panel__team-avatar--1 { background-color: var(--purple); }
.dashboard-panel__team-avatar--2 { background-color: var(--teal); }
.dashboard-panel__team-avatar--3 { background-color: var(--yellow); }
.dashboard-panel__team-avatar--4 { background-color: var(--grey); }
.dashboard-panel__team-plus {
  width: 34px; height: 34px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 0.7rem; font-weight: 700;
  color: var(--grey);
  background-color: rgba(0, 0, 0, 0.04);
  border: 2.5px solid var(--white);
  margin-left: -8px;
}

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 1200px) {
  .dashboard-panel {
    width: 300px;
    min-width: 300px;
  }
  .dashboard-card__header { padding: 1.5rem 1.5rem 1.25rem; }
  .dashboard-tabs { padding: 1.5rem 1.5rem 0; }
  .dashboard-filters { padding: 1.25rem 1.5rem; }
  .dashboard-table-wrap { padding: 0 1.5rem 1.5rem; }
  .dashboard-submissions { padding: 0 1.5rem 1.5rem; }
  .dashboard-form { padding: 1.5rem; }
  .dashboard-programs { padding: 1.5rem; }
  .dashboard-toggle-bar { padding: 0 1.5rem 1rem; }
}

@media (max-width: 1024px) {
  .dashboard-panel { display: none; }
}

@media (max-width: 780px) {
  .dashboard-sidebar {
    position: fixed;
    left: calc(var(--sidebar-width) * -1);
    top: 0;
    z-index: 101;
    transition: left var(--transition-smooth);
    overflow-y: auto;
    overflow-x: hidden;
    -webkit-overflow-scrolling: touch;
    scroll-behavior: smooth;
    border-right: none;
    height: 100dvh;
    padding-bottom: calc(0.25rem + env(safe-area-inset-bottom, 0px));
  }
  .dashboard-sidebar--open {
    left: 0;
  }
  .dashboard-sidebar-overlay--visible {
    display: block;
  }
  .dashboard-hamburger {
    display: flex;
    top: 8px;
    right: 12px;
  }
  .dashboard-sidebar__close {
    display: flex;
    z-index: 103;
  }
  .dashboard-sidebar__nav {
    gap: 0.65rem;
    flex: 1 1 0;
    overflow-y: auto;
    padding-bottom: 0.5rem;
    min-height: 0;
    mask-image: linear-gradient(to bottom, transparent 0%, black 6px, black calc(100% - 6px), transparent 100%);
    -webkit-mask-image: linear-gradient(to bottom, transparent 0%, black 6px, black calc(100% - 6px), transparent 100%);
  }
  .dashboard-sidebar__item {
    min-height: 44px;
    padding: 0.65rem 1rem;
  }
  .dashboard-sidebar__item-label {
    font-size: 0.85rem;
  }
  .dashboard-sidebar__logo {
    margin-bottom: 2rem;
  }
  .dashboard-sidebar__bottom {
    margin-top: 0;
    padding: 0.5rem 0.75rem 0.75rem;
    background-color: var(--dark);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    flex-shrink: 0;
  }
  .dashboard-main { padding: 0.75rem; }
  .dashboard-card { border-radius: 18px; }
  .dashboard-card__header {
    flex-direction: column;
    gap: 1rem;
    padding: 1.25rem 1.25rem 1.25rem;
  }
  .dashboard-header-actions {
    width: 100%;
    flex-wrap: wrap;
  }
  .dashboard-header-actions .dashboard-btn {
    flex: 1;
    justify-content: center;
    min-width: 110px;
  }
  .dashboard-tabs { padding: 1.25rem 1rem 0; }
  .dashboard-tab {
    padding: 0.65rem 0.85rem;
    font-size: 0.8rem;
  }
  .dashboard-filters {
    flex-direction: column;
    align-items: flex-start;
    padding: 1rem 1.25rem;
  }
  .dashboard-search { max-width: 100%; width: 100%; }
  .dashboard-table-wrap { padding: 0 0 1.25rem; }
  .dashboard-submissions { padding: 0 1.25rem 1.25rem; }
  .dashboard-form { padding: 1.25rem; }
  .dashboard-programs { padding: 1.25rem 1.25rem; }
  .dashboard-toggle-bar { padding: 0 1.25rem 0.75rem; }
  .dashboard-table th,
  .dashboard-table td {
    padding: 0.75rem 0.65rem;
  }
  /* Profile */
  .dashboard-profile { padding: 0 0 1.5rem; gap: 1.25rem; }
  .profile-card { border-radius: 0; }
  .profile-card__header {
    padding: 1.5rem 1rem;
    gap: 1rem;
  }
  .profile-card__avatar { width: 52px; height: 52px; font-size: 1.2rem; }
  .profile-card__name { font-size: 1.15rem; }
  .profile-card__details { padding: 0.25rem 1rem 1.5rem; }
  .profile-detail { padding: 0.75rem 0; }
  .profile-detail__label { min-width: 0; font-size: 0.75rem; }
}

@media (max-width: 640px) {
  .dashboard-main { padding: 0.5rem; }
  .dashboard-card { border-radius: 14px; }
  .dashboard-title { font-size: 1.35rem; }
  .dashboard-card__header { padding: 1rem 0.5rem 1rem; gap: 0.75rem; }
  .dashboard-tabs { padding: 1rem 0.75rem 0; }
  .dashboard-tab {
    padding: 0.55rem 0.65rem;
    font-size: 0.75rem;
  }
  .dashboard-filters { padding: 0.75rem 1rem; }
  .dashboard-table-wrap { padding: 0 0 1rem; }
  .dashboard-submissions { padding: 0 1rem 1rem; }
  .dashboard-form { padding: 1rem; }
  .dashboard-programs { padding: 1rem; }
  /* Profile */
  .dashboard-profile { padding: 0 0 1.25rem; gap: 1rem; }
  .profile-card { border-radius: 0; }
  .profile-card__header {
    padding: 1.25rem 0.6rem;
    gap: 0.75rem;
  }
  .profile-card__avatar { width: 44px; height: 44px; font-size: 1rem; }
  .profile-card__name { font-size: 1rem; }
  .profile-card__details { padding: 0 0.6rem 1.25rem; }
  .profile-detail { padding: 0.65rem 0; gap: 0.5rem; }
  .profile-detail__label {
    min-width: 0;
    flex-shrink: 0;
    font-size: 0.7rem;
    gap: 0.35rem;
    white-space: nowrap;
  }
  .profile-detail__value {
    font-size: 0.82rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  .dashboard-toggle-bar { padding: 0 1rem 0.75rem; }
  .dashboard-table th {
    font-size: 0.65rem;
    padding: 0.6rem 0.5rem;
  }
  .dashboard-table td {
    font-size: 0.78rem;
    padding: 0.65rem 0.5rem;
  }
  .dashboard-header-actions .dashboard-btn {
    font-size: 0.78rem;
    padding: 0.5rem 0.8rem;
  }
}

/* ============================================================
   Dynamic content sections (page-based views)
   ============================================================ */
.dashboard-section {
  display: none;
  flex-direction: column;
  flex: 1;
  min-height: 0;
}
.dashboard-section--active {
  display: flex;
  overflow-y: auto;
  overflow-x: hidden;
}
.dashboard-section--active::-webkit-scrollbar { width: 6px; }
.dashboard-section--active::-webkit-scrollbar-track { background: transparent; }
.dashboard-section--active::-webkit-scrollbar-thumb { background-color: rgba(0, 0, 0, 0.08); border-radius: 3px; }

/* ============================================================
   Section header with actions
   ============================================================ */
.dashboard-section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.5rem 2.5rem;
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
  flex-wrap: wrap;
  gap: 1rem;
}
.dashboard-section-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--charcoal);
}

/* ============================================================
   Action buttons — Accept / Reject / Delete
   ============================================================ */
.dashboard-action-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.45rem 0.85rem;
  font-size: 0.78rem;
  font-weight: 600;
  border-radius: 8px;
  transition: all var(--transition);
  white-space: nowrap;
}
.dashboard-action-btn--accept {
  background-color: var(--green-light);
  color: var(--green);
}
.dashboard-action-btn--accept:hover {
  background-color: var(--green);
  color: var(--white);
}
.dashboard-action-btn--reject {
  background-color: var(--yellow-light);
  color: #c78512;
}
.dashboard-action-btn--reject:hover {
  background-color: var(--yellow);
  color: var(--white);
}
.dashboard-action-btn--delete {
  background-color: var(--red-light);
  color: var(--red);
}
.dashboard-action-btn--delete:hover {
  background-color: var(--red);
  color: var(--white);
}

/* ============================================================
   Toast notification
   ============================================================ */
.dashboard-toast {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  background-color: var(--charcoal);
  color: var(--white);
  padding: 0.85rem 1.5rem;
  border-radius: 12px;
  font-size: 0.88rem;
  font-weight: 600;
  z-index: 9999;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
  transform: translateY(120%);
  opacity: 0;
  transition: all var(--transition);
  pointer-events: none;
}
.dashboard-toast--visible {
  transform: translateY(0);
  opacity: 1;
}
.dashboard-toast--success {
  background-color: var(--green);
}
.dashboard-toast--error {
  background-color: var(--red);
}

/* ============================================================
   Inline form (used in teachers section and modals)
   ============================================================ */
.dashboard-form {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  padding: 1.5rem 2.5rem;
  max-width: 600px;
}
.dashboard-form__row {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}
.dashboard-form__field {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  flex: 1;
  min-width: 200px;
}
.dashboard-form__label {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--grey);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.dashboard-form__input,
.dashboard-form__select {
  font-family: inherit;
  font-size: 0.9rem;
  padding: 0.65rem 0.85rem;
  border: 1.5px solid rgba(0, 0, 0, 0.1);
  border-radius: 10px;
  color: var(--charcoal);
  background: var(--white);
  outline: none;
  transition: all var(--transition);
}
.dashboard-form__input:focus,
.dashboard-form__select:focus {
  border-color: var(--purple);
  box-shadow: 0 0 0 3px var(--purple-light);
}
.dashboard-form__input::placeholder {
  color: rgba(0, 0, 0, 0.3);
}

/* ============================================================
   Empty state
   ============================================================ */
.dashboard-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 4rem 2rem;
  text-align: center;
  color: var(--grey);
}
.dashboard-empty__icon {
  margin-bottom: 1rem;
  opacity: 0.3;
}
.dashboard-empty__text {
  font-size: 1rem;
  font-weight: 500;
}

/* ============================================================
   Search highlight
   ============================================================ */
.dashboard-table__learner-detail {
  font-size: 0.78rem;
  color: var(--grey);
}

/* ============================================================
   Login page — matched to main site brand aesthetic
   ============================================================ */
.login-wrapper {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  background: var(--cream);
}
.login-card-new {
  width: 100%;
  max-width: 460px;
  background: var(--white);
  border-radius: var(--card-radius);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04), 0 12px 40px rgba(0, 0, 0, 0.08);
  border: 1px solid rgba(0, 0, 0, 0.06);
  overflow: hidden;
}
.login-card-new__header {
  background: var(--cream);
  padding: 2.5rem 2rem 2rem;
  text-align: center;
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}
.login-card-new__logo {
  width: 56px;
  height: 56px;
  object-fit: contain;
  margin: 0 auto 1rem;
  display: block;
}
.login-card-new__title {
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--charcoal);
  letter-spacing: 0.06em;
  margin-bottom: 0.3rem;
}
.login-card-new__sub {
  font-size: 0.88rem;
  font-weight: 400;
  color: var(--grey);
}
.login-card-new__body {
  padding: 2rem 2rem 2rem;
}
.login-field {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  margin-bottom: 1.25rem;
}
.login-field__label {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--charcoal);
}
.login-field__input {
  font-family: inherit;
  font-size: 0.95rem;
  padding: 0.8rem 1.05rem;
  border: 1.5px solid rgba(0, 0, 0, 0.12);
  border-radius: 12px;
  color: var(--charcoal);
  background: var(--cream);
  outline: none;
  transition: all var(--transition);
}
.login-field__input:focus {
  border-color: var(--purple);
  background: var(--white);
  box-shadow: 0 0 0 3px var(--purple-light);
}
.login-field__input::placeholder {
  color: rgba(0, 0, 0, 0.28);
}
.login-submit-btn {
  width: 100%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  padding: 0.85rem 2rem;
  font-size: 1rem;
  font-weight: 700;
  font-family: inherit;
  border: none;
  border-radius: 100px;
  background: var(--purple);
  color: var(--white);
  cursor: pointer;
  transition: all var(--transition);
  margin-top: 0.5rem;
  letter-spacing: 0.01em;
}
.login-submit-btn:hover {
  background: var(--purple-dark);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px var(--purple-glow);
}
.login-submit-btn svg {
  transition: transform var(--transition);
}
.login-submit-btn:hover svg {
  transform: translateX(3px);
}
.login-error {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--red);
  text-align: center;
  margin-bottom: 0.5rem;
  display: none;
}
.login-error--visible {
  display: block;
}
.login-card-new__back {
  display: block;
  text-align: center;
  font-size: 0.84rem;
  font-weight: 500;
  color: var(--grey);
  margin-top: 1.25rem;
  transition: color var(--transition);
  text-decoration: none;
}
.login-card-new__back:hover {
  color: var(--purple);
}

/* ============================================================
   Submissions table (forms section)
   ============================================================ */
.dashboard-submissions {
  padding: 0 2.5rem 2.5rem;
  overflow-y: auto;
}
.dashboard-submission-card {
  background: var(--white);
  border: 1px solid rgba(0, 0, 0, 0.06);
  border-radius: 16px;
  padding: 1.25rem 1.5rem;
  margin-bottom: 0.75rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  transition: all var(--transition);
}
.dashboard-submission-card:hover {
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
  border-color: rgba(139, 92, 246, 0.2);
}
.dashboard-submission-card__info {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  min-width: 0;
}
.dashboard-submission-card__name {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--charcoal);
}
.dashboard-submission-card__meta {
  font-size: 0.8rem;
  color: var(--grey);
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}
.dashboard-submission-card__actions {
  display: flex;
  gap: 0.5rem;
  flex-shrink: 0;
}

/* ============================================================
   Status badges for submissions
   ============================================================ */
.dashboard-badge--rejected {
  background-color: var(--red-light);
  color: var(--red);
}
.dashboard-badge--rejected .dashboard-badge__dot {
  background-color: var(--red);
}

/* ============================================================
   Teacher toggle form
   ============================================================ */
.dashboard-form--hidden {
  display: none !important;
}
.dashboard-toggle-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 2.5rem 1rem;
  flex-wrap: wrap;
  gap: 1rem;
}
.dashboard-toggle-bar__label {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--charcoal);
}

/* ============================================================
   Cancel button (form reset)
   ============================================================ */
.dashboard-btn--cancel {
  border: 1.5px solid rgba(0, 0, 0, 0.12);
  color: var(--grey);
  background: transparent;
}
.dashboard-btn--cancel:hover {
  border-color: rgba(0, 0, 0, 0.25);
  background-color: rgba(0, 0, 0, 0.02);
  color: var(--charcoal);
}

/* ============================================================
   Programs section — breathable spacing
   ============================================================ */
.dashboard-programs {
  padding: 2rem 2.5rem;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  overflow-y: auto;
}
.dashboard-programs__card {
  background: var(--cream);
  border-radius: 20px;
  padding: 2rem;
  display: flex;
  gap: 1.5rem;
  align-items: flex-start;
  flex-wrap: wrap;
}
.dashboard-programs__card-img {
  width: 96px;
  height: 96px;
  border-radius: 14px;
  object-fit: cover;
  flex-shrink: 0;
}
.dashboard-programs__card-content {
  flex: 1;
  min-width: 260px;
}
.dashboard-programs__card-title {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--charcoal);
  margin-bottom: 0.5rem;
}
.dashboard-programs__card-intro {
  font-size: 0.88rem;
  color: var(--grey);
  line-height: 1.6;
  margin-bottom: 1rem;
}
.dashboard-programs__card-tags {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}
.dashboard-programs__card-tag {
  font-size: 0.73rem;
  font-weight: 600;
  padding: 0.3rem 0.7rem;
  border-radius: 100px;
  background: var(--white);
  color: var(--grey);
  border: 1px solid rgba(0, 0, 0, 0.06);
}

/* ============================================================
   Profile section — redesigned
   ============================================================ */
.dashboard-profile {
  padding: 0 2.5rem 2.5rem;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

/* Main profile card */
.profile-card {
  background: var(--white);
  border: 1px solid rgba(0, 0, 0, 0.06);
  border-radius: 16px;
  overflow: hidden;
}

/* Card header — avatar + name + badge */
.profile-card__header {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  padding: 1.75rem 2rem;
  background: var(--cream);
}

.profile-card__avatar {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-size: 1.4rem;
  font-weight: 800;
  flex-shrink: 0;
}

.profile-card__avatar--mint { background: var(--mint-dark); }
.profile-card__avatar--yellow { background: var(--yellow); }
.profile-card__avatar--teal { background: var(--teal); }

.profile-card__titles {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  min-width: 0;
}

.profile-card__name {
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--charcoal);
  letter-spacing: -0.02em;
  margin: 0;
  line-height: 1.25;
}

.profile-card__role {
  display: flex;
}

/* Details — icon-label rows */
.profile-card__details {
  display: flex;
  flex-direction: column;
  gap: 0;
  padding: 0.5rem 2rem 1.75rem;
}

.profile-detail {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.85rem 0;
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}
.profile-detail:last-child { border-bottom: none; }

.profile-detail__label {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--grey);
  min-width: 130px;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-shrink: 0;
  white-space: nowrap;
}
.profile-detail__label svg { color: rgba(0, 0, 0, 0.3); flex-shrink: 0; }

.profile-detail__value {
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--charcoal);
  flex: 1;
  min-width: 0;
  word-break: keep-all;
  overflow: hidden;
  text-overflow: ellipsis;
}
.profile-detail__value--purple {
  color: var(--purple);
  font-weight: 700;
}

/* ============================================================
   Category accent colors
   ============================================================ */
:root {
  --electric-blue: #2563eb;
  --electric-blue-light: rgba(37, 99, 235, 0.1);
  --electric-blue-medium: rgba(37, 99, 235, 0.18);
  --sunset-orange: #f97316;
  --sunset-orange-light: rgba(249, 115, 22, 0.1);
  --sunset-orange-medium: rgba(249, 115, 22, 0.18);
  --emerald-green: #10b981;
  --emerald-green-light: rgba(16, 185, 129, 0.1);
  --emerald-green-medium: rgba(16, 185, 129, 0.18);
}

/* ============================================================
   Three-Zone Bento Layout
   ============================================================ */
.bento-layout {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  padding: 0 2.5rem 2.5rem;
  overflow-y: auto;
  animation: fadeInUp 0.5s ease both;
}

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

.bento-zone {
  width: 100%;
}
.bento-zone--kpi {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}
.bento-zone--middle {
  display: grid;
  grid-template-columns: 65% 35%;
  gap: 1.25rem;
}
.bento-zone__left,
.bento-zone__right {
  min-width: 0;
}
.bento-zone--bottom {
  width: 100%;
}

.bento-widget {
  background: var(--white);
  border: 1px solid rgba(0, 0, 0, 0.05);
  border-radius: 16px;
  padding: 1.5rem;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.03), 0 4px 12px rgba(0, 0, 0, 0.04);
  height: 100%;
  display: flex;
  flex-direction: column;
}

.bento-widget__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.25rem;
}
.bento-widget__title {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--charcoal);
}
.bento-widget__badge {
  font-size: 0.7rem;
  font-weight: 600;
  background: var(--purple-light);
  color: var(--purple);
  padding: 0.2rem 0.6rem;
  border-radius: 100px;
}

/* ============================================================
   Right stack — coach + upcoming vertically stacked
   ============================================================ */
.bento-zone__right-stack {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  height: 100%;
}
.bento-zone__right-stack .bento-widget {
  flex: 1;
}

/* ============================================================
   WIDGET 1: Today's Flow — horizontal timeline
   ============================================================ */
.flow-timeline {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.flow-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.65rem 0.85rem;
  border-radius: 12px;
  transition: all var(--transition);
}
.flow-item:hover { background: var(--cream); }
.flow-item--active {
  background: var(--purple-light);
}
.flow-item--active:hover { background: var(--purple-light); }

.flow-item__dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--grey);
  flex-shrink: 0;
  opacity: 0.4;
}
.flow-item--active .flow-item__dot {
  opacity: 1;
  box-shadow: 0 0 0 4px var(--purple-glow);
}

.flow-item__body {
  flex: 1;
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}
.flow-item__time {
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--grey);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  white-space: nowrap;
}
.flow-item__title {
  font-size: 0.84rem;
  font-weight: 600;
  color: var(--charcoal);
}
.flow-item__loc {
  font-size: 0.72rem;
  color: var(--grey);
  font-style: italic;
  margin-left: auto;
}

.flow-item__tag {
  font-size: 0.65rem;
  font-weight: 700;
  background: var(--purple);
  color: var(--white);
  padding: 0.15rem 0.55rem;
  border-radius: 100px;
  white-space: nowrap;
}

/* ============================================================
   WIDGET 2: My Growth Timeline — chronological vertical feed
   ============================================================ */
.growth-timeline {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  flex: 1;
  overflow-y: auto;
}

.growth-item {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 0.55rem 0;
}

.growth-item__icon {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  flex-shrink: 0;
}
.growth-item__icon--purple { background: var(--purple); }
.growth-item__icon--orange { background: var(--sunset-orange); }
.growth-item__icon--blue { background: var(--electric-blue); }
.growth-item__icon--teal { background: var(--teal); }

.growth-item__body {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}
.growth-item__text {
  font-size: 0.84rem;
  font-weight: 600;
  color: var(--charcoal);
  line-height: 1.35;
}
.growth-item__date {
  font-size: 0.68rem;
  color: var(--grey);
}

/* ============================================================
   WIDGET 3: Coach's Spotlight — single broadcast card
   ============================================================ */
.spotlight-card {
  background: var(--cream);
  border-radius: 14px;
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 0.75rem;
  flex: 1;
}
.spotlight-card__avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  flex-shrink: 0;
}
.spotlight-card__quote {
  font-size: 0.82rem;
  color: var(--charcoal);
  line-height: 1.6;
  font-style: italic;
}

/* ============================================================
   WIDGET 4: Upcoming — next event with countdown
   ============================================================ */
.upcoming-card {
  background: var(--cream);
  border-radius: 14px;
  padding: 1rem 1.25rem;
  display: flex;
  align-items: center;
  gap: 0.85rem;
  flex: 1;
}
.upcoming-card__icon {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.upcoming-card__body {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}
.upcoming-card__title {
  font-size: 0.84rem;
  font-weight: 700;
  color: var(--charcoal);
}
.upcoming-card__meta {
  font-size: 0.72rem;
  color: var(--grey);
}

/* ============================================================
   WIDGET 5: Quick Actions Grid — 2x2 contextual cards
   ============================================================ */
.quick-actions-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.85rem;
}

.quick-action-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  padding: 1.25rem 1rem;
  border-radius: 14px;
  background: var(--cream);
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--charcoal);
  transition: all var(--transition);
}
.quick-action-card:hover {
  transform: scale(1.03);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
}
.quick-action-card--orange:hover { background: var(--sunset-orange-light); color: var(--sunset-orange); }
.quick-action-card--blue:hover { background: var(--electric-blue-light); color: var(--electric-blue); }
.quick-action-card--purple:hover { background: var(--purple-light); color: var(--purple); }

/* ============================================================
   KPI Progress Gauges — semi-circular arc
   ============================================================ */
.kpi-gauges {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
  padding: 0.5rem 0;
}

.kpi-gauge {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.4rem;
}

.kpi-gauge__arc {
  position: relative;
  width: 140px;
  height: 115px;
}

.kpi-gauge__arc svg {
  display: block;
}

.kpi-gauge__progress {
  transition: stroke-dashoffset 1.4s cubic-bezier(0.22, 0.61, 0.36, 1);
}

.kpi-gauge__endpoint {
  font-family: var(--font-sans);
  font-size: 9px;
  font-weight: 700;
  fill: var(--grey);
}
.kpi-gauge__endpoint--left { text-anchor: start; }
.kpi-gauge__endpoint--right { text-anchor: end; }

.kpi-gauge__label-top {
  position: absolute;
  top: 28px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 0.55rem;
  font-weight: 700;
  color: var(--grey);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.kpi-gauge__pct {
  position: absolute;
  top: 42px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--charcoal);
  line-height: 1;
}

.kpi-gauge__label {
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--grey);
  text-align: center;
}

@media (max-width: 780px) {
  .kpi-gauges {
    gap: 1rem;
  }
  .kpi-gauge__arc {
    width: 110px;
    height: 90px;
  }
  .kpi-gauge__label-top {
    top: 20px;
    font-size: 0.5rem;
  }
  .kpi-gauge__pct {
    top: 32px;
    font-size: 1.1rem;
  }
  .kpi-gauge__endpoint {
    font-size: 7px;
  }
}

@media (max-width: 640px) {
  .kpi-gauges {
    gap: 0.75rem;
  }
  .kpi-gauge__arc {
    width: 95px;
    height: 78px;
  }
  .kpi-gauge__pct {
    font-size: 1rem;
  }
}

/* ============================================================
   Zoom Meeting Cards
   ============================================================ */
.zoom-meetings-list {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  flex: 1;
}

.zoom-card {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.65rem 0.75rem;
  background: var(--cream);
  border-radius: 12px;
  transition: all var(--transition);
}
.zoom-card:hover { box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05); }

.zoom-card__icon {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: var(--electric-blue-light);
  color: var(--electric-blue);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.zoom-card__body {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
}
.zoom-card__title {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--charcoal);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.zoom-card__meta {
  font-size: 0.68rem;
  color: var(--grey);
}
.zoom-card__join {
  font-size: 0.7rem;
  font-weight: 700;
  background: var(--electric-blue);
  color: var(--white);
  padding: 0.3rem 0.7rem;
  border-radius: 100px;
  text-decoration: none;
  transition: all var(--transition);
  white-space: nowrap;
}
.zoom-card__join:hover {
  background: #1d4ed8;
}

.zoom-card__del {
  width: 24px;
  height: 24px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  color: var(--grey);
  transition: all var(--transition);
}
.zoom-card__del:hover { background: var(--red-light); color: var(--red); }

/* Zoom schedule form */
.zoom-form {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  padding-top: 0.75rem;
  border-top: 1px solid rgba(0, 0, 0, 0.06);
  margin-top: 0.5rem;
}
.zoom-form .dashboard-form__input,
.zoom-form .dashboard-form__select {
  font-size: 0.78rem;
  padding: 0.5rem 0.65rem;
}

.bento-widget__add-mini {
  margin-left: auto;
  width: 26px;
  height: 26px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--grey);
  transition: all var(--transition);
}
.bento-widget__add-mini:hover {
  background: var(--purple-light);
  color: var(--purple);
}

/* Empty states */
.flow-timeline__empty,
.growth-timeline__empty {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.82rem;
  color: var(--grey);
  padding: 2rem 0;
  text-align: center;
}

/* ============================================================
   Bento Layout — Responsive
   ============================================================ */
@media (max-width: 1200px) {
  .bento-layout {
    padding: 0 1.5rem 1.5rem;
  }
  .bento-zone--middle {
    grid-template-columns: 60% 40%;
  }
}

@media (max-width: 900px) {
  .bento-zone--middle {
    grid-template-columns: 1fr;
  }
  .bento-zone__right-stack {
    flex-direction: row;
  }
  .quick-actions-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .kpi-gauges {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 780px) {
  .bento-layout {
    padding: 0 1.25rem 1.25rem;
    gap: 1rem;
  }
  .bento-widget {
    padding: 1.25rem;
  }
  .bento-zone__right-stack {
    flex-direction: column;
  }
  .flow-item__body {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.25rem;
  }
  .flow-item__loc {
    margin-left: 0;
  }
}

@media (max-width: 640px) {
  .bento-layout {
    padding: 0 1rem 1rem;
    gap: 0.75rem;
  }
  .bento-widget {
    padding: 1rem;
    border-radius: 14px;
  }
  .bento-widget__title { font-size: 0.88rem; }
  .flow-item {
    padding: 0.5rem 0.6rem;
  }
  .flow-item__time { font-size: 0.65rem; }
  .flow-item__title { font-size: 0.76rem; }
  .flow-item__loc { font-size: 0.66rem; }
  .quick-actions-grid {
    grid-template-columns: 1fr 1fr;
    gap: 0.6rem;
  }
  .quick-action-card {
    padding: 1rem 0.75rem;
    font-size: 0.76rem;
  }
  .kpi-gauges {
    grid-template-columns: repeat(2, 1fr);
  }
  .kpi-gauge__pct { font-size: 0.95rem; }
  .kpi-gauge__label { font-size: 0.66rem; }
  .zoom-card { padding: 0.5rem 0.6rem; }
  .zoom-card__title { font-size: 0.74rem; }
}

/* ============================================================
   Announcement Cards
   ============================================================ */
.announcements-list {
  padding: 0 2.5rem 2.5rem;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.announcement-card {
  background: var(--cream);
  border-radius: 16px;
  padding: 1.5rem;
  border: 1px solid rgba(0, 0, 0, 0.05);
  transition: all var(--transition);
  animation: fadeInUp 0.4s ease both;
}
.announcement-card:hover {
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
}

.announcement-card__header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
}

.announcement-card__avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--purple);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-size: 0.75rem;
  font-weight: 700;
  flex-shrink: 0;
}

.announcement-card__meta {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.announcement-card__author {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--charcoal);
}
.announcement-card__role {
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--purple);
  background: var(--purple-light);
  padding: 0.15rem 0.5rem;
  border-radius: 6px;
}
.announcement-card__date {
  font-size: 0.73rem;
  color: var(--grey);
}

.announcement-card__actions {
  margin-left: auto;
  display: flex;
  gap: 0.35rem;
}
.ann-edit-btn,
.ann-delete-btn {
  width: 30px;
  height: 30px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition);
  color: var(--grey);
}
.ann-edit-btn:hover { background: var(--purple-light); color: var(--purple); }
.ann-delete-btn:hover { background: var(--red-light); color: var(--red); }

.announcement-card__title {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--charcoal);
  margin-bottom: 0.4rem;
}

.announcement-card__content {
  font-size: 0.88rem;
  color: var(--grey);
  line-height: 1.6;
}

/* ============================================================
   Floating Action Button — Messaging
   ============================================================ */
.messaging-fab {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--purple);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 20px var(--purple-glow);
  z-index: 999;
  transition: all var(--transition);
}
.messaging-fab:hover {
  transform: scale(1.1);
  background: var(--purple-dark);
  box-shadow: 0 6px 28px var(--purple-glow);
}

/* ============================================================
   Messaging Overlay — split pane
   ============================================================ */
.messaging-overlay {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 1000;
}
.messaging-overlay--visible {
  display: flex;
  align-items: center;
  justify-content: center;
}

.messaging-overlay__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(4px);
}

.messaging-overlay__panel {
  position: relative;
  width: 90%;
  max-width: 800px;
  height: 80vh;
  max-height: 650px;
  background: var(--white);
  border-radius: 20px;
  box-shadow: 0 8px 48px rgba(0, 0, 0, 0.2);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  animation: fadeInUp 0.3s ease;
}

.messaging-overlay__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.25rem;
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}
.messaging-overlay__header h3 {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--charcoal);
}
.messaging-overlay__close {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--grey);
  transition: all var(--transition);
}
.messaging-overlay__close:hover {
  background: rgba(0, 0, 0, 0.05);
  color: var(--charcoal);
}

.messaging-overlay__body {
  display: flex;
  flex: 1;
  min-height: 0;
}

/* Contacts sidebar */
.messaging-overlay__contacts {
  width: 280px;
  min-width: 280px;
  border-right: 1px solid rgba(0, 0, 0, 0.06);
  display: flex;
  flex-direction: column;
}
.messaging-overlay__contacts-search {
  padding: 0.75rem;
}
.messaging-overlay__contacts-search .dashboard-search__input {
  width: 100%;
}
.messaging-overlay__contacts-list {
  flex: 1;
  overflow-y: auto;
}
.messaging-overlay__contacts-empty {
  text-align: center;
  padding: 2rem 1rem;
  font-size: 0.84rem;
  color: var(--grey);
}

/* Contact item */
.msg-contact {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 1rem;
  cursor: pointer;
  transition: all var(--transition);
  border-bottom: 1px solid rgba(0, 0, 0, 0.03);
}
.msg-contact:hover {
  background: var(--cream);
}
.msg-contact--active {
  background: var(--purple-light);
}
.msg-contact__avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-size: 0.85rem;
  font-weight: 700;
  flex-shrink: 0;
}
.msg-contact__avatar--purple { background: var(--purple); }
.msg-contact__avatar--teal { background: var(--teal); }
.msg-contact__avatar--yellow { background: var(--yellow); }
.msg-contact__info {
  min-width: 0;
}
.msg-contact__name {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--charcoal);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.msg-contact__role {
  font-size: 0.72rem;
  color: var(--grey);
}

/* Chat area */
.messaging-overlay__chat {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
}

.messaging-overlay__chat-header {
  padding: 1rem 1.25rem;
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.msg-chat-header__avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-size: 0.8rem;
  font-weight: 700;
  flex-shrink: 0;
}
.msg-chat-header__info {
  display: flex;
  flex-direction: column;
}
.msg-chat-header__name {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--charcoal);
}
.msg-chat-header__role {
  font-size: 0.72rem;
  color: var(--grey);
}

.messaging-overlay__chat-messages {
  flex: 1;
  overflow-y: auto;
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  background: var(--cream);
}
.messaging-overlay__chat-empty {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--grey);
  font-size: 0.88rem;
}

/* Message bubble */
.msg-bubble {
  max-width: 75%;
  position: relative;
  display: flex;
  flex-direction: column;
}
.msg-bubble--own {
  align-self: flex-end;
}
.msg-bubble__sender {
  font-size: 0.68rem;
  font-weight: 700;
  color: var(--purple);
  padding: 0 0.35rem;
  margin-bottom: 0.1rem;
}
.msg-bubble__content {
  padding: 0.6rem 0.85rem;
  border-radius: 14px;
  font-size: 0.84rem;
  line-height: 1.45;
  color: var(--charcoal);
  background: var(--white);
  border: 1px solid rgba(0, 0, 0, 0.06);
  word-break: break-word;
}
.msg-bubble--own .msg-bubble__content {
  background: var(--purple);
  color: var(--white);
  border-color: var(--purple);
}
.msg-bubble__time {
  font-size: 0.65rem;
  color: var(--grey);
  margin-top: 0.15rem;
  padding: 0 0.35rem;
}
.msg-bubble--own .msg-bubble__time {
  text-align: right;
}
.msg-bubble__delete {
  position: absolute;
  top: -6px;
  right: -6px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--red-light);
  color: var(--red);
  display: none;
  align-items: center;
  justify-content: center;
  transition: all var(--transition);
}
.msg-bubble:hover .msg-bubble__delete {
  display: flex;
}
.msg-bubble__delete:hover {
  background: var(--red);
  color: var(--white);
}

/* Chat input */
.messaging-overlay__chat-input {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1rem;
  border-top: 1px solid rgba(0, 0, 0, 0.06);
  background: var(--white);
}
.messaging-overlay__chat-textarea {
  flex: 1;
  font-family: inherit;
  font-size: 0.86rem;
  padding: 0.55rem 0.75rem;
  border: 1.5px solid rgba(0, 0, 0, 0.1);
  border-radius: 12px;
  color: var(--charcoal);
  background: var(--cream);
  outline: none;
  resize: none;
  transition: all var(--transition);
  max-height: 100px;
}
.messaging-overlay__chat-textarea:focus {
  border-color: var(--purple);
  box-shadow: 0 0 0 3px var(--purple-light);
}

.messaging-overlay__chat-send {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--purple);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: all var(--transition);
}
.messaging-overlay__chat-send:hover {
  background: var(--purple-dark);
  transform: scale(1.08);
}

/* ============================================================
   Messaging — responsive
   ============================================================ */
@media (max-width: 1200px) {
  .announcements-list {
    padding: 0 1.5rem 1.5rem;
  }
  .messaging-overlay__contacts {
    width: 240px;
    min-width: 240px;
  }
}

@media (max-width: 780px) {
  .messaging-fab {
    bottom: 1.5rem;
    right: 1.25rem;
    width: 48px;
    height: 48px;
  }
  .messaging-overlay__panel {
    width: 96%;
    height: 90vh;
    max-height: none;
    border-radius: 14px;
  }
  .messaging-overlay__contacts {
    width: 100%;
    min-width: 100%;
  }
  .messaging-overlay__chat {
    display: none;
  }
  .announcements-list {
    padding: 0 1.25rem 1.25rem;
  }
}

@media (max-width: 640px) {
  .announcements-list {
    padding: 0 1rem 1rem;
  }
  .announcement-card {
    padding: 1rem;
  }
  .messaging-fab {
    bottom: 1rem;
    right: 1rem;
    width: 44px;
    height: 44px;
  }
}

/* ============================================================
   Resources — categorized grid
   ============================================================ */
.resources-grid {
  padding: 0 2.5rem 2.5rem;
  overflow-y: auto;
}

.resource-category {
  margin-bottom: 1.5rem;
}
.resource-category__title {
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 0.65rem;
}

.resource-cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 0.65rem;
}

.resource-card {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  background: var(--cream);
  border-radius: 14px;
  padding: 0.85rem 1rem;
  transition: all var(--transition);
}
.resource-card:hover { box-shadow: 0 2px 10px rgba(0,0,0,0.05); }

.resource-card__icon {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.6rem;
  font-weight: 700;
  color: var(--grey);
  flex-shrink: 0;
}

.resource-card__body {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
}
.resource-card__title {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--charcoal);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.resource-card__date {
  font-size: 0.68rem;
  color: var(--grey);
}
.resource-card__notes {
  font-size: 0.7rem;
  color: var(--sunset-orange);
  font-style: italic;
  margin-top: 0.15rem;
}

.resource-card__dl {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--purple);
  transition: all var(--transition);
}
.resource-card__dl:hover { background: var(--purple-light); }

.resource-card__view {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--teal);
  text-decoration: none;
  transition: all var(--transition);
}
.resource-card__view:hover { background: var(--teal-light); }

.resource-card__del {
  width: 26px;
  height: 26px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--grey);
  transition: all var(--transition);
}
.resource-card__del:hover { background: var(--red-light); color: var(--red); }

/* ============================================================
   Portfolio — gallery cards + visibility toggle
   ============================================================ */
.portfolio-gallery {
  padding: 0 2.5rem 2.5rem;
  overflow-y: auto;
}

.portfolio-cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1rem;
}

.portfolio-card {
  background: var(--cream);
  border-radius: 16px;
  padding: 1.25rem;
  border: 1px solid rgba(0,0,0,0.04);
  transition: all var(--transition);
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.portfolio-card:hover { box-shadow: 0 4px 16px rgba(0,0,0,0.06); transform: scale(1.01); }

.portfolio-card__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.portfolio-card__badge {
  font-size: 0.65rem;
  font-weight: 700;
  padding: 0.2rem 0.55rem;
  border-radius: 100px;
}
.portfolio-card__vis {
  font-size: 0.65rem;
  font-weight: 600;
  color: var(--grey);
}

.portfolio-card__title {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--charcoal);
}
.portfolio-card__desc {
  font-size: 0.78rem;
  color: var(--grey);
  line-height: 1.5;
}
.portfolio-card__meta {
  font-size: 0.7rem;
  color: var(--grey);
  display: flex;
  gap: 1rem;
}
.portfolio-card__file {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  font-size: 0.74rem;
  font-weight: 600;
  color: var(--purple);
  text-decoration: none;
  padding: 0.35rem 0.7rem;
  border-radius: 8px;
  background: var(--purple-light);
  width: fit-content;
}
.portfolio-card__file:hover { background: var(--purple-medium); }

.portfolio-card__actions {
  display: flex;
  gap: 0.5rem;
  align-items: center;
}
.portfolio-card__view,
.portfolio-card__dl {
  font-size: 0.74rem;
  font-weight: 600;
  text-decoration: none;
  padding: 0.35rem 0.7rem;
  border-radius: 8px;
  width: fit-content;
  transition: all var(--transition);
}
.portfolio-card__view {
  color: var(--teal);
  background: var(--teal-light);
}
.portfolio-card__view:hover { background: var(--teal); color: var(--white); }
.portfolio-card__dl {
  color: var(--purple);
  background: var(--purple-light);
}
.portfolio-card__dl:hover { background: var(--purple); color: var(--white); }

.portfolio-card__del {
  align-self: flex-end;
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--red);
  padding: 0.25rem 0.6rem;
  border-radius: 8px;
  transition: all var(--transition);
}
.portfolio-card__del:hover { background: var(--red-light); }

/* Visibility toggle */
.portfolio-visibility {
  background: var(--cream);
  border-radius: 16px;
  padding: 1rem 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}
.portfolio-visibility__label {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--grey);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.portfolio-visibility__options {
  display: flex;
  gap: 0.75rem;
}
.portfolio-visibility__option {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.3rem;
  padding: 0.75rem 0.5rem;
  border-radius: 12px;
  border: 2px solid rgba(0,0,0,0.08);
  cursor: pointer;
  transition: all var(--transition);
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--grey);
}
.portfolio-visibility__option input { display: none; }
.portfolio-visibility__option--active {
  border-color: var(--purple);
  background: var(--purple-light);
  color: var(--purple);
}
.portfolio-visibility__icon { opacity: 0.5; }
.portfolio-visibility__option--active .portfolio-visibility__icon { opacity: 1; }
.portfolio-visibility__hint {
  font-size: 0.62rem;
  font-weight: 400;
  color: var(--grey);
}

/* ============================================================
   Resources & Portfolio — responsive
   ============================================================ */
@media (max-width: 1200px) {
  .resources-grid, .portfolio-gallery {
    padding: 0 1.5rem 1.5rem;
  }
}

@media (max-width: 780px) {
  .resources-grid, .portfolio-gallery {
    padding: 0 1.25rem 1.25rem;
  }
  .resource-cards, .portfolio-cards {
    grid-template-columns: 1fr;
  }
  .portfolio-visibility__options {
    flex-direction: column;
  }
}

@media (max-width: 640px) {
  .resources-grid, .portfolio-gallery {
    padding: 0 1rem 1rem;
  }
}

/* ============================================================
   Studio Scheduler — Calendar Grid & Events
   ============================================================ */
.scheduler-calendar-wrap {
  padding: 0 2.5rem 2.5rem;
  flex: 1;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
}

.scheduler-calendar {
  display: flex;
  flex-direction: column;
  flex: 1;
  animation: fadeInUp 0.5s ease both;
}

.scheduler-calendar__nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 1rem;
}

.scheduler-calendar__nav-btn {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--grey);
  transition: all var(--transition);
}
.scheduler-calendar__nav-btn:hover {
  background: var(--purple-light);
  color: var(--purple);
}
.scheduler-calendar__nav-btn:disabled {
  opacity: 0.35;
  cursor: not-allowed;
  pointer-events: none;
}

.scheduler-calendar__nav-title {
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--charcoal);
  min-width: 180px;
  text-align: center;
}

.scheduler-calendar__headers {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 0.35rem;
  margin-bottom: 0.35rem;
  padding: 0 0.25rem;
}

.scheduler-calendar__headers span {
  font-size: 0.62rem;
  font-weight: 700;
  color: var(--grey);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  text-align: center;
  padding: 0.4rem 0;
}

.scheduler-calendar__grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 0.35rem;
  flex: 1;
  grid-auto-rows: minmax(96px, 1fr);
  align-content: start;
}

/* Calendar cell */
.scheduler-cell {
  background: rgba(249, 247, 244, 0.5);
  border: 1px solid rgba(0, 0, 0, 0.06);
  border-radius: 10px;
  padding: 0.35rem 0.4rem 0.4rem;
  display: flex;
  flex-direction: column;
  min-height: 96px;
  overflow: hidden;
  transition: all var(--transition);
  cursor: default;
}
.scheduler-cell:hover {
  border-color: rgba(139, 92, 246, 0.2);
  background: rgba(249, 247, 244, 0.8);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.scheduler-cell--muted {
  opacity: 0.25;
  pointer-events: none;
}

.scheduler-cell--today {
  border-color: var(--purple-medium);
  background: rgba(139, 92, 246, 0.04);
}
.scheduler-cell--today:hover {
  background: rgba(139, 92, 246, 0.07);
}

.scheduler-cell__date {
  font-size: 0.68rem;
  font-weight: 700;
  color: var(--grey);
  margin-bottom: 0.2rem;
  flex-shrink: 0;
}

.scheduler-cell--today .scheduler-cell__date {
  color: var(--purple);
}

.scheduler-cell__events {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  flex: 1;
  min-height: 0;
  overflow: hidden;
}

/* Event entry (flow-item mirror) */
.scheduler-event {
  display: flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.2rem 0.35rem;
  border-radius: 6px;
  font-size: 0.65rem;
  font-weight: 600;
  color: var(--charcoal);
  cursor: pointer;
  transition: all var(--transition);
  background: var(--cream);
  position: relative;
  white-space: nowrap;
  overflow: hidden;
}
.scheduler-event:hover {
  background: var(--purple-light);
  transform: scale(1.02);
}

.scheduler-event__dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  flex-shrink: 0;
}

.scheduler-event__title {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  flex: 1;
  min-width: 0;
}

.scheduler-event__time {
  font-size: 0.57rem;
  font-weight: 500;
  color: var(--grey);
  white-space: nowrap;
  flex-shrink: 0;
}

/* Alert event */
.scheduler-event--alert {
  background: rgba(245, 166, 35, 0.12);
  border: 1px solid rgba(245, 166, 35, 0.25);
}
.scheduler-event--alert:hover {
  background: rgba(245, 166, 35, 0.2);
}

.scheduler-event__alert-icon {
  color: var(--yellow);
  flex-shrink: 0;
  display: flex;
  align-items: center;
}

/* Countdown badge */
.scheduler-event__countdown {
  font-size: 0.55rem;
  font-weight: 700;
  background: var(--purple);
  color: var(--white);
  padding: 0.1rem 0.35rem;
  border-radius: 100px;
  white-space: nowrap;
  flex-shrink: 0;
}

.scheduler-event--countdown {
  border-left: 3px solid var(--purple);
}

/* Overflow link */
.scheduler-event__overflow {
  font-size: 0.6rem;
  font-weight: 700;
  color: var(--teal);
  cursor: pointer;
  text-align: center;
  padding: 0.1rem;
}
.scheduler-event__overflow:hover {
  text-decoration: underline;
}

/* ============================================================
   Scheduler Event Detail Modal — glass blur
   ============================================================ */
.scheduler-modal {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 1100;
  align-items: center;
  justify-content: center;
}
.scheduler-modal--visible {
  display: flex;
}

.scheduler-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(6px);
}

.scheduler-modal__card {
  position: relative;
  width: 90%;
  max-width: 520px;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(16px);
  border-radius: 20px;
  box-shadow: 0 8px 48px rgba(0, 0, 0, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.4);
  padding: 2rem 2rem 1.5rem;
  animation: fadeInUp 0.3s ease;
  max-height: 80vh;
  overflow-y: auto;
}

.scheduler-modal__close {
  position: absolute;
  top: 0.75rem;
  right: 0.85rem;
  width: 32px;
  height: 32px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  color: var(--grey);
  transition: all var(--transition);
}
.scheduler-modal__close:hover {
  background: rgba(0, 0, 0, 0.06);
  color: var(--charcoal);
}

.scheduler-modal__body {
  display: flex;
  flex-direction: column;
}

.scheduler-modal__event {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.scheduler-modal__dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  margin-bottom: 0.25rem;
}

.scheduler-modal__title {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--charcoal);
  letter-spacing: -0.02em;
}

.scheduler-modal__badge {
  display: inline-flex;
  font-size: 0.7rem;
  font-weight: 700;
  padding: 0.2rem 0.65rem;
  border-radius: 100px;
  width: fit-content;
}

.scheduler-modal__time {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--grey);
}

.scheduler-modal__loc {
  font-size: 0.82rem;
  color: var(--grey);
  font-style: italic;
}

.scheduler-modal__alert-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  font-size: 0.75rem;
  font-weight: 700;
  color: #c78512;
  background: rgba(245, 166, 35, 0.12);
  padding: 0.3rem 0.7rem;
  border-radius: 100px;
  width: fit-content;
}

.scheduler-modal__countdown-badge {
  display: inline-flex;
  font-size: 0.75rem;
  font-weight: 700;
  background: var(--purple);
  color: var(--white);
  padding: 0.3rem 0.7rem;
  border-radius: 100px;
  width: fit-content;
}

.scheduler-modal__desc {
  font-size: 0.84rem;
  color: var(--grey);
  line-height: 1.6;
  margin-top: 0.25rem;
}

.scheduler-modal__actions {
  display: flex;
  justify-content: flex-end;
  gap: 0.65rem;
  margin-top: 1.5rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(0, 0, 0, 0.06);
}

/* ============================================================
   Scheduler FAB — Floating Action Button (mobile admin)
   ============================================================ */
.scheduler-fab {
  display: none;
  position: fixed;
  bottom: 5rem;
  right: 2rem;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--purple);
  color: var(--white);
  box-shadow: 0 4px 20px var(--purple-glow);
  z-index: 998;
  align-items: center;
  justify-content: center;
  transition: all var(--transition);
}
.scheduler-fab:hover {
  transform: scale(1.1);
  background: var(--purple-dark);
  box-shadow: 0 6px 28px var(--purple-glow);
}

@media (max-width: 640px) {
  .scheduler-fab {
    display: flex;
  }
}

/* ============================================================
   Scheduler Mobile Agenda List
   ============================================================ */
.scheduler-agenda {
  display: none;
  padding: 0 1.25rem 1.25rem;
  flex: 1;
  overflow-y: auto;
  flex-direction: column;
}

.scheduler-agenda__header {
  margin-bottom: 0.75rem;
}
.scheduler-agenda__header span {
  font-size: 1rem;
  font-weight: 800;
  color: var(--charcoal);
}

.scheduler-agenda__list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.scheduler-agenda__day {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.scheduler-agenda__day-header {
  padding-bottom: 0.3rem;
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.scheduler-agenda__day-label {
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--grey);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.scheduler-agenda__day--today .scheduler-agenda__day-label {
  color: var(--purple);
}

.scheduler-agenda__item {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.55rem 0.7rem;
  border-radius: 10px;
  background: var(--white);
  border: 1px solid rgba(0, 0, 0, 0.05);
  cursor: pointer;
  transition: all var(--transition);
}
.scheduler-agenda__item:hover {
  border-color: rgba(139, 92, 246, 0.15);
  background: var(--cream);
}

.scheduler-agenda__item-body {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
}

.scheduler-agenda__item-title {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--charcoal);
}

.scheduler-agenda__item-time {
  font-size: 0.68rem;
  color: var(--grey);
}

/* ============================================================
   Scheduler — Responsive
   ============================================================ */
@media (max-width: 1200px) {
  .scheduler-calendar-wrap {
    padding: 0 1.5rem 1.5rem;
  }
}

@media (max-width: 900px) {
  .scheduler-calendar__grid {
    grid-auto-rows: minmax(80px, 1fr);
  }
  .scheduler-cell {
    padding: 0.25rem 0.3rem 0.3rem;
  }
  .scheduler-cell__date {
    font-size: 0.6rem;
  }
  .scheduler-event {
    font-size: 0.58rem;
    padding: 0.15rem 0.25rem;
  }
}

@media (max-width: 780px) {
  .scheduler-calendar-wrap {
    padding: 0 1.25rem 1.25rem;
  }
  .scheduler-calendar__grid {
    grid-auto-rows: minmax(72px, 1fr);
  }
}

@media (max-width: 640px) {
  .scheduler-calendar-wrap {
    padding: 0 0.5rem 1rem;
  }
  .scheduler-calendar__grid {
    grid-auto-rows: minmax(56px, 1fr);
    gap: 0.2rem;
  }
  .scheduler-cell {
    padding: 0.15rem 0.2rem 0.2rem;
    border-radius: 6px;
  }
  .scheduler-cell__date {
    font-size: 0.52rem;
    margin-bottom: 0.1rem;
  }
  .scheduler-event {
    font-size: 0.48rem;
    padding: 0.1rem 0.15rem;
    gap: 0.15rem;
    border-radius: 4px;
  }
  .scheduler-event__dot { width: 4px; height: 4px; }
  .scheduler-event__time { font-size: 0.44rem; }
  .scheduler-event__countdown {
    font-size: 0.42rem;
    padding: 0.05rem 0.2rem;
  }
  .scheduler-calendar__headers span {
    font-size: 0.5rem;
    padding: 0.2rem 0;
  }
  .scheduler-calendar__nav-btn {
    width: 28px;
    height: 28px;
  }
  .scheduler-calendar__nav-title {
    font-size: 0.88rem;
    min-width: 140px;
  }
  .scheduler-agenda {
    display: none !important;
  }
  .scheduler-modal__card {
    width: 94%;
    padding: 1.5rem 1.25rem 1.25rem;
  }
}

/* Inline checkbox fields in scheduler form */
.dashboard-form__field--checkbox {
  flex: 0 0 auto;
  flex-direction: row;
  align-items: center;
  gap: 0.5rem;
}
.dashboard-form__field--checkbox input[type="checkbox"] {
  accent-color: var(--purple);
  width: 18px;
  height: 18px;
  cursor: pointer;
}
.dashboard-form__field--checkbox label {
  font-size: 0.84rem;
  font-weight: 600;
  color: var(--charcoal);
  cursor: pointer;
}

/* ============================================================
   Grand Finale Showcase
   ============================================================ */
.showcase-content {
  padding: 0 2.5rem 2.5rem;
  overflow-y: auto;
  animation: fadeInUp 0.5s ease both;
}

.showcase-hero {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  background: linear-gradient(135deg, #1a1a1a 0%, #2d1b69 50%, #1a1a1a 100%);
  padding: 2.5rem;
  margin-bottom: 2rem;
}
.showcase-hero__overlay {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 30% 50%, rgba(139, 92, 246, 0.25) 0%, transparent 60%),
              radial-gradient(ellipse at 70% 30%, rgba(245, 166, 35, 0.15) 0%, transparent 50%);
  pointer-events: none;
}
.showcase-hero__body {
  position: relative;
  z-index: 1;
}
.showcase-hero__theme {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--yellow);
  background: var(--yellow-light);
  padding: 0.3rem 0.85rem;
  border-radius: 100px;
  margin-bottom: 1rem;
}
.showcase-hero__title {
  font-size: 2rem;
  font-weight: 800;
  color: var(--white);
  line-height: 1.2;
  margin-bottom: 1rem;
}
.showcase-hero__text {
  font-size: 0.92rem;
  color: rgba(255, 255, 255, 0.7);
  line-height: 1.7;
  max-width: 640px;
}

/* ── Showcase Cards Grid ── */
.showcase-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 1.25rem;
  margin-bottom: 2rem;
}

.showcase-card {
  background: var(--white);
  border: 1px solid rgba(0, 0, 0, 0.05);
  border-radius: 16px;
  padding: 1.5rem;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.03), 0 4px 12px rgba(0, 0, 0, 0.04);
  transition: all var(--transition);
}
.showcase-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.08);
}

.showcase-card__icon {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
  flex-shrink: 0;
}

.showcase-card--orange .showcase-card__icon { background: var(--sunset-orange-light); color: var(--sunset-orange); }
.showcase-card--blue   .showcase-card__icon { background: var(--electric-blue-light); color: var(--electric-blue); }
.showcase-card--purple .showcase-card__icon { background: var(--purple-light); color: var(--purple); }
.showcase-card--green  .showcase-card__icon { background: var(--emerald-green-light); color: var(--emerald-green); }

.showcase-card__title {
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--charcoal);
  margin-bottom: 0.35rem;
}
.showcase-card__text {
  font-size: 0.8rem;
  color: var(--grey);
  line-height: 1.55;
}

/* ── Weekly Journey ── */
.showcase-journey {
  margin-bottom: 2rem;
}
.showcase-journey__title {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--charcoal);
  margin-bottom: 0.25rem;
}
.showcase-journey__sub {
  font-size: 0.82rem;
  color: var(--grey);
  margin-bottom: 1.25rem;
}

.showcase-journey__track {
  display: flex;
  gap: 1rem;
  overflow-x: auto;
  padding-bottom: 0.5rem;
  -webkit-overflow-scrolling: touch;
}
.showcase-journey__track::-webkit-scrollbar { height: 4px; }
.showcase-journey__track::-webkit-scrollbar-track { background: transparent; }
.showcase-journey__track::-webkit-scrollbar-thumb { background: rgba(0, 0, 0, 0.12); border-radius: 4px; }

.showcase-journey__day {
  flex: 1;
  min-width: 180px;
  background: var(--white);
  border: 1px solid rgba(0, 0, 0, 0.05);
  border-radius: 14px;
  padding: 1.25rem;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.03);
  transition: all var(--transition);
}
.showcase-journey__day:hover {
  transform: translateY(-3px);
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.07);
}
.showcase-journey__day-label {
  display: inline-block;
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 0.15rem 0.5rem;
  border-radius: 6px;
  margin-bottom: 0.65rem;
}
.showcase-journey__day--mon .showcase-journey__day-label { background: var(--sunset-orange-light); color: var(--sunset-orange); }
.showcase-journey__day--tue .showcase-journey__day-label { background: var(--electric-blue-light); color: var(--electric-blue); }
.showcase-journey__day--wed .showcase-journey__day-label { background: var(--purple-light); color: var(--purple); }
.showcase-journey__day--thu .showcase-journey__day-label { background: var(--sunset-orange-light); color: var(--sunset-orange); }
.showcase-journey__day--fri .showcase-journey__day-label { background: var(--emerald-green-light); color: var(--emerald-green); }

.showcase-journey__day-title {
  display: block;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--charcoal);
  margin-bottom: 0.35rem;
}
.showcase-journey__day-desc {
  font-size: 0.76rem;
  color: var(--grey);
  line-height: 1.5;
}

/* ── Audience ── */
.showcase-audience {
  display: flex;
  align-items: flex-start;
  gap: 1.25rem;
  background: var(--cream);
  border: 1px solid rgba(0, 0, 0, 0.04);
  border-radius: 16px;
  padding: 1.5rem;
}
.showcase-audience__icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: var(--purple-light);
  color: var(--purple);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.showcase-audience__title {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--charcoal);
  margin-bottom: 0.35rem;
}
.showcase-audience__text {
  font-size: 0.82rem;
  color: var(--grey);
  line-height: 1.6;
}

/* ── Responsive ── */
@media (max-width: 960px) {
  .showcase-content { padding: 0 1.25rem 1.5rem; }
  .showcase-hero { padding: 1.75rem; }
  .showcase-hero__title { font-size: 1.45rem; }
  .showcase-grid { grid-template-columns: repeat(2, 1fr); }
  .showcase-journey__track { flex-wrap: nowrap; overflow-x: auto; }
}

@media (max-width: 560px) {
  .showcase-content { padding: 0 1rem 1.25rem; }
  .showcase-hero { padding: 1.25rem; border-radius: 14px; }
  .showcase-hero__title { font-size: 1.2rem; }
  .showcase-grid { grid-template-columns: 1fr; }
  .showcase-journey__day { min-width: 150px; }
  .showcase-audience { flex-direction: column; align-items: flex-start; }
}

/* ============================================================
   Gallery / Resources Grid Cards
   ============================================================ */
.resources-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 1.25rem;
  padding: 0 2.5rem 2rem;
}

.resources-grid__card {
  background: var(--white);
  border: 1px solid rgba(0, 0, 0, 0.05);
  border-radius: 14px;
  overflow: hidden;
  position: relative;
  transition: all var(--transition);
}
.resources-grid__card:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(0,0,0,0.08);
}

.resources-grid__card-img {
  width: 100%;
  height: 160px;
  object-fit: cover;
  display: block;
}

.resources-grid__card-body {
  padding: 0.85rem 1rem;
}

.resources-grid__card-title {
  display: block;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--charcoal);
  margin-bottom: 0.25rem;
}

.resources-grid__card-meta {
  font-size: 0.7rem;
  color: var(--grey);
}

.resources-grid__card-del {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: rgba(239,68,68,0.9);
  color: #fff;
  font-size: 1rem;
  font-weight: 700;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity var(--transition);
}
.resources-grid__card:hover .resources-grid__card-del { opacity: 1; }

/* ============================================================
   Content Hub Tabs
   ============================================================ */
.content-hub-tabs {
  display: flex;
  gap: 0.25rem;
  padding: 0 2.5rem;
  margin-bottom: 1.5rem;
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.content-hub-tabs__tab {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--grey);
  background: none;
  border: none;
  padding: 0.65rem 1.25rem;
  cursor: pointer;
  border-bottom: 2px solid transparent;
  transition: all var(--transition);
  margin-bottom: -1px;
}
.content-hub-tabs__tab:hover { color: var(--charcoal); }
.content-hub-tabs__tab--active {
  color: var(--charcoal);
  border-bottom-color: var(--purple);
}

.content-hub-panel {
  display: none;
  padding: 0 2.5rem 2rem;
}
.content-hub-panel--active {
  display: block;
}

@media (max-width: 960px) {
  .content-hub-tabs { padding: 0 1.25rem; }
  .content-hub-panel { padding: 0 1.25rem 1.5rem; }
}

/* ============================================================
   Sessions Panel
   ============================================================ */
.dashboard-sessions {
  margin-top: 1.5rem;
}

.dashboard-sessions__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.75rem;
}

.dashboard-sessions__title {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--charcoal);
  margin: 0;
}

.dashboard-sessions__revoke-all {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--grey);
  background: none;
  border: 1px solid rgba(0, 0, 0, 0.1);
  padding: 0.35rem 0.75rem;
  border-radius: 8px;
  cursor: pointer;
  transition: all var(--transition);
}
.dashboard-sessions__revoke-all:hover {
  color: var(--sunset-orange);
  border-color: var(--sunset-orange-light);
  background: var(--sunset-orange-light);
}

.dashboard-sessions__list {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.dashboard-sessions__loading,
.dashboard-sessions__empty {
  font-size: 0.8rem;
  color: var(--grey);
  padding: 1rem;
  text-align: center;
  background: var(--cream);
  border-radius: 10px;
}

.dashboard-session-item {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.85rem 1rem;
  background: var(--white);
  border: 1px solid rgba(0, 0, 0, 0.05);
  border-radius: 10px;
  transition: all var(--transition);
}
.dashboard-session-item:hover {
  border-color: rgba(0, 0, 0, 0.1);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}
.dashboard-session-item--current {
  border-color: rgba(16, 185, 129, 0.25);
  background: rgba(16, 185, 129, 0.03);
}

.dashboard-session-item__info {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}

.dashboard-session-item__device {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--charcoal);
  line-height: 1.35;
  word-break: break-word;
}

.dashboard-session-item__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.25rem;
  font-size: 0.72rem;
  color: var(--grey);
}

.dashboard-session-item__actions {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  padding-top: 0.1rem;
}

.dashboard-sessions__revoke {
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--grey);
  background: none;
  border: 1px solid rgba(0, 0, 0, 0.12);
  padding: 0.3rem 0.7rem;
  border-radius: 6px;
  cursor: pointer;
  transition: all var(--transition);
  white-space: nowrap;
}
.dashboard-sessions__revoke:hover {
  background: var(--sunset-orange);
  color: var(--white);
  border-color: var(--sunset-orange);
}
.dashboard-sessions__revoke:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

@media (max-width: 560px) {
  .dashboard-session-item {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
  }
  .dashboard-session-item__meta {
    flex-direction: column;
    gap: 0.15rem;
  }
  .dashboard-sessions__header {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
  }
}

/* ============================================================
   AI LAB — Immersive Educational Interface
   ============================================================ */

/* Section override: full-screen immersive overlay */
#section-code-lab.dashboard-section--active {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  position: fixed;
  inset: 0;
  z-index: 200;
  background: var(--cream);
}

/* ─── Top Navigation Header ─── */
.ailab-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.9rem 1.75rem;
  background: var(--white);
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
  flex-shrink: 0;
}

/* ─── Code Lab Loader Overlay ─── */
.ailab-loader-overlay {
  position: absolute;
  inset: 0;
  z-index: 300;
  background: var(--cream);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.2s ease;
}
.ailab-loader-overlay--visible {
  opacity: 1;
  pointer-events: auto;
}

.ailab-loader {
  width: 60px;
  aspect-ratio: .5;
  display: grid;
}
.ailab-loader::before {
  content: '';
  width: 30%;
  aspect-ratio: 1;
  border-radius: 50%;
  margin: auto auto 0;
  background: var(--electric-blue);
  animation: ailab-ld-0 .5s cubic-bezier(0, 800, 1, 800) infinite;
}
.ailab-loader::after {
  content: '';
  width: 100%;
  aspect-ratio: 1/cos(30deg);
  margin: 0 auto auto;
  clip-path: polygon(50% -50%, 100% 50%, 50% 150%, 0 50%);
  background: var(--charcoal);
  animation: ailab-ld-1 .5s linear infinite;
}

.ailab-loader-text {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--grey);
  animation: ailab-ld-text 0.8s ease-in-out infinite;
}

@keyframes ailab-ld-0 {
  0%, 2%  { translate: 0 0%; }
  98%, to { translate: 0 -.2%; }
}
@keyframes ailab-ld-1 {
  0%, 5%  { rotate: 0deg; }
  95%, to { rotate: -60deg; }
}
@keyframes ailab-ld-text {
  0%, 100% { opacity: 1; }
  50%      { opacity: 0.5; }
}

.ailab-topbar__back {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--grey);
  padding: 0.55rem 1.05rem;
  border-radius: 10px;
  transition: all var(--transition);
  background: transparent;
  border: 1px solid transparent;
}
.ailab-topbar__back:hover {
  color: var(--charcoal);
  background: rgba(0, 0, 0, 0.04);
  border-color: rgba(0, 0, 0, 0.08);
}

.ailab-topbar__ask {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--charcoal);
  padding: 0.45rem 1.1rem;
  border-radius: 8px;
  background: transparent;
  border: 1.5px solid rgba(0, 0, 0, 0.12);
  transition: all var(--transition);
}
.ailab-topbar__ask:hover {
  color: var(--electric-blue);
  border-color: var(--electric-blue);
  background: rgba(37, 99, 235, 0.08);
}

.ailab-topbar__right {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

/* ─── Language Dropdown ─── */
.ailab-lang-dropdown {
  position: relative;
}

.ailab-lang-dropdown__trigger {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--charcoal);
  padding: 0.5rem 0.85rem 0.5rem 0.75rem;
  border-radius: 10px;
  background: var(--cream);
  border: 1.5px solid rgba(0, 0, 0, 0.08);
  transition: all var(--transition);
}
.ailab-lang-dropdown__trigger:hover {
  border-color: rgba(0, 0, 0, 0.18);
  background: var(--white);
}

.ailab-lang-dropdown__label {
  white-space: nowrap;
}

.ailab-lang-dropdown__chevron {
  width: 14px;
  height: 14px;
  color: var(--grey);
  transition: transform var(--transition);
}
.ailab-lang-dropdown--open .ailab-lang-dropdown__chevron {
  transform: rotate(180deg);
}

.ailab-lang-dropdown__menu {
  display: none;
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  min-width: 180px;
  background: var(--white);
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 12px;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
  z-index: 100;
  overflow: hidden;
  padding: 0.35rem;
}
.ailab-lang-dropdown--open .ailab-lang-dropdown__menu {
  display: block;
}

.ailab-lang-dropdown__option {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  width: 100%;
  padding: 0.55rem 0.75rem;
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--charcoal);
  border-radius: 8px;
  transition: all var(--transition);
  background: transparent;
  border: none;
  cursor: pointer;
  text-align: left;
}
.ailab-lang-dropdown__option:hover {
  background: rgba(37, 99, 235, 0.1);
  color: var(--electric-blue);
}
.ailab-lang-dropdown__option--active {
  background: rgba(37, 99, 235, 0.1);
  color: var(--electric-blue);
  font-weight: 600;
}
.ailab-topbar__ask svg {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
}

/* ─── Layout: Sidebar + Content ─── */
.ailab-layout {
  display: flex;
  flex: 1;
  min-height: 0;
  overflow: hidden;
}

/* ─── Left Navigation Sidebar ─── */
.ailab-sidebar {
  width: 280px;
  min-width: 280px;
  background: var(--cream);
  border-right: 1px solid rgba(0, 0, 0, 0.06);
  display: flex;
  flex-direction: column;
  overflow-y: auto;
  overflow-x: hidden;
  flex-shrink: 0;
}
.ailab-sidebar::-webkit-scrollbar { width: 4px; }
.ailab-sidebar::-webkit-scrollbar-track { background: transparent; }
.ailab-sidebar::-webkit-scrollbar-thumb { background-color: rgba(0, 0, 0, 0.08); border-radius: 2px; }

.ailab-sidebar__header {
  padding: 1.5rem 1.25rem 1rem;
}

.ailab-sidebar__title {
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--dark);
  letter-spacing: -0.02em;
  margin-bottom: 1rem;
  line-height: 1.25;
}

/* Search */
.ailab-sidebar__search {
  position: relative;
  width: 100%;
}

.ailab-sidebar__search-icon {
  position: absolute;
  left: 0.85rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--grey);
  opacity: 0.5;
  pointer-events: none;
}

.ailab-sidebar__search-input {
  width: 100%;
  font-family: inherit;
  font-size: 0.82rem;
  padding: 0.6rem 0.85rem 0.6rem 2.4rem;
  background: var(--white);
  border: 1.5px solid rgba(0, 0, 0, 0.08);
  border-radius: 10px;
  color: var(--charcoal);
  outline: none;
  transition: all var(--transition);
}
.ailab-sidebar__search-input::placeholder { color: rgba(0, 0, 0, 0.3); }
.ailab-sidebar__search-input:focus {
  border-color: var(--electric-blue);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

/* ─── Filter Toggle ─── */
.ailab-filter {
  display: flex;
  padding: 0 1.25rem 1rem;
  gap: 0.35rem;
}

.ailab-filter__btn {
  flex: 1;
  padding: 0.5rem 0;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--grey);
  background: transparent;
  border: 1.5px solid rgba(0, 0, 0, 0.07);
  border-radius: 8px;
  transition: all var(--transition);
  text-align: center;
}
.ailab-filter__btn:hover {
  color: var(--charcoal);
  border-color: rgba(0, 0, 0, 0.15);
  background: rgba(0, 0, 0, 0.02);
}
.ailab-filter__btn--active {
  color: var(--electric-blue);
  border-color: var(--electric-blue);
  background: rgba(37, 99, 235, 0.08);
}
.ailab-filter__btn--active:hover {
  color: #1d4ed8;
  border-color: #1d4ed8;
  background: rgba(37, 99, 235, 0.14);
}

/* ─── Course Navigation (Accordion) ─── */
.ailab-nav {
  flex: 1;
  padding: 0 0.75rem;
  overflow-y: auto;
}
.ailab-nav::-webkit-scrollbar { width: 4px; }
.ailab-nav::-webkit-scrollbar-track { background: transparent; }
.ailab-nav::-webkit-scrollbar-thumb { background-color: rgba(0, 0, 0, 0.08); border-radius: 2px; }

.ailab-module {
  margin-bottom: 0.25rem;
}

.ailab-module__header {
  display: flex;
  align-items: center;
  width: 100%;
  gap: 0.55rem;
  padding: 0.65rem 0.6rem;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--charcoal);
  border-radius: 8px;
  transition: all var(--transition);
  text-align: left;
}
.ailab-module__header:hover {
  background: rgba(37, 99, 235, 0.04);
}

.ailab-module__chevron {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  transition: transform var(--transition-smooth);
  color: var(--grey);
}
.ailab-module__header[aria-expanded="true"] .ailab-module__chevron {
  transform: rotate(180deg);
}

.ailab-module__label {
  flex: 1;
  min-width: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.ailab-module__count {
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--grey);
  background: rgba(0, 0, 0, 0.04);
  padding: 0.15rem 0.45rem;
  border-radius: 6px;
  flex-shrink: 0;
}

.ailab-module__lessons {
  display: flex;
  flex-direction: column;
  padding-left: 1.1rem;
}
.ailab-module__lessons--collapsed {
  display: none;
}

.ailab-lesson {
  display: block;
  padding: 0.5rem 0.75rem;
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--grey);
  border-radius: 7px;
  transition: all var(--transition);
  text-decoration: none;
  position: relative;
}
.ailab-lesson:hover {
  color: var(--charcoal);
  background: rgba(0, 0, 0, 0.03);
}
.ailab-lesson--active {
  color: var(--electric-blue);
  background: rgba(37, 99, 235, 0.08);
  font-weight: 600;
}
.ailab-lesson--active:hover {
  background: rgba(37, 99, 235, 0.14);
}
.ailab-lesson--completed {
  color: var(--charcoal);
}
.ailab-lesson--completed::before {
  content: '';
  display: inline-block;
  width: 14px;
  height: 14px;
  margin-right: 0.45rem;
  background: var(--green);
  border-radius: 50%;
  vertical-align: -2px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E");
  background-size: 10px 10px;
  background-position: center;
  background-repeat: no-repeat;
}

/* ─── Main Content Area ─── */
.ailab-content {
  flex: 1;
  min-width: 0;
  overflow-y: auto;
  overflow-x: hidden;
  background: var(--white);
}
.ailab-content::-webkit-scrollbar { width: 6px; }
.ailab-content::-webkit-scrollbar-track { background: transparent; }
.ailab-content::-webkit-scrollbar-thumb { background-color: rgba(0, 0, 0, 0.08); border-radius: 3px; }

/* Breadcrumb */
.ailab-breadcrumb {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  padding: 1.5rem 2.5rem 0;
  font-size: 0.8rem;
  color: var(--grey);
  flex-wrap: wrap;
}
.ailab-breadcrumb a {
  color: var(--grey);
  transition: color var(--transition);
}
.ailab-breadcrumb a:hover {
  color: var(--electric-blue);
}
.ailab-breadcrumb__sep {
  color: rgba(0, 0, 0, 0.2);
}
.ailab-breadcrumb__current {
  color: var(--charcoal);
  font-weight: 600;
}

/* ─── Article Typography ─── */
.ailab-article {
  padding: 1.5rem 2.5rem 3rem;
  max-width: 820px;
}

.ailab-article__h1 {
  font-size: 2rem;
  font-weight: 800;
  color: var(--dark);
  letter-spacing: -0.03em;
  line-height: 1.2;
  margin-bottom: 0.75rem;
}

.ailab-article__lead {
  font-size: 1rem;
  font-weight: 400;
  color: var(--grey);
  line-height: 1.7;
  margin-bottom: 2rem;
}

.ailab-article__h2 {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--charcoal);
  letter-spacing: -0.02em;
  margin: 2.5rem 0 0.85rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.ailab-article__h3 {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--charcoal);
  margin: 1.5rem 0 0.5rem;
}

.ailab-article__p {
  font-size: 0.92rem;
  font-weight: 400;
  color: var(--charcoal);
  line-height: 1.8;
  margin-bottom: 1rem;
}

.ailab-article__code {
  display: inline;
  font-family: 'SF Mono', 'Cascadia Code', 'Fira Code', 'Consolas', monospace;
  font-size: 0.84rem;
  color: var(--electric-blue);
  background: rgba(37, 99, 235, 0.08);
  padding: 0.15rem 0.45rem;
  border-radius: 5px;
  border: 1px solid rgba(37, 99, 235, 0.15);
}

.ailab-article__code-block {
  background: var(--dark);
  color: #e0e0e0;
  padding: 1.15rem 1.5rem;
  border-radius: 10px;
  margin: 1.25rem 0;
  font-size: 0.85rem;
  line-height: 1.7;
  overflow-x: auto;
  border: 1px solid rgba(0, 0, 0, 0.1);
}
.ailab-article__code-block code {
  font-family: 'SF Mono', 'Cascadia Code', 'Fira Code', 'Consolas', monospace;
  color: #93c5fd;
  background: none;
  padding: 0;
  border: none;
}

.ailab-article__list {
  padding-left: 1.5rem;
  margin: 0.75rem 0 1.25rem;
  list-style: none;
}
.ailab-article__list li {
  font-size: 0.92rem;
  color: var(--charcoal);
  line-height: 1.8;
  margin-bottom: 0.35rem;
  position: relative;
  padding-left: 1.25rem;
}
.ailab-article__list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.6rem;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--electric-blue);
}

/* Lesson Navigation (prev/next) */
.ailab-lesson-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem 2.5rem 2rem;
  border-top: 1px solid rgba(0, 0, 0, 0.06);
  max-width: 820px;
}

.ailab-lesson-nav__prev,
.ailab-lesson-nav__next {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--grey);
  padding: 0.55rem 1rem;
  border-radius: 8px;
  transition: all var(--transition);
  text-decoration: none;
  border: 1px solid rgba(0, 0, 0, 0.07);
}
.ailab-lesson-nav__prev:hover,
.ailab-lesson-nav__next:hover {
  color: var(--electric-blue);
  border-color: rgba(37, 99, 235, 0.2);
  background: rgba(37, 99, 235, 0.06);
}

/* Mark Complete Button */
.ailab-lesson-actions {
  display: flex;
  justify-content: center;
  padding: 0 2.5rem 1rem;
  max-width: 820px;
}

.ailab-lesson-actions__complete {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.7rem 1.75rem;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--green);
  background: var(--green-light);
  border: 1.5px solid rgba(45, 138, 110, 0.25);
  border-radius: 100px;
  transition: all var(--transition);
}
.ailab-lesson-actions__complete:hover {
  background: var(--green);
  color: var(--white);
  border-color: var(--green);
  transform: translateY(-1px);
}
.ailab-lesson-actions__complete--done {
  background: var(--green);
  color: var(--white);
  border-color: var(--green);
  pointer-events: none;
  opacity: 0.85;
}

/* ─── AI Side Drawer ─── */
.ailab-ai-drawer {
  display: none;
  position: absolute;
  inset: 0;
  z-index: 50;
  pointer-events: none;
}
.ailab-ai-drawer--open {
  display: block;
  pointer-events: auto;
}

.ailab-ai-drawer__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.25);
  opacity: 0;
  transition: opacity var(--transition-smooth);
}
.ailab-ai-drawer--open .ailab-ai-drawer__backdrop {
  opacity: 1;
}

.ailab-ai-drawer__panel {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: 420px;
  max-width: 90vw;
  background: #0d1117;
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  transition: transform var(--transition-smooth);
  border-left: 1px solid rgba(255, 255, 255, 0.06);
  box-shadow: -8px 0 40px rgba(0, 0, 0, 0.4);
  overflow: hidden;
}
.ailab-ai-drawer--open .ailab-ai-drawer__panel {
  transform: translateX(0);
}

.ailab-ai-drawer__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.15rem 1.5rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  flex-shrink: 0;
}

.ailab-ai-drawer__title {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--white);
}

.ailab-ai-drawer__close {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 8px;
  color: rgba(255, 255, 255, 0.5);
  transition: all var(--transition);
  background: transparent;
  border: none;
  cursor: pointer;
}
.ailab-ai-drawer__close:hover {
  color: var(--white);
  background: transparent;
}

/* ─── AI Background (dark subtle mesh) ─── */
.ailab-ai-drawer__bg-animation {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}
.ailab-ai-drawer__bg-animation::before {
  content: '';
  position: absolute;
  inset: -50%;
  background:
    radial-gradient(circle at 20% 30%, rgba(255, 255, 255, 0.03) 0%, transparent 40%),
    radial-gradient(circle at 80% 70%, rgba(255, 255, 255, 0.02) 0%, transparent 40%);
  animation: ailab-bg-shift 12s ease-in-out infinite;
}
.ailab-ai-drawer__bg-animation::after {
  content: '';
  position: absolute;
  inset: -50%;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: 40px 40px;
  animation: ailab-grid-drift 20s linear infinite;
  opacity: 0.4;
}
@keyframes ailab-bg-shift {
  0%, 100% { transform: translate(0, 0) rotate(0deg); }
  33% { transform: translate(1%, -1%) rotate(1deg); }
  66% { transform: translate(-1%, 1%) rotate(-1deg); }
}
@keyframes ailab-grid-drift {
  0% { transform: translate(0, 0); }
  100% { transform: translate(40px, 40px); }
}
.ailab-ai-drawer__orb {
  display: none;
}
.ailab-ai-drawer__pulse {
  display: none;
}

/* ─── AI Drawer Body ─── */
.ailab-ai-drawer__body {
  flex: 1;
  display: flex;
  flex-direction: column;
  padding: 1.5rem;
  overflow-y: auto;
  position: relative;
  z-index: 1;
}
.ailab-ai-drawer__body::-webkit-scrollbar { width: 4px; }
.ailab-ai-drawer__body::-webkit-scrollbar-track { background: transparent; }
.ailab-ai-drawer__body::-webkit-scrollbar-thumb { background-color: rgba(255, 255, 255, 0.1); border-radius: 2px; }

.ailab-ai-drawer__welcome {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  margin-bottom: 2rem;
}

.ailab-ai-drawer__welcome-icon {
  width: 64px;
  height: 64px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.06);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
  color: rgba(255, 255, 255, 0.7);
}

.ailab-ai-drawer__welcome-text {
  font-size: 0.85rem;
  font-weight: 400;
  color: rgba(255, 255, 255, 0.6);
  line-height: 1.65;
  max-width: 280px;
}

/* Suggested Prompts */
.ailab-ai-drawer__suggestions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.ailab-ai-drawer__suggestion {
  font-size: 0.78rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.7);
  padding: 0.55rem 0.9rem;
  border-radius: 100px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.08);
  transition: all var(--transition);
  cursor: pointer;
  text-align: left;
}
.ailab-ai-drawer__suggestion:hover {
  color: var(--white);
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.18);
}

/* ─── AI Drawer Input ─── */
.ailab-ai-drawer__input {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 1rem 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(0, 0, 0, 0.2);
  backdrop-filter: blur(12px);
  flex-shrink: 0;
  position: relative;
  z-index: 1;
}

.ailab-ai-drawer__input-field {
  flex: 1;
  font-family: inherit;
  font-size: 0.85rem;
  padding: 0.7rem 1rem;
  background: rgba(255, 255, 255, 0.08);
  border: 1.5px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  color: var(--white);
  outline: none;
  transition: all var(--transition);
}
.ailab-ai-drawer__input-field::placeholder {
  color: rgba(255, 255, 255, 0.3);
}
.ailab-ai-drawer__input-field:focus {
  border-color: rgba(255, 255, 255, 0.3);
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.06);
  background: rgba(255, 255, 255, 0.1);
}

.ailab-ai-drawer__input-send {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.1);
  color: var(--white);
  border: none;
  transition: all var(--transition);
  flex-shrink: 0;
}
.ailab-ai-drawer__input-send:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: scale(1.05);
}

/* ============================================================
   AI LAB — Responsive
   ============================================================ */
@media (max-width: 960px) {
  .ailab-sidebar {
    position: fixed;
    left: 0;
    top: 0;
    bottom: 0;
    z-index: 60;
    transform: translateX(-100%);
    transition: transform var(--transition-smooth);
  }
  .ailab-sidebar--open {
    transform: translateX(0);
  }
  .ailab-content {
    padding: 0;
  }
  .ailab-article {
    padding: 1rem 1.25rem 2rem;
  }
  .ailab-article__h1 {
    font-size: 1.5rem;
  }
  .ailab-breadcrumb {
    padding: 1rem 1.25rem 0;
  }
  .ailab-lesson-nav {
    padding: 1rem 1.25rem 1.5rem;
  }
  .ailab-ai-drawer__panel {
    width: 100%;
    max-width: 100%;
  }
}

@media (max-width: 640px) {
  .ailab-topbar {
    padding: 0.7rem 1rem;
  }
  .ailab-topbar__ask span {
    display: none;
  }
  .ailab-topbar__back span {
    display: none;
  }
  .ailab-lang-dropdown__trigger {
    padding: 0.45rem 0.7rem;
    font-size: 0.78rem;
  }
  .ailab-article__h1 {
    font-size: 1.35rem;
  }
  .ailab-article__h2 {
    font-size: 1.1rem;
  }
  .ailab-article__p,
  .ailab-article__list li {
    font-size: 0.85rem;
  }
  .ailab-lesson-nav__prev span,
  .ailab-lesson-nav__next span {
    display: none;
  }
}

/* ============================================================
   PROFILE SECTION — full-width overrides (mobile)
   Ensures profile detaches from any parent width constraints
   ============================================================ */
@media (max-width: 780px) {
  #section-profile.dashboard-section--active {
    padding: 0 !important;
  }
  .dashboard-profile {
    width: 100% !important;
    max-width: none !important;
    padding: 0 0.65rem !important;
    margin: 0 !important;
  }
  .profile-card {
    width: 100% !important;
    max-width: none !important;
    border-radius: 10px !important;
    border-left: 1px solid rgba(0,0,0,0.06) !important;
    border-right: 1px solid rgba(0,0,0,0.06) !important;
  }
  .profile-card__header {
    padding: 1.25rem 0.75rem !important;
  }
  .profile-card__details {
    padding: 0 0.75rem 1.25rem !important;
  }
  .profile-detail {
    width: 100% !important;
    flex-wrap: nowrap !important;
  }
  .profile-detail__label {
    min-width: auto !important;
    flex-shrink: 0 !important;
  }
  .profile-detail__value {
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    word-break: normal !important;
  }
}
