/* ═══════════════════════════════════════════════════════════════════════════
   THARA' Data, Knowledge & Learning Platform
   Complete CSS Stylesheet v2.0
   Designed for SLC (اللجنة العليا للتشريعات)
   ═══════════════════════════════════════════════════════════════════════════ */

/* ═══ GOOGLE FONTS IMPORT ═══ */
@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;700&family=Orbitron:wght@400;700;900&family=Share+Tech+Mono:wght@400&family=Noto+Kufi+Arabic:wght@400;500;700&display=swap');

/* ═══ CSS VARIABLES (ROOT THEME) ═══ */
:root {
  /* SLC Brand Colors */
  --slc-blue: #0033A0;
  --slc-blue-deep: #001d5e;
  --slc-blue-light: #1a4fbf;
  --slc-gold: #BF9A5E;
  --slc-red: #E80032;
  --slc-silver: #B2B2B2;

  /* Background Palette */
  --bg-0: #020819;
  --bg-1: #05102e;
  --bg-2: #0a1a42;
  --bg-3: #102550;
  --bg-4: #1a3366;

  /* Border & Accent */
  --border-1: #162d5a;
  --border-2: #1f3d78;

  /* Text Colors */
  --text-1: #e8eef6;
  --text-2: #a0b4d4;
  --text-3: #6882aa;

  /* Extended Palette */
  --gold: #BF9A5E;
  --gold-light: #d4b07a;
  --gold-dark: #9a7a45;
  --cyan: #4d9fe6;
  --teal: #00b8a0;
  --green: #00c878;
  --red: #E80032;
  --amber: #f0a830;
  --blue: #0033A0;
  --purple: #7c5cbf;

  /* Fonts */
  --font: 'DM Sans', sans-serif;
  --font-head: 'Orbitron', sans-serif;
  --font-mono: 'Share Tech Mono', monospace;
  --ar: 'Noto Kufi Arabic', sans-serif;

  /* Border Radius */
  --r-sm: 6px;
  --r-md: 10px;
  --r-lg: 14px;

  /* Layout */
  --sidebar-w: 230px;

  /* Glass Effects */
  --glass-bg: rgba(5, 16, 46, 0.75);
  --glass-border: rgba(191, 154, 94, 0.10);
  --glass-border-hover: rgba(191, 154, 94, 0.25);
  --topbar-bg: rgba(3, 10, 30, 0.90);
  --modal-bg: rgba(0, 0, 0, 0.65);

  /* Easing Functions */
  --ease-spring: cubic-bezier(.16, 1, .3, 1);
  --ease-spring-alt: cubic-bezier(.23, 1, .32, 1);

  /* Glow Effects */
  --gold-glow: rgba(191, 154, 94, 0.3);
  --gold-bright-glow: rgba(191, 154, 94, 0.5);
  --gold-dim: rgba(191, 154, 94, 0.10);
  --blue-glow: rgba(0, 51, 160, 0.3);

  /* Input States */
  --input-bg: rgba(10, 26, 66, 0.5);
  --input-bg-focus: rgba(10, 26, 66, 0.7);

  /* Stat Cards */
  --stat-accent: var(--slc-blue-light);

  /* Font Aliases (used by Noor/Dock/Tour sections) */
  --f-head: var(--font-head);
  --f-body: var(--font);
  --f-label: var(--font);

  /* Color Aliases */
  --navy: var(--slc-blue);
  --border: var(--border-1);
  --card: var(--bg-2);
  --text: var(--text-1);
}

/* ═══ LIGHT THEME OVERRIDES ═══ */
[data-theme="light"] {
  /* Background Palette - Light */
  --bg-0: #ffffff;
  --bg-1: #f8f9fc;
  --bg-2: #f0f3fa;
  --bg-3: #e8ecf5;
  --bg-4: #e0e7f0;

  /* Border & Accent - Light */
  --border-1: #d0d9eb;
  --border-2: #c0c9df;

  /* Text Colors - Light */
  --text-1: #1a2540;
  --text-2: #4a5a7a;
  --text-3: #7a8aaa;

  /* Glass Effects - Light */
  --glass-bg: rgba(255, 255, 255, 0.85);
  --glass-border: rgba(191, 154, 94, 0.15);
  --glass-border-hover: rgba(191, 154, 94, 0.35);
  --topbar-bg: rgba(250, 251, 255, 0.95);
  --modal-bg: rgba(0, 0, 0, 0.45);

  /* Glow Effects - Light (Reduced) */
  --gold-glow: rgba(191, 154, 94, 0.15);
  --gold-bright-glow: rgba(191, 154, 94, 0.25);
  --gold-dim: rgba(191, 154, 94, 0.08);
  --blue-glow: rgba(0, 51, 160, 0.15);

  /* Input States - Light */
  --input-bg: rgba(245, 247, 252, 0.8);
  --input-bg-focus: rgba(240, 243, 250, 1);
}

/* ═══ RESET & BASE ═══ */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

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

body {
  font-family: var(--font);
  background: var(--bg-0);
  color: var(--text-1);
  line-height: 1.6;
  position: relative;
  overflow: hidden;
}

/* ═══ SCROLLBAR ═══ */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

::-webkit-scrollbar-track {
  background: transparent;
}

::-webkit-scrollbar-thumb {
  background: var(--gold);
  border-radius: 4px;
  opacity: 0.6;
}

::-webkit-scrollbar-thumb:hover {
  opacity: 0.9;
}

/* Firefox Scrollbar */
* {
  scrollbar-color: var(--gold) transparent;
  scrollbar-width: thin;
}

/* ═══ RTL SUPPORT ═══ */
[dir="rtl"] {
  direction: rtl;
  text-align: right;
}

[dir="rtl"] .en {
  display: none;
}

[dir="ltr"] .ar {
  display: none;
}

/* ═══ ACCESSIBILITY ═══ */
.a11y-skip-links {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 10000;
}

.a11y-skip-link {
  position: absolute;
  left: -999999px;
  top: -999999px;
}

.a11y-skip-link:focus {
  position: fixed;
  left: 10px;
  top: 10px;
  z-index: 10001;
  padding: 10px 20px;
  background: var(--gold);
  color: var(--bg-0);
  border-radius: var(--r-md);
  text-decoration: none;
  font-weight: 600;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border-width: 0;
}

/* ═══ SVG ICON SYSTEM ═══ */
.nav-icon,
.btn-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}

.nav-icon svg,
.btn-icon svg {
  width: 100%;
  height: 100%;
  stroke: currentColor;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* ═══ CRT SCANLINES (Dark Theme Only) ═══ */
.scanline-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
  background: repeating-linear-gradient(
    0deg,
    rgba(0, 0, 0, 0.15),
    rgba(0, 0, 0, 0.15) 1px,
    transparent 1px,
    transparent 2px
  );
  opacity: 0;
  transition: opacity 0.3s ease;
}

[data-theme="dark"] .scanline-overlay {
  opacity: 0.4;
}

/* ═══ BACKGROUND ATMOSPHERE ═══ */
.bg-grid {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image:
    linear-gradient(0deg, rgba(191, 154, 94, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(191, 154, 94, 0.03) 1px, transparent 1px);
  background-size: 40px 40px;
  background-position: 0 0, 0 0;
  pointer-events: none;
  z-index: 0;
}

/* Floating Particles (6 total) */
.particles {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 2;
}

.particle {
  position: absolute;
  width: 8px;
  height: 8px;
  background: radial-gradient(circle, var(--gold) 0%, transparent 70%);
  border-radius: 50%;
  opacity: 0.4;
  filter: drop-shadow(0 0 4px var(--gold));
  animation: float 12s ease-in-out infinite;
}

.particle:nth-child(1) { top: 15%; left: 10%; animation-delay: 0s; }
.particle:nth-child(2) { top: 25%; left: 80%; animation-delay: 2s; }
.particle:nth-child(3) { top: 45%; left: 20%; animation-delay: 4s; }
.particle:nth-child(4) { top: 60%; left: 75%; animation-delay: 1s; }
.particle:nth-child(5) { top: 70%; left: 30%; animation-delay: 3s; }
.particle:nth-child(6) { top: 85%; left: 85%; animation-delay: 5s; }

/* SLC Chevron Shapes */
.slc-chevron {
  position: fixed;
  pointer-events: none;
  z-index: 1;
  opacity: 0.08;
}

.slc-chevron-1 {
  top: 5%;
  right: 10%;
  width: 120px;
  height: 120px;
  background: linear-gradient(135deg, var(--gold) 0%, var(--slc-blue) 100%);
  clip-path: polygon(0 0, 60% 0, 100% 50%, 60% 100%, 0 100%, 40% 50%);
}

.slc-chevron-2 {
  bottom: 15%;
  left: 5%;
  width: 100px;
  height: 100px;
  background: linear-gradient(45deg, var(--slc-blue) 0%, var(--gold) 100%);
  clip-path: polygon(0 0, 60% 0, 100% 50%, 60% 100%, 0 100%, 40% 50%);
}

/* Islamic Geometric Overlay */
.slc-geometric-overlay {
  position: fixed;
  top: 0;
  right: 0;
  width: 400px;
  height: 400px;
  pointer-events: none;
  z-index: 1;
  opacity: 0.15;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 200'%3E%3Cg stroke='%23BF9A5E' stroke-width='0.5' fill='none' opacity='0.3'%3E%3Cpolygon points='100,20 120,50 140,20 160,50 140,80 160,110 140,140 120,110 100,140 80,110 100,80 80,50 100,20 80,50 60,20'/%3E%3Ccircle cx='100' cy='100' r='40'/%3E%3Ccircle cx='100' cy='100' r='60'/%3E%3C/g%3E%3C/svg%3E");
  background-size: 200px 200px;
}

/* Aurora Ambient Layers */
.aurora-layer {
  position: fixed;
  pointer-events: none;
  z-index: 1;
  opacity: 0.06;
  filter: blur(40px);
}

.aurora-l1 {
  top: 0;
  left: 0;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, var(--slc-blue) 0%, transparent 70%);
  animation: auroraShift 15s ease-in-out infinite;
}

.aurora-l2 {
  top: 50%;
  right: 0;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, var(--gold) 0%, transparent 70%);
  animation: auroraShift 20s ease-in-out infinite reverse;
}

.aurora-l3 {
  bottom: 0;
  left: 50%;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, var(--cyan) 0%, transparent 70%);
  animation: auroraShift 25s ease-in-out infinite;
}

/* ═══ LOGIN SCREEN — Rased-matching design ═══ */
.login-screen {
  position: fixed; inset: 0; z-index: 100;
  display: flex; align-items: center; justify-content: center;
  background: #020a1a;
  background-image:
    radial-gradient(ellipse at 20% 30%, rgba(0,51,160,0.20) 0%, transparent 50%),
    radial-gradient(ellipse at 80% 60%, rgba(191,154,94,0.10) 0%, transparent 45%),
    radial-gradient(ellipse at 50% 90%, rgba(0,51,160,0.12) 0%, transparent 40%);
  overflow: hidden;
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.login-screen.unlocked { opacity: 0; transform: scale(1.08); pointer-events: none; }
.login-screen.hidden { display: none; }

/* Dubai Wallpaper Photo Background */
.login-bg-photo {
  position: absolute; inset: 0; z-index: 0;
  background-size: cover;
  background-position: center 60%;
  background-repeat: no-repeat;
  animation: bgPhotoFadeIn 1.8s ease-out;
  filter: saturate(0.7) brightness(0.5);
}
@keyframes bgPhotoFadeIn {
  from { opacity: 0; transform: scale(1.06); }
  to   { opacity: 1; transform: scale(1); }
}

/* Overlay gradient on top of photo */
.login-bg-overlay {
  position: absolute; inset: 0; z-index: 1;
  background:
    linear-gradient(180deg, rgba(2,10,26,0.75) 0%, rgba(2,10,26,0.40) 40%, rgba(2,10,26,0.72) 100%),
    radial-gradient(ellipse at 50% 50%, rgba(191,154,94,0.06) 0%, transparent 70%);
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
}

/* Dubai Skyline SVG */
.login-bg-skyline {
  position: absolute; bottom: 0; left: 0; right: 0; height: 55%;
  pointer-events: none; z-index: 2;
}
.login-bg-skyline svg {
  width: 100%; height: 100%;
  fill: var(--gold); stroke: var(--gold);
  opacity: 0.4;
  animation: skylineFadeIn 2s ease-out;
}
@keyframes skylineFadeIn {
  from { opacity: 0; transform: translateY(30px); }
  to   { opacity: 0.4; transform: translateY(0); }
}

/* Floating Particles */
.login-particles { position: absolute; inset: 0; pointer-events: none; z-index: 3; }
.login-particle {
  position: absolute; width: 3px; height: 3px;
  background: var(--gold); border-radius: 50%;
  opacity: 0; animation: particleFloat 8s infinite ease-in-out;
}
.lp-1 { left:10%; top:25%; animation-delay:0s;    animation-duration:9s; }
.lp-2 { left:25%; top:60%; animation-delay:1.2s;  animation-duration:7s; }
.lp-3 { left:45%; top:15%; animation-delay:2.5s;  animation-duration:10s; }
.lp-4 { left:65%; top:45%; animation-delay:0.8s;  animation-duration:8s; }
.lp-5 { left:80%; top:20%; animation-delay:3s;    animation-duration:9s; }
.lp-6 { left:15%; top:75%; animation-delay:1.8s;  animation-duration:11s; }
.lp-7 { left:55%; top:70%; animation-delay:4s;    animation-duration:7.5s; }
.lp-8 { left:90%; top:55%; animation-delay:2.2s;  animation-duration:8.5s; }
@keyframes particleFloat {
  0%   { opacity: 0; transform: translateY(20px) scale(0.5); }
  15%  { opacity: 0.8; }
  50%  { transform: translateY(-40px) scale(1); opacity: 0.5; }
  85%  { opacity: 0.7; }
  100% { opacity: 0; transform: translateY(-80px) scale(0.3); }
}

/* Geometric decorative lines */
.login-geo-line { position: absolute; pointer-events: none; z-index: 3; }
.login-geo-line-1 {
  top: 18%; left: -5%; width: 35%; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(191,154,94,0.2), transparent);
  transform: rotate(-8deg);
  animation: geoLinePulse 4s infinite ease-in-out;
}
.login-geo-line-2 {
  bottom: 22%; right: -5%; width: 30%; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(0,51,160,0.2), transparent);
  transform: rotate(6deg);
  animation: geoLinePulse 4s infinite ease-in-out 2s;
}
@keyframes geoLinePulse {
  0%,100% { opacity: 0.3; }
  50%     { opacity: 0.8; }
}

