/* ==========================================================================
   Branestar Brand Intelligence System — Complete CSS Design System
   Solid Colors · Modern · No Gradients · Plus Jakarta Sans
   ========================================================================== */

:root {
  --font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;

  /* Dark Theme Core Palette — Neutral Charcoal / Obsidian (Reference Image) */
  --bg-shell:       #0A0B0D;
  --bg-inner:       #0F1013;
  --bg-sidebar:     #151619;
  --bg-left-sidebar:  #151619;
  --bg-right-sidebar: #151619;
  --bg-top-navbar:    transparent;
  --border-top-navbar: transparent;
  --padding-top-navbar: 0;
  --bg-card:        #18191C;
  --bg-card-hover:  #1F2025;
  --bg-pill:        #222328;
  --bg-pill-hover:  #2C2D34;
  --bg-input:       #131417;

  /* Borders */
  --border-color:   #26272C;
  --border-light:   #34353C;

  /* Main Brand Accent — Electric Royal Blue from Logo */
  --accent-primary:    #0052FF;
  --accent-primary-bg: rgba(0, 82, 255, 0.16);

  --accent-purple:    #0052FF;
  --accent-purple-bg: rgba(0, 82, 255, 0.16);
  --accent-blue:      #0052FF;
  --accent-blue-bg:   rgba(0, 82, 255, 0.16);
  --accent-yellow:    #F59E0B;
  --accent-yellow-bg: rgba(245, 158, 11, 0.16);
  --accent-green:     #10B981;
  --accent-green-bg:  rgba(16, 185, 129, 0.16);
  --accent-red:       #EF4444;
  --accent-red-bg:    rgba(239, 68, 68, 0.16);

  /* Text */
  --text-primary:   #FFFFFF;
  --text-secondary: #A1A1AA;
  --text-muted:     #71717A;

  /* Radii & Shadows */
  --radius-sm:   8px;
  --radius-md:   12px;
  --radius-lg:   18px;
  --radius-pill: 9999px;

  --card-shadow-opacity: 40%;
  --shadow-dropdown: 0 10px 30px rgba(0, 0, 0, 0.7);
  --transition:      0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ── Light Theme Overrides ─────────────────────────────────────────────── */
body.light-theme {
  --bg-shell:       #F1F5F9;
  --bg-inner:       #F8FAFC;
  --bg-sidebar:     #FFFFFF;
  --bg-left-sidebar:  #FFFFFF;
  --bg-right-sidebar: #FFFFFF;
  --bg-top-navbar:    transparent;
  --border-top-navbar: transparent;
  --padding-top-navbar: 0;
  --bg-card:        #FFFFFF;
  --bg-card-hover:  #F1F5F9;
  --bg-pill:        #E2E8F0;
  --bg-pill-hover:  #CBD5E1;
  --bg-input:       #F1F5F9;
  --border-color:   #E2E8F0;
  --border-light:   #CBD5E1;
  --text-primary:   #0F172A;
  --text-secondary: #475569;
  --text-muted:     #64748B;
  --accent-primary:    #0052FF;
  --accent-primary-bg: #E6EEFF;
  --accent-purple:    #0052FF;
  --accent-purple-bg: #E6EEFF;
  --accent-blue:      #0052FF;
  --accent-blue-bg:   #E6EEFF;
  --accent-green-bg:  #D1FAE5;
  --accent-red-bg:    #FEE2E2;
  --accent-yellow-bg: #FEF3C7;
  --card-shadow-opacity: 8%;
}

body.light-theme .header-brand-wrap .brand-title {
  color: #000000;
}

/* ── Global Reset ─────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
input, select, textarea, button { font-family: var(--font-family), inherit; }

body {
  font-family: var(--font-family);
  background-color: var(--bg-shell);
  color: var(--text-primary);
  line-height: 1.4;
  font-size: 14px;
  -webkit-font-smoothing: antialiased;
  padding: 14px;
  min-height: 100vh;

  /* Layout Controls default values */
  --sidebar-height: 100%;
  --sidebar-icon-gap: 14px;

  /* Opacity default values */
  --opacity-inner: 100%;
  --opacity-left-sidebar: 100%;
  --opacity-right-sidebar: 100%;
  --opacity-top-navbar: 100%;
  --opacity-card: 100%;

  /* Transparent mixed values */
  --bg-inner-trans: color-mix(in srgb, var(--bg-inner) var(--opacity-inner, 100%), transparent);
  --bg-left-sidebar-trans: color-mix(in srgb, var(--bg-left-sidebar) var(--opacity-left-sidebar, 100%), transparent);
  --bg-right-sidebar-trans: color-mix(in srgb, var(--bg-right-sidebar) var(--opacity-right-sidebar, 100%), transparent);
  --bg-top-navbar-trans: color-mix(in srgb, var(--bg-top-navbar) var(--opacity-top-navbar, 100%), transparent);
  --bg-card-trans: color-mix(in srgb, var(--bg-card) var(--opacity-card, 100%), transparent);

  /* Dynamic shadow evaluation */
  --shadow-card: 0 4px 20px rgba(0 0 0 / var(--card-shadow-opacity, 40%));
}

::-webkit-scrollbar { width: 4px; height: 4px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--border-color); border-radius: 4px; }

/* ── Outer Shell ──────────────────────────────────────────────────────── */
.dashboard-shell {
  background-color: var(--bg-inner-trans);
  border: 1px solid var(--border-color);
  border-radius: 22px;
  display: flex;
  min-height: calc(100vh - 28px);
  overflow: visible;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6);
}

/* ── Left Icon Sidebar ────────────────────────────────────────────────── */
.floating-sidebar {
  position: sticky;
  top: 16px;
  align-self: flex-start;
  margin: 16px 8px 16px 16px;
  height: calc(100vh - 32px);
  width: 72px;
  background-color: var(--bg-left-sidebar-trans);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 20px 0;
  flex-shrink: 0;
  z-index: 100;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-sizing: border-box;
}

.sidebar-top-logo {
  width: 42px;
  height: 42px;
  background-color: var(--bg-pill);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: clamp(12px, 3vh, 28px);
}

.sidebar-nav-icons {
  display: flex;
  flex-direction: column;
  gap: clamp(6px, 1.2vh, 14px);
  width: 100%;
  align-items: center;
}

.s-icon-btn {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-md);
  background: transparent;
  border: none;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all var(--transition);
  position: relative;
}
.s-icon-btn i { width: 20px; height: 20px; }
.s-icon-btn:hover { background-color: var(--bg-pill); color: var(--text-primary); }
.s-icon-btn.active { background-color: var(--accent-purple); color: #FFFFFF; }

.s-icon-btn .badge-count {
  position: absolute;
  top: 4px; right: 4px;
  background-color: var(--accent-red);
  color: #FFFFFF;
  font-size: 9px;
  font-weight: 800;
  width: 16px; height: 16px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid var(--bg-sidebar);
}

.sidebar-bottom-actions {
  margin-top: auto;
  padding-top: clamp(10px, 2vh, 36px);
  display: flex;
  flex-direction: column;
  gap: clamp(6px, 1.2vh, 14px);
  align-items: center;
  width: 100%;
}

.light-icon { display: none; }
body.light-theme .dark-icon { display: none; }
body.light-theme .light-icon { display: block; }

/* ── Sidebar Text Labels (hidden by default) ─────────────────────────── */
.s-label {
  position: absolute;
  left: calc(100% + 12px);
  background: var(--bg-card);
  color: var(--text-primary);
  font-size: 12px;
  font-weight: 700;
  padding: 6px 12px;
  border-radius: 6px;
  box-shadow: var(--shadow-card);
  border: 1px solid var(--border-color);
  white-space: nowrap;
  opacity: 0;
  visibility: hidden;
  transform: translateX(-8px);
  transition: all 0.2s ease;
  pointer-events: none;
  z-index: 100;
}

.s-icon-btn:hover .s-label {
  opacity: 1;
  visibility: visible;
  transform: translateX(0);
}

/* ── Dashboard Inner Workspace ───────────────────────────────────────── */
.dashboard-inner {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-width: 0;
  padding: 22px 24px 22px 20px;
}

/* ── Top Header ──────────────────────────────────────────────── Top Header Customizer ── */
.nixtio-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 20px;
  background-color: var(--bg-top-navbar-trans);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--border-top-navbar);
  padding: var(--padding-top-navbar);
  border-radius: var(--radius-md);
  transition: background-color var(--transition), padding var(--transition), border var(--transition);
  position: relative;
  z-index: 1000;
}

.header-brand-wrap .brand-title {
  font-size: 24px;
  font-weight: 800;
  letter-spacing: -0.6px;
  color: #FFFFFF;
  position: relative;
}

.brand-tm {
  font-size: 9px;
  font-weight: 700;
  color: var(--text-muted);
  margin-left: 2px;
  vertical-align: super;
}

.header-tools-wrap {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: 1;
  justify-content: flex-end;
}

.account-selector-container {
  position: relative;
  width: 260px;
  margin-right: auto;
  margin-left: 24px; /* Give some breathing room from the logo */
}

.header-divider {
  width: 1px;
  height: 24px;
  background-color: var(--border-color);
  margin: 0 4px;
}

/* Account Selector Container Base styles */

.account-selector-pill {
  width: 100%;
  height: 44px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 6px 12px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
  background-color: var(--bg-pill);
  cursor: pointer;
  transition: all var(--transition);
  user-select: none;
}

.account-selector-pill:hover {
  border-color: var(--border-light);
  background-color: var(--bg-pill-hover);
}

.account-icon-badge {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background-color: var(--accent-primary);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.account-icon-badge i {
  width: 14px;
  height: 14px;
}

.account-text-wrap {
  display: flex;
  flex-direction: column;
  text-align: left;
  line-height: 1.25;
  flex: 1;
  overflow: hidden;
}

.ac-title {
  font-size: 12px;
  font-weight: 700;
  color: var(--text-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.ac-subtitle {
  font-size: 10px;
  color: var(--text-secondary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.ac-chevron {
  width: 13px;
  height: 13px;
  color: var(--text-secondary);
  flex-shrink: 0;
}

/* Double-Panel Dropdown Menu */
.dropdown-menu-modal {
  display: none;
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  background-color: var(--bg-card-trans);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-dropdown);
  z-index: 1010;
  overflow: hidden;
}

.dropdown-menu-modal.show {
  display: flex !important;
  flex-direction: row;
}

.dropdown-menu-modal.single-panel {
  width: 260px;
  flex-direction: column;
}

.dropdown-menu-modal.single-panel.show {
  flex-direction: column;
}

/* Align right-aligned dropdowns to the right of their wrappers to prevent screen overflow */
#alertsDropdownMenu,
#activityDropdownMenu,
#profileDropdownMenu,
#teamDropdownMenu {
  left: auto;
  right: 0;
}

/* Constrain double-panel dropdown on smaller screens */
@media (max-width: 900px) {
  .dropdown-menu-modal {
    max-width: calc(100vw - 120px);
  }
  .dropdown-menu-modal.show {
    flex-direction: column !important;
  }
  .menu-modal-main-panel,
  .menu-modal-sub-panel {
    width: 100% !important;
    min-width: 240px;
  }
  .menu-modal-sub-panel {
    border-left: none !important;
    border-top: 1px solid var(--border-color);
  }
}

.menu-modal-main-panel {
  width: 260px;
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.menu-modal-sub-panel {
  width: 260px;
  padding: 12px;
  background-color: rgba(255, 255, 255, 0.02);
  border-left: 1px solid var(--border-color);
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-height: 100%;
}

body.light-theme .menu-modal-sub-panel {
  background-color: rgba(0, 0, 0, 0.02);
}

.menu-modal-header {
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
  color: var(--text-muted);
  letter-spacing: 0.5px;
  margin-bottom: 6px;
  padding-bottom: 4px;
  border-bottom: 1px solid var(--border-color);
}

.modal-item.account-item {
  border-radius: var(--radius-md);
  padding: 8px 10px;
  cursor: pointer;
  transition: all var(--transition);
  display: flex;
  align-items: center;
}

.modal-item.account-item:hover,
.modal-item.account-item.active {
  background-color: var(--accent-primary) !important;
  color: #FFFFFF !important;
}

.modal-item.account-item:hover .m-title,
.modal-item.account-item.active .m-title {
  color: #FFFFFF !important;
  font-weight: 700;
}

.modal-item.account-item:hover .m-content-wrap i,
.modal-item.account-item.active .m-content-wrap i,
.modal-item.account-item:hover .submenu-arrow,
.modal-item.account-item.active .submenu-arrow {
  color: #FFFFFF !important;
}

.m-content-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
}

.m-content-wrap i {
  width: 14px;
  height: 14px;
  color: var(--text-secondary);
  flex-shrink: 0;
}

.m-title {
  flex: 1;
  font-size: 12px;
  font-weight: 600;
  color: var(--text-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.submenu-arrow {
  width: 12px;
  height: 12px;
  color: var(--text-muted);
  flex-shrink: 0;
  transition: transform var(--transition);
}

/* Business Submenus */
.business-submenu {
  display: none;
  flex-direction: column;
  gap: 4px;
}

.business-submenu.active {
  display: flex;
}

.submenu-item {
  padding: 8px 10px;
  border-radius: var(--radius-sm);
  font-size: 11px;
  font-weight: 600;
  color: var(--text-secondary);
  cursor: pointer;
  transition: all var(--transition);
  text-align: left;
}

.submenu-item:hover,
.submenu-item.active {
  background-color: var(--accent-primary) !important;
  color: #FFFFFF !important;
  font-weight: 700;
}


/* Simple Item (for simple single panel menus) */
.simple-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 10px;
  border-radius: var(--radius-sm);
  transition: all var(--transition);
  cursor: pointer;
}
.simple-item:hover {
  background-color: var(--accent-primary) !important;
}
.simple-item:hover .m-title,
.simple-item:hover .m-sub {
  color: #FFFFFF !important;
}
.simple-item .m-title {
  color: var(--text-primary);
  font-size: 12px;
  font-weight: 600;
  transition: all var(--transition);
}
.simple-item .m-sub {
  color: var(--text-secondary);
  font-size: 11px;
  font-weight: 700;
  transition: all var(--transition);
}

/* Team Pill Styling */
.team-avatars-pill {
  display: flex;
  align-items: center;
  margin-right: 4px;
}
.team-avatar-mini {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  border: 1.5px solid var(--bg-card); /* Match card background to blend outlines */
  object-fit: cover;
  transition: transform var(--transition);
}
.team-avatar-mini ~ .team-avatar-mini,
.team-avatar-mini ~ .team-avatar-mini-more {
  margin-left: -8px;
}
.team-avatar-mini-more {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  border: 1.5px solid var(--bg-card);
  background-color: var(--bg-pill);
  color: var(--text-primary);
  font-size: 8px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform var(--transition);
}
.header-pill-item:hover .team-avatar-mini:not(:last-child),
.header-pill-item:hover .team-avatar-mini-more {
  transform: translateY(-2px);
}

/* Highlighted Dropdown Action Button - Proper Rectangle with Corners and Gap */
.dropdown-action-btn {
  background-color: var(--accent-primary);
  border: none;
  color: #FFFFFF;
  font-size: 12px;
  font-weight: 700;
  padding: 10px 16px;
  height: 38px;
  border-radius: 8px; /* Proper rectangle box with rounded corners */
  cursor: pointer;
  transition: opacity var(--transition), transform var(--transition);
  text-align: center;
  width: 100%;
  box-sizing: border-box;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 8px;
}
.dropdown-action-btn:hover {
  opacity: 0.9;
  transform: translateY(-0.5px);
}
.dropdown-action-btn:active {
  transform: translateY(0.5px);
}

/* Search Bar (Keeping styles in case) */
.header-search-container {
  display: flex;
  align-items: center;
  gap: 8px;
  border: 1px solid var(--border-color);
  background-color: var(--bg-input);
  border-radius: var(--radius-md);
  padding: 0 12px;
  height: 44px;
  flex: 1;
  max-width: 320px;
  transition: border-color var(--transition);
}

.header-search-container:focus-within {
  border-color: var(--border-light);
}

.search-icon {
  width: 16px;
  height: 16px;
  color: var(--text-secondary);
  flex-shrink: 0;
}

.header-search-input {
  border: none;
  background: transparent;
  color: var(--text-primary);
  font-size: 13px;
  outline: none;
  width: 100%;
}

.shortcut-badge {
  background-color: var(--bg-pill);
  border: 1px solid var(--border-color);
  color: var(--text-secondary);
  padding: 2px 6px;
  border-radius: 6px;
  font-size: 10px;
  font-weight: 700;
  font-family: monospace;
  white-space: nowrap;
}

/* Wrapper for pill and dropdown */
.header-pill-item-wrapper {
  position: relative;
  display: flex;
  align-items: center;
}

/* Status Pills & Redesign Icon Box */
.header-pill-item {
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  padding: 4px 8px;
  border-radius: var(--radius-md);
  transition: background-color var(--transition);
  height: 44px;
  user-select: none;
}

.header-pill-item:hover {
  background-color: var(--bg-pill);
}

.pill-icon-box {
  width: 28px;
  height: 28px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: all var(--transition);
}

.pill-icon-box i {
  width: 14px;
  height: 14px;
}

/* Dark Mode Colors */
.pill-icon-box.dark-purple {
  background-color: rgba(20, 184, 166, 0.15);
  color: #2DD4BF;
}

.pill-icon-box.dark-red {
  background-color: rgba(239, 68, 68, 0.15);
  color: #FCA5A5;
}

.pill-icon-box.dark-yellow {
  background-color: rgba(245, 158, 11, 0.15);
  color: #FDE047;
}

/* Light Mode Pastel Colors */
body.light-theme .pill-icon-box.dark-purple {
  background-color: rgba(13, 148, 136, 0.1);
  color: #0D9488;
}

body.light-theme .pill-icon-box.dark-red {
  background-color: rgba(239, 68, 68, 0.1);
  color: #DC2626;
}

body.light-theme .pill-icon-box.dark-yellow {
  background-color: rgba(245, 158, 11, 0.1);
  color: #B45309;
}

.pill-text-stack {
  display: flex;
  flex-direction: column;
  line-height: 1.25;
  text-align: left;
}

.pill-title {
  font-size: 11px;
  font-weight: 700;
  color: var(--text-primary);
}

.pill-status {
  font-size: 10px;
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  gap: 4px;
  font-weight: 600;
}

.status-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  display: inline-block;
}

.status-dot.green {
  background-color: #10B981;
}

.status-dot.red {
  background-color: #EF4444;
}

.status-star {
  color: #F59E0B;
  font-size: 11px;
  line-height: 1;
}

/* Profile Section */
.header-profile-section {
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  padding: 4px 8px;
  border-radius: var(--radius-md);
  transition: background-color var(--transition);
  height: 44px;
  user-select: none;
}

.header-profile-section:hover {
  background-color: var(--bg-pill);
}

.profile-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  object-fit: cover;
}

.profile-text-stack {
  display: flex;
  flex-direction: column;
  text-align: left;
  line-height: 1.25;
}

.profile-name {
  font-size: 12px;
  font-weight: 700;
  color: var(--text-primary);
  white-space: nowrap;
}

.profile-role {
  font-size: 10px;
  color: var(--text-muted);
}

.profile-chevron {
  width: 12px;
  height: 12px;
  color: var(--text-muted);
  flex-shrink: 0;
}

/* ── Workspace Main Grid ─────────────────────────────────────────────── */
.workspace-main-grid {
  display: flex;
  gap: 16px;
  flex: 1;
  min-height: 0;
}

.intel-workspace-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 18px;
  min-width: 0;
}

/* ── MODERN SEGMENTED INTELLIGENCE NAV ──────────────────────────────── */
.intel-nav-bar {
  background-color: var(--bg-card-trans);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 6px;
  overflow: hidden;
}

.intel-nav-track {
  display: flex;
  width: 100%;
  gap: 4px;
  overflow-x: auto;
  scrollbar-width: none;
}
.intel-nav-track::-webkit-scrollbar { display: none; }

.intel-nav-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 1;
  gap: 7px;
  padding: 9px 16px;
  border-radius: var(--radius-md);
  border: none;
  background: transparent;
  color: var(--text-muted);
  font-family: var(--font-family);
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
  transition: all var(--transition);
  position: relative;
}

.intel-nav-btn i { width: 14px; height: 14px; flex-shrink: 0; }

.intel-nav-btn:hover {
  background-color: var(--bg-pill);
  color: var(--text-primary);
}

.intel-nav-btn.active {
  background-color: var(--accent-primary);
  color: #FFFFFF;
  box-shadow: 0 2px 12px rgba(0, 82, 255, 0.4);
}

/* ── AI Search Bar ───────────────────────────────────────────────────── */
.ai-search-bar-wrap {
  display: flex;
  align-items: center;
  background-color: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-pill);
  padding: 10px 20px;
  gap: 12px;
  transition: border-color var(--transition);
}
.ai-search-bar-wrap:focus-within { border-color: var(--accent-purple); }

.search-sparkle { width: 18px; height: 18px; color: var(--accent-purple); flex-shrink: 0; }

.ai-search-bar-wrap input {
  flex: 1;
  background: transparent;
  border: none;
  outline: none;
  color: var(--text-primary);
  font-family: var(--font-family);
  font-size: 14px;
}
.ai-search-bar-wrap input::placeholder { color: var(--text-muted); }

.mic-btn {
  background-color: var(--accent-purple);
  border: none;
  width: 30px; height: 30px;
  border-radius: 50%;
  color: #FFFFFF;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  flex-shrink: 0;
}
.mic-btn i { width: 14px; height: 14px; }

/* ── Quick Prompt Chips ─────────────────────────────────────────────── */
.prompt-chips-row { display: flex; gap: 8px; flex-wrap: wrap; }

.prompt-chip {
  background-color: var(--bg-card);
  border: 1px solid var(--border-color);
  color: var(--text-secondary);
  font-family: var(--font-family);
  font-size: 11px; font-weight: 600;
  padding: 7px 14px;
  border-radius: var(--radius-pill);
  display: flex; align-items: center; gap: 7px;
  cursor: pointer;
  transition: all var(--transition);
}
.prompt-chip i { width: 12px; height: 12px; color: var(--text-muted); }
.prompt-chip:hover { background-color: var(--bg-pill); color: var(--text-primary); border-color: var(--border-light); }

/* ── KPI Summary Strip ───────────────────────────────────────────────── */
.kpi-summary-strip {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 14px;
  background-color: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 14px 18px;
  box-shadow: var(--shadow-card);
}

.kpi-strip-item { display: flex; align-items: center; gap: 12px; }

.strip-icon-box {
  width: 42px; height: 42px;
  border-radius: var(--radius-md);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.strip-icon-box i { width: 20px; height: 20px; }
.strip-icon-box.green  { background-color: var(--accent-green-bg);  color: var(--accent-green); }
.strip-icon-box.purple { background-color: var(--accent-purple-bg); color: var(--accent-purple); }
.strip-icon-box.blue   { background-color: var(--accent-blue-bg);   color: var(--accent-blue); }
.strip-icon-box.amber  { background-color: var(--accent-yellow-bg); color: var(--accent-yellow); }
.strip-icon-box.red    { background-color: var(--accent-red-bg);    color: var(--accent-red); }

.strip-info { display: flex; flex-direction: column; }
.strip-label { font-size: 10px; font-weight: 700; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.3px; }
.strip-val-row { display: flex; align-items: baseline; gap: 6px; }
.strip-val { font-size: 20px; font-weight: 800; color: var(--text-primary); }
.strip-status { font-size: 11px; font-weight: 700; }
.strip-status.green { color: var(--accent-green); }
.strip-status.red   { color: var(--accent-red); }
.strip-sub { font-size: 10px; color: var(--text-muted); }

/* ── 4-Column Intelligence Cards Grid ────────────────────────────────── */
.intel-cards-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}

.intel-card {
  background-color: var(--bg-card-trans);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 18px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 150px;
  box-shadow: var(--shadow-card);
  transition: transform var(--transition), border-color var(--transition);
}
.intel-card:hover {
  border-color: var(--border-light);
  transform: translateY(-2px);
}

.ic-top-flex { display: flex; align-items: flex-start; gap: 12px; margin-bottom: 10px; }

.ic-icon-box {
  width: 38px; height: 38px;
  border-radius: var(--radius-md);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.ic-icon-box i { width: 18px; height: 18px; }
.ic-icon-box.red    { background-color: var(--accent-red-bg);    color: var(--accent-red); }
.ic-icon-box.amber  { background-color: var(--accent-yellow-bg); color: var(--accent-yellow); }
.ic-icon-box.green  { background-color: var(--accent-green-bg);  color: var(--accent-green); }
.ic-icon-box.blue   { background-color: var(--accent-blue-bg);   color: var(--accent-blue); }
.ic-icon-box.purple { background-color: var(--accent-purple-bg); color: var(--accent-purple); }

.ic-header-text { flex: 1; min-width: 0; }
.ic-header-row {
  display: flex; align-items: center;
  justify-content: space-between;
  gap: 6px;
  margin-bottom: 4px;
}
.ic-title { font-size: 13px; font-weight: 800; color: var(--text-primary); }

.priority-pill {
  font-size: 9px; font-weight: 800;
  padding: 2px 7px;
  border-radius: var(--radius-pill);
  white-space: nowrap;
}
.priority-pill.critical { background-color: var(--accent-red-bg);    color: var(--accent-red); }
.priority-pill.high     { background-color: var(--accent-yellow-bg); color: var(--accent-yellow); }
.priority-pill.medium   { background-color: var(--accent-blue-bg);   color: var(--accent-blue); }

.ic-desc { font-size: 12px; color: var(--text-secondary); line-height: 1.45; }

.ic-footer {
  display: flex; align-items: center; justify-content: space-between;
  font-size: 11px; color: var(--text-muted);
  padding-top: 10px;
  border-top: 1px solid var(--border-color);
}
.ic-time { display: flex; align-items: center; gap: 4px; }

.ic-arrow-btn {
  width: 24px; height: 24px;
  border-radius: 50%;
  background-color: var(--bg-pill);
  color: var(--accent-purple);
  display: flex; align-items: center; justify-content: center;
  border: none; cursor: pointer;
  transition: all var(--transition);
  font-size: 13px;
}
.ic-arrow-btn:hover { background-color: var(--accent-purple); color: #fff; }

/* ── Bottom Grid ──────────────────────────────────────────────────────── */
.bottom-intel-grid {
  display: flex;
  gap: 16px;
}
.flex-2 { flex: 2; }
.flex-1 { flex: 1; }

.nixtio-card {
  background-color: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
  display: flex;
  flex-direction: column;
}

.panel-header-flex {
  padding: 14px 18px;
  border-bottom: 1px solid var(--border-color);
  display: flex; align-items: center; justify-content: space-between;
}
.panel-title-wrap { display: flex; align-items: center; gap: 10px; }

.title-icon-box {
  width: 30px; height: 30px;
  border-radius: var(--radius-sm);
  display: flex; align-items: center; justify-content: center;
}
.title-icon-box i { width: 15px; height: 15px; }
.title-icon-box.purple { background-color: var(--accent-purple-bg); color: var(--accent-purple); }
.title-icon-box.blue   { background-color: var(--accent-blue-bg);   color: var(--accent-blue); }

.panel-title { font-size: 14px; font-weight: 800; color: var(--text-primary); }
.panel-tag   { font-size: 11px; font-weight: 700; color: var(--text-muted); }
.see-all-link { font-size: 12px; font-weight: 700; color: var(--accent-purple); text-decoration: none; }

.panel-body-inner { padding: 16px; flex: 1; }

/* AI Insights Feed */
.insights-feed-list { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.insight-feed-item {
  display: flex; align-items: center; justify-content: space-between;
  padding: 10px 13px;
  background-color: var(--bg-input);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  font-size: 13px;
}
.feed-item-left { display: flex; align-items: center; gap: 10px; }
.feed-dot {
  width: 7px; height: 7px;
  border-radius: 50%; flex-shrink: 0;
}
.feed-dot.red    { background-color: var(--accent-red); }
.feed-dot.amber  { background-color: var(--accent-yellow); }
.feed-dot.green  { background-color: var(--accent-green); }
.feed-dot.purple { background-color: var(--accent-purple); }
.feed-dot.blue   { background-color: var(--accent-blue); }
.feed-text { color: var(--text-secondary); line-height: 1.4; }
.feed-time {
  font-size: 10px; font-weight: 700; color: var(--text-muted);
  background-color: var(--bg-card);
  padding: 3px 8px;
  border-radius: var(--radius-sm);
  white-space: nowrap;
  flex-shrink: 0;
}

/* Data Sources Grid */
.data-sources-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 9px;
  margin-bottom: 16px;
}
.source-item {
  background-color: var(--bg-input);
  border: 1px solid var(--border-color);
  padding: 9px 11px;
  border-radius: var(--radius-md);
  display: flex; align-items: center; justify-content: space-between;
  font-size: 12px; font-weight: 700;
}
.source-brand { display: flex; align-items: center; gap: 6px; color: var(--text-primary); }
.source-brand i { width: 13px; height: 13px; }
.source-status { font-size: 11px; display: flex; align-items: center; gap: 4px; }
.source-status.green { color: var(--accent-green); }
.source-status i { width: 12px; height: 12px; }

.sources-footer {
  border-top: 1px solid var(--border-color);
  padding-top: 10px;
  display: flex; align-items: center; justify-content: space-between;
  font-size: 11px; color: var(--text-muted);
}
.sf-item { display: flex; align-items: center; gap: 6px; }
.sf-item i.green { color: var(--accent-green); width: 13px; height: 13px; }

/* ── RIGHT MODULE SWITCHER SIDEBAR ───────────────────────────────────── */
.right-module-sidebar {
  width: 250px;
  flex-shrink: 0;
  background-color: var(--bg-right-sidebar-trans);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  box-shadow: var(--shadow-card);
  transition: width 0.28s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Collapsed state */
.right-module-sidebar.collapsed {
  width: 52px;
}

/* Hide everything labelled expand-only when collapsed */
.right-module-sidebar.collapsed .mod-expand-only,
.right-module-sidebar.collapsed .mod-config-title-text,
.right-module-sidebar.collapsed .mod-config-status-row,
.right-module-sidebar.collapsed .mod-config-list,
.right-module-sidebar.collapsed .mod-config-cols-header {
  display: none;
}

/* Collapsed vertical label */
.mod-collapsed-label {
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 18px 0;
  cursor: pointer;
  flex: 1;
}
.mod-collapsed-label i {
  width: 18px; height: 18px;
  color: var(--accent-purple);
}
.mod-collapsed-label span {
  font-size: 10px;
  font-weight: 800;
  color: var(--text-muted);
  letter-spacing: 1.5px;
  text-transform: uppercase;
  writing-mode: vertical-rl;
  text-orientation: mixed;
  transform: rotate(180deg);
}

.right-module-sidebar.collapsed .mod-collapsed-label {
  display: flex;
}

/* Collapse button in the header */
.mod-collapse-btn {
  width: 26px; height: 26px;
  border-radius: var(--radius-sm);
  background-color: var(--bg-pill);
  border: 1px solid var(--border-color);
  color: var(--text-muted);
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  transition: all var(--transition);
  flex-shrink: 0;
  margin-left: auto;
}
.mod-collapse-btn:hover {
  background-color: var(--accent-purple);
  color: #FFFFFF;
  border-color: var(--accent-purple);
}
.mod-collapse-btn i { width: 14px; height: 14px; }

.mod-config-header {
  padding: 16px;
  border-bottom: 1px solid var(--border-color);
}

.mod-config-title-row {
  display: flex; align-items: center; gap: 10px;
  margin-bottom: 12px;
  width: 100%;
}

/* In collapsed mode keep header compact and hide the icon & title text */
.right-module-sidebar.collapsed .mod-config-header {
  padding: 12px 0;
  align-items: center;
  display: flex;
  flex-direction: column;
}
.right-module-sidebar.collapsed .mod-config-title-row {
  justify-content: center;
  margin-bottom: 0;
  gap: 0;
}
.right-module-sidebar.collapsed .mod-config-icon {
  display: none;
}
.right-module-sidebar.collapsed .mod-collapse-btn {
  margin-left: 0;
  width: 34px; height: 34px;
}

.mod-config-icon {
  width: 34px; height: 34px;
  border-radius: var(--radius-sm);
  background-color: var(--accent-purple-bg);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.mod-config-icon i { width: 16px; height: 16px; color: var(--accent-purple); }

.mod-config-title {
  font-size: 13px; font-weight: 800; color: var(--text-primary);
}
.mod-config-sub {
  font-size: 10px; color: var(--text-muted); margin-top: 2px;
}

.mod-config-status-row {
  display: flex; align-items: center; gap: 8px;
  background-color: var(--bg-input);
  border: 1px solid var(--border-color);
  padding: 6px 12px;
  border-radius: var(--radius-pill);
}

.mod-live-dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background-color: var(--accent-green);
  animation: pulse-dot 1.5s infinite;
}

.mod-live-label {
  font-size: 11px; font-weight: 700;
  color: var(--accent-green);
}

.mod-config-cols-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 8px 16px 6px;
  font-size: 10px; font-weight: 800;
  color: var(--text-muted);
  letter-spacing: 0.5px;
  border-bottom: 1px solid var(--border-color);
}

.mod-config-list {
  flex: 1;
  overflow-y: auto;
  padding: 8px 0;
}

.config-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 14px;
  transition: background-color var(--transition);
}
.config-item:hover { background-color: var(--bg-pill); }

.config-left { display: flex; align-items: center; gap: 10px; flex: 1; min-width: 0; }

.config-icon-box {
  width: 32px; height: 32px;
  border-radius: var(--radius-sm);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.config-icon-box i { width: 14px; height: 14px; }
.config-icon-box.purple { background-color: var(--accent-purple-bg); color: var(--accent-purple); }
.config-icon-box.green  { background-color: var(--accent-green-bg);  color: var(--accent-green); }
.config-icon-box.amber  { background-color: var(--accent-yellow-bg); color: var(--accent-yellow); }
.config-icon-box.blue   { background-color: var(--accent-blue-bg);   color: var(--accent-blue); }
.config-icon-box.red    { background-color: var(--accent-red-bg);    color: var(--accent-red); }

.config-info { display: flex; flex-direction: column; min-width: 0; }
.config-name { font-size: 12px; font-weight: 700; color: var(--text-primary); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.config-sub  { font-size: 10px; color: var(--text-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* Toggle Switch */
.toggle-switch {
  position: relative;
  display: inline-block;
  width: 38px; height: 22px;
  flex-shrink: 0;
}
.toggle-switch input { opacity: 0; width: 0; height: 0; }
.slider {
  position: absolute;
  cursor: pointer;
  inset: 0;
  background-color: var(--border-light);
  border-radius: var(--radius-pill);
  transition: 0.25s;
}
.slider:before {
  content: '';
  position: absolute;
  width: 16px; height: 16px;
  left: 3px; bottom: 3px;
  background-color: var(--text-muted);
  border-radius: 50%;
  transition: 0.25s;
}
.toggle-switch input:checked + .slider { background-color: var(--accent-purple); }
.toggle-switch input:checked + .slider:before {
  transform: translateX(16px);
  background-color: #FFFFFF;
}

/* Sidebar Footer */
.mod-config-footer {
  padding: 12px 14px;
  border-top: 1px solid var(--border-color);
}
.enable-all-btn {
  width: 100%;
  padding: 9px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-light);
  background-color: var(--bg-pill);
  color: var(--text-secondary);
  font-family: var(--font-family);
  font-size: 12px; font-weight: 700;
  cursor: pointer;
  transition: all var(--transition);
}
.enable-all-btn:hover {
  background-color: var(--accent-purple);
  color: #FFFFFF;
  border-color: var(--accent-purple);
}

/* ── Responsive ──────────────────────────────────────────────────────── */
@media (max-width: 1400px) {
  .intel-cards-grid { grid-template-columns: repeat(4, 1fr); }
  .right-module-sidebar { width: 230px; }
}

@media (max-width: 1200px) {
  .intel-cards-grid { grid-template-columns: repeat(3, 1fr); }
  .kpi-summary-strip { grid-template-columns: repeat(3, 1fr); }
  .right-module-sidebar { display: none; }
}

@media (max-width: 900px) {
  .intel-cards-grid { grid-template-columns: repeat(2, 1fr); }
  .bottom-intel-grid { flex-direction: column; }
  .floating-sidebar { width: 62px; }
}

@media (max-width: 600px) {
  .intel-cards-grid { grid-template-columns: 1fr; }
  .kpi-summary-strip { grid-template-columns: repeat(2, 1fr); }
  .dashboard-inner { padding: 14px; }
}

/* ── Theme Customizer Panel Styles ────────────────────────────────────── */
.theme-customizer-wrap {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 12px;
}

.customizer-toggle-btn {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background-color: var(--accent-primary);
  border: none;
  color: #FFFFFF;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 4px 18px rgba(0, 82, 255, 0.4);
  transition: transform 0.2s, background-color var(--transition);
}
.customizer-toggle-btn:hover {
  transform: scale(1.06);
}
.customizer-toggle-btn i {
  width: 18px;
  height: 18px;
}

.customizer-panel {
  display: none;
  width: 280px;
  background-color: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-dropdown);
  padding: 16px;
  flex-direction: column;
  gap: 14px;
  animation: slideUpFade 0.24s cubic-bezier(0.4, 0, 0.2, 1);
}
.customizer-panel.show, .customizer-panel.active {
  display: flex;
}

@keyframes slideUpFade {
  from { opacity: 0; transform: translateY(15px); }
  to { opacity: 1; transform: translateY(0); }
}

.customizer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 10px;
}
.customizer-header h3 {
  font-size: 13px;
  font-weight: 800;
  color: var(--text-primary);
}
.customizer-reset-btn {
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
  transition: color var(--transition);
}
.customizer-reset-btn:hover {
  color: var(--accent-red);
}

.customizer-save-btn {
  background-color: var(--accent-primary);
  border: none;
  color: #FFFFFF;
  font-size: 11px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: opacity var(--transition), transform var(--transition);
}
.customizer-save-btn:hover {
  opacity: 0.9;
  transform: translateY(-0.5px);
}
.customizer-save-btn:active {
  transform: translateY(0.5px);
}

.customizer-body {
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-height: 460px;
  overflow-y: auto;
  padding-right: 4px;
}

.color-picker-group {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.color-picker-group label {
  font-size: 10px;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.3px;
}
.picker-row {
  display: flex;
  align-items: center;
  gap: 10px;
  background-color: var(--bg-input);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  padding: 5px 10px;
}
.picker-row input[type="color"] {
  -webkit-appearance: none;
  border: none;
  width: 24px;
  height: 24px;
  border-radius: 4px;
  cursor: pointer;
  background: none;
  padding: 0;
}
.picker-row input[type="color"]::-webkit-color-swatch-wrapper {
  padding: 0;
}
.picker-row input[type="color"]::-webkit-color-swatch {
  border: 1px solid var(--border-color);
  border-radius: 4px;
}
.picker-hex {
  font-size: 11px;
  font-weight: 600;
  color: var(--text-secondary);
  font-family: monospace;
}

/* ==========================================================================
   ── Sidebar Style Variants (Modifying the Entire Strip) ──────────────────
   ========================================================================== */

/* Base transition overrides on shell for floating sidebars */
.dashboard-shell {
  display: flex;
  align-items: stretch;
}

/* Style 2: Floating Pill (Finaxy-like Capsule)
   - Detached floating capsule strip, margin, high border-radius & shadow
   - Active state is a solid primary-text colored circle
   - Stacked circular layout */
.floating-sidebar.sidebar-style-2 {
  position: sticky;
  top: 16px;
  margin: 16px 8px 16px 16px;
  height: calc(100vh - 32px);
  border-radius: 36px;
  width: 68px;
  padding: 24px 0;
  border: 1px solid var(--border-color);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.4);
  background-color: var(--bg-left-sidebar-trans);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}
.floating-sidebar.sidebar-style-2 .sidebar-top-logo {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  margin-bottom: 24px;
}
.floating-sidebar.sidebar-style-2 .sidebar-nav-icons {
  gap: var(--sidebar-icon-gap, 12px);
}
.floating-sidebar.sidebar-style-2 .s-icon-btn {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: transparent;
  border: none;
}
.floating-sidebar.sidebar-style-2 .s-icon-btn:hover {
  background-color: var(--bg-pill);
}
.floating-sidebar.sidebar-style-2 .s-icon-btn.active {
  background-color: var(--text-primary);
  color: var(--bg-left-sidebar);
}
.floating-sidebar.sidebar-style-2 .badge-count {
  top: 2px; right: 2px;
  border-color: var(--bg-left-sidebar);
}

/* Style 3: Highlighted Lilac/Blue Capsule (Stylized divider & soft tinted active states)
   - Tall elegant capsule with a divider under the logo
   - Active item is a circular colored button with accent color tint */
.floating-sidebar.sidebar-style-3 {
  position: sticky;
  top: 16px;
  margin: 16px 8px 16px 16px;
  height: calc(100vh - 32px);
  border-radius: 32px;
  width: 64px;
  padding: 20px 0;
  border: 1px solid var(--border-color);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.4);
  background-color: var(--bg-left-sidebar-trans);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}
.floating-sidebar.sidebar-style-3 .sidebar-top-logo {
  width: 36px;
  height: 36px;
  border: none;
  background: transparent;
  margin-bottom: 22px;
  position: relative;
}
.floating-sidebar.sidebar-style-3 .sidebar-top-logo::after {
  content: '';
  position: absolute;
  bottom: -11px;
  left: 50%;
  transform: translateX(-50%);
  width: 26px;
  height: 1px;
  background-color: var(--border-color);
}
.floating-sidebar.sidebar-style-3 .sidebar-nav-icons {
  gap: var(--sidebar-icon-gap, 10px);
}
.floating-sidebar.sidebar-style-3 .s-icon-btn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: transparent;
  border: none;
}
.floating-sidebar.sidebar-style-3 .s-icon-btn:hover {
  color: var(--text-primary);
  background-color: var(--bg-pill);
}
.floating-sidebar.sidebar-style-3 .s-icon-btn.active {
  background-color: var(--accent-primary-bg);
  color: var(--accent-primary);
}
.floating-sidebar.sidebar-style-3 .badge-count {
  top: 1px; right: 1px;
  border-color: var(--bg-left-sidebar);
}

/* Style 4: Circular Outlined Stack (Each icon in its own circular border outline)
   - As seen in the third image upload
   - Active button is a filled circle, others have circle outline borders */
.floating-sidebar.sidebar-style-4 {
  position: sticky;
  top: 16px;
  margin: 16px 8px 16px 16px;
  height: calc(100vh - 32px);
  border-radius: 32px;
  width: 60px;
  padding: 22px 0;
  border: 1px solid var(--border-color);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.4);
  background-color: var(--bg-left-sidebar-trans);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}
.floating-sidebar.sidebar-style-4 .sidebar-top-logo {
  width: 34px;
  height: 34px;
  background: transparent;
  border: none;
  margin-bottom: 24px;
}
.floating-sidebar.sidebar-style-4 .sidebar-nav-icons {
  gap: var(--sidebar-icon-gap, 12px);
}
.floating-sidebar.sidebar-style-4 .s-icon-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1.5px solid var(--border-color);
  background: transparent;
  transition: all var(--transition);
}
.floating-sidebar.sidebar-style-4 .s-icon-btn:hover {
  border-color: var(--border-light);
  background-color: var(--bg-pill);
}
.floating-sidebar.sidebar-style-4 .s-icon-btn.active {
  background-color: var(--text-primary);
  color: var(--bg-left-sidebar);
  border-color: var(--text-primary);
}
.floating-sidebar.sidebar-style-4 .badge-count {
  top: -3px; right: -3px;
  border-color: var(--bg-left-sidebar);
}

/* ── Sidebar Style Switcher UI (inside Customizer) ───────────────────── */
.customizer-section {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.customizer-section-label {
  font-size: 10px;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.3px;
}
.sidebar-style-options {
  display: flex;
  gap: 6px;
}
.sidebar-style-btn {
  flex: 1;
  height: 54px;
  border-radius: var(--radius-sm);
  border: 2px solid var(--border-color);
  background-color: var(--bg-input);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition);
  padding: 0;
}
.sidebar-style-btn:hover {
  border-color: var(--border-light);
}
.sidebar-style-btn.active {
  border-color: var(--accent-primary);
  box-shadow: 0 0 0 1px var(--accent-primary);
}

/* Mini sidebar preview thumbnails */
.sp {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
}
.sp span {
  display: block;
  background-color: var(--text-muted);
  opacity: 0.35;
}

/* Default preview: rounded squares */
.sp-default span {
  width: 12px;
  height: 12px;
  border-radius: 3px;
}

/* Compact preview: outlined circles */
.sp-compact span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: transparent;
  border: 1.5px solid var(--text-muted);
  opacity: 0.5;
}

/* Highlighted preview: first circle filled blue */
.sp-highlighted span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  opacity: 0.25;
}
.sp-highlighted .hl {
  background-color: var(--accent-primary);
  opacity: 1;
}

/* Minimal preview: thin short lines */
.sp-minimal span {
  width: 10px;
  height: 2px;
  border-radius: 1px;
}

/* Divider between style section and color pickers */
.customizer-divider {
  height: 1px;
  background-color: var(--border-color);
  margin: 2px 0;
}

/* ── Sliders Customizer Styling ──────────────────────────────────────── */
.slider-group {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-top: 2px;
}
.slider-header {
  display: flex;
  align-items: center;
  justify-content: justify;
  font-size: 10px;
  font-weight: 700;
  color: var(--text-secondary);
}
.slider-header span:last-child {
  margin-left: auto;
  font-weight: 800;
  color: var(--accent-primary);
}
.customizer-slider {
  width: 100%;
  height: 4px;
  -webkit-appearance: none;
  background-color: var(--bg-input);
  border: 1px solid var(--border-color);
  border-radius: 2px;
  outline: none;
}
.customizer-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background-color: var(--accent-primary);
  cursor: pointer;
  transition: transform var(--transition);
}
.customizer-slider::-webkit-slider-thumb:hover {
  transform: scale(1.2);
}

/* Opacity slider row styling inside color pickers */
.opacity-slider-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-top: 4px;
  padding: 0 4px;
}
.opacity-label {
  font-size: 9px;
  font-weight: 700;
  color: var(--text-muted);
  white-space: nowrap;
}
.opacity-slider {
  flex: 1;
  height: 3px;
  -webkit-appearance: none;
  background-color: var(--bg-input);
  border-radius: 1px;
  outline: none;
}
.opacity-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background-color: var(--accent-primary);
  cursor: pointer;
}

/* ==========================================================================
   KPI Dashboard Workspace Styles
   ========================================================================== */

/* ── Controls Row ───────────────────────────────────────────────────── */
.kpi-controls-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}

.kpi-filter-pills {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.kpi-pill {
  background-color: var(--bg-card);
  border: 1px solid var(--border-color);
  color: var(--text-secondary);
  font-family: var(--font-family);
  font-size: 12px;
  font-weight: 700;
  padding: 8px 16px;
  border-radius: var(--radius-pill);
  display: flex;
  align-items: center;
  gap: 7px;
  cursor: pointer;
  transition: all var(--transition);
  white-space: nowrap;
}

.kpi-pill:hover {
  background-color: var(--bg-pill);
  color: var(--text-primary);
  border-color: var(--border-light);
}

.kpi-pill.active {
  background-color: var(--accent-primary);
  color: #FFFFFF;
  border-color: var(--accent-primary);
}

.kpi-pill-diamond {
  font-size: 8px;
  line-height: 1;
}

.kpi-set-btn {
  background-color: var(--accent-primary);
  border: 1px solid var(--accent-primary);
  color: #FFFFFF;
  font-family: var(--font-family);
  font-size: 12px;
  font-weight: 700;
  padding: 8px 16px;
  border-radius: var(--radius-pill);
  display: flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  transition: all var(--transition);
  white-space: nowrap;
  box-shadow: none;
}

.kpi-set-btn:hover {
  background-color: #0043d0;
  border-color: #0043d0;
  box-shadow: none;
}

.kpi-secondary-btn {
  background: var(--bg-pill);
  color: var(--text-primary);
  border: 1px solid var(--border-color);
  font-family: var(--font-family);
  font-size: 12px;
  font-weight: 700;
  padding: 8px 16px;
  border-radius: var(--radius-pill);
  display: flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  transition: all var(--transition);
  white-space: nowrap;
  box-shadow: none;
}

.kpi-secondary-btn:hover {
  background: var(--accent-primary);
  color: #FFFFFF;
  border-color: var(--accent-primary);
  box-shadow: none;
}

/* ── KPI Grid ───────────────────────────────────────────────────────── */
.kpi-grid-container {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 24px;
  width: 100%;
}

@media (max-width: 1400px) {
  .kpi-grid-container { grid-template-columns: repeat(4, 1fr); }
}

@media (max-width: 1100px) {
  .kpi-grid-container { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 850px) {
  .kpi-grid-container { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 600px) {
  .kpi-grid-container { grid-template-columns: 1fr; }
}

/* ── KPI Card — same foundation as .intel-card ──────────────────────── */
.kpi-card {
  background-color: var(--bg-card-trans);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 16px 18px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-height: 180px;
  box-shadow: var(--shadow-card);
  transition: transform var(--transition), border-color var(--transition);
  position: relative;
}

.kpi-card:hover {
  border-color: var(--border-light);
  transform: translateY(-2px);
}

/* ── Card Header ────────────────────────────────────────────────────── */
.kpi-card-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
}

.kpi-card-header-left {
  display: flex;
  align-items: center;
  gap: 12px;
}

.kpi-icon-box {
  width: 38px;
  height: 38px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.kpi-icon-box i { width: 18px; height: 18px; }

.kpi-icon-box.blue   { background-color: rgba(59, 130, 246, 0.16); color: #3B82F6; }
.kpi-icon-box.rose    { background-color: rgba(244, 63, 94, 0.16); color: #F43F5E; }
.kpi-icon-box.amber   { background-color: var(--accent-yellow-bg); color: var(--accent-yellow); }
.kpi-icon-box.green   { background-color: var(--accent-green-bg);  color: var(--accent-green); }

.kpi-card-title-wrap {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.kpi-card-title {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-primary);
  line-height: 1.2;
}

/* ── Category Tag ───────────────────────────────────────────────────── */
.kpi-card-category-tag {
  font-size: 9px;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: var(--radius-pill);
  width: max-content;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.kpi-card-category-tag.sales     { background: rgba(59, 130, 246, 0.16); color: #3B82F6; }
.kpi-card-category-tag.marketing { background: rgba(244, 63, 94, 0.16);  color: #F43F5E; }
.kpi-card-category-tag.product   { background: var(--accent-yellow-bg);   color: var(--accent-yellow); }
.kpi-card-category-tag.support   { background: var(--accent-green-bg);    color: var(--accent-green); }

/* ── Settings Button (replaces delete) ──────────────────────────────── */
.kpi-settings-wrapper {
  position: relative;
}

.kpi-settings-btn {
  background: transparent;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  padding: 4px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition);
}

.kpi-settings-btn:hover {
  color: var(--text-primary);
  background: var(--bg-pill);
}

.kpi-settings-btn i { width: 16px; height: 16px; }

.kpi-settings-dropdown {
  display: none;
  position: absolute;
  top: 100%;
  right: 0;
  margin-top: 4px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-dropdown);
  z-index: 100;
  min-width: 120px;
  overflow: hidden;
}

.kpi-settings-dropdown.show {
  display: block;
}

.kpi-settings-dropdown button {
  width: 100%;
  background: transparent;
  border: none;
  padding: 8px 14px;
  font-family: var(--font-family);
  font-size: 12px;
  font-weight: 600;
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  transition: all var(--transition);
}

.kpi-settings-dropdown button:hover {
  background: var(--bg-pill);
  color: var(--text-primary);
}

.kpi-settings-dropdown button.danger:hover {
  background: var(--accent-red-bg);
  color: var(--accent-red);
}

.kpi-settings-dropdown button i { width: 14px; height: 14px; }

/* ── Card Body — Big Value ──────────────────────────────────────────── */
.kpi-card-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 4px;
}

.kpi-main-val {
  font-size: 22px;
  font-weight: 600;
  color: var(--text-secondary);
  letter-spacing: -0.2px;
  margin-bottom: 2px;
}

.kpi-main-val .kpi-target-hint {
  font-size: 10px;
  font-weight: 600;
  color: var(--text-muted);
  letter-spacing: 0;
}

/* ── Auto Sync Switcher styles ──────────────────────────────────────── */
@keyframes spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}
.spin-icon {
  animation: spin 3s linear infinite;
}
.kpi-sync-toggle {
  transition: all var(--transition);
}
.kpi-sync-toggle.active {
  background: var(--accent-primary-bg) !important;
  border-color: var(--accent-primary) !important;
  color: var(--accent-primary) !important;
}
.kpi-sync-toggle:not(.active) {
  background: var(--bg-input) !important;
  border-color: var(--border-color) !important;
  color: var(--text-muted) !important;
}

/* ── Progress Bar — Modern Gradient ─────────────────────────────────── */
.kpi-progress-info {
  display: flex;
  justify-content: space-between;
  font-size: 11px;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 6px;
}

.kpi-progress-track {
  width: 100%;
  height: 5px;
  background: var(--bg-input);
  border-radius: var(--radius-pill);
  overflow: hidden;
  position: relative;
}

.kpi-progress-bar {
  height: 100%;
  border-radius: var(--radius-pill);
  transition: width 0.8s cubic-bezier(0.22, 1, 0.36, 1);
  position: relative;
}

/* Fill uses accent primary for all categories */
.kpi-progress-bar.blue {
  background: #3B82F6;
}

.kpi-progress-bar.rose {
  background: #F43F5E;
}

.kpi-progress-bar.amber {
  background: var(--accent-yellow);
}

.kpi-progress-bar.green {
  background: var(--accent-green);
}

/* Subtle animated shimmer on progress bar */
.kpi-progress-bar::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(90deg, transparent 0%, rgba(255,255,255,0.15) 50%, transparent 100%);
  animation: kpi-shimmer 2.5s ease-in-out infinite;
}

@keyframes kpi-shimmer {
  0%   { transform: translateX(-100%); }
  100% { transform: translateX(100%); }
}

/* ── Card Footer ────────────────────────────────────────────────────── */
.kpi-card-footer {
  padding-top: 10px;
  border-top: 1px solid var(--border-color);
  display: flex;
  justify-content: flex-start;
  align-items: center;
}

.kpi-desc-text {
  font-size: 10px;
  font-weight: 700;
  color: var(--text-muted);
  background-color: transparent;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-pill);
  padding: 4px 10px;
  display: flex;
  align-items: center;
  gap: 5px;
  transition: all var(--transition);
  white-space: nowrap;
}

.kpi-desc-text:hover {
  background-color: var(--bg-pill);
  border-color: var(--border-light);
  color: var(--text-primary);
}

.kpi-desc-text i { width: 12px; height: 12px; }

/* ── Integrations Page Layout ───────────────────────────────────────── */
.integrations-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 16px;
  margin-bottom: 24px;
}

@media (max-width: 1200px) {
  .integrations-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .integrations-grid {
    grid-template-columns: 1fr;
  }
}

.integration-card {
  background: var(--bg-card-trans);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  box-shadow: var(--shadow-card);
  transition: all var(--transition);
  position: relative;
  z-index: 1;
}

.integration-card::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: var(--radius-lg);
  padding: 1px;
  background: linear-gradient(135deg, #0052FF, #00C6FF);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0;
  transition: opacity var(--transition);
  pointer-events: none;
  z-index: -1;
}

.integration-card:hover {
  border-color: transparent;
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(0, 82, 255, 0.2);
}

.integration-card:hover::before {
  opacity: 1;
}

.integration-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
}

.integration-icon-wrapper {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  color: #fff;
  flex-shrink: 0;
  box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}

.integration-icon-wrapper i {
  width: 18px;
  height: 18px;
}

.integration-connect-btn {
  background: var(--bg-pill);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  padding: 6px 12px;
  font-size: 11px;
  font-weight: 600;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  transition: all var(--transition);
}

.integration-connect-btn:hover {
  background: var(--border-color);
  border-color: var(--text-muted);
}

.integration-connect-btn.connected {
  background: var(--accent-green-bg);
  border-color: var(--accent-green);
  color: var(--accent-green);
}

.integration-connect-btn.connected:hover {
  background: rgba(16, 185, 129, 0.22);
}

.integration-connect-btn i {
  width: 10px;
  height: 10px;
}

.integration-card-body {
  display: flex;
  flex-direction: column;
  gap: 6px;
  text-align: left;
}

.integration-name {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-primary);
}

.integration-desc {
  font-size: 11px;
  font-weight: 400;
  color: var(--text-muted);
  line-height: 1.4;
  height: 48px;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
}

/* ── Integration Status Bar ────────────────────────────────────────── */
.integration-status-bar {
  display: inline-flex;
  align-items: center;
  gap: 20px;
  background-color: var(--bg-pill);
  border: 1px solid var(--border-color);
  padding: 0 24px;
  border-radius: var(--radius-md);
  height: 44px;
  margin-bottom: 20px;
  font-size: 14px;
}

body.light-theme .integration-status-bar {
  background-color: var(--bg-card);
}

.integration-status-bar .status-segment {
  display: flex;
  align-items: center;
  gap: 6px;
}

.integration-status-bar .status-label {
  color: var(--text-muted);
  font-weight: 600;
}

.integration-status-bar .status-value {
  font-weight: 800;
  color: var(--text-primary);
}

.integration-status-bar .status-divider {
  width: 1px;
  height: 12px;
  background-color: var(--border-color);
}

.integration-status-bar .text-green {
  color: var(--accent-green) !important;
}

.integration-status-bar .text-red {
  color: var(--accent-red) !important;
}

/* ── Settings Page Layout ───────────────────────────────────────────── */
.settings-nav-sidebar {
  background-color: rgba(0, 0, 0, 0.15) !important;
}

body.light-theme .settings-nav-sidebar {
  background-color: #F1F5F9 !important;
}

.settings-tab-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  border: none;
  background: transparent;
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  text-align: left;
  color: var(--text-secondary);
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: all var(--transition);
}

.settings-tab-btn:hover {
  background-color: var(--bg-card-hover);
  color: var(--text-primary);
}

.settings-tab-btn.active {
  background-color: var(--accent-primary) !important;
  color: #FFFFFF !important;
  font-weight: 600;
}

body.light-theme .settings-tab-btn.active {
  background-color: var(--accent-primary) !important;
  color: #FFFFFF !important;
  font-weight: 600;
}

.admin-tab-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  border: none;
  background: transparent;
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  text-align: left;
  color: var(--text-secondary);
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: all var(--transition);
}

.admin-tab-btn:hover {
  background-color: var(--bg-card-hover);
  color: var(--text-primary);
}

.admin-tab-btn.active {
  background-color: var(--accent-primary) !important;
  color: #FFFFFF !important;
  font-weight: 600;
}

body.light-theme .admin-tab-btn.active {
  background-color: var(--accent-primary) !important;
  color: #FFFFFF !important;
  font-weight: 600;
}

.theme-select-card {
  border: 1.5px solid var(--border-color);
  background: var(--bg-card);
  transition: all var(--transition);
}

.theme-select-card.active {
  border-color: var(--accent-primary) !important;
  background: var(--accent-primary-bg) !important;
}

.settings-biz-item {
  border: 1.5px solid var(--border-color);
  background: var(--bg-card);
  transition: all var(--transition);
}

.settings-biz-item.active {
  border-color: var(--accent-primary) !important;
  background: var(--accent-primary-bg) !important;
}

/* Switch styling */
.switch {
  position: relative;
  display: inline-block;
  width: 38px;
  height: 20px;
}

.switch input { 
  opacity: 0;
  width: 0;
  height: 0;
}

.slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: var(--border-color);
  transition: .3s;
  border-radius: 20px;
}

.slider:before {
  position: absolute;
  content: "";
  height: 14px;
  width: 14px;
  left: 3px;
  bottom: 3px;
  background-color: white;
  transition: .3s;
  border-radius: 50%;
}

input:checked + .slider {
  background-color: var(--accent-primary);
}

input:checked + .slider:before {
  transform: translateX(18px);
}

/* Admin Accordion Menu Styling */
.admin-menu-header:hover {
  background-color: var(--bg-card-hover);
  color: var(--accent-primary) !important;
}

.admin-menu-header svg {
  stroke: var(--text-secondary);
}

.admin-menu-header:hover svg {
  stroke: var(--accent-primary);
}

.admin-menu-group.active .admin-menu-header {
  color: var(--accent-primary) !important;
}

.admin-menu-group.active .admin-menu-header svg {
  stroke: var(--accent-primary) !important;
}

.admin-menu-group {
  display: flex;
  flex-direction: column;
  gap: 4px;
  width: 100%;
}

.admin-menu-sub {
  display: flex;
  flex-direction: column !important;
  gap: 2px;
  padding-left: 8px;
  margin-top: 4px;
  width: 100%;
  box-sizing: border-box;
}

.settings-layout-panel {
  display: flex !important;
  flex-direction: row !important;
  width: 100% !important;
  max-width: 100% !important;
  box-sizing: border-box !important;
  overflow: hidden !important;
}

.settings-nav-sidebar {
  width: 250px !important;
  min-width: 250px !important;
  max-width: 250px !important;
  flex-shrink: 0 !important;
  display: flex !important;
  flex-direction: column !important;
  gap: 12px !important;
  box-sizing: border-box !important;
}

.settings-content-area {
  flex: 1 1 0% !important;
  min-width: 0 !important;
  max-width: calc(100% - 250px) !important;
  width: 100% !important;
  box-sizing: border-box !important;
  overflow-y: auto !important;
  overflow-x: hidden !important;
}

/* Global Modals Fullscreen High Z-Index Overlay (Always hidden by default) */
.modal-overlay-panel,
.customizer-overlay,
.actions-modal-backdrop,
.modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 999999;
  align-items: center;
  justify-content: center;
}

.modal-overlay-panel.show,
.modal-overlay-panel.active,
.customizer-overlay.show,
.customizer-overlay.active,
.actions-modal-backdrop.show,
.actions-modal-backdrop.active,
.modal-overlay.show,
.modal-overlay.active {
  display: flex !important;
}

.modal-overlay-panel .customizer-panel,
.modal-overlay-panel > div,
.customizer-overlay .customizer-panel,
.customizer-overlay > div {
  position: relative;
  z-index: 1000000;
}


/* ==========================================================================
   Portrait Plan Cards, Group Switcher, and Brain Token Widget Styles
   ========================================================================== */

/* Pricing Switcher Bar */
.pricing-switcher-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
  flex-wrap: wrap;
  gap: 16px;
}

.pricing-switcher-pills {
  display: inline-flex;
  align-items: center;
  background: var(--bg-pill);
  border: 1px solid var(--border-color);
  padding: 4px;
  border-radius: var(--radius-pill);
  gap: 4px;
  max-width: 100%;
  overflow-x: auto;
}

.pricing-switcher-btn {
  background: transparent;
  border: none;
  color: var(--text-secondary);
  padding: 8px 18px;
  font-size: 13px;
  font-weight: 700;
  border-radius: var(--radius-pill);
  cursor: pointer;
  transition: all var(--transition);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
}

.pricing-switcher-btn:hover {
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.05);
}

.pricing-switcher-btn.active {
  background: var(--accent-primary);
  color: #FFFFFF;
  box-shadow: 0 2px 8px rgba(0, 82, 255, 0.35);
}

.pricing-switcher-btn .badge-pill-save {
  font-size: 10px;
  padding: 2px 6px;
  border-radius: 9999px;
  background: rgba(245, 158, 11, 0.2);
  color: #F59E0B;
  font-weight: 800;
  border: 1px solid rgba(245, 158, 11, 0.3);
}

.pricing-switcher-btn.active .badge-pill-save {
  background: #FFFFFF;
  color: var(--accent-primary);
  border-color: #FFFFFF;
}

/* Portrait Plan Cards Grid */
.portrait-plans-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
  margin-bottom: 28px;
  align-items: stretch;
  width: 100%;
  box-sizing: border-box;
}

@media (min-width: 1200px) {
  .portrait-plans-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.portrait-plan-card {
  background: var(--bg-card);
  border: 1.5px solid var(--border-color);
  border-radius: 24px;
  padding: 28px 24px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
  min-height: 540px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.portrait-plan-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.16);
  border-color: var(--border-light);
}

/* Highlighted Plan Card — Dark Mode (Obsidian Contrast) */
.portrait-plan-card.highlighted {
  background: #121418;
  color: #FFFFFF;
  border: 2px solid var(--plan-highlight-color, var(--accent-primary));
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.35);
  transform: scale(1.02);
}

.portrait-plan-card.highlighted:hover {
  transform: scale(1.02) translateY(-4px);
  border-color: var(--plan-highlight-color, var(--accent-primary));
}

.portrait-plan-card.highlighted .plan-title,
.portrait-plan-card.highlighted .plan-price-main,
.portrait-plan-card.highlighted .plan-feature-item {
  color: #FFFFFF;
}

.portrait-plan-card.highlighted .plan-desc,
.portrait-plan-card.highlighted .plan-price-period,
.portrait-plan-card.highlighted .plan-price-note {
  color: #A1A1AA !important;
}

.portrait-plan-card.highlighted .plan-dashed-divider {
  border-color: rgba(255, 255, 255, 0.15) !important;
}

/* Highlighted Plan Card — Light Mode (Keeps clean light card background, applies vivid outline) */
body.light-theme .portrait-plan-card.highlighted {
  background: var(--bg-card) !important;
  color: var(--text-primary) !important;
  border: 2.5px solid var(--plan-highlight-color, var(--accent-primary)) !important;
  box-shadow: 0 14px 34px rgba(0, 82, 255, 0.14) !important;
  transform: scale(1.02);
}

body.light-theme .portrait-plan-card.highlighted:hover {
  transform: scale(1.02) translateY(-4px);
  border-color: var(--plan-highlight-color, var(--accent-primary)) !important;
}

body.light-theme .portrait-plan-card.highlighted .plan-title,
body.light-theme .portrait-plan-card.highlighted .plan-price-main,
body.light-theme .portrait-plan-card.highlighted .plan-feature-item {
  color: var(--text-primary) !important;
}

body.light-theme .portrait-plan-card.highlighted .plan-desc,
body.light-theme .portrait-plan-card.highlighted .plan-price-period,
body.light-theme .portrait-plan-card.highlighted .plan-price-note {
  color: var(--text-muted) !important;
}

body.light-theme .portrait-plan-card.highlighted .plan-dashed-divider {
  border-color: var(--border-color) !important;
}

body.light-theme .portrait-plan-card.highlighted .plan-cta-btn {
  background: var(--plan-highlight-color, var(--accent-primary)) !important;
  color: #FFFFFF !important;
  box-shadow: 0 4px 14px rgba(0, 82, 255, 0.25) !important;
}

body.light-theme .portrait-plan-card.highlighted .plan-cta-btn:hover {
  filter: brightness(1.08);
}

/* Plan Card Header */
.portrait-plan-card .plan-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 12px;
}

.portrait-plan-card .plan-title {
  font-size: 19px;
  font-weight: 800;
  color: var(--text-primary);
  margin: 0;
  letter-spacing: -0.3px;
}

.portrait-plan-card .plan-badge {
  font-size: 11px;
  font-weight: 800;
  padding: 3px 10px;
  border-radius: 9999px;
  background: rgba(245, 158, 11, 0.15);
  color: #F59E0B;
  border: 1px solid rgba(245, 158, 11, 0.3);
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.portrait-plan-card .plan-badge.green {
  background: rgba(16, 185, 129, 0.15);
  color: #10B981;
  border-color: rgba(16, 185, 129, 0.3);
}

.portrait-plan-card .plan-badge.blue {
  background: rgba(0, 82, 255, 0.15);
  color: var(--accent-primary);
  border-color: rgba(0, 82, 255, 0.3);
}

/* Plan Pricing */
.portrait-plan-card .plan-price-wrap {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin-bottom: 4px;
}

.portrait-plan-card .plan-price-strikethrough {
  font-size: 26px;
  font-weight: 700;
  color: var(--text-muted);
  text-decoration: line-through;
  opacity: 0.65;
}

.portrait-plan-card .plan-price-main {
  font-size: 38px;
  font-weight: 800;
  color: var(--text-primary);
  letter-spacing: -1px;
  line-height: 1;
}

.portrait-plan-card .plan-price-period {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-muted);
}

.portrait-plan-card .plan-price-note {
  font-size: 11px;
  font-weight: 600;
  color: var(--text-muted);
  margin-bottom: 14px;
}

.portrait-plan-card .plan-capacity-pills {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 12px;
}

.portrait-plan-card .capacity-pill {
  font-size: 11px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: var(--radius-sm);
  background: var(--bg-pill);
  border: 1px solid var(--border-color);
  color: var(--text-secondary);
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.portrait-plan-card .plan-desc {
  font-size: 12px;
  color: var(--text-muted);
  line-height: 1.45;
  margin-bottom: 16px;
}

.portrait-plan-card .plan-dashed-divider {
  border-bottom: 1.5px dashed var(--border-color);
  margin: 14px 0 18px 0;
}

/* Features List */
.portrait-plan-card .plan-features-list {
  display: flex;
  flex-direction: column;
  gap: 11px;
  margin-bottom: 24px;
  flex: 1;
}

.portrait-plan-card .plan-feature-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  color: var(--text-primary);
}

.portrait-plan-card .plan-feature-icon {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 10px;
  font-weight: 800;
}

.portrait-plan-card .plan-feature-icon.included {
  background: rgba(16, 185, 129, 0.2);
  color: #10B981;
}

.portrait-plan-card .plan-feature-icon.excluded {
  background: rgba(113, 113, 122, 0.15);
  color: var(--text-muted);
}

.portrait-plan-card .plan-feature-item.excluded-text {
  color: var(--text-muted);
  text-decoration: line-through;
  opacity: 0.7;
}

/* Card CTA Button */
.portrait-plan-card .plan-cta-btn {
  width: 100%;
  padding: 13px 20px;
  border-radius: var(--radius-pill);
  font-size: 13px;
  font-weight: 800;
  border: none;
  cursor: pointer;
  transition: all var(--transition);
  text-align: center;
  background: var(--bg-pill);
  color: var(--text-primary);
  border: 1px solid var(--border-color);
}

.portrait-plan-card .plan-cta-btn:hover {
  background: var(--bg-pill-hover);
}

.portrait-plan-card.highlighted .plan-cta-btn {
  background: #FFFFFF !important;
  color: #0F172A !important;
  box-shadow: 0 4px 14px rgba(255, 255, 255, 0.2);
  border: none !important;
}

.portrait-plan-card.highlighted .plan-cta-btn:hover {
  background: #F1F5F9 !important;
  transform: scale(1.02);
}

.portrait-plan-card .plan-cta-btn.primary-cta {
  background: var(--accent-primary) !important;
  color: #FFFFFF !important;
  border-color: var(--accent-primary) !important;
  box-shadow: 0 4px 14px rgba(0, 82, 255, 0.25);
}

.portrait-plan-card .plan-cta-btn.primary-cta:hover {
  background: #0040D0 !important;
  transform: scale(1.02);
}

.portrait-plan-card.active-plan-card {
  border-color: var(--accent-primary);
}

.portrait-plan-card .plan-actions-toolbar {
  display: flex;
  gap: 8px;
  margin-top: 10px;
  justify-content: flex-end;
}

/* Extra Brain Usage Horizontal Widget */
.extra-brain-widget-card {
  background: var(--bg-card);
  border: 1.5px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 22px 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 20px;
  margin-top: 16px;
  box-shadow: 0 4px 16px rgba(0,0,0,0.06);
}

.extra-brain-info {
  display: flex;
  align-items: center;
  gap: 16px;
  flex: 1;
  min-width: 260px;
}

.extra-brain-icon-circle {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: rgba(16, 185, 129, 0.12);
  color: #10B981;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.extra-brain-controls-wrap {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.brain-stepper-box {
  display: inline-flex;
  align-items: center;
  background: var(--bg-input);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 4px 6px;
  gap: 10px;
}

.brain-stepper-btn {
  width: 32px;
  height: 32px;
  border-radius: var(--radius-sm);
  background: var(--bg-pill);
  border: 1px solid var(--border-color);
  color: var(--text-primary);
  font-size: 18px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all var(--transition);
  user-select: none;
}

.brain-stepper-btn:hover {
  background: var(--accent-primary);
  color: #FFFFFF;
  border-color: var(--accent-primary);
}

.brain-stepper-value {
  font-size: 14px;
  font-weight: 800;
  color: var(--text-primary);
  min-width: 110px;
  text-align: center;
  font-family: monospace;
}

.brain-price-tag {
  background: rgba(16, 185, 129, 0.12);
  border: 1px solid rgba(16, 185, 129, 0.3);
  padding: 8px 14px;
  border-radius: var(--radius-md);
  text-align: center;
}

.brain-price-tag .price-number {
  font-size: 16px;
  font-weight: 800;
  color: #10B981;
}

.brain-price-tag .price-rate {
  font-size: 10px;
  color: var(--text-muted);
  font-weight: 600;
}

/* Feature Creator Dynamic Item */
.feature-input-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--bg-input);
  border: 1px solid var(--border-color);
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  margin-bottom: 6px;
  gap: 10px;
}

/* ==========================================================================
   Switcher Up/Down Reorder Arrows
   ========================================================================== */
.reorder-arrow-btn {
  width: 32px;
  height: 32px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  color: var(--text-primary);
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all var(--transition);
  padding: 0;
}

.reorder-arrow-btn:hover:not(:disabled) {
  background: var(--accent-primary-bg);
  border-color: var(--accent-primary);
  color: var(--accent-primary);
  transform: translateY(-1px);
}

.reorder-arrow-btn:disabled {
  opacity: 0.35;
  cursor: not-allowed;
  pointer-events: none;
  background: transparent;
}

.reorder-arrow-btn i,
.reorder-arrow-btn svg {
  width: 16px;
  height: 16px;
  stroke-width: 2.5;
}

/* ==========================================================================
   Coupon Group Filter Tags Bar
   ========================================================================== */
.coupon-group-tags-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 18px;
}

.coupon-tag-pill {
  padding: 6px 14px;
  border-radius: var(--radius-pill);
  font-size: 12px;
  font-weight: 700;
  background: var(--bg-pill);
  border: 1px solid var(--border-color);
  color: var(--text-secondary);
  cursor: pointer;
  transition: all var(--transition);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  user-select: none;
}

.coupon-tag-pill:hover {
  background: var(--bg-pill-hover);
  color: var(--text-primary);
  border-color: var(--border-light);
}

.coupon-tag-pill.active {
  background: var(--accent-primary);
  color: #FFFFFF;
  border-color: var(--accent-primary);
  box-shadow: 0 2px 8px rgba(0, 82, 255, 0.35);
}

.coupon-tag-pill .tag-count {
  font-size: 10px;
  padding: 1px 6px;
  border-radius: 9999px;
  background: rgba(255, 255, 255, 0.15);
}

/* ==========================================================================
   Payment Gateway Modern System
   ========================================================================== */
.gateway-card {
  background: var(--bg-card);
  border: 1.5px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
  position: relative;
  transition: all var(--transition);
}

.gateway-card.active-gateway {
  border-color: rgba(0, 82, 255, 0.5);
}

.gateway-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 14px;
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 18px;
}

.gateway-brand {
  display: flex;
  align-items: center;
  gap: 14px;
}

.gateway-logo-box {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--bg-pill);
  border: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  font-weight: 900;
  color: var(--text-primary);
}

.gateway-toggle-switch {
  position: relative;
  display: inline-block;
  width: 46px;
  height: 24px;
}

.gateway-toggle-switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.gateway-slider {
  position: absolute;
  cursor: pointer;
  inset: 0;
  background-color: var(--border-light);
  transition: .3s cubic-bezier(0.4, 0, 0.2, 1);
  border-radius: 24px;
}

.gateway-slider:before {
  position: absolute;
  content: "";
  height: 18px;
  width: 18px;
  left: 3px;
  bottom: 3px;
  background-color: white;
  transition: .3s cubic-bezier(0.4, 0, 0.2, 1);
  border-radius: 50%;
}

.gateway-toggle-switch input:checked + .gateway-slider {
  background-color: #10B981;
}

.gateway-toggle-switch input:checked + .gateway-slider:before {
  transform: translateX(22px);
}

.payment-method-chip {
  padding: 6px 12px;
  border-radius: var(--radius-sm);
  background: var(--bg-pill);
  border: 1px solid var(--border-color);
  font-size: 12px;
  font-weight: 600;
  color: var(--text-primary);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  user-select: none;
}

.payment-method-chip input[type="checkbox"] {
  cursor: pointer;
}

/* ==========================================================================
   Refunds Batch Action Bar
   ========================================================================== */
.refunds-bulk-bar {
  background: var(--bg-card);
  border: 1.5px solid var(--accent-primary);
  border-radius: var(--radius-md);
  padding: 12px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
  box-shadow: 0 6px 20px rgba(0, 82, 255, 0.2);
  animation: slideDownFade 0.2s ease-out;
}

@keyframes slideDownFade {
  from { opacity: 0; transform: translateY(-8px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

.rotating {
  animation: spin 1s linear infinite;
}

input[type="range"].api-margin-slider {
  accent-color: var(--accent-primary);
}

/* Agent and Module Card Styles */
.agent-pin-btn {
  background: var(--bg-pill);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  width: 24px;
  height: 24px;
  min-height: 24px;
  max-height: 24px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  cursor: pointer;
  transition: all var(--transition);
  font-size: 11px;
  line-height: 1;
  padding: 0;
  box-sizing: border-box;
}

.agent-pin-btn:hover {
  background: rgba(0, 82, 255, 0.1);
  color: var(--accent-primary);
  border-color: var(--accent-primary);
}

.agent-pin-btn.pinned {
  background: rgba(0, 82, 255, 0.15);
  color: var(--accent-primary);
  border-color: var(--accent-primary);
  box-shadow: 0 0 8px rgba(0, 82, 255, 0.25);
}

.agent-activate-btn {
  background: var(--bg-pill);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  height: 24px;
  min-height: 24px;
  max-height: 24px;
  padding: 0 10px;
  font-size: 11px;
  font-weight: 700;
  color: var(--text-secondary);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  cursor: pointer;
  transition: all var(--transition);
  box-sizing: border-box;
}

.agent-activate-btn:hover {
  background: rgba(0, 82, 255, 0.1);
  border-color: var(--accent-primary);
  color: var(--accent-primary);
}

.agent-activate-btn.active {
  background: #10B981;
  border-color: #10B981;
  color: #FFFFFF;
  box-shadow: 0 2px 6px rgba(16, 185, 129, 0.25);
}

.agent-activate-btn.active:hover {
  background: #059669;
}

.agent-category-tag {
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 2px 6px;
  border-radius: 4px;
  background: rgba(0, 82, 255, 0.08);
  color: var(--accent-primary);
  display: inline-block;
  margin-bottom: 4px;
}

/* Event Card Expand Styles */
.event-expand-btn {
  background: transparent;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  padding: 4px 10px;
  font-size: 11px;
  font-weight: 600;
  color: var(--text-secondary);
  display: inline-flex;
  align-items: center;
  gap: 4px;
  cursor: pointer;
  transition: all var(--transition);
}

.event-expand-btn:hover {
  background: var(--bg-pill);
  color: var(--accent-primary);
  border-color: var(--accent-primary);
}

.event-details-panel {
  display: none;
  margin-top: 12px;
  padding-top: 10px;
  border-top: 1px dashed var(--border-color);
  font-size: 12px;
  color: var(--text-secondary);
  line-height: 1.5;
  animation: slideDownFade 0.2s ease-out;
}

.event-details-panel.open {
  display: block;
}

.event-meta-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-bottom: 10px;
  background: rgba(0, 82, 255, 0.03);
  padding: 8px 10px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-color);
}

.event-meta-item {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.event-meta-label {
  font-size: 9px;
  color: var(--text-muted);
  text-transform: uppercase;
  font-weight: 700;
  letter-spacing: 0.3px;
}

.event-meta-value {
  font-size: 11px;
  font-weight: 600;
  color: var(--text-primary);
}

.event-action-box {
  background: rgba(16, 185, 129, 0.06);
  border: 1px solid rgba(16, 185, 129, 0.2);
  border-radius: var(--radius-sm);
  padding: 8px 10px;
  margin-bottom: 10px;
}

.event-action-title {
  font-size: 11px;
  font-weight: 700;
  color: #10B981;
  margin-bottom: 2px;
  display: flex;
  align-items: center;
  gap: 4px;
}

.event-action-desc {
  font-size: 11px;
  color: var(--text-secondary);
}

.event-resolve-btn {
  background: var(--bg-pill);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  padding: 4px 10px;
  font-size: 11px;
  font-weight: 600;
  color: var(--text-primary);
  cursor: pointer;
  transition: all var(--transition);
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.event-resolve-btn:hover {
  background: #10B981;
  border-color: #10B981;
  color: #FFFFFF;
}

.event-resolve-btn.resolved {
  background: #10B981;
  border-color: #10B981;
  color: #FFFFFF;
}

/* Event Dossier 10-Item Structured Styling */
.event-dossier-section {
  background: rgba(0, 82, 255, 0.02);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  padding: 8px 10px;
  margin-bottom: 8px;
}

.dossier-two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

@media (max-width: 640px) {
  .dossier-two-col {
    grid-template-columns: 1fr;
  }
}

.dossier-header {
  font-size: 11px;
  font-weight: 700;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 5px;
  margin-bottom: 4px;
  text-transform: uppercase;
  letter-spacing: 0.3px;
}

.dossier-header i {
  width: 12px;
  height: 12px;
  color: var(--text-secondary);
}

.dossier-text {
  font-size: 11.5px;
  color: var(--text-secondary);
  line-height: 1.45;
  margin: 0;
}

.branestar-analysis-box {
  background: rgba(139, 92, 246, 0.04);
  border-color: rgba(139, 92, 246, 0.2);
}

.branestar-analysis-box .dossier-header {
  color: #8B5CF6;
}

.dossier-source-pill {
  font-size: 10px;
  background: rgba(0, 82, 255, 0.08);
  color: var(--accent-primary);
  padding: 2px 6px;
  border-radius: 4px;
  font-weight: 600;
  border: 1px solid rgba(0, 82, 255, 0.15);
}

/* Column-Based Masonry Grid for Events (Prevents Row Stretching & Blank Spaces) */
.events-masonry-grid {
  column-count: 4;
  column-gap: 16px;
  width: 100%;
}

@media (max-width: 1550px) {
  .events-masonry-grid {
    column-count: 3;
  }
}

@media (max-width: 1100px) {
  .events-masonry-grid {
    column-count: 2;
  }
}

@media (max-width: 768px) {
  .events-masonry-grid {
    column-count: 1;
  }
}

.events-masonry-grid .intel-card {
  break-inside: avoid;
  page-break-inside: avoid;
  -webkit-column-break-inside: avoid;
  margin-bottom: 16px;
  display: inline-block;
  width: 100%;
  box-sizing: border-box;
  vertical-align: top;
}

/* Infinite Scroll Sentinel */
.scroll-sentinel {
  width: 100%;
  padding: 16px 0;
  text-align: center;
  font-size: 12px;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  grid-column: 1 / -1;
  column-span: all;
}

/* Luxury Modern Sensitivity Bar & Slider */
.events-sensitivity-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 10px 16px;
  gap: 20px;
  margin-bottom: 12px;
  flex-wrap: wrap;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.03);
}

.sensitivity-slider-container {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 320px;
  max-width: 440px;
  flex: 1;
}

.sensitivity-slider-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.sensitivity-label-wrap {
  display: flex;
  align-items: center;
  gap: 6px;
}

.sensitivity-icon {
  width: 14px;
  height: 14px;
  color: var(--accent-primary);
}

.sensitivity-title {
  font-size: 12px;
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: -0.2px;
}

.sensitivity-live-badge {
  font-size: 11px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 12px;
  transition: all 0.2s ease;
}

.sensitivity-live-badge.low {
  background: rgba(239, 68, 68, 0.12);
  color: #EF4444;
  border: 1px solid rgba(239, 68, 68, 0.3);
}

.sensitivity-live-badge.med {
  background: rgba(245, 158, 11, 0.12);
  color: #F59E0B;
  border: 1px solid rgba(245, 158, 11, 0.3);
}

.sensitivity-live-badge.high {
  background: rgba(0, 82, 255, 0.1);
  color: var(--accent-primary);
  border: 1px solid rgba(0, 82, 255, 0.25);
}

.sensitivity-slider-track-wrap {
  position: relative;
  width: 100%;
  padding-bottom: 24px;
  margin-top: 4px;
}

/* Custom Webkit / Moz Luxury Range Slider (0-100%) */
.luxury-range-slider {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 6px;
  border-radius: 6px;
  background: linear-gradient(to right, #EF4444 0%, #F59E0B 45%, #0052FF 100%);
  outline: none;
  cursor: pointer;
  margin: 0;
  transition: background 0.3s ease;
}

.luxury-range-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #FFFFFF;
  border: 3px solid var(--accent-primary);
  box-shadow: 0 2px 8px rgba(0, 82, 255, 0.4), 0 0 0 3px rgba(0, 82, 255, 0.15);
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.luxury-range-slider::-webkit-slider-thumb:hover {
  transform: scale(1.15);
  box-shadow: 0 3px 12px rgba(0, 82, 255, 0.6), 0 0 0 5px rgba(0, 82, 255, 0.2);
}

.luxury-range-slider::-webkit-slider-thumb:active {
  transform: scale(1.05);
}

.luxury-range-slider::-moz-range-thumb {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #FFFFFF;
  border: 3px solid var(--accent-primary);
  box-shadow: 0 2px 8px rgba(0, 82, 255, 0.4);
  cursor: pointer;
}

.slider-step-ticks {
  display: flex;
  justify-content: space-between;
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  margin-top: 10px;
}

.step-tick {
  font-size: 10px;
  font-weight: 600;
  color: var(--text-muted);
  cursor: pointer;
  transition: color 0.2s ease;
  user-select: none;
  display: flex;
  align-items: center;
  gap: 4px;
}

.step-tick.active {
  color: var(--text-primary);
  font-weight: 700;
}

.tick-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--text-muted);
  display: inline-block;
}

.step-tick.active .tick-dot {
  background: var(--accent-primary);
}

/* Channel Alert Squared Buttons (Shadow strictly on buttons, clean transparent strip) */
.category-alert-channels-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  background: transparent;
  padding: 0;
  border: none;
}

.alerts-for-text {
  font-size: 12px;
  color: var(--text-muted);
  font-weight: 600;
  display: inline-flex;
  align-items: center;
}

.channel-icons-stack {
  display: flex;
  align-items: center;
  gap: 8px;
}

.channel-square-btn {
  width: 34px;
  height: 34px;
  border-radius: 8px;
  border: 1px solid var(--border-color);
  background: var(--bg-card);
  color: var(--text-secondary);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  padding: 0;
  position: relative;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08), 0 1px 2px rgba(0, 0, 0, 0.04);
}

.channel-square-btn i {
  width: 16px;
  height: 16px;
  stroke-width: 2.2;
  transition: all 0.2s ease;
}

.channel-square-btn:hover {
  border-color: var(--accent-primary);
  color: var(--text-primary);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12), 0 2px 4px rgba(0, 0, 0, 0.06);
}

.channel-square-btn .active-green-dot {
  position: absolute;
  top: -3px;
  right: -3px;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #10B981;
  border: 2px solid var(--bg-card);
  box-shadow: 0 0 8px rgba(16, 185, 129, 0.8);
  display: none;
}

/* Bold Green Active Highlight when activated */
.channel-square-btn.active {
  background: rgba(16, 185, 129, 0.12);
  border: 1.5px solid #10B981;
  color: #10B981;
  box-shadow: 0 3px 10px rgba(16, 185, 129, 0.28), 0 1px 3px rgba(0, 0, 0, 0.06);
}

.channel-square-btn.active:hover {
  background: rgba(16, 185, 129, 0.18);
  border-color: #10B981;
  color: #10B981;
  box-shadow: 0 5px 14px rgba(16, 185, 129, 0.38), 0 2px 4px rgba(0, 0, 0, 0.08);
}

.channel-square-btn.active .active-green-dot {
  display: block;
}

/* Event Notification Settings Table */
.event-notif-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  background: var(--bg-card);
}

.event-notif-table th {
  background: var(--bg-pill);
  padding: 10px 14px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--text-muted);
  text-align: left;
  border-bottom: 1px solid var(--border-color);
}

.event-notif-table td {
  padding: 12px 14px;
  font-size: 12px;
  color: var(--text-primary);
  border-bottom: 1px solid var(--border-color);
  vertical-align: middle;
}

.event-notif-table tr:last-child td {
  border-bottom: none;
}

.cat-sens-badge {
  font-size: 10px;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 10px;
  display: inline-block;
  white-space: nowrap;
}

.cat-sens-badge.low {
  background: rgba(239, 68, 68, 0.12);
  color: #EF4444;
  border: 1px solid rgba(239, 68, 68, 0.3);
}

.cat-sens-badge.med {
  background: rgba(245, 158, 11, 0.12);
  color: #F59E0B;
  border: 1px solid rgba(245, 158, 11, 0.3);
}

.cat-sens-badge.high {
  background: rgba(0, 82, 255, 0.1);
  color: var(--accent-primary);
  border: 1px solid rgba(0, 82, 255, 0.25);
}

.cat-sens-slider {
  width: 100%;
  cursor: pointer;
}

/* Team Members Overlapping Round Avatars */
.team-avatar-stack {
  display: flex;
  align-items: center;
  padding-left: 2px;
}

.team-round-avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  color: #FFFFFF;
  font-size: 10px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid var(--bg-card);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12);
  margin-left: -7px;
  cursor: pointer;
  transition: transform 0.2s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.2s ease, z-index 0.2s ease;
  position: relative;
  user-select: none;
}

.team-round-avatar:first-child {
  margin-left: 0;
}

.team-round-avatar:hover {
  transform: scale(1.22) translateY(-2px);
  z-index: 10;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
}

/* ==========================================================================
   Brand Intelligence Hub — Custom Sub-Nav, Overview & Sub-Page Styles
   ========================================================================== */

/* ── Live Brand Stream Subnav Bar (Button Style) ─────────────────────── */
.brand-stream-subnav-bar,
.brand-subnav-bar {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-pill, 9999px);
  padding: 6px 12px;
  box-shadow: var(--shadow-card);
  gap: 12px;
  flex-wrap: wrap;
}

.stream-status-left {
  display: flex;
  align-items: center;
  gap: 10px;
  order: 2;
  margin-left: auto;
}

.live-pulse-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent-primary);
  box-shadow: 0 0 10px var(--accent-primary);
  animation: pulseAccent 2s infinite;
}

@keyframes pulseAccent {
  0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(0, 82, 255, 0.7); }
  70% { transform: scale(1.1); box-shadow: 0 0 0 6px rgba(0, 82, 255, 0); }
  100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(0, 82, 255, 0); }
}

.stream-title {
  color: var(--text-primary);
  font-weight: 800;
  letter-spacing: -0.01em;
  font-size: 13.5px;
}

.brand-subnav-links {
  display: flex;
  align-items: center;
  gap: 8px;
  background: transparent;
  padding: 0;
  border: none;
  order: 1;
}

.brand-subnav-btn,
.market-subnav-btn,
.audience-subnav-btn,
.competitor-subnav-btn,
.local-subnav-btn {
  background: transparent;
  border: 1px solid transparent;
  color: var(--text-secondary);
  font-size: 12.5px;
  font-weight: 600;
  padding: 6px 16px;
  border-radius: var(--radius-pill, 9999px);
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  align-items: center;
  gap: 5px;
  user-select: none;
}

.brand-subnav-btn:hover,
.market-subnav-btn:hover,
.audience-subnav-btn:hover,
.competitor-subnav-btn:hover,
.local-subnav-btn:hover {
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.06);
}

.brand-subnav-btn.active,
.market-subnav-btn.active,
.audience-subnav-btn.active,
.competitor-subnav-btn.active,
.local-subnav-btn.active {
  background: var(--accent-primary);
  color: #FFFFFF;
  font-weight: 700;
  border-color: var(--accent-primary);
  box-shadow: 0 2px 10px rgba(0, 82, 255, 0.35);
  transform: translateY(-1px);
}

/* ── Brand Workspace Content Layouts ───────────────────────────────── */
.brand-content-tab {
  display: none;
  flex-direction: column;
  gap: 20px;
  width: 100%;
  flex: 1;
  min-height: 0;
}
.brand-content-tab.active {
  display: flex;
}

/* ── Overview Dashboard Section (Image 2) ──────────────────────────── */
.brand-dash-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 4px;
  margin-bottom: 2px;
}
.brand-dash-title {
  font-size: 22px;
  font-weight: 800;
  color: var(--text-primary);
  margin: 0 0 3px 0;
  letter-spacing: -0.02em;
}
.brand-dash-subtitle {
  font-size: 13px;
  color: var(--text-muted);
  margin: 0;
}
.brand-dash-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}
.streaming-live-badge {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  background: rgba(16, 185, 129, 0.12);
  border: 1px solid rgba(16, 185, 129, 0.25);
  border-radius: var(--radius-pill);
  font-size: 11.5px;
  font-weight: 700;
  color: #10B981;
}

.brand-dash-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
  width: 100%;
}
.brand-dash-grid.two-col {
  grid-template-columns: 1fr 1.65fr;
}
.brand-dash-grid.three-col {
  grid-template-columns: repeat(3, 1fr);
  align-items: stretch;
}
.brand-dash-grid.three-col .dash-card {
  min-height: auto;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
}

/* Overview Card Styles */
.dash-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 20px;
  padding: 26px 28px;
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.18);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 325px;
  height: 100%;
  position: relative;
  overflow: hidden;
  transition: border-color 0.2s, transform 0.2s;
}
.dash-card:hover {
  border-color: var(--border-light, rgba(255, 255, 255, 0.15));
}

.dash-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}
.dash-card-title {
  font-size: 15px;
  font-weight: 800;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 8px;
  letter-spacing: -0.01em;
}
.dash-card-title-icon {
  cursor: pointer;
  color: var(--text-muted);
  transition: color 0.2s, transform 0.2s;
}
.dash-card-title-icon:hover {
  color: var(--text-primary);
  transform: translateX(2px);
}

/* Score Card */
.score-main-row {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin-bottom: 18px;
}
.score-big-val {
  font-size: 46px;
  font-weight: 900;
  color: var(--text-primary);
  letter-spacing: -0.03em;
  line-height: 1;
}
.score-denom {
  font-size: 20px;
  font-weight: 600;
  color: var(--text-muted);
}
.score-badge-green {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 5px 12px;
  background: rgba(16, 185, 129, 0.15);
  color: #10B981;
  border-radius: var(--radius-pill);
  font-size: 12.5px;
  font-weight: 800;
}
.score-btn-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 18px;
}
.score-btn-dark {
  background: var(--bg-pill, rgba(255, 255, 255, 0.05));
  border: 1px solid var(--border-color);
  color: var(--text-primary);
  padding: 10px 16px;
  border-radius: var(--radius-pill);
  font-size: 12.5px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s;
}
.score-btn-dark:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: var(--border-light);
}
.score-btn-accent {
  background: var(--accent-primary);
  border: 1px solid var(--accent-primary);
  color: #FFFFFF;
  padding: 10px 16px;
  border-radius: var(--radius-pill);
  font-size: 12.5px;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(0, 82, 255, 0.35);
  transition: all 0.2s;
}
.score-btn-accent:hover {
  filter: brightness(1.1);
  transform: translateY(-1px);
}
.score-substats-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  padding-top: 16px;
  border-top: 1px solid var(--border-color);
}
.substat-label {
  font-size: 11.5px;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 3px;
}
.substat-val {
  font-size: 20px;
  font-weight: 800;
  color: var(--text-primary);
}
.consideration-progress-wrap {
  margin-top: 14px;
}
.progress-bar-bg {
  width: 100%;
  height: 8px;
  background: var(--bg-pill, rgba(255, 255, 255, 0.06));
  border-radius: 99px;
  overflow: hidden;
  margin-top: 6px;
}
.progress-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--accent-primary), #10B981);
  border-radius: 99px;
}

/* Health Score Card Specific Restructuring */
.health-score-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 12px;
}
.health-score-card .dash-card-header {
  margin-bottom: 0;
}
.health-score-card .score-main-row {
  margin-bottom: 0;
  display: flex;
  align-items: baseline;
  gap: 10px;
}
.health-score-benchmark {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.health-score-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 11px;
  font-weight: 600;
  color: var(--text-muted);
}
.health-score-meta strong {
  color: var(--text-primary);
}
.health-score-card .score-substats-grid {
  padding-top: 10px;
  border-top: 1px solid var(--border-color);
}
.health-score-card .consideration-progress-wrap {
  margin-top: 0;
}

/* Volume Trend Bar Chart */
.chart-toggle-group {
  display: flex;
  background: var(--bg-pill, rgba(255, 255, 255, 0.05));
  border: 1px solid var(--border-color);
  border-radius: var(--radius-pill);
  padding: 2px;
  gap: 2px;
}
.chart-toggle-btn {
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-size: 11px;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: var(--radius-pill);
  cursor: pointer;
  transition: all 0.2s;
}
.chart-toggle-btn.active {
  background: var(--bg-card);
  color: var(--text-primary);
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.3);
}
.chart-select-pill {
  background: var(--bg-pill, rgba(255, 255, 255, 0.05));
  border: 1px solid var(--border-color);
  color: var(--text-secondary);
  font-size: 11px;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: var(--radius-sm, 6px);
  cursor: pointer;
}
.bar-chart-container {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 8px;
  height: 200px;
  padding: 14px 0 0 0;
  position: relative;
}
.bar-chart-col {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  height: 100%;
  justify-content: flex-end;
  position: relative;
  cursor: pointer;
}
.bar-track {
  width: 100%;
  max-width: 28px;
  border-radius: 6px 6px 0 0;
  background: var(--bg-pill, #222328);
  border: 1px solid var(--border-color, #26272C);
  transition: all 0.3s ease;
}
.bar-chart-col:hover .bar-track {
  background: var(--bg-pill-hover, #2C2D34);
  border-color: var(--border-light, #34353C);
}
.bar-chart-col.highlighted .bar-track {
  background: var(--accent-primary);
  border-color: var(--accent-primary);
  box-shadow: 0 0 16px rgba(0, 82, 255, 0.55);
}

/* Wide Bars for 4-6 Column Yearly/Forecast Charts */
.bar-chart-container.wide-bars {
  gap: 16px;
  padding: 14px 12px 0 12px;
}
.bar-chart-container.wide-bars .bar-track {
  max-width: 64px;
  border-radius: 8px 8px 0 0;
}
.bar-chart-container.wide-bars .bar-chart-col {
  padding: 0 4px;
}

/* Light Theme High-Contrast Bar Chart Overrides */
body.light-theme .bar-track {
  background: #CBD5E1;
  border-color: #94A3B8;
}
body.light-theme .bar-chart-col:hover .bar-track {
  background: #94A3B8;
  border-color: #64748B;
}
body.light-theme .bar-chart-col.highlighted .bar-track {
  background: var(--accent-primary);
  border-color: var(--accent-primary);
  box-shadow: 0 0 14px rgba(0, 82, 255, 0.45);
}
body.light-theme .bar-month-label {
  color: var(--text-secondary);
}

.bar-tooltip-pill {
  position: absolute;
  top: -26px;
  background: var(--accent-primary);
  color: #FFFFFF;
  font-size: 11px;
  font-weight: 900;
  padding: 3px 7px;
  border-radius: 4px;
  white-space: nowrap;
  box-shadow: 0 2px 8px rgba(0, 82, 255, 0.4);
}
.bar-month-label {
  font-size: 11.5px;
  color: var(--text-muted);
  margin-top: 8px;
  font-weight: 600;
}

/* Branestar Assessment Card */
.assessment-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 100%;
}
.assessment-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}
.assessment-title-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14.5px;
  font-weight: 800;
  color: var(--text-primary);
}
.assessment-badge {
  font-size: 11px;
  font-weight: 800;
  padding: 4px 10px;
  border-radius: var(--radius-pill, 99px);
  background: rgba(16, 185, 129, 0.15);
  color: #10B981;
  border: 1px solid rgba(16, 185, 129, 0.3);
}
.assessment-summary-text {
  font-size: 12.5px;
  color: var(--text-secondary);
  line-height: 1.5;
  margin: 0 0 12px 0;
}
.assessment-pillars-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 12px;
}
.assessment-pillar-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--bg-pill, rgba(255, 255, 255, 0.04));
  padding: 8px 12px;
  border-radius: 8px;
  font-size: 12px;
  border: 1px solid var(--border-color);
}
.assessment-pillar-item .pillar-label {
  font-weight: 600;
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  gap: 7px;
}
.assessment-pillar-item .pillar-val {
  font-weight: 800;
  color: var(--text-primary);
}
.assessment-footer-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 12px;
  border-top: 1px solid var(--border-color);
  font-size: 11.5px;
  color: var(--text-muted);
}

/* Brand Hub Gradient Card */
.node-gradient-card {
  background: linear-gradient(135deg, #4F46E5 0%, #7C3AED 50%, #2563EB 100%);
  border-radius: 14px;
  padding: 20px;
  color: #FFFFFF;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 100%;
  box-shadow: 0 8px 24px rgba(79, 70, 229, 0.35);
}
.node-top-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.node-live-tag {
  font-size: 10.5px;
  font-weight: 800;
  letter-spacing: 0.08em;
  opacity: 0.95;
}
.node-pro-badge {
  background: rgba(255, 255, 255, 0.22);
  padding: 3px 8px;
  border-radius: 4px;
  font-size: 10px;
  font-weight: 800;
  backdrop-filter: blur(4px);
}
.node-mid-row {
  margin: 18px 0;
}
.node-id-masked {
  font-size: 18px;
  font-family: monospace;
  font-weight: 800;
  letter-spacing: 0.12em;
  margin-bottom: 4px;
}
.node-name-label {
  font-size: 10.5px;
  font-weight: 700;
  opacity: 0.85;
  letter-spacing: 0.06em;
}
.node-bottom-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 10px;
  font-weight: 800;
  opacity: 0.9;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  padding-top: 10px;
}

/* Positioning Attributes List with Circular Rings */
.attr-items-container {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 6px;
}
.attribute-item-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 0;
  border-bottom: 1px solid var(--border-color);
}
.attribute-item-row:last-child {
  border-bottom: none;
  padding-bottom: 0;
}
.attr-left-col {
  display: flex;
  align-items: center;
  gap: 16px;
}
.ring-gauge-wrap {
  width: 48px;
  height: 48px;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.ring-gauge-wrap svg {
  transform: rotate(-90deg);
}
.ring-gauge-text {
  position: absolute;
  font-size: 11.5px;
  font-weight: 800;
  color: var(--text-primary);
}
.attr-text-col {
  display: flex;
  flex-direction: column;
}
.attr-title-text {
  font-size: 14px;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.35;
  margin-bottom: 3px;
}
.attr-sub-text {
  font-size: 12px;
  color: var(--text-muted);
}
.attr-right-badge {
  text-align: right;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 3px;
}
.attr-stat-top {
  font-size: 13.5px;
  font-weight: 800;
}
.attr-stat-top.green { color: #10B981; }
.attr-stat-top.accent { color: var(--accent-primary); }
.attr-stat-top.red { color: #EF4444; }

/* Sentiment Polarity Bar Style Components */
.sentiment-card-body {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 6px;
}
.sentiment-score-header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
  gap: 10px;
  flex-wrap: wrap;
}
.sentiment-net-box {
  display: flex;
  align-items: baseline;
  gap: 8px;
}
.sentiment-net-number {
  font-size: 34px;
  font-weight: 900;
  color: var(--text-primary);
  line-height: 1;
  letter-spacing: -0.02em;
}
.sentiment-net-tag {
  font-size: 11px;
  font-weight: 800;
  color: var(--text-muted);
  letter-spacing: 0.06em;
}
.sentiment-meta-stats {
  display: flex;
  align-items: center;
  gap: 8px;
}
.sentiment-stat-pill {
  font-size: 11.5px;
  font-weight: 700;
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  background: var(--bg-pill, rgba(255, 255, 255, 0.04));
  padding: 5px 11px;
  border-radius: var(--radius-sm, 6px);
  border: 1px solid var(--border-color);
}

.stacked-sentiment-track-wrap {
  margin-bottom: 10px;
}
.stacked-sentiment-bar {
  width: 100%;
  height: 14px;
  border-radius: 99px;
  overflow: hidden;
  display: flex;
  background: var(--bg-pill, rgba(128, 128, 128, 0.15));
  gap: 2px;
}
.stacked-segment {
  height: 100%;
  transition: width 0.3s ease;
}
.stacked-segment.positive {
  background: var(--accent-primary);
  border-radius: 99px 0 0 99px;
}
.stacked-segment.neutral {
  background: #38BDF8;
}
.stacked-segment.negative {
  background: #EF4444;
  border-radius: 0 99px 99px 0;
}

.sentiment-breakdown-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.sentiment-breakdown-row {
  display: flex;
  flex-direction: column;
  gap: 5px;
}
.sbr-label-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 13px;
}
.sbr-name {
  color: var(--text-secondary);
  font-weight: 600;
  display: flex;
  align-items: center;
}
.sbr-val {
  color: var(--text-primary);
  font-weight: 700;
}
.sbr-count {
  font-size: 11.5px;
  color: var(--text-muted);
  font-weight: 500;
  margin-left: 3px;
}
.sbr-track-bg {
  width: 100%;
  height: 9px;
  border-radius: 99px;
  background: var(--bg-pill, #222328);
  border: 1px solid var(--border-color, #26272C);
  overflow: hidden;
}
.sbr-track-fill {
  height: 100%;
  border-radius: 99px;
  transition: width 0.4s ease;
}
.sbr-track-fill.positive {
  background: var(--accent-primary);
}
.sbr-track-fill.neutral {
  background: #38BDF8;
}
.sbr-track-fill.negative {
  background: #EF4444;
}

/* Light Theme High-Contrast Overrides */
body.light-theme .sbr-track-bg {
  background: #E2E8F0;
  border-color: #CBD5E1;
}
body.light-theme .stacked-sentiment-bar {
  background: #E2E8F0;
}

.polarity-legend-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  font-size: 11px;
  font-weight: 700;
  color: var(--text-secondary);
}
.legend-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  display: inline-block;
  margin-right: 4px;
}
.legend-dot.accent { background: var(--accent-primary); }
.legend-dot.blue { background: #38BDF8; }
.legend-dot.red { background: #EF4444; }

/* Recent Brand Mentions Feed */
.recent-mentions-feed-wrap {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-top: 6px;
}
.recent-mention-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 0;
  border-bottom: 1px solid var(--border-color);
}
.recent-mention-item:last-child {
  border-bottom: none;
  padding-bottom: 0;
}
.mention-platform-icon {
  width: 34px;
  height: 34px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  flex-shrink: 0;
  background: var(--bg-pill);
  color: var(--text-secondary);
}
.mention-platform-icon.twitter { color: #38BDF8; background: rgba(56, 189, 248, 0.1); }
.mention-platform-icon.linkedin { color: #0A66C2; background: rgba(10, 102, 194, 0.1); }
.mention-platform-icon.reddit { color: #FF4500; background: rgba(255, 69, 0, 0.1); }
.mention-platform-icon.youtube { color: #EF4444; background: rgba(239, 68, 68, 0.1); }
.mention-content-wrap {
  flex: 1;
  min-width: 0;
}
.mention-headline {
  font-size: 13px;
  font-weight: 700;
  color: var(--text-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 1.35;
  margin-bottom: 2px;
}
.mention-author-time {
  font-size: 11.5px;
  color: var(--text-muted);
}
.mention-nss-score {
  font-size: 11.5px;
  font-weight: 800;
  padding: 4px 8px;
  border-radius: 6px;
  flex-shrink: 0;
}
.mention-nss-score.positive { color: #10B981; background: rgba(16, 185, 129, 0.1); }
.mention-nss-score.negative { color: #EF4444; background: rgba(239, 68, 68, 0.1); }

/* ==========================================================================
   Brand Health Core Metrics (Exact Reference Image Style)
   ========================================================================== */

/* Top 5-Card Metric Row */
.health-kpi-5grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 16px;
  width: 100%;
  margin-bottom: 20px;
}
.health-kpi-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  padding: 18px 22px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.14);
  min-height: 115px;
  transition: border-color 0.2s, transform 0.2s;
}
.health-kpi-card:hover {
  border-color: var(--border-light);
  transform: translateY(-2px);
}
.health-kpi-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
}
.health-kpi-label {
  font-size: 11.5px;
  font-weight: 800;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.health-kpi-icon {
  font-size: 15px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.health-kpi-val {
  font-size: 30px;
  font-weight: 900;
  color: var(--text-primary);
  line-height: 1.05;
  letter-spacing: -0.02em;
  margin-bottom: 8px;
}
.health-kpi-tag {
  font-size: 12.5px;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 4px;
}
.health-kpi-tag.green { color: #10B981; }
.health-kpi-tag.muted { color: var(--text-muted); }

/* Main Asymmetric Grid: Wide Landscape Rectangle on Left vs Compact Square on Right */
.health-2x2-grid {
  display: grid;
  grid-template-columns: 1.35fr 1fr;
  gap: 20px;
  width: 100%;
}
.health-deep-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 18px;
  padding: 24px 28px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.16);
  min-height: 410px;
}
.health-card-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 18px;
  gap: 12px;
}
.health-card-title-box h3 {
  font-size: 17px;
  font-weight: 800;
  color: var(--text-primary);
  margin: 0 0 4px 0;
  letter-spacing: -0.01em;
}
.health-card-title-box p {
  font-size: 13px;
  color: var(--text-muted);
  margin: 0;
}
.health-badge-pill {
  font-size: 12px;
  font-weight: 700;
  color: var(--text-secondary);
  background: var(--bg-pill);
  border: 1px solid var(--border-color);
  padding: 6px 14px;
  border-radius: 99px;
  white-space: nowrap;
}

/* Alert Spike Callout */
.health-alert-box {
  background: rgba(245, 158, 11, 0.08);
  border: 1px solid rgba(245, 158, 11, 0.25);
  border-radius: 10px;
  padding: 12px 16px;
  margin-bottom: 18px;
}
.health-alert-title {
  font-size: 13px;
  font-weight: 800;
  color: #F59E0B;
  display: flex;
  align-items: center;
  gap: 7px;
  margin-bottom: 3px;
}
.health-alert-desc {
  font-size: 12.5px;
  color: var(--text-secondary);
  line-height: 1.45;
  margin: 0;
}

/* Velocity Rows */
.platform-velocity-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.velocity-item {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.velocity-meta-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 13.5px;
}
.velocity-name {
  font-weight: 700;
  color: var(--text-primary);
}
.velocity-stats {
  color: var(--text-muted);
  font-size: 13px;
}
.velocity-stats strong {
  color: var(--text-primary);
  font-weight: 800;
  margin-left: 8px;
  font-size: 13.5px;
}
.velocity-track-bg {
  width: 100%;
  height: 8px;
  background: var(--bg-pill, rgba(128, 128, 128, 0.15));
  border-radius: 99px;
  overflow: hidden;
}
.velocity-track-fill {
  height: 100%;
  border-radius: 99px;
  transition: width 0.3s ease;
}

/* SOV Competitor Table */
.sov-stacked-bar {
  width: 100%;
  height: 14px;
  border-radius: 99px;
  overflow: hidden;
  display: flex;
  background: var(--bg-pill);
  gap: 2px;
  margin-bottom: 18px;
}
.sov-segment {
  height: 100%;
  transition: width 0.3s ease;
}
.sov-competitor-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 16px;
}
.sov-competitor-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 11px 16px;
  border-radius: 10px;
  background: var(--bg-pill, rgba(255, 255, 255, 0.03));
  border: 1px solid var(--border-color);
  font-size: 13px;
}
.sov-competitor-row.highlighted {
  border: 1px solid var(--accent-primary, #0052FF) !important;
  background: rgba(0, 82, 255, 0.08) !important;
  color: var(--text-primary) !important;
  box-shadow: 0 2px 12px rgba(0, 82, 255, 0.12);
}
.sov-competitor-row.highlighted .sov-comp-left strong {
  color: var(--text-primary) !important;
}
.sov-competitor-row.highlighted .comp-meta-tag,
.sov-competitor-row.highlighted .comp-meta-tag strong {
  color: var(--text-muted) !important;
}
.sov-competitor-row.highlighted .comp-meta-tag strong {
  color: var(--text-primary) !important;
}
.sov-competitor-row.highlighted .sov-pct {
  color: var(--text-primary) !important;
}
.sov-competitor-row.highlighted .comp-eval-pill {
  background: var(--bg-pill, rgba(255, 255, 255, 0.05)) !important;
  border-color: var(--border-color) !important;
  color: var(--text-primary) !important;
}
.sov-competitor-row.highlighted .comp-eval-pill strong {
  color: var(--text-primary) !important;
}
.sov-competitor-row.highlighted .m-kpi-pill.green {
  background: rgba(16, 185, 129, 0.12) !important;
  color: #10B981 !important;
  font-weight: 800;
}
.sov-comp-left {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  color: var(--text-primary);
}
.sov-comp-right {
  display: flex;
  align-items: center;
  gap: 14px;
}
.sov-pct {
  font-weight: 800;
  font-size: 14px;
  color: var(--text-primary);
}
.sov-avg-sent {
  font-size: 11.5px;
  color: var(--text-muted);
}

.health-insight-box {
  background: var(--bg-pill, rgba(255, 255, 255, 0.03));
  border-left: 3px solid var(--accent-primary);
  border-radius: 0 8px 8px 0;
  padding: 12px 16px;
  font-size: 12.5px;
  color: var(--text-secondary);
  line-height: 1.5;
}

/* Sentiment & Polarity 6-Month Trend */
.sentiment-trend-strip {
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid var(--border-color);
}
.sentiment-trend-label {
  font-size: 11px;
  font-weight: 800;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 10px;
}
.sentiment-months-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 8px;
}
.sentiment-month-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: var(--bg-pill, rgba(255, 255, 255, 0.03));
  border: 1px solid var(--border-color);
  border-radius: 10px;
  padding: 10px 6px;
  text-align: center;
}
.sentiment-month-box.active {
  border-color: var(--accent-primary);
  background: rgba(0, 82, 255, 0.08);
}
.sentiment-month-name {
  font-size: 11px;
  font-weight: 600;
  color: var(--text-muted);
  margin-bottom: 3px;
}
.sentiment-month-val {
  font-size: 14px;
  font-weight: 800;
  color: var(--text-primary);
}
.sentiment-month-box.active .sentiment-month-val {
  color: var(--accent-primary);
}

/* Funnel Stages List */
.funnel-stages-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 16px;
}
.funnel-stage-item {
  display: flex;
  flex-direction: column;
  gap: 5px;
}
.funnel-meta-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 13px;
}
.funnel-stage-name {
  font-weight: 700;
  color: var(--text-primary);
}
.funnel-stage-stats {
  font-size: 13px;
  font-weight: 800;
  color: var(--text-primary);
}
.funnel-callout-box {
  background: rgba(245, 158, 11, 0.06);
  border: 1px solid rgba(245, 158, 11, 0.25);
  border-radius: 10px;
  padding: 13px 16px;
  font-size: 12.5px;
  color: var(--text-secondary);
  line-height: 1.5;
}

/* Light theme overrides for brand health */
body.light-theme .velocity-track-bg,
body.light-theme .sov-stacked-bar {
  background: #E2E8F0;
}
body.light-theme .sov-competitor-row {
  background: #F8FAFC;
  border-color: #E2E8F0;
}
body.light-theme .sov-competitor-row.highlighted {
  background: rgba(0, 82, 255, 0.08);
  border-color: var(--accent-primary);
}
body.light-theme .sentiment-month-box {
  background: #F8FAFC;
  border-color: #E2E8F0;
}
body.light-theme .health-kpi-card,
body.light-theme .health-deep-card {
  background: #FFFFFF;
  border-color: #E2E8F0;
}
body.light-theme .health-insight-box {
  background: #F8FAFC;
}

/* Emotions Breakdown List */
.emotions-breakdown-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 4px;
}
.emotion-pill-row {
  background: var(--bg-pill, rgba(255, 255, 255, 0.03));
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 14px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  transition: all 0.2s ease;
}
.emotion-pill-row:hover {
  border-color: var(--border-light);
  transform: translateX(2px);
}
.emotion-pill-label {
  font-size: 14px;
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: -0.01em;
}
.emotion-pill-right {
  display: flex;
  align-items: center;
  gap: 16px;
}
.emotion-track-bg {
  width: 140px;
  height: 8px;
  background: var(--bg-pill-hover, rgba(128, 128, 128, 0.2));
  border-radius: 99px;
  overflow: hidden;
}
.emotion-track-fill {
  height: 100%;
  border-radius: 99px;
  transition: width 0.4s ease;
}
.emotion-pct-val {
  font-size: 13.5px;
  font-weight: 800;
  color: var(--text-primary);
  min-width: 38px;
  text-align: right;
}

/* Light Theme Overrides for Emotions */
body.light-theme .emotion-pill-row {
  background: #F8FAFC;
  border-color: #E2E8F0;
}
body.light-theme .emotion-track-bg {
  background: #E2E8F0;
}

/* ==========================================================================
   Brand Positioning (Exact Reference Image Style)
   ========================================================================== */

.pos-content-container {
  display: flex;
  flex-direction: column;
  gap: 20px;
  width: 100%;
}

/* Top Full-Width Hero Card */
.positioning-hero-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 18px;
  padding: 26px 28px;
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.16);
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.positioning-hero-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
.pos-title-wrap h3 {
  font-size: 17px;
  font-weight: 800;
  color: var(--text-primary);
  margin: 0 0 4px 0;
  display: flex;
  align-items: center;
  gap: 8px;
  letter-spacing: -0.01em;
}
.pos-title-wrap p {
  font-size: 13px;
  color: var(--text-muted);
  margin: 0;
}
.pos-filters-bar {
  display: flex;
  gap: 4px;
  background: var(--bg-pill);
  padding: 4px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--border-color);
  flex-wrap: wrap;
}
.pos-filter-btn {
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-size: 12px;
  font-weight: 700;
  padding: 6px 13px;
  border-radius: var(--radius-pill);
  cursor: pointer;
  transition: all 0.2s;
}
.pos-filter-btn.active {
  background: var(--accent-primary);
  color: #FFFFFF;
}

/* Hero Body Split: 2x3 Vocabulary Grid on Left + Verbatim Proof on Right */
.positioning-hero-body {
  display: grid;
  grid-template-columns: 1.65fr 1.15fr;
  gap: 20px;
}
.vocab-cards-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.vocab-card {
  background: var(--bg-pill, rgba(255, 255, 255, 0.03));
  border: 1px solid var(--border-color);
  border-radius: 14px;
  padding: 15px 16px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 104px;
  transition: all 0.2s ease;
}
.vocab-card:hover {
  border-color: var(--border-light);
}
.vocab-card.highlighted {
  border-color: rgba(0, 82, 255, 0.4);
  background: rgba(0, 82, 255, 0.05);
}
.vocab-top-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 6px;
}
.vocab-category-tag {
  font-size: 10.5px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
}
.vocab-mentions-badge {
  font-size: 11px;
  font-weight: 800;
  padding: 3px 9px;
  border-radius: 99px;
  background: rgba(16, 185, 129, 0.12);
  color: #10B981;
}
.vocab-mentions-badge.red {
  background: rgba(239, 68, 68, 0.12);
  color: #EF4444;
}
.vocab-quote-text {
  font-size: 14.5px;
  font-weight: 800;
  color: var(--text-primary);
  margin: 3px 0 10px 0;
  letter-spacing: -0.01em;
}
.vocab-footer-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 11.5px;
  color: var(--text-muted);
  border-top: 1px solid var(--border-color);
  padding-top: 8px;
}
.vocab-weight-val {
  font-weight: 800;
  font-size: 13px;
}
.vocab-weight-val.green { color: #10B981; }
.vocab-weight-val.red { color: #EF4444; }

/* Right Verbatim Social Proof Panel */
.verbatim-proof-card {
  background: var(--bg-pill, rgba(255, 255, 255, 0.02));
  border: 1px solid var(--border-color);
  border-radius: 14px;
  padding: 20px 22px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 100%;
}
.verbatim-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 11.5px;
  font-weight: 800;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  margin-bottom: 14px;
}
.verbatim-platform-tag {
  font-size: 13px;
  font-weight: 900;
  color: var(--accent-primary);
}
.verbatim-quote-box {
  font-size: 15px;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.55;
  margin-bottom: 16px;
}
.verbatim-meta-tags {
  display: flex;
  flex-direction: column;
  gap: 5px;
  font-size: 12px;
  color: var(--text-muted);
  background: var(--bg-card);
  padding: 12px 14px;
  border-radius: 10px;
  border: 1px solid var(--border-color);
  margin-bottom: 16px;
}
.verbatim-meta-tags div strong {
  color: var(--text-primary);
}
.verbatim-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 12px;
  color: var(--text-muted);
  border-top: 1px solid var(--border-color);
  padding-top: 12px;
}
.verbatim-samples-count {
  font-weight: 800;
  color: var(--accent-primary);
}

/* Bottom 2-Column Row */
.positioning-2col-grid {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 20px;
  width: 100%;
}
.positioning-bottom-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 18px;
  padding: 26px 28px;
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.16);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.pos-bottom-header {
  margin-bottom: 16px;
}
.pos-bottom-header h3 {
  font-size: 17px;
  font-weight: 800;
  color: var(--text-primary);
  margin: 0 0 4px 0;
  display: flex;
  align-items: center;
  gap: 8px;
  letter-spacing: -0.01em;
}
.pos-bottom-header p {
  font-size: 13px;
  color: var(--text-muted);
  margin: 0;
}

/* Attributes Benchmark Rows */
.attr-benchmarks-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.attr-bar-row {
  display: flex;
  flex-direction: column;
  gap: 5px;
  padding: 8px 0;
  border-bottom: 1px solid var(--border-color);
}
.attr-bar-row:last-child {
  border-bottom: none;
}
.attr-bar-top-line {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 13.5px;
}
.attr-name {
  font-weight: 700;
  color: var(--text-primary);
}
.attr-benchmarks {
  display: flex;
  align-items: baseline;
  gap: 10px;
  font-size: 12px;
  color: var(--text-muted);
}
.attr-score-main {
  font-size: 13.5px;
  font-weight: 900;
  color: var(--text-primary);
}
.attr-track-bg {
  width: 100%;
  height: 8px;
  background: var(--bg-pill, rgba(128, 128, 128, 0.15));
  border-radius: 99px;
  overflow: hidden;
  margin: 3px 0;
}
.attr-track-fill {
  height: 100%;
  border-radius: 99px;
  background: var(--accent-primary);
  transition: width 0.3s ease;
}
.attr-driver-text {
  font-size: 11.5px;
  color: var(--text-muted);
}

/* Emerging Associations Cards */
.emerging-topics-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.emerging-topic-card {
  background: var(--bg-pill, rgba(255, 255, 255, 0.03));
  border: 1px solid var(--border-color);
  border-radius: 14px;
  padding: 15px 18px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  transition: all 0.2s ease;
}
.emerging-topic-card:hover {
  border-color: var(--border-light);
}
.emerging-top-line {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.emerging-title {
  font-size: 14px;
  font-weight: 800;
  color: var(--text-primary);
}
.emerging-surge-pill {
  font-size: 11px;
  font-weight: 800;
  color: #10B981;
  background: rgba(16, 185, 129, 0.12);
  padding: 3px 9px;
  border-radius: 99px;
}
.emerging-desc {
  font-size: 12.5px;
  color: var(--text-secondary);
  line-height: 1.5;
  margin: 0;
}
.emerging-bottom-line {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 11.5px;
  color: var(--text-muted);
  padding-top: 6px;
}
.emerging-tag {
  font-size: 11px;
  color: var(--text-muted);
}
.emerging-count {
  font-weight: 700;
  color: var(--text-primary);
}
.emerging-growth-banner {
  background: rgba(245, 158, 11, 0.06);
  border: 1px solid rgba(245, 158, 11, 0.25);
  border-radius: 10px;
  padding: 13px 16px;
  font-size: 12.5px;
  color: var(--text-secondary);
  line-height: 1.5;
  margin-top: 14px;
}

/* Light Theme Overrides for Positioning */
body.light-theme .positioning-hero-card,
body.light-theme .positioning-bottom-card {
  background: #FFFFFF;
  border-color: #E2E8F0;
}
body.light-theme .vocab-card,
body.light-theme .verbatim-proof-card,
body.light-theme .emerging-topic-card {
  background: #F8FAFC;
  border-color: #E2E8F0;
}
body.light-theme .vocab-card.highlighted {
  background: rgba(0, 82, 255, 0.06);
  border-color: var(--accent-primary);
}
body.light-theme .attr-track-bg {
  background: #E2E8F0;
}
body.light-theme .verbatim-meta-tags {
  background: #FFFFFF;
  border-color: #E2E8F0;
}
body.light-theme .vocab-card,
body.light-theme .verbatim-proof-card,
body.light-theme .emerging-topic-card {
  background: #F8FAFC;
  border-color: #E2E8F0;
}
body.light-theme .vocab-card.highlighted {
  background: rgba(0, 82, 255, 0.06);
  border-color: var(--accent-primary);
}
body.light-theme .attr-track-bg {
  background: #E2E8F0;
}
body.light-theme .verbatim-meta-tags {
  background: #FFFFFF;
  border-color: #E2E8F0;
}

/* ==========================================================================
   Brand Movement (Exact Reference Image Style)
   ========================================================================== */

.movement-content-container {
  display: flex;
  flex-direction: column;
  gap: 20px;
  width: 100%;
}

/* Top 2-Column Row (Positive vs Negative Changes) */
.movement-top-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  width: 100%;
}
.movement-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 18px;
  padding: 26px 28px;
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.16);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 410px;
}
.movement-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 18px;
}
.movement-title-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 17px;
  font-weight: 800;
  color: var(--text-primary);
  letter-spacing: -0.01em;
}
.movement-badge-pill {
  font-size: 11.5px;
  font-weight: 800;
  padding: 4px 12px;
  border-radius: 99px;
}
.movement-badge-pill.green {
  background: rgba(16, 185, 129, 0.12);
  color: #10B981;
}
.movement-badge-pill.red {
  background: rgba(239, 68, 68, 0.12);
  color: #EF4444;
}

.movement-items-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.movement-item-box {
  background: var(--bg-pill, rgba(255, 255, 255, 0.03));
  border: 1px solid var(--border-color);
  border-radius: 14px;
  padding: 15px 18px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  transition: all 0.2s ease;
}
.movement-item-box:hover {
  border-color: var(--border-light);
}
.movement-item-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.movement-item-title {
  font-size: 14px;
  font-weight: 800;
  color: var(--text-primary);
}
.movement-item-tag {
  font-size: 11px;
  font-weight: 800;
  padding: 3px 9px;
  border-radius: 99px;
  white-space: nowrap;
}
.movement-item-tag.green {
  background: rgba(16, 185, 129, 0.12);
  color: #10B981;
}
.movement-item-tag.red {
  background: rgba(239, 68, 68, 0.12);
  color: #EF4444;
}
.movement-item-desc {
  font-size: 12.5px;
  color: var(--text-secondary);
  line-height: 1.45;
  margin: 0;
}
.movement-item-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 11px;
  color: var(--text-muted);
  padding-top: 4px;
}
.movement-source {
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--text-muted);
}
.movement-hashtags {
  display: flex;
  align-items: center;
  gap: 6px;
}
.movement-hash {
  font-size: 10.5px;
  font-weight: 600;
  color: var(--text-muted);
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  padding: 2px 7px;
  border-radius: 4px;
}

.movement-remediation-box {
  background: var(--bg-pill, rgba(255, 255, 255, 0.03));
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 14px 18px;
  font-size: 12.5px;
  color: var(--text-secondary);
  line-height: 1.5;
  margin-top: 14px;
}

/* Bottom Full-Width Hero Card (Social Narratives) */
.narratives-hero-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 18px;
  padding: 26px 28px;
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.16);
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.narratives-section-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
.narratives-title-wrap h3 {
  font-size: 17px;
  font-weight: 800;
  color: var(--text-primary);
  margin: 0 0 4px 0;
  display: flex;
  align-items: center;
  gap: 8px;
  letter-spacing: -0.01em;
}
.narratives-title-wrap p {
  font-size: 13px;
  color: var(--text-muted);
  margin: 0;
}
.narrative-filter-pills {
  display: flex;
  gap: 4px;
  background: var(--bg-pill);
  padding: 4px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--border-color);
  flex-wrap: wrap;
}
.narrative-filter-btn {
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-size: 12px;
  font-weight: 700;
  padding: 6px 14px;
  border-radius: var(--radius-pill);
  cursor: pointer;
  transition: all 0.2s;
}
.narrative-filter-btn.active {
  background: var(--accent-primary);
  color: #FFFFFF;
}

.narratives-2x2-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.narrative-card {
  background: var(--bg-pill, rgba(255, 255, 255, 0.03));
  border: 1px solid var(--border-color);
  border-radius: 14px;
  padding: 18px 20px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 180px;
  transition: all 0.2s ease;
}
.narrative-card:hover {
  border-color: var(--border-light);
  transform: translateY(-2px);
}
.narrative-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}
.narrative-author-badge {
  display: flex;
  align-items: center;
  gap: 8px;
}
.narrative-platform-pill {
  font-size: 10px;
  font-weight: 800;
  padding: 3px 8px;
  border-radius: 4px;
  text-transform: uppercase;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}
.narrative-platform-pill svg {
  width: 12px;
  height: 12px;
  flex-shrink: 0;
}
.narrative-platform-pill.x { background: rgba(56, 189, 248, 0.15); color: #38BDF8; }
.narrative-platform-pill.linkedin { background: rgba(10, 102, 194, 0.15); color: #60A5FA; }
.narrative-platform-pill.reddit { background: rgba(255, 69, 0, 0.15); color: #FB923C; }
.narrative-platform-pill.youtube { background: rgba(239, 68, 68, 0.15); color: #F87171; }
.narrative-author-name {
  font-size: 13px;
  font-weight: 700;
  color: var(--text-primary);
}
.narrative-author-handle {
  font-size: 12px;
  color: var(--text-muted);
}
.narrative-nss-score {
  font-size: 13px;
  font-weight: 800;
}
.narrative-nss-score.green { color: #10B981; }
.narrative-nss-score.orange { color: #F59E0B; }
.narrative-nss-score.red { color: #EF4444; }

.narrative-post-title {
  font-size: 14.5px;
  font-weight: 800;
  color: var(--text-primary);
  margin: 0 0 6px 0;
}
.narrative-post-quote {
  font-size: 12.5px;
  color: var(--text-secondary);
  line-height: 1.5;
  margin: 0 0 14px 0;
  font-style: italic;
}
.narrative-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 12px;
  border-top: 1px solid var(--border-color);
  font-size: 12px;
  color: var(--text-muted);
}
.narrative-reactions-row {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 12px;
  font-weight: 600;
}
.reaction-item {
  display: flex;
  align-items: center;
  gap: 4px;
}
.drilldown-action-btn {
  background: transparent;
  border: none;
  color: var(--accent-primary);
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 5px;
  transition: all 0.2s;
}
.drilldown-action-btn:hover {
  filter: brightness(1.2);
  transform: translateX(2px);
}

/* Light Theme Overrides for Movement */
body.light-theme .movement-card,
body.light-theme .narratives-hero-card {
  background: #FFFFFF;
  border-color: #E2E8F0;
}
body.light-theme .movement-item-box,
body.light-theme .movement-remediation-box,
body.light-theme .narrative-card {
  background: #F8FAFC;
  border-color: #E2E8F0;
}
body.light-theme .movement-hash {
  background: #FFFFFF;
  border-color: #E2E8F0;
}

/* ==========================================================================
   Brand Opportunities (Exact Reference Image Style)
   ========================================================================== */

.opportunities-content-container {
  display: flex;
  flex-direction: column;
  gap: 20px;
  width: 100%;
}

/* Top Hero Banner Card */
.opp-hero-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 18px;
  padding: 24px 28px;
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.16);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}
.opp-hero-left {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.opp-tag-row {
  display: flex;
  align-items: center;
  gap: 8px;
}
.opp-intel-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(0, 82, 255, 0.12);
  color: var(--accent-primary);
  border: 1px solid rgba(0, 82, 255, 0.25);
  font-size: 11px;
  font-weight: 800;
  padding: 4px 11px;
  border-radius: var(--radius-pill);
}
.ai-sparkle-icon {
  display: inline-block;
  width: 14px;
  height: 14px;
  background-color: currentColor;
  -webkit-mask: url('assets/ai-sparkle-icon.png') no-repeat center / contain;
  mask: url('assets/ai-sparkle-icon.png') no-repeat center / contain;
  vertical-align: middle;
  flex-shrink: 0;
}
.opp-generate-btn .ai-sparkle-icon,
.ai-sparkle-animated {
  width: 16px;
  height: 16px;
  animation: aiSparkleTwinkle 2.8s ease-in-out infinite;
  transform-origin: center center;
  transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1), filter 0.3s ease;
}

@keyframes aiSparkleTwinkle {
  0% {
    transform: scale(1) rotate(0deg);
    filter: drop-shadow(0 0 2px rgba(255, 255, 255, 0.4));
  }
  25% {
    transform: scale(1.18) rotate(12deg);
    filter: drop-shadow(0 0 8px rgba(255, 255, 255, 0.9)) brightness(1.25);
  }
  50% {
    transform: scale(0.92) rotate(-8deg);
    filter: drop-shadow(0 0 4px rgba(255, 255, 255, 0.5));
  }
  75% {
    transform: scale(1.22) rotate(15deg);
    filter: drop-shadow(0 0 10px rgba(255, 255, 255, 1)) brightness(1.35);
  }
  100% {
    transform: scale(1) rotate(0deg);
    filter: drop-shadow(0 0 2px rgba(255, 255, 255, 0.4));
  }
}

.opp-intel-badge .ai-sparkle-icon {
  width: 13px;
  height: 13px;
}
.opp-intel-period {
  font-size: 11.5px;
  color: var(--text-muted);
  font-weight: 600;
}
.opp-hero-title {
  font-size: 20px;
  font-weight: 800;
  color: var(--text-primary);
  margin: 0;
  letter-spacing: -0.02em;
}
.opp-hero-subtitle {
  font-size: 13px;
  color: var(--text-muted);
  margin: 0;
}
.opp-generate-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--accent-primary);
  color: #FFFFFF;
  font-size: 13px;
  font-weight: 800;
  padding: 12px 22px;
  border-radius: var(--radius-pill);
  border: none;
  cursor: pointer;
  box-shadow: 0 4px 18px rgba(0, 82, 255, 0.35);
  transition: all 0.2s ease;
  white-space: nowrap;
}
.opp-generate-btn:hover {
  filter: brightness(1.1);
  transform: translateY(-1px);
  box-shadow: 0 6px 22px rgba(0, 82, 255, 0.5);
}
.opp-generate-btn:hover .ai-sparkle-icon {
  animation: none;
  transform: scale(1.3) rotate(180deg);
  filter: drop-shadow(0 0 12px #FFFFFF);
}

/* 3-Column Playbook Columns Grid */
.opportunities-3col-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  width: 100%;
}
.opp-column-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 18px;
  padding: 24px 24px;
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.16);
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.opp-col-header {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding-bottom: 4px;
}
.opp-col-top-line {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.opp-col-title-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 16px;
  font-weight: 800;
  color: var(--text-primary);
}
.opp-col-pill {
  font-size: 11px;
  font-weight: 800;
  padding: 3px 10px;
  border-radius: 99px;
}
.opp-col-pill.green { background: rgba(16, 185, 129, 0.12); color: #10B981; }
.opp-col-pill.red { background: rgba(239, 68, 68, 0.12); color: #EF4444; }
.opp-col-pill.blue { background: rgba(56, 189, 248, 0.12); color: #38BDF8; }
.opp-col-desc {
  font-size: 12px;
  color: var(--text-muted);
  line-height: 1.45;
  margin: 0;
}

.opp-items-stack {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.opp-playbook-item {
  background: var(--bg-pill, rgba(255, 255, 255, 0.03));
  border: 1px solid var(--border-color);
  border-radius: 14px;
  padding: 16px 18px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 10px;
  min-height: 230px;
  transition: all 0.2s ease;
}
.opp-playbook-item:hover {
  border-color: var(--border-light);
}
.opp-item-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 6px;
}
.opp-item-title {
  font-size: 14px;
  font-weight: 800;
  color: var(--text-primary);
  line-height: 1.35;
  margin: 0;
  flex: 1;
}
.opp-dismiss-btn {
  background: transparent;
  border: 1px solid var(--border-color);
  color: var(--text-muted);
  font-size: 10.5px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 6px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  transition: all 0.2s ease;
  flex-shrink: 0;
}
.opp-dismiss-btn:hover {
  background: rgba(239, 68, 68, 0.08);
  color: #EF4444;
  border-color: rgba(239, 68, 68, 0.3);
}
.opp-item-desc {
  font-size: 12px;
  color: var(--text-secondary);
  line-height: 1.45;
  margin: 0;
}
.opp-action-box {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 10px;
  padding: 12px 14px;
  font-size: 12px;
  color: var(--text-secondary);
  line-height: 1.45;
}
.opp-action-label {
  font-weight: 800;
  margin-bottom: 3px;
  display: block;
}
.opp-action-label.gold,
.opp-action-label.accent { color: var(--accent-primary); }
.opp-action-label.red { color: #EF4444; }
.opp-action-label.blue { color: #38BDF8; }

.opp-item-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 11px;
  padding-top: 6px;
  border-top: 1px solid var(--border-color);
}
.opp-metric-lift {
  font-weight: 800;
}
.opp-metric-lift.green { color: #10B981; }
.opp-metric-lift.blue { color: #38BDF8; }
.opp-urgency-tag {
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.opp-urgency-tag.high { color: var(--accent-primary); }
.opp-urgency-tag.red { color: #EF4444; }
.opp-urgency-tag.green { color: #10B981; }
.opp-urgency-tag.medium { color: var(--accent-primary); }

/* Light Theme Overrides for Opportunities */
body.light-theme .opp-hero-card,
body.light-theme .opp-column-card {
  background: #FFFFFF;
  border-color: #E2E8F0;
}
body.light-theme .opp-playbook-item {
  background: #F8FAFC;
  border-color: #E2E8F0;
}
body.light-theme .opp-action-box {
  background: #FFFFFF;
  border-color: #E2E8F0;
}
.primary-target-strip {
  background: rgba(0, 82, 255, 0.08);
  border-left: 3px solid var(--accent-primary);
  padding: 6px 12px;
  border-radius: 0 6px 6px 0;
  font-size: 12px;
  font-weight: 700;
  color: var(--accent-primary);
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 6px;
}
.checklist-section-title {
  font-size: 10.5px;
  font-weight: 800;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 8px;
}
.checklist-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}
.checklist-item-box {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: 10px 12px;
  font-size: 11.5px;
  color: var(--text-secondary);
  display: flex;
  align-items: flex-start;
  gap: 8px;
  line-height: 1.35;
  cursor: pointer;
  transition: all 0.2s;
}
.checklist-item-box:hover {
  border-color: var(--border-light);
  color: var(--text-primary);
}
.checklist-item-box input[type="checkbox"] {
  accent-color: var(--accent-primary);
  margin-top: 2px;
}

/* ── Strategic 3-Column Deep Dive Layout (Image 4) ──────────────────── */
.strategic-3col-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 16px;
  margin-top: 8px;
}
.strat-col-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.strat-col-header {
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 12px;
}
.strat-col-title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 4px;
}
.strat-col-title {
  font-size: 14px;
  font-weight: 800;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 6px;
}
.strat-col-badge {
  font-size: 9.5px;
  font-weight: 900;
  padding: 2px 7px;
  border-radius: 4px;
}
.strat-col-badge.green { background: rgba(16, 185, 129, 0.15); color: #10B981; }
.strat-col-badge.red { background: rgba(239, 68, 68, 0.15); color: #EF4444; }
.strat-col-badge.cyan { background: rgba(6, 182, 212, 0.15); color: #06B6D4; }
.strat-col-subtitle {
  font-size: 11.5px;
  color: var(--text-muted);
  line-height: 1.35;
  margin: 0;
}

.strat-card-item {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-color);
  border-radius: 10px;
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.strat-item-title {
  font-size: 13px;
  font-weight: 800;
  color: var(--text-primary);
  margin: 0;
}
.strat-item-desc {
  font-size: 11.5px;
  color: var(--text-secondary);
  line-height: 1.4;
  margin: 0;
}
.strat-action-callout {
  background: var(--bg-pill);
  border-radius: 6px;
  padding: 8px 10px;
  font-size: 11px;
  line-height: 1.35;
  color: var(--text-primary);
}
.strat-action-callout strong {
  color: var(--accent-primary);
}
.strat-item-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 10.5px;
  margin-top: 4px;
}
.strat-lift-text {
  color: #10B981;
  font-weight: 800;
}
.strat-urgency-pill {
  font-size: 9px;
  font-weight: 800;
  padding: 2px 6px;
  border-radius: 4px;
  text-transform: uppercase;
}
.strat-urgency-pill.high { background: rgba(239, 68, 68, 0.15); color: #EF4444; }
.strat-urgency-pill.medium { background: rgba(0, 82, 255, 0.15); color: var(--accent-primary); }

/* ==========================================================================
   MARKET INTELLIGENCE STYLES
   ========================================================================== */
.market-content-tab {
  display: none;
  flex-direction: column;
  gap: 20px;
  width: 100%;
}
.market-content-tab.active {
  display: flex;
  animation: fadeIn 0.25s ease;
}

.market-subnav-btn {
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-size: 13px;
  font-weight: 700;
  padding: 8px 16px;
  border-radius: var(--radius-pill);
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  white-space: nowrap;
}
.market-subnav-btn:hover {
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.04);
}
.market-subnav-btn.active {
  background: var(--accent-primary);
  color: #FFFFFF;
  box-shadow: 0 2px 10px rgba(0, 82, 255, 0.3);
}

/* Market KPI Grid */
.market-kpi-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  width: 100%;
}
.market-kpi-grid.three-col {
  grid-template-columns: repeat(3, 1fr);
}
.market-kpi-grid.five-col {
  grid-template-columns: repeat(5, 1fr);
}
.market-kpi-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  padding: 20px 22px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 8px;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.12);
  transition: all 0.2s ease;
}
.market-kpi-card:hover {
  border-color: var(--border-light);
  transform: translateY(-1px);
}
.market-kpi-card.mini {
  padding: 16px 18px;
  gap: 4px;
}
.m-kpi-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.m-kpi-icon-box {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.m-kpi-icon-box.blue { background: rgba(0, 82, 255, 0.12); color: var(--accent-primary); }
.m-kpi-icon-box.purple { background: rgba(168, 85, 247, 0.12); color: #A855F7; }
.m-kpi-icon-box.cyan { background: rgba(56, 189, 248, 0.12); color: #38BDF8; }
.m-kpi-icon-box.green { background: rgba(16, 185, 129, 0.12); color: #10B981; }
.m-kpi-icon-box.amber { background: rgba(245, 158, 11, 0.12); color: #F59E0B; }
.m-kpi-icon-box svg { width: 17px; height: 17px; }

.m-kpi-pill {
  font-size: 11px;
  font-weight: 800;
  padding: 3px 9px;
  border-radius: 99px;
}
.m-kpi-pill.green { background: rgba(16, 185, 129, 0.12); color: #10B981; }
.m-kpi-pill.blue { background: rgba(0, 82, 255, 0.12); color: var(--accent-primary); }
.m-kpi-pill.cyan { background: rgba(56, 189, 248, 0.12); color: #38BDF8; }
.m-kpi-pill.purple { background: rgba(168, 85, 247, 0.12); color: #A855F7; }
.m-kpi-pill.pink { background: rgba(236, 72, 153, 0.12); color: #EC4899; }
.m-kpi-pill.amber, .m-kpi-pill.yellow { background: rgba(245, 158, 11, 0.12); color: #F59E0B; }
.m-kpi-pill.orange { background: rgba(249, 115, 22, 0.12); color: #F97316; }
.m-kpi-pill.red { background: rgba(239, 68, 68, 0.12); color: #EF4444; }
.m-kpi-pill.gray { background: rgba(255, 255, 255, 0.08); color: var(--text-muted); }

.m-kpi-label {
  font-size: 12px;
  font-weight: 700;
  color: var(--text-muted);
}
.m-kpi-val {
  font-size: 28px;
  font-weight: 800;
  color: var(--text-primary);
  letter-spacing: -0.02em;
  line-height: 1.1;
}
.m-kpi-sub {
  font-size: 12px;
  color: var(--text-secondary);
  margin: 0;
  line-height: 1.4;
}
.m-kpi-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 11.5px;
  color: var(--text-muted);
  border-top: 1px solid var(--border-color);
  padding-top: 8px;
  margin-top: 2px;
}

/* Market Grids */
.market-2col-grid {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 20px;
  width: 100%;
}
.market-3col-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  width: 100%;
}
.market-3col-grid .bar-chart-container {
  gap: 4px;
}
.market-3col-grid .bar-chart-container.wide-bars {
  gap: 10px;
}
.market-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 18px;
  padding: 24px 26px;
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.16);
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.market-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.market-card-title {
  font-size: 17px;
  font-weight: 800;
  color: var(--text-primary);
  margin: 0 0 4px 0;
  display: flex;
  align-items: center;
  gap: 8px;
}
.market-card-title svg {
  width: 18px;
  height: 18px;
}
.market-card-subtitle {
  font-size: 12.5px;
  color: var(--text-muted);
  margin: 0;
}

/* Market Segments List */
.market-segments-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.market-segment-item {
  display: flex;
  flex-direction: column;
  gap: 6px;
  background: var(--bg-pill, rgba(255, 255, 255, 0.02));
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 12px 14px;
}
.m-seg-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.m-seg-name-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
}
.m-seg-name {
  font-size: 13.5px;
  font-weight: 800;
  color: var(--text-primary);
}
.m-seg-leader-badge {
  font-size: 10.5px;
  font-weight: 800;
  padding: 2px 7px;
  border-radius: 99px;
  background: rgba(0, 82, 255, 0.12);
  color: var(--accent-primary);
}
.m-seg-leader-badge.gray {
  background: rgba(255, 255, 255, 0.06);
  color: var(--text-muted);
}
.m-seg-val-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
}
.m-seg-val {
  font-size: 14px;
  font-weight: 800;
  color: var(--text-primary);
}
.m-seg-growth {
  font-size: 11px;
  font-weight: 800;
}
.m-seg-growth.green { color: #10B981; }
.m-seg-track {
  width: 100%;
  height: 6px;
  background: var(--border-color);
  border-radius: 99px;
  overflow: hidden;
}
.m-seg-fill {
  height: 100%;
  border-radius: 99px;
}
.m-seg-fill.blue { background: var(--accent-primary); }
.m-seg-fill.purple { background: #A855F7; }
.m-seg-fill.cyan { background: #38BDF8; }
.m-seg-fill.amber { background: #F59E0B; }
.m-seg-fill.green { background: #10B981; }
.m-seg-fill.gray { background: #64748B; }
.m-seg-fill.red { background: #EF4444; }
.m-seg-fill.pink { background: #E1306C; }

/* Assessment Body */
.m-assessment-body {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.m-assessment-summary {
  font-size: 13.5px;
  color: var(--text-secondary);
  line-height: 1.55;
  background: var(--bg-pill, rgba(255, 255, 255, 0.02));
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 14px 16px;
}
.m-pillars-stack {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.m-pillar-row {
  display: flex;
  flex-direction: column;
  gap: 5px;
}
.m-pillar-info {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 12.5px;
  font-weight: 700;
  color: var(--text-muted);
}
.m-takeaway-box {
  background: rgba(0, 82, 255, 0.06);
  border: 1px solid rgba(0, 82, 255, 0.2);
  border-radius: 12px;
  padding: 12px 14px;
  font-size: 12.5px;
  color: var(--text-secondary);
  line-height: 1.45;
}
.m-takeaway-label {
  font-weight: 800;
  color: var(--accent-primary);
  display: block;
  margin-bottom: 2px;
}

/* Landscape Share Stack */
.landscape-share-stack {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.share-row-item {
  background: var(--bg-pill, rgba(255, 255, 255, 0.02));
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 14px 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.share-row-item.highlighted {
  border-color: rgba(0, 82, 255, 0.35);
  background: rgba(0, 82, 255, 0.04);
}
.share-row-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.share-row-title {
  font-size: 13.5px;
  font-weight: 800;
  color: var(--text-primary);
}
.share-row-pct {
  font-size: 14px;
  font-weight: 800;
  color: var(--text-primary);
}
.share-row-pct small.green { color: #10B981; font-weight: 700; font-size: 11px; }
.share-row-pct small.red { color: #EF4444; font-weight: 700; font-size: 11px; }
.share-row-desc {
  font-size: 12px;
  color: var(--text-muted);
  line-height: 1.45;
  margin: 0;
}
.share-row-desc strong {
  color: var(--text-primary);
  font-weight: 600;
}

/* Market Size by Segment Custom Image Card */
.segment-size-stack {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.segment-size-item {
  background: var(--bg-pill, rgba(255, 255, 255, 0.02));
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 14px 18px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  transition: all 0.2s ease;
}
.segment-size-item:hover {
  border-color: var(--border-light);
  transform: translateY(-1px);
}
.segment-size-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
}
.segment-size-name {
  font-size: 14.5px;
  font-weight: 800;
  color: var(--text-primary);
  display: block;
  margin-bottom: 2px;
}
.segment-size-leader {
  font-size: 12px;
  color: var(--text-muted);
  font-weight: 500;
}
.segment-size-right {
  text-align: right;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
}
.segment-size-val {
  font-size: 15.5px;
  font-weight: 800;
  color: var(--text-primary);
}
.segment-size-share {
  font-size: 11.5px;
  color: var(--accent-primary);
  font-weight: 700;
}
.segment-footer-info {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 14px;
  border-top: 1px solid var(--border-color);
  font-size: 13px;
  color: var(--text-muted);
}
.segment-footer-info strong {
  color: var(--accent-primary);
  font-weight: 800;
}

/* Tier Lifecycle Cards (Incumbents, Scale-Ups, Early Stage, New Entrants) */
.tier-cards-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  width: 100%;
}
.tier-card-body {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.tier-badge-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
  background: var(--bg-pill, rgba(255, 255, 255, 0.02));
  border: 1px solid var(--border-color);
  border-radius: 10px;
  padding: 10px 14px;
  font-size: 12px;
}
.tier-companies-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.tier-company-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--bg-pill, rgba(255, 255, 255, 0.02));
  border: 1px solid var(--border-color);
  border-radius: 10px;
  padding: 8px 12px;
  font-size: 13px;
  transition: all 0.15s ease;
}
.tier-company-row:hover {
  border-color: var(--border-light);
  transform: translateY(-1px);
}
.tier-company-name {
  font-weight: 700;
  color: var(--text-primary);
}
.tier-overview-text {
  font-size: 12.5px;
  color: var(--text-secondary);
  line-height: 1.5;
  background: rgba(0, 82, 255, 0.04);
  border: 1px dashed rgba(0, 82, 255, 0.25);
  border-radius: 10px;
  padding: 10px 14px;
}
.tier-overview-text strong {
  color: var(--accent-primary);
  display: block;
  margin-bottom: 2px;
}

/* Failure Rate Dynamics Card */
.failure-rate-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.failure-rate-item {
  background: var(--bg-pill, rgba(255, 255, 255, 0.02));
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 12px 14px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.failure-rate-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 12.5px;
  font-weight: 800;
  color: var(--text-primary);
}
.failure-rate-pct {
  font-weight: 800;
  font-size: 13.5px;
}
.failure-rate-pct.red { color: #EF4444; }
.failure-rate-pct.amber { color: #F59E0B; }
.failure-rate-pct.green { color: #10B981; }
.failure-rate-pct.blue { color: var(--accent-primary); }
.failure-rate-desc {
  font-size: 11.5px;
  color: var(--text-muted);
  margin: 0;
  line-height: 1.35;
}

/* Entrants List */
.entrants-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.entrant-item {
  background: var(--bg-pill, rgba(255, 255, 255, 0.02));
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 12px 14px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.entrant-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.entrant-name {
  font-size: 13.5px;
  font-weight: 800;
  color: var(--text-primary);
  margin-right: 6px;
}
.entrant-stage {
  font-size: 11px;
  color: var(--text-muted);
  font-weight: 600;
}
.entrant-desc {
  font-size: 12px;
  color: var(--text-secondary);
  margin: 0;
  line-height: 1.35;
}

/* Demand Queries */
.demand-queries-stack {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.demand-query-item {
  background: var(--bg-pill, rgba(255, 255, 255, 0.02));
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 14px 16px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.d-q-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.d-q-title {
  font-size: 14px;
  font-weight: 800;
  color: var(--text-primary);
}
.d-q-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 12px;
  color: var(--text-muted);
}
.d-q-meta strong {
  color: var(--text-secondary);
}

/* High-Demand Products & High-Demand Categories */
.demand-products-stack,
.demand-categories-stack {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.demand-product-item,
.demand-cat-item {
  background: var(--bg-pill, rgba(255, 255, 255, 0.02));
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 12px 14px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  transition: all 0.2s ease;
}
.demand-product-item:hover,
.demand-cat-item:hover {
  border-color: var(--border-light);
  transform: translateY(-1px);
}
.demand-item-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
.demand-item-title {
  font-size: 13.5px;
  font-weight: 800;
  color: var(--text-primary);
}
.demand-item-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 11.5px;
  color: var(--text-muted);
}
.demand-item-bottom strong {
  color: var(--text-secondary);
}
.demand-surge-badge {
  font-size: 11px;
  font-weight: 800;
  color: #10B981;
}
.demand-driver-text {
  font-size: 11.5px;
  color: var(--text-secondary);
  line-height: 1.35;
}
.demand-driver-text strong {
  color: var(--text-primary);
}

/* Trending Topics Grid (6+ Topics with Mentions & MoM) */
.trending-topics-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.topic-item-card {
  background: var(--bg-pill, rgba(255, 255, 255, 0.02));
  border: 1px solid var(--border-color);
  border-radius: 14px;
  padding: 14px 16px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 8px;
  min-height: 110px;
  transition: all 0.2s ease;
}
.topic-item-card:hover {
  border-color: var(--border-light);
  transform: translateY(-1px);
}
.topic-top-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.topic-mentions-badge {
  font-size: 11px;
  font-weight: 800;
  color: var(--text-muted);
  background: rgba(255, 255, 255, 0.05);
  padding: 2px 8px;
  border-radius: 99px;
}
.topic-title {
  font-size: 13.5px;
  font-weight: 800;
  color: var(--text-primary);
  line-height: 1.35;
  margin: 0;
}
.topic-desc {
  font-size: 11.5px;
  color: var(--text-secondary);
  line-height: 1.4;
  margin: 0;
}

/* Trending Technologies Deep-Dive Cards */
.tech-deepdive-stack {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.tech-deepdive-card {
  background: var(--bg-pill, rgba(255, 255, 255, 0.02));
  border: 1px solid var(--border-color);
  border-radius: 14px;
  padding: 14px 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.tech-deepdive-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.tech-name-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
}
.tech-name {
  font-size: 14px;
  font-weight: 800;
  color: var(--text-primary);
}
.why-trending-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11.5px;
  font-weight: 800;
  padding: 4px 10px;
  border-radius: 8px;
  line-height: 1.3;
}
.why-trending-badge.purple { background: rgba(168, 85, 247, 0.12); color: #C084FC; border: 1px solid rgba(168, 85, 247, 0.25); }
.why-trending-badge.blue { background: rgba(0, 82, 255, 0.12); color: var(--accent-primary); border: 1px solid rgba(0, 82, 255, 0.25); }
.why-trending-badge.cyan { background: rgba(56, 189, 248, 0.12); color: #38BDF8; border: 1px solid rgba(56, 189, 248, 0.25); }
.why-trending-badge.green { background: rgba(16, 185, 129, 0.12); color: #10B981; border: 1px solid rgba(16, 185, 129, 0.25); }
.why-trending-badge.amber { background: rgba(245, 158, 11, 0.12); color: #F59E0B; border: 1px solid rgba(245, 158, 11, 0.25); }
.tech-simple-desc {
  font-size: 12px;
  color: var(--text-secondary);
  line-height: 1.45;
  margin: 0;
}

/* Emerging Categories & White-Space Card */
.whitespace-summary-banner {
  background: rgba(0, 82, 255, 0.08);
  border: 1px solid rgba(0, 82, 255, 0.25);
  border-radius: 12px;
  padding: 12px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 6px;
}
.whitespace-total-label {
  font-size: 12px;
  font-weight: 700;
  color: var(--text-muted);
}
.whitespace-total-val {
  font-size: 18px;
  font-weight: 900;
  color: var(--accent-primary);
  letter-spacing: -0.01em;
}
.emerging-categories-stack {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.emerging-cat-item {
  background: var(--bg-pill, rgba(255, 255, 255, 0.02));
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 12px 14px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.emerging-cat-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.emerging-cat-name {
  font-size: 13.5px;
  font-weight: 800;
  color: var(--text-primary);
}
.emerging-cat-metrics {
  display: flex;
  align-items: center;
  gap: 8px;
}
.emerging-tam-val {
  font-size: 13px;
  font-weight: 800;
  color: var(--text-primary);
}
.emerging-cat-desc {
  font-size: 11.5px;
  color: var(--text-muted);
  line-height: 1.35;
  margin: 0;
}

/* Trends Section */
.trends-section-block {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.trends-block-label {
  font-size: 12px;
  font-weight: 800;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin: 0;
}

/* Market Sentiment Strip */
.market-sentiment-strip {
  background: var(--bg-pill, rgba(255, 255, 255, 0.02));
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 14px 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.m-sent-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 12.5px;
  font-weight: 700;
  color: var(--text-muted);
}
.m-sent-track {
  width: 100%;
  height: 8px;
  border-radius: 99px;
  background: var(--border-color);
  display: flex;
  overflow: hidden;
}
.m-sent-seg.green { background: #10B981; }
.m-sent-seg.gray { background: #64748B; }
.m-sent-seg.yellow, .m-sent-seg.amber { background: #F59E0B; }
.m-sent-seg.red { background: #EF4444; }
.m-sent-legend {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 11.5px;
  color: var(--text-muted);
}
.m-sent-legend .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  display: inline-block;
  margin-right: 4px;
}
.m-sent-legend .dot.green { background: #10B981; }
.m-sent-legend .dot.gray { background: #64748B; }
.m-sent-legend .dot.yellow, .m-sent-legend .dot.amber { background: #F59E0B; }
.m-sent-legend .dot.red { background: #EF4444; }

/* Needs List */
.needs-list-stack {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.need-item-card {
  background: var(--bg-pill, rgba(255, 255, 255, 0.02));
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 12px 14px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.need-item-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 13px;
  color: var(--text-primary);
}
.need-item-desc {
  font-size: 12px;
  color: var(--text-secondary);
  margin: 0;
  line-height: 1.4;
}

/* Activity Feed & Detailed Market Signal Cards */
.activity-feed-stack,
.regulatory-stack,
.launches-stack,
.funding-stack,
.mna-stack {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

/* 1. Product Launch Cards */
.launch-item-card {
  background: var(--bg-pill, rgba(255, 255, 255, 0.02));
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 14px 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  transition: all 0.2s ease;
}
.launch-item-card:hover {
  border-color: var(--border-light);
  transform: translateY(-1px);
}
.launch-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.launch-title-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
}
.launch-title {
  font-size: 14px;
  font-weight: 800;
  color: var(--text-primary);
  margin: 0;
}
.launch-badges-right {
  display: flex;
  align-items: center;
  gap: 6px;
}
.launch-impact-pill {
  font-size: 11px;
  font-weight: 800;
  padding: 3px 8px;
  border-radius: 6px;
}
.launch-impact-pill.high { background: rgba(16, 185, 129, 0.15); color: #10B981; border: 1px solid rgba(16, 185, 129, 0.3); }
.launch-impact-pill.medium { background: rgba(0, 82, 255, 0.15); color: var(--accent-primary); border: 1px solid rgba(0, 82, 255, 0.3); }
.launch-date-tag {
  font-size: 11px;
  color: var(--text-muted);
}
.launch-desc {
  font-size: 12px;
  color: var(--text-secondary);
  line-height: 1.45;
  margin: 0;
}
.launch-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 11px;
  color: var(--text-muted);
  border-top: 1px solid var(--border-color);
  padding-top: 8px;
  margin-top: 2px;
}

/* 2. Funding Activity Cards */
.funding-item-card {
  background: var(--bg-pill, rgba(255, 255, 255, 0.02));
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 14px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  transition: all 0.2s ease;
}
.funding-item-card:hover {
  border-color: var(--border-light);
  transform: translateY(-1px);
}
.funding-left {
  display: flex;
  flex-direction: column;
  gap: 5px;
  flex: 1;
}
.funding-company-row {
  display: flex;
  align-items: center;
  gap: 8px;
}
.funding-company-name {
  font-size: 14px;
  font-weight: 800;
  color: var(--text-primary);
}
.funding-sector-pill {
  font-size: 10.5px;
  font-weight: 700;
  color: var(--text-muted);
  background: rgba(255, 255, 255, 0.05);
  padding: 2px 7px;
  border-radius: 4px;
}
.funding-meta-row {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 11.5px;
  color: var(--text-secondary);
}
.funding-meta-row strong {
  color: var(--text-primary);
}
.funding-right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 4px;
  flex-shrink: 0;
}
.funding-amount {
  font-size: 18px;
  font-weight: 900;
  color: #10B981;
  letter-spacing: -0.02em;
}
.funding-series-badge {
  font-size: 10px;
  font-weight: 800;
  padding: 2px 8px;
  border-radius: 4px;
  text-transform: uppercase;
  background: rgba(16, 185, 129, 0.12);
  color: #10B981;
  border: 1px solid rgba(16, 185, 129, 0.25);
}

/* 3. M&A Activity Cards */
.mna-item-card {
  background: var(--bg-pill, rgba(255, 255, 255, 0.02));
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 14px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  transition: all 0.2s ease;
}
.mna-item-card:hover {
  border-color: var(--border-light);
  transform: translateY(-1px);
}
.mna-left {
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex: 1;
}
.mna-parties-row {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 800;
}
.mna-acquirer { color: var(--text-primary); }
.mna-arrow { color: var(--accent-primary); font-weight: 900; }
.mna-target { color: #F59E0B; }
.mna-why-box {
  font-size: 11.5px;
  color: var(--text-secondary);
  line-height: 1.4;
}
.mna-why-box strong {
  color: var(--text-primary);
}
.mna-date-tag {
  font-size: 10.5px;
  color: var(--text-muted);
}
.mna-right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 4px;
  flex-shrink: 0;
}
.mna-amount-badge {
  font-size: 16px;
  font-weight: 900;
  color: #F59E0B;
  letter-spacing: -0.01em;
}
.mna-type-pill {
  font-size: 10px;
  font-weight: 800;
  padding: 2px 8px;
  border-radius: 4px;
  background: rgba(245, 158, 11, 0.12);
  color: #F59E0B;
  border: 1px solid rgba(245, 158, 11, 0.25);
  text-transform: uppercase;
}

/* Event Card & Regulatory Card */
.activity-event-card,
.reg-card-item {
  background: var(--bg-pill, rgba(255, 255, 255, 0.02));
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 14px 16px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.a-e-header,
.reg-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.a-e-time {
  font-size: 11.5px;
  color: var(--text-muted);
}
.a-e-title {
  font-size: 13.5px;
  font-weight: 800;
  color: var(--text-primary);
  margin: 0;
}
.a-e-desc,
.reg-card-desc {
  font-size: 12px;
  color: var(--text-secondary);
  line-height: 1.4;
  margin: 0;
}
.reg-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 11.5px;
  color: var(--text-muted);
  border-top: 1px solid var(--border-color);
  padding-top: 8px;
  margin-top: 4px;
}

/* Light Theme Overrides for Market */
body.light-theme .market-kpi-card,
body.light-theme .market-card {
  background: #FFFFFF;
  border-color: #E2E8F0;
}
body.light-theme .market-segment-item,
body.light-theme .m-assessment-summary,
body.light-theme .share-row-item,
body.light-theme .entrant-item,
body.light-theme .demand-query-item,
body.light-theme .rising-panel,
body.light-theme .trend-topic-box,
body.light-theme .tech-tag-card,
body.light-theme .market-sentiment-strip,
body.light-theme .need-item-card,
body.light-theme .activity-event-card,
body.light-theme .reg-card-item {
  background: #F8FAFC;
  border-color: #E2E8F0;
}
body.light-theme .share-row-item.highlighted {
  background: #EFF6FF;
  border-color: #BFDBFE;
}

/* Responsive adjustments */
@media (max-width: 1200px) {
  .brand-dash-grid,
  .brand-dash-grid.two-col,
  .brand-dash-grid.three-col { grid-template-columns: 1fr; }
  .market-kpi-grid { grid-template-columns: 1fr 1fr; }
  .market-kpi-grid.five-col { grid-template-columns: repeat(3, 1fr); }
  .market-2col-grid { grid-template-columns: 1fr; }
  .market-3col-grid { grid-template-columns: 1fr; }
  .rising-split-grid { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  .brand-dash-grid,
  .brand-dash-grid.two-col,
  .brand-dash-grid.three-col { grid-template-columns: 1fr; }
  .market-kpi-grid { grid-template-columns: 1fr; }
  .market-kpi-grid.three-col,
  .market-kpi-grid.five-col { grid-template-columns: 1fr; }
}








/* ==========================================================================
   Audience Intelligence Dedicated Styles
   ========================================================================== */

.audience-subnav-btn {
  background: transparent;
  border: 1px solid var(--border-color);
  color: var(--text-secondary);
  font-size: 13px;
  font-weight: 700;
  padding: 8px 16px;
  border-radius: var(--radius-pill);
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.audience-subnav-btn:hover {
  color: var(--text-primary);
  border-color: var(--border-light);
  background: rgba(255, 255, 255, 0.04);
}

.audience-subnav-btn.active {
  background: var(--accent-primary);
  color: #FFFFFF;
  border-color: var(--accent-primary);
  box-shadow: 0 2px 10px rgba(0, 82, 255, 0.35);
}

.audience-content-tab {
  display: none;
  flex-direction: column;
  gap: 20px;
  width: 100%;
}

.audience-content-tab.active {
  display: flex;
}

/* Audience Demographics & Breakdown Grids */
.demo-bar-stack {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.demo-bar-row {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.demo-bar-labels {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12.5px;
  color: var(--text-secondary);
}

.demo-bar-labels strong {
  color: var(--text-primary);
}

.demo-track {
  width: 100%;
  height: 6px;
  background: var(--border-color);
  border-radius: 99px;
  overflow: hidden;
}

.demo-fill {
  height: 100%;
  border-radius: 99px;
}

.demo-fill.blue { background: var(--accent-primary); }
.demo-fill.green { background: #10B981; }
.demo-fill.purple { background: #A855F7; }
.demo-fill.amber { background: #F59E0B; }
.demo-fill.cyan { background: #38BDF8; }

/* Audience Persona / Segment Card */
.aud-segment-item {
  background: var(--bg-pill, rgba(255, 255, 255, 0.02));
  border: 1px solid var(--border-color);
  border-radius: 14px;
  padding: 14px 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  transition: all 0.2s ease;
}

.aud-segment-item:hover {
  border-color: var(--border-light);
  transform: translateY(-1px);
}

.aud-segment-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.aud-segment-title {
  font-size: 14px;
  font-weight: 800;
  color: var(--text-primary);
}

.aud-segment-pct {
  font-size: 13.5px;
  font-weight: 800;
  color: var(--accent-primary);
}

.aud-segment-desc {
  font-size: 12px;
  color: var(--text-secondary);
  line-height: 1.45;
  margin: 0;
}

.aud-segment-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 11.5px;
  color: var(--text-muted);
  border-top: 1px solid var(--border-color);
  padding-top: 8px;
  margin-top: 2px;
}

/* Affinity Chips & Lists */
.affinity-item-card {
  background: var(--bg-pill, rgba(255, 255, 255, 0.02));
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 12px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  transition: all 0.2s ease;
}

.affinity-item-card:hover {
  border-color: var(--border-light);
  transform: translateY(-1px);
}

.affinity-item-info {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.affinity-item-name {
  font-size: 13.5px;
  font-weight: 800;
  color: var(--text-primary);
}

.affinity-item-sub {
  font-size: 11.5px;
  color: var(--text-muted);
}

.affinity-item-score {
  font-size: 13px;
  font-weight: 800;
  color: #10B981;
}

/* Intent Funnel / Intent Breakdown */
.intent-tier-card {
  background: var(--bg-card, #18191C);
  border: 1px solid var(--border-color, #26272C);
  border-radius: 14px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.2);
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

body.light-theme .intent-tier-card {
  background: #FFFFFF;
  border-color: var(--border-color, #E2E8F0);
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.05);
}

.intent-tier-card:hover {
  border-color: var(--border-light, #34353C);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
}

body.light-theme .intent-tier-card:hover {
  border-color: #CBD5E1;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
}

.intent-tier-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 4px;
  border-bottom: 1px solid var(--border-color, #26272C);
}

body.light-theme .intent-tier-head {
  border-bottom-color: #E2E8F0;
}

.intent-tier-title {
  font-size: 15px;
  font-weight: 800;
  display: flex;
  align-items: center;
  gap: 8px;
}

.intent-tier-desc {
  font-size: 12px;
  color: var(--text-secondary, #A1A1AA);
  line-height: 1.45;
  margin: 0;
}

body.light-theme .intent-tier-desc {
  color: #64748B;
}

.intent-query-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.intent-query-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: var(--bg-input, #131417);
  border: 1px solid var(--border-color, #26272C);
  border-radius: 8px;
  padding: 9px 12px;
  font-size: 12px;
  transition: all 0.15s ease;
}

body.light-theme .intent-query-row {
  background: #F8FAFC;
  border-color: #E2E8F0;
}

.intent-query-row:hover {
  border-color: var(--border-light, #34353C);
  background: var(--bg-pill, #222328);
}

body.light-theme .intent-query-row:hover {
  border-color: #CBD5E1;
  background: #FFFFFF;
}

.intent-query-row span {
  color: var(--text-primary, #FFFFFF);
  font-weight: 600;
}

body.light-theme .intent-query-row span {
  color: #0F172A;
}

.intent-query-row strong {
  color: #10B981;
  font-size: 11.5px;
  font-weight: 700;
}

/* Audience Movement Shift */
.shift-direction-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 11px;
  font-weight: 800;
  padding: 3px 8px;
  border-radius: 99px;
}

.shift-direction-badge.up {
  background: rgba(16, 185, 129, 0.12);
  color: #10B981;
  border: 1px solid rgba(16, 185, 129, 0.3);
}

.shift-direction-badge.down {
  background: rgba(239, 68, 68, 0.12);
  color: #EF4444;
  border: 1px solid rgba(239, 68, 68, 0.3);
}

/* Light Theme overrides for Audience */
body.light-theme .aud-segment-item,
body.light-theme .affinity-item-card,
body.light-theme .intent-query-row {
  background: #F8FAFC;
  border-color: #E2E8F0;
}

body.light-theme .intent-tier-card {
  background: #FFFFFF !important;
  border-color: var(--border-color, #E2E8F0) !important;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.05) !important;
}

/* --------------------------------------------------------------------------
   Customer Journey Map Layout (Audience Subnav)
   -------------------------------------------------------------------------- */
.journey-funnel-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  width: 100%;
}

@media (max-width: 1200px) {
  .journey-funnel-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 768px) {
  .journey-funnel-grid {
    grid-template-columns: 1fr;
  }
}

.journey-stage-card {
  background: var(--bg-surface, #0f172a);
  border: 1.5px solid var(--border-color);
  border-radius: 16px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.15);
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.journey-stage-card:hover {
  transform: translateY(-2px);
  border-color: var(--border-light);
}

.journey-stage-top {
  padding: 16px 18px;
  color: #ffffff;
  position: relative;
}

.journey-stage-top.st-awareness {
  background: linear-gradient(135deg, #1F8A70 0%, #166534 100%);
}
.journey-stage-top.st-consideration {
  background: linear-gradient(135deg, #2D7DB8 0%, #1E40AF 100%);
}
.journey-stage-top.st-decision {
  background: linear-gradient(135deg, #D97706 0%, #B45309 100%);
}
.journey-stage-top.st-retention {
  background: linear-gradient(135deg, #7C3AED 0%, #5B21B6 100%);
}

.journey-stage-num {
  font-family: 'DM Mono', monospace, sans-serif;
  font-size: 11px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  opacity: 0.85;
}

.journey-stage-name {
  font-size: 20px;
  font-weight: 800;
  letter-spacing: -0.3px;
  margin-top: 4px;
  line-height: 1.15;
}

.journey-stage-sub {
  font-size: 12px;
  opacity: 0.9;
  margin-top: 4px;
  line-height: 1.35;
  font-style: italic;
}

.journey-stage-body {
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  flex: 1;
}

.journey-block {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.journey-block-lbl {
  font-family: 'DM Mono', monospace, sans-serif;
  font-size: 10px;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: var(--text-muted);
}

.journey-pills-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.journey-pill {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 11px;
  font-weight: 600;
  background: var(--bg-pill, rgba(255, 255, 255, 0.04));
  border: 1px solid var(--border-color);
  padding: 3px 9px;
  border-radius: 99px;
  color: var(--text-primary);
}

/* Interactive Touchpoints Box */
.journey-touchpoints-box {
  background: rgba(0, 0, 0, 0.25);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 12px 10px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

body.light-theme .journey-touchpoints-box {
  background: #FFFFFF;
}

.journey-tp-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 4px;
}

.journey-tp-btn {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 8px;
  width: 100%;
  text-align: left;
  background: var(--bg-pill, rgba(255, 255, 255, 0.03));
  border: 1px solid var(--border-color);
  padding: 8px 10px;
  border-radius: 8px;
  color: var(--text-primary);
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s ease;
  line-height: 1.35;
}

.journey-tp-btn:hover {
  background: rgba(0, 82, 255, 0.08);
  border-color: var(--accent-primary);
  transform: translateX(2px);
}

.journey-tp-btn .arr-icon {
  font-size: 11px;
  color: var(--accent-primary);
  flex-shrink: 0;
  font-weight: 700;
}

.journey-kpi-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.journey-kpi-list li {
  font-size: 11.5px;
  color: var(--text-secondary);
  padding-left: 12px;
  position: relative;
  line-height: 1.4;
}

.journey-kpi-list li::before {
  content: "•";
  position: absolute;
  left: 0;
  color: var(--accent-primary);
  font-weight: 800;
}

/* Side Drawer Overlay for Detailed Journey Workflows */
.journey-scrim {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.65);
  backdrop-filter: blur(4px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
  z-index: 9998;
}

.journey-scrim.active {
  opacity: 1;
  pointer-events: auto;
}

.journey-drawer {
  position: fixed;
  top: 0;
  right: 0;
  height: 100vh;
  width: min(580px, 92vw);
  background: var(--bg-sidebar, #090e17);
  border-left: 1px solid var(--border-color);
  z-index: 9999;
  transform: translateX(100%);
  transition: transform 0.28s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  flex-direction: column;
  box-shadow: -12px 0 40px rgba(0, 0, 0, 0.5);
}

.journey-drawer.active {
  transform: translateX(0);
}

.journey-dr-head {
  padding: 20px 24px;
  border-bottom: 1px solid var(--border-color);
  position: relative;
  background: var(--bg-surface, #0f172a);
}

.journey-dr-eyebrow {
  font-family: 'DM Mono', monospace, sans-serif;
  font-size: 11px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--accent-primary);
}

.journey-dr-title {
  font-size: 20px;
  font-weight: 800;
  color: var(--text-primary);
  margin-top: 4px;
  line-height: 1.2;
}

.journey-dr-sub {
  font-size: 12.5px;
  color: var(--text-secondary);
  margin-top: 4px;
  line-height: 1.4;
}

.journey-dr-close {
  position: absolute;
  top: 18px;
  right: 20px;
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: var(--bg-pill, rgba(255, 255, 255, 0.05));
  border: 1px solid var(--border-color);
  color: var(--text-secondary);
  font-size: 16px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.15s ease;
}

.journey-dr-close:hover {
  background: var(--accent-primary);
  color: #ffffff;
}

.journey-dr-body {
  padding: 20px 24px 40px;
  overflow-y: auto;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

/* --------------------------------------------------------------------------
   Enhanced Customer Journey Map Styles (List Channel Layout & Full Editability)
   -------------------------------------------------------------------------- */
.journey-editable {
  outline: none;
  border-radius: 4px;
  transition: background 0.15s ease, box-shadow 0.15s ease;
  cursor: text;
}

.journey-editable:hover {
  background: rgba(0, 82, 255, 0.08);
}

.journey-editable:focus {
  background: rgba(0, 82, 255, 0.14);
  box-shadow: 0 0 0 2px var(--accent-primary);
}

/* Channels as clean vertical list items */
.journey-channel-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.journey-channel-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 600;
  color: var(--text-primary);
  background: var(--bg-pill, rgba(255, 255, 255, 0.03));
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: 6px 10px;
}

.journey-channel-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  flex-shrink: 0;
}

.st-awareness .journey-channel-dot { background: #10B981; }
.st-consideration .journey-channel-dot { background: #38BDF8; }
.st-decision .journey-channel-dot { background: #F59E0B; }
.st-retention .journey-channel-dot { background: #A855F7; }

/* Sync Button Animation */
.journey-sync-btn {
  background: var(--bg-pill, rgba(255, 255, 255, 0.05));
  border: 1px solid var(--border-color);
  color: var(--text-secondary);
  border-radius: 8px;
  padding: 4px 8px;
  font-size: 11px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  cursor: pointer;
  transition: all 0.15s ease;
}

.journey-sync-btn:hover {
  background: var(--accent-primary);
  color: #FFFFFF;
  border-color: var(--accent-primary);
}

.journey-sync-btn.spinning svg,
.journey-sync-btn.spinning i {
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  100% { transform: rotate(360deg); }
}

.journey-toast {
  position: fixed;
  bottom: 24px;
  right: 24px;
  background: var(--bg-card, #18191C);
  border: 1px solid var(--accent-primary);
  color: var(--text-primary);
  padding: 12px 18px;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 10px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6);
  z-index: 10000;
  transform: translateY(100px);
  opacity: 0;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.journey-toast.show {
  transform: translateY(0);
  opacity: 1;
}

/* --------------------------------------------------------------------------
   Stage 1 Awareness Green Content Palette & Add Button Styles
   -------------------------------------------------------------------------- */
.st-awareness-card {
  border-color: rgba(16, 185, 129, 0.35) !important;
  box-shadow: 0 4px 20px rgba(16, 185, 129, 0.08) !important;
}

.st-awareness-body {
  background: rgba(16, 185, 129, 0.03) !important;
}

.st-awareness-item {
  background: rgba(16, 185, 129, 0.06) !important;
  border-color: rgba(16, 185, 129, 0.25) !important;
  color: #E2E8F0 !important;
}

body.light-theme .st-awareness-item {
  background: #ECFDF5 !important;
  border-color: #A7F3D0 !important;
  color: #065F46 !important;
}

.st-awareness-tp-box {
  background: rgba(16, 185, 129, 0.05) !important;
  border-color: rgba(16, 185, 129, 0.25) !important;
}

body.light-theme .st-awareness-tp-box {
  background: #F0FDF4 !important;
  border-color: #BBF7D0 !important;
}

.st-awareness-tp-btn {
  background: rgba(16, 185, 129, 0.08) !important;
  border-color: rgba(16, 185, 129, 0.25) !important;
}

.st-awareness-tp-btn:hover {
  background: rgba(16, 185, 129, 0.18) !important;
  border-color: #10B981 !important;
}

body.light-theme .st-awareness-tp-btn {
  background: #FFFFFF !important;
  border-color: #A7F3D0 !important;
}

body.light-theme .st-awareness-tp-btn:hover {
  background: #ECFDF5 !important;
  border-color: #10B981 !important;
}

/* Add Item Button (+ Add Channel / + Add Touchpoint) */
.journey-add-item-btn {
  background: var(--bg-pill, rgba(255, 255, 255, 0.05));
  border: 1px dashed var(--border-color);
  color: var(--text-secondary);
  border-radius: 6px;
  padding: 3px 8px;
  font-size: 10.5px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  cursor: pointer;
  transition: all 0.15s ease;
}

.journey-add-item-btn:hover {
  background: var(--accent-primary);
  color: #FFFFFF;
  border-color: var(--accent-primary);
  border-style: solid;
}

/* --------------------------------------------------------------------------
   UNIFIED CLEAN JOURNEY MAP STYLING (MATCHING STANDARD SYSTEM)
   -------------------------------------------------------------------------- */
.journey-funnel-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  width: 100%;
}

@media (max-width: 1200px) {
  .journey-funnel-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 768px) {
  .journey-funnel-grid {
    grid-template-columns: 1fr;
  }
}

/* Stage Card - Default Neutral Surface across all 4 stages */
.journey-stage-card {
  background: var(--bg-card, #18191C);
  border: 1px solid var(--border-color, #26272C);
  border-radius: 14px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.2s ease, border-color 0.2s ease;
}

body.light-theme .journey-stage-card {
  background: #FFFFFF;
  border-color: var(--border-color, #E2E8F0);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.04);
}

.journey-stage-card:hover {
  border-color: var(--border-light, #34353C);
  transform: translateY(-2px);
}

body.light-theme .journey-stage-card:hover {
  border-color: #CBD5E1;
}

/* Stage Top Headers - 4 Distinct Colors */
.journey-stage-top {
  padding: 16px 18px 14px;
  color: #FFFFFF;
  position: relative;
}

.journey-stage-top.st-awareness { background: #1F8A70; }
.journey-stage-top.st-consideration { background: #2D7DB8; }
.journey-stage-top.st-decision { background: #D97706; }
.journey-stage-top.st-retention { background: #7C3AED; }

.journey-stage-num {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  opacity: 0.85;
}

.journey-stage-name {
  font-size: 18px;
  font-weight: 800;
  letter-spacing: -0.2px;
  margin-top: 3px;
  line-height: 1.2;
}

.journey-stage-sub {
  font-size: 12px;
  opacity: 0.9;
  margin-top: 3px;
  line-height: 1.35;
}

.journey-stage-body {
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  flex: 1;
}

.journey-block {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.journey-block-lbl {
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--text-muted, #71717A);
}

/* Channels List */
.journey-channel-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.journey-channel-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  background: var(--bg-pill, #222328);
  border: 1px solid var(--border-color, #26272C);
  border-radius: 8px;
  padding: 0 0 0 10px;
  min-height: 32px;
  transition: all 0.15s ease;
  position: relative;
}

body.light-theme .journey-channel-item {
  background: #F8FAFC;
  border-color: #E2E8F0;
  color: #0F172A;
}

.journey-channel-left {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 1;
  min-width: 0;
  padding: 6px 0;
  font-size: 12px;
  font-weight: 600;
  color: var(--text-primary, #FFFFFF);
}

body.light-theme .journey-channel-left {
  color: #0F172A;
}

.journey-channel-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  flex-shrink: 0;
}

/* Touchpoints Box */
.journey-touchpoints-box {
  background: var(--bg-input, #131417);
  border: 1px solid var(--border-color, #26272C);
  border-radius: 12px;
  padding: 10px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

body.light-theme .journey-touchpoints-box {
  background: #F1F5F9;
  border-color: #E2E8F0;
}

.journey-tp-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 2px 4px 4px;
}

/* Touchpoint Row */
.journey-tp-row {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  width: 100% !important;
  background: var(--bg-card, #18191C);
  border: 1px solid var(--border-color, #26272C);
  border-radius: 8px;
  transition: all 0.15s ease;
  overflow: hidden;
  position: relative;
  padding: 0 4px 0 0 !important;
}

body.light-theme .journey-tp-row {
  background: #FFFFFF;
  border-color: #E2E8F0;
}

.journey-tp-row:hover {
  border-color: var(--border-light, #34353C);
  background: var(--bg-card-hover, #1F2025);
}

body.light-theme .journey-tp-row:hover {
  border-color: #CBD5E1;
  background: #FFFFFF;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.journey-tp-btn {
  flex: 1 1 auto;
  background: transparent !important;
  border: none !important;
  display: flex;
  flex-direction: row;
  justify-content: flex-start;
  align-items: center;
  gap: 8px;
  padding: 8px 6px 8px 10px;
  color: var(--text-primary, #FFFFFF) !important;
  font-size: 12px;
  font-weight: 500;
  cursor: pointer;
  text-align: left;
  line-height: 1.35;
  min-width: 0;
}

body.light-theme .journey-tp-btn {
  color: #0F172A !important;
}

.journey-tp-btn .arr-icon {
  font-size: 13px;
  color: var(--accent-primary, #0052FF);
  font-weight: 800;
  flex-shrink: 0;
  transition: transform 0.15s ease;
}

.journey-tp-btn .journey-editable {
  flex: 1;
  min-width: 0;
}

.journey-tp-row:hover .arr-icon {
  transform: translateX(2px);
}

/* Clean Delete Button (x icon only, no red background, positioned right) */
.journey-item-delete-btn {
  width: 22px !important;
  height: 22px !important;
  background: transparent !important;
  border: none !important;
  color: var(--text-muted, #71717A) !important;
  cursor: pointer !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  opacity: 0;
  transition: opacity 0.15s ease, color 0.15s ease;
  font-size: 16px !important;
  line-height: 1 !important;
  padding: 0 !important;
  margin-right: 4px !important;
  flex-shrink: 0 !important;
}

.journey-channel-item:hover .journey-item-delete-btn,
.journey-tp-row:hover .journey-item-delete-btn,
.drawer-step-item:hover .journey-item-delete-btn {
  opacity: 1;
}

.journey-item-delete-btn:hover {
  background: transparent !important;
  color: var(--text-primary, #FFFFFF) !important;
}

body.light-theme .journey-item-delete-btn:hover {
  color: #0F172A !important;
}

/* Add Item Button (+ Add Channel / + Add Touchpoint) */
.journey-add-item-btn {
  background: var(--bg-pill, #222328);
  border: 1px solid var(--border-color, #26272C);
  color: var(--text-secondary, #A1A1AA);
  border-radius: 6px;
  padding: 2px 7px;
  font-size: 10.5px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 3px;
  cursor: pointer;
  transition: all 0.15s ease;
}

body.light-theme .journey-add-item-btn {
  background: #E2E8F0;
  border-color: #CBD5E1;
  color: #475569;
}

.journey-add-item-btn:hover {
  background: var(--accent-primary, #0052FF);
  color: #FFFFFF !important;
  border-color: var(--accent-primary, #0052FF);
}

/* Sync Button */
.journey-sync-btn {
  background: var(--bg-pill, #222328);
  border: 1px solid var(--border-color, #26272C);
  color: var(--text-secondary, #A1A1AA);
  border-radius: 6px;
  padding: 2px 7px;
  font-size: 10.5px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  cursor: pointer;
  transition: all 0.15s ease;
}

body.light-theme .journey-sync-btn {
  background: #E2E8F0;
  border-color: #CBD5E1;
  color: #475569;
}

.journey-sync-btn:hover {
  background: var(--accent-primary, #0052FF);
  color: #FFFFFF !important;
  border-color: var(--accent-primary, #0052FF);
}

.journey-sync-btn.spinning svg,
.journey-sync-btn.spinning i {
  animation: spin 0.8s linear infinite;
}

/* KPI List inside Cards */
.journey-kpi-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.journey-kpi-list li {
  font-size: 11.5px;
  color: var(--text-secondary, #A1A1AA);
  padding-left: 10px;
  position: relative;
  line-height: 1.4;
}

body.light-theme .journey-kpi-list li {
  color: #64748B;
}

.journey-kpi-list li::before {
  content: "•";
  position: absolute;
  left: 0;
  color: var(--text-muted, #71717A);
  font-weight: 800;
}

.journey-kpi-list li strong {
  color: var(--text-primary, #FFFFFF);
}

body.light-theme .journey-kpi-list li strong {
  color: #0F172A;
}

/* In-place Editable Focus */
.journey-editable {
  outline: none;
  border-radius: 4px;
  transition: background 0.15s ease;
  cursor: text;
}

.journey-editable:hover {
  background: rgba(0, 82, 255, 0.08);
}

.journey-editable:focus {
  background: rgba(0, 82, 255, 0.14);
  box-shadow: 0 0 0 2px var(--accent-primary, #0052FF);
}

/* Side Drawer Component */
.journey-scrim {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.65);
  backdrop-filter: blur(4px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
  z-index: 9998;
}

.journey-scrim.active {
  opacity: 1;
  pointer-events: auto;
}

.journey-drawer {
  position: fixed;
  top: 0;
  right: 0;
  height: 100vh;
  width: min(600px, 94vw);
  background: var(--bg-sidebar, #151619);
  border-left: 1px solid var(--border-color, #26272C);
  z-index: 9999;
  transform: translateX(100%);
  transition: transform 0.28s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  flex-direction: column;
  box-shadow: -12px 0 40px rgba(0, 0, 0, 0.5);
}

body.light-theme .journey-drawer {
  background: #FFFFFF;
  border-left-color: #E2E8F0;
  box-shadow: -12px 0 40px rgba(0, 0, 0, 0.1);
}

.journey-drawer.active {
  transform: translateX(0);
}

.journey-dr-head {
  padding: 18px 24px 16px;
  border-bottom: 1px solid var(--border-color, #26272C);
  background: var(--bg-card, #18191C);
  display: flex;
  flex-direction: column;
  gap: 6px;
  position: relative;
}

body.light-theme .journey-dr-head {
  background: #F8FAFC;
  border-bottom-color: #E2E8F0;
}

.journey-dr-top-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
}

.journey-dr-eyebrow {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: var(--accent-primary, #0052FF);
}

.journey-dr-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.journey-dr-close-btn {
  width: 28px;
  height: 28px;
  border-radius: 6px;
  background: var(--bg-pill, #222328);
  border: 1px solid var(--border-color, #26272C);
  color: var(--text-secondary, #A1A1AA);
  font-size: 18px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  transition: all 0.15s ease;
}

body.light-theme .journey-dr-close-btn {
  background: #E2E8F0;
  border-color: #CBD5E1;
  color: #475569;
}

.journey-dr-close-btn:hover {
  background: #EF4444 !important;
  color: #FFFFFF !important;
  border-color: #EF4444 !important;
}

.journey-dr-title {
  font-size: 18px;
  font-weight: 800;
  color: var(--text-primary, #FFFFFF);
  line-height: 1.2;
}

body.light-theme .journey-dr-title {
  color: #0F172A;
}

.journey-dr-sub {
  font-size: 12.5px;
  color: var(--text-secondary, #A1A1AA);
  line-height: 1.4;
}

body.light-theme .journey-dr-sub {
  color: #64748B;
}

.journey-dr-body {
  padding: 20px 24px 40px;
  overflow-y: auto;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

/* Drawer Step Action List */
.drawer-step-item {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  background: var(--bg-card, #18191C);
  border: 1px solid var(--border-color, #26272C);
  border-radius: 8px;
  padding: 12px 14px;
  position: relative;
}

body.light-theme .drawer-step-item {
  background: #F8FAFC;
  border-color: #E2E8F0;
}

.drawer-step-content {
  flex: 1;
  min-width: 0;
}

.drawer-step-item .journey-item-delete-btn {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 22px;
  height: 22px;
  border-radius: 4px;
  border-left: none;
}

/* Toast */
.journey-toast {
  position: fixed;
  bottom: 24px;
  right: 24px;
  background: var(--bg-card, #18191C);
  border: 1px solid var(--accent-primary, #0052FF);
  color: var(--text-primary, #FFFFFF);
  padding: 12px 18px;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 10px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6);
  z-index: 10000;
  transform: translateY(100px);
  opacity: 0;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

body.light-theme .journey-toast {
  background: #FFFFFF;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.journey-toast.show {
  transform: translateY(0);
  opacity: 1;
}

/* --------------------------------------------------------------------------
   AUDIENCE SHIFT FLOWS (REFERENCE COLOR PALETTE WITH #222328 INNER LIST BACKGROUND)
   -------------------------------------------------------------------------- */
.shift-flow-card {
  background: var(--bg-card, #18191C);
  border: 1px solid var(--border-color, #26272C);
  border-radius: 14px;
  padding: 22px 24px;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.2);
  display: flex;
  flex-direction: column;
  gap: 16px;
  transition: border-color 0.2s ease;
}

body.light-theme .shift-flow-card {
  background: #FFFFFF;
  border-color: var(--border-color, #E2E8F0);
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.05);
}

.shift-flow-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.shift-flow-title-wrap {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.shift-flow-main-title {
  font-size: 17px;
  font-weight: 800;
  color: var(--text-primary, #FFFFFF);
  display: flex;
  align-items: center;
  gap: 8px;
}

body.light-theme .shift-flow-main-title {
  color: #0F172A;
}

.shift-flow-pill-amber {
  background: rgba(245, 158, 11, 0.12);
  color: #F59E0B;
  border: 1px solid rgba(245, 158, 11, 0.3);
  font-size: 11px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 99px;
}

.shift-flow-subtitle {
  font-size: 12px;
  color: var(--text-secondary, #A1A1AA);
}

body.light-theme .shift-flow-subtitle {
  color: #64748B;
}

.shift-flow-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

/* List Item Background strictly kept as #222328 in dark theme */
.shift-flow-item {
  background: #222328 !important;
  border: 1px solid var(--border-color, #26272C) !important;
  border-radius: 10px;
  padding: 16px 18px 14px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  transition: all 0.15s ease;
}

body.light-theme .shift-flow-item {
  background: #F8FAFC !important;
  border-color: #E2E8F0 !important;
}

.shift-flow-item:hover {
  border-color: var(--border-light, #34353C) !important;
}

body.light-theme .shift-flow-item:hover {
  border-color: #CBD5E1 !important;
}

.shift-flow-top-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}

.shift-flow-tags-group {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

/* Restored Reference Red/Coral & Emerald Tags */
.shift-tag-from {
  background: rgba(239, 68, 68, 0.08) !important;
  border: 1px solid rgba(239, 68, 68, 0.25) !important;
  color: #F87171 !important;
  font-size: 12px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 6px;
}

.shift-tag-to {
  background: rgba(16, 185, 129, 0.08) !important;
  border: 1px solid rgba(16, 185, 129, 0.25) !important;
  color: #34D399 !important;
  font-size: 12px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 6px;
}

.shift-flow-arrow {
  color: #F59E0B !important;
  font-weight: 800;
  font-size: 14px;
}

.shift-flow-meta {
  display: flex;
  align-items: center;
  gap: 8px;
}

.shift-flow-time {
  background: rgba(0, 0, 0, 0.25);
  border: 1px solid var(--border-color, #26272C);
  color: var(--text-muted, #71717A);
  font-size: 11px;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 4px;
}

body.light-theme .shift-flow-time {
  background: #E2E8F0;
  border-color: #CBD5E1;
  color: #475569;
}

.shift-flow-magnitude {
  color: #FBBF24 !important;
  font-size: 12.5px;
  font-weight: 800;
}

.shift-flow-desc {
  font-size: 12px;
  color: var(--text-secondary, #A1A1AA);
  line-height: 1.45;
  margin: 0;
}

body.light-theme .shift-flow-desc {
  color: #475569;
}

/* Restored Two-Tone Progress Bar from Amber to Emerald */
.shift-flow-bar-track {
  width: 100%;
  height: 5px;
  background: rgba(255, 255, 255, 0.06);
  border-radius: 99px;
  overflow: hidden;
}

body.light-theme .shift-flow-bar-track {
  background: #E2E8F0;
}

.shift-flow-bar-fill {
  height: 100%;
  border-radius: 99px;
  background: linear-gradient(90deg, #F59E0B 0%, #10B981 100%) !important;
}

/* PLATFORM SHIFT GRID */
.platform-shift-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  width: 100%;
}

@media (max-width: 1100px) {
  .platform-shift-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 600px) {
  .platform-shift-grid {
    grid-template-columns: 1fr;
  }
}

.platform-shift-item {
  background: #222328 !important;
  border: 1px solid var(--border-color, #26272C);
  border-radius: 10px;
  padding: 12px 14px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  transition: all 0.15s ease;
}

body.light-theme .platform-shift-item {
  background: #F8FAFC !important;
  border-color: #E2E8F0;
}

.platform-shift-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.platform-name-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 800;
  color: var(--text-primary, #FFFFFF);
}

body.light-theme .platform-name-wrap {
  color: #0F172A;
}

.platform-shift-badge {
  font-size: 11px;
  font-weight: 800;
  padding: 2px 6px;
  border-radius: 99px;
  display: inline-flex;
  align-items: center;
  gap: 3px;
}

.platform-shift-badge.increase {
  background: rgba(16, 185, 129, 0.12);
  color: #10B981;
  border: 1px solid rgba(16, 185, 129, 0.25);
}

.platform-shift-badge.decrease {
  background: rgba(239, 68, 68, 0.12);
  color: #EF4444;
  border: 1px solid rgba(239, 68, 68, 0.25);
}

.platform-shift-stat-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 11.5px;
  color: var(--text-secondary, #A1A1AA);
}

body.light-theme .platform-shift-stat-row {
  color: #64748B;
}

.platform-shift-stat-row strong {
  color: var(--text-primary, #FFFFFF);
  font-weight: 700;
}

body.light-theme .platform-shift-stat-row strong {
  color: #0F172A;
}

.platform-progress-bg {
  width: 100%;
  height: 4px;
  background: rgba(255, 255, 255, 0.06);
  border-radius: 99px;
  overflow: hidden;
}

body.light-theme .platform-progress-bg {
  background: #E2E8F0;
}

.platform-progress-bar.increase {
  height: 100%;
  background: #10B981;
  border-radius: 99px;
}

.platform-progress-bar.decrease {
  height: 100%;
  background: #EF4444;
  border-radius: 99px;
}


/* --------------------------------------------------------------------------
   4Q TRAJECTORY STEP BARS (GROWING & DECLINING INTERESTS)
   -------------------------------------------------------------------------- */
.aud-movement-row {
  background: #222328;
  border: 1px solid var(--border-color, #26272C);
  border-radius: 10px;
  padding: 14px 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  transition: all 0.15s ease;
}

body.light-theme .aud-movement-row {
  background: #F8FAFC;
  border-color: #E2E8F0;
}

.aud-movement-row:hover {
  border-color: var(--border-light, #34353C);
}

body.light-theme .aud-movement-row:hover {
  border-color: #CBD5E1;
}

.aud-movement-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
}

.aud-movement-title-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.aud-movement-title {
  font-size: 13.5px;
  font-weight: 800;
  color: var(--text-primary, #FFFFFF); /* White in dark mode */
}

body.light-theme .aud-movement-title {
  color: #0F172A; /* Black / dark slate in light mode */
}

.aud-movement-cat {
  font-size: 11.5px;
  color: var(--text-muted, #71717A);
  font-weight: 500;
}

body.light-theme .aud-movement-cat {
  color: #64748B;
}

.aud-movement-stats {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 3px;
  flex-shrink: 0;
}

.aud-movement-change {
  font-size: 12px;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  gap: 3px;
}

.aud-movement-change.up {
  color: #10B981;
}

.aud-movement-change.down {
  color: #EF4444;
}

.aud-movement-score {
  font-size: 12px;
  font-weight: 800;
  color: var(--text-primary, #FFFFFF);
}

body.light-theme .aud-movement-score {
  color: #0F172A;
}

.aud-movement-trajectory-row {
  display: flex;
  align-items: center;
  gap: 8px;
}

.aud-trajectory-label {
  font-size: 11px;
  color: var(--text-muted, #71717A);
  font-weight: 600;
}

body.light-theme .aud-trajectory-label {
  color: #64748B;
}

/* 4-Bar Step Chart */
.aud-trajectory-bars {
  display: inline-flex;
  align-items: flex-end;
  gap: 3px;
  height: 14px;
}

.aud-traj-bar {
  width: 5px;
  border-radius: 2px 2px 0 0;
  background: rgba(255, 255, 255, 0.12);
  transition: height 0.2s ease;
}

/* Growing / Inflow Bars (Emerald Green) */
.aud-trajectory-bars.growing .aud-traj-bar {
  background: #10B981;
}

/* Declining / Outflow Bars (Red/Coral) */
.aud-trajectory-bars.declining .aud-traj-bar {
  background: #EF4444;
}

/* Specific Steps for Growing (1 -> 2 -> 3 -> 4) */
.aud-traj-bar.h-1 { height: 3px; }
.aud-traj-bar.h-2 { height: 6px; }
.aud-traj-bar.h-3 { height: 10px; }
.aud-traj-bar.h-4 { height: 14px; }

.aud-movement-desc {
  font-size: 12px;
  color: var(--text-secondary, #A1A1AA);
  line-height: 1.45;
  margin: 0;
}

body.light-theme .aud-movement-desc {
  color: #475569;
}



/* --------------------------------------------------------------------------
   BRAND & AUDIENCE DASHBOARD HEADER ACTIONS (SHARE & EXPORT BUTTONS)
   -------------------------------------------------------------------------- */
.brand-dash-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.brand-header-action-btn {
  background: var(--bg-pill, #222328);
  border: 1px solid var(--border-color, #26272C);
  color: var(--text-primary, #FFFFFF);
  border-radius: 8px;
  padding: 6px 12px;
  font-size: 12px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  transition: all 0.15s ease;
}

body.light-theme .brand-header-action-btn {
  background: #FFFFFF;
  border-color: #CBD5E1;
  color: #0F172A;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

.brand-header-action-btn:hover {
  background: var(--accent-primary, #0052FF);
  color: #FFFFFF !important;
  border-color: var(--accent-primary, #0052FF);
  transform: translateY(-1px);
}

.brand-header-action-btn:active {
  transform: translateY(0);
}



/* --------------------------------------------------------------------------
   EXPORT DROPDOWN & GOOGLE SHEET SHARE MODAL STYLING
   -------------------------------------------------------------------------- */
.export-dropdown-wrapper {
  position: relative;
  display: inline-block;
}

.export-dropdown-menu {
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  background: var(--bg-card, #1E1F24);
  border: 1px solid var(--border-color, #2D2F36);
  border-radius: 12px;
  min-width: 260px;
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.5);
  padding: 6px;
  display: none;
  flex-direction: column;
  gap: 4px;
  z-index: 1000;
  animation: dropdownFadeIn 0.15s ease-out;
}

body.light-theme .export-dropdown-menu {
  background: #FFFFFF;
  border-color: #E2E8F0;
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.12);
}

.export-dropdown-wrapper.open .export-dropdown-menu {
  display: flex;
}

@keyframes dropdownFadeIn {
  from { opacity: 0; transform: translateY(-6px); }
  to { opacity: 1; transform: translateY(0); }
}

.export-dropdown-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border-radius: 8px;
  background: transparent;
  border: none;
  color: var(--text-primary, #FFFFFF);
  cursor: pointer;
  text-align: left;
  transition: all 0.12s ease;
  width: 100%;
}

body.light-theme .export-dropdown-item {
  color: #0F172A;
}

.export-dropdown-item:hover {
  background: var(--bg-pill, #27282F);
}

body.light-theme .export-dropdown-item:hover {
  background: #F1F5F9;
}

.export-item-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.export-item-text strong {
  font-size: 12.5px;
  font-weight: 700;
}

.export-item-text span {
  font-size: 11px;
  color: var(--text-muted, #71717A);
}

body.light-theme .export-item-text span {
  color: #64748B;
}

/* Light theme for Google Share Dialog */
body.light-theme .google-share-dialog {
  background: #FFFFFF !important;
  border-color: #E2E8F0 !important;
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.18) !important;
}

body.light-theme #shareInviteEmailInput {
  color: #0F172A !important;
}



/* ==========================================================================
   COMPETITOR INTELLIGENCE STYLES
   ========================================================================== */
.competitor-content-tab {
  display: none !important;
  flex-direction: column;
  gap: 20px;
  width: 100%;
}

.competitor-content-tab.active {
  display: flex !important;
  animation: fadeIn 0.25s ease;
}

.competitor-subnav-btn {
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-size: 13px;
  font-weight: 700;
  padding: 8px 16px;
  border-radius: var(--radius-pill);
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  white-space: nowrap;
}

.competitor-subnav-btn:hover {
  color: var(--text-primary);
  background: var(--bg-pill, rgba(255, 255, 255, 0.05));
}

.competitor-subnav-btn.active {
  background: var(--accent-primary, #0052FF) !important;
  color: #FFFFFF !important;
  border-color: var(--accent-primary, #0052FF) !important;
  box-shadow: 0 2px 10px rgba(0, 82, 255, 0.35) !important;
}

body.light-theme .competitor-subnav-btn.active {
  background: #0052FF !important;
  color: #FFFFFF !important;
}

/* Competitor Favicon and List Enhanced Styles */
.comp-favicon-img {
  width: 22px;
  height: 22px;
  border-radius: 6px;
  object-fit: contain;
  background: #FFFFFF;
  padding: 2px;
  box-shadow: 0 1px 4px rgba(0,0,0,0.15);
  flex-shrink: 0;
}

.comp-eval-pill {
  font-size: 11.5px;
  font-weight: 700;
  color: var(--text-primary);
  background: var(--bg-pill, rgba(255, 255, 255, 0.05));
  border: 1px solid var(--border-color);
  padding: 3px 8px;
  border-radius: 6px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.comp-meta-tag {
  font-size: 11px;
  color: var(--text-muted);
  font-weight: 500;
}

/* Visibility Score Cards & Metrics */
.vis-comp-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  width: 100%;
}

.vis-comp-identity {
  display: flex;
  align-items: center;
  gap: 8px;
}

.vis-url-text {
  font-size: 13px;
  font-weight: 700;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 6px;
}

.vis-breakdown-badges {
  display: flex;
  align-items: center;
  gap: 8px;
}

.vis-score-badge {
  font-size: 12px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 6px;
  background: var(--bg-pill, rgba(255,255,255,0.06));
  border: 1px solid var(--border-color);
  color: var(--text-primary);
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.vis-score-badge strong {
  color: var(--accent-primary);
}

.vis-score-badge.green strong {
  color: #10B981;
}

.vis-score-badge.blue strong {
  color: #38BDF8;
}

.vis-score-badge.purple strong {
  color: #A855F7;
}

body.light-theme .vis-score-badge {
  background: #F1F5F9;
  border-color: #CBD5E1;
}

.attr-driver-text {
  font-size: 11.5px;
  color: var(--text-muted);
  line-height: 1.4;
  margin-top: 4px;
}

.vis-weakness-row {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 11.5px;
  color: var(--text-secondary);
  background: rgba(239, 68, 68, 0.06);
  border-left: 3px solid #EF4444;
  padding: 4px 8px;
  border-radius: 0 6px 6px 0;
  margin-top: 5px;
}

.vis-weakness-row strong {
  color: #EF4444;
  font-weight: 700;
}

/* Highlighted User card row in Momentum & Visibility cards (Subtle Accent Outline, no solid fill) */
.attr-bar-row.highlighted-user {
  border: 1px solid var(--accent-primary, #0052FF) !important;
  background: rgba(0, 82, 255, 0.05) !important;
  color: var(--text-primary) !important;
  padding: 12px 14px;
  border-radius: 10px;
  box-shadow: 0 2px 12px rgba(0, 82, 255, 0.1);
}

.attr-bar-row.highlighted-user .attr-name,
.attr-bar-row.highlighted-user .vis-url-text {
  color: var(--text-primary) !important;
}

.attr-bar-row.highlighted-user .attr-benchmarks strong {
  color: var(--text-primary) !important;
}

.attr-bar-row.highlighted-user .attr-benchmarks span {
  color: var(--text-muted) !important;
}

.attr-bar-row.highlighted-user .vis-weakness-row {
  background: rgba(239, 68, 68, 0.06) !important;
  border-left-color: #EF4444 !important;
  color: var(--text-secondary) !important;
}

.attr-bar-row.highlighted-user .vis-weakness-row strong {
  color: #EF4444 !important;
}

.attr-bar-row.highlighted-user .attr-track-bg {
  background: var(--bg-pill, rgba(255, 255, 255, 0.06)) !important;
}

.attr-bar-row.highlighted-user .attr-track-fill {
  background: var(--accent-primary, #0052FF) !important;
}

.attr-bar-row.highlighted-user .vis-score-badge {
  background: var(--bg-pill, rgba(255, 255, 255, 0.06)) !important;
  border-color: var(--border-color) !important;
  color: var(--text-primary) !important;
}

.attr-bar-row.highlighted-user .vis-score-badge strong {
  color: var(--accent-primary, #0052FF) !important;
}





/* ── Unified Intelligence Content Tabs Display Rules ── */
.market-content-tab,
.brand-content-tab,
.audience-content-tab,
.competitor-content-tab,
.content-content-tab,
.ad-content-tab,
.local-content-tab {
  display: none;
  flex-direction: column;
  gap: 16px;
  width: 100%;
}

.market-content-tab.active,
.brand-content-tab.active,
.audience-content-tab.active,
.competitor-content-tab.active,
.content-content-tab.active,
.ad-content-tab.active,
.local-content-tab.active {
  display: flex !important;
  animation: fadeIn 0.2s ease;
}

.brand-stream-subnav-bar,
.brand-subnav-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  width: 100%;
  margin-bottom: 8px;
}

.brand-subnav-links {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  background: transparent;
  border: none;
  padding: 0;
}

.content-subnav-btn,
.ads-subnav-btn,
.brand-subnav-btn,
.market-subnav-btn,
.audience-subnav-btn,
.competitor-subnav-btn,
.local-subnav-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 18px;
  border-radius: 9999px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  color: var(--text-secondary);
  transition: all 0.2s ease;
}

.content-subnav-btn:hover,
.ads-subnav-btn:hover,
.brand-subnav-btn:hover,
.market-subnav-btn:hover,
.audience-subnav-btn:hover,
.competitor-subnav-btn:hover,
.local-subnav-btn:hover {
  background: var(--bg-card-hover);
  color: var(--text-primary);
  border-color: var(--border-light);
}

.content-subnav-btn.active,
.ads-subnav-btn.active,
.brand-subnav-btn.active,
.market-subnav-btn.active,
.audience-subnav-btn.active,
.competitor-subnav-btn.active,
.local-subnav-btn.active {
  background: var(--accent-primary, #0052FF) !important;
  border-color: var(--accent-primary, #0052FF) !important;
  color: #FFFFFF !important;
  box-shadow: 0 4px 14px rgba(0, 82, 255, 0.35);
}


.intel-nav-btn.active {
  background-color: var(--accent-primary, #0052FF) !important;
  color: #FFFFFF !important;
  border: none !important;
  outline: none !important;
  box-shadow: 0 2px 12px rgba(0, 82, 255, 0.4);
}

/* ==========================================================================
   Actions Workspace Page — Layout, KPI Cards, Grouped Table & Kanban
   ========================================================================== */

.actions-workspace-body {
  width: 100%;
  box-sizing: border-box;
  animation: fadeIn 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Top Toolbar */
.actions-top-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  width: 100%;
  padding-bottom: 2px;
}

.actions-toolbar-left {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 1;
  min-width: 280px;
}

.actions-search-wrap {
  position: relative;
  flex: 1;
  max-width: 380px;
  min-width: 200px;
}

.actions-search-icon {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  width: 15px;
  height: 15px;
  color: var(--text-muted);
  pointer-events: none;
}

.actions-search-wrap input {
  width: 100%;
  padding: 8px 12px 8px 34px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  color: var(--text-primary);
  font-size: 13px;
  font-weight: 500;
  outline: none;
  transition: all var(--transition);
  box-sizing: border-box;
}

.actions-search-wrap input:focus {
  border-color: var(--accent-primary);
  box-shadow: 0 0 0 3px var(--accent-primary-bg);
}

.actions-view-toggle-wrap {
  display: flex;
  align-items: center;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  padding: 2px;
  gap: 2px;
}

.actions-view-btn {
  background: transparent;
  border: none;
  color: var(--text-muted);
  padding: 6px 8px;
  border-radius: 6px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition);
}

.actions-view-btn i {
  width: 15px;
  height: 15px;
}

.actions-view-btn:hover {
  color: var(--text-primary);
  background: var(--bg-pill-hover);
}

.actions-view-btn.active {
  background: var(--accent-primary-bg);
  color: var(--accent-primary);
  font-weight: 700;
}

.actions-toolbar-right {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

/* Filter Tabs / Pills */
.actions-filter-tabs {
  display: flex;
  align-items: center;
  gap: 4px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  padding: 3px;
}

.actions-filter-tab {
  background: transparent;
  border: none;
  color: var(--text-secondary);
  font-size: 12px;
  font-weight: 600;
  padding: 5px 10px;
  border-radius: 6px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: all var(--transition);
}

.actions-filter-tab:hover {
  color: var(--text-primary);
  background: var(--bg-pill);
}

.actions-filter-tab.active {
  background: var(--accent-primary);
  color: #FFFFFF;
  box-shadow: 0 1px 4px rgba(0, 82, 255, 0.3);
}

.actions-tab-count {
  font-size: 10px;
  font-weight: 700;
  padding: 1px 6px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  color: inherit;
}

body.light-theme .actions-filter-tab:not(.active) .actions-tab-count {
  background: #E2E8F0;
  color: var(--text-secondary);
}

.actions-filter-tab.active .actions-tab-count {
  background: rgba(255, 255, 255, 0.25);
  color: #FFFFFF;
}

/* Dropdowns */
.actions-dropdowns-wrap {
  display: flex;
  align-items: center;
  gap: 6px;
}

.actions-dropdown-select {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  color: var(--text-primary);
  font-size: 12px;
  font-weight: 600;
  padding: 6px 12px;
  outline: none;
  cursor: pointer;
  transition: all var(--transition);
}

.actions-dropdown-select:hover, .actions-dropdown-select:focus {
  border-color: var(--accent-primary);
}

/* Create Button */
.actions-create-btn {
  background: var(--accent-primary, #0052FF);
  color: #FFFFFF;
  border: none;
  border-radius: var(--radius-sm);
  padding: 7px 14px;
  font-size: 12.5px;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  transition: all var(--transition);
  box-shadow: 0 2px 8px rgba(0, 82, 255, 0.3);
  white-space: nowrap;
}

.actions-create-btn i {
  width: 14px;
  height: 14px;
}

.actions-create-btn:hover {
  background: #0043D1;
  box-shadow: 0 4px 12px rgba(0, 82, 255, 0.4);
  transform: translateY(-1px);
}

/* KPI Summary Cards Row (6 Cards) */
.actions-kpi-row {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 12px;
  width: 100%;
}

@media (max-width: 1350px) {
  .actions-kpi-row {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 768px) {
  .actions-kpi-row {
    grid-template-columns: repeat(2, 1fr);
  }
}

.actions-kpi-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 12px 14px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 10px;
  transition: all var(--transition);
  cursor: pointer;
  position: relative;
}

.actions-kpi-card:hover {
  border-color: var(--border-light);
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.15);
}

.actions-kpi-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.actions-kpi-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  font-weight: 700;
  border-radius: 6px;
  padding: 3px 6px;
}

.actions-kpi-badge i {
  width: 12px;
  height: 12px;
}

.actions-kpi-badge.low {
  background: rgba(16, 185, 129, 0.12);
  color: #10B981;
}

.actions-kpi-badge.medium {
  background: rgba(245, 158, 11, 0.12);
  color: #F59E0B;
}

.actions-kpi-badge.high {
  background: rgba(239, 68, 68, 0.12);
  color: #EF4444;
}

.actions-kpi-badge.total {
  background: rgba(0, 82, 255, 0.12);
  color: #3B82F6;
}

.actions-kpi-badge.done {
  background: rgba(16, 185, 129, 0.15);
  color: #10B981;
}

.actions-kpi-badge.ongoing {
  background: rgba(249, 115, 22, 0.12);
  color: #F97316;
}

.actions-kpi-menu-btn {
  background: transparent;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  padding: 2px;
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition);
}

.actions-kpi-menu-btn i {
  width: 14px;
  height: 14px;
}

.actions-kpi-menu-btn:hover {
  color: var(--text-primary);
  background: var(--bg-pill);
}

.actions-kpi-val {
  font-size: 26px;
  font-weight: 800;
  color: var(--text-primary);
  line-height: 1.1;
  letter-spacing: -0.5px;
}

/* Bulk Selection Bar */
.actions-bulk-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--bg-card);
  border: 1px solid var(--accent-primary);
  border-radius: var(--radius-sm);
  padding: 8px 16px;
  animation: fadeIn 0.2s ease;
}

.actions-bulk-left {
  font-size: 13px;
  font-weight: 700;
  color: var(--text-primary);
}

.actions-bulk-right {
  display: flex;
  align-items: center;
  gap: 8px;
}

.actions-bulk-btn {
  background: var(--bg-pill);
  border: 1px solid var(--border-color);
  color: var(--text-primary);
  font-size: 11.5px;
  font-weight: 600;
  padding: 5px 10px;
  border-radius: 6px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 5px;
  transition: all var(--transition);
}

.actions-bulk-btn i {
  width: 12px;
  height: 12px;
}

.actions-bulk-btn:hover {
  background: var(--bg-pill-hover);
}

.actions-bulk-btn.success {
  background: rgba(16, 185, 129, 0.15);
  color: #10B981;
  border-color: rgba(16, 185, 129, 0.3);
}

.actions-bulk-btn.danger {
  background: rgba(239, 68, 68, 0.15);
  color: #EF4444;
  border-color: rgba(239, 68, 68, 0.3);
}

/* Main Table Styling */
.actions-table-wrapper {
  width: 100%;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.1);
}

.actions-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 13px;
}

.actions-table th {
  padding: 10px 14px;
  color: var(--text-muted);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  border-bottom: 1px solid var(--border-color);
  background: var(--bg-pill);
  user-select: none;
  white-space: nowrap;
}

.actions-table td {
  padding: 12px 14px;
  border-bottom: 1px solid var(--border-color);
  color: var(--text-secondary);
  vertical-align: middle;
}

.actions-table tr:last-child td {
  border-bottom: none;
}

.actions-table tbody tr.actions-row {
  transition: background var(--transition);
  cursor: default;
}

.actions-table tbody tr.actions-row:hover {
  background: var(--bg-pill-hover);
}

.actions-table tbody tr.actions-row.selected {
  background: rgba(0, 82, 255, 0.06);
}

/* Group Header Row */
.actions-group-header-row td {
  background: var(--bg-shell);
  padding: 10px 14px;
  font-weight: 700;
  border-top: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
}

.actions-group-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.actions-group-left {
  display: flex;
  align-items: center;
  gap: 10px;
}

.actions-group-drag {
  color: var(--text-muted);
  cursor: pointer;
  display: flex;
  align-items: center;
}

.actions-group-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 700;
  color: var(--text-primary);
}

.actions-group-badge.synapse {
  background: #1E293B;
  color: #F8FAFC;
  border: 1px solid #334155;
}

.actions-group-badge.helios {
  background: rgba(239, 68, 68, 0.15);
  color: #EF4444;
  border: 1px solid rgba(239, 68, 68, 0.3);
}

.actions-group-badge.lumina {
  background: rgba(59, 130, 246, 0.15);
  color: #3B82F6;
  border: 1px solid rgba(59, 130, 246, 0.3);
}

.actions-group-badge.horizon {
  background: rgba(168, 85, 247, 0.15);
  color: #A855F7;
  border: 1px solid rgba(168, 85, 247, 0.3);
}

.actions-group-badge.vanguard {
  background: rgba(16, 185, 129, 0.15);
  color: #10B981;
  border: 1px solid rgba(16, 185, 129, 0.3);
}

.actions-group-badge.apex {
  background: rgba(245, 158, 11, 0.15);
  color: #F59E0B;
  border: 1px solid rgba(245, 158, 11, 0.3);
}

.actions-group-badge.nova {
  background: rgba(6, 182, 212, 0.15);
  color: #06B6D4;
  border: 1px solid rgba(6, 182, 212, 0.3);
}

.actions-group-badge.pulse {
  background: rgba(236, 72, 153, 0.15);
  color: #EC4899;
  border: 1px solid rgba(236, 72, 153, 0.3);
}

.actions-group-badge.default {
  background: var(--bg-pill);
  color: var(--text-primary);
  border: 1px solid var(--border-color);
}

.actions-group-count {
  font-size: 11px;
  color: var(--text-muted);
  font-weight: 600;
}

.actions-group-collapse-btn {
  background: transparent;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  display: flex;
  align-items: center;
  padding: 4px;
  border-radius: 4px;
  transition: all var(--transition);
}

.actions-group-collapse-btn:hover {
  color: var(--text-primary);
  background: var(--bg-pill);
}

/* Row Specific Elements */
.actions-handle-col {
  width: 44px;
  text-align: center;
}

.actions-handle-wrap {
  display: flex;
  align-items: center;
  gap: 6px;
  justify-content: center;
}

.actions-row-dots {
  color: var(--text-muted);
  opacity: 0.5;
  cursor: grab;
}

.actions-row:hover .actions-row-dots {
  opacity: 1;
}

.actions-checkbox {
  width: 15px;
  height: 15px;
  border-radius: 4px;
  border: 1px solid var(--border-light);
  cursor: pointer;
  accent-color: var(--accent-primary);
}

.actions-task-cell {
  min-width: 180px;
}

.actions-task-title-link {
  font-weight: 700;
  color: var(--text-primary);
  cursor: pointer;
  transition: color var(--transition);
  display: inline-block;
}

.actions-task-title-link:hover {
  color: var(--accent-primary);
  text-decoration: underline;
}

.actions-project-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 8px;
  border-radius: 6px;
  font-size: 11.5px;
  font-weight: 700;
  white-space: nowrap;
}

.actions-desc-cell {
  max-width: 320px;
  font-size: 12.5px;
  color: var(--text-secondary);
  line-height: 1.35;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.actions-assignee-cell {
  min-width: 110px;
}

.actions-date-cell {
  font-size: 12px;
  font-weight: 500;
  white-space: nowrap;
  color: var(--text-secondary);
}

.actions-date-cell.overdue {
  color: #EF4444;
  font-weight: 700;
}

/* Priority Badges (Modern Linear / Jira Style) */
.actions-priority-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 11.5px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 6px;
  white-space: nowrap;
  letter-spacing: 0.2px;
  transition: all var(--transition);
}

.actions-priority-badge i {
  width: 12px;
  height: 12px;
}

.actions-priority-badge.critical {
  background: rgba(239, 68, 68, 0.12);
  color: #EF4444;
  border: 1px solid rgba(239, 68, 68, 0.2);
}

.actions-priority-badge.high {
  background: rgba(249, 115, 22, 0.12);
  color: #F97316;
  border: 1px solid rgba(249, 115, 22, 0.2);
}

.actions-priority-badge.medium {
  background: rgba(245, 158, 11, 0.12);
  color: #F59E0B;
  border: 1px solid rgba(245, 158, 11, 0.2);
}

.actions-priority-badge.low {
  background: rgba(100, 116, 139, 0.12);
  color: #64748B;
  border: 1px solid rgba(100, 116, 139, 0.2);
}

body.light-theme .actions-priority-badge.low {
  color: #475569;
}

/* Status Column (Explicit user requirement: Assigned, In progress, Completed) */
.actions-status-select-wrap {
  position: relative;
  display: inline-block;
}

.actions-status-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 11.5px;
  font-weight: 700;
  cursor: pointer;
  user-select: none;
  transition: all var(--transition);
  white-space: nowrap;
  border: 1px solid transparent;
}

.actions-status-badge:hover {
  transform: translateY(-1px);
  filter: brightness(1.1);
}

.actions-status-badge.assigned {
  background: rgba(59, 130, 246, 0.12);
  color: #3B82F6;
  border-color: rgba(59, 130, 246, 0.25);
}

.actions-status-badge.in-progress {
  background: rgba(245, 158, 11, 0.12);
  color: #F59E0B;
  border-color: rgba(245, 158, 11, 0.25);
}

.actions-status-badge.completed {
  background: rgba(16, 185, 129, 0.12);
  color: #10B981;
  border-color: rgba(16, 185, 129, 0.25);
}

.actions-status-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
}

.actions-row-actions-cell {
  width: 50px;
  text-align: right;
}

.actions-row-menu-btn {
  background: transparent;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  padding: 4px;
  border-radius: 4px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition);
}

.actions-row-menu-btn:hover {
  color: var(--text-primary);
  background: var(--bg-pill);
}

/* Kanban Board View */
.actions-kanban-board {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  width: 100%;
  align-items: start;
}

@media (max-width: 900px) {
  .actions-kanban-board {
    grid-template-columns: 1fr;
  }
}

.actions-kanban-column {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.actions-kanban-col-header {
  padding: 12px 14px;
  border-bottom: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--bg-pill);
}

.actions-kanban-col-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 700;
  color: var(--text-primary);
}

.actions-kanban-col-body {
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-height: 200px;
  max-height: 700px;
  overflow-y: auto;
}

.actions-kanban-card {
  background: var(--bg-inner);
  border: 1px solid var(--border-color);
  border-radius: 10px;
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  cursor: grab;
  transition: all var(--transition);
}

.actions-kanban-card:hover {
  border-color: var(--border-light);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.actions-kanban-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.actions-kanban-card-title {
  font-size: 13px;
  font-weight: 700;
  color: var(--text-primary);
}

.actions-kanban-card-desc {
  font-size: 12px;
  color: var(--text-secondary);
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.actions-kanban-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 6px;
  border-top: 1px solid var(--border-color);
}

/* Modals */
.actions-modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  padding: 20px;
}

.actions-modal-backdrop.show,
.actions-modal-backdrop.active {
  display: flex !important;
}

.actions-modal-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  width: 100%;
  max-width: 580px;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: var(--shadow-dropdown);
  display: flex;
  flex-direction: column;
  animation: fadeIn 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.actions-modal-header {
  padding: 16px 20px;
  border-bottom: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.actions-modal-body {
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.actions-modal-footer {
  padding: 16px 20px;
  border-top: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
}

.actions-form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.actions-form-label {
  font-size: 12px;
  font-weight: 700;
  color: var(--text-secondary);
}

.actions-form-input,
.actions-form-select,
.actions-form-textarea {
  background: var(--bg-input);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  padding: 8px 12px;
  color: var(--text-primary);
  font-size: 13px;
  font-family: inherit;
  outline: none;
  transition: all var(--transition);
}

.actions-form-input:focus,
.actions-form-select:focus,
.actions-form-textarea:focus {
  border-color: var(--accent-primary);
  box-shadow: 0 0 0 3px var(--accent-primary-bg);
}

.actions-form-textarea {
  min-height: 80px;
  resize: vertical;
}

/* ==========================================================================
   BUSINESS MAP WORKSPACE & ENTERPRISE KNOWLEDGE GRAPH STYLES
   ========================================================================== */
.business-map-body {
  display: flex;
  flex-direction: column;
  gap: 18px;
  width: 100%;
}

.bmap-header-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg, 16px);
  padding: 16px 20px;
  gap: 16px;
  flex-wrap: wrap;
}

.bmap-header-left {
  display: flex;
  align-items: center;
  gap: 14px;
}

.bmap-icon-badge {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: var(--accent-primary-bg, rgba(0, 82, 255, 0.12));
  color: var(--accent-primary, #0052FF);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.bmap-icon-badge svg,
.bmap-icon-badge i {
  width: 20px;
  height: 20px;
}

.bmap-title {
  font-size: 16px;
  font-weight: 700;
  color: var(--text-primary);
  margin: 0 0 4px 0;
  letter-spacing: -0.2px;
}

.bmap-subtitle {
  font-size: 12.5px;
  color: var(--text-muted);
  margin: 0;
  line-height: 1.4;
}

.bmap-crawl-all-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: linear-gradient(135deg, var(--accent-primary, #0052FF) 0%, #3B82F6 100%);
  color: #FFFFFF;
  border: none;
  border-radius: 10px;
  padding: 8px 16px;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 3px 12px rgba(0, 82, 255, 0.3);
  transition: all var(--transition);
}

.bmap-crawl-all-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 5px 18px rgba(0, 82, 255, 0.45);
}

.bmap-crawl-all-btn i,
.bmap-crawl-all-btn svg {
  width: 15px;
  height: 15px;
}

/* ── Segmented Business Map Navigation ─────────────────────────────────── */
.bmap-nav-bar {
  margin-bottom: 2px;
}

.bmap-tab-pane {
  animation: bmapFadeIn 0.22s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes bmapFadeIn {
  from {
    opacity: 0;
    transform: translateY(6px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ── Section Cards ─────────────────────────────────────────────────────── */
.bmap-section-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg, 16px);
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  transition: all var(--transition);
}

.bmap-section-card:hover {
  border-color: var(--border-light, rgba(255, 255, 255, 0.15));
}

.bmap-section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 14px;
  gap: 12px;
  flex-wrap: wrap;
}

.bmap-sec-title-wrap {
  display: flex;
  align-items: center;
  gap: 12px;
}

.bmap-sec-icon-box {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.bmap-sec-icon-box svg,
.bmap-sec-icon-box i {
  width: 18px;
  height: 18px;
}

.bmap-sec-heading {
  font-size: 15px;
  font-weight: 700;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 8px;
  letter-spacing: -0.2px;
}

.bmap-sec-sub {
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 2px;
}

.bmap-count-badge {
  font-size: 11px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 9999px;
  background: var(--bg-pill, rgba(255, 255, 255, 0.06));
  color: var(--text-secondary);
  border: 1px solid var(--border-color);
}

.bmap-sec-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.bmap-crawl-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11.5px;
  font-weight: 600;
  color: var(--text-secondary);
  background: var(--bg-inner);
  border: 1px solid var(--border-color);
  padding: 5px 11px;
  border-radius: 8px;
}

.bmap-pulse-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #10B981;
  box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.6);
  animation: bmapPulse 2s infinite;
}

@keyframes bmapPulse {
  0% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.6); }
  70% { box-shadow: 0 0 0 6px rgba(16, 185, 129, 0); }
  100% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}

.bmap-freq-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--bg-inner);
  border: 1px solid var(--border-color);
  color: var(--text-secondary);
  padding: 5px 10px;
  border-radius: 8px;
  font-size: 11.5px;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition);
}

.bmap-freq-btn:hover {
  border-color: var(--accent-primary);
  color: var(--text-primary);
}

.bmap-freq-btn svg,
.bmap-freq-btn i {
  width: 13px;
  height: 13px;
  color: var(--accent-primary);
}

.bmap-action-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  border: 1px solid var(--border-color);
  background: var(--bg-inner);
  color: var(--text-primary);
  transition: all var(--transition);
}

.bmap-action-btn.primary {
  background: var(--accent-primary, #0052FF);
  border-color: var(--accent-primary, #0052FF);
  color: #FFFFFF;
}

.bmap-action-btn.primary:hover {
  background: #0045D8;
  transform: translateY(-1px);
}

.bmap-action-btn svg,
.bmap-action-btn i {
  width: 13px;
  height: 13px;
}

/* ── Profile Grid ──────────────────────────────────────────────────────── */
.bmap-profile-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}

@media (max-width: 768px) {
  .bmap-profile-grid {
    grid-template-columns: 1fr;
  }
}

.bmap-profile-hero {
  grid-column: 1 / -1;
  background: var(--bg-inner);
  border: 1px solid var(--border-color);
  border-radius: 14px;
  padding: 18px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.bmap-profile-hero-left {
  display: flex;
  align-items: center;
  gap: 16px;
}

.bmap-profile-logo-wrap {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  padding: 6px;
}

.bmap-profile-logo {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.bmap-profile-hero-info {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.bmap-profile-name-row {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.bmap-profile-name {
  font-size: 16px;
  font-weight: 700;
  color: var(--text-primary);
  margin: 0;
  letter-spacing: -0.2px;
}

.bmap-status-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 11.5px;
  font-weight: 600;
  padding: 2px 9px;
  border-radius: 9999px;
}

.bmap-status-pill.green {
  background: rgba(16, 185, 129, 0.12);
  color: #10B981;
  border: 1px solid rgba(16, 185, 129, 0.25);
}

.bmap-status-pill svg,
.bmap-status-pill i {
  width: 12px;
  height: 12px;
}

.bmap-profile-meta-row {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  font-size: 12.5px;
  color: var(--text-muted);
}

.bmap-profile-link {
  color: var(--accent-primary);
  text-decoration: none;
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  transition: opacity 0.2s;
}

.bmap-profile-link:hover {
  text-decoration: underline;
}

.bmap-meta-divider {
  color: var(--border-color);
}

.bmap-meta-tag {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: var(--text-secondary);
}

.bmap-meta-tag svg,
.bmap-meta-tag i {
  width: 13px;
  height: 13px;
}

.bmap-prop-card {
  background: var(--bg-inner);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 14px 16px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  transition: all var(--transition);
}

.bmap-prop-card:hover {
  border-color: var(--border-light, rgba(255, 255, 255, 0.18));
}

.bmap-prop-card.full-width {
  grid-column: 1 / -1;
}

.bmap-prop-card.bmap-prop-highlight {
  background: linear-gradient(135deg, rgba(0, 82, 255, 0.05) 0%, rgba(59, 130, 246, 0.02) 100%);
  border-left: 3px solid var(--accent-primary, #0052FF);
}

.bmap-prop-label {
  font-size: 12px;
  font-weight: 500;
  color: var(--text-muted);
  text-transform: none;
  letter-spacing: normal;
  display: flex;
  align-items: center;
  gap: 6px;
}

.bmap-prop-label svg,
.bmap-prop-label i {
  width: 13px;
  height: 13px;
  color: var(--accent-primary, #0052FF);
}

.bmap-prop-value {
  font-size: 13.5px;
  font-weight: 500;
  color: var(--text-primary);
  line-height: 1.5;
}

.bmap-prop-value-lg {
  font-size: 14px;
  font-weight: 600;
}

/* ── Dynamic Item Lists (Competitors, Keywords, Products) ───────────────── */
.bmap-items-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.bmap-item-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--bg-inner);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 12px 16px;
  gap: 16px;
  transition: all var(--transition);
}

.bmap-item-card:hover {
  border-color: rgba(0, 82, 255, 0.35);
  background: var(--bg-card-hover, var(--bg-inner));
  transform: translateY(-1px);
}

.bmap-item-left {
  display: flex;
  align-items: center;
  gap: 14px;
  flex: 1;
  min-width: 0;
}

.bmap-item-logo {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 800;
  color: var(--accent-primary);
  flex-shrink: 0;
}

.bmap-item-info {
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 0;
}

.bmap-item-title-row {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.bmap-item-name {
  font-size: 13.5px;
  font-weight: 700;
  color: var(--text-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.bmap-item-link {
  font-size: 11.5px;
  color: var(--accent-primary);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 3px;
}

.bmap-item-link:hover {
  text-decoration: underline;
}

.bmap-item-link svg {
  width: 10px;
  height: 10px;
}

.bmap-item-desc {
  font-size: 12px;
  color: var(--text-secondary);
  line-height: 1.35;
}

.bmap-item-metrics {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.bmap-metric-segment {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 12px;
  color: var(--text-secondary);
}

.bmap-metric-label {
  color: var(--text-muted);
  font-size: 11px;
}

.bmap-metric-val {
  font-weight: 700;
  color: var(--text-primary);
}

.bmap-item-right {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.bmap-tag-pill {
  font-size: 11px;
  font-weight: 700;
  padding: 3px 9px;
  border-radius: 6px;
  letter-spacing: 0.2px;
}

.bmap-tag-pill.critical {
  background: rgba(239, 68, 68, 0.15);
  color: #EF4444;
  border: 1px solid rgba(239, 68, 68, 0.3);
}

.bmap-tag-pill.high {
  background: rgba(245, 158, 11, 0.15);
  color: #F59E0B;
  border: 1px solid rgba(245, 158, 11, 0.3);
}

.bmap-tag-pill.moderate {
  background: rgba(59, 130, 246, 0.15);
  color: #3B82F6;
  border: 1px solid rgba(59, 130, 246, 0.3);
}

.bmap-tag-pill.success {
  background: rgba(16, 185, 129, 0.15);
  color: #10B981;
  border: 1px solid rgba(16, 185, 129, 0.3);
}

.bmap-cat-header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 7px;
}

.bmap-cat-subheading {
  font-size: 11px;
  font-weight: 700;
  color: var(--text-muted, #71717A);
  letter-spacing: 0.6px;
  text-transform: uppercase;
}

.bmap-cat-hint {
  font-size: 10.5px;
  color: var(--text-muted, #71717A);
  font-weight: 500;
}

.bmap-cat-tags-container {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  padding: 10px 12px;
  background: var(--bg-inner, #0F1013);
  border: 1px solid var(--border-color, #26272C);
  border-radius: 10px;
  max-height: 120px;
  overflow-y: auto;
  box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.25);
}

.bmap-cat-tags-container::-webkit-scrollbar {
  width: 4px;
}

.bmap-cat-tags-container::-webkit-scrollbar-thumb {
  background: var(--border-color, #26272C);
  border-radius: 4px;
}

.bmap-cat-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  border-radius: 9999px;
  font-family: var(--font-family);
  font-size: 11.5px;
  font-weight: 600;
  line-height: 1.3;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--text-secondary, #A1A1AA);
  cursor: pointer;
  transition: all 0.18s cubic-bezier(0.16, 1, 0.3, 1);
  user-select: none;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.15);
}

.bmap-cat-tag-prefix {
  font-size: 10px;
  font-weight: 700;
  color: var(--text-muted, #71717A);
  transition: color 0.18s ease;
  line-height: 1;
}

.bmap-cat-tag-label {
  letter-spacing: 0.1px;
}

.bmap-cat-tag:hover {
  background: rgba(0, 82, 255, 0.12);
  border-color: rgba(0, 82, 255, 0.35);
  color: #60A5FA;
  transform: translateY(-1px);
  box-shadow: 0 3px 8px rgba(0, 82, 255, 0.2);
}

.bmap-cat-tag:hover .bmap-cat-tag-prefix {
  color: #60A5FA;
}

.bmap-cat-tag.active {
  background: linear-gradient(135deg, #0052FF 0%, #2563EB 100%) !important;
  border-color: #3B82F6 !important;
  color: #FFFFFF !important;
  font-weight: 700;
  transform: translateY(-1px) scale(1.02);
  box-shadow: 0 4px 12px rgba(0, 82, 255, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.3) !important;
}

.bmap-cat-tag.active .bmap-cat-tag-prefix {
  color: #FFFFFF !important;
  font-weight: 800;
}

/* Light Theme Styling for Category Tags */
body.light-theme .bmap-cat-tags-container {
  background: #F8FAFC;
  border-color: #E2E8F0;
  box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.04);
}

body.light-theme .bmap-cat-tag {
  background: #FFFFFF;
  border-color: #E2E8F0;
  color: #475569;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

body.light-theme .bmap-cat-tag-prefix {
  color: #94A3B8;
}

body.light-theme .bmap-cat-tag:hover {
  background: rgba(0, 82, 255, 0.06);
  border-color: rgba(0, 82, 255, 0.3);
  color: #0052FF;
}

body.light-theme .bmap-cat-tag:hover .bmap-cat-tag-prefix {
  color: #0052FF;
}

body.light-theme .bmap-cat-tag.active {
  background: linear-gradient(135deg, #0052FF 0%, #1D4ED8 100%) !important;
  border-color: #0052FF !important;
  color: #FFFFFF !important;
  box-shadow: 0 4px 12px rgba(0, 82, 255, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.25) !important;
}

body.light-theme .bmap-cat-tag.active .bmap-cat-tag-prefix {
  color: #FFFFFF !important;
}

.bmap-row-actions {
  display: flex;
  align-items: center;
  gap: 4px;
}

.bmap-icon-action-btn {
  width: 28px;
  height: 28px;
  border-radius: 6px;
  border: 1px solid var(--border-color);
  background: var(--bg-card);
  color: var(--text-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all var(--transition);
}

.bmap-icon-action-btn:hover {
  color: var(--text-primary);
  border-color: var(--border-light);
}

.bmap-icon-action-btn.delete:hover {
  color: #EF4444;
  border-color: #EF4444;
  background: rgba(239, 68, 68, 0.1);
}

.bmap-icon-action-btn svg,
.bmap-icon-action-btn i {
  width: 13px;
  height: 13px;
}

/* ── Boolean Search Query Cards (Brand Monitoring Style) ─────────────────── */
.bool-query-card {
  background: var(--bg-inner, #0F172A);
  border: 1px solid var(--border-color, rgba(255, 255, 255, 0.08));
  border-radius: 12px;
  padding: 16px 18px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: all var(--transition, 0.2s ease);
}

.bool-query-card:hover {
  border-color: rgba(99, 102, 241, 0.35);
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.18);
  transform: translateY(-1px);
}

.bool-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.bool-title-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
}

.bool-title-icon {
  width: 32px;
  height: 32px;
  border-radius: 9px;
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.2), rgba(139, 92, 246, 0.2));
  color: #818CF8;
  border: 1px solid rgba(99, 102, 241, 0.35);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 2px 6px rgba(99, 102, 241, 0.15);
}

.bool-title-icon svg,
.bool-title-icon i {
  width: 15px;
  height: 15px;
}

.bool-cat-pill {
  font-size: 11px;
  font-weight: 700;
  padding: 2.5px 8px;
  border-radius: 6px;
  background: rgba(99, 102, 241, 0.12);
  color: #818CF8;
  border: 1px solid rgba(99, 102, 241, 0.25);
  letter-spacing: 0.2px;
  text-transform: none;
}

.bool-title-text {
  font-size: 14px;
  font-weight: 700;
  color: var(--text-primary, #FFFFFF);
  letter-spacing: -0.01em;
}

.bool-syntax-box {
  background: rgba(5, 8, 16, 0.75);
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 8px;
  padding: 10px 14px;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  font-family: 'JetBrains Mono', 'Fira Code', Consolas, Monaco, monospace;
  font-size: 12px;
  line-height: 1.65;
  color: #E2E8F0;
  word-break: break-word;
}

.bool-search-lens-tag {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: #818CF8;
  background: rgba(99, 102, 241, 0.14);
  border: 1px solid rgba(99, 102, 241, 0.3);
  padding: 2px 6px;
  border-radius: 4px;
  margin-right: 6px;
  vertical-align: middle;
  flex-shrink: 0;
  font-family: var(--font-family, -apple-system, BlinkMacSystemFont, sans-serif);
}

.bool-search-lens-tag svg,
.bool-search-lens-tag i {
  width: 10.5px;
  height: 10.5px;
}

.bool-syntax-content {
  flex: 1;
}

.bool-op-pill {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  font-weight: 800;
  font-size: 10.5px;
  padding: 1.5px 6px;
  border-radius: 4px;
  margin: 0 3px;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  vertical-align: middle;
}

.bool-op-pill svg,
.bool-op-pill i {
  width: 9px;
  height: 9px;
}

.bool-op-pill.and {
  background: rgba(59, 130, 246, 0.22);
  color: #60A5FA;
  border: 1px solid rgba(59, 130, 246, 0.4);
}

.bool-op-pill.or {
  background: rgba(168, 85, 247, 0.22);
  color: #C084FC;
  border: 1px solid rgba(168, 85, 247, 0.4);
}

.bool-op-pill.not {
  background: rgba(239, 68, 68, 0.22);
  color: #F87171;
  border: 1px solid rgba(239, 68, 68, 0.4);
}

.bool-op-pill.near {
  background: rgba(245, 158, 11, 0.22);
  color: #FBBF24;
  border: 1px solid rgba(245, 158, 11, 0.4);
}

.bool-phrase-token {
  color: #34D399;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 2.5px;
  background: rgba(52, 211, 153, 0.08);
  padding: 0 3.5px;
  border-radius: 3px;
}

.bool-phrase-token svg,
.bool-phrase-token i {
  width: 9.5px;
  height: 9.5px;
  color: #34D399;
  opacity: 0.85;
}

.bool-group-paren {
  color: #94A3B8;
  font-weight: 700;
}

.bool-copy-btn {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--text-muted, #94A3B8);
  padding: 4px 8px;
  border-radius: 6px;
  font-size: 11px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  flex-shrink: 0;
  transition: all var(--transition, 0.2s ease);
}

.bool-copy-btn:hover {
  background: rgba(255, 255, 255, 0.1);
  color: var(--text-primary, #FFFFFF);
  border-color: var(--border-light, rgba(255, 255, 255, 0.2));
}

.bool-copy-btn svg,
.bool-copy-btn i {
  width: 12px;
  height: 12px;
}

.bool-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
  padding-top: 2px;
  font-size: 12px;
}

.bool-metrics-row {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.bool-sent-breakdown {
  display: flex;
  align-items: center;
  gap: 7px;
}

.bool-sent-meter {
  width: 80px;
  height: 6px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  display: flex;
  overflow: hidden;
}

.bool-sent-bar {
  height: 100%;
}

.bool-sent-bar.pos { background: #10B981; }
.bool-sent-bar.neu { background: #94A3B8; }
.bool-sent-bar.neg { background: #EF4444; }

.bool-sources-list {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.bool-source-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 11px;
  color: var(--text-secondary, #CBD5E1);
  background: var(--bg-card, rgba(255, 255, 255, 0.04));
  padding: 2.5px 7px;
  border-radius: 5px;
  border: 1px solid var(--border-color, rgba(255, 255, 255, 0.08));
}

.bool-helper-btn {
  padding: 3.5px 9px;
  font-size: 11px;
  font-weight: 700;
  border-radius: 6px;
  border: 1px solid var(--border-color, rgba(255, 255, 255, 0.12));
  background: var(--bg-card, rgba(255, 255, 255, 0.05));
  color: var(--text-secondary, #CBD5E1);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  transition: all 0.15s ease;
}

.bool-helper-btn:hover {
  background: rgba(99, 102, 241, 0.15);
  border-color: #6366F1;
  color: #818CF8;
}

.bool-helper-btn svg,
.bool-helper-btn i {
  width: 10.5px;
  height: 10.5px;
}

/* ==========================================================================
   Exact Reference Image Styling for KPI Impact Board
   ========================================================================== */

.kpi-workspace-container {
  display: flex;
  flex-direction: column;
  gap: 16px;
  width: 100%;
}

.kpi-board-title {
  font-size: 22px;
  font-weight: 800;
  color: #FFFFFF;
  margin: 0 0 4px 0;
  letter-spacing: -0.02em;
}

.kpi-board-subtitle {
  font-size: 13.5px;
  color: #9CA3AF;
  margin: 0 0 16px 0;
}

/* ── Top Controls Row ── */
.kpi-controls-row-ref {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.kpi-pills-scroll-ref {
  display: flex;
  align-items: center;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 2px;
  scrollbar-width: none;
}
.kpi-pills-scroll-ref::-webkit-scrollbar { display: none; }

.kpi-pill-ref {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border-radius: 9999px;
  background: #18191D;
  border: 1px solid rgba(255, 255, 255, 0.09);
  color: #9CA3AF;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.2s ease;
}

.kpi-pill-ref:hover {
  background: #22242A;
  color: #FFFFFF;
  border-color: rgba(255, 255, 255, 0.18);
}

.kpi-pill-ref.active {
  background: #0052FF !important;
  border-color: #0052FF !important;
  color: #FFFFFF !important;
  box-shadow: 0 2px 10px rgba(0, 82, 255, 0.35);
}

.kpi-pill-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  flex-shrink: 0;
}

.kpi-pill-dot.sales { background: #3B82F6; }
.kpi-pill-dot.marketing { background: #F43F5E; }
.kpi-pill-dot.product { background: #F59E0B; }
.kpi-pill-dot.support { background: #10B981; }
.kpi-pill-dot.seo { background: #A78BFA; }
.kpi-pill-dot.content { background: #EC4899; }
.kpi-pill-dot.email { background: #06B6D4; }
.kpi-pill-dot.social { background: #3B82F6; }
.kpi-pill-dot.ads { background: #EF4444; }
.kpi-pill-dot.security { background: #10B981; }

.kpi-actions-row-ref {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.kpi-action-btn-ref {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border-radius: 9999px;
  background: #18191D;
  border: 1px solid rgba(255, 255, 255, 0.09);
  color: #D1D5DB;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.kpi-action-btn-ref:hover {
  background: #22242A;
  color: #FFFFFF;
  border-color: rgba(255, 255, 255, 0.2);
}

.kpi-set-btn-ref {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 16px;
  border-radius: 9999px;
  background: #0052FF;
  border: 1px solid #0052FF;
  color: #FFFFFF;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 2px 10px rgba(0, 82, 255, 0.35);
}

.kpi-set-btn-ref:hover {
  background: #0046E0;
  transform: translateY(-1px);
}

/* ── Total Progress Strip ── */
.kpi-total-progress-strip-ref {
  background: #141518;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 12px 18px;
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: 4px;
  margin-bottom: 8px;
}

.kpi-total-prog-left {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 700;
  color: #FFFFFF;
  white-space: nowrap;
}

.kpi-total-prog-left i {
  color: #0052FF;
  width: 15px;
  height: 15px;
}

.kpi-total-prog-track {
  flex: 1;
  height: 6px;
  background: #23252B;
  border-radius: 9999px;
  overflow: hidden;
}

.kpi-total-prog-fill {
  height: 100%;
  background: #0052FF;
  border-radius: 9999px;
  transition: width 0.8s cubic-bezier(0.22, 1, 0.36, 1);
}

.kpi-total-prog-pct {
  font-size: 13px;
  font-weight: 800;
  color: #FFFFFF;
  white-space: nowrap;
}

/* ── 5-Column Cards Grid ── */
.kpi-grid-container-ref {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 16px;
  width: 100%;
}

@media (max-width: 1500px) {
  .kpi-grid-container-ref { grid-template-columns: repeat(4, 1fr); }
}

@media (max-width: 1200px) {
  .kpi-grid-container-ref { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 850px) {
  .kpi-grid-container-ref { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 580px) {
  .kpi-grid-container-ref { grid-template-columns: 1fr; }
}

/* ── Single KPI Card ── */
.kpi-card-ref {
  background: #141518;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  padding: 16px 18px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 12px;
  min-height: 160px;
  transition: transform 0.2s ease, border-color 0.2s ease;
  position: relative;
}

.kpi-card-ref:hover {
  transform: translateY(-2px);
  border-color: rgba(255, 255, 255, 0.18);
}

.kpi-card-top-ref {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.kpi-card-title-group {
  display: flex;
  align-items: center;
  gap: 10px;
}

.kpi-card-icon-circle {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #FFFFFF;
  flex-shrink: 0;
}

.kpi-card-icon-circle.sales { background: #0052FF; }
.kpi-card-icon-circle.marketing { background: #E11D48; }
.kpi-card-icon-circle.product { background: #D97706; }
.kpi-card-icon-circle.support { background: #059669; }
.kpi-card-icon-circle.seo { background: #7C3AED; }
.kpi-card-icon-circle.content { background: #DB2777; }
.kpi-card-icon-circle.email { background: #0891B2; }
.kpi-card-icon-circle.social { background: #2563EB; }
.kpi-card-icon-circle.ads { background: #DC2626; }
.kpi-card-icon-circle.security { background: #059669; }

.kpi-card-icon-circle i {
  width: 15px;
  height: 15px;
  stroke-width: 2.2;
}

.kpi-card-name-ref {
  font-size: 14.5px;
  font-weight: 700;
  color: #FFFFFF;
  line-height: 1.2;
}

.kpi-card-val-row {
  display: flex;
  align-items: baseline;
  gap: 5px;
  margin-top: 2px;
}

.kpi-card-big-val {
  font-size: 22px;
  font-weight: 800;
  color: #FFFFFF;
  letter-spacing: -0.02em;
  line-height: 1;
}

.kpi-card-target-val {
  font-size: 11.5px;
  color: #6B7280;
  font-weight: 500;
}

.kpi-card-prog-wrap {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.kpi-card-prog-labels {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 11px;
  color: #9CA3AF;
  font-weight: 500;
}

.kpi-card-prog-labels span:last-child {
  font-weight: 600;
  color: #9CA3AF;
}

.kpi-card-prog-track {
  width: 100%;
  height: 4px;
  background: #23252B;
  border-radius: 9999px;
  overflow: hidden;
}

.kpi-card-prog-fill {
  height: 100%;
  border-radius: 9999px;
  transition: width 0.6s ease;
}

.kpi-card-prog-fill.sales { background: #3B82F6; }
.kpi-card-prog-fill.marketing { background: #F43F5E; }
.kpi-card-prog-fill.product { background: #F59E0B; }
.kpi-card-prog-fill.support { background: #10B981; }
.kpi-card-prog-fill.seo { background: #A78BFA; }
.kpi-card-prog-fill.content { background: #EC4899; }
.kpi-card-prog-fill.email { background: #06B6D4; }
.kpi-card-prog-fill.social { background: #3B82F6; }
.kpi-card-prog-fill.ads { background: #EF4444; }
.kpi-card-prog-fill.security { background: #10B981; }

.kpi-card-footer-ref {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding-top: 4px;
}

.kpi-card-desc-ref {
  font-size: 11px;
  color: #9CA3AF;
  display: flex;
  align-items: center;
  gap: 4px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.kpi-card-desc-ref i {
  width: 12px;
  height: 12px;
  flex-shrink: 0;
}

.kpi-card-tag-badge {
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  padding: 2px 7px;
  border-radius: 9999px;
  white-space: nowrap;
}

.kpi-card-tag-badge.sales { background: rgba(59, 130, 246, 0.15); color: #3B82F6; }
.kpi-card-tag-badge.marketing { background: rgba(244, 63, 94, 0.15); color: #F43F5E; }
.kpi-card-tag-badge.product { background: rgba(245, 158, 11, 0.15); color: #F59E0B; }
.kpi-card-tag-badge.support { background: rgba(16, 185, 129, 0.15); color: #10B981; }
.kpi-card-tag-badge.seo { background: rgba(167, 139, 250, 0.15); color: #A78BFA; }
.kpi-card-tag-badge.content { background: rgba(236, 72, 153, 0.15); color: #EC4899; }
.kpi-card-tag-badge.email { background: rgba(6, 182, 212, 0.15); color: #06B6D4; }
.kpi-card-tag-badge.social { background: rgba(59, 130, 246, 0.15); color: #3B82F6; }
.kpi-card-tag-badge.ads { background: rgba(239, 68, 68, 0.15); color: #EF4444; }
.kpi-card-tag-badge.security { background: rgba(16, 185, 129, 0.15); color: #10B981; }


/* ==========================================================================
   Branestar Home Page / Executive Dashboard — 28.08.2026 Master Styles
   ========================================================================== */

.home-dashboard-container {
  display: flex;
  flex-direction: column;
  gap: 20px;
  width: 100%;
  padding: 0 0 32px 0;
  box-sizing: border-box;
}

/* ── 1. Executive Welcome Greeting Banner ── */
.home-welcome-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  background: #141518;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 18px;
  padding: 22px 26px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.12);
  position: relative;
  overflow: hidden;
  background-image: radial-gradient(circle at 10% 20%, rgba(0, 82, 255, 0.08) 0%, transparent 60%);
}

.home-welcome-left {
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex: 1;
  min-width: 0;
}

.home-welcome-greeting-row {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.home-welcome-title {
  margin: 0;
  font-size: 22px;
  font-weight: 800;
  color: #FFFFFF;
  letter-spacing: -0.02em;
  display: flex;
  align-items: center;
  gap: 8px;
}

.home-welcome-user {
  color: #FFFFFF;
}

.home-welcome-wave {
  display: inline-block;
  transform-origin: 70% 70%;
  animation: waveAnimation 2s infinite ease-in-out;
}

@keyframes waveAnimation {
  0% { transform: rotate(0deg); }
  10% { transform: rotate(14deg); }
  20% { transform: rotate(-8deg); }
  30% { transform: rotate(14deg); }
  40% { transform: rotate(-4deg); }
  50% { transform: rotate(10deg); }
  60% { transform: rotate(0deg); }
  100% { transform: rotate(0deg); }
}

.home-welcome-status-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  background: rgba(16, 185, 129, 0.12);
  border: 1px solid rgba(16, 185, 129, 0.25);
  color: #10B981;
  font-size: 11.5px;
  font-weight: 700;
  border-radius: 9999px;
}

.home-pulse-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #10B981;
  box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7);
  animation: pulseGreen 2s infinite;
  display: inline-block;
}

@keyframes pulseGreen {
  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 6px rgba(16, 185, 129, 0); }
  100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}

.home-welcome-sub {
  margin: 0;
  font-size: 13px;
  color: #9CA3AF;
  line-height: 1.5;
  max-width: 680px;
}

.home-welcome-right {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.home-welcome-meta-card {
  display: flex;
  align-items: center;
  gap: 16px;
  background: #101114;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  padding: 10px 16px;
}

.home-welcome-meta-item {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.home-welcome-meta-label {
  font-size: 10.5px;
  font-weight: 700;
  color: #6B7280;
  text-transform: uppercase;
  letter-spacing: 0.4px;
  display: flex;
  align-items: center;
  gap: 4px;
}

.home-welcome-meta-label i, .home-welcome-meta-label svg {
  width: 12px;
  height: 12px;
}

.home-welcome-meta-val {
  font-size: 12.5px;
  font-weight: 700;
  color: #FFFFFF;
}

.home-welcome-meta-divider {
  width: 1px;
  height: 28px;
  background: rgba(255, 255, 255, 0.08);
}

@media (max-width: 900px) {
  .home-welcome-banner {
    flex-direction: column;
    align-items: flex-start;
    padding: 18px 20px;
  }
  .home-welcome-right {
    width: 100%;
  }
  .home-welcome-meta-card {
    width: 100%;
    justify-content: space-between;
  }
}

/* ── 2. Business Health Horizontal Cards Grid ── */
.home-section-container {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.home-health-horizontal-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 14px;
  width: 100%;
}

@media (max-width: 1400px) {
  .home-health-horizontal-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 800px) {
  .home-health-horizontal-grid {
    grid-template-columns: 1fr;
  }
}

.home-health-hero-card {
  background: #141518;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  padding: 14px 18px;
  display: flex;
  align-items: center;
  gap: 14px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
}

.home-health-gauge {
  width: 54px;
  height: 54px;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.home-health-gauge svg {
  width: 54px;
  height: 54px;
  transform: rotate(-90deg);
}

.home-gauge-bg {
  fill: none;
  stroke: rgba(255, 255, 255, 0.08);
  stroke-width: 8;
}

.home-gauge-fill {
  fill: none;
  stroke: #10B981;
  stroke-width: 8;
  stroke-linecap: round;
}

.home-gauge-inner-val {
  position: absolute;
  font-size: 15px;
  font-weight: 800;
  color: #FFFFFF;
}

.home-health-hero-details {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.home-health-hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 11px;
  font-weight: 700;
  color: #10B981;
  background: rgba(16, 185, 129, 0.12);
  padding: 2px 7px;
  border-radius: 9999px;
  width: max-content;
}

.home-health-hero-title {
  margin: 0;
  font-size: 13.5px;
  font-weight: 700;
  color: #FFFFFF;
  line-height: 1.2;
}

.home-dim-card {
  background: #141518;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  padding: 14px 16px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 8px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
}

.home-dim-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.home-dim-name {
  font-size: 12.5px;
  font-weight: 700;
  color: #D1D5DB;
  display: flex;
  align-items: center;
  gap: 6px;
}

.home-dim-icon-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
}
.home-dim-icon-dot.rev { background: #10B981; }
.home-dim-icon-dot.acq { background: #3B82F6; }
.home-dim-icon-dot.cus { background: #A78BFA; }
.home-dim-icon-dot.ops { background: #F59E0B; }
.home-dim-icon-dot.mkt { background: #F43F5E; }

.home-dim-change {
  font-size: 11px;
  font-weight: 700;
}
.home-dim-change.up { color: #10B981; }
.home-dim-change.stable { color: #9CA3AF; }

.home-dim-score-row {
  display: flex;
  align-items: baseline;
  gap: 3px;
}

.home-dim-score-val {
  font-size: 18px;
  font-weight: 800;
  color: #FFFFFF;
  line-height: 1;
}

.home-dim-score-max {
  font-size: 11px;
  color: #6B7280;
  font-weight: 600;
}

.home-dim-bar-track {
  width: 100%;
  height: 4px;
  background: #23252B;
  border-radius: 9999px;
  overflow: hidden;
}

.home-dim-bar-fill {
  height: 100%;
  border-radius: 9999px;
}
.home-dim-bar-fill.green { background: #10B981; }
.home-dim-bar-fill.blue { background: #3B82F6; }
.home-dim-bar-fill.purple { background: #A78BFA; }
.home-dim-bar-fill.amber { background: #F59E0B; }
.home-dim-bar-fill.rose { background: #F43F5E; }

/* ── 3. ChatGPT Style Conversational Intelligence Copilot ── */
.home-chatgpt-section {
  width: 100%;
  margin-top: 4px;
}

.home-chatgpt-container {
  display: flex;
  flex-direction: column;
  background: #141518;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 18px;
  box-shadow: 0 14px 40px -4px rgba(0, 0, 0, 0.45), 0 6px 18px -2px rgba(0, 0, 0, 0.35);
  overflow: hidden;
  position: relative;
}

.home-chatgpt-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
  background: #101114;
  gap: 16px;
  flex-wrap: wrap;
}

.home-chatgpt-header-left {
  display: flex;
  align-items: center;
  gap: 12px;
}

.home-chatgpt-avatar {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: linear-gradient(135deg, #0052FF 0%, #3B82F6 100%);
  color: #FFFFFF;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 10px rgba(0, 82, 255, 0.35);
  flex-shrink: 0;
}
.home-chatgpt-avatar i, .home-chatgpt-avatar svg {
  width: 18px;
  height: 18px;
}

.home-chatgpt-title-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.home-chatgpt-title-row {
  display: flex;
  align-items: center;
  gap: 8px;
}

.home-chatgpt-title {
  margin: 0;
  font-size: 15px;
  font-weight: 800;
  color: #FFFFFF;
  letter-spacing: -0.01em;
}

.home-chatgpt-badge {
  font-size: 10px;
  font-weight: 700;
  color: #0052FF;
  background: rgba(0, 82, 255, 0.12);
  border: 1px solid rgba(0, 82, 255, 0.25);
  padding: 2px 7px;
  border-radius: 9999px;
  text-transform: uppercase;
}

.home-chatgpt-status {
  font-size: 11.5px;
  color: #9CA3AF;
  display: flex;
  align-items: center;
  gap: 5px;
}

.home-chatgpt-header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.home-chatgpt-header-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 6px 12px;
  font-size: 12px;
  font-weight: 600;
  background: #18191D;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  color: #9CA3AF;
  cursor: pointer;
  transition: all 0.2s ease;
}
.home-chatgpt-header-btn:hover {
  background: #22242A;
  color: #FFFFFF;
  border-color: rgba(255, 255, 255, 0.18);
}
.home-chatgpt-header-btn i, .home-chatgpt-header-btn svg {
  width: 13px;
  height: 13px;
}

.home-chatgpt-messages-feed {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 20px 24px;
  max-height: 440px;
  min-height: 220px;
  overflow-y: auto;
  scroll-behavior: smooth;
  background: #141518;
}

.home-chat-msg {
  display: flex;
  gap: 12px;
  max-width: 100%;
  animation: fadeInMsg 0.25s ease-out;
}

@keyframes fadeInMsg {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}

.home-chat-msg.user {
  flex-direction: row-reverse;
}

.home-chat-msg-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 12px;
  font-weight: 800;
}
.home-chat-msg-avatar.ai {
  background: linear-gradient(135deg, #0052FF 0%, #3B82F6 100%);
  color: #FFFFFF;
}
.home-chat-msg-avatar.ai i, .home-chat-msg-avatar.ai svg {
  width: 15px;
  height: 15px;
}
.home-chat-msg-avatar.user {
  background: #374151;
  color: #FFFFFF;
}

.home-chat-msg-bubble {
  max-width: 82%;
  background: #1C1E24;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  padding: 12px 16px;
}
.home-chat-msg.user .home-chat-msg-bubble {
  background: #0052FF;
  border-color: #0052FF;
  color: #FFFFFF;
}

.home-chat-msg-sender {
  font-size: 11px;
  font-weight: 700;
  color: #9CA3AF;
  margin-bottom: 6px;
  display: flex;
  align-items: center;
  gap: 6px;
}
.home-chat-msg.user .home-chat-msg-sender {
  color: rgba(255, 255, 255, 0.8);
  justify-content: flex-end;
}
.home-chat-msg-time {
  font-weight: 500;
  opacity: 0.7;
}

.home-chat-msg-content {
  font-size: 13.5px;
  line-height: 1.5;
  color: #E5E7EB;
}
.home-chat-msg.user .home-chat-msg-content {
  color: #FFFFFF;
}

.home-chat-starters-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  margin-top: 14px;
}
@media (max-width: 768px) {
  .home-chat-starters-grid { grid-template-columns: 1fr; }
}

.home-chat-starter-card {
  background: #15161A;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  padding: 10px 12px;
  display: flex;
  align-items: flex-start;
  gap: 10px;
  cursor: pointer;
  transition: all 0.2s ease;
}
.home-chat-starter-card:hover {
  background: #202228;
  border-color: rgba(255, 255, 255, 0.18);
  transform: translateY(-1px);
}

.home-chat-starter-icon {
  width: 28px;
  height: 28px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.04);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.home-chat-starter-icon i, .home-chat-starter-icon svg {
  width: 14px;
  height: 14px;
}

.home-chat-starter-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.home-chat-starter-text strong {
  font-size: 12px;
  color: #FFFFFF;
}
.home-chat-starter-text span {
  font-size: 11px;
  color: #9CA3AF;
  line-height: 1.3;
}

.home-chatgpt-input-container {
  padding: 14px 20px 18px 20px;
  background: #101114;
  border-top: 1px solid rgba(255, 255, 255, 0.07);
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.home-chatgpt-context-pills {
  display: flex;
  align-items: center;
  gap: 6px;
  overflow-x: auto;
  scrollbar-width: none;
}
.home-chatgpt-context-pills::-webkit-scrollbar { display: none; }

.home-chat-context-pill {
  padding: 4px 10px;
  background: #18191D;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 9999px;
  color: #9CA3AF;
  font-size: 11.5px;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.2s ease;
}
.home-chat-context-pill:hover {
  background: #22242A;
  color: #FFFFFF;
  border-color: rgba(255, 255, 255, 0.18);
}

.home-chatgpt-input-card {
  background: #18191D;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 12px;
  padding: 10px 14px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.35);
}
.home-chatgpt-input-card:focus-within {
  border-color: #0052FF;
  box-shadow: 0 0 0 1px #0052FF;
}

.home-chatgpt-textarea {
  width: 100%;
  background: transparent;
  border: none;
  outline: none;
  color: #FFFFFF;
  font-family: inherit;
  font-size: 13.5px;
  resize: none;
  min-height: 24px;
  max-height: 160px;
  line-height: 1.5;
}
.home-chatgpt-textarea::placeholder {
  color: #6B7280;
}

.home-chatgpt-input-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.home-chatgpt-tools-left, .home-chatgpt-tools-right {
  display: flex;
  align-items: center;
  gap: 6px;
}

.home-chatgpt-tool-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 8px;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 6px;
  color: #9CA3AF;
  font-size: 11.5px;
  cursor: pointer;
  transition: all 0.2s ease;
}
.home-chatgpt-tool-btn:hover {
  background: rgba(255, 255, 255, 0.06);
  color: #FFFFFF;
}
.home-chatgpt-tool-btn i, .home-chatgpt-tool-btn svg {
  width: 13px;
  height: 13px;
}

.home-chatgpt-send-btn {
  width: 28px;
  height: 28px;
  border-radius: 6px;
  background: #0052FF;
  border: none;
  color: #FFFFFF;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
}
.home-chatgpt-send-btn:hover {
  background: #0046E0;
  transform: scale(1.05);
}
.home-chatgpt-send-btn i, .home-chatgpt-send-btn svg {
  width: 14px;
  height: 14px;
  stroke-width: 2.5;
}

.home-chatgpt-footer-disclaimer {
  font-size: 10.5px;
  color: #6B7280;
  text-align: center;
}

.home-chat-typing-dots {
  display: flex;
  gap: 4px;
  padding: 4px 0;
}
.home-chat-typing-dots span {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #9CA3AF;
  animation: typingDot 1.4s infinite ease-in-out both;
}
.home-chat-typing-dots span:nth-child(1) { animation-delay: -0.32s; }
.home-chat-typing-dots span:nth-child(2) { animation-delay: -0.16s; }
@keyframes typingDot {
  0%, 80%, 100% { transform: scale(0); opacity: 0.3; }
  40% { transform: scale(1); opacity: 1; }
}


/* ==========================================================================
   Comprehensive Light Theme Overrides (Zero Dark Bleed)
   ========================================================================== */
body.light-theme {
  --bg-shell:          #F0F4F8;
  --bg-inner:          #FFFFFF;
  --bg-sidebar:        #FFFFFF;
  --bg-left-sidebar:   #FFFFFF;
  --bg-right-sidebar:  #FFFFFF;
  --bg-card:           #FFFFFF;
  --bg-card-hover:     #F8FAFC;
  --bg-pill:           #F1F5F9;
  --bg-pill-hover:     #E2E8F0;
  --bg-input:          #F8FAFC;
  
  --border-color:      #E2E8F0;
  --border-light:      #CBD5E1;
  
  --text-primary:      #0F172A;
  --text-secondary:    #475569;
  --text-muted:        #64748B;
  
  --accent-primary:    #0052FF;
  --accent-primary-bg: rgba(0, 82, 255, 0.08);
  --card-shadow-opacity: 5%;
  --shadow-card:       0 2px 12px rgba(0, 0, 0, 0.06);
}

/* Base structural containers in Light Mode */
body.light-theme .dashboard-shell {
  background-color: #FFFFFF;
  border-color: #E2E8F0;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.06);
}

body.light-theme .floating-sidebar {
  background-color: #FFFFFF;
  border-color: #E2E8F0;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
}

body.light-theme .s-icon-btn {
  color: #64748B;
  background: transparent;
}

body.light-theme .s-icon-btn:hover {
  background-color: #F1F5F9;
  color: #0F172A;
}

body.light-theme .s-icon-btn.active {
  background-color: #0052FF;
  color: #FFFFFF;
}

body.light-theme .s-icon-btn.active svg,
body.light-theme .s-icon-btn.active i {
  color: #FFFFFF !important;
}

body.light-theme .sidebar-top-logo {
  background-color: #F1F5F9;
  border-color: #E2E8F0;
}

/* Light Theme: Homepage Components */
body.light-theme .home-welcome-banner {
  background: #FFFFFF;
  border-color: #E2E8F0;
  box-shadow: 0 2px 16px rgba(0, 0, 0, 0.05);
  background-image: radial-gradient(circle at 10% 20%, rgba(0, 82, 255, 0.05) 0%, transparent 60%);
}

body.light-theme .home-welcome-title {
  color: #0F172A;
}

body.light-theme .home-welcome-user {
  color: #0052FF;
}

body.light-theme .home-welcome-sub {
  color: #64748B;
}

body.light-theme .home-welcome-meta-card {
  background: #F8FAFC;
  border-color: #E2E8F0;
}

body.light-theme .home-welcome-meta-label {
  color: #64748B;
}

body.light-theme .home-welcome-meta-val {
  color: #0F172A;
}

body.light-theme .home-welcome-meta-divider {
  background: #E2E8F0;
}

body.light-theme .home-health-hero-card {
  background: #FFFFFF;
  border-color: #E2E8F0;
  box-shadow: 0 2px 14px rgba(0, 0, 0, 0.05);
}

body.light-theme .home-health-hero-title {
  color: #0F172A;
}

body.light-theme .home-gauge-bg {
  stroke: #E2E8F0;
}

body.light-theme .home-gauge-inner-val {
  color: #0F172A;
}

body.light-theme .home-dim-card {
  background: #FFFFFF;
  border-color: #E2E8F0;
  box-shadow: 0 2px 14px rgba(0, 0, 0, 0.05);
}

body.light-theme .home-dim-name {
  color: #334155;
}

body.light-theme .home-dim-score-val {
  color: #0F172A;
}

body.light-theme .home-dim-score-max {
  color: #94A3B8;
}

body.light-theme .home-dim-bar-track {
  background: #F1F5F9;
}

body.light-theme .home-chatgpt-container {
  background: #FFFFFF;
  border-color: #E2E8F0;
  box-shadow: 0 12px 36px -4px rgba(0, 0, 0, 0.10), 0 4px 14px -2px rgba(0, 0, 0, 0.06);
}

body.light-theme .home-chatgpt-header {
  background: #F8FAFC;
  border-color: #E2E8F0;
}

body.light-theme .home-chatgpt-title {
  color: #0F172A;
}

body.light-theme .home-chatgpt-status {
  color: #64748B;
}

body.light-theme .home-chatgpt-header-btn {
  background: #FFFFFF;
  border-color: #CBD5E1;
  color: #475569;
}

body.light-theme .home-chatgpt-header-btn:hover {
  background: #F1F5F9;
  color: #0F172A;
}

body.light-theme .home-chatgpt-messages-feed {
  background: #FFFFFF;
}

body.light-theme .home-chat-msg-sender {
  color: #64748B;
}

body.light-theme .home-chat-msg.assistant .home-chat-msg-bubble {
  background: #F8FAFC;
  border-color: #E2E8F0;
  color: #0F172A;
}

body.light-theme .home-chat-msg-content {
  color: #334155;
}

body.light-theme .home-chat-starter-card {
  background: #FFFFFF;
  border-color: #E2E8F0;
}

body.light-theme .home-chat-starter-card:hover {
  background: #F8FAFC;
  border-color: #CBD5E1;
}

body.light-theme .home-chat-starter-icon {
  background: #F1F5F9;
}

body.light-theme .home-chat-starter-text strong {
  color: #0F172A;
}

body.light-theme .home-chat-starter-text span {
  color: #64748B;
}

body.light-theme .home-chatgpt-input-container {
  background: #F8FAFC;
  border-color: #E2E8F0;
}

body.light-theme .home-chat-context-pill {
  background: #FFFFFF;
  border-color: #E2E8F0;
  color: #64748B;
}

body.light-theme .home-chat-context-pill:hover {
  background: #E2E8F0;
  color: #0F172A;
}

body.light-theme .home-chatgpt-input-card {
  background: #FFFFFF;
  border-color: #CBD5E1;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
}

body.light-theme .home-chatgpt-textarea {
  color: #0F172A;
}

body.light-theme .home-chatgpt-textarea::placeholder {
  color: #94A3B8;
}

body.light-theme .home-chatgpt-tool-btn {
  border-color: #E2E8F0;
  color: #64748B;
}

body.light-theme .home-chatgpt-tool-btn:hover {
  background: #F1F5F9;
  color: #0F172A;
}

body.light-theme .home-chatgpt-footer-disclaimer {
  color: #94A3B8;
}

/* Light Theme: KPI Impact Board */
body.light-theme .kpi-board-title {
  color: #0F172A;
}

body.light-theme .kpi-board-subtitle {
  color: #64748B;
}

body.light-theme .kpi-pill-ref {
  background: #FFFFFF;
  border-color: #E2E8F0;
  color: #64748B;
}

body.light-theme .kpi-pill-ref:hover {
  background: #F1F5F9;
  color: #0F172A;
}

body.light-theme .kpi-pill-ref.active {
  background: #0052FF !important;
  border-color: #0052FF !important;
  color: #FFFFFF !important;
}

body.light-theme .kpi-action-btn-ref {
  background: #FFFFFF;
  border-color: #CBD5E1;
  color: #334155;
}

body.light-theme .kpi-action-btn-ref:hover {
  background: #F1F5F9;
  color: #0F172A;
}

body.light-theme .kpi-total-progress-strip-ref {
  background: #FFFFFF;
  border-color: #E2E8F0;
}

body.light-theme .kpi-total-prog-left {
  color: #0F172A;
}

body.light-theme .kpi-total-prog-track {
  background: #F1F5F9;
}

body.light-theme .kpi-total-prog-pct {
  color: #0F172A;
}

body.light-theme .kpi-card-ref {
  background: #FFFFFF;
  border-color: #E2E8F0;
  box-shadow: 0 2px 14px rgba(0, 0, 0, 0.05);
}

body.light-theme .kpi-card-ref:hover {
  border-color: #CBD5E1;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
}

body.light-theme .kpi-card-name-ref {
  color: #0F172A;
}

body.light-theme .kpi-card-big-val {
  color: #0F172A;
}

body.light-theme .kpi-card-target-val {
  color: #94A3B8;
}

body.light-theme .kpi-card-prog-labels {
  color: #64748B;
}

body.light-theme .kpi-card-prog-labels span:last-child {
  color: #0F172A;
}

body.light-theme .kpi-card-prog-track {
  background: #F1F5F9;
}

body.light-theme .kpi-card-desc-ref {
  color: #64748B;
}

/* Light Theme: Actions Workspace */
body.light-theme .actions-top-toolbar {
  background: #FFFFFF;
  border-color: #E2E8F0;
}

body.light-theme .actions-filter-tab {
  background: #FFFFFF;
  border-color: #E2E8F0;
  color: #64748B;
}

body.light-theme .actions-filter-tab:hover {
  background: #F1F5F9;
  color: #0F172A;
}

body.light-theme .actions-filter-tab.active {
  background: #0052FF;
  color: #FFFFFF;
  border-color: #0052FF;
}

body.light-theme .actions-filter-tab.active .actions-tab-count {
  background: rgba(255, 255, 255, 0.25);
  color: #FFFFFF;
}

body.light-theme .actions-filter-tab:not(.active) .actions-tab-count {
  background: #E2E8F0;
  color: #475569;
}

body.light-theme .actions-kpi-card {
  background: #FFFFFF;
  border-color: #E2E8F0;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.05);
}

body.light-theme .actions-kpi-val {
  color: #0F172A;
}

body.light-theme .actions-table-wrapper {
  background: #FFFFFF;
  border-color: #E2E8F0;
  box-shadow: 0 2px 14px rgba(0, 0, 0, 0.05);
}

body.light-theme .actions-table th {
  background: #F8FAFC;
  color: #64748B;
  border-color: #E2E8F0;
}

body.light-theme .actions-table td {
  color: #0F172A;
  border-color: #E2E8F0;
}

body.light-theme .actions-table tr:hover td {
  background: #F8FAFC;
}

body.light-theme .actions-task-name {
  color: #0F172A;
}

body.light-theme .actions-task-desc {
  color: #64748B;
}

body.light-theme .actions-group-header {
  background: #F8FAFC;
  border-color: #E2E8F0;
  color: #0F172A;
}

body.light-theme .actions-dropdown-select {
  background: #FFFFFF;
  border-color: #CBD5E1;
  color: #334155;
}

body.light-theme .actions-view-btn {
  background: #FFFFFF;
  border-color: #CBD5E1;
  color: #64748B;
}

body.light-theme .actions-view-btn:hover {
  background: #F1F5F9;
  color: #0F172A;
}

body.light-theme .actions-view-btn.active {
  background: #0052FF;
  color: #FFFFFF;
  border-color: #0052FF;
}

/* Light Theme: Business Map */
body.light-theme .bmap-overview-bar {
  background: #FFFFFF;
  border-color: #E2E8F0;
}

body.light-theme .bmap-entity-title {
  color: #0F172A;
}

body.light-theme .bmap-section-card {
  background: #FFFFFF;
  border-color: #E2E8F0;
  box-shadow: 0 2px 14px rgba(0, 0, 0, 0.05);
}

body.light-theme .bmap-sec-head h3 {
  color: #0F172A;
}

body.light-theme .bmap-sec-head p {
  color: #64748B;
}

body.light-theme .bmap-prop-card {
  background: #F8FAFC;
  border-color: #E2E8F0;
}

body.light-theme .bmap-prop-label {
  color: #64748B;
}

body.light-theme .bmap-prop-value {
  color: #0F172A;
}

body.light-theme .bmap-competitor-card,
body.light-theme .bmap-keyword-card,
body.light-theme .bmap-product-card,
body.light-theme .bool-query-card {
  background: #FFFFFF;
  border-color: #E2E8F0;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

body.light-theme .bool-query-card:hover {
  border-color: #CBD5E1;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

body.light-theme .bool-syntax-box {
  background: #F8FAFC;
  border-color: #E2E8F0;
  color: #1E293B;
}

body.light-theme .bool-search-lens-tag {
  background: #EEF2FF;
  border-color: #C7D2FE;
  color: #4F46E5;
}

body.light-theme .bool-phrase-token {
  color: #059669;
  background: rgba(5, 150, 105, 0.08);
}

body.light-theme .bool-group-paren {
  color: #64748B;
}

body.light-theme .bool-copy-btn {
  background: #F1F5F9;
  border-color: #CBD5E1;
  color: #475569;
}

body.light-theme .bool-copy-btn:hover {
  background: #E2E8F0;
  color: #0F172A;
}

body.light-theme .bool-source-badge {
  background: #F1F5F9;
  border-color: #E2E8F0;
  color: #475569;
}

body.light-theme .bool-helper-btn {
  background: #F8FAFC;
  border-color: #CBD5E1;
  color: #475569;
}

body.light-theme .bool-title-text {
  color: #0F172A;
}

body.light-theme .bmap-comp-name,
body.light-theme .bmap-kw-name,
body.light-theme .bmap-prod-name {
  color: #0F172A;
}

body.light-theme .bmap-action-btn {
  background: #FFFFFF;
  border-color: #CBD5E1;
  color: #334155;
}

body.light-theme .bmap-action-btn:hover {
  background: #F1F5F9;
  color: #0F172A;
}

/* Light Theme: Events Workspace */
body.light-theme .events-top-bar {
  background: #FFFFFF;
  border-color: #E2E8F0;
}

body.light-theme .event-card-container {
  background: #FFFFFF;
  border-color: #E2E8F0;
  box-shadow: 0 2px 14px rgba(0, 0, 0, 0.05);
}

body.light-theme .event-card-title {
  color: #0F172A;
}

body.light-theme .event-card-desc {
  color: #475569;
}

body.light-theme .events-filter-chip {
  background: #FFFFFF;
  border-color: #E2E8F0;
  color: #64748B;
}

body.light-theme .events-filter-chip:hover {
  background: #F1F5F9;
  color: #0F172A;
}

body.light-theme .events-filter-chip.active {
  background: #0052FF;
  border-color: #0052FF;
  color: #FFFFFF;
}

/* Light Theme: Intelligence Cards & Subtabs */
body.light-theme .intel-card {
  background-color: #FFFFFF;
  border-color: #E2E8F0;
  box-shadow: 0 2px 14px rgba(0, 0, 0, 0.05);
}

body.light-theme .intel-card-title {
  color: #0F172A;
}

body.light-theme .intel-card-subtitle {
  color: #64748B;
}

body.light-theme .intel-nav-bar {
  background-color: #FFFFFF;
  border-color: #E2E8F0;
}

body.light-theme .intel-nav-btn {
  color: #64748B;
  background: transparent;
}

body.light-theme .intel-nav-btn:hover {
  color: #0F172A;
  background: rgba(0, 82, 255, 0.04);
}

body.light-theme .intel-nav-btn.active {
  color: #0052FF;
  background: rgba(0, 82, 255, 0.08);
}

body.light-theme .intel-subnav-btn {
  color: #64748B;
  background: transparent;
  border-color: transparent;
}

body.light-theme .intel-subnav-btn:hover {
  color: #0F172A;
  background: rgba(0, 82, 255, 0.04);
}

body.light-theme .intel-subnav-btn.active {
  color: #0052FF;
  border-color: #0052FF;
  background: rgba(0, 82, 255, 0.08);
}

body.light-theme .brand-subnav-links {
  background: transparent;
  border: none;
}

body.light-theme .brand-subnav-btn:hover,
body.light-theme .market-subnav-btn:hover,
body.light-theme .audience-subnav-btn:hover,
body.light-theme .competitor-subnav-btn:hover,
body.light-theme .content-subnav-btn:hover,
body.light-theme .ads-subnav-btn:hover,
body.light-theme .local-subnav-btn:hover {
  color: #0F172A;
  background: rgba(0, 82, 255, 0.04);
}

/* Light Theme: Search Inputs */
body.light-theme .ai-search-bar-wrap {
  background-color: #FFFFFF;
  border-color: #CBD5E1;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04);
}

body.light-theme .ai-search-bar-wrap input {
  color: #0F172A;
}

body.light-theme .ai-search-bar-wrap input::placeholder {
  color: #94A3B8;
}

body.light-theme .ai-search-bar-wrap .search-sparkle {
  color: #0052FF;
}

/* Light Theme: Modals & Overlays */
body.light-theme .modal-dialog-panel,
body.light-theme .brand-action-modal-card,
body.light-theme .kpi-modal-box,
body.light-theme .bmap-modal-card {
  background: #FFFFFF;
  border-color: #E2E8F0;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.15);
}

body.light-theme .modal-dialog-header,
body.light-theme .brand-action-modal-header {
  border-color: #E2E8F0;
  background: #F8FAFC;
}

body.light-theme .modal-dialog-header h3,
body.light-theme .brand-action-modal-header h3 {
  color: #0F172A;
}

body.light-theme .modal-input,
body.light-theme .modal-select,
body.light-theme .modal-textarea {
  background: #F8FAFC;
  border-color: #CBD5E1;
  color: #0F172A;
}

body.light-theme .modal-input:focus,
body.light-theme .modal-select:focus,
body.light-theme .modal-textarea:focus {
  border-color: #0052FF;
  background: #FFFFFF;
}

body.light-theme .modal-form-label {
  color: #475569;
}

/* Light Theme: Theme Toggle button icon swap */
body.light-theme #themeToggleBtn .dark-icon {
  display: block !important;
}
body.light-theme #themeToggleBtn .light-icon {
  display: none !important;
}
body:not(.light-theme) #themeToggleBtn .dark-icon {
  display: none !important;
}
body:not(.light-theme) #themeToggleBtn .light-icon {
  display: block !important;
}


.home-dim-icon-dot.biz { background: #0052FF; }
.home-dim-icon-dot.rev { background: #10B981; }
.home-dim-icon-dot.brand { background: #8B5CF6; }
.home-dim-icon-dot.acq { background: #06B6D4; }
.home-dim-icon-dot.cus { background: #F59E0B; }
.home-dim-icon-dot.rep { background: #EC4899; }

.home-dim-bar-fill.blue { background: #0052FF; }
.home-dim-bar-fill.green { background: #10B981; }
.home-dim-bar-fill.purple { background: #8B5CF6; }
.home-dim-bar-fill.cyan { background: #06B6D4; }
.home-dim-bar-fill.amber { background: #F59E0B; }
.home-dim-bar-fill.rose { background: #EC4899; }


/* Event Category Badges */
.actions-cat-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 8px;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.3px;
  text-transform: uppercase;
}
.actions-cat-badge.ads { background: rgba(245, 158, 11, 0.12); color: #F59E0B; border: 1px solid rgba(245, 158, 11, 0.25); }
.actions-cat-badge.brand { background: rgba(139, 92, 246, 0.12); color: #8B5CF6; border: 1px solid rgba(139, 92, 246, 0.25); }
.actions-cat-badge.competitor { background: rgba(239, 68, 68, 0.12); color: #EF4444; border: 1px solid rgba(239, 68, 68, 0.25); }
.actions-cat-badge.market { background: rgba(6, 182, 212, 0.12); color: #06B6D4; border: 1px solid rgba(6, 182, 212, 0.25); }
.actions-cat-badge.customer { background: rgba(99, 102, 241, 0.12); color: #6366F1; border: 1px solid rgba(99, 102, 241, 0.25); }
.actions-cat-badge.revenue { background: rgba(16, 185, 129, 0.12); color: #10B981; border: 1px solid rgba(16, 185, 129, 0.25); }
.actions-cat-badge.content { background: rgba(236, 72, 153, 0.12); color: #EC4899; border: 1px solid rgba(236, 72, 153, 0.25); }
.actions-cat-badge.ecommerce, .actions-cat-badge.operations { background: rgba(14, 165, 233, 0.12); color: #0EA5E9; border: 1px solid rgba(14, 165, 233, 0.25); }
.actions-cat-badge.opportunity { background: rgba(234, 88, 12, 0.12); color: #EA580C; border: 1px solid rgba(234, 88, 12, 0.25); }
.actions-cat-badge.reputation { background: rgba(16, 185, 129, 0.12); color: #10B981; border: 1px solid rgba(16, 185, 129, 0.25); }
.actions-cat-badge.audience { background: rgba(59, 130, 246, 0.12); color: #3B82F6; border: 1px solid rgba(59, 130, 246, 0.25); }
.actions-cat-badge.default { background: var(--bg-pill); color: var(--text-secondary); border: 1px solid var(--border-color); }


/* ==========================================================================
   MODERN ACTIONS WORKSPACE STYLES (Cards, Sync, Assignee Headshots & Row Actions)
   ========================================================================== */

/* Sync Telemetry Group */
.actions-sync-group {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--bg-pill);
  padding: 4px 10px 4px 12px;
  border-radius: 99px;
  border: 1px solid var(--border-color);
}

.actions-sync-time {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 11.5px;
  color: var(--text-muted);
  white-space: nowrap;
}

.actions-sync-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #10B981;
  box-shadow: 0 0 6px rgba(16, 185, 129, 0.6);
}

.actions-sync-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: transparent;
  border: none;
  color: var(--accent-primary);
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  padding: 3px 6px;
  border-radius: 6px;
  transition: all var(--transition);
}

.actions-sync-btn:hover {
  background: rgba(0, 82, 255, 0.1);
}

.actions-sync-btn i {
  width: 13px;
  height: 13px;
}

.spin-sync-icon {
  animation: actionsSpin 0.8s cubic-bezier(0.4, 0, 0.2, 1) infinite;
}

@keyframes actionsSpin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

/* Modernized Actions Metric Cards */
.actions-kpi-row {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 14px;
  width: 100%;
}

@media (max-width: 1400px) {
  .actions-kpi-row {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 768px) {
  .actions-kpi-row {
    grid-template-columns: repeat(2, 1fr);
  }
}

.actions-kpi-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 14px;
  padding: 14px 16px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 8px;
  transition: all var(--transition);
  cursor: pointer;
  position: relative;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.actions-kpi-card:hover {
  border-color: var(--accent-primary);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
}

.actions-kpi-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.actions-kpi-icon-box {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.actions-kpi-icon-box i {
  width: 16px;
  height: 16px;
}

.actions-kpi-icon-box.total { background: rgba(0, 82, 255, 0.12); color: #0052FF; }
.actions-kpi-icon-box.assigned { background: rgba(99, 102, 241, 0.12); color: #6366F1; }
.actions-kpi-icon-box.inprogress { background: rgba(245, 158, 11, 0.12); color: #F59E0B; }
.actions-kpi-icon-box.overdue { background: rgba(239, 68, 68, 0.12); color: #EF4444; }
.actions-kpi-icon-box.completed { background: rgba(16, 185, 129, 0.12); color: #10B981; }
.actions-kpi-icon-box.critical { background: rgba(168, 85, 247, 0.12); color: #A855F7; }

.actions-kpi-tag {
  font-size: 9.5px;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 99px;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.actions-kpi-tag.total { background: rgba(0, 82, 255, 0.1); color: #0052FF; }
.actions-kpi-tag.assigned { background: rgba(99, 102, 241, 0.1); color: #6366F1; }
.actions-kpi-tag.inprogress { background: rgba(245, 158, 11, 0.1); color: #F59E0B; }
.actions-kpi-tag.overdue { background: rgba(239, 68, 68, 0.1); color: #EF4444; }
.actions-kpi-tag.completed { background: rgba(16, 185, 129, 0.1); color: #10B981; }
.actions-kpi-tag.critical { background: rgba(168, 85, 247, 0.1); color: #A855F7; }

.actions-kpi-val {
  font-size: 24px;
  font-weight: 800;
  color: var(--text-primary);
  line-height: 1.1;
}

.actions-kpi-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.actions-kpi-subtext {
  font-size: 11px;
  color: var(--text-muted);
  font-weight: 500;
}

/* Assignee Profile Headshots */
.actions-assignee-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
}

.actions-avatar-photo-box {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  overflow: hidden;
  position: relative;
  background: var(--bg-pill);
  flex-shrink: 0;
  border: 1.5px solid var(--border-color);
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.08);
}

.actions-avatar-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.actions-avatar-fallback {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #FFFFFF;
  font-size: 10px;
  font-weight: 700;
}

.actions-assignee-meta {
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.actions-assignee-name {
  font-size: 12.5px;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.2;
}

.actions-assignee-role {
  font-size: 10.5px;
  color: var(--text-muted);
  line-height: 1.2;
}

/* Row Action Buttons */
.actions-row-btn-group {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.actions-row-action-btn {
  width: 28px;
  height: 28px;
  border-radius: 6px;
  border: 1px solid var(--border-color);
  background: var(--bg-card);
  color: var(--text-secondary);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all var(--transition);
}

.actions-row-action-btn:hover {
  background: var(--bg-pill-hover);
  color: var(--text-primary);
  border-color: var(--border-light);
}

.actions-row-action-btn.edit:hover {
  color: var(--accent-primary);
  border-color: var(--accent-primary);
  background: rgba(0, 82, 255, 0.08);
}

.actions-row-action-btn.delete:hover {
  color: #EF4444;
  border-color: #EF4444;
  background: rgba(239, 68, 68, 0.08);
}

.actions-row-action-btn i {
  width: 13px;
  height: 13px;
}

/* Light Theme Overrides */
body.light-theme .actions-sync-group {
  background: #F1F5F9;
  border-color: #E2E8F0;
}

body.light-theme .actions-kpi-card {
  background: #FFFFFF;
  border-color: #E2E8F0;
  box-shadow: 0 1px 6px rgba(0, 0, 0, 0.04);
}

body.light-theme .actions-kpi-card:hover {
  border-color: #0052FF;
  box-shadow: 0 6px 18px rgba(0, 82, 255, 0.08);
}

body.light-theme .actions-row-action-btn {
  background: #FFFFFF;
  border-color: #E2E8F0;
}

body.light-theme .actions-row-action-btn:hover {
  background: #F8FAFC;
}


/* Assignees Avatar Stack in Table */
.actions-avatar-stack-btn {
  display: inline-flex;
  align-items: center;
  background: transparent;
  border: none;
  padding: 2px 4px;
  cursor: pointer;
  border-radius: 99px;
  transition: all var(--transition);
  position: relative;
}

.actions-avatar-stack-btn:hover {
  background: var(--bg-pill-hover);
}

.actions-stack-item {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  overflow: hidden;
  border: 2px solid var(--bg-card);
  margin-left: -9px;
  background: var(--bg-pill);
  position: relative;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.12);
  transition: transform 0.15s ease;
}

.actions-stack-item:first-child {
  margin-left: 0;
}

.actions-avatar-stack-btn:hover .actions-stack-item {
  transform: scale(1.06);
}

.actions-stack-more {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--bg-pill);
  border: 2px solid var(--bg-card);
  margin-left: -9px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 700;
  color: var(--text-primary);
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.12);
}

/* Floating Assignees Popover */
.actions-assignee-popover {
  position: fixed;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 12px 14px;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.28), 0 4px 12px rgba(0, 0, 0, 0.12);
  z-index: 10000;
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-width: 250px;
  animation: popoverFadeIn 0.15s ease-out;
}

@keyframes popoverFadeIn {
  from { opacity: 0; transform: translateY(-4px); }
  to { opacity: 1; transform: translateY(0); }
}

.actions-popover-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 6px;
}

.actions-popover-title {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--text-muted);
}

.actions-popover-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.actions-popover-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 6px 8px;
  border-radius: 8px;
  transition: background 0.15s ease;
}

.actions-popover-item:hover {
  background: var(--bg-pill);
}

.actions-popover-avatar-box {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  overflow: hidden;
  border: 1.5px solid var(--border-color);
  flex-shrink: 0;
  background: var(--bg-shell);
}

.actions-popover-avatar-box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.actions-popover-name {
  font-size: 12.5px;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.2;
}

.actions-popover-role {
  font-size: 11px;
  color: var(--text-muted);
  line-height: 1.2;
}

body.light-theme .actions-assignee-popover {
  background: #FFFFFF;
  border-color: #E2E8F0;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1), 0 4px 10px rgba(0, 0, 0, 0.05);
}

body.light-theme .actions-popover-item:hover {
  background: #F8FAFC;
}


/* Hover Tooltip for Assignee Avatars */
.actions-stack-item {
  position: relative;
}

.actions-stack-item::after {
  content: attr(data-name);
  position: absolute;
  bottom: calc(100% + 6px);
  left: 50%;
  transform: translateX(-50%) scale(0.85);
  background: #0F172A;
  color: #FFFFFF;
  font-size: 11px;
  font-weight: 600;
  padding: 3px 8px;
  border-radius: 6px;
  white-space: nowrap;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.15s ease, transform 0.15s ease;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  z-index: 1000;
}

.actions-stack-item::before {
  content: '';
  position: absolute;
  bottom: calc(100% + 1px);
  left: 50%;
  transform: translateX(-50%) scale(0.85);
  border-width: 5px 5px 0 5px;
  border-style: solid;
  border-color: #0F172A transparent transparent transparent;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.15s ease, transform 0.15s ease;
  z-index: 1000;
}

.actions-stack-item:hover::after,
.actions-stack-item:hover::before {
  opacity: 1;
  transform: translateX(-50%) scale(1);
}

body.light-theme .actions-stack-item::after {
  background: #1E293B;
  color: #FFFFFF;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

body.light-theme .actions-stack-item::before {
  border-color: #1E293B transparent transparent transparent;
}


/* Actions Metric Cards (Title on Top, Score, Progress Bar) */
.actions-kpi-row {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 14px;
  width: 100%;
}

@media (max-width: 1400px) {
  .actions-kpi-row {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 768px) {
  .actions-kpi-row {
    grid-template-columns: repeat(2, 1fr);
  }
}

.actions-kpi-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 12px 14px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 8px;
  transition: all var(--transition);
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.actions-kpi-card:hover {
  border-color: var(--accent-primary);
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.08);
}

.actions-kpi-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.actions-kpi-title {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 700;
  color: var(--text-primary);
}

.actions-kpi-pill {
  font-size: 9.5px;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 4px;
  text-transform: uppercase;
  letter-spacing: 0.4px;
}

.actions-kpi-pill.total { background: rgba(0, 82, 255, 0.12); color: #0052FF; }
.actions-kpi-pill.assigned { background: rgba(99, 102, 241, 0.12); color: #6366F1; }
.actions-kpi-pill.inprogress { background: rgba(245, 158, 11, 0.12); color: #F59E0B; }
.actions-kpi-pill.overdue { background: rgba(239, 68, 68, 0.12); color: #EF4444; }
.actions-kpi-pill.completed { background: rgba(16, 185, 129, 0.12); color: #10B981; }
.actions-kpi-pill.critical { background: rgba(168, 85, 247, 0.12); color: #A855F7; }

.actions-kpi-score-row {
  display: flex;
  align-items: baseline;
}

.actions-kpi-score-val {
  font-size: 22px;
  font-weight: 800;
  color: var(--text-primary);
  line-height: 1;
}

.actions-kpi-bar-track {
  width: 100%;
  height: 4px;
  background: var(--bg-pill);
  border-radius: 99px;
  overflow: hidden;
}

.actions-kpi-bar-fill {
  height: 100%;
  border-radius: 99px;
  transition: width 0.3s ease;
}

.actions-kpi-bar-fill.blue { background: #0052FF; }
.actions-kpi-bar-fill.indigo { background: #6366F1; }
.actions-kpi-bar-fill.amber { background: #F59E0B; }
.actions-kpi-bar-fill.rose { background: #EF4444; }
.actions-kpi-bar-fill.green { background: #10B981; }
.actions-kpi-bar-fill.purple { background: #A855F7; }

/* ==========================================================================
   BUSINESS MAP WORKSPACE STYLES (Cards with Outlines & Shadowed Contrasting List Items)
   ========================================================================== */

.bmap-container {
  display: flex;
  flex-direction: column;
  gap: 16px;
  width: 100%;
}

.bmap-header-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 14px;
  padding: 16px 20px;
  gap: 16px;
  flex-wrap: wrap;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.04);
}

.bmap-header-left {
  display: flex;
  align-items: center;
  gap: 14px;
}

.bmap-icon-badge {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: rgba(0, 82, 255, 0.12);
  color: var(--accent-primary, #0052FF);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 2px 6px rgba(0, 82, 255, 0.15);
}

.bmap-icon-badge svg,
.bmap-icon-badge i {
  width: 20px;
  height: 20px;
}

.bmap-title {
  font-size: 16px;
  font-weight: 700;
  color: var(--text-primary);
  margin: 0 0 4px 0;
  letter-spacing: -0.2px;
}

.bmap-subtitle {
  font-size: 12.5px;
  color: var(--text-muted);
  margin: 0;
  line-height: 1.4;
}

.bmap-crawl-all-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: linear-gradient(135deg, var(--accent-primary, #0052FF) 0%, #3B82F6 100%);
  color: #FFFFFF;
  border: none;
  border-radius: 10px;
  padding: 8px 16px;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 3px 12px rgba(0, 82, 255, 0.3);
  transition: all var(--transition);
}

.bmap-crawl-all-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 5px 18px rgba(0, 82, 255, 0.45);
}

.bmap-crawl-all-btn i,
.bmap-crawl-all-btn svg {
  width: 15px;
  height: 15px;
}

/* ── Section Cards (Outer Card with Outline) ───────────────────────────── */
.bmap-section-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 14px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  transition: all var(--transition);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.04);
}

.bmap-section-card:hover {
  border-color: var(--border-light, rgba(255, 255, 255, 0.15));
}

.bmap-section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 14px;
  gap: 12px;
  flex-wrap: wrap;
}

.bmap-sec-title-wrap {
  display: flex;
  align-items: center;
  gap: 12px;
}

.bmap-sec-icon-box {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
}

.bmap-sec-icon-box svg,
.bmap-sec-icon-box i {
  width: 18px;
  height: 18px;
}

.bmap-sec-heading {
  font-size: 15px;
  font-weight: 700;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 8px;
  letter-spacing: -0.2px;
}

.bmap-sec-sub {
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 2px;
}

.bmap-count-badge {
  font-size: 11px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 9999px;
  background: var(--bg-pill, rgba(255, 255, 255, 0.08));
  color: var(--text-secondary);
  border: 1px solid var(--border-color);
}

.bmap-sec-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.bmap-crawl-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11.5px;
  font-weight: 600;
  color: var(--text-secondary);
  background: var(--bg-pill, rgba(255, 255, 255, 0.05));
  border: 1px solid var(--border-color);
  padding: 5px 11px;
  border-radius: 8px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

.bmap-pulse-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #10B981;
  box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.6);
  animation: bmapPulse 2s infinite;
}

@keyframes bmapPulse {
  0% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.6); }
  70% { box-shadow: 0 0 0 6px rgba(16, 185, 129, 0); }
  100% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}

.bmap-freq-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--bg-pill, rgba(255, 255, 255, 0.05));
  border: 1px solid var(--border-color);
  color: var(--text-secondary);
  padding: 5px 10px;
  border-radius: 8px;
  font-size: 11.5px;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

.bmap-freq-btn:hover {
  border-color: var(--accent-primary);
  color: var(--text-primary);
  background: var(--bg-pill-hover);
}

.bmap-freq-btn svg,
.bmap-freq-btn i {
  width: 13px;
  height: 13px;
  color: var(--accent-primary);
}

.bmap-action-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  border: 1px solid var(--border-color);
  background: var(--bg-pill, rgba(255, 255, 255, 0.05));
  color: var(--text-primary);
  transition: all var(--transition);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

.bmap-action-btn:hover {
  background: var(--bg-pill-hover);
  border-color: var(--border-light);
  transform: translateY(-1px);
}

.bmap-action-btn.primary {
  background: var(--accent-primary, #0052FF);
  border-color: var(--accent-primary, #0052FF);
  color: #FFFFFF;
  box-shadow: 0 2px 8px rgba(0, 82, 255, 0.3);
}

.bmap-action-btn.primary:hover {
  background: #0045D8;
  box-shadow: 0 4px 12px rgba(0, 82, 255, 0.45);
}

.bmap-action-btn svg,
.bmap-action-btn i {
  width: 13px;
  height: 13px;
}

/* ── Profile Grid (Contrasting Property Cards with Shadow) ───────────────── */
.bmap-profile-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}

@media (max-width: 768px) {
  .bmap-profile-grid {
    grid-template-columns: 1fr;
  }
}

.bmap-prop-card {
  background: var(--bg-pill, #181A20);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 14px 16px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12), 0 1px 3px rgba(0, 0, 0, 0.06);
  transition: all var(--transition);
}

.bmap-prop-card:hover {
  border-color: var(--accent-primary);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0, 82, 255, 0.12);
}

.bmap-prop-card.full-width {
  grid-column: 1 / -1;
}

.bmap-prop-label {
  font-size: 12px;
  font-weight: 500;
  color: var(--text-muted);
  text-transform: none;
  letter-spacing: normal;
  display: flex;
  align-items: center;
  gap: 6px;
}

.bmap-prop-label svg,
.bmap-prop-label i {
  width: 13px;
  height: 13px;
}

.bmap-prop-value {
  font-size: 13.5px;
  font-weight: 500;
  color: var(--text-primary);
  line-height: 1.5;
}

/* ── Dynamic Item Lists (Each Item has Contrasting Color & Subtle Shadow) ─── */
.bmap-items-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.bmap-item-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--bg-pill, #181A20);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 14px 18px;
  gap: 16px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12), 0 1px 3px rgba(0, 0, 0, 0.06);
  transition: all var(--transition);
}

.bmap-item-card:hover {
  border-color: var(--accent-primary);
  background: var(--bg-pill-hover, #1E2129);
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(0, 82, 255, 0.14);
}

.bmap-item-left {
  display: flex;
  align-items: center;
  gap: 14px;
  flex: 1;
  min-width: 0;
}

.bmap-item-logo {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 800;
  color: var(--accent-primary);
  flex-shrink: 0;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}

.bmap-item-info {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}

.bmap-item-title-row {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.bmap-item-name {
  font-size: 13.5px;
  font-weight: 700;
  color: var(--text-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.bmap-item-link {
  font-size: 11.5px;
  color: var(--accent-primary);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 3px;
  font-weight: 600;
}

.bmap-item-link:hover {
  text-decoration: underline;
}

.bmap-item-link svg {
  width: 10px;
  height: 10px;
}

.bmap-item-desc {
  font-size: 12px;
  color: var(--text-secondary);
  line-height: 1.4;
}

.bmap-item-metrics {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 2px;
}

.bmap-metric-segment {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 11.5px;
  color: var(--text-secondary);
  background: var(--bg-card);
  padding: 3px 8px;
  border-radius: 6px;
  border: 1px solid var(--border-color);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.bmap-metric-label {
  color: var(--text-muted);
  font-size: 11px;
}

.bmap-metric-val {
  font-weight: 700;
  color: var(--text-primary);
}

.bmap-item-right {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.bmap-tag-pill {
  font-size: 11px;
  font-weight: 700;
  padding: 3px 9px;
  border-radius: 6px;
  letter-spacing: 0.2px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
}

.bmap-tag-pill.critical {
  background: rgba(239, 68, 68, 0.15);
  color: #EF4444;
  border: 1px solid rgba(239, 68, 68, 0.3);
}

.bmap-tag-pill.high {
  background: rgba(245, 158, 11, 0.15);
  color: #F59E0B;
  border: 1px solid rgba(245, 158, 11, 0.3);
}

.bmap-tag-pill.moderate {
  background: rgba(59, 130, 246, 0.15);
  color: #3B82F6;
  border: 1px solid rgba(59, 130, 246, 0.3);
}

.bmap-tag-pill.success {
  background: rgba(16, 185, 129, 0.15);
  color: #10B981;
  border: 1px solid rgba(16, 185, 129, 0.3);
}

.bmap-row-actions {
  display: flex;
  align-items: center;
  gap: 5px;
}

.bmap-icon-action-btn {
  width: 30px;
  height: 30px;
  border-radius: 7px;
  border: 1px solid var(--border-color);
  background: var(--bg-card);
  color: var(--text-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all var(--transition);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
}

.bmap-icon-action-btn:hover {
  color: var(--text-primary);
  border-color: var(--border-light);
  transform: translateY(-1px);
}

.bmap-icon-action-btn.delete:hover {
  color: #EF4444;
  border-color: #EF4444;
  background: rgba(239, 68, 68, 0.12);
}

.bmap-icon-action-btn svg,
.bmap-icon-action-btn i {
  width: 13px;
  height: 13px;
}

/* Light Theme: Business Map (Contrasting Cards & Shadowed List Items) */
body.light-theme .bmap-header-bar,
body.light-theme .bmap-section-card {
  background: #FFFFFF;
  border-color: #E2E8F0;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04);
}

body.light-theme .bmap-prop-card,
body.light-theme .bmap-item-card,
body.light-theme .bmap-profile-hero {
  background: #F8FAFC;
  border-color: #E2E8F0;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.04), 0 1px 2px rgba(0, 0, 0, 0.02);
}

body.light-theme .bmap-item-card:hover,
body.light-theme .bmap-prop-card:hover,
body.light-theme .bmap-profile-hero:hover {
  background: #F1F5F9;
  border-color: #0052FF;
  box-shadow: 0 6px 16px rgba(0, 82, 255, 0.08);
}

body.light-theme .bmap-profile-logo-wrap,
body.light-theme .bmap-item-logo,
body.light-theme .bmap-metric-segment,
body.light-theme .bmap-icon-action-btn {
  background: #FFFFFF;
  border-color: #E2E8F0;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

body.light-theme .bmap-prop-card.bmap-prop-highlight {
  background: #F0F7FF;
  border-left: 3px solid #0052FF;
}

/* ==========================================================================
   COMPETITOR FAVICON LOGOS & ITEM STYLES
   ========================================================================== */
.bmap-comp-logo {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: #FFFFFF !important;
  border: 1.5px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  overflow: hidden;
  padding: 3px;
  box-sizing: border-box;
  transition: all var(--transition);
}

.bmap-comp-logo:hover {
  transform: scale(1.05);
}

.bmap-comp-favicon-img {
  width: 24px;
  height: 24px;
  object-fit: contain;
  filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.08));
}

.bmap-comp-logo-fallback {
  width: 100%;
  height: 100%;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 800;
  color: #FFFFFF;
  letter-spacing: 0.5px;
}

body.light-theme .bmap-comp-logo {
  background: #FFFFFF !important;
}




/* Paged Ad Grid: 2 Rows x 5 Columns on Desktop */
.ad-grid-paged {
  display: grid;
  grid-template-columns: repeat(5, 1fr) !important;
  gap: 14px;
}
@media (max-width: 1400px) {
  .ad-grid-paged {
    grid-template-columns: repeat(3, 1fr) !important;
  }
}
@media (max-width: 900px) {
  .ad-grid-paged {
    grid-template-columns: repeat(2, 1fr) !important;
  }
}
@media (max-width: 600px) {
  .ad-grid-paged {
    grid-template-columns: 1fr !important;
  }
}
.ad-page-nav-btn {
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 4px 10px;
  font-size: 11px;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 4px;
  border-radius: 4px;
  transition: all 0.2s;
}
.ad-page-nav-btn:hover:not(:disabled) {
  background: var(--bg-card-hover);
}
.ad-page-nav-btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}


/* Highly Engaged Industry Ads: Themed Metric Tiles & Teardown Boxes with Snapshot Shadows */
.ad-metric-tile {
  background: var(--bg-input);
  border: 1px solid var(--border-color);
  border-radius: 6px;
  padding: 6px 8px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.12);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

body.light-theme .ad-metric-tile {
  background: #FFFFFF;
  border-color: #E2E8F0;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.ad-metric-tile-label {
  font-size: 7.5px;
  color: var(--text-muted);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.3px;
  display: block;
  margin-bottom: 2px;
}

.ad-metric-tile-value {
  font-size: 11px;
  font-weight: 800;
  color: var(--text-primary);
  line-height: 1.2;
}

.ad-teardown-box {
  border: 1px solid var(--border-color);
  border-radius: 6px;
  padding: 6px 8px;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.12);
  margin-bottom: 6px;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.ad-teardown-box:last-child {
  margin-bottom: 0;
}

body.light-theme .ad-teardown-box {
  border-color: #E2E8F0;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

body.light-theme .ad-teardown-box.teardown-ctr {
  border-left: 3px solid #10B981 !important;
}

body.light-theme .ad-teardown-box.teardown-struct {
  border-left: 3px solid #3B82F6 !important;
}

body.light-theme .ad-teardown-box.teardown-viral {
  border-left: 3px solid #EC4899 !important;
}

/* Why High CTR - Green Psychological Angle Style */
.ad-teardown-box.teardown-ctr {
  background: rgba(16, 185, 129, 0.06);
  border-left: 3px solid #10B981;
}
body.light-theme .ad-teardown-box.teardown-ctr {
  background: rgba(16, 185, 129, 0.08);
}
.ad-teardown-box.teardown-ctr .ad-teardown-title {
  color: #10B981;
}
.ad-teardown-box.teardown-ctr .ad-teardown-title i,
.ad-teardown-box.teardown-ctr .ad-teardown-title svg {
  color: #10B981;
}

/* Ad Structure - Blue Psychological Angle Style */
.ad-teardown-box.teardown-struct {
  background: rgba(59, 130, 246, 0.06);
  border-left: 3px solid #3B82F6;
}
body.light-theme .ad-teardown-box.teardown-struct {
  background: rgba(59, 130, 246, 0.08);
}
.ad-teardown-box.teardown-struct .ad-teardown-title {
  color: #3B82F6;
}
.ad-teardown-box.teardown-struct .ad-teardown-title i,
.ad-teardown-box.teardown-struct .ad-teardown-title svg {
  color: #3B82F6;
}

/* Viral Catalyst - Pink Psychological Angle Style */
.ad-teardown-box.teardown-viral {
  background: rgba(236, 72, 153, 0.06);
  border-left: 3px solid #EC4899;
}
body.light-theme .ad-teardown-box.teardown-viral {
  background: rgba(236, 72, 153, 0.08);
}
.ad-teardown-box.teardown-viral .ad-teardown-title {
  color: #EC4899;
}
.ad-teardown-box.teardown-viral .ad-teardown-title i,
.ad-teardown-box.teardown-viral .ad-teardown-title svg {
  color: #EC4899;
}

.ad-teardown-title {
  font-size: 8px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.4px;
  display: flex;
  align-items: center;
  gap: 4px;
  margin-bottom: 2px;
}

.ad-teardown-desc {
  font-size: 8.5px;
  color: var(--text-primary);
  line-height: 1.35;
}

/* ==========================================================================
   What's Trending - Rich Media & Video Viewports
   ========================================================================== */
.trending-media-frame {
  position: relative;
  width: 100%;
  border-radius: 8px;
  overflow: hidden;
  background: #090d16;
  border: 1px solid var(--border-color);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.25);
  margin-bottom: 12px;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.trending-media-frame:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
  border-color: rgba(99, 102, 241, 0.45);
}
.trending-media-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease, filter 0.3s ease;
}
.trending-media-frame:hover .trending-media-img {
  transform: scale(1.03);
}

/* Play button overlay */
.trending-play-overlay {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: rgba(15, 23, 42, 0.75);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  cursor: pointer;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.4);
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 2;
}
.trending-media-frame:hover .trending-play-overlay {
  background: var(--accent-primary, #6366f1);
  border-color: rgba(255, 255, 255, 0.8);
  transform: translate(-50%, -50%) scale(1.12);
  box-shadow: 0 0 20px rgba(99, 102, 241, 0.6);
}

/* Floating top badges */
.trending-top-badge {
  position: absolute;
  top: 7px;
  left: 7px;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  padding: 3px 8px;
  border-radius: 4px;
  font-size: 8px;
  font-weight: 800;
  color: #fff;
  display: flex;
  align-items: center;
  gap: 4px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  z-index: 2;
}
.trending-platform-tag {
  position: absolute;
  top: 7px;
  right: 7px;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  padding: 3px 8px;
  border-radius: 4px;
  font-size: 8px;
  font-weight: 700;
  color: #e2e8f0;
  border: 1px solid rgba(255, 255, 255, 0.12);
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 4px;
}

/* Floating bottom badges */
.trending-duration-pill {
  position: absolute;
  bottom: 7px;
  right: 7px;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 8px;
  font-weight: 700;
  color: #f8fafc;
  font-family: var(--font-mono, monospace);
  border: 1px solid rgba(255, 255, 255, 0.15);
  z-index: 2;
}
.trending-views-badge {
  position: absolute;
  bottom: 7px;
  left: 7px;
  background: rgba(0, 0, 0, 0.82);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  padding: 2px 7px;
  border-radius: 4px;
  font-size: 8px;
  font-weight: 800;
  color: #10B981;
  display: flex;
  align-items: center;
  gap: 3px;
  border: 1px solid rgba(16, 185, 129, 0.25);
  z-index: 2;
}

/* Progress scrub bar */
.trending-progress-bar {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: rgba(255, 255, 255, 0.15);
  z-index: 2;
}
.trending-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, #EC4899, #8B5CF6, #3B82F6);
  border-radius: 0 2px 2px 0;
}

