/* ==========================================================================
   APEX & KNOTBOX DESKTOP DESIGN SYSTEM
   High-density, modern desktop interface design system
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=JetBrains+Mono:wght@400;500&display=swap');

/* --------------------------------------------------------------------------
   1. DESIGN TOKENS (CSS Custom Properties)
   -------------------------------------------------------------------------- */
:root {
  /* Knotnex Purple Brand Tokens (From User Spec) */
  --knotnex-primary: #6336EB;
  --knotnex-primary-dark: #231352;
  --knotnex-light-badge: #E8E1FC;
  --knotnex-border-subtle: #EFEBFD;
  --knotnex-card-bg: rgba(255, 255, 255, 0.67);
  --knotnex-text-black: #131313;
  --knotnex-text-muted: rgba(19, 19, 19, 0.50);
  --knotnex-text-faint: rgba(19, 19, 19, 0.30);
  --knotnex-green: #189E09;
  --knotnex-green-bg: rgba(24, 158, 9, 0.08);
  --knotnex-red: #9E0909;
  --knotnex-red-bg: rgba(158, 9, 9, 0.08);
  --knotnex-switch-blue: #1A89FF;

  /* Brand / Primary Palette */
  --brand-50: #eff4ff;
  --brand-100: #dbeafe;
  --brand-200: #bfdbfe;
  --brand-300: #93c5fd;
  --brand-400: #60a5fa;
  --brand-500: #2563eb;
  --brand-600: #6336EB;   /* Upgraded to Knotnex signature purple */
  --brand-700: #542cc4;
  --brand-800: #42219e;
  --brand-900: #231352;

  /* Neutral / Grays */
  --neutral-25: #fcfcfd;
  --neutral-50: #f8f9fa;   /* Outer workspace canvas */
  --neutral-100: #f2f4f7;  /* Subtle backgrounds / icon boxes */
  --neutral-200: #eaecf0;  /* Standard UI borders */
  --neutral-300: #d0d5dd;  /* Input hover borders */
  --neutral-400: #98a2b3;  /* Placeholder & secondary icons */
  --neutral-500: #667085;  /* Table headers, subtitles, captions */
  --neutral-600: #475467;  /* Unselected nav items, secondary text */
  --neutral-700: #344054;  /* Filter text, active table labels */
  --neutral-800: #1d2939;  /* Headings */
  --neutral-900: #101828;  /* Primary dark text, body text */

  /* Semantic / Accents */
  --success-50: #ecfdf3;
  --success-100: #dcfae6;
  --success-500: #12b76a;
  --success-700: #027a48;
  --warning-50: #fffaeb;
  --warning-100: #fef0c7;
  --warning-500: #f79009;
  --warning-700: #b54708;
  --error-50: #fef3f2;
  --error-100: #fee4e2;
  --error-500: #f04438;
  --error-700: #b42318;
  --verified-blue: #2e90fa;
  --purple-50: #f9f5ff;
  --purple-500: #7a5af8;
  --purple-700: #6941c6;

  /* Surfaces & Backgrounds */
  --bg-app: #f1f3f6;
  --bg-surface: #ffffff;
  --bg-surface-subtle: #f8f9fa;
  --bg-surface-hover: #f9fafb;
  --bg-surface-selected: #f0f4ff;

  /* Borders */
  --border-subtle: #EFEBFD;
  --border-default: #EFEBFD;
  --border-strong: #EFEBFD;
  --border-focus: #6336EB;

  /* Text Colors */
  --text-primary: #101828;
  --text-secondary: #344054;
  --text-tertiary: #667085;
  --text-placeholder: #98a2b3;
  --text-on-brand: #ffffff;
  --text-brand: #1849d6;

  /* Typography Scale */
  --font-family-base: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  --font-family-mono: 'JetBrains Mono', monospace;

  --font-size-2xs: 10px;
  --font-size-xs: 11px;
  --font-size-sm: 12px;
  --font-size-md: 13.5px;
  --font-size-base: 14px;
  --font-size-lg: 16px;
  --font-size-xl: 18px;
  --font-size-2xl: 22px;
  --font-size-3xl: 28px;

  --line-height-tight: 1.25;
  --line-height-snug: 1.375;
  --line-height-normal: 1.5;
  --line-height-relaxed: 1.625;

  --font-weight-regular: 400;
  --font-weight-medium: 500;
  --font-weight-semibold: 600;
  --font-weight-bold: 700;

  /* Radii */
  --radius-xs: 4px;
  --radius-sm: 6px;
  --radius-md: 8px;
  --radius-lg: 10px;
  --radius-xl: 14px;
  --radius-2xl: 20px;
  --radius-full: 9999px;

  /* Shadows (Removed per user request) */
  --shadow-xs: none;
  --shadow-sm: none;
  --shadow-md: none;
  --shadow-lg: none;
  --shadow-xl: none;
  --shadow-card: none;

  /* Spacing Scale */
  --space-0-5: 2px;
  --space-1: 4px;
  --space-1-5: 6px;
  --space-2: 8px;
  --space-2-5: 10px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 20px;
  --space-6: 24px;
  --space-8: 32px;
  --space-10: 40px;
  --space-12: 48px;

  /* Transitions (Gentle & smooth hover animations) */
  --transition-fast: 320ms cubic-bezier(0.25, 0.8, 0.25, 1);
  --transition-normal: 400ms cubic-bezier(0.2, 0.8, 0.2, 1);
  --transition-smooth: 520ms cubic-bezier(0.16, 1, 0.3, 1);
}

/* --------------------------------------------------------------------------
   2. RESET & GLOBAL STYLES
   -------------------------------------------------------------------------- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html, body {
  height: 100%;
  font-family: var(--font-family-base);
  font-size: var(--font-size-base);
  line-height: var(--line-height-normal);
  color: var(--text-primary);
  background-color: var(--bg-app);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

button, input, select, textarea {
  font-family: inherit;
  font-size: inherit;
  color: inherit;
}

button {
  cursor: pointer;
  border: none;
  background: none;
}

a {
  color: inherit;
  text-decoration: none;
}

ul, ol {
  list-style: none;
}

/* --------------------------------------------------------------------------
   3. DESKTOP APPLICATION SHELL
   -------------------------------------------------------------------------- */
.desktop-viewport {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  background-color: #ededf0;
}

.desktop-app-frame {
  width: 100%;
  max-width: 1460px;
  height: calc(100vh - 32px);
  min-height: 860px;
  background: var(--bg-surface);
  border-radius: var(--radius-2xl);
  box-shadow: none;
  display: flex;
  overflow: hidden;
  position: relative;
  border: 1px solid #EFEBFD;
}

/* --------------------------------------------------------------------------
   4. SIDEBAR COMPONENT (KNOTNEX ORG DASHBOARD)
   -------------------------------------------------------------------------- */
.sidebar {
  width: 256px;
  min-width: 256px;
  background-color: var(--bg-surface);
  border-right: 1px solid #EFEBFD;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: var(--space-5) var(--space-3) var(--space-4) var(--space-3);
  position: relative;
  user-select: none;
  overflow-y: auto;
  transition: width var(--transition-smooth), min-width var(--transition-smooth);
}

.sidebar.collapsed {
  width: 78px;
  min-width: 78px;
  padding: var(--space-4) var(--space-2);
}

.sidebar.collapsed .brand-name,
.sidebar.collapsed .brand-name-knotnex,
.sidebar.collapsed .brand-version-pill,
.sidebar.collapsed .nav-group-title,
.sidebar.collapsed .nav-item-label,
.sidebar.collapsed .nav-item-arrow,
.sidebar.collapsed .nav-submenu-list,
.sidebar.collapsed .nav-submenu,
.sidebar.collapsed .sidebar-subscription-box {
  display: none !important;
}

.sidebar.collapsed .sidebar-header {
  padding: 0 0 var(--space-3) 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
}

.sidebar.collapsed .brand-top-row {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
}

.sidebar.collapsed .brand-wrapper {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  width: 100%;
  cursor: pointer;
}

.sidebar.collapsed .brand-icon-knotnex {
  margin: 0 auto;
}

.sidebar.collapsed .btn-collapse-sidebar {
  display: flex !important;
  align-items: center;
  justify-content: center;
  margin: 0 auto;
  position: static;
  visibility: visible !important;
  opacity: 1 !important;
  flex-shrink: 0;
}

.sidebar.collapsed .nav-item {
  justify-content: center;
  padding: 10px;
  width: 100%;
}

.sidebar.collapsed .nav-item-icon {
  margin: 0;
}

.sidebar.collapsed .nav-item.active::before {
  left: -8px;
}

/* Brand Section */
.sidebar-header {
  padding: 0 var(--space-2) var(--space-4) var(--space-2);
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  position: relative;
}

.brand-top-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}

.brand-wrapper {
  display: flex;
  align-items: center;
  gap: 8px;
}

.brand-icon-knotnex {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: none;
  border: 1px solid #EFEBFD;
}

.brand-logo-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.brand-name-knotnex {
  font-size: 20px;
  font-weight: 700;
  color: #5850ec;
  letter-spacing: -0.02em;
  font-family: var(--font-family-base);
}

/* Circular Collapse/Expand Button */
.btn-collapse-sidebar {
  width: 28px;
  height: 28px;
  border-radius: var(--radius-full);
  background-color: #eef0ff;
  color: #5850ec;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #EFEBFD;
  cursor: pointer;
  transition: all var(--transition-fast);
  flex-shrink: 0;
}

.btn-collapse-sidebar:hover {
  background-color: #e0e4ff;
  transform: scale(1.05);
}