/* Login Card — Glassmorphism */
.login-card {
  position: relative; z-index: 10;
  width: 440px; max-width: 94vw; max-height: 95vh;
  overflow-y: auto; overflow-x: hidden;
  background: rgba(5, 14, 38, 0.88);
  border: 1px solid rgba(191, 154, 94, 0.15);
  border-radius: 20px;
  padding: 44px 40px 36px;
  backdrop-filter: blur(40px) saturate(1.3);
  -webkit-backdrop-filter: blur(40px) saturate(1.3);
  box-shadow:
    0 0 0 1px rgba(0,51,160,0.08),
    0 24px 80px rgba(0,0,0,0.55),
    0 0 60px rgba(191,154,94,0.05),
    inset 0 1px 0 rgba(255,255,255,0.04);
  animation: loginCardEnter 0.7s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.login-card::before {
  content: ''; position: absolute;
  top: 0; left: 0; right: 0; height: 2px;
  background: linear-gradient(90deg, transparent, var(--slc-blue-light, #1a4fbf), var(--gold), transparent);
  border-radius: 20px 20px 0 0;
}
@keyframes loginCardEnter {
  from { opacity: 0; transform: translateY(40px) scale(0.95); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}

/* Brand */
.login-brand {
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  gap: 4px; margin-bottom: 8px;
}
.login-brand-primary {
  font-family: var(--font-head);
  font-size: 2.2rem; font-weight: 800;
  color: var(--text-1, #e8eef6);
  letter-spacing: 8px; text-transform: uppercase;
  text-shadow: 0 0 20px rgba(191,154,94,0.2);
  text-align: center;
}
.login-brand-arabic {
  font-family: var(--ar);
  font-size: 1.3rem; font-weight: 700;
  color: var(--gold); letter-spacing: 3px;
  text-align: center;
}
.login-brand-tagline {
  text-align: center;
  font-size: 0.7rem; font-weight: 600;
  color: var(--cyan, #4d9fe6);
  letter-spacing: 2.5px; text-transform: uppercase;
  line-height: 1.8; margin-bottom: 4px;
}
.login-brand-powered {
  text-align: center;
  font-size: 0.6rem; color: var(--text-3, #6882aa);
  letter-spacing: 1.5px; text-transform: uppercase; line-height: 1.6;
}
.login-brand-powered span { color: var(--gold); font-weight: 600; }

/* Divider */
.login-divider {
  width: 100%; height: 1px; margin: 20px 0;
  background: linear-gradient(90deg, transparent, rgba(77,159,230,0.25), transparent);
}

/* Error */
.login-error {
  font-size: 0.8rem; color: #E80032;
  min-height: 0; text-align: center; padding: 0;
  transition: all 0.25s;
}
.login-error:not(:empty) {
  padding: 11px 16px;
  background: rgba(232,0,50,0.1);
  border: 1px solid rgba(232,0,50,0.2);
  border-radius: 10px;
  animation: loginShake 0.35s ease-out;
}
@keyframes loginShake {
  0%,100% { transform: translateX(0); }
  20% { transform: translateX(-6px); }
  40% { transform: translateX(6px); }
  60% { transform: translateX(-4px); }
  80% { transform: translateX(4px); }
}

/* Form */
.login-form { display: flex; flex-direction: column; gap: 18px; }
.login-field { display: flex; flex-direction: column; gap: 7px; }
.login-field label {
  display: block; font-size: 0.7rem; font-weight: 600;
  color: var(--text-2, #a0b4d4);
  text-transform: uppercase; letter-spacing: 1px;
}
.login-label-ar {
  font-family: var(--ar); font-size: 0.68rem;
  color: var(--text-3, #6882aa); margin-left: 8px;
  text-transform: none;
}

/* Input with icon */
.login-input-wrap { position: relative; display: flex; align-items: center; }
.login-input-icon {
  position: absolute; left: 14px; top: 50%;
  transform: translateY(-50%);
  color: #8494a7;
  pointer-events: none; transition: color 0.25s;
}
.login-input-wrap:focus-within .login-input-icon { color: #0033A0; }

.login-field input {
  width: 100% !important;
  padding: 15px 16px 15px 44px !important;
  border: 1.5px solid rgba(200,210,225,0.5) !important;
  border-radius: 12px !important;
  background: rgba(235,240,250,0.95) !important;
  color: #1a2540 !important;
  font-size: 0.92rem !important;
  font-weight: 500 !important;
  font-family: var(--font, 'DM Sans', sans-serif) !important;
  transition: all 0.25s;
  box-sizing: border-box;
  outline: none;
  text-align: left !important;
  letter-spacing: normal !important;
}
.login-field input:focus {
  border-color: #4d9fe6 !important;
  background: #f0f4ff !important;
  box-shadow: 0 0 0 3px rgba(77,159,230,0.15) !important;
}
.login-field input::placeholder { color: #9aa8bc; }

/* Sign In button — blue gradient (matches Rased) */
.login-btn {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  width: 100%; padding: 16px 0; border: none; border-radius: 12px;
  background: linear-gradient(135deg, #1a6dd4, #2b88f0);
  color: #fff; font-size: 0.95rem; font-weight: 700;
  font-family: var(--font, 'DM Sans', sans-serif);
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
  box-shadow: 0 4px 24px rgba(30,100,220,0.35);
  margin-top: 6px; letter-spacing: 2px; text-transform: uppercase;
  position: relative; overflow: hidden;
}
.login-btn::before {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(135deg, transparent 30%, rgba(255,255,255,0.15) 50%, transparent 70%);
  transform: translateX(-100%); transition: transform 0.5s;
}
.login-btn:hover::before { transform: translateX(100%); }
.login-btn:hover { transform: translateY(-1px); box-shadow: 0 4px 24px rgba(0,51,160,0.4); }
.login-btn:active { transform: translateY(0); box-shadow: none; }
.login-btn:disabled { opacity: 0.5; cursor: not-allowed; transform: none; box-shadow: none; }

/* Footer */
.login-footer {
  text-align: center; margin-top: 24px; padding-top: 20px;
  border-top: 1px solid rgba(100,130,170,0.15);
}
.login-footer-info {
  font-size: 0.68rem; color: #6882aa;
  line-height: 1.7; letter-spacing: 0.3px; margin-bottom: 4px;
}
.login-footer-org {
  font-size: 0.68rem; color: #6882aa;
  line-height: 1.7; letter-spacing: 0.3px; margin-bottom: 14px;
}
.login-footer-secure {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 6px 16px; border-radius: 20px;
  border: 1px solid rgba(77,159,230,0.3);
  background: rgba(77,159,230,0.06);
  margin-bottom: 18px;
}
.login-footer-secure svg { color: #4d9fe6; flex-shrink: 0; }
.login-footer-secure span {
  font-size: 0.6rem; font-weight: 700; color: #4d9fe6;
  letter-spacing: 1.5px; text-transform: uppercase;
}
.login-footer-brand {
  display: flex; flex-direction: column; align-items: center; gap: 6px;
}
.login-footer-cli {
  height: 50px; max-width: 240px; object-fit: contain;
  opacity: 0.5; filter: brightness(2);
  transition: opacity 0.3s;
}
.login-footer-cli:hover { opacity: 0.8; }
.login-footer-cli-text {
  font-size: 0.58rem; font-weight: 700; color: #4d9fe6;
  letter-spacing: 1px; text-transform: uppercase;
  line-height: 1.5; text-align: center;
}

/* Responsive */
@media (max-width: 480px) {
  .login-card { padding: 32px 24px 28px; }
}

/* Light theme — login stays dark */
[data-theme="light"] .login-screen { background: #020a1a; }
[data-theme="light"] .login-footer-cli { filter: brightness(2); }

/* ═══ APP SHELL LAYOUT ═══ */
.app {
  display: flex;
  height: 100vh;
  background: var(--bg-0);
  position: relative;
  z-index: 1;
}

/* ═══ SIDEBAR ═══ */
.sidebar {
  height: 100vh;
  width: var(--sidebar-w);
  background: linear-gradient(180deg, var(--bg-1) 0%, var(--bg-2) 100%);
  border-right: 1px solid var(--border-1);
  display: flex;
  flex-direction: column;
  z-index: 50;
  overflow: hidden;
  overflow-y: auto;
  flex-shrink: 0;
  transition: width 0.3s var(--ease-spring), transform 0.3s var(--ease-spring);
}

[dir="rtl"] .sidebar {
  border-right: none;
  border-left: 1px solid var(--border-1);
}

.sidebar.collapsed {
  width: 0;
  overflow: hidden;
}

/* Sidebar Brand */
.sidebar-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 20px 16px;
  background: linear-gradient(135deg, rgba(0, 51, 160, 0.1) 0%, rgba(191, 154, 94, 0.05) 100%);
  border-bottom: 2px solid var(--border-1);
  border-left: 4px solid var(--gold);
  position: relative;
  overflow: hidden;
}

.sidebar-brand::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  width: 4px;
  height: 100%;
  background: linear-gradient(180deg, var(--slc-blue) 0%, var(--gold) 100%);
}

.brand-mark {
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  border-radius: var(--r-md);
  overflow: hidden;
  background: rgba(191, 154, 94, 0.05);
  border: 1px solid var(--gold-dim);
  display: flex;
  align-items: center;
  justify-content: center;
}

.brand-mark-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  opacity: 0.9;
}

.brand-text {
  flex: 1;
  min-width: 0;
}

.brand-text-primary {
  font-family: var(--font-head);
  font-size: 16px;
  font-weight: 700;
  color: var(--text-1);
  letter-spacing: 1px;
  line-height: 1.2;
}

.brand-text-sub {
  font-family: var(--ar);
  font-size: 14px;
  font-weight: 600;
  color: var(--gold);
  line-height: 1.3;
  direction: rtl;
  margin-top: 1px;
}

.sidebar-collapse-btn {
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  background: rgba(191, 154, 94, 0.1);
  border: 1px solid var(--glass-border);
  border-radius: var(--r-sm);
  color: var(--gold);
  cursor: pointer;
  transition: all 0.3s var(--ease-spring);
  display: flex;
  align-items: center;
  justify-content: center;
}

.sidebar-collapse-btn:hover {
  background: var(--gold-dim);
  border-color: var(--gold);
}

.sidebar-collapse-btn svg {
  width: 16px;
  height: 16px;
}

/* Sidebar Subtitle */
.sidebar-sub {
  padding: 6px 16px;
  font-size: 10px;
  color: var(--text-3);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  border-bottom: 1px solid var(--border-1);
}

/* Sidebar Navigation */
.sidebar-nav {
  flex: 1;
  overflow-y: auto;
  padding: 12px 8px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.nav-section {
  padding: 12px 12px 6px 12px;
  font-size: 10px;
  font-weight: 700;
  color: var(--text-3);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 8px;
}

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

.nav-btn {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  background: transparent;
  border: none;
  color: var(--text-2);
  font-family: var(--font);
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  border-radius: var(--r-sm);
  transition: all 0.3s var(--ease-spring);
  position: relative;
  overflow: hidden;
}

.nav-btn::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  height: 100%;
  width: 3px;
  background: transparent;
  transition: background 0.3s var(--ease-spring);
}

.nav-btn:hover {
  background: rgba(191, 154, 94, 0.08);
  color: var(--text-1);
}

.nav-btn.active {
  background: rgba(191, 154, 94, 0.12);
  color: var(--gold);
  font-weight: 600;
}

.nav-btn.active::before {
  background: var(--gold);
}

.nav-icon {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  color: currentColor;
}

.nav-label {
  flex: 1;
  text-align: left;
}

/* Sidebar Bottom */
.sidebar-bottom {
  flex-shrink: 0;
  padding: 16px 12px;
  border-top: 1px solid var(--border-1);
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.sidebar-toggle-row {
  display: flex;
  gap: 8px;
}

.sidebar-toggle-btn {
  flex: 1;
  padding: 8px 10px;
  background: rgba(191, 154, 94, 0.1);
  border: 1px solid var(--glass-border);
  border-radius: var(--r-sm);
  color: var(--text-2);
  font-family: var(--font);
  font-size: 11px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s var(--ease-spring);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  text-transform: uppercase;
  letter-spacing: 0.3px;
}

.sidebar-toggle-btn:hover {
  background: var(--gold-dim);
  border-color: var(--gold);
  color: var(--gold);
}

.sidebar-toggle-btn span {
  width: 14px;
  height: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

/* File System Indicator */
.fs-indicator {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  background: rgba(10, 26, 66, 0.3);
  border: 1px solid var(--border-1);
  border-radius: var(--r-sm);
  cursor: pointer;
  transition: all 0.3s var(--ease-spring);
}

.fs-indicator:hover {
  border-color: var(--gold);
  background: rgba(191, 154, 94, 0.05);
}

.fs-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
  transition: all 0.3s ease;
}

.fs-dot.connected {
  background: var(--green);
  box-shadow: 0 0 8px var(--green);
}

.fs-dot.disconnected {
  background: var(--text-3);
  box-shadow: none;
}

.fs-label {
  font-size: 11px;
  color: var(--text-3);
  font-weight: 500;
  flex: 1;
}

.fs-indicator:hover .fs-label {
  color: var(--text-2);
}

/* Sidebar Logo Divider */
.sidebar-logo-divider {
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
  opacity: 0.4;
}

.sidebar-slc-logo {
  height: 28px;
  width: auto;
  opacity: 0.75;
  transition: opacity 0.3s ease, filter 0.3s;
  filter: brightness(0) invert(1);
  margin: 8px auto 4px;
  display: block;
}

.sidebar-slc-logo:hover {
  opacity: 1;
}

[data-theme="light"] .sidebar-slc-logo {
  filter: none;
  opacity: 0.7;
}

.sidebar-logos {
  display: flex;
  flex-direction: column;
  gap: 6px;
  align-items: center;
}

.sidebar-logo-cli {
  height: 22px;
  width: auto;
  opacity: 0.75;
  transition: opacity 0.3s ease, filter 0.3s;
  filter: brightness(0) invert(1);
}

.sidebar-logo-cli:hover {
  opacity: 1;
}

[data-theme="light"] .sidebar-logo-cli {
  filter: none;
  opacity: 0.7;
}

.powered-by-cli {
  font-size: 9px;
  color: var(--text-3);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.3px;
}

.sidebar-version {
  font-size: 9px;
  color: var(--text-3);
  text-align: center;
  margin-top: 4px;
  font-weight: 500;
}

/* ═══ MAIN CONTENT ═══ */
.main {
  flex: 1;
  height: 100vh;
  overflow-y: auto;
  overflow-x: hidden;
  min-width: 0;
  background: var(--bg-0);
  position: relative;
}

/* ═══ NAVBAR ═══ */
.navbar {
  position: sticky;
  top: 0;
  height: 60px;
  background: var(--topbar-bg);
  border-bottom: 1px solid var(--border-1);
  display: flex;
  align-items: center;
  padding: 0 24px;
  gap: 16px;
  z-index: 40;
  backdrop-filter: blur(12px);
}

.navbar::before {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
  opacity: 0.5;
}

.menu-toggle {
  display: none;
  width: 40px;
  height: 40px;
  background: transparent;
  border: none;
  color: var(--text-1);
  cursor: pointer;
  border-radius: var(--r-md);
  transition: all 0.3s var(--ease-spring);
  align-items: center;
  justify-content: center;
}

.menu-toggle:hover {
  background: rgba(191, 154, 94, 0.1);
  color: var(--gold);
}

.menu-toggle svg {
  width: 20px;
  height: 20px;
}

.navbar-title {
  font-family: var(--font-head);
  font-size: 18px;
  font-weight: 700;
  color: var(--text-1);
  letter-spacing: 0.5px;
  flex: 1;
}

.navbar-sub {
  font-size: 12px;
  color: var(--text-3);
  font-weight: 500;
}

.navbar-right {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-left: auto;
}

.navbar-btn {
  width: 40px;
  height: 40px;
  background: rgba(191, 154, 94, 0.08);
  border: 1px solid var(--glass-border);
  border-radius: var(--r-md);
  color: var(--text-1);
  cursor: pointer;
  transition: all 0.3s var(--ease-spring);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.navbar-btn:hover {
  background: rgba(191, 154, 94, 0.15);
  border-color: var(--glass-border-hover);
  color: var(--gold);
}

.navbar-btn svg {
  width: 18px;
  height: 18px;
  stroke: currentColor;
  fill: none;
}

/* Notification Wrapper & Bell */
.notif-wrapper {
  position: relative;
}

.notif-bell {
  position: relative;
}

.notif-badge {
  position: absolute;
  top: -8px;
  right: -8px;
  width: 18px;
  height: 18px;
  background: var(--red);
  color: white;
  border-radius: 50%;
  font-size: 10px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 8px rgba(232, 0, 50, 0.4);
}

.notif-dropdown {
  position: absolute;
  top: 100%;
  right: 0;
  width: 320px;
  max-height: 400px;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: var(--r-lg);
  backdrop-filter: blur(12px);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
  margin-top: 8px;
  overflow-y: auto;
  z-index: 100;
}

/* ═══ PAGES ═══ */
.page-wrap {
  position: relative;
  padding: 24px;
  min-height: calc(100vh - 60px);
  max-width: 100%;
  overflow-x: hidden;
}

.page {
  display: none;
  animation: fadeIn 0.4s var(--ease-spring);
  max-width: 100%;
  overflow-x: hidden;
  word-wrap: break-word;
  overflow-wrap: break-word;
}

.page.show {
  display: block;
  animation: fadeUp 0.4s var(--ease-spring);
}

/* ═══ STAT GRID & CARDS ═══ */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
  margin-bottom: 24px;
}

.stat-card {
  position: relative;
  padding: 20px;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: var(--r-lg);
  backdrop-filter: blur(12px);
  overflow: hidden;
  transition: all 0.3s var(--ease-spring);
  animation: fadeUp 0.5s var(--ease-spring);
  cursor: default;
}

.stat-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--stat-accent);
}

.stat-card[data-accent="cyan"]::before {
  background: var(--cyan);
}

.stat-card[data-accent="gold"]::before {
  background: var(--gold);
}

.stat-card[data-accent="green"]::before {
  background: var(--green);
}

.stat-card[data-accent="red"]::before {
  background: var(--red);
}

.stat-card[data-accent="purple"]::before {
  background: var(--purple);
}

.stat-card[data-accent="teal"]::before {
  background: var(--teal);
}

.stat-card[data-accent="amber"]::before {
  background: var(--amber);
}

.stat-card:hover {
  border-color: var(--glass-border-hover);
  box-shadow: 0 8px 24px var(--gold-glow);
  transform: translateY(-2px);
}

.stat-card.active {
  animation: goldPulse 1.5s var(--ease-spring) infinite;
}

.stat-icon {
  width: 40px;
  height: 40px;
  background: rgba(191, 154, 94, 0.1);
  border-radius: var(--r-md);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gold);
  margin-bottom: 12px;
  flex-shrink: 0;
}

.stat-icon svg {
  width: 24px;
  height: 24px;
}

.stat-val {
  font-family: var(--font-head);
  font-size: 28px;
  font-weight: 700;
  color: var(--text-1);
  line-height: 1;
  margin-bottom: 4px;
}

.stat-label {
  font-size: 12px;
  color: var(--text-2);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.3px;
  margin-bottom: 8px;
}

.stat-sub {
  font-size: 11px;
  color: var(--text-3);
}

/* stat-value is used in ui.js (alias for stat-val) */
.stat-value {
  font-family: var(--font-head);
  font-size: 28px;
  font-weight: 700;
  color: var(--text-1);
  line-height: 1;
  margin-bottom: 4px;
}

/* ═══ DASHBOARD GRID ═══ */
.dash-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 20px;
  margin-top: 24px;
}

.dash-panel {
  position: relative;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: var(--r-lg);
  backdrop-filter: blur(12px);
  overflow: hidden;
  animation: fadeUp 0.5s var(--ease-spring);
  transition: all 0.3s var(--ease-spring);
}

.dash-panel:hover {
  border-color: var(--glass-border-hover);
  box-shadow: 0 8px 24px var(--gold-glow);
}

.panel-header {
  padding: 16px 20px;
  border-bottom: 1px solid var(--border-1);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.panel-title {
  font-family: var(--font-head);
  font-size: 16px;
  font-weight: 700;
  color: var(--text-1);
  letter-spacing: 0.3px;
}

.panel-body {
  padding: 20px;
}

/* ═══ BUTTONS ═══ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 10px 16px;
  background: transparent;
  border: 1px solid var(--glass-border);
  border-radius: var(--r-md);
  color: var(--text-1);
  font-family: var(--font);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s var(--ease-spring);
  text-decoration: none;
  white-space: nowrap;
}

.btn:hover {
  border-color: var(--glass-border-hover);
  background: rgba(191, 154, 94, 0.08);
}

.btn:active {
  transform: scale(0.98);
}

.btn-primary {
  background: linear-gradient(135deg, var(--slc-blue) 0%, var(--slc-blue-light) 100%);
  border: 1px solid var(--slc-blue-light);
  color: white;
  filter: drop-shadow(0 4px 8px var(--blue-glow));
}

.btn-primary:hover {
  transform: translateY(-2px);
  filter: drop-shadow(0 6px 12px var(--blue-glow));
  background: linear-gradient(135deg, var(--slc-blue-light) 0%, var(--cyan) 100%);
}

.btn-gold {
  background: linear-gradient(135deg, var(--gold) 0%, var(--gold-light) 100%);
  border: 1px solid var(--gold-light);
  color: var(--bg-0);
  filter: drop-shadow(0 4px 8px var(--gold-glow));
  font-weight: 700;
}

.btn-gold:hover {
  transform: translateY(-2px);
  filter: drop-shadow(0 6px 12px var(--gold-bright-glow));
}

.btn-sm {
  padding: 6px 12px;
  font-size: 12px;
}

.btn-outline {
  background: transparent;
  border: 1.5px solid var(--glass-border);
  color: var(--text-1);
}

.btn-outline:hover {
  border-color: var(--gold);
  color: var(--gold);
  background: rgba(191, 154, 94, 0.05);
}

.btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  pointer-events: none;
}

/* ═══ FORMS ═══ */
.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 16px;
}

.form-label {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-1);
  text-transform: uppercase;
  letter-spacing: 0.3px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

input[type="text"],
input[type="email"],
input[type="password"],
input[type="number"],
input[type="date"],
select,
textarea {
  padding: 10px 12px;
  background: var(--input-bg);
  border: 1px solid var(--border-1);
  border-radius: var(--r-md);
  color: var(--text-1);
  font-family: var(--font);
  font-size: 13px;
  transition: all 0.3s var(--ease-spring);
}

input[type="text"]::placeholder,
input[type="email"]::placeholder,
input[type="password"]::placeholder,
input[type="number"]::placeholder,
textarea::placeholder {
  color: var(--text-3);
}

input[type="text"]:focus,
input[type="email"]:focus,
input[type="password"]:focus,
input[type="number"]:focus,
input[type="date"]:focus,
select:focus,
textarea:focus {
  outline: none;
  background: var(--input-bg-focus);
  border-color: var(--gold);
  box-shadow: 0 0 12px var(--gold-glow);
}

select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%23a0b4d4' d='M1 1l5 5 5-5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 10px center;
  padding-right: 32px;
  cursor: pointer;
}

select.form-control {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  padding-right: 24px;
}

textarea {
  resize: vertical;
  min-height: 80px;
  font-family: var(--font-mono);
}

input[type="checkbox"],
input[type="radio"] {
  width: 18px;
  height: 18px;
  cursor: pointer;
  accent-color: var(--gold);
}

/* ═══ CARDS ═══ */
.card {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: var(--r-lg);
  backdrop-filter: blur(12px);
  overflow: hidden;
  transition: all 0.3s var(--ease-spring);
}

.card:hover {
  border-color: var(--glass-border-hover);
  box-shadow: 0 8px 24px var(--gold-glow);
}

.card-header {
  padding: 16px 20px;
  border-bottom: 1px solid var(--border-1);
  background: linear-gradient(180deg, rgba(191, 154, 94, 0.05) 0%, transparent 100%);
}

.card-header h3 {
  font-size: 15px;
  font-weight: 700;
  color: var(--text-1);
  margin: 0;
}

.card-body {
  padding: 20px;
}

/* ═══ TABLES ═══ */
.table-wrap {
  overflow-x: auto;
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}

th {
  padding: 12px 16px;
  background: rgba(191, 154, 94, 0.08);
  border-bottom: 2px solid var(--border-1);
  font-weight: 700;
  color: var(--text-1);
  text-align: left;
  text-transform: uppercase;
  letter-spacing: 0.3px;
  font-size: 11px;
}

td {
  padding: 12px 16px;
  border-bottom: 1px solid var(--border-1);
  color: var(--text-2);
}

tbody tr:hover {
  background: rgba(191, 154, 94, 0.04);
}

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

/* ═══ TABS ═══ */
.tab-bar {
  display: flex;
  gap: 2px;
  border-bottom: 1px solid var(--border-1);
  margin-bottom: 20px;
}

.tab-btn {
  padding: 12px 16px;
  background: transparent;
  border: none;
  color: var(--text-2);
  font-family: var(--font);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s var(--ease-spring);
  border-bottom: 2px solid transparent;
  position: relative;
}

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

.tab-btn.active {
  color: var(--gold);
  border-bottom-color: var(--gold);
}

/* ═══ BADGES ═══ */
.badge {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  background: rgba(191, 154, 94, 0.2);
  color: var(--gold);
  border-radius: var(--r-md);
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.2px;
}

.badge[data-type="success"],
.badge[data-type="green"] {
  background: rgba(0, 200, 120, 0.2);
  color: var(--green);
}

.badge[data-type="error"],
.badge[data-type="red"] {
  background: rgba(232, 0, 50, 0.2);
  color: var(--red);
}

.badge[data-type="info"],
.badge[data-type="blue"] {
  background: rgba(0, 51, 160, 0.2);
  color: var(--cyan);
}

.badge[data-type="warning"],
.badge[data-type="amber"] {
  background: rgba(240, 168, 48, 0.2);
  color: var(--amber);
}

/* ═══ MODAL ═══ */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--modal-bg);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 200;
  backdrop-filter: blur(4px);
}

.modal-overlay.show {
  display: flex;
  animation: fadeIn 0.3s var(--ease-spring);
}

.modal-box {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 90%;
  max-width: 600px;
  max-height: 85vh;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: var(--r-lg);
  backdrop-filter: blur(12px);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
  display: none;
  flex-direction: column;
  z-index: 201;
  overflow: hidden;
}

.modal-box.show {
  display: flex;
  animation: fadeUp 0.4s var(--ease-spring);
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px;
  border-bottom: 1px solid var(--border-1);
  background: linear-gradient(180deg, rgba(191, 154, 94, 0.05) 0%, transparent 100%);
}

.modal-header h2 {
  font-family: var(--font-head);
  font-size: 18px;
  font-weight: 700;
  color: var(--text-1);
  margin: 0;
  letter-spacing: 0.3px;
}

.modal-close {
  width: 32px;
  height: 32px;
  background: transparent;
  border: none;
  color: var(--text-2);
  cursor: pointer;
  border-radius: var(--r-md);
  transition: all 0.3s var(--ease-spring);
  display: flex;
  align-items: center;
  justify-content: center;
}

.modal-close:hover {
  background: rgba(191, 154, 94, 0.1);
  color: var(--gold);
}

.modal-close svg {
  width: 18px;
  height: 18px;
}

.modal-body {
  flex: 1;
  padding: 24px;
  overflow-y: auto;
  color: var(--text-2);
  font-size: 13px;
  line-height: 1.6;
}

.modal-footer {
  padding: 16px 24px;
  border-top: 1px solid var(--border-1);
  background: linear-gradient(180deg, transparent 0%, rgba(191, 154, 94, 0.02) 100%);
  display: flex;
  gap: 12px;
  justify-content: flex-end;
}

/* ═══ TOAST ═══ */
.toast-container {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 300;
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-width: 400px;
}

.toast {
  padding: 14px 18px;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: var(--r-lg);
  backdrop-filter: blur(12px);
  color: var(--text-1);
  font-size: 13px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
  animation: fadeUp 0.3s var(--ease-spring);
  max-width: 100%;
  word-wrap: break-word;
}

.toast.success {
  border-left: 3px solid var(--green);
}

.toast.error {
  border-left: 3px solid var(--red);
}

.toast.info {
  border-left: 3px solid var(--cyan);
}

.toast.warning {
  border-left: 3px solid var(--amber);
}

/* ═══ EMPTY STATES ═══ */
.empty-state {
  text-align: center;
  padding: 60px 20px;
  color: var(--text-2);
}

.empty-state-icon {
  width: 80px;
  height: 80px;
  margin: 0 auto 24px;
  background: rgba(191, 154, 94, 0.1);
  border-radius: var(--r-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gold);
}

.empty-state-icon svg {
  width: 40px;
  height: 40px;
}

.empty-state h3 {
  font-size: 16px;
  font-weight: 700;
  color: var(--text-1);
  margin-bottom: 8px;
}

.empty-state p {
  font-size: 13px;
  color: var(--text-3);
  margin-bottom: 24px;
}

/* ═══ PROGRESS BARS ═══ */
.progress-bar {
  width: 100%;
  height: 6px;
  background: rgba(191, 154, 94, 0.1);
  border-radius: 3px;
  overflow: hidden;
  margin-bottom: 8px;
}

.progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--gold) 0%, var(--amber) 100%);
  transition: width 0.3s ease;
  border-radius: 3px;
}

/* ═══ TIMELINE ═══ */
.timeline {
  position: relative;
  padding: 20px 0;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 20px;
  top: 0;
  bottom: 0;
  width: 1px;
  background: linear-gradient(180deg, var(--gold), transparent);
}

.timeline-item {
  display: flex;
  gap: 16px;
  margin-bottom: 24px;
  position: relative;
}

.timeline-item::before {
  content: '';
  position: absolute;
  left: 12px;
  top: 6px;
  width: 16px;
  height: 16px;
  background: var(--gold);
  border: 2px solid var(--bg-0);
  border-radius: 50%;
  flex-shrink: 0;
  box-shadow: 0 0 12px var(--gold-glow);
}

.timeline-item-content {
  margin-left: 48px;
}

.timeline-item-title {
  font-weight: 700;
  color: var(--text-1);
  font-size: 13px;
  margin-bottom: 4px;
}

.timeline-item-time {
  font-size: 11px;
  color: var(--text-3);
  margin-bottom: 6px;
}

.timeline-item-text {
  font-size: 12px;
  color: var(--text-2);
}

/* ═══════════════════════════════════════════════════════════
   CONTENT CLASSES — Generated by ui.js
   All classes used in renderOverview, renderDashboard, and
   other page renderers that were missing from the base CSS
   ═══════════════════════════════════════════════════════════ */

/* ── Grid Layouts ── */
.grid-2 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 16px;
  margin-bottom: 20px;
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
  margin-bottom: 20px;
}

/* ── Card Title (inside card-header) ── */
.card-title {
  font-family: var(--font-head);
  font-size: 11px;
  font-weight: 700;
  color: var(--text-1);
  letter-spacing: 1.2px;
  text-transform: uppercase;
}

/* ── List Items (used in dashboard recent docs/issues) ── */
.list-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 16px;
  border-bottom: 1px solid var(--border-1);
  cursor: pointer;
  transition: all 0.2s var(--ease-spring);
}

