/* 
=========================================
ATHENA NEXUS - CORE DESIGN SYSTEM STYLES
=========================================
Description: Single source of truth for styles, typography, layout, and components.
*/

/* 1. Reset & Base Variables */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  /* Default Space Dark Theme Variables */
  --bg-dark: #08090f;
  --sidebar-bg: rgba(10, 12, 22, 0.85);
  --card-bg: rgba(13, 17, 28, 0.45);
  --card-bg-hover: rgba(20, 26, 44, 0.65);
  --card-border: rgba(255, 255, 255, 0.08);
  --border-color: rgba(255, 255, 255, 0.08);
  --border-hover: rgba(129, 140, 248, 0.3);
  --text-main: #f3f4f6;
  --text-muted: #9ca3af;
  --text-inverse: #0f172a;
  --primary-neon: #818cf8;
  --secondary-neon: #a78bfa;
  --cyan-neon: #22d3ee;
  --emerald-neon: #34d399;
  --rose-neon: #fb7185;
  --warning-glow: #f59e0b;

  --input-bg: rgba(10, 11, 18, 0.45);
  --input-border: rgba(255, 255, 255, 0.08);
  --input-text: #f3f4f6;
  --input-placeholder: #6b7280;

  --table-border: rgba(255, 255, 255, 0.06);
  --table-header-bg: rgba(255, 255, 255, 0.03);
  --table-row-hover: rgba(255, 255, 255, 0.04);

  --modal-bg: #0d111c;
  --modal-overlay: rgba(0, 0, 0, 0.75);

  --dropdown-bg: #0d111c;
  --dropdown-border: rgba(129, 140, 248, 0.3);
  --dropdown-hover: rgba(129, 140, 248, 0.12);

  --glass-bg: rgba(13, 17, 28, 0.45);
  --glass-border: rgba(255, 255, 255, 0.08);

  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.2);
  --shadow-md: 0 10px 30px rgba(0, 0, 0, 0.3);
  --shadow-lg: 0 20px 60px rgba(0, 0, 0, 0.5);
  --shadow-glow: 0 0 25px rgba(129, 140, 248, 0.18);

  --transition-speed: 0.3s;
  --sidebar-width: 260px;

  /* Radii & Spacing tokens */
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --radius-full: 9999px;

  --space-2xs: 2px;
  --space-xs: 4px;
  --space-sm: 8px;
  --space-md: 16px;
  --space-lg: 24px;
  --space-xl: 32px;
  --space-2xl: 48px;
  --space-3xl: 64px;
}

/* Premium Mode White (Clinical Light Theme) Variables */
html.light-theme, body.light-theme {
  --bg-dark: #f8fafc;
  --sidebar-bg: rgba(255, 255, 255, 0.95);
  --card-bg: #ffffff;
  --card-bg-hover: #f1f5f9;
  --card-border: rgba(15, 23, 42, 0.08);
  --border-color: rgba(15, 23, 42, 0.08);
  --border-hover: rgba(79, 70, 229, 0.35);
  --text-main: #0f172a;
  --text-muted: #64748b;
  --text-inverse: #ffffff;
  --primary-neon: #4f46e5;
  --secondary-neon: #7c3aed;
  --cyan-neon: #0891b2;
  --emerald-neon: #059669;
  --rose-neon: #e11d48;
  --warning-glow: #d97706;

  --input-bg: #ffffff;
  --input-border: rgba(15, 23, 42, 0.12);
  --input-text: #0f172a;
  --input-placeholder: #94a3b8;

  --table-border: rgba(15, 23, 42, 0.06);
  --table-header-bg: #f1f5f9;
  --table-row-hover: #f8fafc;

  --modal-bg: #ffffff;
  --modal-overlay: rgba(15, 23, 42, 0.4);

  --dropdown-bg: #ffffff;
  --dropdown-border: rgba(79, 70, 229, 0.25);
  --dropdown-hover: rgba(79, 70, 229, 0.08);

  --glass-bg: rgba(255, 255, 255, 0.85);
  --glass-border: rgba(15, 23, 42, 0.08);

  --shadow-sm: 0 2px 8px rgba(15, 23, 42, 0.04);
  --shadow-md: 0 10px 30px rgba(15, 23, 42, 0.06);
  --shadow-lg: 0 20px 60px rgba(15, 23, 42, 0.12);
  --shadow-glow: 0 0 25px rgba(79, 70, 229, 0.12);
}

body {
  font-family: 'Inter', sans-serif;
  background-color: var(--bg-dark);
  color: var(--text-main);
  overflow-x: hidden;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  transition: background-color var(--transition-speed), color var(--transition-speed);
}

/* Scrollbars */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}
::-webkit-scrollbar-track {
  background: var(--bg-dark);
}
::-webkit-scrollbar-thumb {
  background: var(--border-color);
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--primary-neon);
}

/* Cyber Background Elements */
.bg-animation {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
}

.neon-glow-1 {
  position: absolute;
  width: 600px;
  height: 600px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(129, 140, 248, 0.08) 0%, rgba(0,0,0,0) 75%);
  top: -100px;
  right: -100px;
}

.neon-glow-2 {
  position: absolute;
  width: 500px;
  height: 500px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(34, 211, 238, 0.05) 0%, rgba(0,0,0,0) 70%);
  bottom: -100px;
  left: 20%;
}

/* 2. Layout Elements */
.sidebar {
  width: var(--sidebar-width);
  background: var(--sidebar-bg);
  border-right: 1px solid var(--border-color);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  display: flex;
  flex-direction: column;
  height: 100vh;
  position: fixed;
  left: 0;
  top: 0;
  z-index: 10;
  transition: all var(--transition-speed);
}

.sidebar-brand {
  padding: 18px 18px 14px;
}

.notif-filter-capsule {
  display: flex;
  padding: 10px 18px;
  gap: 10px;
  background: rgba(7, 9, 16, 0.8);
  border-bottom: 1px solid var(--border-color);
  overflow-x: auto;
  white-space: nowrap !important;
}

body.light-theme .notif-filter-capsule {
  background: #f1f5f9;
  border-bottom-color: rgba(15, 23, 42, 0.08);
}

.notif-filter-btn {
  background: transparent;
  border: 1px solid transparent;
  color: var(--text-muted);
  font-family: 'Inter', sans-serif;
  font-size: 12.5px;
  font-weight: 600;
  padding: 6px 16px;
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap !important;
  flex-shrink: 0;
}

body.light-theme .notif-filter-btn {
  color: #64748b;
}

.notif-filter-btn:hover {
  color: var(--text-main);
  background: rgba(129, 140, 248, 0.08);
}

body.light-theme .notif-filter-btn:hover {
  color: #0f172a;
  background: rgba(79, 70, 229, 0.06);
}

.notif-filter-btn.active {
  background: rgba(129, 140, 248, 0.2);
  border-color: rgba(129, 140, 248, 0.4);
  color: var(--primary-neon);
  font-weight: 700;
  box-shadow: 0 4px 14px rgba(129, 140, 248, 0.22);
}

body.light-theme .notif-filter-btn.active {
  background: #ffffff;
  border-color: rgba(79, 70, 229, 0.25);
  color: #4f46e5;
  box-shadow: 0 4px 14px rgba(15, 23, 42, 0.08);
}

.dropdown-list {
  list-style: none;
  max-height: 420px;
  overflow-y: auto;
}

.dropdown-item {
  padding: 18px 24px;
  border-bottom: 1px solid var(--border-color);
  font-size: 13.5px;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  align-items: flex-start;
  gap: 16px;
}

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

.dropdown-item:hover {
  background: rgba(129, 140, 248, 0.08);
}

body.light-theme .dropdown-item:hover {
  background: rgba(79, 70, 229, 0.04);
}

.dropdown-item.unread {
  background: rgba(34, 211, 238, 0.04);
}

body.light-theme .dropdown-item.unread {
  background: rgba(79, 70, 229, 0.03);
}

.dropdown-item-icon {
  width: 46px;
  height: 46px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 20px;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.25);
}

.brand-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
}

.sidebar-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  background: linear-gradient(135deg, rgba(129,140,248,0.22), rgba(167,139,250,0.22));
  border: 1px solid rgba(129,140,248,0.35);
  border-radius: 9px;
  flex-shrink: 0;
}

.sidebar-logo svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: var(--primary-neon);
  stroke-width: 2;
}

.brand-info h2 {
  font-family: 'Outfit', sans-serif;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.6px;
  background: linear-gradient(135deg, var(--text-main) 30%, var(--secondary-neon) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  line-height: 1.2;
}

.brand-info span {
  font-size: 10.5px;
  color: var(--text-muted);
  font-weight: 500;
  display: block;
  margin-top: 1px;
}

/* Masterclass SaaS Workspace Card & Flyout Menu */
.org-switcher-card {
  position: relative;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  cursor: pointer;
  user-select: none;
  transition: all 0.22s cubic-bezier(0.4, 0, 0.2, 1);
}

body.light-theme .org-switcher-card {
  background: rgba(15, 23, 42, 0.03);
  border-color: rgba(15, 23, 42, 0.08);
}

.org-switcher-card:hover {
  background: rgba(129, 140, 248, 0.08);
  border-color: rgba(129, 140, 248, 0.28);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.25);
}

body.light-theme .org-switcher-card:hover {
  background: rgba(79, 70, 229, 0.05);
  border-color: rgba(79, 70, 229, 0.22);
  box-shadow: 0 4px 16px rgba(15, 23, 42, 0.06);
}

.org-switcher-card.open {
  background: rgba(129, 140, 248, 0.12);
  border-color: var(--primary-neon);
  box-shadow: 0 0 0 3px rgba(129, 140, 248, 0.18);
}

.org-card-logo {
  flex-shrink: 0;
}

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

.org-card-title-row {
  display: flex;
  align-items: center;
  gap: 6px;
}

.org-card-title {
  font-family: 'Outfit', sans-serif;
  font-size: 13.5px;
  font-weight: 800;
  color: var(--text-main);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 1.2;
}

.org-card-chevron {
  color: var(--text-muted);
  transition: transform 0.2s ease, color 0.2s ease;
  flex-shrink: 0;
  display: flex;
  align-items: center;
}

.org-switcher-card.open .org-card-chevron {
  transform: rotate(180deg);
  color: var(--primary-neon);
}

/* Flyout Dropdown Menu */
.org-flyout-menu {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  width: 100%;
  min-width: 240px;
  background: #0d111c !important;
  border: 1px solid rgba(129, 140, 248, 0.28);
  border-radius: 14px;
  padding: 6px;
  display: none;
  flex-direction: column;
  gap: 3px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.9), 0 0 0 1px rgba(129, 140, 248, 0.1);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  z-index: 999999 !important;
}

body.light-theme .org-flyout-menu {
  background: #ffffff !important;
  border-color: rgba(79, 70, 229, 0.2);
  box-shadow: 0 20px 50px rgba(15, 23, 42, 0.18);
}