/* Version Pill */
.brand-version-pill {
  display: inline-flex;
  align-items: center;
  align-self: flex-start;
  padding: 3px 10px;
  background-color: #f0efff;
  color: #5850ec;
  font-size: 11px;
  font-weight: 600;
  border-radius: var(--radius-full);
  letter-spacing: 0.01em;
  margin-top: 2px;
}

/* Nav Groups */
.sidebar-nav {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 12px;
  overflow-y: auto;
  padding-right: 2px;
  margin-top: var(--space-3);
}

.nav-group {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.nav-group-title {
  font-size: 12px;
  font-weight: 600;
  color: #6e62e5;
  padding: 8px 12px 4px 12px;
  letter-spacing: 0.01em;
}

.nav-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
  border-radius: var(--radius-md);
  font-size: 13.5px;
  font-weight: var(--font-weight-medium);
  color: #475467;
  transition: background-color 0.45s ease, color 0.45s ease;
  position: relative;
  cursor: pointer;
}

.nav-item:hover,
.nav-item-has-submenu:hover .nav-item,
.nav-item-has-submenu.open .nav-item {
  background-color: #f5f4ff;
  color: #5850ec;
}

.nav-item-icon {
  width: 18px;
  height: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #667085;
  transition: color 0.45s ease;
}

.nav-item:hover .nav-item-icon,
.nav-item-has-submenu:hover .nav-item-icon,
.nav-item-has-submenu.open .nav-item-icon {
  color: #5850ec;
}

.nav-item-label {
  flex: 1;
}

.nav-item-arrow {
  color: #98a2b3;
  font-size: 11px;
  display: flex;
  align-items: center;
  transition: transform 0.35s ease, color 0.45s ease;
}

.nav-item:hover .nav-item-arrow,
.nav-item-has-submenu:hover .nav-item-arrow,
.nav-item-has-submenu.open .nav-item-arrow {
  color: #6e62e5;
}

.nav-item.open-submenu .nav-item-arrow {
  transform: rotate(180deg);
}

/* Active Nav Item (Violet/Indigo Accent) */
.nav-item.active {
  background-color: #f5f4ff;
  color: #5850ec;
  font-weight: var(--font-weight-semibold);
}

.nav-item.active .nav-item-icon {
  color: #5850ec;
}

.nav-item.active::before {
  content: '';
  position: absolute;
  left: -12px;
  top: 50%;
  transform: translateY(-50%);
  width: 4px;
  height: 20px;
  background-color: #5850ec;
  border-radius: 0 var(--radius-xs) var(--radius-xs) 0;
}

/* Submenu links */
.nav-submenu {
  display: none;
  flex-direction: column;
  gap: 2px;
  padding-left: 36px;
  margin-top: 2px;
}

.nav-submenu.open {
  display: flex;
}

.submenu-item {
  font-size: 12.5px;
  color: #667085;
  padding: 5px 8px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: background-color 0.45s ease, color 0.45s ease;
}

.submenu-item:hover {
  color: #5850ec;
  background-color: #f5f4ff;
}

/* Bottom Subscription Card Widget */
.sidebar-subscription-box {
  padding: 16px 10px 4px 10px;
  border-top: 1px solid #EFEBFD;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.subscription-text {
  font-size: 12px;
  color: #6e62e5;
  line-height: 1.4;
  font-weight: 500;
}

.btn-upgrade-now {
  height: 38px;
  width: 100%;
  background-color: #5850ec;
  color: #ffffff;
  font-size: 13px;
  font-weight: var(--font-weight-medium);
  border-radius: 12px;
  border: 1px solid #EFEBFD;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: none;
  transition: background-color 0.45s ease, transform 0.45s ease;
}

.btn-upgrade-now:hover {
  background-color: #483fe6;
  box-shadow: none;
  transform: translateY(-1px);
}

.btn-upgrade-now:active {
  transform: translateY(0);
}

/* User Profile Widget at Bottom */
.sidebar-footer {
  padding-top: var(--space-3);
  border-top: 1px solid var(--border-subtle);
}

.user-profile-card {
  display: flex;
  align-items: center;
  gap: var(--space-2-5);
  padding: 8px;
  border-radius: var(--radius-lg);
  cursor: pointer;
  transition: background-color var(--transition-fast);
}

.user-profile-card:hover {
  background-color: var(--neutral-100);
}

.user-avatar-wrapper {
  position: relative;
  width: 36px;
  height: 36px;
}

.user-avatar {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-full);
  object-fit: cover;
  border: 1px solid var(--border-default);
}

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

.user-name-row {
  display: flex;
  align-items: center;
  gap: 4px;
}

.user-name {
  font-size: 13px;
  font-weight: var(--font-weight-semibold);
  color: var(--text-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.user-verified-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--verified-blue);
  font-size: 13px;
  flex-shrink: 0;
}

.user-email {
  font-size: 11px;
  color: var(--text-tertiary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.btn-signout-subtle {
  font-size: 11px;
  color: var(--neutral-500);
  padding: 2px 6px;
  border-radius: var(--radius-xs);
  transition: color var(--transition-fast);
}

.btn-signout-subtle:hover {
  color: var(--error-500);
}

/* --------------------------------------------------------------------------
   5. MAIN CONTENT AREA & VIEW SYSTEM
   -------------------------------------------------------------------------- */
.main-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  background-color: var(--bg-surface);
  overflow-y: auto;
  padding: 0;
  position: relative;
}

.app-view {
  display: none;
  flex-direction: column;
  gap: var(--space-6);
  padding: var(--space-6) var(--space-8) var(--space-8) var(--space-8);
  animation: fadeIn 200ms cubic-bezier(0.16, 1, 0.3, 1);
}

.app-view.active {
  display: flex;
}

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

/* --------------------------------------------------------------------------
   6. HEADER COMPONENT
   -------------------------------------------------------------------------- */
.content-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: var(--space-2);
}

.header-title-group {
  display: flex;
  align-items: center;
  gap: var(--space-4);
}

.header-icon-box {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-default);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--brand-600);
  background-color: var(--brand-50);
  box-shadow: var(--shadow-xs);
  flex-shrink: 0;
}

.header-text-group {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.page-title {
  font-size: var(--font-size-2xl);
  font-weight: var(--font-weight-semibold);
  color: var(--neutral-900);
  letter-spacing: -0.01em;
}

.page-subtitle {
  font-size: var(--font-size-md);
  color: var(--neutral-500);
  font-weight: var(--font-weight-regular);
}

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

/* --------------------------------------------------------------------------
   7. BUTTONS, CHIPS & CONTROLS
   -------------------------------------------------------------------------- */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  height: 40px;
  padding: 0 var(--space-4);
  background-color: var(--brand-600);
  color: var(--text-on-brand);
  font-size: 13.5px;
  font-weight: var(--font-weight-medium);
  border-radius: var(--radius-md);
  box-shadow: none;
  transition: all var(--transition-fast);
  white-space: nowrap;
}

.btn-primary:hover {
  background-color: var(--brand-700);
  box-shadow: none;
}

.btn-primary:active {
  background-color: var(--brand-800);
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  height: 40px;
  padding: 0 var(--space-4);
  background-color: var(--bg-surface);
  border: 1px solid var(--border-default);
  color: var(--neutral-700);
  font-size: 13.5px;
  font-weight: var(--font-weight-medium);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-xs);
  transition: all var(--transition-fast);
  white-space: nowrap;
}

.btn-secondary:hover {
  background-color: var(--neutral-50);
  border-color: var(--neutral-300);
}

.btn-icon-square {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-default);
  background-color: var(--bg-surface);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--neutral-600);
  transition: all var(--transition-fast);
  position: relative;
  box-shadow: var(--shadow-xs);
  flex-shrink: 0;
}

.btn-icon-square:hover {
  background-color: var(--neutral-50);
  border-color: var(--neutral-300);
  color: var(--neutral-800);
}

.notification-dot {
  position: absolute;
  top: 9px;
  right: 10px;
  width: 6px;
  height: 6px;
  border-radius: var(--radius-full);
  background-color: var(--brand-600);
}

/* --------------------------------------------------------------------------
   8. FILTER & SEARCH TOOLBAR
   -------------------------------------------------------------------------- */
.filter-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  margin-bottom: var(--space-4);
  position: relative;
}

.filter-left-controls {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  flex-wrap: wrap;
}

.filter-chip-btn {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  height: 38px;
  padding: 0 14px;
  background-color: var(--bg-surface);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-md);
  font-size: 13px;
  font-weight: var(--font-weight-medium);
  color: var(--neutral-700);
  box-shadow: var(--shadow-xs);
  transition: all var(--transition-fast);
}

.filter-chip-btn:hover {
  background-color: var(--neutral-50);
  border-color: var(--neutral-300);
}

.filter-chip-btn.active-dropdown {
  border-color: var(--neutral-300);
  background-color: var(--neutral-50);
}

.filter-chip-btn .chevron-icon {
  font-size: 11px;
  color: var(--neutral-500);
  margin-left: 2px;
  transition: transform var(--transition-fast);
}

.filter-chip-btn.active-dropdown .chevron-icon {
  transform: rotate(180deg);
}

.filter-right-controls {
  display: flex;
  align-items: center;
  gap: var(--space-3);
}

.search-input-wrapper {
  position: relative;
  display: flex;
  align-items: center;
}

.search-input-icon {
  position: absolute;
  left: 12px;
  color: var(--neutral-400);
  display: flex;
  align-items: center;
  pointer-events: none;
}

.search-input {
  height: 38px;
  width: 230px;
  padding: 0 42px 0 34px;
  border: 1px solid var(--border-default);
  border-radius: var(--radius-md);
  font-size: 13px;
  background-color: var(--bg-surface);
  color: var(--text-primary);
  box-shadow: var(--shadow-xs);
  transition: all var(--transition-fast);
}

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

