/* ═══════════════════════════════════════════════════
   Marasim — مراسم | SLC Events Management
   marasim-styles.css — Professional Government UI Design System
   ═══════════════════════════════════════════════════ */

@import url('https://fonts.googleapis.com/css2?family=Orbitron:wght@400;600;700;800;900&family=Share+Tech+Mono&family=DM+Sans:opsz,wght@9..40,300;9..40,400;9..40,500;9..40,600;9..40,700&family=Noto+Kufi+Arabic:wght@400;500;600;700&display=swap');

/* ══════════════════════════════════════════════════
   CSS VARIABLES — Professional Government Palette
   ══════════════════════════════════════════════════ */
:root {
  /* ── SLC Official Brand Colors ── */
  --slc-blue: #0033A0;
  --slc-blue-deep: #001d5e;
  --slc-blue-light: #1a4fbf;
  --slc-gold: #BF9A5E;
  --slc-red: #E80032;
  --slc-silver: #B2B2B2;

  /* SLC Navy Branding — derived from official #0033A0 */
  --bg-0: #020819;
  --bg-1: #05102e;
  --bg-2: #0a1a42;
  --bg-3: #102550;
  --bg-4: #1a3366;

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

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

  /* Gold Accents — Official SLC Gold #BF9A5E */
  --gold: #BF9A5E;
  --gold-light: #d4b07a;
  --gold-dark: #9a7a45;

  /* Status Colors */
  --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 — SLC Blue tinted */
  --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 */
  --topbar-bg: rgba(3, 10, 30, 0.90);
  --modal-bg: rgba(0, 0, 0, 0.65);

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

  /* Gold Glow — from official #BF9A5E */
  --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);

  /* SLC Blue Glow */
  --blue-glow: rgba(0, 51, 160, 0.3);
  --blue-bright-glow: rgba(0, 51, 160, 0.5);

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

  /* Stat Accent (dynamic per card) */
  --stat-accent: var(--slc-blue-light);
  --cat-color: var(--slc-blue-light);
}

[data-theme="light"] {
  --bg-0: #f0f4f8;
  --bg-1: #ffffff;
  --bg-2: #f8fafc;
  --bg-3: #f0f3f8;
  --bg-4: #e8ecf4;
  --border-1: #d0d8e6;
  --border-2: #b8c4d8;
  --text-1: #0a1633;
  --text-2: #3a4a66;
  --text-3: #6a7fa0;
  --gold: #8a7040;
  --gold-light: #a6884e;
  --gold-dark: #6b5630;
  --slc-blue: #0033A0;
  --slc-blue-deep: #001d5e;
  --slc-blue-light: #1a4fbf;
  --slc-gold: #9a7a45;
  --slc-red: #cc0028;
  --slc-silver: #8a8a8a;
  --cyan: #0055aa;
  --teal: #088870;
  --green: #008860;
  --red: #cc0028;
  --amber: #c08800;
  --blue: #0033A0;
  --purple: #5c3da0;
  --topbar-bg: rgba(255, 255, 255, 0.94);
  --modal-bg: rgba(0, 20, 60, 0.30);
  --glass-bg: rgba(255, 255, 255, 0.75);
  --glass-border: rgba(0, 51, 160, 0.08);
  --glass-border-hover: rgba(0, 51, 160, 0.18);
  --gold-glow: rgba(138, 112, 64, 0.18);
  --gold-dim: rgba(138, 112, 64, 0.06);
  --blue-glow: rgba(0, 51, 160, 0.15);
  --blue-bright-glow: rgba(0, 51, 160, 0.25);
  --input-bg: rgba(0, 20, 80, 0.03);
  --input-bg-focus: rgba(0, 20, 80, 0.06);
  --input-bg-hover: rgba(0, 20, 80, 0.04);
}

/* ── Light Theme Element Overrides ── */
[data-theme="light"] body {
  color: var(--text-2);
}

[data-theme="light"] .sidebar {
  background: #ffffff;
  border-right-color: var(--border-1);
  box-shadow: 2px 0 12px rgba(0, 0, 0, 0.04);
}

[data-theme="light"] .sidebar-brand {
  background: rgba(138, 109, 27, 0.04);
}

[data-theme="light"] .navbar {
  background: var(--topbar-bg);
  backdrop-filter: blur(20px) saturate(1.2);
  border-bottom-color: var(--border-1);
}

[data-theme="light"] .navbar::before {
  background: linear-gradient(90deg, transparent 5%, var(--gold) 30%, var(--gold) 50%, rgba(138, 109, 27, 0.3) 70%, transparent 95%);
  opacity: 0.4;
}

[data-theme="light"] .navbar.scrolled {
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.06), 0 1px 3px rgba(0, 0, 0, 0.04);
}

[data-theme="light"] .navbar-search-kbd {
  background: var(--bg-3);
  border-color: var(--border-1);
}

[data-theme="light"] .stat {
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(8px);
  border-color: var(--border-1);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

[data-theme="light"] .stat:hover {
  border-color: var(--gold);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08), 0 0 12px rgba(138, 109, 27, 0.06);
}

[data-theme="light"] .stat::after {
  background: radial-gradient(circle at top right, rgba(138, 109, 27, 0.03), transparent);
}

[data-theme="light"] .dash-panel {
  background: rgba(255, 255, 255, 0.8);
  border-color: var(--border-1);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

[data-theme="light"] .dash-panel:hover {
  border-color: rgba(138, 109, 27, 0.2);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
}

[data-theme="light"] .event-card {
  background: rgba(255, 255, 255, 0.85);
  border-color: var(--border-1);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

[data-theme="light"] .event-card:hover {
  border-color: rgba(138, 109, 27, 0.25);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08), 0 0 12px rgba(138, 109, 27, 0.06);
}

[data-theme="light"] .calendar-day {
  background: rgba(255, 255, 255, 0.7);
  border-color: var(--border-1);
}

[data-theme="light"] .calendar-day:not(.empty):hover {
  border-color: rgba(138, 109, 27, 0.25);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
}

[data-theme="light"] .calendar-day.today {
  border-color: var(--gold);
  background: rgba(138, 109, 27, 0.06);
  box-shadow: 0 0 12px rgba(138, 109, 27, 0.08);
}

[data-theme="light"] .filter-select {
  background: rgba(255, 255, 255, 0.8);
  border-color: var(--border-1);
  color: var(--text-2);
}

[data-theme="light"] .filter-select:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(138, 109, 27, 0.08);
}

[data-theme="light"] .form-group input:focus,
[data-theme="light"] .form-group select:focus,
[data-theme="light"] .form-group textarea:focus {
  box-shadow: 0 0 0 3px rgba(138, 109, 27, 0.08), 0 0 8px rgba(138, 109, 27, 0.04);
}

[data-theme="light"] .modal {
  background: #ffffff;
  border-color: var(--border-1);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15), 0 0 20px rgba(0, 0, 0, 0.04);
}

[data-theme="light"] .modal::before {
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
  opacity: 0.5;
}

[data-theme="light"] .navbar-search-results {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(16px);
  border-color: var(--border-1);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.12);
}

[data-theme="light"] .navbar-notif-panel {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(16px);
  border-color: var(--border-1);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.12);
}

