/**
 * HomeUni — Dark App Shell Styles
 * HomeUni
 */

/* ============================================================
   RESET & BASE
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { font-size: 16px; scroll-behavior: smooth; }

body {
  font-family: var(--hu-font-sans);
  font-size: var(--hu-text-base);
  color: var(--hu-text-primary);
  background-color: var(--hu-bg-base);
  line-height: var(--hu-leading-normal);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a { color: var(--hu-gold); text-decoration: none; transition: color var(--hu-transition-fast); }
a:hover { color: var(--hu-gold-light); }

img, svg { display: block; max-width: 100%; }

h1, h2, h3, h4, h5, h6 {
  font-weight: var(--hu-font-semibold);
  line-height: var(--hu-leading-tight);
  color: var(--hu-text-primary);
}

/* ============================================================
   APP LAYOUT
   ============================================================ */
.hu-app {
  display: flex;
  min-height: 100vh;
  background: var(--hu-bg-base);
}

/* ============================================================
   SIDEBAR
   ============================================================ */
.hu-sidebar {
  width: var(--hu-sidebar-width);
  min-height: 100vh;
  background: var(--hu-bg-surface);
  border-right: 1px solid var(--hu-border);
  display: flex;
  flex-direction: column;
  position: fixed;
  top: 0;
  left: 0;
  z-index: var(--hu-z-sticky);
  transition: width var(--hu-transition-base), transform var(--hu-transition-base);
  overflow-x: hidden;
}

.hu-sidebar.collapsed { width: var(--hu-sidebar-collapsed); }

.hu-sidebar__logo {
  padding: var(--hu-space-6);
  border-bottom: 1px solid var(--hu-border);
  display: flex;
  align-items: center;
  gap: var(--hu-space-3);
  text-decoration: none;
  min-height: var(--hu-header-height);
}

.hu-sidebar__logo-icon {
  width: 36px; height: 36px;
  background: var(--hu-gradient-gold);
  border-radius: var(--hu-radius-md);
  display: flex; align-items: center; justify-content: center;
  font-weight: var(--hu-font-bold);
  color: var(--hu-text-inverse);
  font-size: var(--hu-text-sm);
  flex-shrink: 0;
}

.hu-sidebar__logo-text {
  font-size: var(--hu-text-lg);
  font-weight: var(--hu-font-bold);
  color: var(--hu-text-primary);
  white-space: nowrap;
  overflow: hidden;
  transition: opacity var(--hu-transition-base);
}
.hu-sidebar.collapsed .hu-sidebar__logo-text { opacity: 0; width: 0; }

.hu-sidebar__nav {
  flex: 1;
  padding: var(--hu-space-4) var(--hu-space-3);
  overflow-y: auto;
  overflow-x: hidden;
}