.search-input:focus {
  outline: none;
  border-color: var(--brand-600);
  box-shadow: 0 0 0 3px var(--brand-100);
  width: 270px;
}

.search-kbd-shortcut {
  position: absolute;
  right: 10px;
  font-family: var(--font-family-base);
  font-size: 11px;
  font-weight: var(--font-weight-medium);
  color: var(--neutral-500);
  background-color: var(--neutral-100);
  border: 1px solid var(--neutral-200);
  border-radius: var(--radius-xs);
  padding: 1px 5px;
  pointer-events: none;
}

/* --------------------------------------------------------------------------
   9. STAT METRIC CARDS (WIREFRAME 02 - DASHBOARD)
   -------------------------------------------------------------------------- */
.stat-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-4);
  margin-bottom: var(--space-5);
}

.stat-card {
  background-color: var(--bg-surface);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-xl);
  padding: var(--space-5);
  box-shadow: var(--shadow-xs);
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  transition: transform var(--transition-fast), box-shadow var(--transition-fast);
}

.stat-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

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

.stat-icon-wrapper {
  width: 38px;
  height: 38px;
  border-radius: var(--radius-md);
  background-color: var(--brand-50);
  color: var(--brand-600);
  display: flex;
  align-items: center;
  justify-content: center;
}

.stat-trend {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  font-size: 11.5px;
  font-weight: var(--font-weight-semibold);
  padding: 2px 7px;
  border-radius: var(--radius-full);
}

.stat-trend.up {
  background-color: var(--success-50);
  color: var(--success-700);
}

.stat-trend.down {
  background-color: var(--error-50);
  color: var(--error-700);
}

.stat-label {
  font-size: 13px;
  color: var(--neutral-500);
  font-weight: var(--font-weight-medium);
}

.stat-value {
  font-size: 26px;
  font-weight: var(--font-weight-bold);
  color: var(--neutral-900);
  letter-spacing: -0.02em;
}

/* Dashboard Two-Column Layout */
.dashboard-grid-main {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: var(--space-5);
}

.card-panel {
  background-color: var(--bg-surface);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-xl);
  padding: var(--space-5);
  box-shadow: var(--shadow-xs);
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}

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

.panel-title {
  font-size: 15px;
  font-weight: var(--font-weight-semibold);
  color: var(--neutral-900);
}

.panel-action-link {
  font-size: 12.5px;
  color: var(--brand-600);
  font-weight: var(--font-weight-medium);
  cursor: pointer;
}

.panel-action-link:hover {
  text-decoration: underline;
}

/* Timeline & Activities */
.timeline-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.timeline-item {
  display: flex;
  align-items: flex-start;
  gap: var(--space-3);
  padding: 8px 10px;
  border-radius: var(--radius-md);
  transition: background-color var(--transition-fast);
}

.timeline-item:hover {
  background-color: var(--neutral-50);
}

.timeline-icon-box {
  width: 32px;
  height: 32px;
  border-radius: var(--radius-full);
  background-color: var(--neutral-100);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--brand-600);
  flex-shrink: 0;
  font-size: 13px;
}

.timeline-content {
  flex: 1;
}

.timeline-title {
  font-size: 13px;
  font-weight: var(--font-weight-semibold);
  color: var(--neutral-900);
}

.timeline-meta {
  font-size: 11.5px;
  color: var(--neutral-500);
  margin-top: 2px;
}

/* Quick Actions Widget */
.quick-actions-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-2-5);
}

.quick-action-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 10px;
  background-color: var(--neutral-50);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-lg);
  font-size: 12.5px;
  font-weight: var(--font-weight-medium);
  color: var(--neutral-700);
  transition: all var(--transition-fast);
  cursor: pointer;
  text-align: center;
}

.quick-action-btn:hover {
  background-color: var(--brand-50);
  border-color: var(--brand-200);
  color: var(--brand-600);
  transform: translateY(-2px);
}

.quick-action-icon {
  width: 28px;
  height: 28px;
  color: var(--brand-600);
}

/* Events Management Screen Metric KPI Cards */
.events-stat-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-bottom: 24px;
}

@media (max-width: 1200px) {
  .events-stat-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 650px) {
  .events-stat-grid {
    grid-template-columns: 1fr;
  }
}

.events-stat-card {
  background: #FFFFFF;
  border: 1px solid #EFEBFD;
  border-radius: 14px;
  padding: 18px 20px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 12px;
  box-shadow: none;
  transition: all 0.45s cubic-bezier(0.2, 0.8, 0.2, 1);
  cursor: pointer;
}

.events-stat-card:hover {
  transform: translateY(-2px);
  border-color: #6336EB;
  background: #FAF9FE;
}

.events-stat-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.events-stat-icon-wrap {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.events-stat-icon-wrap.purple {
  background: #F5F3FF;
  color: #6336EB;
  border: 1px solid #EFEBFD;
}

.events-stat-icon-wrap.green {
  background: #ECFDF3;
  color: #12B76A;
  border: 1px solid #D1FADF;
}

.events-stat-icon-wrap.blue {
  background: #EFF8FF;
  color: #1849D6;
  border: 1px solid #D1E9FF;
}

.events-stat-icon-wrap.amber {
  background: #FFF8EB;
  color: #F79009;
  border: 1px solid #FEF0C7;
}

.events-stat-info {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.events-stat-label {
  font-size: 12.5px;
  color: var(--neutral-500);
  font-weight: 500;
}

.events-stat-value-row {
  display: flex;
  align-items: baseline;
  gap: 6px;
}

.events-stat-value {
  font-size: 24px;
  font-weight: 700;
  color: #131313;
  letter-spacing: -0.02em;
}

.events-stat-unit {
  font-size: 13px;
  font-weight: 500;
  color: rgba(19, 19, 19, 0.40);
}

.events-stat-subtext {
  font-size: 11.5px;
  color: var(--neutral-500);
  margin-top: 2px;
}

/* --------------------------------------------------------------------------
   10. CARD GRIDS (EVENTS, CAMPAIGNS, SCHEMES, ACHIEVEMENTS)
   -------------------------------------------------------------------------- */
.content-grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-5);
}

.content-card {
  background-color: var(--bg-surface);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-xs);
  display: flex;
  flex-direction: column;
  transition: transform var(--transition-fast), box-shadow var(--transition-fast);
}

.content-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