.org-switcher-card.open .org-flyout-menu {
  display: flex;
  animation: flyoutSlide 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes flyoutSlide {
  from { opacity: 0; transform: translateY(-6px) scale(0.97); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.flyout-header {
  font-family: 'Outfit', sans-serif;
  font-size: 9.5px;
  font-weight: 800;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 1.2px;
  padding: 8px 10px 4px;
  opacity: 0.7;
}

.flyout-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 10px;
  border-radius: 9px;
  cursor: pointer;
  transition: all 0.18s ease;
}

.flyout-item:hover {
  background: rgba(129, 140, 248, 0.12);
}

body.light-theme .flyout-item:hover {
  background: rgba(79, 70, 229, 0.08);
}

.flyout-item.active {
  background: rgba(129, 140, 248, 0.16);
}

body.light-theme .flyout-item.active {
  background: rgba(79, 70, 229, 0.1);
}

.flyout-item-logo {
  font-size: 16px;
  width: 28px;
  height: 28px;
  border-radius: 7px;
  background: rgba(129, 140, 248, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.flyout-item-details {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
}

.flyout-item-title {
  font-size: 12.5px;
  font-weight: 700;
  color: var(--text-main);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.flyout-item-details span {
  font-size: 10px;
  color: var(--text-muted);
}

.flyout-item-check {
  font-size: 12px;
  font-weight: 800;
  color: var(--primary-neon);
  opacity: 0;
  transition: opacity 0.18s ease;
}

.flyout-item.active .flyout-item-check {
  opacity: 1;
}

.flyout-divider {
  height: 1px;
  background: var(--border-color);
  margin: 4px 6px;
}

.flyout-action {
  padding: 8px 10px;
  border-radius: 9px;
  font-size: 12px;
  font-weight: 600;
  color: var(--cyan-neon);
  cursor: pointer;
  transition: all 0.18s ease;
}

.flyout-action:hover {
  background: rgba(34, 211, 238, 0.1);
}

.sidebar-menu {
  list-style: none;
  padding: 8px 10px;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 1px;
  overflow-y: auto;
}

.menu-category-header {
  font-family: 'Outfit', sans-serif;
  font-size: 9.5px;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 1.2px;
  padding: 14px 8px 5px;
  display: flex;
  align-items: center;
  gap: 6px;
  opacity: 0.55;
}

.menu-category-header:first-child {
  padding-top: 6px;
}

.menu-category-header::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border-color);
}

.menu-item a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  color: var(--text-muted);
  text-decoration: none;
  font-size: 13px;
  font-weight: 500;
  border-radius: 9px;
  transition: all var(--transition-speed);
  border: 1px solid transparent;
  position: relative;
}

.menu-item a svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  opacity: 0.65;
  transition: all var(--transition-speed);
}

.menu-item.active a {
  background: rgba(129, 140, 248, 0.1);
  color: var(--primary-neon);
  border-color: rgba(129, 140, 248, 0.18);
  font-weight: 600;
}

.menu-item.active a::before {
  content: '';
  position: absolute;
  left: -2px;
  top: 50%;
  transform: translateY(-50%);
  width: 3px;
  height: 55%;
  background: var(--primary-neon);
  border-radius: 0 2px 2px 0;
  box-shadow: 0 0 8px var(--primary-neon);
}

.menu-item.active a svg {
  opacity: 1;
}

.menu-item a:hover {
  color: var(--text-main);
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(255, 255, 255, 0.06);
}

.menu-item a:hover svg {
  opacity: 1;
}

body.light-theme .menu-item a:hover {
  background: rgba(79, 70, 229, 0.04);
  border-color: rgba(79, 70, 229, 0.08);
}

.sidebar-footer {
  padding: 12px 14px;
  border-top: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  gap: 10px;
}

.user-avatar {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--secondary-neon), var(--cyan-neon));
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 14px;
  color: #08090f;
  border: 1px solid rgba(255,255,255,0.15);
  cursor: pointer;
  transition: transform var(--transition-speed);
  flex-shrink: 0;
}

.user-avatar:hover { transform: scale(1.06); }

.user-details { flex: 1; min-width: 0; }

.user-details h4 {
  font-size: 12.5px;
  font-weight: 600;
  color: var(--text-main);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.user-details span {
  font-size: 10.5px;
  color: var(--text-muted);
}

.btn-logout {
  margin-left: auto;
  background: none;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  padding: 6px;
  border-radius: 7px;
  transition: all var(--transition-speed);
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.btn-logout:hover {
  color: var(--rose-neon);
  background: rgba(251, 113, 133, 0.1);
}

/* Main Content Area */
.main-content {
  margin-left: var(--sidebar-width);
  flex: 1;
  padding: 40px;
  position: relative;
  z-index: 1;
  min-height: 100vh;
}

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

.header-title h1 {
  font-family: 'Outfit', sans-serif;
  font-size: 28px;
  font-weight: 700;
  margin-bottom: 4px;
}

.header-title span {
  font-size: 13px;
  color: var(--text-muted);
}

.header-controls {
  display: flex;
  align-items: center;
  gap: 16px;
}

.btn-theme-toggle {
  background: rgba(13, 17, 28, 0.45);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-main);
  cursor: pointer;
  outline: none;
  transition: all var(--transition-speed);
}

body.light-theme .btn-theme-toggle {
  background: rgba(255, 255, 255, 0.85);
  border-color: rgba(0,0,0,0.1);
}

.btn-theme-toggle:hover {
  border-color: var(--primary-neon);
  color: var(--primary-neon);
}

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

/* 3. Cards & Containers */
.widget {
  background: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: 20px;
  padding: 28px;
  backdrop-filter: blur(16px);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
  margin-bottom: 24px;
  position: relative;
  overflow: hidden;
  transition: border-color var(--transition-speed), box-shadow var(--transition-speed);
}

.widget:hover {
  border-color: var(--border-hover);
  box-shadow: 0 12px 45px rgba(129, 140, 248, 0.08);
}

body.light-theme .widget {
  background: rgba(255, 255, 255, 0.7);
  border-color: rgba(15, 23, 42, 0.06);
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.03);
}

body.light-theme .widget:hover {
  border-color: rgba(79, 70, 229, 0.15);
}

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

.widget-title {
  font-family: 'Outfit', sans-serif;
  font-size: 18px;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 10px;
}

.widget-title svg {
  width: 20px;
  height: 20px;
  color: var(--primary-neon);
}

/* Metric Cards */
.metric-card {
  background: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: 18px;
  padding: 24px;
  backdrop-filter: blur(10px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
  transition: all var(--transition-speed);
  display: flex;
  align-items: center;
  gap: 16px;
}

.metric-card:hover {
  transform: translateY(-2px);
  border-color: var(--border-hover);
  box-shadow: 0 12px 35px rgba(129, 140, 248, 0.1);
}

.metric-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
}

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

.metric-value {
  font-family: 'Outfit', sans-serif;
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 2px;
}

.metric-label {
  font-size: 12px;
  color: var(--text-muted);
  font-weight: 500;
}

/* 4. Form Components */
.field-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
  position: relative;
}

.field-label {
  font-size: 11px;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.6px;
}

.input-wrapper-premium {
  position: relative;
  display: flex;
  align-items: center;
  width: 100%;
}

.input-icon-left {
  position: absolute;
  left: 14px;
  width: 18px;
  height: 18px;
  color: var(--text-muted);
  pointer-events: none;
  transition: color var(--transition-speed);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0.65;
}

.field-input-premium, .field-select-premium {
  width: 100%;
  background: rgba(10, 11, 18, 0.45);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 12px 14px 12px 42px;
  color: var(--text-main);
  font-family: 'Inter', sans-serif;
  font-size: 13.5px;
  outline: none;
  transition: all var(--transition-speed) cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.15);
}

body.light-theme .field-input-premium,
body.light-theme .field-select-premium {
  background: rgba(255, 255, 255, 0.85);
  border-color: rgba(15, 23, 42, 0.08);
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.03);
}

.field-input-premium:hover, .field-select-premium:hover {
  background: rgba(255, 255, 255, 0.02);
  border-color: rgba(129, 140, 248, 0.25);
}

body.light-theme .field-input-premium:hover,
body.light-theme .field-select-premium:hover {
  background: #ffffff;
  border-color: rgba(79, 70, 229, 0.25);
}

.field-input-premium:focus, .field-select-premium:focus {
  background: rgba(10, 11, 18, 0.75);
  border-color: var(--primary-neon);
  box-shadow: 0 0 0 3px rgba(129, 140, 248, 0.16), inset 0 2px 4px rgba(0, 0, 0, 0.1);
}

body.light-theme .field-input-premium:focus,
body.light-theme .field-select-premium:focus {
  background: #ffffff;
  border-color: var(--primary-neon);
  box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.12), inset 0 1px 2px rgba(0, 0, 0, 0.03);
}

.field-input-premium:focus + .input-icon-left {
  color: var(--primary-neon);
  opacity: 1;
}

/* Secret visibility toggle */
.btn-toggle-secret-premium {
  position: absolute;
  right: 14px;
  background: none;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  padding: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color var(--transition-speed);
  outline: none;
}

.btn-toggle-secret-premium:hover {
  color: var(--primary-neon);
}

.btn-toggle-secret-premium svg {
  width: 18px;
  height: 18px;
}

/* 5. Button Components */
.btn-action {
  font-family: 'Outfit', sans-serif;
  font-size: 13px;
  font-weight: 600;
  padding: 10px 22px;
  border-radius: 8px;
  cursor: pointer;
  transition: all var(--transition-speed);
  display: flex;
  align-items: center;
  gap: 8px;
  border: 1px solid transparent;
  outline: none;
}

.btn-save {
  background: linear-gradient(135deg, var(--primary-neon), var(--secondary-neon));
  border: none;
  color: #ffffff;
  box-shadow: 0 4px 12px rgba(129, 140, 248, 0.25);
}

.btn-save:hover {
  box-shadow: 0 6px 18px rgba(129, 140, 248, 0.4);
  filter: brightness(1.1);
  transform: translateY(-1px);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-color);
  color: var(--text-main);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: var(--border-hover);
}

body.light-theme .btn-secondary {
  background: rgba(15, 23, 42, 0.05);
  border-color: rgba(15, 23, 42, 0.1);
}

body.light-theme .btn-secondary:hover {
  background: rgba(15, 23, 42, 0.08);
}

/* Test Connector Button */
.btn-test-connection {
  background: rgba(129, 140, 248, 0.06);
  border: 1px solid rgba(129, 140, 248, 0.16);
  color: var(--primary-neon);
  font-family: 'Outfit', sans-serif;
  font-size: 11.5px;
  font-weight: 600;
  padding: 8px 16px;
  border-radius: 9px;
  cursor: pointer;
  transition: all var(--transition-speed);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  width: fit-content;
  outline: none;
}

body.light-theme .btn-test-connection {
  background: rgba(79, 70, 229, 0.04);
  border-color: rgba(79, 70, 229, 0.12);
}

.btn-test-connection:hover {
  background: rgba(129, 140, 248, 0.12);
  border-color: var(--primary-neon);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(129, 140, 248, 0.08);
}

.btn-test-connection svg {
  width: 13px;
  height: 13px;
  flex-shrink: 0;
}

/* 6. Badges & Tags */
.meta-tag {
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  padding: 2px 8px;
  border-radius: 4px;
  border: 1px solid rgba(255,255,255,0.05);
  background: rgba(255,255,255,0.02);
  color: var(--text-muted);
}