.hu-sidebar__section-label {
  font-size: var(--hu-text-xs);
  font-weight: var(--hu-font-semibold);
  color: var(--hu-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: var(--hu-space-4) var(--hu-space-3) var(--hu-space-2);
  white-space: nowrap;
  overflow: hidden;
  transition: opacity var(--hu-transition-base);
}
.hu-sidebar.collapsed .hu-sidebar__section-label { opacity: 0; }

.hu-nav-item {
  display: flex;
  align-items: center;
  gap: var(--hu-space-3);
  padding: var(--hu-space-3) var(--hu-space-3);
  border-radius: var(--hu-radius-md);
  cursor: pointer;
  transition: all var(--hu-transition-fast);
  white-space: nowrap;
  position: relative;
  margin-bottom: 2px;
  text-decoration: none;
  color: var(--hu-text-secondary);
  font-size: var(--hu-text-sm);
  font-weight: var(--hu-font-medium);
  border: 1px solid transparent;
}

.hu-nav-item:hover {
  background: var(--hu-gold-pale);
  color: var(--hu-text-primary);
  border-color: var(--hu-border);
}

.hu-nav-item.active {
  background: var(--hu-gold-pale);
  color: var(--hu-gold);
  border-color: rgba(21, 101, 192, 0.3);
}

.hu-nav-item__icon {
  font-size: 1.125rem;
  width: 20px;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}

.hu-nav-item__label {
  flex: 1;
  transition: opacity var(--hu-transition-base);
  overflow: hidden;
}
.hu-sidebar.collapsed .hu-nav-item__label { opacity: 0; width: 0; }

.hu-nav-item__badge {
  background: var(--hu-gold);
  color: var(--hu-text-inverse);
  font-size: var(--hu-text-xs);
  font-weight: var(--hu-font-bold);
  padding: 2px 6px;
  border-radius: var(--hu-radius-full);
  min-width: 18px;
  text-align: center;
  transition: opacity var(--hu-transition-base);
}
.hu-sidebar.collapsed .hu-nav-item__badge { opacity: 0; }

.hu-sidebar__footer {
  padding: var(--hu-space-4) var(--hu-space-3);
  border-top: 1px solid var(--hu-border);
}

.hu-sidebar__user {
  display: flex;
  align-items: center;
  gap: var(--hu-space-3);
  padding: var(--hu-space-3);
  border-radius: var(--hu-radius-md);
  cursor: pointer;
  transition: background var(--hu-transition-fast);
}
.hu-sidebar__user:hover { background: var(--hu-gold-pale); }

.hu-sidebar__toggle {
  width: 100%;
  background: none;
  border: 1px solid var(--hu-border);
  border-radius: var(--hu-radius-md);
  padding: var(--hu-space-2);
  color: var(--hu-text-muted);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: var(--hu-space-3);
  transition: all var(--hu-transition-fast);
}
.hu-sidebar__toggle:hover { background: var(--hu-gold-pale); color: var(--hu-gold); }

/* ============================================================
   MAIN + HEADER
   ============================================================ */
.hu-main {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

.hu-header {
  height: var(--hu-header-height);
  background: var(--hu-bg-surface);
  border-bottom: 1px solid var(--hu-border);
  display: flex;
  align-items: center;
  padding: 0 var(--hu-space-6);
  gap: var(--hu-space-4);
  position: sticky;
  top: 0;
  z-index: calc(var(--hu-z-sticky) + 1);
}

.hu-header__breadcrumb {
  flex: 1;
  display: flex;
  align-items: center;
  gap: var(--hu-space-2);
  font-size: var(--hu-text-sm);
  color: var(--hu-text-secondary);
}

.hu-header__breadcrumb-item { color: var(--hu-text-secondary); }
.hu-header__breadcrumb-item.current { color: var(--hu-text-primary); font-weight: var(--hu-font-medium); }
.hu-header__breadcrumb-sep { color: var(--hu-text-muted); }

.hu-header__actions { display: flex; align-items: center; gap: var(--hu-space-3); }

.hu-header__icon-btn {
  width: 40px; height: 40px;
  background: none;
  border: 1px solid var(--hu-border);
  border-radius: var(--hu-radius-md);
  color: var(--hu-text-secondary);
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.1rem;
  transition: all var(--hu-transition-fast);
  position: relative;
}
.hu-header__icon-btn:hover { background: var(--hu-gold-pale); color: var(--hu-gold); border-color: var(--hu-gold); }

.hu-header__notif-dot {
  position: absolute;
  top: 6px; right: 6px;
  width: 8px; height: 8px;
  background: var(--hu-error);
  border-radius: 50%;
  border: 2px solid var(--hu-bg-surface);
}

.hu-hamburger {
  display: none;
  transition: background var(--hu-transition-fast), color var(--hu-transition-fast);
}
.hu-hamburger[aria-expanded="true"] {
  background: var(--hu-gold-pale);
  color: var(--hu-gold);
  border-color: rgba(21,101,192,.4);
}

.hu-content {
  flex: 1;
  padding: var(--hu-space-6);
  max-width: var(--hu-content-max-width);
  width: 100%;
}

/* ============================================================
   AVATAR
   ============================================================ */
.hu-avatar {
  width: 36px; height: 36px;
  border-radius: 50%;
  background: var(--hu-gradient-gold);
  display: flex; align-items: center; justify-content: center;
  font-weight: var(--hu-font-semibold);
  color: var(--hu-text-inverse);
  font-size: var(--hu-text-sm);
  flex-shrink: 0;
  overflow: hidden;
}
.hu-avatar img { width: 100%; height: 100%; object-fit: cover; }
.hu-avatar--lg { width: 64px; height: 64px; font-size: var(--hu-text-xl); }
.hu-avatar--xl { width: 96px; height: 96px; font-size: var(--hu-text-3xl); }

/* ============================================================
   CARDS
   ============================================================ */
.hu-card {
  background: var(--hu-bg-elevated);
  border: 1px solid var(--hu-border);
  border-radius: var(--hu-radius-xl);
  padding: var(--hu-space-6);
  transition: box-shadow var(--hu-transition-fast);
}

.hu-card--hover:hover {
  box-shadow: var(--hu-shadow-gold);
  border-color: rgba(21,101,192,0.3);
}

.hu-card__header {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: var(--hu-space-4);
  padding-bottom: var(--hu-space-4);
  border-bottom: 1px solid var(--hu-border);
}

.hu-card__title {
  font-size: var(--hu-text-lg);
  font-weight: var(--hu-font-semibold);
  color: var(--hu-text-primary);
}

.hu-stat-card {
  background: var(--hu-bg-elevated);
  border: 1px solid var(--hu-border);
  border-radius: var(--hu-radius-xl);
  padding: var(--hu-space-6);
  display: flex;
  align-items: flex-start;
  gap: var(--hu-space-4);
  transition: all var(--hu-transition-fast);
}
.hu-stat-card:hover { border-color: var(--hu-gold); box-shadow: var(--hu-shadow-gold); }

.hu-stat-card__icon {
  width: 48px; height: 48px;
  background: var(--hu-gold-pale);
  border-radius: var(--hu-radius-lg);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.5rem;
  color: var(--hu-gold);
  flex-shrink: 0;
}

.hu-stat-card__label {
  font-size: var(--hu-text-sm);
  color: var(--hu-text-secondary);
  margin-bottom: var(--hu-space-1);
}

.hu-stat-card__value {
  font-size: var(--hu-text-2xl);
  font-weight: var(--hu-font-bold);
  color: var(--hu-text-primary);
  line-height: 1;
}

.hu-stat-card__change {
  font-size: var(--hu-text-xs);
  margin-top: var(--hu-space-1);
}
.hu-stat-card__change.up { color: var(--hu-success); }
.hu-stat-card__change.down { color: var(--hu-error); }

.hu-programme-card {
  background: var(--hu-bg-elevated);
  border: 1px solid var(--hu-border);
  border-radius: var(--hu-radius-xl);
  overflow: hidden;
  transition: all var(--hu-transition-base);
  cursor: pointer;
}
.hu-programme-card:hover { transform: translateY(-4px); box-shadow: var(--hu-shadow-gold); border-color: rgba(21,101,192,0.4); }

.hu-programme-card__cover {
  width: 100%; height: 160px;
  object-fit: cover;
  background: var(--hu-gradient-hero);
}

.hu-programme-card__cover-placeholder {
  width: 100%; height: 160px;
  background: var(--hu-gradient-hero);
  display: flex; align-items: center; justify-content: center;
  font-size: 3rem; color: var(--hu-gold-dim);
}

.hu-programme-card__body { padding: var(--hu-space-5); }
.hu-programme-card__title { font-size: var(--hu-text-base); font-weight: var(--hu-font-semibold); margin-bottom: var(--hu-space-2); }
.hu-programme-card__meta { font-size: var(--hu-text-xs); color: var(--hu-text-secondary); margin-bottom: var(--hu-space-3); }
.hu-programme-card__price { font-size: var(--hu-text-lg); font-weight: var(--hu-font-bold); color: var(--hu-gold); }

/* ============================================================
   BUTTONS
   ============================================================ */
.hu-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--hu-space-2);
  padding: var(--hu-space-3) var(--hu-space-5);
  border-radius: var(--hu-radius-md);
  font-size: var(--hu-text-sm);
  font-weight: var(--hu-font-semibold);
  font-family: var(--hu-font-sans);
  cursor: pointer;
  border: 1px solid transparent;
  transition: all var(--hu-transition-fast);
  text-decoration: none;
  white-space: nowrap;
  line-height: 1;
}
.hu-btn:disabled { opacity: 0.5; cursor: not-allowed; pointer-events: none; }

.hu-btn--primary {
  background: var(--hu-gradient-gold);
  color: var(--hu-text-inverse);
  border-color: var(--hu-gold);
}
.hu-btn--primary:hover { box-shadow: var(--hu-shadow-gold); transform: translateY(-1px); }

.hu-btn--secondary {
  background: var(--hu-bg-elevated);
  color: var(--hu-text-primary);
  border-color: var(--hu-border);
}
.hu-btn--secondary:hover { background: var(--hu-bg-overlay); border-color: var(--hu-gold); }