[data-theme="light"] .emp-card {
  background: rgba(255, 255, 255, 0.85);
  border-color: var(--border-1);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

[data-theme="light"] .emp-card:hover {
  border-color: rgba(138, 109, 27, 0.2);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
}

[data-theme="light"] .settings-card {
  background: rgba(255, 255, 255, 0.85);
  border-color: var(--border-1);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

[data-theme="light"] .reg-card {
  background: rgba(255, 255, 255, 0.85);
  border-color: var(--border-1);
}

[data-theme="light"] .analytics-card {
  background: rgba(255, 255, 255, 0.85);
  border-color: var(--border-1);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

[data-theme="light"] .archive-card {
  background: rgba(255, 255, 255, 0.85);
  border-color: var(--border-1);
}

[data-theme="light"] .att-card {
  background: rgba(255, 255, 255, 0.85);
  border-color: var(--border-1);
}

[data-theme="light"] .day-event-card {
  background: rgba(0, 0, 0, 0.02);
  border-color: var(--border-1);
}

[data-theme="light"] .day-event-card:hover {
  background: rgba(138, 109, 27, 0.05);
  border-color: rgba(138, 109, 27, 0.15);
}

[data-theme="light"] ::selection {
  background: rgba(138, 109, 27, 0.15);
}

[data-theme="light"] ::-webkit-scrollbar-thumb {
  background: var(--border-2);
}

[data-theme="light"] ::-webkit-scrollbar-thumb:hover {
  background: rgba(138, 109, 27, 0.3);
}

[data-theme="light"] .nav-btn:hover {
  background: rgba(138, 109, 27, 0.06);
}

[data-theme="light"] .nav-btn.active {
  background: rgba(138, 109, 27, 0.08);
}

[data-theme="light"] .nav-btn:hover .nav-icon svg,
[data-theme="light"] .nav-btn.active .nav-icon svg {
  filter: drop-shadow(0 0 4px rgba(138, 109, 27, 0.25));
}

[data-theme="light"] .btn {
  border-color: var(--border-1);
}

[data-theme="light"] .donut-chart text {
  fill: var(--text-1);
}

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

html {
  font-size: 15px;
}

body {
  font-family: var(--font);
  background: var(--bg-0);
  color: var(--text-2);
  overflow: hidden;
  height: 100vh;
  letter-spacing: -0.3px;
}

[dir="rtl"] body,
[dir="rtl"] * {
  font-family: var(--ar), var(--font);
}

::selection {
  background: rgba(191, 154, 94, 0.2);
  color: var(--text-1);
}

::-webkit-scrollbar {
  width: 5px;
}

::-webkit-scrollbar-track {
  background: var(--bg-1);
}

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

::-webkit-scrollbar-thumb:hover {
  background: rgba(191, 154, 94, 0.2);
}

/* ══════════════════════════════════════════════════
   BACKGROUND ATMOSPHERE — Grid + Particles + Scanline
   ══════════════════════════════════════════════════ */
.bg-grid {
  position: fixed; inset: 0; z-index: 0; pointer-events: none; overflow: hidden;
}
.bg-grid::before {
  content: "";
  position: absolute; inset: -50%;
  background-image:
    linear-gradient(rgba(26, 58, 106, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(26, 58, 106, 0.08) 1px, transparent 1px);
  background-size: 60px 60px;
  transform: perspective(600px) rotateX(60deg);
  transform-origin: center top;
}
.bg-grid::after {
  content: "";
  position: absolute; inset: 0;
  background: radial-gradient(ellipse 80% 50% at 50% 0%, rgba(191, 154, 94, 0.03) 0%, transparent 60%),
              radial-gradient(ellipse 60% 40% at 30% 100%, rgba(13, 34, 64, 0.4) 0%, transparent 50%);
}

[data-theme="light"] .bg-grid::before {
  background-image:
    linear-gradient(rgba(158, 126, 46, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(158, 126, 46, 0.04) 1px, transparent 1px);
}
[data-theme="light"] .bg-grid::after {
  background: radial-gradient(ellipse 80% 50% at 50% 0%, rgba(158, 126, 46, 0.02) 0%, transparent 60%);
}

.particles {
  position: fixed; inset: 0; z-index: 0; pointer-events: none; overflow: hidden;
}
.particle {
  position: absolute;
  width: 3px; height: 3px;
  background: var(--gold);
  border-radius: 50%;
  opacity: 0;
  animation: float 6s ease-in-out infinite;
}
.particle:nth-child(1) { left: 12%; top: 18%; opacity: 0.2; animation-delay: 0s; animation-duration: 7s; }
.particle:nth-child(2) { left: 42%; top: 55%; opacity: 0.15; animation-delay: 1s; animation-duration: 5s; }
.particle:nth-child(3) { left: 72%; top: 25%; opacity: 0.18; animation-delay: 2s; animation-duration: 8s; }
.particle:nth-child(4) { left: 88%; top: 65%; opacity: 0.12; animation-delay: 0.5s; animation-duration: 6s; }
.particle:nth-child(5) { left: 22%; top: 78%; opacity: 0.15; animation-delay: 3s; animation-duration: 9s; }
.particle:nth-child(6) { left: 58%; top: 12%; opacity: 0.13; animation-delay: 1.5s; animation-duration: 7.5s; }

[data-theme="light"] .particles { opacity: 0.4; }

/* Scanline overlay */
.scanline-overlay {
  position: fixed; inset: 0; z-index: 9998;
  pointer-events: none;
  background: repeating-linear-gradient(0deg, transparent 0px, transparent 3px,
    rgba(0, 10, 30, 0.03) 3px, rgba(0, 10, 30, 0.03) 6px);
}
[data-theme="light"] .scanline-overlay { opacity: 0; }

/* ══════════════════════════════════════════════════
   AURORA BACKGROUND — Animated Ambient Motion
   ══════════════════════════════════════════════════ */
.aurora-layer {
  position: fixed;
  border-radius: 50%;
  filter: blur(80px);
  pointer-events: none;
  z-index: 0;
}

.aurora-l1 {
  width: 50%; height: 50%; top: -15%; left: -10%;
  background: radial-gradient(circle, rgba(191,154,94,0.07), transparent 65%);
  animation: auroraShift1 14s ease-in-out infinite alternate;
}

.aurora-l2 {
  width: 45%; height: 45%; bottom: -20%; right: -5%;
  background: radial-gradient(circle, rgba(0,51,160,0.06), transparent 65%);
  animation: auroraShift2 18s ease-in-out infinite alternate;
}

.aurora-l3 {
  width: 35%; height: 35%; top: 40%; right: 20%;
  background: radial-gradient(circle, rgba(0,51,160,0.04), transparent 65%);
  animation: auroraShift3 22s ease-in-out infinite alternate;
}

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

/* ── SLC Brand Decorative Layers ── */

/* Diagonal Chevron Motif — inspired by SLC presentation arrows */
.slc-chevron {
  position: fixed;
  pointer-events: none;
  z-index: 0;
  opacity: 0.035;
}
.slc-chevron-1 {
  width: 400px; height: 500px;
  bottom: -60px; right: -40px;
  background: linear-gradient(135deg, var(--slc-gold) 0%, transparent 60%);
  clip-path: polygon(0% 0%, 60% 0%, 100% 50%, 60% 100%, 0% 100%, 40% 50%);
}
.slc-chevron-2 {
  width: 300px; height: 380px;
  bottom: -40px; right: 60px;
  background: linear-gradient(135deg, var(--slc-blue) 0%, transparent 60%);
  clip-path: polygon(0% 0%, 60% 0%, 100% 50%, 60% 100%, 0% 100%, 40% 50%);
}
[data-theme="light"] .slc-chevron { opacity: 0.06; }

/* Islamic Geometric Pattern Overlay — from SLC brand identity */
.slc-geometric-overlay {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background-image:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='60' height='60'%3E%3Cpolygon points='30,4 34.5,18.5 49,14 40.5,26 56,30 40.5,34 49,46 34.5,41.5 30,56 25.5,41.5 11,46 19.5,34 4,30 19.5,26 11,14 25.5,18.5' fill='none' stroke='%23BF9A5E' stroke-width='0.4' opacity='0.08'/%3E%3Cpolygon points='30,14 38,18 42,26 42,34 38,42 30,46 22,42 18,34 18,26 22,18' fill='none' stroke='%23BF9A5E' stroke-width='0.25' opacity='0.05'/%3E%3C/svg%3E");
  background-size: 60px 60px;
  opacity: 0.5;
}
[data-theme="light"] .slc-geometric-overlay {
  background-image:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='60' height='60'%3E%3Cpolygon points='30,4 34.5,18.5 49,14 40.5,26 56,30 40.5,34 49,46 34.5,41.5 30,56 25.5,41.5 11,46 19.5,34 4,30 19.5,26 11,14 25.5,18.5' fill='none' stroke='%230033A0' stroke-width='0.4' opacity='0.06'/%3E%3Cpolygon points='30,14 38,18 42,26 42,34 38,42 30,46 22,42 18,34 18,26 22,18' fill='none' stroke='%230033A0' stroke-width='0.25' opacity='0.04'/%3E%3C/svg%3E");
  opacity: 0.4;
}

/* ══════════════════════════════════════════════════
   APP SHELL
   ══════════════════════════════════════════════════ */
.app {
  display: grid;
  grid-template-columns: var(--sidebar-w) 1fr;
  height: 100vh;
  position: relative;
  z-index: 1;
}

/* ══════════════════════════════════════════════════
   SIDEBAR — Glassmorphism + Gold Accents
   ══════════════════════════════════════════════════ */
.sidebar {
  background: var(--bg-1);
  border-right: 1px solid var(--border-1);
  display: flex;
  flex-direction: column;
  height: 100vh;
  overflow: hidden;
  z-index: 100;
}

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

.sidebar-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px 10px;
  border-bottom: 1px solid var(--border-1);
  background: linear-gradient(135deg, rgba(0,51,160,0.06), rgba(191,154,94,0.04));
  position: relative;
  overflow: hidden;
  flex-shrink: 0;
}

.sidebar-brand::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  background: linear-gradient(180deg, var(--slc-blue) 0%, var(--gold) 50%, rgba(191,154,94,0.3) 100%);
}

.sidebar-brand::after {
  content: '';
  position: absolute;
  right: -20px; top: -10px;
  width: 60px; height: 80px;
  background: linear-gradient(135deg, rgba(0,51,160,0.08), transparent);
  clip-path: polygon(0% 0%, 60% 0%, 100% 50%, 60% 100%, 0% 100%, 40% 50%);
  pointer-events: none;
}

[dir="rtl"] .sidebar-brand::before {
  left: auto;
  right: 0;
}

.brand-mark {
  font-size: 1.6rem;
  filter: drop-shadow(0 0 6px rgba(191, 154, 94, 0.3));
}

.brand-text-primary {
  font-family: var(--font-head);
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--gold);
  letter-spacing: 1.5px;
  text-transform: uppercase;
}

.brand-text-sub {
  font-size: 0.65rem;
  color: var(--text-3);
  margin-top: 1px;
  letter-spacing: 0.5px;
}

.sidebar-nav {
  flex: 1;
  padding: 4px 8px;
  overflow-y: auto;
  min-height: 0;
}

.nav-label {
  font-family: var(--font-mono);
  font-size: 0.55rem;
  text-transform: uppercase;
  color: var(--text-3);
  padding: 8px 12px 3px;
  letter-spacing: 1.2px;
}

.nav-btn {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 7px 12px;
  border: none;
  background: none;
  color: var(--text-2);
  cursor: pointer;
  border-radius: var(--r-sm);
  font-size: 0.78rem;
  text-align: left;
  transition: all 0.35s var(--ease-spring-alt);
  position: relative;
  min-height: 30px;
}

[dir="rtl"] .nav-btn {
  text-align: right;
}

.nav-btn:hover {
  background: linear-gradient(90deg, rgba(0,51,160,0.10), rgba(191,154,94,0.06));
  color: var(--gold);
  transform: translateX(2px);
}

[dir="rtl"] .nav-btn:hover {
  transform: translateX(-2px);
}

.nav-btn.active {
  background: linear-gradient(90deg, rgba(0,51,160,0.14), rgba(191,154,94,0.08));
  color: var(--gold);
  font-weight: 600;
}

.nav-btn.active::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 3px;
  height: 20px;
  background: linear-gradient(180deg, var(--slc-blue), var(--gold), rgba(191,154,94,0.3));
  border-radius: 0 2px 2px 0;
}

[dir="rtl"] .nav-btn.active::before {
  left: auto;
  right: 0;
  border-radius: 2px 0 0 2px;
}

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

.nav-icon svg {
  width: 18px;
  height: 18px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: all 0.35s var(--ease-spring-alt);
}

.nav-btn:hover .nav-icon svg,
.nav-btn.active .nav-icon svg {
  filter: drop-shadow(0 0 6px rgba(191, 154, 94, 0.4));
}

.nav-btn-admin {
  margin-top: 8px;
  border-top: 1px solid var(--border-1);
  padding-top: 12px;
  color: var(--slc-blue-light);
}
.nav-btn-admin .nav-icon svg {
  stroke: var(--slc-blue-light);
}

.nav-badge {
  background: var(--gold);
  color: #080d1a;
  padding: 2px 7px;
  border-radius: 10px;
  font-size: 0.6rem;
  font-weight: 700;
  margin-left: auto;
  flex-shrink: 0;
}

[dir="rtl"] .nav-badge {
  margin-left: 0;
  margin-right: auto;
}

.sidebar-bottom {
  padding: 8px 14px;
  border-top: 1px solid var(--border-1);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  background: linear-gradient(180deg, transparent, rgba(0,51,160,0.03));
  flex-shrink: 0;
}

.sidebar-logos {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  width: 100%;
  padding: 6px 0;
}

.sidebar-logo-cli {
  height: 70px;
  width: auto;
  opacity: 0.85;
  filter: brightness(1.1);
  transition: opacity 0.3s var(--ease-spring), filter 0.3s var(--ease-spring);
}

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

.sidebar-logos:hover .sidebar-logo-cli {
  opacity: 1;
  filter: brightness(1.2) drop-shadow(0 0 8px rgba(0, 51, 160, 0.3));
}

[data-theme="light"] .sidebar-logos:hover .sidebar-logo-cli {
  opacity: 0.85;
}

.powered-by-cli {
  font-family: var(--font-mono);
  font-size: 0.5rem;
  color: var(--text-3);
  letter-spacing: 1.5px;
  text-transform: uppercase;
  opacity: 0.6;
}

/* Brand Mark Image (Islamic Geometric Star) */
.brand-mark-img {
  width: 36px;
  height: 36px;
  object-fit: contain;
  filter: drop-shadow(0 0 6px rgba(191, 154, 94, 0.3));
  transition: filter 0.3s var(--ease-spring);
}

.sidebar-brand:hover .brand-mark-img {
  filter: drop-shadow(0 0 10px rgba(0, 51, 160, 0.4)) drop-shadow(0 0 4px rgba(191, 154, 94, 0.3));
}

[data-theme="light"] .brand-mark-img {
  filter: drop-shadow(0 0 4px rgba(0, 51, 160, 0.15));
}

.sidebar-version {
  font-family: var(--font-mono);
  font-size: 0.55rem;
  color: var(--text-3);
  letter-spacing: 0.5px;
  text-align: center;
}

/* ══════════════════════════════════════════════════
   NAVBAR — Glassmorphism + Gradient Line
   ══════════════════════════════════════════════════ */
.main {
  overflow-y: auto;
  position: relative;
}

.navbar {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 20px;
  height: 56px;
  background: var(--topbar-bg);
  backdrop-filter: blur(20px) saturate(1.4);
  -webkit-backdrop-filter: blur(20px) saturate(1.4);
  border-bottom: 1px solid var(--border-1);
  transition: all 0.35s var(--ease-spring-alt);
}

.navbar::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent 5%, var(--gold) 30%, var(--gold) 50%, rgba(191, 154, 94, 0.3) 70%, transparent 95%);
  opacity: 0.6;
}

.navbar::after {
  content: '';
  position: absolute;
  bottom: -1px;
  left: 10%;
  right: 10%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(191, 154, 94, 0.1), transparent);
}

.navbar.scrolled {
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.2), 0 0 12px rgba(191, 154, 94, 0.08);
  border-bottom-color: rgba(191, 154, 94, 0.1);
}

/* ── Navbar Left ── */
.navbar-left {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.hamburger {
  display: none;
  background: none;
  border: 1px solid var(--border-1);
  color: var(--text-2);
  cursor: pointer;
  width: 36px;
  height: 36px;
  border-radius: var(--r-sm);
  align-items: center;
  justify-content: center;
  transition: all 0.35s var(--ease-spring-alt);
}

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

.navbar-title-group {
  min-width: 0;
}

.navbar-title {
  font-family: var(--font-head);
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--text-1);
  letter-spacing: 1.3px;
  text-transform: uppercase;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.navbar-subtitle {
  font-size: 0.65rem;
  color: var(--text-3);
  margin-top: 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  letter-spacing: 0.3px;
}

/* ── Navbar Center: Search ── */
.navbar-center {
  flex: 0 1 400px;
  margin: 0 16px;
}

.navbar-search {
  position: relative;
  display: flex;
  align-items: center;
  background: var(--input-bg);
  border: 1px solid var(--glass-border);
  border-radius: 8px;
  padding: 0 12px;
  height: 36px;
  transition: all 0.35s var(--ease-spring-alt);
}

.navbar-search::after {
  content: '';
  position: absolute; inset: -1px;
  border-radius: inherit;
  background: radial-gradient(120px circle at var(--mx, 50%) var(--my, 50%), rgba(191, 154, 94, 0.15), transparent 70%);
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
  z-index: -1;
}

.navbar-search:focus-within {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(191, 154, 94, 0.1), 0 0 20px var(--gold-glow);
  background: var(--input-bg-focus);
}

.navbar-search:focus-within::after {
  opacity: 1;
}

.navbar-search-icon {
  color: var(--text-3);
  flex-shrink: 0;
  transition: color 0.2s;
}

.navbar-search:focus-within .navbar-search-icon {
  color: var(--gold);
}

.navbar-search-input {
  flex: 1;
  border: none;
  background: none;
  color: var(--text-1);
  font-size: 0.78rem;
  padding: 0 10px;
  outline: none;
  font-family: var(--font);
}

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

.navbar-search-kbd {
  font-family: var(--font-mono);
  font-size: 0.6rem;
  color: var(--text-3);
  background: var(--bg-2);
  padding: 2px 6px;
  border-radius: 4px;
  border: 1px solid var(--border-1);
  letter-spacing: 0.5px;
  flex-shrink: 0;
}

.navbar-search-results {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  right: 0;
  background: var(--glass-bg);
  backdrop-filter: blur(12px);
  border: 1px solid var(--glass-border);
  border-radius: var(--r-md);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.4), 0 0 20px rgba(191, 154, 94, 0.08);
  max-height: 340px;
  overflow-y: auto;
  z-index: 100;
  padding: 6px;
}

.search-result-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: var(--r-sm);
  cursor: pointer;
  transition: all 0.12s;
}

.search-result-item:hover {
  background: rgba(191, 154, 94, 0.08);
}

.search-result-icon {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--r-sm);
  font-size: 0.9rem;
  background: var(--bg-3);
  flex-shrink: 0;
}

.search-result-info {
  flex: 1;
  min-width: 0;
}

.search-result-name {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-1);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.search-result-meta {
  font-size: 0.65rem;
  color: var(--text-3);
}

.search-result-type {
  font-family: var(--font-mono);
  font-size: 0.56rem;
  color: var(--gold);
  background: rgba(191, 154, 94, 0.1);
  padding: 2px 6px;
  border-radius: 3px;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  flex-shrink: 0;
}

.search-no-results {
  padding: 20px;
  text-align: center;
  font-size: 0.8rem;
  color: var(--text-3);
}

.search-section-label {
  font-family: var(--font-mono);
  font-size: 0.56rem;
  color: var(--text-3);
  text-transform: uppercase;
  letter-spacing: 1px;
  padding: 8px 12px 4px;
}

/* ── Navbar Right ── */
.navbar-right {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-left: auto;
  flex-shrink: 0;
}

[dir="rtl"] .navbar-right {
  margin-left: 0;
  margin-right: auto;
}

/* SLC Logo in Sidebar Bottom */
.sidebar-slc-logo {
  height: 28px;
  width: auto;
  opacity: 0.6;
  filter: brightness(0) invert(1);
  transition: opacity 0.3s var(--ease-spring);
}

.sidebar-bottom:hover .sidebar-slc-logo {
  opacity: 0.9;
}

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

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

/* Divider between SLC and CLI logos */
.sidebar-logo-divider {
  width: 60%;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--slc-gold), transparent);
  opacity: 0.25;
  margin: 4px 0;
}

.navbar-date {
  font-family: var(--font-mono);
  font-size: 0.63rem;
  color: var(--text-3);
  letter-spacing: 0.5px;
  margin-right: 6px;
  white-space: nowrap;
}

[dir="rtl"] .navbar-date {
  margin-right: 0;
  margin-left: 6px;
}

.navbar-icon-btn {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: none;
  border: 1px solid transparent;
  border-radius: var(--r-sm);
  color: var(--text-3);
  cursor: pointer;
  transition: all 0.35s var(--ease-spring-alt);
  position: relative;
  min-width: 44px;
  min-height: 44px;
}

.navbar-icon-btn:hover {
  color: var(--gold);
  border-color: var(--glass-border-hover);
  background: rgba(191, 154, 94, 0.08);
  box-shadow: 0 0 12px rgba(191, 154, 94, 0.1);
}

.navbar-icon-btn:active {
  transform: scale(0.92);
}

.notif-dot {
  position: absolute;
  top: 5px;
  right: 5px;
  width: 7px;
  height: 7px;
  background: var(--red);
  border-radius: 50%;
  animation: notifPulse 2s infinite;
}

@keyframes notifPulse {
  0%,
  100% {
    box-shadow: 0 0 0 0 rgba(255, 77, 94, 0.5);
  }
  50% {
    box-shadow: 0 0 0 4px rgba(255, 77, 94, 0);
  }
}

.navbar-notif-wrap {
  position: relative;
}

.navbar-notif-panel {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  width: 320px;
  background: var(--glass-bg);
  backdrop-filter: blur(12px);
  border: 1px solid var(--glass-border);
  border-radius: var(--r-md);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.4), 0 0 20px rgba(191, 154, 94, 0.08);
  z-index: 100;
  overflow: hidden;
}

[dir="rtl"] .navbar-notif-panel {
  right: auto;
  left: 0;
}

.notif-panel-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 16px;
  border-bottom: 1px solid var(--glass-border);
  font-family: var(--font-head);
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--text-1);
  letter-spacing: 1px;
  text-transform: uppercase;
}