.tag-ow { border-color: rgba(245, 158, 11, 0.3); color: #f59e0b; background: rgba(245, 158, 11, 0.05); }
.tag-lol { border-color: rgba(34, 211, 238, 0.3); color: #22d3ee; background: rgba(34, 211, 238, 0.05); }
.tag-cs { border-color: rgba(167, 139, 250, 0.3); color: #a78bfa; background: rgba(167, 139, 250, 0.05); }

.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  display: inline-block;
  box-shadow: 0 0 8px currentColor;
}

.status-dot.online {
  background-color: var(--emerald-neon);
  color: var(--emerald-neon);
}
.status-dot.offline {
  background-color: var(--rose-neon);
  color: var(--rose-neon);
}

/* 7. Notifications Dropdown */
.notification-wrapper {
  position: relative;
  display: inline-block;
}

.btn-bell {
  background: rgba(13, 17, 28, 0.45);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-main);
  cursor: pointer;
  position: relative;
  transition: all var(--transition-speed);
  outline: none;
}

body.light-theme .btn-bell {
  background: rgba(255, 255, 255, 0.85);
  border-color: rgba(0,0,0,0.1);
}

.btn-bell:hover {
  border-color: var(--primary-neon);
  background: rgba(129, 140, 248, 0.05);
  color: var(--primary-neon);
}

.btn-bell svg {
  width: 20px;
  height: 20px;
}

.bell-badge {
  position: absolute;
  top: -3px;
  right: -3px;
  width: 18px;
  height: 18px;
  background: var(--rose-neon);
  color: #ffffff;
  border-radius: 50%;
  font-size: 10px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid var(--bg-dark);
  box-shadow: 0 0 8px var(--rose-neon);
}

.notification-dropdown {
  position: absolute;
  top: calc(100% + 12px);
  right: 0;
  width: 320px;
  background: rgba(10, 12, 22, 0.95);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(20px);
  z-index: 99;
  display: none;
  overflow: hidden;
}

body.light-theme .notification-dropdown {
  background: rgba(255,255,255,0.98);
  border-color: rgba(0,0,0,0.1);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}

.notification-dropdown.show {
  display: block;
  animation: dropdownFade 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

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

.dropdown-header {
  padding: 16px 20px;
  border-bottom: 1px solid var(--border-color);
  font-weight: 700;
  font-size: 14px;
  font-family: 'Outfit', sans-serif;
  display: flex;
  justify-content: space-between;
}

.dropdown-list {
  list-style: none;
  max-height: 280px;
  overflow-y: auto;
}

.dropdown-item {
  padding: 14px 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.03);
  font-size: 12.5px;
  cursor: pointer;
  transition: background var(--transition-speed);
  display: flex;
  gap: 12px;
}

.dropdown-item:hover {
  background: rgba(255, 255, 255, 0.02);
}

/* 8. Pure CSS Tooltip Component */
[data-tooltip] {
  position: relative;
  cursor: pointer;
}

[data-tooltip]::before,
[data-tooltip]::after {
  position: absolute;
  left: 50%;
  opacity: 0;
  pointer-events: none;
  transition: all 0.2s cubic-bezier(0.5, 1.5, 0.7, 1);
  z-index: 1010;
}

/* Tooltip bubble content */
[data-tooltip]::before {
  content: attr(data-tooltip);
  bottom: 100%;
  transform: translate(-50%, -8px) scale(0.8);
  background: rgba(10, 12, 22, 0.95);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  color: var(--text-main);
  font-family: 'Inter', sans-serif;
  font-size: 11px;
  font-weight: 500;
  padding: 6px 12px;
  white-space: nowrap;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4), 0 0 10px rgba(129, 140, 248, 0.15);
  backdrop-filter: blur(8px);
}

/* Tooltip arrow */
[data-tooltip]::after {
  content: '';
  bottom: 100%;
  transform: translate(-50%, 0) scale(0.8);
  border: 5px solid transparent;
  border-top-color: var(--border-color);
  margin-bottom: -9px;
}

/* Hover States */
[data-tooltip]:hover::before {
  opacity: 1;
  transform: translate(-50%, -8px) scale(1);
}
[data-tooltip]:hover::after {
  opacity: 1;
  transform: translate(-50%, -4px) scale(1);
}

body.light-theme [data-tooltip]::before {
  background: rgba(255, 255, 255, 0.98);
  border-color: rgba(15, 23, 42, 0.1);
  color: #0f172a;
  box-shadow: 0 4px 15px rgba(15, 23, 42, 0.08);
}

/* Tooltip Position: Bottom */
[data-tooltip-position="bottom"]::before {
  bottom: auto;
  top: 100%;
  transform: translate(-50%, 8px) scale(0.8);
}
[data-tooltip-position="bottom"]::after {
  bottom: auto;
  top: 100%;
  transform: translate(-50%, 0) scale(0.8);
  border-top-color: transparent;
  border-bottom-color: var(--border-color);
  margin-top: -9px;
  margin-bottom: 0;
}
[data-tooltip-position="bottom"]:hover::before {
  transform: translate(-50%, 8px) scale(1);
}
[data-tooltip-position="bottom"]:hover::after {
  transform: translate(-50%, 4px) scale(1);
}

/* Tooltip Position: Left */
[data-tooltip-position="left"]::before {
  bottom: auto;
  left: auto;
  right: 100%;
  top: 50%;
  transform: translate(-8px, -50%) scale(0.8);
}
[data-tooltip-position="left"]::after {
  bottom: auto;
  left: auto;
  right: 100%;
  top: 50%;
  transform: translate(0, -50%) scale(0.8);
  border-top-color: transparent;
  border-left-color: var(--border-color);
  margin-right: -9px;
  margin-bottom: 0;
}
[data-tooltip-position="left"]:hover::before {
  transform: translate(-8px, -50%) scale(1);
}
[data-tooltip-position="left"]:hover::after {
  transform: translate(-4px, -50%) scale(1);
}

/* Tooltip Position: Right */
[data-tooltip-position="right"]::before {
  bottom: auto;
  left: 100%;
  top: 50%;
  transform: translate(8px, -50%) scale(0.8);
}
[data-tooltip-position="right"]::after {
  bottom: auto;
  left: 100%;
  top: 50%;
  transform: translate(0, -50%) scale(0.8);
  border-top-color: transparent;
  border-right-color: var(--border-color);
  margin-left: -9px;
  margin-bottom: 0;
}
[data-tooltip-position="right"]:hover::before {
  transform: translate(8px, -50%) scale(1);
}
[data-tooltip-position="right"]:hover::after {
  transform: translate(4px, -50%) scale(1);
}

/* 9. Floating Design System Navigation Button */
.design-system-button-floating {
  position: fixed;
  right: 0;
  top: 60%;
  transform: translateY(-50%);
  z-index: 1050;
  background: rgba(13, 17, 28, 0.75);
  border: 1px solid rgba(129, 140, 248, 0.4);
  border-right: none;
  border-radius: 14px 0 0 14px;
  padding: 12px 10px;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: -4px 0 20px rgba(0, 0, 0, 0.3);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
}

body.light-theme .design-system-button-floating {
  background: rgba(255, 255, 255, 0.85);
  border-color: rgba(79, 70, 229, 0.35);
  box-shadow: -4px 0 20px rgba(0, 0, 0, 0.08);
}

.design-system-button-floating:hover {
  padding-left: 18px;
  background: linear-gradient(135deg, var(--primary-neon), var(--secondary-neon));
  border-color: var(--primary-neon);
  box-shadow: -4px 0 25px rgba(129, 140, 248, 0.35);
}

.design-system-button-floating svg {
  width: 20px;
  height: 20px;
  color: var(--primary-neon);
  transition: all 0.3s ease;
}

body.light-theme .design-system-button-floating svg {
  color: var(--primary-neon);
}

.design-system-button-floating:hover svg {
  color: #08090f;
  transform: rotate(20deg) scale(1.1);
}

/* 10. Custom Dropdown & Selector Styling — Premium 2026 */
select[data-enhanced="1"] {
  display: none !important;
  visibility: hidden !important;
  opacity: 0 !important;
  position: absolute !important;
  pointer-events: none !important;
  width: 0 !important;
  height: 0 !important;
}

.custom-dropdown {
  position: relative;
  width: 100%;
  user-select: none;
  z-index: 10;
}

.custom-dropdown + label,
.custom-dropdown + .allocator-label,
.custom-dropdown + .field-label {
  margin-top: var(--space-md) !important;
  display: block;
}

.custom-dropdown.open {
  z-index: 999999 !important;
}

/* Stacking context isolation and overflow unclip for open dropdown containers */
.allocator-form-group:has(.custom-dropdown.open),
.filter-group:has(.custom-dropdown.open),
.filters-bar:has(.custom-dropdown.open),
.form-group:has(.custom-dropdown.open),
.form-control:has(.custom-dropdown.open),
.modal-body:has(.custom-dropdown.open),
.widget:has(.custom-dropdown.open),
.panel-widget:has(.custom-dropdown.open),
section:has(.custom-dropdown.open),
div:has(> .custom-dropdown.open),
*:has(> .custom-dropdown.open) {
  z-index: 999999 !important;
  position: relative !important;
  overflow: visible !important;
}

.dropdown-trigger {
  width: 100%;
  background: rgba(15, 20, 32, 0.85);
  border: 1px solid rgba(129, 140, 248, 0.22);
  border-radius: 12px;
  padding: 10px 14px;
  color: var(--text-main, #f3f4f6);
  font-family: 'Inter', sans-serif;
  font-size: 13px;
  font-weight: 500;
  text-align: left;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  outline: none;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
}

/* Fused Organization Switcher Header Trigger */
.custom-dropdown[data-select-id="sidebarOrgSelect"] .dropdown-trigger {
  background: linear-gradient(135deg, rgba(129, 140, 248, 0.14), rgba(167, 139, 250, 0.14));
  border: 1px solid rgba(129, 140, 248, 0.32);
  border-radius: 12px;
  padding: 10px 14px;
  font-family: 'Outfit', sans-serif;
  font-size: 14px;
  font-weight: 800;
  color: var(--text-main);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.3);
}

body.light-theme .custom-dropdown[data-select-id="sidebarOrgSelect"] .dropdown-trigger {
  background: linear-gradient(135deg, rgba(79, 70, 229, 0.08), rgba(124, 58, 237, 0.08));
  border-color: rgba(79, 70, 229, 0.25);
  color: #0f172a;
}

