/* ==========================================================
   Modern SaaS Design System (Plus Jakarta Sans + Inter)
   Refined Light / Dark Theme, Glassmorphism, Micro-animations
   ========================================================== */
@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700;800&family=Inter:wght@400;500;600;700&family=JetBrains+Mono:wght@500;600&display=swap');

:root,
html,
html[data-theme="light"] {
  --primary: #2563EB;
  --primary-hover: #1D4ED8;
  --primary-light: rgba(37, 99, 235, 0.08);
  --primary-glow: rgba(37, 99, 235, 0.22);
  --primary-gradient: linear-gradient(135deg, #2563EB 0%, #1D4ED8 100%);
  
  --navy: #0F172A;
  --navy-2: #1E293B;
  --navy-3: #334155;
  --blue: #2563EB;
  --blue-hover: #1D4ED8;
  --blue-light: rgba(37, 99, 235, 0.08);
  --cyan: #0284C7;
  --amber: #D97706;
  --red: #DC2626;
  --green: #059669;
  --purple: #7C3AED;
  
  /* Eye-Comfortable Modern Enterprise Canvas */
  --bg: #F4F6F9;
  --surface: #FFFFFF;
  --surface-hover: #F8FAFC;
  --surface-subtle: #F1F5F9;
  --border: #E2E8F0;
  --border-light: #F1F5F9;
  --text: #0F172A;
  --text-muted: #64748B;
  --text-light: #94A3B8;
  
  --navbar-bg: #0F172A;
  --navbar-border: rgba(255, 255, 255, 0.08);
  
  --font-heading: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, monospace;
  
  --radius-sm: 8px;
  --radius: 12px;
  --radius-lg: 16px;
  --radius-full: 9999px;
  
  --shadow-xs: 0 1px 2px 0 rgba(15, 23, 42, 0.04);
  --shadow-sm: 0 1px 3px 0 rgba(15, 23, 42, 0.05), 0 1px 2px -1px rgba(15, 23, 42, 0.03);
  --shadow-md: 0 4px 12px -2px rgba(15, 23, 42, 0.06), 0 2px 6px -1px rgba(15, 23, 42, 0.03);
  --shadow-lg: 0 10px 25px -3px rgba(15, 23, 42, 0.06), 0 4px 6px -2px rgba(15, 23, 42, 0.02);
  --shadow-xl: 0 20px 30px -5px rgba(15, 23, 42, 0.08);
  
  --transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

html[data-theme="dark"] {
  --primary: #38BDF8;
  --primary-hover: #0EA5E9;
  --primary-light: rgba(56, 189, 248, 0.15);
  --primary-glow: rgba(56, 189, 248, 0.35);
  --primary-gradient: linear-gradient(135deg, #2563EB 0%, #06B6D4 100%);
  
  --navy: #0F172A;
  --navy-2: #1E293B;
  --navy-3: #334155;
  --blue: #38BDF8;
  --blue-hover: #0EA5E9;
  --blue-light: rgba(56, 189, 248, 0.15);
  --cyan: #06B6D4;
  --amber: #F59E0B;
  --red: #EF4444;
  --green: #10B981;
  --purple: #8B5CF6;
  
  --bg: #0B0F17;
  --surface: #111827;
  --surface-hover: #1E293B;
  --surface-subtle: #161F30;
  --border: rgba(255, 255, 255, 0.1);
  --border-light: rgba(255, 255, 255, 0.05);
  --text: #F8FAFC;
  --text-muted: #94A3B8;
  --text-light: #64748B;
  
  --navbar-bg: #0A0E17;
  --navbar-border: rgba(255, 255, 255, 0.08);
  
  --shadow-xs: 0 1px 2px 0 rgba(0, 0, 0, 0.2);
  --shadow-sm: 0 1px 3px 0 rgba(0, 0, 0, 0.3), 0 1px 2px -1px rgba(0, 0, 0, 0.2);
  --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.35);
  --shadow-lg: 0 12px 28px rgba(0, 0, 0, 0.45);
  --shadow-xl: 0 20px 36px -5px rgba(0, 0, 0, 0.55);
}

html, body {
  margin: 0;
  padding: 0;
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
  box-sizing: border-box;
}
*, *::before, *::after {
  box-sizing: border-box;
}
body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  font-size: 13.5px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  position: relative;
}

/* ==========================================================
   Classy & Ultra-Subtle DeskOps Ambient Background Watermark
   ========================================================== */
body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='440' height='240' viewBox='0 0 440 240'%3E%3Cg transform='rotate(-18 220 120)' opacity='0.024'%3E%3Cpath d='M75 118 L90 102 L120 102 L135 118 L120 134 L90 134 Z' fill='%232563EB' /%3E%3Ctext x='148' y='128' font-family='Plus Jakarta Sans, Inter, sans-serif' font-size='24' font-weight='900' letter-spacing='-0.03em' fill='%230F172A'%3EDesk%3Ctspan fill='%232563EB'%3EOps%3C/tspan%3E%3C/text%3E%3C/g%3E%3C/svg%3E");
  background-repeat: repeat;
  background-position: 0 0;
  pointer-events: none;
  z-index: 0;
  user-select: none;
}

html[data-theme="dark"] body::before {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='440' height='240' viewBox='0 0 440 240'%3E%3Cg transform='rotate(-18 220 120)' opacity='0.032'%3E%3Cpath d='M75 118 L90 102 L120 102 L135 118 L120 134 L90 134 Z' fill='%2338BDF8' /%3E%3Ctext x='148' y='128' font-family='Plus Jakarta Sans, Inter, sans-serif' font-size='24' font-weight='900' letter-spacing='-0.03em' fill='%23F8FAFC'%3EDesk%3Ctspan fill='%2338BDF8'%3EOps%3C/tspan%3E%3C/text%3E%3C/g%3E%3C/svg%3E");
}

.page-wrap, .navbar, .auth-wrap {
  position: relative;
  z-index: 1;
}

a { color: inherit; text-decoration: none; transition: var(--transition); }
h1, h2, h3, h4, h5, h6 { font-family: var(--font-heading); font-weight: 700; margin: 0 0 8px; color: var(--text); letter-spacing: -0.02em; }
.page-wrap { padding: 24px; max-width: 1240px; margin: 0 auto; min-height: calc(100vh - 120px); }
@media (max-width: 768px) { .page-wrap { padding: 14px 10px; } }

/* ==========================================================
   Auth Layout (Login / Register) - Clean & Centered Box
   ========================================================== */
.auth-bg {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg);
  padding: 24px 16px;
}
.auth-wrap {
  width: 100%;
  max-width: 440px;
  margin: auto;
}
.auth-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px 28px;
  box-shadow: var(--shadow-lg);
}

/* ==========================================================
   Navbar & Unified Header Navigation
   ========================================================== */
.navbar {
  background: linear-gradient(135deg, #0F172A 0%, #1E293B 100%);
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.18);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.navbar-inner {
  max-width: 1440px;
  width: 100%;
  margin: 0 auto;
  padding: 0 18px;
  height: 62px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  position: relative;
  box-sizing: border-box;
}

.navbar-brand-wrap {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #FFFFFF !important;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 15.5px;
  letter-spacing: -0.01em;
  text-decoration: none;
  transition: opacity 0.2s ease;
}

.brand:hover { opacity: 0.92; }

.brand-logo { 
  width: 34px; 
  height: 34px; 
  border-radius: 9px; 
  object-fit: cover; 
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25); 
}