.list-item:last-child {
  border-bottom: none;
}

.list-item:hover {
  background: rgba(191, 154, 94, 0.06);
  padding-left: 20px;
}

[dir="rtl"] .list-item:hover {
  padding-left: 16px;
  padding-right: 20px;
}

/* ── Badge Color Variants ── */
.badge-green {
  background: rgba(0, 200, 120, 0.12);
  color: var(--green);
  border: 1px solid rgba(0, 200, 120, 0.2);
}

.badge-red {
  background: rgba(232, 0, 50, 0.12);
  color: var(--red);
  border: 1px solid rgba(232, 0, 50, 0.2);
}

.badge-amber {
  background: rgba(240, 168, 48, 0.12);
  color: var(--amber);
  border: 1px solid rgba(240, 168, 48, 0.2);
}

.badge-cyan {
  background: rgba(77, 159, 230, 0.12);
  color: var(--cyan);
  border: 1px solid rgba(77, 159, 230, 0.2);
}

.badge-gold {
  background: rgba(191, 154, 94, 0.12);
  color: var(--gold);
  border: 1px solid rgba(191, 154, 94, 0.2);
}

.badge-purple {
  background: rgba(124, 92, 191, 0.12);
  color: var(--purple);
  border: 1px solid rgba(124, 92, 191, 0.2);
}

.badge-teal {
  background: rgba(0, 184, 160, 0.12);
  color: var(--teal);
  border: 1px solid rgba(0, 184, 160, 0.2);
}

/* ── Page Header ── */
.page-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
  gap: 16px;
  flex-wrap: wrap;
}

.header-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}

.header-title {
  font-family: var(--font-head);
  font-size: 14px;
  font-weight: 700;
  color: var(--text-1);
  letter-spacing: 1.2px;
  text-transform: uppercase;
}

.header-stats {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.section-header {
  font-family: var(--font-head);
  font-size: 12px;
  font-weight: 700;
  color: var(--gold);
  letter-spacing: 1.5px;
  text-transform: uppercase;
  margin-bottom: 14px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--border-1);
}

/* ── Search Box ── */
.search-box {
  position: relative;
  margin-bottom: 16px;
}

.search-input {
  width: 100%;
  padding: 10px 14px 10px 36px;
  background: var(--input-bg);
  border: 1px solid var(--border-1);
  border-radius: var(--r-md);
  color: var(--text-1);
  font-size: 13px;
  font-family: var(--font);
  transition: all 0.2s var(--ease-spring);
}

.search-input:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(191, 154, 94, 0.1);
  outline: none;
}