.dropdown-trigger .trigger-label {
  flex: 1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

body.light-theme .dropdown-trigger,
.light-theme .dropdown-trigger {
  background: #ffffff !important;
  border-color: rgba(79, 70, 229, 0.22) !important;
  color: #0f172a !important;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.05) !important;
}

.dropdown-trigger:hover {
  border-color: var(--primary-neon, #818cf8);
  background: rgba(129, 140, 248, 0.12);
  box-shadow: 0 4px 16px rgba(129, 140, 248, 0.15);
}

body.light-theme .dropdown-trigger:hover,
.light-theme .dropdown-trigger:hover {
  background: rgba(79, 70, 229, 0.05) !important;
  border-color: var(--primary-neon, #4f46e5) !important;
  box-shadow: 0 4px 16px rgba(79, 70, 229, 0.12) !important;
}

.custom-dropdown.open .dropdown-trigger {
  border-color: var(--primary-neon, #818cf8);
  background: rgba(129, 140, 248, 0.16);
  box-shadow: 0 0 0 3px rgba(129, 140, 248, 0.2), 0 4px 20px rgba(0, 0, 0, 0.4);
}

body.light-theme .custom-dropdown.open .dropdown-trigger,
.light-theme .custom-dropdown.open .dropdown-trigger {
  background: rgba(79, 70, 229, 0.08) !important;
  border-color: var(--primary-neon, #4f46e5) !important;
  box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.16), 0 4px 20px rgba(15, 23, 42, 0.08) !important;
}

.chevron-icon {
  flex-shrink: 0;
  transition: transform 0.25s ease;
  color: var(--text-muted, #9ca3af);
}

.custom-dropdown.open .chevron-icon {
  transform: rotate(180deg);
  color: var(--primary-neon, #818cf8);
}

/* OPAQUE high-contrast menu popup to eliminate background text bleed */
.dropdown-options {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  width: 100%;
  min-width: 180px;
  background: #0d111c !important;
  border: 1px solid rgba(129, 140, 248, 0.3);
  border-radius: 12px;
  padding: 6px;
  display: none;
  flex-direction: column;
  gap: 3px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.92), 0 0 0 1px rgba(129, 140, 248, 0.15);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  z-index: 999999 !important;
  max-height: 260px;
  overflow-y: auto;
}

body.light-theme .dropdown-options,
.light-theme .dropdown-options {
  background: #ffffff !important;
  border-color: rgba(79, 70, 229, 0.25) !important;
  box-shadow: 0 20px 60px rgba(15, 23, 42, 0.22), 0 0 0 1px rgba(79, 70, 229, 0.1) !important;
}

.custom-dropdown.open .dropdown-options {
  display: flex;
  animation: ddSlide 0.18s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes ddSlide {
  from { opacity: 0; transform: translateY(-6px) scale(0.98); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.dropdown-option {
  padding: 9px 12px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-muted, #9ca3af);
  cursor: pointer;
  transition: all 0.18s ease;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  border-left: 3px solid transparent;
}

body.light-theme .dropdown-option,
.light-theme .dropdown-option {
  color: #334155 !important;
}

.dropdown-option:hover {
  background: rgba(129, 140, 248, 0.12);
  color: var(--text-main, #f3f4f6);
  border-left-color: rgba(129, 140, 248, 0.6);
  padding-left: 15px;
}

body.light-theme .dropdown-option:hover,
.light-theme .dropdown-option:hover {
  background: rgba(79, 70, 229, 0.08) !important;
  color: #0f172a !important;
  border-left-color: rgba(79, 70, 229, 0.6) !important;
  padding-left: 15px;
}

.dropdown-option.active {
  background: rgba(129, 140, 248, 0.18);
  color: var(--primary-neon, #818cf8);
  font-weight: 600;
  border-left-color: var(--primary-neon, #818cf8);
  padding-left: 15px;
}

body.light-theme .dropdown-option.active,
.light-theme .dropdown-option.active {
  background: rgba(79, 70, 229, 0.12) !important;
  color: var(--primary-neon, #4f46e5) !important;
  border-left-color: var(--primary-neon, #4f46e5) !important;
  padding-left: 15px;
}

body.light-theme select,
.light-theme select,
body.light-theme select option,
.light-theme select option,
body.light-theme .filter-select,
.light-theme .filter-select,
body.light-theme .allocator-select,
.light-theme .allocator-select,
body.light-theme .form-select,
.light-theme .form-select,
body.light-theme .field-select,
.light-theme .field-select,
body.light-theme .table-role-select,
.light-theme .table-role-select {
  background-color: #ffffff !important;
  border-color: rgba(79, 70, 229, 0.22) !important;
  color: #0f172a !important;
}

/* Central Demo Button Capsule */
.nav-demo-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  background: linear-gradient(135deg, rgba(34, 211, 238, 0.12), rgba(129, 140, 248, 0.12));
  border: 1px solid var(--cyan-neon);
  border-radius: 20px;
  color: var(--cyan-neon) !important;
  font-size: 12.5px;
  font-weight: 700;
  text-decoration: none;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 0 12px rgba(34, 211, 238, 0.15);
}

.nav-demo-btn:hover {
  background: linear-gradient(135deg, rgba(34, 211, 238, 0.22), rgba(129, 140, 248, 0.22));
  transform: translateY(-1px);
  box-shadow: 0 0 20px rgba(34, 211, 238, 0.35);
}

body.light-theme .nav-demo-btn,
.light-theme .nav-demo-btn {
  background: linear-gradient(135deg, rgba(79, 70, 229, 0.08), rgba(2, 132, 199, 0.08));
  border-color: #4f46e5;
  color: #4f46e5 !important;
  box-shadow: 0 2px 10px rgba(79, 70, 229, 0.12);
}

/* Dedicated APEX Nav Button */
.btn-apex-nav {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  background: rgba(15, 23, 42, 0.6);
  border: 1px solid var(--cyan-neon);
  border-radius: 10px;
  color: var(--cyan-neon) !important;
  font-size: 12px;
  font-weight: 800;
  text-decoration: none;
  transition: all 0.25s ease;
  box-shadow: 0 0 12px rgba(34, 211, 238, 0.15);
}

.btn-apex-nav:hover {
  background: rgba(34, 211, 238, 0.15);
  box-shadow: 0 0 18px rgba(34, 211, 238, 0.3);
  transform: translateY(-1px);
}

body.light-theme .btn-apex-nav,
.light-theme .btn-apex-nav {
  background: #ffffff;
  border-color: #4f46e5;
  color: #4f46e5 !important;
  box-shadow: 0 2px 8px rgba(79, 70, 229, 0.1);
}

/* Sidebar Section Selector Dropdown styling */
.section-select {
  width: 100%;
  background: rgba(10, 12, 22, 0.6);
  border: 1px solid var(--border-color);
  border-radius: 9px;
  padding: 9px 12px;
  color: var(--text-main, #f3f4f6);
  font-family: 'Inter', sans-serif;
  font-size: 12.5px;
  font-weight: 500;
  outline: none;
}

body.light-theme .section-select {
  background: rgba(255, 255, 255, 0.85);
  border-color: rgba(0,0,0,0.1);
  color: #0f172a;
}

.section-selector-group .custom-dropdown .dropdown-trigger {
  padding: 8px 12px;
  border-radius: 10px;
  font-size: 12px;
  font-weight: 600;
  background: rgba(10, 12, 22, 0.65);
  border: 1px solid var(--border-color);
}

body.light-theme .section-selector-group .custom-dropdown .dropdown-trigger {
  background: #ffffff;
  border-color: rgba(15, 23, 42, 0.12);
  color: #0f172a;
}

/* 11. Sub-navigation Tab Bar */
.ds-subnav {
  display: flex;
  gap: 8px;
  padding: 12px 0;
  border-bottom: 1px solid var(--border-color);
  margin-bottom: 30px;
  position: sticky;
  top: 70px;
  background: rgba(8, 9, 15, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  z-index: 90;
  overflow-x: auto;
}

body.light-theme .ds-subnav {
  background: rgba(248, 250, 252, 0.85);
}

.ds-subnav-link {
  padding: 8px 16px;
  border-radius: var(--radius-full);
  font-size: 13px;
  font-weight: 600;
  color: var(--text-muted);
  text-decoration: none;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  white-space: nowrap;
}

.ds-subnav-link:hover {
  color: var(--primary-neon);
  background: rgba(129, 140, 248, 0.08);
}

.ds-subnav-link.active {
  color: #08090f;
  background: linear-gradient(135deg, var(--primary-neon), var(--secondary-neon));
  box-shadow: 0 4px 12px rgba(129, 140, 248, 0.25);
}

body.light-theme .ds-subnav-link.active {
  color: #ffffff;
}

/* 12. Cyber Checkbox, Radio, Switch & Range */
.cyber-checkbox, .cyber-radio, .cyber-switch {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13.5px;
  color: var(--text-main);
  cursor: pointer;
  user-select: none;
}

.cyber-checkbox input, .cyber-radio input, .cyber-switch input {
  display: none;
}

.checkbox-box, .radio-box {
  width: 20px;
  height: 20px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-color);
  background: rgba(129, 140, 248, 0.04);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
  flex-shrink: 0;
}

.radio-box {
  border-radius: var(--radius-full);
}

.cyber-checkbox:hover .checkbox-box, .cyber-radio:hover .radio-box {
  border-color: var(--primary-neon);
  background: rgba(129, 140, 248, 0.08);
}

.cyber-checkbox input:checked + .checkbox-box {
  background: linear-gradient(135deg, var(--primary-neon), var(--secondary-neon));
  border-color: var(--primary-neon);
  box-shadow: 0 0 10px rgba(129, 140, 248, 0.3);
}

.cyber-checkbox input:checked + .checkbox-box::after {
  content: '';
  width: 5px;
  height: 9px;
  border: solid #08090f;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
  margin-bottom: 2px;
}

body.light-theme .cyber-checkbox input:checked + .checkbox-box::after {
  border-color: #ffffff;
}

.cyber-radio input:checked + .radio-box {
  border-color: var(--primary-neon);
  background: rgba(129, 140, 248, 0.08);
}

.cyber-radio input:checked + .radio-box::after {
  content: '';
  width: 10px;
  height: 10px;
  border-radius: var(--radius-full);
  background: linear-gradient(135deg, var(--primary-neon), var(--secondary-neon));
  box-shadow: 0 0 8px var(--primary-neon);
}

/* Switch styling */
.switch-slider {
  width: 44px;
  height: 24px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-color);
  position: relative;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  flex-shrink: 0;
}

.switch-slider::after {
  content: '';
  position: absolute;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--text-muted);
  top: 2px;
  left: 2px;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.cyber-switch:hover .switch-slider {
  border-color: var(--primary-neon);
}

.cyber-switch input:checked + .switch-slider {
  background: linear-gradient(135deg, var(--primary-neon), var(--secondary-neon));
  border-color: var(--primary-neon);
  box-shadow: 0 0 12px rgba(129, 140, 248, 0.35);
}

.cyber-switch input:checked + .switch-slider::after {
  transform: translateX(20px);
  background: #ffffff;
}

/* Range slider styling */
.field-range-premium {
  width: 100%;
  accent-color: var(--primary-neon);
  background: rgba(255, 255, 255, 0.08);
  height: 5px;
  border-radius: var(--radius-full);
  outline: none;
  cursor: pointer;
  transition: all 0.3s;
}

/* 13. Neon Alert & Status Banners */
.cyber-alert {
  display: flex;
  gap: 16px;
  padding: 16px 20px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-color);
  background: var(--card-bg);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  margin-bottom: 16px;
  position: relative;
  overflow: hidden;
  border-left: 4px solid var(--border-hover);
}

.cyber-alert-icon {
  font-size: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.cyber-alert-content {
  flex: 1;
}

.cyber-alert-title {
  font-family: 'Outfit', sans-serif;
  font-size: 14.5px;
  font-weight: 700;
  margin-bottom: 4px;
}

.cyber-alert-desc {
  font-size: 12.5px;
  color: var(--text-muted);
  line-height: 1.5;
}

.cyber-alert-success {
  border-left-color: var(--emerald-neon);
  box-shadow: inset 4px 0 20px rgba(52, 211, 153, 0.02);
}
.cyber-alert-success .cyber-alert-title { color: var(--emerald-neon); }

.cyber-alert-warning {
  border-left-color: var(--warning-glow);
  box-shadow: inset 4px 0 20px rgba(245, 158, 11, 0.02);
}
.cyber-alert-warning .cyber-alert-title { color: var(--warning-glow); }

.cyber-alert-error {
  border-left-color: var(--rose-neon);
  box-shadow: inset 4px 0 20px rgba(251, 113, 133, 0.02);
}
.cyber-alert-error .cyber-alert-title { color: var(--rose-neon); }

.cyber-alert-info {
  border-left-color: var(--cyan-neon);
  box-shadow: inset 4px 0 20px rgba(34, 211, 238, 0.02);
}
.cyber-alert-info .cyber-alert-title { color: var(--cyan-neon); }

/* 14. Loading Skeletons & Spinner Demo */
.skeleton-shimmer {
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.02) 25%, rgba(255, 255, 255, 0.07) 50%, rgba(255, 255, 255, 0.02) 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite linear;
  border-radius: var(--radius-sm);
}

body.light-theme .skeleton-shimmer {
  background: linear-gradient(90deg, rgba(0, 0, 0, 0.02) 25%, rgba(0, 0, 0, 0.07) 50%, rgba(0, 0, 0, 0.02) 75%);
  background-size: 200% 100%;
}

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

.spinner-icon {
  display: inline-block;
  width: 13px;
  height: 13px;
  border: 2px solid currentColor;
  border-radius: 50%;
  border-top-color: transparent;
  animation: spin 1s linear infinite;
  margin-left: 8px;
}

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

/* 15. Standardized Modals & Overlays */
.modal-overlay, .modal-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: var(--modal-overlay);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-md);
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition-speed);
}

.modal-overlay.active, .modal-backdrop.active, .modal.active {
  opacity: 1;
  pointer-events: auto;
}

.modal-container, .modal-content {
  background: var(--modal-bg);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-lg);
  width: 100%;
  max-width: 600px;
  max-height: 90vh;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  color: var(--text-main);
  transition: transform var(--transition-speed), background-color var(--transition-speed);
}

.modal-header {
  padding: var(--space-lg);
  border-bottom: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.modal-title {
  font-family: 'Outfit', sans-serif;
  font-size: 18px;
  font-weight: 700;
  color: var(--text-main);
}

.modal-body {
  padding: var(--space-lg);
  flex: 1;
}

.modal-footer {
  padding: var(--space-lg);
  border-top: 1px solid var(--border-color);
  display: flex;
  justify-content: flex-end;
  gap: var(--space-md);
}

.modal-close {
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 20px;
  cursor: pointer;
  padding: var(--space-xs);
  border-radius: var(--radius-sm);
  transition: color var(--transition-speed);
}
.modal-close:hover {
  color: var(--rose-neon);
}

/* 16. Standardized Tables & Data Grids */
.table-container {
  width: 100%;
  overflow-x: auto;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-color);
  background: var(--card-bg);
}

.custom-table, table.data-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 13px;
}

.custom-table th, table.data-table th {
  background: var(--table-header-bg);
  color: var(--text-muted);
  font-family: 'Outfit', sans-serif;
  font-weight: 600;
  text-transform: uppercase;
  font-size: 11px;
  letter-spacing: 0.8px;
  padding: var(--space-md);
  border-bottom: 1px solid var(--border-color);
}

.custom-table td, table.data-table td {
  padding: var(--space-md);
  border-bottom: 1px solid var(--table-border);
  color: var(--text-main);
  transition: background-color var(--transition-speed);
}

.custom-table tr:last-child td, table.data-table tr:last-child td {
  border-bottom: none;
}

.custom-table tr:hover td, table.data-table tr:hover td {
  background: var(--table-row-hover);
}

/* 17. Button Variants & Sizes */
.btn-primary {
  background: linear-gradient(135deg, var(--primary-neon), var(--secondary-neon));
  border: none;
  color: #ffffff !important;
  font-family: 'Outfit', sans-serif;
  font-weight: 600;
  padding: 10px 20px;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all var(--transition-speed);
  box-shadow: 0 4px 14px rgba(129, 140, 248, 0.25);
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
}

.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(129, 140, 248, 0.38);
  filter: brightness(1.08);
}

.btn-danger {
  background: linear-gradient(135deg, var(--rose-neon), #e11d48);
  border: none;
  color: #ffffff !important;
  font-family: 'Outfit', sans-serif;
  font-weight: 600;
  padding: 10px 20px;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all var(--transition-speed);
  box-shadow: 0 4px 14px rgba(251, 113, 133, 0.25);
}

.btn-danger:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(251, 113, 133, 0.38);
}

.btn-outline {
  background: transparent;
  border: 1px solid var(--border-color);
  color: var(--text-main);
  font-family: 'Outfit', sans-serif;
  font-weight: 600;
  padding: 10px 20px;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all var(--transition-speed);
}

.btn-outline:hover {
  border-color: var(--primary-neon);
  color: var(--primary-neon);
  background: rgba(129, 140, 248, 0.06);
}

/* SSO Social Login Buttons */
.btn-google {
  background: #ffffff !important;
  color: #0f172a !important;
  border: 1px solid rgba(15, 23, 42, 0.12) !important;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.12);
}

.btn-google:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
  background: #f8fafc !important;
  color: #0f172a !important;
}

body.light-theme .btn-google,
.light-theme .btn-google {
  background: #ffffff !important;
  color: #0f172a !important;
  border: 1px solid rgba(15, 23, 42, 0.12) !important;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08) !important;
}

body.light-theme .btn-google:hover,
.light-theme .btn-google:hover {
  background: #f1f5f9 !important;
  color: #0f172a !important;
}

.btn-discord {
  background: #5865F2 !important;
  color: #ffffff !important;
  box-shadow: 0 4px 15px rgba(88, 101, 242, 0.25);
}

.btn-discord:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(88, 101, 242, 0.4);
  filter: brightness(1.08);
  color: #ffffff !important;
}

.btn-sm { padding: 6px 12px; font-size: 12px; border-radius: var(--radius-sm); }
.btn-md { padding: 10px 20px; font-size: 13.5px; border-radius: var(--radius-md); }
.btn-lg { padding: 14px 28px; font-size: 15px; border-radius: var(--radius-lg); }

/* 18. Layout & Utility Helpers */
.gap-xs { gap: var(--space-xs); }
.gap-sm { gap: var(--space-sm); }
.gap-md { gap: var(--space-md); }
.gap-lg { gap: var(--space-lg); }
.gap-xl { gap: var(--space-xl); }

.p-sm { padding: var(--space-sm); }
.p-md { padding: var(--space-md); }
.p-lg { padding: var(--space-lg); }

.mb-xs { margin-bottom: var(--space-xs); }
.mb-sm { margin-bottom: var(--space-sm); }
.mb-md { margin-bottom: var(--space-md); }
.mb-lg { margin-bottom: var(--space-lg); }
.mb-xl { margin-bottom: var(--space-xl); }

.text-main { color: var(--text-main) !important; }
.text-muted { color: var(--text-muted) !important; }
.text-primary { color: var(--primary-neon) !important; }
.text-cyan { color: var(--cyan-neon) !important; }
.text-emerald { color: var(--emerald-neon) !important; }
.text-rose { color: var(--rose-neon) !important; }

/* 19. Global Commercial & Pricing Light Theme Overrides */
body.light-theme .pricing-card,
.light-theme .pricing-card {
  background: #ffffff !important;
  border-color: rgba(15, 23, 42, 0.1) !important;
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.05) !important;
}