.notif-clear-btn {
  background: none;
  border: none;
  color: var(--text-3);
  font-size: 0.66rem;
  cursor: pointer;
  transition: color 0.15s;
}

.notif-clear-btn:hover {
  color: var(--gold);
}

.notif-panel-body {
  max-height: 280px;
  overflow-y: auto;
  padding: 6px;
}

.notif-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 10px 12px;
  border-radius: var(--r-sm);
  transition: background 0.12s;
}

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

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

.notif-item-text {
  flex: 1;
  font-size: 0.76rem;
  color: var(--text-2);
  line-height: 1.4;
}

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

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

.navbar-lang-btn {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: none;
  border: 1px solid var(--border-1);
  border-radius: var(--r-sm);
  color: var(--text-2);
  cursor: pointer;
  font-size: 0.7rem;
  font-weight: 700;
  font-family: var(--ar);
  transition: all 0.35s var(--ease-spring-alt);
  min-width: 44px;
  min-height: 44px;
}

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

.navbar-user {
  cursor: pointer;
  margin-left: 4px;
}

[dir="rtl"] .navbar-user {
  margin-left: 0;
  margin-right: 4px;
}

.navbar-avatar {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  background: linear-gradient(135deg, rgba(191, 154, 94, 0.15), rgba(191, 154, 94, 0.08));
  border: 1px solid rgba(191, 154, 94, 0.2);
  color: var(--gold);
  font-family: var(--font-head);
  font-size: 0.53rem;
  font-weight: 800;
  letter-spacing: 1px;
  transition: all 0.35s var(--ease-spring-alt);
  min-width: 44px;
  min-height: 44px;
}

.navbar-avatar:hover {
  border-color: var(--gold);
  box-shadow: 0 0 14px rgba(191, 154, 94, 0.2);
  transform: scale(1.05);
}

/* ── Topbar Branded Pill ── */
.topbar-pill {
  display: inline-flex;
  align-items: center;
  padding: 3px 12px;
  background: linear-gradient(135deg, rgba(0, 51, 160, 0.25), rgba(191, 154, 94, 0.15));
  border: 1px solid rgba(191, 154, 94, 0.25);
  border-radius: 20px;
  font-family: var(--font-head);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 2.5px;
  color: var(--gold);
  text-transform: uppercase;
  white-space: nowrap;
  user-select: none;
}
[data-theme="light"] .topbar-pill {
  background: linear-gradient(135deg, rgba(0, 51, 160, 0.08), rgba(191, 154, 94, 0.08));
  border-color: rgba(0, 51, 160, 0.15);
  color: var(--slc-blue);
}

/* ══════════════════════════════════════════════════
   PAGES — Fade In Animation
   ══════════════════════════════════════════════════ */
.page {
  display: none;
  padding: 24px;
}

.page.show {
  display: block;
  animation: panelBoot 0.5s var(--ease-spring, cubic-bezier(.16, 1, .3, 1)) forwards;
}

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

@keyframes panelBoot {
  0% { opacity: 0; transform: scale(0.95) translateY(12px); filter: brightness(1.4); }
  60% { filter: brightness(1.1); }
  100% { opacity: 1; transform: scale(1) translateY(0); filter: brightness(1); }
}

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

@keyframes goldPulse {
  0%, 100% { box-shadow: 0 0 16px rgba(191, 154, 94, 0.12); }
  50% { box-shadow: 0 0 32px rgba(191, 154, 94, 0.25); }
}

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

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

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

@keyframes glowLine {
  0%, 100% { opacity: 0.3; }
  50% { opacity: 0.7; }
}

@keyframes auroraShift1 {
  0% { transform: translate(0,0) scale(1); }
  100% { transform: translate(10%,5%) scale(1.1); }
}

@keyframes auroraShift2 {
  0% { transform: translate(0,0) scale(1); }
  100% { transform: translate(-8%,-5%) scale(1.15); }
}

@keyframes auroraShift3 {
  0% { transform: translate(0,0) scale(1); }
  100% { transform: translate(5%,-10%) scale(1.2); }
}

/* ══════════════════════════════════════════════════
   STAT GRID — Glass Cards with Gradient Accent Strip
   ══════════════════════════════════════════════════ */
.stat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 12px;
  margin-bottom: 24px;
}

.stat {
  background: var(--glass-bg);
  backdrop-filter: blur(12px);
  border: 1px solid var(--glass-border);
  border-radius: var(--r-md);
  padding: 16px;
  text-align: center;
  position: relative;
  overflow: hidden;
  transition: all 0.35s var(--ease-spring-alt);
  cursor: default;
  min-height: 100px;
}

.stat::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--stat-accent) 0%, rgba(var(--stat-accent), 0.3) 100%);
  opacity: 0.8;
}

.stat::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at top right, rgba(191, 154, 94, 0.05), transparent);
  pointer-events: none;
}

.stat:hover {
  border-color: var(--gold-bright-glow, rgba(191, 154, 94, 0.5));
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.35), 0 0 20px rgba(0, 51, 160, 0.15), 0 0 20px rgba(191, 154, 94, 0.15), 0 0 64px rgba(191, 154, 94, 0.08);
  transform: translateY(-4px);
  animation: goldPulse 1.5s ease-in-out;
}

.stat-icon {
  font-size: 1.4rem;
  margin-bottom: 8px;
}

.stat-val {
  font-family: var(--font-head);
  font-size: 1.6rem;
  font-weight: 800;
  background: linear-gradient(180deg, #fff 0%, var(--gold-light) 60%, var(--gold) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  letter-spacing: 0.5px;
  filter: drop-shadow(0 0 12px rgba(191, 154, 94, 0.2));
}
[data-theme="light"] .stat-val {
  background: linear-gradient(180deg, #1a202c, var(--gold));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  filter: none;
}

.stat-label {
  font-family: var(--font-mono);
  font-size: 0.6rem;
  color: var(--text-3);
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin-top: 6px;
}

/* ══════════════════════════════════════════════════
   DASHBOARD GRID
   ══════════════════════════════════════════════════ */
.dash-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
  gap: 16px;
}

.dash-panel {
  background: var(--glass-bg);
  backdrop-filter: blur(12px);
  border: 1px solid var(--glass-border);
  border-radius: var(--r-md);
  overflow: hidden;
  transition: all 0.35s var(--ease-spring-alt);
  animation: panelBoot 0.6s var(--ease-spring, cubic-bezier(.16, 1, .3, 1)) backwards;
}

.dash-panel:hover {
  border-color: var(--gold-bright-glow);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2), 0 0 16px rgba(0, 51, 160, 0.15), 0 0 16px rgba(191, 154, 94, 0.06);
}

.dash-panel:nth-child(1) { animation-delay: 0.05s; }
.dash-panel:nth-child(2) { animation-delay: 0.1s; }
.dash-panel:nth-child(3) { animation-delay: 0.15s; }
.dash-panel:nth-child(4) { animation-delay: 0.2s; }
.dash-panel:nth-child(5) { animation-delay: 0.25s; }
.dash-panel:nth-child(6) { animation-delay: 0.3s; }

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

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

.panel-body {
  padding: 12px 16px;
}

/* ══════════════════════════════════════════════════
   EVENT ROW (Dashboard)
   ══════════════════════════════════════════════════ */
.event-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid var(--border-1);
  cursor: pointer;
  transition: all 0.35s var(--ease-spring-alt);
}

.event-row:last-child {
  border-bottom: none;
}

.event-row:hover {
  padding-left: 4px;
  background: rgba(191, 154, 94, 0.04);
  border-radius: 6px;
}

[dir="rtl"] .event-row:hover {
  padding-left: 0;
  padding-right: 4px;
}

.event-row-icon {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--r-sm);
  font-size: 1.1rem;
  flex-shrink: 0;
  background: rgba(191, 154, 94, 0.08);
}

.event-row-info {
  flex: 1;
  min-width: 0;
}

.event-row-title {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-1);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.event-row-meta {
  font-size: 0.68rem;
  color: var(--text-3);
  margin-top: 3px;
  letter-spacing: -0.2px;
}

.event-row-badge {
  font-family: var(--font-mono);
  font-size: 0.63rem;
  color: var(--gold);
  white-space: nowrap;
}

.live-badge {
  font-family: var(--font-mono);
  font-size: 0.63rem;
  color: var(--green);
  animation: blink 1.5s infinite;
}

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

.ongoing-pulse {
  border-left: 2px solid var(--green);
  padding-left: 8px;
}

[dir="rtl"] .ongoing-pulse {
  border-left: none;
  border-right: 2px solid var(--green);
  padding-left: 0;
  padding-right: 8px;
}

.bar-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 6px 0;
}

.bar-label {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.76rem;
  color: var(--text-2);
  min-width: 120px;
}

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

.bar-chart .bar {
  height: 100%;
  border-radius: 4px;
  transition: width 0.5s var(--ease-spring);
}

.bar-count {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--text-1);
  min-width: 24px;
  text-align: right;
}

/* ══════════════════════════════════════════════════
   CATEGORY BARS
   ══════════════════════════════════════════════════ */
.cat-bar-row {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 0;
}

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

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

.cat-bar-fill {
  height: 100%;
  border-radius: 3px;
  transition: width 0.4s ease;
  background: linear-gradient(90deg, var(--gold), rgba(191, 154, 94, 0.5));
}

.cat-bar-val {
  font-family: var(--font-mono);
  font-size: 0.63rem;
  color: var(--text-3);
  width: 24px;
  text-align: right;
}

/* ══════════════════════════════════════════════════
   ATTENDEE ROW
   ══════════════════════════════════════════════════ */
.attendee-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 0;
  border-bottom: 1px solid var(--border-1);
  transition: all 0.35s var(--ease-spring-alt);
}

.attendee-row:last-child {
  border-bottom: none;
}

.attendee-row:hover {
  padding-left: 4px;
  background: rgba(191, 154, 94, 0.04);
}

.attendee-rank {
  font-family: var(--font-head);
  font-size: 0.68rem;
  font-weight: 700;
  color: var(--gold);
  width: 28px;
  text-align: center;
}

.attendee-info {
  flex: 1;
}

.attendee-name {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-1);
}

.attendee-dept {
  font-size: 0.66rem;
  color: var(--text-3);
  margin-top: 2px;
}

.attendee-count {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  color: var(--gold);
  font-weight: 600;
}

/* ══════════════════════════════════════════════════
   FILTER BAR
   ══════════════════════════════════════════════════ */
.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 16px;
  align-items: center;
}

.search-input {
  flex: 1;
  min-width: 200px;
  padding: 10px 14px;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: var(--r-sm);
  color: var(--text-1);
  font-size: 0.8rem;
  transition: all 0.35s var(--ease-spring-alt);
}

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

.filter-select {
  padding: 10px 12px;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: var(--r-sm);
  color: var(--text-2);
  font-size: 0.76rem;
  cursor: pointer;
  transition: all 0.35s var(--ease-spring-alt);
}

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

.events-count {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  color: var(--text-3);
  margin-bottom: 12px;
  letter-spacing: 0.5px;
}

/* ══════════════════════════════════════════════════
   EVENT CARDS
   ══════════════════════════════════════════════════ */
.events-filter-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
  padding: 14px;
  background: var(--glass-bg);
  backdrop-filter: blur(8px);
  border: 1px solid var(--glass-border);
  border-radius: var(--r-md);
}

.events-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

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

.event-card {
  background: var(--glass-bg);
  backdrop-filter: blur(12px);
  border: 1px solid var(--glass-border);
  border-radius: var(--r-md);
  padding: 16px;
  position: relative;
  overflow: hidden;
  cursor: pointer;
  transition: all 0.35s var(--ease-spring-alt);
  display: flex;
  flex-direction: column;
}

.event-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
  opacity: 0;
  transition: opacity 0.35s var(--ease-spring-alt);
  z-index: 2;
}

.event-card:hover::before {
  opacity: 1;
  box-shadow: 0 0 12px var(--gold-bright-glow);
}

.event-card:hover {
  border-color: var(--gold-bright-glow, rgba(191, 154, 94, 0.5));
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.35), 0 0 28px var(--gold-bright-glow), 0 0 56px rgba(191, 154, 94, 0.08);
  animation: goldPulse 1.5s ease-in-out;
}

.event-card-accent {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--cat-color, var(--gold)), rgba(var(--cat-color, var(--gold)), 0.2));
}

.event-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
  position: relative;
  z-index: 1;
}

.event-card-cat {
  font-family: var(--font-mono);
  font-size: 0.66rem;
  color: var(--cat-color, var(--gold));
  letter-spacing: 0.8px;
  text-transform: uppercase;
  font-weight: 600;
}

.event-card-body {
  flex: 1;
}

.event-card-body h3 {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--text-1);
  margin-bottom: 10px;
}

.event-card-badge {
  display: flex;
  gap: 6px;
  align-items: center;
}

.badge-full {
  font-family: var(--font-mono);
  font-size: 0.56rem;
  font-weight: 700;
  color: var(--red);
  background: rgba(255, 77, 94, 0.1);
  padding: 2px 6px;
  border-radius: 3px;
  letter-spacing: 0.5px;
}

.event-card-stat {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.event-card-stat .stat-label {
  font-family: var(--font-mono);
  font-size: 0.55rem;
  color: var(--text-3);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.event-card-stat .stat-value {
  font-family: var(--font-head);
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--text-1);
}

.event-card-progress {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 80px;
}

.progress-bar {
  width: 100%;
  height: 6px;
  background: var(--bg-3);
  border-radius: 3px;
  overflow: hidden;
}

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

.progress-text {
  font-family: var(--font-mono);
  font-size: 0.56rem;
  color: var(--text-3);
  letter-spacing: 0.3px;
}

.event-card-title {
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--text-1);
  margin-bottom: 10px;
  line-height: 1.4;
  position: relative;
  z-index: 1;
}

.event-card-meta {
  font-size: 0.7rem;
  color: var(--text-3);
  display: flex;
  flex-direction: column;
  gap: 3px;
  position: relative;
  z-index: 1;
  letter-spacing: -0.2px;
}

.event-card-footer {
  margin-top: auto;
  padding-top: 10px;
  border-top: 1px solid var(--glass-border);
  position: relative;
  z-index: 1;
}

/* ══════════════════════════════════════════════════
   FILL BAR
   ══════════════════════════════════════════════════ */
.fill-bar-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
}

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

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

.fill-text {
  font-family: var(--font-mono);
  font-size: 0.63rem;
  color: var(--text-3);
  white-space: nowrap;
}

/* ══════════════════════════════════════════════════
   STATUS BADGES
   ══════════════════════════════════════════════════ */
.status-badge {
  font-family: var(--font-mono);
  font-size: 0.6rem;
  padding: 4px 10px;
  border-radius: 12px;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  font-weight: 600;
  transition: all 0.35s var(--ease-spring-alt);
}

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

.badge-upcoming:hover {
  box-shadow: 0 0 12px rgba(191, 154, 94, 0.15);
}