.brand-logo-fallback {
  width: 34px; 
  height: 34px; 
  border-radius: 9px;
  background: linear-gradient(135deg, #2563EB, #06B6D4);
  color: #FFFFFF; 
  display: flex; 
  align-items: center; 
  justify-content: center;
  font-weight: 800; 
  font-size: 13px; 
  box-shadow: 0 2px 10px rgba(37, 99, 235, 0.4);
  letter-spacing: 0.5px;
}

/* Rematrix brand logo theme contrast */
.rematrix-brand-logo {
  display: inline-block;
  vertical-align: middle;
  transition: color var(--transition);
}
.navbar .rematrix-brand-logo {
  color: #FFFFFF !important;
}
.auth-card .rematrix-brand-logo,
.pricing-nav .rematrix-brand-logo {
  color: var(--text);
}

.navlinks {
  display: flex;
  align-items: center;
  gap: 4px;
  flex-wrap: nowrap;
  flex: 1;
  margin-left: 12px;
  white-space: nowrap;
}

.navlink {
  color: rgba(255, 255, 255, 0.82);
  font-size: 13px;
  font-weight: 500;
  height: 36px;
  padding: 0 11px;
  border-radius: var(--radius-sm);
  white-space: nowrap;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  text-decoration: none;
  box-sizing: border-box;
}

.navlink:hover { 
  color: #FFFFFF; 
  background: rgba(255, 255, 255, 0.12); 
}

.navlink.active {
  color: #FFFFFF;
  background: rgba(255, 255, 255, 0.18);
  font-weight: 700;
  box-shadow: inset 0 -2px 0 var(--primary), 0 0 12px var(--primary-light);
}

.navbar-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  flex-shrink: 0;
  height: 38px;
}

.nav-action-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  height: 36px;
  padding: 0 14px;
  font-size: 12.5px;
  font-weight: 700;
  color: #FFFFFF !important;
  background: var(--primary-gradient);
  box-shadow: 0 4px 12px var(--primary-glow);
  border-radius: 18px;
  transition: all 0.2s ease;
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.nav-action-btn:hover {
  filter: brightness(1.1);
  transform: translateY(-1px);
  box-shadow: 0 6px 18px var(--primary-glow);
}

/* User Menu Chip (Desktop) */
.user-chip-btn,
.user-chip,
.navlink.user-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 38px;
  padding: 0 14px;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 600;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.16);
  color: #FFFFFF !important;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.2s ease;
  font-family: var(--font-body);
}

.user-chip-btn:hover,
.user-chip:hover,
.navlink.user-chip:hover {
  background: rgba(255, 255, 255, 0.16);
  border-color: rgba(255, 255, 255, 0.28);
}

.user-chip-name {
  max-width: 120px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.user-dropdown-menu {
  right: 0 !important;
  left: auto !important;
  min-width: 230px !important;
  background: #0F172A !important;
  border: 1px solid rgba(255, 255, 255, 0.14) !important;
  border-radius: 14px !important;
  box-shadow: 0 20px 48px rgba(0, 0, 0, 0.7) !important;
  padding: 0 !important;
}

.dropdown-item {
  display: flex !important;
  align-items: center !important;
  gap: 10px !important;
  width: 100% !important;
  padding: 10px 14px !important;
  border-radius: 8px !important;
  font-size: 13px !important;
  color: #F8FAFC !important;
  font-weight: 600 !important;
  text-decoration: none !important;
  transition: all 0.15s ease !important;
}

.dropdown-item:hover {
  background: rgba(255, 255, 255, 0.1) !important;
  color: #38BDF8 !important;
}

/* Glass Action Buttons (Bell) */
.notif-bell-btn {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.16);
  color: #FFFFFF;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 13.5px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  box-sizing: border-box;
  flex-shrink: 0;
  position: relative;
  padding: 0;
}

.notif-bell-btn:hover {
  background: rgba(255, 255, 255, 0.18);
  border-color: rgba(255, 255, 255, 0.3);
  color: #38BDF8;
  transform: translateY(-1px);
}

.nav-toggle {
  display: none !important;
}

.mobile-user-section {
  display: none !important;
}

.mobile-action-banner {
  display: none !important;
}

/* Notification Badge */
.notif-badge {
  position: absolute;
  top: -2px;
  right: -2px;
  background: #EF4444;
  color: #FFFFFF;
  font-size: 10px;
  font-weight: 800;
  border-radius: 999px;
  min-width: 18px;
  height: 18px;
  line-height: 18px;
  text-align: center;
  padding: 0 4px;
  border: 2px solid #0F172A;
  box-shadow: 0 2px 6px rgba(239, 68, 68, 0.6);
  animation: notifBadgePulse 2s infinite;
}

@keyframes notifBadgePulse {
  0% { transform: scale(1); }
  50% { transform: scale(1.1); }
  100% { transform: scale(1); }
}

/* Dropdown Menus */
.navlink-dropdown {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 38px;
}

.nav-caret {
  font-size: 10px;
  margin-left: 4px;
  display: inline-block;
  vertical-align: middle;
  transition: transform 0.2s ease;
  opacity: 0.8;
}

.navlink-dropdown:hover .nav-caret,
.navlink-dropdown:focus-within .nav-caret,
.navlink-dropdown.js-open .nav-caret {
  transform: rotate(180deg);
}

.dropdown-menu {
  display: none;
  position: absolute;
  left: 0;
  top: calc(100% + 4px);
  background: #0F172A;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 12px;
  padding: 6px;
  min-width: 250px;
  box-shadow: 0 20px 48px rgba(0, 0, 0, 0.5);
  z-index: 1200;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  animation: dropdownFadeIn 0.15s ease-out;
}

.dropdown-menu::before {
  content: '';
  position: absolute;
  top: -10px;
  left: 0;
  right: 0;
  height: 12px;
  background: transparent;
}

.navlinks > .navlink-dropdown:last-child .dropdown-menu,
.navbar-actions .dropdown-menu,
.desktop-user-chip .dropdown-menu {
  left: auto !important;
  right: 0 !important;
  min-width: 220px;
  max-width: 280px;
}

@media (min-width: 993px) {
  .navlink-dropdown:hover > .dropdown-menu,
  .navlink-dropdown:focus-within > .dropdown-menu,
  .navlink-dropdown.js-open > .dropdown-menu {
    display: block;
  }
}

.dropdown-menu a {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 9px 12px;
  border-radius: 8px;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.88) !important;
  font-weight: 500;
  text-align: left;
  transition: all 0.15s ease;
  text-decoration: none;
  box-sizing: border-box;
}

.dropdown-menu a i {
  width: 18px;
  text-align: center;
  font-size: 13.5px;
  flex-shrink: 0;
}

.dropdown-menu a:hover { 
  background: rgba(255, 255, 255, 0.1); 
  color: #38BDF8 !important; 
  transform: translateX(3px);
}

.dropdown-role {
  display: block;
  padding: 6px 12px 6px;
  font-size: 10.5px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: #38BDF8;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  margin-bottom: 6px;
}

/* Notification Dropdown Container */
.notif-dropdown {
  display: none;
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  width: 350px;
  max-width: calc(100vw - 24px);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-xl);
  z-index: 2000;
  overflow: hidden;
  animation: dropdownFadeIn 0.15s ease-out;
}

.notif-dropdown.open {
  display: block;
}

@media (max-width: 600px) {
  .notif-dropdown {
    position: fixed;
    top: 66px;
    left: 10px;
    right: 10px;
    width: auto;
    max-width: none;
    box-shadow: 0 20px 48px rgba(0, 0, 0, 0.5);
  }
}

.notif-head {
  padding: 12px 16px;
  background: var(--surface-hover);
  border-bottom: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-weight: 700;
  font-size: 13px;
  color: var(--text);
}

#notifList {
  max-height: 380px;
  overflow-y: auto;
  overscroll-behavior: contain;
}

.notif-item {
  display: block;
  padding: 12px 16px;
  border-bottom: 1px solid var(--border);
  color: var(--text);
  font-size: 12.5px;
  line-height: 1.45;
  text-decoration: none;
  transition: background 0.15s ease;
  position: relative;
}

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

.notif-item:hover {
  background: var(--surface-hover);
}

.notif-item.unread {
  background: rgba(37, 99, 235, 0.07);
  border-left: 3.5px solid var(--blue);
  font-weight: 600;
}