.search-input::placeholder {
  color: var(--text-3);
}

/* ── Chip / Filter Tags ── */
.chip {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 10px;
  background: var(--bg-3);
  border: 1px solid var(--border-1);
  border-radius: 20px;
  font-size: 11px;
  color: var(--text-2);
  cursor: pointer;
  transition: all 0.2s;
  white-space: nowrap;
}

.chip:hover, .chip.active {
  background: rgba(191, 154, 94, 0.1);
  border-color: var(--gold);
  color: var(--gold);
}

.chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 16px;
}

/* ── Tag ── */
.tag {
  display: inline-block;
  padding: 2px 8px;
  background: var(--bg-3);
  border-radius: 4px;
  font-size: 10px;
  color: var(--text-3);
  font-family: var(--font-mono);
  letter-spacing: 0.5px;
}

/* ── Tab Content ── */
.tab-content {
  display: none;
}

.tab-content.show, .tab-content.active {
  display: block;
}

.tabs-container {
  margin-bottom: 20px;
}

.tabs-header {
  display: flex;
  gap: 4px;
  border-bottom: 1px solid var(--border-1);
  margin-bottom: 16px;
  overflow-x: auto;
}

.tabs-content {
  min-height: 100px;
}

/* ── Document Cards ── */
.doc-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 12px;
  margin-bottom: 20px;
}

.doc-card {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: var(--r-md);
  padding: 16px;
  cursor: pointer;
  transition: all 0.2s var(--ease-spring);
  overflow: hidden;
}

.doc-card:hover {
  border-color: var(--glass-border-hover);
  box-shadow: 0 4px 16px var(--gold-dim);
  transform: translateY(-1px);
}

.doc-card-icon {
  font-size: 24px;
  margin-bottom: 8px;
}

.doc-card-title {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-1);
  margin-bottom: 6px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.doc-card-meta {
  font-size: 11px;
  color: var(--text-3);
  font-family: var(--font-mono);
}

/* ── Course Cards ── */
.courses-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 12px;
}

.course-card {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: var(--r-md);
  padding: 18px;
  transition: all 0.2s var(--ease-spring);
  cursor: pointer;
}

.course-card:hover {
  border-color: var(--glass-border-hover);
  box-shadow: 0 4px 16px var(--gold-dim);
}

.course-icon {
  font-size: 28px;
  margin-bottom: 10px;
}

.course-meta {
  font-size: 11px;
  color: var(--text-3);
  font-family: var(--font-mono);
  margin-bottom: 8px;
}

.course-desc {
  font-size: 12px;
  color: var(--text-2);
  line-height: 1.6;
  margin-bottom: 10px;
}

.course-stats {
  display: flex;
  gap: 12px;
  font-size: 11px;
  color: var(--text-3);
}

.course-badges {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-top: 8px;
}

/* ── Getting Started / Pathway ── */
.pathway-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 12px;
  margin-bottom: 20px;
}

.pathway-step {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: var(--r-md);
  padding: 16px;
  transition: all 0.2s var(--ease-spring);
}

.pathway-step:hover {
  border-color: var(--glass-border-hover);
}

.pathway-step-header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
}

.pathway-step-num {
  width: 24px;
  height: 24px;
  background: var(--gold);
  color: var(--bg-0);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 700;
  flex-shrink: 0;
}

.pathway-step-icon {
  font-size: 18px;
}

.pathway-step-title {
  font-family: var(--font-head);
  font-size: 11px;
  font-weight: 700;
  color: var(--text-1);
  letter-spacing: 0.8px;
  text-transform: uppercase;
}

.pathway-step-desc {
  font-size: 11px;
  color: var(--text-3);
  line-height: 1.5;
  margin-bottom: 8px;
}

.pathway-step-progress {
  height: 4px;
  background: var(--bg-3);
  border-radius: 2px;
  overflow: hidden;
  margin-bottom: 6px;
}

.pathway-step-hint {
  font-size: 10px;
  color: var(--text-3);
  font-style: italic;
}

.pathway-step-action {
  margin-top: 8px;
}

.getting-started-card {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: var(--r-md);
  padding: 20px;
  margin-bottom: 20px;
}

/* ── Area & Dimension Cards (Governance / KM) ── */
.areas-container, .dimensions-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 12px;
  margin-bottom: 20px;
}

.area-card, .dimension-card {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: var(--r-md);
  overflow: hidden;
  transition: all 0.2s var(--ease-spring);
}

.area-card:hover, .dimension-card:hover {
  border-color: var(--glass-border-hover);
}

.area-header, .dimension-header {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 16px;
  cursor: pointer;
  transition: background 0.15s;
}

.area-header:hover, .dimension-header:hover {
  background: rgba(191, 154, 94, 0.04);
}

.area-icon, .dimension-icon {
  font-size: 20px;
  flex-shrink: 0;
}

.area-name, .dimension-name {
  flex: 1;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-1);
}

.area-score, .dimension-score {
  font-family: var(--font-head);
  font-size: 13px;
  font-weight: 700;
  color: var(--gold);
}

.area-title, .dimension-title {
  font-family: var(--font-head);
  font-size: 11px;
  font-weight: 700;
  color: var(--text-1);
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: 8px;
}

.area-content, .dimension-content {
  padding: 0 16px 16px;
}

/* ── Metric Bars (DMBOK / Quality Dimensions) ── */
.metric-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 5px 0;
}

.metric-bar-label {
  font-size: 11px;
  color: var(--text-2);
  min-width: 100px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.metric-bar-track {
  flex: 1;
  height: 6px;
  background: var(--bg-3);
  border-radius: 3px;
  overflow: hidden;
}

.metric-bar-fill {
  height: 100%;
  border-radius: 3px;
  background: linear-gradient(90deg, var(--gold), var(--gold-light));
  transition: width 0.4s var(--ease-spring);
}

.metric-bar-val {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-3);
  min-width: 30px;
  text-align: right;
}

/* ── Score Controls (Assessment Pages) ── */
.score-bar {
  display: flex;
  align-items: center;
  gap: 8px;
}

.score-fill {
  flex: 1;
  height: 8px;
  background: var(--bg-3);
  border-radius: 4px;
  overflow: hidden;
}

.score-fill > div {
  height: 100%;
  border-radius: 4px;
  transition: width 0.3s var(--ease-spring);
}

.score-value {
  font-family: var(--font-head);
  font-size: 13px;
  font-weight: 700;
  color: var(--gold);
  min-width: 40px;
  text-align: right;
}

.score-buttons {
  display: flex;
  gap: 4px;
}

.score-btn {
  width: 28px;
  height: 28px;
  border: 1px solid var(--border-1);
  background: var(--bg-3);
  color: var(--text-2);
  border-radius: var(--r-sm);
  cursor: pointer;
  font-size: 11px;
  font-weight: 600;
  transition: all 0.15s;
  display: flex;
  align-items: center;
  justify-content: center;
}

.score-btn:hover {
  border-color: var(--gold);
  color: var(--gold);
}

.score-btn.active {
  background: var(--gold);
  color: var(--bg-0);
  border-color: var(--gold);
}

/* ── Entity Cards (Gov Entities) ── */
.entity-db-card {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: var(--r-md);
  padding: 16px;
  transition: all 0.2s var(--ease-spring);
  cursor: pointer;
}

.entity-db-card:hover {
  border-color: var(--glass-border-hover);
  box-shadow: 0 4px 16px var(--gold-dim);
}

/* ── Contract Cards (DDA Registry etc.) ── */
.contract-card {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: var(--r-md);
  overflow: hidden;
  margin-bottom: 12px;
}

.contract-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  border-bottom: 1px solid var(--border-1);
  cursor: pointer;
}

.contract-card-body {
  padding: 16px;
}

.contract-section {
  margin-bottom: 12px;
}

.contract-section-title {
  font-family: var(--font-head);
  font-size: 10px;
  font-weight: 700;
  color: var(--gold);
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: 6px;
}

.contract-field {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin-bottom: 4px;
}

.contract-field-label {
  font-size: 11px;
  color: var(--text-3);
  min-width: 100px;
  flex-shrink: 0;
}

.contract-field-value {
  font-size: 11px;
  color: var(--text-1);
}

/* ── Action Cards (Improvements page) ── */
.action-card {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: var(--r-md);
  padding: 16px;
  margin-bottom: 10px;
  transition: all 0.2s;
}

.action-card:hover {
  border-color: var(--glass-border-hover);
}

.action-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 8px;
}

.action-body {
  font-size: 12px;
  color: var(--text-2);
  line-height: 1.5;
}

.action-details {
  font-size: 11px;
  color: var(--text-3);
  margin-top: 6px;
}

.action-controls, .action-buttons {
  display: flex;
  gap: 6px;
  margin-top: 8px;
  flex-wrap: wrap;
}

.action-group {
  margin-bottom: 16px;
}

.actions-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}

.actions-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

/* ── Stat Mini / Stat Badge / Stat Item ── */
.stat-mini {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 11px;
  color: var(--text-3);
}

.stat-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px 8px;
  background: var(--bg-3);
  border-radius: 10px;
  font-size: 10px;
  font-weight: 600;
  color: var(--text-2);
}

.stat-item {
  text-align: center;
  padding: 8px;
}

/* ── Onboarding Guide ── */
.onboarding-guide {
  background: linear-gradient(135deg, rgba(0, 51, 160, 0.1), rgba(191, 154, 94, 0.06));
  border: 1px solid var(--glass-border);
  border-radius: var(--r-lg);
  padding: 24px;
  margin-bottom: 24px;
}

.onboarding-icon {
  font-size: 36px;
  margin-bottom: 12px;
}

.onboarding-title {
  font-family: var(--font-head);
  font-size: 14px;
  font-weight: 700;
  color: var(--text-1);
  letter-spacing: 1px;
  margin-bottom: 8px;
}

.onboarding-desc {
  font-size: 12px;
  color: var(--text-2);
  line-height: 1.6;
  margin-bottom: 16px;
}

.onboarding-steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 12px;
}

.onboarding-step {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  padding: 10px;
  background: var(--bg-1);
  border: 1px solid var(--border-1);
  border-radius: var(--r-sm);
}

.onboarding-step-num {
  width: 22px;
  height: 22px;
  background: var(--gold);
  color: var(--bg-0);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  font-weight: 700;
  flex-shrink: 0;
}

/* ── Evidence Section ── */
.evidence-section {
  margin-bottom: 16px;
}

.evidence-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
}

.evidence-body, .evidence-content {
  padding: 12px;
  background: var(--bg-2);
  border-radius: var(--r-sm);
  font-size: 12px;
  color: var(--text-2);
}

.evidence-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.evidence-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  background: var(--bg-2);
  border-radius: var(--r-sm);
  font-size: 12px;
  color: var(--text-2);
}

.evidence-type {
  font-size: 10px;
  color: var(--gold);
  font-family: var(--font-mono);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.evidence-files {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.evidence-file-item {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 8px;
  background: var(--bg-3);
  border-radius: var(--r-sm);
  font-size: 11px;
  color: var(--text-2);
}

.evidence-actions {
  display: flex;
  gap: 6px;
  margin-top: 8px;
}

.no-evidence {
  text-align: center;
  padding: 20px;
  color: var(--text-3);
  font-size: 12px;
}

/* ── Gap Items (Gap Analysis) ── */
.gap-item {
  background: var(--bg-2);
  border: 1px solid var(--border-1);
  border-radius: var(--r-sm);
  padding: 12px;
  margin-bottom: 8px;
}

.gap-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 6px;
}

.gap-area, .gap-dimension {
  font-size: 11px;
  color: var(--text-3);
}

.gap-question {
  font-size: 12px;
  color: var(--text-2);
  margin-bottom: 6px;
}

.gap-scores {
  display: flex;
  gap: 12px;
  font-size: 11px;
}

.gap-current, .gap-target, .gap-difference {
  font-family: var(--font-mono);
}

.gap-actions {
  display: flex;
  gap: 6px;
  margin-top: 8px;
}

.gaps-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.gaps-summary {
  display: flex;
  gap: 12px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}

/* ── Question Items (Assessment) ── */
.question-item {
  background: var(--bg-2);
  border: 1px solid var(--border-1);
  border-radius: var(--r-sm);
  padding: 12px;
  margin-bottom: 8px;
}

.question-text {
  font-size: 12px;
  color: var(--text-1);
  margin-bottom: 8px;
  line-height: 1.5;
}

.question-score-controls {
  display: flex;
  gap: 4px;
  margin-bottom: 6px;
}

.question-notes {
  font-size: 11px;
  color: var(--text-3);
  margin-top: 4px;
}

.question-actions {
  display: flex;
  gap: 6px;
  margin-top: 6px;
}

/* ── DQI Gauge ── */
.dqi-gauge {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.dqi-score {
  text-align: center;
}

.dqi-score-val {
  font-family: var(--font-head);
  font-size: 48px;
  font-weight: 900;
  color: var(--gold);
}

.dqi-score-label {
  font-size: 11px;
  color: var(--text-3);
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* ── Graph / Knowledge Network ── */
.graph-canvas {
  width: 100%;
  min-height: 400px;
  background: var(--bg-1);
  border: 1px solid var(--border-1);
  border-radius: var(--r-md);
  position: relative;
  overflow: hidden;
}

.graph-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 12px;
}

.graph-legend-item {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 11px;
  color: var(--text-2);
}

.graph-legend-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}

.graph-tooltip {
  position: absolute;
  background: var(--bg-1);
  border: 1px solid var(--gold);
  border-radius: var(--r-sm);
  padding: 8px 12px;
  font-size: 11px;
  color: var(--text-1);
  pointer-events: none;
  z-index: 10;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.graph-zoom-controls {
  position: absolute;
  bottom: 12px;
  right: 12px;
  display: flex;
  gap: 4px;
}

/* ── Notification Items ── */
.notification-item, .notif-content {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 10px 14px;
  border-bottom: 1px solid var(--border-1);
  transition: background 0.15s;
}

.notification-item:hover, .notif-content:hover {
  background: rgba(191, 154, 94, 0.04);
}

.notif-icon {
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  font-size: 14px;
  background: var(--bg-3);
  flex-shrink: 0;
}

.notif-message {
  flex: 1;
  font-size: 12px;
  color: var(--text-2);
  line-height: 1.4;
}

.notif-title {
  font-weight: 600;
  color: var(--text-1);
  font-size: 12px;
}

.notif-time {
  font-size: 10px;
  color: var(--text-3);
  font-family: var(--font-mono);
  margin-top: 2px;
}

.notif-action {
  margin-top: 4px;
}

.notif-more {
  text-align: center;
  padding: 10px;
  font-size: 11px;
  color: var(--gold);
  cursor: pointer;
}

.notifications-list {
  max-height: 300px;
  overflow-y: auto;
}

.empty-notif {
  text-align: center;
  padding: 30px;
  color: var(--text-3);
  font-size: 12px;
}

/* ── AI Analysis & Suggestions ── */
.ai-analysis, .ai-gov-analysis {
  background: linear-gradient(135deg, rgba(124, 92, 191, 0.06), rgba(0, 51, 160, 0.04));
  border: 1px solid rgba(124, 92, 191, 0.15);
  border-radius: var(--r-md);
  padding: 16px;
  margin-bottom: 16px;
}

.ai-result, .ai-gov-analysis-result {
  font-size: 12px;
  color: var(--text-2);
  line-height: 1.6;
  white-space: pre-wrap;
}

.ai-suggestions {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.ai-suggestion {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  padding: 8px 10px;
  background: var(--bg-2);
  border-radius: var(--r-sm);
  font-size: 12px;
  color: var(--text-2);
}

.ai-recommend-section {
  margin-top: 12px;
}

.ai-recommendations-container {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.suggestion-box {
  background: var(--bg-2);
  border: 1px solid var(--border-1);
  border-radius: var(--r-sm);
  padding: 10px;
}

.suggestion-content {
  font-size: 12px;
  color: var(--text-2);
  line-height: 1.5;
}

.suggestion-actions {
  display: flex;
  gap: 6px;
  margin-top: 6px;
}

/* ── Priority Badges ── */
.priority-badge {
  display: inline-flex;
  align-items: center;
  padding: 2px 8px;
  border-radius: 10px;
  font-size: 10px;
  font-weight: 600;
  font-family: var(--font-mono);
}

.priority-1, .priority-badge[data-priority="1"] { background: rgba(232, 0, 50, 0.15); color: var(--red); }
.priority-2, .priority-badge[data-priority="2"] { background: rgba(240, 168, 48, 0.15); color: var(--amber); }
.priority-3, .priority-badge[data-priority="3"] { background: rgba(77, 159, 230, 0.15); color: var(--cyan); }
.priority-4, .priority-badge[data-priority="4"] { background: rgba(0, 200, 120, 0.15); color: var(--green); }
.priority-5, .priority-badge[data-priority="5"] { background: var(--bg-3); color: var(--text-3); }

/* ── KM Stats (Knowledge Management) ── */
.km-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 10px;
  margin-bottom: 16px;
}

.km-stat {
  text-align: center;
  padding: 12px;
  background: var(--bg-2);
  border-radius: var(--r-sm);
}

.km-stat-val {
  font-family: var(--font-head);
  font-size: 18px;
  font-weight: 700;
  color: var(--gold);
}

.km-stat-label {
  font-size: 10px;
  color: var(--text-3);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-top: 4px;
}

.km-stat-icon {
  font-size: 18px;
  margin-bottom: 4px;
}

/* ── KM Help Banner ── */
.km-help-banner {
  background: linear-gradient(135deg, rgba(191, 154, 94, 0.06), rgba(0, 51, 160, 0.04));
  border: 1px solid var(--glass-border);
  border-radius: var(--r-md);
  padding: 16px;
  margin-bottom: 16px;
}

.km-help-toggle {
  cursor: pointer;
  font-size: 12px;
  color: var(--gold);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.km-help-arrow {
  transition: transform 0.2s;
  font-size: 10px;
}

.km-help-banner.expanded .km-help-arrow {
  transform: rotate(180deg);
}

.km-help-content {
  margin-top: 10px;
  display: none;
}

.km-help-banner.expanded .km-help-content {
  display: block;
}

.km-help-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 8px;
}

.km-help-item {
  padding: 8px;
  background: var(--bg-2);
  border-radius: var(--r-sm);
  font-size: 11px;
  color: var(--text-2);
}

/* ── Data Table (styled <table>) ── */
.data-table, .table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12px;
}

.data-table th, .table th {
  background: var(--bg-3);
  color: var(--text-1);
  padding: 10px 12px;
  text-align: left;
  font-weight: 600;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  border-bottom: 2px solid var(--border-1);
}

[dir="rtl"] .data-table th, [dir="rtl"] .table th {
  text-align: right;
}

.data-table td, .table td {
  padding: 10px 12px;
  border-bottom: 1px solid var(--border-1);
  color: var(--text-2);
}

.data-table tr:hover td, .table tr:hover td {
  background: rgba(191, 154, 94, 0.04);
}

.table-responsive {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin-bottom: 16px;
}

/* ── HUD Divider ── */
.hud-divider {
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--border-1), var(--gold-dim), var(--border-1), transparent);
  margin: 16px 0;
}