.badge-ongoing {
  background: rgba(0, 232, 143, 0.12);
  color: var(--green);
  border: 1px solid rgba(0, 232, 143, 0.25);
}

.badge-ongoing:hover {
  box-shadow: 0 0 12px rgba(0, 232, 143, 0.15);
}

.badge-completed {
  background: rgba(0, 212, 170, 0.12);
  color: var(--teal);
  border: 1px solid rgba(0, 212, 170, 0.25);
}

.badge-completed:hover {
  box-shadow: 0 0 12px rgba(0, 212, 170, 0.15);
}

.badge-cancelled {
  background: rgba(255, 77, 94, 0.12);
  color: var(--red);
  border: 1px solid rgba(255, 77, 94, 0.25);
}

.badge-cancelled:hover {
  box-shadow: 0 0 12px rgba(255, 77, 94, 0.15);
}

/* ══════════════════════════════════════════════════
   CATEGORY TAG
   ══════════════════════════════════════════════════ */
.cat-tag {
  font-family: var(--font-mono);
  font-size: 0.66rem;
  padding: 3px 8px;
  border-radius: 4px;
  background: color-mix(in srgb, var(--cat-color) 12%, transparent);
  color: var(--cat-color);
  border: 1px solid color-mix(in srgb, var(--cat-color) 25%, transparent);
  text-transform: uppercase;
  letter-spacing: 0.4px;
}

/* ══════════════════════════════════════════════════
   BUTTONS
   ══════════════════════════════════════════════════ */
.btn {
  padding: 10px 18px;
  border-radius: var(--r-sm);
  border: 1px solid var(--glass-border);
  background: var(--glass-bg);
  color: var(--text-2);
  cursor: pointer;
  font-size: 0.76rem;
  font-family: var(--font);
  transition: all 0.35s var(--ease-spring-alt);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 500;
  min-height: 44px;
  min-width: 44px;
  justify-content: center;
}

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

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

.btn-primary {
  background: rgba(191, 154, 94, 0.12);
  border-color: rgba(191, 154, 94, 0.3);
  color: var(--gold);
}

.btn-primary:hover {
  background: linear-gradient(135deg, rgba(0, 51, 160, 0.08), rgba(191, 154, 94, 0.2));
  box-shadow: 0 0 16px rgba(0, 51, 160, 0.1), 0 0 24px var(--gold-bright-glow), 0 0 8px rgba(191, 154, 94, 0.15);
  transform: translateY(-2px);
}

.btn-gold {
  background: rgba(191, 154, 94, 0.12);
  border-color: rgba(191, 154, 94, 0.3);
  color: var(--gold);
}

.btn-gold:hover {
  background: rgba(191, 154, 94, 0.2);
  box-shadow: 0 0 24px var(--gold-bright-glow), 0 0 8px rgba(191, 154, 94, 0.15);
  transform: translateY(-2px);
}

.btn-danger {
  background: rgba(255, 77, 94, 0.1);
  border-color: rgba(255, 77, 94, 0.25);
  color: var(--red);
}

.btn-danger:hover {
  background: rgba(255, 77, 94, 0.18);
  box-shadow: 0 0 12px rgba(255, 77, 94, 0.15);
}

.btn-sm {
  padding: 6px 12px;
  font-size: 0.7rem;
  min-height: 36px;
}

.btn-xs {
  padding: 4px 8px;
  font-size: 0.65rem;
  min-height: 32px;
}

/* ══════════════════════════════════════════════════
   MODAL
   ══════════════════════════════════════════════════ */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: var(--modal-bg);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 500;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.2s;
}

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

.modal {
  background: var(--glass-bg);
  backdrop-filter: blur(20px) saturate(1.3);
  border: 1px solid var(--glass-border);
  border-radius: var(--r-lg);
  padding: 24px;
  max-width: 640px;
  width: 92%;
  max-height: 85vh;
  overflow-y: auto;
  position: relative;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.5), 0 0 40px var(--gold-glow), inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.modal::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  border-radius: var(--r-lg) var(--r-lg) 0 0;
  background: linear-gradient(90deg, var(--slc-blue), var(--gold) 50%, var(--gold-light) 100%);
}

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

/* ══════════════════════════════════════════════════
   EVENT DETAIL
   ══════════════════════════════════════════════════ */
.event-detail-header {
  padding: 16px;
  margin-bottom: 16px;
  background: rgba(191, 154, 94, 0.08);
  border: 1px solid rgba(191, 154, 94, 0.1);
  border-radius: var(--r-sm);
}

.event-detail-cat {
  font-size: 0.73rem;
  color: var(--text-3);
  margin-bottom: 4px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.event-detail-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-1);
  margin: 8px 0;
}

.event-detail-desc {
  font-size: 0.8rem;
  color: var(--text-2);
  line-height: 1.6;
}

.detail-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 16px;
}

.detail-item {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.detail-label {
  font-size: 0.68rem;
  color: var(--text-3);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-weight: 600;
}

.detail-item span:last-child {
  font-size: 0.82rem;
  color: var(--text-1);
  font-weight: 500;
}

.detail-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}

.detail-section {
  margin-top: 16px;
}

.detail-section-title {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--text-3);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 10px;
  font-weight: 600;
}

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

.reg-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 12px;
  background: rgba(191, 154, 94, 0.06);
  border-radius: var(--r-sm);
  border: 1px solid rgba(191, 154, 94, 0.08);
  font-size: 0.78rem;
  color: var(--text-2);
}

.check-mark {
  color: var(--green);
  font-weight: 700;
}

.no-check {
  color: var(--text-3);
}

.quick-register-modal {
  max-width: 480px;
  width: 100%;
}

.quick-register-modal h3 {
  font-family: var(--font-head);
  font-size: 0.84rem;
  font-weight: 700;
  color: var(--gold);
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: 16px;
}

.attendance-modal {
  max-width: 520px;
  width: 100%;
}

.event-detail-modal {
  max-width: 560px;
  width: 100%;
}

.detail-header {
  padding: 20px;
  border-radius: var(--r-md) var(--r-md) 0 0;
  margin: -24px -24px 16px;
}

.detail-header h2 {
  font-family: var(--font-head);
  font-size: 0.92rem;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: 6px;
}

.detail-header p {
  font-size: 0.78rem;
  opacity: 0.85;
  line-height: 1.5;
}

.detail-body {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 16px;
}

.detail-footer {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding-top: 14px;
  border-top: 1px solid var(--glass-border);
}

.attendee-list {
  margin-top: 16px;
  padding-top: 12px;
  border-top: 1px solid var(--glass-border);
}

.attendee-list h4 {
  font-family: var(--font-head);
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--text-1);
  letter-spacing: 0.8px;
  text-transform: uppercase;
  margin-bottom: 10px;
}

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

.attendee-section strong {
  display: block;
  font-size: 0.72rem;
  color: var(--text-3);
  margin-bottom: 6px;
}

/* ══════════════════════════════════════════════════
   FORMS
   ══════════════════════════════════════════════════ */
.form-card {
  background: var(--glass-bg);
  backdrop-filter: blur(12px);
  border: 1px solid var(--glass-border);
  border-radius: var(--r-md);
  padding: 24px;
  max-width: 800px;
}

.form-title {
  font-family: var(--font-head);
  font-size: 0.84rem;
  font-weight: 700;
  color: var(--gold);
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: 20px;
}

.create-form {
  max-width: 740px;
  margin: 0 auto;
}

.form-section {
  background: var(--glass-bg);
  backdrop-filter: blur(8px);
  border: 1px solid var(--glass-border);
  border-radius: var(--r-md);
  padding: 18px 20px;
  margin-bottom: 12px;
  transition: all 0.35s var(--ease-spring-alt);
}

.form-section:hover {
  border-color: var(--glass-border-hover);
}

.form-section h3 {
  font-family: var(--font-head);
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--gold);
  letter-spacing: 1.2px;
  text-transform: uppercase;
  margin-bottom: 12px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--glass-border);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 10px;
}

.form-row:last-child {
  margin-bottom: 0;
}

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

.form-control {
  padding: 10px 12px;
  background: var(--input-bg);
  border: 1px solid var(--glass-border);
  border-radius: var(--r-sm);
  color: var(--text-1);
  font-size: 0.8rem;
  font-family: var(--font);
  transition: all 0.35s var(--ease-spring-alt);
  width: 100%;
}

.form-control:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(191, 154, 94, 0.1), 0 0 12px rgba(191, 154, 94, 0.08);
  background: var(--input-bg-focus);
}

.form-select {
  padding: 10px 12px;
  background: var(--input-bg);
  border: 1px solid var(--glass-border);
  border-radius: var(--r-sm);
  color: var(--text-1);
  font-size: 0.8rem;
  font-family: var(--font);
  transition: all 0.35s var(--ease-spring-alt);
  cursor: pointer;
  width: 100%;
}

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

.form-group {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.form-group label {
  font-family: var(--font-mono);
  font-size: 0.66rem;
  color: var(--text-3);
  text-transform: uppercase;
  letter-spacing: 0.6px;
  font-weight: 600;
}

.form-group input,
.form-group select,
.form-group textarea {
  padding: 8px 12px;
  background: var(--input-bg);
  border: 1px solid var(--glass-border);
  border-radius: var(--r-sm);
  color: var(--text-1);
  font-size: 0.8rem;
  font-family: var(--font);
  transition: all 0.35s var(--ease-spring-alt);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(191, 154, 94, 0.1), 0 0 12px rgba(191, 154, 94, 0.08);
  background: var(--input-bg-focus);
}

.form-group textarea {
  resize: vertical;
  min-height: 48px;
  max-height: 120px;
}

.toggle-label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8rem;
  color: var(--text-2);
  cursor: pointer;
}

.toggle-label input[type="checkbox"] {
  accent-color: var(--gold);
  cursor: pointer;
}

.form-actions {
  display: flex;
  gap: 10px;
  justify-content: flex-end;
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid var(--glass-border);
}

/* ══════════════════════════════════════════════════
   REGISTRATIONS
   ══════════════════════════════════════════════════ */
.regs-container {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 14px;
}

.reg-card {
  background: var(--glass-bg);
  backdrop-filter: blur(8px);
  border: 1px solid var(--glass-border);
  border-radius: var(--r-md);
  overflow: hidden;
  transition: all 0.35s var(--ease-spring-alt);
}

.reg-card:hover {
  border-color: var(--gold-bright-glow);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2), 0 0 16px var(--gold-glow);
  transform: translateY(-2px);
}

.reg-card-header {
  padding: 14px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.reg-card-header h3 {
  font-size: 0.84rem;
  font-weight: 700;
}

.reg-count {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 600;
  opacity: 0.9;
}

.reg-card-body {
  padding: 12px 16px;
}

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

.reg-section strong {
  display: block;
  font-size: 0.72rem;
  color: var(--text-2);
  margin-bottom: 8px;
  font-family: var(--font-mono);
  letter-spacing: 0.3px;
}

.reg-card-footer {
  padding: 10px 16px;
  border-top: 1px solid var(--glass-border);
}

.reg-event-card {
  background: var(--glass-bg);
  backdrop-filter: blur(12px);
  border: 1px solid var(--glass-border);
  border-radius: var(--r-md);
  margin-bottom: 14px;
  overflow: hidden;
  transition: all 0.35s var(--ease-spring-alt);
}

.reg-event-card:hover {
  border-color: var(--gold-bright-glow);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2), 0 0 20px var(--gold-glow);
  transform: translateY(-2px);
}

.reg-event-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 16px;
  border-bottom: 1px solid var(--glass-border);
}

.reg-event-cat {
  font-size: 0.7rem;
  margin-right: 8px;
  color: var(--gold);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.reg-event-title {
  font-size: 0.86rem;
  font-weight: 600;
  color: var(--text-1);
}

.reg-event-stats {
  font-family: var(--font-mono);
  font-size: 0.66rem;
  color: var(--text-3);
  display: flex;
  gap: 12px;
}

.pending-count {
  color: var(--amber);
  font-weight: 600;
}

.reg-event-body {
  padding: 14px 16px;
}

.reg-table {
  margin-top: 12px;
}

.reg-table-header,
.reg-table-row {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 80px;
  gap: 8px;
  padding: 8px 0;
  align-items: center;
  font-size: 0.76rem;
}

.reg-table-header {
  font-family: var(--font-mono);
  font-size: 0.63rem;
  color: var(--text-3);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  border-bottom: 1px solid var(--glass-border);
  font-weight: 600;
}

.reg-table-row {
  border-bottom: 1px solid var(--glass-border);
  color: var(--text-2);
}

.reg-table-row:last-child {
  border-bottom: none;
}

.reg-actions {
  display: flex;
  gap: 4px;
}

.quick-reg-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-height: 400px;
  overflow-y: auto;
}

.quick-reg-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 12px;
  background: var(--input-bg);
  border-radius: var(--r-sm);
  border: 1px solid var(--glass-border);
  transition: all 0.35s var(--ease-spring-alt);
}

.quick-reg-item:hover {
  border-color: var(--glass-border-hover);
  background: var(--input-bg-focus);
}

/* ══════════════════════════════════════════════════
   EMPLOYEE CARDS
   ══════════════════════════════════════════════════ */
.emp-controls {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}

.emp-controls .form-control {
  flex: 1;
  max-width: 320px;
}

.emp-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 14px;
}

.emp-card {
  background: var(--glass-bg);
  backdrop-filter: blur(12px);
  border: 1px solid var(--glass-border);
  border-radius: var(--r-md);
  padding: 18px;
  text-align: center;
  transition: all 0.35s var(--ease-spring-alt);
}

.emp-card:hover {
  border-color: var(--gold-bright-glow);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2), 0 0 24px var(--gold-bright-glow), 0 0 48px rgba(191, 154, 94, 0.06);
  transform: translateY(-4px);
  animation: goldPulse 1.5s ease-in-out;
}

.emp-card-avatar {
  width: 52px;
  height: 52px;
  margin: 0 auto 10px;
  background: linear-gradient(135deg, var(--gold), rgba(191, 154, 94, 0.6));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  font-weight: 700;
  color: #080d1a;
  border: 2px solid rgba(191, 154, 94, 0.2);
}

.emp-card-name {
  font-size: 0.86rem;
  font-weight: 700;
  color: var(--text-1);
}

.emp-card-id {
  font-family: var(--font-mono);
  font-size: 0.66rem;
  color: var(--text-3);
  margin: 2px 0;
}

.emp-card-dept {
  font-size: 0.73rem;
  color: var(--text-2);
}

.emp-card-position {
  font-size: 0.7rem;
  color: var(--text-3);
  margin: 4px 0 8px;
}

.emp-card-stats {
  font-family: var(--font-mono);
  font-size: 0.63rem;
  color: var(--text-3);
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-bottom: 10px;
}

.emp-card-actions {
  display: flex;
  justify-content: center;
  gap: 6px;
}

/* ══════════════════════════════════════════════════
   ATTENDANCE
   ══════════════════════════════════════════════════ */