body.light-theme .card-price,
.light-theme .card-price {
  color: #0f172a !important;
}

body.light-theme .card-price span,
.light-theme .card-price span {
  color: #475569 !important;
}

body.light-theme .card-tier,
.light-theme .card-tier {
  color: #0f172a !important;
}

body.light-theme .pricing-card.featured .card-tier,
.light-theme .pricing-card.featured .card-tier {
  color: #4f46e5 !important;
}

body.light-theme .card-desc,
.light-theme .card-desc,
body.light-theme .card-features li,
.light-theme .card-features li {
  color: #475569 !important;
}

body.light-theme .card-divider,
.light-theme .card-divider {
  background: rgba(15, 23, 42, 0.08) !important;
}

body.light-theme .feature-card,
.light-theme .feature-card {
  background: #ffffff !important;
  border-color: rgba(15, 23, 42, 0.08) !important;
  box-shadow: 0 4px 20px rgba(15, 23, 42, 0.04) !important;
}

body.light-theme .feature-card h3,
.light-theme .feature-card h3,
body.light-theme .force-detail-text h3,
.light-theme .force-detail-text h3 {
  color: #0f172a !important;
}

body.light-theme .feature-card p,
.light-theme .feature-card p,
body.light-theme .force-detail-text p,
.light-theme .force-detail-text p {
  color: #475569 !important;
}

/* 4 Forces Light Theme Harmonization */
body.light-theme .force-detail-visual,
.light-theme .force-detail-visual {
  background: #f8fafc !important;
  border-color: rgba(15, 23, 42, 0.08) !important;
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.04) !important;
}

body.light-theme .stream-player,
.light-theme .stream-player {
  background: #ffffff !important;
  border-color: rgba(15, 23, 42, 0.08) !important;
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.06) !important;
}

body.light-theme .stream-backdrop,
.light-theme .stream-backdrop {
  background: linear-gradient(135deg, rgba(79, 70, 229, 0.04), rgba(34, 211, 238, 0.04)) !important;
}

body.light-theme .stream-placeholder-title,
.light-theme .stream-placeholder-title {
  color: rgba(15, 23, 42, 0.15) !important;
}

body.light-theme .ocr-bounding-box,
.light-theme .ocr-bounding-box {
  border-color: #0284c7 !important;
  background: rgba(2, 132, 199, 0.08) !important;
  box-shadow: 0 0 12px rgba(2, 132, 199, 0.15) !important;
}

body.light-theme .ocr-team-label,
.light-theme .ocr-team-label {
  color: #0f172a !important;
}

body.light-theme .ocr-score-label,
.light-theme .ocr-score-label {
  color: #0284c7 !important;
}

body.light-theme .ocr-status-pill,
.light-theme .ocr-status-pill {
  background: #ffffff !important;
  border-color: rgba(2, 132, 199, 0.2) !important;
  color: #0284c7 !important;
  box-shadow: 0 2px 10px rgba(15, 23, 42, 0.06) !important;
}

body.light-theme .ocr-status-dot,
.light-theme .ocr-status-dot {
  background: #0284c7 !important;
  box-shadow: 0 0 8px #0284c7 !important;
}

body.light-theme .discord-widget,
.light-theme .discord-widget {
  background: #ffffff !important;
  border-color: rgba(15, 23, 42, 0.1) !important;
  box-shadow: 0 4px 20px rgba(15, 23, 42, 0.05) !important;
}

body.light-theme .discord-header,
.light-theme .discord-header {
  border-bottom-color: rgba(15, 23, 42, 0.08) !important;
}

body.light-theme .discord-channel-name,
.light-theme .discord-channel-name {
  color: #0f172a !important;
}

body.light-theme .discord-msg-content h5,
.light-theme .discord-msg-content h5 {
  color: #0f172a !important;
}

body.light-theme .discord-time-stamp,
.light-theme .discord-time-stamp {
  color: #64748b !important;
}

body.light-theme .discord-embed,
.light-theme .discord-embed {
  background: #f8fafc !important;
  border-left-color: #4f46e5 !important;
  border: 1px solid rgba(15, 23, 42, 0.08) !important;
  border-left-width: 4px !important;
}

body.light-theme .discord-embed-title,
.light-theme .discord-embed-title {
  color: #0f172a !important;
}

body.light-theme .discord-embed-desc,
.light-theme .discord-embed-desc {
  color: #334155 !important;
}

body.light-theme .discord-embed-desc strong,
.light-theme .discord-embed-desc strong {
  color: #0f172a !important;
}

body.light-theme .discord-embed-highlight,
.light-theme .discord-embed-highlight {
  color: #4f46e5 !important;
}

body.light-theme .ticket-support-widget,
.light-theme .ticket-support-widget {
  background: #ffffff !important;
  border-color: rgba(15, 23, 42, 0.1) !important;
  box-shadow: 0 4px 20px rgba(15, 23, 42, 0.05) !important;
}

body.light-theme .ticket-widget-header,
.light-theme .ticket-widget-header {
  border-bottom-color: rgba(15, 23, 42, 0.08) !important;
}

body.light-theme .ticket-header-title,
.light-theme .ticket-header-title {
  color: #0f172a !important;
}

body.light-theme .ticket-status-pill.pill-open,
.light-theme .ticket-status-pill.pill-open {
  background: #fef3c7 !important;
  border-color: rgba(217, 119, 6, 0.3) !important;
  color: #b45309 !important;
}

body.light-theme .ticket-meta-info,
.light-theme .ticket-meta-info {
  color: #475569 !important;
}

body.light-theme .ticket-meta-info strong,
.light-theme .ticket-meta-info strong {
  color: #0f172a !important;
}

body.light-theme .ticket-msg-box,
.light-theme .ticket-msg-box {
  background: #f8fafc !important;
  border-color: rgba(15, 23, 42, 0.08) !important;
}

body.light-theme .ticket-msg-user,
.light-theme .ticket-msg-user {
  color: #334155 !important;
}