/* ── Meta Bar ── */
.meta-bar {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 11px;
  color: var(--text-3);
  margin-bottom: 12px;
  flex-wrap: wrap;
}

/* ── Overview Stats ── */
.overview-stat {
  text-align: center;
  padding: 12px;
  background: var(--bg-2);
  border-radius: var(--r-sm);
}

/* ── Loading States ── */
.loading {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px;
  color: var(--text-3);
  font-size: 13px;
}

.loading-dots::after {
  content: '...';
  animation: dots 1.5s steps(4, end) infinite;
}

@keyframes dots {
  0%, 20% { content: ''; }
  40% { content: '.'; }
  60% { content: '..'; }
  80%, 100% { content: '...'; }
}

.icon-spinner {
  animation: spin 1s linear infinite;
}

@keyframes spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

/* ── Error Message ── */
.error-message {
  background: rgba(232, 0, 50, 0.08);
  border: 1px solid rgba(232, 0, 50, 0.2);
  border-radius: var(--r-sm);
  padding: 12px;
  color: var(--red);
  font-size: 12px;
}

/* ── Progress Text ── */
.progress-text {
  font-size: 11px;
  color: var(--text-3);
  font-family: var(--font-mono);
  text-align: right;
  margin-top: 4px;
}

.progress-fill.gold {
  background: var(--gold);
}

/* ── Radar Section ── */
.radar-section {
  display: flex;
  justify-content: center;
  padding: 20px;
}

/* ── Graph SVG Elements (inline class overrides) ── */
.g-dim { opacity: 0.5; }
.g-hl { opacity: 1; }
.g-focus { stroke-width: 2; }