.att-container {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 14px;
}

.att-card {
  background: var(--glass-bg);
  backdrop-filter: blur(8px);
  border: 1px solid var(--glass-border);
  border-radius: var(--r-md);
  overflow: hidden;
  transition: all 0.35s var(--ease-spring-alt);
}

.att-card:hover {
  border-color: var(--gold-bright-glow);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2), 0 0 16px var(--gold-glow);
  transform: translateY(-2px);
}

.att-card-header {
  padding: 14px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.att-card-header h4 {
  font-size: 0.84rem;
  font-weight: 700;
}

.att-stats {
  padding: 10px 16px;
  font-family: var(--font-mono);
  font-size: 0.76rem;
  color: var(--text-2);
}

.att-card .btn {
  margin: 0 16px 14px;
}

.attendance-modal h3 {
  font-family: var(--font-head);
  font-size: 0.84rem;
  font-weight: 700;
  color: var(--gold);
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: 16px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--glass-border);
}

.attendance-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
  max-height: 400px;
  overflow-y: auto;
}

.attendance-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 12px;
  background: var(--input-bg);
  border-radius: var(--r-sm);
  border: 1px solid var(--glass-border);
  font-size: 0.8rem;
  color: var(--text-1);
}

.attendance-action {
  flex-shrink: 0;
}

.attendance-events {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.att-event-card {
  background: var(--glass-bg);
  backdrop-filter: blur(12px);
  border: 1px solid var(--glass-border);
  border-radius: var(--r-md);
  padding: 16px;
  transition: all 0.35s var(--ease-spring-alt);
}

.att-event-card:hover {
  border-color: var(--gold-bright-glow);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2), 0 0 20px var(--gold-glow);
  transform: translateY(-2px);
}

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

.att-event-title {
  font-size: 0.86rem;
  font-weight: 600;
  color: var(--text-1);
  margin-left: 8px;
}

[dir="rtl"] .att-event-title {
  margin-left: 0;
  margin-right: 8px;
}

.att-rate {
  font-family: var(--font-head);
  font-size: 0.76rem;
  font-weight: 700;
  color: var(--gold);
}

.att-bar-wrap {
  height: 6px;
  background: var(--bg-3);
  border-radius: 3px;
  overflow: hidden;
  margin-bottom: 6px;
}

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

.att-details {
  font-family: var(--font-mono);
  font-size: 0.66rem;
  color: var(--text-3);
}

.att-summary {
  font-family: var(--font-head);
  font-size: 0.8rem;
  color: var(--gold);
  margin-bottom: 8px;
  font-weight: 600;
}

.att-checklist {
  display: flex;
  flex-direction: column;
  gap: 6px;
  max-height: 400px;
  overflow-y: auto;
}

.att-check-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 12px;
  background: rgba(191, 154, 94, 0.06);
  border-radius: var(--r-sm);
  border: 1px solid var(--glass-border);
  transition: all 0.35s var(--ease-spring-alt);
}

.att-check-item.checked {
  border-color: rgba(0, 232, 143, 0.3);
  background: rgba(0, 232, 143, 0.08);
}

.att-check-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

/* ══════════════════════════════════════════════════
   CALENDAR
   ══════════════════════════════════════════════════ */
/* Calendar Layout with Sidebar */
.calendar-layout {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 20px;
  max-width: 1200px;
}
@media (max-width: 900px) {
  .calendar-layout { grid-template-columns: 1fr; }
}
.calendar-container {
  min-width: 0;
}

.calendar-header {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-bottom: 20px;
}

.calendar-header h2 {
  font-family: var(--font-head);
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--text-1);
  letter-spacing: 1.5px;
  text-transform: uppercase;
  min-width: 220px;
  text-align: center;
}

.calendar-weekdays {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 4px;
  margin-bottom: 4px;
}

.weekday {
  font-family: var(--font-mono);
  font-size: 0.63rem;
  color: var(--text-3);
  text-align: center;
  padding: 10px 0;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  font-weight: 600;
}

.calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 4px;
}

.calendar-day {
  background: var(--glass-bg);
  backdrop-filter: blur(8px);
  border: 1px solid var(--glass-border);
  border-radius: var(--r-sm);
  min-height: 90px;
  padding: 8px;
  cursor: pointer;
  transition: all 0.35s var(--ease-spring-alt);
  position: relative;
}

.calendar-day.empty {
  background: transparent;
  border-color: transparent;
  cursor: default;
  backdrop-filter: none;
}

.calendar-day:not(.empty):hover {
  border-color: var(--gold-bright-glow);
  box-shadow: 0 4px 20px rgba(191, 154, 94, 0.1), 0 0 16px var(--gold-glow);
  transform: translateY(-4px);
}

.calendar-day.today {
  border-color: var(--gold);
  background: rgba(191, 154, 94, 0.08);
  box-shadow: 0 0 16px rgba(191, 154, 94, 0.1);
}

.calendar-day.today::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
}

.calendar-day-num {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-1);
  margin-bottom: 6px;
}

.calendar-day.today .calendar-day-num {
  color: var(--gold);
  font-family: var(--font-head);
  font-weight: 700;
}

.calendar-day-events {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.event-dot {
  width: 100%;
  height: 4px;
  border-radius: 2px;
  transition: all 0.35s var(--ease-spring-alt);
}

.calendar-day:hover .event-dot {
  height: 5px;
  box-shadow: 0 0 6px rgba(191, 154, 94, 0.2);
}

.event-more {
  font-family: var(--font-mono);
  font-size: 0.58rem;
  color: var(--text-3);
  margin-top: 2px;
}

/* Day Events Modal */
.day-events-modal {
  min-width: 300px;
}

.day-events-modal h3 {
  font-family: var(--font-head);
  font-size: 0.84rem;
  font-weight: 700;
  color: var(--gold);
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: 16px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--glass-border);
}

.day-events-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-height: 400px;
  overflow-y: auto;
}

.day-event-card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px;
  background: rgba(191, 154, 94, 0.06);
  border: 1px solid var(--glass-border);
  border-radius: var(--r-sm);
  cursor: pointer;
  transition: all 0.35s var(--ease-spring-alt);
}

.day-event-card:hover {
  border-color: var(--gold-bright-glow);
  background: rgba(191, 154, 94, 0.15);
  transform: translateX(4px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1), 0 0 8px rgba(191, 154, 94, 0.1);
}

[dir="rtl"] .day-event-card:hover {
  transform: translateX(-4px);
}

.day-event-card .event-card-cat {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--r-sm);
  font-size: 0.75rem;
  flex-shrink: 0;
}

.day-event-card .event-card-info {
  flex: 1;
  min-width: 0;
}

.day-event-card .event-card-title {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-1);
  margin-bottom: 3px;
}

.day-event-card .event-card-time {
  font-family: var(--font-mono);
  font-size: 0.66rem;
  color: var(--text-3);
  letter-spacing: 0.3px;
}

.day-event-card .event-card-location {
  font-size: 0.7rem;
  color: var(--text-3);
  margin-top: 2px;
}

/* ── Calendar Sidebar ── */
.cal-sidebar {
  display: flex; flex-direction: column; gap: 16px;
}
.cal-sidebar-section {
  background: var(--glass-bg); backdrop-filter: blur(8px);
  border: 1px solid var(--glass-border); border-radius: var(--r-md);
  padding: 12px; overflow: hidden;
}
.cal-sidebar-title {
  font-family: var(--font-head); font-size: 0.72rem; font-weight: 700;
  color: var(--gold); letter-spacing: 1px; text-transform: uppercase;
  margin: 0 0 10px; display: flex; align-items: center; gap: 6px;
}
.cal-sidebar-empty {
  font-size: 0.72rem; color: var(--text-3); text-align: center; padding: 12px;
}
.cal-sidebar-event {
  display: flex; align-items: flex-start; gap: 8px;
  padding: 8px 6px; border-radius: var(--r-sm); cursor: pointer;
  transition: background 0.15s; border-bottom: 1px solid var(--glass-border);
}
.cal-sidebar-event:last-child { border-bottom: none; }
.cal-sidebar-event:hover { background: var(--bg-1); }
.cal-sidebar-event.cse-is-live { background: rgba(0, 232, 143, 0.06); }
.cal-sidebar-event.cse-is-past { opacity: 0.5; }
.cse-dot {
  width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0; margin-top: 4px;
}
.cse-info { flex: 1; min-width: 0; }
.cse-title {
  font-size: 0.75rem; font-weight: 600; color: var(--text-1);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.cse-meta {
  display: flex; flex-wrap: wrap; gap: 6px; margin-top: 2px;
  font-size: 0.62rem; color: var(--text-3);
}
.cse-meta span { display: flex; align-items: center; gap: 2px; }
.cse-time-badge {
  font-size: 0.58rem; padding: 2px 6px; border-radius: 6px;
  font-weight: 700; flex-shrink: 0; white-space: nowrap; margin-top: 2px;
}
.cse-live { background: var(--green); color: white; animation: pulse-badge 1.5s infinite; }
.cse-today { background: var(--gold); color: white; }
.cse-soon { background: var(--cyan); color: #0a1628; }
.cse-past { background: var(--bg-2); color: var(--text-3); }
@keyframes pulse-badge { 0%, 100% { opacity: 1; } 50% { opacity: 0.6; } }

/* ══════════════════════════════════════════════════
   ANALYTICS
   ══════════════════════════════════════════════════ */
.analytics-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 12px;
  margin-bottom: 28px;
}

.analytics-card {
  background: var(--glass-bg);
  backdrop-filter: blur(8px);
  border: 1px solid var(--glass-border);
  border-radius: var(--r-md);
  padding: 18px;
  text-align: center;
  position: relative;
  overflow: hidden;
  transition: all 0.35s var(--ease-spring-alt);
}

.analytics-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
  opacity: 0.5;
  transition: opacity 0.35s var(--ease-spring-alt);
}

.analytics-card:hover {
  border-color: var(--gold-bright-glow);
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.2), 0 0 20px var(--gold-glow);
  transform: translateY(-4px);
}

.analytics-card:hover::before {
  opacity: 1;
  box-shadow: 0 0 12px var(--gold-bright-glow);
}

.analytics-label {
  font-family: var(--font-mono);
  font-size: 0.6rem;
  color: var(--text-3);
  text-transform: uppercase;
  letter-spacing: 0.8px;
  margin-bottom: 8px;
}

.analytics-value {
  font-family: var(--font-head);
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--text-1);
  letter-spacing: 0.5px;
}

.analytics-section {
  background: var(--glass-bg);
  backdrop-filter: blur(8px);
  border: 1px solid var(--glass-border);
  border-radius: var(--r-md);
  padding: 20px;
  margin-bottom: 16px;
  transition: all 0.35s var(--ease-spring-alt);
}

.analytics-section:hover {
  border-color: var(--gold-bright-glow);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2), 0 0 16px var(--gold-glow);
}

.analytics-section h3 {
  font-family: var(--font-head);
  font-size: 0.76rem;
  font-weight: 700;
  color: var(--text-1);
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: 16px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--glass-border);
}

.analytics-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.analytics-row {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.78rem;
  color: var(--text-2);
}

.analytics-row > span:first-child {
  min-width: 140px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.analytics-row > span:last-child {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--text-1);
  min-width: 28px;
  text-align: right;
}

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

.bar-fill {
  height: 100%;
  border-radius: 4px;
  background: var(--gold);
  transition: width 0.5s var(--ease-spring);
}

.donut-container {
  display: flex;
  justify-content: center;
}

.donut-chart-container {
  display: flex;
  align-items: center;
  gap: 28px;
  justify-content: center;
  flex-wrap: wrap;
}

.donut-chart {
  width: 140px;
  height: 140px;
}

.donut-chart text {
  fill: var(--text-1);
  font-family: var(--font-head);
}

.donut-legend {
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-size: 0.78rem;
  color: var(--text-2);
}

.donut-legend div {
  display: flex;
  align-items: center;
  gap: 8px;
}

.donut-legend span {
  width: 12px;
  height: 12px;
  border-radius: 3px;
  flex-shrink: 0;
}

/* ══════════════════════════════════════════════════
   ARCHIVE
   ══════════════════════════════════════════════════ */
.archive-container {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 14px;
}

.archive-card {
  background: var(--glass-bg);
  backdrop-filter: blur(8px);
  border: 1px solid var(--glass-border);
  border-radius: var(--r-md);
  overflow: hidden;
  transition: all 0.35s var(--ease-spring-alt);
  opacity: 0.85;
}

.archive-card:hover {
  border-color: var(--gold-bright-glow);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2), 0 0 16px var(--gold-glow);
  transform: translateY(-2px);
  opacity: 1;
}

.archive-card-header {
  padding: 14px 16px;
}

.archive-card-header h4 {
  font-size: 0.84rem;
  font-weight: 700;
}

.archive-card-body {
  padding: 12px 16px;
}

.archive-item {
  font-size: 0.78rem;
  color: var(--text-2);
  padding: 4px 0;
}

.archive-item strong {
  color: var(--text-1);
  margin-right: 4px;
}

.archive-card .btn {
  margin: 0 16px 14px;
}

.archive-label {
  font-family: var(--font-head);
  font-size: 0.73rem;
  font-weight: 700;
  color: var(--text-1);
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: 12px;
}

.cancelled-card {
  opacity: 0.5;
}

/* ══════════════════════════════════════════════════
   SETTINGS
   ══════════════════════════════════════════════════ */
.settings-container {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
  max-width: 900px;
}

.settings-container .settings-card:has(.dd-editor) {
  grid-column: 1 / -1;
}

.settings-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 16px;
}

.settings-card {
  background: var(--glass-bg);
  backdrop-filter: blur(12px);
  border: 1px solid var(--glass-border);
  border-radius: var(--r-md);
  overflow: hidden;
  transition: all 0.35s var(--ease-spring-alt);
}

.settings-card:hover {
  border-color: var(--glass-border-hover);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2), 0 0 16px rgba(191, 154, 94, 0.08);
}

.settings-card-title {
  font-family: var(--font-head);
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--text-1);
  letter-spacing: 1px;
  text-transform: uppercase;
  padding: 14px 16px;
  border-bottom: 1px solid var(--glass-border);
}