.hu-btn--ghost {
  background: none;
  color: var(--hu-text-secondary);
  border-color: transparent;
}
.hu-btn--ghost:hover { background: var(--hu-gold-pale); color: var(--hu-gold); }

.hu-btn--danger {
  background: var(--hu-error-bg);
  color: var(--hu-error);
  border-color: var(--hu-error-border);
}
.hu-btn--danger:hover { background: var(--hu-error); color: white; }

.hu-btn--outline-gold {
  background: none;
  color: var(--hu-gold);
  border-color: var(--hu-gold);
}
.hu-btn--outline-gold:hover { background: var(--hu-gold-pale); }

.hu-btn--sm { padding: var(--hu-space-2) var(--hu-space-3); font-size: var(--hu-text-xs); }
.hu-btn--lg { padding: var(--hu-space-4) var(--hu-space-8); font-size: var(--hu-text-base); }
.hu-btn--block { width: 100%; }
.hu-btn--icon { padding: var(--hu-space-2); width: 36px; height: 36px; }

.hu-btn__spinner {
  width: 14px; height: 14px;
  border: 2px solid currentColor;
  border-top-color: transparent;
  border-radius: 50%;
  animation: hu-spin 0.6s linear infinite;
}

/* ============================================================
   FORM CONTROLS
   ============================================================ */
.hu-form-group { margin-bottom: var(--hu-space-5); }

.hu-label {
  display: block;
  font-size: var(--hu-text-sm);
  font-weight: var(--hu-font-medium);
  color: var(--hu-text-secondary);
  margin-bottom: var(--hu-space-2);
}
.hu-label.required::after { content: ' *'; color: var(--hu-error); }

.hu-input, .hu-select, .hu-textarea {
  width: 100%;
  background: var(--hu-bg-surface);
  border: 1px solid var(--hu-border);
  border-radius: var(--hu-radius-md);
  padding: var(--hu-space-3) var(--hu-space-4);
  font-size: var(--hu-text-sm);
  color: var(--hu-text-primary);
  font-family: var(--hu-font-sans);
  transition: border-color var(--hu-transition-fast), box-shadow var(--hu-transition-fast);
  outline: none;
}
.hu-input::placeholder, .hu-textarea::placeholder { color: var(--hu-text-muted); }
.hu-input:focus, .hu-select:focus, .hu-textarea:focus {
  border-color: var(--hu-gold);
  box-shadow: 0 0 0 3px var(--hu-gold-pale);
}
.hu-input.error, .hu-select.error, .hu-textarea.error {
  border-color: var(--hu-error);
}
.hu-textarea { resize: vertical; min-height: 100px; }
.hu-select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%238A9BBE' stroke-width='2'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 12px center; padding-right: 36px; cursor: pointer; }

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

.hu-input-group { position: relative; }
.hu-input-group .hu-input { padding-left: 2.5rem; }
.hu-input-group__icon { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); color: var(--hu-text-muted); font-size: 1rem; pointer-events: none; }

/* ============================================================
   TABLES
   ============================================================ */
.hu-table-wrapper {
  background: var(--hu-bg-elevated);
  border: 1px solid var(--hu-border);
  border-radius: var(--hu-radius-xl);
  overflow: hidden;
}

.hu-table {
  width: 100%;
  border-collapse: collapse;
  font-size: var(--hu-text-sm);
}

.hu-table thead tr {
  background: var(--hu-bg-surface);
  border-bottom: 1px solid var(--hu-border);
}

.hu-table th {
  padding: var(--hu-space-3) var(--hu-space-4);
  font-size: var(--hu-text-xs);
  font-weight: var(--hu-font-semibold);
  color: var(--hu-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  text-align: left;
  white-space: nowrap;
}

.hu-table td {
  padding: var(--hu-space-4);
  border-bottom: 1px solid var(--hu-border-subtle);
  color: var(--hu-text-primary);
  vertical-align: middle;
}

.hu-table tbody tr { transition: background var(--hu-transition-fast); }
.hu-table tbody tr:hover { background: var(--hu-bg-overlay); }
.hu-table tbody tr:last-child td { border-bottom: none; }

.hu-table-actions { display: flex; align-items: center; gap: var(--hu-space-2); }

/* Table toolbar */
.hu-table-toolbar {
  padding: var(--hu-space-4) var(--hu-space-5);
  border-bottom: 1px solid var(--hu-border);
  display: flex;
  align-items: center;
  gap: var(--hu-space-3);
  flex-wrap: wrap;
}

/* ============================================================
   BADGES & PILLS
   ============================================================ */
.hu-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px var(--hu-space-2);
  border-radius: var(--hu-radius-full);
  font-size: var(--hu-text-xs);
  font-weight: var(--hu-font-semibold);
  white-space: nowrap;
}
.hu-badge--success { background: var(--hu-success-bg); color: var(--hu-success); border: 1px solid var(--hu-success-border); }
.hu-badge--warning { background: var(--hu-warning-bg); color: var(--hu-warning); border: 1px solid var(--hu-warning-border); }
.hu-badge--error   { background: var(--hu-error-bg);   color: var(--hu-error);   border: 1px solid var(--hu-error-border); }
.hu-badge--info    { background: var(--hu-info-bg);    color: var(--hu-info);    border: 1px solid var(--hu-info-border); }
.hu-badge--gold    { background: var(--hu-gold-pale);  color: var(--hu-gold);    border: 1px solid rgba(21,101,192,0.3); }
.hu-badge--neutral { background: rgba(255,255,255,0.06); color: var(--hu-text-secondary); border: 1px solid var(--hu-border); }

.hu-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  display: inline-block;
  flex-shrink: 0;
}
.hu-dot--success { background: var(--hu-success); }
.hu-dot--warning { background: var(--hu-warning); }
.hu-dot--error   { background: var(--hu-error); }
.hu-dot--info    { background: var(--hu-info); }
.hu-dot--gold    { background: var(--hu-gold); }