.notif-time {
  display: block;
  font-size: 11px;
  color: var(--text-muted);
  font-weight: 400;
  margin-top: 4px;
}

.notif-empty {
  padding: 32px 16px;
  text-align: center;
  color: var(--text-muted);
  font-size: 13px;
}

html.nav-open,
body.nav-open {
  overflow: hidden !important;
  height: 100% !important;
  touch-action: none !important;
}

@media (max-width: 992px) {
  .navbar {
    background: #0B0F17 !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
  }

  .desktop-only-btn {
    display: none !important;
  }

  .nav-toggle {
    display: inline-flex !important;
    width: 38px;
    height: 38px;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 10px;
    color: #F8FAFC;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.2s ease;
  }

  .nav-toggle:active {
    transform: scale(0.92);
  }

  .navlinks {
    display: none !important;
    position: fixed !important;
    top: 62px !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    width: 100vw !important;
    height: calc(100vh - 62px) !important;
    background: #0B0F17 !important;
    border-top: 1px solid rgba(255, 255, 255, 0.1) !important;
    padding: 16px 16px 80px !important;
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 8px !important;
    z-index: 9999999 !important;
    box-shadow: 0 20px 48px rgba(0, 0, 0, 0.95) !important;
    max-height: calc(100vh - 62px) !important;
    overflow-y: auto !important;
    overscroll-behavior: contain !important;
    -webkit-overflow-scrolling: touch !important;
    margin-left: 0 !important;
  }

  .navlinks.open {
    display: flex !important;
    animation: mobileDrawerSlide 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  }

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

  .desktop-user-chip {
    display: none !important;
  }

  .navlink {
    width: 100%;
    justify-content: flex-start;
    height: 44px;
    padding: 0 14px;
    font-size: 14px;
    font-weight: 600;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
  }

  .navlink:hover,
  .navlink:active {
    background: rgba(255, 255, 255, 0.09);
  }

  .navlink-dropdown {
    width: 100%;
    height: auto;
    flex-direction: column;
    align-items: stretch;
    margin-bottom: 3px;
  }

  .navlink-dropdown > .navlink {
    justify-content: space-between;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
  }

  .nav-caret {
    transition: transform 0.2s ease;
  }

  .navlink-dropdown.js-open > .navlink .nav-caret {
    transform: rotate(180deg);
  }

  .navlink-dropdown .dropdown-menu {
    position: static !important;
    display: none !important;
    width: 100% !important;
    background: rgba(15, 23, 42, 0.75) !important;
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
    box-shadow: none !important;
    margin-top: 4px !important;
    margin-bottom: 6px !important;
    padding: 6px !important;
    border-radius: 10px !important;
  }

  .navlink-dropdown.js-open .dropdown-menu {
    display: flex !important;
    flex-direction: column !important;
    gap: 3px !important;
    animation: mobileDrawerSlide 0.2s ease-out !important;
  }

  .navlink-dropdown .dropdown-menu a {
    color: #F8FAFC !important;
    padding: 11px 14px;
    font-size: 13.5px;
    border-radius: 8px;
  }

  .navlink-dropdown .dropdown-menu a:active,
  .navlink-dropdown .dropdown-menu a:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #38BDF8 !important;
  }

  .mobile-user-section {
    display: block !important;
    margin-top: 0 !important;
    margin-bottom: 12px !important;
    padding-top: 0 !important;
    border-top: none !important;
  }

  .mobile-user-card {
    background: linear-gradient(135deg, rgba(30, 41, 59, 0.9), rgba(15, 23, 42, 0.95)) !important;
    border: 1px solid rgba(255, 255, 255, 0.14) !important;
    border-radius: 14px !important;
    padding: 14px !important;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3) !important;
  }

  .mobile-user-info {
    display: flex !important;
    align-items: center !important;
    gap: 12px !important;
    margin-bottom: 12px !important;
  }

  .mobile-user-avatar {
    width: 40px !important;
    height: 40px !important;
    border-radius: 50% !important;
    background: linear-gradient(135deg, #2563EB, #06B6D4) !important;
    color: #FFFFFF !important;
    font-weight: 800 !important;
    font-size: 14px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    box-shadow: 0 2px 8px rgba(37, 99, 235, 0.4) !important;
  }

  .mobile-user-name {
    font-weight: 700 !important;
    color: #FFFFFF !important;
    font-size: 14.5px !important;
  }

  .mobile-user-role {
    font-size: 11.5px !important;
    color: #38BDF8 !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.04em !important;
  }

  .mobile-user-actions {
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    gap: 8px !important;
  }

  .mobile-btn {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 6px !important;
    padding: 10px 8px !important;
    border-radius: 10px !important;
    font-size: 12.5px !important;
    font-weight: 600 !important;
    text-decoration: none !important;
    transition: all 0.2s ease !important;
    text-align: center !important;
    white-space: nowrap !important;
  }

  .mobile-btn-outline {
    background: rgba(255, 255, 255, 0.08) !important;
    color: #FFFFFF !important;
    border: 1px solid rgba(255, 255, 255, 0.16) !important;
  }

  .mobile-btn-outline:active {
    background: rgba(255, 255, 255, 0.15) !important;
  }

  .mobile-btn-danger {
    background: rgba(239, 68, 68, 0.18) !important;
    color: #F87171 !important;
    border: 1px solid rgba(239, 68, 68, 0.35) !important;
  }

  .mobile-btn-danger:active {
    background: rgba(239, 68, 68, 0.3) !important;
  }
}



/* Plan Row Styling */
.plan-row {
  background: var(--bg);
  transition: var(--transition);
}
.plan-row:hover {
  background: var(--surface-hover);
}
.plan-badge {
  padding: 2px 6px;
  border-radius: var(--radius-sm);
  font-size: 11px;
  font-weight: 600;
  margin-left: 6px;
}
.plan-badge.basic { background: #E0F2FE; color: #0284C7; }
.plan-badge.pro { background: #FCE7F3; color: #C026D3; }
.plan-badge.business { background: #FEF3C7; color: #D97706; }

/* ==========================================================
   Cards & Clean Stats Grid
   ========================================================== */
/* ==========================================================
   Cards & Clean Stats Grid
   ========================================================== */
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  box-shadow: 0 4px 20px -2px rgba(0, 0, 0, 0.06);
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  overflow: hidden;
  position: relative;
}
.card:hover { 
  border-color: rgba(37, 99, 235, 0.3);
  box-shadow: 0 12px 32px -4px rgba(0, 0, 0, 0.12);
}
.card-head,
.card-header {
  padding: 16px 20px;
  border-bottom: 1px solid var(--border);
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 14.5px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.02) 0%, transparent 100%);
  color: var(--text);
}
.card-body { padding: 20px; }

.stats,
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-bottom: 24px;
}

@media (max-width: 900px) {
  .stats,
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }
}

@media (max-width: 480px) {
  .stats,
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }
}

.stat,
.stat-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 20px 22px;
  box-shadow: 0 1px 3px 0 rgba(15, 23, 42, 0.05), 0 1px 2px -1px rgba(15, 23, 42, 0.03);
  display: flex;
  align-items: center;
  gap: 16px;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  overflow: hidden;
}

.stat:hover,
.stat-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 25px -4px rgba(15, 23, 42, 0.08), 0 0 0 1px rgba(37, 99, 235, 0.2);
}

.stat-icon,
.stat-card-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #EFF6FF;
  color: #2563EB;
  font-size: 19px;
  flex-shrink: 0;
  border: 1px solid #DBEAFE;
  transition: transform 0.2s ease;
}

.stat:hover .stat-icon,
.stat-card:hover .stat-card-icon {
  transform: scale(1.06);
}

.stat.stat-blue,
.stat-card.stat-blue {
  border-left: 4px solid #2563EB;
}
.stat.stat-blue .stat-card-icon {
  background: #EFF6FF;
  color: #2563EB;
  border-color: #DBEAFE;
}
html[data-theme="dark"] .stat.stat-blue .stat-card-icon {
  background: rgba(37, 99, 235, 0.16);
  color: #38BDF8;
  border-color: rgba(56, 189, 248, 0.25);
}