.settings-card-body {
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.about-info {
  line-height: 1.6;
}

/* ── Dropdown Editor ── */
.dd-editor {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.dd-list {
  display: flex;
  flex-direction: column;
  gap: 4px;
  max-height: 260px;
  overflow-y: auto;
}

.dd-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 10px;
  background: var(--input-bg);
  border: 1px solid var(--glass-border);
  border-radius: var(--r-sm);
  transition: all 0.2s;
}

.dd-item:hover {
  border-color: var(--glass-border-hover);
  background: var(--input-bg-hover);
}

.dd-color {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  flex-shrink: 0;
}

.dd-name {
  flex: 1;
  font-size: 0.78rem;
  color: var(--text-1);
  font-weight: 500;
}

.dd-id {
  font-family: var(--font-mono);
  font-size: 0.6rem;
  color: var(--text-3);
  letter-spacing: 0.3px;
  opacity: 0.6;
}

.dd-edit-btn,
.dd-del-btn {
  background: none;
  border: none;
  color: var(--text-3);
  cursor: pointer;
  padding: 3px;
  border-radius: 4px;
  display: flex;
  align-items: center;
  transition: all 0.2s;
  opacity: 0;
}

.dd-item:hover .dd-edit-btn,
.dd-item:hover .dd-del-btn {
  opacity: 1;
}

.dd-edit-btn:hover {
  color: var(--gold);
  background: rgba(201, 162, 39, 0.1);
}

.dd-del-btn:hover {
  color: #f43f7a;
  background: rgba(244, 63, 122, 0.1);
}

.dd-add-row {
  display: flex;
  gap: 6px;
  align-items: center;
  padding-top: 8px;
  border-top: 1px solid var(--glass-border);
}

.dd-input {
  flex: 1;
  padding: 6px 10px;
  background: var(--input-bg);
  border: 1px solid var(--glass-border);
  border-radius: var(--r-sm);
  color: var(--text-1);
  font-size: 0.76rem;
  font-family: var(--font);
  transition: all 0.2s;
}

.dd-input:focus {
  outline: none;
  border-color: var(--gold);
  background: var(--input-bg-focus);
}

.dd-edit-modal {
  background: var(--bg-1);
  border: 1px solid var(--glass-border);
  border-radius: var(--r-md);
  padding: 24px;
  max-width: 400px;
  width: 90%;
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.3);
}

.dd-edit-modal h3 {
  font-family: var(--font-head);
  font-size: 0.8rem;
  color: var(--gold);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 16px;
}

.btn-sm {
  padding: 5px 10px;
  font-size: 0.7rem;
  white-space: nowrap;
}

/* ── Event Detail Tabs ── */
.ed-tabbed { max-width: 720px; }
.ed-tabs {
  display: flex; gap: 0; border-bottom: 2px solid var(--glass-border);
  padding: 0 16px; background: var(--bg-1);
}
.ed-tab {
  display: flex; align-items: center; gap: 6px;
  padding: 10px 16px; border: none; background: none;
  color: var(--text-2); font-size: 0.82rem; font-weight: 500;
  cursor: pointer; border-bottom: 2px solid transparent;
  margin-bottom: -2px; transition: all 0.2s;
}
.ed-tab:hover { color: var(--gold); }
.ed-tab.active { color: var(--gold); border-bottom-color: var(--gold); }
.ed-tab-badge {
  font-size: 0.65rem; background: var(--gold); color: #fff;
  padding: 1px 6px; border-radius: 8px; font-weight: 600;
}
.ed-tab-content { display: none; padding: 16px; max-height: 420px; overflow-y: auto; }
.ed-tab-content.active { display: block; }

/* ── Action Plan ── */
.ap-container { display: flex; flex-direction: column; gap: 16px; }
.ap-progress-bar {
  position: relative; height: 28px; background: var(--bg-2);
  border-radius: 14px; overflow: hidden;
}
.ap-progress-fill {
  height: 100%; background: linear-gradient(90deg, var(--gold), var(--green));
  border-radius: 14px; transition: width 0.5s var(--ease-spring);
}
.ap-progress-text {
  position: absolute; inset: 0; display: flex; align-items: center;
  justify-content: center; font-size: 0.72rem; font-weight: 600;
  color: var(--text-1); text-shadow: 0 1px 2px rgba(0,0,0,0.1);
}
.ap-phase {
  border-radius: 10px; background: var(--glass-bg);
  border: 1px solid var(--glass-border); overflow: hidden;
}
.ap-phase-header {
  display: flex; align-items: center; gap: 8px;
  padding: 10px 14px; border-left: 4px solid;
  background: var(--bg-1); font-weight: 600; font-size: 0.82rem;
}
.ap-phase-icon { display: flex; align-items: center; }
.ap-phase-title { flex: 1; color: var(--text-1); }
.ap-phase-count {
  font-size: 0.7rem; background: var(--bg-2); color: var(--text-2);
  padding: 2px 8px; border-radius: 10px;
}
.ap-task-list { padding: 6px 10px; }
.ap-task {
  display: flex; align-items: center; gap: 8px;
  padding: 8px 6px; border-bottom: 1px solid var(--glass-border);
  transition: background 0.15s;
}
.ap-task:last-child { border-bottom: none; }
.ap-task:hover { background: var(--bg-1); }
.ap-task-done { opacity: 0.55; }
.ap-task-done .ap-task-text { text-decoration: line-through; }
.ap-task-check { display: flex; align-items: center; cursor: pointer; }
.ap-task-check input { display: none; }
.ap-checkmark {
  width: 18px; height: 18px; border-radius: 4px;
  border: 2px solid var(--glass-border-hover); display: flex;
  align-items: center; justify-content: center; transition: all 0.2s;
}
.ap-task-check input:checked + .ap-checkmark {
  background: var(--gold); border-color: var(--gold);
}
.ap-task-check input:checked + .ap-checkmark::after {
  content: '✓'; color: white; font-size: 12px; font-weight: 700;
}
.ap-task-info { flex: 1; min-width: 0; }
.ap-task-text { font-size: 0.78rem; color: var(--text-1); }
.ap-task-assignee {
  display: flex; align-items: center; gap: 3px;
  font-size: 0.65rem; color: var(--text-3); margin-top: 2px;
}
.ap-task-actions { display: flex; gap: 4px; opacity: 0; transition: opacity 0.15s; }
.ap-task:hover .ap-task-actions { opacity: 1; }
.ap-empty { text-align: center; font-size: 0.72rem; color: var(--text-3); padding: 12px; }
.ap-add-btn { margin: 6px 10px 10px; }

/* ── mSurvey Import ── */
.sv-container { display: flex; flex-direction: column; gap: 16px; }
.sv-msurvey-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 12px 14px; background: var(--bg-1); border-radius: 10px;
  border: 1px solid var(--glass-border);
}
.sv-msurvey-brand {
  display: flex; align-items: center; gap: 10px; color: var(--gold);
}
.sv-msurvey-brand h4 { margin: 0; font-size: 0.85rem; color: var(--text-1); }
.sv-msurvey-brand p { margin: 0; font-size: 0.65rem; color: var(--text-3); }
.sv-msurvey-stats { display: flex; gap: 8px; }
.sv-stat-chip {
  display: flex; align-items: center; gap: 4px; font-size: 0.65rem;
  padding: 3px 8px; border-radius: 8px; background: var(--bg-2);
  color: var(--text-2); font-weight: 600;
}

/* Dropzone */
.sv-import-area { margin: 0; }
.sv-dropzone {
  border: 2px dashed var(--glass-border-hover); border-radius: 12px;
  padding: 28px 20px; text-align: center; cursor: pointer;
  transition: all 0.2s; background: var(--bg-1);
}
.sv-dropzone:hover, .sv-dropzone.dragover {
  border-color: var(--gold); background: rgba(201, 162, 39, 0.04);
}
.sv-dropzone-icon { color: var(--gold); margin-bottom: 8px; opacity: 0.6; }
.sv-dropzone-text { font-size: 0.78rem; color: var(--text-1); margin: 4px 0; }
.sv-dropzone-hint { font-size: 0.65rem; color: var(--text-3); margin: 0 0 10px; }

/* Imported Datasets */
.sv-imports-section {
  border-radius: 10px; background: var(--glass-bg);
  border: 1px solid var(--glass-border); overflow: hidden;
}
.sv-imports-section h4 {
  display: flex; align-items: center; gap: 6px;
  padding: 10px 14px; background: var(--bg-1); margin: 0;
  font-size: 0.78rem; color: var(--text-1);
}
.sv-imports-list { padding: 4px 10px; }
.sv-import-item {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 4px; border-bottom: 1px solid var(--glass-border);
}
.sv-import-item:last-child { border-bottom: none; }
.sv-import-icon { color: var(--gold); flex-shrink: 0; }
.sv-import-info { flex: 1; min-width: 0; }
.sv-import-name {
  display: block; font-size: 0.78rem; font-weight: 600; color: var(--text-1);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.sv-import-meta { font-size: 0.62rem; color: var(--text-3); display: block; margin-top: 2px; }
.sv-import-actions { display: flex; gap: 4px; flex-shrink: 0; }

/* Summary Section */
.sv-summary-section {
  display: flex; gap: 8px; justify-content: center; padding: 4px 0;
}

/* Preview Modal & Data Table */
.sv-preview-modal { max-width: 500px; }
.sv-table-wrap {
  max-height: 340px; overflow: auto; border-radius: 8px;
  border: 1px solid var(--glass-border);
}
.sv-data-table {
  width: 100%; border-collapse: collapse; font-size: 0.68rem;
}
.sv-data-table th {
  background: var(--bg-1); color: var(--text-1); font-weight: 600;
  padding: 6px 8px; text-align: left; position: sticky; top: 0;
  border-bottom: 2px solid var(--gold); white-space: nowrap;
}
.sv-data-table td {
  padding: 5px 8px; border-bottom: 1px solid var(--glass-border);
  color: var(--text-2); max-width: 160px; overflow: hidden;
  text-overflow: ellipsis; white-space: nowrap;
}
.sv-data-table tbody tr:hover { background: var(--bg-1); }

/* Results Modal (reused for summary) */
.sv-results-modal { max-width: 560px; }
.sv-results-list { display: flex; flex-direction: column; gap: 14px; }
.sv-result-item {
  padding: 10px; background: var(--bg-1); border-radius: 8px;
  border: 1px solid var(--glass-border);
}
.sv-result-q { font-size: 0.78rem; font-weight: 600; color: var(--text-1); margin-bottom: 8px; }
.sv-result-rating { display: flex; flex-direction: column; gap: 6px; }
.sv-avg { font-size: 1.2rem; font-weight: 700; color: var(--gold); }
.sv-result-texts { display: flex; flex-direction: column; gap: 4px; }
.sv-result-text-item {
  font-size: 0.72rem; color: var(--text-2); font-style: italic;
  padding: 4px 8px; background: var(--bg-2); border-radius: 4px;
}
.sv-more { font-size: 0.65rem; color: var(--text-3); }

/* ── Form Builder ── */
.fb-card {
  grid-column: 1 / -1;
}

.fb-hint {
  font-size: 0.72rem;
  color: var(--text-3);
  margin-bottom: 8px;
  line-height: 1.5;
}

.fb-field-list {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-bottom: 10px;
}

.fb-field-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  background: var(--input-bg);
  border: 1px solid var(--glass-border);
  border-radius: var(--r-sm);
  transition: all 0.2s;
}

.fb-field-item:hover {
  border-color: var(--glass-border-hover);
  background: var(--input-bg-hover);
}

.fb-field-order {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1px;
  min-width: 24px;
}

.fb-field-num {
  font-family: var(--font-mono);
  font-size: 0.6rem;
  color: var(--text-3);
  font-weight: 700;
}

.fb-move-btn {
  background: none;
  border: none;
  color: var(--text-3);
  cursor: pointer;
  padding: 1px;
  border-radius: 3px;
  display: flex;
  transition: all 0.15s;
  opacity: 0.4;
}

.fb-move-btn:hover:not([disabled]) {
  color: var(--gold);
  opacity: 1;
}

.fb-move-btn[disabled] {
  opacity: 0.15;
  cursor: default;
}

.fb-move-down {
  transform: rotate(180deg);
}

.fb-field-info {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.fb-field-label {
  font-size: 0.78rem;
  color: var(--text-1);
  font-weight: 500;
}

.fb-type-badge {
  font-family: var(--font-mono);
  font-size: 0.55rem;
  color: white;
  padding: 1px 6px;
  border-radius: 3px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-weight: 700;
}

.fb-required-badge {
  font-family: var(--font-mono);
  font-size: 0.5rem;
  color: #f43f7a;
  border: 1px solid rgba(244, 63, 122, 0.3);
  padding: 0 4px;
  border-radius: 3px;
  font-weight: 700;
  letter-spacing: 0.5px;
}

.fb-options-hint {
  font-size: 0.6rem;
  color: var(--text-3);
  font-style: italic;
}

.fb-field-actions {
  display: flex;
  gap: 2px;
  opacity: 0;
  transition: opacity 0.2s;
}

.fb-field-item:hover .fb-field-actions {
  opacity: 1;
}

.fb-actions-bar {
  display: flex;
  gap: 8px;
  padding-top: 8px;
  border-top: 1px solid var(--glass-border);
  margin-bottom: 14px;
}

.fb-templates-section {
  padding-top: 10px;
  border-top: 1px solid var(--glass-border);
}

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

.fb-section-label {
  font-family: var(--font-head);
  font-size: 0.64rem;
  color: var(--gold);
  text-transform: uppercase;
  letter-spacing: 1px;
  font-weight: 700;
}

.fb-template-list {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.fb-template-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 6px 10px;
  background: var(--input-bg);
  border: 1px solid var(--glass-border);
  border-radius: var(--r-sm);
  transition: all 0.2s;
}

.fb-template-item:hover {
  border-color: var(--glass-border-hover);
}

.fb-template-info {
  display: flex;
  align-items: center;
  gap: 8px;
}

.fb-template-name {
  font-size: 0.76rem;
  color: var(--text-1);
  font-weight: 500;
}

.fb-template-count {
  font-family: var(--font-mono);
  font-size: 0.58rem;
  color: var(--text-3);
}

.fb-template-actions {
  display: flex;
  gap: 4px;
}

.fb-empty,
.fb-empty-sm {
  font-size: 0.72rem;
  color: var(--text-3);
  font-style: italic;
  padding: 10px 0;
  text-align: center;
}

.fb-empty-sm {
  padding: 6px 0;
  font-size: 0.66rem;
}

.fb-modal {
  max-width: 480px;
}

/* ══════════════════════════════════════════════════
   SECTION HEADER
   ══════════════════════════════════════════════════ */
.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}

.section-header h3 {
  font-family: var(--font-head);
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--text-1);
  letter-spacing: 1px;
  text-transform: uppercase;
  position: relative;
  padding-bottom: 8px;
}

.section-header h3::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 60px;
  height: 2px;
  background: linear-gradient(90deg, var(--slc-blue), var(--gold));
}

.section-count {
  font-family: var(--font-mono);
  font-size: 0.66rem;
  color: var(--text-3);
}

.events-count {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  color: var(--text-3);
  margin-bottom: 12px;
  letter-spacing: 0.5px;
}

/* ══════════════════════════════════════════════════
   EMPTY STATE
   ══════════════════════════════════════════════════ */
.empty-state {
  font-size: 0.8rem;
  color: var(--text-3);
  text-align: center;
  padding: 20px;
}

.empty-state-lg {
  font-size: 0.86rem;
  color: var(--text-3);
  text-align: center;
  padding: 60px 20px;
  background: var(--glass-bg);
  border: 1px dashed var(--glass-border);
  border-radius: var(--r-md);
}

.empty-icon {
  font-size: 2.2rem;
  margin-bottom: 10px;
  opacity: 0.35;
}