/* Role badges */
.hu-role-badge { display: inline-flex; align-items: center; gap: 4px; font-size: var(--hu-text-xs); font-weight: var(--hu-font-semibold); padding: 2px 8px; border-radius: var(--hu-radius-full); }
.hu-role--student          { background: var(--hu-info-bg);    color: var(--hu-info);    border: 1px solid var(--hu-info-border); }
.hu-role--programme_manager { background: var(--hu-gold-pale);  color: var(--hu-gold);    border: 1px solid rgba(21,101,192,0.3); }
.hu-role--hr_manager       { background: rgba(168,85,247,0.12); color: #A855F7; border: 1px solid rgba(168,85,247,0.3); }
.hu-role--coo              { background: var(--hu-success-bg); color: var(--hu-success); border: 1px solid var(--hu-success-border); }
.hu-role--ceo              { background: rgba(21,101,192,.18);  color: var(--hu-gold);    border: 1px solid rgba(21,101,192,.4); }
.hu-role--it_admin         { background: var(--hu-error-bg);   color: var(--hu-error);   border: 1px solid var(--hu-error-border); }

/* ============================================================
   PROGRESS
   ============================================================ */
.hu-progress { height: 8px; background: var(--hu-border); border-radius: var(--hu-radius-full); overflow: hidden; }
.hu-progress__bar { height: 100%; background: var(--hu-gradient-gold); border-radius: var(--hu-radius-full); transition: width 0.6s ease; }
.hu-progress--sm { height: 4px; }
.hu-progress--lg { height: 12px; }

/* ============================================================
   MODALS
   ============================================================ */
.hu-modal-backdrop {
  position: fixed; inset: 0;
  background: rgba(0,0,0,0.7);
  backdrop-filter: blur(4px);
  z-index: var(--hu-z-overlay);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--hu-space-4);
  opacity: 0;
  animation: hu-fade-in 200ms ease forwards;
}

.hu-modal {
  background: var(--hu-bg-surface);
  border: 1px solid var(--hu-border);
  border-radius: var(--hu-radius-2xl);
  width: 100%;
  max-width: 540px;
  max-height: 90vh;
  overflow-y: auto;
  z-index: var(--hu-z-modal);
  animation: hu-modal-in 250ms ease forwards;
}
.hu-modal--lg { max-width: 800px; }
.hu-modal--sm { max-width: 400px; }