.card-banner-wrapper {
  height: 140px;
  background: linear-gradient(135deg, #1849d6 0%, #3b82f6 100%);
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
}

.card-banner-wrapper.campaign {
  background: linear-gradient(135deg, #027a48 0%, #12b76a 100%);
}

.card-banner-wrapper.scheme {
  background: linear-gradient(135deg, #6941c6 0%, #9e77ed 100%);
}

.card-banner-wrapper.achievement {
  background: linear-gradient(135deg, #b54708 0%, #f79009 100%);
}

.card-badge-top {
  position: absolute;
  top: 12px;
  right: 12px;
}

.card-body {
  padding: var(--space-4) var(--space-5);
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  flex: 1;
}

.card-title {
  font-size: 15px;
  font-weight: var(--font-weight-semibold);
  color: var(--neutral-900);
  line-height: 1.35;
}

.card-description {
  font-size: 12.5px;
  color: var(--neutral-500);
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.card-meta-row {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  font-size: 12px;
  color: var(--neutral-600);
}

.card-meta-item {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.card-footer {
  padding: var(--space-3) var(--space-5);
  border-top: 1px solid var(--border-subtle);
  background-color: var(--neutral-50);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* Progress Bar Component */
.progress-wrapper {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.progress-labels {
  display: flex;
  justify-content: space-between;
  font-size: 11.5px;
  color: var(--neutral-600);
}

.progress-track {
  height: 6px;
  background-color: var(--neutral-200);
  border-radius: var(--radius-full);
  overflow: hidden;
}

.progress-bar {
  height: 100%;
  background-color: var(--brand-600);
  border-radius: var(--radius-full);
  transition: width var(--transition-smooth);
}

/* --------------------------------------------------------------------------
   11. SEGMENTED TABS COMPONENT (CAREERS, ORG CONTENT, PROFILE, SETTINGS)
   -------------------------------------------------------------------------- */
.segmented-tabs-wrapper {
  display: flex;
  align-items: center;
  gap: 4px;
  background-color: var(--neutral-100);
  padding: 4px;
  border-radius: var(--radius-lg);
  width: fit-content;
  margin-bottom: var(--space-4);
}

.segmented-tab-btn {
  padding: 7px 18px;
  border-radius: var(--radius-md);
  font-size: 13px;
  font-weight: var(--font-weight-medium);
  color: var(--neutral-600);
  transition: all var(--transition-fast);
  cursor: pointer;
}

.segmented-tab-btn:hover {
  color: var(--neutral-900);
}

.segmented-tab-btn.active {
  background-color: var(--bg-surface);
  color: var(--brand-600);
  font-weight: var(--font-weight-semibold);
  box-shadow: var(--shadow-xs);
}

/* --------------------------------------------------------------------------
   12. BADGES & LABELS
   -------------------------------------------------------------------------- */
.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 2px 9px;
  border-radius: var(--radius-full);
  font-size: 11.5px;
  font-weight: var(--font-weight-medium);
  white-space: nowrap;
}

.status-badge.upcoming, .status-badge.active, .status-badge.shortlisted {
  background-color: var(--success-50);
  color: var(--success-700);
  border: 1px solid var(--success-100);
}

.status-badge.ongoing, .status-badge.review {
  background-color: var(--brand-50);
  color: var(--brand-700);
  border: 1px solid var(--brand-100);
}

.status-badge.completed, .status-badge.closed, .status-badge.archived {
  background-color: var(--neutral-100);
  color: var(--neutral-600);
  border: 1px solid var(--neutral-200);
}

.status-badge.urgent, .status-badge.rejected {
  background-color: var(--error-50);
  color: var(--error-700);
  border: 1px solid var(--error-100);
}

/* --------------------------------------------------------------------------
   13. DATA TABLES & MATRICES
   -------------------------------------------------------------------------- */
.table-container {
  flex: 1;
  background-color: var(--bg-surface);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-xl);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-xs);
}

.table-scroll {
  flex: 1;
  overflow-x: auto;
  overflow-y: auto;
}

.data-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  text-align: left;
}

.data-table thead {
  position: sticky;
  top: 0;
  z-index: 10;
  background-color: var(--neutral-50);
}

.data-table th {
  padding: 12px 16px;
  font-size: 12px;
  font-weight: var(--font-weight-medium);
  color: var(--neutral-500);
  border-bottom: 1px solid var(--border-default);
  white-space: nowrap;
  user-select: none;
}

.data-table td {
  padding: 12px 16px;
  font-size: 13px;
  color: var(--neutral-700);
  border-bottom: 1px solid var(--border-default);
  vertical-align: middle;
}

.data-table tbody tr:hover {
  background-color: var(--neutral-50);
}

.custom-checkbox {
  appearance: none;
  -webkit-appearance: none;
  width: 17px;
  height: 17px;
  border: 1.5px solid var(--neutral-300);
  border-radius: var(--radius-xs);
  outline: none;
  cursor: pointer;
  vertical-align: middle;
  transition: all var(--transition-fast);
  position: relative;
  background-color: var(--bg-surface);
}

.custom-checkbox:checked {
  background-color: var(--brand-600);
  border-color: var(--brand-600);
}

.custom-checkbox:checked::after {
  content: '';
  position: absolute;
  left: 4.5px;
  top: 2px;
  width: 4px;
  height: 8px;
  border: solid #ffffff;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

/* --------------------------------------------------------------------------
   14. FORMS & INPUTS (WIREFRAMES: CREATE FORMS, PROFILE, SETTINGS)
   -------------------------------------------------------------------------- */
.form-card {
  background-color: var(--bg-surface);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-xl);
  padding: var(--space-6);
  display: flex;
  flex-direction: column;
  gap: var(--space-5);
  box-shadow: var(--shadow-xs);
  max-width: 860px;
}

.form-row-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-4);
}

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

.form-label {
  font-size: 13px;
  font-weight: var(--font-weight-medium);
  color: var(--neutral-800);
}

.form-input, .form-select, .form-textarea {
  padding: 10px 14px;
  border: 1px solid var(--border-default);
  border-radius: var(--radius-md);
  font-size: 13.5px;
  color: var(--text-primary);
  background-color: var(--bg-surface);
  outline: none;
  transition: all var(--transition-fast);
}

.form-input:focus, .form-select:focus, .form-textarea:focus {
  border-color: var(--brand-600);
  box-shadow: 0 0 0 3px var(--brand-100);
}

.form-textarea {
  min-height: 96px;
  resize: vertical;
}

.file-dropzone {
  border: 1.5px dashed var(--neutral-300);
  border-radius: var(--radius-lg);
  padding: var(--space-5);
  text-align: center;
  background-color: var(--neutral-50);
  cursor: pointer;
  transition: all var(--transition-fast);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.file-dropzone:hover {
  border-color: var(--brand-600);
  background-color: var(--brand-50);
}

.form-actions-row {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: var(--space-3);
  padding-top: var(--space-4);
  border-top: 1px solid var(--border-subtle);
}

/* --------------------------------------------------------------------------
   15. MODAL & DRAWER SYSTEM
   -------------------------------------------------------------------------- */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background-color: rgba(16, 24, 40, 0.5);
  backdrop-filter: blur(4px);
  z-index: 100;
  display: none;
  align-items: center;
  justify-content: center;
  padding: var(--space-4);
  animation: fadeIn 150ms ease;
}

.modal-backdrop.open {
  display: flex;
}

.modal-dialog {
  background-color: var(--bg-surface);
  border-radius: var(--radius-2xl);
  box-shadow: var(--shadow-xl);
  width: 100%;
  max-width: 680px;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--border-default);
  animation: slideUp 200ms cubic-bezier(0.16, 1, 0.3, 1);
}

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

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

.modal-title {
  font-size: 16px;
  font-weight: var(--font-weight-semibold);
  color: var(--neutral-900);
}

.modal-close-btn {
  font-size: 22px;
  color: var(--neutral-400);
  cursor: pointer;
  padding: 4px;
}

.modal-close-btn:hover {
  color: var(--neutral-800);
}

.modal-body {
  padding: var(--space-6);
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}

.modal-footer {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: var(--space-3);
  padding: var(--space-4) var(--space-6);
  border-top: 1px solid var(--border-default);
  background-color: var(--neutral-50);
}

/* Detail Drawer (Wireframe 05 - Event Details) */
.details-drawer {
  position: fixed;
  top: 0;
  right: -600px;
  width: 580px;
  height: 100vh;
  background-color: var(--bg-surface);
  border-left: 1px solid var(--border-default);
  box-shadow: var(--shadow-xl);
  z-index: 105;
  display: flex;
  flex-direction: column;
  transition: right var(--transition-smooth);
}

.details-drawer.open {
  right: 0;
}

.drawer-header {
  padding: var(--space-5) var(--space-6);
  border-bottom: 1px solid var(--border-default);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.drawer-body {
  flex: 1;
  overflow-y: auto;
  padding: var(--space-6);
  display: flex;
  flex-direction: column;
  gap: var(--space-5);
}

/* --------------------------------------------------------------------------
   16. LOGIN OVERLAY (WIREFRAME 01 - LOGIN)
   -------------------------------------------------------------------------- */
.login-screen {
  position: absolute;
  inset: 0;
  background: #f8f9fa;
  z-index: 200;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.login-screen.open {
  display: flex;
}

.login-card {
  width: 100%;
  max-width: 420px;
  background: var(--bg-surface);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-2xl);
  box-shadow: var(--shadow-xl);
  padding: var(--space-8);
  display: flex;
  flex-direction: column;
  gap: var(--space-5);
  text-align: center;
}

.login-logo {
  width: 54px;
  height: 54px;
  border-radius: var(--radius-lg);
  background: var(--brand-50);
  border: 1px solid var(--brand-100);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto;
  color: var(--brand-600);
}

.login-title {
  font-size: 20px;
  font-weight: var(--font-weight-bold);
  color: var(--neutral-900);
}

.login-desc {
  font-size: 13px;
  color: var(--neutral-500);
}

/* --------------------------------------------------------------------------
   17. TOAST NOTIFICATION COMPONENT
   -------------------------------------------------------------------------- */
.toast-container {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 1000;
  display: flex;
  flex-direction: column;
  gap: 10px;
  pointer-events: none;
}

.toast {
  pointer-events: auto;
  background-color: var(--neutral-900);
  color: #ffffff;
  padding: 12px 18px;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  font-size: 13px;
  font-weight: var(--font-weight-medium);
  display: flex;
  align-items: center;
  gap: 10px;
  animation: toastIn 200ms cubic-bezier(0.16, 1, 0.3, 1);
  min-width: 280px;
}

.toast.success {
  background-color: #027a48;
}

.toast.info {
  background-color: var(--brand-600);
}

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

/* --------------------------------------------------------------------------
   18. DESIGN SYSTEM INSPECTOR DRAWER
   -------------------------------------------------------------------------- */
.ds-inspector-toggle {
  position: fixed;
  bottom: 20px;
  right: 24px;
  background-color: var(--neutral-900);
  color: #ffffff;
  padding: 8px 14px;
  border-radius: var(--radius-full);
  font-size: 12px;
  font-weight: var(--font-weight-medium);
  display: flex;
  align-items: center;
  gap: 8px;
  box-shadow: var(--shadow-lg);
  z-index: 90;
  cursor: pointer;
  transition: transform var(--transition-fast), background-color var(--transition-fast);
}

.ds-inspector-toggle:hover {
  transform: translateY(-2px);
  background-color: #000000;
}

.ds-drawer {
  position: fixed;
  top: 0;
  right: -420px;
  width: 420px;
  height: 100vh;
  background-color: var(--bg-surface);
  border-left: 1px solid var(--border-default);
  box-shadow: var(--shadow-xl);
  z-index: 1001;
  display: flex;
  flex-direction: column;
  transition: right var(--transition-smooth);
}

.ds-drawer.open {
  right: 0;
}

.ds-drawer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-4) var(--space-5);
  border-bottom: 1px solid var(--border-default);
}

.ds-drawer-title {
  font-size: 15px;
  font-weight: var(--font-weight-bold);
  color: var(--neutral-900);
}

.ds-drawer-close {
  font-size: 20px;
  color: var(--neutral-500);
  padding: 4px;
}

.ds-drawer-content {
  flex: 1;
  overflow-y: auto;
  padding: var(--space-5);
  display: flex;
  flex-direction: column;
  gap: var(--space-6);
}

.ds-section-title {
  font-size: 12px;
  font-weight: var(--font-weight-bold);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--neutral-500);
  margin-bottom: var(--space-3);
}

.token-swatch-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
}

.token-swatch-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 8px;
  background-color: var(--neutral-50);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-md);
  font-size: 11px;
}

.swatch-color-box {
  width: 22px;
  height: 22px;
  border-radius: var(--radius-xs);
  border: 1px solid rgba(0, 0, 0, 0.1);
  flex-shrink: 0;
}