body.light-theme .ticket-msg-user strong,
.light-theme .ticket-msg-user strong {
  color: #4f46e5 !important;
}

body.light-theme .ticket-msg-admin,
.light-theme .ticket-msg-admin {
  color: #047857 !important;
  background: #ecfdf5 !important;
  border-left-color: #059669 !important;
}

body.light-theme .ticket-badge-resolved,
.light-theme .ticket-badge-resolved {
  color: #059669 !important;
}

body.light-theme .ticket-time-metric,
.light-theme .ticket-time-metric {
  color: #64748b !important;
}

body.light-theme .sim-progress-widget,
.light-theme .sim-progress-widget {
  background: #ffffff !important;
  border-color: rgba(15, 23, 42, 0.1) !important;
  box-shadow: 0 4px 15px rgba(15, 23, 42, 0.04) !important;
}

body.light-theme .progress-widget-header h4,
.light-theme .progress-widget-header h4 {
  color: #0f172a !important;
}

body.light-theme .progress-xp-badge,
.light-theme .progress-xp-badge {
  color: #0891b2 !important;
}

body.light-theme .progress-bar-container,
.light-theme .progress-bar-container {
  background: #e2e8f0 !important;
}

body.light-theme .progress-bar-fill,
.light-theme .progress-bar-fill {
  background: linear-gradient(90deg, #4f46e5, #0891b2) !important;
  box-shadow: none !important;
}

body.light-theme .progress-level-info,
.light-theme .progress-level-info {
  color: #475569 !important;
}

body.light-theme .progress-level-info strong,
.light-theme .progress-level-info strong {
  color: #0f172a !important;
}

body.light-theme .staff-badge-pill.badge-purple,
.light-theme .staff-badge-pill.badge-purple {
  background: #e0e7ff !important;
  border-color: rgba(79, 70, 229, 0.3) !important;
  color: #4338ca !important;
}

body.light-theme .staff-badge-pill.badge-cyan,
.light-theme .staff-badge-pill.badge-cyan {
  background: #cffafe !important;
  border-color: rgba(8, 145, 178, 0.3) !important;
  color: #0e7490 !important;
}

body.light-theme .comparison-section,
.light-theme .comparison-section {
  background: transparent !important;
}

body.light-theme .comparison-title,
.light-theme .comparison-title {
  color: #0f172a !important;
}

body.light-theme .comparison-table,
.light-theme .comparison-table {
  background: #ffffff !important;
  border-color: rgba(15, 23, 42, 0.1) !important;
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.04) !important;
}

body.light-theme .comparison-table th,
.light-theme .comparison-table th {
  background: #f1f5f9 !important;
  color: #0f172a !important;
  border-bottom: 2px solid rgba(15, 23, 42, 0.1) !important;
}

body.light-theme .comparison-table td,
.light-theme .comparison-table td {
  color: #0f172a !important;
  border-bottom: 1px solid rgba(15, 23, 42, 0.06) !important;
}

body.light-theme .table-group-header td,
.light-theme .table-group-header td {
  background: #f8fafc !important;
  color: #4f46e5 !important;
  font-weight: 800 !important;
}

/* Floating Theme Switcher Button (Bottom Right Fixed) */
.floating-theme-toggle {
  position: fixed;
  bottom: 28px;
  right: 28px;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: rgba(15, 23, 42, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.18);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.4), 0 0 15px rgba(129, 140, 248, 0.2);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  cursor: pointer;
  z-index: 9999;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  outline: none;
}

.floating-theme-toggle:hover {
  transform: scale(1.12) rotate(15deg);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.5), 0 0 25px rgba(129, 140, 248, 0.6);
  border-color: #818cf8;
}

body.light-theme .floating-theme-toggle,
.light-theme .floating-theme-toggle {
  background: rgba(255, 255, 255, 0.92) !important;
  border: 1px solid rgba(15, 23, 42, 0.15) !important;
  color: #0f172a !important;
  box-shadow: 0 10px 25px rgba(15, 23, 42, 0.12), 0 0 15px rgba(79, 70, 229, 0.15) !important;
}

body.light-theme .floating-theme-toggle:hover,
.light-theme .floating-theme-toggle:hover {
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.2), 0 0 25px rgba(79, 70, 229, 0.4) !important;
  border-color: #4f46e5 !important;
}

/* =========================================
   WORLD-CLASS COMMERCIAL FOOTER
   ========================================= */
.landing-footer-main {
  width: 100%;
  background: var(--card-bg, #080a12);
  border-top: 1px solid var(--border-color, rgba(255, 255, 255, 0.08));
  margin-top: 100px;
  padding-top: 60px;
  box-sizing: border-box;
  position: relative;
  z-index: 10;
}

body.light-theme .landing-footer-main {
  background: #ffffff !important;
  border-top-color: rgba(15, 23, 42, 0.08) !important;
}

.footer-container {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 24px 48px;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.3fr;
  gap: 40px;
  box-sizing: border-box;
}

@media (max-width: 900px) {
  .footer-container {
    grid-template-columns: 1fr 1fr;
    gap: 32px;
  }
}

@media (max-width: 550px) {
  .footer-container {
    grid-template-columns: 1fr;
  }
}

.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  margin-bottom: 16px;
}