.hu-modal__header {
  padding: var(--hu-space-6);
  border-bottom: 1px solid var(--hu-border);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.hu-modal__title { font-size: var(--hu-text-xl); font-weight: var(--hu-font-semibold); }
.hu-modal__close { background: none; border: none; color: var(--hu-text-muted); cursor: pointer; padding: var(--hu-space-2); border-radius: var(--hu-radius-sm); font-size: 1.25rem; transition: all var(--hu-transition-fast); }
.hu-modal__close:hover { background: var(--hu-error-bg); color: var(--hu-error); }

.hu-modal__body { padding: var(--hu-space-6); }
.hu-modal__footer { padding: var(--hu-space-4) var(--hu-space-6); border-top: 1px solid var(--hu-border); display: flex; gap: var(--hu-space-3); justify-content: flex-end; }

/* ============================================================
   TOAST NOTIFICATIONS
   ============================================================ */
.hu-toast-container {
  position: fixed;
  bottom: var(--hu-space-6);
  right: var(--hu-space-6);
  z-index: var(--hu-z-toast);
  display: flex;
  flex-direction: column-reverse;
  gap: var(--hu-space-3);
  pointer-events: none;
}

.hu-toast {
  display: flex;
  align-items: flex-start;
  gap: var(--hu-space-3);
  background: var(--hu-bg-elevated);
  border: 1px solid var(--hu-border);
  border-radius: var(--hu-radius-xl);
  padding: var(--hu-space-4) var(--hu-space-5);
  box-shadow: var(--hu-shadow-lg);
  min-width: 300px;
  max-width: 420px;
  pointer-events: all;
  animation: hu-toast-in 300ms ease forwards;
  border-left: 4px solid var(--hu-info);
}
.hu-toast.success { border-left-color: var(--hu-success); }
.hu-toast.warning { border-left-color: var(--hu-warning); }
.hu-toast.error   { border-left-color: var(--hu-error); }
.hu-toast.gold    { border-left-color: var(--hu-gold); }

.hu-toast__icon { font-size: 1.25rem; flex-shrink: 0; margin-top: 1px; }
.hu-toast.success .hu-toast__icon { color: var(--hu-success); }
.hu-toast.warning .hu-toast__icon { color: var(--hu-warning); }
.hu-toast.error   .hu-toast__icon { color: var(--hu-error); }
.hu-toast.gold    .hu-toast__icon { color: var(--hu-gold); }
.hu-toast.info    .hu-toast__icon { color: var(--hu-info); }

.hu-toast__content { flex: 1; }
.hu-toast__title { font-weight: var(--hu-font-semibold); font-size: var(--hu-text-sm); margin-bottom: 2px; }
.hu-toast__message { font-size: var(--hu-text-xs); color: var(--hu-text-secondary); }

.hu-toast__close { background: none; border: none; color: var(--hu-text-muted); cursor: pointer; padding: 2px; font-size: 1rem; transition: color var(--hu-transition-fast); }
.hu-toast__close:hover { color: var(--hu-text-primary); }

/* ============================================================
   QUIZ / ASSESSMENT UI
   ============================================================ */
.hu-quiz-shell {
  background: var(--hu-bg-surface);
  border: 1px solid var(--hu-border);
  border-radius: var(--hu-radius-xl);
  overflow: hidden;
}

.hu-quiz-header {
  padding: var(--hu-space-4) var(--hu-space-6);
  background: var(--hu-bg-elevated);
  border-bottom: 1px solid var(--hu-border);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.hu-quiz-timer {
  display: flex;
  align-items: center;
  gap: var(--hu-space-2);
  font-family: var(--hu-font-mono);
  font-size: var(--hu-text-xl);
  font-weight: var(--hu-font-bold);
  color: var(--hu-text-primary);
  background: var(--hu-bg-surface);
  padding: var(--hu-space-2) var(--hu-space-4);
  border-radius: var(--hu-radius-md);
  border: 1px solid var(--hu-border);
}
.hu-quiz-timer.warning { color: var(--hu-warning); border-color: var(--hu-warning-border); }
.hu-quiz-timer.danger  { color: var(--hu-error);   border-color: var(--hu-error-border); animation: hu-pulse 1s ease infinite; }

.hu-question-card {
  padding: var(--hu-space-8);
}
.hu-question-number { font-size: var(--hu-text-xs); color: var(--hu-text-muted); text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: var(--hu-space-3); }
.hu-question-text { font-size: var(--hu-text-lg); font-weight: var(--hu-font-medium); margin-bottom: var(--hu-space-6); line-height: var(--hu-leading-relaxed); }

.hu-choice {
  display: flex;
  align-items: flex-start;
  gap: var(--hu-space-3);
  padding: var(--hu-space-4);
  border: 1px solid var(--hu-border);
  border-radius: var(--hu-radius-lg);
  cursor: pointer;
  margin-bottom: var(--hu-space-3);
  transition: all var(--hu-transition-fast);
}
.hu-choice:hover { background: var(--hu-gold-pale); border-color: var(--hu-gold); }
.hu-choice.selected { background: var(--hu-gold-pale); border-color: var(--hu-gold); }
.hu-choice.correct  { background: var(--hu-success-bg); border-color: var(--hu-success); }
.hu-choice.incorrect { background: var(--hu-error-bg); border-color: var(--hu-error); }

.hu-choice__indicator {
  width: 20px; height: 20px;
  border: 2px solid var(--hu-border);
  border-radius: 50%;
  flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  margin-top: 1px;
  transition: all var(--hu-transition-fast);
}
.hu-choice.selected .hu-choice__indicator { border-color: var(--hu-gold); background: var(--hu-gold); }

/* ============================================================
   WALLET CARD
   ============================================================ */
.hu-wallet-card {
  background: var(--hu-gradient-hero);
  border: 1px solid var(--hu-border);
  border-radius: var(--hu-radius-2xl);
  padding: var(--hu-space-8);
  position: relative;
  overflow: hidden;
}
.hu-wallet-card::before {
  content: '';
  position: absolute;
  top: -40px; right: -40px;
  width: 180px; height: 180px;
  border-radius: 50%;
  background: var(--hu-gold-glow);
}
.hu-wallet-card__label { font-size: var(--hu-text-sm); color: var(--hu-text-secondary); margin-bottom: var(--hu-space-2); }
.hu-wallet-card__balance { font-size: var(--hu-text-4xl); font-weight: var(--hu-font-bold); color: var(--hu-gold); margin-bottom: var(--hu-space-6); }
.hu-wallet-card__currency { font-size: var(--hu-text-lg); margin-right: var(--hu-space-2); }

/* ============================================================
   TABS
   ============================================================ */
.hu-tabs { display: flex; gap: 2px; background: var(--hu-bg-surface); border: 1px solid var(--hu-border); border-radius: var(--hu-radius-lg); padding: 4px; margin-bottom: var(--hu-space-6); }
.hu-tab { flex: 1; padding: var(--hu-space-2) var(--hu-space-4); border-radius: var(--hu-radius-md); font-size: var(--hu-text-sm); font-weight: var(--hu-font-medium); color: var(--hu-text-secondary); cursor: pointer; text-align: center; transition: all var(--hu-transition-fast); border: none; background: none; }
.hu-tab.active { background: var(--hu-bg-elevated); color: var(--hu-gold); }
.hu-tab:hover:not(.active) { color: var(--hu-text-primary); background: var(--hu-bg-overlay); }

.hu-tabs--line { background: none; border: none; border-bottom: 1px solid var(--hu-border); border-radius: 0; padding: 0; }
.hu-tabs--line .hu-tab { border-radius: 0; border-bottom: 2px solid transparent; margin-bottom: -1px; }
.hu-tabs--line .hu-tab.active { background: none; border-bottom-color: var(--hu-gold); }

/* ============================================================
   EMPTY STATES
   ============================================================ */
.hu-empty {
  text-align: center;
  padding: var(--hu-space-16) var(--hu-space-8);
}
.hu-empty__icon { font-size: 3rem; color: var(--hu-text-muted); margin-bottom: var(--hu-space-4); }
.hu-empty__title { font-size: var(--hu-text-lg); font-weight: var(--hu-font-semibold); margin-bottom: var(--hu-space-2); }
.hu-empty__text { color: var(--hu-text-secondary); font-size: var(--hu-text-sm); }

/* ============================================================
   LOADING STATES
   ============================================================ */
.hu-spinner {
  width: 24px; height: 24px;
  border: 3px solid var(--hu-border);
  border-top-color: var(--hu-gold);
  border-radius: 50%;
  animation: hu-spin 0.8s linear infinite;
}
.hu-spinner--sm { width: 16px; height: 16px; border-width: 2px; }
.hu-spinner--lg { width: 48px; height: 48px; border-width: 4px; }

.hu-loading-overlay {
  position: absolute; inset: 0;
  background: rgba(8,15,28,0.8);
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: inherit;
  z-index: var(--hu-z-overlay);
}

.hu-skeleton {
  background: linear-gradient(90deg, var(--hu-bg-elevated) 25%, var(--hu-bg-overlay) 50%, var(--hu-bg-elevated) 75%);
  background-size: 200% 100%;
  animation: hu-shimmer 1.5s ease-in-out infinite;
  border-radius: var(--hu-radius-md);
}
.hu-skeleton--text { height: 14px; margin-bottom: var(--hu-space-2); }
.hu-skeleton--title { height: 24px; margin-bottom: var(--hu-space-3); }
.hu-skeleton--avatar { width: 40px; height: 40px; border-radius: 50%; }
.hu-skeleton--card { height: 200px; border-radius: var(--hu-radius-xl); }

/* ============================================================
   DROPDOWN MENUS
   ============================================================ */
.hu-dropdown {
  position: relative;
  display: inline-block;
}

.hu-dropdown__menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  background: var(--hu-bg-elevated);
  border: 1px solid var(--hu-border);
  border-radius: var(--hu-radius-lg);
  box-shadow: var(--hu-shadow-lg);
  min-width: 200px;
  z-index: var(--hu-z-dropdown);
  padding: var(--hu-space-2) 0;
  animation: hu-fade-in 150ms ease;
}
.hu-dropdown__menu.hidden { display: none; }

.hu-dropdown__item {
  display: flex; align-items: center; gap: var(--hu-space-3);
  padding: var(--hu-space-3) var(--hu-space-4);
  font-size: var(--hu-text-sm);
  color: var(--hu-text-secondary);
  cursor: pointer;
  transition: all var(--hu-transition-fast);
  border: none; background: none; width: 100%; text-align: left;
}
.hu-dropdown__item:hover { background: var(--hu-gold-pale); color: var(--hu-text-primary); }
.hu-dropdown__item.danger:hover { background: var(--hu-error-bg); color: var(--hu-error); }
.hu-dropdown__divider { height: 1px; background: var(--hu-border); margin: var(--hu-space-2) 0; }

/* ============================================================
   PAGE HEADERS
   ============================================================ */
.hu-page-header {
  margin-bottom: var(--hu-space-8);
}
.hu-page-header__title { font-size: var(--hu-text-3xl); font-weight: var(--hu-font-bold); margin-bottom: var(--hu-space-2); }
.hu-page-header__subtitle { color: var(--hu-text-secondary); font-size: var(--hu-text-base); }

.hu-page-header-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: var(--hu-space-4);
  margin-bottom: var(--hu-space-8);
  flex-wrap: wrap;
}