.stat.amber,
.stat.stat-amber,
.stat-card.stat-amber {
  border-left: 4px solid #F59E0B;
}
.stat.amber .stat-icon,
.stat-card.stat-amber .stat-card-icon {
  background: #FFFBEB;
  color: #D97706;
  border-color: #FEF3C7;
}
html[data-theme="dark"] .stat-card.stat-amber .stat-card-icon {
  background: rgba(245, 158, 11, 0.16);
  color: #FBBF24;
  border-color: rgba(245, 158, 11, 0.25);
}

.stat.green,
.stat.stat-green,
.stat-card.stat-green {
  border-left: 4px solid #10B981;
}
.stat.green .stat-icon,
.stat-card.stat-green .stat-card-icon {
  background: #ECFDF5;
  color: #059669;
  border-color: #D1FAE5;
}
html[data-theme="dark"] .stat-card.stat-green .stat-card-icon {
  background: rgba(16, 185, 129, 0.16);
  color: #34D399;
  border-color: rgba(16, 185, 129, 0.25);
}

.stat.red,
.stat.stat-red,
.stat-card.stat-red {
  border-left: 4px solid #EF4444;
}
.stat.red .stat-icon,
.stat-card.stat-red .stat-card-icon {
  background: #FEF2F2;
  color: #DC2626;
  border-color: #FEE2E2;
}
html[data-theme="dark"] .stat-card.stat-red .stat-card-icon {
  background: rgba(239, 68, 68, 0.16);
  color: #F87171;
  border-color: rgba(239, 68, 68, 0.25);
}

.stat.purple,
.stat.stat-purple,
.stat-card.stat-purple {
  border-left: 4px solid #8B5CF6;
}
.stat.purple .stat-icon,
.stat-card.stat-purple .stat-card-icon {
  background: #F5F3FF;
  color: #7C3AED;
  border-color: #EDE9FE;
}
html[data-theme="dark"] .stat-card.stat-purple .stat-card-icon {
  background: rgba(139, 92, 246, 0.16);
  color: #A78BFA;
  border-color: rgba(139, 92, 246, 0.25);
}

.stat-num,
.stat-card-num {
  font-family: var(--font-heading);
  font-size: 26px;
  font-weight: 800;
  line-height: 1.1;
  color: var(--text);
  letter-spacing: -0.02em;
}

.stat-label,
.stat-card-label {
  font-size: 11.5px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: .06em;
  font-weight: 700;
  margin-top: 3px;
}

/* ==========================================================
   Tables - Luxury High-Contrast Glass Design & Responsive Scroll
   ========================================================== */
.table-wrap,
.table-responsive { 
  overflow-x: auto !important; 
  -webkit-overflow-scrolling: touch !important;
  width: 100% !important;
  max-width: 100% !important;
  border: 1px solid var(--border); 
  border-radius: 14px; 
  background: var(--surface); 
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04);
  position: relative;
  display: block;
}

table,
.table,
.table-wrap table,
.table-responsive table { 
  width: 100%; 
  border-collapse: separate; 
  border-spacing: 0; 
  font-size: 13px; 
  text-align: left; 
}

@media (max-width: 992px) {
  table,
  .table,
  .table-wrap table,
  .table-responsive table {
    min-width: 680px !important;
  }
}
thead th {
  background: var(--surface-hover);
  padding: 13px 16px;
  color: var(--text-muted);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: .06em;
  font-weight: 700;
  border-bottom: 1px solid var(--border);
  white-space: nowrap;
}
tbody td { 
  padding: 13px 16px; 
  border-top: 1px solid var(--border-light); 
  color: var(--text); 
  vertical-align: middle; 
}
tbody tr {
  transition: background 0.15s ease;
}
tbody tr:hover { 
  background: rgba(37, 99, 235, 0.04); 
}
tbody tr.clickable { cursor: pointer; }
.mono { font-family: var(--font-mono); font-size: 12px; }

