/**
 * Nexus - Ultra Modern & Premium Theme for Sngine 4.5+
 * Design System, Glassmorphism, Micro-Interactions & Enhanced Components
 */

/* ==========================================================================
   01. DESIGN TOKENS & CSS VARIABLES
   ========================================================================== */
:root {
  /* Brand Typography */
  --nexus-font-sans: 'Plus Jakarta Sans', 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  
  /* Light Mode Palette */
  --nexus-bg: #f6f8fc;
  --nexus-surface: #ffffff;
  --nexus-surface-hover: #f8fafc;
  --nexus-border: rgba(226, 232, 240, 0.85);
  --nexus-border-focus: #6366f1;
  --nexus-text-main: #0f172a;
  --nexus-text-muted: #64748b;
  --nexus-text-light: #94a3b8;
  
  /* Primary Gradients & Accents */
  --nexus-primary: #6366f1;
  --nexus-primary-hover: #4f46e5;
  --nexus-primary-light: rgba(99, 102, 241, 0.1);
  --nexus-gradient-primary: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
  --nexus-gradient-accent: linear-gradient(135deg, #3b82f6 0%, #06b6d4 100%);
  --nexus-gradient-warm: linear-gradient(135deg, #f59e0b 0%, #ef4444 100%);
  --nexus-gradient-rose: linear-gradient(135deg, #ec4899 0%, #8b5cf6 100%);
  --nexus-gradient-story: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
  
  /* Soft Layered Shadows */
  --nexus-shadow-xs: 0 1px 2px 0 rgba(15, 23, 42, 0.04);
  --nexus-shadow-sm: 0 2px 6px 0 rgba(15, 23, 42, 0.05);
  --nexus-shadow-md: 0 6px 16px -2px rgba(15, 23, 42, 0.06), 0 2px 6px -1px rgba(15, 23, 42, 0.03);
  --nexus-shadow-lg: 0 14px 28px -4px rgba(15, 23, 42, 0.08), 0 4px 10px -2px rgba(15, 23, 42, 0.04);
  --nexus-shadow-xl: 0 22px 35px -6px rgba(15, 23, 42, 0.10);
  --nexus-shadow-glow: 0 8px 25px -4px rgba(99, 102, 241, 0.45);
  
  /* Radii */
  --nexus-radius-sm: 8px;
  --nexus-radius-md: 12px;
  --nexus-radius-lg: 16px;
  --nexus-radius-xl: 20px;
  --nexus-radius-full: 9999px;

  /* Glassmorphism */
  --nexus-glass-bg: rgba(255, 255, 255, 0.85);
  --nexus-glass-border: rgba(255, 255, 255, 0.6);
  --nexus-glass-blur: blur(16px) saturate(180%);
}

/* Dark Mode Tokens */
body.night-mode {
  --nexus-bg: #0b0f19;
  --nexus-surface: #131b2e;
  --nexus-surface-hover: #1a253e;
  --nexus-border: rgba(30, 41, 59, 0.8);
  --nexus-border-focus: #818cf8;
  --nexus-text-main: #f8fafc;
  --nexus-text-muted: #94a3b8;
  --nexus-text-light: #64748b;
  --nexus-primary-light: rgba(99, 102, 241, 0.18);
  
  --nexus-shadow-sm: 0 2px 6px 0 rgba(0, 0, 0, 0.25);
  --nexus-shadow-md: 0 6px 16px -2px rgba(0, 0, 0, 0.35);
  --nexus-shadow-lg: 0 14px 28px -4px rgba(0, 0, 0, 0.45);
  --nexus-shadow-xl: 0 22px 35px -6px rgba(0, 0, 0, 0.55);
  --nexus-shadow-glow: 0 8px 25px -4px rgba(129, 140, 248, 0.4);
  
  --nexus-glass-bg: rgba(15, 23, 42, 0.88);
  --nexus-glass-border: rgba(30, 41, 59, 0.8);
}

/* ==========================================================================
   02. BASE OVERRIDES & TYPOGRAPHY
   ========================================================================== */
body {
  font-family: var(--nexus-font-sans) !important;
  background-color: var(--nexus-bg) !important;
  color: var(--nexus-text-main) !important;
  letter-spacing: -0.011em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--nexus-font-sans);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--nexus-text-main);
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 7px;
  height: 7px;
}
::-webkit-scrollbar-track {
  background: transparent;
}
::-webkit-scrollbar-thumb {
  background: rgba(148, 163, 184, 0.4);
  border-radius: var(--nexus-radius-full);
}
::-webkit-scrollbar-thumb:hover {
  background: rgba(100, 116, 139, 0.7);
}

/* ==========================================================================
/* ==========================================================================
   02.1 VIBRANT THEME ICON SUITE
   Day Mode: Premium Indigo (#6366f1)
   Night Mode: Vibrant Indigo (#818cf8)
   Hover State: Dynamic Accent (#4f46e5 / #a5b4fc)
   ========================================================================== */

/* Header Navigation Icons */
.header-icon,
.header-icon * {
  color: #475569 !important;
  fill: #475569 !important;
  transition: color 0.2s ease, fill 0.2s ease, transform 0.2s ease !important;
}
body.night-mode .header-icon,
body.night-mode .header-icon * {
  color: #cbd5e1 !important;
  fill: #cbd5e1 !important;
}
.header-icon.active,
.header-icon.active *,
.main-header .navbar-wrapper ul > li > a:hover .header-icon,
.main-header .navbar-wrapper ul > li > a:hover .header-icon * {
  color: var(--nexus-primary, #6366f1) !important;
  fill: var(--nexus-primary, #6366f1) !important;
}
body.night-mode .header-icon.active,
body.night-mode .header-icon.active *,
body.night-mode .main-header .navbar-wrapper ul > li > a:hover .header-icon,
body.night-mode .main-header .navbar-wrapper ul > li > a:hover .header-icon * {
  color: #818cf8 !important;
  fill: #818cf8 !important;
}

/* Main Icons (Sidebar, Dropdowns, Publisher, Modals) */
.main-icon,
.main-icon *,
.x-form-tools,
.x-form-tools * {
  color: var(--nexus-primary, #6366f1) !important;
  fill: var(--nexus-primary, #6366f1) !important;
  transition: color 0.2s ease, fill 0.2s ease !important;
}
body.night-mode .main-icon,
body.night-mode .main-icon *,
body.night-mode .x-form-tools,
body.night-mode .x-form-tools * {
  color: #818cf8 !important;
  fill: #818cf8 !important;
}

/* Dropdown Menu Icons */
.dropdown-menu .dropdown-item .main-icon,
.dropdown-menu .dropdown-item .main-icon *,
.dropdown-menu .dropdown-item i,
.dropdown-menu .dropdown-item svg,
.dropdown-item .main-icon,
.dropdown-item .main-icon *,
.dropdown-item i,
.dropdown-item svg {
  color: var(--nexus-primary, #6366f1) !important;
  fill: var(--nexus-primary, #6366f1) !important;
  transition: all 0.2s ease !important;
}
body.night-mode .dropdown-menu .dropdown-item .main-icon,
body.night-mode .dropdown-menu .dropdown-item .main-icon *,
body.night-mode .dropdown-menu .dropdown-item i,
body.night-mode .dropdown-menu .dropdown-item svg,
body.night-mode .dropdown-item .main-icon,
body.night-mode .dropdown-item .main-icon *,
body.night-mode .dropdown-item i,
body.night-mode .dropdown-item svg {
  color: #818cf8 !important;
  fill: #818cf8 !important;
}

/* Dropdown Menu Item Hover */
.dropdown-menu .dropdown-item:hover .main-icon,
.dropdown-menu .dropdown-item:hover .main-icon *,
.dropdown-menu .dropdown-item:hover i,
.dropdown-menu .dropdown-item:hover svg,
.dropdown-item:hover .main-icon,
.dropdown-item:hover .main-icon *,
.dropdown-item:hover i,
.dropdown-item:hover svg {
  color: #4f46e5 !important;
  fill: #4f46e5 !important;
  transform: scale(1.1);
}
body.night-mode .dropdown-menu .dropdown-item:hover .main-icon,
body.night-mode .dropdown-menu .dropdown-item:hover .main-icon *,
body.night-mode .dropdown-menu .dropdown-item:hover i,
body.night-mode .dropdown-menu .dropdown-item:hover svg,
body.night-mode .dropdown-item:hover .main-icon,
body.night-mode .dropdown-item:hover .main-icon *,
body.night-mode .dropdown-item:hover i,
body.night-mode .dropdown-item:hover svg {
  color: #a5b4fc !important;
  fill: #a5b4fc !important;
}

/* Action Icons (Feed Actions, Posts, Comments, Shares) */
.action-icon,
.action-icon * {
  color: #64748b !important;
  fill: #64748b !important;
  transition: color 0.2s ease, fill 0.2s ease !important;
}
body.night-mode .action-icon,
body.night-mode .action-icon * {
  color: #94a3b8 !important;
  fill: #94a3b8 !important;
}
.action-icon:hover,
.action-icon:hover *,
.action-icon.active,
.action-icon.active * {
  color: var(--nexus-primary, #6366f1) !important;
  fill: var(--nexus-primary, #6366f1) !important;
}
body.night-mode .action-icon:hover,
body.night-mode .action-icon:hover *,
body.night-mode .action-icon.active,
body.night-mode .action-icon.active * {
  color: #818cf8 !important;
  fill: #818cf8 !important;
}

/* Navigation & Sidebar FontAwesome Icons */
.main-side-nav li a i,
.card-header i,
.card-header .main-icon,
.side-nav li a i,
.side-nav li a .main-icon {
  color: var(--nexus-primary, #6366f1) !important;
  fill: var(--nexus-primary, #6366f1) !important;
}
body.night-mode .main-side-nav li a i,
body.night-mode .card-header i,
body.night-mode .card-header .main-icon,
body.night-mode .side-nav li a i,
body.night-mode .side-nav li a .main-icon {
  color: #818cf8 !important;
  fill: #818cf8 !important;
}

/* Sidebar Hover State */
.main-side-nav li:hover a .main-icon,
.main-side-nav li:hover a .main-icon *,
.main-side-nav li:hover a i {
  color: #4f46e5 !important;
  fill: #4f46e5 !important;
  transform: scale(1.08);
}
body.night-mode .main-side-nav li:hover a .main-icon,
body.night-mode .main-side-nav li:hover a .main-icon *,
body.night-mode .main-side-nav li:hover a i {
  color: #a5b4fc !important;
  fill: #a5b4fc !important;
}

/* ==========================================================================
   03. HEADER & TOP NAVIGATION
   ========================================================================== */
.main-header {
  background: var(--nexus-glass-bg) !important;
  backdrop-filter: var(--nexus-glass-blur) !important;
  -webkit-backdrop-filter: var(--nexus-glass-blur) !important;
  border-bottom: 1px solid var(--nexus-border) !important;
  box-shadow: var(--nexus-shadow-sm) !important;
  height: 70px;
  transition: background 0.3s ease, border-color 0.3s ease;
}

/* Header Search */
.main-header .search-wrapper .form-control {
  border-radius: var(--nexus-radius-full) !important;
  background: rgba(241, 245, 249, 0.75) !important;
  border: 1px solid transparent !important;
  padding-left: 42px !important;
  font-size: 14px;
  height: 42px;
  color: var(--nexus-text-main) !important;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}
body.night-mode .main-header .search-wrapper .form-control {
  background: rgba(30, 41, 59, 0.7) !important;
  border-color: rgba(51, 65, 85, 0.5) !important;
}
.main-header .search-wrapper .form-control:focus {
  background: var(--nexus-surface) !important;
  border-color: var(--nexus-primary) !important;
  box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.15) !important;
}

/* Header Action Icons & Vertical Centering */
.main-header .navbar-wrapper {
  height: 70px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: flex-end !important;
}
.main-header .navbar-wrapper > ul {
  height: 70px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: flex-end !important;
  margin: 0 !important;
  padding: 0 !important;
  list-style: none !important;
}
.main-header .navbar-wrapper > ul > li {
  height: 70px !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  margin: 0 3px !important;
}
.main-header .navbar-wrapper > ul > li > a {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 42px !important;
  height: 42px !important;
  border-radius: var(--nexus-radius-full) !important;
  margin: 14px 3px !important;
  padding: 0 !important;
  transition: all 0.2s ease !important;
  position: relative !important;
  text-decoration: none !important;
  line-height: 0 !important;
  font-size: 0 !important;
}
.main-header .navbar-wrapper > ul > li > a:hover {
  background: var(--nexus-primary-light) !important;
  transform: none !important;
}
body.night-mode .main-header .navbar-wrapper > ul > li > a:hover {
  background: rgba(255, 255, 255, 0.08) !important;
}
.main-header .navbar-wrapper > ul > li > a .svg-container,
.main-header .navbar-wrapper > ul > li > a .header-icon {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 22px !important;
  height: 22px !important;
  transition: transform 0.2s ease !important;
  margin: 0 auto !important;
  padding: 0 !important;
  line-height: 0 !important;
  vertical-align: middle !important;
}
.main-header .navbar-wrapper > ul > li > a:hover .header-icon {
  transform: scale(1.08) !important;
}
.main-header .navbar-wrapper > ul > li > a svg,
.main-header .navbar-wrapper > ul > li > a .header-icon svg,
.main-header .navbar-wrapper > ul > li > a .svg-container svg {
  display: block !important;
  width: 22px !important;
  height: 22px !important;
  max-width: 22px !important;
  max-height: 22px !important;
  margin: 0 auto !important;
  padding: 0 !important;
  vertical-align: middle !important;
}

/* ==========================================================================
   DROPDOWN WIDGET & NOTIFICATIONS LIST ISOLATION & RESET
   ========================================================================== */
.main-header .dropdown-menu.dropdown-widget,
.main-header .dropdown-widget {
  min-width: 360px !important;
  max-width: 440px !important;
  border-radius: 16px !important;
  padding: 0 !important;
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.4) !important;
  border: 1px solid rgba(255, 255, 255, 0.1) !important;
}
.main-header .dropdown-widget .dropdown-widget-body {
  padding: 0 !important;
  max-height: 360px !important;
  overflow-y: auto !important;
}
.main-header .dropdown-widget .dropdown-widget-body ul,
.main-header .dropdown-menu.dropdown-widget ul,
.main-header .dropdown-widget ul {
  display: block !important;
  width: 100% !important;
  height: auto !important;
  margin: 0 !important;
  padding: 0 !important;
  list-style: none !important;
  flex-direction: column !important;
}
.main-header .dropdown-widget .dropdown-widget-body ul > li,
.main-header .dropdown-menu.dropdown-widget ul > li,
.main-header .dropdown-widget ul > li,
.main-header .dropdown-widget .feeds-item,
.main-header .dropdown-widget .feeds-action-item {
  display: block !important;
  width: 100% !important;
  height: auto !important;
  min-height: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06) !important;
  box-sizing: border-box !important;
  clear: both !important;
  float: none !important;
}
.main-header .dropdown-widget .feeds-item:hover,
.main-header .dropdown-widget .feeds-action-item:hover {
  background: rgba(255, 255, 255, 0.05) !important;
}
.main-header .dropdown-widget .feeds-item > a.data-container,
.main-header .dropdown-widget .feeds-action-item > a {
  display: flex !important;
  flex-direction: row !important;
  align-items: flex-start !important;
  gap: 12px !important;
  width: 100% !important;
  height: auto !important;
  margin: 0 !important;
  padding: 12px 16px !important;
  border-radius: 0 !important;
  text-decoration: none !important;
  line-height: 1.4 !important;
  font-size: 13px !important;
  box-sizing: border-box !important;
  background: transparent !important;
  color: inherit !important;
}
.main-header .dropdown-widget .data-avatar {
  flex-shrink: 0 !important;
  width: 40px !important;
  height: 40px !important;
  float: none !important;
  margin: 0 !important;
  display: block !important;
}
.main-header .dropdown-widget .data-avatar img {
  width: 40px !important;
  height: 40px !important;
  max-width: 40px !important;
  max-height: 40px !important;
  border-radius: 50% !important;
  object-fit: cover !important;
  display: block !important;
  margin: 0 !important;
}
.main-header .dropdown-widget .data-content {
  flex: 1 1 auto !important;
  min-width: 0 !important;
  padding: 0 !important;
  margin: 0 !important;
  font-size: 13px !important;
  line-height: 1.4 !important;
  word-break: break-word !important;
  overflow-wrap: break-word !important;
  white-space: normal !important;
}
.main-header .dropdown-widget .data-content .name {
  font-weight: 600 !important;
  display: inline !important;
  margin-right: 4px !important;
}
.main-header .dropdown-widget .data-content .time,
.main-header .dropdown-widget .data-content .text-muted {
  font-size: 11.5px !important;
  margin-top: 3px !important;
  opacity: 0.75 !important;
}

/* Header Direct Night/Day Mode Button */
.nexus-header-mode-btn {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 40px !important;
  height: 40px !important;
  min-width: 40px !important;
  border-radius: 50% !important;
  background: rgba(255, 255, 255, 0.08) !important;
  border: 1px solid rgba(255, 255, 255, 0.14) !important;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1) !important;
  cursor: pointer !important;
  text-decoration: none !important;
  padding: 0 !important;
  line-height: 1 !important;
}

body:not(.night-mode) .nexus-header-mode-btn {
  background: rgba(15, 23, 42, 0.05) !important;
  border-color: rgba(15, 23, 42, 0.1) !important;
}

.nexus-header-mode-btn:hover {
  transform: rotate(20deg) scale(1.08) !important;
  background: rgba(99, 102, 241, 0.18) !important;
  border-color: var(--nexus-primary) !important;
  box-shadow: 0 0 14px rgba(99, 102, 241, 0.35) !important;
}

/* In Night Mode: Show Sun, Hide Moon */
body.night-mode .nexus-header-mode-btn .mode-icon-moon {
  display: none !important;
}
body.night-mode .nexus-header-mode-btn .mode-icon-sun {
  display: block !important;
  filter: drop-shadow(0 0 6px rgba(251, 191, 36, 0.5));
}

/* In Day Mode: Show Moon, Hide Sun */
body:not(.night-mode) .nexus-header-mode-btn .mode-icon-sun {
  display: none !important;
}
body:not(.night-mode) .nexus-header-mode-btn .mode-icon-moon {
  display: block !important;
  filter: drop-shadow(0 0 6px rgba(99, 102, 241, 0.4));
}

/* Header Wallet Pill */
.nexus-header-pill {
  display: inline-flex !important;
  align-items: center;
  padding: 6px 14px !important;
  border-radius: var(--nexus-radius-full) !important;
  background: rgba(241, 245, 249, 0.8);
  border: 1px solid var(--nexus-border);
  font-size: 13.5px;
  font-weight: 700;
  color: var(--nexus-text-main) !important;
  text-decoration: none !important;
  transition: all 0.2s ease;
  height: 38px;
}
body.night-mode .nexus-header-pill {
  background: rgba(30, 41, 59, 0.8);
}
.nexus-header-pill:hover {
  border-color: var(--nexus-primary);
  transform: translateY(-1px);
  box-shadow: var(--nexus-shadow-sm);
}

/* Notification Badge Pulse */
.main-header .navbar-wrapper ul > li > a .badge,
.main-header .navbar-wrapper .counter {
  position: absolute !important;
  top: 1px !important;
  right: 0 !important;
  background: #ef4444 !important;
  border: 2px solid var(--nexus-surface) !important;
  box-shadow: 0 2px 5px rgba(239, 68, 68, 0.4) !important;
  font-size: 10px !important;
  font-weight: 700 !important;
  line-height: 14px !important;
  padding: 1px 4px !important;
  border-radius: var(--nexus-radius-full) !important;
  z-index: 2 !important;
}

/* Header User Profile Avatar */
.main-header .user-menu {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 42px !important;
  height: 42px !important;
  margin: 14px 3px !important;
  padding: 0 !important;
  border-radius: var(--nexus-radius-full) !important;
  border: 2px solid rgba(255, 255, 255, 0.25) !important;
  background: transparent !important;
  transition: all 0.2s ease !important;
  overflow: hidden !important;
}
body.night-mode .main-header .user-menu {
  border-color: rgba(255, 255, 255, 0.2) !important;
  background: transparent !important;
}
.main-header .user-menu:hover {
  border-color: var(--nexus-primary) !important;
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.25) !important;
}
.main-header .user-menu img {
  width: 38px !important;
  height: 38px !important;
  max-width: 38px !important;
  max-height: 38px !important;
  border-radius: var(--nexus-radius-full) !important;
  object-fit: cover !important;
  display: block !important;
  margin: 0 !important;
  margin-top: 0 !important;
  border: none !important;
  box-shadow: none !important;
}

/* ==========================================================================
   04. USER SPOTLIGHT PROFILE CARD (LEFT SIDEBAR)
   ========================================================================== */
.nexus-user-spotlight-card {
  border-radius: var(--nexus-radius-xl) !important;
  overflow: hidden !important;
  box-shadow: var(--nexus-shadow-md) !important;
  border: 1px solid var(--nexus-border) !important;
}
.nexus-spotlight-cover {
  height: 80px !important;
  background: var(--nexus-gradient-primary) !important;
  position: relative !important;
  overflow: hidden !important;
}
.nexus-spotlight-overlay {
  position: absolute !important;
  inset: 0 !important;
  background: radial-gradient(circle at top right, rgba(255,255,255,0.2), transparent) !important;
}
.nexus-spotlight-avatar-wrap {
  position: relative !important;
  width: 76px !important;
  height: 76px !important;
  max-width: 76px !important;
  max-height: 76px !important;
  margin: -38px auto 10px !important;
}
.nexus-spotlight-avatar-wrap a {
  display: inline-block !important;
  width: 76px !important;
  height: 76px !important;
  border-radius: 50% !important;
  overflow: hidden !important;
}
.nexus-spotlight-avatar {
  width: 76px !important;
  height: 76px !important;
  max-width: 76px !important;
  max-height: 76px !important;
  border-radius: 50% !important;
  border: 3px solid var(--nexus-surface) !important;
  box-shadow: var(--nexus-shadow-md) !important;
  object-fit: cover !important;
  display: block !important;
  transition: transform 0.2s ease !important;
}
.nexus-spotlight-avatar:hover {
  transform: scale(1.05) !important;
}
.nexus-verified-badge {
  position: absolute;
  bottom: 2px;
  right: 2px;
  background: #fff;
  color: #0284c7;
  border-radius: 50%;
  font-size: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 5px rgba(0,0,0,0.15);
}
.nexus-spotlight-name a {
  font-size: 16px;
  font-weight: 700;
  color: var(--nexus-text-main);
  text-decoration: none;
}
.nexus-spotlight-username {
  font-size: 13px;
  color: var(--nexus-text-muted);
}
.nexus-spotlight-stats {
  display: flex;
  justify-content: space-around;
  background: rgba(241, 245, 249, 0.6);
  border-radius: var(--nexus-radius-lg);
  padding: 10px 6px;
  border: 1px solid var(--nexus-border);
}
body.night-mode .nexus-spotlight-stats {
  background: rgba(15, 23, 42, 0.6);
}
.nexus-spotlight-stats .stat-box {
  text-align: center;
  flex: 1;
}
.nexus-spotlight-stats .stat-val {
  font-size: 15px;
  font-weight: 800;
  color: var(--nexus-primary);
}
.nexus-spotlight-stats .stat-lbl {
  font-size: 11px;
  font-weight: 600;
  color: var(--nexus-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-top: 2px;
}
.btn-nexus-profile {
  background: var(--nexus-primary-light);
  color: var(--nexus-primary) !important;
  border: 1px solid transparent;
  border-radius: var(--nexus-radius-full);
  font-weight: 600;
  padding: 8px 16px;
  transition: all 0.2s ease;
}
.btn-nexus-profile:hover {
  background: var(--nexus-primary);
  color: #fff !important;
  box-shadow: 0 4px 14px rgba(99, 102, 241, 0.4);
}

/* ==========================================================================
   05. SMART GREETING BANNER (NEWSFEED)
   ========================================================================== */
.nexus-greeting-card {
  border-radius: var(--nexus-radius-xl) !important;
  border: 1px solid var(--nexus-border) !important;
  background: linear-gradient(135deg, var(--nexus-surface) 0%, var(--nexus-surface-hover) 100%) !important;
  box-shadow: var(--nexus-shadow-sm) !important;
  overflow: hidden;
  position: relative;
}
.nexus-greeting-card::after {
  content: '';
  position: absolute;
  right: -20px;
  top: -20px;
  width: 120px;
  height: 120px;
  background: var(--nexus-primary-light);
  border-radius: 50%;
  filter: blur(40px);
  pointer-events: none;
}
.nexus-greeting-emoji {
  font-size: 30px;
  width: 52px;
  height: 52px;
  background: var(--nexus-primary-light);
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.nexus-greeting-title {
  font-size: 17.5px;
  font-weight: 700;
  color: var(--nexus-text-main);
}
.nexus-name-highlight {
  color: var(--nexus-primary);
}
.nexus-greeting-sub {
  font-size: 13.5px;
}
.nexus-quick-date-badge {
  background: rgba(241, 245, 249, 0.8);
  border: 1px solid var(--nexus-border);
  padding: 6px 14px;
  border-radius: var(--nexus-radius-full);
  font-size: 13px;
  font-weight: 600;
  color: var(--nexus-text-muted);
}
body.night-mode .nexus-quick-date-badge {
  background: rgba(15, 23, 42, 0.8);
}

/* ==========================================================================
   06. TRENDING TOPICS WIDGET
   ========================================================================== */
.nexus-trending-widget {
  border-radius: var(--nexus-radius-xl) !important;
  border: 1px solid var(--nexus-border) !important;
  background: var(--nexus-surface) !important;
  box-shadow: var(--nexus-shadow-md) !important;
}
.nexus-fire-icon {
  font-size: 18px;
  animation: nexusFlame 1.5s infinite alternate ease-in-out;
}
@keyframes nexusFlame {
  0% { transform: scale(1) rotate(-3deg); }
  100% { transform: scale(1.15) rotate(3deg); }
}
.nexus-trending-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.nexus-trending-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 12px;
  border-radius: var(--nexus-radius-lg);
  text-decoration: none !important;
  background: rgba(241, 245, 249, 0.5);
  border: 1px solid transparent;
  transition: all 0.2s ease;
}
body.night-mode .nexus-trending-item {
  background: rgba(15, 23, 42, 0.5);
}
.nexus-trending-item:hover {
  background: var(--nexus-surface-hover);
  border-color: var(--nexus-primary);
  transform: translateX(4px);
}
.nexus-rank-badge {
  font-size: 12px;
  font-weight: 800;
  width: 26px;
  height: 26px;
  border-radius: 8px;
  background: #e2e8f0;
  color: #475569;
  display: flex;
  align-items: center;
  justify-content: center;
}
body.night-mode .nexus-rank-badge {
  background: #1e293b;
  color: #94a3b8;
}
.nexus-rank-badge.rank-first {
  background: linear-gradient(135deg, #f59e0b 0%, #ef4444 100%);
  color: #fff;
}
.nexus-rank-badge.rank-second {
  background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
  color: #fff;
}
.nexus-rank-badge.rank-third {
  background: linear-gradient(135deg, #3b82f6 0%, #06b6d4 100%);
  color: #fff;
}
.nexus-tag-info .tag-title {
  font-size: 14.5px;
  font-weight: 700;
  color: var(--nexus-text-main);
}
.nexus-tag-info .tag-meta {
  font-size: 12px;
  color: var(--nexus-text-muted);
}

/* ==========================================================================
   07. ULTRA LANDING PAGE (VISITOR HOMEPAGE)
   ========================================================================== */
.nexus-landing-wrapper {
  position: relative;
  overflow: hidden;
  min-height: 85vh;
  background: var(--nexus-bg);
}
.nexus-landing-bg-blobs {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}
.nexus-blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  opacity: 0.35;
}
.nexus-blob-1 {
  top: -100px;
  left: -100px;
  width: 500px;
  height: 500px;
  background: var(--nexus-primary);
}
.nexus-blob-2 {
  bottom: 0;
  right: -100px;
  width: 550px;
  height: 550px;
  background: #8b5cf6;
}
.nexus-blob-3 {
  top: 40%;
  left: 40%;
  width: 400px;
  height: 400px;
  background: #3b82f6;
  opacity: 0.2;
}

.nexus-hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--nexus-primary-light);
  border: 1px solid var(--nexus-primary);
  color: var(--nexus-primary);
  padding: 6px 16px;
  border-radius: var(--nexus-radius-full);
  font-size: 13.5px;
  font-weight: 700;
  letter-spacing: 0.02em;
}
.pulse-dot {
  width: 8px;
  height: 8px;
  background: var(--nexus-primary);
  border-radius: 50%;
  box-shadow: 0 0 0 0 rgba(99, 102, 241, 0.7);
  animation: nexusPulse 2s infinite;
}
.nexus-hero-title {
  font-size: 46px;
  font-weight: 800;
  line-height: 1.15;
  color: var(--nexus-text-main);
  letter-spacing: -0.03em;
}
.nexus-gradient-text {
  background: var(--nexus-gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}
.nexus-hero-desc {
  font-size: 17px;
  line-height: 1.6;
  color: var(--nexus-text-muted);
  max-width: 560px;
}
.nexus-hero-features {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}
.nexus-feature-pill {
  background: var(--nexus-surface);
  border: 1px solid var(--nexus-border);
  padding: 8px 16px;
  border-radius: var(--nexus-radius-full);
  font-size: 14px;
  font-weight: 600;
  box-shadow: var(--nexus-shadow-xs);
}
.nexus-hero-stats {
  display: flex;
  align-items: center;
  gap: 25px;
  margin-top: 35px;
  padding-top: 25px;
  border-top: 1px solid var(--nexus-border);
}
.nexus-hero-stats .stat-item .stat-num {
  font-size: 26px;
  font-weight: 800;
  color: var(--nexus-text-main);
}
.nexus-hero-stats .stat-item .stat-label {
  font-size: 13px;
  color: var(--nexus-text-muted);
  font-weight: 500;
}
.nexus-hero-stats .stat-divider {
  width: 1px;
  height: 35px;
  background: var(--nexus-border);
}

.nexus-landing-card {
  background: var(--nexus-surface);
  border: 1px solid var(--nexus-border);
  border-radius: 28px;
  padding: 40px;
  box-shadow: var(--nexus-shadow-xl);
  position: relative;
  backdrop-filter: blur(10px);
}

/* ==========================================================================
   08. GLOBAL MICRO-ANIMATIONS & INTERACTIVITY SUITE
   ========================================================================== */

/* 1. Page & Card Smooth Entrance */
.post {
  animation: nexusPostFadeIn 0.35s ease both !important;
}
@keyframes nexusPostFadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.card-widget,
.main-side-nav-card,
.publisher,
.stories-wrapper {
  animation: nexusFadeInUp 0.4s cubic-bezier(0.16, 1, 0.3, 1) both;
}
@keyframes nexusFadeInUp {
  0% {
    opacity: 0;
    transform: translateY(12px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

/* 2. Dropdown Menus Smooth Fade In (Preserves Popper Transform) */
.dropdown-menu {
  animation: nexusDropdownIn 0.18s cubic-bezier(0.16, 1, 0.3, 1);
}
@keyframes nexusDropdownIn {
  0% {
    opacity: 0;
  }
  100% {
    opacity: 1;
  }
}

/* 3. Post Actions Spring Bounce (React, Comment, Share) */
.post-actions .action-btn {
  transition: background 0.2s ease, color 0.2s ease, box-shadow 0.2s ease !important;
}
.post-actions .action-btn .action-icon,
.post-actions .action-btn svg,
.post-actions .action-btn i {
  transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1), fill 0.2s ease, color 0.2s ease !important;
  display: inline-block !important;
}
.post-actions .action-btn:hover .action-icon,
.post-actions .action-btn:hover svg,
.post-actions .action-btn:hover i {
  transform: scale(1.22) rotate(-8deg) !important;
}
.post-actions .action-btn:active {
  background: var(--nexus-primary-light) !important;
}

/* 4. Left Sidebar Menu Item Hover Dynamics */
.main-side-nav > li > a,
.main-side-nav > a {
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1) !important;
}
.main-side-nav > li > a:hover,
.main-side-nav > a:hover {
  transform: translateX(6px) !important;
  background: var(--nexus-surface-hover) !important;
}
.main-side-nav > li > a:hover .main-icon,
.main-side-nav > a:hover .main-icon {
  transform: scale(1.2) rotate(6deg) !important;
  transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1) !important;
}

/* 5. Header Action Buttons Interactive Pop */
.main-header .navbar-wrapper > ul > li > a {
  transition: all 0.25s cubic-bezier(0.34, 1.56, 0.64, 1) !important;
}
.main-header .navbar-wrapper > ul > li > a:hover {
  transform: scale(1.1) translateY(-1px) !important;
  background: var(--nexus-primary-light) !important;
}
.main-header .navbar-wrapper > ul > li > a:active {
  transform: scale(0.92) !important;
}

/* 6. All Interactive Buttons Spring Feedback */
.btn {
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1) !important;
}
.btn:hover {
  transform: translateY(-2px);
}
.btn:active {
  transform: scale(0.95) !important;
}

/* 7. Modal Dialogs Pop Animation */
.modal.show .modal-dialog {
  animation: nexusModalPop 0.3s cubic-bezier(0.34, 1.56, 0.64, 1) forwards !important;
}
@keyframes nexusModalPop {
  0% {
    opacity: 0;
    transform: scale(0.9) translateY(20px);
  }
  100% {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

/* 8. Publisher Tools Tabs Hover Pop */
.publisher-tools-tab {
  transition: all 0.25s cubic-bezier(0.34, 1.56, 0.64, 1) !important;
}
.publisher-tools-tab:hover {
  transform: translateY(-3px) scale(1.05) !important;
  box-shadow: 0 4px 12px rgba(99, 102, 241, 0.25) !important;
}

/* 9. Trending Widget Item Hover */
.nexus-trending-item {
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1) !important;
}
.nexus-trending-item:hover {
  transform: translateX(6px) scale(1.01) !important;
}
.nexus-trending-item:hover .nexus-rank-badge {
  transform: scale(1.15) rotate(-6deg);
  transition: transform 0.2s cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* 10. User Avatars Hover Pop */
.post .post-avatar img,
.comment .comment-avatar img,
.nexus-spotlight-avatar {
  transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.25s ease !important;
}
.post .post-avatar img:hover,
.comment .comment-avatar img:hover,
.nexus-spotlight-avatar:hover {
  transform: scale(1.08) !important;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15) !important;
}

/* Toast */
.nexus-toast {
  position: fixed;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%) translateY(100px);
  background: #1e293b;
  color: #fff;
  padding: 12px 24px;
  border-radius: 9999px;
  font-weight: 600;
  font-size: 14px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.35);
  border: 1px solid rgba(255,255,255,0.1);
  z-index: 1080;
  opacity: 0;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  pointer-events: none;
}
.nexus-toast.show {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
}


/* ==========================================================================
   09. LEFT SIDEBAR GENERAL ITEMS
   ========================================================================== */
.main-side-nav-card {
  border-radius: var(--nexus-radius-xl) !important;
}
.main-side-nav > li {
  margin-bottom: 6px !important;
}
.main-side-nav > li > a,
.main-side-nav > a {
  border-radius: var(--nexus-radius-md) !important;
  padding: 10px 14px !important;
  margin-bottom: 0 !important;
  font-weight: 500;
  font-size: 14.5px;
  display: flex !important;
  align-items: center;
  color: var(--nexus-text-main) !important;
  transition: all 0.2s ease !important;
  position: relative;
}
.main-side-nav > li > a:hover,
.main-side-nav > a:hover {
  background: var(--nexus-surface-hover) !important;
  transform: translateX(4px);
  color: var(--nexus-primary) !important;
}
.main-side-nav > li.active {
  margin-bottom: 8px !important;
}
.main-side-nav > li.active > a {
  background: var(--nexus-primary-light) !important;
  color: var(--nexus-primary) !important;
  font-weight: 600 !important;
}
.main-side-nav > li.active > a::before {
  content: '';
  position: absolute;
  left: 0;
  top: 6px;
  bottom: 6px;
  width: 4px;
  background: var(--nexus-gradient-primary);
  border-radius: 0 var(--nexus-radius-sm) var(--nexus-radius-sm) 0;
}
.main-side-nav .main-icon {
  width: 22px !important;
  height: 22px !important;
  margin-right: 12px !important;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.2s ease;
}
.main-side-nav > li > a:hover .main-icon {
  transform: scale(1.15);
}

/* Sidebar Menu Collapse Caret Spacing & End Alignment */
.main-side-nav a[data-bs-toggle="collapse"]:after,
.side-nav a[data-bs-toggle="collapse"]:after {
  margin-left: auto !important;
  padding-left: 12px !important;
  font-size: 12px !important;
  opacity: 0.75;
  display: inline-flex;
  align-items: center;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

html[dir="rtl"] .main-side-nav a[data-bs-toggle="collapse"]:after,
html[dir="rtl"] .side-nav a[data-bs-toggle="collapse"]:after {
  margin-left: 0 !important;
  margin-right: auto !important;
  padding-right: 12px !important;
}

.main-side-nav a[data-bs-toggle="collapse"]:hover:after,
.side-nav a[data-bs-toggle="collapse"]:hover:after {
  opacity: 1;
}

/* ==========================================================================
   10. STORIES CAROUSEL
   ========================================================================== */
.stories-wrapper {
  overflow-x: auto !important;
  overflow-y: visible !important;
  padding-bottom: 28px !important;
  margin-bottom: 8px !important;
}
.stories-wrapper .stories.carousel {
  overflow: visible !important;
}
.stories-wrapper .add-story {
  position: relative !important;
  border-radius: var(--nexus-radius-lg) !important;
  overflow: visible !important;
  border: none !important;
  box-shadow: none !important;
  margin-bottom: 25px !important;
  transition: transform 0.25s ease !important;
}
.stories-wrapper .add-story .img {
  border-radius: var(--nexus-radius-lg) !important;
  overflow: hidden !important;
  border: 1px solid var(--nexus-border) !important;
  box-shadow: var(--nexus-shadow-sm) !important;
  transition: box-shadow 0.25s ease, border-color 0.25s ease !important;
  height: 100% !important;
  width: 100% !important;
}
.stories-wrapper .add-story:hover {
  transform: translateY(-4px) scale(1.02) !important;
}
.stories-wrapper .add-story:hover .img {
  box-shadow: var(--nexus-shadow-lg) !important;
  border-color: var(--nexus-primary-light) !important;
}
.stories-wrapper .add-story .add {
  background: var(--nexus-gradient-primary) !important;
  border-radius: 50% !important;
  border: 3px solid var(--nexus-surface, #ffffff) !important;
  box-shadow: 0 4px 14px rgba(99, 102, 241, 0.45) !important;
  width: 34px !important;
  height: 34px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  position: absolute !important;
  bottom: -15px !important;
  left: 50% !important;
  transform: translateX(-50%) !important;
  z-index: 10 !important;
  padding: 0 !important;
}
.stories-wrapper .add-story .add svg {
  fill: #fff !important;
  color: #fff !important;
  width: 18px !important;
  height: 18px !important;
}
body.night-mode .stories-wrapper .add-story .add {
  border-color: var(--nexus-surface, #1e293b) !important;
}

/* ==========================================================================
   11. PUBLISHER BOX (POST CREATOR)
   ========================================================================== */
.publisher {
  border-radius: var(--nexus-radius-xl) !important;
  background: var(--nexus-surface) !important;
  border: 1px solid var(--nexus-border) !important;
  box-shadow: var(--nexus-shadow-md) !important;
  padding: 18px 22px !important;
  margin-bottom: 22px !important;
  transition: box-shadow 0.25s ease, border-color 0.25s ease;
}
.publisher:focus-within {
  border-color: var(--nexus-border-focus) !important;
  box-shadow: var(--nexus-shadow-lg), 0 0 0 4px rgba(99, 102, 241, 0.1) !important;
}
.publisher .publisher-avatar {
  width: 46px !important;
  height: 46px !important;
  border-radius: var(--nexus-radius-full) !important;
  border: 2px solid #fff;
  box-shadow: var(--nexus-shadow-sm);
}
body.night-mode .publisher .publisher-avatar {
  border-color: var(--nexus-surface);
}
.publisher-message textarea {
  border-radius: var(--nexus-radius-md) !important;
  font-size: 15.5px !important;
  color: var(--nexus-text-main) !important;
  border: none !important;
  background: transparent !important;
}
.publisher-tools-tab {
  border-radius: var(--nexus-radius-full) !important;
  padding: 8px 14px !important;
  font-size: 13.5px !important;
  font-weight: 600 !important;
  background: rgba(241, 245, 249, 0.7) !important;
  border: 1px solid var(--nexus-border) !important;
  transition: all 0.2s ease !important;
}
body.night-mode .publisher-tools-tab {
  background: rgba(30, 41, 59, 0.6) !important;
}
.publisher-tools-tab:hover {
  background: var(--nexus-primary-light) !important;
  border-color: var(--nexus-primary) !important;
  color: var(--nexus-primary) !important;
  transform: translateY(-2px);
}
.publisher .btn-primary.js_publisher-btn {
  background: var(--nexus-gradient-primary) !important;
  border: none !important;
  border-radius: var(--nexus-radius-full) !important;
  padding: 8px 24px !important;
  font-weight: 600 !important;
  box-shadow: 0 4px 15px rgba(99, 102, 241, 0.4) !important;
  transition: all 0.2s ease !important;
}
.publisher .btn-primary.js_publisher-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(99, 102, 241, 0.55) !important;
}

/* ==========================================================================
   12. POST FEEDS & COMMENTS
   ========================================================================== */
.post {
  background: var(--nexus-surface) !important;
  border: 1px solid var(--nexus-border) !important;
  border-radius: var(--nexus-radius-xl) !important;
  box-shadow: var(--nexus-shadow-md) !important;
  margin-bottom: 22px !important;
  overflow: visible;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.post:hover {
  box-shadow: var(--nexus-shadow-lg) !important;
}
.post .post-avatar img {
  border-radius: var(--nexus-radius-full) !important;
  border: 2px solid #fff;
  box-shadow: var(--nexus-shadow-sm);
}
body.night-mode .post .post-avatar img {
  border-color: var(--nexus-surface);
}
.post .post-title a {
  color: var(--nexus-text-main) !important;
  font-weight: 700 !important;
  letter-spacing: -0.01em;
}
.post .post-text {
  font-size: 15.5px !important;
  line-height: 1.65 !important;
  color: var(--nexus-text-main) !important;
}
.post-actions {
  border-top: 1px solid var(--nexus-border) !important;
  padding: 8px 16px !important;
}
.post-actions .action-btn {
  border-radius: var(--nexus-radius-md) !important;
  padding: 8px 14px !important;
  font-weight: 600 !important;
  font-size: 13.5px !important;
  color: var(--nexus-text-muted) !important;
  transition: all 0.2s ease !important;
}
.post-actions .action-btn:hover {
  background: var(--nexus-primary-light) !important;
  color: var(--nexus-primary) !important;
  transform: none !important;
}
.post-actions .action-btn.active {
  color: var(--nexus-primary) !important;
}

/* ==========================================================================
   12.1 PREMIUM COMMENT BOX & COMMENTS THREAD (FIXED & BEAUTIFIED)
   ========================================================================== */
/* Reset post-footer so there are no ugly background gaps/strips */
.post-footer {
  padding: 0 !important;
  background: transparent !important;
  border-top: none !important;
  border-radius: 0 0 var(--nexus-radius-xl, 20px) var(--nexus-radius-xl, 20px) !important;
  overflow: visible !important;
  position: relative !important;
}

.post-comments {
  background: rgba(248, 250, 252, 0.75) !important;
  border-top: 1px solid var(--nexus-border) !important;
  padding: 14px 18px 16px !important;
  border-radius: 0 0 var(--nexus-radius-xl, 20px) var(--nexus-radius-xl, 20px) !important;
  overflow: visible !important;
  position: relative !important;
}

body.night-mode .post-comments {
  background: rgba(15, 23, 42, 0.5) !important;
  border-top-color: var(--nexus-border) !important;
}

/* Comment Form Wrapper */
.comment.js_comment-form {
  position: relative !important;
  display: flex !important;
  align-items: center !important;
  gap: 12px !important;
  margin-top: 4px !important;
  z-index: 30 !important;
  overflow: visible !important;
}

/* User Avatar in Comment Form */
.comment.js_comment-form .comment-avatar {
  float: none !important;
  width: 40px !important;
  height: 40px !important;
  min-width: 40px !important;
  min-height: 40px !important;
  margin: 0 !important;
  flex-shrink: 0 !important;
}

.comment.js_comment-form .comment-avatar-picture {
  width: 40px !important;
  height: 40px !important;
  min-width: 40px !important;
  min-height: 40px !important;
  padding-top: 0 !important;
  border-radius: 50% !important;
  border: 2px solid #ffffff !important;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15) !important;
  background-size: cover !important;
  background-position: center !important;
  transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.25s ease !important;
}

body.night-mode .comment.js_comment-form .comment-avatar-picture {
  border-color: rgba(255, 255, 255, 0.15) !important;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.35) !important;
}

.comment.js_comment-form .comment-avatar-picture:hover {
  transform: scale(1.08) !important;
  box-shadow: 0 4px 12px rgba(99, 102, 241, 0.3) !important;
}

/* Comment Data & Input Container */
.comment.js_comment-form .comment-data {
  margin-left: 0 !important;
  flex: 1 !important;
  width: 100% !important;
  position: relative !important;
}

/* Sleek Modern Input Box Pill */
.comment-form {
  position: relative !important;
  display: flex !important;
  align-items: center !important;
  background: #ffffff !important;
  border: 1.5px solid var(--nexus-border) !important;
  border-radius: 26px !important;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.04) !important;
  transition: border-color 0.25s ease, box-shadow 0.25s ease, background 0.25s ease !important;
  min-height: 46px !important;
  padding: 0 !important;
  overflow: visible !important;
}

body.night-mode .comment-form {
  background: rgba(30, 41, 59, 0.9) !important;
  border-color: rgba(255, 255, 255, 0.12) !important;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25) !important;
}

.comment-form:focus-within {
  border-color: var(--nexus-primary, #6366f1) !important;
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.18), 0 4px 14px rgba(99, 102, 241, 0.15) !important;
  background: #ffffff !important;
}

body.night-mode .comment-form:focus-within {
  background: rgba(30, 41, 59, 1) !important;
  border-color: var(--nexus-primary-light, #818cf8) !important;
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.28), 0 4px 16px rgba(0, 0, 0, 0.4) !important;
}

/* Textarea inside Comment Box */
.comment-form textarea {
  background: transparent !important;
  border: none !important;
  outline: none !important;
  box-shadow: none !important;
  font-size: 14px !important;
  line-height: 22px !important;
  color: var(--nexus-text-main, #0f172a) !important;
  padding: 11px 18px !important;
  padding-right: 125px !important; /* Space for action icons */
  margin: 0 !important;
  height: 44px !important;
  min-height: 44px !important;
  resize: none !important;
  width: 100% !important;
  border-radius: 26px !important;
  box-sizing: border-box !important;
}

body.night-mode .comment-form textarea {
  color: #f8fafc !important;
}

.comment-form textarea::placeholder {
  color: var(--nexus-text-muted, #94a3b8) !important;
  font-size: 14px !important;
  opacity: 0.8 !important;
}

/* Action Tools (Image, Voice, Emoji, Send) */
.comment-form .x-form-tools {
  position: absolute !important;
  right: 8px !important;
  top: 50% !important;
  transform: translateY(-50%) !important;
  bottom: auto !important;
  margin: 0 !important;
  padding: 0 !important;
  display: flex !important;
  align-items: center !important;
  gap: 3px !important;
  z-index: 40 !important;
  overflow: visible !important;
  list-style: none !important;
}

.comment-form .x-form-tools > li {
  width: 32px !important;
  height: 32px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  border-radius: 50% !important;
  color: var(--nexus-text-muted, #94a3b8) !important;
  margin: 0 !important;
  padding: 0 !important;
  cursor: pointer !important;
  transition: transform 0.2s cubic-bezier(0.34, 1.56, 0.64, 1), color 0.2s ease, background 0.2s ease !important;
}

.comment-form .x-form-tools > li i {
  font-size: 16px !important;
  transition: transform 0.2s ease, color 0.2s ease !important;
}

.comment-form .x-form-tools > li:hover {
  background: var(--nexus-primary-light, rgba(99, 102, 241, 0.12)) !important;
  color: var(--nexus-primary, #6366f1) !important;
  transform: scale(1.18) !important;
}

body.night-mode .comment-form .x-form-tools > li {
  color: #94a3b8 !important;
}

body.night-mode .comment-form .x-form-tools > li:hover {
  background: rgba(99, 102, 241, 0.25) !important;
  color: #a5b4fc !important;
}

/* Send / Post Icon */
.comment-form .x-form-tools-post {
  color: var(--nexus-primary, #6366f1) !important;
}
.comment-form .x-form-tools-post:hover {
  transform: scale(1.22) rotate(8deg) !important;
}

/* Existing Comment Thread Items */
.comment .comment-body {
  background: var(--nexus-surface, #ffffff) !important;
  border: 1px solid var(--nexus-border) !important;
  border-radius: 18px !important;
  padding: 10px 16px !important;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.04) !important;
  transition: border-color 0.2s ease, box-shadow 0.2s ease !important;
}

body.night-mode .comment .comment-body {
  background: rgba(30, 41, 59, 0.95) !important;
  border-color: rgba(255, 255, 255, 0.08) !important;
  box-shadow: 0 1px 6px rgba(0, 0, 0, 0.25) !important;
}

.comment .comment-body:hover {
  border-color: var(--nexus-primary-light) !important;
}

/* ==========================================================================
   13. MOBILE RESPONSIVENESS & FLOATING DOCK
   ========================================================================== */
@media (max-width: 767px) {
  /* Hide Top Header Navbar Icons on Mobile (per user request) */
  .main-header .navbar-wrapper {
    display: none !important;
  }
  .main-header {
    height: 60px !important;
  }
  .main-header .container,
  .main-header .container-fluid {
    padding-left: 12px !important;
    padding-right: 12px !important;
  }
  .main-header .logo-wrapper {
    height: 60px !important;
    display: flex !important;
    align-items: center !important;
  }
  .main-header .logo-wrapper .logo img {
    max-height: 36px !important;
    width: auto !important;
  }

  /* Full Screen / Responsive Dropdown Overlays */
  .main-header .dropdown-menu.dropdown-widget,
  .main-header .dropdown-widget,
  .dropdown-widget {
    position: fixed !important;
    top: 68px !important;
    left: 8px !important;
    right: 8px !important;
    width: auto !important;
    min-width: 0 !important;
    max-width: calc(100vw - 16px) !important;
    transform: none !important;
    border-radius: 18px !important;
    box-shadow: 0 16px 45px rgba(0, 0, 0, 0.45) !important;
    z-index: 1050 !important;
  }
  .dropdown-widget .dropdown-widget-body {
    max-height: calc(100vh - 180px) !important;
  }

  /* Mobile Floating Dock Bar */
  .footer-bottom-bar {
    position: fixed !important;
    bottom: 10px !important;
    left: 8px !important;
    right: 8px !important;
    max-width: 480px !important;
    margin: 0 auto !important;
    height: 62px !important;
    border-radius: 24px !important;
    background: var(--nexus-surface, #0f172a) !important;
    background: rgba(15, 23, 42, 0.94) !important;
    backdrop-filter: blur(20px) saturate(180%) !important;
    -webkit-backdrop-filter: blur(20px) saturate(180%) !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    box-shadow: 0 12px 35px -4px rgba(0, 0, 0, 0.35) !important;
    z-index: 1040 !important;
    padding: 0 6px !important;
    box-sizing: border-box !important;
  }

  body:not(.night-mode) .footer-bottom-bar {
    background: #ffffff !important;
    background: rgba(255, 255, 255, 0.96) !important;
    border-color: rgba(226, 232, 240, 0.9) !important;
    box-shadow: 0 10px 30px -4px rgba(0, 0, 0, 0.12) !important;
  }

  .footer-bottom-bar .container { 
    height: 100% !important; 
    padding: 0 !important; 
    max-width: 100% !important;
    width: 100% !important;
  }

  .footer-bottom-bar-links { 
    height: 100% !important; 
    width: 100% !important;
    display: flex !important; 
    align-items: center !important; 
    justify-content: space-between !important;
    padding: 0 2px !important;
    box-sizing: border-box !important;
  }

  .footer-bottom-bar-links .link { 
    position: relative !important;
    flex: 1 1 0% !important;
    min-width: 0 !important;
    text-align: center !important; 
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    height: 100% !important;
    padding: 0 !important;
  }

  .footer-bottom-bar-links > .link > a,
  .footer-bottom-bar-links > .link > .user-menu-widget {
    position: relative !important;
    display: flex !important; 
    flex-direction: column !important; 
    align-items: center !important; 
    justify-content: center !important;
    color: var(--nexus-text-muted, #94a3b8) !important;
    text-decoration: none !important;
    width: 100% !important;
    height: 100% !important;
    padding: 6px 0 4px 0 !important;
    margin: 0 !important;
    border: none !important;
    background: transparent !important;
    box-shadow: none !important;
    transition: all 0.25s cubic-bezier(0.34, 1.56, 0.64, 1) !important;
    box-sizing: border-box !important;
  }

  body:not(.night-mode) .footer-bottom-bar-links > .link > a,
  body:not(.night-mode) .footer-bottom-bar-links > .link > .user-menu-widget {
    color: #64748b !important;
  }

  .footer-bottom-bar-links > .link:active > a,
  .footer-bottom-bar-links > .link:hover > a,
  .footer-bottom-bar-links > .link:active > .user-menu-widget,
  .footer-bottom-bar-links > .link:hover > .user-menu-widget { 
    color: var(--nexus-primary, #6366f1) !important;
    transform: translateY(-2px) !important;
  }

  body:not(.night-mode) .footer-bottom-bar-links > .link:active > a,
  body:not(.night-mode) .footer-bottom-bar-links > .link:hover > a,
  body:not(.night-mode) .footer-bottom-bar-links > .link:active > .user-menu-widget,
  body:not(.night-mode) .footer-bottom-bar-links > .link:hover > .user-menu-widget {
    color: #4f46e5 !important;
  }

  .footer-bottom-bar-links > .link > a > .header-icon,
  .footer-bottom-bar-links > .link > a .header-icon {
    width: 20px !important;
    height: 20px !important;
    color: var(--nexus-text-muted, #94a3b8) !important;
    fill: var(--nexus-text-muted, #94a3b8) !important;
    transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1), color 0.2s ease !important;
    flex-shrink: 0 !important;
  }

  body:not(.night-mode) .footer-bottom-bar-links > .link > a > .header-icon,
  body:not(.night-mode) .footer-bottom-bar-links > .link > a .header-icon {
    color: #64748b !important;
    fill: #64748b !important;
  }

  .footer-bottom-bar-links > .link.active > a .header-icon,
  .footer-bottom-bar-links > .link:hover > a .header-icon {
    color: var(--nexus-primary, #6366f1) !important;
    fill: var(--nexus-primary, #6366f1) !important;
    transform: scale(1.12) !important;
  }

  body:not(.night-mode) .footer-bottom-bar-links > .link.active > a .header-icon,
  body:not(.night-mode) .footer-bottom-bar-links > .link:hover > a .header-icon {
    color: #4f46e5 !important;
    fill: #4f46e5 !important;
  }

  .footer-bottom-bar-links > .link.active::after {
    content: '' !important;
    position: absolute !important;
    bottom: 3px !important;
    width: 4px !important;
    height: 4px !important;
    background: var(--nexus-primary, #6366f1) !important;
    border-radius: 50% !important;
    box-shadow: 0 0 6px var(--nexus-primary, #6366f1) !important;
  }

  .footer-bottom-bar-links > .link > a > .title,
  .footer-bottom-bar-links > .link > .user-menu-widget > .title { 
    font-size: 9.5px !important; 
    font-weight: 600 !important; 
    margin-top: 2px !important; 
    line-height: 1 !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    max-width: 100% !important;
    letter-spacing: -0.2px !important;
    transition: color 0.2s ease !important;
  }

  .footer-bottom-bar-links > .link.active > a > .title,
  .footer-bottom-bar-links > .link.active > .user-menu-widget > .title {
    color: var(--nexus-primary, #6366f1) !important;
    font-weight: 700 !important;
  }

  body:not(.night-mode) .footer-bottom-bar-links > .link.active > a > .title,
  body:not(.night-mode) .footer-bottom-bar-links > .link.active > .user-menu-widget > .title {
    color: #4f46e5 !important;
  }

  /* Center Floating (+) Add Button with Ambient Breathing Glow - STRICTLY for .action-add ONLY */
  .footer-bottom-bar-links > .link.action-add {
    flex: 0 0 46px !important;
    max-width: 46px !important;
    min-width: 44px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    z-index: 10 !important;
  }

  .footer-bottom-bar-links > .link.action-add > a.dropdown {
    position: relative !important; 
    top: -12px !important; 
    width: 46px !important; 
    height: 46px !important;
    background: var(--nexus-gradient-primary, linear-gradient(135deg, #6366f1 0%, #8b5cf6 50%, #a855f7 100%)) !important;
    border-radius: 50% !important;
    box-shadow: 0 6px 18px rgba(99, 102, 241, 0.5) !important;
    border: 3px solid var(--nexus-surface, #0f172a) !important;
    display: flex !important; 
    align-items: center !important; 
    justify-content: center !important;
    padding: 0 !important;
    margin: 0 !important;
    animation: nexusAddBtnPulse 2.8s infinite ease-in-out !important;
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.3s ease !important;
  }

  body:not(.night-mode) .footer-bottom-bar-links > .link.action-add > a.dropdown {
    border-color: #ffffff !important;
  }

  .footer-bottom-bar-links > .link.action-add > a.dropdown:hover,
  .footer-bottom-bar-links > .link.action-add > a.dropdown:active {
    transform: translateY(-3px) scale(1.1) rotate(90deg) !important;
    box-shadow: 0 10px 25px rgba(99, 102, 241, 0.7) !important;
  }

  .footer-bottom-bar-links > .link.action-add > a.dropdown .header-icon {
    width: 20px !important; 
    height: 20px !important; 
    fill: #ffffff !important; 
    color: #ffffff !important;
    opacity: 1 !important;
    transition: transform 0.3s ease !important;
  }

  .footer-bottom-bar-links > .link.action-add > a.dropdown .title { 
    display: none !important; 
  }

  /* Counter Badges with Pulsing Animation */
  .footer-bottom-bar-links .link .counter {
    position: absolute !important;
    top: 2px !important;
    right: calc(50% - 15px) !important;
    font-size: 9px !important;
    line-height: 13px !important;
    padding: 0 3.5px !important;
    min-width: 14px !important;
    height: 14px !important;
    border-radius: 9999px !important;
    background: #ef4444 !important;
    color: #ffffff !important;
    font-weight: 700 !important;
    box-shadow: 0 2px 6px rgba(239, 68, 68, 0.45) !important;
    border: 1.5px solid var(--nexus-surface, #0f172a) !important;
    z-index: 5 !important;
    animation: badgePulse 2s infinite ease-in-out !important;
  }

  body:not(.night-mode) .footer-bottom-bar-links .link .counter {
    border-color: #ffffff !important;
  }

  /* Profile Avatar in Bottom Bar */
  .footer-bottom-bar-links .nexus-bottom-avatar-wrap {
    width: 23px !important;
    height: 23px !important;
    border-radius: 50% !important;
    border: 1.5px solid var(--nexus-border, rgba(255, 255, 255, 0.2)) !important;
    overflow: hidden !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.15) !important;
    transition: border-color 0.2s ease, transform 0.2s ease !important;
    flex-shrink: 0 !important;
    background: rgba(99, 102, 241, 0.1) !important;
    pointer-events: none !important;
  }

  body:not(.night-mode) .footer-bottom-bar-links .nexus-bottom-avatar-wrap {
    border-color: rgba(0, 0, 0, 0.12) !important;
  }

  .footer-bottom-bar-links .link:hover .nexus-bottom-avatar-wrap,
  .footer-bottom-bar-links .link.active .nexus-bottom-avatar-wrap {
    transform: scale(1.1) !important;
    border-color: var(--nexus-primary, #6366f1) !important;
    box-shadow: 0 0 8px rgba(99, 102, 241, 0.5) !important;
  }

  .footer-bottom-bar-links .nexus-bottom-avatar-wrap img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    display: block !important;
    border-radius: 50% !important;
    border: none !important;
    margin: 0 !important;
    padding: 0 !important;
    pointer-events: none !important;
  }

  .footer-bottom-bar-links .user-menu-widget .title {
    pointer-events: none !important;
  }

  /* Reset any residual desktop user-menu styles within footer */
  .footer-bottom-bar .user-menu,
  .footer-bottom-bar .user-menu-widget {
    margin: 0 !important;
    padding: 6px 0 4px 0 !important;
    box-shadow: none !important;
    border: none !important;
    background: transparent !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    width: 100% !important;
    height: 100% !important;
  }

  /* Ultra-narrow Mobile Screens (e.g. <= 360px) */
  @media (max-width: 360px) {
    .footer-bottom-bar {
      left: 4px !important;
      right: 4px !important;
      padding: 0 3px !important;
      height: 58px !important;
      border-radius: 18px !important;
      bottom: 8px !important;
    }
    .footer-bottom-bar-links > .link > a > .title,
    .footer-bottom-bar-links > .link > .user-menu-widget > .title {
      font-size: 8px !important;
      letter-spacing: -0.3px !important;
    }
    .footer-bottom-bar-links > .link > a > .header-icon {
      width: 18px !important;
      height: 18px !important;
    }
    .footer-bottom-bar-links > .link .nexus-bottom-avatar-wrap {
      width: 20px !important;
      height: 20px !important;
    }
    .footer-bottom-bar-links .link.action-add {
      flex: 0 0 40px !important;
      max-width: 40px !important;
      min-width: 38px !important;
    }
    .footer-bottom-bar-links .link.action-add a.dropdown {
      width: 40px !important;
      height: 40px !important;
      top: -10px !important;
    }
    .footer-bottom-bar-links .link.action-add a.dropdown .header-icon {
      width: 18px !important;
      height: 18px !important;
    }
  }


  /* Mobile Bottom Bar Dropdown Drawers */
  .footer-bottom-bar .dropdown-menu.dropdown-widget,
  .footer-bottom-bar .dropdown-widget,
  .footer-bottom-bar .nexus-user-dropdown,
  .footer-bottom-bar .nexus-create-dropdown {
    position: fixed !important;
    bottom: 76px !important;
    top: auto !important;
    left: 10px !important;
    right: 10px !important;
    margin: 0 auto !important;
    width: auto !important;
    min-width: 0 !important;
    max-width: 480px !important;
    max-height: calc(100vh - 95px) !important;
    overflow-y: auto !important;
    -webkit-overflow-scrolling: touch !important;
    border-radius: 20px !important;
    background: #0f172a !important;
    background: rgba(15, 23, 42, 0.98) !important;
    backdrop-filter: blur(24px) saturate(180%) !important;
    -webkit-backdrop-filter: blur(24px) saturate(180%) !important;
    border: 1px solid rgba(255, 255, 255, 0.12) !important;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.75) !important;
    z-index: 1060 !important;
  }

  body:not(.night-mode) .footer-bottom-bar .dropdown-menu.dropdown-widget,
  body:not(.night-mode) .footer-bottom-bar .dropdown-widget,
  body:not(.night-mode) .footer-bottom-bar .nexus-user-dropdown,
  body:not(.night-mode) .footer-bottom-bar .nexus-create-dropdown {
    background: #ffffff !important;
    background: rgba(255, 255, 255, 0.98) !important;
    border-color: rgba(226, 232, 240, 0.95) !important;
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.2) !important;
  }

  body { padding-bottom: 85px !important; }
}

/* ==========================================================================
   14. GENERAL CARDS, BUTTONS & FORMS
   ========================================================================== */
.card {
  background: var(--nexus-surface) !important;
  border: 1px solid var(--nexus-border) !important;
  border-radius: var(--nexus-radius-xl) !important;
  box-shadow: var(--nexus-shadow-md) !important;
  margin-bottom: 22px !important;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}
.btn-primary {
  background: var(--nexus-gradient-primary) !important;
  border-color: transparent !important;
  box-shadow: 0 4px 12px rgba(99, 102, 241, 0.35);
  font-weight: 600;
}
.btn-primary:hover, .btn-primary:focus {
  background: linear-gradient(135deg, #4f46e5 0%, #7c3aed 100%) !important;
  box-shadow: 0 6px 18px rgba(99, 102, 241, 0.5) !important;
  transform: translateY(-1px);
}

/* Suggested Friends & Follow Action Buttons (High-Visibility Theme Pills) */
.data-content .js_friend-add,
.data-content .js_follow,
.btn.js_friend-add,
.btn.js_follow {
  background: var(--nexus-gradient-primary) !important;
  color: #ffffff !important;
  border: none !important;
  box-shadow: 0 2px 8px rgba(99, 102, 241, 0.35) !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  padding: 6px 14px !important;
  border-radius: 9999px !important;
  font-weight: 600 !important;
  font-size: 13px !important;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1) !important;
}
.data-content .js_friend-add:hover,
.data-content .js_follow:hover,
.btn.js_friend-add:hover,
.btn.js_follow:hover {
  background: linear-gradient(135deg, #4f46e5 0%, #7c3aed 100%) !important;
  box-shadow: 0 4px 14px rgba(99, 102, 241, 0.5) !important;
  transform: translateY(-1px) scale(1.04) !important;
  color: #ffffff !important;
}
.data-content .js_friend-add .main-icon,
.data-content .js_friend-add svg,
.data-content .js_friend-add i,
.data-content .js_follow .main-icon,
.data-content .js_follow svg,
.data-content .js_follow i,
.btn.js_friend-add .main-icon,
.btn.js_friend-add svg,
.btn.js_friend-add i,
.btn.js_follow .main-icon,
.btn.js_follow svg,
.btn.js_follow i {
  color: #ffffff !important;
  fill: #ffffff !important;
}

/* ==========================================================================
   15. NOTIFICATION, MESSAGE & FRIEND REQUEST DROPDOWNS
   ========================================================================== */
.dropdown-widget {
  min-width: 380px !important;
  max-width: 420px !important;
  border-radius: var(--nexus-radius-lg, 16px) !important;
  overflow: hidden !important;
  background: var(--nexus-surface, #ffffff) !important;
  box-shadow: var(--nexus-shadow-lg, 0 10px 30px rgba(0, 0, 0, 0.2)) !important;
  border: 1px solid var(--nexus-border, rgba(0, 0, 0, 0.08)) !important;
}
body.night-mode .dropdown-widget {
  background: var(--nexus-surface, #1e293b) !important;
  border-color: var(--nexus-border, rgba(255, 255, 255, 0.1)) !important;
}

.dropdown-widget-header {
  padding: 14px 18px !important;
  background: var(--nexus-glass-bg, rgba(255, 255, 255, 0.9)) !important;
  border-bottom: 1px solid var(--nexus-border, rgba(0, 0, 0, 0.06)) !important;
}
body.night-mode .dropdown-widget-header {
  background: rgba(30, 41, 59, 0.95) !important;
  border-color: var(--nexus-border, rgba(255, 255, 255, 0.08)) !important;
}
.dropdown-widget-header .title {
  font-size: 15px !important;
  font-weight: 700 !important;
  color: var(--nexus-text-main, #0f172a) !important;
}
body.night-mode .dropdown-widget-header .title {
  color: #f8fafc !important;
}

.dropdown-widget-body {
  padding: 0 !important;
}
.dropdown-widget-body ul {
  list-style: none !important;
  padding: 0 !important;
  margin: 0 !important;
}

.dropdown-widget-body .feeds-item,
.dropdown-widget-body .feeds-action-item {
  display: block !important;
  position: relative !important;
  clear: both !important;
  width: 100% !important;
  margin: 0 !important;
  border-bottom: 1px solid var(--nexus-border, rgba(0,0,0,0.06)) !important;
  transition: background 0.2s ease !important;
}
body.night-mode .dropdown-widget-body .feeds-item,
body.night-mode .dropdown-widget-body .feeds-action-item {
  border-bottom: 1px solid var(--nexus-border, rgba(255,255,255,0.06)) !important;
}
.dropdown-widget-body .feeds-item:hover,
.dropdown-widget-body .feeds-action-item:hover {
  background: rgba(99, 102, 241, 0.04) !important;
}
body.night-mode .dropdown-widget-body .feeds-item:hover,
body.night-mode .dropdown-widget-body .feeds-action-item:hover {
  background: rgba(255, 255, 255, 0.04) !important;
}

.dropdown-widget-body .data-container {
  display: flex !important;
  align-items: flex-start !important;
  gap: 12px !important;
  width: 100% !important;
  padding: 12px 16px !important;
  min-height: 56px !important;
  box-sizing: border-box !important;
  text-decoration: none !important;
  color: inherit !important;
}
.dropdown-widget-body .data-avatar {
  flex-shrink: 0 !important;
  width: 40px !important;
  height: 40px !important;
  float: none !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
}
.dropdown-widget-body .data-avatar img {
  width: 40px !important;
  height: 40px !important;
  max-width: 40px !important;
  max-height: 40px !important;
  border-radius: 50% !important;
  object-fit: cover !important;
  display: block !important;
}
.dropdown-widget-body .data-content {
  flex: 1 1 auto !important;
  min-width: 0 !important;
  padding-left: 0 !important;
  font-size: 13px !important;
  line-height: 1.4 !important;
  word-break: break-word !important;
  overflow-wrap: break-word !important;
}
.dropdown-widget-body .data-content .name {
  font-weight: 600 !important;
  color: var(--nexus-text-main, #1e293b) !important;
  display: inline-block !important;
  margin-bottom: 2px !important;
}
body.night-mode .dropdown-widget-body .data-content .name {
  color: #f8fafc !important;
}
.dropdown-widget-body .data-content .time {
  font-size: 11px !important;
  color: #94a3b8 !important;
  margin-top: 4px !important;
}

.dropdown-widget-footer {
  display: block !important;
  padding: 12px !important;
  text-align: center !important;
  font-size: 13px !important;
  font-weight: 600 !important;
  color: var(--nexus-primary) !important;
  border-top: 1px solid var(--nexus-border, rgba(0, 0, 0, 0.06)) !important;
  background: var(--nexus-glass-bg, rgba(255, 255, 255, 0.5)) !important;
  text-decoration: none !important;
}
body.night-mode .dropdown-widget-footer {
  border-color: var(--nexus-border, rgba(255, 255, 255, 0.08)) !important;
  background: rgba(30, 41, 59, 0.7) !important;
}

/* ==========================================================================
   16. NATIVE DAYTIME MESSAGE
   ========================================================================== */
.daytime_message {
  border-radius: var(--nexus-radius-lg, 16px) !important;
  border: 1px solid var(--nexus-border, rgba(226, 232, 240, 0.8)) !important;
  border-left: 4px solid var(--nexus-primary, #6366f1) !important;
  background: var(--nexus-surface, #ffffff) !important;
  box-shadow: var(--nexus-shadow-sm, 0 2px 6px rgba(0,0,0,0.04)) !important;
  padding: 16px 20px !important;
  margin-bottom: 20px !important;
  display: flex !important;
  align-items: center !important;
}
body.night-mode .daytime_message {
  background: var(--nexus-surface, #1e293b) !important;
  border-color: var(--nexus-border, rgba(51, 65, 85, 0.7)) !important;
  border-left-color: var(--nexus-primary, #818cf8) !important;
}
.daytime_message .btn-close {
  order: 3 !important;
  margin-left: auto !important;
  opacity: 0.6 !important;
}
.daytime_message svg {
  margin-right: 14px !important;
}

/* ==========================================================================
   17. PREMIUM ANIMATIONS & MICRO-INTERACTIONS
   ========================================================================== */
/* Smooth image loading (excluding reactions/emojis) */
img:not(.reactions_item img):not(.emoji img):not(.reaction img):not(.inline-emoji img) {
  animation: fadeIn 0.5s ease-in-out;
}
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* Post Publisher Enhancements */
.publisher {
  border-radius: var(--nexus-radius-xl, 20px) !important;
  box-shadow: var(--nexus-shadow-lg) !important;
  border: 1px solid var(--nexus-border) !important;
  overflow: hidden;
}
.publisher-meta {
  background: var(--nexus-surface) !important;
  border-top: 1px solid var(--nexus-border) !important;
  padding: 12px 16px !important;
}
.publisher .form-control {
  border: none !important;
  background: transparent !important;
  font-size: 16px !important;
  box-shadow: none !important;
}

/* Skeleton Loading */
.skeleton-load {
  background: linear-gradient(90deg, var(--nexus-surface) 25%, var(--nexus-surface-hover) 50%, var(--nexus-surface) 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
  border-radius: var(--nexus-radius-sm);
}
@keyframes shimmer {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* Ripple effect on buttons */
.btn {
  position: relative;
  overflow: hidden;
}
.btn::after {
  content: "";
  background: rgba(255, 255, 255, 0.3);
  display: block;
  position: absolute;
  border-radius: 50%;
  padding-top: 120%;
  padding-left: 120%;
  margin-top: -60%;
  margin-left: -60%;
  opacity: 0;
  transition: all 0.8s;
}
.btn:active::after {
  padding-top: 0;
  padding-left: 0;
  margin-top: 0;
  margin-left: 0;
  opacity: 1;
  transition: 0s;
}

/* Glassmorphism Header */
.main-header {
  background: var(--nexus-glass-bg) !important;
  backdrop-filter: var(--nexus-glass-blur) !important;
  -webkit-backdrop-filter: var(--nexus-glass-blur) !important;
  border-bottom: 1px solid var(--nexus-border) !important;
  box-shadow: var(--nexus-shadow-sm) !important;
}
body.night-mode .main-header {
  background: rgba(15, 23, 42, 0.88) !important;
}

/* Enhancing Hover Lift for non-post Cards only */
.card:not(.post):hover,
.card-widget:hover {
  transform: translateY(-4px) !important;
  box-shadow: var(--nexus-shadow-xl) !important;
  border-color: var(--nexus-primary-light) !important;
}

/* CRITICAL: Post cards and action buttons MUST NOT have CSS transform,
   because transform establishes a new local coordinate system that breaks
   position:fixed for the reactions-container popup */
.post,
.post.card,
.post.card:hover,
.post-actions,
.post-actions .action-btn,
.post-actions .action-btn:hover {
  transform: none !important;
}

/* ==========================================================================
   18. PREMIUM REACTION DOCK & INTERACTIVE POPUP (FIXED & BEAUTIFIED)
   ========================================================================== */
.reactions-wrapper {
  position: relative !important;
  overflow: visible !important;
  z-index: 100 !important;
}

.reactions-container {
  display: none;
  position: absolute !important;
  bottom: calc(100% + 8px) !important;
  left: 0 !important;
  top: auto !important;
  right: auto !important;
  z-index: 999999 !important;
  background: var(--nexus-surface, #ffffff) !important;
  border: 1px solid var(--nexus-border, rgba(226, 232, 240, 0.9)) !important;
  border-radius: 9999px !important;
  padding: 4px 8px !important;
  box-shadow: 0 12px 36px -4px rgba(0, 0, 0, 0.35), 0 0 0 1px rgba(99, 102, 241, 0.15) !important;
  backdrop-filter: blur(20px) saturate(180%) !important;
  -webkit-backdrop-filter: blur(20px) saturate(180%) !important;
  white-space: nowrap !important;
  box-sizing: border-box !important;
  width: max-content !important;
  max-width: calc(100vw - 32px) !important;
  pointer-events: auto !important;
}

html[dir="rtl"] .reactions-container,
[dir="rtl"] .reactions-container {
  left: auto !important;
  right: 0 !important;
}

/* Ensure flex layout when hovered or active */
.reactions-wrapper:hover .reactions-container,
.reactions-container:hover,
.reactions-container[style*="display: block"],
.reactions-container[style*="display: flex"],
.reactions-container.show {
  display: flex !important;
  visibility: visible !important;
  opacity: 1 !important;
  align-items: center !important;
}

/* Hover bridge: bridges gap between reaction button and floating reactions dock */
.reactions-container::after {
  content: "" !important;
  position: absolute !important;
  left: 0 !important;
  right: 0 !important;
  bottom: -12px !important;
  height: 16px !important;
  background: transparent !important;
  pointer-events: auto !important;
}

body.night-mode .reactions-container {
  background: rgba(30, 41, 59, 0.96) !important;
  border-color: rgba(255, 255, 255, 0.15) !important;
  box-shadow: 0 16px 45px -6px rgba(0, 0, 0, 0.6), 0 0 20px rgba(129, 140, 248, 0.2) !important;
}

.reactions_item {
  width: 42px !important;
  height: 42px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  float: none !important;
  margin: 0 2px !important;
  border-radius: 50% !important;
  cursor: pointer !important;
  transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1) !important;
  position: relative !important;
  padding: 0 !important;
  box-sizing: border-box !important;
}

.reactions_item:hover {
  transform: scale(1.35) translateY(-5px) !important;
  z-index: 10 !important;
}

/* Neutralize Sngine's top: -76%; right: 76%; transform: scale(0.325) */
.reactions_item .emoji {
  width: 34px !important;
  height: 34px !important;
  position: static !important;
  top: auto !important;
  right: auto !important;
  bottom: auto !important;
  left: auto !important;
  transform: none !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  margin: 0 !important;
  pointer-events: none !important;
}

.reactions_item .emoji img {
  width: 34px !important;
  height: 34px !important;
  max-width: 34px !important;
  max-height: 34px !important;
  object-fit: contain !important;
  display: block !important;
  margin: 0 !important;
}

@media (max-width: 360px) {
  .reactions_item {
    width: 38px !important;
    height: 38px !important;
    margin: 0 1px !important;
  }
  .reactions_item .emoji,
  .reactions_item .emoji img {
    width: 30px !important;
    height: 30px !important;
  }
}

/* Tooltip on hovering each reaction emoji */
.reactions_item:hover::before {
  content: attr(data-title);
  position: absolute;
  bottom: 100%;
  left: 50%;
  transform: translateX(-50%) translateY(-6px);
  background: rgba(15, 23, 42, 0.9);
  color: #ffffff;
  padding: 3px 8px;
  font-size: 11px;
  font-weight: 700;
  border-radius: 12px;
  white-space: nowrap;
  pointer-events: none;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
  letter-spacing: 0.2px;
  z-index: 20;
}
body.night-mode .reactions_item:hover::before {
  background: rgba(248, 250, 252, 0.95);
  color: #0f172a;
}

/* ==========================================================================
   19. HIGH-VALUE COMMERCIAL FEATURES
   ========================================================================== */
/* Feature 1: Scroll Reading Progress Bar */
#nexus-scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 3.5px;
  width: 0%;
  background: var(--nexus-gradient-primary);
  z-index: 9999999;
  box-shadow: 0 0 10px var(--nexus-primary);
  transition: width 0.1s ease-out;
  pointer-events: none;
}

/* Feature 2: Floating Smart Back-To-Top Button */
#nexus-back-to-top {
  position: fixed;
  bottom: 25px;
  right: 90px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--nexus-gradient-primary);
  color: #ffffff;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 25px rgba(99, 102, 241, 0.5);
  cursor: pointer;
  z-index: 1030;
  opacity: 0;
  visibility: hidden;
  transform: translateY(15px) scale(0.9);
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}
#nexus-back-to-top.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
}
#nexus-back-to-top:hover {
  transform: translateY(-3px) scale(1.08);
  box-shadow: 0 12px 30px rgba(99, 102, 241, 0.7);
  color: #ffffff;
}
#nexus-back-to-top svg,
#nexus-back-to-top i {
  width: 20px;
  height: 20px;
  fill: #ffffff;
  color: #ffffff;
}

@media (min-width: 1200px) {
  #nexus-back-to-top {
    right: 90px !important;
    bottom: 25px !important;
  }
}

@media (max-width: 1199px) {
  #nexus-back-to-top {
    bottom: 85px !important;
    right: 18px !important;
    width: 40px !important;
    height: 40px !important;
  }
}


/* Feature 3: Instagram-Style Double-Tap Heart Burst Animation */
.nexus-heart-burst {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0);
  pointer-events: none;
  z-index: 50;
  animation: nexusHeartPop 0.85s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
}
.nexus-heart-burst svg {
  width: 85px;
  height: 85px;
  fill: #ef4444;
  filter: drop-shadow(0 8px 24px rgba(239, 68, 68, 0.6));
}
@keyframes nexusHeartPop {
  0% { transform: translate(-50%, -50%) scale(0); opacity: 0; }
  35% { transform: translate(-50%, -50%) scale(1.3); opacity: 1; }
  60% { transform: translate(-50%, -50%) scale(1); opacity: 1; }
  100% { transform: translate(-50%, -50%) scale(1.4); opacity: 0; }
}

/* Feature 4: Animated Gradient Story Rings */
.stories-item .item-avatar,
.story-avatar {
  position: relative !important;
  border-radius: 50% !important;
  padding: 2.5px !important;
  background: var(--nexus-gradient-story, linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%)) !important;
  transition: transform 0.25s ease !important;
}
.stories-item .item-avatar img,
.story-avatar img {
  border: 2px solid var(--nexus-surface, #ffffff) !important;
  border-radius: 50% !important;
  display: block !important;
}
.stories-item:hover .item-avatar {
  transform: scale(1.06) !important;
}

/* Feature 5: Image Hover Zoom on Feed Media */
.pg_wrapper,
.post-media {
  overflow: hidden !important;
  border-radius: var(--nexus-radius-lg, 16px) !important;
}
.pg_wrapper img,
.post-media img {
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1) !important;
}
.pg_wrapper:hover img,
.post-media:hover img {
  transform: scale(1.025) !important;
}

/* ==========================================================================
   20. RIGHT SIDEBAR ENRICHMENT WIDGETS
   ========================================================================== */
/* Pro VIP Banner */
.nexus-pro-banner {
  background: linear-gradient(135deg, #4f46e5 0%, #7c3aed 50%, #ec4899 100%) !important;
  border: none !important;
  border-radius: var(--nexus-radius-xl, 20px) !important;
  color: #ffffff !important;
  box-shadow: 0 10px 25px -3px rgba(99, 102, 241, 0.4) !important;
  position: relative;
  overflow: hidden;
  transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.25s ease !important;
}
.nexus-pro-banner:hover {
  transform: translateY(-3px) scale(1.01) !important;
  box-shadow: 0 14px 30px -3px rgba(99, 102, 241, 0.6) !important;
}
.nexus-pro-banner::before {
  content: '';
  position: absolute;
  top: -40px;
  right: -40px;
  width: 130px;
  height: 130px;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.25) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}
.pro-crown-badge {
  font-size: 26px;
  width: 46px;
  height: 46px;
  background: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(10px);
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}
.pro-text {
  font-size: 13px;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.88) !important;
}
.btn-nexus-pro {
  background: #ffffff !important;
  color: #4f46e5 !important;
  font-weight: 700 !important;
  border-radius: 9999px !important;
  padding: 8px 16px !important;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  border: none !important;
  transition: all 0.2s ease !important;
}
.btn-nexus-pro:hover {
  background: #f8fafc !important;
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.25);
  color: #4338ca !important;
}

/* Explore Hub Widget */
.nexus-explore-hub {
  border-radius: var(--nexus-radius-xl, 20px) !important;
}
.explore-grid {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.explore-item {
  display: flex;
  align-items: center;
  padding: 10px 12px;
  border-radius: var(--nexus-radius-lg, 14px);
  text-decoration: none !important;
  color: inherit !important;
  background: rgba(241, 245, 249, 0.5);
  border: 1px solid transparent;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1) !important;
}
body.night-mode .explore-item {
  background: rgba(15, 23, 42, 0.4);
}
.explore-item:hover {
  background: var(--nexus-surface-hover);
  border-color: var(--nexus-primary);
  transform: translateX(5px);
}
.explore-icon {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 12px;
  flex-shrink: 0;
  transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.explore-item:hover .explore-icon {
  transform: scale(1.12) rotate(6deg);
}
.bg-indigo-soft { background: rgba(99, 102, 241, 0.12); color: #6366f1; }
.bg-cyan-soft { background: rgba(6, 182, 212, 0.12); color: #06b6d4; }
.bg-emerald-soft { background: rgba(16, 185, 129, 0.12); color: #10b981; }
.bg-amber-soft { background: rgba(245, 158, 11, 0.12); color: #f59e0b; }
.explore-info {
  flex: 1;
}
.explore-title {
  display: block;
  font-size: 13.5px;
  font-weight: 700;
  color: var(--nexus-text-main);
  line-height: 1.2;
}
.explore-desc {
  display: block;
  font-size: 11.5px;
  color: var(--nexus-text-muted);
  margin-top: 2px;
}
.explore-arrow {
  color: var(--nexus-text-light);
  font-size: 11px;
  transition: transform 0.2s ease, color 0.2s ease;
}
.explore-item:hover .explore-arrow {
  transform: translateX(3px);
  color: var(--nexus-primary);
}

/* Mobile App Promo Card */
.nexus-app-promo {
  border-radius: var(--nexus-radius-xl, 20px) !important;
  background: var(--nexus-surface) !important;
  border: 1px solid var(--nexus-border) !important;
}
.app-icon-wrap {
  font-size: 32px;
  width: 58px;
  height: 58px;
  margin: 0 auto;
  border-radius: 18px;
  background: var(--nexus-primary-light);
  color: var(--nexus-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  animation: floatBob 3s infinite ease-in-out;
}
@keyframes floatBob {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}

/* ==========================================================================
   20. DAYTIME GREETING BANNER & ANIMATED ICONS (MORNING, AFTERNOON, EVENING)
   ========================================================================== */
.daytime_message {
  position: relative !important;
  display: flex !important;
  align-items: center !important;
  padding: 16px 22px !important;
  margin-bottom: 22px !important;
  border-radius: var(--nexus-radius-xl, 20px) !important;
  border: 1px solid var(--nexus-border) !important;
  background: linear-gradient(135deg, rgba(254, 243, 199, 0.5) 0%, rgba(255, 237, 213, 0.3) 50%, var(--nexus-surface) 100%) !important;
  border-left: 5px solid #f59e0b !important;
  box-shadow: var(--nexus-shadow-md), 0 8px 24px -6px rgba(245, 158, 11, 0.15) !important;
  overflow: hidden !important;
  backdrop-filter: blur(16px) !important;
  -webkit-backdrop-filter: blur(16px) !important;
  transition: transform 0.3s ease, box-shadow 0.3s ease !important;
}

body.night-mode .daytime_message {
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.12) 0%, rgba(30, 41, 59, 0.95) 60%) !important;
  border-left: 5px solid #f59e0b !important;
  border-color: rgba(245, 158, 11, 0.25) !important;
}

.daytime_message:hover {
  transform: translateY(-2px) !important;
  box-shadow: var(--nexus-shadow-lg), 0 12px 30px -6px rgba(245, 158, 11, 0.25) !important;
}

/* Morning Theme */
.daytime_morning {
  background: linear-gradient(135deg, rgba(254, 243, 199, 0.5) 0%, rgba(255, 237, 213, 0.3) 50%, var(--nexus-surface) 100%) !important;
  border-left: 5px solid #f59e0b !important;
}
body.night-mode .daytime_morning {
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.12) 0%, rgba(30, 41, 59, 0.95) 60%) !important;
  border-left: 5px solid #f59e0b !important;
}

/* Afternoon Theme */
.daytime_afternoon {
  background: linear-gradient(135deg, rgba(224, 242, 254, 0.5) 0%, rgba(240, 249, 255, 0.3) 50%, var(--nexus-surface) 100%) !important;
  border-left: 5px solid #0284c7 !important;
}
body.night-mode .daytime_afternoon {
  background: linear-gradient(135deg, rgba(2, 132, 199, 0.12) 0%, rgba(30, 41, 59, 0.95) 60%) !important;
  border-left: 5px solid #38bdf8 !important;
}

/* Evening Theme */
.daytime_evening {
  background: linear-gradient(135deg, rgba(238, 242, 255, 0.5) 0%, rgba(245, 243, 255, 0.3) 50%, var(--nexus-surface) 100%) !important;
  border-left: 5px solid #6366f1 !important;
}
body.night-mode .daytime_evening {
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.14) 0%, rgba(30, 41, 59, 0.95) 60%) !important;
  border-left: 5px solid #818cf8 !important;
}

/* Direct SVG icon styling inside .daytime_message (works on both default & customized markup) */
.daytime_message svg {
  width: 44px !important;
  height: 44px !important;
  min-width: 44px !important;
  color: #f59e0b !important;
  fill: #f59e0b !important;
  padding: 8px !important;
  background: rgba(245, 158, 11, 0.15) !important;
  border: 1.5px solid rgba(245, 158, 11, 0.4) !important;
  border-radius: 50% !important;
  box-shadow: 0 0 20px rgba(245, 158, 11, 0.3) !important;
  margin-right: 16px !important;
  animation: nexusSunSpin 14s linear infinite, nexusSunGlowPulse 2.8s ease-in-out infinite alternate !important;
  transform-origin: center center !important;
  flex-shrink: 0 !important;
}

/* Specific SVG overrides when customized */
.daytime_afternoon svg {
  color: #0284c7 !important;
  fill: #0284c7 !important;
  background: rgba(2, 132, 199, 0.15) !important;
  border-color: rgba(2, 132, 199, 0.4) !important;
  box-shadow: 0 0 20px rgba(2, 132, 199, 0.3) !important;
  animation: nexusAfternoonGlow 3s ease-in-out infinite alternate !important;
}
.daytime_evening svg {
  color: #818cf8 !important;
  fill: #818cf8 !important;
  background: rgba(99, 102, 241, 0.18) !important;
  border-color: rgba(99, 102, 241, 0.45) !important;
  box-shadow: 0 0 20px rgba(99, 102, 241, 0.3) !important;
  animation: nexusMoonFloat 3.5s ease-in-out infinite alternate !important;
}

/* Fallback & Enhanced Typography targeting */
.daytime_message .d-table-cell:not(svg),
.daytime_message .daytime_text,
.daytime_content {
  flex: 1 !important;
  display: flex !important;
  flex-direction: column !important;
  justify-content: center !important;
  gap: 3px !important;
}

.daytime_content {
  flex-direction: row !important;
  align-items: center !important;
  gap: 16px !important;
}

.daytime_message strong,
.daytime_message .daytime_title {
  display: block !important;
  font-size: 15.5px !important;
  font-weight: 700 !important;
  color: var(--nexus-text-main, #0f172a) !important;
  letter-spacing: -0.2px !important;
  margin: 0 !important;
  line-height: 1.3 !important;
}
body.night-mode .daytime_message strong,
body.night-mode .daytime_message .daytime_title {
  color: #f8fafc !important;
}

.daytime_message span:not(.slider):not(.daytime_name),
.daytime_message .daytime_quote,
.daytime_message p {
  font-size: 13.5px !important;
  color: var(--nexus-text-muted, #64748b) !important;
  margin: 0 !important;
  line-height: 1.45 !important;
}
body.night-mode .daytime_message span:not(.slider):not(.daytime_name),
body.night-mode .daytime_message .daytime_quote,
body.night-mode .daytime_message p {
  color: #94a3b8 !important;
}

.daytime_name {
  background: var(--nexus-gradient-primary) !important;
  -webkit-background-clip: text !important;
  -webkit-text-fill-color: transparent !important;
  font-weight: 800 !important;
}

/* Close button */
.daytime_message .btn-close {
  position: absolute !important;
  right: 14px !important;
  top: 50% !important;
  transform: translateY(-50%) !important;
  background-color: transparent !important;
  opacity: 0.65 !important;
  transition: all 0.25s ease !important;
  padding: 8px !important;
  float: none !important;
}
.daytime_message .btn-close:hover {
  opacity: 1 !important;
  transform: translateY(-50%) rotate(90deg) scale(1.15) !important;
}

/* Sun Ray Rotation and Glowing Pulse Animation */
@keyframes nexusSunSpin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

@keyframes nexusSunGlowPulse {
  0% {
    transform: scale(0.94);
    filter: drop-shadow(0 0 5px rgba(245, 158, 11, 0.4));
  }
  100% {
    transform: scale(1.08);
    filter: drop-shadow(0 0 14px rgba(245, 158, 11, 0.85));
  }
}

@keyframes nexusAfternoonGlow {
  0% {
    transform: scale(0.95) translateY(0);
    filter: drop-shadow(0 0 4px rgba(2, 132, 199, 0.3));
  }
  100% {
    transform: scale(1.08) translateY(-2px);
    filter: drop-shadow(0 0 12px rgba(56, 189, 248, 0.7));
  }
}

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

/* ==========================================================================
   21. CREATE NEW STORY STUDIO & MODAL THEME (NEXUS BRANDED & MOBILE OPTIMIZED)
   ========================================================================== */

/* Dialog & Content Sizing */
#modal:has(.nexus-story-modal-form) .modal-dialog,
.modal-dialog:has(.nexus-story-modal-form) {
  max-width: 520px !important;
  margin: 1.75rem auto !important;
}
@media (max-width: 767px) {
  #modal:has(.nexus-story-modal-form) .modal-dialog,
  .modal-dialog:has(.nexus-story-modal-form) {
    max-width: calc(100% - 20px) !important;
    margin: 12px auto !important;
  }
}

.modal-content:has(.nexus-story-header),
.modal-content:has(.nexus-story-modal-form) {
  border-radius: 22px !important;
  overflow: hidden !important;
  border: 1px solid rgba(139, 92, 246, 0.2) !important;
  box-shadow: 0 20px 50px -10px rgba(0, 0, 0, 0.25), 0 0 0 1px rgba(139, 92, 246, 0.1) !important;
  background: var(--nexus-surface, #ffffff) !important;
}
body.night-mode .modal-content:has(.nexus-story-header),
body.night-mode .modal-content:has(.nexus-story-modal-form) {
  background: #111827 !important;
  border-color: rgba(139, 92, 246, 0.25) !important;
  box-shadow: 0 25px 60px -12px rgba(0, 0, 0, 0.7), 0 0 25px -5px rgba(139, 92, 246, 0.15) !important;
}

/* Story Modal Header */
.nexus-story-header {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  padding: 18px 22px 12px 22px !important;
  border-bottom: none !important;
  background: transparent !important;
}
@media (max-width: 767px) {
  .nexus-story-header {
    padding: 14px 16px 10px 16px !important;
  }
}
.nexus-story-header-badge {
  width: 34px !important;
  height: 34px !important;
  border-radius: 50% !important;
  background: linear-gradient(135deg, #8b5cf6 0%, #ec4899 100%) !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  color: #ffffff !important;
  box-shadow: 0 4px 14px rgba(139, 92, 246, 0.45) !important;
  flex-shrink: 0 !important;
  margin-right: 10px !important;
}
.nexus-story-header-badge svg {
  color: #ffffff !important;
  stroke: #ffffff !important;
}
.nexus-story-header-title h5 {
  font-size: 18px !important;
  font-weight: 700 !important;
  color: #0f172a !important;
  margin: 0 !important;
  letter-spacing: -0.2px !important;
}
@media (max-width: 767px) {
  .nexus-story-header-title h5 {
    font-size: 16.5px !important;
  }
}
body.night-mode .nexus-story-header-title h5 {
  color: #f8fafc !important;
}
.nexus-story-close-btn {
  width: 32px !important;
  height: 32px !important;
  border-radius: 50% !important;
  background: #f1f5f9 !important;
  border: none !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  color: #64748b !important;
  cursor: pointer !important;
  transition: all 0.2s ease !important;
  padding: 0 !important;
  line-height: 1 !important;
}
.nexus-story-close-btn svg {
  stroke: #64748b !important;
  transition: stroke 0.2s ease !important;
}
.nexus-story-close-btn:hover {
  background: rgba(139, 92, 246, 0.15) !important;
  color: #8b5cf6 !important;
  transform: scale(1.06) !important;
}
.nexus-story-close-btn:hover svg {
  stroke: #8b5cf6 !important;
}
body.night-mode .nexus-story-close-btn {
  background: rgba(255, 255, 255, 0.08) !important;
  color: #94a3b8 !important;
}
body.night-mode .nexus-story-close-btn:hover {
  background: rgba(139, 92, 246, 0.25) !important;
  color: #ffffff !important;
}
body.night-mode .nexus-story-close-btn:hover svg {
  stroke: #ffffff !important;
}

/* Modal Body */
.nexus-story-body {
  padding: 6px 22px 14px 22px !important;
}
@media (max-width: 767px) {
  .nexus-story-body {
    padding: 4px 16px 12px 16px !important;
  }
}

/* Input Card (Textarea + Avatar + Colors + Counter) */
.nexus-story-input-card {
  border: 1.5px solid rgba(226, 232, 240, 0.9) !important;
  border-radius: 18px !important;
  background: #ffffff !important;
  padding: 14px 16px 12px 16px !important;
  transition: background 0.3s cubic-bezier(0.4, 0, 0.2, 1), border-color 0.3s ease, box-shadow 0.3s ease !important;
  position: relative !important;
}
body.night-mode .nexus-story-input-card {
  border-color: rgba(139, 92, 246, 0.2) !important;
  background: #1e293b !important;
}
.nexus-story-input-card:focus-within {
  border-color: #8b5cf6 !important;
  box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.15) !important;
}
.nexus-story-input-card.has-bg {
  box-shadow: 0 8px 24px -4px rgba(0, 0, 0, 0.2) !important;
}
.nexus-story-avatar {
  width: 36px !important;
  height: 36px !important;
  border-radius: 50% !important;
  object-fit: cover !important;
  border: 2px solid rgba(139, 92, 246, 0.35) !important;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1) !important;
  margin-bottom: 8px !important;
  display: block !important;
}
.nexus-story-textarea,
.publisher-mini textarea#nexus-story-textarea {
  border: none !important;
  outline: none !important;
  background: transparent !important;
  box-shadow: none !important;
  padding: 0 !important;
  margin: 0 !important;
  font-size: 15px !important;
  line-height: 1.5 !important;
  min-height: 70px !important;
  resize: none !important;
  color: #0f172a !important;
}
@media (max-width: 767px) {
  .nexus-story-textarea,
  .publisher-mini textarea#nexus-story-textarea {
    font-size: 14px !important;
    min-height: 60px !important;
  }
}
body.night-mode .nexus-story-textarea,
body.night-mode .publisher-mini textarea#nexus-story-textarea {
  color: #f8fafc !important;
}
.nexus-story-textarea::placeholder {
  color: #94a3b8 !important;
}
.nexus-story-textarea.text-white {
  color: #ffffff !important;
}
.nexus-story-textarea.text-white::placeholder {
  color: rgba(255, 255, 255, 0.75) !important;
}

/* Input Footer: Colors + Counter */
.nexus-story-input-footer {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  margin-top: 10px !important;
  padding-top: 4px !important;
  gap: 8px !important;
}
.nexus-story-colors {
  display: flex !important;
  align-items: center !important;
  gap: 7px !important;
  flex-wrap: nowrap !important;
}
@media (max-width: 767px) {
  .nexus-story-colors {
    gap: 5px !important;
  }
}
.nexus-color-dot {
  width: 23px !important;
  height: 23px !important;
  border-radius: 50% !important;
  cursor: pointer !important;
  display: inline-block !important;
  transition: transform 0.2s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.2s ease !important;
  vertical-align: middle !important;
  flex-shrink: 0 !important;
  position: relative !important;
}
@media (max-width: 767px) {
  .nexus-color-dot {
    width: 20px !important;
    height: 20px !important;
  }
}
.nexus-color-dot[data-color="default"] {
  background: #ffffff !important;
  border: 1px solid #cbd5e1 !important;
}
body.night-mode .nexus-color-dot[data-color="default"] {
  background: #1e293b !important;
  border-color: #475569 !important;
}
.nexus-color-dot:hover {
  transform: scale(1.18) !important;
}
.nexus-color-dot.active {
  transform: scale(1.1) !important;
  box-shadow: 0 0 0 2px #ffffff, 0 0 0 4.5px #8b5cf6 !important;
}
body.night-mode .nexus-color-dot.active {
  box-shadow: 0 0 0 2px #111827, 0 0 0 4.5px #8b5cf6 !important;
}
.nexus-story-input-card.has-bg .nexus-color-dot.active {
  box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.9), 0 0 0 4.5px #ffffff !important;
}

.nexus-story-counter {
  font-size: 12.5px !important;
  font-weight: 600 !important;
  color: #94a3b8 !important;
  letter-spacing: 0.3px !important;
  white-space: nowrap !important;
}
@media (max-width: 767px) {
  .nexus-story-counter {
    font-size: 11.5px !important;
  }
}
.nexus-story-input-card.has-bg .nexus-story-counter {
  color: rgba(255, 255, 255, 0.85) !important;
}

/* Media Upload Grid & Cards */
.nexus-story-upload-grid {
  margin-top: 12px !important;
}
.nexus-story-upload-card {
  border: 1.5px dashed rgba(139, 92, 246, 0.3) !important;
  border-radius: 18px !important;
  padding: 18px 12px 16px 12px !important;
  text-align: center !important;
  background: rgba(139, 92, 246, 0.02) !important;
  cursor: pointer !important;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1) !important;
  position: relative !important;
  overflow: hidden !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
  min-height: 136px !important;
}
body.night-mode .nexus-story-upload-card {
  border-color: rgba(139, 92, 246, 0.25) !important;
  background: rgba(139, 92, 246, 0.04) !important;
}
.nexus-story-upload-card:hover,
.nexus-story-upload-card.dragover {
  border-color: #8b5cf6 !important;
  background: rgba(139, 92, 246, 0.08) !important;
  transform: translateY(-2px) !important;
  box-shadow: 0 10px 25px -6px rgba(139, 92, 246, 0.25) !important;
}
body.night-mode .nexus-story-upload-card:hover,
body.night-mode .nexus-story-upload-card.dragover {
  border-color: #a78bfa !important;
  background: rgba(139, 92, 246, 0.1) !important;
  box-shadow: 0 10px 25px -6px rgba(139, 92, 246, 0.4) !important;
}

.nexus-upload-content {
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
  width: 100% !important;
  pointer-events: none !important;
}
.nexus-upload-icon-box {
  width: 44px !important;
  height: 44px !important;
  border-radius: 14px !important;
  background: rgba(139, 92, 246, 0.12) !important;
  color: #8b5cf6 !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  margin-bottom: 8px !important;
  transition: transform 0.25s ease !important;
}
.nexus-upload-icon-box svg {
  stroke: #8b5cf6 !important;
}
body.night-mode .nexus-upload-icon-box {
  background: rgba(139, 92, 246, 0.18) !important;
  color: #a78bfa !important;
}
body.night-mode .nexus-upload-icon-box svg {
  stroke: #a78bfa !important;
}
.nexus-story-upload-card:hover .nexus-upload-icon-box {
  transform: scale(1.1) !important;
}
.nexus-upload-text-box {
  text-align: center !important;
}
.nexus-upload-card-title {
  font-size: 14px !important;
  font-weight: 700 !important;
  color: #0f172a !important;
  margin-bottom: 2px !important;
  letter-spacing: -0.1px !important;
}
body.night-mode .nexus-upload-card-title {
  color: #f8fafc !important;
}
.nexus-upload-card-desc {
  font-size: 11px !important;
  color: #94a3b8 !important;
  line-height: 1.3 !important;
}

/* Mobile Responsive Upload Cards Layout */
@media (max-width: 767px) {
  .nexus-story-upload-grid {
    row-gap: 8px !important;
  }
  .nexus-story-upload-grid > [class*="col-"] {
    width: 100% !important;
    flex: 0 0 100% !important;
    max-width: 100% !important;
  }
  .nexus-story-upload-card {
    flex-direction: row !important;
    align-items: center !important;
    justify-content: flex-start !important;
    text-align: left !important;
    padding: 10px 14px !important;
    min-height: auto !important;
    gap: 12px !important;
    border-radius: 14px !important;
  }
  .nexus-upload-content {
    flex-direction: row !important;
    align-items: center !important;
    justify-content: flex-start !important;
    gap: 12px !important;
    width: auto !important;
  }
  .nexus-upload-icon-box {
    width: 38px !important;
    height: 38px !important;
    min-width: 38px !important;
    margin-bottom: 0 !important;
    border-radius: 10px !important;
  }
  .nexus-upload-text-box {
    text-align: left !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: flex-start !important;
  }
  .nexus-upload-card-title {
    font-size: 13.5px !important;
    margin-bottom: 1px !important;
  }
  .nexus-upload-card-desc {
    font-size: 10.5px !important;
  }
}

/* Strict File Uploader Reset - For Story Modal Custom Card Only */
.nexus-story-modal-form form.x-uploader,
.nexus-story-modal-form form.x-uploader input[type="file"] {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
  opacity: 0 !important;
  pointer-events: none !important;
}
.nexus-story-modal-form .attachments ul li.add {
  display: none !important;
  width: 0 !important;
  height: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  border: none !important;
  background: transparent !important;
  box-shadow: none !important;
}

/* Restored & Enhanced Publisher-Mini Photos Uploader (Product / Offer / Job Modal) */
.publisher-mini .attachments {
  display: block !important;
  margin-top: 10px !important;
  clear: both !important;
}

.publisher-mini .attachments ul {
  display: flex !important;
  flex-wrap: wrap !important;
  list-style: none !important;
  padding: 0 !important;
  margin: 0 !important;
  gap: 12px !important;
}

/* Publisher Mini Attachments & Photo Uploader System */
.publisher-mini .attachments {
  position: relative !important;
  margin-top: 8px !important;
  display: block !important;
}

.publisher-mini .attachments ul {
  display: flex !important;
  flex-wrap: wrap !important;
  align-items: center !important;
  gap: 12px !important;
  padding: 0 !important;
  margin: 0 !important;
  list-style: none !important;
}

.publisher-mini .attachments ul li {
  position: relative !important;
  width: 92px !important;
  height: 92px !important;
  border-radius: 16px !important;
  overflow: hidden !important;
  box-sizing: border-box !important;
  flex-shrink: 0 !important;
}

/* Upload Box with Dashed Border & Camera Icon - Midnight Glass Theme #151A30 */
.publisher-mini .attachments ul li.add {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 92px !important;
  height: 92px !important;
  padding: 0 !important;
  margin: 0 !important;
  border: 2px dashed rgba(129, 140, 248, 0.45) !important;
  background: #151a30 !important;
  backdrop-filter: blur(14px) !important;
  -webkit-backdrop-filter: blur(14px) !important;
  border-radius: 16px !important;
  cursor: pointer !important;
  color: #818cf8 !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12), 0 6px 18px rgba(0, 0, 0, 0.35) !important;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1) !important;
  clip: auto !important;
  overflow: hidden !important;
  position: relative !important;
}

body:not(.night-mode) .publisher-mini .attachments ul li.add {
  background: #151a30 !important;
  border-color: rgba(129, 140, 248, 0.4) !important;
  color: #818cf8 !important;
  box-shadow: 0 4px 14px rgba(21, 26, 48, 0.25) !important;
}

.publisher-mini .attachments ul li.add:hover {
  border-color: #818cf8 !important;
  border-style: solid !important;
  background: #1a223e !important;
  transform: translateY(-2px) scale(1.03) !important;
  box-shadow: 0 10px 28px rgba(99, 102, 241, 0.45), inset 0 0 15px rgba(99, 102, 241, 0.2) !important;
}

/* File uploader form wrapper inside add box */
.publisher-mini .attachments ul li.add form.x-uploader,
.publisher-mini .attachments ul li.add .x-uploader {
  position: absolute !important;
  inset: 0 !important;
  top: 0 !important;
  left: 0 !important;
  right: 0 !important;
  bottom: 0 !important;
  width: 100% !important;
  height: 100% !important;
  margin: 0 !important;
  padding: 0 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  cursor: pointer !important;
  opacity: 1 !important;
  pointer-events: auto !important;
  clip: auto !important;
  overflow: hidden !important;
  border: none !important;
  background: transparent !important;
  z-index: 2 !important;
}

/* File uploader transparent input - stretches over the whole box */
.publisher-mini .attachments ul li.add form.x-uploader input[type="file"],
.publisher-mini .attachments ul li.add input[type="file"] {
  position: absolute !important;
  inset: 0 !important;
  top: 0 !important;
  left: 0 !important;
  right: 0 !important;
  bottom: 0 !important;
  width: 100% !important;
  height: 100% !important;
  opacity: 0 !important;
  cursor: pointer !important;
  pointer-events: auto !important;
  clip: auto !important;
  font-size: 100px !important;
  margin: 0 !important;
  padding: 0 !important;
  border: none !important;
  z-index: 10 !important;
}

/* Camera Icon - prominent, centered, with glow transition */
.publisher-mini .attachments ul li.add i,
.publisher-mini .attachments ul li.add i.fa-camera,
.publisher-mini .attachments ul li.add i.js_x-uploader {
  font-size: 28px !important;
  color: #818cf8 !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  pointer-events: none !important;
  position: relative !important;
  z-index: 5 !important;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

.publisher-mini .attachments ul li.add:hover i,
.publisher-mini .attachments ul li.add:hover i.fa-camera,
.publisher-mini .attachments ul li.add:hover i.js_x-uploader {
  color: #ffffff !important;
  transform: scale(1.18) !important;
  filter: drop-shadow(0 0 10px rgba(129, 140, 248, 0.8)) !important;
}

/* Uploaded Image Items */
.publisher-mini .attachments ul li.item {
  position: relative !important;
  width: 92px !important;
  height: 92px !important;
  border-radius: 16px !important;
  overflow: hidden !important;
  border: 1.5px solid rgba(255, 255, 255, 0.2) !important;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.35) !important;
  background: #151a30 !important;
  transition: all 0.25s ease !important;
}

.publisher-mini .attachments ul li.item:hover {
  transform: translateY(-2px) scale(1.02) !important;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.45) !important;
  border-color: rgba(99, 102, 241, 0.5) !important;
}

.publisher-mini .attachments ul li.item img {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  display: block !important;
}

.publisher-mini .attachments ul li.item button {
  position: absolute !important;
  top: 5px !important;
  right: 5px !important;
  background: rgba(15, 23, 42, 0.85) !important;
  backdrop-filter: blur(4px) !important;
  border: 1px solid rgba(255, 255, 255, 0.3) !important;
  color: #ffffff !important;
  border-radius: 50% !important;
  width: 24px !important;
  height: 24px !important;
  padding: 0 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  cursor: pointer !important;
  font-size: 11px !important;
  transition: all 0.2s ease !important;
  z-index: 6 !important;
}

.publisher-mini .attachments ul li.item button:hover {
  background: #ef4444 !important;
  border-color: #ef4444 !important;
  transform: scale(1.12) !important;
}

/* Uploading Progress Skeleton */
.publisher-mini .attachments ul li.loading {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 92px !important;
  height: 92px !important;
  background: #151a30 !important;
  border: 1px solid rgba(255, 255, 255, 0.15) !important;
  border-radius: 16px !important;
}

.publisher-mini .attachments ul li.loading .x-progress {
  width: 80% !important;
  height: 6px !important;
  border-radius: 9999px !important;
  background: rgba(255, 255, 255, 0.1) !important;
}

.publisher-mini .attachments ul li.loading .progress-bar {
  background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%) !important;
}

/* Product Publisher Modal Glass Styling */
.modal-content:has(.publisher-mini),
.modal-dialog:has(.publisher-mini) .modal-content {
  background: #151a30 !important;
  border: 1px solid rgba(255, 255, 255, 0.12) !important;
  border-radius: 20px !important;
  box-shadow: 0 25px 60px -10px rgba(0, 0, 0, 0.7), 0 0 30px rgba(99, 102, 241, 0.12) !important;
  backdrop-filter: blur(16px) !important;
  -webkit-backdrop-filter: blur(16px) !important;
  color: #f8fafc !important;
}

.modal-content:has(.publisher-mini) .modal-header,
.modal-content:has(.publisher-mini) .modal-footer {
  border-color: rgba(255, 255, 255, 0.08) !important;
  background: rgba(15, 20, 38, 0.4) !important;
}

.modal-content:has(.publisher-mini) .modal-title {
  color: #ffffff !important;
  font-weight: 700 !important;
}

.modal-content:has(.publisher-mini) .form-label {
  color: #cbd5e1 !important;
  font-weight: 600 !important;
  font-size: 13.5px !important;
}

.modal-content:has(.publisher-mini) .form-control,
.modal-content:has(.publisher-mini) .form-select {
  background: rgba(15, 20, 38, 0.6) !important;
  border: 1px solid rgba(255, 255, 255, 0.12) !important;
  color: #ffffff !important;
  border-radius: 12px !important;
}

.modal-content:has(.publisher-mini) .form-control:focus,
.modal-content:has(.publisher-mini) .form-select:focus {
  background: rgba(15, 20, 38, 0.85) !important;
  border-color: #818cf8 !important;
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.25) !important;
  color: #ffffff !important;
}


/* Attached Previews inside Upload Cards */
.nexus-story-attachments {
  padding: 0 !important;
  margin: 0 !important;
  width: 100% !important;
}
.nexus-story-attachments ul {
  display: flex !important;
  flex-wrap: wrap !important;
  gap: 8px !important;
  padding: 0 !important;
  margin: 8px 0 0 0 !important;
  list-style: none !important;
  justify-content: center !important;
  position: relative !important;
  z-index: 10 !important;
}
@media (max-width: 767px) {
  .nexus-story-attachments ul {
    justify-content: flex-start !important;
    margin: 4px 0 0 0 !important;
  }
}
.nexus-story-attachments ul:empty {
  display: none !important;
  margin: 0 !important;
}
.nexus-story-attachments ul li.item {
  width: 52px !important;
  height: 52px !important;
  border-radius: 12px !important;
  overflow: hidden !important;
  position: relative !important;
  border: 2px solid #8b5cf6 !important;
  box-shadow: 0 4px 12px rgba(139, 92, 246, 0.25) !important;
  z-index: 12 !important;
  background: #0f172a !important;
  flex-shrink: 0 !important;
  transition: transform 0.2s ease !important;
}
.nexus-story-attachments ul li.item:hover {
  transform: scale(1.06) !important;
}
.nexus-story-attachments ul li.item img {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
}
.nexus-story-attachments ul li.item .name {
  font-size: 8.5px !important;
  color: #ffffff !important;
  padding: 2px 4px !important;
  text-overflow: ellipsis !important;
  overflow: hidden !important;
  white-space: nowrap !important;
  position: absolute !important;
  bottom: 0 !important;
  left: 0 !important;
  right: 0 !important;
  background: rgba(15, 23, 42, 0.75) !important;
}
.nexus-story-attachments ul li.item .btn-close {
  position: absolute !important;
  top: 3px !important;
  right: 3px !important;
  width: 16px !important;
  height: 16px !important;
  min-width: 16px !important;
  padding: 0 !important;
  border-radius: 50% !important;
  background: rgba(15, 23, 42, 0.8) url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23fff'%3e%3cpath d='M.293.293a1 1 0 0 1 1.414 0L8 6.586 14.293.293a1 1 0 1 1 1.414 1.414L9.414 8l6.293 6.293a1 1 0 0 1-1.414 1.414L8 9.414l-6.293 6.293a1 1 0 0 1-1.414-1.414L6.586 8 .293 1.707a1 1 0 0 1 0-1.414z'/%3e%3c/svg%3e") center/7px auto no-repeat !important;
  opacity: 0.9 !important;
  z-index: 15 !important;
  cursor: pointer !important;
  border: none !important;
}
.nexus-story-attachments ul li.item .btn-close:hover {
  opacity: 1 !important;
  background-color: #ec4899 !important;
  transform: scale(1.15) !important;
}
.nexus-story-attachments ul li.loading {
  width: 52px !important;
  height: 52px !important;
  border-radius: 12px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  background: rgba(139, 92, 246, 0.08) !important;
  border: 1.5px dashed #8b5cf6 !important;
  position: relative !important;
  z-index: 10 !important;
}
.nexus-story-attachments ul li.loading .progress {
  width: 38px !important;
  height: 5px !important;
  border-radius: 3px !important;
}
.nexus-story-attachments ul li.loading .progress-bar {
  background: linear-gradient(135deg, #8b5cf6 0%, #ec4899 100%) !important;
}

/* Ads Story Subtle Modern Card */
.nexus-story-ads-card {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  padding: 11px 16px !important;
  border-radius: 14px !important;
  background: rgba(139, 92, 246, 0.05) !important;
  border: 1px solid rgba(139, 92, 246, 0.18) !important;
  margin-top: 12px !important;
}
body.night-mode .nexus-story-ads-card {
  background: rgba(139, 92, 246, 0.08) !important;
  border-color: rgba(139, 92, 246, 0.22) !important;
}
.nexus-ads-badge {
  width: 32px !important;
  height: 32px !important;
  border-radius: 10px !important;
  background: rgba(139, 92, 246, 0.15) !important;
  color: #8b5cf6 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  flex-shrink: 0 !important;
}
.nexus-ads-badge svg {
  fill: #8b5cf6 !important;
}
.nexus-ads-title {
  font-size: 13.5px !important;
  font-weight: 700 !important;
  color: #0f172a !important;
}
body.night-mode .nexus-ads-title {
  color: #f8fafc !important;
}
.nexus-ads-subtitle {
  font-size: 11px !important;
  color: #94a3b8 !important;
}
.nexus-story-ads-card .switch input:checked + .slider {
  background-color: #8b5cf6 !important;
}

/* Modal Footer & Buttons */
.nexus-story-footer {
  padding: 12px 22px 20px 22px !important;
  border-top: none !important;
  background: transparent !important;
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 12px !important;
}
@media (max-width: 767px) {
  .nexus-story-footer {
    padding: 10px 16px 16px 16px !important;
    gap: 10px !important;
  }
}
.nexus-story-btn-cancel {
  flex: 1 !important;
  height: 44px !important;
  border-radius: 14px !important;
  background: #f1f5f9 !important;
  color: #475569 !important;
  font-weight: 600 !important;
  font-size: 14px !important;
  border: none !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  transition: all 0.2s ease !important;
}
.nexus-story-btn-cancel:hover {
  background: #e2e8f0 !important;
  color: #0f172a !important;
}
body.night-mode .nexus-story-btn-cancel {
  background: #1e293b !important;
  color: #cbd5e1 !important;
}
body.night-mode .nexus-story-btn-cancel:hover {
  background: #334155 !important;
  color: #f8fafc !important;
}

.nexus-story-btn-publish,
.publisher-mini .js_publisher-story {
  flex: 1.4 !important;
  height: 44px !important;
  border-radius: 14px !important;
  background: linear-gradient(135deg, #8b5cf6 0%, #ec4899 100%) !important;
  border: none !important;
  color: #ffffff !important;
  font-weight: 700 !important;
  font-size: 14px !important;
  letter-spacing: 0.2px !important;
  box-shadow: 0 4px 18px rgba(139, 92, 246, 0.45) !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 8px !important;
  transition: all 0.25s cubic-bezier(0.34, 1.56, 0.64, 1) !important;
}
.nexus-story-btn-publish:hover,
.publisher-mini .js_publisher-story:hover {
  transform: translateY(-2px) scale(1.02) !important;
  box-shadow: 0 8px 25px rgba(139, 92, 246, 0.6), 0 0 15px rgba(236, 72, 153, 0.35) !important;
  color: #ffffff !important;
}
.nexus-story-btn-publish:active,
.publisher-mini .js_publisher-story:active {
  transform: translateY(0) scale(1) !important;
}

/* ==========================================================================
   22. RICH-TEXT "WRITE-UP" CARD & EDITORIAL TYPOGRAPHY
   ========================================================================== */
.nexus-rich-text-card,
.post-media:has(.rich-text-container) {
  position: relative !important;
  border-radius: 20px !important;
  padding: 24px 28px !important;
  margin: 14px 0 !important;
  border: 1px solid rgba(139, 92, 246, 0.18) !important;
  border-left: 5px solid #8b5cf6 !important;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.95) 0%, rgba(248, 250, 252, 0.98) 100%) !important;
  box-shadow: 0 8px 28px -6px rgba(139, 92, 246, 0.12), var(--nexus-shadow-sm) !important;
  backdrop-filter: blur(12px) !important;
  -webkit-backdrop-filter: blur(12px) !important;
  transition: border-color 0.3s ease, box-shadow 0.3s ease !important;
}

body.night-mode .nexus-rich-text-card,
body.night-mode .post-media:has(.rich-text-container) {
  background: linear-gradient(180deg, rgba(30, 41, 59, 0.85) 0%, rgba(15, 23, 42, 0.95) 100%) !important;
  border-color: rgba(139, 92, 246, 0.25) !important;
  border-left: 5px solid #8b5cf6 !important;
  box-shadow: 0 10px 32px -8px rgba(0, 0, 0, 0.6), 0 0 20px rgba(139, 92, 246, 0.08) !important;
}

.nexus-rich-text-card:hover,
.post-media:has(.rich-text-container):hover {
  border-color: rgba(139, 92, 246, 0.4) !important;
  box-shadow: 0 12px 36px -6px rgba(139, 92, 246, 0.22) !important;
}

/* Subtle background quotation watermark */
.nexus-rich-text-card::before,
.post-media:has(.rich-text-container)::before {
  content: '“';
  position: absolute;
  top: -20px;
  right: 20px;
  font-family: Georgia, serif;
  font-size: 140px;
  line-height: 1;
  color: rgba(139, 92, 246, 0.06);
  pointer-events: none;
  z-index: 0;
  user-select: none;
}
body.night-mode .nexus-rich-text-card::before,
body.night-mode .post-media:has(.rich-text-container)::before {
  color: rgba(139, 92, 246, 0.1);
}

/* Badge for Rich Text */
.nexus-rich-text-badge {
  display: inline-flex !important;
  align-items: center !important;
  gap: 7px !important;
  padding: 5px 14px !important;
  border-radius: 20px !important;
  font-size: 11px !important;
  font-weight: 700 !important;
  text-transform: uppercase !important;
  letter-spacing: 0.8px !important;
  margin-bottom: 18px !important;
  background: linear-gradient(135deg, rgba(139, 92, 246, 0.12) 0%, rgba(236, 72, 153, 0.12) 100%) !important;
  color: #8b5cf6 !important;
  border: 1px solid rgba(139, 92, 246, 0.3) !important;
  position: relative !important;
  z-index: 1 !important;
}
body.night-mode .nexus-rich-text-badge {
  background: linear-gradient(135deg, rgba(139, 92, 246, 0.2) 0%, rgba(236, 72, 153, 0.2) 100%) !important;
  color: #c084fc !important;
  border-color: rgba(139, 92, 246, 0.45) !important;
  box-shadow: 0 0 12px rgba(139, 92, 246, 0.2) !important;
}

/* Editorial Typography */
.rich-text-container {
  font-family: var(--nexus-font-sans, 'Plus Jakarta Sans', system-ui, sans-serif) !important;
  font-size: 15.5px !important;
  line-height: 1.8 !important;
  color: #334155 !important;
  position: relative !important;
  z-index: 1 !important;
}
body.night-mode .rich-text-container {
  color: #cbd5e1 !important;
}

.rich-text-container p {
  margin-bottom: 18px !important;
  line-height: 1.8 !important;
  letter-spacing: -0.05px !important;
}
.rich-text-container p:last-child {
  margin-bottom: 0 !important;
}

/* Headings inside write-up */
.rich-text-container h1,
.rich-text-container h2,
.rich-text-container h3,
.rich-text-container h4 {
  font-weight: 800 !important;
  letter-spacing: -0.3px !important;
  color: #0f172a !important;
  margin-top: 24px !important;
  margin-bottom: 12px !important;
  line-height: 1.3 !important;
}
body.night-mode .rich-text-container h1,
body.night-mode .rich-text-container h2,
body.night-mode .rich-text-container h3,
body.night-mode .rich-text-container h4 {
  color: #f8fafc !important;
}

/* Blockquotes inside write-up */
.rich-text-container blockquote {
  margin: 22px 0 !important;
  padding: 14px 20px !important;
  border-left: 4px solid #8b5cf6 !important;
  border-radius: 0 14px 14px 0 !important;
  background: rgba(139, 92, 246, 0.06) !important;
  font-style: italic !important;
  color: #475569 !important;
}
body.night-mode .rich-text-container blockquote {
  background: rgba(139, 92, 246, 0.12) !important;
  color: #94a3b8 !important;
}

/* Code & Pre inside write-up */
.rich-text-container pre {
  background: #0f172a !important;
  color: #e2e8f0 !important;
  padding: 16px 20px !important;
  border-radius: 14px !important;
  overflow-x: auto !important;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace !important;
  font-size: 13.5px !important;
  line-height: 1.6 !important;
  margin: 18px 0 !important;
  border: 1px solid rgba(255, 255, 255, 0.1) !important;
}
.rich-text-container code {
  background: rgba(139, 92, 246, 0.1) !important;
  color: #8b5cf6 !important;
  padding: 3px 7px !important;
  border-radius: 6px !important;
  font-size: 13.5px !important;
}
body.night-mode .rich-text-container code {
  color: #c084fc !important;
  background: rgba(139, 92, 246, 0.2) !important;
}

/* Lists inside write-up */
.rich-text-container ul,
.rich-text-container ol {
  padding-left: 24px !important;
  margin-bottom: 18px !important;
}
.rich-text-container li {
  margin-bottom: 8px !important;
  line-height: 1.7 !important;
}

/* ==========================================================================
   23. EMOJI & STICKER MENU POPUP (POSITIONING & THEME ENHANCEMENT)
   ========================================================================== */
.emoji-menu,
.comment-form .emoji-menu,
.x-form .emoji-menu,
.chat-form .emoji-menu {
  position: absolute !important;
  bottom: 100% !important;
  right: 0 !important;
  top: auto !important;
  left: auto !important;
  margin-bottom: 14px !important;
  width: 330px !important;
  min-width: 300px !important;
  max-width: 92vw !important;
  border-radius: 20px !important;
  overflow: hidden !important;
  box-shadow: 0 16px 45px -5px rgba(0, 0, 0, 0.45), 0 0 25px rgba(99, 102, 241, 0.2) !important;
  z-index: 999999 !important;
  padding: 0 !important;
}

/* Light Mode */
.emoji-menu,
.comment-form .emoji-menu,
.x-form .emoji-menu {
  background: #ffffff !important;
  border: 1px solid rgba(0, 0, 0, 0.08) !important;
}

/* Dark Mode */
body.night-mode .emoji-menu,
body.night-mode .comment-form .emoji-menu,
body.night-mode .x-form .emoji-menu {
  background: #1e293b !important;
  border: 1px solid rgba(255, 255, 255, 0.12) !important;
  box-shadow: 0 20px 50px -5px rgba(0, 0, 0, 0.7), 0 0 30px rgba(99, 102, 241, 0.25) !important;
}

/* Tabs Header at bottom of emoji-menu */
.emoji-menu .nav-tabs {
  margin: 0 !important;
  padding: 6px 12px !important;
  display: flex !important;
  align-items: center !important;
  gap: 8px !important;
  border-bottom: none !important;
  border-radius: 0 0 20px 20px !important;
}

.emoji-menu .nav-tabs {
  background: #f8fafc !important;
  border-top: 1px solid #e2e8f0 !important;
}

body.night-mode .emoji-menu .nav-tabs {
  background: #0f172a !important;
  border-top: 1px solid rgba(255, 255, 255, 0.08) !important;
}

.emoji-menu .nav-tabs .nav-item {
  flex: 1 !important;
  margin: 0 !important;
}

.emoji-menu .nav-tabs > li > .nav-link,
.emoji-menu .nav-tabs .nav-link {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  padding: 9px 14px !important;
  font-size: 13px !important;
  font-weight: 600 !important;
  color: #64748b !important;
  border: none !important;
  border-radius: 12px !important;
  background: transparent !important;
  transition: all 0.2s ease !important;
  width: 100% !important;
}

body.night-mode .emoji-menu .nav-tabs > li > .nav-link,
body.night-mode .emoji-menu .nav-tabs .nav-link {
  color: #94a3b8 !important;
}

.emoji-menu .nav-tabs > li > .nav-link:hover,
.emoji-menu .nav-tabs .nav-link:hover {
  color: var(--nexus-primary, #6366f1) !important;
  background: rgba(99, 102, 241, 0.08) !important;
}

body.night-mode .emoji-menu .nav-tabs > li > .nav-link:hover,
body.night-mode .emoji-menu .nav-tabs .nav-link:hover {
  color: #c7d2fe !important;
  background: rgba(99, 102, 241, 0.15) !important;
}

.emoji-menu .nav-tabs > li > .nav-link.active,
.emoji-menu .nav-tabs .nav-link.active {
  color: #ffffff !important;
  background: linear-gradient(135deg, #6366f1, #8b5cf6) !important;
  font-weight: 700 !important;
  box-shadow: 0 3px 10px rgba(99, 102, 241, 0.35) !important;
  border-top: none !important;
  margin-top: 0 !important;
}

body.night-mode .emoji-menu .nav-tabs > li > .nav-link.active,
body.night-mode .emoji-menu .nav-tabs .nav-link.active {
  color: #ffffff !important;
  background: linear-gradient(135deg, #6366f1, #8b5cf6) !important;
}

/* Emoji Content Pane */
.emoji-menu .tab-content {
  height: 200px !important;
  padding: 12px 10px 8px 10px !important;
  overflow: hidden !important;
}

.emoji-menu .item {
  float: left !important;
  padding: 4px !important;
  margin: 2px !important;
  border-radius: 8px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  transition: transform 0.15s cubic-bezier(0.34, 1.56, 0.64, 1), background 0.15s ease !important;
}

.emoji-menu .item:hover {
  background: rgba(99, 102, 241, 0.12) !important;
  transform: scale(1.22) !important;
  cursor: pointer !important;
}

body.night-mode .emoji-menu .item:hover {
  background: rgba(99, 102, 241, 0.28) !important;
}

/* Custom Scrollbar for Emoji Picker */
.emoji-menu .slimScrollBar {
  background: rgba(99, 102, 241, 0.45) !important;
  border-radius: 6px !important;
  width: 5px !important;
}

/* ==========================================================================
   24. EMBED CODE BOX & SHARE MODAL (DARK/LIGHT CONTRAST FIX)
   ========================================================================== */
.nexus-embed-code-box,
textarea.form-control[readonly].nexus-embed-code-box,
.modal-body textarea[readonly] {
  resize: none !important;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace !important;
  font-size: 13px !important;
  line-height: 1.65 !important;
  border-radius: 14px !important;
  padding: 14px 16px !important;
  transition: all 0.2s ease !important;
  background-color: #f1f5f9 !important;
  color: #0f172a !important;
  border: 1px solid #cbd5e1 !important;
}

body.night-mode .nexus-embed-code-box,
body.night-mode textarea.form-control[readonly].nexus-embed-code-box,
body.night-mode .modal-body textarea[readonly] {
  background-color: #0f172a !important;
  color: #38bdf8 !important;
  border: 1px solid rgba(255, 255, 255, 0.12) !important;
  box-shadow: inset 0 2px 6px rgba(0, 0, 0, 0.5) !important;
}

.nexus-embed-code-box:focus,
body.night-mode .nexus-embed-code-box:focus,
.modal-body textarea[readonly]:focus {
  border-color: #8b5cf6 !important;
  box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.25) !important;
}

.nexus-btn-embed-copy {
  border-radius: 10px !important;
  padding: 6px 18px !important;
  font-size: 12.5px !important;
  font-weight: 600 !important;
  background: linear-gradient(135deg, #6366f1, #8b5cf6) !important;
  border: none !important;
  color: #ffffff !important;
  box-shadow: 0 2px 8px rgba(99, 102, 241, 0.35) !important;
  transition: all 0.2s ease !important;
}
.nexus-btn-embed-copy:hover {
  transform: translateY(-1px) !important;
  box-shadow: 0 4px 12px rgba(99, 102, 241, 0.5) !important;
  color: #ffffff !important;
}

/* ==========================================================================
   25. LATEST BLOGS CAROUSEL & WIDGET THEME (CONTRAST & COLOR FIX)
   ========================================================================== */
.card:has(#blogs-carousel),
.nexus-blogs-card {
  border-radius: var(--nexus-radius-xl, 20px) !important;
  border: 1px solid var(--nexus-border) !important;
  box-shadow: var(--nexus-shadow-md) !important;
  overflow: hidden !important;
}

/* Card Header */
.card:has(#blogs-carousel) .card-header,
.nexus-blogs-card .card-header {
  font-size: 15px !important;
  font-weight: 700 !important;
  color: var(--nexus-text-main, #0f172a) !important;
  padding: 16px 20px 10px !important;
  border: none !important;
}
body.night-mode .card:has(#blogs-carousel) .card-header,
body.night-mode .nexus-blogs-card .card-header {
  color: #f8fafc !important;
}

/* "See All" Link */
.card:has(#blogs-carousel) .card-header a,
.nexus-see-all-link {
  color: var(--nexus-primary, #6366f1) !important;
  font-size: 12.5px !important;
  font-weight: 600 !important;
  transition: all 0.2s ease !important;
  text-decoration: none !important;
}
body.night-mode .card:has(#blogs-carousel) .card-header a,
body.night-mode .nexus-see-all-link {
  color: #818cf8 !important;
}
.card:has(#blogs-carousel) .card-header a:hover,
.nexus-see-all-link:hover {
  color: #4f46e5 !important;
  transform: translateX(2px) !important;
}
body.night-mode .card:has(#blogs-carousel) .card-header a:hover,
body.night-mode .nexus-see-all-link:hover {
  color: #a5b4fc !important;
}

/* Blog Item Container */
#blogs-carousel .post-media.list,
.nexus-blog-item {
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  padding: 0 !important;
}
body.night-mode #blogs-carousel .post-media.list,
body.night-mode .nexus-blog-item {
  background: transparent !important;
}

/* Cover Image & Hover Effect */
#blogs-carousel .post-media-image-wrapper {
  border-radius: 16px !important;
  overflow: hidden !important;
  position: relative !important;
  margin: 0 10px !important;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.12) !important;
}
body.night-mode #blogs-carousel .post-media-image-wrapper {
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.45) !important;
  border: 1px solid rgba(255, 255, 255, 0.08) !important;
}
#blogs-carousel .post-media-image > div,
.nexus-blog-cover {
  border-radius: 16px !important;
  transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1) !important;
}
#blogs-carousel .post-media.list:hover .post-media-image > div,
#blogs-carousel .post-media.list:hover .nexus-blog-cover {
  transform: scale(1.04) !important;
}

/* Category Badge (Radiant Vibrant Pill) */
#blogs-carousel .blog-category,
.nexus-blog-category {
  background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%) !important;
  color: #ffffff !important;
  font-weight: 700 !important;
  font-size: 11px !important;
  letter-spacing: 0.6px !important;
  text-transform: uppercase !important;
  padding: 4px 13px !important;
  border-radius: 20px !important;
  box-shadow: 0 4px 12px rgba(99, 102, 241, 0.45) !important;
  border: 1px solid rgba(255, 255, 255, 0.25) !important;
  backdrop-filter: blur(8px) !important;
  -webkit-backdrop-filter: blur(8px) !important;
  transition: all 0.2s ease !important;
  display: inline-block !important;
  line-height: 20px !important;
}
#blogs-carousel .blog-category:hover,
.nexus-blog-category:hover {
  background: linear-gradient(135deg, #4f46e5 0%, #7c3aed 100%) !important;
  color: #ffffff !important;
  transform: translateY(-2px) scale(1.04) !important;
  box-shadow: 0 6px 16px rgba(99, 102, 241, 0.6) !important;
}

/* Post Media Meta Area */
#blogs-carousel .post-media-meta,
.nexus-blog-meta {
  padding: 14px 14px 12px !important;
  background: transparent !important;
}

/* Blog Title (High Contrast & Clickable) */
#blogs-carousel .post-media-meta .title,
.nexus-blog-title {
  display: block !important;
  font-size: 16.5px !important;
  font-weight: 700 !important;
  line-height: 1.4 !important;
  color: var(--nexus-text-main, #0f172a) !important;
  margin-bottom: 8px !important;
  transition: color 0.2s ease !important;
  text-decoration: none !important;
}
body.night-mode #blogs-carousel .post-media-meta .title,
body.night-mode .nexus-blog-title {
  color: #f8fafc !important; /* Crystal clear high-contrast white */
}
#blogs-carousel .post-media-meta .title:hover,
.nexus-blog-title:hover {
  color: var(--nexus-primary, #6366f1) !important;
}
body.night-mode #blogs-carousel .post-media-meta .title:hover,
body.night-mode .nexus-blog-title:hover {
  color: #818cf8 !important;
}

/* Text Snippet */
#blogs-carousel .post-media-meta .text,
.nexus-blog-text {
  font-size: 13.5px !important;
  line-height: 1.6 !important;
  color: var(--nexus-text-muted, #64748b) !important;
  margin-bottom: 10px !important;
}
body.night-mode #blogs-carousel .post-media-meta .text,
body.night-mode .nexus-blog-text {
  color: #94a3b8 !important; /* Soft legible slate */
}

/* Info Bar & Author Link */
#blogs-carousel .post-media-meta .info,
.nexus-blog-info {
  font-size: 12.5px !important;
  color: var(--nexus-text-muted, #94a3b8) !important;
  display: flex !important;
  align-items: center !important;
  gap: 4px !important;
  flex-wrap: wrap !important;
}
#blogs-carousel .post-media-meta .info a,
.nexus-blog-author {
  color: var(--nexus-primary, #6366f1) !important;
  font-weight: 600 !important;
  text-decoration: none !important;
  transition: color 0.2s ease !important;
}
body.night-mode #blogs-carousel .post-media-meta .info a,
body.night-mode .nexus-blog-author {
  color: #a5b4fc !important; /* Vibrant high-contrast purple-blue */
}
#blogs-carousel .post-media-meta .info a:hover,
.nexus-blog-author:hover {
  text-decoration: underline !important;
  color: #818cf8 !important;
}

/* Carousel Control Arrows */
#blogs-carousel .carousel-control-prev,
#blogs-carousel .carousel-control-next,
.nexus-carousel-btn {
  width: 34px !important;
  height: 34px !important;
  border-radius: 50% !important;
  top: 35% !important;
  transform: translateY(-50%) !important;
  opacity: 0.9 !important;
  border: 1px solid rgba(255, 255, 255, 0.15) !important;
  background: rgba(15, 23, 42, 0.75) !important;
  color: #ffffff !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.35) !important;
  transition: all 0.2s cubic-bezier(0.34, 1.56, 0.64, 1) !important;
  z-index: 10 !important;
}
#blogs-carousel .carousel-control-prev {
  left: 2px !important;
}
#blogs-carousel .carousel-control-next {
  right: 2px !important;
}
#blogs-carousel .carousel-control-prev:hover,
#blogs-carousel .carousel-control-next:hover,
.nexus-carousel-btn:hover {
  opacity: 1 !important;
  background: var(--nexus-primary, #6366f1) !important;
  color: #ffffff !important;
  transform: translateY(-50%) scale(1.12) !important;
  box-shadow: 0 6px 18px rgba(99, 102, 241, 0.45) !important;
}
#blogs-carousel .carousel-control-prev-icon,
#blogs-carousel .carousel-control-next-icon {
  background-color: transparent !important;
  filter: brightness(0) invert(1) !important;
  width: 1rem !important;
  height: 1rem !important;
}

/* ==========================================================================
   26. BLOGS LISTING & ARTICLE READ PAGE PRO THEME
   ========================================================================== */

/* --------------------------------------------------------------------------
   26.1 ARTICLE READ PAGE (https://dev.weconectus.com/blogs/ID/SLUG)
   -------------------------------------------------------------------------- */
.blog,
.nexus-blog-article-card {
  background: var(--nexus-surface, #ffffff) !important;
  border: 1px solid var(--nexus-border) !important;
  border-radius: 24px !important;
  box-shadow: var(--nexus-shadow-md), 0 8px 30px rgba(0, 0, 0, 0.04) !important;
  overflow: visible !important;
  position: relative !important;
}
body.night-mode .blog,
body.night-mode .nexus-blog-article-card {
  background: #111827 !important;
  border-color: rgba(255, 255, 255, 0.08) !important;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5) !important;
}

.blog-wrapper,
.nexus-blog-wrapper {
  padding: 36px 36px 24px !important;
  background: transparent !important;
  border-radius: 24px 24px 0 0 !important;
}
@media (max-width: 767px) {
  .blog-wrapper,
  .nexus-blog-wrapper {
    padding: 22px 18px 16px !important;
  }
}
body.night-mode .blog-wrapper {
  background: transparent !important;
}

/* Blog Read Title */
.blog-wrapper h3,
.nexus-blog-read-title {
  font-size: 30px !important;
  font-weight: 800 !important;
  line-height: 1.35 !important;
  letter-spacing: -0.5px !important;
  color: var(--nexus-text-main, #0f172a) !important;
  margin-top: 0 !important;
  margin-bottom: 16px !important;
}
body.night-mode .blog-wrapper h3,
body.night-mode .nexus-blog-read-title {
  color: #f8fafc !important; /* Crystal clear bright white */
}

/* Category Badges & Breadcrumbs */
.nexus-blog-badge,
.blog-wrapper .badge.bg-light.text-primary,
.blog-wrapper .badge {
  display: inline-flex !important;
  align-items: center !important;
  padding: 6px 14px !important;
  border-radius: 12px !important;
  font-size: 12px !important;
  font-weight: 700 !important;
  text-transform: uppercase !important;
  letter-spacing: 0.5px !important;
  transition: all 0.2s ease !important;
  text-decoration: none !important;
  background: rgba(99, 102, 241, 0.1) !important;
  color: #6366f1 !important;
  border: 1px solid rgba(99, 102, 241, 0.2) !important;
}
body.night-mode .nexus-blog-badge,
body.night-mode .blog-wrapper .badge.bg-light.text-primary,
body.night-mode .blog-wrapper .badge {
  background: rgba(99, 102, 241, 0.2) !important;
  color: #a5b4fc !important;
  border-color: rgba(99, 102, 241, 0.35) !important;
}
.nexus-blog-badge:hover,
.blog-wrapper .badge:hover {
  background: linear-gradient(135deg, #6366f1, #8b5cf6) !important;
  color: #ffffff !important;
  transform: translateY(-1px) !important;
  box-shadow: 0 4px 12px rgba(99, 102, 241, 0.35) !important;
}

/* Author & Meta Area */
.blog-wrapper .post-meta a {
  color: var(--nexus-text-main, #0f172a) !important;
  font-weight: 700 !important;
  font-size: 15px !important;
  transition: color 0.2s ease !important;
}
body.night-mode .blog-wrapper .post-meta a {
  color: #f8fafc !important;
}
.blog-wrapper .post-meta a:hover {
  color: var(--nexus-primary, #6366f1) !important;
}
body.night-mode .blog-wrapper .post-meta a:hover {
  color: #818cf8 !important;
}
.blog-wrapper .post-time {
  color: var(--nexus-text-muted, #94a3b8) !important;
  font-size: 12.5px !important;
}

/* Metric Counters (Comments & Views) */
.blog-meta-counter {
  display: inline-flex !important;
  align-items: center !important;
  gap: 6px !important;
  padding: 7px 16px !important;
  margin-bottom: 5px !important;
  font-size: 13px !important;
  font-weight: 600 !important;
  line-height: 1 !important;
  color: #475569 !important;
  background: #f1f5f9 !important;
  border: 1px solid #e2e8f0 !important;
  border-radius: 12px !important;
  transition: all 0.2s ease !important;
}
body.night-mode .blog-meta-counter {
  background: rgba(30, 41, 59, 0.8) !important;
  color: #94a3b8 !important;
  border-color: rgba(255, 255, 255, 0.1) !important;
}
.blog-meta-counter:hover {
  color: #6366f1 !important;
  border-color: #6366f1 !important;
  background: rgba(99, 102, 241, 0.08) !important;
  transform: translateY(-1px) !important;
}
body.night-mode .blog-meta-counter:hover {
  color: #a5b4fc !important;
  border-color: #818cf8 !important;
  background: rgba(99, 102, 241, 0.2) !important;
}

/* Blog Cover Image */
.nexus-blog-read-cover,
.blog-wrapper img.img-fluid {
  border-radius: 20px !important;
  width: 100% !important;
  max-height: 480px !important;
  object-fit: cover !important;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12) !important;
  margin-bottom: 24px !important;
}
body.night-mode .nexus-blog-read-cover,
body.night-mode .blog-wrapper img.img-fluid {
  box-shadow: 0 10px 35px rgba(0, 0, 0, 0.5) !important;
  border: 1px solid rgba(255, 255, 255, 0.08) !important;
}

/* Blog Body Text Reading Experience */
.blog-text {
  font-family: var(--nexus-font-sans, 'Plus Jakarta Sans', system-ui, sans-serif) !important;
  font-size: 17px !important;
  line-height: 1.85 !important;
  color: #334155 !important;
  margin-bottom: 30px !important;
}
body.night-mode .blog-text {
  color: #cbd5e1 !important;
}

.blog-text p {
  margin-bottom: 22px !important;
  line-height: 1.85 !important;
}

.blog-text h1,
.blog-text h2,
.blog-text h3,
.blog-text h4,
.blog-text h5 {
  font-weight: 800 !important;
  letter-spacing: -0.3px !important;
  color: #0f172a !important;
  margin-top: 36px !important;
  margin-bottom: 16px !important;
  line-height: 1.35 !important;
}
body.night-mode .blog-text h1,
body.night-mode .blog-text h2,
body.night-mode .blog-text h3,
body.night-mode .blog-text h4,
body.night-mode .blog-text h5 {
  color: #f8fafc !important;
}

/* Blog Text Blockquotes */
.blog-text blockquote {
  margin: 28px 0 !important;
  padding: 18px 24px !important;
  border-left: 4px solid #8b5cf6 !important;
  border-radius: 0 16px 16px 0 !important;
  background: rgba(139, 92, 246, 0.06) !important;
  font-style: italic !important;
  font-size: 17.5px !important;
  color: #475569 !important;
}
body.night-mode .blog-text blockquote {
  background: rgba(139, 92, 246, 0.12) !important;
  color: #cbd5e1 !important;
}

/* Blog Tags */
.blog-tags ul > li > a {
  border-radius: 20px !important;
  background: #f1f5f9 !important;
  padding: 6px 18px !important;
  font-size: 12.5px !important;
  font-weight: 600 !important;
  color: #475569 !important;
  border: 1px solid #e2e8f0 !important;
  transition: all 0.2s ease !important;
}
body.night-mode .blog-tags ul > li > a {
  background: rgba(30, 41, 59, 0.8) !important;
  color: #94a3b8 !important;
  border-color: rgba(255, 255, 255, 0.09) !important;
}
.blog-tags ul > li > a:hover {
  background: linear-gradient(135deg, #6366f1, #8b5cf6) !important;
  color: #ffffff !important;
  border-color: transparent !important;
  transform: translateY(-2px) !important;
  box-shadow: 0 4px 14px rgba(99, 102, 241, 0.35) !important;
}

/* Blog References */
.blog-references-section {
  background: #f8fafc !important;
  border: 1px solid #e2e8f0 !important;
  border-radius: 18px !important;
  padding: 22px 26px !important;
  margin-top: 24px !important;
}
body.night-mode .blog-references-section {
  background: #1e293b !important;
  border-color: rgba(255, 255, 255, 0.08) !important;
}
.blog-references-heading {
  font-size: 16px !important;
  font-weight: 700 !important;
  color: var(--nexus-text-main, #0f172a) !important;
  margin-bottom: 14px !important;
}
body.night-mode .blog-references-heading {
  color: #f8fafc !important;
}
.blog-references-link {
  color: var(--nexus-primary, #6366f1) !important;
  font-weight: 500 !important;
}
body.night-mode .blog-references-link {
  color: #a5b4fc !important;
}

/* Post Actions inside Blog */
.blog .post-actions {
  border-top: 1px solid var(--nexus-border) !important;
  padding: 12px 20px !important;
}

/* Comments Section inside Blog */
.blog .post-footer {
  border-top: 1px solid var(--nexus-border) !important;
  background: rgba(248, 250, 252, 0.6) !important;
  padding: 18px 24px !important;
  border-radius: 0 0 24px 24px !important;
}
body.night-mode .blog .post-footer {
  background: rgba(15, 23, 42, 0.5) !important;
  border-top-color: rgba(255, 255, 255, 0.08) !important;
}

/* Right Sidebar: Create New Blog Button */
.nexus-btn-new-blog,
.btn-success:has(.fa-edit) {
  background: linear-gradient(135deg, #10b981 0%, #059669 100%) !important;
  border: none !important;
  border-radius: 14px !important;
  padding: 12px 20px !important;
  font-weight: 700 !important;
  color: #ffffff !important;
  box-shadow: 0 4px 16px rgba(16, 185, 129, 0.35) !important;
  transition: all 0.25s ease !important;
}
.nexus-btn-new-blog:hover,
.btn-success:has(.fa-edit):hover {
  transform: translateY(-2px) !important;
  box-shadow: 0 8px 22px rgba(16, 185, 129, 0.5) !important;
  color: #ffffff !important;
}

/* Right Sidebar Widgets - Blog Read & Categories Page */
.blogs-widget-header {
  display: flex !important;
  align-items: center !important;
  margin-top: 24px !important;
  margin-bottom: 14px !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08) !important;
  padding-bottom: 8px !important;
}
body:not(.night-mode) .blogs-widget-header {
  border-bottom: 1px solid var(--nexus-border) !important;
}
.blogs-widget-title {
  color: var(--nexus-text-main, #0f172a) !important;
  font-weight: 800 !important;
  font-size: 14px !important;
  letter-spacing: 0.5px !important;
  text-transform: uppercase !important;
  position: relative !important;
  padding-left: 12px !important;
  margin-bottom: 0 !important;
}
body.night-mode .blogs-widget-title {
  color: #f8fafc !important;
}
.blogs-widget-title::before {
  content: '' !important;
  position: absolute !important;
  left: 0 !important;
  top: 50% !important;
  transform: translateY(-50%) !important;
  width: 4px !important;
  height: 15px !important;
  border-radius: 4px !important;
  background: var(--nexus-gradient-primary, linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%)) !important;
}

/* Category Badges / Pills in Sidebar */
.blog-categories {
  display: flex !important;
  flex-wrap: wrap !important;
  gap: 8px !important;
  list-style: none !important;
  padding: 0 !important;
  margin: 0 0 20px 0 !important;
}
.blog-categories li {
  margin: 0 !important;
  display: inline-block !important;
}
.blog-categories li .blog-category {
  display: inline-flex !important;
  align-items: center !important;
  padding: 6px 14px !important;
  border-radius: 50px !important;
  font-size: 11.5px !important;
  font-weight: 700 !important;
  letter-spacing: 0.4px !important;
  text-transform: uppercase !important;
  background: rgba(99, 102, 241, 0.1) !important;
  color: #818cf8 !important;
  border: 1px solid rgba(99, 102, 241, 0.22) !important;
  text-decoration: none !important;
  transition: all 0.25s cubic-bezier(0.34, 1.56, 0.64, 1) !important;
}
body.night-mode .blog-categories li .blog-category {
  background: rgba(30, 41, 59, 0.8) !important;
  color: #c7d2fe !important;
  border: 1px solid rgba(255, 255, 255, 0.1) !important;
}
.blog-categories li .blog-category:hover {
  background: var(--nexus-gradient-primary, linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%)) !important;
  color: #ffffff !important;
  border-color: transparent !important;
  transform: translateY(-2px) scale(1.04) !important;
  box-shadow: 0 4px 14px rgba(99, 102, 241, 0.4) !important;
}

/* Read More Cards in Right Sidebar */
.post-media.list {
  background: var(--nexus-surface, #ffffff) !important;
  border: 1px solid var(--nexus-border) !important;
  border-radius: 18px !important;
  overflow: hidden !important;
  margin-bottom: 18px !important;
  box-shadow: var(--nexus-shadow-sm) !important;
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1) !important;
}
body.night-mode .post-media.list {
  background: rgba(30, 41, 59, 0.7) !important;
  backdrop-filter: blur(12px) !important;
  border-color: rgba(255, 255, 255, 0.08) !important;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.3) !important;
}
.post-media.list:hover {
  transform: translateY(-4px) !important;
  border-color: rgba(99, 102, 241, 0.35) !important;
  box-shadow: 0 12px 28px -6px rgba(0, 0, 0, 0.45), 0 0 16px rgba(99, 102, 241, 0.2) !important;
}
body:not(.night-mode) .post-media.list:hover {
  box-shadow: 0 12px 28px -6px rgba(99, 102, 241, 0.18) !important;
}

/* Cover Image inside Read More Card */
.post-media.list .post-media-image-wrapper {
  position: relative !important;
  overflow: hidden !important;
  border-top-left-radius: 17px !important;
  border-top-right-radius: 17px !important;
}
.post-media.list .post-media-image div {
  transition: transform 0.4s ease !important;
}
.post-media.list:hover .post-media-image div {
  transform: scale(1.05) !important;
}

/* Category Badge over image in Read More Card */
.post-media.list .post-media-image-meta {
  position: absolute !important;
  bottom: 10px !important;
  left: 10px !important;
  z-index: 2 !important;
}
.post-media.list .post-media-image-meta .blog-category {
  display: inline-block !important;
  background: rgba(15, 23, 42, 0.8) !important;
  backdrop-filter: blur(8px) !important;
  border: 1px solid rgba(255, 255, 255, 0.15) !important;
  color: #ffffff !important;
  font-size: 10.5px !important;
  font-weight: 700 !important;
  letter-spacing: 0.5px !important;
  text-transform: uppercase !important;
  padding: 3px 10px !important;
  border-radius: 50px !important;
  text-decoration: none !important;
  transition: all 0.2s ease !important;
}
.post-media.list .post-media-image-meta .blog-category:hover {
  background: var(--nexus-primary, #6366f1) !important;
  border-color: transparent !important;
}

/* Meta Content inside Read More Card */
.post-media.list .post-media-meta {
  padding: 14px 16px !important;
}
.post-media.list .post-media-meta a.title {
  display: block !important;
  font-size: 15px !important;
  font-weight: 700 !important;
  line-height: 1.4 !important;
  color: var(--nexus-text-main, #0f172a) !important;
  text-decoration: none !important;
  margin-bottom: 6px !important;
  transition: color 0.2s ease !important;
}
body.night-mode .post-media.list .post-media-meta a.title {
  color: #f8fafc !important;
}
.post-media.list .post-media-meta a.title:hover {
  color: var(--nexus-primary, #6366f1) !important;
}
body.night-mode .post-media.list .post-media-meta a.title:hover {
  color: #a5b4fc !important;
}

/* Snippet text inside Read More Card */
.post-media.list .post-media-meta .text {
  color: var(--nexus-text-muted, #64748b) !important;
  font-size: 13px !important;
  line-height: 1.55 !important;
  margin-bottom: 10px !important;
}
body.night-mode .post-media.list .post-media-meta .text {
  color: #94a3b8 !important;
}

/* Info metadata row (Author, Clock, Comments, Views) */
.post-media.list .post-media-meta .info {
  display: flex !important;
  align-items: center !important;
  flex-wrap: wrap !important;
  gap: 10px !important;
  font-size: 11.5px !important;
  color: var(--nexus-text-muted, #64748b) !important;
  border-top: 1px solid rgba(255, 255, 255, 0.06) !important;
  padding-top: 8px !important;
  margin-top: 4px !important;
}
body:not(.night-mode) .post-media.list .post-media-meta .info {
  border-top: 1px solid rgba(0, 0, 0, 0.05) !important;
}
.post-media.list .post-media-meta .info a {
  color: var(--nexus-primary, #6366f1) !important;
  font-weight: 600 !important;
  text-decoration: none !important;
}
body.night-mode .post-media.list .post-media-meta .info a {
  color: #a5b4fc !important;
}
.post-media.list .post-media-meta .info i.fa {
  color: var(--nexus-primary, #6366f1) !important;
  opacity: 0.8 !important;
}
body.night-mode .post-media.list .post-media-meta .info i.fa {
  color: #818cf8 !important;
}

/* Sidebar Search Form */
.col-md-4 .js_search-form[data-filter="blogs"] .input-group {
  border-radius: 12px !important;
  overflow: hidden !important;
  border: 1px solid var(--nexus-border) !important;
  box-shadow: var(--nexus-shadow-xs) !important;
}
body.night-mode .col-md-4 .js_search-form[data-filter="blogs"] .input-group {
  border-color: rgba(255, 255, 255, 0.08) !important;
  background: rgba(30, 41, 59, 0.8) !important;
}
.col-md-4 .js_search-form[data-filter="blogs"] .form-control {
  border: none !important;
  background: transparent !important;
  padding: 10px 14px !important;
  font-size: 13.5px !important;
}
body.night-mode .col-md-4 .js_search-form[data-filter="blogs"] .form-control {
  color: #f8fafc !important;
}
.col-md-4 .js_search-form[data-filter="blogs"] .btn {
  background: var(--nexus-primary, #6366f1) !important;
  border: none !important;
  color: #ffffff !important;
  font-weight: 600 !important;
  font-size: 13px !important;
  padding: 0 16px !important;
}
.col-md-4 .js_search-form[data-filter="blogs"] .btn:hover {
  background: var(--nexus-primary-hover, #4f46e5) !important;
}

/* --------------------------------------------------------------------------
   26.2 BLOGS LISTING PAGE (https://dev.weconectus.com/blogs)
   -------------------------------------------------------------------------- */
/* Page Header Banner */
.page-header:has(.floating-img),
.container .page-header,
.container-fluid .page-header {
  border-radius: 24px !important;
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.12) 0%, rgba(139, 92, 246, 0.08) 50%, rgba(236, 72, 153, 0.05) 100%) !important;
  border: 1px solid var(--nexus-border) !important;
  padding: 44px 24px !important;
  margin-bottom: 24px !important;
  margin-left: auto !important;
  margin-right: auto !important;
  position: relative !important;
  overflow: hidden !important;
  width: 100% !important;
  max-width: 1320px !important;
}
body.night-mode .page-header:has(.floating-img),
body.night-mode .container .page-header,
body.night-mode .container-fluid .page-header {
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.18) 0%, rgba(30, 41, 59, 0.95) 70%) !important;
  border-color: rgba(255, 255, 255, 0.08) !important;
}
.page-header .floating-img {
  position: absolute !important;
  bottom: 0 !important;
  left: 24px !important;
  max-height: 85% !important;
  max-width: 220px !important;
  opacity: 0.28 !important;
  pointer-events: none !important;
  z-index: 1 !important;
}
body.night-mode .page-header .floating-img {
  opacity: 0.22 !important;
  filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.4)) !important;
}
.page-header .inner {
  position: relative !important;
  z-index: 2 !important;
}
.page-header h2 {
  font-size: 36px !important;
  font-weight: 900 !important;
  letter-spacing: -0.5px !important;
  color: var(--nexus-text-main, #0f172a) !important;
  margin-bottom: 8px !important;
}
body.night-mode .page-header h2 {
  color: #f8fafc !important;
}
.page-header p {
  color: var(--nexus-text-muted, #64748b) !important;
}
body.night-mode .page-header p {
  color: #94a3b8 !important;
}
.page-header .input-group {
  box-shadow: 0 8px 24px -4px rgba(15, 23, 42, 0.25) !important;
  border-radius: 14px !important;
  overflow: hidden !important;
  border: 1px solid rgba(255, 255, 255, 0.12) !important;
}
.page-header .input-group .form-control {
  border: none !important;
  background: rgba(15, 23, 42, 0.6) !important;
  backdrop-filter: blur(12px) !important;
  color: #ffffff !important;
  padding: 12px 20px !important;
  font-size: 15px !important;
}
.page-header .input-group .form-control::placeholder {
  color: rgba(255, 255, 255, 0.5) !important;
}
.page-header .input-group .btn {
  background: var(--nexus-gradient-primary, linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%)) !important;
  border: none !important;
  color: #ffffff !important;
  font-weight: 600 !important;
  padding: 0 26px !important;
  transition: all 0.2s ease !important;
}
.page-header .input-group .btn:hover {
  filter: brightness(1.1) !important;
  box-shadow: 0 4px 15px rgba(99, 102, 241, 0.4) !important;
}
body:not(.night-mode) .page-header .input-group {
  border-color: rgba(99, 102, 241, 0.2) !important;
  box-shadow: 0 8px 24px -4px rgba(99, 102, 241, 0.15) !important;
}
body:not(.night-mode) .page-header .input-group .form-control {
  background: #ffffff !important;
  color: #0f172a !important;
}
body:not(.night-mode) .page-header .input-group .form-control::placeholder {
  color: #94a3b8 !important;
}

/* Featured Blog Card */
.blog-container.primary {
  border-radius: 24px !important;
  overflow: hidden !important;
  border: 1px solid rgba(99, 102, 241, 0.25) !important;
  box-shadow: 0 14px 40px -8px rgba(99, 102, 241, 0.3) !important;
  background: linear-gradient(135deg, #4f46e5 0%, #7c3aed 100%) !important;
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.3s ease !important;
}
body.night-mode .blog-container.primary {
  background: linear-gradient(135deg, rgba(79, 70, 229, 0.35) 0%, #1e293b 80%) !important;
  border-color: rgba(99, 102, 241, 0.35) !important;
  box-shadow: 0 16px 45px rgba(0, 0, 0, 0.6) !important;
}
.blog-container.primary:hover {
  transform: translateY(-4px) scale(1.01) !important;
  box-shadow: 0 20px 50px -8px rgba(99, 102, 241, 0.45) !important;
}
.blog-container.primary .blog-content h3 {
  color: #ffffff !important;
  font-weight: 800 !important;
  text-transform: none !important;
  letter-spacing: -0.3px !important;
}
.blog-container.primary .blog-content .text {
  color: rgba(255, 255, 255, 0.85) !important;
}
.blog-container.primary .text-link {
  color: #ffffff !important;
  font-weight: 700 !important;
}

/* Secondary Grid Blog Cards */
.blog-container:not(.primary) {
  background: var(--nexus-surface, #ffffff) !important;
  border: 1px solid var(--nexus-border) !important;
  border-radius: 20px !important;
  box-shadow: var(--nexus-shadow-sm) !important;
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.3s ease !important;
  overflow: hidden !important;
}
body.night-mode .blog-container:not(.primary) {
  background: #1e293b !important;
  border-color: rgba(255, 255, 255, 0.08) !important;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3) !important;
}
.blog-container:not(.primary):hover {
  transform: translateY(-5px) !important;
  box-shadow: var(--nexus-shadow-lg), 0 12px 30px rgba(99, 102, 241, 0.15) !important;
}
body.night-mode .blog-container:not(.primary):hover {
  box-shadow: 0 14px 35px rgba(0, 0, 0, 0.5), 0 0 20px rgba(99, 102, 241, 0.15) !important;
  border-color: rgba(99, 102, 241, 0.3) !important;
}
.blog-container:not(.primary) .blog-content h3 {
  color: var(--nexus-text-main, #0f172a) !important;
  font-weight: 700 !important;
  font-size: 17px !important;
  line-height: 1.4 !important;
  text-transform: none !important;
  transition: color 0.2s ease !important;
}
body.night-mode .blog-container:not(.primary) .blog-content h3 {
  color: #f8fafc !important;
}
.blog-container:not(.primary):hover .blog-content h3 {
  color: var(--nexus-primary, #6366f1) !important;
}
body.night-mode .blog-container:not(.primary):hover .blog-content h3 {
  color: #818cf8 !important;
}
.blog-container:not(.primary) .blog-content .text {
  color: var(--nexus-text-muted, #64748b) !important;
  font-size: 13.5px !important;
  line-height: 1.6 !important;
}
body.night-mode .blog-container:not(.primary) .blog-content .text {
  color: #94a3b8 !important;
}
.blog-container:not(.primary) .text-link {
  color: var(--nexus-primary, #6366f1) !important;
  font-weight: 600 !important;
}
body.night-mode .blog-container:not(.primary) .text-link {
  color: #a5b4fc !important;
}
.blog-container .post-time {
  color: var(--nexus-text-muted, #94a3b8) !important;
  font-size: 12px !important;
}

/* "More" button on cards */
.blog-more {
  position: absolute !important;
  bottom: 0 !important;
  left: 0 !important;
  right: 0 !important;
  background: linear-gradient(180deg, transparent 0%, rgba(15, 23, 42, 0.8) 100%) !important;
  padding: 24px 14px 10px !important;
  text-align: center !important;
}
.blog-more span {
  background: var(--nexus-primary, #6366f1) !important;
  color: #ffffff !important;
  font-size: 11.5px !important;
  font-weight: 700 !important;
  padding: 5px 16px !important;
  border-radius: 20px !important;
  box-shadow: 0 4px 12px rgba(99, 102, 241, 0.4) !important;
}

/* "More Blogs" pagination see-more */
.see-more.alert-post {
  border-radius: 16px !important;
  background: var(--nexus-surface, #ffffff) !important;
  border: 1px solid var(--nexus-border) !important;
  color: var(--nexus-primary, #6366f1) !important;
  font-weight: 700 !important;
  padding: 14px !important;
  box-shadow: var(--nexus-shadow-sm) !important;
  transition: all 0.25s ease !important;
}
body.night-mode .see-more.alert-post {
  background: #1e293b !important;
  color: #a5b4fc !important;
  border-color: rgba(255, 255, 255, 0.08) !important;
}
.see-more.alert-post:hover {
  background: var(--nexus-primary, #6366f1) !important;
  color: #ffffff !important;
  border-color: transparent !important;
  transform: translateY(-2px) !important;
  box-shadow: 0 8px 24px rgba(99, 102, 241, 0.35) !important;
}

/* ==========================================================================
   27. PEOPLE & FRIEND REQUESTS PAGE (https://dev.weconectus.com/people/...)
   ========================================================================== */

/* 27.1 Modern Top Navigation Tabs */
.content-tabs {
  background: var(--nexus-surface, #ffffff) !important;
  border: 1px solid var(--nexus-border) !important;
  border-radius: 18px !important;
  padding: 8px 12px !important;
  margin-bottom: 24px !important;
  box-shadow: var(--nexus-shadow-sm) !important;
  display: flex !important;
  align-items: center !important;
}
body.night-mode .content-tabs {
  background: #1e293b !important;
  border-color: rgba(255, 255, 255, 0.08) !important;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3) !important;
}
.content-tabs > ul {
  display: flex !important;
  flex-wrap: wrap !important;
  gap: 8px !important;
  margin: 0 !important;
  padding: 0 !important;
  list-style: none !important;
  width: 100% !important;
}
.content-tabs > ul > li {
  float: none !important;
  display: inline-block !important;
}
.content-tabs > ul > li > a {
  display: inline-flex !important;
  align-items: center !important;
  padding: 10px 22px !important;
  font-size: 14px !important;
  font-weight: 600 !important;
  line-height: 1.4 !important;
  border-radius: 12px !important;
  color: var(--nexus-text-muted, #94a3b8) !important;
  background: transparent !important;
  border: 1px solid transparent !important;
  transition: all 0.25s cubic-bezier(0.34, 1.56, 0.64, 1) !important;
  text-decoration: none !important;
}
body.night-mode .content-tabs > ul > li > a {
  color: #94a3b8 !important;
}
.content-tabs > ul > li > a:hover {
  color: var(--nexus-text-main, #0f172a) !important;
  background: rgba(99, 102, 241, 0.08) !important;
  border-color: rgba(99, 102, 241, 0.2) !important;
  transform: translateY(-1px) !important;
}
body.night-mode .content-tabs > ul > li > a:hover {
  color: #f8fafc !important;
  background: rgba(99, 102, 241, 0.15) !important;
}
/* Active Tab: Signature #151A30 Midnight Glass Button */
.content-tabs > ul > li.active > a {
  background: #151a30 !important;
  background-color: #151a30 !important;
  color: #ffffff !important;
  font-weight: 700 !important;
  border: 1.5px solid rgba(255, 255, 255, 0.28) !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.35), 0 4px 16px rgba(0, 0, 0, 0.45) !important;
  backdrop-filter: blur(12px) !important;
  -webkit-backdrop-filter: blur(12px) !important;
  border-radius: 12px !important;
  transform: translateY(-1px) !important;
}
body.night-mode .content-tabs > ul > li.active > a {
  color: #ffffff !important;
}

/* Global Content Tabs Active & Hover Icon: Solid Pure White */
.content-tabs > ul > li.active > a .main-icon,
.content-tabs > ul > li.active > a .main-icon path,
.content-tabs > ul > li.active > a .main-icon g,
.content-tabs > ul > li.active > a .main-icon *,
.content-tabs > ul > li.active > a i,
.content-tabs > ul > li.active > a svg,
.content-tabs > ul > li.active > a svg * {
  fill: #ffffff !important;
  color: #ffffff !important;
}

.content-tabs > ul > li > a:hover .main-icon,
.content-tabs > ul > li > a:hover .main-icon path,
.content-tabs > ul > li > a:hover .main-icon *,
.content-tabs > ul > li > a:hover i,
.content-tabs > ul > li > a:hover svg,
.content-tabs > ul > li > a:hover svg * {
  fill: #ffffff !important;
  color: #ffffff !important;
}
/* Count Badges on Tabs */
.content-tabs .badge {
  font-size: 11px !important;
  font-weight: 700 !important;
  padding: 3px 8px !important;
  border-radius: 20px !important;
  margin-left: 8px !important;
  transition: all 0.2s ease !important;
}
.content-tabs > ul > li.active .badge {
  background: rgba(255, 255, 255, 0.25) !important;
  color: #ffffff !important;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15) !important;
}
.content-tabs > ul > li:not(.active) .badge.bg-info {
  background: rgba(99, 102, 241, 0.15) !important;
  color: #818cf8 !important;
  border: 1px solid rgba(99, 102, 241, 0.3) !important;
}
.content-tabs > ul > li:not(.active) .badge.bg-warning {
  background: rgba(245, 158, 11, 0.18) !important;
  color: #fbbf24 !important;
  border: 1px solid rgba(245, 158, 11, 0.35) !important;
}

/* 27.2 Right Sidebar Search Filter Card */
.col-lg-4 .card:has(form[action*="people/find"]),
.col-lg-4 .card:has(.fa-search) {
  background: var(--nexus-surface, #ffffff) !important;
  border: 1px solid var(--nexus-border) !important;
  border-radius: 20px !important;
  box-shadow: var(--nexus-shadow-sm) !important;
  overflow: hidden !important;
}
body.night-mode .col-lg-4 .card:has(form[action*="people/find"]),
body.night-mode .col-lg-4 .card:has(.fa-search) {
  background: #1e293b !important;
  border-color: rgba(255, 255, 255, 0.08) !important;
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.35) !important;
}
.col-lg-4 .card:has(form[action*="people/find"]) .card-header,
.col-lg-4 .card:has(.fa-search) .card-header {
  background: transparent !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08) !important;
  font-weight: 800 !important;
  font-size: 15px !important;
  letter-spacing: -0.2px !important;
  color: var(--nexus-text-main, #0f172a) !important;
  padding: 16px 20px !important;
  display: flex !important;
  align-items: center !important;
}
body:not(.night-mode) .col-lg-4 .card:has(form[action*="people/find"]) .card-header,
body:not(.night-mode) .col-lg-4 .card:has(.fa-search) .card-header {
  border-bottom: 1px solid var(--nexus-border) !important;
}
body.night-mode .col-lg-4 .card:has(form[action*="people/find"]) .card-header,
body.night-mode .col-lg-4 .card:has(.fa-search) .card-header {
  color: #f8fafc !important;
}
.col-lg-4 .card:has(form[action*="people/find"]) .card-header i,
.col-lg-4 .card:has(.fa-search) .card-header i {
  color: var(--nexus-primary, #6366f1) !important;
  margin-right: 8px !important;
}
body.night-mode .col-lg-4 .card:has(form[action*="people/find"]) .card-header i,
body.night-mode .col-lg-4 .card:has(.fa-search) .card-header i {
  color: #818cf8 !important;
}
.col-lg-4 .card:has(form[action*="people/find"]) .card-body,
.col-lg-4 .card:has(.fa-search) .card-body {
  padding: 20px !important;
}

/* Form Labels */
.col-lg-4 form[action*="people/find"] .form-label {
  font-size: 13px !important;
  font-weight: 700 !important;
  letter-spacing: 0.2px !important;
  color: var(--nexus-text-main, #334155) !important;
  margin-bottom: 7px !important;
  display: block !important;
}
body.night-mode .col-lg-4 form[action*="people/find"] .form-label {
  color: #cbd5e1 !important;
}

/* Form Group Spacing */
.col-lg-4 form[action*="people/find"] .form-group {
  margin-bottom: 16px !important;
}

/* Form Controls (Inputs) */
.col-lg-4 form[action*="people/find"] .form-control,
.col-lg-4 form[action*="people/find"] .input-group-text {
  background-color: #f8fafc !important;
  border: 1px solid rgba(203, 213, 225, 0.8) !important;
  border-radius: 12px !important;
  color: #0f172a !important;
  font-size: 13.5px !important;
  font-weight: 500 !important;
  padding: 10px 14px !important;
  transition: all 0.2s ease !important;
}
body.night-mode .col-lg-4 form[action*="people/find"] .form-control,
body.night-mode .col-lg-4 form[action*="people/find"] .input-group-text {
  background-color: rgba(15, 23, 42, 0.6) !important;
  border-color: rgba(255, 255, 255, 0.1) !important;
  color: #f1f5f9 !important;
}
.col-lg-4 form[action*="people/find"] .form-control:focus {
  border-color: var(--nexus-primary, #6366f1) !important;
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.25) !important;
  outline: none !important;
  background-color: #ffffff !important;
}
body.night-mode .col-lg-4 form[action*="people/find"] .form-control:focus {
  background-color: rgba(15, 23, 42, 0.9) !important;
  border-color: #818cf8 !important;
  box-shadow: 0 0 0 3px rgba(129, 140, 248, 0.25) !important;
}

/* Custom Select Dropdowns */
.col-lg-4 form[action*="people/find"] .form-select {
  background-color: #f8fafc !important;
  background-repeat: no-repeat !important;
  background-position: right 14px center !important;
  background-size: 14px 10px !important;
  border: 1px solid rgba(203, 213, 225, 0.8) !important;
  border-radius: 12px !important;
  color: #0f172a !important;
  font-size: 13.5px !important;
  font-weight: 500 !important;
  padding: 10px 38px 10px 14px !important;
  transition: all 0.2s ease !important;
  cursor: pointer !important;
}
body.night-mode .col-lg-4 form[action*="people/find"] .form-select {
  background-color: rgba(15, 23, 42, 0.6) !important;
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%2394a3b8' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='m2 5 6 6 6-6'/%3e%3c/svg%3e") !important;
  background-repeat: no-repeat !important;
  background-position: right 14px center !important;
  background-size: 14px 10px !important;
  border-color: rgba(255, 255, 255, 0.1) !important;
  color: #f1f5f9 !important;
}
.col-lg-4 form[action*="people/find"] .form-select:focus {
  border-color: var(--nexus-primary, #6366f1) !important;
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.25) !important;
  outline: none !important;
  background-color: #ffffff !important;
}
body.night-mode .col-lg-4 form[action*="people/find"] .form-select:focus {
  background-color: rgba(15, 23, 42, 0.9) !important;
  border-color: #818cf8 !important;
  box-shadow: 0 0 0 3px rgba(129, 140, 248, 0.25) !important;
}

/* Distance Input Group (KM/ML + Number) */
.col-lg-4 form[action*="people/find"] .input-group {
  border-radius: 12px !important;
  overflow: hidden !important;
  border: 1px solid rgba(203, 213, 225, 0.8) !important;
}
body.night-mode .col-lg-4 form[action*="people/find"] .input-group {
  border-color: rgba(255, 255, 255, 0.1) !important;
}
.col-lg-4 form[action*="people/find"] .input-group .input-group-text {
  border: none !important;
  border-radius: 0 !important;
  border-right: 1px solid rgba(203, 213, 225, 0.8) !important;
  background: rgba(99, 102, 241, 0.1) !important;
  color: var(--nexus-primary, #6366f1) !important;
  font-weight: 700 !important;
  font-size: 12.5px !important;
  padding: 0 14px !important;
}
body.night-mode .col-lg-4 form[action*="people/find"] .input-group .input-group-text {
  border-right-color: rgba(255, 255, 255, 0.1) !important;
  background: rgba(99, 102, 241, 0.15) !important;
  color: #a5b4fc !important;
}
.col-lg-4 form[action*="people/find"] .input-group .form-control {
  border: none !important;
  border-radius: 0 !important;
}

/* Custom Range Slider */
.col-lg-4 form[action*="people/find"] input[type="range"],
.col-lg-4 form[action*="people/find"] .custom-range {
  accent-color: #6366f1 !important;
  height: 6px !important;
  border-radius: 6px !important;
  background: rgba(99, 102, 241, 0.2) !important;
}
body.night-mode .col-lg-4 form[action*="people/find"] input[type="range"],
body.night-mode .col-lg-4 form[action*="people/find"] .custom-range {
  background: rgba(255, 255, 255, 0.12) !important;
}

/* Search Submit Button */
.col-lg-4 form[action*="people/find"] button[type="submit"] {
  background: var(--nexus-gradient-primary, linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%)) !important;
  border: none !important;
  border-radius: 12px !important;
  padding: 12px 20px !important;
  font-weight: 700 !important;
  font-size: 14.5px !important;
  color: #ffffff !important;
  box-shadow: 0 4px 16px rgba(99, 102, 241, 0.35) !important;
  transition: all 0.25s cubic-bezier(0.34, 1.56, 0.64, 1) !important;
  margin-top: 6px !important;
}
.col-lg-4 form[action*="people/find"] button[type="submit"]:hover {
  transform: translateY(-2px) !important;
  box-shadow: 0 8px 22px rgba(99, 102, 241, 0.5) !important;
  filter: brightness(1.08) !important;
}

/* 27.3 Results Card & User Items */
.col-lg-8 .card {
  background: var(--nexus-surface, #ffffff) !important;
  border: 1px solid var(--nexus-border) !important;
  border-radius: 20px !important;
  box-shadow: var(--nexus-shadow-sm) !important;
  overflow: hidden !important;
}
body.night-mode .col-lg-8 .card {
  background: #1e293b !important;
  border-color: rgba(255, 255, 255, 0.08) !important;
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.35) !important;
}
.col-lg-8 .card .card-header {
  padding: 18px 22px !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08) !important;
  color: var(--nexus-text-main, #0f172a) !important;
  font-size: 16px !important;
  font-weight: 800 !important;
}
body:not(.night-mode) .col-lg-8 .card .card-header {
  border-bottom: 1px solid var(--nexus-border) !important;
}
body.night-mode .col-lg-8 .card .card-header {
  color: #f8fafc !important;
}
.col-lg-8 .card .card-body {
  padding: 20px 22px !important;
}

/* User List Item in People / Requests */
.col-lg-8 .feeds-item {
  border-bottom: 1px solid rgba(255, 255, 255, 0.06) !important;
  padding: 12px 0 !important;
  transition: background 0.2s ease !important;
  list-style: none !important;
}
body:not(.night-mode) .col-lg-8 .feeds-item {
  border-bottom: 1px solid var(--nexus-border) !important;
}
.col-lg-8 .feeds-item:last-child {
  border-bottom: none !important;
}

.col-lg-8 .feeds-item .data-container {
  display: flex !important;
  align-items: center !important;
  width: 100% !important;
  padding: 6px 10px !important;
  border-radius: 14px !important;
  transition: background 0.2s ease !important;
}
.col-lg-8 .feeds-item .data-container:hover {
  background: rgba(99, 102, 241, 0.04) !important;
}
body.night-mode .col-lg-8 .feeds-item .data-container:hover {
  background: rgba(255, 255, 255, 0.03) !important;
}

/* Avatar on Left */
.col-lg-8 .feeds-item .data-avatar {
  float: none !important;
  flex-shrink: 0 !important;
  margin-right: 14px !important;
}
.col-lg-8 .feeds-item .data-avatar img {
  width: 44px !important;
  height: 44px !important;
  border-radius: 50% !important;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15) !important;
  border: 2px solid var(--nexus-border) !important;
  display: block !important;
}
body.night-mode .col-lg-8 .feeds-item .data-avatar img {
  border-color: rgba(255, 255, 255, 0.12) !important;
}

/* Data Content (Full Width Flex Row) */
.col-lg-8 .feeds-item .data-content {
  flex: 1 1 auto !important;
  min-width: 0 !important;
  padding-left: 0 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 16px !important;
}

/* User Name Area (Keeps name in one single unbroken line) */
.col-lg-8 .feeds-item .data-content .mt5 {
  order: 1 !important;
  margin-top: 0 !important;
  flex: 1 1 auto !important;
  min-width: 0 !important;
  white-space: nowrap !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
}
.col-lg-8 .feeds-item .data-content .name {
  font-size: 15px !important;
  font-weight: 700 !important;
  display: inline-flex !important;
  align-items: center !important;
  max-width: 100% !important;
}
.col-lg-8 .feeds-item .data-content .name a {
  color: var(--nexus-text-main, #0f172a) !important;
  text-decoration: none !important;
  white-space: nowrap !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  transition: color 0.2s ease !important;
}
body.night-mode .col-lg-8 .feeds-item .data-content .name a {
  color: #f8fafc !important;
}
.col-lg-8 .feeds-item .data-content .name a:hover {
  color: var(--nexus-primary, #6366f1) !important;
}
body.night-mode .col-lg-8 .feeds-item .data-content .name a:hover {
  color: #818cf8 !important;
}

/* Action Buttons Container (Always aligned to the Far Right) */
.col-lg-8 .feeds-item .data-content .float-end {
  order: 2 !important;
  float: none !important;
  margin-left: auto !important;
  flex-shrink: 0 !important;
  display: flex !important;
  align-items: center !important;
  gap: 8px !important;
}

/* Action Buttons for Friend Requests / Add Friend */
.col-lg-8 .feeds-item .btn.js_friend-add,
.col-lg-8 .feeds-item .btn.js_follow {
  background: var(--nexus-gradient-primary, linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%)) !important;
  border: none !important;
  border-radius: 20px !important;
  padding: 6px 18px !important;
  font-weight: 600 !important;
  font-size: 13px !important;
  color: #ffffff !important;
  box-shadow: 0 3px 12px rgba(99, 102, 241, 0.35) !important;
  transition: all 0.2s ease !important;
  white-space: nowrap !important;
}
.col-lg-8 .feeds-item .btn.js_friend-add:hover,
.col-lg-8 .feeds-item .btn.js_follow:hover {
  transform: translateY(-1px) !important;
  box-shadow: 0 6px 18px rgba(99, 102, 241, 0.5) !important;
}

.col-lg-8 .feeds-item .btn.js_friend-accept {
  background: var(--nexus-gradient-primary, linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%)) !important;
  border: none !important;
  border-radius: 20px !important;
  padding: 6px 18px !important;
  font-weight: 700 !important;
  font-size: 13px !important;
  color: #ffffff !important;
  box-shadow: 0 3px 12px rgba(99, 102, 241, 0.35) !important;
  transition: all 0.2s ease !important;
  white-space: nowrap !important;
}
.col-lg-8 .feeds-item .btn.js_friend-accept:hover {
  transform: translateY(-1px) !important;
  box-shadow: 0 6px 18px rgba(99, 102, 241, 0.5) !important;
}

.col-lg-8 .feeds-item .btn.js_friend-decline {
  background: rgba(239, 68, 68, 0.12) !important;
  border: 1px solid rgba(239, 68, 68, 0.25) !important;
  border-radius: 20px !important;
  padding: 6px 18px !important;
  font-weight: 600 !important;
  font-size: 13px !important;
  color: #f87171 !important;
  transition: all 0.2s ease !important;
  margin-left: 6px !important;
  white-space: nowrap !important;
}
.col-lg-8 .feeds-item .btn.js_friend-decline:hover {
  background: #ef4444 !important;
  color: #ffffff !important;
  border-color: transparent !important;
  transform: translateY(-1px) !important;
}

.col-lg-8 .feeds-item .btn.js_friend-cancel {
  background: rgba(245, 158, 11, 0.15) !important;
  border: 1px solid rgba(245, 158, 11, 0.3) !important;
  border-radius: 20px !important;
  padding: 6px 18px !important;
  font-weight: 600 !important;
  font-size: 13px !important;
  color: #fbbf24 !important;
  transition: all 0.2s ease !important;
  white-space: nowrap !important;
}
.col-lg-8 .feeds-item .btn.js_friend-cancel:hover {
  background: #f59e0b !important;
  color: #ffffff !important;
  border-color: transparent !important;
}

/* ==========================================================================
   28. WATCH & REELS PRO UI SYSTEM
   ========================================================================== */

/* --------------------------------------------------------------------------
   28.1 Watch Page Modernization
   -------------------------------------------------------------------------- */
.page-header {
  position: relative;
  border-radius: 20px !important;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
  transition: all 0.3s ease;
}

body.night-mode .page-header {
  background: linear-gradient(135deg, #131b2e 0%, #1e293b 100%) !important;
  border: 1px solid rgba(255, 255, 255, 0.08) !important;
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.4);
}

.page-header .inner {
  position: relative;
  z-index: 2;
  padding: 35px 25px;
  text-align: center;
}

.page-header h2 {
  font-size: 32px;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 8px;
  color: var(--nexus-text-main, #ffffff);
}

.page-header p.text-xlg {
  font-size: 15.5px;
  color: var(--nexus-text-muted, #94a3b8);
  max-width: 580px;
  margin: 0 auto;
}

.page-header .input-group {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 50px !important;
  padding: 4px 6px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

.page-header .input-group .form-control {
  background: transparent !important;
  border: none !important;
  color: #ffffff !important;
  padding-left: 20px;
  font-size: 14.5px;
}

.page-header .input-group .form-control::placeholder {
  color: rgba(255, 255, 255, 0.6);
}

.page-header .input-group .btn {
  border-radius: 50px !important;
  padding: 8px 24px !important;
  font-weight: 600;
  font-size: 14px;
}

/* Watch Content Tabs */
.content-tabs {
  background: var(--nexus-card-bg, #111625);
  border: 1px solid var(--nexus-border, rgba(255, 255, 255, 0.08));
  border-radius: 16px !important;
  padding: 8px 12px;
  margin-bottom: 24px;
}

.content-tabs ul {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.content-tabs ul li a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 18px;
  border-radius: 12px;
  font-weight: 600;
  font-size: 14px;
  color: var(--nexus-text-muted, #94a3b8);
  transition: all 0.2s ease;
  text-decoration: none;
}

.content-tabs ul li.active a,
.content-tabs ul li a:hover {
  background: #151a30 !important;
  border: 1.5px solid rgba(255, 255, 255, 0.28) !important;
  color: #ffffff !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.35), 0 4px 16px rgba(0, 0, 0, 0.45) !important;
}

.content-tabs ul li.active a .main-icon,
.content-tabs ul li.active a .main-icon *,
.content-tabs ul li.active a i,
.content-tabs ul li a:hover .main-icon,
.content-tabs ul li a:hover .main-icon *,
.content-tabs ul li a:hover i {
  fill: #ffffff !important;
  color: #ffffff !important;
}

/* Watch Categories Card & Nav */
.sg-offcanvas-sidebar .card {
  border-radius: 16px !important;
  border: 1px solid var(--nexus-border, rgba(255, 255, 255, 0.08));
  overflow: hidden;
}

.sg-offcanvas-sidebar .side-nav li a {
  border-radius: 10px;
  margin: 2px 8px;
  padding: 10px 14px;
  font-weight: 500;
  color: var(--nexus-text-muted, #94a3b8);
  transition: all 0.2s ease;
}

.sg-offcanvas-sidebar .side-nav li.active a,
.sg-offcanvas-sidebar .side-nav li a:hover {
  background: rgba(99, 102, 241, 0.12);
  color: var(--nexus-primary, #6366f1) !important;
  font-weight: 600;
}

body.night-mode .sg-offcanvas-sidebar .side-nav li.active a,
body.night-mode .sg-offcanvas-sidebar .side-nav li a:hover {
  color: #a5b4fc !important;
  background: rgba(99, 102, 241, 0.2);
}

/* Posts & Content Filter Bar (Day Mode & Night Mode Adaptive) */
.posts-filter {
  border-radius: 16px !important;
  padding: 12px 20px !important;
  margin-bottom: 20px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  font-weight: 600 !important;
  font-size: 15px !important;
  position: relative !important;
  transition: all 0.25s ease !important;
}

/* Day Mode / Light Mode: Clean White with Crisp Dark Text */
body:not(.night-mode) .posts-filter {
  background: #ffffff !important;
  border: 1.5px solid #e2e8f0 !important;
  color: #0f172a !important;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.04) !important;
}

body:not(.night-mode) .posts-filter > span,
body:not(.night-mode) .posts-filter span:not(.countries-filter span) {
  color: #0f172a !important;
  font-weight: 700 !important;
  font-size: 16px !important;
}

body:not(.night-mode) .countries-filter {
  background: #f8fafc !important;
  border: 1.5px solid #e2e8f0 !important;
  padding: 7px 16px !important;
  border-radius: 12px !important;
  color: #334155 !important;
  font-size: 13px !important;
  font-weight: 600 !important;
  text-decoration: none !important;
  transition: all 0.2s ease !important;
  display: inline-flex !important;
  align-items: center !important;
  gap: 7px !important;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.03) !important;
}

body:not(.night-mode) .countries-filter:hover {
  background: rgba(99, 102, 241, 0.1) !important;
  border-color: #6366f1 !important;
  color: #4338ca !important;
}

/* Night Mode: Solid Deep Navy with Crisp White Text */
body.night-mode .posts-filter {
  background: #151a30 !important;
  border: 1.5px solid rgba(139, 92, 246, 0.35) !important;
  color: #ffffff !important;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.35) !important;
}

body.night-mode .posts-filter > span,
body.night-mode .posts-filter span:not(.countries-filter span) {
  color: #ffffff !important;
  font-weight: 700 !important;
  font-size: 16px !important;
}

body.night-mode .countries-filter {
  background: rgba(255, 255, 255, 0.06) !important;
  border: 1.5px solid rgba(139, 92, 246, 0.3) !important;
  padding: 7px 16px !important;
  border-radius: 12px !important;
  color: #e2e8f0 !important;
  font-size: 13px !important;
  font-weight: 600 !important;
  text-decoration: none !important;
  transition: all 0.2s ease !important;
  display: inline-flex !important;
  align-items: center !important;
  gap: 7px !important;
}

body.night-mode .countries-filter:hover {
  background: rgba(99, 102, 241, 0.2) !important;
  border-color: #818cf8 !important;
  color: #ffffff !important;
}

.posts-filter .dropdown {
  position: relative;
}

.posts-filter .dropdown-menu {
  z-index: 1050 !important;
  border-radius: 14px !important;
  padding: 8px !important;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25) !important;
}

body:not(.night-mode) .posts-filter .dropdown-menu {
  background: #ffffff !important;
  border: 1.5px solid #e2e8f0 !important;
}

body.night-mode .posts-filter .dropdown-menu {
  background: #151a30 !important;
  border: 1.5px solid rgba(139, 92, 246, 0.35) !important;
}

/* --------------------------------------------------------------------------
   28.2 Reels Pro Player & Full Experience
   -------------------------------------------------------------------------- */
.reels-wrapper {
  position: fixed !important;
  top: 64px !important;
  bottom: 0 !important;
  right: 0 !important;
  left: 0 !important;
  background: #090d16 !important;
  z-index: 100 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  overflow: hidden !important;
}

.reel-container {
  position: fixed !important;
  top: 0 !important;
  right: 0 !important;
  bottom: 0 !important;
  left: 0 !important;
  width: 100% !important;
  height: 100% !important;
  padding-top: 64px !important;
  padding-bottom: 0 !important;
  background: #090d16 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  transform: translateY(0);
  transition: transform 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.reel-container.swipe-up {
  transform: translateY(-100%) !important;
}

.reel-container.swipe-down {
  transform: translateY(100%) !important;
}

.reel-video-wrapper {
  position: relative !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  height: 100% !important;
  width: 100% !important;
  max-height: calc(100dvh - 70px) !important;
}

.reel-video-wrapper .reel-video-container {
  position: relative !important;
  width: 100% !important;
  max-width: 440px !important;
  height: calc(100dvh - 84px) !important;
  max-height: 820px !important;
  margin: auto !important;
  border-radius: 20px !important;
  overflow: hidden !important;
  background: #000000 !important;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.8), 0 0 0 1px rgba(255, 255, 255, 0.12) !important;
  cursor: pointer;
  user-select: none;
}

.reel-video-wrapper .reel-video-container video,
.reel-video-wrapper .reel-video-container .plyr,
.reel-video-wrapper .reel-video-container .plyr__video-wrapper {
  width: 100% !important;
  height: 100% !important;
  max-height: 100% !important;
  border-radius: 20px !important;
  object-fit: cover !important;
}

/* Hide Plyr's default ugly top controls on reel */
.reel-video-wrapper .reel-video-container .plyr__controls {
  display: none !important;
}

/* Top Controls (Sound & Watch Switch) */
.reel-top-bar {
  position: absolute !important;
  top: 16px !important;
  left: 16px !important;
  right: 16px !important;
  z-index: 25 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  pointer-events: auto !important;
}

.reel-sound-btn {
  width: 40px !important;
  height: 40px !important;
  border-radius: 50% !important;
  background: rgba(0, 0, 0, 0.45) !important;
  backdrop-filter: blur(16px) !important;
  -webkit-backdrop-filter: blur(16px) !important;
  border: 1px solid rgba(255, 255, 255, 0.22) !important;
  color: #ffffff !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  font-size: 15px !important;
  cursor: pointer !important;
  transition: all 0.2s ease !important;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.4) !important;
}

.reel-sound-btn:hover {
  transform: scale(1.1) !important;
  background: rgba(99, 102, 241, 0.7) !important;
  border-color: rgba(99, 102, 241, 0.9) !important;
}

.reel-watch-switch-btn {
  background: rgba(0, 0, 0, 0.45) !important;
  backdrop-filter: blur(16px) !important;
  -webkit-backdrop-filter: blur(16px) !important;
  border: 1px solid rgba(255, 255, 255, 0.22) !important;
  color: #ffffff !important;
  padding: 6px 14px !important;
  border-radius: 20px !important;
  font-size: 13px !important;
  font-weight: 600 !important;
  text-decoration: none !important;
  display: flex !important;
  align-items: center !important;
  transition: all 0.2s ease !important;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.4) !important;
}

.reel-watch-switch-btn:hover {
  transform: scale(1.05) !important;
  background: rgba(99, 102, 241, 0.7) !important;
  color: #ffffff !important;
  border-color: rgba(99, 102, 241, 0.9) !important;
}

/* Double-Tap Heart Pop Animation */
.reel-heart-burst {
  position: absolute !important;
  top: 50% !important;
  left: 50% !important;
  transform: translate(-50%, -50%) scale(0) !important;
  color: #f43f5e !important;
  font-size: 88px !important;
  pointer-events: none !important;
  z-index: 35 !important;
  opacity: 0 !important;
  filter: drop-shadow(0 0 25px rgba(244, 63, 94, 0.85)) !important;
}

@keyframes reelHeartPop {
  0% {
    transform: translate(-50%, -50%) scale(0);
    opacity: 0;
  }
  45% {
    transform: translate(-50%, -50%) scale(1.25);
    opacity: 1;
  }
  70% {
    transform: translate(-50%, -50%) scale(1);
    opacity: 0.95;
  }
  100% {
    transform: translate(-50%, -50%) scale(1.4);
    opacity: 0;
  }
}

.reel-heart-burst.pop-animate {
  animation: reelHeartPop 0.8s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards !important;
}

/* Bottom Caption Overlay */
.reel-video-wrapper .reel-video-container .video-caption-overlay {
  position: absolute !important;
  bottom: 0 !important;
  left: 0 !important;
  right: 0 !important;
  height: 60% !important;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.92) 0%, rgba(0, 0, 0, 0.5) 60%, transparent 100%) !important;
  z-index: 10 !important;
  pointer-events: none !important;
  border-bottom-left-radius: 20px !important;
  border-bottom-right-radius: 20px !important;
}

/* Bottom Caption Details */
.reel-video-wrapper .reel-video-container .video-caption {
  position: absolute !important;
  bottom: 8px !important;
  left: 0 !important;
  right: 75px !important;
  padding: 18px 16px !important;
  color: #ffffff !important;
  z-index: 15 !important;
  text-align: left !important;
  pointer-events: auto !important;
}

.reel-author-row {
  display: flex !important;
  align-items: center !important;
  gap: 10px !important;
}

.reel-author-avatar {
  position: relative !important;
  width: 42px !important;
  height: 42px !important;
  border-radius: 50% !important;
  border: 2px solid rgba(255, 255, 255, 0.95) !important;
  background-size: cover !important;
  background-position: center !important;
  flex-shrink: 0 !important;
  display: block !important;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.4) !important;
}

.reel-author-avatar .online-dot {
  position: absolute !important;
  bottom: 0 !important;
  right: 0 !important;
  width: 10px !important;
  height: 10px !important;
  background: #10b981 !important;
  border: 2px solid #000000 !important;
  border-radius: 50% !important;
}

.reel-author-meta {
  display: flex !important;
  flex-direction: column !important;
  min-width: 0 !important;
}

.reel-author-name {
  font-weight: 700 !important;
  font-size: 14.5px !important;
  color: #ffffff !important;
  text-decoration: none !important;
  display: inline-flex !important;
  align-items: center !important;
  gap: 5px !important;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.8) !important;
  white-space: nowrap !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
}

.reel-author-name .verified-badge {
  color: #38bdf8 !important;
  font-size: 13px !important;
}

.reel-post-time {
  font-size: 11px !important;
  color: rgba(255, 255, 255, 0.7) !important;
}

.reel-author-row .btn-follow {
  background: rgba(255, 255, 255, 0.22) !important;
  backdrop-filter: blur(10px) !important;
  border: 1px solid rgba(255, 255, 255, 0.45) !important;
  color: #ffffff !important;
  font-size: 12px !important;
  font-weight: 700 !important;
  border-radius: 20px !important;
  padding: 3px 12px !important;
  transition: all 0.2s ease !important;
  flex-shrink: 0 !important;
}

.reel-author-row .btn-follow:hover {
  background: #6366f1 !important;
  border-color: #6366f1 !important;
  transform: scale(1.05) !important;
}

.reel-text-content {
  font-size: 13.5px !important;
  line-height: 1.45 !important;
  color: #f1f5f9 !important;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.8) !important;
  max-height: 58px !important;
  overflow: hidden !important;
  display: -webkit-box !important;
  -webkit-line-clamp: 3 !important;
  -webkit-box-orient: vertical !important;
}

.reel-text-content a {
  color: #a5b4fc !important;
  font-weight: 600 !important;
}

.reel-audio-track {
  font-size: 12px !important;
  color: rgba(255, 255, 255, 0.85) !important;
  display: inline-flex !important;
  align-items: center !important;
  background: rgba(0, 0, 0, 0.4) !important;
  backdrop-filter: blur(8px) !important;
  border-radius: 12px !important;
  padding: 3px 10px !important;
  border: 1px solid rgba(255, 255, 255, 0.15) !important;
  max-width: 100% !important;
  white-space: nowrap !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
}

/* Video Progress Bar */
.reel-progress-track {
  position: absolute !important;
  bottom: 0 !important;
  left: 0 !important;
  right: 0 !important;
  height: 3px !important;
  background: rgba(255, 255, 255, 0.25) !important;
  z-index: 25 !important;
}

.reel-progress-fill {
  height: 100% !important;
  width: 0% !important;
  background: linear-gradient(90deg, #6366f1, #ec4899) !important;
  transition: width 0.1s linear !important;
}

/* Action Controls Column */
.reel-video-wrapper .reel-video-container .video-controlls {
  position: absolute !important;
  bottom: 24px !important;
  right: 12px !important;
  z-index: 20 !important;
}

.reel-actions {
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  gap: 14px !important;
}

.reel-action-btn {
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  gap: 3px !important;
}

.reel-actions .action-btn {
  width: 46px !important;
  height: 46px !important;
  border-radius: 50% !important;
  background: rgba(255, 255, 255, 0.14) !important;
  backdrop-filter: blur(14px) !important;
  -webkit-backdrop-filter: blur(14px) !important;
  border: 1px solid rgba(255, 255, 255, 0.25) !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  color: #ffffff !important;
  font-size: 20px !important;
  cursor: pointer !important;
  transition: all 0.2s cubic-bezier(0.2, 0.8, 0.2, 1) !important;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.35) !important;
}

.reel-actions .action-btn:hover {
  transform: scale(1.12) !important;
  background: rgba(255, 255, 255, 0.25) !important;
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.45) !important;
}

/* Reactions Wrapper & Active Heart */
.reel-actions .reactions-wrapper.is-active .reaction-btn-icon .far.fa-heart,
.reel-actions .reactions-wrapper.is-active .reaction-btn-icon .far.fa-smile {
  color: #f43f5e !important;
}

.reel-actions .action-btn i {
  color: #ffffff !important;
  font-size: 20px !important;
}

.reel-actions .action-btn svg {
  fill: #ffffff !important;
}

.reel-action-btn .action-count {
  font-size: 12px !important;
  font-weight: 700 !important;
  color: #ffffff !important;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.9) !important;
}

/* Floating Navigation Buttons (Prev / Next) */
.reel-nav-btn {
  position: absolute !important;
  right: calc(50% - 290px) !important;
  width: 44px !important;
  height: 44px !important;
  border-radius: 50% !important;
  background: rgba(255, 255, 255, 0.1) !important;
  backdrop-filter: blur(14px) !important;
  -webkit-backdrop-filter: blur(14px) !important;
  border: 1px solid rgba(255, 255, 255, 0.2) !important;
  color: #ffffff !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  font-size: 16px !important;
  cursor: pointer !important;
  transition: all 0.2s ease !important;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.4) !important;
  z-index: 25 !important;
}

.reel-prev-btn {
  top: calc(50% - 52px) !important;
  bottom: auto !important;
}

.reel-next-btn {
  top: calc(50% + 12px) !important;
  bottom: auto !important;
}

.reel-nav-btn:hover {
  transform: scale(1.12) !important;
  background: var(--nexus-gradient-primary, linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%)) !important;
  border-color: transparent !important;
  box-shadow: 0 8px 24px rgba(99, 102, 241, 0.5) !important;
}

@media (max-width: 991px) {
  .reel-nav-btn {
    display: none !important;
  }
}

/* Comments Drawer Styling */
.reel-comments-wrapper {
  background: var(--nexus-card-bg, #111625) !important;
  border-left: 1px solid var(--nexus-border, rgba(255, 255, 255, 0.08)) !important;
  box-shadow: -10px 0 30px rgba(0, 0, 0, 0.4) !important;
  z-index: 105 !important;
}

.reel-comments-wrapper .btn-close {
  filter: invert(1) grayscale(100%) brightness(200%);
  opacity: 0.8;
  transition: opacity 0.2s;
}

.reel-comments-wrapper .btn-close:hover {
  opacity: 1;
}

body.night-mode .reel-comments-wrapper {
  background: #111625 !important;
}

/* ==========================================================================
   29. MODERN AUTH EXPERIENCE (SIGN IN & SIGN UP)
   ========================================================================== */

.nexus-auth-wrapper {
  position: relative;
  min-height: calc(100vh - 120px);
  padding: 40px 15px 60px;
  display: flex;
  align-items: center;
  overflow: hidden;
}

/* Ambient Glow Blobs */
.nexus-auth-blobs {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  overflow: hidden;
  z-index: 0;
}

.nexus-blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.45;
  will-change: transform;
}

.nexus-blob-1 {
  top: 10%;
  left: 15%;
  width: 320px;
  height: 320px;
  background: radial-gradient(circle, rgba(99, 102, 241, 0.45) 0%, rgba(99, 102, 241, 0) 70%);
  animation: nexusBlobFloat1 16s ease-in-out infinite alternate;
}

.nexus-blob-2 {
  bottom: 15%;
  right: 15%;
  width: 380px;
  height: 380px;
  background: radial-gradient(circle, rgba(236, 72, 153, 0.35) 0%, rgba(236, 72, 153, 0) 70%);
  animation: nexusBlobFloat2 18s ease-in-out infinite alternate;
}

.nexus-blob-3 {
  top: 40%;
  left: 50%;
  transform: translateX(-50%);
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, rgba(139, 92, 246, 0.35) 0%, rgba(139, 92, 246, 0) 70%);
  animation: nexusBlobFloat3 20s ease-in-out infinite alternate;
}

@keyframes nexusBlobFloat1 {
  0% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(30px, -20px) scale(1.08); }
  100% { transform: translate(-20px, 30px) scale(0.95); }
}

@keyframes nexusBlobFloat2 {
  0% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(-30px, 20px) scale(1.06); }
  100% { transform: translate(25px, -25px) scale(0.92); }
}

@keyframes nexusBlobFloat3 {
  0% { transform: translate(-50%, 0) scale(1); }
  50% { transform: translate(-45%, -25px) scale(1.1); }
  100% { transform: translate(-55%, 25px) scale(0.9); }
}

/* Header & Typography */
.nexus-auth-header {
  position: relative;
  z-index: 2;
}

.nexus-auth-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  border-radius: 9999px;
  background: rgba(99, 102, 241, 0.08);
  border: 1px solid rgba(99, 102, 241, 0.2);
  color: var(--nexus-primary, #6366f1);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

body.night-mode .nexus-auth-badge {
  background: rgba(99, 102, 241, 0.15);
  border-color: rgba(99, 102, 241, 0.3);
  color: #a5b4fc;
}

.nexus-auth-badge .pulse-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #10b981;
  box-shadow: 0 0 0 rgba(16, 185, 129, 0.4);
  animation: pulseDot 2s infinite;
}

@keyframes pulseDot {
  0% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.6); }
  70% { box-shadow: 0 0 0 8px rgba(16, 185, 129, 0); }
  100% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}

.nexus-auth-title {
  font-size: 2rem;
  font-weight: 800;
  letter-spacing: -0.025em;
  color: var(--nexus-text-primary, #0f172a);
  margin-bottom: 8px;
}

body.night-mode .nexus-auth-title {
  color: #f8fafc;
}

.nexus-auth-subtitle {
  font-size: 0.95rem;
  color: var(--nexus-text-secondary, #64748b);
  margin: 0;
  line-height: 1.5;
}

body.night-mode .nexus-auth-subtitle {
  color: #94a3b8;
}

.nexus-gradient-text {
  background: linear-gradient(135deg, #6366f1 0%, #a855f7 50%, #ec4899 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  font-weight: 700;
}

/* Card Container & Styling */
.nexus-auth-card-container {
  position: relative;
  z-index: 2;
}

.nexus-auth-card-container .card-register {
  border: 1px solid rgba(255, 255, 255, 0.6) !important;
  border-radius: 24px !important;
  background: rgba(255, 255, 255, 0.85) !important;
  backdrop-filter: blur(24px) saturate(180%) !important;
  -webkit-backdrop-filter: blur(24px) saturate(180%) !important;
  box-shadow: 0 20px 40px -15px rgba(0, 0, 0, 0.08), 0 0 0 1px rgba(255, 255, 255, 0.5) inset !important;
  padding: 30px !important;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

body.night-mode .nexus-auth-card-container .card-register {
  border: 1px solid rgba(255, 255, 255, 0.09) !important;
  background: rgba(17, 22, 37, 0.8) !important;
  box-shadow: 0 24px 48px -12px rgba(0, 0, 0, 0.6), 0 0 0 1px rgba(255, 255, 255, 0.05) inset !important;
}

/* Modern Auth Pill Switcher */
.nexus-auth-switcher {
  display: flex;
  background: rgba(0, 0, 0, 0.04);
  padding: 5px;
  border-radius: 16px;
  gap: 6px;
  border: 1px solid rgba(0, 0, 0, 0.04);
}

body.night-mode .nexus-auth-switcher {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.06);
}

.nexus-switcher-btn {
  flex: 1;
  padding: 10px 16px;
  border-radius: 12px;
  border: none;
  background: transparent;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--nexus-text-secondary, #64748b);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

body.night-mode .nexus-switcher-btn {
  color: #94a3b8;
}

.nexus-switcher-btn:hover {
  color: var(--nexus-text-primary, #0f172a);
}

body.night-mode .nexus-switcher-btn:hover {
  color: #f8fafc;
}

.nexus-switcher-btn.active {
  background: #ffffff;
  color: var(--nexus-primary, #6366f1) !important;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.08);
}

body.night-mode .nexus-switcher-btn.active {
  background: rgba(99, 102, 241, 0.22);
  color: #a5b4fc !important;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.4);
  border: 1px solid rgba(99, 102, 241, 0.3);
}

/* Form Controls Inside Register Card */
.card-register .card-header {
  background: transparent !important;
  border-bottom: none !important;
  padding: 0 0 15px 0 !important;
  text-align: center;
}

.card-register .card-title {
  font-size: 1.25rem !important;
  font-weight: 700 !important;
  letter-spacing: -0.01em;
  color: var(--nexus-text-primary, #0f172a) !important;
  margin-bottom: 4px !important;
}

body.night-mode .card-register .card-title {
  color: #f8fafc !important;
}

.card-register .card-subtitle {
  font-size: 0.85rem !important;
  color: var(--nexus-text-secondary, #64748b) !important;
  margin: 0 !important;
}

body.night-mode .card-register .card-subtitle {
  color: #94a3b8 !important;
}

.card-register .card-body {
  padding: 0 !important;
}

.card-register .form-group {
  margin-bottom: 18px !important;
}

.card-register .input-group {
  border-radius: 14px;
  background: #f8fafc;
  border: 1.5px solid #e2e8f0;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  overflow: hidden;
}

body.night-mode .card-register .input-group {
  background: rgba(15, 23, 42, 0.6);
  border-color: rgba(255, 255, 255, 0.1);
}

.card-register .input-group:focus-within {
  border-color: var(--nexus-primary, #6366f1) !important;
  box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.15) !important;
  background: #ffffff;
}

body.night-mode .card-register .input-group:focus-within {
  background: rgba(15, 23, 42, 0.95);
  box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.25) !important;
}

.card-register .input-group-text {
  border: none !important;
  color: #94a3b8 !important;
  padding: 0 16px !important;
  font-size: 1rem;
}

body.night-mode .card-register .input-group-text {
  color: #64748b !important;
}

.card-register .input-group:focus-within .input-group-text {
  color: var(--nexus-primary, #6366f1) !important;
}

body.night-mode .card-register .input-group:focus-within .input-group-text {
  color: #a5b4fc !important;
}

.card-register .form-control {
  height: 48px !important;
  border: none !important;
  background: transparent !important;
  font-size: 0.95rem !important;
  font-weight: 500 !important;
  padding-left: 0 !important;
  color: var(--nexus-text-primary, #0f172a) !important;
  box-shadow: none !important;
}

body.night-mode .card-register .form-control {
  color: #f8fafc !important;
}

.card-register .form-control::placeholder {
  color: #94a3b8;
  font-weight: 400;
}

body.night-mode .card-register .form-control::placeholder {
  color: #64748b;
}

/* Auth Primary Submit Buttons */
.card-register .btn-primary,
.card-register .btn-main {
  height: 48px !important;
  border-radius: 14px !important;
  font-size: 0.95rem !important;
  font-weight: 600 !important;
  letter-spacing: 0.01em;
  background: var(--nexus-gradient-primary, linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%)) !important;
  border: none !important;
  box-shadow: 0 8px 20px -4px rgba(99, 102, 241, 0.4) !important;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1) !important;
  display: flex !important;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.card-register .btn-primary:hover,
.card-register .btn-main:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 26px -4px rgba(99, 102, 241, 0.5) !important;
  opacity: 0.96;
}

.card-register .btn-primary:active,
.card-register .btn-main:active {
  transform: translateY(0);
}

/* Custom Checkbox and Links */
.card-register .custom-control-label {
  font-size: 0.88rem;
  color: var(--nexus-text-secondary, #64748b);
  cursor: pointer;
}

body.night-mode .card-register .custom-control-label {
  color: #94a3b8;
}

.card-register a.text-link {
  color: var(--nexus-primary, #6366f1) !important;
  font-weight: 600;
  text-decoration: none;
  transition: opacity 0.2s;
}

.card-register a.text-link:hover {
  text-decoration: underline;
}

/* Trust Badges Footer */
.nexus-auth-footer {
  position: relative;
  z-index: 2;
}

.nexus-auth-trust-badges {
  display: inline-flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 12px;
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--nexus-text-muted, #94a3b8);
}

body.night-mode .nexus-auth-trust-badges {
  color: #64748b;
}

.nexus-auth-trust-badges .dot-sep {
  opacity: 0.4;
}

@media (max-width: 576px) {
  .nexus-auth-wrapper {
    padding: 20px 10px 40px;
  }
  .nexus-auth-card-container .card-register {
    padding: 20px 15px !important;
    border-radius: 18px !important;
  }
  .nexus-auth-title {
    font-size: 1.6rem;
  }
  .nexus-auth-trust-badges {
    font-size: 0.75rem;
    gap: 8px;
  }
}

/* ==========================================================================
   30. PREMIUM MESSENGER & CHATBOX EXPERIENCE
   ========================================================================== */

/* 30.1 Full Messenger Container & Offcanvas Panels */
.sg-offcanvas {
  margin-bottom: 30px !important;
}

.sg-offcanvas-sidebar .card,
.sg-offcanvas-mainbar .card,
.card.panel-messages,
.card.card-messages {
  border-radius: 20px !important;
  border: 1px solid var(--nexus-border, #e2e8f0) !important;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.04) !important;
  background: var(--nexus-card-bg, #ffffff) !important;
  overflow: hidden !important;
  transition: all 0.25s ease !important;
}

body.night-mode .sg-offcanvas-sidebar .card,
body.night-mode .sg-offcanvas-mainbar .card,
body.night-mode .card.panel-messages,
body.night-mode .card.card-messages {
  background: linear-gradient(180deg, rgba(14, 18, 38, 0.95) 0%, rgba(9, 12, 28, 0.98) 100%) !important;
  backdrop-filter: blur(32px) saturate(190%) !important;
  -webkit-backdrop-filter: blur(32px) saturate(190%) !important;
  border: 1.5px solid rgba(139, 92, 246, 0.35) !important;
  box-shadow: 0 0 35px -5px rgba(124, 58, 237, 0.25), 0 20px 50px rgba(0, 0, 0, 0.75) !important;
}

/* Messenger Header */
.sg-offcanvas-sidebar .card-header {
  padding: 16px 20px !important;
  background: transparent !important;
  border-bottom: 1px solid rgba(226, 232, 240, 0.8) !important;
  font-size: 1.15rem !important;
  font-weight: 800 !important;
  letter-spacing: -0.2px !important;
  color: var(--nexus-text-main, #0f172a) !important;
}

body.night-mode .sg-offcanvas-sidebar .card-header {
  border-bottom-color: rgba(255, 255, 255, 0.08) !important;
  color: #f8fafc !important;
}

.sg-offcanvas-sidebar .card-header .js_chat-new {
  width: 36px !important;
  min-width: 36px !important;
  max-width: 36px !important;
  height: 36px !important;
  min-height: 36px !important;
  max-height: 36px !important;
  border-radius: 50% !important;
  padding: 0 !important;
  background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%) !important;
  color: #ffffff !important;
  border: none !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  box-shadow: 0 4px 14px rgba(99, 102, 241, 0.35) !important;
  transition: all 0.25s ease !important;
  flex-shrink: 0 !important;
}

.sg-offcanvas-sidebar .card-header .js_chat-new:hover {
  transform: scale(1.08) !important;
  box-shadow: 0 6px 20px rgba(99, 102, 241, 0.5) !important;
  color: #ffffff !important;
}

.sg-offcanvas-sidebar .card-header .js_chat-new svg {
  fill: #ffffff !important;
}

/* 30.2 Conversation Threads List (Left Sidebar) */
.sg-offcanvas-sidebar .card-body {
  padding: 10px 8px !important;
}

.sg-offcanvas-sidebar .chat-conversations ul {
  list-style: none !important;
  padding: 0 !important;
  margin: 0 !important;
}

.sg-offcanvas-sidebar .feeds-item {
  border-radius: 16px !important;
  margin: 4px 0 !important;
  padding: 0 !important;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1) !important;
  border: 1px solid transparent !important;
}

.sg-offcanvas-sidebar .feeds-item .data-container {
  display: flex !important;
  align-items: center !important;
  padding: 12px 14px !important;
  border-radius: 16px !important;
  text-decoration: none !important;
  position: relative !important;
  gap: 12px !important;
}

.sg-offcanvas-sidebar .feeds-item:hover {
  background: rgba(99, 102, 241, 0.06) !important;
  transform: translateX(2px) !important;
}

body.night-mode .sg-offcanvas-sidebar .feeds-item:hover {
  background: rgba(99, 102, 241, 0.12) !important;
}

.sg-offcanvas-sidebar .feeds-item.active,
.sg-offcanvas-sidebar .feeds-item.unread {
  background: rgba(99, 102, 241, 0.08) !important;
  border-color: rgba(99, 102, 241, 0.18) !important;
}

body.night-mode .sg-offcanvas-sidebar .feeds-item.active,
body.night-mode .sg-offcanvas-sidebar .feeds-item.unread {
  background: rgba(99, 102, 241, 0.15) !important;
  border-color: rgba(99, 102, 241, 0.3) !important;
}

.sg-offcanvas-sidebar .feeds-item.unread .data-container {
  padding-right: 28px !important;
}

.sg-offcanvas-sidebar .feeds-item.unread .data-container::after {
  content: '' !important;
  position: absolute !important;
  right: 12px !important;
  top: 50% !important;
  transform: translateY(-50%) !important;
  width: 9px !important;
  height: 9px !important;
  border-radius: 50% !important;
  background: #6366f1 !important;
  box-shadow: 0 0 10px #6366f1 !important;
}

.sg-offcanvas-sidebar .feeds-item .data-avatar {
  width: 48px !important;
  height: 48px !important;
  border-radius: 50% !important;
  margin: 0 !important;
  flex-shrink: 0 !important;
  position: relative !important;
}

.sg-offcanvas-sidebar .feeds-item .data-avatar img {
  width: 48px !important;
  height: 48px !important;
  border-radius: 50% !important;
  object-fit: cover !important;
  border: 2px solid #ffffff !important;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08) !important;
}

body.night-mode .sg-offcanvas-sidebar .feeds-item .data-avatar img {
  border-color: rgba(139, 92, 246, 0.35) !important;
  box-shadow: 0 0 10px rgba(139, 92, 246, 0.25) !important;
}

.sg-offcanvas-sidebar .feeds-item .data-content {
  flex: 1 1 auto !important;
  min-width: 0 !important;
  display: flex !important;
  flex-direction: column !important;
  justify-content: center !important;
}

.sg-offcanvas-sidebar .feeds-item .data-top {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 8px !important;
  width: 100% !important;
  margin-bottom: 3px !important;
}

.sg-offcanvas-sidebar .feeds-item .data-top .name {
  font-size: 15px !important;
  font-weight: 700 !important;
  color: var(--nexus-text-main, #0f172a) !important;
  white-space: nowrap !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  flex: 1 1 auto !important;
  min-width: 0 !important;
}

body.night-mode .sg-offcanvas-sidebar .feeds-item .data-top .name {
  color: #f8fafc !important;
}

.sg-offcanvas-sidebar .feeds-item.unread .data-top .name {
  color: #818cf8 !important;
}

.sg-offcanvas-sidebar .feeds-item .data-top .time {
  font-size: 11.5px !important;
  color: #94a3b8 !important;
  font-weight: 500 !important;
  white-space: nowrap !important;
  flex-shrink: 0 !important;
}

.sg-offcanvas-sidebar .feeds-item .data-bottom {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 8px !important;
  width: 100% !important;
}

.sg-offcanvas-sidebar .feeds-item .data-bottom .text {
  font-size: 13px !important;
  color: #64748b !important;
  white-space: nowrap !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  flex: 1 1 auto !important;
  min-width: 0 !important;
  margin: 0 !important;
}

body.night-mode .sg-offcanvas-sidebar .feeds-item .data-bottom .text {
  color: #94a3b8 !important;
}

.sg-offcanvas-sidebar .feeds-item .data-media {
  flex-shrink: 0 !important;
  margin-left: 6px !important;
  display: flex !important;
  align-items: center !important;
}

.feeds-item .data-img,
.sg-offcanvas-sidebar .feeds-item .data-img {
  width: 28px !important;
  height: 28px !important;
  max-width: 28px !important;
  max-height: 28px !important;
  border-radius: 6px !important;
  object-fit: cover !important;
  border: 1px solid rgba(255, 255, 255, 0.15) !important;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.25) !important;
}

/* 30.3 Active Conversation Header */
.panel-messages .card-header {
  padding: 14px 22px !important;
  border-bottom: 1px solid rgba(226, 232, 240, 0.8) !important;
  background: transparent !important;
  align-items: center !important;
}

body.night-mode .panel-messages .card-header {
  border-bottom-color: rgba(139, 92, 246, 0.2) !important;
  background: rgba(255, 255, 255, 0.02) !important;
}

.chat-header-avatar {
  width: 48px !important;
  height: 48px !important;
  border-radius: 50% !important;
  padding: 2.5px !important;
  background: linear-gradient(135deg, #c084fc 0%, #38bdf8 100%) !important;
  box-shadow: 0 0 14px rgba(192, 132, 252, 0.5) !important;
  position: relative !important;
  flex-shrink: 0 !important;
  display: inline-block !important;
}

.chat-header-avatar img {
  width: 100% !important;
  height: 100% !important;
  border-radius: 50% !important;
  object-fit: cover !important;
  display: block !important;
}

.chat-header-avatar .status-dot {
  position: absolute !important;
  bottom: 1px !important;
  right: 1px !important;
  width: 11px !important;
  height: 11px !important;
  border-radius: 50% !important;
  background: #22c55e !important;
  border: 2px solid #0f172a !important;
  box-shadow: 0 0 8px #22c55e !important;
}

.chat-header-name {
  font-size: 16px !important;
  font-weight: 700 !important;
  line-height: 1.3 !important;
}

.chat-header-name a,
.chat-header-name span {
  font-size: 16px !important;
  font-weight: 700 !important;
  color: var(--nexus-text-main, #0f172a) !important;
  text-decoration: none !important;
}

body.night-mode .chat-header-name a,
body.night-mode .chat-header-name span {
  color: #ffffff !important;
}

.chat-header-name a:hover {
  color: #c084fc !important;
}

/* Header Call and Option Buttons */
.panel-messages .card-header .btn-light {
  width: 38px !important;
  height: 38px !important;
  border-radius: 50% !important;
  padding: 0 !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  background: rgba(99, 102, 241, 0.08) !important;
  color: #6366f1 !important;
  border: 1px solid rgba(99, 102, 241, 0.18) !important;
  margin-left: 6px !important;
  transition: all 0.25s ease !important;
}

body.night-mode .panel-messages .card-header .btn-light {
  background: rgba(255, 255, 255, 0.08) !important;
  color: #cbd5e1 !important;
  border-color: rgba(255, 255, 255, 0.14) !important;
}

.panel-messages .card-header .btn-light:hover {
  background: rgba(139, 92, 246, 0.3) !important;
  border-color: rgba(139, 92, 246, 0.6) !important;
  color: #ffffff !important;
  transform: translateY(-2px) scale(1.06) !important;
  box-shadow: 0 0 16px rgba(139, 92, 246, 0.45) !important;
}

.panel-messages .card-header .btn-light svg {
  width: 17px !important;
  height: 17px !important;
  fill: currentColor !important;
}

/* 30.4 Conversation Bubbles & Thread Flow */
.panel-messages .chat-conversations {
  padding: 20px 24px !important;
  min-height: 420px;
}

.conversation {
  margin-bottom: 24px !important;
  padding-top: 0 !important;
  clear: both !important;
}

.conversation-user {
  width: 38px !important;
  height: 38px !important;
  border-radius: 50% !important;
  overflow: hidden !important;
  margin-right: 12px !important;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08) !important;
}

.conversation-user img {
  width: 38px !important;
  height: 38px !important;
  border-radius: 50% !important;
  object-fit: cover !important;
}

.conversation-body {
  position: relative !important;
  max-width: calc(100% - 54px) !important;
}

/* Incoming Bubbles: Modern Slate */
.conversation:not(.right) .conversation-body .text {
  background: #f1f5f9 !important;
  color: #1e293b !important;
  border-radius: 18px 18px 18px 4px !important;
  padding: 11px 18px !important;
  font-size: 14.5px !important;
  line-height: 1.55 !important;
  border: 1px solid rgba(226, 232, 240, 0.8) !important;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.03) !important;
}

body.night-mode .conversation:not(.right) .conversation-body .text {
  background: rgba(30, 41, 59, 0.85) !important;
  color: #f8fafc !important;
  border: 1px solid rgba(255, 255, 255, 0.08) !important;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25) !important;
}

.conversation:not(.right) .conversation-body .text a {
  color: #4f46e5 !important;
  text-decoration: underline !important;
  font-weight: 500 !important;
}

body.night-mode .conversation:not(.right) .conversation-body .text a {
  color: #a5b4fc !important;
}

/* Outgoing Bubbles: Vibrant Gradient */
.conversation.right .conversation-body .text {
  background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%) !important;
  color: #ffffff !important;
  border-radius: 18px 18px 4px 18px !important;
  padding: 11px 18px !important;
  font-size: 14.5px !important;
  line-height: 1.55 !important;
  border: none !important;
  box-shadow: 0 4px 16px rgba(99, 102, 241, 0.28) !important;
}

.conversation.right .conversation-body .text a {
  color: #ffffff !important;
  text-decoration: underline !important;
  font-weight: 600 !important;
}

/* Media styling inside messages */
.chat-message-media .img-wrapper {
  max-width: 260px !important;
  border-radius: 16px !important;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.1) !important;
  transition: transform 0.2s ease !important;
}

.chat-message-media .img-wrapper:hover {
  transform: scale(1.02) !important;
}

.chat-message-media .video-wrapper {
  border-radius: 16px !important;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.1) !important;
  overflow: hidden !important;
}

.chat-product {
  border-radius: 16px !important;
  border: 1px solid rgba(226, 232, 240, 0.8) !important;
  overflow: hidden !important;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.05) !important;
  background: #f8fafc !important;
}

body.night-mode .chat-product {
  background: rgba(30, 41, 59, 0.9) !important;
  border-color: rgba(255, 255, 255, 0.08) !important;
}

/* Micro-metadata: Timestamps & Seen */
.conversation-body .conversation-meta {
  margin-top: 6px !important;
}

.conversation-body .conversation-meta .time {
  font-size: 11px !important;
  color: #94a3b8 !important;
  font-weight: 500 !important;
}

.conversation-body .seen {
  font-size: 11px !important;
  color: #6366f1 !important;
  font-weight: 600 !important;
  margin-top: 4px !important;
}

/* 30.5 Input Composer Dock */
.panel-messages .chat-form,
.chat-widget .chat-form {
  background: var(--nexus-card-bg, #ffffff) !important;
  padding: 14px 20px !important;
  border-top: 1px solid rgba(226, 232, 240, 0.8) !important;
  border-radius: 0 0 20px 20px !important;
  display: flex !important;
  align-items: center !important;
  gap: 12px !important;
}

body.night-mode .panel-messages .chat-form,
body.night-mode .chat-widget .chat-form {
  background: rgba(14, 18, 38, 0.75) !important;
  border-top-color: rgba(139, 92, 246, 0.2) !important;
}

.chat-form:not(:has(.chat-input-capsule)) .chat-form-message {
  flex: 1 !important;
  background: #f8fafc !important;
  border: 1.5px solid #e2e8f0 !important;
  border-radius: 26px !important;
  padding: 8px 18px !important;
  transition: all 0.2s ease !important;
  max-height: 90px !important;
}

body.night-mode .chat-form:not(:has(.chat-input-capsule)) .chat-form-message {
  background: rgba(15, 23, 42, 0.6) !important;
  border-color: rgba(255, 255, 255, 0.1) !important;
}

.chat-form:not(:has(.chat-input-capsule)) .chat-form-message:focus-within {
  background: #ffffff !important;
  border-color: #6366f1 !important;
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.15) !important;
}

body.night-mode .chat-form:not(:has(.chat-input-capsule)) .chat-form-message:focus-within {
  background: rgba(15, 23, 42, 0.9) !important;
  border-color: #818cf8 !important;
  box-shadow: 0 0 0 3px rgba(129, 140, 248, 0.2) !important;
}

.chat-form-message textarea {
  font-size: 14.5px !important;
  line-height: 22px !important;
  min-height: 24px !important;
  color: var(--nexus-text-main, #0f172a) !important;
}

body.night-mode .chat-form-message textarea {
  color: #f8fafc !important;
}

/* Tool Action Icons */
.chat-form ul.x-form-tools {
  display: flex !important;
  align-items: center !important;
  gap: 6px !important;
  margin: 0 !important;
  padding: 0 !important;
  list-style: none !important;
}

.chat-form ul.x-form-tools > li {
  width: 36px !important;
  height: 36px !important;
  border-radius: 50% !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  color: #64748b !important;
  cursor: pointer !important;
  transition: all 0.2s ease !important;
}

body.night-mode .chat-form ul.x-form-tools > li {
  color: #94a3b8 !important;
}

.chat-form ul.x-form-tools > li:hover {
  background: rgba(99, 102, 241, 0.1) !important;
  color: #6366f1 !important;
  transform: scale(1.08) !important;
}

/* Circular Gradient Send Button */
.chat-form ul.x-form-tools > li.x-form-tools-post {
  width: 40px !important;
  height: 40px !important;
  border-radius: 50% !important;
  background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%) !important;
  color: #ffffff !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  box-shadow: 0 4px 14px rgba(99, 102, 241, 0.35) !important;
  transition: all 0.2s ease !important;
  cursor: pointer !important;
}

.chat-form ul.x-form-tools > li.x-form-tools-post:hover {
  transform: scale(1.1) !important;
  box-shadow: 0 6px 18px rgba(99, 102, 241, 0.5) !important;
  color: #ffffff !important;
}

/* 30.6 Voice Recording & Typing Indicator */
.chat-voice-notes {
  border-radius: 16px !important;
  margin: 8px 16px !important;
  padding: 12px 18px !important;
  background: rgba(99, 102, 241, 0.06) !important;
  border: 1px solid rgba(99, 102, 241, 0.15) !important;
}

body.night-mode .chat-voice-notes {
  background: rgba(99, 102, 241, 0.12) !important;
  border-color: rgba(99, 102, 241, 0.25) !important;
}

.chat-voice-notes .btn-voice-start {
  color: #6366f1 !important;
  font-weight: 700 !important;
  cursor: pointer !important;
}

.chat-voice-notes .btn-voice-stop {
  color: #ef4444 !important;
  font-weight: 700 !important;
  cursor: pointer !important;
}

.chat-typing {
  padding: 8px 20px !important;
  font-size: 12px !important;
  color: #64748b !important;
  font-style: italic !important;
}

/* 30.7 Floating Mini Chat Widget (.chat-widget.chat-box) - Image 2 Nexus Cyberpunk Glass Aesthetic */
.chat-widget.chat-box {
  width: 380px !important;
  max-width: calc(100vw - 30px) !important;
  border-radius: 28px !important;
  bottom: 24px !important;
  right: 24px !important;
  background: linear-gradient(180deg, rgba(14, 18, 38, 0.95) 0%, rgba(9, 12, 28, 0.98) 100%) !important;
  backdrop-filter: blur(32px) saturate(190%) !important;
  -webkit-backdrop-filter: blur(32px) saturate(190%) !important;
  border: 1.5px solid rgba(139, 92, 246, 0.42) !important;
  box-shadow: 0 0 40px -5px rgba(124, 58, 237, 0.4), 0 25px 65px rgba(0, 0, 0, 0.85), inset 0 1px 2px rgba(255, 255, 255, 0.2) !important;
  overflow: hidden !important;
  z-index: 9999 !important;
  position: fixed !important;
}

body.night-mode .chat-widget.chat-box {
  background: linear-gradient(180deg, rgba(14, 18, 38, 0.95) 0%, rgba(9, 12, 28, 0.98) 100%) !important;
  border-color: rgba(139, 92, 246, 0.45) !important;
}

/* Neon Top Reflection Beam */
.chat-widget.chat-box::before {
  content: '' !important;
  position: absolute !important;
  top: 0 !important;
  left: 12% !important;
  right: 12% !important;
  height: 2px !important;
  background: linear-gradient(90deg, transparent, #818cf8, #c084fc, transparent) !important;
  z-index: 10 !important;
  pointer-events: none !important;
}

/* Header */
.chat-widget-head {
  background: rgba(255, 255, 255, 0.02) !important;
  padding: 16px 20px !important;
  border-bottom: 1px solid rgba(139, 92, 246, 0.18) !important;
  border-radius: 28px 28px 0 0 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  min-height: auto !important;
}

body.night-mode .chat-widget-head {
  background: rgba(255, 255, 255, 0.02) !important;
  border-bottom: 1px solid rgba(139, 92, 246, 0.18) !important;
}

.chat-user-card {
  display: flex !important;
  align-items: center !important;
  text-decoration: none !important;
}

.chat-user-card .avatar {
  width: 46px !important;
  height: 46px !important;
  border-radius: 50% !important;
  padding: 2.5px !important;
  background: linear-gradient(135deg, #c084fc 0%, #38bdf8 100%) !important;
  box-shadow: 0 0 14px rgba(192, 132, 252, 0.6) !important;
  margin-right: 12px !important;
  flex-shrink: 0 !important;
  position: relative !important;
}

.chat-user-card .avatar img {
  width: 100% !important;
  height: 100% !important;
  border-radius: 50% !important;
  object-fit: cover !important;
}

.chat-user-card .avatar .online-status {
  display: none !important;
}

.chat-user-card .name {
  display: flex !important;
  flex-direction: column !important;
}

.chat-user-card .name > span {
  font-size: 16px !important;
  font-weight: 700 !important;
  color: #ffffff !important;
  letter-spacing: -0.2px !important;
  line-height: 1.25 !important;
}

body.night-mode .chat-user-card .name > span {
  color: #ffffff !important;
}

/* Online Sub-status */
.chat-sub-status {
  display: flex !important;
  align-items: center !important;
  gap: 6px !important;
  margin-top: 3px !important;
}

.chat-sub-status .status-dot {
  width: 8px !important;
  height: 8px !important;
  border-radius: 50% !important;
  background: #22c55e !important;
  box-shadow: 0 0 10px #22c55e !important;
  display: inline-block !important;
}

.chat-sub-status .status-text {
  color: #cbd5e1 !important;
  font-size: 12px !important;
  font-weight: 500 !important;
  line-height: 1 !important;
}

/* Header Buttons */
.chat-head-btns {
  display: flex !important;
  align-items: center !important;
  gap: 8px !important;
}

.chat-head-btn {
  width: 36px !important;
  height: 36px !important;
  border-radius: 50% !important;
  background: rgba(255, 255, 255, 0.08) !important;
  border: 1px solid rgba(255, 255, 255, 0.14) !important;
  color: #cbd5e1 !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  margin: 0 !important;
  padding: 0 !important;
  transition: all 0.2s ease !important;
  cursor: pointer !important;
  text-decoration: none !important;
}

body.night-mode .chat-head-btn {
  background: rgba(255, 255, 255, 0.08) !important;
  border-color: rgba(255, 255, 255, 0.14) !important;
  color: #cbd5e1 !important;
}

.chat-head-btn:hover {
  background: rgba(139, 92, 246, 0.3) !important;
  border-color: rgba(139, 92, 246, 0.6) !important;
  color: #ffffff !important;
  box-shadow: 0 0 14px rgba(139, 92, 246, 0.45) !important;
  transform: scale(1.08) !important;
}

.chat-head-btn svg,
.chat-head-btn i {
  width: 15px !important;
  height: 15px !important;
  font-size: 15px !important;
  fill: currentColor !important;
  color: currentColor !important;
}

/* Chat Body / Content */
.chat-widget-content {
  background: transparent !important;
  display: block !important;
}

body.night-mode .chat-widget-content {
  background: transparent !important;
}

/* Chat Body / Content */
.chat-widget-content {
  background: transparent !important;
  display: block !important;
}

body.night-mode .chat-widget-content {
  background: transparent !important;
}

.chat-widget .chat-conversations {
  background: transparent !important;
  padding: 20px 22px 20px 18px !important;
  min-height: 290px !important;
}

.chat-widget .conversation {
  margin-bottom: 28px !important;
  clear: both !important;
  position: relative !important;
}

.chat-widget .conversation.right {
  padding-right: 8px !important;
  float: right !important;
  width: 100% !important;
}

.chat-widget .conversation.right .conversation-body {
  float: right !important;
  max-width: 82% !important;
  position: relative !important;
}

/* Outgoing Messages - Image 2 Gradient */
.chat-widget .conversation.right .conversation-body .text,
.panel-messages .conversation.right .conversation-body .text {
  background: linear-gradient(135deg, #6d58f5 0%, #8b5cf6 100%) !important;
  color: #ffffff !important;
  border-radius: 20px 20px 4px 20px !important;
  padding: 10px 18px !important;
  font-size: 15px !important;
  font-weight: 500 !important;
  letter-spacing: 0.2px !important;
  line-height: 1.45 !important;
  border: none !important;
  box-shadow: 0 4px 20px rgba(109, 88, 245, 0.45) !important;
  display: inline-block !important;
  word-break: break-word !important;
  float: right !important;
  text-align: left !important;
}

/* Incoming Messages */
.chat-widget .conversation:not(.right) .conversation-body .text,
.panel-messages .conversation:not(.right) .conversation-body .text {
  background: rgba(30, 41, 59, 0.8) !important;
  color: #f8fafc !important;
  border-radius: 20px 20px 20px 4px !important;
  padding: 10px 18px !important;
  font-size: 15px !important;
  line-height: 1.45 !important;
  border: 1px solid rgba(255, 255, 255, 0.1) !important;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.25) !important;
  word-break: break-word !important;
}

/* Micro-metadata: Clock & Double Checkmarks - Clean static flow */
.chat-widget .conversation.right .time,
.chat-widget .conversation.right .conversation-meta,
.panel-messages .conversation.right .time,
.panel-messages .conversation.right .conversation-meta {
  display: flex !important;
  align-items: center !important;
  justify-content: flex-end !important;
  gap: 4px !important;
  margin-top: 5px !important;
  clear: both !important;
  float: right !important;
  width: 100% !important;
  position: static !important;
  white-space: nowrap !important;
  color: #94a3b8 !important;
  font-size: 11.5px !important;
  font-weight: 500 !important;
  text-align: right !important;
}

.chat-widget .conversation.right .time::before,
.panel-messages .conversation.right .time::before {
  content: "\f017" !important;
  font-family: "Font Awesome 5 Free" !important;
  font-weight: 400 !important;
  opacity: 0.85 !important;
  font-size: 11px !important;
  margin-right: 2px !important;
  display: inline-block !important;
}

.chat-widget .conversation.right .time::after,
.panel-messages .conversation.right .time::after {
  content: "✓✓" !important;
  display: inline-block !important;
  font-family: system-ui, -apple-system, sans-serif !important;
  font-weight: 800 !important;
  color: #38bdf8 !important;
  letter-spacing: -2px !important;
  margin-left: 6px !important;
  padding-left: 2px !important;
  font-size: 13px !important;
  text-shadow: 0 0 6px rgba(56, 189, 248, 0.7) !important;
}

.chat-widget .conversation.right .seen,
.panel-messages .conversation.right .seen {
  display: none !important;
}

.chat-widget .conversation:not(.right) .time,
.chat-widget .conversation:not(.right) .conversation-meta,
.panel-messages .conversation:not(.right) .time,
.panel-messages .conversation:not(.right) .conversation-meta {
  display: flex !important;
  align-items: center !important;
  justify-content: flex-start !important;
  gap: 4px !important;
  margin-top: 5px !important;
  clear: both !important;
  float: left !important;
  width: 100% !important;
  position: static !important;
  white-space: nowrap !important;
  color: #94a3b8 !important;
  font-size: 11.5px !important;
  font-weight: 500 !important;
}

.chat-widget .conversation:not(.right) .time::before,
.panel-messages .conversation:not(.right) .time::before {
  content: "\f017" !important;
  font-family: "Font Awesome 5 Free" !important;
  font-weight: 400 !important;
  opacity: 0.85 !important;
  font-size: 11px !important;
  margin-right: 2px !important;
  display: inline-block !important;
}

/* Composer / Input Area - Image 2 Nexus Bar */
.chat-widget .chat-form {
  background: transparent !important;
  border-top: 1px solid rgba(139, 92, 246, 0.16) !important;
  padding: 12px 16px 8px !important;
  display: flex !important;
  align-items: center !important;
  gap: 10px !important;
  border-radius: 0 !important;
}

body.night-mode .chat-widget .chat-form {
  background: transparent !important;
  border-top-color: rgba(139, 92, 246, 0.16) !important;
}

/* Plus Button on Left */
.chat-action-btn-circle {
  width: 44px !important;
  height: 44px !important;
  border-radius: 50% !important;
  flex-shrink: 0 !important;
  background: rgba(99, 102, 241, 0.12) !important;
  border: 1.5px solid rgba(139, 92, 246, 0.4) !important;
  color: #cbd5e1 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  font-size: 18px !important;
  box-shadow: 0 0 16px rgba(139, 92, 246, 0.25) !important;
  cursor: pointer !important;
  transition: all 0.25s ease !important;
}

.chat-action-btn-circle:hover {
  background: rgba(139, 92, 246, 0.3) !important;
  border-color: rgba(139, 92, 246, 0.8) !important;
  color: #ffffff !important;
  box-shadow: 0 0 20px rgba(139, 92, 246, 0.5) !important;
  transform: scale(1.08) rotate(90deg) !important;
}

/* Capsule Input in Middle */
.chat-widget .chat-input-capsule,
.panel-messages .chat-input-capsule {
  flex: 1 1 auto !important;
  min-width: 0 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  background: rgba(15, 23, 42, 0.65) !important;
  border: 1.5px solid rgba(99, 102, 241, 0.35) !important;
  border-radius: 28px !important;
  padding: 0 12px 0 18px !important;
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.35) !important;
  transition: all 0.25s ease !important;
  height: 48px !important;
  overflow: hidden !important;
}

body.night-mode .chat-widget .chat-input-capsule,
body.night-mode .panel-messages .chat-input-capsule {
  background: rgba(15, 23, 42, 0.65) !important;
  border-color: rgba(99, 102, 241, 0.35) !important;
}

.chat-widget .chat-input-capsule:focus-within,
.panel-messages .chat-input-capsule:focus-within {
  background: rgba(15, 23, 42, 0.88) !important;
  border-color: rgba(139, 92, 246, 0.85) !important;
  box-shadow: 0 0 16px rgba(139, 92, 246, 0.35), inset 0 2px 4px rgba(0, 0, 0, 0.35) !important;
}

/* Textarea wrapper inside Capsule */
.chat-widget .chat-form-message,
.panel-messages .chat-form-message,
.chat-input-capsule .chat-form-message {
  flex: 1 1 auto !important;
  min-width: 0 !important;
  width: auto !important;
  max-width: none !important;
  background: transparent !important;
  border: none !important;
  border-left: none !important;
  border-right: none !important;
  border-top: none !important;
  border-bottom: none !important;
  padding: 0 !important;
  margin: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  overflow: hidden !important;
  max-height: none !important;
  display: flex !important;
  align-items: center !important;
  height: 100% !important;
}

body.night-mode .chat-widget .chat-form-message,
body.night-mode .panel-messages .chat-form-message,
body.night-mode .chat-input-capsule .chat-form-message,
.chat-widget .chat-form-message:focus-within,
.panel-messages .chat-form-message:focus-within,
.chat-input-capsule .chat-form-message:focus-within,
body.night-mode .chat-widget .chat-form-message:focus-within,
body.night-mode .panel-messages .chat-form-message:focus-within,
body.night-mode .chat-input-capsule .chat-form-message:focus-within {
  background: transparent !important;
  border: none !important;
  border-left: none !important;
  border-right: none !important;
  border-top: none !important;
  border-bottom: none !important;
  box-shadow: none !important;
  outline: none !important;
}

.chat-widget .chat-form-message textarea,
.panel-messages .chat-form-message textarea {
  width: 100% !important;
  min-width: 0 !important;
  flex: 1 1 auto !important;
  background: transparent !important;
  border: none !important;
  outline: none !important;
  color: #ffffff !important;
  font-size: 14.5px !important;
  line-height: 22px !important;
  height: 22px !important;
  max-height: 70px !important;
  padding: 0 !important;
  margin: 0 !important;
  resize: none !important;
  box-shadow: none !important;
  overflow-y: auto !important;
  scrollbar-width: none !important;
}

.chat-widget .chat-form-message textarea::-webkit-scrollbar,
.panel-messages .chat-form-message textarea::-webkit-scrollbar {
  display: none !important;
}

.chat-widget .chat-form-message textarea::placeholder,
.panel-messages .chat-form-message textarea::placeholder {
  color: rgba(148, 163, 184, 0.65) !important;
  white-space: nowrap !important;
}

/* Inside Capsule Tool Icons */
.chat-widget .chat-input-capsule ul.x-form-tools,
.panel-messages .chat-input-capsule ul.x-form-tools {
  display: flex !important;
  align-items: center !important;
  gap: 8px !important;
  margin: 0 !important;
  padding: 0 0 0 8px !important;
  list-style: none !important;
  flex-shrink: 0 !important;
}

.chat-widget .chat-input-capsule ul.x-form-tools > li,
.panel-messages .chat-input-capsule ul.x-form-tools > li {
  width: 28px !important;
  height: 28px !important;
  padding: 0 !important;
  margin: 0 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  cursor: pointer !important;
}

.chat-widget .chat-input-capsule ul.x-form-tools > li.x-form-tools-colors,
.chat-widget .chat-input-capsule ul.x-form-tools > li.x-form-tools-monetize,
.panel-messages .chat-input-capsule ul.x-form-tools > li.x-form-tools-colors,
.panel-messages .chat-input-capsule ul.x-form-tools > li.x-form-tools-monetize {
  display: none !important;
}

.chat-widget .chat-input-capsule ul.x-form-tools i,
.panel-messages .chat-input-capsule ul.x-form-tools i {
  color: #818cf8 !important;
  font-size: 16px !important;
  transition: all 0.2s ease !important;
}

.chat-widget .chat-input-capsule ul.x-form-tools > li:hover i,
.panel-messages .chat-input-capsule ul.x-form-tools > li:hover i {
  color: #ffffff !important;
  filter: drop-shadow(0 0 6px rgba(129, 140, 248, 0.9)) !important;
  transform: scale(1.15) !important;
}

/* Send Button on Right */
.chat-btn-send {
  width: 46px !important;
  height: 46px !important;
  border-radius: 50% !important;
  flex-shrink: 0 !important;
  background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 50%, #a855f7 100%) !important;
  border: none !important;
  color: #ffffff !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  box-shadow: 0 0 20px rgba(139, 92, 246, 0.55), 0 4px 12px rgba(99, 102, 241, 0.4) !important;
  cursor: pointer !important;
  transition: all 0.25s cubic-bezier(0.34, 1.56, 0.64, 1) !important;
  pointer-events: auto !important;
  position: relative !important;
  z-index: 20 !important;
}

.chat-btn-send i {
  font-size: 18px !important;
  transform: translate(-1px, 1px) !important;
  color: #ffffff !important;
  pointer-events: none !important;
}

.chat-btn-send:hover {
  transform: scale(1.1) !important;
  box-shadow: 0 0 28px rgba(168, 85, 247, 0.75), 0 6px 18px rgba(99, 102, 241, 0.5) !important;
}

/* Footer Tagline Branding */
.chat-widget-footer {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  padding: 4px 22px 14px !important;
  background: transparent !important;
}

.chat-footer-brand {
  color: #a5b4fc !important;
  font-weight: 800 !important;
  letter-spacing: 2px !important;
  text-transform: uppercase !important;
  display: flex !important;
  align-items: center !important;
  gap: 5px !important;
  font-size: 10.5px !important;
}

.chat-footer-brand .brand-arrow {
  color: #818cf8 !important;
  font-size: 9px !important;
}

.chat-footer-tagline {
  color: rgba(148, 163, 184, 0.5) !important;
  font-weight: 600 !important;
  letter-spacing: 1.5px !important;
  text-transform: uppercase !important;
  font-size: 9px !important;
}


/* 30.8 Chat Floating Sidebar (.chat-sidebar) */
.chat-sidebar {
  border-left: 1px solid var(--nexus-border, #e2e8f0) !important;
  background: var(--nexus-surface, #ffffff) !important;
}

body.night-mode .chat-sidebar {
  border-left-color: rgba(255, 255, 255, 0.08) !important;
  background: #1e293b !important;
}

.chat-avatar-wrapper {
  padding: 6px 0 !important;
  transition: transform 0.2s ease !important;
}

.chat-avatar-wrapper:hover {
  transform: scale(1.1) !important;
}

.chat-avatar img {
  border: 2px solid rgba(255, 255, 255, 0.8) !important;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1) !important;
}

.chat-sidebar .online-status.online {
  color: #10b981 !important;
}

/* 30.9 Empty State (.card-messages) */
.card.card-messages .btn-primary {
  background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%) !important;
  border: none !important;
  padding: 10px 26px !important;
  font-weight: 700 !important;
  box-shadow: 0 4px 16px rgba(99, 102, 241, 0.35) !important;
  transition: all 0.25s ease !important;
}

.card.card-messages .btn-primary:hover {
  transform: translateY(-2px) !important;
  box-shadow: 0 8px 24px rgba(99, 102, 241, 0.5) !important;
}

/* ========================================================================== */
/* 31. NEXUS MODERN SIDEBAR WIDGETS SUITE                                     */
/* ========================================================================== */

/* Generic Widget Card Base */
.nexus-widget {
  border-radius: var(--nexus-radius-xl, 18px) !important;
  border: 1px solid var(--nexus-border-subtle, rgba(255, 255, 255, 0.08)) !important;
  background: var(--nexus-surface, rgba(15, 23, 42, 0.65)) !important;
  backdrop-filter: blur(16px) saturate(160%) !important;
  -webkit-backdrop-filter: blur(16px) saturate(160%) !important;
  box-shadow: 0 4px 20px -2px rgba(0, 0, 0, 0.08) !important;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1) !important;
  overflow: hidden;
  position: relative;
}

body:not(.night-mode) .nexus-widget {
  background: #ffffff !important;
  border-color: rgba(226, 232, 240, 0.9) !important;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.04) !important;
}

.nexus-widget:hover {
  border-color: rgba(99, 102, 241, 0.3) !important;
  box-shadow: 0 8px 28px -4px rgba(99, 102, 241, 0.12) !important;
}

/* 31.1 Daily Pulse & Greeting Widget */
.nexus-widget-pulse .nexus-pulse-ambient {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 90px;
  background: radial-gradient(circle at 15% -20%, rgba(99, 102, 241, 0.25), transparent 70%);
  pointer-events: none;
}

.nexus-pulse-greeting {
  font-size: 0.95rem;
  letter-spacing: -0.2px;
  color: var(--nexus-text-primary, #f8fafc);
}

body:not(.night-mode) .nexus-pulse-greeting {
  color: #0f172a !important;
}

.nexus-pulse-date {
  background: rgba(99, 102, 241, 0.12) !important;
  color: #818cf8 !important;
  font-size: 0.76rem !important;
  font-weight: 600 !important;
  padding: 4px 10px !important;
  border: 1px solid rgba(99, 102, 241, 0.2) !important;
}

.nexus-quote-box {
  position: relative;
  padding: 10px 14px 10px 32px;
  background: rgba(255, 255, 255, 0.03);
  border-radius: 12px;
  border-left: 3px solid #6366f1;
}

body:not(.night-mode) .nexus-quote-box {
  background: rgba(241, 245, 249, 0.7);
  border-left-color: #4f46e5;
}

.nexus-quote-mark {
  position: absolute;
  left: 10px;
  top: 10px;
  color: #818cf8;
  font-size: 0.82rem;
  opacity: 0.7;
}

.nexus-quote-text {
  font-size: 0.82rem;
  line-height: 1.45;
  color: var(--nexus-text-secondary, #94a3b8);
  transition: all 0.25s ease;
  font-style: italic;
  padding-right: 22px;
}

body:not(.night-mode) .nexus-quote-text {
  color: #475569 !important;
}

.nexus-quote-cycle {
  position: absolute;
  right: 6px;
  bottom: 6px;
  padding: 3px 6px !important;
  color: #818cf8 !important;
  background: transparent !important;
  border: none !important;
  font-size: 0.8rem;
  opacity: 0.75;
  transition: all 0.3s ease !important;
  cursor: pointer;
}

.nexus-quote-cycle:hover {
  opacity: 1;
  color: #a5b4fc !important;
}

.nexus-quote-cycle.rotating i {
  transform: rotate(360deg);
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

/* 31.2 Quick Actions Widget */
.nexus-hub-pill {
  background: rgba(99, 102, 241, 0.12) !important;
  color: #818cf8 !important;
  font-size: 0.72rem !important;
  font-weight: 700 !important;
  padding: 3px 9px !important;
}

.nexus-action-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

.nexus-action-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 11px 6px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 12px;
  text-decoration: none !important;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1) !important;
  cursor: pointer;
  color: inherit;
}

body:not(.night-mode) .nexus-action-btn {
  background: rgba(248, 250, 252, 0.9);
  border-color: rgba(226, 232, 240, 0.8);
}

.nexus-action-btn:hover {
  background: rgba(99, 102, 241, 0.08) !important;
  border-color: rgba(99, 102, 241, 0.35) !important;
  transform: translateY(-2px);
  box-shadow: 0 4px 14px rgba(99, 102, 241, 0.15);
}

.nexus-action-icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 6px;
  color: #ffffff;
  font-size: 0.95rem;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.15);
  transition: transform 0.2s ease;
}

.nexus-action-btn:hover .nexus-action-icon {
  transform: scale(1.08);
}

.nexus-action-label {
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--nexus-text-primary, #e2e8f0);
  text-align: center;
  white-space: nowrap;
}

body:not(.night-mode) .nexus-action-label {
  color: #1e293b !important;
}

.bg-gradient-blue {
  background: linear-gradient(135deg, #3b82f6, #1d4ed8) !important;
}
.bg-gradient-purple {
  background: linear-gradient(135deg, #8b5cf6, #6d28d9) !important;
}
.bg-gradient-emerald {
  background: linear-gradient(135deg, #10b981, #047857) !important;
}
.bg-gradient-amber {
  background: linear-gradient(135deg, #f59e0b, #b45309) !important;
}
.bg-gradient-rose {
  background: linear-gradient(135deg, #f43f5e, #be123c) !important;
}
.bg-gradient-cyan {
  background: linear-gradient(135deg, #06b6d4, #0e7490) !important;
}

/* 31.3 Community Pulse & Stats Widget */
.nexus-pulse-radar {
  position: relative;
  display: inline-flex;
  width: 14px;
  height: 14px;
  align-items: center;
  justify-content: center;
}

.nexus-pulse-radar .radar-dot {
  width: 8px;
  height: 8px;
  background: #10b981;
  border-radius: 50%;
  z-index: 2;
}

.nexus-pulse-radar .radar-wave {
  position: absolute;
  width: 14px;
  height: 14px;
  border: 2px solid #10b981;
  border-radius: 50%;
  animation: nexusRadarPulse 2s infinite cubic-bezier(0.25, 1, 0.5, 1);
  opacity: 0.8;
}

@keyframes nexusRadarPulse {
  0% {
    transform: scale(0.6);
    opacity: 1;
  }
  100% {
    transform: scale(1.8);
    opacity: 0;
  }
}

.nexus-live-badge {
  background: rgba(16, 185, 129, 0.12) !important;
  color: #10b981 !important;
  font-size: 0.68rem !important;
  font-weight: 700 !important;
  padding: 3px 8px !important;
  border-radius: 12px;
  letter-spacing: 0.5px;
  border: 1px solid rgba(16, 185, 129, 0.25);
}

.nexus-live-badge .badge-dot {
  display: inline-block;
  width: 6px;
  height: 6px;
  background: #10b981;
  border-radius: 50%;
  margin-right: 4px;
  animation: nexusPulseDot 1.5s infinite;
}

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

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

.nexus-stat-box {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 12px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 12px;
  transition: all 0.2s ease;
}

body:not(.night-mode) .nexus-stat-box {
  background: rgba(248, 250, 252, 0.9);
  border-color: rgba(226, 232, 240, 0.8);
}

.nexus-stat-box:hover {
  transform: translateY(-2px);
  border-color: rgba(255, 255, 255, 0.15);
}

.stat-icon-wrapper {
  width: 32px;
  height: 32px;
  border-radius: 9px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.95rem;
  flex-shrink: 0;
}

.stat-icon-wrapper.text-emerald {
  background: rgba(16, 185, 129, 0.12);
  color: #10b981;
}
.stat-icon-wrapper.text-indigo {
  background: rgba(99, 102, 241, 0.12);
  color: #818cf8;
}
.stat-icon-wrapper.text-amber {
  background: rgba(245, 158, 11, 0.12);
  color: #f59e0b;
}
.stat-icon-wrapper.text-rose {
  background: rgba(244, 63, 94, 0.12);
  color: #f43f5e;
}

.stat-number {
  font-size: 1.05rem;
  font-weight: 700;
  line-height: 1.1;
  color: var(--nexus-text-primary, #f1f5f9);
}

body:not(.night-mode) .stat-number {
  color: #0f172a !important;
}

.stat-title {
  font-size: 0.72rem;
  color: var(--nexus-text-muted, #94a3b8);
  font-weight: 500;
}

/* 31.4 Creators Spotlight Widget */
.nexus-header-link {
  font-size: 0.76rem !important;
  color: #818cf8 !important;
  font-weight: 600 !important;
  text-decoration: none !important;
  transition: color 0.2s ease;
}

.nexus-header-link:hover {
  color: #a5b4fc !important;
}

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

.nexus-creator-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.04);
  border-radius: 12px;
  transition: all 0.2s ease;
}

body:not(.night-mode) .nexus-creator-item {
  background: rgba(248, 250, 252, 0.8);
  border-color: rgba(226, 232, 240, 0.8);
}

.nexus-creator-item:hover {
  background: rgba(99, 102, 241, 0.06);
  border-color: rgba(99, 102, 241, 0.25);
  transform: translateX(3px);
}

.creator-avatar-wrap {
  position: relative;
  width: 42px;
  height: 42px;
  flex-shrink: 0;
}

.creator-avatar {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid #6366f1;
}

.creator-rank-dot {
  position: absolute;
  bottom: -2px;
  right: -2px;
  background: #1e1b4b;
  color: #a5b4fc;
  border: 1.5px solid #6366f1;
  border-radius: 50%;
  font-size: 0.6rem;
  font-weight: 700;
  width: 17px;
  height: 17px;
  display: flex;
  align-items: center;
  justify-content: center;
}

body:not(.night-mode) .creator-rank-dot {
  background: #e0e7ff;
  color: #4338ca;
  border-color: #4f46e5;
}

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

.creator-name {
  font-weight: 600;
  font-size: 0.84rem;
  color: var(--nexus-text-primary, #e2e8f0);
  text-decoration: none !important;
}

body:not(.night-mode) .creator-name {
  color: #0f172a !important;
}

.creator-name:hover {
  color: #818cf8 !important;
}

.creator-handle {
  font-size: 0.72rem;
  color: var(--nexus-text-muted, #94a3b8);
}

.creator-badge,
.nexus-creator-badge {
  font-size: 0.65rem !important;
  font-weight: 500 !important;
  padding: 2px 7px !important;
  border-radius: 9999px !important;
  align-self: flex-start !important;
  margin-top: 3px !important;
  white-space: nowrap !important;
  max-width: 100% !important;
  background: rgba(99, 102, 241, 0.12) !important;
  color: #a5b4fc !important;
  border: 1px solid rgba(99, 102, 241, 0.25) !important;
  display: inline-flex !important;
  align-items: center !important;
  line-height: 1.2 !important;
}

body:not(.night-mode) .creator-badge,
body:not(.night-mode) .nexus-creator-badge {
  background: #f1f5f9 !important;
  color: #475569 !important;
  border-color: #e2e8f0 !important;
}

.creator-action {
  flex-shrink: 0 !important;
  margin-left: auto !important;
  z-index: 2 !important;
}

.creator-action .btn {
  padding: 4px 12px !important;
  font-size: 0.75rem !important;
  font-weight: 600 !important;
}

/* 31.5 Mobile App & PWA Promo Widget */
.nexus-widget-app .nexus-app-glow {
  position: absolute;
  top: -30px;
  left: 20%;
  width: 60%;
  height: 100px;
  background: radial-gradient(circle, rgba(99, 102, 241, 0.28), transparent 70%);
  pointer-events: none;
}

.nexus-app-icon-wrap {
  width: 44px;
  height: 44px;
  flex-shrink: 0;
}

.nexus-app-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  box-shadow: 0 4px 14px rgba(99, 102, 241, 0.25);
  object-fit: cover;
}

.nexus-app-title {
  color: var(--nexus-text-primary, #f8fafc);
  font-size: 0.95rem;
}

body:not(.night-mode) .nexus-app-title {
  color: #0f172a !important;
}

.nexus-store-pill {
  font-size: 0.72rem !important;
  font-weight: 600 !important;
  padding: 4px 10px !important;
  border-radius: 12px !important;
  background: rgba(255, 255, 255, 0.05) !important;
  border: 1px solid rgba(255, 255, 255, 0.08) !important;
  color: var(--nexus-text-secondary, #cbd5e1) !important;
  text-decoration: none !important;
  display: inline-flex !important;
  align-items: center !important;
  transition: all 0.2s ease !important;
  cursor: pointer !important;
}

.nexus-store-pill:hover {
  background: rgba(99, 102, 241, 0.18) !important;
  border-color: rgba(99, 102, 241, 0.4) !important;
  color: #ffffff !important;
  transform: translateY(-1px) !important;
}

body:not(.night-mode) .nexus-store-pill {
  background: rgba(241, 245, 249, 0.8) !important;
  border-color: rgba(203, 213, 225, 0.8) !important;
  color: #334155 !important;
}

body:not(.night-mode) .nexus-store-pill:hover {
  background: rgba(99, 102, 241, 0.12) !important;
  border-color: #6366f1 !important;
  color: #4338ca !important;
}

.btn-nexus-install {
  background: linear-gradient(135deg, #6366f1 0%, #4f46e5 100%) !important;
  border: none !important;
  font-weight: 700 !important;
  font-size: 0.84rem !important;
  padding: 8px 16px !important;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1) !important;
  box-shadow: 0 4px 16px rgba(99, 102, 241, 0.35) !important;
}

.btn-nexus-install:hover {
  transform: translateY(-2px) !important;
  box-shadow: 0 6px 22px rgba(99, 102, 241, 0.5) !important;
}

/* ========================================================================== */
/* 32. NEXUS MODERN PROFILE DROPDOWN MENU                                     */
/* ========================================================================== */

.nexus-user-dropdown,
.footer-bottom-bar .nexus-user-dropdown {
  min-width: 275px !important;
  max-width: 480px !important;
  max-height: calc(100vh - 90px) !important;
  overflow-y: auto !important;
  -webkit-overflow-scrolling: touch !important;
  padding: 12px 10px !important;
  border-radius: 20px !important;
  background: #0f172a !important;
  background: rgba(15, 23, 42, 0.98) !important;
  backdrop-filter: blur(24px) saturate(180%) !important;
  -webkit-backdrop-filter: blur(24px) saturate(180%) !important;
  border: 1px solid rgba(255, 255, 255, 0.12) !important;
  box-shadow: 0 20px 50px -10px rgba(0, 0, 0, 0.7), 0 0 0 1px rgba(255, 255, 255, 0.08) !important;
  margin: 0 auto !important;
  margin-top: 10px !important;
  display: none !important;
  z-index: 1060 !important;
}

.nexus-user-dropdown.show,
.footer-bottom-bar .nexus-user-dropdown.show,
.link.show > .nexus-user-dropdown,
.dropdown.show > .nexus-user-dropdown,
.show > .nexus-user-dropdown {
  display: flex !important;
  flex-direction: column !important;
  gap: 8px !important;
  animation: nexusDropdownFadeIn 0.2s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

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

body:not(.night-mode) .nexus-user-dropdown,
body:not(.night-mode) .footer-bottom-bar .nexus-user-dropdown {
  background: #ffffff !important;
  background: rgba(255, 255, 255, 0.98) !important;
  border-color: rgba(226, 232, 240, 0.95) !important;
  box-shadow: 0 16px 36px -6px rgba(0, 0, 0, 0.16), 0 0 0 1px rgba(0, 0, 0, 0.04) !important;
}

/* Individual Option Card with Border */
.nexus-user-dropdown .dropdown-item,
.nexus-user-dropdown a.dropdown-item,
.nexus-user-dropdown div.dropdown-item,
.footer-bottom-bar .nexus-user-dropdown .dropdown-item,
.footer-bottom-bar .nexus-user-dropdown a.dropdown-item,
.footer-bottom-bar .nexus-user-dropdown div.dropdown-item {
  display: flex !important;
  flex-direction: row !important;
  align-items: center !important;
  justify-content: flex-start !important;
  height: 50px !important;
  min-height: 50px !important;
  max-height: 50px !important;
  padding: 0 14px !important;
  margin: 0 !important;
  margin-bottom: 0 !important;
  border-radius: 14px !important;
  border: 1px solid rgba(255, 255, 255, 0.09) !important;
  background: rgba(30, 41, 59, 0.6) !important;
  color: var(--nexus-text-primary, #e2e8f0) !important;
  font-size: 0.88rem !important;
  font-weight: 500 !important;
  text-decoration: none !important;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1) !important;
  cursor: pointer !important;
  width: 100% !important;
  top: 0 !important;
  box-shadow: none !important;
  text-align: left !important;
  box-sizing: border-box !important;
  flex-shrink: 0 !important;
}

body:not(.night-mode) .nexus-user-dropdown .dropdown-item,
body:not(.night-mode) .nexus-user-dropdown a.dropdown-item,
body:not(.night-mode) .nexus-user-dropdown div.dropdown-item,
body:not(.night-mode) .footer-bottom-bar .nexus-user-dropdown .dropdown-item,
body:not(.night-mode) .footer-bottom-bar .nexus-user-dropdown a.dropdown-item,
body:not(.night-mode) .footer-bottom-bar .nexus-user-dropdown div.dropdown-item {
  border: 1px solid rgba(226, 232, 240, 0.9) !important;
  background: #f8fafc !important;
  color: #1e293b !important;
}

/* Hide desktop-only shortcuts on mobile */
.nexus-user-dropdown .dropdown-item.d-none,
.footer-bottom-bar .nexus-user-dropdown .dropdown-item.d-none {
  display: none !important;
}

@media (max-width: 991px) {
  .nexus-user-dropdown .dropdown-item.d-lg-flex,
  .footer-bottom-bar .nexus-user-dropdown .dropdown-item.d-lg-flex {
    display: none !important;
  }
}

/* Option Hover States */
.nexus-user-dropdown .dropdown-item:hover,
.nexus-user-dropdown .dropdown-item:focus,
.footer-bottom-bar .nexus-user-dropdown .dropdown-item:hover,
.footer-bottom-bar .nexus-user-dropdown .dropdown-item:focus {
  border-color: rgba(99, 102, 241, 0.45) !important;
  background: rgba(99, 102, 241, 0.12) !important;
  color: #818cf8 !important;
  transform: translateX(4px) !important;
  box-shadow: 0 4px 14px rgba(99, 102, 241, 0.15) !important;
}

body:not(.night-mode) .nexus-user-dropdown .dropdown-item:hover,
body:not(.night-mode) .nexus-user-dropdown .dropdown-item:focus,
body:not(.night-mode) .footer-bottom-bar .nexus-user-dropdown .dropdown-item:hover,
body:not(.night-mode) .footer-bottom-bar .nexus-user-dropdown .dropdown-item:focus {
  background: rgba(99, 102, 241, 0.08) !important;
  border-color: rgba(99, 102, 241, 0.35) !important;
  color: #4f46e5 !important;
}

/* 32.1 Profile Card (Top Option) */
.nexus-user-dropdown .nexus-user-card,
.nexus-user-dropdown a.nexus-user-card,
.footer-bottom-bar .nexus-user-dropdown .nexus-user-card,
.footer-bottom-bar .nexus-user-dropdown a.nexus-user-card {
  display: flex !important;
  flex-direction: row !important;
  align-items: center !important;
  justify-content: flex-start !important;
  padding: 0 14px !important;
  border: 1px solid rgba(99, 102, 241, 0.3) !important;
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.12) 0%, rgba(168, 85, 247, 0.06) 100%) !important;
  margin: 0 !important;
  margin-bottom: 0 !important;
  width: 100% !important;
  height: 60px !important;
  min-height: 60px !important;
  max-height: 60px !important;
  border-radius: 16px !important;
  text-align: left !important;
  box-sizing: border-box !important;
  flex-shrink: 0 !important;
}

body:not(.night-mode) .nexus-user-dropdown .nexus-user-card,
body:not(.night-mode) .nexus-user-dropdown a.nexus-user-card,
body:not(.night-mode) .footer-bottom-bar .nexus-user-dropdown .nexus-user-card,
body:not(.night-mode) .footer-bottom-bar .nexus-user-dropdown a.nexus-user-card {
  border-color: rgba(99, 102, 241, 0.25) !important;
  background: linear-gradient(135deg, rgba(238, 242, 255, 0.9) 0%, rgba(243, 232, 255, 0.6) 100%) !important;
}

.nexus-user-dropdown .nexus-user-card .user-avatar {
  width: 40px !important;
  height: 40px !important;
  border-radius: 50% !important;
  object-fit: cover !important;
  border: 2px solid #6366f1 !important;
  box-shadow: 0 2px 8px rgba(99, 102, 241, 0.3) !important;
  margin-right: 12px !important;
  margin-bottom: 0 !important;
  flex-shrink: 0 !important;
}

.nexus-user-dropdown .nexus-user-card .user-info {
  flex: 1 !important;
  min-width: 0 !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: flex-start !important;
  text-align: left !important;
}

.nexus-user-dropdown .nexus-user-card .user-name {
  font-weight: 700 !important;
  font-size: 0.94rem !important;
  color: var(--nexus-text-primary, #f8fafc) !important;
  line-height: 1.2 !important;
  margin: 0 !important;
}

body:not(.night-mode) .nexus-user-dropdown .nexus-user-card .user-name {
  color: #0f172a !important;
}

.nexus-user-dropdown .nexus-user-card .user-handle {
  font-size: 0.76rem !important;
  color: #94a3b8 !important;
  margin: 0 !important;
}

.nexus-user-dropdown .nexus-user-card .user-chevron {
  color: #818cf8 !important;
  font-size: 0.82rem !important;
  margin-left: auto !important;
  transition: transform 0.2s ease !important;
  flex-shrink: 0 !important;
}

.nexus-user-dropdown .nexus-user-card:hover .user-chevron {
  transform: translateX(3px) !important;
}

/* 32.2 Icon Wrappers */
.nexus-user-dropdown .nexus-item-icon {
  width: 32px !important;
  height: 32px !important;
  border-radius: 8px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  margin-right: 12px !important;
  margin-bottom: 0 !important;
  flex-shrink: 0 !important;
  transition: transform 0.2s ease !important;
}

.nexus-user-dropdown .nexus-item-icon .main-icon,
.nexus-user-dropdown .nexus-item-icon svg {
  width: 18px !important;
  height: 18px !important;
}

.nexus-user-dropdown .dropdown-item:hover .nexus-item-icon {
  transform: scale(1.1) !important;
}

.nexus-user-dropdown .nexus-item-text {
  font-weight: 550 !important;
  font-size: 0.88rem !important;
  letter-spacing: -0.1px !important;
  display: inline-block !important;
  margin: 0 !important;
  text-align: left !important;
  white-space: nowrap !important;
}

/* Badges aligned to right */
.nexus-user-dropdown .badge,
.nexus-user-dropdown .nexus-menu-badge,
.footer-bottom-bar .nexus-user-dropdown .badge,
.footer-bottom-bar .nexus-user-dropdown .nexus-menu-badge {
  margin-left: auto !important;
  flex-shrink: 0 !important;
}

/* 32.3 Special Items */
.nexus-user-dropdown .nexus-item-pro {
  border-color: rgba(245, 158, 11, 0.25) !important;
  background: rgba(245, 158, 11, 0.05) !important;
}

.nexus-user-dropdown .nexus-item-pro:hover {
  border-color: rgba(245, 158, 11, 0.55) !important;
  background: rgba(245, 158, 11, 0.12) !important;
  color: #f59e0b !important;
  box-shadow: 0 4px 14px rgba(245, 158, 11, 0.2) !important;
}

.nexus-user-dropdown .nexus-item-admin {
  border-color: rgba(99, 102, 241, 0.3) !important;
}

.nexus-user-dropdown .nexus-item-signout:hover {
  border-color: rgba(244, 63, 94, 0.45) !important;
  background: rgba(244, 63, 94, 0.12) !important;
  color: #f43f5e !important;
  box-shadow: 0 4px 14px rgba(244, 63, 94, 0.15) !important;
}

.nexus-user-dropdown .nexus-item-signout:hover .nexus-item-icon {
  background: rgba(244, 63, 94, 0.25) !important;
  color: #f43f5e !important;
}

.nexus-user-dropdown .nexus-menu-badge {
  background: rgba(99, 102, 241, 0.18) !important;
  color: #818cf8 !important;
  border: 1px solid rgba(99, 102, 241, 0.3) !important;
  font-size: 0.74rem !important;
  font-weight: 700 !important;
  padding: 3px 9px !important;
}

body:not(.night-mode) .nexus-user-dropdown .nexus-menu-badge {
  background: rgba(99, 102, 241, 0.1) !important;
  color: #4f46e5 !important;
  border-color: rgba(99, 102, 241, 0.25) !important;
}

/* ========================================================================== */
/* 33. NEXUS MODERN NOTIFICATIONS & DROPDOWN WIDGETS                          */
/* ========================================================================== */

/* Dropdown Widget Container */
.nexus-dropdown-widget,
.dropdown-widget {
  min-width: 330px !important;
  max-width: calc(100vw - 20px) !important;
  max-height: calc(100vh - 90px) !important;
  overflow-y: auto !important;
  -webkit-overflow-scrolling: touch !important;
  padding: 12px 10px !important;
  border-radius: 20px !important;
  background: #0f172a !important;
  background: rgba(15, 23, 42, 0.98) !important;
  backdrop-filter: blur(24px) saturate(180%) !important;
  -webkit-backdrop-filter: blur(24px) saturate(180%) !important;
  border: 1px solid rgba(255, 255, 255, 0.12) !important;
  box-shadow: 0 20px 50px -10px rgba(0, 0, 0, 0.7), 0 0 0 1px rgba(255, 255, 255, 0.08) !important;
  margin-top: 10px !important;
  z-index: 1060 !important;
  animation: nexusDropdownFadeIn 0.2s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

body:not(.night-mode) .nexus-dropdown-widget,
body:not(.night-mode) .dropdown-widget {
  background: #ffffff !important;
  background: rgba(255, 255, 255, 0.98) !important;
  border-color: rgba(226, 232, 240, 0.95) !important;
  box-shadow: 0 16px 36px -6px rgba(0, 0, 0, 0.16), 0 0 0 1px rgba(0, 0, 0, 0.04) !important;
}

/* Header */
.dropdown-widget .dropdown-widget-header {
  padding: 4px 6px 10px 6px !important;
  background: transparent !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08) !important;
  margin-bottom: 8px !important;
  color: var(--nexus-text-primary, #f8fafc) !important;
}

body:not(.night-mode) .dropdown-widget .dropdown-widget-header {
  border-bottom-color: rgba(226, 232, 240, 0.9) !important;
  color: #0f172a !important;
}

.dropdown-widget .dropdown-widget-header .title {
  font-size: 0.95rem !important;
  font-weight: 700 !important;
  letter-spacing: -0.2px !important;
}

/* Sound Toggle Switch */
.dropdown-widget .switch.sm {
  width: 32px !important;
  height: 18px !important;
}

.dropdown-widget .switch.sm .slider:before {
  height: 14px !important;
  width: 14px !important;
  left: 2px !important;
  bottom: 2px !important;
}

.dropdown-widget .switch.sm input:checked + .slider:before {
  transform: translateX(14px) !important;
}

.nexus-sound-label {
  font-size: 0.76rem !important;
  font-weight: 600 !important;
}

/* Notification Items as Individual Bordered Cards */
.dropdown-widget-body .feeds-item {
  display: block !important;
  margin: 0 0 6px 0 !important;
  padding: 0 !important;
  border: none !important;
  background: transparent !important;
  border-radius: 14px !important;
}

.dropdown-widget-body .feeds-item:last-child {
  margin-bottom: 0 !important;
}

.dropdown-widget-body .feeds-item .data-container {
  display: flex !important;
  flex-direction: row !important;
  align-items: flex-start !important;
  gap: 12px !important;
  padding: 10px 12px !important;
  border-radius: 14px !important;
  border: 1px solid rgba(255, 255, 255, 0.09) !important;
  background: rgba(30, 41, 59, 0.6) !important;
  color: var(--nexus-text-primary, #e2e8f0) !important;
  text-decoration: none !important;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1) !important;
  position: relative !important;
  box-sizing: border-box !important;
}

body:not(.night-mode) .dropdown-widget-body .feeds-item .data-container {
  border-color: rgba(226, 232, 240, 0.9) !important;
  background: #f8fafc !important;
  color: #1e293b !important;
}

/* Unread Notification State */
.dropdown-widget-body .feeds-item.unread .data-container {
  background: rgba(99, 102, 241, 0.08) !important;
  border-color: rgba(99, 102, 241, 0.35) !important;
}

body:not(.night-mode) .dropdown-widget-body .feeds-item.unread .data-container {
  background: rgba(238, 242, 255, 0.9) !important;
  border-color: rgba(99, 102, 241, 0.35) !important;
}

/* Hover State */
.dropdown-widget-body .feeds-item:hover .data-container {
  border-color: rgba(99, 102, 241, 0.5) !important;
  background: rgba(99, 102, 241, 0.14) !important;
  transform: translateX(4px) !important;
  box-shadow: 0 4px 16px rgba(99, 102, 241, 0.18) !important;
}

body:not(.night-mode) .dropdown-widget-body .feeds-item:hover .data-container {
  background: rgba(99, 102, 241, 0.08) !important;
  border-color: rgba(99, 102, 241, 0.45) !important;
  color: #4338ca !important;
}

/* Notification Avatar */
.dropdown-widget-body .feeds-item .data-avatar {
  flex-shrink: 0 !important;
  width: 38px !important;
  height: 38px !important;
  float: none !important;
}

.dropdown-widget-body .feeds-item .data-avatar img,
.dropdown-widget-body .feeds-item .avatar-img {
  width: 38px !important;
  height: 38px !important;
  max-width: 38px !important;
  max-height: 38px !important;
  border-radius: 50% !important;
  object-fit: cover !important;
  display: block !important;
  border: 2px solid rgba(99, 102, 241, 0.35) !important;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2) !important;
  transition: transform 0.2s ease !important;
}

.dropdown-widget-body .feeds-item:hover .avatar-img {
  transform: scale(1.08) !important;
  border-color: #6366f1 !important;
}

/* Notification Content */
.dropdown-widget-body .feeds-item .data-content {
  flex: 1 1 auto !important;
  min-width: 0 !important;
  font-size: 0.84rem !important;
  line-height: 1.4 !important;
  padding: 0 !important;
}

.dropdown-widget-body .feeds-item .data-name-row {
  margin-bottom: 2px !important;
  display: flex !important;
  align-items: center !important;
  gap: 4px !important;
}

.dropdown-widget-body .feeds-item .name {
  font-weight: 700 !important;
  font-size: 0.88rem !important;
  color: var(--nexus-text-primary, #f8fafc) !important;
}

body:not(.night-mode) .dropdown-widget-body .feeds-item .name {
  color: #0f172a !important;
}

.dropdown-widget-body .feeds-item .data-message {
  color: var(--nexus-text-secondary, #94a3b8) !important;
  font-size: 0.82rem !important;
  word-break: break-word !important;
  overflow-wrap: break-word !important;
}

body:not(.night-mode) .dropdown-widget-body .feeds-item .data-message {
  color: #475569 !important;
}

.dropdown-widget-body .feeds-item .time {
  font-size: 0.72rem !important;
  color: #818cf8 !important;
  font-weight: 500 !important;
  margin-top: 4px !important;
}

.dropdown-widget-body .feeds-item .unread-dot {
  position: absolute !important;
  right: 10px !important;
  top: 14px !important;
  width: 8px !important;
  height: 8px !important;
  background: #6366f1 !important;
  border-radius: 50% !important;
  box-shadow: 0 0 8px #6366f1 !important;
}

/* Footer "See All" Button */
.dropdown-widget .dropdown-widget-footer,
.dropdown-widget .btn-nexus-see-all {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  padding: 9px 16px !important;
  margin-top: 8px !important;
  border-radius: 12px !important;
  font-weight: 700 !important;
  font-size: 0.85rem !important;
  border: 1px solid rgba(99, 102, 241, 0.3) !important;
  background: rgba(99, 102, 241, 0.1) !important;
  color: #818cf8 !important;
  text-decoration: none !important;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

body:not(.night-mode) .dropdown-widget .dropdown-widget-footer,
body:not(.night-mode) .dropdown-widget .btn-nexus-see-all {
  background: rgba(99, 102, 241, 0.08) !important;
  border-color: rgba(99, 102, 241, 0.25) !important;
  color: #4f46e5 !important;
}

.dropdown-widget .dropdown-widget-footer:hover,
.dropdown-widget .btn-nexus-see-all:hover {
  background: rgba(99, 102, 241, 0.2) !important;
  color: #a5b4fc !important;
  border-color: rgba(99, 102, 241, 0.55) !important;
  transform: translateY(-1px) !important;
  box-shadow: 0 4px 14px rgba(99, 102, 241, 0.25) !important;
}

body:not(.night-mode) .dropdown-widget .dropdown-widget-footer:hover,
body:not(.night-mode) .dropdown-widget .btn-nexus-see-all:hover {
  background: #4f46e5 !important;
  color: #ffffff !important;
}

/* ========================================================================== */
/* 34. NEXUS MODERN CREATE QUICK ACTION DROPDOWN                              */
/* ========================================================================== */

/* Plus Toggle Button */
.nexus-create-toggle {
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1) !important;
  background: rgba(255, 255, 255, 0.05) !important;
  border: 1px solid rgba(255, 255, 255, 0.12) !important;
}

.nexus-create-toggle:hover,
.dropdown.show .nexus-create-toggle {
  background: rgba(99, 102, 241, 0.18) !important;
  border-color: rgba(99, 102, 241, 0.5) !important;
  transform: scale(1.05) rotate(90deg) !important;
  box-shadow: 0 0 16px rgba(99, 102, 241, 0.4) !important;
}

body:not(.night-mode) .nexus-create-toggle {
  background: rgba(0, 0, 0, 0.04) !important;
  border-color: rgba(0, 0, 0, 0.08) !important;
}

body:not(.night-mode) .nexus-create-toggle:hover,
body:not(.night-mode) .dropdown.show .nexus-create-toggle {
  background: rgba(99, 102, 241, 0.12) !important;
  border-color: rgba(99, 102, 241, 0.4) !important;
}

/* Dropdown Container */
.nexus-create-dropdown {
  min-width: 250px !important;
  max-width: calc(100vw - 20px) !important;
  max-height: calc(100vh - 90px) !important;
  overflow-y: auto !important;
  -webkit-overflow-scrolling: touch !important;
  padding: 10px !important;
  border-radius: 20px !important;
  background: #0f172a !important;
  background: rgba(15, 23, 42, 0.98) !important;
  backdrop-filter: blur(24px) saturate(180%) !important;
  -webkit-backdrop-filter: blur(24px) saturate(180%) !important;
  border: 1px solid rgba(255, 255, 255, 0.12) !important;
  box-shadow: 0 20px 50px -10px rgba(0, 0, 0, 0.7), 0 0 0 1px rgba(255, 255, 255, 0.08) !important;
  margin-top: 10px !important;
  z-index: 1060 !important;
  animation: nexusDropdownFadeIn 0.2s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

body:not(.night-mode) .nexus-create-dropdown {
  background: #ffffff !important;
  background: rgba(255, 255, 255, 0.98) !important;
  border-color: rgba(226, 232, 240, 0.95) !important;
  box-shadow: 0 16px 36px -6px rgba(0, 0, 0, 0.16), 0 0 0 1px rgba(0, 0, 0, 0.04) !important;
}

/* Header */
.nexus-create-header {
  padding: 4px 8px 8px 8px !important;
  margin-bottom: 6px !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08) !important;
}

body:not(.night-mode) .nexus-create-header {
  border-bottom-color: rgba(226, 232, 240, 0.9) !important;
}

.nexus-create-title {
  font-size: 0.76rem !important;
  font-weight: 700 !important;
  text-transform: uppercase !important;
  letter-spacing: 0.6px !important;
  color: var(--nexus-text-muted, #94a3b8) !important;
  display: flex !important;
  align-items: center !important;
  gap: 6px !important;
}

body:not(.night-mode) .nexus-create-title {
  color: #64748b !important;
}

/* Individual Option Cards with Border */
.nexus-create-dropdown .dropdown-item {
  display: flex !important;
  align-items: center !important;
  padding: 8px 12px !important;
  margin-bottom: 5px !important;
  border-radius: 12px !important;
  border: 1px solid rgba(255, 255, 255, 0.08) !important;
  background: rgba(30, 41, 59, 0.6) !important;
  color: var(--nexus-text-primary, #e2e8f0) !important;
  font-size: 0.88rem !important;
  font-weight: 500 !important;
  text-decoration: none !important;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1) !important;
  cursor: pointer !important;
  box-sizing: border-box !important;
}

body:not(.night-mode) .nexus-create-dropdown .dropdown-item {
  border: 1px solid rgba(226, 232, 240, 0.9) !important;
  background: #f8fafc !important;
  color: #1e293b !important;
}

/* Custom Scrollbars for Modern Dropdowns */
.nexus-user-dropdown::-webkit-scrollbar,
.nexus-create-dropdown::-webkit-scrollbar,
.nexus-dropdown-widget::-webkit-scrollbar,
.dropdown-widget::-webkit-scrollbar {
  width: 5px !important;
}

.nexus-user-dropdown::-webkit-scrollbar-track,
.nexus-create-dropdown::-webkit-scrollbar-track,
.nexus-dropdown-widget::-webkit-scrollbar-track,
.dropdown-widget::-webkit-scrollbar-track {
  background: transparent !important;
}

.nexus-user-dropdown::-webkit-scrollbar-thumb,
.nexus-create-dropdown::-webkit-scrollbar-thumb,
.nexus-dropdown-widget::-webkit-scrollbar-thumb,
.dropdown-widget::-webkit-scrollbar-thumb {
  background: rgba(99, 102, 241, 0.4) !important;
  border-radius: 10px !important;
}

.nexus-create-dropdown .dropdown-item:last-child {
  margin-bottom: 0 !important;
}

/* Option Hover States */
.nexus-create-dropdown .dropdown-item:hover,
.nexus-create-dropdown .dropdown-item:focus {
  border-color: rgba(99, 102, 241, 0.45) !important;
  background: rgba(99, 102, 241, 0.12) !important;
  color: #818cf8 !important;
  transform: translateX(4px) !important;
  box-shadow: 0 4px 14px rgba(99, 102, 241, 0.15) !important;
}

body:not(.night-mode) .nexus-create-dropdown .dropdown-item:hover,
body:not(.night-mode) .nexus-create-dropdown .dropdown-item:focus {
  background: rgba(99, 102, 241, 0.08) !important;
  border-color: rgba(99, 102, 241, 0.35) !important;
  color: #4f46e5 !important;
}

/* Icon Containers */
.nexus-create-dropdown .nexus-item-icon {
  width: 32px !important;
  height: 32px !important;
  min-width: 32px !important;
  border-radius: 9px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  margin-right: 12px !important;
  flex-shrink: 0 !important;
  transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

.nexus-create-dropdown .nexus-item-icon .svg-container {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  line-height: 0 !important;
}

.nexus-create-dropdown .dropdown-item:hover .nexus-item-icon {
  transform: scale(1.1) !important;
}

.nexus-create-dropdown .nexus-item-text {
  font-weight: 550 !important;
  font-size: 0.88rem !important;
  letter-spacing: -0.1px !important;
}

/* Soft Color Palette for Badges & Icons */
.bg-indigo-soft { background: rgba(99, 102, 241, 0.15) !important; color: #818cf8 !important; }
.bg-rose-soft { background: rgba(244, 63, 94, 0.15) !important; color: #fb7185 !important; }
.bg-purple-soft { background: rgba(168, 85, 247, 0.15) !important; color: #c084fc !important; }
.bg-amber-soft { background: rgba(245, 158, 11, 0.15) !important; color: #fbbf24 !important; }
.bg-emerald-soft { background: rgba(16, 185, 129, 0.15) !important; color: #34d399 !important; }
.bg-teal-soft { background: rgba(20, 184, 166, 0.15) !important; color: #2dd4bf !important; }
.bg-blue-soft { background: rgba(59, 130, 246, 0.15) !important; color: #60a5fa !important; }
.bg-sky-soft { background: rgba(14, 165, 233, 0.15) !important; color: #38bdf8 !important; }
.bg-violet-soft { background: rgba(139, 92, 246, 0.15) !important; color: #a78bfa !important; }
.bg-orange-soft { background: rgba(249, 115, 22, 0.15) !important; color: #fb923c !important; }
.bg-cyan-soft { background: rgba(6, 182, 212, 0.15) !important; color: #22d3ee !important; }

body:not(.night-mode) .bg-indigo-soft { background: rgba(99, 102, 241, 0.1) !important; color: #4f46e5 !important; }
body:not(.night-mode) .bg-rose-soft { background: rgba(244, 63, 94, 0.1) !important; color: #e11d48 !important; }
body:not(.night-mode) .bg-purple-soft { background: rgba(168, 85, 247, 0.1) !important; color: #9333ea !important; }
body:not(.night-mode) .bg-amber-soft { background: rgba(245, 158, 11, 0.12) !important; color: #d97706 !important; }
body:not(.night-mode) .bg-emerald-soft { background: rgba(16, 185, 129, 0.1) !important; color: #059669 !important; }
body:not(.night-mode) .bg-teal-soft { background: rgba(20, 184, 166, 0.1) !important; color: #0d9488 !important; }
body:not(.night-mode) .bg-blue-soft { background: rgba(59, 130, 246, 0.1) !important; color: #2563eb !important; }
body:not(.night-mode) .bg-sky-soft { background: rgba(14, 165, 233, 0.1) !important; color: #0284c7 !important; }
body:not(.night-mode) .bg-violet-soft { background: rgba(139, 92, 246, 0.1) !important; color: #7c3aed !important; }
body:not(.night-mode) .bg-orange-soft { background: rgba(249, 115, 22, 0.1) !important; color: #ea580c !important; }
body:not(.night-mode) .bg-cyan-soft { background: rgba(6, 182, 212, 0.1) !important; color: #0891b2 !important; }

/* ========================================================================== */
/* 35. NEXUS MODERN LATEST BLOGS CAROUSEL WIDGET                              */
/* ========================================================================== */

.nexus-blogs-card {
  border-radius: 20px !important;
  background: var(--nexus-surface, #0f172a) !important;
  border: 1px solid var(--nexus-border, rgba(255, 255, 255, 0.08)) !important;
  box-shadow: 0 10px 30px -5px rgba(0, 0, 0, 0.3) !important;
  overflow: hidden !important;
  padding: 14px 14px 12px 14px !important;
  margin-bottom: 20px !important;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

body:not(.night-mode) .nexus-blogs-card {
  background: #ffffff !important;
  border-color: rgba(226, 232, 240, 0.9) !important;
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.06) !important;
}

/* Header: Single Line Layout */
.nexus-blogs-header {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  margin-bottom: 12px !important;
  padding: 0 2px !important;
  white-space: nowrap !important;
  gap: 8px !important;
}

.nexus-blogs-title {
  display: flex !important;
  align-items: center !important;
  gap: 8px !important;
  font-size: 0.92rem !important;
  font-weight: 700 !important;
  letter-spacing: -0.2px !important;
  color: var(--nexus-text-primary, #f8fafc) !important;
  white-space: nowrap !important;
  margin: 0 !important;
  flex-shrink: 0 !important;
}

body:not(.night-mode) .nexus-blogs-title {
  color: #0f172a !important;
}

.nexus-blogs-icon-wrap {
  width: 26px !important;
  height: 26px !important;
  border-radius: 7px !important;
  background: rgba(99, 102, 241, 0.15) !important;
  color: #818cf8 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  font-size: 0.8rem !important;
  flex-shrink: 0 !important;
}

body:not(.night-mode) .nexus-blogs-icon-wrap {
  background: rgba(99, 102, 241, 0.1) !important;
  color: #4f46e5 !important;
}

.nexus-see-all-pill {
  display: inline-flex !important;
  align-items: center !important;
  gap: 4px !important;
  font-size: 0.74rem !important;
  font-weight: 600 !important;
  color: #818cf8 !important;
  text-decoration: none !important;
  padding: 3px 9px !important;
  border-radius: 20px !important;
  background: rgba(99, 102, 241, 0.1) !important;
  border: 1px solid rgba(99, 102, 241, 0.2) !important;
  white-space: nowrap !important;
  flex-shrink: 0 !important;
  transition: all 0.2s ease !important;
}

body:not(.night-mode) .nexus-see-all-pill {
  background: rgba(99, 102, 241, 0.08) !important;
  border-color: rgba(99, 102, 241, 0.25) !important;
  color: #4f46e5 !important;
}

.nexus-see-all-pill:hover {
  background: rgba(99, 102, 241, 0.2) !important;
  color: #a5b4fc !important;
  border-color: rgba(99, 102, 241, 0.45) !important;
  transform: translateX(2px) !important;
}

body:not(.night-mode) .nexus-see-all-pill:hover {
  background: #4f46e5 !important;
  color: #ffffff !important;
}

/* Blog Item */
.nexus-blog-item {
  display: flex !important;
  flex-direction: column !important;
}

/* Cover Image */
.nexus-blog-cover-wrapper {
  position: relative !important;
  border-radius: 14px !important;
  overflow: hidden !important;
  aspect-ratio: 16 / 9 !important;
  background: #1e293b !important;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2) !important;
}

.nexus-blog-cover-link {
  display: block !important;
  width: 100% !important;
  height: 100% !important;
  position: relative !important;
  overflow: hidden !important;
}

.nexus-blog-cover {
  width: 100% !important;
  height: 100% !important;
  background-size: cover !important;
  background-position: center center !important;
  background-repeat: no-repeat !important;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

.nexus-blog-cover-link:hover .nexus-blog-cover {
  transform: scale(1.05) !important;
}

.nexus-blog-cover-overlay {
  position: absolute !important;
  inset: 0 !important;
  background: linear-gradient(to top, rgba(15, 23, 42, 0.4) 0%, transparent 50%) !important;
  pointer-events: none !important;
}

/* Hover Navigation Buttons on Image */
.nexus-cover-nav-btn {
  position: absolute !important;
  top: 50% !important;
  transform: translateY(-50%) !important;
  width: 28px !important;
  height: 28px !important;
  border-radius: 50% !important;
  border: 1px solid rgba(255, 255, 255, 0.2) !important;
  background: rgba(15, 23, 42, 0.7) !important;
  backdrop-filter: blur(8px) !important;
  -webkit-backdrop-filter: blur(8px) !important;
  color: #ffffff !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  font-size: 11px !important;
  opacity: 0 !important;
  cursor: pointer !important;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1) !important;
  z-index: 5 !important;
  padding: 0 !important;
}

.nexus-blog-cover-wrapper:hover .nexus-cover-nav-btn {
  opacity: 0.9 !important;
}

.nexus-cover-nav-btn:hover {
  opacity: 1 !important;
  background: #6366f1 !important;
  border-color: #818cf8 !important;
  transform: translateY(-50%) scale(1.12) !important;
  box-shadow: 0 0 10px rgba(99, 102, 241, 0.5) !important;
}

.nexus-cover-nav-btn.prev {
  left: 8px !important;
}

.nexus-cover-nav-btn.next {
  right: 8px !important;
}

/* Title: Clean & Modern */
.nexus-blog-title {
  margin: 10px 0 2px 0 !important;
  font-size: 0.96rem !important;
  font-weight: 700 !important;
  line-height: 1.35 !important;
  letter-spacing: -0.2px !important;
}

.nexus-blog-title a {
  color: var(--nexus-text-primary, #f8fafc) !important;
  text-decoration: none !important;
  display: -webkit-box !important;
  -webkit-line-clamp: 2 !important;
  -webkit-box-orient: vertical !important;
  overflow: hidden !important;
  transition: color 0.2s ease !important;
}

body:not(.night-mode) .nexus-blog-title a {
  color: #0f172a !important;
}

.nexus-blog-title a:hover {
  color: #818cf8 !important;
}

body:not(.night-mode) .nexus-blog-title a:hover {
  color: #4f46e5 !important;
}

/* Carousel Indicators / Dots */
.nexus-carousel-dots {
  position: static !important;
  margin: 8px 0 0 0 !important;
  display: flex !important;
  justify-content: center !important;
  align-items: center !important;
  gap: 5px !important;
}

.nexus-carousel-dots button {
  width: 5px !important;
  height: 5px !important;
  border-radius: 50% !important;
  border: none !important;
  background: rgba(255, 255, 255, 0.25) !important;
  opacity: 1 !important;
  padding: 0 !important;
  transition: all 0.3s ease !important;
  box-sizing: content-box !important;
}

body:not(.night-mode) .nexus-carousel-dots button {
  background: rgba(0, 0, 0, 0.2) !important;
}

.nexus-carousel-dots button.active {
  width: 16px !important;
  border-radius: 5px !important;
  background: #6366f1 !important;
  box-shadow: 0 0 8px rgba(99, 102, 241, 0.5) !important;
}

/* ========================================================================== */
/* 33. NEXUS MODERN PROFILE REDESIGN (CONCEPT V1)                              */
/* ========================================================================== */

/* Profile Header Wrapper */
.nexus-profile-header {
  position: relative !important;
  background: transparent !important;
  border-radius: 24px !important;
  margin-bottom: 20px !important;
  border: none !important;
}

/* 33.1 Cover Layout */
.nexus-profile-cover {
  position: relative !important;
  width: 100% !important;
  height: 220px !important;
  border-radius: 24px !important;
  overflow: hidden !important;
  background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%) !important;
  box-shadow: 0 10px 30px -5px rgba(0, 0, 0, 0.3) !important;
}

body:not(.night-mode) .nexus-profile-cover {
  background: linear-gradient(135deg, #e2e8f0 0%, #cbd5e1 100%) !important;
  box-shadow: 0 10px 30px -5px rgba(0, 0, 0, 0.08) !important;
}

@media (min-width: 576px) {
  .nexus-profile-cover {
    height: 280px !important;
  }
}

@media (min-width: 768px) {
  .nexus-profile-cover {
    height: 340px !important;
  }
}

@media (min-width: 992px) {
  .nexus-profile-cover {
    height: 380px !important;
  }
}

.nexus-profile-cover img.js_position-cover-cropped {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  display: block !important;
}

/* Edit Cover Glass Button (Image 2 Style) */
.nexus-edit-cover-btn-wrapper {
  position: absolute !important;
  bottom: 16px !important;
  right: 16px !important;
  top: auto !important;
  left: auto !important;
  z-index: 20 !important;
  opacity: 1 !important;
}

.nexus-edit-cover-btn {
  display: inline-flex !important;
  align-items: center !important;
  gap: 8px !important;
  padding: 8px 18px !important;
  border-radius: 50px !important;
  background: rgba(15, 23, 42, 0.75) !important;
  backdrop-filter: blur(16px) saturate(180%) !important;
  -webkit-backdrop-filter: blur(16px) saturate(180%) !important;
  border: 1px solid rgba(255, 255, 255, 0.2) !important;
  color: #ffffff !important;
  font-size: 0.88rem !important;
  font-weight: 600 !important;
  cursor: pointer !important;
  transition: all 0.25s ease !important;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35) !important;
}

.nexus-edit-cover-btn:hover {
  background: rgba(15, 23, 42, 0.92) !important;
  transform: translateY(-2px) !important;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.5) !important;
  color: #ffffff !important;
}

body:not(.night-mode) .nexus-edit-cover-btn {
  background: rgba(255, 255, 255, 0.9) !important;
  border: 1px solid rgba(0, 0, 0, 0.1) !important;
  color: #1e293b !important;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.12) !important;
}

body:not(.night-mode) .nexus-edit-cover-btn:hover {
  background: #ffffff !important;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.18) !important;
  color: #0f172a !important;
}

/* 33.2 Profile Info Card */
.nexus-profile-card {
  position: relative !important;
  background: rgba(15, 23, 42, 0.95) !important;
  backdrop-filter: blur(24px) saturate(180%) !important;
  -webkit-backdrop-filter: blur(24px) saturate(180%) !important;
  border: 1px solid rgba(255, 255, 255, 0.1) !important;
  border-radius: 24px !important;
  box-shadow: 0 16px 40px -10px rgba(0, 0, 0, 0.6) !important;
  margin-top: -55px !important;
  margin-bottom: 20px !important;
  padding: 0 28px 26px 28px !important;
  z-index: 10 !important;
}

body:not(.night-mode) .nexus-profile-card {
  background: #ffffff !important;
  border: 1px solid rgba(226, 232, 240, 0.95) !important;
  box-shadow: 0 16px 36px -6px rgba(0, 0, 0, 0.07), 0 0 0 1px rgba(0, 0, 0, 0.03) !important;
}

.nexus-profile-card-inner {
  display: flex !important;
  flex-direction: row !important;
  align-items: flex-start !important;
  gap: 28px !important;
}

@media (max-width: 767px) {
  .nexus-profile-card {
    margin-top: -45px !important;
    padding: 0 18px 22px 18px !important;
    border-radius: 20px !important;
  }

  .nexus-profile-card-inner {
    flex-direction: column !important;
    align-items: center !important;
    text-align: center !important;
    gap: 14px !important;
  }
}

/* 33.3 Profile Avatar (50% Overlapping Cover) */
.nexus-profile-avatar-wrap {
  position: relative !important;
  top: auto !important;
  left: auto !important;
  transform: none !important;
  width: 148px !important;
  height: 148px !important;
  margin-top: -74px !important;
  flex-shrink: 0 !important;
  border-radius: 50% !important;
  padding: 4px !important;
  background: #0f172a !important;
  border: 4px solid #0f172a !important;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.5) !important;
}

body:not(.night-mode) .nexus-profile-avatar-wrap {
  background: #ffffff !important;
  border-color: #ffffff !important;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.15) !important;
}

@media (max-width: 767px) {
  .nexus-profile-avatar-wrap {
    width: 120px !important;
    height: 120px !important;
    margin-top: -60px !important;
    margin-left: auto !important;
    margin-right: auto !important;
  }
}

.nexus-profile-avatar-wrap img {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  border-radius: 50% !important;
  display: block !important;
}

/* Camera Badge on Avatar */
.nexus-avatar-camera-badge {
  position: absolute !important;
  bottom: 4px !important;
  right: 4px !important;
  top: auto !important;
  left: auto !important;
  width: 36px !important;
  height: 36px !important;
  border-radius: 50% !important;
  background: #ef4444 !important;
  background: var(--nexus-primary, #6366f1) !important;
  border: 2.5px solid #0f172a !important;
  color: #ffffff !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  font-size: 13px !important;
  cursor: pointer !important;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.4) !important;
  transition: transform 0.2s ease, background 0.2s ease !important;
  z-index: 10 !important;
  opacity: 1 !important;
  padding: 0 !important;
}

body:not(.night-mode) .nexus-avatar-camera-badge {
  border-color: #ffffff !important;
  box-shadow: 0 4px 12px rgba(99, 102, 241, 0.35) !important;
}

.nexus-avatar-camera-badge:hover {
  transform: scale(1.1) !important;
  color: #ffffff !important;
}

/* 33.4 Profile Details (Name, Headline, Stats, Actions) */
.nexus-profile-details {
  flex: 1 !important;
  min-width: 0 !important;
  padding-top: 18px !important;
  display: flex !important;
  flex-direction: column !important;
  gap: 8px !important;
}

@media (max-width: 767px) {
  .nexus-profile-details {
    width: 100% !important;
    padding-top: 0 !important;
    align-items: center !important;
    gap: 10px !important;
  }
}

/* Profile Name */
.nexus-profile-name-row {
  margin: 0 !important;
}

.nexus-profile-name {
  font-size: 1.65rem !important;
  font-weight: 700 !important;
  line-height: 1.25 !important;
  margin: 0 !important;
  color: #f8fafc !important;
  display: flex !important;
  align-items: center !important;
  flex-wrap: wrap !important;
  gap: 8px !important;
}

body:not(.night-mode) .nexus-profile-name {
  color: #0f172a !important;
}

.nexus-profile-name a {
  color: inherit !important;
  text-decoration: none !important;
}

@media (max-width: 767px) {
  .nexus-profile-name {
    font-size: 1.4rem !important;
    justify-content: center !important;
  }
}

.nexus-custom-group-badge {
  font-size: 12px !important;
  padding: 4px 10px !important;
  border-radius: 20px !important;
  font-weight: 600 !important;
}

/* Headline / Bio (Image 2 Style) */
.nexus-profile-headline {
  font-size: 0.92rem !important;
  color: #94a3b8 !important;
  font-weight: 400 !important;
  line-height: 1.45 !important;
  max-width: 680px !important;
}

body:not(.night-mode) .nexus-profile-headline {
  color: #64748b !important;
}

@media (max-width: 767px) {
  .nexus-profile-headline {
    font-size: 0.86rem !important;
    text-align: center !important;
  }
}

/* 33.5 Beautiful Profile Statistics (Image 2 Green Box) */
.nexus-profile-stats {
  display: flex !important;
  align-items: center !important;
  gap: 28px !important;
  margin-top: 4px !important;
  padding: 8px 0 !important;
}

@media (max-width: 767px) {
  .nexus-profile-stats {
    justify-content: center !important;
    gap: 24px !important;
    width: 100% !important;
    border-top: 1px solid rgba(255, 255, 255, 0.08) !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08) !important;
    padding: 10px 0 !important;
  }

  body:not(.night-mode) .nexus-profile-stats {
    border-top-color: rgba(226, 232, 240, 0.8) !important;
    border-bottom-color: rgba(226, 232, 240, 0.8) !important;
  }
}

.nexus-stat-item {
  display: flex !important;
  flex-direction: column !important;
  align-items: flex-start !important;
  text-decoration: none !important;
  cursor: pointer !important;
  transition: transform 0.2s ease !important;
}

@media (max-width: 767px) {
  .nexus-stat-item {
    align-items: center !important;
  }
}

.nexus-stat-item:hover {
  transform: translateY(-2px) !important;
}

.nexus-stat-number {
  font-size: 1.25rem !important;
  font-weight: 700 !important;
  color: #f8fafc !important;
  line-height: 1.2 !important;
  letter-spacing: -0.01em !important;
  transition: color 0.2s ease !important;
}

body:not(.night-mode) .nexus-stat-number {
  color: #0f172a !important;
}

.nexus-stat-item:hover .nexus-stat-number {
  color: var(--nexus-primary, #6366f1) !important;
}

.nexus-stat-label {
  font-size: 0.82rem !important;
  font-weight: 500 !important;
  color: #94a3b8 !important;
  margin-top: 2px !important;
}

body:not(.night-mode) .nexus-stat-label {
  color: #64748b !important;
}

/* 33.6 Modern Action Buttons (Image 2 Style) */
.nexus-profile-actions {
  display: flex !important;
  align-items: center !important;
  flex-wrap: wrap !important;
  gap: 10px !important;
  margin-top: 6px !important;
}

@media (max-width: 767px) {
  .nexus-profile-actions {
    justify-content: center !important;
    width: 100% !important;
    gap: 8px !important;
  }
}

.nexus-btn-action {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  height: 40px !important;
  padding: 0 20px !important;
  border-radius: 50px !important;
  font-size: 0.88rem !important;
  font-weight: 600 !important;
  text-decoration: none !important;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1) !important;
  border: none !important;
  cursor: pointer !important;
  box-sizing: border-box !important;
}

/* Primary Action Button (e.g. Add Friend / Confirm) */
.nexus-btn-primary {
  background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%) !important;
  background: var(--nexus-primary, #ef4444) !important;
  color: #ffffff !important;
  box-shadow: 0 4px 14px rgba(239, 68, 68, 0.35) !important;
}

.nexus-btn-primary:hover {
  transform: translateY(-2px) !important;
  box-shadow: 0 6px 20px rgba(239, 68, 68, 0.5) !important;
  color: #ffffff !important;
}

/* Secondary Action Button (e.g. Message, Decline, Cancel) */
.nexus-btn-secondary {
  background: rgba(255, 255, 255, 0.08) !important;
  color: #e2e8f0 !important;
  border: 1px solid rgba(255, 255, 255, 0.12) !important;
}

body:not(.night-mode) .nexus-btn-secondary {
  background: #f1f5f9 !important;
  color: #1e293b !important;
  border-color: #e2e8f0 !important;
}

.nexus-btn-secondary:hover {
  background: rgba(255, 255, 255, 0.16) !important;
  transform: translateY(-2px) !important;
  color: #ffffff !important;
}

body:not(.night-mode) .nexus-btn-secondary:hover {
  background: #e2e8f0 !important;
  color: #0f172a !important;
}

/* Friends Button (Already Friends) */
.nexus-btn-friends {
  background: rgba(16, 185, 129, 0.14) !important;
  color: #10b981 !important;
  border: 1px solid rgba(16, 185, 129, 0.3) !important;
}

.nexus-btn-friends:hover {
  background: rgba(239, 68, 68, 0.15) !important;
  color: #ef4444 !important;
  border-color: rgba(239, 68, 68, 0.3) !important;
  transform: translateY(-2px) !important;
}

/* Icon / More Options Button (...) */
.nexus-btn-icon {
  width: 40px !important;
  height: 40px !important;
  padding: 0 !important;
  border-radius: 50% !important;
  background: rgba(255, 255, 255, 0.08) !important;
  color: #e2e8f0 !important;
  border: 1px solid rgba(255, 255, 255, 0.12) !important;
}

body:not(.night-mode) .nexus-btn-icon {
  background: #f1f5f9 !important;
  color: #1e293b !important;
  border-color: #e2e8f0 !important;
}

.nexus-btn-icon:hover {
  background: rgba(255, 255, 255, 0.16) !important;
  transform: translateY(-2px) !important;
  color: #ffffff !important;
}

body:not(.night-mode) .nexus-btn-icon:hover {
  background: #e2e8f0 !important;
  color: #0f172a !important;
}

/* 33.7 Responsive Navigation Tabs (Image 2 Style) */
.nexus-profile-tabs {
  background: rgba(15, 23, 42, 0.95) !important;
  backdrop-filter: blur(24px) saturate(180%) !important;
  -webkit-backdrop-filter: blur(24px) saturate(180%) !important;
  border: 1px solid rgba(255, 255, 255, 0.1) !important;
  border-radius: 20px !important;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35) !important;
  padding: 6px 8px !important;
  margin-bottom: 24px !important;
}

body:not(.night-mode) .nexus-profile-tabs {
  background: #ffffff !important;
  border: 1px solid rgba(226, 232, 240, 0.95) !important;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.05) !important;
}

.nexus-profile-tabs-scroller {
  display: flex !important;
  align-items: center !important;
  gap: 4px !important;
  overflow-x: auto !important;
  scrollbar-width: none !important;
  -ms-overflow-style: none !important;
  -webkit-overflow-scrolling: touch !important;
  padding: 2px !important;
}

.nexus-profile-tabs-scroller::-webkit-scrollbar {
  display: none !important;
}

.nexus-profile-tabs-scroller a {
  display: inline-flex !important;
  align-items: center !important;
  gap: 8px !important;
  padding: 10px 18px !important;
  border-radius: 12px !important;
  font-size: 0.9rem !important;
  font-weight: 500 !important;
  color: #94a3b8 !important;
  text-decoration: none !important;
  white-space: nowrap !important;
  transition: all 0.2s ease !important;
  border: 1px solid transparent !important;
  flex-shrink: 0 !important;
}

body:not(.night-mode) .nexus-profile-tabs-scroller a {
  color: #64748b !important;
}

.nexus-profile-tabs-scroller a:hover {
  color: var(--nexus-primary, #6366f1) !important;
  background: rgba(255, 255, 255, 0.05) !important;
}

body:not(.night-mode) .nexus-profile-tabs-scroller a:hover {
  background: #f8fafc !important;
}

.nexus-profile-tabs-scroller a.active {
  background: rgba(239, 68, 68, 0.12) !important;
  background: var(--nexus-primary-light, rgba(99, 102, 241, 0.12)) !important;
  color: #ef4444 !important;
  color: var(--nexus-primary, #6366f1) !important;
  border: 1px solid rgba(99, 102, 241, 0.25) !important;
  font-weight: 600 !important;
  border-bottom: 1px solid rgba(99, 102, 241, 0.25) !important;
}

/* ==========================================================================
   34. MODERN CREATE POST PUBLISHER (CONCEPT V1) - THEME MATCHED
   ========================================================================== */
.publisher.nexus-publisher,
#publisher-box.nexus-publisher {
  background: #ffffff !important;
  border-radius: 20px !important;
  padding: 22px 24px !important;
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.05) !important;
  border: 1px solid rgba(226, 232, 240, 0.9) !important;
  margin-bottom: 24px !important;
  position: relative !important;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1) !important;
  overflow: hidden !important;
}

body.night-mode .publisher.nexus-publisher,
body.night-mode #publisher-box.nexus-publisher {
  background: #131b2e !important;
  border: 1px solid rgba(255, 255, 255, 0.08) !important;
  box-shadow: 0 10px 35px rgba(0, 0, 0, 0.45) !important;
}

/* Header */
.nexus-publisher-header {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  margin-bottom: 16px !important;
  padding-bottom: 2px !important;
}

.nexus-publisher-title {
  font-size: 1.15rem !important;
  font-weight: 700 !important;
  color: #0f172a !important;
  margin: 0 !important;
  letter-spacing: -0.2px !important;
}

body.night-mode .nexus-publisher-title {
  color: #f8fafc !important;
}

.nexus-publisher-header .btn-close {
  width: 32px !important;
  height: 32px !important;
  border-radius: 50% !important;
  background-color: #f1f5f9 !important;
  opacity: 0.8 !important;
  padding: 0 !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  transition: all 0.2s ease !important;
  border: none !important;
}

.nexus-publisher-header .btn-close:hover {
  background-color: #e2e8f0 !important;
  opacity: 1 !important;
  transform: rotate(90deg) !important;
}

body.night-mode .nexus-publisher-header .btn-close {
  background-color: #1e293b !important;
  filter: invert(1) grayscale(100%) brightness(200%) !important;
}

/* Message & Input area */
.nexus-publisher-message {
  display: flex !important;
  align-items: flex-start !important;
  gap: 14px !important;
  margin-bottom: 12px !important;
  padding: 0 !important;
  border: none !important;
  background: transparent !important;
  position: relative !important;
  z-index: 10 !important;
  pointer-events: auto !important;
}

.nexus-publisher-avatar-wrap {
  flex-shrink: 0 !important;
}

.nexus-publisher-avatar-wrap .publisher-avatar {
  width: 48px !important;
  height: 48px !important;
  border-radius: 50% !important;
  object-fit: cover !important;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08) !important;
  border: 2px solid #ffffff !important;
  margin: 0 !important;
}

body.night-mode .nexus-publisher-avatar-wrap .publisher-avatar {
  border-color: #1e293b !important;
}

.nexus-publisher-input-box {
  flex: 1 !important;
  position: relative !important;
  z-index: 10 !important;
  pointer-events: auto !important;
  background: #f8fafc !important;
  border: 1px solid rgba(226, 232, 240, 0.9) !important;
  border-radius: 16px !important;
  padding: 12px 16px !important;
  min-height: 85px !important;
  cursor: text !important;
  transition: all 0.2s ease !important;
}

body.night-mode .nexus-publisher-input-box {
  background: #182238 !important;
  border-color: rgba(255, 255, 255, 0.07) !important;
}

.nexus-publisher-input-box:focus-within {
  background: #ffffff !important;
  border-color: #6366f1 !important;
  box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.12) !important;
}

body.night-mode .nexus-publisher-input-box:focus-within {
  background: #141d30 !important;
  border-color: #818cf8 !important;
  box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.22) !important;
}

.nexus-publisher-input-box .quill-editor,
.nexus-publisher-input-box textarea {
  border: none !important;
  box-shadow: none !important;
  background: transparent !important;
  padding: 0 !important;
  margin: 0 !important;
  font-size: 15px !important;
  line-height: 1.55 !important;
  color: #0f172a !important;
  width: 100% !important;
  min-height: 60px !important;
  resize: none !important;
  position: relative !important;
  z-index: 11 !important;
  pointer-events: auto !important;
}

.nexus-publisher-input-box .quill-editor .ql-editor {
  min-height: 60px !important;
  padding: 0 !important;
  font-size: 15px !important;
  line-height: 1.55 !important;
  color: inherit !important;
  outline: none !important;
  position: relative !important;
  z-index: 11 !important;
  pointer-events: auto !important;
}

body.night-mode .nexus-publisher-input-box .quill-editor,
body.night-mode .nexus-publisher-input-box textarea,
body.night-mode .nexus-publisher-input-box .ql-editor {
  color: #f8fafc !important;
}

.nexus-publisher-input-box textarea::placeholder,
.nexus-publisher-input-box .ql-editor.ql-blank::before {
  color: #94a3b8 !important;
  font-style: normal !important;
  font-size: 15px !important;
  opacity: 0.9 !important;
  left: 0 !important;
  right: 0 !important;
}

body.night-mode .nexus-publisher-input-box textarea::placeholder,
body.night-mode .nexus-publisher-input-box .ql-editor.ql-blank::before {
  color: #64748b !important;
}

.nexus-input-expand-icon {
  position: absolute !important;
  top: 12px !important;
  right: 14px !important;
  color: #94a3b8 !important;
  font-size: 13px !important;
  pointer-events: none !important;
  opacity: 0.65 !important;
}

/* Quick Action Bar */
.nexus-publisher-quick-bar {
  display: flex !important;
  align-items: center !important;
  gap: 12px !important;
  margin-bottom: 16px !important;
  flex-wrap: wrap !important;
  padding-left: 62px !important;
  position: relative !important;
  z-index: 10 !important;
}

@media (max-width: 576px) {
  .nexus-publisher-quick-bar {
    padding-left: 0 !important;
  }
}

.nexus-privacy-pill .nexus-privacy-btn {
  background: #f1f5f9 !important;
  border: 1px solid #e2e8f0 !important;
  border-radius: 20px !important;
  padding: 6px 14px !important;
  font-size: 13px !important;
  font-weight: 600 !important;
  color: #475569 !important;
  display: inline-flex !important;
  align-items: center !important;
  gap: 7px !important;
  box-shadow: none !important;
  line-height: 1.2 !important;
  transition: all 0.2s ease !important;
}

.nexus-privacy-pill .nexus-privacy-btn:hover {
  background: #e2e8f0 !important;
  color: #0f172a !important;
}

body.night-mode .nexus-privacy-pill .nexus-privacy-btn {
  background: rgba(99, 102, 241, 0.12) !important;
  border-color: rgba(99, 102, 241, 0.25) !important;
  color: #c7d2fe !important;
}

body.night-mode .nexus-privacy-pill .nexus-privacy-btn:hover {
  background: rgba(99, 102, 241, 0.2) !important;
  color: #ffffff !important;
}

.nexus-quick-icons {
  display: flex !important;
  align-items: center !important;
  gap: 8px !important;
}

.nexus-quick-icon-btn {
  width: 36px !important;
  height: 36px !important;
  border-radius: 50% !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  background: #f8f9fa !important;
  border: 1px solid rgba(226, 232, 240, 0.8) !important;
  cursor: pointer !important;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1) !important;
  font-size: 15px !important;
  text-decoration: none !important;
  padding: 0 !important;
  outline: none !important;
}

.nexus-quick-icon-btn:hover {
  background: #eef2ff !important;
  border-color: rgba(99, 102, 241, 0.3) !important;
  transform: scale(1.1) translateY(-1px) !important;
  box-shadow: 0 4px 10px rgba(99, 102, 241, 0.15) !important;
}

body.night-mode .nexus-quick-icon-btn {
  background: #182238 !important;
  border-color: rgba(255, 255, 255, 0.08) !important;
}

body.night-mode .nexus-quick-icon-btn:hover {
  background: #232e4a !important;
  border-color: rgba(99, 102, 241, 0.4) !important;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3) !important;
}

/* 2-Column Grid Tiles */
.nexus-publisher-grid-wrap {
  margin-top: 10px !important;
  margin-bottom: 16px !important;
  border: none !important;
  padding: 0 !important;
  background: transparent !important;
}

.nexus-publisher-grid {
  list-style: none !important;
  padding: 0 !important;
  margin: 0 -5px !important;
}

.nexus-publisher-grid li {
  padding: 5px !important;
}

.nexus-tile {
  background: #f8f9fa !important;
  border: 1px solid rgba(226, 232, 240, 0.8) !important;
  border-radius: 12px !important;
  padding: 10px 16px !important;
  display: flex !important;
  align-items: center !important;
  gap: 12px !important;
  cursor: pointer !important;
  text-decoration: none !important;
  height: 48px !important;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1) !important;
  box-sizing: border-box !important;
  position: relative !important;
  overflow: hidden !important;
}

body.night-mode .nexus-tile {
  background: #182238 !important;
  border-color: rgba(255, 255, 255, 0.07) !important;
}

.nexus-tile:hover {
  background: #f1f5f9 !important;
  border-color: rgba(99, 102, 241, 0.25) !important;
  transform: translateY(-1px) !important;
  box-shadow: 0 4px 14px rgba(15, 23, 42, 0.04) !important;
}

body.night-mode .nexus-tile:hover {
  background: #202b45 !important;
  border-color: rgba(99, 102, 241, 0.35) !important;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.3) !important;
}

.nexus-tile.active,
.nexus-tile.activated {
  border-color: #6366f1 !important;
  background: rgba(99, 102, 241, 0.08) !important;
}

body.night-mode .nexus-tile.active,
body.night-mode .nexus-tile.activated {
  border-color: #818cf8 !important;
  background: rgba(99, 102, 241, 0.2) !important;
}

.nexus-tile-icon {
  font-size: 18px !important;
  width: 22px !important;
  text-align: center !important;
  flex-shrink: 0 !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
}

.nexus-tile-label {
  font-size: 13.5px !important;
  font-weight: 600 !important;
  color: #334155 !important;
  white-space: nowrap !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  flex: 1 !important;
}

body.night-mode .nexus-tile-label {
  color: #e2e8f0 !important;
}

.nexus-badge-new {
  background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%) !important;
  color: #ffffff !important;
  font-size: 10px !important;
  font-weight: 700 !important;
  padding: 2px 7px !important;
  border-radius: 4px !important;
  margin-left: auto !important;
  letter-spacing: 0.4px !important;
  text-transform: uppercase !important;
  line-height: 1.2 !important;
  box-shadow: 0 2px 6px rgba(99, 102, 241, 0.35) !important;
}

/* Primary Action Button (Send) - Theme Indigo Gradient */
.nexus-publisher-send-wrapper {
  margin-top: 18px !important;
  width: 100% !important;
}

.nexus-publisher-send-btn {
  width: 100% !important;
  height: 48px !important;
  background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%) !important;
  border: none !important;
  border-radius: 12px !important;
  color: #ffffff !important;
  font-size: 16px !important;
  font-weight: 700 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 8px !important;
  box-shadow: 0 6px 20px rgba(99, 102, 241, 0.35) !important;
  cursor: pointer !important;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1) !important;
  letter-spacing: 0.2px !important;
}

.nexus-publisher-send-btn:hover {
  background: linear-gradient(135deg, #4f46e5 0%, #7c3aed 100%) !important;
  box-shadow: 0 8px 25px rgba(99, 102, 241, 0.5) !important;
  transform: translateY(-1px) !important;
  color: #ffffff !important;
}

.nexus-publisher-send-btn:active {
  transform: translateY(1px) !important;
  box-shadow: 0 2px 8px rgba(99, 102, 241, 0.25) !important;
}

.nexus-publisher-send-btn i {
  font-size: 15px !important;
}

/* Publisher Tools Tabs & Nexus Tile Styling Overrides */
.publisher.nexus-publisher .publisher-tools-tab:after,
.publisher.nexus-publisher .nexus-tile:after {
  display: none !important;
  content: none !important;
}

.publisher.nexus-publisher .publisher-tools-tab.disabled {
  opacity: 0.45 !important;
  cursor: not-allowed !important;
  pointer-events: none !important;
}

/* Strict File Uploader Containment - prevent transparent file inputs from covering text areas */
form.x-uploader,
.x-uploader {
  position: relative !important;
  overflow: hidden !important;
}

.publisher.nexus-publisher .publisher-tools-tab.attach {
  position: relative !important;
  overflow: hidden !important;
}

.publisher.nexus-publisher .publisher-tools-tab.attach form.x-uploader {
  position: absolute !important;
  top: 0 !important;
  left: 0 !important;
  right: 0 !important;
  bottom: 0 !important;
  width: 100% !important;
  height: 100% !important;
  opacity: 0 !important;
  cursor: pointer !important;
  z-index: 10 !important;
  margin: 0 !important;
  padding: 0 !important;
  border: none !important;
  background: transparent !important;
  overflow: hidden !important;
}

.publisher.nexus-publisher .publisher-tools-tab.attach form.x-uploader input[type="file"] {
  position: absolute !important;
  top: 0 !important;
  left: 0 !important;
  right: 0 !important;
  bottom: 0 !important;
  width: 100% !important;
  height: 100% !important;
  opacity: 0 !important;
  cursor: pointer !important;
  font-size: 100px !important;
  z-index: 11 !important;
  margin: 0 !important;
  padding: 0 !important;
  border: none !important;
}

/* Hide duplicate bottom privacy dropdown when top quick bar is rendered */
.publisher.nexus-publisher .publisher-footer-buttons .btn-group:not(.nexus-privacy-pill) {
  display: none !important;
}
.publisher.nexus-publisher .publisher-footer-buttons {
  border-top: none !important;
  padding-top: 0 !important;
  margin-top: 0 !important;
}

/* ==========================================================================
   NEXUS THEME - MODERN MARKETPLACE (DIAMOND PRO REIMAGINED)
   ========================================================================== */

/* 1. Hero Banner - Solid Color Matching Theme (Gradient Removed) */
.marketplace-hero-card {
  position: relative;
  border-radius: 20px;
  background: #151a30; /* Solid deep navy/indigo matching Nexus theme */
  border: 1.5px solid rgba(139, 92, 246, 0.35);
  padding: 28px 36px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4), 0 0 30px rgba(99, 102, 241, 0.12);
  margin-bottom: 24px;
}

body:not(.night-mode) .marketplace-hero-card {
  background: #ffffff;
  border: 1.5px solid #e2e8f0;
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.06);
}

.marketplace-hero-content {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 20px;
}

.marketplace-hero-left .marketplace-hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: rgba(99, 102, 241, 0.18);
  border: 1px solid rgba(139, 92, 246, 0.35);
  padding: 5px 14px;
  border-radius: 30px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.8px;
  color: #a5b4fc;
  margin-bottom: 8px;
}

.marketplace-hero-left .marketplace-hero-title {
  color: #ffffff !important;
  font-size: 30px !important;
  font-weight: 800 !important;
  margin: 0 0 6px 0 !important;
  letter-spacing: -0.5px;
  line-height: 1.2;
}

body:not(.night-mode) .marketplace-hero-left .marketplace-hero-title {
  color: #0f172a !important;
}

.marketplace-hero-left .marketplace-hero-sub {
  color: #94a3b8 !important;
  font-size: 14px;
  margin: 0;
  font-weight: 400;
}

body:not(.night-mode) .marketplace-hero-left .marketplace-hero-sub {
  color: #64748b !important;
}

.btn-marketplace-hero-create {
  background: #151a30 !important;
  background-color: #151a30 !important;
  border: 1.5px solid rgba(255, 255, 255, 0.22) !important;
  color: #ffffff !important;
  font-size: 14px !important;
  font-weight: 700 !important;
  padding: 11px 24px !important;
  border-radius: 30px !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.35), inset 0 -1px 0 rgba(0, 0, 0, 0.4), 0 4px 16px rgba(0, 0, 0, 0.45) !important;
  backdrop-filter: blur(12px) !important;
  -webkit-backdrop-filter: blur(12px) !important;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1) !important;
  display: inline-flex !important;
  align-items: center !important;
  position: relative !important;
  overflow: hidden !important;
}

.btn-marketplace-hero-create:hover {
  background: #1c2340 !important;
  background-color: #1c2340 !important;
  border-color: rgba(255, 255, 255, 0.45) !important;
  color: #ffffff !important;
  transform: translateY(-2px) !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.5), 0 8px 24px rgba(21, 26, 48, 0.7) !important;
}

/* 2. Modern Rounded Search Bar - Theme Colors */
.marketplace-search-wrapper {
  margin-bottom: 24px;
}

.marketplace-search-box {
  display: flex;
  align-items: center;
  background: #ffffff;
  border: 1.5px solid #e2e8f0;
  border-radius: 40px;
  padding: 6px 8px 6px 22px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
  transition: all 0.25s ease;
}

body.night-mode .marketplace-search-box {
  background: #151a30;
  border: 1.5px solid rgba(139, 92, 246, 0.3);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.25);
}

.marketplace-search-box:focus-within {
  border-color: #6366f1;
  box-shadow: 0 4px 24px rgba(99, 102, 241, 0.25);
}

.marketplace-search-box .search-input-col {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: 1;
}

.marketplace-search-box .search-input-col.location-col {
  border-left: 1px solid #e2e8f0;
  padding-left: 16px;
  margin-left: 12px;
}

body.night-mode .marketplace-search-box .search-input-col.location-col {
  border-left-color: rgba(139, 92, 246, 0.25);
}

.marketplace-search-box .search-icon,
.marketplace-search-box .location-icon {
  color: #818cf8;
  font-size: 15px;
}

.marketplace-search-box input.form-control {
  border: none !important;
  background: transparent !important;
  padding: 8px 0 !important;
  font-size: 14px;
  color: inherit !important;
  box-shadow: none !important;
}

.marketplace-search-box input.form-control::placeholder {
  color: #94a3b8;
}

.btn-search-submit {
  background: #151a30 !important;
  background-color: #151a30 !important;
  border: 1.5px solid rgba(255, 255, 255, 0.22) !important;
  color: #ffffff !important;
  border-radius: 30px !important;
  padding: 9px 24px !important;
  font-size: 14px !important;
  font-weight: 700 !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.35), inset 0 -1px 0 rgba(0, 0, 0, 0.4), 0 4px 16px rgba(0, 0, 0, 0.4) !important;
  backdrop-filter: blur(12px) !important;
  -webkit-backdrop-filter: blur(12px) !important;
  transition: all 0.25s ease !important;
  position: relative !important;
  overflow: hidden !important;
}

.btn-search-submit:hover {
  background: #1c2340 !important;
  background-color: #1c2340 !important;
  border-color: rgba(255, 255, 255, 0.45) !important;
  color: #ffffff !important;
  transform: translateY(-1px) !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.5), 0 8px 22px rgba(21, 26, 48, 0.65) !important;
}

/* 3. Horizontal Categories Quick Row - Theme Colors */
.marketplace-categories-scroll {
  display: flex;
  gap: 14px;
  overflow-x: auto;
  padding: 4px 2px 14px 2px;
  scrollbar-width: thin;
  -webkit-overflow-scrolling: touch;
}

.marketplace-categories-scroll::-webkit-scrollbar {
  height: 6px;
}

.marketplace-categories-scroll::-webkit-scrollbar-thumb {
  background: rgba(99, 102, 241, 0.3);
  border-radius: 6px;
}

.market-quick-cat-card {
  flex: 0 0 130px;
  background: #ffffff;
  border: 1.5px solid #e2e8f0;
  border-radius: 16px;
  padding: 16px 12px;
  text-align: center;
  text-decoration: none !important;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.03);
  display: flex;
  flex-direction: column;
  align-items: center;
}

body.night-mode .market-quick-cat-card {
  background: #151a30;
  border: 1.5px solid rgba(139, 92, 246, 0.2);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.25);
}

.market-quick-cat-card:hover {
  transform: translateY(-4px);
  border-color: #6366f1;
  box-shadow: 0 8px 22px rgba(99, 102, 241, 0.22);
}

.market-quick-cat-card.active {
  border-color: #6366f1;
  background: rgba(99, 102, 241, 0.14);
  box-shadow: 0 4px 18px rgba(99, 102, 241, 0.25);
}

.market-quick-cat-card .cat-card-icon {
  width: 46px;
  height: 46px;
  border-radius: 13px;
  background: rgba(99, 102, 241, 0.15);
  color: #818cf8;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 19px;
  margin-bottom: 10px;
  transition: all 0.25s ease;
}

.market-quick-cat-card:hover .cat-card-icon,
.market-quick-cat-card.active .cat-card-icon {
  background: #6366f1;
  color: #ffffff;
}

.market-quick-cat-card .cat-card-name {
  font-size: 13px;
  font-weight: 700;
  color: #1e293b;
  margin-bottom: 3px;
  width: 100%;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

body.night-mode .market-quick-cat-card .cat-card-name {
  color: #e2e8f0;
}

.market-quick-cat-card .cat-card-count {
  font-size: 11px;
  color: #94a3b8;
  font-weight: 500;
}

/* 3.5 Marketplace Tabs Bar & Action Buttons - Solid Theme Color & Glass Effect */
.content-tabs.marketplace-tabs {
  background: #151a30 !important;
  border: 1.5px solid rgba(139, 92, 246, 0.35) !important;
  border-radius: 18px !important;
  padding: 8px 14px !important;
  margin-bottom: 24px !important;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.35) !important;
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  flex-wrap: nowrap !important; /* Keep left tabs & right button strictly in 1 single row */
  gap: 12px !important;
  min-height: 58px !important;
  box-sizing: border-box !important;
}

body:not(.night-mode) .content-tabs.marketplace-tabs {
  background: #ffffff !important;
  border: 1.5px solid #e2e8f0 !important;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.05) !important;
}

.content-tabs.marketplace-tabs > ul {
  display: flex !important;
  align-items: center !important;
  flex-wrap: nowrap !important;
  gap: 8px !important;
  margin: 0 !important;
  padding: 0 !important;
  list-style: none !important;
  width: auto !important; /* CRITICAL: Prevents 100% width from pushing the right button down */
  max-width: 100% !important;
  flex: 0 1 auto !important;
  overflow-x: auto !important;
  scrollbar-width: none !important;
  -webkit-overflow-scrolling: touch !important;
}

.content-tabs.marketplace-tabs > ul::-webkit-scrollbar {
  display: none !important;
}

.content-tabs.marketplace-tabs > ul > li {
  list-style: none !important;
  margin: 0 !important;
  padding: 0 !important;
  display: inline-flex !important;
  align-items: center !important;
  flex-shrink: 0 !important;
}

/* Tab Links Base (Glass Styling) */
.content-tabs.marketplace-tabs > ul > li > a {
  position: relative !important;
  display: inline-flex !important;
  align-items: center !important;
  padding: 9px 18px !important;
  font-size: 14px !important;
  font-weight: 600 !important;
  border-radius: 12px !important;
  text-decoration: none !important;
  overflow: hidden !important;
  cursor: pointer !important;
  z-index: 1 !important;
  height: 42px !important;
  box-sizing: border-box !important;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1) !important;

  /* Inactive Tab in Night Mode: subtle frosted glass */
  background: rgba(255, 255, 255, 0.04) !important;
  border: 1px solid rgba(139, 92, 246, 0.25) !important;
  color: #94a3b8 !important;
  backdrop-filter: blur(12px) !important;
  -webkit-backdrop-filter: blur(12px) !important;
  box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.06) !important;
}

body:not(.night-mode) .content-tabs.marketplace-tabs > ul > li > a {
  background: rgba(248, 250, 252, 0.85) !important;
  border: 1px solid #e2e8f0 !important;
  color: #475569 !important;
  box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.9) !important;
}

.content-tabs.marketplace-tabs > ul > li > a:hover {
  background: rgba(99, 102, 241, 0.15) !important;
  border-color: rgba(165, 180, 252, 0.6) !important;
  color: #ffffff !important;
  transform: translateY(-1px) !important;
}

/* 1. BUTTON 1: ACTIVE TAB ("Market" Tab Button) - Signature #151A30 Midnight Glass Button */
.content-tabs.marketplace-tabs > ul > li.active > a {
  background: #151a30 !important;
  background-color: #151a30 !important;
  border: 1.5px solid rgba(255, 255, 255, 0.28) !important;
  color: #ffffff !important;
  font-weight: 700 !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.35), inset 0 -1px 0 rgba(0, 0, 0, 0.3), 0 4px 16px rgba(0, 0, 0, 0.5) !important;
  backdrop-filter: blur(14px) !important;
  -webkit-backdrop-filter: blur(14px) !important;
  border-radius: 12px !important;
  position: relative !important;
  overflow: hidden !important;
}

.content-tabs.marketplace-tabs > ul > li.active > a:hover {
  background: #1c2340 !important;
  background-color: #1c2340 !important;
  border-color: rgba(255, 255, 255, 0.5) !important;
  color: #ffffff !important;
  transform: translateY(-2px) !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.5), 0 6px 22px rgba(21, 26, 48, 0.8) !important;
}

/* Base Icon in Tabs */
.content-tabs.marketplace-tabs > ul > li > a .main-icon {
  margin-right: 8px !important;
  vertical-align: middle !important;
  fill: currentColor !important;
  color: inherit !important;
  transition: all 0.25s ease !important;
}

.content-tabs.marketplace-tabs > ul > li > a .main-icon * {
  fill: currentColor !important;
}

/* Selected Tab Icon: 100% Solid Pure White */
.content-tabs.marketplace-tabs > ul > li.active > a .main-icon,
.content-tabs.marketplace-tabs > ul > li.active > a .main-icon path,
.content-tabs.marketplace-tabs > ul > li.active > a .main-icon g,
.content-tabs.marketplace-tabs > ul > li.active > a .main-icon circle,
.content-tabs.marketplace-tabs > ul > li.active > a .main-icon rect,
.content-tabs.marketplace-tabs > ul > li.active > a .main-icon polygon,
.content-tabs.marketplace-tabs > ul > li.active > a .main-icon *,
.content-tabs.marketplace-tabs > ul > li.active > a i,
.content-tabs.marketplace-tabs > ul > li.active > a svg,
.content-tabs.marketplace-tabs > ul > li.active > a svg * {
  fill: #ffffff !important;
  color: #ffffff !important;
  stroke: transparent !important;
}

/* Hover State on Inactive Tabs: Icon turns 100% Solid White */
.content-tabs.marketplace-tabs > ul > li > a:hover .main-icon,
.content-tabs.marketplace-tabs > ul > li > a:hover .main-icon path,
.content-tabs.marketplace-tabs > ul > li > a:hover .main-icon g,
.content-tabs.marketplace-tabs > ul > li > a:hover .main-icon *,
.content-tabs.marketplace-tabs > ul > li > a:hover i,
.content-tabs.marketplace-tabs > ul > li > a:hover svg,
.content-tabs.marketplace-tabs > ul > li > a:hover svg * {
  fill: #ffffff !important;
  color: #ffffff !important;
}

/* Right button container in tabs */
.content-tabs.marketplace-tabs .float-end {
  margin: 0 0 0 auto !important;
  padding: 0 !important;
  float: none !important;
  flex-shrink: 0 !important;
  display: flex !important;
  align-items: center !important;
}

/* 2. BUTTON 2: "Create Product" Button - Solid Theme Indigo + Glass Effect */
.btn-marketplace-create,
.content-tabs.marketplace-tabs .btn-primary {
  background: #151a30 !important;
  background-color: #151a30 !important;
  border: 1.5px solid rgba(255, 255, 255, 0.25) !important;
  color: #ffffff !important;
  font-size: 14px !important;
  font-weight: 700 !important;
  border-radius: 12px !important;
  padding: 9px 20px !important;
  height: 42px !important;
  box-sizing: border-box !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.35), inset 0 -1px 0 rgba(0, 0, 0, 0.3), 0 4px 16px rgba(0, 0, 0, 0.45) !important;
  backdrop-filter: blur(12px) !important;
  -webkit-backdrop-filter: blur(12px) !important;
  position: relative !important;
  overflow: hidden !important;
  cursor: pointer !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 7px !important;
  line-height: 1.4 !important;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

.btn-marketplace-create:hover,
.content-tabs.marketplace-tabs .btn-primary:hover {
  background: #1c2340 !important;
  background-color: #1c2340 !important;
  border-color: rgba(255, 255, 255, 0.5) !important;
  color: #ffffff !important;
  transform: translateY(-2px) !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.5), 0 6px 24px rgba(21, 26, 48, 0.7) !important;
}

/* Strict Desktop vs Mobile Button Visibility */
@media (min-width: 992px) {
  .content-tabs.marketplace-tabs .btn-marketplace-create.d-lg-none {
    display: none !important;
  }
  .content-tabs.marketplace-tabs .btn-marketplace-create.d-lg-block {
    display: inline-flex !important;
  }
}

@media (max-width: 991.98px) {
  .content-tabs.marketplace-tabs .btn-marketplace-create.d-lg-block {
    display: none !important;
  }
  .content-tabs.marketplace-tabs .btn-marketplace-create.d-block {
    display: inline-flex !important;
  }
}

/* Glass Shine Reflection Animation on Hover for Both Buttons */
.content-tabs.marketplace-tabs > ul > li.active > a::before,
.btn-marketplace-create::before,
.content-tabs.marketplace-tabs .btn-primary::before {
  content: '' !important;
  position: absolute !important;
  top: 0 !important;
  left: -130% !important;
  width: 70% !important;
  height: 100% !important;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.1),
    rgba(255, 255, 255, 0.4),
    transparent
  ) !important;
  transform: skewX(-25deg) !important;
  transition: left 0.65s cubic-bezier(0.16, 1, 0.3, 1) !important;
  pointer-events: none !important;
  z-index: 2 !important;
}

.content-tabs.marketplace-tabs > ul > li.active > a:hover::before,
.btn-marketplace-create:hover::before,
.content-tabs.marketplace-tabs .btn-primary:hover::before {
  left: 150% !important;
}

/* Mobile Specific Optimizations */
@media (max-width: 767.98px) {
  .content-tabs.marketplace-tabs {
    padding: 6px 10px !important;
    border-radius: 14px !important;
    margin-bottom: 16px !important;
    min-height: 50px !important;
    gap: 8px !important;
  }

  .content-tabs.marketplace-tabs > ul > li > a {
    height: 38px !important;
    padding: 6px 12px !important;
    font-size: 13px !important;
    border-radius: 10px !important;
  }

  .content-tabs.marketplace-tabs > ul > li > a .main-icon {
    width: 18px !important;
    height: 18px !important;
    margin-right: 5px !important;
  }

  /* Compact Circular/Squircle Button on Mobile */
  .content-tabs.marketplace-tabs .btn-marketplace-create.btn-sm,
  .content-tabs.marketplace-tabs .btn-marketplace-create.btn-icon {
    width: 38px !important;
    height: 38px !important;
    min-width: 38px !important;
    padding: 0 !important;
    border-radius: 10px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
  }

  .content-tabs.marketplace-tabs .btn-marketplace-create.btn-sm i,
  .content-tabs.marketplace-tabs .btn-marketplace-create.btn-icon i {
    margin: 0 !important;
    font-size: 14px !important;
  }
}

/* 4. Left Side Categories Menu Card - Distinct Theme Border & Glass Options */
.sg-offcanvas-sidebar .card,
.marketplace-sidebar-card {
  border: 1.5px solid rgba(139, 92, 246, 0.35) !important;
  border-radius: 20px !important;
  background: #151a30 !important;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35) !important;
  overflow: hidden !important;
  margin-bottom: 25px !important;
}

body:not(.night-mode) .sg-offcanvas-sidebar .card,
body:not(.night-mode) .marketplace-sidebar-card {
  background: #ffffff !important;
  border: 1.5px solid #e2e8f0 !important;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05) !important;
}

.marketplace-sidebar-card .card-body.with-nav,
.sg-offcanvas-sidebar .marketplace-sidebar-card .card-body.with-nav {
  padding: 14px 12px !important;
}

.sg-offcanvas-sidebar .side-nav,
.marketplace-sidebar-card .side-nav {
  padding: 0 !important;
  margin: 0 !important;
  display: flex !important;
  flex-direction: column !important;
  gap: 8px !important;
  list-style: none !important;
}

.sg-offcanvas-sidebar .side-nav li,
.marketplace-sidebar-card .side-nav li {
  list-style: none !important;
  margin: 0 !important;
  padding: 0 !important;
}

/* Individual Option Button - Glass Effect & Border */
.sg-offcanvas-sidebar .side-nav li a,
.marketplace-sidebar-card .side-nav li a {
  position: relative !important;
  display: flex !important;
  align-items: center !important;
  justify-content: flex-start !important;
  gap: 12px !important;
  text-align: left !important;
  border-radius: 12px !important;
  margin: 0 !important;
  padding: 11px 16px !important;
  font-size: 14px !important;
  font-weight: 600 !important;
  text-decoration: none !important;
  overflow: hidden !important;
  cursor: pointer !important;
  z-index: 1 !important;

  /* Glassmorphism base (Night Mode) */
  background: rgba(255, 255, 255, 0.04) !important;
  border: 1.5px solid rgba(139, 92, 246, 0.28) !important;
  color: #cbd5e1 !important;
  backdrop-filter: blur(12px) !important;
  -webkit-backdrop-filter: blur(12px) !important;
  box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.08), 0 2px 6px rgba(0, 0, 0, 0.2) !important;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

/* Light Mode Glassmorphism */
body:not(.night-mode) .sg-offcanvas-sidebar .side-nav li a,
body:not(.night-mode) .marketplace-sidebar-card .side-nav li a {
  background: rgba(248, 250, 252, 0.85) !important;
  border: 1.5px solid rgba(99, 102, 241, 0.2) !important;
  color: #334155 !important;
  backdrop-filter: blur(12px) !important;
  -webkit-backdrop-filter: blur(12px) !important;
  box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.95), 0 2px 5px rgba(0, 0, 0, 0.04) !important;
}

/* Glass Shine Reflection Beam Animation (Hover Light Sweep) */
.sg-offcanvas-sidebar .side-nav li a::before,
.marketplace-sidebar-card .side-nav li a::before {
  content: '' !important;
  position: absolute !important;
  top: 0 !important;
  left: -130% !important;
  width: 70% !important;
  height: 100% !important;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.08),
    rgba(255, 255, 255, 0.32),
    transparent
  ) !important;
  transform: skewX(-25deg) !important;
  transition: left 0.65s cubic-bezier(0.16, 1, 0.3, 1) !important;
  pointer-events: none !important;
  z-index: 2 !important;
}

.sg-offcanvas-sidebar .side-nav li a:hover::before,
.marketplace-sidebar-card .side-nav li a:hover::before {
  left: 150% !important;
}

/* Hover State: Glowing Glass Border & Smooth Slide Animation */
.sg-offcanvas-sidebar .side-nav li a:hover,
.marketplace-sidebar-card .side-nav li a:hover {
  background: rgba(99, 102, 241, 0.2) !important;
  border-color: rgba(165, 180, 252, 0.75) !important;
  color: #ffffff !important;
  transform: translateX(5px) !important;
  box-shadow: 0 4px 20px rgba(99, 102, 241, 0.35), inset 0 1px 2px rgba(255, 255, 255, 0.25) !important;
}

body:not(.night-mode) .sg-offcanvas-sidebar .side-nav li a:hover,
body:not(.night-mode) .marketplace-sidebar-card .side-nav li a:hover {
  background: rgba(99, 102, 241, 0.1) !important;
  border-color: #6366f1 !important;
  color: #4338ca !important;
  transform: translateX(5px) !important;
  box-shadow: 0 4px 16px rgba(99, 102, 241, 0.2), inset 0 1px 2px rgba(255, 255, 255, 0.8) !important;
}

/* Active Option (e.g. "All" or Active Category) */
.sg-offcanvas-sidebar .side-nav li.active a,
.marketplace-sidebar-card .side-nav li.active a {
  background: linear-gradient(135deg, #6366f1 0%, #4f46e5 100%) !important;
  border: 1.5px solid rgba(255, 255, 255, 0.45) !important;
  color: #ffffff !important;
  font-weight: 700 !important;
  box-shadow: 0 6px 20px rgba(99, 102, 241, 0.45), inset 0 1px 2px rgba(255, 255, 255, 0.4) !important;
}

.sg-offcanvas-sidebar .side-nav li.active a:hover,
.marketplace-sidebar-card .side-nav li.active a:hover {
  transform: translateX(5px) !important;
  box-shadow: 0 8px 24px rgba(99, 102, 241, 0.65), inset 0 1px 2px rgba(255, 255, 255, 0.5) !important;
}

/* Subcategory Arrow Icon */
.sg-offcanvas-sidebar .side-nav li a .fa-angle-right,
.marketplace-sidebar-card .side-nav li a .fa-angle-right {
  margin-left: auto !important;
  font-size: 12px !important;
  opacity: 0.65 !important;
  transition: transform 0.25s ease, opacity 0.25s ease !important;
}

.sg-offcanvas-sidebar .side-nav li a:hover .fa-angle-right,
.marketplace-sidebar-card .side-nav li a:hover .fa-angle-right {
  transform: translateX(3px) !important;
  opacity: 1 !important;
}

/* Nested Subcategories */
.sg-offcanvas-sidebar .side-nav li ul,
.marketplace-sidebar-card .side-nav li ul {
  padding: 6px 0 6px 12px !important;
  display: flex !important;
  flex-direction: column !important;
  gap: 6px !important;
  list-style: none !important;
}

.sg-offcanvas-sidebar .side-nav li ul li a,
.marketplace-sidebar-card .side-nav li ul li a {
  font-size: 13px !important;
  padding: 8px 14px !important;
}

/* 5. Modern Product Card - Theme Matching Palette */
.modern-market-card {
  position: relative;
  background: #ffffff;
  border: 1.5px solid #edf2f7;
  border-radius: 18px;
  overflow: hidden;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.04);
  display: flex;
  flex-direction: column;
  height: 100%;
}

body.night-mode .modern-market-card {
  background: #151a30;
  border: 1.5px solid rgba(139, 92, 246, 0.22);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.35);
}

.modern-market-card:hover {
  transform: translateY(-6px);
  border-color: rgba(99, 102, 241, 0.45);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.12);
}

body.night-mode .modern-market-card:hover {
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.55), 0 0 25px rgba(99, 102, 241, 0.2);
  border-color: rgba(99, 102, 241, 0.6);
}

/* Product Card Image Wrap */
.product-card-img-wrap {
  position: relative;
  width: 100%;
  height: 220px;
  overflow: hidden;
  border-radius: 18px 18px 0 0;
  background: #0b0f19;
}

.product-card-img-link {
  display: block;
  width: 100%;
  height: 100%;
}

.product-card-img-link img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.45s cubic-bezier(0.16, 1, 0.3, 1);
}

.modern-market-card:hover .product-card-img-link img {
  transform: scale(1.07);
}

/* Badges (Top-Left) */
.product-card-badges {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 3;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  pointer-events: none;
}

.product-pill-badge {
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 6px;
  letter-spacing: 0.5px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
  line-height: 1.2;
}

.product-pill-badge.badge-new {
  background: #10b981;
  color: #ffffff;
}

.product-pill-badge.badge-used {
  background: #f59e0b;
  color: #ffffff;
}

.product-pill-badge.badge-digital {
  background: #8b5cf6;
  color: #ffffff;
}

.product-pill-badge.badge-sold {
  background: #ef4444;
  color: #ffffff;
}

.product-pill-badge.badge-outofstock {
  background: #64748b;
  color: #ffffff;
}

/* Wishlist / Save Button (Top-Right) */
.product-card-bookmark {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 3;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.4);
  color: #334155;
  font-size: 15px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.15);
}

body.night-mode .product-card-bookmark {
  background: rgba(20, 24, 40, 0.85);
  border-color: rgba(139, 92, 246, 0.35);
  color: #e2e8f0;
}

.product-card-bookmark:hover {
  background: #6366f1 !important;
  color: #ffffff !important;
  border-color: #6366f1 !important;
  transform: scale(1.1);
  box-shadow: 0 4px 14px rgba(99, 102, 241, 0.4);
}

.product-card-bookmark.saved {
  background: #6366f1 !important;
  border-color: #6366f1 !important;
  color: #ffffff !important;
}

/* Product Card Body */
.product-card-body {
  padding: 16px 18px 18px 18px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.product-card-title {
  font-size: 15px;
  font-weight: 700;
  line-height: 1.35;
  margin: 0 0 6px 0;
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.product-card-title a {
  color: #0f172a;
  text-decoration: none !important;
  transition: color 0.2s ease;
}

body.night-mode .product-card-title a {
  color: #f1f5f9;
}

.product-card-title a:hover {
  color: #818cf8 !important;
}

/* Theme Matched Price Tag */
.product-card-price {
  font-size: 20px;
  font-weight: 800;
  color: #818cf8;
  margin: 0 0 10px 0;
  letter-spacing: -0.4px;
  line-height: 1.2;
}

body:not(.night-mode) .product-card-price {
  color: #6366f1;
}

.product-card-price .product-card-free {
  color: #10b981;
  font-weight: 800;
}

/* Meta List: Location & Timestamp */
.product-card-meta-list {
  display: flex;
  flex-direction: column;
  gap: 5px;
  margin-bottom: 14px;
  font-size: 12px;
  color: #64748b;
}

body.night-mode .product-card-meta-list {
  color: #94a3b8;
}

.product-meta-item {
  display: flex;
  align-items: center;
  gap: 7px;
}

.product-meta-item.location i {
  color: #818cf8;
  font-size: 13px;
  width: 14px;
  text-align: center;
}

.product-meta-item.time i {
  color: #64748b;
  font-size: 13px;
  width: 14px;
  text-align: center;
}

.product-card-rating {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 12px;
  font-size: 12px;
}

/* Full-Width "More Detail" Action Button - Theme Colors */
.product-card-action {
  margin-top: auto;
}

.btn-product-detail {
  width: 100%;
  border-radius: 12px;
  padding: 9px 16px;
  font-size: 13px;
  font-weight: 700;
  text-align: center;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  text-decoration: none !important;
  background: #151a30 !important;
  border: 1.5px solid rgba(255, 255, 255, 0.2) !important;
  color: #ffffff !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.28), 0 4px 12px rgba(0, 0, 0, 0.35) !important;
  backdrop-filter: blur(10px) !important;
  -webkit-backdrop-filter: blur(10px) !important;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.btn-product-detail:hover {
  background: #1c2340 !important;
  border-color: rgba(255, 255, 255, 0.45) !important;
  color: #ffffff !important;
  transform: translateY(-2px);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.45), 0 6px 18px rgba(21, 26, 48, 0.6) !important;
}

/* 6. Modern Filter Bar */
.market-results-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
  padding-bottom: 12px;
  border-bottom: 1px solid #e2e8f0;
}

body.night-mode .market-results-header {
  border-bottom-color: rgba(139, 92, 246, 0.2);
}

.market-section-heading {
  font-size: 18px;
  font-weight: 800;
  margin: 0;
  color: inherit;
  display: flex;
  align-items: center;
  gap: 8px;
}

/* Responsive adjustments */
@media (max-width: 767px) {
  .marketplace-hero-card {
    padding: 20px;
  }
  .marketplace-hero-title {
    font-size: 22px !important;
  }
  .btn-marketplace-hero-create {
    width: 100%;
    justify-content: center;
  }
  .market-quick-cat-card {
    flex: 0 0 110px;
    padding: 12px 8px;
  }
  .product-card-img-wrap {
    height: 180px;
  }
}

/* ==========================================================================
   26. FULL-PAGE 3D PRODUCT SHOWCASE & GLASS BUTTONS
   ========================================================================== */

/* Outer Showcase Container */
.product-showcase-wrapper {
  max-width: 1280px;
  margin: 0 auto 50px auto;
  position: relative;
}

/* Top Navigation Bar (Glass Breadcrumb & Actions) */
.product-showcase-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 26px;
  padding: 14px 22px;
  border-radius: 18px;
  background: #ffffff;
  border: 1px solid rgba(0, 0, 0, 0.07);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.03);
  transition: all 0.3s ease;
}

body.night-mode .product-showcase-topbar {
  background: rgba(18, 24, 38, 0.75);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.3);
}

.product-breadcrumb {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  font-size: 14px;
}

.product-nav-back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  color: #6366f1 !important;
  text-decoration: none !important;
  padding: 6px 14px;
  border-radius: 10px;
  background: rgba(99, 102, 241, 0.09);
  transition: all 0.25s ease;
}

.product-nav-back:hover {
  background: rgba(99, 102, 241, 0.18);
  color: #4f46e5 !important;
  transform: translateX(-3px);
}

.breadcrumb-sep {
  color: #94a3b8;
  font-size: 11px;
}

.breadcrumb-cat {
  color: #64748b;
  text-decoration: none !important;
  font-weight: 500;
  transition: color 0.2s;
}

.breadcrumb-cat:hover {
  color: #6366f1;
}

.breadcrumb-current {
  color: #0f172a;
  font-weight: 700;
}

body.night-mode .breadcrumb-current {
  color: #f1f5f9;
}

.product-showcase-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.btn-glass-pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 16px;
  font-size: 13px;
  font-weight: 700;
  border-radius: 9999px;
  cursor: pointer;
  text-decoration: none !important;
  background: #f8fafc;
  color: #475569;
  border: 1px solid #e2e8f0;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.03);
  transition: all 0.25s ease;
}

body.night-mode .btn-glass-pill {
  background: rgba(255, 255, 255, 0.05);
  color: #cbd5e1;
  border-color: rgba(255, 255, 255, 0.1);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.btn-glass-pill:hover,
.btn-glass-pill.active {
  color: #6366f1;
  border-color: #6366f1;
  background: rgba(99, 102, 241, 0.1);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(99, 102, 241, 0.25);
}

.btn-glass-pill.no-caret::after {
  display: none !important;
}

/* ==========================================================================
   3D Visual Stage (Left Column)
   ========================================================================== */
.product-showcase-stage-3d {
  position: relative;
  perspective: 1200px;
}

/* Ambient Backlight Glow */
.stage-ambient-glow {
  position: absolute;
  top: 5%;
  left: 10%;
  width: 80%;
  height: 70%;
  background: radial-gradient(circle at 50% 50%, rgba(99, 102, 241, 0.25) 0%, rgba(168, 85, 247, 0.12) 40%, transparent 70%);
  filter: blur(50px);
  pointer-events: none;
  z-index: 0;
  animation: stagePulse 7s ease-in-out infinite alternate;
}

@keyframes stagePulse {
  0% { opacity: 0.55; transform: scale(0.95); }
  100% { opacity: 0.95; transform: scale(1.05); }
}

/* Main 3D Stage Card */
.product-stage-card {
  position: relative;
  z-index: 1;
  border-radius: 26px;
  overflow: hidden;
  padding: 24px;
  background: #ffffff;
  border: 1px solid rgba(0, 0, 0, 0.07);
  box-shadow: 0 20px 45px -12px rgba(0, 0, 0, 0.08), inset 0 1px 0 rgba(255, 255, 255, 0.9);
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.4s ease;
}

body.night-mode .product-stage-card {
  background: rgba(18, 24, 38, 0.82);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 25px 55px -12px rgba(0, 0, 0, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.15);
}

.product-stage-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 30px 65px -15px rgba(99, 102, 241, 0.28);
}

/* Floating 3D Status Badges */
.stage-floating-badges {
  position: absolute;
  top: 20px;
  left: 20px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  z-index: 5;
}

.badge-3d {
  display: inline-flex;
  align-items: center;
  padding: 6px 14px;
  border-radius: 9999px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.18), inset 0 1px 0 rgba(255, 255, 255, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.3);
}

.badge-3d-digital { background: #4f46e5; color: #ffffff; }
.badge-3d-new { background: #10b981; color: #ffffff; }
.badge-3d-used { background: #f59e0b; color: #ffffff; }
.badge-3d-stock { background: #0284c7; color: #ffffff; }
.badge-3d-sold { background: #ef4444; color: #ffffff; }
.badge-3d-out { background: #64748b; color: #ffffff; }

/* Main Image Box */
.stage-image-container {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 440px;
  max-height: 540px;
  position: relative;
  overflow: hidden;
  border-radius: 18px;
  background: rgba(0, 0, 0, 0.02);
}

body.night-mode .stage-image-container {
  background: rgba(0, 0, 0, 0.25);
}

.product-stage-main-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  text-decoration: none;
  cursor: zoom-in;
  position: relative;
}

.product-stage-main-img {
  max-width: 100%;
  max-height: 480px;
  object-fit: contain;
  border-radius: 14px;
  transition: transform 0.45s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.25s ease;
  filter: drop-shadow(0 18px 30px rgba(0, 0, 0, 0.15));
}

.product-stage-main-link:hover .product-stage-main-img {
  transform: scale(1.04);
}

.stage-zoom-hint {
  position: absolute;
  bottom: 18px;
  right: 18px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  color: #ffffff;
  background: rgba(15, 23, 42, 0.75);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.25);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.3);
  transition: all 0.3s ease;
}

.product-stage-main-link:hover .stage-zoom-hint {
  transform: scale(1.12);
  background: #6366f1;
  box-shadow: 0 8px 24px rgba(99, 102, 241, 0.5);
}

/* Thumbnail Gallery Strip */
.product-thumbnails-strip {
  display: flex;
  gap: 14px;
  overflow-x: auto;
  padding: 16px 4px 6px;
  scrollbar-width: thin;
}

.product-thumb-item {
  width: 76px;
  height: 76px;
  flex-shrink: 0;
  border-radius: 14px;
  overflow: hidden;
  cursor: pointer;
  border: 2.5px solid transparent;
  background: rgba(0, 0, 0, 0.05);
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.product-thumb-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.product-thumb-item:hover {
  transform: translateY(-3px);
  border-color: rgba(99, 102, 241, 0.5);
}

.product-thumb-item.active {
  border-color: #6366f1;
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(99, 102, 241, 0.4);
}

/* 3D Trust Badges Strip */
.product-trust-strip-3d {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-top: 22px;
}

.trust-card-3d {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  border-radius: 16px;
  background: #ffffff;
  border: 1px solid rgba(0, 0, 0, 0.06);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.03);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

body.night-mode .trust-card-3d {
  background: rgba(18, 24, 38, 0.65);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-color: rgba(255, 255, 255, 0.08);
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.25);
}

.trust-card-3d:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 24px rgba(99, 102, 241, 0.18);
}

.trust-icon-box {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  flex-shrink: 0;
}

.trust-shield { background: rgba(16, 185, 129, 0.12); color: #10b981; }
.trust-bolt { background: rgba(245, 158, 11, 0.12); color: #f59e0b; }
.trust-support { background: rgba(99, 102, 241, 0.12); color: #6366f1; }

.trust-info {
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.trust-title {
  font-size: 13px;
  font-weight: 700;
  color: inherit;
  white-space: nowrap;
  text-overflow: ellipsis;
  overflow: hidden;
}

.trust-sub {
  font-size: 11px;
  color: #64748b;
  white-space: nowrap;
  text-overflow: ellipsis;
  overflow: hidden;
}

/* ==========================================================================
   3D Product Details Card (Right Column)
   ========================================================================== */
.product-showcase-details-sticky {
  position: sticky;
  top: 85px;
  z-index: 2;
}

.product-details-3d-card {
  border-radius: 26px;
  padding: 30px;
  position: relative;
  overflow: hidden;
  background: #ffffff;
  border: 1px solid rgba(0, 0, 0, 0.07);
  box-shadow: 0 20px 45px -12px rgba(0, 0, 0, 0.08), inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

body.night-mode .product-details-3d-card {
  background: rgba(18, 24, 38, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 25px 55px -12px rgba(0, 0, 0, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.12);
}

/* Seller Header Bar */
.product-seller-header {
  display: flex;
  align-items: center;
  gap: 14px;
  padding-bottom: 18px;
  border-bottom: 1px solid rgba(226, 232, 240, 0.8);
}

body.night-mode .product-seller-header {
  border-bottom-color: rgba(255, 255, 255, 0.08);
}

.product-seller-avatar {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background-size: cover;
  background-position: center;
  position: relative;
  flex-shrink: 0;
  border: 2px solid #6366f1;
  box-shadow: 0 4px 12px rgba(99, 102, 241, 0.25);
}

.product-seller-avatar .online-dot {
  position: absolute;
  bottom: 0;
  right: 0;
  font-size: 11px;
  color: #10b981;
  border: 2px solid #ffffff;
  border-radius: 50%;
  background: #ffffff;
}

body.night-mode .product-seller-avatar .online-dot {
  border-color: #121826;
  background: #121826;
}

.product-seller-meta {
  display: flex;
  flex-direction: column;
}

.seller-name-row {
  display: flex;
  align-items: center;
  gap: 6px;
}

.seller-name {
  font-size: 16px;
  font-weight: 800;
  color: inherit !important;
  text-decoration: none !important;
  transition: color 0.2s;
}

.seller-name:hover {
  color: #6366f1 !important;
}

.seller-time-row {
  font-size: 12px;
  color: #64748b;
  margin-top: 3px;
}

/* Product Title */
.product-title-3d {
  font-size: 26px;
  font-weight: 800;
  line-height: 1.35;
  margin: 18px 0 12px;
  letter-spacing: -0.02em;
  color: #0f172a;
}

body.night-mode .product-title-3d {
  color: #f8fafc;
}

/* Rating Row */
.product-rating-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 18px;
}

.rating-number {
  font-size: 14px;
  font-weight: 800;
  color: #f59e0b;
}

.reviews-count-link {
  font-size: 13px;
  color: #64748b;
  text-decoration: underline;
}

.reviews-count-link:hover {
  color: #6366f1;
}

/* 3D Price Showcase Box */
.product-price-box-3d {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 22px;
  border-radius: 18px;
  margin-bottom: 22px;
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.07), rgba(168, 85, 247, 0.07));
  border: 1px solid rgba(99, 102, 241, 0.22);
  box-shadow: 0 4px 18px rgba(99, 102, 241, 0.08);
}

body.night-mode .product-price-box-3d {
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.14), rgba(168, 85, 247, 0.12));
  border: 1px solid rgba(99, 102, 241, 0.35);
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.35);
}

.price-currency-tag {
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  color: #64748b;
  display: block;
}

.price-amount {
  font-size: 32px;
  font-weight: 900;
  line-height: 1.1;
  color: #6366f1;
  letter-spacing: -0.02em;
}

body.night-mode .price-amount {
  color: #818cf8;
}

.price-free-tag {
  color: #10b981;
}

.stock-indicator {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 7px 14px;
  border-radius: 9999px;
  font-size: 12px;
  font-weight: 800;
}

.stock-indicator.in-stock {
  background: rgba(16, 185, 129, 0.12);
  color: #10b981;
  border: 1px solid rgba(16, 185, 129, 0.3);
}

.stock-indicator.sold-out {
  background: rgba(239, 68, 68, 0.12);
  color: #ef4444;
  border: 1px solid rgba(239, 68, 68, 0.3);
}

.stock-indicator.out-of-stock {
  background: rgba(100, 116, 139, 0.12);
  color: #64748b;
  border: 1px solid rgba(100, 116, 139, 0.3);
}

.pulse-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #10b981;
  box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7);
  animation: pulseDot 2s infinite;
}

@keyframes pulseDot {
  0% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7); }
  70% { box-shadow: 0 0 0 8px rgba(16, 185, 129, 0); }
  100% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}

/* Specifications Grid */
.product-specs-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin-bottom: 24px;
}

.spec-card {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border-radius: 14px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
}

body.night-mode .spec-card {
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(255, 255, 255, 0.08);
}

.spec-icon {
  font-size: 14px;
  color: #6366f1;
  width: 32px;
  height: 32px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(99, 102, 241, 0.1);
  flex-shrink: 0;
}

.spec-info {
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.spec-label {
  font-size: 11px;
  color: #64748b;
  font-weight: 600;
}

.spec-value {
  font-size: 13px;
  font-weight: 700;
  color: inherit;
  white-space: nowrap;
  text-overflow: ellipsis;
  overflow: hidden;
}

.spec-value.highlight {
  color: #6366f1;
  text-decoration: none !important;
}

.spec-value.highlight:hover {
  text-decoration: underline !important;
}

.product-custom-fields-box {
  padding: 14px 18px;
  border-radius: 14px;
  margin-bottom: 22px;
  font-size: 13px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
}

body.night-mode .product-custom-fields-box {
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(255, 255, 255, 0.08);
}

.custom-field-row {
  display: flex;
  justify-content: space-between;
  padding: 5px 0;
  border-bottom: 1px dashed rgba(226, 232, 240, 0.6);
}

body.night-mode .custom-field-row {
  border-bottom-color: rgba(255, 255, 255, 0.06);
}

/* ==========================================================================
   SOLID THEME INDIGO GLASS BUTTONS & HOVER LIGHT ANIMATIONS
   (User requirement: "nicher button ta fix koro ak color koro and glass effect add koro 3d kichu koro")
   ========================================================================== */

/* 1. Primary Buy Button */
.btn-3d-glass-buy,
.post-product-container .js_shopping-add-to-cart {
  width: 100% !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 10px !important;
  padding: 15px 28px !important;
  font-size: 16px !important;
  font-weight: 800 !important;
  letter-spacing: 0.3px !important;
  border-radius: 16px !important;
  color: #ffffff !important;
  /* Signature Theme #151A30 */
  background: #151a30 !important;
  background-color: #151a30 !important;
  /* Frosted glass border & 3D specular bevel */
  border: 1.5px solid rgba(255, 255, 255, 0.28) !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.4), inset 0 -2px 0 rgba(0, 0, 0, 0.4), 0 10px 24px -4px rgba(0, 0, 0, 0.5) !important;
  backdrop-filter: blur(12px) !important;
  -webkit-backdrop-filter: blur(12px) !important;
  position: relative !important;
  overflow: hidden !important;
  cursor: pointer !important;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1) !important;
  text-decoration: none !important;
}

/* Moving Light Beam / Shimmer Effect on Button */
.btn-3d-glass-buy::after,
.post-product-container .js_shopping-add-to-cart::after {
  content: '' !important;
  position: absolute !important;
  top: 0 !important;
  left: -120% !important;
  width: 60% !important;
  height: 100% !important;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.35), transparent) !important;
  transform: skewX(-25deg) !important;
  pointer-events: none !important;
}

.btn-3d-glass-buy:hover::after,
.post-product-container .js_shopping-add-to-cart:hover::after {
  left: 160% !important;
  transition: left 0.85s ease-in-out !important;
}

.btn-3d-glass-buy:hover,
.post-product-container .js_shopping-add-to-cart:hover {
  background: #1c2340 !important;
  background-color: #1c2340 !important;
  color: #ffffff !important;
  transform: translateY(-3px) scale(1.01) !important;
  border-color: rgba(255, 255, 255, 0.55) !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.55), inset 0 -2px 0 rgba(0, 0, 0, 0.4), 0 16px 36px -4px rgba(21, 26, 48, 0.75) !important;
}

.btn-3d-glass-buy:active,
.post-product-container .js_shopping-add-to-cart:active {
  transform: translateY(1px) scale(0.99) !important;
  box-shadow: inset 0 2px 5px rgba(0, 0, 0, 0.3), 0 4px 14px rgba(99, 102, 241, 0.4) !important;
}

.btn-3d-glass-buy.disabled,
.btn-3d-glass-buy[disabled] {
  background: #94a3b8 !important;
  border-color: rgba(255, 255, 255, 0.2) !important;
  cursor: not-allowed !important;
  transform: none !important;
  box-shadow: none !important;
  opacity: 0.75 !important;
}

/* 2. Contact Seller Button */
.btn-3d-glass-contact {
  width: 100% !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 8px !important;
  padding: 13px 24px !important;
  font-size: 15px !important;
  font-weight: 700 !important;
  border-radius: 14px !important;
  background: rgba(99, 102, 241, 0.08) !important;
  color: #4f46e5 !important;
  border: 1px solid rgba(99, 102, 241, 0.25) !important;
  box-shadow: 0 2px 8px rgba(99, 102, 241, 0.08) !important;
  backdrop-filter: blur(10px) !important;
  -webkit-backdrop-filter: blur(10px) !important;
  cursor: pointer !important;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

body.night-mode .btn-3d-glass-contact {
  background: rgba(99, 102, 241, 0.12) !important;
  color: #a5b4fc !important;
  border-color: rgba(99, 102, 241, 0.32) !important;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.25) !important;
}

.btn-3d-glass-contact:hover {
  background: rgba(99, 102, 241, 0.18) !important;
  transform: translateY(-2px) !important;
  border-color: #6366f1 !important;
  box-shadow: 0 8px 22px rgba(99, 102, 241, 0.25) !important;
}

.author-own-listing-badge {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 14px 20px;
  border-radius: 14px;
  font-weight: 700;
  font-size: 14px;
  background: rgba(99, 102, 241, 0.1);
  color: #6366f1;
  border: 1px solid rgba(99, 102, 241, 0.25);
}

/* Product Description Section */
.product-description-section {
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid rgba(226, 232, 240, 0.8);
}

body.night-mode .product-description-section {
  border-top-color: rgba(255, 255, 255, 0.08);
}

.desc-heading {
  font-size: 15px;
  font-weight: 800;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  color: inherit;
}

.product-desc-content {
  font-size: 14px;
  line-height: 1.7;
  color: #475569;
}

body.night-mode .product-desc-content {
  color: #cbd5e1;
}

/* ==========================================================================
   Bottom Full-Width Community / Social Engagement Card
   ========================================================================== */
.product-community-3d-card {
  border-radius: 26px;
  padding: 26px 30px;
  position: relative;
  overflow: hidden;
  background: #ffffff;
  border: 1px solid rgba(0, 0, 0, 0.07);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.04);
}

body.night-mode .product-community-3d-card {
  background: rgba(18, 24, 38, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.45);
}

.community-stats-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 14px;
  padding-bottom: 16px;
  border-bottom: 1px solid rgba(226, 232, 240, 0.8);
}

body.night-mode .community-stats-bar {
  border-bottom-color: rgba(255, 255, 255, 0.08);
}

.stat-pill {
  font-size: 13px;
  font-weight: 600;
  color: #64748b;
  transition: color 0.2s;
}

.stat-pill:hover {
  color: #6366f1;
}

.community-actions-bar {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 14px 0 16px;
  border-bottom: 1px solid rgba(226, 232, 240, 0.8);
}

body.night-mode .community-actions-bar {
  border-bottom-color: rgba(255, 255, 255, 0.08);
}

/* Responsive Adjustments */
@media (max-width: 991px) {
  .product-showcase-stage-3d {
    margin-bottom: 24px;
  }
  .stage-image-container {
    min-height: 340px;
  }
  .product-trust-strip-3d {
    grid-template-columns: 1fr;
  }
  .product-showcase-details-sticky {
    position: static;
  }
  .product-specs-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 576px) {
  .product-stage-card {
    padding: 16px;
    border-radius: 20px;
  }
  .stage-image-container {
    min-height: 280px;
  }
  .product-details-3d-card {
    padding: 20px;
    border-radius: 20px;
  }
  .product-title-3d {
    font-size: 22px;
  }
  .price-amount {
    font-size: 26px;
  }
}

/* ==========================================================================
   27. THEME-WIDE #151A30 GLASS BUTTON DESIGN
   User requirement: "theme ar sob button ar color #151A30 eta dao and font white and glass effect add koro"
   ========================================================================== */

/* Universal Primary & Action Buttons Across the Theme */
.btn-primary,
.modal-footer .btn-primary,
.js_publisher-btn,
.js_publisher-product,
.js_publisher-post,
.js_publisher-story,
.publisher-mini .btn-primary,
button.btn-primary,
a.btn-primary,
input[type="submit"].btn-primary,
.nexus-publisher-send-btn,
.btn-main {
  background: var(--nexus-gradient-primary, var(--nexus-primary, #6366f1)) !important;
  background-color: var(--nexus-primary, #6366f1) !important;
  color: #ffffff !important;
  font-weight: 700 !important;
  /* Frosted glass border & 3D specular highlight */
  border: 1.5px solid rgba(255, 255, 255, 0.25) !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.35), inset 0 -1px 0 rgba(0, 0, 0, 0.2), 0 4px 16px var(--nexus-primary-light, rgba(99, 102, 241, 0.35)) !important;
  backdrop-filter: blur(14px) !important;
  -webkit-backdrop-filter: blur(14px) !important;
  position: relative !important;
  overflow: hidden !important;
  cursor: pointer !important;
  transition: all 0.28s cubic-bezier(0.16, 1, 0.3, 1) !important;
  text-decoration: none !important;
}

/* Light Mode Adaptation */
body:not(.night-mode) .btn-primary,
body:not(.night-mode) .modal-footer .btn-primary,
body:not(.night-mode) .js_publisher-btn,
body:not(.night-mode) .nexus-publisher-send-btn {
  background: var(--nexus-gradient-primary, var(--nexus-primary, #6366f1)) !important;
  background-color: var(--nexus-primary, #6366f1) !important;
  color: #ffffff !important;
  border-color: rgba(255, 255, 255, 0.35) !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.4), 0 4px 14px var(--nexus-primary-light, rgba(99, 102, 241, 0.25)) !important;
}

/* Glass Shimmer Reflection Animation on Hover */
.btn-primary::after,
.modal-footer .btn-primary::after,
.js_publisher-btn::after,
.js_publisher-product::after,
.nexus-publisher-send-btn::after,
.btn-marketplace-hero-create::after,
.btn-marketplace-create::after,
.btn-search-submit::after,
.btn-product-detail::after,
.content-tabs.marketplace-tabs .btn-primary::after {
  content: '' !important;
  position: absolute !important;
  top: 0 !important;
  left: -130% !important;
  width: 60% !important;
  height: 100% !important;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.08),
    rgba(255, 255, 255, 0.38),
    transparent
  ) !important;
  transform: skewX(-25deg) !important;
  transition: left 0.75s cubic-bezier(0.16, 1, 0.3, 1) !important;
  pointer-events: none !important;
  z-index: 2 !important;
}

.btn-primary:hover::after,
.modal-footer .btn-primary:hover::after,
.js_publisher-btn:hover::after,
.js_publisher-product:hover::after,
.nexus-publisher-send-btn:hover::after,
.btn-marketplace-hero-create:hover::after,
.btn-marketplace-create:hover::after,
.btn-search-submit:hover::after,
.btn-product-detail:hover::after,
.content-tabs.marketplace-tabs .btn-primary:hover::after {
  left: 160% !important;
}

/* Hover State */
.btn-primary:hover,
.modal-footer .btn-primary:hover,
.js_publisher-btn:hover,
.js_publisher-product:hover,
.js_publisher-post:hover,
.js_publisher-story:hover,
.publisher-mini .btn-primary:hover,
button.btn-primary:hover,
a.btn-primary:hover,
input[type="submit"].btn-primary:hover,
.nexus-publisher-send-btn:hover,
.btn-main:hover {
  background: var(--nexus-primary-hover, #4f46e5) !important;
  background-color: var(--nexus-primary-hover, #4f46e5) !important;
  color: #ffffff !important;
  border-color: rgba(255, 255, 255, 0.48) !important;
  transform: translateY(-2px) !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.5), inset 0 -1px 0 rgba(0, 0, 0, 0.2), var(--nexus-shadow-glow, 0 8px 25px -4px rgba(99, 102, 241, 0.45)) !important;
}

/* Active Pressed State */
.btn-primary:active,
.modal-footer .btn-primary:active,
.js_publisher-btn:active,
.nexus-publisher-send-btn:active {
  transform: translateY(1px) scale(0.99) !important;
  box-shadow: inset 0 2px 5px rgba(0, 0, 0, 0.45), 0 2px 8px rgba(0, 0, 0, 0.25) !important;
}

/* Focus State */
.btn-primary:focus,
.modal-footer .btn-primary:focus,
.js_publisher-btn:focus {
  box-shadow: 0 0 0 3px rgba(21, 26, 48, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.4) !important;
  color: #ffffff !important;
}

/* Disabled State */
.btn-primary:disabled,
.btn-primary.disabled,
.modal-footer .btn-primary:disabled,
.modal-footer .btn-primary.disabled {
  background: #151a30 !important;
  opacity: 0.55 !important;
  cursor: not-allowed !important;
  transform: none !important;
  box-shadow: none !important;
}

/* Selected Button & Active Tab: Pure White Icons & #151A30 Glass Styling */
.btn-primary i,
.btn-primary svg,
.btn-primary svg *,
.btn-marketplace-create i,
.btn-marketplace-create svg,
.btn-marketplace-create svg *,
.btn-marketplace-hero-create i,
.btn-marketplace-hero-create svg,
.btn-marketplace-hero-create svg *,
.btn.active i,
.btn.active svg,
.btn.active svg *,
.content-tabs > ul > li.active > a i,
.content-tabs > ul > li.active > a svg,
.content-tabs > ul > li.active > a svg *,
.content-tabs > ul > li.active > a .main-icon,
.content-tabs > ul > li.active > a .main-icon *,
.content-tabs.marketplace-tabs > ul > li.active > a i,
.content-tabs.marketplace-tabs > ul > li.active > a svg,
.content-tabs.marketplace-tabs > ul > li.active > a svg *,
.content-tabs.marketplace-tabs > ul > li.active > a .main-icon,
.content-tabs.marketplace-tabs > ul > li.active > a .main-icon * {
  color: #ffffff !important;
  fill: #ffffff !important;
}

/* ==========================================================================
   28. ULTRA-PREMIUM SHOPPING CART PAGE & GLASS SECTION BORDERS
   ========================================================================== */

/* Main Shopping Cart Card Container */
.nexus-cart-card,
.card:has(.js_shopping-checkout),
.card:has(.js_shipping-address) {
  background: #151a30 !important;
  border: 1.5px solid rgba(139, 92, 246, 0.35) !important;
  border-radius: 24px !important;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.55), inset 0 1px 0 rgba(255, 255, 255, 0.14) !important;
  backdrop-filter: blur(16px) !important;
  -webkit-backdrop-filter: blur(16px) !important;
  overflow: hidden !important;
  color: #f8fafc !important;
  margin-top: 10px !important;
}

body:not(.night-mode) .nexus-cart-card,
body:not(.night-mode) .card:has(.js_shopping-checkout) {
  background: #ffffff !important;
  border: 1.5px solid #e2e8f0 !important;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.06) !important;
}

/* Card Header with Border & Glass Effect */
.nexus-cart-card .card-header,
.card:has(.js_shopping-checkout) .card-header {
  background: rgba(15, 20, 38, 0.65) !important;
  border-bottom: 1.5px solid rgba(255, 255, 255, 0.1) !important;
  padding: 16px 24px !important;
  font-size: 17px !important;
  font-weight: 700 !important;
  color: #ffffff !important;
  display: flex !important;
  align-items: center !important;
}

.nexus-cart-card .card-header .main-icon,
.card:has(.js_shopping-checkout) .card-header .main-icon {
  fill: #818cf8 !important;
  color: #818cf8 !important;
  margin-right: 12px !important;
}

/* Section Title Glass Pills ("Your Addresses" & "Shopping Cart") */
.nexus-cart-card .section-title,
.card:has(.js_shopping-checkout) .section-title {
  background: rgba(15, 20, 38, 0.8) !important;
  border: 1.5px solid rgba(255, 255, 255, 0.18) !important;
  border-radius: 14px !important;
  padding: 12px 18px !important;
  font-size: 15px !important;
  font-weight: 700 !important;
  color: #ffffff !important;
  display: flex !important;
  align-items: center !important;
  gap: 10px !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.15), 0 4px 14px rgba(0, 0, 0, 0.35) !important;
  backdrop-filter: blur(12px) !important;
  -webkit-backdrop-filter: blur(12px) !important;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

.nexus-cart-card .section-title:hover,
.card:has(.js_shopping-checkout) .section-title:hover {
  border-color: rgba(129, 140, 248, 0.55) !important;
  transform: translateY(-2px) !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.25), 0 6px 18px rgba(99, 102, 241, 0.25) !important;
}

.nexus-cart-card .section-title .main-icon,
.card:has(.js_shopping-checkout) .section-title .main-icon {
  fill: #818cf8 !important;
  color: #818cf8 !important;
}

/* Subheadings ("ITEMS" & "SHIPPING ADDRESS") */
.nexus-cart-card .heading-small,
.card:has(.js_shopping-checkout) .heading-small {
  font-size: 12px !important;
  font-weight: 800 !important;
  text-transform: uppercase !important;
  letter-spacing: 1px !important;
  color: #818cf8 !important;
  margin: 22px 0 14px 0 !important;
  display: flex !important;
  align-items: center !important;
  gap: 8px !important;
}

/* Address Card Section (Left Column) */
.payment-plans {
  display: flex !important;
  flex-direction: column !important;
  gap: 16px !important;
}

.payment-plan {
  background: #151a30 !important;
  border: 1.5px solid rgba(255, 255, 255, 0.18) !important;
  border-radius: 18px !important;
  padding: 22px !important;
  box-shadow: 0 6px 22px rgba(0, 0, 0, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.12) !important;
  backdrop-filter: blur(14px) !important;
  -webkit-backdrop-filter: blur(14px) !important;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1) !important;
  position: relative !important;
  overflow: hidden !important;
}

.payment-plan:hover {
  border-color: #818cf8 !important;
  transform: translateY(-3px) !important;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.55), inset 0 1px 0 rgba(255, 255, 255, 0.22) !important;
}

.payment-plan .text-xxlg {
  font-size: 19px !important;
  font-weight: 800 !important;
  color: #ffffff !important;
  margin-bottom: 10px !important;
  display: flex !important;
  align-items: center !important;
}

.payment-plan div:not(.row):not([class*="col"]):not(.d-grid):not(.text-xxlg) {
  color: #cbd5e1 !important;
  font-size: 14px !important;
  line-height: 1.6 !important;
}

/* Address Action Buttons */
.payment-plan .btn-primary,
.payment-plan .btn-address-edit {
  background: #151a30 !important;
  border: 1.5px solid rgba(255, 255, 255, 0.25) !important;
  color: #ffffff !important;
  font-weight: 700 !important;
  border-radius: 10px !important;
  padding: 8px 16px !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.25), 0 2px 8px rgba(0, 0, 0, 0.35) !important;
  transition: all 0.25s ease !important;
}

.payment-plan .btn-primary:hover,
.payment-plan .btn-address-edit:hover {
  background: #1c2340 !important;
  border-color: rgba(255, 255, 255, 0.5) !important;
  color: #ffffff !important;
  transform: translateY(-1px) !important;
}

.payment-plan .btn-light.js_address-deleter,
.payment-plan .btn-address-delete {
  background: rgba(239, 68, 68, 0.12) !important;
  border: 1.5px solid rgba(239, 68, 68, 0.32) !important;
  color: #f87171 !important;
  border-radius: 10px !important;
  padding: 8px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  transition: all 0.25s ease !important;
}

.payment-plan .btn-light.js_address-deleter:hover,
.payment-plan .btn-address-delete:hover {
  background: #ef4444 !important;
  border-color: #ef4444 !important;
  color: #ffffff !important;
  transform: scale(1.06) !important;
  box-shadow: 0 4px 16px rgba(239, 68, 68, 0.45) !important;
}

.payment-plan .btn-light.js_address-deleter .danger-icon,
.payment-plan .btn-address-delete .danger-icon {
  fill: #f87171 !important;
  transition: fill 0.2s ease !important;
}

.payment-plan .btn-light.js_address-deleter:hover .danger-icon,
.payment-plan .btn-address-delete:hover .danger-icon,
.payment-plan .btn-light.js_address-deleter:hover .danger-icon path,
.payment-plan .btn-address-delete:hover .danger-icon path {
  fill: #ffffff !important;
}

/* "+ Add New" Address Card */
.payment-plan.new.address {
  min-height: 140px !important;
  background: rgba(21, 26, 48, 0.5) !important;
  border: 2px dashed rgba(129, 140, 248, 0.45) !important;
  border-radius: 18px !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 8px !important;
  color: #818cf8 !important;
  font-size: 15px !important;
  font-weight: 700 !important;
  cursor: pointer !important;
  backdrop-filter: blur(12px) !important;
  -webkit-backdrop-filter: blur(12px) !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08), 0 4px 16px rgba(0, 0, 0, 0.25) !important;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

.payment-plan.new.address:hover {
  border-color: #818cf8 !important;
  border-style: solid !important;
  background: #1c2340 !important;
  color: #ffffff !important;
  transform: translateY(-3px) scale(1.02) !important;
  box-shadow: 0 10px 28px rgba(99, 102, 241, 0.35), inset 0 0 15px rgba(99, 102, 241, 0.15) !important;
}

.payment-plan.new.address i {
  font-size: 24px !important;
  transition: transform 0.3s ease !important;
}

.payment-plan.new.address:hover i {
  transform: scale(1.25) rotate(90deg) !important;
}

/* Cart Items Card (Right Column) */
.nexus-cart-card .card.product,
.card:has(.js_shopping-checkout) .card.product {
  background: #151a30 !important;
  border: 1.5px solid rgba(255, 255, 255, 0.18) !important;
  border-radius: 18px !important;
  overflow: hidden !important;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.12) !important;
  backdrop-filter: blur(14px) !important;
  -webkit-backdrop-filter: blur(14px) !important;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1) !important;
  margin-bottom: 20px !important;
}

.nexus-cart-card .card.product:hover,
.card:has(.js_shopping-checkout) .card.product:hover {
  border-color: #818cf8 !important;
  transform: translateY(-3px) !important;
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.22) !important;
}

.nexus-cart-card .product-image,
.card:has(.js_shopping-checkout) .product-image {
  position: relative !important;
  overflow: hidden !important;
  background: #0f1426 !important;
}

.nexus-cart-card .product-image img,
.card:has(.js_shopping-checkout) .product-image img {
  width: 100% !important;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

.nexus-cart-card .card.product:hover .product-image img,
.card:has(.js_shopping-checkout) .card.product:hover .product-image img {
  transform: scale(1.05) !important;
}

.nexus-cart-card .product-price,
.card:has(.js_shopping-checkout) .product-price {
  background: rgba(15, 20, 38, 0.88) !important;
  border: 1px solid rgba(255, 255, 255, 0.25) !important;
  color: #10b981 !important;
  font-weight: 800 !important;
  font-size: 15px !important;
  border-radius: 10px !important;
  padding: 4px 10px !important;
  backdrop-filter: blur(8px) !important;
  -webkit-backdrop-filter: blur(8px) !important;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3) !important;
}

.nexus-cart-card .product-info,
.card:has(.js_shopping-checkout) .product-info {
  padding: 16px !important;
}

.nexus-cart-card .product-meta .title,
.card:has(.js_shopping-checkout) .product-meta .title {
  color: #ffffff !important;
  font-weight: 700 !important;
  font-size: 15px !important;
  text-decoration: none !important;
  display: block !important;
  margin-bottom: 6px !important;
  transition: color 0.2s ease !important;
}

.nexus-cart-card .product-meta .title:hover,
.card:has(.js_shopping-checkout) .product-meta .title:hover {
  color: #818cf8 !important;
}

/* Quantity Input Group */
.nexus-cart-card .input-group-text,
.card:has(.js_shopping-checkout) .input-group-text {
  background: rgba(15, 20, 38, 0.8) !important;
  border: 1.5px solid rgba(255, 255, 255, 0.16) !important;
  border-right: none !important;
  color: #94a3b8 !important;
  font-weight: 700 !important;
  font-size: 13px !important;
  border-radius: 10px 0 0 10px !important;
}

.nexus-cart-card select.js_shopping-update-cart,
.card:has(.js_shopping-checkout) select.js_shopping-update-cart {
  background: #151a30 !important;
  border: 1.5px solid rgba(255, 255, 255, 0.16) !important;
  color: #ffffff !important;
  font-weight: 700 !important;
  font-size: 13.5px !important;
  border-radius: 0 10px 10px 0 !important;
  padding: 6px 12px !important;
}

.nexus-cart-card select.js_shopping-update-cart:focus,
.card:has(.js_shopping-checkout) select.js_shopping-update-cart:focus {
  border-color: #818cf8 !important;
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.25) !important;
}

/* Delete Button in Cart Item */
.nexus-cart-card .btn-light.js_shopping-remove-from-cart,
.nexus-cart-card .btn-cart-item-delete,
.card:has(.js_shopping-checkout) .btn-light.js_shopping-remove-from-cart {
  background: rgba(239, 68, 68, 0.12) !important;
  border: 1.5px solid rgba(239, 68, 68, 0.32) !important;
  color: #f87171 !important;
  border-radius: 10px !important;
  height: 38px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  transition: all 0.25s ease !important;
}

.nexus-cart-card .btn-light.js_shopping-remove-from-cart:hover,
.nexus-cart-card .btn-cart-item-delete:hover,
.card:has(.js_shopping-checkout) .btn-light.js_shopping-remove-from-cart:hover {
  background: #ef4444 !important;
  border-color: #ef4444 !important;
  color: #ffffff !important;
  transform: translateY(-1px) !important;
  box-shadow: 0 4px 16px rgba(239, 68, 68, 0.45) !important;
}

.nexus-cart-card .btn-light.js_shopping-remove-from-cart:hover .danger-icon,
.nexus-cart-card .btn-cart-item-delete:hover .danger-icon,
.card:has(.js_shopping-checkout) .btn-light.js_shopping-remove-from-cart:hover .danger-icon,
.nexus-cart-card .btn-light.js_shopping-remove-from-cart:hover .danger-icon path,
.nexus-cart-card .btn-cart-item-delete:hover .danger-icon path,
.card:has(.js_shopping-checkout) .btn-light.js_shopping-remove-from-cart:hover .danger-icon path {
  fill: #ffffff !important;
}

/* Shipping Address Selector Section */
.shipping-address {
  background: #151a30 !important;
  border: 1.5px solid rgba(255, 255, 255, 0.18) !important;
  border-radius: 16px !important;
  padding: 16px 20px !important;
  margin-bottom: 12px !important;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.1) !important;
  backdrop-filter: blur(12px) !important;
  -webkit-backdrop-filter: blur(12px) !important;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1) !important;
  cursor: pointer !important;
}

.shipping-address:hover {
  border-color: rgba(129, 140, 248, 0.5) !important;
  background: #1a223e !important;
  transform: translateY(-1px) !important;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.4) !important;
}

.shipping-address:has(input:checked) {
  border-color: #818cf8 !important;
  border-width: 2px !important;
  background: #1c2442 !important;
  box-shadow: 0 6px 20px rgba(99, 102, 241, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.2) !important;
}

.shipping-address .form-check-label {
  color: #e2e8f0 !important;
  font-size: 14px !important;
  line-height: 1.5 !important;
  cursor: pointer !important;
}

.shipping-address .form-check-label strong {
  color: #ffffff !important;
  font-weight: 700 !important;
}

.shipping-address .form-check-input {
  background-color: rgba(15, 20, 38, 0.8) !important;
  border: 1.5px solid rgba(255, 255, 255, 0.3) !important;
  width: 18px !important;
  height: 18px !important;
  margin-top: 3px !important;
}

.shipping-address .form-check-input:checked {
  background-color: #818cf8 !important;
  border-color: #818cf8 !important;
}

/* Total Price Display */
.nexus-cart-card .text-end p .text-xxlg,
.card:has(.js_shopping-checkout) .text-end p .text-xxlg {
  color: #ffffff !important;
  font-size: 32px !important;
  font-weight: 800 !important;
  letter-spacing: -0.5px !important;
  text-shadow: 0 2px 14px rgba(99, 102, 241, 0.35) !important;
}

/* Dividers with Glass Line */
.nexus-cart-card .divider,
.card:has(.js_shopping-checkout) .divider {
  border-top: 1.5px solid rgba(255, 255, 255, 0.1) !important;
  margin: 20px 0 !important;
}

/* ==========================================================================
   CHECKOUT BUTTON - 3D GLASS BUTTON WITH LIGHT SWEEP SHINE ANIMATION
   ========================================================================== */
.btn.btn-success.js_shopping-checkout,
.btn-cart-checkout {
  background: #151a30 !important;
  background-color: #151a30 !important;
  color: #ffffff !important;
  font-size: 16px !important;
  font-weight: 800 !important;
  letter-spacing: 0.3px !important;
  border: 1.5px solid rgba(16, 185, 129, 0.55) !important;
  border-radius: 14px !important;
  padding: 12px 32px !important;
  height: 52px !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 10px !important;
  position: relative !important;
  overflow: hidden !important;
  cursor: pointer !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.35), inset 0 -1px 0 rgba(0, 0, 0, 0.4), 0 8px 24px rgba(0, 0, 0, 0.5), 0 0 16px rgba(16, 185, 129, 0.25) !important;
  backdrop-filter: blur(14px) !important;
  -webkit-backdrop-filter: blur(14px) !important;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

/* Light Sweep Shine Animation on Hover */
.btn.btn-success.js_shopping-checkout::after,
.btn-cart-checkout::after {
  content: '' !important;
  position: absolute !important;
  top: 0 !important;
  left: -130% !important;
  width: 60% !important;
  height: 100% !important;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.1),
    rgba(255, 255, 255, 0.45),
    transparent
  ) !important;
  transform: skewX(-25deg) !important;
  transition: left 0.75s cubic-bezier(0.16, 1, 0.3, 1) !important;
  pointer-events: none !important;
  z-index: 2 !important;
}

.btn.btn-success.js_shopping-checkout:hover::after,
.btn-cart-checkout:hover::after {
  left: 160% !important;
}

/* Checkout Button Hover State */
.btn.btn-success.js_shopping-checkout:hover,
.btn-cart-checkout:hover {
  background: #10b981 !important;
  background-color: #10b981 !important;
  border-color: rgba(255, 255, 255, 0.6) !important;
  color: #ffffff !important;
  transform: translateY(-2px) scale(1.02) !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.6), 0 12px 30px rgba(16, 185, 129, 0.55), 0 0 20px rgba(16, 185, 129, 0.4) !important;
}

.btn.btn-success.js_shopping-checkout:active,
.btn-cart-checkout:active {
  transform: translateY(1px) scale(0.99) !important;
  box-shadow: inset 0 2px 6px rgba(0, 0, 0, 0.5), 0 4px 12px rgba(16, 185, 129, 0.3) !important;
}

.btn.btn-success.js_shopping-checkout:disabled,
.btn-cart-checkout:disabled {
  background: #151a30 !important;
  border-color: rgba(255, 255, 255, 0.15) !important;
  opacity: 0.45 !important;
  cursor: not-allowed !important;
  transform: none !important;
  box-shadow: none !important;
}

.btn.btn-success.js_shopping-checkout i,
.btn-cart-checkout i {
  color: #ffffff !important;
  font-size: 16px !important;
  transition: transform 0.25s ease !important;
}

.btn.btn-success.js_shopping-checkout:hover i,
.btn-cart-checkout:hover i {
  transform: scale(1.15) !important;
}

/* ==========================================================================
   29. ADMIN SIDEBAR REFINEMENTS & PAID MODULES ALIGNMENT
   ========================================================================== */
.admin-sidebar .card {
  border-radius: 16px !important;
  border: 1.5px solid rgba(139, 92, 246, 0.22) !important;
  background: rgba(15, 23, 42, 0.75) !important;
  backdrop-filter: blur(16px) !important;
  -webkit-backdrop-filter: blur(16px) !important;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3) !important;
  overflow: hidden;
  margin-bottom: 16px !important;
}

.admin-sidebar .card-header.block-title {
  background: transparent !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08) !important;
  font-weight: 700 !important;
  letter-spacing: 0.05em;
  font-size: 13px !important;
  color: #94a3b8 !important;
  padding: 12px 16px !important;
  text-transform: uppercase;
}

.admin-sidebar .side-nav {
  padding: 8px !important;
  margin: 0 !important;
  display: flex !important;
  flex-direction: column !important;
  gap: 6px !important;
}

.admin-sidebar .side-nav li a {
  display: flex !important;
  align-items: center !important;
  justify-content: flex-start !important;
  gap: 12px !important;
  text-align: left !important;
  padding: 10px 14px !important;
  border-radius: 10px !important;
  font-size: 14px !important;
  font-weight: 500 !important;
  color: #cbd5e1 !important;
  background: rgba(255, 255, 255, 0.03) !important;
  border: 1px solid rgba(255, 255, 255, 0.06) !important;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

.admin-sidebar .side-nav li a:hover {
  background: rgba(21, 26, 48, 0.85) !important;
  border-color: rgba(139, 92, 246, 0.4) !important;
  color: #ffffff !important;
  transform: translateX(4px) !important;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.25) !important;
}

.admin-sidebar .side-nav li.active > a {
  background: #151A30 !important;
  border: 1.5px solid rgba(139, 92, 246, 0.6) !important;
  color: #ffffff !important;
  font-weight: 600 !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.3), 0 4px 16px rgba(139, 92, 246, 0.35) !important;
}

.admin-sidebar .side-nav li.active > a i,
.admin-sidebar .side-nav li.active > a svg,
.admin-sidebar .side-nav li.active > a .main-icon {
  color: #ffffff !important;
  fill: #ffffff !important;
}

.admin-sidebar .side-nav li a i,
.admin-sidebar .side-nav li a svg,
.admin-sidebar .side-nav li a .main-icon {
  width: 20px !important;
  text-align: center;
  flex-shrink: 0 !important;
  margin-right: 0 !important;
}

.admin-sidebar .side-nav li a span:not(.badge) {
  flex-grow: 0 !important;
  white-space: nowrap;
}

.admin-sidebar .side-nav a[data-bs-toggle="collapse"]:after,
.admin-sidebar .side-nav a[data-toggle="collapse"]:after {
  margin-left: auto !important;
}

.admin-sidebar .side-nav li a .badge {
  margin-left: auto !important;
}

/* Nested Sub-menus in Admin Sidebar */
.admin-sidebar .side-nav div.collapse ul {
  padding: 4px 0 4px 12px !important;
  margin: 4px 0 6px 14px !important;
  display: flex !important;
  flex-direction: column !important;
  gap: 4px !important;
  list-style: none !important;
  border-left: 1.5px solid rgba(139, 92, 246, 0.3) !important;
}

.admin-sidebar .side-nav div.collapse ul li a {
  padding: 7px 12px !important;
  font-size: 13px !important;
  font-weight: 500 !important;
  border-radius: 8px !important;
  background: transparent !important;
  border: 1px solid transparent !important;
  color: #94a3b8 !important;
}

.admin-sidebar .side-nav div.collapse ul li a:hover {
  background: rgba(255, 255, 255, 0.05) !important;
  border-color: rgba(255, 255, 255, 0.1) !important;
  color: #ffffff !important;
  transform: translateX(3px) !important;
}

.admin-sidebar .side-nav div.collapse ul li.active a {
  background: rgba(99, 102, 241, 0.18) !important;
  border-color: rgba(139, 92, 246, 0.4) !important;
  color: #ffffff !important;
  font-weight: 600 !important;
}

/* 3D Glass Save Button in Admin CP */
.btn-nexus-save,
.card-footer .btn-primary {
  background: #151a30 !important;
  border: 1.5px solid rgba(139, 92, 246, 0.45) !important;
  color: #ffffff !important;
  font-weight: 600 !important;
  font-size: 14px !important;
  padding: 10px 24px !important;
  border-radius: 12px !important;
  backdrop-filter: blur(14px) !important;
  -webkit-backdrop-filter: blur(14px) !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.28), inset 0 -1px 0 rgba(0, 0, 0, 0.4), 0 4px 16px rgba(0, 0, 0, 0.35) !important;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1) !important;
  position: relative !important;
  overflow: hidden !important;
}

.btn-nexus-save::after,
.card-footer .btn-primary::after {
  content: '' !important;
  position: absolute !important;
  top: -50% !important;
  left: -130% !important;
  width: 60% !important;
  height: 200% !important;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.12),
    rgba(255, 255, 255, 0.28),
    transparent
  ) !important;
  transform: skewX(-25deg) !important;
  transition: left 0.65s cubic-bezier(0.16, 1, 0.3, 1) !important;
  pointer-events: none !important;
}

.btn-nexus-save:hover::after,
.card-footer .btn-primary:hover::after {
  left: 150% !important;
}

.btn-nexus-save:hover,
.card-footer .btn-primary:hover {
  background: #1c2340 !important;
  border-color: rgba(139, 92, 246, 0.8) !important;
  color: #ffffff !important;
  transform: translateY(-2px) !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.4), 0 8px 24px rgba(139, 92, 246, 0.35) !important;
}

.btn-nexus-save:active,
.card-footer .btn-primary:active {
  transform: translateY(1px) scale(0.99) !important;
  box-shadow: inset 0 2px 6px rgba(0, 0, 0, 0.5), 0 2px 8px rgba(0, 0, 0, 0.2) !important;
}

.btn-nexus-save i,
.card-footer .btn-primary i {
  color: #ffffff !important;
  margin-right: 8px !important;
  font-size: 15px !important;
}

/* RTL Support for Admin Sidebar */
html[dir="rtl"] .admin-sidebar .side-nav li a {
  text-align: right !important;
}

html[dir="rtl"] .admin-sidebar .side-nav a[data-bs-toggle="collapse"]:after,
html[dir="rtl"] .admin-sidebar .side-nav a[data-toggle="collapse"]:after {
  margin-left: 0 !important;
  margin-right: auto !important;
}

html[dir="rtl"] .admin-sidebar .side-nav li a .badge {
  margin-left: 0 !important;
  margin-right: auto !important;
}

html[dir="rtl"] .admin-sidebar .side-nav div.collapse ul {
  padding: 4px 12px 4px 0 !important;
  margin: 4px 14px 6px 0 !important;
  border-left: none !important;
  border-right: 1.5px solid rgba(139, 92, 246, 0.3) !important;
}

/* ==========================================================================
   30. ULTRA-PREMIUM ORDERS & SALES PAGE (THEME MATCH & ANIMATIONS)
   ========================================================================== */

/* 1. Header Filter Bar (Orders & Sales) */
.nexus-orders-header-bar {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  flex-wrap: wrap !important;
  gap: 16px !important;
  padding: 16px 24px !important;
  border-radius: 18px !important;
  backdrop-filter: blur(16px) !important;
  -webkit-backdrop-filter: blur(16px) !important;
  transition: all 0.3s ease !important;
}

/* Day Mode: Header Bar */
body:not(.night-mode) .nexus-orders-header-bar {
  background: #ffffff !important;
  border: 1.5px solid #e2e8f0 !important;
  box-shadow: 0 4px 20px rgba(15, 23, 42, 0.05) !important;
}

/* Night Mode: Header Bar */
body.night-mode .nexus-orders-header-bar {
  background: rgba(21, 26, 48, 0.85) !important;
  border: 1.5px solid rgba(139, 92, 246, 0.35) !important;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.15) !important;
}

/* Header Title */
.nexus-orders-title {
  display: inline-flex !important;
  align-items: center !important;
  gap: 10px !important;
  font-size: 18px !important;
  font-weight: 700 !important;
  letter-spacing: -0.01em !important;
}

body:not(.night-mode) .nexus-orders-title {
  color: #0f172a !important;
}

body.night-mode .nexus-orders-title {
  color: #ffffff !important;
}

/* Orders Count Badge */
.nexus-orders-count-badge {
  background: linear-gradient(135deg, #6366f1 0%, #4f46e5 100%) !important;
  color: #ffffff !important;
  font-weight: 700 !important;
  padding: 4px 10px !important;
  font-size: 12px !important;
  box-shadow: 0 2px 8px rgba(99, 102, 241, 0.4) !important;
}

/* Search Box */
.nexus-orders-search-box {
  min-width: 260px !important;
}

.nexus-orders-search-box .input-group {
  border-radius: 12px !important;
  overflow: hidden !important;
  transition: all 0.25s ease !important;
}

body:not(.night-mode) .nexus-orders-search-box .input-group {
  background: #f8fafc !important;
  border: 1.5px solid #cbd5e1 !important;
}

body:not(.night-mode) .nexus-orders-search-box .input-group:focus-within {
  background: #ffffff !important;
  border-color: #6366f1 !important;
  box-shadow: 0 0 16px rgba(99, 102, 241, 0.2) !important;
}

body.night-mode .nexus-orders-search-box .input-group {
  background: rgba(15, 23, 42, 0.7) !important;
  border: 1.5px solid rgba(139, 92, 246, 0.3) !important;
}

body.night-mode .nexus-orders-search-box .input-group:focus-within {
  border-color: rgba(139, 92, 246, 0.8) !important;
  box-shadow: 0 0 16px rgba(139, 92, 246, 0.35) !important;
}

.nexus-orders-search-box .input-group-text {
  background: transparent !important;
  border: none !important;
  padding-left: 14px !important;
}

body:not(.night-mode) .nexus-orders-search-box .input-group-text {
  color: #64748b !important;
}

body.night-mode .nexus-orders-search-box .input-group-text {
  color: #94a3b8 !important;
}

.nexus-orders-search-box .form-control {
  background: transparent !important;
  border: none !important;
  padding: 8px 14px 8px 0 !important;
  font-size: 14px !important;
  box-shadow: none !important;
}

body:not(.night-mode) .nexus-orders-search-box .form-control {
  color: #0f172a !important;
}

body:not(.night-mode) .nexus-orders-search-box .form-control::placeholder {
  color: #94a3b8 !important;
}

body.night-mode .nexus-orders-search-box .form-control {
  color: #ffffff !important;
}

body.night-mode .nexus-orders-search-box .form-control::placeholder {
  color: #64748b !important;
}

/* 2. Main Order Card Container & Hover Animation */
.nexus-order-card {
  border-radius: 20px !important;
  backdrop-filter: blur(20px) !important;
  -webkit-backdrop-filter: blur(20px) !important;
  overflow: hidden !important;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.3s ease, box-shadow 0.3s ease !important;
  animation: nexusOrderFadeIn 0.4s cubic-bezier(0.16, 1, 0.3, 1) both !important;
}

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

body:not(.night-mode) .nexus-order-card {
  background: #ffffff !important;
  border: 1.5px solid #e2e8f0 !important;
  box-shadow: 0 4px 24px rgba(15, 23, 42, 0.06) !important;
}

body:not(.night-mode) .nexus-order-card:hover {
  border-color: #cbd5e1 !important;
  box-shadow: 0 12px 32px rgba(15, 23, 42, 0.1) !important;
  transform: translateY(-3px) !important;
}

body.night-mode .nexus-order-card {
  background: rgba(21, 26, 48, 0.85) !important;
  border: 1.5px solid rgba(139, 92, 246, 0.3) !important;
  box-shadow: 0 10px 36px rgba(0, 0, 0, 0.45) !important;
}

body.night-mode .nexus-order-card:hover {
  border-color: rgba(139, 92, 246, 0.65) !important;
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.55), 0 0 24px rgba(139, 92, 246, 0.25) !important;
  transform: translateY(-3px) !important;
}

/* 3. Order Card Header */
.nexus-order-card-header {
  transition: background 0.3s ease !important;
}

body:not(.night-mode) .nexus-order-card-header {
  background: #f8fafc !important;
  border-bottom: 1.5px solid #e2e8f0 !important;
}

body.night-mode .nexus-order-card-header {
  background: rgba(15, 23, 42, 0.6) !important;
  border-bottom: 1.5px solid rgba(139, 92, 246, 0.25) !important;
}

.nexus-order-meta-label {
  font-size: 11px !important;
  font-weight: 700 !important;
  text-transform: uppercase !important;
  letter-spacing: 0.06em !important;
  margin-bottom: 4px !important;
}

.nexus-order-meta-label i {
  margin-right: 8px !important;
}

[dir="rtl"] .nexus-order-meta-label i {
  margin-right: 0 !important;
  margin-left: 8px !important;
}

body:not(.night-mode) .nexus-order-meta-label {
  color: #64748b !important;
}

body.night-mode .nexus-order-meta-label {
  color: #94a3b8 !important;
}

.nexus-order-meta-val {
  font-size: 15px !important;
  font-weight: 600 !important;
}

body:not(.night-mode) .nexus-order-meta-val {
  color: #0f172a !important;
}

body.night-mode .nexus-order-meta-val {
  color: #ffffff !important;
}

/* 4. Status Badges */
.nexus-badge-status {
  padding: 6px 14px !important;
  border-radius: 30px !important;
  font-size: 12px !important;
  font-weight: 700 !important;
  display: inline-flex !important;
  align-items: center !important;
  letter-spacing: 0.02em !important;
  text-transform: uppercase !important;
  backdrop-filter: blur(8px) !important;
}

.nexus-badge-status.status-delivered {
  background: rgba(16, 185, 129, 0.15) !important;
  border: 1.5px solid rgba(16, 185, 129, 0.5) !important;
  color: #059669 !important;
}

body.night-mode .nexus-badge-status.status-delivered {
  background: rgba(16, 185, 129, 0.18) !important;
  border-color: rgba(16, 185, 129, 0.6) !important;
  color: #34d399 !important;
  box-shadow: 0 2px 10px rgba(16, 185, 129, 0.3) !important;
}

.nexus-badge-status.status-canceled {
  background: rgba(239, 68, 68, 0.15) !important;
  border: 1.5px solid rgba(239, 68, 68, 0.5) !important;
  color: #dc2626 !important;
}

body.night-mode .nexus-badge-status.status-canceled {
  background: rgba(239, 68, 68, 0.18) !important;
  border-color: rgba(239, 68, 68, 0.6) !important;
  color: #f87171 !important;
  box-shadow: 0 2px 10px rgba(239, 68, 68, 0.3) !important;
}

.nexus-badge-status.status-shipped {
  background: rgba(59, 130, 246, 0.15) !important;
  border: 1.5px solid rgba(59, 130, 246, 0.5) !important;
  color: #2563eb !important;
}

body.night-mode .nexus-badge-status.status-shipped {
  background: rgba(59, 130, 246, 0.18) !important;
  border-color: rgba(59, 130, 246, 0.6) !important;
  color: #60a5fa !important;
  box-shadow: 0 2px 10px rgba(59, 130, 246, 0.3) !important;
}

.nexus-badge-status.status-pending {
  background: rgba(245, 158, 11, 0.15) !important;
  border: 1.5px solid rgba(245, 158, 11, 0.5) !important;
  color: #d97706 !important;
}

body.night-mode .nexus-badge-status.status-pending {
  background: rgba(245, 158, 11, 0.18) !important;
  border-color: rgba(245, 158, 11, 0.6) !important;
  color: #fbbf24 !important;
  box-shadow: 0 2px 10px rgba(245, 158, 11, 0.3) !important;
}

/* 5. Action Buttons */
.btn-order-action {
  font-weight: 600 !important;
  font-size: 12px !important;
  letter-spacing: 0.04em !important;
  padding: 8px 18px !important;
  border-radius: 10px !important;
  position: relative !important;
  overflow: hidden !important;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

/* Day Mode: Action buttons */
body:not(.night-mode) .btn-order-invoice {
  background: #ecfdf5 !important;
  border: 1.5px solid #10b981 !important;
  color: #047857 !important;
  box-shadow: 0 2px 8px rgba(16, 185, 129, 0.15) !important;
}

body:not(.night-mode) .btn-order-invoice:hover {
  background: #10b981 !important;
  border-color: #059669 !important;
  color: #ffffff !important;
  transform: translateY(-2px) !important;
  box-shadow: 0 6px 18px rgba(16, 185, 129, 0.35) !important;
}

body:not(.night-mode) .btn-order-update {
  background: #f5f3ff !important;
  border: 1.5px solid #8b5cf6 !important;
  color: #6d28d9 !important;
  box-shadow: 0 2px 8px rgba(139, 92, 246, 0.15) !important;
}

body:not(.night-mode) .btn-order-update:hover {
  background: #6366f1 !important;
  border-color: #4f46e5 !important;
  color: #ffffff !important;
  transform: translateY(-2px) !important;
  box-shadow: 0 6px 18px rgba(99, 102, 241, 0.35) !important;
}

/* Night Mode: Action buttons */
body.night-mode .btn-order-action {
  background: #151a30 !important;
  color: #ffffff !important;
  backdrop-filter: blur(12px) !important;
  -webkit-backdrop-filter: blur(12px) !important;
}

body.night-mode .btn-order-invoice {
  border: 1.5px solid rgba(16, 185, 129, 0.55) !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.25), 0 4px 14px rgba(16, 185, 129, 0.25) !important;
}

body.night-mode .btn-order-invoice:hover {
  background: #10b981 !important;
  border-color: #34d399 !important;
  color: #ffffff !important;
  transform: translateY(-2px) !important;
  box-shadow: 0 6px 20px rgba(16, 185, 129, 0.5) !important;
}

body.night-mode .btn-order-update {
  border: 1.5px solid rgba(139, 92, 246, 0.55) !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.25), 0 4px 14px rgba(139, 92, 246, 0.25) !important;
}

body.night-mode .btn-order-update:hover {
  background: #6366f1 !important;
  border-color: #818cf8 !important;
  color: #ffffff !important;
  transform: translateY(-2px) !important;
  box-shadow: 0 6px 20px rgba(99, 102, 241, 0.5) !important;
}

/* Light Sweep Shine Animation on Buttons */
.btn-order-action::after,
.btn-order-download::after {
  content: '' !important;
  position: absolute !important;
  top: -50% !important;
  left: -130% !important;
  width: 60% !important;
  height: 200% !important;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.15),
    rgba(255, 255, 255, 0.35),
    transparent
  ) !important;
  transform: skewX(-25deg) !important;
  transition: left 0.65s cubic-bezier(0.16, 1, 0.3, 1) !important;
  pointer-events: none !important;
}

.btn-order-action:hover::after,
.btn-order-download:hover::after {
  left: 150% !important;
}

/* 6. Section Banners */
.nexus-order-section-banner {
  display: flex !important;
  align-items: center !important;
  padding: 10px 16px !important;
  border-radius: 12px !important;
  font-size: 14px !important;
  font-weight: 700 !important;
  letter-spacing: 0.02em !important;
  transition: all 0.25s ease !important;
}

.nexus-order-section-banner i {
  margin-right: 12px !important;
  width: 22px !important;
  text-align: center !important;
  flex-shrink: 0 !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  font-size: 16px !important;
}

[dir="rtl"] .nexus-order-section-banner i {
  margin-right: 0 !important;
  margin-left: 12px !important;
}

body:not(.night-mode) .nexus-order-section-banner {
  background: #f1f5f9 !important;
  border: 1.5px solid #e2e8f0 !important;
  color: #0f172a !important;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.04) !important;
}

body.night-mode .nexus-order-section-banner {
  background: rgba(15, 23, 42, 0.65) !important;
  border: 1.5px solid rgba(139, 92, 246, 0.25) !important;
  color: #f8fafc !important;
  backdrop-filter: blur(10px) !important;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2) !important;
}

/* 7. Subcards: Download Box, Address Box, Payments Box */
.nexus-order-subcard,
.nexus-order-address-box,
.nexus-order-payments-box {
  border-radius: 14px !important;
  transition: all 0.25s ease !important;
}

body:not(.night-mode) .nexus-order-subcard,
body:not(.night-mode) .nexus-order-address-box,
body:not(.night-mode) .nexus-order-payments-box {
  background: #f8fafc !important;
  border: 1.5px solid #e2e8f0 !important;
}

body:not(.night-mode) .nexus-order-subcard:hover,
body:not(.night-mode) .nexus-order-address-box:hover,
body:not(.night-mode) .nexus-order-payments-box:hover {
  border-color: #cbd5e1 !important;
  box-shadow: 0 4px 16px rgba(15, 23, 42, 0.05) !important;
}

body.night-mode .nexus-order-subcard,
body.night-mode .nexus-order-address-box,
body.night-mode .nexus-order-payments-box {
  background: rgba(15, 23, 42, 0.45) !important;
  border: 1.5px solid rgba(255, 255, 255, 0.1) !important;
}

body.night-mode .nexus-order-subcard:hover,
body.night-mode .nexus-order-address-box:hover,
body.night-mode .nexus-order-payments-box:hover {
  border-color: rgba(139, 92, 246, 0.4) !important;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3) !important;
}

/* Download Button */
.btn-order-download {
  font-weight: 600 !important;
  font-size: 13px !important;
  padding: 8px 18px !important;
  border-radius: 10px !important;
  position: relative !important;
  overflow: hidden !important;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

body:not(.night-mode) .btn-order-download {
  background: #f0f9ff !important;
  border: 1.5px solid #0284c7 !important;
  color: #0369a1 !important;
  box-shadow: 0 2px 8px rgba(2, 132, 199, 0.15) !important;
}

body:not(.night-mode) .btn-order-download:hover {
  background: #0284c7 !important;
  border-color: #0369a1 !important;
  color: #ffffff !important;
  transform: translateY(-2px) !important;
  box-shadow: 0 6px 18px rgba(2, 132, 199, 0.35) !important;
}

body.night-mode .btn-order-download {
  background: #151a30 !important;
  border: 1.5px solid rgba(56, 189, 248, 0.5) !important;
  color: #ffffff !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.25), 0 4px 12px rgba(56, 189, 248, 0.2) !important;
}

body.night-mode .btn-order-download:hover {
  background: #0284c7 !important;
  border-color: #38bdf8 !important;
  color: #ffffff !important;
  transform: translateY(-2px) !important;
  box-shadow: 0 6px 20px rgba(56, 189, 248, 0.45) !important;
}

/* Shipping Address Rows & Explicit Icon Spacing (Fixed!) */
.nexus-address-buyer {
  font-size: 15px !important;
  display: flex !important;
  align-items: center !important;
}

body:not(.night-mode) .nexus-address-buyer {
  color: #0f172a !important;
}

body.night-mode .nexus-address-buyer {
  color: #ffffff !important;
}

.nexus-address-row {
  font-size: 13.5px !important;
  margin-bottom: 8px !important;
  display: flex !important;
  align-items: center !important;
}

body:not(.night-mode) .nexus-address-row {
  color: #334155 !important;
}

body.night-mode .nexus-address-row {
  color: #94a3b8 !important;
}

.nexus-address-buyer i,
.nexus-address-row i {
  margin-right: 14px !important;
  width: 22px !important;
  text-align: center !important;
  flex-shrink: 0 !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  font-size: 15px !important;
}

[dir="rtl"] .nexus-address-buyer i,
[dir="rtl"] .nexus-address-row i {
  margin-right: 0 !important;
  margin-left: 14px !important;
}

/* Payments Box typography */
.nexus-order-price-val {
  font-size: 16px !important;
  font-weight: 600 !important;
}

body:not(.night-mode) .nexus-order-price-val {
  color: #0f172a !important;
}

body.night-mode .nexus-order-price-val {
  color: #ffffff !important;
}

.nexus-order-divider {
  height: 1px !important;
}

body:not(.night-mode) .nexus-order-divider {
  background: #e2e8f0 !important;
}

body.night-mode .nexus-order-divider {
  background: rgba(255, 255, 255, 0.1) !important;
}

.nexus-order-total-label {
  font-size: 15px !important;
}

body:not(.night-mode) .nexus-order-total-label {
  color: #0f172a !important;
}

body.night-mode .nexus-order-total-label {
  color: #f8fafc !important;
}

.nexus-tracking-number {
  font-size: 14px !important;
}

body:not(.night-mode) .nexus-tracking-number {
  color: #0f172a !important;
}

body.night-mode .nexus-tracking-number {
  color: #f8fafc !important;
}

.nexus-order-price-total {
  font-size: 20px !important;
  font-weight: 800 !important;
}

body:not(.night-mode) .nexus-order-price-total {
  color: #059669 !important;
}

body.night-mode .nexus-order-price-total {
  color: #10b981 !important;
  text-shadow: 0 0 16px rgba(16, 185, 129, 0.35) !important;
}

/* 8. Order Item Product Cards */
.nexus-order-product-card {
  border-radius: 16px !important;
  overflow: hidden !important;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

body:not(.night-mode) .nexus-order-product-card {
  background: #ffffff !important;
  border: 1.5px solid #e2e8f0 !important;
  box-shadow: 0 2px 10px rgba(15, 23, 42, 0.05) !important;
}

body:not(.night-mode) .nexus-order-product-card:hover {
  border-color: #cbd5e1 !important;
  transform: translateY(-3px) !important;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.1) !important;
}

body.night-mode .nexus-order-product-card {
  background: rgba(15, 23, 42, 0.6) !important;
  border: 1.5px solid rgba(139, 92, 246, 0.3) !important;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.25) !important;
}

body.night-mode .nexus-order-product-card:hover {
  border-color: rgba(139, 92, 246, 0.65) !important;
  transform: translateY(-3px) !important;
  box-shadow: 0 8px 24px rgba(139, 92, 246, 0.3) !important;
}

.nexus-order-product-card .product-image {
  position: relative !important;
  overflow: hidden !important;
  aspect-ratio: 1 / 1 !important;
}

body:not(.night-mode) .nexus-order-product-card .product-image {
  background: #f1f5f9 !important;
}

body.night-mode .nexus-order-product-card .product-image {
  background: #0b0f19 !important;
}

.nexus-order-product-card .product-image img {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

.nexus-order-product-card:hover .product-image img {
  transform: scale(1.08) !important;
}

.nexus-order-product-card .product-price {
  position: absolute !important;
  bottom: 10px !important;
  left: 10px !important;
  font-weight: 700 !important;
  font-size: 13px !important;
  padding: 4px 10px !important;
  border-radius: 8px !important;
  backdrop-filter: blur(8px) !important;
  z-index: 2 !important;
}

body:not(.night-mode) .nexus-order-product-card .product-price {
  background: rgba(255, 255, 255, 0.95) !important;
  border: 1px solid #10b981 !important;
  color: #047857 !important;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08) !important;
}

body.night-mode .nexus-order-product-card .product-price {
  background: rgba(21, 26, 48, 0.9) !important;
  border: 1px solid rgba(16, 185, 129, 0.5) !important;
  color: #34d399 !important;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.4) !important;
}

.nexus-order-product-card .product-meta .title {
  font-size: 14px !important;
  font-weight: 600 !important;
  text-decoration: none !important;
  transition: color 0.2s ease !important;
}

body:not(.night-mode) .nexus-order-product-card .product-meta .title {
  color: #0f172a !important;
}

body:not(.night-mode) .nexus-order-product-card .product-meta .title:hover {
  color: #6366f1 !important;
}

body.night-mode .nexus-order-product-card .product-meta .title {
  color: #f8fafc !important;
}

body.night-mode .nexus-order-product-card .product-meta .title:hover {
  color: #818cf8 !important;
}

.nexus-qty-pill {
  display: inline-flex !important;
  align-items: center !important;
  padding: 3px 10px !important;
  border-radius: 20px !important;
  font-size: 12px !important;
}

body:not(.night-mode) .nexus-qty-pill {
  background: #f1f5f9 !important;
  border: 1px solid #e2e8f0 !important;
  color: #475569 !important;
}

body.night-mode .nexus-qty-pill {
  background: rgba(255, 255, 255, 0.06) !important;
  border: 1px solid rgba(255, 255, 255, 0.12) !important;
  color: #cbd5e1 !important;
}

/* Glass Alert */
.nexus-alert-glass {
  border-radius: 14px !important;
  backdrop-filter: blur(10px) !important;
}

body:not(.night-mode) .nexus-alert-glass {
  background: #fffbeb !important;
  border: 1.5px solid #fde68a !important;
  color: #92400e !important;
}

body.night-mode .nexus-alert-glass {
  background: rgba(245, 158, 11, 0.15) !important;
  border: 1.5px solid rgba(245, 158, 11, 0.4) !important;
  color: #fde68a !important;
}

/* 9. Marketplace Tabs Theme Match */
.content-tabs.marketplace-tabs {
  margin-bottom: 25px !important;
  border-radius: 16px !important;
  overflow: hidden !important;
  transition: all 0.3s ease !important;
}

body:not(.night-mode) .content-tabs.marketplace-tabs {
  background: #ffffff !important;
  border: 1.5px solid #e2e8f0 !important;
  box-shadow: 0 4px 20px rgba(15, 23, 42, 0.04) !important;
}

body:not(.night-mode) .content-tabs.marketplace-tabs > ul > li > a {
  color: #64748b !important;
  font-weight: 600 !important;
  transition: all 0.2s ease !important;
}

body:not(.night-mode) .content-tabs.marketplace-tabs > ul > li > a:hover {
  color: #6366f1 !important;
  background: #f8fafc !important;
}

body:not(.night-mode) .content-tabs.marketplace-tabs > ul > li.active > a {
  color: #6366f1 !important;
  font-weight: 700 !important;
  border-bottom: 3px solid #6366f1 !important;
  background: rgba(99, 102, 241, 0.06) !important;
}

body.night-mode .content-tabs.marketplace-tabs {
  background: rgba(21, 26, 48, 0.85) !important;
  border: 1.5px solid rgba(139, 92, 246, 0.3) !important;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.35) !important;
  backdrop-filter: blur(16px) !important;
}

body.night-mode .content-tabs.marketplace-tabs > ul > li > a {
  color: #94a3b8 !important;
  font-weight: 600 !important;
}

body.night-mode .content-tabs.marketplace-tabs > ul > li > a:hover {
  color: #ffffff !important;
  background: rgba(255, 255, 255, 0.04) !important;
}

body.night-mode .content-tabs.marketplace-tabs > ul > li.active > a {
  color: #818cf8 !important;
  font-weight: 700 !important;
  border-bottom: 3px solid #818cf8 !important;
  background: rgba(139, 92, 246, 0.15) !important;
}

/* 10. Sales Stat Panels */
.stat-panel {
  border-radius: 16px !important;
  overflow: hidden !important;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08) !important;
  margin-bottom: 25px !important;
  transition: transform 0.25s ease, box-shadow 0.25s ease !important;
}

.stat-panel:hover {
  transform: translateY(-3px) !important;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15) !important;
}

/* ==========================================================================
   31. MODERN SEGMENTED POST ACTIONS BAR (EXACT IMAGE 2 REPLICA)
   ========================================================================== */

/* Post Body and Stats spacing adjustment */
.post .post-body {
  padding-bottom: 0 !important;
}

.post-stats {
  padding: 8px 16px 6px 16px !important;
  margin: 0 !important;
  font-size: 13px !important;
  border-top: none !important;
}

/* Main Segmented Actions Bar Container */
.nexus-post-actions,
.post-actions.nexus-post-actions {
  display: flex !important;
  align-items: stretch !important;
  justify-content: space-between !important;
  width: 100% !important;
  margin: 0 !important;
  padding: 0 !important;
  box-sizing: border-box !important;
  border-top: 1px solid #e2e8f0 !important;
  border-bottom: none !important;
  border-left: none !important;
  border-right: none !important;
  background: transparent !important;
  border-radius: 0 0 16px 16px !important;
  overflow: visible !important;
  position: relative !important;
  z-index: 10 !important;
}

body.night-mode .nexus-post-actions,
body.night-mode .post-actions.nexus-post-actions {
  border-top: 1px solid rgba(255, 255, 255, 0.08) !important;
}

/* Each Segment Button in the Action Bar */
.nexus-post-actions .action-btn {
  flex: 1 1 0px !important;
  min-width: 0 !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 8px !important;
  padding: 12px 6px !important;
  min-height: 48px !important;
  font-size: 13.5px !important;
  font-weight: 600 !important;
  line-height: 1 !important;
  color: #475569 !important;
  background: transparent !important;
  border: none !important;
  border-right: 1px solid #e2e8f0 !important;
  border-radius: 0 !important;
  text-decoration: none !important;
  cursor: pointer !important;
  user-select: none !important;
  white-space: nowrap !important;
  box-shadow: none !important;
  transform: none !important;
  position: relative !important;
  overflow: visible !important;
  transition: background 0.15s ease, color 0.15s ease !important;
}

.nexus-post-actions .action-btn.reactions-wrapper {
  position: relative !important;
  overflow: visible !important;
  z-index: 50 !important;
}

.nexus-post-actions .action-btn:first-child {
  border-bottom-left-radius: 16px !important;
}

body.night-mode .nexus-post-actions .action-btn {
  color: #94a3b8 !important;
  border-right: 1px solid rgba(255, 255, 255, 0.08) !important;
}

/* Remove border on last button */
.nexus-post-actions .action-btn:last-child {
  border-right: none !important;
  border-bottom-right-radius: 16px !important;
}

/* RTL Support */
[dir="rtl"] .nexus-post-actions .action-btn {
  border-right: none !important;
  border-left: 1px solid #e2e8f0 !important;
}

[dir="rtl"] .nexus-post-actions .action-btn:first-child {
  border-bottom-left-radius: 0 !important;
  border-bottom-right-radius: 16px !important;
}

[dir="rtl"] .nexus-post-actions .action-btn:last-child {
  border-left: none !important;
  border-bottom-right-radius: 0 !important;
  border-bottom-left-radius: 16px !important;
}

[dir="rtl"] body.night-mode .nexus-post-actions .action-btn {
  border-left: 1px solid rgba(255, 255, 255, 0.08) !important;
}

/* Hover States */
.nexus-post-actions .action-btn:hover {
  background: rgba(0, 0, 0, 0.025) !important;
  color: #0f172a !important;
}

body.night-mode .nexus-post-actions .action-btn:hover {
  background: rgba(255, 255, 255, 0.04) !important;
  color: #ffffff !important;
}

/* Views counter segment styling */
.nexus-post-actions .action-btn.action-btn-views {
  cursor: default !important;
}

.nexus-post-actions .action-btn.action-btn-views:hover {
  background: transparent !important;
  color: inherit !important;
}

/* Icons styling & smooth hover micro-interaction */
.nexus-post-actions .action-btn .action-icon,
.nexus-post-actions .action-btn i {
  font-size: 16px !important;
  color: inherit !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  flex-shrink: 0 !important;
  line-height: 1 !important;
  transition: transform 0.2s cubic-bezier(0.34, 1.56, 0.64, 1) !important;
}

.nexus-post-actions .action-btn:hover:not(.action-btn-views) .action-icon,
.nexus-post-actions .action-btn:hover:not(.action-btn-views) i {
  transform: scale(1.15) !important;
}

/* Reaction Button inner wrapper alignment */
.nexus-post-actions .action-btn .reaction-btn {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 8px !important;
  width: 100% !important;
  height: 100% !important;
}

.nexus-post-actions .action-btn .reaction-btn-icon {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  line-height: 1 !important;
}

/* Floating Reactions Dock Container */
.nexus-post-actions .reactions-container,
.reactions-wrapper .reactions-container {
  display: none;
  position: absolute !important;
  bottom: calc(100% + 8px) !important;
  left: 0 !important;
  top: auto !important;
  right: auto !important;
  z-index: 999999 !important;
  background: #ffffff !important;
  border: 1px solid #e2e8f0 !important;
  border-radius: 9999px !important;
  padding: 4px 8px !important;
  box-shadow: 0 12px 36px -4px rgba(0, 0, 0, 0.25), 0 0 0 1px rgba(99, 102, 241, 0.15) !important;
  backdrop-filter: blur(20px) saturate(180%) !important;
  -webkit-backdrop-filter: blur(20px) saturate(180%) !important;
  white-space: nowrap !important;
  box-sizing: border-box !important;
  width: max-content !important;
  max-width: calc(100vw - 32px) !important;
  pointer-events: auto !important;
}

body.night-mode .nexus-post-actions .reactions-container,
body.night-mode .reactions-wrapper .reactions-container {
  background: rgba(30, 41, 59, 0.96) !important;
  border-color: rgba(255, 255, 255, 0.15) !important;
  box-shadow: 0 16px 45px -6px rgba(0, 0, 0, 0.6), 0 0 20px rgba(129, 140, 248, 0.2) !important;
}

[dir="rtl"] .nexus-post-actions .reactions-container,
[dir="rtl"] .reactions-wrapper .reactions-container {
  left: auto !important;
  right: 0 !important;
}

/* Invisible Hover Bridge between button and dock */
.reactions-wrapper .reactions-container::after {
  content: "" !important;
  position: absolute !important;
  left: 0 !important;
  right: 0 !important;
  bottom: -16px !important;
  height: 20px !important;
  background: transparent !important;
  pointer-events: auto !important;
}

/* Display reaction dock on hover, active class, or jQuery .show() */
.reactions-wrapper:hover .reactions-container,
.reactions-container:hover,
.reactions-container.show,
.reactions-container[style*="display: block"],
.reactions-container[style*="display: flex"] {
  display: flex !important;
  visibility: visible !important;
  opacity: 1 !important;
  pointer-events: auto !important;
  align-items: center !important;
}

/* Reaction Emoji Item sizing and hover zoom */
.reactions-wrapper .reactions-container .reactions_item {
  width: 42px !important;
  height: 42px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  float: none !important;
  margin: 0 2px !important;
  border-radius: 50% !important;
  cursor: pointer !important;
  transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1) !important;
  position: relative !important;
  padding: 0 !important;
  box-sizing: border-box !important;
}

.reactions-wrapper .reactions-container .reactions_item:hover {
  transform: scale(1.35) translateY(-5px) !important;
  z-index: 10 !important;
}

.reactions-wrapper .reactions-container .reactions_item .emoji {
  width: 32px !important;
  height: 32px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
}

.reactions-wrapper .reactions-container .reactions_item .emoji img {
  width: 32px !important;
  height: 32px !important;
  object-fit: contain !important;
}

/* Comment Counter Badge (Vibrant red pill matching Image 2) */
.nexus-action-badge {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  min-width: 18px !important;
  height: 18px !important;
  padding: 0 5px !important;
  font-size: 11px !important;
  font-weight: 700 !important;
  line-height: 1 !important;
  color: #ffffff !important;
  background: #e11d48 !important;
  border-radius: 10px !important;
  margin-left: 2px !important;
  box-shadow: 0 2px 6px rgba(225, 29, 72, 0.35) !important;
}

[dir="rtl"] .nexus-action-badge {
  margin-left: 0 !important;
  margin-right: 2px !important;
}

/* Responsive adjustments for tablets and mobiles */
@media (max-width: 767px) {
  .nexus-post-actions .action-btn {
    padding: 10px 4px !important;
    font-size: 12px !important;
    gap: 5px !important;
    min-height: 44px !important;
  }
  .nexus-post-actions .action-btn .action-icon,
  .nexus-post-actions .action-btn i {
    font-size: 14px !important;
  }
  .nexus-action-badge {
    min-width: 16px !important;
    height: 16px !important;
    font-size: 10px !important;
    padding: 0 4px !important;
  }
}

@media (max-width: 480px) {
  .nexus-post-actions .action-btn {
    padding: 8px 2px !important;
    font-size: 11px !important;
    gap: 3px !important;
    min-height: 40px !important;
  }
  .nexus-post-actions .action-btn .action-icon,
  .nexus-post-actions .action-btn i {
    font-size: 13px !important;
  }
}

/* ==========================================================================
   31. NEXUS CALENDAR WIDGET & BLINKING DATE ANIMATION
   ========================================================================== */
.nexus-calendar-widget {
  border-radius: var(--nexus-radius-lg, 16px) !important;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  overflow: hidden;
}

.nexus-cal-icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  background: rgba(99, 102, 241, 0.12);
  color: #6366f1;
}

.nexus-cal-title {
  font-size: 15px;
  letter-spacing: -0.2px;
}

.nexus-cal-clock-badge {
  font-family: 'SF Mono', 'Roboto Mono', Menlo, Consolas, monospace;
  font-size: 11px;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 20px;
  background: rgba(99, 102, 241, 0.08);
  border: 1px solid rgba(99, 102, 241, 0.2);
  color: #6366f1;
  letter-spacing: 0.5px;
  display: inline-flex;
  align-items: center;
}

body.night-mode .nexus-cal-clock-badge {
  background: rgba(99, 102, 241, 0.15);
  border-color: rgba(99, 102, 241, 0.35);
  color: #a5b4fc;
  box-shadow: 0 0 12px rgba(99, 102, 241, 0.15);
}

.nexus-cal-header {
  padding: 4px 0;
}

.nexus-cal-month-year {
  font-size: 14px;
  font-weight: 700;
  letter-spacing: -0.2px;
}

.btn-nexus-cal-nav {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(99, 102, 241, 0.08);
  border: 1px solid rgba(99, 102, 241, 0.15);
  color: #6366f1;
  transition: all 0.2s ease;
}

.btn-nexus-cal-nav:hover {
  background: #6366f1;
  color: #ffffff;
  transform: scale(1.08);
}

body.night-mode .btn-nexus-cal-nav {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.1);
  color: #cbd5e1;
}

body.night-mode .btn-nexus-cal-nav:hover {
  background: #6366f1;
  color: #ffffff;
}

.nexus-cal-weekdays {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  text-align: center;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--nexus-text-muted, #64748b);
  letter-spacing: 0.5px;
}

.nexus-cal-days {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 4px;
  text-align: center;
}

.nexus-cal-day {
  height: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 500;
  border-radius: 9px;
  color: var(--nexus-text-main, #1e293b);
  cursor: pointer;
  position: relative;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  user-select: none;
}

.nexus-cal-day:hover:not(.today):not(.other-month) {
  background: rgba(99, 102, 241, 0.12);
  color: #6366f1;
  transform: translateY(-1px);
}

.nexus-cal-day.other-month {
  opacity: 0.28;
  cursor: default;
  color: var(--nexus-text-muted, #94a3b8);
}

/* BLINKING TODAY DATE ANIMATION */
.nexus-cal-day.today.blink-active {
  background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%) !important;
  color: #ffffff !important;
  font-weight: 800 !important;
  box-shadow: 0 4px 15px rgba(99, 102, 241, 0.45);
  animation: nexusDateBlinkPulse 2s infinite ease-in-out;
  z-index: 2;
}

.nexus-cal-day.today.blink-active::after {
  content: '';
  position: absolute;
  bottom: 3px;
  width: 4px;
  height: 4px;
  background: #ffffff;
  border-radius: 50%;
  animation: nexusDotBlink 1.4s infinite ease-in-out;
}

@keyframes nexusDateBlinkPulse {
  0% {
    transform: scale(1);
    box-shadow: 0 0 0 0 rgba(99, 102, 241, 0.7), 0 4px 14px rgba(99, 102, 241, 0.4);
  }
  50% {
    transform: scale(1.08);
    box-shadow: 0 0 0 7px rgba(99, 102, 241, 0), 0 6px 20px rgba(139, 92, 246, 0.7);
  }
  100% {
    transform: scale(1);
    box-shadow: 0 0 0 0 rgba(99, 102, 241, 0.7), 0 4px 14px rgba(99, 102, 241, 0.4);
  }
}

@keyframes nexusDotBlink {
  0%, 100% {
    opacity: 1;
    transform: scale(1);
  }
  50% {
    opacity: 0.2;
    transform: scale(0.6);
  }
}

.nexus-cal-today-indicator {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: var(--nexus-text-muted, #64748b);
  font-weight: 500;
}

.nexus-cal-blink-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #10b981;
  display: inline-block;
  box-shadow: 0 0 8px rgba(16, 185, 129, 0.7);
  animation: nexusIndicatorBlink 1.5s infinite ease-in-out;
}

@keyframes nexusIndicatorBlink {
  0%, 100% {
    opacity: 1;
    transform: scale(1);
  }
  50% {
    opacity: 0.3;
    transform: scale(0.7);
  }
}

.btn-nexus-cal-today {
  font-size: 11px;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: 20px;
  background: rgba(99, 102, 241, 0.08);
  border: 1px solid rgba(99, 102, 241, 0.2);
  color: #6366f1;
  transition: all 0.2s ease;
}

.btn-nexus-cal-today:hover {
  background: #6366f1;
  color: #ffffff;
  border-color: #6366f1;
}

body.night-mode .btn-nexus-cal-today {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.15);
  color: #cbd5e1;
}

body.night-mode .btn-nexus-cal-today:hover {
  background: #6366f1;
  color: #ffffff;
}

/* ==========================================================================
   32. ULTRA-PREMIUM ANIMATED TRASH CAN DELETE BUTTON (TEMP/DELETE BUTTON)
   ========================================================================== */

/* Universal Delete Button (.del-btn) */
.del-btn {
  --del-bg: linear-gradient(135deg, #e11d48 0%, #be123c 100%);
  --del-hover: linear-gradient(135deg, #f43f5e 0%, #e11d48 100%);
  --del-shadow: 0 4px 18px rgba(225, 29, 72, 0.45);
  --del-shadow-hover: 0 6px 24px rgba(244, 63, 94, 0.65);
  --del-border: rgba(244, 63, 94, 0.5);

  font-family: inherit;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.5;
  background: var(--del-bg) !important;
  border: 1px solid var(--del-border) !important;
  border-radius: 12px !important;
  color: #ffffff !important;
  cursor: pointer;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  outline: none !important;
  padding: 8px 18px !important;
  box-shadow: var(--del-shadow) !important;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
  position: relative !important;
  user-select: none;
  text-decoration: none !important;
  -webkit-tap-highlight-color: transparent;
}

body:not(.night-mode) .del-btn {
  --del-bg: linear-gradient(135deg, #e11d48 0%, #dc2626 100%);
  --del-hover: linear-gradient(135deg, #f43f5e 0%, #e11d48 100%);
  --del-shadow: 0 4px 14px rgba(225, 29, 72, 0.25);
  --del-shadow-hover: 0 6px 20px rgba(244, 63, 94, 0.35);
  --del-border: rgba(225, 29, 72, 0.35);
}

.del-btn:not(:disabled):hover,
.del-btn:not(:disabled):focus-visible {
  background: var(--del-hover) !important;
  box-shadow: var(--del-shadow-hover) !important;
  transform: translateY(-2px);
  color: #ffffff !important;
}

.del-btn:not(:disabled):active {
  transform: translateY(0);
}

.del-btn:disabled,
.del-btn[disabled] {
  opacity: 0.9 !important;
  cursor: wait !important;
}

/* Compact sizes */
.del-btn.del-btn-sm {
  font-size: 12px !important;
  padding: 5px 12px !important;
  border-radius: 8px !important;
}

.del-btn.del-btn-sm .del-btn__icon {
  width: 22px !important;
  height: 22px !important;
  margin: -3px 4px -3px -4px !important;
}

/* Icon-only compact for tables */
.del-btn.del-btn-icon {
  padding: 6px !important;
  width: 32px !important;
  height: 32px !important;
  border-radius: 50% !important;
}

.del-btn.del-btn-icon .del-btn__icon {
  margin: 0 !important;
}

/* SVG Trash Can Icon */
.del-btn__icon {
  display: inline-block !important;
  vertical-align: middle;
  margin: -4px 6px -4px -6px !important;
  pointer-events: none;
  width: 28px !important;
  height: 28px !important;
  flex-shrink: 0 !important;
}

.del-btn__icon-lid {
  transform-origin: 12px 5px;
}

.del-btn__icon-can {
  transform-origin: 12px 18px;
}

.del-btn__letters {
  display: inline-flex !important;
  align-items: center !important;
  letter-spacing: 0.02em;
}

.del-btn__letter,
.del-btn__letter-box {
  display: inline-block !important;
}

/* Animation triggers */
.del-btn[data-running="false"] .del-btn__letters {
  animation: delFadeIn 0.3s cubic-bezier(0.77, 0, 0.18, 1) forwards;
}

.del-btn[data-running="true"] .del-btn__icon-lid,
.del-btn[data-running="true"] .del-btn__icon-can,
.del-btn[data-running="true"] .del-btn__icon-can-fill,
.del-btn[data-running="true"] .del-btn__letter,
.del-btn[data-running="true"] .del-btn__letter-box {
  animation: trashLid 1.8s cubic-bezier(0.77, 0, 0.18, 1) forwards;
}

.del-btn[data-running="true"] .del-btn__icon-can {
  animation-name: trashCan;
}

.del-btn[data-running="true"] .del-btn__icon-can-fill {
  animation-name: trashCanFill;
}

.del-btn[data-running="true"] .del-btn__letter-box {
  animation-name: letterDrop;
  animation-timing-function: cubic-bezier(0.77, 0, 1, 1);
}

.del-btn[data-running="true"] .del-btn__letter-box:nth-child(1) .del-btn__letter {
  animation-name: letter1;
}

.del-btn[data-running="true"] .del-btn__letter-box:nth-child(2),
.del-btn[data-running="true"] .del-btn__letter-box:nth-child(2) .del-btn__letter {
  animation-delay: 0.04s;
}

.del-btn[data-running="true"] .del-btn__letter-box:nth-child(2) .del-btn__letter {
  animation-name: letter2;
}

.del-btn[data-running="true"] .del-btn__letter-box:nth-child(3),
.del-btn[data-running="true"] .del-btn__letter-box:nth-child(3) .del-btn__letter {
  animation-delay: 0.08s;
}

.del-btn[data-running="true"] .del-btn__letter-box:nth-child(3) .del-btn__letter {
  animation-name: letter3;
}

.del-btn[data-running="true"] .del-btn__letter-box:nth-child(4),
.del-btn[data-running="true"] .del-btn__letter-box:nth-child(4) .del-btn__letter {
  animation-delay: 0.12s;
}

.del-btn[data-running="true"] .del-btn__letter-box:nth-child(4) .del-btn__letter {
  animation-name: letter4;
}

.del-btn[data-running="true"] .del-btn__letter-box:nth-child(5),
.del-btn[data-running="true"] .del-btn__letter-box:nth-child(5) .del-btn__letter {
  animation-delay: 0.16s;
}

.del-btn[data-running="true"] .del-btn__letter-box:nth-child(5) .del-btn__letter {
  animation-name: letter5;
}

.del-btn[data-running="true"] .del-btn__letter-box:nth-child(6),
.del-btn[data-running="true"] .del-btn__letter-box:nth-child(6) .del-btn__letter {
  animation-delay: 0.2s;
}

.del-btn[data-running="true"] .del-btn__letter-box:nth-child(6) .del-btn__letter {
  animation-name: letter6;
}

/* Keyframes */
@keyframes delFadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes trashLid {
  from, 86%, to {
    transform: translate(0, 0) rotate(0);
  }
  33.33%, 46% {
    animation-timing-function: cubic-bezier(0.77, 0, 1, 1);
    transform: translate(-2px, -4px) rotate(-40deg);
  }
  54%, 70% {
    animation-timing-function: linear;
    transform: translate(0, 0) rotate(0);
  }
  62% {
    animation-timing-function: linear;
    transform: translate(0, -2px) rotate(9deg);
  }
  78% {
    animation-timing-function: cubic-bezier(0, 0, 0.18, 1);
    transform: translate(0, -1px) rotate(-6deg);
  }
}

@keyframes trashCan {
  from, 86%, to {
    transform: translate(0, 0) rotate(0);
  }
  33.33%, 46% {
    animation-timing-function: cubic-bezier(0.77, 0, 1, 1);
    transform: translate(-8px, 3px) rotate(40deg);
  }
  54%, 70% {
    animation-timing-function: linear;
    transform: translate(0, 0) rotate(0);
  }
  62% {
    animation-timing-function: linear;
    transform: translate(-1px, 0) rotate(-4deg);
  }
  78% {
    animation-timing-function: cubic-bezier(0, 0, 0.18, 1);
    transform: translate(0, 0) rotate(2deg);
  }
}

@keyframes trashCanFill {
  from, 25%, to {
    y: 24px;
  }
  66.67%, 83.33% {
    y: 12px;
  }
}

@keyframes letterDrop {
  from, 33.33% {
    transform: translate(0, 0);
  }
  41.67%, to {
    transform: translate(0, 0.625em);
  }
}

@keyframes letter1 {
  from {
    transform: translate(0, 0) rotate(0);
  }
  33.33% {
    transform: translate(0.75em, 0) rotate(30deg) scale(1);
  }
  41.67% {
    transform: translate(-2.375em, 0) rotate(-135deg) scale(0.75);
  }
  46%, to {
    transform: translate(-2.375em, 0) rotate(-135deg) scale(0);
  }
}

@keyframes letter2 {
  from {
    transform: translate(0, 0) rotate(0);
  }
  33.33% {
    transform: translate(0.75em, 0) rotate(30deg) scale(1);
  }
  41.67% {
    transform: translate(-3em, 0) rotate(-135deg) scale(0.75);
  }
  46%, to {
    transform: translate(-3em, 0) rotate(-135deg) scale(0);
  }
}

@keyframes letter3 {
  from {
    transform: translate(0, 0) rotate(0);
  }
  33.33% {
    transform: translate(0.75em, 0) rotate(30deg) scale(1);
  }
  41.67% {
    transform: translate(-3.375em, 0) rotate(-135deg) scale(0.75);
  }
  46%, to {
    transform: translate(-3.375em, 0) rotate(-135deg) scale(0);
  }
}

@keyframes letter4 {
  from {
    transform: translate(0, 0) rotate(0);
  }
  33.33% {
    transform: translate(0.75em, 0) rotate(30deg) scale(1);
  }
  41.67% {
    transform: translate(-3.75em, 0) rotate(-135deg) scale(0.75);
  }
  46%, to {
    transform: translate(-3.75em, 0) rotate(-135deg) scale(0);
  }
}

@keyframes letter5 {
  from {
    transform: translate(0, 0) rotate(0);
  }
  33.33% {
    transform: translate(0.75em, 0) rotate(30deg) scale(1);
  }
  41.67% {
    transform: translate(-4.125em, 0) rotate(-135deg) scale(0.75);
  }
  46%, to {
    transform: translate(-4.125em, 0) rotate(-135deg) scale(0);
  }
}

@keyframes letter6 {
  from {
    transform: translate(0, 0) rotate(0);
  }
  33.33% {
    transform: translate(0.75em, 0) rotate(30deg) scale(1);
  }
  41.67% {
    transform: translate(-4.75em, 0) rotate(-135deg) scale(0.75);
  }
  46%, to {
    transform: translate(-4.75em, 0) rotate(-135deg) scale(0);
  }
}

/* ==========================================================================
   33. ULTRA-PREMIUM ON/OFF SWITCH SYSTEM (TEMP/BUTTON ON OFF)
   ========================================================================== */

/* Universal .switch container */
.switch {
  position: relative !important;
  display: inline-block !important;
  width: 62px !important;
  height: 32px !important;
  margin: 0 !important;
  vertical-align: middle !important;
  cursor: pointer !important;
  user-select: none !important;
  -webkit-tap-highlight-color: transparent !important;
}

.switch input {
  opacity: 0 !important;
  width: 0 !important;
  height: 0 !important;
  position: absolute !important;
  pointer-events: none !important;
}

/* Capsule Panel (.slider) */
.switch .slider {
  position: absolute !important;
  cursor: pointer !important;
  top: 0 !important;
  left: 0 !important;
  right: 0 !important;
  bottom: 0 !important;
  background-color: #1a223f !important;
  border: 1.5px solid rgba(139, 92, 246, 0.35) !important;
  box-shadow: inset 0 2px 6px rgba(0, 0, 0, 0.45) !important;
  transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1) !important;
  overflow: hidden !important;
}

/* Day Mode panel */
body:not(.night-mode) .switch .slider {
  background-color: #e2e8f0 !important;
  border: 1.5px solid #cbd5e1 !important;
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.08) !important;
}

.switch .slider.round {
  border-radius: 9999px !important;
}

/* Circular 3D Knob (.slider.round:before) */
.switch .slider.round:before {
  position: absolute !important;
  content: "" !important;
  height: 24px !important;
  width: 24px !important;
  left: 3px !important;
  bottom: 2.5px !important;
  background: linear-gradient(135deg, #f43f5e 0%, #e11d48 100%) !important;
  border-radius: 50% !important;
  box-shadow: 0 2px 6px rgba(244, 63, 94, 0.45), inset 0 1px 1px rgba(255, 255, 255, 0.4) !important;
  transition: all 0.35s cubic-bezier(0.34, 1.56, 0.64, 1) !important;
  z-index: 2 !important;
}

/* Checked (ON) State */
.switch input:checked + .slider {
  background-color: rgba(99, 102, 241, 0.22) !important;
  border-color: rgba(139, 92, 246, 0.7) !important;
  box-shadow: inset 0 2px 5px rgba(0, 0, 0, 0.3), 0 0 14px rgba(139, 92, 246, 0.3) !important;
}

body:not(.night-mode) .switch input:checked + .slider {
  background-color: #f0fdf4 !important;
  border-color: #10b981 !important;
  box-shadow: inset 0 1px 3px rgba(16, 185, 129, 0.15), 0 0 12px rgba(16, 185, 129, 0.25) !important;
}

.switch input:checked + .slider.round:before {
  transform: translateX(30px) !important;
  background: linear-gradient(135deg, #10b981 0%, #059669 100%) !important;
  box-shadow: 0 2px 8px rgba(16, 185, 129, 0.55), inset 0 1px 1px rgba(255, 255, 255, 0.45) !important;
}

/* Focus and hover states */
.switch:hover .slider.round:before {
  transform: scale(1.06) !important;
}

.switch:hover input:checked + .slider.round:before {
  transform: translateX(30px) scale(1.06) !important;
}

/* Compact switch (.switch.sm) */
.switch.sm {
  width: 46px !important;
  height: 24px !important;
}

.switch.sm .slider.round:before {
  height: 18px !important;
  width: 18px !important;
  left: 2px !important;
  bottom: 1.5px !important;
}

.switch.sm input:checked + .slider.round:before {
  transform: translateX(22px) !important;
}

.switch.sm:hover .slider.round:before {
  transform: scale(1.05) !important;
}

.switch.sm:hover input:checked + .slider.round:before {
  transform: translateX(22px) scale(1.05) !important;
}

/* Robot Hand SVG inside Switch */
.switch .nexus-robot-svg {
  position: absolute !important;
  top: 0 !important;
  left: 0 !important;
  width: 100% !important;
  height: 100% !important;
  pointer-events: none !important;
  z-index: 1 !important;
  overflow: visible !important;
}

/* ==========================================================================
   34. NEXUS ULTRA-PREMIUM GLASS AUTH & INTERACTIVE MASCOT SYSTEM
   ========================================================================== */

/* Auth Wrapper & Ambient Lighting Mesh */
.nexus-auth-wrapper {
  position: relative;
  min-height: calc(100vh - 140px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 30px 15px 25px;
  overflow: hidden;
}

.nexus-auth-blobs {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: 0;
}

.nexus-blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(85px);
  opacity: 0.42;
  pointer-events: none;
}

.nexus-blob-1 {
  width: 360px;
  height: 360px;
  background: rgba(99, 102, 241, 0.45);
  top: 5%;
  left: 12%;
  animation: nexusBlobFloat1 20s ease-in-out infinite alternate;
}

.nexus-blob-2 {
  width: 400px;
  height: 400px;
  background: rgba(236, 72, 153, 0.35);
  bottom: 8%;
  right: 12%;
  animation: nexusBlobFloat2 24s ease-in-out infinite alternate;
}

.nexus-blob-3 {
  width: 300px;
  height: 300px;
  background: rgba(14, 165, 233, 0.32);
  top: 40%;
  left: 45%;
  animation: nexusBlobFloat3 18s ease-in-out infinite alternate;
}

@keyframes nexusBlobFloat1 {
  0% { transform: translate(0, 0) scale(1); }
  100% { transform: translate(40px, 30px) scale(1.12); }
}

@keyframes nexusBlobFloat2 {
  0% { transform: translate(0, 0) scale(1); }
  100% { transform: translate(-35px, -25px) scale(1.08); }
}

@keyframes nexusBlobFloat3 {
  0% { transform: translate(0, 0) scale(1); }
  100% { transform: translate(-25px, 35px) scale(1.15); }
}

/* Auth Header */
.nexus-auth-header {
  position: relative;
  z-index: 2;
  margin-bottom: 24px;
}

.nexus-auth-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  border-radius: 9999px;
  background: rgba(99, 102, 241, 0.1);
  border: 1px solid rgba(99, 102, 241, 0.2);
  font-size: 13px;
  font-weight: 600;
  color: var(--nexus-primary);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.pulse-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #10b981;
  box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7);
  animation: nexusPulseDot 2s infinite;
}

@keyframes nexusPulseDot {
  0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7); }
  70% { transform: scale(1); box-shadow: 0 0 0 8px rgba(16, 185, 129, 0); }
  100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}

.nexus-auth-title {
  font-size: 28px;
  font-weight: 800;
  letter-spacing: -0.5px;
  margin-bottom: 6px;
  color: var(--nexus-text);
}

.nexus-auth-subtitle {
  font-size: 14px;
  color: var(--nexus-text-muted);
  line-height: 1.5;
  margin-bottom: 0;
}

.nexus-gradient-text {
  background: var(--nexus-gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  font-weight: 700;
}

/* Mascot Container & Animations */
.nexus-mascot-container {
  position: relative;
  z-index: 6;
  margin-bottom: -16px;
  pointer-events: none;
}

.nexus-mascot {
  display: inline-block;
  filter: drop-shadow(0 14px 28px rgba(99, 102, 241, 0.25));
  transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.nexus-mascot-svg {
  overflow: visible;
  display: block;
  margin: 0 auto;
}

/* Mascot Components & Transitions */
.mascot-paw {
  transition: transform 0.45s cubic-bezier(0.34, 1.56, 0.64, 1), opacity 0.3s ease;
}

.mascot-paw.left-paw {
  transform-origin: 62px 154px;
}

.mascot-paw.right-paw {
  transform-origin: 138px 154px;
}

.mascot-pupil {
  transition: transform 0.22s ease-out, opacity 0.22s ease;
}

.mascot-eyelid,
.mascot-closed-line {
  transition: opacity 0.22s ease;
  opacity: 0;
}

.mascot-mouth {
  transition: transform 0.3s ease;
  transform-origin: 100px 103px;
}

/* Idle Natural Blinking */
@keyframes mascotIdleBlink {
  0%, 88%, 94%, 100% {
    transform: scaleY(1);
  }
  91% {
    transform: scaleY(0.08);
  }
}

.nexus-mascot:not(.mascot-blind):not(.mascot-peeking) .mascot-eyes-group {
  animation: mascotIdleBlink 4.5s infinite ease-in-out;
  transform-origin: 100px 76px;
}

/* State 1: Watching Input / Typing (.mascot-watching) */
.nexus-mascot.mascot-watching {
  transform: translateY(2px) rotate(1deg);
}

.nexus-mascot.mascot-watching .mascot-eyes-group {
  animation: none;
}

/* State 2: Password Focused / Eyes Covered (.mascot-blind) */
.nexus-mascot.mascot-blind {
  transform: translateY(1px);
}

.nexus-mascot.mascot-blind .left-paw {
  transform: translate(14px, -78px) rotate(16deg);
}

.nexus-mascot.mascot-blind .right-paw {
  transform: translate(-14px, -78px) rotate(-16deg);
}

.nexus-mascot.mascot-blind .mascot-pupil {
  opacity: 0 !important;
  transform: none !important;
}

.nexus-mascot.mascot-blind .mascot-eyelid {
  opacity: 0.8 !important;
}

.nexus-mascot.mascot-blind .mascot-closed-line {
  opacity: 1 !important;
}

.nexus-mascot.mascot-blind .mascot-eyes-group {
  animation: none;
}

/* State 3: Password Revealed / Peeking Through Fingers (.mascot-peeking) */
.nexus-mascot.mascot-peeking {
  transform: translateY(2px) rotate(-1deg);
}

.nexus-mascot.mascot-peeking .left-paw {
  /* Left paw lowered to cheek right below eye so eye can peek */
  transform: translate(12px, -52px) rotate(14deg);
}

.nexus-mascot.mascot-peeking .right-paw {
  /* Right paw stays firmly covering right eye */
  transform: translate(-14px, -78px) rotate(-16deg);
}

.nexus-mascot.mascot-peeking .left-eye .mascot-pupil {
  opacity: 1 !important;
  transform: translate(1px, 2px) !important;
  transform-origin: 76px 76px;
}

.nexus-mascot.mascot-peeking .left-eye .mascot-closed-line,
.nexus-mascot.mascot-peeking .left-eye .mascot-eyelid {
  opacity: 0 !important;
}

.nexus-mascot.mascot-peeking .right-eye .mascot-pupil {
  opacity: 0 !important;
  transform: none !important;
}

.nexus-mascot.mascot-peeking .right-eye .mascot-closed-line {
  opacity: 1 !important;
}

.nexus-mascot.mascot-peeking .mascot-mouth {
  transform: translateY(1px);
}

.nexus-mascot.mascot-peeking .mascot-eyes-group {
  animation: none;
}

/* Ultra-Premium Glassmorphism Auth Card */
.nexus-auth-card-container {
  position: relative;
  z-index: 4;
}

.nexus-auth-card-container .fr_auth_form,
.nexus-auth-card-container .card-register {
  background: rgba(255, 255, 255, 0.76) !important;
  backdrop-filter: blur(24px) saturate(190%) !important;
  -webkit-backdrop-filter: blur(24px) saturate(190%) !important;
  border: 1px solid rgba(255, 255, 255, 0.65) !important;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.08), 0 0 0 1px rgba(255, 255, 255, 0.5) inset, 0 10px 25px -5px rgba(99, 102, 241, 0.12) !important;
  border-radius: 26px !important;
  padding: 32px 28px !important;
  position: relative;
  overflow: visible;
}

body.night-mode .nexus-auth-card-container .fr_auth_form,
body.night-mode .nexus-auth-card-container .card-register {
  background: rgba(15, 23, 42, 0.8) !important;
  border: 1px solid rgba(255, 255, 255, 0.12) !important;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(255, 255, 255, 0.08) inset, 0 10px 25px -5px rgba(99, 102, 241, 0.25) !important;
}

/* Modern Auth Switcher Tabs */
.nexus-auth-switcher {
  display: flex;
  background: rgba(0, 0, 0, 0.04);
  border-radius: 14px;
  padding: 4px;
  gap: 6px;
  margin-bottom: 24px;
  border: 1px solid rgba(0, 0, 0, 0.04);
}

body.night-mode .nexus-auth-switcher {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.08);
}

.nexus-switcher-btn {
  flex: 1;
  border: none;
  background: transparent;
  padding: 10px 16px;
  font-size: 14px;
  font-weight: 600;
  color: #64748b;
  border-radius: 10px;
  transition: all 0.25s ease;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.nexus-switcher-btn:hover {
  color: var(--nexus-primary);
}

.nexus-switcher-btn.active {
  background: #ffffff;
  color: var(--nexus-primary);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.08);
  font-weight: 700;
}

body.night-mode .nexus-switcher-btn.active {
  background: rgba(255, 255, 255, 0.12);
  color: #ffffff;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.3);
}

/* Sleek Glass Input Fields */
.fr_welcome_field {
  position: relative !important;
  margin-bottom: 16px !important;
}

.fr_welcome_field input,
.fr_welcome_field select,
.nexus-auth-card-container .form-group .form-control,
.nexus-auth-card-container .form-group .form-select {
  border-radius: 14px !important;
  border: 1.5px solid rgba(203, 213, 225, 0.7) !important;
  background: rgba(255, 255, 255, 0.72) !important;
  backdrop-filter: blur(8px) !important;
  -webkit-backdrop-filter: blur(8px) !important;
  padding: 10px 48px !important;
  font-size: 14px !important;
  font-weight: 500 !important;
  width: 100% !important;
  height: 52px !important;
  color: var(--nexus-text) !important;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1) !important;
  outline: none !important;
}

body.night-mode .fr_welcome_field input,
body.night-mode .fr_welcome_field select,
body.night-mode .nexus-auth-card-container .form-group .form-control,
body.night-mode .nexus-auth-card-container .form-group .form-select {
  background: rgba(30, 41, 59, 0.65) !important;
  border-color: rgba(255, 255, 255, 0.12) !important;
  color: #ffffff !important;
}

.fr_welcome_field input:focus,
.fr_welcome_field select:focus,
.nexus-auth-card-container .form-group .form-control:focus,
.nexus-auth-card-container .form-group .form-select:focus {
  border-color: var(--nexus-primary) !important;
  background: rgba(255, 255, 255, 0.98) !important;
  box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.18) !important;
}

body.night-mode .fr_welcome_field input:focus,
body.night-mode .fr_welcome_field select:focus,
body.night-mode .nexus-auth-card-container .form-group .form-control:focus,
body.night-mode .nexus-auth-card-container .form-group .form-select:focus {
  background: rgba(30, 41, 59, 0.9) !important;
  border-color: var(--nexus-primary) !important;
  box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.3) !important;
}

/* Leading Input Icons */
.fr_welcome_field > svg.position-absolute,
.nexus-auth-card-container .input-group-text svg,
.nexus-auth-card-container .input-group-text i {
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  color: #94a3b8;
  margin: 0 !important;
  width: 20px !important;
  height: 20px !important;
  pointer-events: none;
  transition: color 0.2s ease;
  z-index: 2;
}

.fr_welcome_field:focus-within > svg.position-absolute,
.nexus-auth-card-container .form-group:focus-within .input-group-text i {
  color: var(--nexus-primary) !important;
}

/* Password Eye Toggle Button - Bulletproof Glass & Contrast */
.js_toggle-password,
button.js_toggle-password {
  position: absolute !important;
  right: 12px !important;
  left: auto !important;
  top: 50% !important;
  transform: translateY(-50%) !important;
  cursor: pointer !important;
  width: 38px !important;
  height: 38px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  border-radius: 12px !important;
  color: #ffffff !important;
  background: rgba(255, 255, 255, 0.08) !important;
  border: 1px solid rgba(255, 255, 255, 0.16) !important;
  padding: 0 !important;
  margin: 0 !important;
  outline: none !important;
  box-sizing: border-box !important;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1) !important;
  z-index: 10 !important;
  -webkit-tap-highlight-color: transparent !important;
}

body:not(.night-mode) .js_toggle-password,
body:not(.night-mode) button.js_toggle-password {
  background: rgba(15, 23, 42, 0.06) !important;
  border: 1px solid rgba(15, 23, 42, 0.12) !important;
  color: #1e293b !important;
}

.js_toggle-password:hover,
button.js_toggle-password:hover {
  color: #ffffff !important;
  background: rgba(99, 102, 241, 0.28) !important;
  border-color: var(--nexus-primary, #6366f1) !important;
  box-shadow: 0 0 14px rgba(99, 102, 241, 0.4) !important;
}

body:not(.night-mode) .js_toggle-password:hover,
body:not(.night-mode) button.js_toggle-password:hover {
  color: var(--nexus-primary) !important;
  background: rgba(99, 102, 241, 0.12) !important;
  border-color: rgba(99, 102, 241, 0.3) !important;
}

.js_toggle-password svg,
button.js_toggle-password svg {
  width: 20px !important;
  height: 20px !important;
  min-width: 20px !important;
  min-height: 20px !important;
  stroke: #ffffff !important;
  stroke-width: 2px !important;
  fill: none !important;
  pointer-events: none !important;
  display: block !important;
  margin: 0 !important;
  padding: 0 !important;
  top: auto !important;
  left: auto !important;
  right: auto !important;
  bottom: auto !important;
  transform: none !important;
  position: static !important;
  opacity: 1 !important;
  visibility: visible !important;
}

body:not(.night-mode) .js_toggle-password svg,
body:not(.night-mode) button.js_toggle-password svg {
  stroke: #1e293b !important;
}

.js_toggle-password svg.x-hidden,
button.js_toggle-password svg.x-hidden {
  display: none !important;
}

.input-group .js_toggle-password,
.input-group button.js_toggle-password {
  position: relative !important;
  right: auto !important;
  top: auto !important;
  transform: none !important;
  border-radius: 0 14px 14px 0 !important;
  height: auto !important;
}

/* Primary Auth Submit Button - Ultra-Modern Frosted Glassmorphism */
.fr_welcome_btn,
.nexus-auth-card-container .btn-primary[type="submit"],
.nexus-auth-card-container button[type="submit"] {
  position: relative !important;
  height: 52px !important;
  border-radius: 14px !important;
  font-size: 15px !important;
  font-weight: 700 !important;
  letter-spacing: 0.3px !important;
  color: #ffffff !important;
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.75) 0%, rgba(139, 92, 246, 0.7) 50%, rgba(168, 85, 247, 0.65) 100%) !important;
  backdrop-filter: blur(16px) saturate(190%) !important;
  -webkit-backdrop-filter: blur(16px) saturate(190%) !important;
  border: 1px solid rgba(255, 255, 255, 0.38) !important;
  box-shadow: 0 8px 24px -4px rgba(99, 102, 241, 0.4), 
              inset 0 1px 1px 0 rgba(255, 255, 255, 0.5), 
              inset 0 -1px 2px 0 rgba(0, 0, 0, 0.15) !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  overflow: hidden !important;
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1) !important;
  width: 100% !important;
  cursor: pointer !important;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.25);
}

/* Specular Top Glass Highlight */
.fr_welcome_btn::before,
.nexus-auth-card-container .btn-primary[type="submit"]::before,
.nexus-auth-card-container button[type="submit"]::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 48%;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.22) 0%, rgba(255, 255, 255, 0) 100%);
  border-radius: 13px 13px 0 0;
  pointer-events: none;
}

.fr_welcome_btn:hover,
.nexus-auth-card-container .btn-primary[type="submit"]:hover,
.nexus-auth-card-container button[type="submit"]:hover {
  transform: translateY(-2px) !important;
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.88) 0%, rgba(139, 92, 246, 0.82) 50%, rgba(168, 85, 247, 0.78) 100%) !important;
  border-color: rgba(255, 255, 255, 0.6) !important;
  box-shadow: 0 14px 32px -4px rgba(99, 102, 241, 0.55), 
              0 0 20px rgba(168, 85, 247, 0.35), 
              inset 0 1px 2px 0 rgba(255, 255, 255, 0.7) !important;
  color: #ffffff !important;
}

.fr_welcome_btn:active,
.nexus-auth-card-container .btn-primary[type="submit"]:active,
.nexus-auth-card-container button[type="submit"]:active {
  transform: translateY(1px) scale(0.99) !important;
  box-shadow: 0 4px 12px rgba(99, 102, 241, 0.35), 
              inset 0 1px 1px 0 rgba(255, 255, 255, 0.3) !important;
}

/* Remember Me & Links */
.nexus-auth-card-container .form-check-input {
  border-radius: 6px;
  width: 18px;
  height: 18px;
}

.nexus-auth-card-container .form-check-input:checked {
  background-color: var(--nexus-primary);
  border-color: var(--nexus-primary);
}

/* Auth Trust Badges */
.nexus-auth-footer {
  margin-top: 18px;
  position: relative;
  z-index: 2;
}

.nexus-auth-trust-badges {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 12px;
  color: var(--nexus-text-muted);
  font-weight: 500;
  padding: 6px 14px;
  border-radius: 9999px;
  background: rgba(255, 255, 255, 0.4);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.5);
}

body.night-mode .nexus-auth-trust-badges {
  background: rgba(30, 41, 59, 0.4);
  border-color: rgba(255, 255, 255, 0.08);
}

.nexus-auth-trust-badges .dot-sep {
  opacity: 0.4;
}

/* Spacing Fix: Footer on Auth Pages */
.nexus-auth-page #nexus-back-to-top,
.nexus-auth-wrapper ~ #nexus-back-to-top {
  display: none !important;
}

/* Remove Badges per User Request */
.nexus-auth-badge,
.nexus-auth-footer,
.nexus-auth-trust-badges {
  display: none !important;
}

.nexus-auth-page .footer,
body.nexus-auth-page .footer,
body.nexus-auth-page .main-wrapper .footer {
  margin-top: 10px !important;
  margin-bottom: 0 !important;
  padding: 12px 0 10px !important;
  border-top: 1px solid rgba(226, 232, 240, 0.6) !important;
}

body.night-mode.nexus-auth-page .footer,
body.night-mode.nexus-auth-page .main-wrapper .footer {
  border-top-color: rgba(255, 255, 255, 0.08) !important;
}

/* Responsive Mobile Refinements (Zero bottom space, compact fit) */
@media (max-width: 768px) {
  .nexus-auth-page,
  body.nexus-auth-page {
    min-height: auto !important;
    height: auto !important;
    padding-bottom: 0 !important;
    margin-bottom: 0 !important;
  }

  body.nexus-auth-page .main-wrapper {
    padding-bottom: 0 !important;
    margin-bottom: 0 !important;
    min-height: auto !important;
  }

  body.nexus-auth-page .container-fluid,
  body.nexus-auth-page .container {
    padding-bottom: 0 !important;
    margin-bottom: 0 !important;
  }

  .nexus-auth-page .footer,
  body.nexus-auth-page .footer,
  body.nexus-auth-page .main-wrapper .footer {
    margin-top: 4px !important;
    margin-bottom: 0 !important;
    padding-top: 8px !important;
    padding-bottom: 10px !important;
  }

  .nexus-auth-wrapper {
    min-height: auto !important;
    padding: 14px 10px 4px !important;
  }

  .nexus-auth-card-container .fr_auth_form,
  .nexus-auth-card-container .card-register {
    padding: 18px 16px !important;
    border-radius: 20px !important;
  }

  .nexus-mascot-container {
    margin-bottom: -12px !important;
  }

  .nexus-mascot-svg {
    width: 120px !important;
    height: 96px !important;
  }

  .nexus-auth-header {
    margin-bottom: 12px !important;
  }

  .nexus-auth-title {
    font-size: 22px !important;
  }

  .nexus-auth-subtitle {
    font-size: 13px !important;
  }
}

/* ==========================================================================
   Nexus Modern Responsive Footer System
   ========================================================================== */

.footer {
  padding: 24px 0 28px !important;
  margin-top: 36px !important;
  margin-bottom: 0 !important;
  border-top: 1px solid rgba(255, 255, 255, 0.08) !important;
  font-size: 13px !important;
  color: #94a3b8 !important;
  transition: border-color 0.3s ease;
}

body:not(.night-mode) .footer {
  border-top-color: rgba(15, 23, 42, 0.08) !important;
  color: #64748b !important;
}

.footer.border-top-0 {
  border-top: none !important;
}

.footer .footer-left {
  display: flex !important;
  align-items: center !important;
  flex-wrap: wrap !important;
  gap: 10px !important;
  font-weight: 500 !important;
  color: #94a3b8 !important;
}

body:not(.night-mode) .footer .footer-left {
  color: #64748b !important;
}

.footer .language-dropdown {
  display: inline-flex !important;
  align-items: center !important;
  gap: 6px !important;
  padding: 4px 12px !important;
  border-radius: 9999px !important;
  background: rgba(255, 255, 255, 0.06) !important;
  border: 1px solid rgba(255, 255, 255, 0.1) !important;
  color: #cbd5e1 !important;
  font-size: 12px !important;
  font-weight: 500 !important;
  text-decoration: none !important;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

body:not(.night-mode) .footer .language-dropdown {
  background: rgba(15, 23, 42, 0.04) !important;
  border-color: rgba(15, 23, 42, 0.08) !important;
  color: #334155 !important;
}

.footer .language-dropdown:hover {
  background: rgba(99, 102, 241, 0.15) !important;
  border-color: var(--nexus-primary, #6366f1) !important;
  color: #fff !important;
}

body:not(.night-mode) .footer .language-dropdown:hover {
  color: var(--nexus-primary, #6366f1) !important;
}

.footer .footer-right.links {
  display: flex !important;
  align-items: center !important;
  justify-content: flex-end !important;
  flex-wrap: wrap !important;
  gap: 6px 18px !important;
}

.footer .footer-right.links a {
  color: #94a3b8 !important;
  text-decoration: none !important;
  font-weight: 500 !important;
  font-size: 13px !important;
  padding: 4px 0 !important;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1) !important;
  position: relative !important;
}

body:not(.night-mode) .footer .footer-right.links a {
  color: #64748b !important;
}

.footer .footer-right.links a:hover {
  color: #818cf8 !important;
  text-decoration: none !important;
  transform: translateY(-1px);
}

body:not(.night-mode) .footer .footer-right.links a:hover {
  color: var(--nexus-primary, #6366f1) !important;
}

.footer .footer-right.links a.footer-link-support {
  color: #a5b4fc !important;
  font-weight: 600 !important;
}

body:not(.night-mode) .footer .footer-right.links a.footer-link-support {
  color: #4f46e5 !important;
}

.footer .footer-right.links a.footer-link-support:hover {
  color: #c7d2fe !important;
  text-shadow: 0 0 8px rgba(99, 102, 241, 0.4);
}

/* Auth Page Footer Specific Overrides */
.nexus-auth-page ~ .footer,
body[data-page="signin"] .footer,
body[data-page="signup"] .footer {
  margin-top: 20px !important;
}

/* Responsive Footer Refinements for Tablets and Mobile */
@media (max-width: 767.98px) {
  .footer {
    padding: 18px 12px 24px !important;
    margin-top: 18px !important;
    text-align: center !important;
  }

  .footer .footer-left {
    justify-content: center !important;
    margin-bottom: 14px !important;
    font-size: 12px !important;
  }

  .footer .footer-right.links {
    justify-content: center !important;
    gap: 8px 10px !important;
  }

  .footer .footer-right.links a {
    display: inline-flex !important;
    align-items: center !important;
    padding: 6px 12px !important;
    border-radius: 9999px !important;
    background: rgba(255, 255, 255, 0.04) !important;
    border: 1px solid rgba(255, 255, 255, 0.07) !important;
    font-size: 12px !important;
    line-height: 1.2 !important;
  }

  body:not(.night-mode) .footer .footer-right.links a {
    background: rgba(15, 23, 42, 0.03) !important;
    border-color: rgba(15, 23, 42, 0.06) !important;
    color: #475569 !important;
  }

  .footer .footer-right.links a:hover,
  .footer .footer-right.links a:active {
    background: rgba(99, 102, 241, 0.15) !important;
    border-color: var(--nexus-primary, #6366f1) !important;
    transform: none !important;
  }

  .footer .footer-right.links a.footer-link-support {
    background: rgba(99, 102, 241, 0.12) !important;
    border-color: rgba(99, 102, 241, 0.25) !important;
    color: #c7d2fe !important;
  }

  body:not(.night-mode) .footer .footer-right.links a.footer-link-support {
    background: rgba(99, 102, 241, 0.08) !important;
    border-color: rgba(99, 102, 241, 0.2) !important;
    color: #4338ca !important;
  }

  /* Remove extra bottom space on mobile auth & landing */
  .nexus-auth-wrapper {
    margin-bottom: 0 !important;
    padding-bottom: 0 !important;
  }

  body[data-page="signin"],
  body[data-page="signup"],
  body[data-page="index"] {
    padding-bottom: env(safe-area-inset-bottom, 10px) !important;
  }
}