.empty-title {
  font-family: var(--font-head);
  font-size: 11px;
  color: var(--text-2);
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 4px;
}

.empty-text {
  font-size: 12px;
  color: var(--text-3);
  max-width: 360px;
  margin: 0 auto;
  line-height: 1.6;
}

/* ── Loading Spinner ── */
.loading-spinner {
  text-align: center;
  padding: 24px;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-3);
}

.loading-spinner::before {
  content: '';
  display: block;
  width: 24px;
  height: 24px;
  border: 2px solid var(--border-2, rgba(31, 61, 120, 0.4));
  border-top-color: var(--gold);
  border-radius: 50%;
  margin: 0 auto 10px;
  animation: spinLoader 0.8s linear infinite;
}

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

/* ══════════════════════════════════════════════════
   TOAST NOTIFICATIONS
   ══════════════════════════════════════════════════ */
#toastContainer {
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1000;
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-items: center;
}

.toast {
  padding: 12px 20px;
  border-radius: var(--r-sm);
  font-size: 0.8rem;
  transform: translateY(20px);
  opacity: 0;
  transition: all 0.35s var(--ease-spring-alt);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4), 0 0 16px rgba(0, 0, 0, 0.2);
  background: var(--glass-bg);
  backdrop-filter: blur(12px);
  border: 1px solid var(--glass-border);
  min-height: 44px;
  display: flex;
  align-items: center;
  max-width: 400px;
}

.toast.show {
  transform: translateY(0);
  opacity: 1;
}

.toast-success {
  border-color: rgba(0, 232, 143, 0.3);
  color: var(--green);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4), 0 0 16px rgba(0, 232, 143, 0.15);
}

.toast-error {
  border-color: rgba(255, 77, 94, 0.3);
  color: var(--red);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4), 0 0 16px rgba(255, 48, 64, 0.15);
}

.toast-info {
  border-color: rgba(191, 154, 94, 0.3);
  color: var(--gold);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4), 0 0 16px rgba(191, 154, 94, 0.15);
}

/* ══════════════════════════════════════════════════
   SECTION SEPARATORS
   ══════════════════════════════════════════════════ */
.section-line {
  display: flex;
  align-items: center;
  gap: 16px;
  margin: 24px 0;
}
.section-line::before, .section-line::after {
  content: "";
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--border-2), transparent);
}
.section-line-label {
  font-family: var(--font-mono);
  font-size: 0.58rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--text-3);
  white-space: nowrap;
}

/* ══════════════════════════════════════════════════
   RESPONSIVE DESIGN
   ══════════════════════════════════════════════════ */
@media (max-width: 1024px) {
  .navbar-date {
    display: none;
  }
  .navbar-center {
    flex: 0 1 280px;
  }
}

@media (max-width: 768px) {
  .app {
    grid-template-columns: 1fr;
  }
  .sidebar {
    position: fixed;
    left: -260px;
    width: 260px;
    transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 4px 0 24px rgba(0, 0, 0, 0.4), 0 0 20px rgba(191, 154, 94, 0.1);
  }
  [dir="rtl"] .sidebar {
    left: auto;
    right: -260px;
  }
  .sidebar.open {
    transform: translateX(260px);
  }
  [dir="rtl"] .sidebar.open {
    transform: translateX(-260px);
  }
  .hamburger {
    display: flex;
  }
  .navbar-center {
    display: none;
  }
  .navbar-date {
    display: none;
  }
  .navbar-title {
    font-size: 0.73rem;
  }
  .navbar-subtitle {
    display: none;
  }
  .stat-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .dash-grid {
    grid-template-columns: 1fr;
  }
  .form-row {
    grid-template-columns: 1fr;
  }
  .form-row-3 {
    grid-template-columns: 1fr;
  }
  .events-grid {
    grid-template-columns: 1fr;
  }
  .detail-grid {
    grid-template-columns: 1fr;
  }
  .reg-table-header,
  .reg-table-row {
    grid-template-columns: 1.5fr 1fr 1fr 60px;
    font-size: 0.7rem;
  }
  .analytics-grid {
    grid-template-columns: 1fr;
  }
  .navbar-notif-panel {
    width: 280px;
    right: -40px;
  }
  .emp-grid {
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  }
  .calendar-day {
    min-height: 70px;
    padding: 6px;
  }
  .calendar-day-num {
    font-size: 0.72rem;
  }
}

@media (max-width: 480px) {
  .navbar-right .navbar-icon-btn:nth-child(1) {
    display: none;
  }
  .navbar-lang-btn {
    display: none;
  }
  .stat-grid {
    grid-template-columns: 1fr;
  }
  .detail-grid {
    grid-template-columns: 1fr;
  }
  .form-row {
    grid-template-columns: 1fr;
  }
  .reg-table-header,
  .reg-table-row {
    grid-template-columns: 1fr;
    font-size: 0.68rem;
  }
  .emp-grid {
    grid-template-columns: 1fr;
  }
  .calendar-day {
    min-height: 55px;
    padding: 4px;
  }
  .calendar-day-num {
    font-size: 0.66rem;
  }
  .event-dot {
    height: 3px;
  }
  .weekday {
    font-size: 0.55rem;
    letter-spacing: 0.5px;
  }
  .calendar-header h2 {
    font-size: 0.76rem;
    min-width: 160px;
  }
  .page {
    padding: 16px;
  }
  .modal {
    width: 96%;
  }
}

/* ══════════════════════════════════════════════════
   LOGIN SCREEN — Dubai Skyline Professional Landing
   ══════════════════════════════════════════════════ */
.login-screen {
  position: fixed;
  inset: 0;
  z-index: 9999;
  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;
}

/* ── Dubai Photo Wallpaper 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); }
}
.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 Overlay ── */
.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 Gold 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); }
}

/* ── Decorative Geometric Lines ── */
.login-geo-line {
  position: absolute;
  pointer-events: none;
  z-index: 0;
}
.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 ── */
.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 var(--ease-spring);
}
.login-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--slc-blue-light), 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 Section ── */
.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);
  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);
  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);
  letter-spacing: 1.5px;
  text-transform: uppercase;
  line-height: 1.6;
  margin-bottom: 0;
}
.login-brand-powered span {
  color: var(--gold);
  font-weight: 600;
}

/* ── Divider ── */
.login-divider {
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--border-2), transparent);
  margin: 24px 0 22px;
}
.login-divider span {
  display: none;
}

/* ── 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);
  text-transform: uppercase;
  letter-spacing: 1px;
}
.login-label-ar {
  font-family: var(--ar);
  font-size: 0.68rem;
  color: var(--text-3);
  margin-left: 8px;
  text-transform: none;
}
.login-input-wrap {
  position: relative;
  display: flex;
  align-items: center;
}
.login-input-icon {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-3);
  pointer-events: none;
  transition: color 0.25s;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.login-input-wrap:focus-within .login-input-icon {
  color: var(--gold);
}
.login-field input {
  width: 100%;
  padding: 13px 16px 13px 42px;
  border: 1.5px solid var(--border-2);
  border-radius: 12px;
  background: rgba(0,0,0,0.25);
  color: var(--text-1);
  font-size: 0.88rem;
  font-family: var(--font);
  transition: all 0.25s;
  box-sizing: border-box;
  outline: none;
}
.login-field input:focus {
  border-color: var(--slc-blue-light);
  background: rgba(255,255,255,0.06);
  box-shadow: 0 0 0 3px rgba(0,51,160,0.12);
}
.login-field input::placeholder {
  color: var(--text-3);
}

.login-info-box {
  font-size: 0.82rem;
  color: var(--text-3);
  background: rgba(191,154,94,0.05);
  border: 1px solid rgba(191,154,94,0.1);
  border-radius: 10px;
  padding: 10px 14px;
  line-height: 1.55;
  border-left: 3px solid rgba(191,154,94,0.3);
}

.login-error {
  font-size: 0.8rem;
  color: var(--red);
  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); }
}

.login-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 14px 0;
  border: none;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--slc-blue), var(--slc-blue-light));
  color: #fff;
  font-size: 0.88rem;
  font-weight: 700;
  font-family: var(--font);
  cursor: pointer;
  transition: all 0.25s var(--ease-spring);
  box-shadow: 0 4px 20px rgba(0,51,160,0.3);
  margin-top: 6px;
  letter-spacing: 1px;
  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;
}
.login-btn svg {
  transition: transform 0.25s;
}
.login-btn:hover svg {
  transform: translateX(3px);
}

/* ── Footer ── */
.login-footer {
  text-align: center;
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid var(--border-1);
}
.login-footer-info {
  font-size: 0.6rem;
  color: var(--text-3);
  line-height: 1.7;
  letter-spacing: 0.5px;
  margin-bottom: 12px;
}
.login-footer-right {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}
.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-text {
  display: none;
}

/* ══════════════════════════════════════════════════
   PROFILE PAGE
   ══════════════════════════════════════════════════ */
/* ══════════════════════════════════════════════════
   FORM-GRID & FIELD (Profile + Modals)
   ══════════════════════════════════════════════════ */
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px 18px;
}
@media (max-width: 600px) { .form-grid { grid-template-columns: 1fr; } }

.form-grid .field {
  display: flex;
  flex-direction: column;
  gap: 5px;
}
.form-grid .field label {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  color: var(--text-3);
  text-transform: uppercase;
  letter-spacing: 0.6px;
  font-weight: 600;
}
.form-grid .field input,
.form-grid .field select,
.form-grid .field textarea {
  padding: 9px 12px;
  background: var(--input-bg);
  border: 1px solid var(--glass-border);
  border-radius: var(--r-sm);
  color: var(--text-1);
  font-size: 0.82rem;
  font-family: var(--font);
  transition: all 0.35s var(--ease-spring-alt);
  width: 100%;
  box-sizing: border-box;
}
.form-grid .field input:focus,
.form-grid .field select:focus,
.form-grid .field textarea:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(191,154,94,0.1), 0 0 12px rgba(191,154,94,0.08);
  background: var(--input-bg-focus);
}
.form-grid .field textarea {
  resize: vertical;
  min-height: 60px;
  max-height: 160px;
}
.form-grid .field input:disabled,
.form-grid .field select:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}
.form-grid .field-full {
  grid-column: 1 / -1;
}

/* ══════════════════════════════════════════════════
   EVENT REQUESTS
   ══════════════════════════════════════════════════ */
.request-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.request-card {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: var(--r-md);
  padding: 16px 18px;
  transition: border-color 0.3s;
}
.request-card:hover {
  border-color: var(--gold-dim);
}
.request-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}
.request-card-title {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-1);
}
.request-card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  font-size: 0.78rem;
  color: var(--text-3);
  margin-bottom: 8px;
}
.request-card-meta span {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.request-card-desc {
  font-size: 0.82rem;
  color: var(--text-2);
  line-height: 1.5;
  margin-bottom: 10px;
}
.request-status {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 10px;
  border-radius: 20px;
  font-size: 0.72rem;
  font-weight: 600;
}
.request-status.st-pending {
  background: rgba(240,168,48,0.1);
  color: var(--amber);
  border: 1px solid rgba(240,168,48,0.2);
}
.request-status.st-approved {
  background: rgba(0,200,120,0.1);
  color: var(--green);
  border: 1px solid rgba(0,200,120,0.15);
}
.request-status.st-rejected {
  background: rgba(244,63,122,0.08);
  color: var(--red);
  border: 1px solid rgba(244,63,122,0.15);
}
.request-status.st-amendment {
  background: rgba(0,212,255,0.08);
  color: var(--cyan);
  border: 1px solid rgba(0,212,255,0.15);
}
.request-card-actions {
  display: flex;
  gap: 8px;
  margin-top: 10px;
  flex-wrap: wrap;
}
.request-card-actions .btn {
  font-size: 0.78rem;
  padding: 6px 14px;
}
.request-comment-box {
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid var(--glass-border);
}
.request-comment-box textarea {
  width: 100%;
  box-sizing: border-box;
  padding: 8px 12px;
  background: var(--input-bg);
  border: 1px solid var(--glass-border);
  border-radius: var(--r-sm);
  color: var(--text-1);
  font-size: 0.82rem;
  font-family: var(--font);
  resize: vertical;
  min-height: 50px;
  margin-bottom: 8px;
}
.request-comment-box textarea:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(191,154,94,0.1);
}
.request-amendment-note {
  background: rgba(0,212,255,0.05);
  border: 1px solid rgba(0,212,255,0.15);
  border-radius: var(--r-sm);
  padding: 10px 12px;
  margin-top: 8px;
  font-size: 0.82rem;
  color: var(--text-2);
}
.request-amendment-note strong {
  color: var(--cyan);
  font-size: 0.72rem;
  text-transform: uppercase;
}
.request-history {
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid var(--glass-border);
}
.request-history-item {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  padding: 6px 0;
  font-size: 0.78rem;
  color: var(--text-3);
}
.request-history-item .history-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  margin-top: 4px;
  flex-shrink: 0;
}
.request-empty {
  text-align: center;
  padding: 40px 20px;
  color: var(--text-3);
}
.request-empty svg {
  opacity: 0.3;
  margin-bottom: 12px;
}

/* ══════════════════════════════════════════════════
   REQUEST GRID VIEW
   ══════════════════════════════════════════════════ */
.req-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 14px;
}
@media (max-width: 600px) { .req-grid { grid-template-columns: 1fr; } }

.req-grid-card {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: var(--r-md);
  overflow: hidden;
  cursor: pointer;
  transition: border-color 0.3s, transform 0.2s, box-shadow 0.3s;
  display: flex;
  flex-direction: column;
}
.req-grid-card:hover {
  border-color: var(--gold-dim);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0,0,0,0.12);
}
.req-grid-card-top {
  padding: 14px 16px;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.req-grid-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.req-grid-card-title {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-1);
  line-height: 1.3;
}
.req-grid-card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 0.72rem;
  color: var(--text-3);
  margin-top: 4px;
}
.req-grid-card-meta span {
  display: inline-flex;
  align-items: center;
  gap: 3px;
}
.req-grid-card-bottom {
  padding: 10px 16px;
  border-top: 1px solid var(--glass-border);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.72rem;
  color: var(--text-3);
  background: rgba(0,0,0,0.02);
}
[data-theme="dark"] .req-grid-card-bottom {
  background: rgba(255,255,255,0.015);
}
.req-grid-card-detail {
  display: flex;
  gap: 12px;
}
.req-grid-card-detail span {
  display: inline-flex;
  align-items: center;
  gap: 3px;
}
.req-grid-card-badge {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  font-weight: 600;
  font-size: 0.68rem;
}