/* ==========================================================
   Badges - Executive Pill Aesthetics
   ========================================================== */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 10px;
  border-radius: var(--radius-full);
  font-size: 11.5px;
  font-weight: 700;
  white-space: nowrap;
  line-height: 1.4;
  letter-spacing: 0.01em;
}
.badge-low { background: #F1F5F9; color: #64748B; border: 1px solid #E2E8F0; }
.badge-medium { background: #EFF6FF; color: #2563EB; border: 1px solid #BFDBFE; }
.badge-high { background: #FFF7ED; color: #EA580C; border: 1px solid #FED7AA; }
.badge-urgent { background: #FEF2F2; color: #DC2626; border: 1px solid #FECACA; }
.badge-new { background: #EFF6FF; color: #2563EB; border: 1px solid #BFDBFE; }
.badge-open { background: #EFF6FF; color: #2563EB; border: 1px solid #BFDBFE; }
.badge-progress { background: #FFFBEB; color: #D97706; border: 1px solid #FDE68A; }
.badge-pending { background: #FFFBEB; color: #D97706; border: 1px solid #FDE68A; }
.badge-hold { background: #F5F3FF; color: #7C3AED; border: 1px solid #DDD6FE; }
.badge-resolved { background: #ECFDF5; color: #059669; border: 1px solid #A7F3D0; }
.badge-closed { background: #F1F5F9; color: #475569; border: 1px solid #E2E8F0; }
.badge-reopened { background: #FEF2F2; color: #DC2626; border: 1px solid #FECACA; }
.badge-outline { background: transparent; border: 1px solid var(--border); color: var(--text-muted); }

html[data-theme="dark"] .badge-low { background: rgba(100, 116, 139, 0.16); color: var(--text-muted); border-color: rgba(100, 116, 139, 0.25); }
html[data-theme="dark"] .badge-medium { background: rgba(37, 99, 235, 0.16); color: #38BDF8; border-color: rgba(56, 189, 248, 0.25); }
html[data-theme="dark"] .badge-high { background: rgba(245, 158, 11, 0.16); color: #FBBF24; border-color: rgba(245, 158, 11, 0.25); }
html[data-theme="dark"] .badge-urgent { background: rgba(239, 68, 68, 0.16); color: #F87171; border-color: rgba(239, 68, 68, 0.25); }
html[data-theme="dark"] .badge-new { background: rgba(56, 189, 248, 0.16); color: #38BDF8; border-color: rgba(56, 189, 248, 0.25); }
html[data-theme="dark"] .badge-open { background: rgba(37, 99, 235, 0.16); color: #38BDF8; border-color: rgba(56, 189, 248, 0.25); }
html[data-theme="dark"] .badge-progress { background: rgba(139, 92, 246, 0.16); color: #A78BFA; border-color: rgba(139, 92, 246, 0.25); }
html[data-theme="dark"] .badge-pending { background: rgba(245, 158, 11, 0.16); color: #FBBF24; border-color: rgba(245, 158, 11, 0.25); }
html[data-theme="dark"] .badge-hold { background: rgba(139, 92, 246, 0.16); color: #A78BFA; border-color: rgba(139, 92, 246, 0.25); }
html[data-theme="dark"] .badge-resolved { background: rgba(16, 185, 129, 0.16); color: #34D399; border-color: rgba(16, 185, 129, 0.25); }
html[data-theme="dark"] .badge-closed { background: rgba(100, 116, 139, 0.16); color: var(--text-muted); border-color: rgba(100, 116, 139, 0.25); }
html[data-theme="dark"] .badge-reopened { background: rgba(239, 68, 68, 0.16); color: #F87171; border-color: rgba(239, 68, 68, 0.25); }

/* ==========================================================
   Buttons & Form Controls - Elevated Luxury Feel
   ========================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 9px 18px;
  border-radius: 10px;
  font-family: var(--font-heading);
  font-size: 13px;
  font-weight: 600;
  border: 1px solid transparent;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  white-space: nowrap;
  letter-spacing: -0.01em;
  text-decoration: none;
}
.btn:hover { 
  transform: translateY(-1.5px); 
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.15); 
}
.btn:active { transform: translateY(0); }

.btn-primary { 
  background: var(--primary-gradient) !important; 
  color: #FFFFFF !important; 
  box-shadow: 0 4px 14px var(--primary-glow) !important;
  border: 1px solid rgba(255, 255, 255, 0.15);
}
.btn-primary:hover { 
  filter: brightness(1.08);
  color: #FFFFFF !important; 
  box-shadow: 0 6px 20px var(--primary-glow) !important; 
}

.btn-outline { 
  background: var(--surface); 
  border-color: var(--border); 
  color: var(--text) !important; 
}
.btn-outline:hover { 
  background: var(--surface-hover); 
  border-color: var(--primary); 
  color: var(--primary) !important; 
}

.btn-secondary { 
  background: var(--surface-hover); 
  color: var(--text) !important; 
  border: 1px solid var(--border);
}
.btn-secondary:hover { 
  background: rgba(255, 255, 255, 0.1); 
}

.btn-danger { 
  background: linear-gradient(135deg, #EF4444 0%, #DC2626 100%); 
  color: #FFFFFF !important; 
  box-shadow: 0 4px 14px rgba(239, 68, 68, 0.3);
}
.btn-danger:hover { 
  background: linear-gradient(135deg, #DC2626 0%, #B91C1C 100%); 
  box-shadow: 0 6px 20px rgba(239, 68, 68, 0.45); 
}

.btn-outline-danger {
  background: transparent;
  border: 1px solid rgba(239, 68, 68, 0.4);
  color: #EF4444 !important;
}
.btn-outline-danger:hover {
  background: rgba(239, 68, 68, 0.12);
  border-color: #EF4444;
  color: #EF4444 !important;
}

.btn-success { 
  background: linear-gradient(135deg, #10B981 0%, #059669 100%); 
  color: #FFFFFF !important; 
  box-shadow: 0 4px 14px rgba(16, 185, 129, 0.3);
}
.btn-success:hover { 
  background: linear-gradient(135deg, #059669 0%, #047857 100%); 
  box-shadow: 0 6px 20px rgba(16, 185, 129, 0.45); 
}

.btn-sm { 
  padding: 6px 12px; 
  font-size: 12px; 
  border-radius: 8px; 
}
.btn-block { width: 100%; }

.form-control, 
.form-select, 
select.form-control,
textarea.form-control {
  width: 100%;
  height: 42px;
  padding: 0 14px;
  border: 1px solid var(--border);
  border-radius: 10px;
  font-size: 13.5px;
  font-family: var(--font-body);
  background: var(--surface);
  color: var(--text);
  box-sizing: border-box;
  transition: all 0.2s ease;
}

textarea.form-control,
textarea {
  height: auto !important;
  min-height: 90px;
  padding: 12px 14px !important;
  line-height: 1.5;
}

.form-control:focus, 
.form-select:focus,
select:focus,
textarea:focus {
  border-color: #2563EB;
  outline: none;
  box-shadow: 0 0 0 3.5px rgba(37, 99, 235, 0.2);
  background: var(--surface);
}

.form-control-sm {
  height: 36px;
  padding: 0 10px;
  font-size: 12.5px;
  border-radius: 8px;
}
input[type="date"] { cursor: pointer; }
label { display: block; font-size: 12px; font-weight: 600; margin-bottom: 5px; color: var(--text-muted); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
@media (max-width: 640px) { .form-row { grid-template-columns: 1fr; } }

/* Filter Reset Button */
.filter-reset-btn {
  color: var(--red);
  background: rgba(239, 68, 68, 0.08);
  border: 1px solid rgba(239, 68, 68, 0.2);
  border-radius: var(--radius-sm);
  padding: 6px 11px;
  font-size: 12px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  transition: var(--transition);
  text-decoration: none;
}
.filter-reset-btn:hover {
  background: rgba(239, 68, 68, 0.18);
  color: #DC2626;
}

/* Alerts */
.alert { 
  padding: 12px 16px; 
  border-radius: 10px; 
  font-size: 13px; 
  line-height: 1.55; 
  margin-bottom: 14px; 
  display: block; 
  text-align: left; 
  word-wrap: break-word;
}
.alert.d-flex,
.alert.alert-flex { 
  display: flex; 
  align-items: flex-start; 
  gap: 12px; 
}
.alert > i:first-child { 
  margin-right: 8px; 
  font-size: 14px; 
  vertical-align: -1px; 
}
.alert > div { 
  flex: 1; 
}
.alert-danger { background: rgba(239, 68, 68, 0.08); color: #B91C1C; border: 1px solid rgba(239, 68, 68, 0.25); }
html[data-theme=dark] .alert-danger { color: #FCA5A5; }
.alert-success { background: rgba(16, 185, 129, 0.08); color: #047857; border: 1px solid rgba(16, 185, 129, 0.25); }
html[data-theme=dark] .alert-success { color: #6EE7B7; }
.alert-warning { background: rgba(245, 158, 11, 0.08); color: #B45309; border: 1px solid rgba(245, 158, 11, 0.25); }
html[data-theme=dark] .alert-warning { color: #FDE68A; }
.alert-info { background: rgba(37, 99, 235, 0.08); color: #1D4ED8; border: 1px solid rgba(37, 99, 235, 0.25); }
html[data-theme=dark] .alert-info { color: #93C5FD; }

/* ==========================================================
   Conversation & Chat Thread (Tickets View) - Modern Executive UI
   ========================================================== */
.thread { display: flex; flex-direction: column; gap: 16px; padding: 12px 4px; }
.chat-row {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 16px;
  width: 100%;
  position: relative;
}
.chat-row-left {
  justify-content: flex-start;
  flex-direction: row;
}
.chat-row-right {
  justify-content: flex-end;
  flex-direction: row;
}

.chat-avatar {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 13px;
  flex-shrink: 0;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
  user-select: none;
  letter-spacing: 0.3px;
}

.chat-bubble {
  max-width: 78%;
  min-width: 240px;
  padding: 13px 18px;
  border-radius: 14px;
  position: relative;
  font-size: 14px;
  line-height: 1.6;
  box-shadow: 0 2px 10px rgba(0,0,0,0.04);
  background: #ffffff;
  border: 1px solid #E2E8F0;
  color: var(--text);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.chat-bubble:hover {
  box-shadow: 0 4px 16px rgba(0,0,0,0.08);
}

.chat-row-left .chat-bubble {
  border-top-left-radius: 4px;
  background: #ffffff;
  border: 1px solid #E2E8F0;
  border-left: 3px solid #3B82F6;
}
.chat-row-right .chat-bubble {
  border-top-right-radius: 4px;
  background: #F8FAFC;
  border: 1px solid #E2E8F0;
  border-right: 3px solid #10B981;
}

html[data-theme="dark"] .chat-bubble {
  background: #141D2B;
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: #E2E8F0;
  box-shadow: 0 4px 16px rgba(0,0,0,0.35);
}
html[data-theme="dark"] .chat-bubble:hover {
  box-shadow: 0 6px 20px rgba(0,0,0,0.45);
}
html[data-theme="dark"] .chat-row-left .chat-bubble {
  background: #131C2B;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-left: 3px solid #3B82F6;
}
html[data-theme="dark"] .chat-row-right .chat-bubble {
  background: #152234;
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-right: 3px solid #10B981;
}

.reply-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 8px;
  padding-bottom: 6px;
  border-bottom: 1px solid rgba(0,0,0,0.06);
  font-size: 12.5px;
}
html[data-theme="dark"] .reply-head {
  border-bottom-color: rgba(255,255,255,0.06);
}

.chat-author-name {
  font-weight: 700;
  font-size: 13.5px;
  color: var(--text);
  letter-spacing: -0.1px;
}
html[data-theme="dark"] .chat-author-name {
  color: #F8FAFC;
}

.chat-role-pill {
  font-size: 10.5px;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 6px;
  letter-spacing: 0.2px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.chat-role-pill.requester {
  background: rgba(59, 130, 246, 0.1);
  color: #2563EB;
  border: 1px solid rgba(59, 130, 246, 0.2);
}
html[data-theme="dark"] .chat-role-pill.requester {
  background: rgba(59, 130, 246, 0.15);
  color: #60A5FA;
  border-color: rgba(59, 130, 246, 0.3);
}
.chat-role-pill.staff {
  background: rgba(16, 185, 129, 0.1);
  color: #059669;
  border: 1px solid rgba(16, 185, 129, 0.25);
}
html[data-theme="dark"] .chat-role-pill.staff {
  background: rgba(16, 185, 129, 0.15);
  color: #34D399;
  border-color: rgba(16, 185, 129, 0.3);
}

.chat-seq-tag {
  font-size: 10.5px;
  font-weight: 600;
  padding: 2px 6px;
  border-radius: 4px;
  background: rgba(148, 163, 184, 0.12);
  color: #64748B;
  border: 1px solid rgba(148, 163, 184, 0.2);
}
html[data-theme="dark"] .chat-seq-tag {
  background: rgba(148, 163, 184, 0.1);
  color: #94A3B8;
  border-color: rgba(148, 163, 184, 0.15);
}

.chat-timestamp {
  font-size: 11.5px;
  color: #64748B;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-weight: 500;
}
html[data-theme="dark"] .chat-timestamp {
  color: #94A3B8;
}

.chat-message-text {
  margin: 6px 0 0;
  white-space: pre-wrap;
  font-size: 14px;
  line-height: 1.6;
  color: var(--text);
  word-break: break-word;
}
html[data-theme="dark"] .chat-message-text {
  color: #E2E8F0;
}

.reply.internal {
  background: #FFFDF5;
  border: 1px solid #FDE68A;
  border-left: 3px solid #F59E0B;
  border-radius: 14px;
  padding: 14px 18px;
  margin: 6px 0;
  box-shadow: 0 2px 6px rgba(245, 158, 11, 0.05);
  color: var(--text);
}
html[data-theme="dark"] .reply.internal {
  background: #1E1A11;
  border-color: rgba(245, 158, 11, 0.25);
  border-left-color: #F59E0B;
  color: #FDE68A;
  box-shadow: 0 4px 14px rgba(0,0,0,0.3);
}

/* ==========================================================
   Chat Thread Scroll Box (4-5 Messages Viewport)
   ========================================================== */
.thread-container-wrapper {
  position: relative;
}

.thread {
  max-height: 520px;
  min-height: 180px;
  overflow-y: auto;
  overflow-x: hidden;
  padding: 18px;
  scroll-behavior: smooth;
  scrollbar-width: thin;
  scrollbar-color: rgba(37, 99, 235, 0.35) transparent;
}

.thread::-webkit-scrollbar {
  width: 6px;
}
.thread::-webkit-scrollbar-track {
  background: transparent;
}
.thread::-webkit-scrollbar-thumb {
  background: rgba(37, 99, 235, 0.25);
  border-radius: 10px;
}
.thread::-webkit-scrollbar-thumb:hover {
  background: rgba(37, 99, 235, 0.5);
}

html[data-theme="dark"] .thread {
  scrollbar-color: rgba(255, 255, 255, 0.22) transparent;
}
html[data-theme="dark"] .thread::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.22);
}
html[data-theme="dark"] .thread::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 255, 255, 0.4);
}

.scroll-top-btn,
.scroll-bottom-btn {
  position: absolute;
  right: 24px;
  background: var(--surface);
  color: var(--blue);
  border: 1.5px solid var(--blue);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.18);
  border-radius: 24px;
  padding: 6px 14px;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
  z-index: 10;
  opacity: 0;
  pointer-events: none;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.scroll-bottom-btn {
  bottom: 20px;
  transform: translateY(8px);
}

.scroll-top-btn {
  top: 65px;
  transform: translateY(-8px);
}

.scroll-bottom-btn.visible,
.scroll-top-btn.visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.scroll-top-btn:hover,
.scroll-bottom-btn:hover {
  background: var(--blue);
  color: #FFFFFF;
  box-shadow: 0 6px 20px rgba(37, 99, 235, 0.4);
}

.system-msg {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin: 16px 0;
  text-align: center;
}
.system-msg .line {
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--border), transparent);
}
.pill {
  padding: 4px 14px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  letter-spacing: 0.2px;
}
.pill-resolved { background: rgba(16,185,129,0.12); color: #059669; border: 1px solid rgba(16,185,129,0.25); }
.pill-reopened { background: rgba(239,68,68,0.12); color: #DC2626; border: 1px solid rgba(239,68,68,0.25); }
.pill-neutral { background: rgba(100,116,139,0.12); color: #475569; border: 1px solid rgba(100,116,139,0.25); }
html[data-theme="dark"] .pill-resolved { background: rgba(16,185,129,0.15); color: #34D399; border-color: rgba(16,185,129,0.3); }
html[data-theme="dark"] .pill-reopened { background: rgba(239,68,68,0.15); color: #F87171; border-color: rgba(239,68,68,0.3); }
html[data-theme="dark"] .pill-neutral { background: rgba(148,163,184,0.12); color: #94A3B8; border-color: rgba(148,163,184,0.2); }

.attachment-thumb {
  width: 90px;
  height: 90px;
  object-fit: cover;
  border-radius: 10px;
  border: 1px solid var(--border);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.attachment-thumb:hover {
  transform: scale(1.05);
  box-shadow: 0 6px 16px rgba(0,0,0,0.15);
}
.unread-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--blue);
  display: inline-block;
  margin-right: 6px;
}

/* ==========================================================
   Pricing Page Cards & Grid - Modern Executive SaaS Design
   ========================================================== */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 270px), 1fr));
  gap: 24px;
  margin: 24px 0;
  align-items: stretch;
  width: 100%;
  box-sizing: border-box;
}
.price-card {
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: 18px;
  padding: 28px 22px 24px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.04);
  text-align: center;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  display: flex;
  flex-direction: column;
  width: 100%;
  box-sizing: border-box;
  overflow-wrap: break-word;
}
.price-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.08);
  border-color: var(--blue);
}
.price-card.featured {
  border: 2px solid #6366F1;
  box-shadow: 0 12px 32px rgba(99, 102, 241, 0.16), 0 2px 8px rgba(0, 0, 0, 0.04);
  background: linear-gradient(180deg, rgba(99, 102, 241, 0.05) 0%, var(--surface) 100%);
  transform: scale(1.02);
}
.price-card.featured:hover {
  transform: scale(1.02) translateY(-6px);
  box-shadow: 0 20px 45px rgba(99, 102, 241, 0.28);
  border-color: #4F46E5;
}
.price-card.featured .plan-icon-wrap {
  background: rgba(99, 102, 241, 0.14) !important;
  color: #6366F1 !important;
}
.price-card.featured .currency-symbol {
  color: #6366F1;
}
.price-card.featured .btn-primary {
  background: linear-gradient(135deg, #4F46E5 0%, #2563EB 100%);
  border: none;
  box-shadow: 0 4px 16px rgba(79, 70, 229, 0.38);
}
.price-card.featured .btn-primary:hover {
  background: linear-gradient(135deg, #4338CA 0%, #1D4ED8 100%);
  box-shadow: 0 6px 22px rgba(79, 70, 229, 0.5);
  transform: translateY(-1px);
}

/* Electric Indigo-to-Violet Gradient Badge for Popular Plan */
.plan-badge {
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(135deg, #4F46E5 0%, #7C3AED 55%, #EC4899 100%);
  color: #ffffff;
  padding: 5px 16px;
  border-radius: 30px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  box-shadow: 0 6px 18px rgba(79, 70, 229, 0.42);
  border: 1.5px solid rgba(255, 255, 255, 0.4);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
  z-index: 5;
}
.plan-badge i {
  color: #FDE047;
  font-size: 11.5px;
  filter: drop-shadow(0 1px 2px rgba(0,0,0,0.3));
}

/* Plan icon headers */
.plan-icon-wrap {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: rgba(37, 99, 235, 0.1);
  color: var(--blue);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  margin: 0 auto 12px;
  transition: var(--transition);
}
.price-card:hover .plan-icon-wrap {
  transform: scale(1.08) rotate(3deg);
}

/* Premier Rupee & Price Typography */
.price-display {
  display: inline-flex;
  align-items: baseline;
  justify-content: center;
  margin: 12px auto 2px;
  font-family: 'Plus Jakarta Sans', var(--font-heading), sans-serif;
  line-height: 1;
  text-align: center;
  position: relative;
}
.currency-symbol {
  font-family: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
  font-size: 22px;
  font-weight: 800;
  color: var(--blue);
  margin-right: 3px;
  transform: translateY(-8px);
  display: inline-block;
  letter-spacing: -0.02em;
  opacity: 0.95;
}
html[data-theme="dark"] .currency-symbol {
  color: #38BDF8;
}
.price-number {
  font-family: 'Plus Jakarta Sans', var(--font-heading), sans-serif;
  font-size: 42px;
  font-weight: 900;
  letter-spacing: -0.045em;
  color: var(--text);
  font-variant-numeric: tabular-nums;
  line-height: 1;
}
.price-cycle {
  font-size: 13.5px;
  color: var(--text-muted);
  font-weight: 600;
  margin-left: 5px;
}
.price-sub {
  font-size: 11.5px;
  color: var(--text-muted);
  font-weight: 500;
  margin: 0 auto 6px;
  letter-spacing: 0.01em;
}

.price-display.custom-price {
  margin: 14px auto 4px;
}
.price-custom-text {
  font-family: var(--font-heading);
  font-size: 25px;
  font-weight: 900;
  letter-spacing: -0.03em;
  background: linear-gradient(135deg, #2563EB 0%, #06B6D4 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
}
html[data-theme="dark"] .price-custom-text {
  background: linear-gradient(135deg, #60A5FA 0%, #38BDF8 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* Asset Management inclusion badge */
.asset-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 5px 14px;
  border-radius: 20px;
  font-size: 11.5px;
  font-weight: 700;
  margin: 8px auto 14px;
  width: fit-content;
  max-width: 100%;
}
.asset-pill.included {
  background: rgba(16, 185, 129, 0.12);
  color: #059669;
  border: 1px solid rgba(16, 185, 129, 0.3);
}
html[data-theme="dark"] .asset-pill.included {
  color: #34D399;
  border-color: rgba(52, 211, 153, 0.3);
}
.asset-pill.excluded {
  background: rgba(148, 163, 184, 0.12);
  color: var(--text-muted);
  border: 1px solid var(--border);
  font-weight: 600;
}

.price-feature-checklist {
  list-style: none;
  padding: 0;
  margin: 18px 0 24px;
  text-align: left;
  font-size: 13px;
  color: var(--text);
  border-top: 1px solid var(--border);
  padding-top: 16px;
  flex: 1;
}
.price-feature-checklist li {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  margin-bottom: 10px;
  line-height: 1.45;
}
.price-feature-checklist li i {
  margin-top: 2px;
  flex-shrink: 0;
  font-size: 13px;
}

/* ==========================================================
   Utilities & Footer
   ========================================================== */
.d-none { display: none !important; }
.d-flex { display: flex; }
.d-block { display: block; }
.align-center { align-items: center; }
.justify-between { justify-content: space-between; }
.justify-center { justify-content: center; }
.justify-end { justify-content: flex-end; }
.gap-1 { gap: 4px; }
.gap-2 { gap: 8px; }
.gap-3 { gap: 14px; }
.mb-1 { margin-bottom: 4px; }
.mb-2 { margin-bottom: 8px; }
.mb-3 { margin-bottom: 14px; }
.mb-4 { margin-bottom: 20px; }
.mt-1 { margin-top: 4px; }
.mt-2 { margin-top: 8px; }
.mt-3 { margin-top: 14px; }
.mt-4 { margin-top: 20px; }
.p-2 { padding: 8px; }
.p-3 { padding: 14px; }
.small { font-size: 12px; }
.text-muted { color: var(--text-muted); }
.text-center { text-align: center; }
.site-footer { text-align: center; padding: 24px 16px; font-size: 12px; color: var(--text-muted); }

/* ==========================================================
   Responsive Grid & Utility Helpers
   ========================================================== */
.row {
  display: flex;
  flex-wrap: wrap;
  margin-left: -8px;
  margin-right: -8px;
}
.col-12 { flex: 0 0 100%; max-width: 100%; padding-left: 8px; padding-right: 8px; box-sizing: border-box; }
.col-6 { flex: 0 0 50%; max-width: 50%; padding-left: 8px; padding-right: 8px; box-sizing: border-box; }
.col-4 { flex: 0 0 33.333%; max-width: 33.333%; padding-left: 8px; padding-right: 8px; box-sizing: border-box; }

.filter-grid-bar {
  display: grid;
  grid-template-columns: 2fr repeat(auto-fit, minmax(130px, 1fr)) auto auto;
  gap: 8px;
  align-items: center;
}

/* ==========================================================
   Mobile Responsiveness & Lightweight Performance
   ========================================================== */
@media (max-width: 768px) {
  .row .col-6,
  .row .col-4 {
    flex: 0 0 100% !important;
    max-width: 100% !important;
  }
  .filter-grid-bar {
    grid-template-columns: 1fr !important;
    gap: 10px !important;
  }
  .pricing-hero {
    padding: 36px 18px;
  }
  .pricing-hero h1 {
    font-size: 26px !important;
  }
  .pricing-hero p {
    font-size: 14px !important;
  }
  .pricing-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .price-card.featured {
    transform: none !important;
  }
  .price-card.featured:hover {
    transform: translateY(-3px) !important;
  }
  .chat-bubble {
    max-width: 88%;
    font-size: 13.5px;
    padding: 12px 14px;
  }
  .chat-avatar {
    width: 32px;
    height: 32px;
    font-size: 12px;
  }
  .section-title {
    font-size: 22px !important;
  }
  .page-wrap {
    padding: 16px 12px 40px !important;
  }
  .table-wrap,
  .table-responsive {
    overflow-x: auto !important;
    -webkit-overflow-scrolling: touch !important;
    width: 100% !important;
    display: block !important;
    border-radius: 12px !important;
  }
  .table-wrap table,
  .table-responsive table,
  table.table,
  table {
    min-width: 720px !important;
    width: 100% !important;
  }
  .form-control, .form-select, .btn {
    min-height: 40px;
    font-size: 14px;
  }
  .modal-dialog,
  #addAdminModal .card,
  #deleteCompanyModal .card {
    max-width: 95vw !important;
    margin: 10px auto !important;
  }
  .stats {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 10px !important;
  }
  .stat-card {
    padding: 12px 14px !important;
  }
  .stat-num {
    font-size: 20px !important;
  }
  .d-flex.align-center,
  .d-flex.justify-between {
    flex-wrap: wrap;
    gap: 8px;
  }
}

@media (max-width: 480px) {
  .stats {
    grid-template-columns: 1fr !important;
  }
  .chat-bubble {
    max-width: 94%;
  }
  .d-flex.justify-between {
    flex-wrap: wrap;
    gap: 8px;
  }
  .btn-block-mobile {
    width: 100% !important;
    display: block !important;
  }
}

/* =====================================================================
   Deep-Link Target & Notification Highlight / Pulse Animations
   ===================================================================== */
@keyframes notifPulseGlow {
  0% {
    box-shadow: 0 0 0 0 rgba(100, 116, 139, 0.7), 0 0 20px rgba(100, 116, 139, 0.45);
    background-color: rgba(100, 116, 139, 0.24);
    border-color: #64748B;
    transform: scale(1.02);
  }
  20% {
    box-shadow: 0 0 0 8px rgba(100, 116, 139, 0), 0 0 24px rgba(100, 116, 139, 0.55);
    background-color: rgba(100, 116, 139, 0.32);
    border-color: #475569;
    transform: scale(1.03);
  }
  40% {
    box-shadow: 0 0 0 0 rgba(100, 116, 139, 0.4), 0 0 16px rgba(100, 116, 139, 0.35);
    background-color: rgba(100, 116, 139, 0.20);
    border-color: #64748B;
    transform: scale(1.015);
  }
  65% {
    box-shadow: 0 0 0 6px rgba(100, 116, 139, 0), 0 0 10px rgba(100, 116, 139, 0.20);
    background-color: rgba(100, 116, 139, 0.10);
    border-color: #94A3B8;
    transform: scale(1.005);
  }
  100% {
    box-shadow: none;
    background-color: transparent;
    border-color: var(--border);
    transform: scale(1);
  }
}

@keyframes highlightFlashBlink {
  0%, 100% {
    background-color: transparent;
    box-shadow: none;
    transform: scale(1);
  }
  20%, 60% {
    background-color: rgba(100, 116, 139, 0.22);
    border-color: rgba(100, 116, 139, 0.5);
    box-shadow: 0 0 16px rgba(100, 116, 139, 0.35);
    transform: scale(1.01);
  }
  40%, 80% {
    background-color: rgba(100, 116, 139, 0.10);
  }
}

.highlight-flash,
.highlight-pulse-target,
.highlight-note-item,
.highlight-exact-item {
  animation: notifPulseGlow 3.2s cubic-bezier(0.25, 1, 0.5, 1) forwards !important;
  border-radius: 8px;
  position: relative;
  z-index: 10;
  transform-origin: center center;
  transition: all 0.3s ease;
}

.highlight-flash-row {
  animation: highlightFlashBlink 3.2s ease-in-out forwards !important;
}

/* ==========================================================
   Dashboard Modern Redesign (Stats Grid & Onboarding Checklist)
   ========================================================== */
.dash-welcome-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-left: 4.5px solid var(--primary);
  border-radius: 16px;
  padding: 22px 26px;
  box-shadow: 0 1px 3px 0 rgba(15, 23, 42, 0.05), 0 1px 2px -1px rgba(15, 23, 42, 0.03);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 24px;
  position: relative;
  overflow: hidden;
}

.dash-welcome-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  height: 2px;
  width: 100%;
  background: var(--primary-gradient);
  opacity: 0.8;
}

.dash-welcome-title {
  font-size: 21px;
  font-weight: 800;
  color: var(--text);
  margin: 0 0 4px;
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  letter-spacing: -0.02em;
}

.dash-welcome-subtitle {
  color: var(--text-muted);
  font-size: 13.5px;
  margin: 0;
}

/* Onboarding Setup Guide */
.onboarding-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  margin-bottom: 24px;
  overflow: hidden;
}

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

.onboarding-title-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
}

.onboarding-icon-badge {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: rgba(37, 99, 235, 0.12);
  color: var(--blue);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
}

.onboarding-progress-wrap {
  display: flex;
  align-items: center;
  gap: 12px;
}

.onboarding-progress-bar {
  width: 120px;
  height: 8px;
  background: var(--border);
  border-radius: 999px;
  overflow: hidden;
}

.onboarding-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--blue), #10B981);
  border-radius: 999px;
  transition: width 0.4s ease;
}

.onboarding-list {
  padding: 14px 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  list-style: none;
  margin: 0;
}

.onboarding-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--bg);
  transition: var(--transition);
  gap: 12px;
}

.onboarding-item:hover {
  border-color: rgba(37, 99, 235, 0.35);
  box-shadow: var(--shadow-xs);
  transform: translateX(2px);
}

.onboarding-item.is-done {
  background: rgba(16, 185, 129, 0.04);
  border-color: rgba(16, 185, 129, 0.22);
}

.onboarding-item-left {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  flex: 1;
}

.onboarding-status-icon {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  flex-shrink: 0;
}

.onboarding-item.is-done .onboarding-status-icon {
  background: #10B981;
  color: #FFFFFF;
  box-shadow: 0 0 10px rgba(16, 185, 129, 0.35);
}

.onboarding-item.is-pending .onboarding-status-icon {
  background: var(--surface);
  border: 1.5px solid var(--border);
  color: var(--text-muted);
}

.onboarding-text {
  min-width: 0;
}

.onboarding-item-title {
  font-weight: 700;
  font-size: 13.5px;
  color: var(--text);
  margin-bottom: 2px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.onboarding-item.is-done .onboarding-item-title {
  color: var(--text-muted);
}

.onboarding-item-desc {
  font-size: 12px;
  color: var(--text-muted);
  line-height: 1.4;
}

.onboarding-item-right {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.onboarding-done-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(16, 185, 129, 0.12);
  color: #059669;
  font-weight: 700;
  font-size: 11.5px;
  border: 1px solid rgba(16, 185, 129, 0.25);
}

html[data-theme="dark"] .onboarding-done-badge {
  color: #34D399;
  background: rgba(16, 185, 129, 0.18);
}

@media (max-width: 600px) {
  .onboarding-item {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }
  .onboarding-item-right {
    width: 100%;
    justify-content: flex-end;
  }
  .onboarding-header {
    flex-direction: column;
    align-items: flex-start;
  }
  .dash-welcome-card {
    padding: 16px;
  }
}

/* ==========================================================
   DeskOps Brand & Vector Logo Aesthetics
   ========================================================== */
.deskops-brand-logo, .rematrix-brand-logo {
  transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1), filter 0.2s ease;
  filter: drop-shadow(0 2px 8px rgba(37, 99, 235, 0.12));
}

.deskops-brand-logo:hover, .rematrix-brand-logo:hover {
  transform: translateY(-1px) scale(1.02);
  filter: drop-shadow(0 4px 14px rgba(6, 182, 212, 0.25));
}

/* ==========================================================
   Executive Co-Branded Tenant Navbar Pill
   ========================================================== */
.tenant-brand-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  padding: 4px 12px 4px 5px;
  border-radius: 12px;
  text-decoration: none !important;
  transition: all 0.22s cubic-bezier(0.16, 1, 0.3, 1);
  backdrop-filter: blur(8px);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
}

.tenant-brand-badge:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(56, 189, 248, 0.45);
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(6, 182, 212, 0.25);
}

.tenant-brand-logo-frame {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #1E293B;
  border: 1px solid rgba(255, 255, 255, 0.18);
  flex-shrink: 0;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.2);
}

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

.tenant-brand-fallback {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 800;
  color: #38BDF8;
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.35), rgba(6, 182, 212, 0.25));
  letter-spacing: -0.02em;
}

.tenant-brand-text {
  display: flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
}

.tenant-brand-name {
  font-size: 14.5px;
  font-weight: 700;
  color: #F8FAFC;
  letter-spacing: -0.01em;
  max-width: 170px;
  overflow: hidden;
  text-overflow: ellipsis;
}

.tenant-brand-pill {
  font-family: var(--font-heading), 'Plus Jakarta Sans', sans-serif;
  font-size: 13.5px;
  font-weight: 900;
  letter-spacing: -0.03em;
  color: #FFFFFF;
  display: inline-flex;
  align-items: center;
  margin-left: 2px;
}
.tenant-brand-pill span,
.tenant-brand-pill .ops-highlight {
  color: #0EA5E9 !important;
}

.deskops-brand-word {
  font-family: var(--font-heading), 'Plus Jakarta Sans', sans-serif;
  font-weight: 900;
  letter-spacing: -0.03em;
  color: currentColor;
}
.deskops-brand-word span,
.deskops-brand-word .ops-highlight {
  color: #0EA5E9 !important;
}