/* ── Utility Classes ── */
.text-center { text-align: center; }
.text-muted { color: var(--text-3); }
.subtitle {
  font-size: 12px;
  color: var(--text-3);
  margin-bottom: 8px;
}
.label {
  font-size: 10px;
  color: var(--text-3);
  font-family: var(--font-mono);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.no-print { /* used with @media print */ }

/* ── DX Elements (Hierarchy Viz) ── */
.dx-hierarchy {
  overflow-x: auto;
  padding: 20px 0;
}

.dx-role-node {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  padding: 10px 14px;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: var(--r-sm);
  text-align: center;
  min-width: 100px;
}

.dx-role-level {
  font-size: 10px;
  color: var(--gold);
  font-family: var(--font-mono);
  letter-spacing: 0.5px;
}

.dx-score-big {
  font-family: var(--font-head);
  font-size: 28px;
  font-weight: 700;
  color: var(--gold);
}

/* ═══ KEYFRAME ANIMATIONS ═══ */
@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

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

@keyframes float {
  0%, 100% {
    transform: translateY(0) translateX(0);
  }
  25% {
    transform: translateY(-20px) translateX(10px);
  }
  50% {
    transform: translateY(-40px) translateX(-10px);
  }
  75% {
    transform: translateY(-20px) translateX(15px);
  }
}

@keyframes loginParticle {
  0%, 100% {
    transform: translateY(0) translateX(0) scale(1);
    opacity: 0.3;
  }
  50% {
    transform: translateY(-20px) translateX(15px) scale(1.2);
    opacity: 0.6;
  }
}

@keyframes goldPulse {
  0%, 100% {
    box-shadow: 0 0 0 0 var(--gold-glow);
    border-color: var(--glass-border);
  }
  50% {
    box-shadow: 0 0 20px 8px var(--gold-glow);
    border-color: var(--gold);
  }
}

@keyframes shimmer {
  0% {
    background-position: -1000px 0;
  }
  100% {
    background-position: 1000px 0;
  }
}

@keyframes glowLine {
  0%, 100% {
    opacity: 0.3;
    box-shadow: none;
  }
  50% {
    opacity: 0.8;
    box-shadow: 0 0 20px var(--gold-glow);
  }
}

@keyframes auroraShift {
  0%, 100% {
    transform: translate(0, 0);
  }
  50% {
    transform: translate(20px, -30px);
  }
}

@keyframes panelBoot {
  0% {
    opacity: 0;
    transform: scale(0.95) translateY(20px);
  }
  50% {
    opacity: 0.5;
  }
  100% {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

/* ═══ ARABIC / RTL MODE ═══ */
[dir="rtl"] {
  direction: rtl;
  text-align: right;
}

/* Arabic font for all text in AR mode */
[lang="ar"] body,
[lang="ar"] .nav-label,
[lang="ar"] .stat-label,
[lang="ar"] .stat-title,
[lang="ar"] .card-title,
[lang="ar"] .section-header,
[lang="ar"] label,
[lang="ar"] p,
[lang="ar"] td,
[lang="ar"] th,
[lang="ar"] .btn,
[lang="ar"] button,
[lang="ar"] input,
[lang="ar"] textarea,
[lang="ar"] select,
[lang="ar"] .modal-body,
[lang="ar"] .toast-msg {
  font-family: var(--ar);
}

/* Keep headings in Orbitron even in AR mode (bilingual brand) */
[lang="ar"] .brand-text-primary,
[lang="ar"] .login-brand-primary,
[lang="ar"] .header-title {
  font-family: var(--font-head);
  direction: ltr;
}

/* Arabic page title and subtitle */
[lang="ar"] .page-header h1,
[lang="ar"] .page-header h2 {
  font-family: var(--ar);
  letter-spacing: 0;
}

/* Sidebar nav — flip icon + label order */
[dir="rtl"] .nav-btn {
  flex-direction: row-reverse;
  text-align: right;
}

[dir="rtl"] .sidebar {
  border-right: none;
  border-left: 1px solid var(--glass-border);
}

/* Main content area */
[dir="rtl"] .main {
  margin-left: 0;
  margin-right: var(--sidebar-w);
}

/* Cards, modals, inputs */
[dir="rtl"] input,
[dir="rtl"] textarea,
[dir="rtl"] select {
  text-align: right;
}

/* RTL: login gate inputs are centered — no RTL adjustment needed */

/* Stat cards text alignment */
[dir="rtl"] .stat-card {
  text-align: right;
}

/* Table headers */
[dir="rtl"] th {
  text-align: right;
}

/* Flex layouts that should flip */
[dir="rtl"] .page-header,
[dir="rtl"] .header-bar,
[dir="rtl"] .card-header {
  flex-direction: row-reverse;
}

/* ═══ RESPONSIVE DESIGN ═══ */
@media (max-width: 768px) {
  :root {
    --sidebar-w: 100%;
  }

  .app {
    flex-direction: column;
  }

  .sidebar {
    width: 100%;
    height: auto;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    border-right: none;
    border-top: 1px solid var(--border-1);
    flex-direction: row;
    z-index: 200;
    overflow-y: visible;
  }

  .sidebar.collapsed {
    transform: translateY(100%);
    width: 100%;
  }

  .sidebar-brand {
    flex: 1;
  }

  .sidebar-nav {
    display: none;
  }

  .sidebar-bottom {
    flex-direction: row;
    gap: 8px;
    padding: 8px;
  }

  .main {
    width: 100%;
    padding-bottom: 60px;
  }

  .menu-toggle {
    display: flex;
  }

  .navbar {
    padding: 0 16px;
  }

  .navbar-title {
    font-size: 16px;
  }

  .navbar-sub {
    display: none;
  }

  .page-wrap {
    padding: 16px;
  }

  .stats-grid {
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 12px;
  }

  .dash-grid, .grid-2, .grid-3 {
    grid-template-columns: 1fr;
  }

  .doc-grid, .courses-grid, .pathway-grid,
  .areas-container, .dimensions-container,
  .onboarding-steps, .km-stats, .km-help-grid {
    grid-template-columns: 1fr;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  .modal-box {
    width: 95%;
    max-height: 90vh;
  }

  .toast-container {
    bottom: 16px;
    right: 16px;
    max-width: calc(100% - 32px);
  }

}

@media (max-width: 480px) {
  .navbar-right {
    gap: 8px;
  }

  .navbar-btn {
    width: 36px;
    height: 36px;
  }

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

  .stat-card {
    padding: 16px;
  }

  .btn {
    width: 100%;
  }

  .tab-bar {
    flex-wrap: wrap;
  }
}

/* ═══ REDUCED MOTION ═══ */
@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* ═══ PRINT STYLES ═══ */
@media print {
  .sidebar,
  .navbar,
  .menu-toggle,
  .navbar-btn,
  .notif-wrapper,
  .modal-overlay,
  .toast-container,
  .scanline-overlay,
  .particles,
  .aurora-layer,
  .slc-chevron,
  .slc-geometric-overlay {
    display: none !important;
  }

  .main {
    width: 100%;
    margin: 0;
  }

  .page-wrap {
    padding: 0;
  }

  body {
    background: white;
    color: black;
  }

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

/* ═══ FOCUS VISIBLE STATES (Keyboard Navigation) ═══ */
button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 2px;
}

/* ═══ HIGH CONTRAST MODE ═══ */
@media (prefers-contrast: more) {
  .stat-card,
  .card,
  .dash-panel {
    border-width: 2px;
  }

  .btn,
  .navbar-btn,
  .sidebar-toggle-btn {
    border-width: 2px;
  }
}

/* ═══ DARK MODE ONLY FEATURES ═══ */
[data-theme="dark"] .slc-chevron {
  opacity: 0.12;
}

[data-theme="dark"] .aurora-layer {
  opacity: 0.08;
}

[data-theme="dark"] .bg-grid {
  opacity: 0.5;
}

/* ═══ LIGHT MODE SPECIFIC ═══ */
[data-theme="light"] .slc-chevron {
  opacity: 0.06;
}

[data-theme="light"] .aurora-layer {
  opacity: 0.04;
}

[data-theme="light"] .scanline-overlay {
  display: none;
}

[data-theme="light"] .bg-grid {
  opacity: 0.3;
  background-image:
    linear-gradient(0deg, rgba(0, 51, 160, 0.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 51, 160, 0.02) 1px, transparent 1px);
}

[data-theme="light"] .stat-card,
[data-theme="light"] .card,
[data-theme="light"] .dash-panel {
  border-color: rgba(191, 154, 94, 0.15);
  background: rgba(255, 255, 255, 0.9);
}

[data-theme="light"] .sidebar {
  background: linear-gradient(180deg, #ffffff 0%, #f8f9fc 100%);
  border-right-color: #e8ecf5;
}

[data-theme="light"] .navbar {
  background: rgba(255, 255, 255, 0.95);
  border-bottom-color: #e8ecf5;
}

/* ═══════════════════════════════════════════════════════════════════
   BOTTOM DOCK — macOS-style floating quick-action bar
   ═══════════════════════════════════════════════════════════════════ */

.dock-wrap {
  position: fixed;
  bottom: 12px;
  left: 0;
  right: 0;
  display: none; /* shown after login via JS */
  justify-content: center;
  align-items: center;
  z-index: 8000;
  pointer-events: none;
}

.dock-wrap.dock-visible {
  display: flex;
}

.dock {
  display: flex;
  align-items: center;
  gap: 2px;
  padding: 6px 10px;
  background: rgba(10, 15, 30, 0.82);
  backdrop-filter: blur(20px) saturate(1.6);
  -webkit-backdrop-filter: blur(20px) saturate(1.6);
  border: 1px solid rgba(191, 154, 94, 0.18);
  border-radius: 18px;
  box-shadow:
    0 8px 32px rgba(0, 0, 0, 0.45),
    0 0 0 1px rgba(191, 154, 94, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.06);
  pointer-events: all;
}

.dock-item {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  border: none;
  background: transparent;
  color: var(--text-2);
  cursor: pointer;
  transition: transform 0.2s var(--ease-spring), background 0.2s, color 0.2s;
  will-change: transform;
}

.dock-item:hover {
  background: rgba(191, 154, 94, 0.12);
  color: var(--gold);
}

.dock-item:hover::after {
  content: attr(data-dock-label);
  position: absolute;
  bottom: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%);
  padding: 4px 10px;
  background: rgba(10, 15, 30, 0.92);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(191, 154, 94, 0.2);
  border-radius: 8px;
  font-size: 11px;
  font-family: var(--f-label);
  color: var(--text-1);
  white-space: nowrap;
  pointer-events: none;
  animation: dockLabelIn 0.18s var(--ease-spring);
  z-index: 10;
}

@keyframes dockLabelIn {
  from { opacity: 0; transform: translateX(-50%) translateY(4px); }
  to   { opacity: 1; transform: translateX(-50%) translateY(0); }
}

.dock-item .dock-icon {
  display: flex;
  align-items: center;
  justify-content: center;
}

.dock-item .dock-icon svg {
  width: 18px;
  height: 18px;
}

.dock-accent {
  color: var(--gold) !important;
}

.dock-accent:hover {
  background: rgba(191, 154, 94, 0.18) !important;
}

.dock-noor {
  position: relative;
  color: var(--gold) !important;
}

.dock-noor::before {
  content: '';
  position: absolute;
  inset: -3px;
  border-radius: 14px;
  background: radial-gradient(circle, rgba(191, 154, 94, 0.25), transparent 70%);
  animation: dockNoorPulse 3s ease-in-out infinite;
  pointer-events: none;
  z-index: -1;
}

@keyframes dockNoorPulse {
  0%, 100% { opacity: 0.4; transform: scale(1); }
  50%      { opacity: 0.8; transform: scale(1.15); }
}

.dock-divider {
  width: 1px;
  height: 24px;
  background: rgba(191, 154, 94, 0.15);
  margin: 0 4px;
  flex-shrink: 0;
}

/* ── Command Palette (Action Key) ── */
.cmd-overlay {
  position: fixed;
  inset: 0;
  z-index: 9000;
  background: rgba(0, 8, 20, 0.65);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding-bottom: 76px;
  animation: cmdFadeIn 0.15s ease-out;
}
@keyframes cmdFadeIn { from { opacity: 0; } to { opacity: 1; } }

.cmd-palette {
  width: min(560px, 92vw);
  background: rgba(12, 18, 36, 0.97);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(191, 154, 94, 0.2);
  border-radius: 16px;
  box-shadow: 0 -12px 60px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(255, 255, 255, 0.04);
  overflow: hidden;
  animation: cmdSlideUp 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
}
@keyframes cmdSlideUp {
  from { opacity: 0; transform: scale(0.95) translateY(20px); }
  to   { opacity: 1; transform: scale(1) translateY(0); }
}

.cmd-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 18px;
  border-bottom: 1px solid rgba(191, 154, 94, 0.12);
}
.cmd-bar-icon { color: var(--gold); flex-shrink: 0; }
.cmd-input {
  flex: 1;
  background: none;
  border: none;
  outline: none;
  color: var(--text-1);
  font-size: 15px;
  font-family: var(--f-body);
}
.cmd-input::placeholder { color: var(--text-3); }
.cmd-kbd {
  padding: 3px 8px;
  border-radius: 6px;
  background: rgba(191, 154, 94, 0.1);
  border: 1px solid rgba(191, 154, 94, 0.15);
  color: var(--text-3);
  font-size: 10px;
  font-family: var(--f-label);
  flex-shrink: 0;
}

.cmd-results {
  max-height: 340px;
  overflow-y: auto;
  padding: 6px;
}
.cmd-result-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  border-radius: 10px;
  cursor: pointer;
  color: var(--text-2);
  transition: background 0.12s;
}
.cmd-result-item:hover, .cmd-result-item.active {
  background: rgba(191, 154, 94, 0.08);
  color: var(--text-1);
}
.cmd-result-item.active {
  border-left: 2px solid var(--gold);
}
.cmd-result-icon {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  background: var(--bg-3);
  border: 1px solid var(--border-1);
  color: var(--text-2);
  flex-shrink: 0;
}
.cmd-result-icon svg { width: 16px; height: 16px; }
.cmd-result-text { flex: 1; min-width: 0; }
.cmd-result-title {
  font-size: 13px;
  font-weight: 500;
  color: var(--text-1);
}
.cmd-result-sub {
  font-size: 11px;
  color: var(--text-3);
  margin-top: 1px;
}
.cmd-result-kbd {
  font-size: 10px;
  color: var(--text-3);
  font-family: var(--f-label);
}
.cmd-empty {
  text-align: center;
  padding: 30px 20px;
  color: var(--text-3);
  font-size: 13px;
}
.cmd-cat-label {
  font-family: var(--f-label);
  font-size: 9px;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  color: var(--text-3);
  padding: 10px 14px 4px;
  display: flex;
  align-items: center;
  gap: 6px;
  opacity: 0.7;
}
.cmd-footer {
  display: flex;
  gap: 16px;
  padding: 8px 18px;
  border-top: 1px solid rgba(191, 154, 94, 0.08);
  font-size: 10px;
  color: var(--text-3);
}
.cmd-footer kbd {
  padding: 1px 5px;
  border-radius: 4px;
  background: rgba(191, 154, 94, 0.08);
  border: 1px solid rgba(191, 154, 94, 0.12);
  font-family: var(--f-label);
  font-size: 9px;
  margin-right: 4px;
}

/* ═══════════════════════════════════════════════════════════════════
   DEPARTMENTS & EMPLOYEES PAGES
   ═══════════════════════════════════════════════════════════════════ */

.page-header-bar { display:flex; align-items:center; justify-content:space-between; margin-bottom:20px; flex-wrap:wrap; gap:12px }
.page-header-bar h2 { font-family:var(--font-head); font-size:1.1rem; font-weight:700; color:var(--text-1); letter-spacing:1px; margin:0 }

/* Department Tree */
.dept-tree-wrap { display:flex; flex-direction:column; gap:4px }
.dept-tree-item { display:flex; flex-direction:column; gap:4px }
.dept-tree-card {
  display:flex; align-items:center; gap:12px; padding:12px 16px;
  background:var(--bg-2); border:1px solid var(--border-1); border-radius:var(--r-md);
  cursor:pointer; transition:all .15s;
}
.dept-tree-card:hover { border-color:var(--gold); background:var(--bg-3) }
.dept-tree-icon { font-size:1.4rem; flex-shrink:0 }
.dept-tree-info { flex:1; min-width:0 }
.dept-tree-name { font-weight:600; color:var(--text-1); font-size:.85rem }
.dept-tree-meta { display:flex; align-items:center; gap:8px; margin-top:3px }
.dept-type-badge { font-size:.65rem; padding:1px 8px; border:1px solid; border-radius:10px; font-weight:600; text-transform:uppercase; letter-spacing:.5px }
.dept-emp-count { font-size:.7rem; color:var(--text-3); display:flex; align-items:center; gap:3px }
.dept-tree-actions { display:flex; gap:6px; opacity:0; transition:opacity .15s }
.dept-tree-card:hover .dept-tree-actions { opacity:1 }

/* Employee table extras */
.status-dot { display:inline-block; width:8px; height:8px; border-radius:50%; margin-right:4px; vertical-align:middle }
.status-dot.active { background:var(--green) }
.status-dot.inactive { background:var(--red); opacity:.6 }

/* Form grid for modals */
.form-grid { display:grid; grid-template-columns:1fr 1fr; gap:12px }
.form-grid .full-width { grid-column:1/-1 }
.form-group { display:flex; flex-direction:column; gap:4px }
.form-group label { font-size:.72rem; color:var(--text-3); text-transform:uppercase; letter-spacing:.5px }
.form-input {
  padding:8px 12px; border-radius:var(--r-sm); border:1px solid var(--border-1);
  background:var(--input-bg); color:var(--text-1); font-size:.82rem; font-family:var(--font);
  transition:border-color .15s;
}
.form-input:focus { border-color:var(--gold); outline:none; background:var(--input-bg-focus) }
.form-input option { background:var(--bg-2); color:var(--text-1) }
textarea.form-input { resize:vertical }

/* Empty state */
.empty-state { text-align:center; padding:60px 20px; color:var(--text-3) }
.empty-state svg { opacity:.3; margin-bottom:16px }
.empty-state p { font-size:.85rem; max-width:320px; margin:0 auto; line-height:1.6 }

/* Small danger button */
.btn-danger { color:var(--red); border-color:rgba(232,0,50,0.3) }
.btn-danger:hover { background:rgba(232,0,50,0.1) }
.btn-xs { padding:4px 8px; font-size:.7rem }

/* Dock notification bell */
.dock-notif-wrapper {
  position:absolute; right:16px; top:50%; transform:translateY(-50%);
  display:flex; align-items:center; pointer-events:all;
}
.dock-notif-bell {
  background:rgba(255,255,255,0.08); border:1px solid var(--border-1); border-radius:50%;
  width:36px; height:36px; display:flex; align-items:center; justify-content:center;
  cursor:pointer; color:var(--text-2); transition:all .15s; position:relative;
}
.dock-notif-bell:hover { background:rgba(255,255,255,0.14); color:var(--gold); border-color:var(--gold) }
.dock-notif-wrapper .notif-badge {
  display:none !important;
}
.dock-notif-wrapper .notif-dropdown {
  position:absolute; bottom:48px; right:0; width:320px; max-height:400px;
  background:var(--bg-2); border:1px solid var(--border-1); border-radius:var(--r-md);
  box-shadow:0 8px 32px rgba(0,0,0,0.4); overflow-y:auto; z-index:200;
}

@media(max-width:768px) {
  .form-grid { grid-template-columns:1fr }
  .dept-tree-actions { opacity:1 }
}


/* ═══════════════════════════════════════════════════════════════════
   NOOR ORB — Floating smart helper button
   ═══════════════════════════════════════════════════════════════════ */

.noor-orb {
  position: fixed;
  bottom: 20px;
  right: 20px;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  border: none;
  background: linear-gradient(135deg, rgba(191, 154, 94, 0.2) 0%, rgba(0, 51, 160, 0.3) 100%);
  backdrop-filter: blur(12px);
  cursor: pointer;
  z-index: 8500;
  display: none; /* shown after login */
  align-items: center;
  justify-content: center;
  transition: transform 0.3s var(--ease-spring), box-shadow 0.3s;
  overflow: visible;
}

.noor-orb.noor-orb-visible {
  display: flex;
}

.noor-orb:hover {
  transform: scale(1.1);
  box-shadow: 0 0 24px rgba(191, 154, 94, 0.4);
}

.noor-orb-ring {
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  border: 1.5px solid rgba(191, 154, 94, 0.35);
  animation: noorSpin 12s linear infinite;
  pointer-events: none;
}

@keyframes noorSpin {
  to { transform: rotate(360deg); }
}

.noor-orb-core {
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gold);
  z-index: 1;
}

.noor-orb-active {
  background: linear-gradient(135deg, rgba(191, 154, 94, 0.35) 0%, rgba(0, 51, 160, 0.45) 100%);
  box-shadow: 0 0 28px rgba(191, 154, 94, 0.5);
}

.noor-orb-attention {
  animation: noorPulse 2s ease-in-out 3;
}

@keyframes noorPulse {
  0%, 100% { transform: scale(1); box-shadow: 0 0 12px rgba(191, 154, 94, 0.2); }
  50%      { transform: scale(1.15); box-shadow: 0 0 32px rgba(191, 154, 94, 0.6); }
}

/* Noor "thinking" animation — plays on click before speaking */
.noor-orb-thinking {
  animation: noorThink 0.9s ease-in-out;
}

.noor-orb-thinking .noor-orb-ring {
  animation: noorRingSurge 0.9s ease-in-out;
  border-color: rgba(191, 154, 94, 0.7);
}

/* ── Hollow ripple on click ── */
.noor-orb-thinking::before,
.noor-orb-thinking::after {
  content: '';
  position: absolute;
  top: 50%; left: 50%;
  width: 52px; height: 52px;
  margin: -26px 0 0 -26px;
  border-radius: 50%;
  border: 2px solid var(--gold);
  pointer-events: none;
  animation: noorClickRipple 0.9s ease-out forwards;
}

.noor-orb-thinking::after {
  animation-delay: 0.15s;
}

@keyframes noorClickRipple {
  0%   { transform: scale(1); opacity: 0.7; border-width: 2.5px; }
  100% { transform: scale(2.8); opacity: 0; border-width: 0.5px; }
}

@keyframes noorThink {
  0%   { transform: scale(1); box-shadow: 0 0 8px rgba(191, 154, 94, 0.2); }
  20%  { transform: scale(0.9); }
  50%  { transform: scale(1.2); box-shadow: 0 0 36px rgba(191, 154, 94, 0.6), 0 0 60px rgba(191, 154, 94, 0.2); }
  70%  { transform: scale(1.05); box-shadow: 0 0 20px rgba(191, 154, 94, 0.35); }
  100% { transform: scale(1); box-shadow: 0 0 8px rgba(191, 154, 94, 0.2); }
}

@keyframes noorRingSurge {
  0%   { transform: rotate(0deg) scale(1); opacity: 0.5; }
  50%  { transform: rotate(180deg) scale(1.15); opacity: 1; border-color: var(--gold); }
  100% { transform: rotate(360deg) scale(1); opacity: 0.5; }
}

/* Noor orb "speaking" state — JS drives rotation via inline transform,
   CSS handles glow, ring spin, core glow and ripples */
.noor-orb-speaking {
  box-shadow: 0 0 20px rgba(191, 154, 94, 0.4);
}

.noor-orb-speaking .noor-orb-ring {
  animation: noorSpin 1.4s linear infinite;
  border-color: rgba(191, 154, 94, 0.7);
}

.noor-orb-speaking .noor-orb-core {
  animation: noorCoreGlow 2s ease-in-out infinite;
}

/* ── Small continuous ripple while speaking ── */
.noor-orb-speaking::before,
.noor-orb-speaking::after {
  content: '';
  position: absolute;
  top: 50%; left: 50%;
  width: 52px; height: 52px;
  margin: -26px 0 0 -26px;
  border-radius: 50%;
  border: 1.5px solid rgba(191, 154, 94, 0.45);
  pointer-events: none;
  animation: noorSpeakRipple 2s ease-out infinite;
}

.noor-orb-speaking::after {
  animation-delay: 1s;
}

@keyframes noorSpeakRipple {
  0%   { transform: scale(1); opacity: 0.5; }
  100% { transform: scale(2.2); opacity: 0; }
}

@keyframes noorCoreGlow {
  0%, 100% { filter: brightness(1); }
  50%      { filter: brightness(1.4) drop-shadow(0 0 4px rgba(191, 154, 94, 0.6)); }
}

/* ═══════════════════════════════════════════════════════════════════
   NOOR CHAT STREAM — Multi-message proactive assistant
   ═══════════════════════════════════════════════════════════════════ */

.noor-stream {
  position: fixed;
  bottom: 80px;
  right: 16px;
  width: 310px;
  max-height: 420px;
  z-index: 8550;
  pointer-events: none;
  opacity: 0;
  transform: translateY(16px) scale(0.94);
  transition: opacity 0.35s var(--ease-spring), transform 0.35s var(--ease-spring);
  display: flex;
  flex-direction: column;
  background: rgba(10, 15, 32, 0.96);
  backdrop-filter: blur(24px) saturate(1.6);
  -webkit-backdrop-filter: blur(24px) saturate(1.6);
  border: 1px solid rgba(191, 154, 94, 0.2);
  border-radius: 18px;
  box-shadow:
    0 12px 40px rgba(0, 0, 0, 0.45),
    0 0 0 1px rgba(191, 154, 94, 0.06),
    0 0 24px rgba(191, 154, 94, 0.06);
  overflow: hidden;
}

.noor-stream.noor-stream-show {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: all;
}

/* ── Stream header ── */
.noor-stream-header {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  border-bottom: 1px solid rgba(191, 154, 94, 0.1);
  flex-shrink: 0;
}

.noor-stream-name {
  font-family: var(--f-head);
  font-size: 12px;
  font-weight: 700;
  color: var(--gold);
  letter-spacing: 0.6px;
  flex: 1;
}

.noor-stream-close {
  background: none;
  border: none;
  color: var(--text-3);
  font-size: 18px;
  cursor: pointer;
  padding: 0 2px;
  line-height: 1;
  transition: color 0.15s;
}

.noor-stream-close:hover { color: var(--text-1); }

.noor-bubble-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 6px rgba(191, 154, 94, 0.5);
  animation: noorDotPulse 2s ease-in-out infinite;
  flex-shrink: 0;
}

/* ── Stream body (message list) ── */
.noor-stream-body {
  padding: 10px 12px 14px;
  overflow-y: auto;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-height: 340px;
}

.noor-stream-body::-webkit-scrollbar { width: 3px; }
.noor-stream-body::-webkit-scrollbar-thumb { background: rgba(191, 154, 94, 0.15); border-radius: 3px; }

/* ── Individual message bubble ── */
.noor-msg {
  max-width: 95%;
  font-size: 12.5px;
  line-height: 1.55;
  color: var(--text-1);
  font-family: var(--f-body);
  background: rgba(191, 154, 94, 0.06);
  border: 1px solid rgba(191, 154, 94, 0.08);
  border-radius: 2px 14px 14px 14px;
  padding: 9px 12px;
  opacity: 0;
  transform: translateY(6px);
  animation: noorMsgIn 0.3s var(--ease-spring) forwards;
  word-wrap: break-word;
}

@keyframes noorMsgIn {
  to { opacity: 1; transform: translateY(0); }
}

.noor-msg strong { color: var(--gold); font-weight: 600; }
.noor-msg em { color: var(--cyan); font-style: normal; font-weight: 500; }