.token-code-block {
  background-color: var(--neutral-900);
  color: #f1f5f9;
  padding: 12px;
  border-radius: var(--radius-md);
  font-family: var(--font-family-mono);
  font-size: 11px;
  line-height: 1.6;
  overflow-x: auto;
}

/* --------------------------------------------------------------------------
   19. RESPONSIVE / MEDIA QUERIES
   -------------------------------------------------------------------------- */
@media (max-width: 1200px) {
  .stat-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .content-grid-3 {
    grid-template-columns: repeat(2, 1fr);
  }
  .dashboard-grid-main {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 900px) {
  .desktop-viewport {
    padding: 0;
  }
  .desktop-app-frame {
    height: 100vh;
    border-radius: 0;
  }
  .sidebar {
    width: 220px;
    min-width: 220px;
  }
  .content-grid-3 {
    grid-template-columns: 1fr;
  }
}

/* ==========================================================================
   20. KNOTNEX FIGMA DESIGN SYSTEM COMPONENTS (USER SPEC)
   ========================================================================== */

/* Dropdown Hover & Click Submenu for Events, Careers, Schemes */
.nav-item-has-submenu {
  position: relative;
}

.nav-item-has-submenu:hover .nav-submenu-list,
.nav-item-has-submenu.open .nav-submenu-list {
  display: flex;
}

.nav-submenu-list {
  display: none;
  flex-direction: column;
  gap: 3px;
  padding: 4px 0 6px 36px;
  animation: fadeIn 120ms ease;
}

.submenu-link {
  font-size: 13px;
  color: #505050;
  padding: 6px 10px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: background-color 0.45s ease, color 0.45s ease, padding-left 0.35s ease;
  display: flex;
  align-items: center;
  gap: 6px;
}

.submenu-link:hover {
  color: #6336EB;
  background-color: #f5f4ff;
  padding-left: 14px;
}

.submenu-link.active {
  color: #6336EB;
  font-weight: 600;
  background-color: #f5f4ff;
}

/* Knotnex Top Header Bar (Constantly Fixed at Top) */
.knotnex-header {
  height: 80px;
  min-height: 80px;
  background-color: rgba(254, 254, 254, 0.98);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: none;
  border-bottom: none;
  outline: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 var(--space-8);
  position: sticky;
  top: 0;
  left: 0;
  right: 0;
  width: 100%;
  flex-shrink: 0;
  z-index: 100;
  box-shadow: none;
}

.knotnex-header-left {
  display: flex;
  align-items: center;
  gap: var(--space-6);
}

.knotnex-page-heading {
  font-size: 24px;
  font-weight: 600;
  color: #131313;
  line-height: 32px;
}

.knotnex-search-box {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  border-radius: 12px;
  outline: 1px solid #EFEBFD;
  background-color: #FFFFFF;
  width: 280px;
  transition: all var(--transition-fast);
}

.knotnex-search-box:focus-within {
  outline-color: #6336EB;
  box-shadow: none;
  width: 320px;
}

.knotnex-search-box input {
  border: none;
  outline: none;
  font-size: 14px;
  color: #595959;
  width: 100%;
  background: transparent;
}

.knotnex-header-right {
  display: flex;
  align-items: center;
  gap: 12px;
}

.pill-btn-lang {
  height: 40px;
  padding: 0 16px;
  background: #FFFFFF;
  border-radius: 999px;
  border: 1px solid #EFEBFD;
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 600;
  color: #131313;
  cursor: pointer;
}

.circle-action-btn {
  width: 40px;
  height: 40px;
  background: #FFFFFF;
  border-radius: 999px;
  border: 1px solid #EFEBFD;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #131313;
  position: relative;
  cursor: pointer;
  box-shadow: none;
  transition: all var(--transition-fast);
}

.circle-action-btn:hover {
  border-color: #6336EB;
  background: #FDFDFD;
}

.circle-dot-purple {
  position: absolute;
  top: 3px;
  right: 4px;
  width: 9px;
  height: 9px;
  background-color: #6336EB;
  border-radius: 9999px;
  border: 1.5px solid white;
}

.user-profile-header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-left: 8px;
  cursor: pointer;
  transition: opacity var(--transition-fast);
}

.user-profile-header:hover {
  opacity: 0.85;
}

.user-avatar-header-wrap {
  position: relative;
  width: 40px;
  height: 40px;
}

.user-avatar-header {
  width: 40px;
  height: 40px;
  border-radius: 9999px;
  object-fit: cover;
  border: 1px solid white;
  outline: 1px solid #EFEBFD;
  box-shadow: none;
}

.user-online-dot-header {
  width: 10px;
  height: 10px;
  position: absolute;
  top: 0;
  right: 0;
  background-color: #6336EB;
  border-radius: 9999px;
  border: 1px solid white;
}

.user-info-header {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.user-name-header {
  color: #000000;
  font-size: 15px;
  font-weight: 500;
  line-height: 1.2;
}

.user-email-header {
  color: #6336EB;
  font-size: 12px;
  font-weight: 400;
}

/* ==========================================================================
   HOME VIEW: PROFILE AREA (Replacing Stat Cards)
   ========================================================================== */
/* ==========================================================================
   HOME VIEW: INTERACTIVE ANIMATIVE HIGHLIGHTS & SUMMIT BANNER (USER SPEC)
   ========================================================================== */
.home-interactive-banner {
  background: linear-gradient(135deg, #6336EB 0%, #7042F3 40%, #5850EC 75%, #4C3FE2 100%);
  border-radius: 20px;
  border: 1px solid #EFEBFD;
  position: relative;
  overflow: hidden;
  margin-bottom: 24px;
  color: #FFFFFF;
  min-height: 220px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 32px 36px 20px 36px;
  box-shadow: none;
  transition: transform 0.45s ease;
}

.home-interactive-banner:hover {
  transform: translateY(-2px);
}

/* Subtle background ambient mesh glow */
.banner-ambient-glow {
  position: absolute;
  top: -40%;
  right: -10%;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(167, 139, 250, 0.35) 0%, rgba(99, 54, 235, 0) 70%);
  border-radius: 50%;
  pointer-events: none;
  animation: pulseGlow 8s ease-in-out infinite alternate;
}

@keyframes pulseGlow {
  0% { transform: scale(0.9) translate(0, 0); opacity: 0.6; }
  100% { transform: scale(1.15) translate(-20px, 20px); opacity: 0.95; }
}

/* Subtle Hexagon geometric pattern */
.banner-hex-pattern {
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(255, 255, 255, 0.12) 1.5px, transparent 1.5px);
  background-size: 24px 24px;
  opacity: 0.45;
  pointer-events: none;
}

/* Slides Container */
.banner-slides-wrapper {
  position: relative;
  width: 100%;
  min-height: 140px;
}

.banner-slide {
  display: none;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  width: 100%;
  opacity: 0;
  transform: translateX(12px);
  transition: opacity 0.45s ease, transform 0.45s ease;
}

.banner-slide.active {
  display: flex;
  opacity: 1;
  transform: translateX(0);
}

/* Left Content */
.banner-left-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-width: 640px;
  z-index: 2;
}

.banner-pill-tag {
  display: inline-flex;
  align-items: center;
  align-self: flex-start;
  font-size: 11.5px;
  font-weight: 600;
  color: #FFFFFF;
  background: rgba(255, 255, 255, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.3);
  padding: 3px 10px;
  border-radius: 999px;
  backdrop-filter: blur(10px);
  letter-spacing: 0.02em;
}

.banner-headline {
  font-size: 26px;
  font-weight: 700;
  color: #FFFFFF;
  line-height: 1.25;
  letter-spacing: -0.02em;
}

.banner-subtext {
  font-size: 13.5px;
  color: rgba(255, 255, 255, 0.88);
  line-height: 1.5;
  margin: 0;
}

.banner-cta-group {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 6px;
}

.btn-banner-white {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 42px;
  padding: 0 20px;
  background: #FFFFFF;
  color: #131313;
  border-radius: 12px;
  font-size: 13.5px;
  font-weight: 600;
  border: none;
  cursor: pointer;
  box-shadow: none;
  transition: background-color 0.45s ease, transform 0.45s ease, color 0.45s ease;
}

.btn-banner-white:hover {
  background-color: #F4F3FF;
  color: #6336EB;
  transform: translateY(-2px);
}

.btn-banner-ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 42px;
  padding: 0 18px;
  background: rgba(255, 255, 255, 0.15);
  color: #FFFFFF;
  border-radius: 12px;
  font-size: 13px;
  font-weight: 600;
  border: 1px solid rgba(255, 255, 255, 0.35);
  cursor: pointer;
  backdrop-filter: blur(10px);
  transition: background-color 0.45s ease, transform 0.45s ease;
}

.btn-banner-ghost:hover {
  background: rgba(255, 255, 255, 0.28);
  transform: translateY(-1px);
}

/* Right Visual: Overlapping Floating Media Cluster (matching user image) */
.banner-right-visual {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  z-index: 2;
  padding-right: 12px;
}

.floating-media-cluster {
  display: flex;
  align-items: center;
  position: relative;
}

.media-bubble {
  border-radius: 50%;
  overflow: hidden;
  border: 3px solid rgba(255, 255, 255, 0.95);
  background-color: #1e1b4b;
  position: relative;
  cursor: pointer;
  transition: transform 0.45s ease, z-index 0.45s ease;
  flex-shrink: 0;
}

.media-bubble img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.media-bubble.bubble-1 {
  width: 60px;
  height: 60px;
  z-index: 1;
  animation: gentleFloat1 4s ease-in-out infinite alternate;
}