.profile-container {
  max-width: 720px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.profile-header-card {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 28px 24px;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: var(--r-lg);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}
.profile-avatar-large {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--gold), var(--gold-dark));
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-head);
  font-size: 1.3rem;
  font-weight: 700;
  letter-spacing: 1px;
  flex-shrink: 0;
  box-shadow: 0 4px 16px rgba(191,154,94,0.3);
}
.profile-header-info h2 {
  margin: 0;
  font-size: 1.35rem;
  color: var(--text-1);
  font-weight: 600;
}
.profile-name-ar {
  font-family: var(--ar);
  font-size: 0.95rem;
  color: var(--text-3);
  margin-top: 2px;
}
.profile-role-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 10px;
  border-radius: 20px;
  font-size: 0.78rem;
  font-weight: 600;
  margin-top: 6px;
}
.profile-role-badge.role-cc_head {
  background: rgba(191,154,94,0.15);
  color: var(--gold);
  border: 1px solid rgba(191,154,94,0.2);
}
.profile-role-badge.role-cc_employee {
  background: rgba(0,51,160,0.12);
  color: var(--cyan);
  border: 1px solid rgba(0,51,160,0.2);
}
.profile-role-badge.role-employee {
  background: rgba(0,200,120,0.1);
  color: var(--green);
  border: 1px solid rgba(0,200,120,0.15);
}
.profile-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 8px;
  font-size: 0.82rem;
  color: var(--text-3);
}
.profile-meta span {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.profile-alert {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  background: rgba(240,168,48,0.08);
  border: 1px solid rgba(240,168,48,0.2);
  border-radius: var(--r-md);
  color: var(--amber);
  font-size: 0.88rem;
}

/* ══════════════════════════════════════════════════
   USER MANAGEMENT LIST (CC Head)
   ══════════════════════════════════════════════════ */
.user-mgmt-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.user-mgmt-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border-radius: var(--r-sm);
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  transition: background 0.2s;
}
.user-mgmt-row:hover {
  background: var(--glass-border);
}
.user-mgmt-avatar {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--gold), var(--gold-dark));
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-head);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  flex-shrink: 0;
}
.user-mgmt-info {
  flex: 1;
  min-width: 0;
}
.user-mgmt-name {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-1);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.user-mgmt-name-ar {
  font-family: var(--ar);
  font-size: 0.78rem;
  color: var(--text-3);
  margin-left: 6px;
}
.user-mgmt-meta {
  font-size: 0.78rem;
  color: var(--text-3);
  margin-top: 2px;
}
.user-mgmt-actions {
  display: flex;
  gap: 6px;
  flex-shrink: 0;
}
.btn-sm {
  padding: 4px 10px;
  font-size: 0.78rem;
}

/* Light theme overrides for login & profile */
[data-theme="light"] .login-screen {
  background: #e8edf5;
  background-image:
    radial-gradient(ellipse at 20% 30%, rgba(0, 51, 160, 0.08) 0%, transparent 50%),
    radial-gradient(ellipse at 80% 60%, rgba(191, 154, 94, 0.06) 0%, transparent 45%),
    radial-gradient(ellipse at 50% 90%, rgba(0, 51, 160, 0.05) 0%, transparent 40%);
}
[data-theme="light"] .login-bg-photo {
  filter: saturate(0.5) brightness(0.65);
}
[data-theme="light"] .login-bg-overlay {
  background:
    linear-gradient(180deg, rgba(240,243,247,0.82) 0%, rgba(240,243,247,0.5) 40%, rgba(240,243,247,0.8) 100%),
    radial-gradient(ellipse at 50% 50%, rgba(138,109,27,0.04) 0%, transparent 70%);
}
[data-theme="light"] .login-bg-skyline svg {
  fill: #8a6d1b;
  stroke: #8a6d1b;
  opacity: 0.08;
}
[data-theme="light"] .login-particle {
  background: #8a6d1b;
}
[data-theme="light"] .login-card {
  background: rgba(255,255,255,0.92);
  border-color: rgba(0,0,0,0.08);
  box-shadow: 0 24px 80px rgba(0,0,0,0.12), 0 0 0 1px rgba(0,0,0,0.04);
}
[data-theme="light"] .login-field input {
  background: rgba(0,0,0,0.03);
  border-color: rgba(0,0,0,0.1);
  color: #1a2332;
}
[data-theme="light"] .login-field input:focus {
  border-color: var(--slc-blue);
  background: rgba(0,51,160,0.03);
  box-shadow: 0 0 0 3px rgba(0,51,160,0.08);
}
[data-theme="light"] .login-input-icon {
  color: #8a9bb4;
}
[data-theme="light"] .login-input-wrap:focus-within .login-input-icon {
  color: #8a6d1b;
}
[data-theme="light"] .login-info-box {
  background: rgba(138,109,27,0.04);
  border-color: rgba(138,109,27,0.1);
  border-left-color: rgba(138,109,27,0.25);
  color: #6b7a8d;
}
[data-theme="light"] .login-card::before {
  background: linear-gradient(90deg, transparent, var(--slc-blue), var(--gold), transparent);
}
[data-theme="light"] .login-brand-primary {
  color: var(--text-1);
  text-shadow: none;
}
[data-theme="light"] .login-brand-arabic {
  color: #8a6d1b;
}
[data-theme="light"] .login-brand-tagline {
  color: var(--slc-blue);
}
[data-theme="light"] .login-divider {
  background: linear-gradient(90deg, transparent, rgba(0,0,0,0.1), transparent);
}
[data-theme="light"] .login-footer {
  border-top-color: rgba(0,0,0,0.06);
}
[data-theme="light"] .login-footer-cli {
  filter: none;
  opacity: 0.6;
}
[data-theme="light"] .login-geo-line-1 {
  background: linear-gradient(90deg, transparent, rgba(138,109,27,0.12), transparent);
}
[data-theme="light"] .login-geo-line-2 {
  background: linear-gradient(90deg, transparent, rgba(0,51,160,0.08), transparent);
}

@media (max-width: 480px) {
  .login-card {
    padding: 36px 24px 28px;
    border-radius: 16px;
  }
  .login-brand-primary {
    font-size: 1.8rem;
    letter-spacing: 5px;
  }
  .profile-header-card {
    flex-direction: column;
    text-align: center;
  }
  .profile-meta {
    justify-content: center;
  }
}

/* ═══════════════════════════════════════
   CHANGELOG PAGE
   ═══════════════════════════════════════ */

.changelog-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 32px;
  padding: 28px 32px;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: var(--r-lg);
  backdrop-filter: blur(12px);
}
.changelog-hero {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.changelog-hero-version {
  font-family: var(--font-head);
  font-size: 2rem;
  font-weight: 800;
  color: var(--gold);
  letter-spacing: 3px;
}
.changelog-hero-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-1);
}
.changelog-hero-sub {
  font-size: 0.75rem;
  color: var(--text-3);
  letter-spacing: 0.5px;
}
.changelog-stats {
  display: flex;
  gap: 20px;
}
.changelog-stat {
  text-align: center;
  padding: 10px 18px;
  background: var(--bg-3);
  border-radius: var(--r-md);
  min-width: 70px;
}
.changelog-stat-num {
  font-family: var(--font-head);
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--text-1);
}
.changelog-stat-label {
  font-size: 0.6rem;
  color: var(--text-3);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-top: 2px;
}

/* Timeline */
.changelog-timeline {
  position: relative;
  padding-left: 28px;
}
.changelog-timeline::before {
  content: '';
  position: absolute;
  left: 8px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: linear-gradient(180deg, var(--gold), var(--border-1));
  border-radius: 2px;
}
.changelog-release {
  position: relative;
  margin-bottom: 24px;
}
.changelog-release-dot {
  position: absolute;
  left: -24px;
  top: 20px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--border-2);
  border: 2px solid var(--bg-1);
  z-index: 1;
}
.changelog-release-latest .changelog-release-dot {
  background: var(--gold);
  box-shadow: 0 0 8px var(--gold-glow);
}
.changelog-release-card {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: var(--r-md);
  padding: 22px 26px;
  transition: border-color 0.2s;
}
.changelog-release-card:hover {
  border-color: var(--glass-border-hover);
}
.changelog-release-latest .changelog-release-card {
  border-color: rgba(191, 154, 94, 0.2);
}
.changelog-release-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
}
.changelog-release-version {
  font-family: var(--font-head);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-1);
  display: flex;
  align-items: center;
  gap: 10px;
}
.changelog-tag-latest {
  font-family: var(--font);
  font-size: 0.55rem;
  font-weight: 700;
  color: var(--gold);
  background: rgba(191, 154, 94, 0.12);
  border: 1px solid rgba(191, 154, 94, 0.25);
  padding: 2px 8px;
  border-radius: 4px;
  letter-spacing: 1px;
}
.changelog-release-date {
  font-size: 0.72rem;
  color: var(--text-3);
  font-family: var(--font-mono);
}
.changelog-release-title {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-2);
  margin-bottom: 16px;
}
.changelog-changes {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.changelog-change {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.82rem;
  color: var(--text-2);
  line-height: 1.5;
}
.changelog-change-badge {
  flex-shrink: 0;
  font-size: 0.58rem;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 4px;
  letter-spacing: 0.3px;
  text-transform: uppercase;
  margin-top: 2px;
  white-space: nowrap;
}
.changelog-change-text {
  flex: 1;
}

@media (max-width: 700px) {
  .changelog-header {
    flex-direction: column;
    align-items: flex-start;
  }
  .changelog-stats {
    width: 100%;
    justify-content: space-between;
  }
}

/* ═══════════════════════════════════════
   DIAGNOSTICS PAGE
   ═══════════════════════════════════════ */

/* Health Ring */
.diag-health-ring {
  width: 64px; height: 64px;
  border-radius: 50%;
  background: conic-gradient(var(--health-color) calc(var(--health-pct) * 3.6deg), var(--bg-3) 0deg);
  display: flex; align-items: center; justify-content: center;
  position: relative;
}
.diag-health-ring::before {
  content: '';
  position: absolute;
  width: 50px; height: 50px;
  border-radius: 50%;
  background: var(--bg-2);
}
.diag-health-score {
  position: relative; z-index: 1;
  font-size: 1.1rem; font-weight: 800;
  color: var(--health-color);
  font-family: var(--mono);
}

/* Section Blocks */
.diag-section {
  background: var(--bg-2);
  border: 1px solid var(--border-1);
  border-radius: var(--r-md);
  margin-bottom: 12px;
  overflow: hidden;
}
.diag-section-error { border-left: 3px solid var(--red); }
.diag-section-warn { border-left: 3px solid var(--amber); }
.diag-section-ok { border-left: 3px solid var(--green); }

.diag-section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  cursor: pointer;
  transition: background 0.15s;
}
.diag-section-header:hover { background: var(--bg-3); }

.diag-section-body {
  padding: 0 16px 14px;
  transition: max-height 0.3s;
}
.diag-section.collapsed .diag-section-body { display: none; }
.diag-section.collapsed .diag-chevron { transform: rotate(-90deg); }
.diag-chevron {
  font-size: 0.65rem;
  color: var(--text-3);
  transition: transform 0.2s;
}

/* Issue Counts */
.diag-count {
  font-size: 0.65rem;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 10px;
  font-family: var(--mono);
}
.diag-count-error { background: rgba(255, 77, 94, 0.15); color: var(--red); }
.diag-count-warn { background: rgba(255, 184, 48, 0.15); color: var(--amber); }
.diag-count-info { background: rgba(59, 130, 246, 0.15); color: var(--blue); }
.diag-count-ok { background: rgba(0, 232, 143, 0.15); color: var(--green); }

/* Individual Issues */
.diag-issue {
  display: flex;
  gap: 10px;
  padding: 8px 12px;
  border-radius: var(--r-sm);
  margin-bottom: 4px;
  font-size: 0.78rem;
}
.diag-issue-error { background: rgba(255, 77, 94, 0.06); }
.diag-issue-warn { background: rgba(255, 184, 48, 0.06); }
.diag-issue-info { background: rgba(59, 130, 246, 0.06); }

.diag-issue-icon { flex-shrink: 0; margin-top: 1px; }
.diag-issue-error .diag-issue-icon { color: var(--red); }
.diag-issue-warn .diag-issue-icon { color: var(--amber); }
.diag-issue-info .diag-issue-icon { color: var(--blue); }

.diag-issue-msg { color: var(--text-1); font-family: var(--mono); font-size: 0.72rem; word-break: break-word; }
.diag-issue-fix { color: var(--text-3); font-size: 0.68rem; margin-top: 2px; }

.diag-ok-msg {
  display: flex; align-items: center; gap: 8px;
  color: var(--green); font-size: 0.78rem;
  padding: 8px 0;
}

/* Runtime Log */
.diag-log-body { max-height: 300px; overflow-y: auto; }
.diag-log-entry {
  font-family: var(--mono);
  font-size: 0.68rem;
  padding: 4px 8px;
  border-bottom: 1px solid var(--border-1);
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}
.diag-log-error { color: var(--red); }
.diag-log-warn { color: var(--amber); }
.diag-log-info { color: var(--text-2); }
.diag-log-time { color: var(--text-3); flex-shrink: 0; }
.diag-log-cat { color: var(--teal); flex-shrink: 0; }
.diag-log-detail { color: var(--text-3); font-style: italic; }

/* ═══════════════════════════════════════
   SYNC STATUS BAR
   ═══════════════════════════════════════ */

.sync-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 6px 10px;
  background: var(--bg-3);
  border-radius: var(--r-sm);
  margin-bottom: 6px;
}

.sync-status {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.68rem;
  font-weight: 500;
  color: var(--text-3);
}
.sync-status.connected { color: var(--green); }
.sync-status.syncing { color: var(--amber); }
.sync-status.pending { color: var(--cyan); }
.sync-status.offline { color: var(--text-3); }

.sync-status a {
  color: var(--cyan);
  text-decoration: none;
  font-weight: 600;
}
.sync-status a:hover { text-decoration: underline; }

.sync-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  flex-shrink: 0;
}
.sync-dot.connected { background: var(--green); box-shadow: 0 0 6px var(--green); }
.sync-dot.syncing { background: var(--amber); animation: syncPulse 1s infinite; }
.sync-dot.pending { background: var(--cyan); }
.sync-dot.offline { background: var(--text-3); opacity: 0.5; }

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

.sync-btn {
  background: none;
  border: 1px solid var(--border-2);
  color: var(--text-2);
  padding: 3px 6px;
  border-radius: 4px;
  cursor: pointer;
  display: flex;
  align-items: center;
  transition: all 0.15s;
}
.sync-btn:hover {
  border-color: var(--teal);
  color: var(--teal);
  background: rgba(0, 212, 170, 0.06);
}

/* ═══════════════════════════════════════
   IMPORT PREVIEW TABLE
   ═══════════════════════════════════════ */

.import-preview-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.72rem;
  font-family: var(--mono);
}
.import-preview-table th {
  background: var(--bg-3);
  color: var(--teal);
  padding: 6px 10px;
  text-align: left;
  font-weight: 600;
  border-bottom: 1px solid var(--border-1);
  white-space: nowrap;
}
.import-preview-table td {
  padding: 5px 10px;
  border-bottom: 1px solid var(--border-1);
  color: var(--text-2);
  max-width: 140px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.import-preview-table tr:hover td { background: var(--bg-3); }