.footer-logo {
  width: 38px;
  height: 38px;
  background: linear-gradient(135deg, rgba(129, 140, 248, 0.2), rgba(34, 211, 238, 0.2));
  border: 1px solid rgba(129, 140, 248, 0.3);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.footer-logo svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: var(--primary-neon, #818cf8);
}

body.light-theme .footer-logo svg {
  stroke: #4f46e5 !important;
}

.footer-brand-name {
  font-family: 'Outfit', sans-serif;
  font-size: 19px;
  font-weight: 800;
  letter-spacing: 0.5px;
  background: linear-gradient(135deg, var(--text-main, #ffffff) 40%, var(--primary-neon, #818cf8) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

body.light-theme .footer-brand-name {
  background: linear-gradient(135deg, #0f172a 40%, #4f46e5 100%) !important;
  -webkit-background-clip: text !important;
  -webkit-text-fill-color: transparent !important;
}

.footer-tagline {
  font-size: 13px;
  color: var(--text-muted, #94a3b8);
  line-height: 1.6;
  max-width: 320px;
  margin-bottom: 20px;
}

body.light-theme .footer-tagline {
  color: #64748b !important;
}

.footer-socials {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.social-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-color, rgba(255, 255, 255, 0.08));
  border-radius: 8px;
  color: var(--text-main, #f3f4f6);
  font-size: 11.5px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.2s;
}

.social-badge:hover {
  border-color: var(--primary-neon, #818cf8);
  color: var(--primary-neon, #818cf8);
  transform: translateY(-2px);
}

body.light-theme .social-badge {
  background: #f1f5f9 !important;
  border-color: rgba(15, 23, 42, 0.1) !important;
  color: #0f172a !important;
}

body.light-theme .social-badge:hover {
  border-color: #4f46e5 !important;
  color: #4f46e5 !important;
}

.footer-heading {
  font-family: 'Outfit', sans-serif;
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: #ffffff;
  margin-bottom: 16px;
}

body.light-theme .footer-heading {
  color: #0f172a !important;
}

.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-links a {
  color: var(--text-muted, #94a3b8);
  text-decoration: none;
  font-size: 13px;
  transition: color 0.2s;
  font-weight: 500;
}

.footer-links a:hover {
  color: var(--cyan-neon, #22d3ee);
}

body.light-theme .footer-links a {
  color: #64748b !important;
}

body.light-theme .footer-links a:hover {
  color: #4f46e5 !important;
}

.status-indicator-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 18px;
  padding: 6px 12px;
  background: rgba(52, 211, 153, 0.08);
  border: 1px solid rgba(52, 211, 153, 0.25);
  border-radius: 20px;
  color: var(--emerald-neon, #34d399);
  font-size: 11px;
  font-weight: 700;
}

body.light-theme .status-indicator-badge {
  background: rgba(16, 185, 129, 0.08) !important;
  border-color: rgba(16, 185, 129, 0.25) !important;
  color: #059669 !important;
}

.status-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--emerald-neon, #34d399);
  box-shadow: 0 0 8px var(--emerald-neon, #34d399);
}

body.light-theme .status-dot {
  background: #059669 !important;
  box-shadow: 0 0 8px #059669 !important;
}

.footer-bottom-bar {
  border-top: 1px solid var(--border-color, rgba(255, 255, 255, 0.06));
  padding: 20px 0;
  background: rgba(0, 0, 0, 0.2);
}

body.light-theme .footer-bottom-bar {
  background: #f8fafc !important;
  border-top-color: rgba(15, 23, 42, 0.06) !important;
}

.footer-bottom-container {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
  color: var(--text-muted, #94a3b8);
  flex-wrap: wrap;
  gap: 12px;
}

body.light-theme .footer-bottom-container {
  color: #64748b !important;
}

.footer-bottom-badges {
  display: flex;
  gap: 12px;
}

.cert-pill {
  font-size: 11px;
  font-weight: 700;
  color: var(--text-muted, #94a3b8);
}

body.light-theme .cert-pill {
  color: #64748b !important;
}

/* 19. Commercial Landing & Pricing Master Component Classes */
.pricing-card {
  background: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-xl);
  padding: 32px 28px;
  position: relative;
  transition: all var(--transition-speed);
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-md);
}

.pricing-card:hover {
  transform: translateY(-4px);
  border-color: var(--border-hover);
  box-shadow: var(--shadow-lg), var(--shadow-glow);
}

.pricing-card-popular {
  border-color: var(--primary-neon);
  background: linear-gradient(180deg, rgba(129, 140, 248, 0.12) 0%, var(--card-bg) 100%);
  box-shadow: 0 10px 40px rgba(129, 140, 248, 0.2);
}

body.light-theme .pricing-card-popular {
  background: linear-gradient(180deg, rgba(79, 70, 229, 0.06) 0%, #ffffff 100%);
  border-color: var(--primary-neon);
}

.pricing-tier-tag {
  display: inline-block;
  font-family: 'Outfit', sans-serif;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  padding: 4px 12px;
  border-radius: var(--radius-full);
  background: rgba(129, 140, 248, 0.15);
  color: var(--primary-neon);
  margin-bottom: 16px;
  width: fit-content;
}

.pricing-price-val {
  font-family: 'Outfit', sans-serif;
  font-size: 36px;
  font-weight: 800;
  color: var(--text-main);
  line-height: 1;
}

.pricing-period {
  font-size: 13px;
  color: var(--text-muted);
  margin-left: 4px;
}

.pricing-feature-list {
  list-style: none;
  margin: 24px 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.pricing-feature-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13.5px;
  color: var(--text-main);
}

.pricing-feature-item svg {
  width: 18px;
  height: 18px;
  color: var(--emerald-neon);
  flex-shrink: 0;
}

.hero-section-card {
  background: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-xl);
  padding: 48px var(--space-xl);
  backdrop-filter: blur(20px);
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.hero-badge-glow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  border-radius: var(--radius-full);
  background: rgba(129, 140, 248, 0.1);
  border: 1px solid rgba(129, 140, 248, 0.25);
  color: var(--primary-neon);
  font-size: 12px;
  font-weight: 600;
  margin-bottom: 20px;
}

.feature-grid-card {
  background: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 24px;
  transition: all var(--transition-speed);
}

.feature-grid-card:hover {
  transform: translateY(-2px);
  border-color: var(--border-hover);
}

.feature-icon-box {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-md);
  background: linear-gradient(135deg, rgba(129, 140, 248, 0.15), rgba(167, 139, 250, 0.15));
  border: 1px solid rgba(129, 140, 248, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary-neon);
  margin-bottom: 16px;
}

/* 20. Client Esport App Master Component Classes */
.match-card {
  background: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 20px 24px;
  transition: all var(--transition-speed);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 12px;
}

.match-card:hover {
  border-color: var(--border-hover);
  background: var(--card-bg-hover);
}

.team-score-badge {
  font-family: 'Outfit', sans-serif;
  font-size: 14px;
  font-weight: 700;
  padding: 6px 14px;
  border-radius: var(--radius-md);
  background: rgba(129, 140, 248, 0.1);
  color: var(--primary-neon);
  border: 1px solid rgba(129, 140, 248, 0.2);
}

.bracket-stage-pill {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  padding: 3px 10px;
  border-radius: var(--radius-sm);
  background: rgba(34, 211, 238, 0.1);
  color: var(--cyan-neon);
}

.dispute-card {
  background: var(--card-bg);
  border: 1px solid var(--border-color);
  border-left: 4px solid var(--rose-neon);
  border-radius: var(--radius-lg);
  padding: 20px;
  margin-bottom: 16px;
  transition: all var(--transition-speed);
}

.dispute-card:hover {
  border-color: var(--border-hover);
  border-left-color: var(--rose-neon);
}

.kanban-column-container {
  background: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-xl);
  padding: 20px;
  min-width: 280px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.kanban-card {
  background: var(--modal-bg);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 16px;
  transition: all var(--transition-speed);
  cursor: grab;
}

.kanban-card:hover {
  border-color: var(--primary-neon);
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
}

.meeting-summary-card {
  background: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 24px;
  margin-bottom: 16px;
}

.ai-action-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: var(--radius-full);
  background: rgba(167, 139, 250, 0.12);
  color: var(--secondary-neon);
  border: 1px solid rgba(167, 139, 250, 0.25);
}

.ledger-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 20px;
  border-bottom: 1px solid var(--table-border);
  font-size: 13px;
  transition: background-color var(--transition-speed);
}

.ledger-row:hover {
  background: var(--table-row-hover);
}

/* ==========================================================================
   MASTERCLASS NOTIFICATION SYSTEM (ANDROID 17 OS GRADE - GLOBAL)
   ========================================================================== */
.notification-wrapper {
  position: relative;
  display: inline-block;
}

.btn-bell {
  background: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-main);
  cursor: pointer;
  position: relative;
  transition: all var(--transition-speed);
  outline: none;
}

body.light-theme .btn-bell {
  background: rgba(255, 255, 255, 0.85);
  border-color: rgba(0,0,0,0.1);
}

.btn-bell:hover {
  border-color: var(--primary-neon);
  background: rgba(129, 140, 248, 0.08);
  color: var(--primary-neon);
}

.btn-bell svg {
  width: 20px;
  height: 20px;
}

.bell-badge {
  position: absolute;
  top: -3px;
  right: -3px;
  width: 19px;
  height: 19px;
  background: var(--rose-neon);
  color: #ffffff;
  border-radius: 50%;
  font-size: 10px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid var(--bg-dark);
  box-shadow: 0 0 10px var(--rose-neon);
  animation: pulseBadge 2s infinite;
}

@keyframes pulseBadge {
  0% { transform: scale(1); }
  50% { transform: scale(1.1); box-shadow: 0 0 14px var(--rose-neon); }
  100% { transform: scale(1); }
}
.notification-dropdown {
  position: absolute;
  top: calc(100% + 14px);
  right: 0;
  width: 580px;
  max-width: calc(100vw - 32px);
  background: rgba(11, 14, 24, 0.98);
  border: 1px solid rgba(129, 140, 248, 0.35);
  border-radius: 22px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.85), 0 0 45px rgba(129, 140, 248, 0.18);
  backdrop-filter: blur(32px);
  -webkit-backdrop-filter: blur(32px);
  z-index: 9999;
  display: none;
  overflow: hidden;
}

body.light-theme .notification-dropdown {
  background: rgba(255, 255, 255, 0.99);
  border-color: rgba(79, 70, 229, 0.25);
  box-shadow: 0 25px 60px rgba(15, 23, 42, 0.16);
}

.notification-dropdown.show {
  display: block;
  animation: dropdownFade 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

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

.dropdown-header {
  padding: 18px 24px;
  border-bottom: 1px solid var(--border-color);
  font-weight: 800;
  font-size: 16px;
  font-family: 'Outfit', sans-serif;
  letter-spacing: 0.3px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: linear-gradient(135deg, rgba(129, 140, 248, 0.1), rgba(34, 211, 238, 0.05));
  color: var(--text-main);
}

body.light-theme .dropdown-header {
  background: linear-gradient(135deg, rgba(79, 70, 229, 0.06), rgba(6, 182, 212, 0.04));
  color: #0f172a;
}

.dropdown-header-left {
  display: flex;
  align-items: center;
  gap: 12px;
}

.notif-header-tag {
  font-family: 'Inter', sans-serif;
  font-size: 11.5px;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 99px;
  background: rgba(129, 140, 248, 0.15);
  color: var(--primary-neon);
  border: 1px solid rgba(129, 140, 248, 0.3);
}

.notif-header-tag.active {
  background: rgba(34, 211, 238, 0.15);
  color: var(--cyan-neon);
  border-color: rgba(34, 211, 238, 0.35);
}

body.light-theme .notif-header-tag.active {
  background: rgba(6, 182, 212, 0.12);
  color: #0891b2;
  border-color: rgba(6, 182, 212, 0.25);
}

.dropdown-header-action {
  font-family: 'Inter', sans-serif;
  font-size: 12px;
  font-weight: 700;
  color: var(--primary-neon);
  cursor: pointer;
  padding: 6px 12px;
  border-radius: 9px;
  background: rgba(129, 140, 248, 0.1);
  border: 1px solid rgba(129, 140, 248, 0.25);
  transition: all 0.2s ease;
}

body.light-theme .dropdown-header-action {
  color: #4f46e5;
  background: rgba(79, 70, 229, 0.08);
  border-color: rgba(79, 70, 229, 0.2);
}

.dropdown-header-action:hover {
  background: rgba(129, 140, 248, 0.22);
  transform: translateY(-1px);
}

.notif-filter-capsule {
  display: flex;
  padding: 10px 18px;
  gap: 10px;
  background: rgba(7, 9, 16, 0.8);
  border-bottom: 1px solid var(--border-color);
  overflow-x: auto;
  white-space: nowrap !important;
}

body.light-theme .notif-filter-capsule {
  background: #f1f5f9;
  border-bottom-color: rgba(15, 23, 42, 0.08);
}

.notif-filter-btn {
  background: transparent;
  border: 1px solid transparent;
  color: var(--text-muted);
  font-family: 'Inter', sans-serif;
  font-size: 12.5px;
  font-weight: 600;
  padding: 6px 16px;
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap !important;
  flex-shrink: 0;
}

body.light-theme .notif-filter-btn {
  color: #64748b;
}

.notif-filter-btn:hover {
  color: var(--text-main);
  background: rgba(129, 140, 248, 0.08);
}

body.light-theme .notif-filter-btn:hover {
  color: #0f172a;
  background: rgba(79, 70, 229, 0.06);
}

.notif-filter-btn.active {
  background: rgba(129, 140, 248, 0.2);
  border-color: rgba(129, 140, 248, 0.4);
  color: var(--primary-neon);
  font-weight: 700;
  box-shadow: 0 4px 14px rgba(129, 140, 248, 0.22);
}

body.light-theme .notif-filter-btn.active {
  background: #ffffff;
  border-color: rgba(79, 70, 229, 0.25);
  color: #4f46e5;
  box-shadow: 0 4px 14px rgba(15, 23, 42, 0.08);
}

.dropdown-list {
  list-style: none;
  max-height: 420px;
  overflow-y: auto;
}

.dropdown-item {
  padding: 18px 24px;
  border-bottom: 1px solid var(--border-color);
  font-size: 13.5px;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  align-items: flex-start;
  gap: 16px;
}

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

.dropdown-item:hover {
  background: rgba(129, 140, 248, 0.08);
}

body.light-theme .dropdown-item:hover {
  background: rgba(79, 70, 229, 0.04);
}

.dropdown-item.unread {
  background: rgba(34, 211, 238, 0.04);
}

body.light-theme .dropdown-item.unread {
  background: rgba(79, 70, 229, 0.03);
}

.dropdown-item-icon {
  width: 46px;
  height: 46px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 20px;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.25);
}

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

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

.dropdown-item-title {
  font-family: 'Outfit', sans-serif;
  color: var(--text-main);
  font-size: 14.5px;
  font-weight: 700;
  line-height: 1.3;
  white-space: normal;
  margin: 0;
  flex: 1;
}

body.light-theme .dropdown-item-title {
  color: #0f172a;
}

.dropdown-item-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.notif-prio-pill {
  font-size: 10px;
  font-weight: 800;
  padding: 3px 8px;
  border-radius: 7px;
  letter-spacing: 0.4px;
  text-transform: uppercase;
}

.notif-prio-pill.info {
  background: rgba(129, 140, 248, 0.18);
  color: var(--primary-neon);
  border: 1px solid rgba(129, 140, 248, 0.35);
}

.notif-prio-pill.critical {
  background: rgba(251, 113, 133, 0.22);
  color: var(--rose-neon);
  border: 1px solid rgba(251, 113, 133, 0.4);
}

.notif-prio-pill.warning {
  background: rgba(34, 211, 238, 0.22);
  color: var(--cyan-neon);
  border: 1px solid rgba(34, 211, 238, 0.4);
}

.dropdown-item-desc {
  font-family: 'Inter', sans-serif;
  font-size: 12.5px;
  color: var(--text-muted);
  line-height: 1.45;
  margin: 0 0 6px 0;
}

body.light-theme .dropdown-item-desc {
  color: #64748b;
}

.dropdown-item-time {
  font-family: 'Inter', sans-serif;
  font-size: 11px;
  color: var(--text-muted);
  opacity: 0.75;
  font-weight: 500;
}

.notif-unread-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--cyan-neon);
  box-shadow: 0 0 12px var(--cyan-neon);
  flex-shrink: 0;
  margin-top: 6px;
  animation: pulseDot 2s infinite ease-in-out;
}
}

@keyframes pulseDot {
  0% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.3); opacity: 0.7; }
  100% { transform: scale(1); opacity: 1; }
}

body.light-theme .notif-unread-dot {
  background: #0891b2;
  box-shadow: 0 0 8px rgba(8, 145, 178, 0.5);
}

.notif-unread-dot.read {
  opacity: 0;
  visibility: hidden;
  animation: none;
}

.dropdown-empty-state {
  padding: 36px 20px;
  text-align: center;
}

.dropdown-empty-state .empty-state-icon {
  font-size: 28px;
  margin-bottom: 8px;
}

.dropdown-empty-state p {
  font-family: 'Outfit', sans-serif;
  font-size: 13.5px;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 2px;
}

.dropdown-empty-state span {
  font-size: 11.5px;
  color: var(--text-muted);
}

.dropdown-footer {
  padding: 14px 20px;
  background: rgba(6, 8, 14, 0.8);
  border-top: 1px solid var(--border-color);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

body.light-theme .dropdown-footer {
  background: #f8fafc;
  border-top-color: rgba(15, 23, 42, 0.08);
}

.dropdown-footer-btn {
  background: transparent;
  border: none;
  font-family: 'Outfit', sans-serif;
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 0.3px;
  cursor: pointer;
  transition: all 0.2s ease;
  color: var(--primary-neon);
}

body.light-theme .dropdown-footer-btn {
  color: #4f46e5;
}

.mark-read-footer-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--text-muted);
}

.mark-read-footer-btn:hover {
  color: var(--primary-neon);
}