.media-bubble.bubble-2.active-center {
  width: 96px;
  height: 96px;
  margin-left: -20px;
  z-index: 4;
  border: 4px solid #FFFFFF;
  animation: gentleFloatCenter 3.5s ease-in-out infinite alternate;
}

.media-bubble.bubble-3 {
  width: 64px;
  height: 64px;
  margin-left: -20px;
  z-index: 2;
  animation: gentleFloat2 4.2s ease-in-out infinite alternate;
}

.media-bubble.bubble-4 {
  width: 50px;
  height: 50px;
  margin-left: -16px;
  z-index: 1;
  animation: gentleFloat3 3.8s ease-in-out infinite alternate;
}

.media-bubble:hover {
  transform: scale(1.12) !important;
  z-index: 10;
}

/* Floating keyframe micro-animations */
@keyframes gentleFloat1 {
  0% { transform: translateY(3px) rotate(-2deg); }
  100% { transform: translateY(-4px) rotate(2deg); }
}

@keyframes gentleFloatCenter {
  0% { transform: translateY(0px) scale(1); }
  100% { transform: translateY(-7px) scale(1.04); }
}

@keyframes gentleFloat2 {
  0% { transform: translateY(-3px) rotate(2deg); }
  100% { transform: translateY(4px) rotate(-2deg); }
}

@keyframes gentleFloat3 {
  0% { transform: translateY(2px) scale(0.96); }
  100% { transform: translateY(-5px) scale(1.02); }
}

.bubble-live-badge {
  position: absolute;
  bottom: 4px;
  left: 50%;
  transform: translateX(-50%);
  background: #FF0055;
  color: #FFFFFF;
  font-size: 9px;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 999px;
  letter-spacing: 0.05em;
  border: 1px solid white;
}

.bubble-play-icon {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: rgba(0, 0, 0, 0.45);
  color: #FFFFFF;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 9px;
}

/* Dots Indicator Underneath */
.banner-dots-cluster {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 14px;
  z-index: 3;
}

.banner-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.35);
  cursor: pointer;
  transition: all 0.45s ease;
}

.banner-dot.active {
  width: 24px;
  border-radius: 999px;
  background: #FFFFFF;
}

.banner-dot:hover {
  background: rgba(255, 255, 255, 0.85);
}

@media (max-width: 960px) {
  .home-interactive-banner {
    padding: 24px 20px 16px 20px;
  }
  .banner-slide {
    flex-direction: column;
    align-items: flex-start;
  }
  .banner-right-visual {
    align-self: center;
    margin-top: 12px;
  }
}

/* Glassmorphism Stat Cards (Gross Revenue, Avg Order Value, Total Orders) */
.glass-stat-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-bottom: 24px;
}

.glass-stat-card {
  background: rgba(255, 255, 255, 0.67);
  overflow: hidden;
  border-radius: 12px;
  outline: 1px solid #EFEBFD;
  outline-offset: -1px;
  backdrop-filter: blur(50px);
  display: flex;
  flex-direction: column;
  transition: transform var(--transition-fast);
}

.glass-stat-card:hover {
  transform: translateY(-2px);
  box-shadow: none;
}