/* ── Typing cursor ── */
.noor-cursor {
  display: inline-block;
  width: 2px;
  height: 13px;
  background: var(--gold);
  margin-left: 1px;
  vertical-align: text-bottom;
  animation: noorCursorBlink 0.6s ease-in-out infinite;
}

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

/* ── "Noor is typing" indicator ── */
.noor-typing-indicator {
  display: flex;
  align-items: center;
  gap: 3px;
  padding: 8px 12px;
  opacity: 0;
  animation: noorMsgIn 0.25s var(--ease-spring) forwards;
}

.noor-typing-indicator span {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--gold);
  opacity: 0.4;
  animation: noorTypeDot 1.4s ease-in-out infinite;
}

.noor-typing-indicator span:nth-child(2) { animation-delay: 0.2s; }
.noor-typing-indicator span:nth-child(3) { animation-delay: 0.4s; }

@keyframes noorTypeDot {
  0%, 60%, 100% { opacity: 0.3; transform: scale(0.8); }
  30%           { opacity: 1; transform: scale(1.2); }
}

/* ── Insight badges inside messages ── */
.noor-msg .noor-insight-badge {
  display: inline-block;
  font-size: 8px;
  font-family: var(--f-label);
  font-weight: 700;
  letter-spacing: 0.6px;
  text-transform: uppercase;
  padding: 1px 6px;
  border-radius: 3px;
  margin-right: 4px;
  vertical-align: middle;
}

/* ── Light theme ── */
[data-theme="light"] .noor-stream {
  background: rgba(255, 255, 255, 0.97);
  border-color: rgba(191, 154, 94, 0.16);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.1);
}

[data-theme="light"] .noor-msg {
  background: rgba(191, 154, 94, 0.04);
  border-color: rgba(191, 154, 94, 0.08);
}

/* ── Responsive ── */
@media (max-width: 480px) {
  .noor-stream {
    width: calc(100vw - 32px);
    right: 16px;
    bottom: 66px;
    max-height: 320px;
  }
}

@media print {
  .noor-stream { display: none !important; }
}

/* ═══════════════════════════════════════════════════════════════════
   NOOR SPOTLIGHT — Highlight elements Noor is talking about
   ═══════════════════════════════════════════════════════════════════ */

.noor-spotlight {
  position: relative;
  z-index: 10;
}

.noor-spotlight::before {
  content: '';
  position: absolute;
  inset: -4px;
  border-radius: inherit;
  border: 2px solid var(--gold);
  box-shadow: 0 0 16px rgba(191, 154, 94, 0.35), inset 0 0 8px rgba(191, 154, 94, 0.08);
  animation: noorSpotlightPulse 2s ease-in-out infinite;
  pointer-events: none;
  z-index: 10;
  border-radius: 12px;
}

@keyframes noorSpotlightPulse {
  0%, 100% { box-shadow: 0 0 12px rgba(191, 154, 94, 0.25), inset 0 0 6px rgba(191, 154, 94, 0.05); opacity: 0.8; }
  50%      { box-shadow: 0 0 24px rgba(191, 154, 94, 0.5), inset 0 0 12px rgba(191, 154, 94, 0.12); opacity: 1; }
}

/* Warning spotlight — red/amber for issues */
.noor-spotlight-warn::before {
  border-color: var(--red);
  box-shadow: 0 0 16px rgba(232, 0, 50, 0.3), inset 0 0 8px rgba(232, 0, 50, 0.06);
  animation: noorSpotlightWarn 2s ease-in-out infinite;
}

@keyframes noorSpotlightWarn {
  0%, 100% { box-shadow: 0 0 12px rgba(232, 0, 50, 0.2); opacity: 0.8; }
  50%      { box-shadow: 0 0 24px rgba(232, 0, 50, 0.45); opacity: 1; }
}

/* Success spotlight — green for praise */
.noor-spotlight-good::before {
  border-color: var(--green);
  box-shadow: 0 0 16px rgba(0, 180, 120, 0.3), inset 0 0 8px rgba(0, 180, 120, 0.06);
  animation: noorSpotlightGood 2s ease-in-out infinite;
}

@keyframes noorSpotlightGood {
  0%, 100% { box-shadow: 0 0 12px rgba(0, 180, 120, 0.2); opacity: 0.8; }
  50%      { box-shadow: 0 0 24px rgba(0, 180, 120, 0.45); opacity: 1; }
}

/* Noor bubble insight type badges */
.noor-insight-badge {
  display: inline-block;
  font-size: 9px;
  font-family: var(--f-label);
  font-weight: 700;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  padding: 2px 7px;
  border-radius: 4px;
  margin-bottom: 4px;
}

.noor-insight-badge.insight-warn {
  background: rgba(232, 0, 50, 0.15);
  color: var(--red);
}

.noor-insight-badge.insight-good {
  background: rgba(0, 180, 120, 0.15);
  color: var(--green);
}

.noor-insight-badge.insight-tip {
  background: rgba(191, 154, 94, 0.15);
  color: var(--gold);
}

.noor-insight-badge.insight-action {
  background: rgba(0, 150, 220, 0.15);
  color: var(--cyan);
}

.noor-insight-badge.insight-milestone {
  background: linear-gradient(135deg, rgba(191, 154, 94, 0.25), rgba(255, 215, 0, 0.2));
  color: #FFD700;
  font-size: 10px;
}

.noor-insight-badge.insight-tour {
  background: rgba(100, 120, 220, 0.15);
  color: #7B8CDE;
}

/* ═══════════════════════════════════════════════════════════════
   SIDEBAR USER CARD
   ═══════════════════════════════════════════════════════════════ */

.sidebar-user {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px;
  background: var(--bg-2);
  border-radius: 8px;
  margin-bottom: 12px;
  border: 1px solid var(--border-1);
}

.sidebar-user-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--cyan), var(--gold));
  color: white;
  font-weight: 700;
  font-size: 12px;
  flex-shrink: 0;
}

.sidebar-user-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
  flex: 1;
  min-width: 0;
}

.sidebar-user-name {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-1);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.sidebar-user-role {
  font-size: 10px;
  color: var(--text-2);
}

.sidebar-logout-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  background: none;
  border: none;
  color: var(--text-2);
  cursor: pointer;
  transition: color 0.3s var(--ease-smooth);
  flex-shrink: 0;
}

.sidebar-logout-btn:hover {
  color: var(--red);
}

/* ═══════════════════════════════════════════════════════════════
   PROFILE PAGE STYLES
   ═══════════════════════════════════════════════════════════════ */

.profile-container {
  padding: 24px;
}

.profile-header-card {
  background: linear-gradient(135deg, var(--bg-2), var(--bg-1));
  border: 1px solid var(--border-1);
  border-radius: 16px;
  padding: 32px;
  display: flex;
  align-items: center;
  gap: 24px;
  margin-bottom: 32px;
}

.profile-avatar-large {
  width: 96px;
  height: 96px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 40px;
  font-weight: 700;
  color: white;
  flex-shrink: 0;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
}

.profile-header-info {
  flex: 1;
}

.profile-role-badge {
  display: inline-block;
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
  margin-top: 8px;
}

.profile-stats-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 12px;
  margin-bottom: 32px;
}

.profile-stat-card {
  background: var(--bg-1);
  border: 1px solid var(--border-1);
  border-radius: 12px;
  padding: 16px;
  text-align: center;
}

/* ═══════════════════════════════════════════════════════════════
   ADMIN PANEL STYLES
   ═══════════════════════════════════════════════════════════════ */

.admin-stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 12px;
  margin-bottom: 32px;
}

.admin-user-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12px;
}

.admin-user-table thead tr {
  border-bottom: 2px solid var(--border-1);
}

.admin-user-table th {
  text-align: left;
  padding: 12px;
  color: var(--text-2);
  font-weight: 600;
}

.admin-user-table td {
  padding: 12px;
  border-bottom: 1px solid var(--border-1);
  color: var(--text-1);
}

.admin-role-card {
  background: var(--bg-2);
  border-left: 4px solid var(--cyan);
  border-radius: 8px;
  padding: 12px;
  margin-bottom: 8px;
}

/* ═══ NOOR QUICK-CAPTURE ═══ */
.noor-quick-capture {
  position: fixed;
  bottom: 80px;
  right: 20px;
  z-index: 8600;
  opacity: 0;
  transform: translateY(10px) scale(0.9);
  pointer-events: none;
  transition: opacity 0.25s var(--ease-spring), transform 0.25s var(--ease-spring);
}

.noor-quick-capture.noor-qc-show {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}

.noor-quick-input {
  width: 260px;
  padding: 10px 14px;
  font-size: 13px;
  font-family: var(--f-body);
  color: var(--text);
  background: rgba(15, 20, 40, 0.85);
  backdrop-filter: blur(24px) saturate(1.6);
  border: 1px solid rgba(191, 154, 94, 0.3);
  border-radius: 12px;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.noor-quick-input:focus {
  border-color: var(--gold);
  box-shadow: 0 0 16px rgba(191, 154, 94, 0.2), 0 4px 20px rgba(0, 0, 0, 0.3);
}

.noor-quick-input::placeholder {
  color: rgba(180, 190, 210, 0.4);
  font-size: 12px;
}

[data-theme="light"] .noor-quick-input {
  background: rgba(255, 255, 255, 0.9);
  border-color: rgba(191, 154, 94, 0.2);
  color: var(--navy);
}

/* ═══ NOOR MILESTONE CELEBRATION OVERLAY ═══ */
.noor-milestone-overlay {
  position: fixed;
  inset: 0;
  z-index: 9999;
  pointer-events: none;
  opacity: 0;
}

.noor-milestone-overlay.noor-celebrating {
  opacity: 1;
  animation: noorCelebrateFade 3s ease-out forwards;
}

.noor-milestone-overlay.noor-celebrating::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at center, rgba(191, 154, 94, 0.12) 0%, transparent 70%);
  animation: noorCelebrateGlow 1.5s ease-out;
}

@keyframes noorCelebrateFade {
  0%   { opacity: 1; }
  70%  { opacity: 1; }
  100% { opacity: 0; }
}

@keyframes noorCelebrateGlow {
  0%   { transform: scale(0.3); opacity: 0; }
  50%  { transform: scale(1.2); opacity: 1; }
  100% { transform: scale(1); opacity: 0.6; }
}

/* Confetti particles inside overlay */
.noor-confetti {
  position: absolute;
  width: 6px;
  height: 6px;
  border-radius: 1px;
  opacity: 0;
  animation: noorConfettiFall 2.5s ease-out forwards;
}

@keyframes noorConfettiFall {
  0%   { transform: translateY(-20px) rotate(0deg) scale(0); opacity: 0; }
  10%  { opacity: 1; transform: translateY(0) rotate(30deg) scale(1); }
  100% { transform: translateY(100vh) rotate(720deg) scale(0.3); opacity: 0; }
}

/* ── Noor action buttons inside messages ── */
.noor-action-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  margin-top: 6px;
  padding: 5px 12px;
  font-size: 10.5px;
  font-family: var(--f-label);
  font-weight: 600;
  letter-spacing: 0.4px;
  text-transform: uppercase;
  color: var(--navy);
  background: linear-gradient(135deg, var(--gold) 0%, rgba(191, 154, 94, 0.8) 100%);
  border: none;
  border-radius: 6px;
  cursor: pointer;
  transition: transform 0.15s var(--ease-spring), box-shadow 0.15s, filter 0.15s;
  white-space: nowrap;
}

.noor-action-btn:hover {
  transform: translateY(-1px) scale(1.04);
  box-shadow: 0 4px 16px rgba(191, 154, 94, 0.35);
  filter: brightness(1.1);
}

.noor-action-btn:active {
  transform: scale(0.97);
}

.noor-action-btn svg {
  width: 12px;
  height: 12px;
  flex-shrink: 0;
}

/* Variant: secondary/outline action */
.noor-action-btn.noor-action-secondary {
  background: transparent;
  border: 1px solid rgba(191, 154, 94, 0.3);
  color: var(--gold);
}

.noor-action-btn.noor-action-secondary:hover {
  background: rgba(191, 154, 94, 0.1);
  border-color: rgba(191, 154, 94, 0.5);
}

[data-theme="light"] .noor-action-btn {
  color: #fff;
  background: linear-gradient(135deg, var(--navy) 0%, rgba(0, 51, 160, 0.85) 100%);
}

[data-theme="light"] .noor-action-btn.noor-action-secondary {
  background: transparent;
  border-color: rgba(0, 51, 160, 0.25);
  color: var(--navy);
}

/* ═══════════════════════════════════════════════════════════════════
   CHECKLIST PAGE — Noor-powered task tracker
   ═══════════════════════════════════════════════════════════════════ */

.checklist-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 16px;
  height: 16px;
  padding: 0 4px;
  font-size: 9px;
  font-family: var(--f-label);
  font-weight: 700;
  color: #fff;
  background: var(--red);
  border-radius: 8px;
  margin-left: auto;
  line-height: 1;
}

.checklist-wrap { max-width: 700px; }

.checklist-add-bar {
  display: flex;
  gap: 8px;
  margin-bottom: 16px;
}

.checklist-input {
  flex: 1;
  padding: 10px 14px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--card);
  color: var(--text-1);
  font-size: 13px;
  font-family: var(--f-body);
  transition: border-color 0.2s, box-shadow 0.2s;
}

.checklist-input:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(191, 154, 94, 0.12);
}

.checklist-stats {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 16px;
  padding: 8px 0;
  border-bottom: 1px solid var(--border);
  font-size: 12px;
  color: var(--text-3);
}

.checklist-stat {
  display: flex;
  align-items: center;
  gap: 4px;
}

.checklist-stat strong { color: var(--text-1); }

.checklist-clear {
  margin-left: auto;
  font-size: 11px;
  color: var(--red);
  cursor: pointer;
  background: none;
  border: none;
  padding: 0;
}

.checklist-clear:hover { text-decoration: underline; }

.checklist-empty {
  text-align: center;
  padding: 48px 24px;
  color: var(--text-3);
}

.checklist-empty-icon {
  color: var(--gold);
  opacity: 0.25;
  margin-bottom: 12px;
}

.checklist-empty p { margin: 4px 0; font-size: 13px; }
.checklist-empty .text-muted { font-size: 11.5px; max-width: 380px; margin: 8px auto 0; line-height: 1.6; }

.checklist-section { margin-bottom: 20px; }

.checklist-section-title {
  font-family: var(--f-label);
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--text-3);
  margin-bottom: 8px;
}

.checklist-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 10px;
  background: var(--card);
  border: 1px solid var(--border);
  margin-bottom: 6px;
  transition: background 0.15s, border-color 0.15s;
}

.checklist-item:hover {
  border-color: rgba(191, 154, 94, 0.2);
  background: rgba(191, 154, 94, 0.03);
}

.checklist-check {
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1.5px solid var(--border);
  border-radius: 6px;
  background: none;
  color: var(--text-3);
  cursor: pointer;
  transition: border-color 0.15s, color 0.15s, background 0.15s;
  padding: 0;
  margin-top: 1px;
}

.checklist-check:hover {
  border-color: var(--gold);
  color: var(--gold);
}

.checklist-check-done {
  border-color: var(--green);
  color: var(--green);
  background: rgba(0, 180, 120, 0.08);
}

.checklist-content { flex: 1; min-width: 0; }

.checklist-text {
  font-size: 13px;
  color: var(--text-1);
  line-height: 1.5;
  word-wrap: break-word;
}

.checklist-text-done {
  text-decoration: line-through;
  opacity: 0.5;
}

.checklist-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 4px;
  font-size: 10.5px;
  color: var(--text-3);
}

.checklist-source {
  font-family: var(--f-label);
  font-weight: 600;
  letter-spacing: 0.4px;
  text-transform: uppercase;
  font-size: 9px;
  padding: 1px 5px;
  border-radius: 3px;
  background: rgba(191, 154, 94, 0.1);
  color: var(--gold);
}

.checklist-page-link {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  background: none;
  border: none;
  color: var(--cyan);
  font-size: 10px;
  cursor: pointer;
  padding: 0;
}

.checklist-page-link:hover { text-decoration: underline; }

.checklist-time { opacity: 0.7; }

.checklist-delete {
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
  background: none;
  color: var(--text-3);
  cursor: pointer;
  border-radius: 4px;
  opacity: 0;
  transition: opacity 0.15s, color 0.15s, background 0.15s;
  padding: 0;
}