.dropdown-footer-btn.btn-open-full-notif {
  color: var(--cyan-neon);
  background: rgba(34, 211, 238, 0.1);
  padding: 6px 14px;
  border-radius: 99px;
  border: 1px solid rgba(34, 211, 238, 0.3);
}

body.light-theme .dropdown-footer-btn.btn-open-full-notif {
  color: #0891b2;
  background: rgba(6, 182, 212, 0.08);
  border-color: rgba(6, 182, 212, 0.25);
}

.dropdown-footer-btn.btn-open-full-notif:hover {
  background: rgba(34, 211, 238, 0.2);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(34, 211, 238, 0.25);
}

/* Notification Center Card in Fullscreen Modal */
.notif-full-card {
  background: rgba(129, 140, 248, 0.03);
  border: 1px solid rgba(129, 140, 248, 0.15);
  border-radius: 14px;
  padding: 16px;
  display: flex;
  gap: 14px;
  align-items: flex-start;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: pointer;
  position: relative;
}

body.light-theme .notif-full-card {
  background: rgba(255, 255, 255, 0.85);
  border-color: rgba(15, 23, 42, 0.08);
}

.notif-full-card:hover {
  background: rgba(129, 140, 248, 0.08);
  border-color: rgba(129, 140, 248, 0.35);
  transform: translateX(3px);
}

.notif-full-card.unread {
  border-left: 4px solid var(--cyan-neon);
  background: rgba(34, 211, 238, 0.04);
}

/* Card Action Links & Buttons inside Notification Modal */
.notif-action-btn-module {
  background: rgba(129, 140, 248, 0.12);
  color: var(--primary-neon);
  border: 1px solid rgba(129, 140, 248, 0.25);
  border-radius: 7px;
  padding: 5px 12px;
  font-size: 11.5px;
  font-weight: 700;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all 0.2s ease;
}

body.light-theme .notif-action-btn-module {
  background: rgba(79, 70, 229, 0.08);
  color: #4f46e5;
  border-color: rgba(79, 70, 229, 0.22);
}

.notif-action-btn-module:hover {
  background: rgba(129, 140, 248, 0.22);
  border-color: var(--primary-neon);
  transform: translateY(-1px);
}

body.light-theme .notif-action-btn-module:hover {
  background: rgba(79, 70, 229, 0.16);
  border-color: #4f46e5;
}

.notif-action-btn-read {
  background: transparent;
  border: 1px solid var(--border-color);
  color: var(--text-muted);
  border-radius: 7px;
  padding: 5px 12px;
  font-size: 11.5px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

body.light-theme .notif-action-btn-read {
  border-color: rgba(15, 23, 42, 0.15);
  color: #475569;
}

.notif-action-btn-read:hover {
  border-color: var(--emerald-neon);
  color: var(--emerald-neon);
  background: rgba(52, 211, 153, 0.08);
}

body.light-theme .notif-action-btn-read:hover {
  border-color: #059669;
  color: #059669;
  background: rgba(5, 150, 105, 0.08);
}

.notif-modal-header {
  background: rgba(129, 140, 248, 0.05);
  padding: 18px 24px;
}

body.light-theme .notif-modal-header {
  background: rgba(79, 70, 229, 0.04) !important;
}

/* Glassmorphic Cyber Overlay & Container for Full Notification Center */
#fullNotificationCenterModal {
  background: rgba(8, 9, 15, 0.65) !important;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

#fullNotificationCenterModal.active {
  display: flex !important;
  opacity: 1 !important;
  pointer-events: auto !important;
  z-index: 999999 !important;
  visibility: visible !important;
}

body.light-theme #fullNotificationCenterModal {
  background: rgba(15, 23, 42, 0.35) !important;
}

#fullNotificationCenterModal .modal-container {
  background: rgba(13, 17, 28, 0.88) !important;
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid rgba(129, 140, 248, 0.28) !important;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.6), 0 0 35px rgba(129, 140, 248, 0.12) !important;
}

body.light-theme #fullNotificationCenterModal .modal-container {
  background: rgba(255, 255, 255, 0.94) !important;
  border-color: rgba(79, 70, 229, 0.2) !important;
  box-shadow: 0 25px 60px rgba(15, 23, 42, 0.15) !important;
}

/* Search Input Box & Field styling for Modal */
.search-input-box {
  position: relative;
  display: flex;
  align-items: center;
  width: 100%;
}

.search-input-box .search-icon {
  position: absolute;
  left: 12px;
  width: 16px;
  height: 16px;
  color: var(--text-muted);
  pointer-events: none;
}

.field-search-input {
  width: 100%;
  background: rgba(129, 140, 248, 0.05);
  border: 1px solid rgba(129, 140, 248, 0.2);
  border-radius: 12px;
  padding: 10px 14px 10px 38px;
  font-family: 'Inter', sans-serif;
  font-size: 13px;
  color: var(--text-main, #f3f4f6);
  outline: none;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

body.light-theme .field-search-input {
  background: rgba(255, 255, 255, 0.9);
  border-color: rgba(15, 23, 42, 0.12);
  color: #0f172a;
}

.field-search-input:focus {
  border-color: var(--primary-neon);
  box-shadow: 0 0 0 3px rgba(129, 140, 248, 0.12);
  background: rgba(129, 140, 248, 0.08);
}

/* Category Filter Tabs Capsule */
.filter-tabs-capsule {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: rgba(13, 16, 28, 0.6);
  border: 1px solid rgba(129, 140, 248, 0.2);
  border-radius: 12px;
  padding: 4px;
}

body.light-theme .filter-tabs-capsule {
  background: rgba(241, 245, 249, 0.9);
  border-color: rgba(15, 23, 42, 0.1);
}

.btn-filter-pill {
  background: transparent;
  border: 1px solid transparent;
  color: var(--text-muted);
  font-family: 'Inter', sans-serif;
  font-size: 12px;
  font-weight: 600;
  padding: 6px 14px;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  outline: none;
}

.btn-filter-pill:hover {
  color: var(--text-main);
  background: rgba(129, 140, 248, 0.08);
}

.btn-filter-pill.active {
  background: linear-gradient(135deg, rgba(129, 140, 248, 0.25), rgba(167, 139, 250, 0.25));
  border-color: var(--primary-neon);
  color: #ffffff;
  font-weight: 700;
  box-shadow: 0 0 12px rgba(129, 140, 248, 0.3);
}

body.light-theme .btn-filter-pill.active {
  background: linear-gradient(135deg, #4f46e5, #6366f1);
  color: #ffffff;
  border-color: transparent;
}

/* ==========================================================================
   21. UNIVERSAL DATA GRID, KPI STAT WIDGETS & EXCEL TABLES
   ========================================================================== */

/* Top KPI Grid */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
  margin-bottom: 24px;
}

.stat-widget-card {
  background: var(--card-bg, rgba(13, 16, 28, 0.85));
  border: 1px solid var(--border-color, rgba(129, 140, 248, 0.18));
  border-radius: 18px;
  padding: 20px;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
  display: flex;
  flex-direction: column;
  gap: 8px;
  transition: all var(--transition-speed, 0.25s ease);
  position: relative;
  overflow: hidden;
}

body.light-theme .stat-widget-card,
.light-theme .stat-widget-card {
  background: #ffffff !important;
  border-color: rgba(15, 23, 42, 0.12) !important;
  box-shadow: 0 4px 20px rgba(15, 23, 42, 0.05) !important;
}

.stat-widget-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.stat-widget-title {
  font-size: 11.5px;
  font-weight: 700;
  color: var(--text-muted, #94a3b8);
  text-transform: uppercase;
  letter-spacing: 0.8px;
}

body.light-theme .stat-widget-title,
.light-theme .stat-widget-title {
  color: #64748b !important;
}

.stat-widget-icon {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  background: rgba(129, 140, 248, 0.12);
  color: var(--primary-neon, #818cf8);
}

.stat-widget-value {
  font-family: 'Outfit', sans-serif;
  font-size: 24px;
  font-weight: 800;
  color: var(--text-main, #f3f4f6);
  line-height: 1.1;
}

body.light-theme .stat-widget-value,
.light-theme .stat-widget-value {
  color: #0f172a !important;
}

.stat-widget-sub {
  font-size: 11.5px;
  color: var(--text-muted, #94a3b8);
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 6px;
}

body.light-theme .stat-widget-sub,
.light-theme .stat-widget-sub {
  color: #64748b !important;
}

/* Excel Table Container & Data Table */
.excel-table-container {
  width: 100%;
  overflow-x: auto;
  border-radius: 16px;
  border: 1px solid var(--border-color, rgba(129, 140, 248, 0.18));
  background: var(--card-bg, rgba(13, 16, 28, 0.85));
  backdrop-filter: blur(16px);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
}

body.light-theme .excel-table-container,
.light-theme .excel-table-container {
  background: #ffffff !important;
  border-color: rgba(15, 23, 42, 0.12) !important;
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.05) !important;
}

.excel-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 13px;
}

.excel-table th {
  background: rgba(15, 23, 42, 0.8);
  color: var(--text-muted, #94a3b8);
  font-family: 'Outfit', sans-serif;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  padding: 14px 18px;
  border-bottom: 1px solid var(--border-color, rgba(255, 255, 255, 0.08));
  white-space: nowrap;
}

body.light-theme .excel-table th,
.light-theme .excel-table th {
  background: rgba(241, 245, 249, 0.9) !important;
  color: #475569 !important;
  border-bottom-color: rgba(15, 23, 42, 0.08) !important;
}

.excel-table td {
  padding: 14px 18px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  color: var(--text-main, #f3f4f6);
  vertical-align: middle;
  white-space: nowrap;
}

body.light-theme .excel-table td,
.light-theme .excel-table td {
  border-bottom-color: rgba(15, 23, 42, 0.06) !important;
  color: #0f172a !important;
}

.excel-table tbody tr {
  transition: background 0.2s ease;
}

.excel-table tbody tr:hover {
  background: rgba(129, 140, 248, 0.04);
}

body.light-theme .excel-table tbody tr:hover,
.light-theme .excel-table tbody tr:hover {
  background: rgba(79, 70, 229, 0.03) !important;
}

/* Filter Capsule Tabs */
.filter-tabs-capsule {
  display: flex;
  gap: 6px;
  padding: 4px;
  background: rgba(10, 12, 22, 0.6);
  border: 1px solid var(--border-color, rgba(129, 140, 248, 0.18));
  border-radius: 12px;
}

body.light-theme .filter-tabs-capsule,
.light-theme .filter-tabs-capsule {
  background: #f1f5f9 !important;
  border-color: rgba(15, 23, 42, 0.12) !important;
}

/* Search Input Box */
.search-input-box {
  position: relative;
  display: flex;
  align-items: center;
}

.search-input-box .search-icon {
  position: absolute;
  left: 12px;
  width: 16px;
  height: 16px;
  color: var(--text-muted, #94a3b8);
  pointer-events: none;
}

.field-search-input {
  width: 100%;
  padding: 8px 14px 8px 36px;
  background: rgba(10, 12, 22, 0.6);
  border: 1px solid var(--border-color, rgba(129, 140, 248, 0.18));
  border-radius: 10px;
  color: var(--text-main, #f3f4f6);
  font-family: 'Inter', sans-serif;
  font-size: 12.5px;
  outline: none;
  transition: all 0.2s ease;
}

body.light-theme .field-search-input,
.light-theme .field-search-input {
  background: #ffffff !important;
  border-color: rgba(15, 23, 42, 0.12) !important;
  color: #0f172a !important;
}

.field-search-input:focus {
  border-color: var(--primary-neon, #818cf8);
  box-shadow: 0 0 0 3px rgba(129, 140, 248, 0.15);
}