.glass-stat-content {
  padding: 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.glass-stat-title {
  color: #131313;
  font-size: 12px;
  font-weight: 400;
  line-height: 18px;
}

.glass-stat-value-group {
  display: flex;
  align-items: baseline;
  gap: 1px;
  margin-top: 4px;
}

.glass-stat-value {
  color: #131313;
  font-size: 24px;
  font-weight: 500;
  line-height: 32px;
}

.glass-stat-cents {
  color: rgba(19, 19, 19, 0.30);
  font-size: 24px;
  font-weight: 500;
  line-height: 32px;
}

.badge-trend-pos {
  padding: 6px 10px;
  background: rgba(24, 158, 9, 0.08);
  border-radius: 99px;
  color: #189E09;
  font-size: 12px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.badge-trend-neg {
  padding: 6px 10px;
  background: rgba(158, 9, 9, 0.08);
  border-radius: 99px;
  color: #9E0909;
  font-size: 12px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.glass-stat-footer {
  padding: 12px 16px;
  background: rgba(161.60, 161.60, 161.60, 0.05);
  color: rgba(19, 19, 19, 0.50);
  font-size: 12px;
  font-weight: 400;
  line-height: 18px;
}

/* Two-column layout from user Figma snippet */
.figma-dashboard-grid {
  display: grid;
  grid-template-columns: 2.1fr 1fr;
  gap: 24px;
}

.figma-recent-activities-card {
  background: rgba(255, 255, 255, 0.67);
  border-radius: 12px;
  outline: 1px solid #EFEBFD;
  outline-offset: -1px;
  backdrop-filter: blur(50px);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.recent-act-top-bar {
  padding: 16px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  border-bottom: 1px solid #EFEBFD;
}

.recent-act-items-count {
  display: flex;
  align-items: center;
  gap: 12px;
}

.count-big {
  color: #131313;
  font-size: 18px;
  font-weight: 600;
}

.count-unit {
  color: rgba(19, 19, 19, 0.40);
  font-size: 15px;
  font-weight: 500;
}

.recent-act-type-filters {
  display: flex;
  align-items: center;
  gap: 6px;
  background: #F8F9FA;
  padding: 4px;
  border-radius: 999px;
  border: 1px solid #EFEBFD;
}

.recent-act-filter-btn {
  padding: 5px 12px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 500;
  color: #667085;
  background: transparent;
  border: none;
  cursor: pointer;
  transition: all 0.45s ease;
}

.recent-act-filter-btn:hover {
  color: #131313;
}

.recent-act-filter-btn.active {
  background: #FFFFFF;
  color: #6336EB;
  font-weight: 600;
  border: 1px solid #EFEBFD;
}

.btn-see-more-pill {
  height: 38px;
  padding: 0 16px;
  background: white;
  border-radius: 999px;
  border: 1px solid #EFEBFD;
  font-size: 12px;
  font-weight: 500;
  color: #131313;
  cursor: pointer;
  box-shadow: none;
  transition: all var(--transition-fast);
}

.btn-see-more-pill:hover {
  background: #FDFDFD;
  border-color: #6336EB;
  color: #6336EB;
}

.recent-act-filter-row {
  padding: 12px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  background: #FFFFFF;
  border-bottom: 1px solid #EFEBFD;
}

.pill-search-input {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 18px;
  border-radius: 99px;
  background: white;
  border: 1px solid #EFEBFD;
  flex: 1;
  max-width: 360px;
}

.pill-search-input input {
  border: none;
  outline: none;
  font-size: 12px;
  color: #131313;
  width: 100%;
}

/* Activity Type Badges */
.act-type-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 9px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.01em;
  white-space: nowrap;
}

.act-type-badge.event {
  background-color: #F5F3FF;
  color: #6336EB;
  border: 1px solid #EFEBFD;
}

.act-type-badge.job {
  background-color: #EFF8FF;
  color: #1849D6;
  border: 1px solid #D1E9FF;
}

.act-type-badge.scheme {
  background-color: #ECFDF3;
  color: #027A48;
  border: 1px solid #D1FADF;
}

.act-item-container {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  min-width: 0;
}

.act-icon-box {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  flex-shrink: 0;
  border: 1px solid #EFEBFD;
}

.act-text-wrap {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
  flex: 1;
  overflow: hidden;
}

.act-title-text {
  font-weight: 600;
  color: #131313;
  font-size: 13px;
  line-height: 1.35;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
}

.act-sub-text {
  font-size: 11.5px;
  color: var(--neutral-500);
  font-weight: 400;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
}

.act-icon-box.event {
  background: #f0ecfd;
  color: #6336EB;
}

.act-icon-box.job {
  background: #e3effe;
  color: #1849D6;
}

.act-icon-box.scheme {
  background: #e2f9ec;
  color: #027A48;
}

/* Interactive Table with Switch Toggles */
.recent-products-table {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
}

.recent-products-table th {
  background: #FFFFFF;
  padding: 12px 18px;
  font-size: 11.5px;
  font-weight: 600;
  color: rgba(19, 19, 19, 0.50);
  text-align: left;
  border-bottom: 1px solid #EFEBFD;
  white-space: nowrap;
}

.recent-products-table td {
  padding: 12px 18px;
  font-size: 12.5px;
  font-weight: 500;
  color: #131313;
  vertical-align: middle;
  border-bottom: 1px solid #F2EFFD;
  white-space: nowrap;
}

.recent-products-table tr.striped {
  background: rgba(248, 246, 255, 0.4);
}

.recent-products-table tr:hover {
  background: #F0EDFD;
}

.recent-products-table tr.selected-row {
  background: #E6E0FF !important;
}
.recent-products-table tr.selected-row td:first-child {
  box-shadow: inset 3px 0 0 0 #6336EB;
}

/* Blue Switch Toggle (#1A89FF) from User Spec */
.switch-toggle-blue {
  width: 38px;
  height: 22px;
  background: #1A89FF;
  border-radius: 99px;
  padding: 3px;
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  cursor: pointer;
  transition: background-color var(--transition-fast);
}

.switch-toggle-blue.inactive {
  background: #D0D5DD;
  justify-content: flex-start;
}

.switch-circle-white {
  width: 16px;
  height: 16px;
  background: white;
  border-radius: 999px;
  border: 1px solid #EFEBFD;
  box-shadow: none;
}

/* ==========================================================================
   HOME DASHBOARD: LINEAR QUICK ACTIONS & FULL-WIDTH RECENT ACTIVITIES
   ========================================================================== */
.home-quick-actions-section {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-bottom: 28px;
  width: 100%;
}

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

.home-section-title {
  font-size: 20px;
  font-weight: 700;
  color: #131313;
  line-height: 1.25;
  letter-spacing: -0.01em;
}

.home-section-subtitle {
  font-size: 12.5px;
  color: var(--neutral-500);
  font-weight: 500;
}

/* Linear Horizontal Grid for Quick Actions */
.qa-horizontal-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  width: 100%;
}

@media (max-width: 1100px) {
  .qa-horizontal-grid {
    grid-template-columns: 1fr;
  }
}

.qa-linear-card {
  background: #FFFFFF;
  border: 1px solid #EFEBFD;
  border-radius: 14px;
  padding: 16px 18px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 14px;
  box-shadow: none;
  cursor: pointer;
  transition: all 0.45s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.qa-linear-card:hover {
  transform: translateY(-2px);
  background: #FAF9FE;
}

.qa-linear-card.event-card:hover {
  border-color: #6336EB;
}

.qa-linear-card.career-card:hover {
  border-color: #1849D6;
}

.qa-linear-card.scheme-card:hover {
  border-color: #027A48;
}

.qa-linear-main {
  display: flex;
  align-items: flex-start;
  gap: 14px;
}

.qa-linear-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.qa-linear-icon.event {
  background: #F5F3FF;
  color: #6336EB;
  border: 1px solid #EFEBFD;
}

.qa-linear-icon.career {
  background: #EFF8FF;
  color: #1849D6;
  border: 1px solid #D1E9FF;
}

.qa-linear-icon.scheme {
  background: #ECFDF3;
  color: #027A48;
  border: 1px solid #D1FADF;
}

.qa-linear-info {
  flex: 1;
}

.qa-linear-title {
  font-size: 15px;
  font-weight: 600;
  color: #131313;
}

.qa-linear-desc {
  font-size: 12px;
  color: var(--neutral-500);
  margin-top: 3px;
  line-height: 1.4;
}

.qa-linear-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding-top: 6px;
  border-top: 1px solid #F5F3FD;
}

.btn-qa-action-launch {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 32px;
  padding: 0 14px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: all 0.45s ease;
  white-space: nowrap;
}

.btn-qa-action-launch.event {
  background: #6336EB;
  color: #FFFFFF;
}

.btn-qa-action-launch.event:hover {
  background: #542CC4;
}

.btn-qa-action-launch.career {
  background: #1849D6;
  color: #FFFFFF;
}

.btn-qa-action-launch.career:hover {
  background: #1238A8;
}

.btn-qa-action-launch.scheme {
  background: #027A48;
  color: #FFFFFF;
}

.btn-qa-action-launch.scheme:hover {
  background: #025E37;
}

.qa-options-chips {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.qa-chip-pill {
  font-size: 11px;
  font-weight: 500;
  color: #667085;
  background: #FFFFFF;
  border: 1px solid #EFEBFD;
  padding: 3px 9px;
  border-radius: 999px;
  cursor: pointer;
  transition: all 0.35s ease;
}

.qa-chip-pill:hover {
  color: #6336EB;
  border-color: #6336EB;
  background: #F5F3FF;
}

.qa-linear-card.career-card .qa-chip-pill:hover {
  color: #1849D6;
  border-color: #1849D6;
  background: #EFF8FF;
}

.qa-linear-card.scheme-card .qa-chip-pill:hover {
  color: #027A48;
  border-color: #027A48;
  background: #ECFDF3;
}

/* Full Width Recent Activities Section */
.home-recent-activities-section {
  display: flex;
  flex-direction: column;
  gap: 14px;
  width: 100%;
}

.figma-recent-activities-card.full-screen-width {
  width: 100%;
}

/* ==========================================================================
   21. TICKETS & ACCESS PASSES VIEW STYLING
   ========================================================================== */
.ticket-id-badge {
  font-family: var(--font-family-mono);
  font-size: 12px;
  font-weight: 600;
  color: #6336EB;
  background-color: #f5f3ff;
  padding: 3px 8px;
  border-radius: var(--radius-sm);
  border: 1px solid #EFEBFD;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.ticket-attendee-cell {
  display: flex;
  align-items: center;
  gap: 10px;
}

.ticket-attendee-avatar {
  width: 32px;
  height: 32px;
  border-radius: 999px;
  object-fit: cover;
  border: 1px solid #EFEBFD;
  background-color: #f0efff;
}

.ticket-attendee-name {
  font-size: 13.5px;
  font-weight: 600;
  color: var(--neutral-900);
}

.ticket-attendee-email {
  font-size: 11.5px;
  color: var(--neutral-500);
}

.ticket-tier-chip {
  display: inline-flex;
  align-items: center;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 11.5px;
  font-weight: 600;
  border: 1px solid #EFEBFD;
}

.ticket-tier-chip.vip {
  background: #fdf4ff;
  color: #c026d3;
  border-color: #f5d0fe;
}

.ticket-tier-chip.speaker {
  background: #eff6ff;
  color: #2563eb;
  border-color: #bfdbfe;
}

.ticket-tier-chip.general {
  background: #f8fafc;
  color: #475569;
  border-color: #EFEBFD;
}

.ticket-tier-chip.support {
  background: #fffbeb;
  color: #d97706;
  border-color: #fde68a;
}

/* Digital Ticket Pass Card Preview in Modal */
.digital-ticket-card {
  background: #ffffff;
  border: 1px solid #EFEBFD;
  border-radius: 16px;
  overflow: hidden;
  position: relative;
}

.ticket-card-header-bar {
  background: linear-gradient(135deg, #6336EB 0%, #4338CA 100%);
  color: #ffffff;
  padding: 16px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.ticket-card-org-name {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  opacity: 0.85;
}

.ticket-card-event-name {
  font-size: 16px;
  font-weight: 700;
  margin-top: 2px;
}

.ticket-card-body-section {
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.ticket-qr-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 16px;
  background-color: #fafafa;
  border-radius: 12px;
  border: 1px dashed #EFEBFD;
}

.ticket-qr-svg {
  width: 140px;
  height: 140px;
  display: block;
}

.ticket-barcode-text {
  font-family: var(--font-family-mono);
  font-size: 12px;
  font-weight: 600;
  color: #475467;
  letter-spacing: 0.12em;
  margin-top: 8px;
}

.ticket-details-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

.ticket-field-label {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  color: #667085;
  letter-spacing: 0.03em;
}

.ticket-field-value {
  font-size: 13.5px;
  font-weight: 600;
  color: #131313;
  margin-top: 2px;
}

/* ==========================================================================
   22. HELP CENTER & KNOWLEDGE BASE VIEW STYLING
   ========================================================================== */
.help-hero-banner {
  background: linear-gradient(135deg, #f5f3ff 0%, #eef2ff 50%, #faf5ff 100%);
  border: 1px solid #EFEBFD;
  border-radius: 16px;
  padding: 36px 32px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.help-hero-content {
  max-width: 680px;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.help-hero-title {
  font-size: 24px;
  font-weight: 700;
  color: #131313;
  letter-spacing: -0.02em;
}

.help-hero-subtitle {
  font-size: 14px;
  color: #475467;
  line-height: 1.5;
}

.help-hero-search-wrapper {
  display: flex;
  align-items: center;
  gap: 10px;
  background: #ffffff;
  border: 1px solid #EFEBFD;
  border-radius: 12px;
  padding: 6px 6px 6px 16px;
  width: 100%;
  margin-top: 6px;
  transition: border-color var(--transition-fast);
}

.help-hero-search-wrapper:focus-within {
  border-color: #6336EB;
}

.help-hero-search-input {
  flex: 1;
  border: none;
  outline: none;
  font-size: 14px;
  color: #131313;
  background: transparent;
}

.help-hero-search-btn {
  background-color: #6336EB;
  color: #ffffff;
  border: none;
  padding: 10px 20px;
  border-radius: 8px;
  font-size: 13.5px;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.45s ease;
}

.help-hero-search-btn:hover {
  background-color: #4f28c4;
}

.help-hero-tags {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 6px;
}

.help-tag-label {
  font-size: 12px;
  color: #667085;
}

.help-tag-pill {
  font-size: 12px;
  font-weight: 500;
  color: #6336EB;
  background: #ffffff;
  border: 1px solid #EFEBFD;
  padding: 4px 10px;
  border-radius: 999px;
  cursor: pointer;
  transition: all 0.45s ease;
}

.help-tag-pill:hover {
  background: #f5f3ff;
  border-color: #6336EB;
}

/* Category Grid */
.help-category-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

@media (max-width: 1100px) {
  .help-category-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 700px) {
  .help-category-grid {
    grid-template-columns: 1fr;
  }
}

.help-category-card {
  background: #ffffff;
  border: 1px solid #EFEBFD;
  border-radius: 14px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  cursor: pointer;
  transition: border-color 0.45s ease, transform 0.45s ease;
}

.help-category-card:hover {
  border-color: #6336EB;
  transform: translateY(-2px);
}

.help-category-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.help-category-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: #f5f3ff;
  color: #6336EB;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #EFEBFD;
}

.help-category-count {
  font-size: 11.5px;
  font-weight: 600;
  color: #667085;
  background: #fafafa;
  border: 1px solid #EFEBFD;
  padding: 2px 8px;
  border-radius: 999px;
}

.help-category-title {
  font-size: 15px;
  font-weight: 600;
  color: #131313;
}

.help-category-desc {
  font-size: 12.5px;
  color: #667085;
  line-height: 1.45;
}

/* Articles List */
.help-articles-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.help-article-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 14px;
  border-radius: 10px;
  border: 1px solid #EFEBFD;
  background: #ffffff;
  cursor: pointer;
  transition: all 0.45s ease;
}

.help-article-item:hover {
  background: #faf9fe;
  border-color: #6336EB;
  padding-left: 18px;
}

.help-article-left {
  display: flex;
  align-items: center;
  gap: 12px;
}

.help-article-icon {
  color: #6336EB;
  display: flex;
  align-items: center;
}

.help-article-title {
  font-size: 13.5px;
  font-weight: 600;
  color: #131313;
}

.help-article-meta {
  font-size: 11.5px;
  color: #667085;
  margin-top: 2px;
}

.help-article-badge {
  font-size: 11px;
  font-weight: 600;
  color: #12B76A;
  background: #ECFDF3;
  padding: 2px 8px;
  border-radius: 999px;
  border: 1px solid #D1FADF;
  white-space: nowrap;
}

/* Support Channels List */
.support-channels-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.support-channel-card {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px;
  border-radius: 12px;
  border: 1px solid #EFEBFD;
  background: #ffffff;
}

.support-channel-icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.support-channel-icon.live-chat {
  background: #ECFDF3;
  color: #12B76A;
  border: 1px solid #D1FADF;
}

.support-channel-icon.ticket-support {
  background: #EFF4FF;
  color: #1849D6;
  border: 1px solid #D1E9FF;
}

.support-channel-icon.community {
  background: #FDF4FF;
  color: #C026D3;
  border: 1px solid #F5D0FE;
}

.support-channel-info {
  flex: 1;
}

.support-channel-title {
  font-size: 13.5px;
  font-weight: 600;
  color: #131313;
}

.support-channel-desc {
  font-size: 12px;
  color: #667085;
  margin-top: 2px;
  line-height: 1.4;
}

/* ==========================================================================
   23. UNIFIED MODULE KPI CARDS & DASHBOARD TABLES (EVENTS, CAREERS, SCHEMES)
   ========================================================================== */
.module-stat-grid,
.events-stat-grid,
.careers-stat-grid,
.schemes-stat-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-bottom: 24px;
  width: 100%;
}

@media (max-width: 1200px) {
  .module-stat-grid,
  .events-stat-grid,
  .careers-stat-grid,
  .schemes-stat-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 640px) {
  .module-stat-grid,
  .events-stat-grid,
  .careers-stat-grid,
  .schemes-stat-grid {
    grid-template-columns: 1fr;
  }
}

.module-stat-card,
.events-stat-card {
  background: #FFFFFF;
  border: 1px solid #EFEBFD;
  border-radius: 14px;
  padding: 16px 18px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 12px;
  box-shadow: none;
  cursor: pointer;
  transition: all 0.45s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.module-stat-card:hover,
.events-stat-card:hover {
  transform: translateY(-2px);
  background: #FAF9FE;
  border-color: #6336EB;
}

.events-stat-card-top,
.module-stat-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.events-stat-icon-wrap,
.module-stat-icon-wrap {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.events-stat-icon-wrap.purple,
.module-stat-icon-wrap.purple {
  background: #F5F3FF;
  color: #6336EB;
  border: 1px solid #EFEBFD;
}

.events-stat-icon-wrap.green,
.module-stat-icon-wrap.green {
  background: #ECFDF3;
  color: #027A48;
  border: 1px solid #D1FADF;
}

.events-stat-icon-wrap.blue,
.module-stat-icon-wrap.blue {
  background: #EFF8FF;
  color: #1849D6;
  border: 1px solid #D1E9FF;
}

.events-stat-icon-wrap.amber,
.module-stat-icon-wrap.amber {
  background: #FFF8EB;
  color: #B54708;
  border: 1px solid #FEDF89;
}

.events-stat-info,
.module-stat-info {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.events-stat-label,
.module-stat-label {
  font-size: 12px;
  font-weight: 500;
  color: var(--neutral-500);
}

.events-stat-value-row,
.module-stat-value-row {
  display: flex;
  align-items: baseline;
  gap: 6px;
}

.events-stat-value,
.module-stat-value {
  font-size: 22px;
  font-weight: 700;
  color: #131313;
  line-height: 1.2;
}

.events-stat-unit,
.module-stat-unit {
  font-size: 12.5px;
  font-weight: 500;
  color: var(--neutral-500);
}

.events-stat-subtext,
.module-stat-subtext {
  font-size: 11.5px;
  color: var(--neutral-400);
  margin-top: 2px;
}

/* ==========================================================================
   NOTIFICATION BADGE ON NAV ITEM (Tickets)
   ========================================================================== */
.nav-notif-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border-radius: 999px;
  background: #E53935;
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  line-height: 1;
  margin-left: auto;
  flex-shrink: 0;
  animation: badge-pulse 2.5s ease-in-out infinite;
}

@keyframes badge-pulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.12); opacity: 0.85; }
}

/* ==========================================================================
   HELP CENTER — Inline 3-col support cards
   ========================================================================== */
.help-support-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-bottom: 24px;
}

.help-support-card {
  background: #fff;
  border: 1px solid var(--neutral-100);
  border-radius: var(--radius-xl);
  padding: 18px 18px 16px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
  transition: box-shadow 0.2s;
}

.help-support-card:hover {
  box-shadow: 0 4px 16px rgba(99, 54, 235, 0.07);
}

.help-support-card .support-channel-icon {
  margin-bottom: 4px;
}

/* ==========================================================================
   QA CARD — Slightly more compact icon
   ========================================================================== */
.qa-linear-icon {
  width: 36px !important;
  height: 36px !important;
  min-width: 36px !important;
}

/* ==========================================================================
   SETTINGS SCREEN — WhatsApp-style layout
   ========================================================================== */
.settings-layout {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 20px;
  align-items: start;
}

/* --- Settings Left Nav --- */
.settings-nav {
  background: #fff;
  border: 1px solid var(--neutral-100);
  border-radius: var(--radius-xl);
  padding: 8px;
  display: flex;
  flex-direction: column;
  gap: 2px;
  position: sticky;
  top: 20px;
}

.settings-nav-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: var(--radius-lg);
  border: none;
  background: transparent;
  font-size: 13.5px;
  font-weight: 500;
  color: var(--neutral-600);
  cursor: pointer;
  text-align: left;
  transition: background 0.15s, color 0.15s;
  width: 100%;
}

.settings-nav-item svg {
  flex-shrink: 0;
  opacity: 0.6;
}

.settings-nav-item:hover {
  background: var(--neutral-50);
  color: var(--neutral-900);
}

.settings-nav-item:hover svg {
  opacity: 1;
}

.settings-nav-item.active {
  background: #EFEBFD;
  color: #6336EB;
  font-weight: 600;
}

.settings-nav-item.active svg {
  opacity: 1;
  stroke: #6336EB;
}

/* --- Settings Right Content --- */
.settings-content {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.settings-section {
  display: none;
}

.settings-section.active {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.settings-section-head {
  margin-bottom: 4px;
}

.settings-section-head h3 {
  font-size: 16px;
  font-weight: 700;
  color: #131313;
  margin: 0 0 2px;
}

.settings-section-head p {
  font-size: 12.5px;
  color: var(--neutral-500);
  margin: 0;
}

/* --- Settings Group (like WhatsApp category block) --- */
.settings-group {
  background: #fff;
  border: 1px solid var(--neutral-100);
  border-radius: var(--radius-xl);
  overflow: hidden;
}

.settings-group-label {
  padding: 10px 18px 6px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--neutral-400);
  border-bottom: 1px solid var(--neutral-50);
  background: var(--neutral-25);
}

/* --- Settings Row (like WhatsApp preference item) --- */
.settings-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 13px 18px;
  border-bottom: 1px solid var(--neutral-50);
  transition: background 0.12s;
}

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

.settings-row:hover {
  background: var(--neutral-25);
}

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

.settings-row-title {
  font-size: 13.5px;
  font-weight: 500;
  color: #131313;
  line-height: 1.3;
}

.settings-row-desc {
  font-size: 12px;
  color: var(--neutral-500);
  margin-top: 1px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* --- Settings Row Action Button --- */
.settings-row-action {
  padding: 5px 14px;
  border-radius: 999px;
  border: 1px solid var(--neutral-200);
  background: transparent;
  font-size: 12px;
  font-weight: 500;
  color: var(--neutral-700);
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.15s, border-color 0.15s;
  flex-shrink: 0;
}

.settings-row-action:hover {
  background: var(--neutral-100);
}

.settings-row-action.btn-primary-sm {
  background: #6336EB;
  color: #fff;
  border-color: #6336EB;
}

.settings-row-action.btn-primary-sm:hover {
  background: #542cc4;
}

.settings-row-action.settings-row-danger {
  color: #C0392B;
  border-color: rgba(192, 57, 43, 0.25);
}

.settings-row-action.settings-row-danger:hover {
  background: rgba(192, 57, 43, 0.06);
}

/* --- Settings Toggle Switch (WhatsApp pill toggle) --- */
.settings-toggle-switch {
  position: relative;
  display: inline-block;
  width: 42px;
  height: 24px;
  flex-shrink: 0;
  cursor: pointer;
}

.settings-toggle-switch input {
  opacity: 0;
  width: 0;
  height: 0;
  position: absolute;
}

.settings-toggle-knob {
  position: absolute;
  inset: 0;
  border-radius: 999px;
  background: var(--neutral-200);
  transition: background 0.22s;
}

.settings-toggle-knob::after {
  content: '';
  position: absolute;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #fff;
  top: 3px;
  left: 3px;
  transition: transform 0.22s;
  box-shadow: 0 1px 4px rgba(0,0,0,0.15);
}

.settings-toggle-switch input:checked + .settings-toggle-knob {
  background: #6336EB;
}

.settings-toggle-switch input:checked + .settings-toggle-knob::after {
  transform: translateX(18px);
}