.checklist-item:hover .checklist-delete { opacity: 1; }
.checklist-delete:hover { color: var(--red); background: rgba(232, 0, 50, 0.08); }

.checklist-done-section { opacity: 0.7; }

.checklist-item .noor-insight-badge {
  font-size: 8px;
  vertical-align: middle;
  margin-right: 4px;
}

/* ═══════════════════════════════════════════════════════════════════
   NOOR PANEL — Slide-up smart helper panel
   ═══════════════════════════════════════════════════════════════════ */

.noor-panel {
  position: fixed;
  bottom: 80px;
  right: 20px;
  width: 360px;
  max-height: 0;
  overflow: hidden;
  background: rgba(10, 15, 32, 0.96);
  backdrop-filter: blur(24px) saturate(1.6);
  -webkit-backdrop-filter: blur(24px) saturate(1.6);
  border: 1px solid rgba(191, 154, 94, 0.18);
  border-radius: 20px;
  box-shadow:
    0 16px 48px rgba(0, 0, 0, 0.5),
    0 0 0 1px rgba(191, 154, 94, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.04);
  z-index: 8600;
  transition: max-height 0.35s var(--ease-spring), opacity 0.25s;
  opacity: 0;
}

.noor-panel.noor-open {
  max-height: 540px;
  opacity: 1;
  overflow: visible;
}

.noor-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 16px 10px;
  border-bottom: 1px solid rgba(191, 154, 94, 0.1);
}

.noor-title-row {
  display: flex;
  align-items: center;
  gap: 8px;
}

.noor-glow-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 8px rgba(191, 154, 94, 0.6);
  animation: noorDotPulse 2s ease-in-out infinite;
}

@keyframes noorDotPulse {
  0%, 100% { opacity: 0.6; }
  50%      { opacity: 1; }
}

.noor-title {
  font-family: var(--f-head);
  font-size: 15px;
  font-weight: 700;
  color: var(--gold);
  letter-spacing: 0.5px;
}

.noor-subtitle {
  font-size: 11px;
  color: var(--text-3);
  font-family: var(--f-label);
}

.noor-close {
  background: none;
  border: none;
  color: var(--text-3);
  cursor: pointer;
  padding: 4px;
  border-radius: 6px;
  display: flex;
  transition: color 0.2s, background 0.2s;
}

.noor-close:hover {
  color: var(--text-1);
  background: rgba(191, 154, 94, 0.1);
}

/* ── Noor Tabs ── */

.noor-tabs {
  display: flex;
  gap: 2px;
  padding: 8px 12px 0;
}

.noor-tab {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  padding: 7px 4px;
  border: none;
  background: transparent;
  color: var(--text-3);
  font-size: 11px;
  font-family: var(--f-label);
  border-radius: 8px 8px 0 0;
  cursor: pointer;
  border-bottom: 2px solid transparent;
  transition: color 0.2s, border-color 0.2s, background 0.2s;
}

.noor-tab:hover {
  color: var(--text-2);
  background: rgba(191, 154, 94, 0.05);
}

.noor-tab-active {
  color: var(--gold) !important;
  border-bottom-color: var(--gold) !important;
  background: rgba(191, 154, 94, 0.08) !important;
}

/* ── Noor Body ── */

.noor-body {
  max-height: 380px;
  overflow-y: auto;
  overflow-x: hidden;
  padding: 12px;
}

.noor-body::-webkit-scrollbar {
  width: 4px;
}

.noor-body::-webkit-scrollbar-track {
  background: transparent;
}

.noor-body::-webkit-scrollbar-thumb {
  background: rgba(191, 154, 94, 0.2);
  border-radius: 4px;
}

/* ── Tips Tab ── */

.noor-tips-context {
  font-family: var(--f-label);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--text-3);
  padding: 4px 4px 8px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.noor-tip-card {
  background: rgba(191, 154, 94, 0.06);
  border: 1px solid rgba(191, 154, 94, 0.1);
  border-radius: 12px;
  padding: 12px 14px;
  margin-bottom: 8px;
  animation: noorFadeIn 0.3s ease backwards;
}

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

.noor-tip-title {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-1);
  margin-bottom: 4px;
}

.noor-tip-body {
  font-size: 12px;
  color: var(--text-2);
  line-height: 1.5;
}

/* ── Search Tab ── */

.noor-search-box {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  background: rgba(191, 154, 94, 0.06);
  border: 1px solid rgba(191, 154, 94, 0.12);
  border-radius: 10px;
  margin-bottom: 10px;
}

.noor-search-icon {
  color: var(--gold);
  display: flex;
  flex-shrink: 0;
}

.noor-search-input {
  flex: 1;
  background: transparent;
  border: none;
  outline: none;
  color: var(--text-1);
  font-size: 13px;
  font-family: var(--f-body);
}

.noor-search-input::placeholder {
  color: var(--text-3);
}

.noor-search-hint {
  font-family: var(--f-label);
  font-size: 9px;
  color: var(--text-3);
  background: rgba(191, 154, 94, 0.08);
  padding: 2px 5px;
  border-radius: 3px;
}

.noor-cmd-list {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.noor-cmd-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  border: none;
  background: transparent;
  border-radius: 8px;
  color: var(--text-2);
  font-size: 13px;
  font-family: var(--f-body);
  cursor: pointer;
  text-align: left;
  transition: background 0.15s, color 0.15s;
}

.noor-cmd-item:hover {
  background: rgba(191, 154, 94, 0.1);
  color: var(--text-1);
}

.noor-cmd-current {
  background: rgba(191, 154, 94, 0.08) !important;
  color: var(--gold) !important;
}

.noor-cmd-icon {
  display: flex;
  color: var(--gold);
  flex-shrink: 0;
}

.noor-cmd-label {
  flex: 1;
}

.noor-cmd-here {
  font-size: 9px;
  font-family: var(--f-label);
  color: var(--gold);
  background: rgba(191, 154, 94, 0.12);
  padding: 2px 6px;
  border-radius: 4px;
}

.noor-cmd-empty {
  text-align: center;
  color: var(--text-3);
  font-size: 12px;
  padding: 20px;
}

/* ── Tours Tab ── */

.noor-tours-intro {
  font-size: 12px;
  color: var(--text-3);
  padding: 4px 4px 10px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.noor-tour-card {
  display: block;
  width: 100%;
  text-align: left;
  background: rgba(191, 154, 94, 0.06);
  border: 1px solid rgba(191, 154, 94, 0.1);
  border-radius: 12px;
  padding: 12px 14px;
  margin-bottom: 8px;
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s;
}

.noor-tour-card:hover {
  background: rgba(191, 154, 94, 0.12);
  border-color: rgba(191, 154, 94, 0.2);
}

.noor-tour-title {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-1);
  margin-bottom: 4px;
}

.noor-tour-desc {
  font-size: 11px;
  color: var(--text-3);
  line-height: 1.4;
  margin-bottom: 6px;
}

.noor-tour-meta {
  font-size: 10px;
  color: var(--gold);
  font-family: var(--f-label);
  display: flex;
  align-items: center;
  gap: 4px;
}

/* ── Tour Overlay ── */

.noor-tour-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 8, 20, 0.65);
  z-index: 9500;
  animation: noorOverlayIn 0.25s ease;
}

@keyframes noorOverlayIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

.noor-tour-highlight {
  position: fixed;
  border: 2px solid var(--gold);
  border-radius: 8px;
  box-shadow: 0 0 0 4000px rgba(0, 8, 20, 0.65), 0 0 24px rgba(191, 154, 94, 0.3);
  z-index: 9501;
  pointer-events: none;
  animation: noorHighlight 0.3s var(--ease-spring);
}

@keyframes noorHighlight {
  from { opacity: 0; transform: scale(1.1); }
  to   { opacity: 1; transform: scale(1); }
}

.noor-tour-tooltip {
  position: fixed;
  width: 300px;
  max-width: 85vw;
  background: rgba(12, 18, 36, 0.97);
  backdrop-filter: blur(16px);
  border: 1px solid rgba(191, 154, 94, 0.25);
  border-radius: 14px;
  padding: 16px;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.5);
  z-index: 9502;
  animation: noorTooltipIn 0.25s var(--ease-spring);
}

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

.noor-tour-step-badge {
  font-family: var(--f-label);
  font-size: 10px;
  color: var(--gold);
  background: rgba(191, 154, 94, 0.12);
  padding: 2px 8px;
  border-radius: 4px;
  display: inline-block;
  margin-bottom: 8px;
}

.noor-tour-step-title {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-1);
  margin-bottom: 6px;
}

.noor-tour-step-body {
  font-size: 12px;
  color: var(--text-2);
  line-height: 1.5;
  margin-bottom: 12px;
}

.noor-tour-step-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.noor-tour-btn {
  padding: 6px 12px;
  border-radius: 8px;
  border: 1px solid rgba(191, 154, 94, 0.15);
  background: transparent;
  color: var(--text-2);
  font-size: 12px;
  font-family: var(--f-body);
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
}

.noor-tour-btn:hover {
  background: rgba(191, 154, 94, 0.1);
  color: var(--text-1);
}

.noor-tour-btn-next {
  background: rgba(191, 154, 94, 0.15) !important;
  color: var(--gold) !important;
  border-color: rgba(191, 154, 94, 0.25) !important;
}

.noor-tour-btn-next:hover {
  background: rgba(191, 154, 94, 0.25) !important;
}

.noor-tour-btn-skip {
  color: var(--text-3) !important;
  border-color: transparent !important;
}

/* ── Chat Tab ── */

.noor-chat-messages {
  max-height: 260px;
  overflow-y: auto;
  padding-bottom: 4px;
}

.noor-chat-messages::-webkit-scrollbar {
  width: 3px;
}

.noor-chat-messages::-webkit-scrollbar-thumb {
  background: rgba(191, 154, 94, 0.15);
  border-radius: 3px;
}

.noor-chat-bubble {
  display: flex;
  gap: 8px;
  margin-bottom: 10px;
  animation: noorFadeIn 0.2s ease backwards;
}

.noor-bubble-noor {
  justify-content: flex-start;
}

.noor-bubble-user {
  justify-content: flex-end;
}

.noor-bubble-avatar {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: rgba(191, 154, 94, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--gold);
}

.noor-bubble-content {
  max-width: 80%;
}

.noor-bubble-noor .noor-bubble-content {
  background: rgba(191, 154, 94, 0.08);
  border: 1px solid rgba(191, 154, 94, 0.1);
  border-radius: 2px 14px 14px 14px;
  padding: 10px 12px;
}

.noor-bubble-user .noor-bubble-content {
  background: rgba(0, 51, 160, 0.2);
  border: 1px solid rgba(0, 51, 160, 0.15);
  border-radius: 14px 2px 14px 14px;
  padding: 10px 12px;
}

.noor-bubble-text {
  font-size: 12px;
  color: var(--text-1);
  line-height: 1.5;
}

.noor-bubble-action {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-top: 6px;
  padding: 3px 8px;
  border: 1px solid rgba(191, 154, 94, 0.15);
  border-radius: 6px;
  background: transparent;
  color: var(--gold);
  font-size: 11px;
  cursor: pointer;
  transition: background 0.15s;
}

.noor-bubble-action:hover {
  background: rgba(191, 154, 94, 0.1);
}

/* Typing indicator */
.noor-typing .noor-typing-dots {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 4px 0;
}

.noor-typing .noor-typing-dots span {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--gold);
  animation: noorTypingBounce 1.2s ease-in-out infinite;
}

.noor-typing .noor-typing-dots span:nth-child(2) { animation-delay: 0.15s; }
.noor-typing .noor-typing-dots span:nth-child(3) { animation-delay: 0.3s; }

@keyframes noorTypingBounce {
  0%, 60%, 100% { opacity: 0.3; transform: translateY(0); }
  30%           { opacity: 1; transform: translateY(-4px); }
}

/* Suggestion chips */
.noor-chat-suggestions {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding: 6px 0;
}

.noor-suggestion-chip {
  padding: 4px 10px;
  border-radius: 20px;
  border: 1px solid rgba(191, 154, 94, 0.15);
  background: rgba(191, 154, 94, 0.06);
  color: var(--text-2);
  font-size: 11px;
  font-family: var(--f-body);
  cursor: pointer;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
  white-space: nowrap;
}

.noor-suggestion-chip:hover {
  background: rgba(191, 154, 94, 0.15);
  color: var(--gold);
  border-color: rgba(191, 154, 94, 0.25);
}

/* Chat input bar */
.noor-chat-input-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px;
  margin-top: 4px;
  background: rgba(191, 154, 94, 0.04);
  border: 1px solid rgba(191, 154, 94, 0.1);
  border-radius: 12px;
}

.noor-chat-input {
  flex: 1;
  background: transparent;
  border: none;
  outline: none;
  color: var(--text-1);
  font-size: 13px;
  font-family: var(--f-body);
  padding: 4px 2px;
}

.noor-chat-input::placeholder {
  color: var(--text-3);
}

.noor-chat-send {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  border: none;
  background: linear-gradient(135deg, var(--gold), rgba(191, 154, 94, 0.6));
  color: #0a0f20;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex-shrink: 0;
  transition: transform 0.15s, opacity 0.15s;
}

.noor-chat-send:hover {
  transform: scale(1.08);
}

/* ── Light theme overrides for Dock & Noor ── */

[data-theme="light"] .dock {
  background: rgba(255, 255, 255, 0.88);
  border-color: rgba(191, 154, 94, 0.2);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12), 0 0 0 1px rgba(191, 154, 94, 0.1);
}

[data-theme="light"] .dock-item:hover {
  background: rgba(191, 154, 94, 0.1);
}

[data-theme="light"] .dock-item:hover::after {
  background: rgba(255, 255, 255, 0.95);
  border-color: rgba(191, 154, 94, 0.15);
}

[data-theme="light"] .cmd-palette {
  background: rgba(255, 255, 255, 0.97);
  border-color: rgba(0, 0, 0, 0.1);
  box-shadow: 0 -12px 60px rgba(0, 0, 0, 0.15);
}
[data-theme="light"] .cmd-overlay {
  background: rgba(0, 0, 0, 0.3);
}

[data-theme="light"] .noor-panel {
  background: rgba(255, 255, 255, 0.97);
  border-color: rgba(191, 154, 94, 0.15);
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.12);
}

[data-theme="light"] .noor-orb {
  background: linear-gradient(135deg, rgba(191, 154, 94, 0.15) 0%, rgba(0, 51, 160, 0.15) 100%);
}

[data-theme="light"] .noor-tip-card,
[data-theme="light"] .noor-tour-card {
  background: rgba(191, 154, 94, 0.05);
  border-color: rgba(191, 154, 94, 0.1);
}

[data-theme="light"] .noor-bubble-noor .noor-bubble-content {
  background: rgba(191, 154, 94, 0.06);
}

[data-theme="light"] .noor-bubble-user .noor-bubble-content {
  background: rgba(0, 51, 160, 0.08);
}

[data-theme="light"] .noor-tour-tooltip {
  background: rgba(255, 255, 255, 0.98);
}

[data-theme="light"] .profile-header-card {
  background: linear-gradient(135deg, #e8ecf5, #f0f3fa);
  border-color: #d0d9eb;
}

[data-theme="light"] .profile-stat-card {
  background: #ffffff;
  border-color: #d0d9eb;
}

/* ── Responsive: hide dock on small screens ── */

@media (max-width: 768px) {
  .dock-wrap {
    bottom: 8px;
  }
  .dock {
    padding: 4px 6px;
    gap: 1px;
  }
  .dock-item {
    width: 34px;
    height: 34px;
  }
  .noor-panel {
    width: calc(100vw - 40px);
    right: 20px;
    bottom: 76px;
  }
}

@media (max-width: 480px) {
  .dock-wrap {
    display: none !important;
  }
  .noor-orb {
    bottom: 12px;
    right: 12px;
    width: 44px;
    height: 44px;
  }
}

/* ── Print: hide dock & noor ── */

@media print {
  .dock-wrap, .noor-orb, .noor-panel, .cmd-overlay, .noor-tour-overlay {
    display: none !important;
  }
}

/* ── Adjust main content to not be hidden behind dock ── */
.page-wrap {
  padding-bottom: 72px;
}