/* ============================================================
   GRID HELPERS
   ============================================================ */
.hu-grid { display: grid; gap: var(--hu-space-6); }
.hu-grid--2 { grid-template-columns: repeat(2, 1fr); }
.hu-grid--3 { grid-template-columns: repeat(3, 1fr); }
.hu-grid--4 { grid-template-columns: repeat(4, 1fr); }
.hu-grid--auto { grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
.hu-grid--stat { grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }

/* ============================================================
   DIVIDER
   ============================================================ */
.hu-divider { height: 1px; background: var(--hu-border); margin: var(--hu-space-6) 0; }
.hu-divider--vertical { width: 1px; height: 100%; background: var(--hu-border); margin: 0 var(--hu-space-4); }

/* ============================================================
   SECTION TITLES
   ============================================================ */
.hu-section-title {
  font-size: var(--hu-text-xl);
  font-weight: var(--hu-font-semibold);
  margin-bottom: var(--hu-space-5);
  display: flex;
  align-items: center;
  gap: var(--hu-space-3);
}
.hu-section-title::after { content: ''; flex: 1; height: 1px; background: var(--hu-border); }

/* ============================================================
   ANIMATIONS
   ============================================================ */
@keyframes hu-spin    { to { transform: rotate(360deg); } }
@keyframes hu-pulse   { 0%, 100% { opacity: 1; } 50% { opacity: 0.5; } }
@keyframes hu-shimmer { 0% { background-position: -200% 0; } 100% { background-position: 200% 0; } }
@keyframes hu-fade-in { from { opacity: 0; } to { opacity: 1; } }
@keyframes hu-modal-in { from { opacity: 0; transform: scale(0.94) translateY(10px); } to { opacity: 1; transform: scale(1) translateY(0); } }
@keyframes hu-toast-in { from { opacity: 0; transform: translateX(20px); } to { opacity: 1; transform: translateX(0); } }
@keyframes hu-slide-up { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }

/* ============================================================
   RESPONSIVE BREAKPOINTS
   ============================================================ */
@media (max-width: 1280px) {
  .hu-grid--4 { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 1024px) {
  :root { --hu-sidebar-width: var(--hu-sidebar-collapsed); }

  /* Sidebar hidden off-screen by default on mobile */
  .hu-sidebar {
    transform: translateX(-100%);
    width: 280px !important;
    transition: transform var(--hu-transition-base), box-shadow var(--hu-transition-base);
    box-shadow: none;
  }

  /* Sidebar slides in when open */
  .hu-sidebar.mobile-open {
    transform: translateX(0);
    box-shadow: 4px 0 40px rgba(0,0,0,.6);
    z-index: calc(var(--hu-z-sticky) + 10); /* above header on mobile */
    overflow-y: auto;
    overflow-x: hidden;
    max-height: 100vh;
  }
  .hu-sidebar.mobile-open .hu-sidebar__logo-text,
  .hu-sidebar.mobile-open .hu-nav-item__label,
  .hu-sidebar.mobile-open .hu-nav-item__badge,
  .hu-sidebar.mobile-open .hu-sidebar__section-label,
  .hu-sidebar.mobile-open .hu-sidebar__user-info {
    opacity: 1 !important;
    width: auto !important;
  }

  /* Main has no left offset on mobile */
  .hu-main { padding-left: 0 !important; }

  /* Show hamburger */
  .hu-hamburger { display: flex !important; }

  /* Hide desktop pin button on mobile */
  .hu-sidebar__pin { display: none !important; }

  .hu-grid--3, .hu-grid--4 { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  .hu-content { padding: var(--hu-space-4); }
  .hu-grid--2, .hu-grid--3, .hu-grid--4 { grid-template-columns: 1fr; }
  .hu-grid--stat { grid-template-columns: repeat(2, 1fr); }
  .hu-table-wrapper { overflow-x: auto; }
  .hu-page-header-row { flex-direction: column; }
  .hu-modal { max-width: 100%; margin: 0; border-radius: var(--hu-radius-2xl) var(--hu-radius-2xl) 0 0; }
  .hu-modal-backdrop { align-items: flex-end; padding: 0; }
}

@media (max-width: 480px) {
  .hu-grid--stat { grid-template-columns: 1fr; }
  .hu-toast-container { left: var(--hu-space-4); right: var(--hu-space-4); }
  .hu-toast { min-width: unset; }
  .hu-page-header__title { font-size: var(--hu-text-2xl); }
}

/* ============================================================
   LIGHT MODE — override CSS custom properties
   ============================================================ */
html.hu-light {
  --hu-bg-base:        #F4F6FB;
  --hu-bg-surface:     #FFFFFF;
  --hu-bg-elevated:    #F8FAFF;
  --hu-bg-overlay:     #EEF2FB;

  --hu-border:         #DDE3F0;
  --hu-border-subtle:  rgba(0,0,0,.06);

  --hu-gradient-hero:    linear-gradient(135deg, #EEF2FB 0%, #F0F4FF 60%, #E8EEFF 100%);
  --hu-gradient-surface: linear-gradient(135deg, #FFFFFF 0%, #F4F6FB 100%);

  --hu-text-primary:   #0D1829;
  --hu-text-secondary: #4A5568;
  --hu-text-muted:     #8A94A6;
  --hu-text-inverse:   #F0F4FF;

  --hu-gold:           #1565C0;
  --hu-gold-light:     #1976D2;
  --hu-gold-dim:       #0D47A1;
  --hu-gold-pale:      rgba(21,101,192,.10);
  --hu-gold-glow:      rgba(21,101,192,.20);

  --hu-success-bg:     rgba(22,163,74,.1);
  --hu-warning-bg:     rgba(209,170,102,.1);
  --hu-error-bg:       rgba(220,38,38,.1);
  --hu-info-bg:        rgba(37,99,235,.1);
}

html.hu-light body      { background: var(--hu-bg-base); color: var(--hu-text-primary); }
html.hu-light .hu-app   { background: var(--hu-bg-base); }
html.hu-light .hu-sidebar {
  background: var(--hu-bg-surface);
  border-right: 1px solid var(--hu-border);
  box-shadow: 2px 0 12px rgba(0,0,0,.06);
}
html.hu-light .hu-header {
  background: var(--hu-bg-surface);
  border-bottom-color: var(--hu-border);
  box-shadow: 0 1px 6px rgba(0,0,0,.06);
}
html.hu-light .hu-card,
html.hu-light .hu-stat-card,
html.hu-light .hu-table th { background: var(--hu-bg-surface); }
html.hu-light .hu-input,
html.hu-light .hu-select   { background: var(--hu-bg-elevated); border-color: var(--hu-border); color: var(--hu-text-primary); }
html.hu-light .hu-table    { background: var(--hu-bg-surface); }
html.hu-light .hu-table td { border-color: var(--hu-border); }
html.hu-light .hu-notif-panel,
html.hu-light .hu-user-dropdown {
  background: var(--hu-bg-surface);
  border-color: var(--hu-border);
  box-shadow: 0 12px 40px rgba(0,0,0,.12);
}
html.hu-light .hu-sidebar__logo-icon { background: var(--hu-gold-light); }

/* ============================================================
   SIDEBAR — hover-expand when collapsed (pin/unpin)
   ============================================================ */

/* Pin button */
.hu-sidebar__pin {
  position: absolute;
  top: 1rem; right: .75rem;
  width: 28px; height: 28px;
  background: none; border: none;
  color: var(--hu-text-muted);
  border-radius: 8px; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  font-size: .9rem; z-index: 10;
  transition: all 180ms ease;
  opacity: 0;
}
.hu-sidebar:hover .hu-sidebar__pin,
.hu-sidebar__pin:focus { opacity: 1; }
.hu-sidebar__pin:hover  { background: var(--hu-gold-pale); color: var(--hu-gold); }

/* Sidebar is relative so pin button positions correctly */
.hu-sidebar { position: fixed; top: 0; left: 0; height: 100vh; z-index: var(--hu-z-sticky); overflow: hidden; transition: width var(--hu-transition-base); }

/* Hover-open: when collapsed, hovering expands to full width but stays above content */
.hu-sidebar.collapsed { width: var(--hu-sidebar-collapsed); }
.hu-sidebar.collapsed.hover-open {
  width: var(--hu-sidebar-width);
  box-shadow: 4px 0 24px rgba(0,0,0,.35);
  z-index: calc(var(--hu-z-sticky) + 10);
  overflow: visible;
}

/* Hide text labels + badges when collapsed (not hovering) */
.hu-sidebar.collapsed:not(.hover-open) .hu-sidebar__logo-text,
.hu-sidebar.collapsed:not(.hover-open) .hu-nav-item__label,
.hu-sidebar.collapsed:not(.hover-open) .hu-nav-item__badge,
.hu-sidebar.collapsed:not(.hover-open) .hu-sidebar__section-label,
.hu-sidebar.collapsed:not(.hover-open) .hu-sidebar__user-info,
.hu-sidebar.collapsed:not(.hover-open) .hu-sidebar__pin {
  opacity: 0; width: 0; pointer-events: none; overflow: hidden;
}

/* Smooth reappear on hover */
.hu-sidebar.hover-open .hu-sidebar__logo-text,
.hu-sidebar.hover-open .hu-nav-item__label,
.hu-sidebar.hover-open .hu-nav-item__badge,
.hu-sidebar.hover-open .hu-sidebar__user-info {
  opacity: 1; width: auto; pointer-events: auto;
  transition: opacity 150ms ease 80ms;
}

/* User info */
.hu-sidebar__user-info {
  flex: 1; min-width: 0; overflow: hidden;
  transition: opacity var(--hu-transition-base), width var(--hu-transition-base);
}
.hu-sidebar__user-name {
  font-size: var(--hu-text-sm); font-weight: 600;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.hu-sidebar__user-role {
  font-size: var(--hu-text-xs); color: var(--hu-text-muted);
  text-transform: capitalize; white-space: nowrap;
}

/* Main content — padding-left is set by JS (_syncMainMargin) based on sidebar state.
   CSS provides the default fallback and transition. */
.hu-main {
  padding-left: var(--hu-sidebar-width);
  transition: padding-left var(--hu-transition-base);
}

/* ============================================================
   HEADER — notification panel & user dropdown
   ============================================================ */

/* Notification wrapper */
.hu-notif-wrapper,
.hu-user-menu {
  position: relative;
}

/* Notification panel (replaces old .hu-notif-dropdown) */
.hu-notif-panel {
  position: absolute; top: calc(100% + 10px); right: 0;
  width: 360px;
  background: var(--hu-bg-surface);
  border: 1px solid var(--hu-border);
  border-radius: 16px;
  box-shadow: 0 20px 60px rgba(0,0,0,.4);
  z-index: var(--hu-z-dropdown);
  overflow: hidden;
  opacity: 0; transform: translateY(-8px) scale(.97);
  pointer-events: none;
  transition: opacity 180ms ease, transform 180ms ease;
}
.hu-notif-panel.open {
  opacity: 1; transform: translateY(0) scale(1);
  pointer-events: auto;
}

.hu-notif-panel__header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 1rem 1.25rem .75rem;
  border-bottom: 1px solid var(--hu-border);
}
.hu-notif-panel__title { font-weight: 700; font-size: .9375rem; }

.hu-notif-panel__body { max-height: 340px; overflow-y: auto; }
.hu-notif-panel__body::-webkit-scrollbar { width: 4px; }
.hu-notif-panel__body::-webkit-scrollbar-track { background: transparent; }
.hu-notif-panel__body::-webkit-scrollbar-thumb { background: var(--hu-border); border-radius: 2px; }

.hu-notif-panel__footer {
  border-top: 1px solid var(--hu-border);
  padding: .75rem 1.25rem;
  text-align: center;
}
.hu-notif-panel__view-all {
  font-size: .875rem; color: var(--hu-gold); font-weight: 600;
  cursor: pointer; display: inline-flex; align-items: center; gap: .3rem;
  transition: gap 150ms;
}
.hu-notif-panel__view-all:hover { gap: .6rem; }

/* Notification items */
.hu-notif-item {
  display: flex; align-items: flex-start; gap: .75rem;
  padding: .875rem 1.25rem; cursor: pointer;
  border-bottom: 1px solid var(--hu-border-subtle);
  transition: background 150ms ease;
}
.hu-notif-item:last-child { border-bottom: none; }
.hu-notif-item:hover { background: var(--hu-gold-pale); }
.hu-notif-item--unread { background: rgba(21,101,192,.04); }
.hu-notif-item__icon {
  width: 34px; height: 34px; border-radius: 10px; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center; font-size: .9rem;
}
.hu-notif-item__body  { flex: 1; min-width: 0; }
.hu-notif-item__title { font-size: .875rem; font-weight: 600; margin-bottom: .15rem; }
.hu-notif-item__message { font-size: .8rem; color: var(--hu-text-secondary); line-height: 1.5; margin-bottom: .25rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hu-notif-item__time { font-size: .72rem; color: var(--hu-text-muted); }
.hu-notif-item__dot { width: 8px; height: 8px; border-radius: 50%; background: var(--hu-gold); flex-shrink: 0; margin-top: .35rem; }

.hu-notif-empty {
  display: flex; flex-direction: column; align-items: center;
  justify-content: center; gap: .5rem; padding: 2.5rem;
  color: var(--hu-text-muted);
}
.hu-notif-empty i { font-size: 2rem; }
.hu-notif-empty span { font-size: .875rem; }

/* Notification bell — count badge */
.hu-header__icon-btn--notif { position: relative; }
.hu-header__icon-btn--notif[data-count]:not([data-count="0"])::after {
  content: attr(data-count);
  position: absolute; top: 2px; right: 2px;
  min-width: 16px; height: 16px; padding: 0 4px;
  background: var(--hu-gold); color: var(--hu-navy);
  border-radius: 99px; font-size: .6rem; font-weight: 800;
  display: flex; align-items: center; justify-content: center;
  border: 2px solid var(--hu-bg-surface);
  pointer-events: none;
}

/* User dropdown */
.hu-user-dropdown {
  position: absolute; top: calc(100% + 10px); right: 0;
  width: 280px;
  background: var(--hu-bg-surface);
  border: 1px solid var(--hu-border);
  border-radius: 16px;
  box-shadow: 0 20px 60px rgba(0,0,0,.4);
  z-index: var(--hu-z-dropdown);
  overflow: hidden;
  opacity: 0; transform: translateY(-8px) scale(.97);
  pointer-events: none;
  transition: opacity 180ms ease, transform 180ms ease;
}
.hu-user-dropdown.open {
  opacity: 1; transform: translateY(0) scale(1);
  pointer-events: auto;
}

.hu-user-dropdown__profile {
  display: flex; align-items: center; gap: .875rem;
  padding: 1rem 1.25rem; border-bottom: 1px solid var(--hu-border);
}
.hu-user-dropdown__name  { font-weight: 700; font-size: .9rem; margin-bottom: .2rem; }
.hu-user-dropdown__email { font-size: .75rem; color: var(--hu-text-muted); margin-bottom: .4rem; }
.hu-user-dropdown__divider { height: 1px; background: var(--hu-border); margin: .25rem 0; }

.hu-user-dropdown__item {
  display: flex; align-items: center; gap: .625rem;
  width: 100%; padding: .65rem 1.25rem;
  font-size: .875rem; font-weight: 500; color: var(--hu-text-secondary);
  background: none; border: none; cursor: pointer; text-align: left;
  transition: all 150ms ease;
}
.hu-user-dropdown__item:hover { background: var(--hu-gold-pale); color: var(--hu-text-primary); }
.hu-user-dropdown__item--danger:hover { background: rgba(239,68,68,.08); color: var(--hu-error); }
.hu-user-dropdown__item i { font-size: 1rem; width: 18px; }

/* Avatar sizes */
.hu-avatar--header {
  width: 36px; height: 36px; border-radius: 50%; cursor: pointer;
  background: var(--hu-gold-pale); color: var(--hu-gold);
  border: 2px solid var(--hu-border);
  font-weight: 700; font-size: .8rem;
  display: flex; align-items: center; justify-content: center;
  transition: border-color 180ms;
}
.hu-avatar--header:hover { border-color: var(--hu-gold); }
.hu-avatar--md {
  width: 42px; height: 42px; border-radius: 50%; flex-shrink: 0;
  background: var(--hu-gold-pale); color: var(--hu-gold);
  font-weight: 700; font-size: .9rem;
  display: flex; align-items: center; justify-content: center;
}
.hu-avatar--sm {
  width: 32px; height: 32px; border-radius: 50%; flex-shrink: 0;
  background: var(--hu-gold-pale); color: var(--hu-gold);
  font-weight: 700; font-size: .75rem;
  display: flex; align-items: center; justify-content: center;
}

/* ============================================================
   LAZY LOADING & SKELETON
   ============================================================ */
.hu-lazy { transition: opacity 400ms ease; }
.hu-lazy--loading { opacity: .4; }
.hu-lazy--loaded  { opacity: 1; }
.hu-lazy--error   { opacity: .3; filter: grayscale(1); }

@keyframes hu-shimmer {
  0%   { background-position: -400px 0; }
  100% { background-position:  400px 0; }
}
.hu-skeleton {
  background: linear-gradient(90deg, var(--hu-bg-elevated) 25%, var(--hu-bg-overlay) 50%, var(--hu-bg-elevated) 75%);
  background-size: 800px 100%;
  animation: hu-shimmer 1.4s ease-in-out infinite;
  border-radius: 8px;
}
.hu-skeleton--cover   { height: 160px; border-radius: 12px 12px 0 0; }
.hu-skeleton--img     { display: block; }
.hu-skeleton--tag     { height: 18px; width: 80px; border-radius: 99px; }
.hu-skeleton--line    { height: 14px; }
.hu-skeleton--line-full { width: 100%; }
.hu-skeleton--line-3q   { width: 75%; }
.hu-skeleton--line-half { width: 50%; }
.hu-skeleton--btn     { height: 34px; width: 100px; border-radius: 8px; }

.hu-skeleton-card {
  background: var(--hu-bg-surface);
  border: 1px solid var(--hu-border);
  border-radius: 16px; overflow: hidden;
}
.hu-skeleton-card__body { padding: 1.25rem; }
.hu-skeleton-card__footer {
  display: flex; gap: .75rem; margin-top: 1.25rem;
  padding-top: 1rem; border-top: 1px solid var(--hu-border-subtle);
}

/* Video / banner placeholder */
.hu-media-placeholder {
  position: relative; overflow: hidden;
  background: var(--hu-bg-elevated);
  display: flex; align-items: center; justify-content: center;
}
.hu-media-placeholder__icon { font-size: 3rem; color: var(--hu-text-muted); opacity: .4; }
.hu-media-placeholder::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(90deg, transparent 25%, rgba(255,255,255,.04) 50%, transparent 75%);
  background-size: 200% 100%;
  animation: hu-shimmer 1.8s ease-in-out infinite;
}
