/* body {
  color: #929292;
  margin-top: 5rem;
  background-color: rgb(33, 33, 33);
  position: relative;
  min-height: 100vh;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  background: url('animation.gif') center/cover no-repeat;
  opacity: 0;
  transition: opacity 1.5s ease-in-out;
  z-index: -1;
}

body.bg-loaded::before {
  opacity: 1;
}

body > * {
  position: relative;
  z-index: 0;
} */
/* Base body style */

/* Chrome, Safari, Edge */

.dropdown-menu {
  display: block !important; /* override bootstrap */
  background-color: transparent;
  border: none;
  border-radius: 10px;
  padding: 7px 0;
  min-width: 120px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(0);
  pointer-events: none;
  transition: opacity 0.25s ease-out;
  right: 0;
  left: auto;
}
.dropdown-menu {
  isolation: isolate;
}
.dropdown-menu::before {
  content: '';
  position: absolute;
  inset: 0;
  background-color: rgba(25, 57, 76, 0.55);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(12px);
  border-radius: 10px;
  border: 0.5px solid rgba(255, 255, 255, 0.12);
  z-index: 0;
}
.dropdown-menu > * {
  position: relative;
  z-index: 1;
}

.dropdown-menu.show {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.dropdown-item {
  color: #ccc;
  padding: 4px 20px;
  font-size: 10px;
  transition: background 0.3s ease;
}


/* Hover effect */
.dropdown-item:hover {
  background-color: rgba(255, 255, 255, 0.1);
  color: #ccc;
}

/* make parent item positionable */
.dropdown-submenu {
  position: relative;
}

.submenu, .small-submenu {
  position: absolute;
  top: 0;
  left: 100%;
  z-index: 1050;
  background-color: transparent;
  border: none;
  border-radius: 1px;
  opacity: 0;
  visibility: hidden;
  transform: translateX(-10px);
  pointer-events: none;
  transition: opacity 0.3s ease-out, transform 0.3s ease-out;
}
.submenu, .small-submenu {
  background-color: transparent;
  border-radius: 10px;
  isolation: isolate;
}
.submenu::before, .small-submenu::before {
  content: '';
  position: absolute;
  inset: 0;
  background-color: rgba(25, 57, 76, 0.55);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  border-radius: 10px;
  border: 0.5px solid rgba(255, 255, 255, 0.12);
  z-index: 0;
}
.submenu > *, .small-submenu > * {
  position: relative;
  z-index: 1;
}

.submenu {
  padding: 7px 0;
  border-radius: 10px;
  min-width: 150px;
}

.small-submenu {
  padding: 2px 0;
  border-radius: 2px;
  min-width: 75px;
}

.small-submenu > .dropdown-item {
  font-size: 9px;
}

/* Nested submenu (third level) */
.small-submenu .dropdown-submenu-nested {
  position: relative;
}
/* 2nd-level tiny-submenu: use ::before so children can blur */
.small-submenu .dropdown-submenu-nested > .tiny-submenu {
  position: absolute;
  top: 0;
  left: 100%;
  z-index: 1051;
  background-color: transparent;
  border: none;
  border-radius: 10px;
  padding: 2px 0;
  min-width: 95px;
  opacity: 0;
  visibility: hidden;
  transform: translateX(-10px);
  pointer-events: none;
  transition: opacity 0.3s ease-out, transform 0.3s ease-out;
  isolation: isolate;
}
.small-submenu .dropdown-submenu-nested > .tiny-submenu::before {
  content: '';
  position: absolute;
  inset: 0;
  background-color: rgba(25, 57, 76, 0.55);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  border-radius: 10px;
  border: 0.5px solid rgba(255, 255, 255, 0.12);
  z-index: 0;
}
.small-submenu .dropdown-submenu-nested > .tiny-submenu > * {
  position: relative;
  z-index: 1;
}
.small-submenu .dropdown-submenu-nested:hover > .tiny-submenu {
  opacity: 1;
  visibility: visible;
  transform: translateX(0);
  pointer-events: auto;
}
/* 3rd-level tiny-submenu: direct backdrop-filter works now since parent uses ::before */
.tiny-submenu .dropdown-submenu-nested {
  position: relative;
}
.tiny-submenu .dropdown-submenu-nested > .tiny-submenu {
  position: absolute;
  top: 0;
  left: 100%;
  z-index: 1052;
  background-color: rgba(25, 57, 76, 0.55);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  border: 0.5px solid rgba(255, 255, 255, 0.12);
  border-radius: 10px;
  padding: 2px 0;
  min-width: 95px;
  opacity: 0;
  visibility: hidden;
  transform: translateX(-10px);
  pointer-events: none;
  transition: opacity 0.3s ease-out, transform 0.3s ease-out;
}
.tiny-submenu .dropdown-submenu-nested:hover > .tiny-submenu {
  opacity: 1;
  visibility: visible;
  transform: translateX(0);
  pointer-events: auto;
}
.tiny-submenu > .dropdown-item {
  font-size: 9px;
}
.small-submenu .dropdown-submenu-nested > .dropdown-item {
  font-size: 9px;
  cursor: pointer;
}

/* show on hover */
.dropdown-submenu:hover .submenu,  .dropdown-submenu:hover .small-submenu {
  opacity: 1;
  visibility: visible;
  transform: translateX(0);
  pointer-events: auto;
}


::selection {
  background: rgba(45, 113, 153, 0.1);
  border: solid;
  border-radius: 20px;
  background-size: 200% 200%;
  color: #539ea2ed;
  text-shadow: 0 0 5px rgba(0,0,0,0.3);
  animation: shine 1s linear infinite;
}

hr {
  border: none;
  border-top: 1px solid #aeaeae;
  margin-top: 4px;
}

.custom-link {
  color: #4693c9ed;
  text-decoration: underline;
  cursor: pointer;
}

.custom-link:hover {
  color: #306489;
}

.log-desc {
  font-size: clamp(10px, 1vw, 13px);
  margin-right: 4px;
}

/* Bot name link in detection logs */
.log-bot-link {
  color: rgba(100, 200, 255, 0.85) !important;
  text-decoration: none;
  font-weight: 600;
  font-style: italic;
  padding: 1px 6px;
  margin-right: 6px;
  border-radius: 4px;
  background: rgba(100, 200, 255, 0.06);
  border: 1px solid rgba(100, 200, 255, 0.1);
  transition: all 0.2s ease;
}
.log-bot-link:hover {
  color: rgba(70, 160, 210, 1) !important;
  background: rgba(60, 140, 200, 0.15);
  border-color: rgba(60, 140, 200, 0.3);
  text-decoration: none;
  box-shadow: 0 1px 6px rgba(60, 140, 200, 0.15);
}
/* Platform link in detection logs */
.log-plat-link {
  color: rgba(255, 255, 255, 0.55) !important;
  text-decoration: none;
  font-weight: 600;
  padding: 1px 8px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  transition: all 0.2s ease;
  font-size: 0.82em;
}
.log-plat-link:hover {
  color: rgba(200, 210, 220, 0.9) !important;
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.12);
  text-decoration: none;
  box-shadow: 0 1px 6px rgba(255, 255, 255, 0.05);
}

.log-text {
  margin-top: 8px;
  margin-bottom: 8px;
  border: solid;
  border-color: rgba(0, 58, 88, 0.6);
  padding: clamp(6px, 0.8vw, 10px);
  border-width: 1px;
  border-radius: 20px;
  display: block;
  background-color: rgba(0, 41, 62, 0.6);
  word-break: break-word;
  overflow-wrap: break-word;
  max-width: 100%;
  font-size: clamp(11px, 1vw, 14px);
}

/* Firefox */
::-moz-selection {
  background: linear-gradient(90deg, #ff6f61, #ffcc00, #ff6f61);
  color: #04f2ff;
}

html, body, html * {
  -webkit-user-select: none; /* Safari, Chrome, newer */
  -moz-user-select: none;    /* old Firefox */
  -ms-user-select: none;     /* IE/Edge */
  user-select: none !important;
}

.allow-select,
.allow-select * {
  -webkit-user-select: text !important;
  -moz-user-select: text !important;
  -ms-user-select: text !important;
  user-select: text !important;
}

input, textarea, select, button {
  -webkit-user-select: text !important;
  -moz-user-select: text !important;
  -ms-user-select: text !important;
  user-select: text !important;
}




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


/* Start hidden above the page */
#navbar {
  user-select: none;
  transform: translateY(-100%);
  opacity: 0;
  transition: transform 0.7s ease-out, opacity 0.7s ease-out;
}

/* When we add the "show" class, it slides down */
#navbar.show {
  transform: translateY(0);
  opacity: 1;
}

.specs-section {
  cursor: default;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 20px;
  font-family: 'Courier New', monospace;
  margin-right: 15px;
  position: relative;
  top: 2px;
  transition: opacity 0.35s ease, transform 0.35s ease;
  transform-origin: left center;
}
#metrics-toggle {
  transition: color 0.2s ease, background 0.2s ease;
}
#metrics-toggle:hover {
  color: rgba(100, 180, 255, 0.9) !important;
  background: rgba(100, 180, 255, 0.06);
}

.metric {
  display: flex;
  flex-direction: column; /* stack label above value */
  align-items: center;
  width: 30px;
}

.metric-label {
  text-align: center;
  font-size: 9px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.5);
}

.metric-value {
  text-align: center;
  font-weight: 800;
  font-size: 10px;
  text-shadow: 
    0 0 5px rgba(255,255,255,0.5), 
    0 0 10px rgba(255,255,255,0.3); /* glow */
  font-variant-numeric: tabular-nums; /* fixed-width digits */
  white-space: nowrap;
}

.metric-cpu {
    color: rgba(168, 255, 254, 0.8);
}

.metric-ram {
    color: rgba(250, 250, 250, 0.8);
}

.metric-disk {
    color: rgba(168, 194, 255, 0.8);
}

.metric-net {
    color: rgba(185, 168, 255, 0.8);
}

.metric-storage {
    color: rgba(162, 253, 172, 0.8);
}
.metric-media {
    color: rgba(255, 200, 100, 0.8);
}

/* .specs-section {
  display: flex;
  justify-content: center;
  width: 100%;
  font-family: 'Courier New', monospace;
}

.specs-text {
  font-family: 'Courier New', monospace; 
  font-variant-numeric: tabular-nums; 
  text-align: center;
  white-space: nowrap;
  display: inline-block;
  font-weight: 600;
  font-size: 20px;
  text-shadow: 0 0 3px white;
  color: rgba(255, 255, 255, 0.5);
} */

body {
  color: #929292;
  margin-top: 5rem;
  position: relative;
  min-height: 100vh;
  min-width: 1000px;
  background: url('animation-first-frame.png') center/cover no-repeat;
  overflow-y: scroll;
  overflow-x: hidden;
}

.notification {
  background: rgba(25, 57, 76, 0.55);
  backdrop-filter: blur(30px);
  -webkit-backdrop-filter: blur(30px);
  font-size: 14px;
  text-align: center;
  border-radius: 10px;
  padding: 1rem 1.5rem;
  margin: 1rem auto;
  width: 60%;
  max-width: 250px;
  font-weight: 500;
  box-shadow: 0 4px 10px rgba(0,0,0,0.2);
  border: none;

  /* initial state. */
  opacity: 0;
  transform: translateY(10px);

  /* fade in, stay visible, then fade out. */
  animation:
    fadeIn 0.4s ease forwards,
    fadeOut 0.4s ease forwards 4s;

  will-change: opacity, transform;
}

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

@keyframes fadeOut {
  to {
    opacity: 0;
    transform: translateY(10px);
  }
}

/* .fade {
  opacity: 1;
  transition: opacity 1s ease;
} */

.hidden {
  opacity: 0;
}

#activityScroll article {
  transition: opacity 0.4s ease, transform 0.4s ease;
}
article.hidden {
  opacity: 0;
  transform: scale(0.97) translateY(-5px);
}

.fade, .fade-in {
  opacity: 1;
  transform: translateY(0);
  /* background: rgba(32, 40, 49, 0.5); translucent background */
  /* backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px); */
  border-radius: 15px;
  /* color: #6a7d94; */
  will-change: opacity, transform; /* smoother performance */
}

.fade.hidden, .fade-in.hidden {
  opacity: 0;
}

.fade.hidden {
  transition: opacity 1s ease, transform 1s ease;
}

.fade {
  transition: opacity 1s ease, transform 1s ease;
}

.fade-in { 
  transition: opacity 0.9s ease, transform 0.9s ease;
}


.notification-success, .notification-info, .notification-warning, .notification-danger, .notification-message{
  color: rgb(202, 202, 202);
}

#flash-section-dynamic-top {
  position: fixed;
  bottom: 60px;
  right: 20px;
  z-index: 9999;
  pointer-events: none;
  max-width: 350px;
}
#flash-section-dynamic-top > * {
  pointer-events: auto;
}
#flash-section-dynamic-top .notification {
  width: auto;
  max-width: none;
}


.bots-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
    padding: 1rem;
    position: relative;
}

/* Video background */
#bg-video {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -1;              /* behind all content */
    background-color: #000;   /* prevents white flash */
    opacity: 0;               /* fade in later */
    transition: opacity 2s ease-in-out;
}
.eye-overlay {
    display: none;
}
.theme-storm .eye-overlay { opacity: 0.04; }
.theme-midnight .eye-overlay { opacity: 0.03; }

/* Optional overlay tint for better text contrast */
#bg-video::after {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.3);
}

/* Fade-in state for any fallback GIF overlay */
body.bg-loaded::before {
    opacity: 1;
}

#bg-video {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -1;              /* behind all other content */
  background-color: #000;   /* prevents white flash */
  opacity: 0;               /* fade in later */
  transition: opacity 2s ease-in-out;
}

/* Optional overlay tint for better text contrast */
#bg-video::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.3);
}

body.bg-loaded::before {
  opacity: 1; 
}

h1, h2, h3, h4, h5, h6 {
  color: #9eb7b7;
}

ra { text-align: right; }

.bg-steel {
  background-color: rgba(22, 39, 49, 0.55);
}



.scrollit {
  overflow-y: auto;
  overflow-x: hidden;
  height: calc(100vh - 80px);
  width: 100%;
  max-width: 100%;
  min-width: 100px;
  position: relative;
  z-index: 0;
}
#activityScroll, #af-timeline {
  height: auto;
  overflow-y: visible;
  width: 100% !important;
  max-width: 100%;
  padding-bottom: 80px;
  min-width: 0;
  margin: 0;
  flex-basis: 100%;
  box-sizing: border-box;
}
@media (min-width: 1500px) {
  #activityScroll {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
  }
}
.scrollit::-webkit-scrollbar { width: 6px; }
.scrollit::-webkit-scrollbar-track { background: transparent; }
.scrollit::-webkit-scrollbar-thumb { background: rgba(100, 180, 255, 0.15); border-radius: 3px; }
.scrollit::-webkit-scrollbar-thumb:hover { background: rgba(100, 180, 255, 0.3); }

html, body {
  scrollbar-color: #1b3a5c #0d1b2a;
  scrollbar-width: thin;
}
html::-webkit-scrollbar, body::-webkit-scrollbar {
  width: 8px;
}
html::-webkit-scrollbar-track, body::-webkit-scrollbar-track {
  background: #0d1b2a;
}
html::-webkit-scrollbar-thumb, body::-webkit-scrollbar-thumb {
  background-color: #1b3a5c;
  border-radius: 4px;
}
html::-webkit-scrollbar-thumb:hover, body::-webkit-scrollbar-thumb:hover {
  background-color: #2a5580;
}

.header-logo {
  height: 40px;
  padding-bottom: 8px;
  padding-right: 3px;
  width: 38px;
  display: block;
}

.site-header .navbar-nav .nav-link {
  color: #cbd5db;
}

.site-header .navbar-nav .nav-link:hover {
  color: #ffffff;
}

.site-header .navbar-nav .nav-link.active {
  font-weight: 100;
}

/* Unified nav badge — small pill overlaid on parent */
.nav-badge {
  position: absolute;
  top: 2px;
  right: -2px;
  background: rgba(210,70,70,0.85);
  color: #fff;
  font-size: 0.5rem;
  font-weight: 700;
  padding: 1px 4px;
  border-radius: 8px;
  line-height: 1.2;
  min-width: 14px;
  text-align: center;
  pointer-events: none;
}
.nav-badge.badge-info { background: rgba(80,160,220,0.8); }
.nav-badge.badge-danger { background: rgba(210,70,70,0.8); }

/* Admin panel tab badges */
.admin-tab-badge {
  font-size: 0.48rem;
  font-weight: 700;
  padding: 1px 4px;
  border-radius: 8px;
  line-height: 1.2;
  min-width: 12px;
  text-align: center;
  vertical-align: middle;
  margin-left: 4px;
}

.site-header .navbar-nav .nav-link:hover {
  background: #59718e1a;
  backdrop-filter: blur(4px);
  color: #dadada !important;
  border-radius: 10px;
}
.site-header .navbar-nav .nav-link.nav-icon-link:hover {
  background: rgba(255,255,255,0.25) !important;
  backdrop-filter: none !important;
  border-radius: 50% !important;
}
.site-header .navbar-nav .nav-item.show > .nav-link.nav-icon-link,
.site-header .navbar-nav .nav-item.show > .nav-link.nav-icon-link:hover {
  background: rgba(80,160,240,0.25) !important;
  border-radius: 50% !important;
}

/* .nav-link:active {
  transform: scale(0.9);
  opacity: 0.5;
} */

.custom-navbar {
  background-color: transparent !important;
  position: fixed;
  width: 100%;
  top: 0;
  z-index: 1030;
  padding: 15px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  isolation: isolate;
}
.custom-navbar::before {
  content: '';
  position: absolute;
  inset: 0;
  background-color: rgba(25, 57, 76, 0.45);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  z-index: 0;
}
.custom-navbar > * {
  position: relative;
  z-index: 1;
}

.navbar-nav .nav-link {
  position: relative;
  padding: 8px 14px;
  border-radius: 12px;
  transition: all 0.3s ease;
}

.navbar-nav .nav-link:hover {
  background: #ffffff; 
  backdrop-filter: blur(4px);
}


.separator {
  border-left: 1px solid #898989; 
  margin: 0 6px;
  color: #888;
  font-weight: bold;
}


li {
  display:inline-block;
}

.analyze-text {
  color: #9a9a9a;
}


.detect-text {
  color: #b45050;
}


.content-section, .report-section, .chart-section, .login-section, .getcode-section, .activitylog-section, .removebot-section {
  background-color: rgba(25, 57, 76, 0.45);
  backdrop-filter: blur(30px);
  -webkit-backdrop-filter: blur(30px);
  border-style: solid;
  border-width: 0.5px;
  border-color: #6a7d944d;
}

.account-alive-section {
  background-color: rgba(20, 60, 50, 0.45);
  backdrop-filter: blur(30px);
  -webkit-backdrop-filter: blur(30px);
  border-style: solid;
  border-width: 0.5px;
  border-color: #6a7d944d;
}

.account-dead-section {
  background-color: rgba(76, 30, 30, 0.45);
  backdrop-filter: blur(30px);
  -webkit-backdrop-filter: blur(30px);
  border-style: solid;
  border-width: 0.5px;
  border-color: #6a7d944d;
}

.content-section, .account-alive-section, .account-dead-section {
  color: #6a7d94;
  position: relative;
  padding: 20px 30px;
  /* border: 0px solid #585858; */
  border-radius: 40px;
  margin-bottom: 30px;
  flex: 0 1 250px;
  margin-bottom: 1rem;
  box-sizing: border-box;
  width: 17vw;
  min-width: 250px;
}

.chart-section {
  position: relative;
  padding: 20px 30px;
  border-radius: 40px;
  margin-bottom: 1rem;
  flex: 0 1 250px;
  box-sizing: border-box;
  max-width: 100%;
  max-height: 550px;
}

.mini-chart-section {
  flex: 0 0 100%;
  width: 100%;
  height: 300px;
  padding: 20px 30px;
  border-radius: 40px;
  backdrop-filter: blur(30px);
  -webkit-backdrop-filter: blur(30px);
  border: 0.5px solid #6a7d944d;
  box-sizing: border-box;
  margin-top: 0.5rem;
}

/* Nav icon circles */
.navbar-nav .nav-link {
  display: flex;
  align-items: center;
}
.navbar-nav .nav-link.nav-icon-link {
  width: 36px;
  height: 36px;
  border-radius: 50% !important;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  margin: 0 3px;
  background: rgba(255,255,255,0.08);
  transition: background 0.2s ease;
}
.navbar-nav .nav-link.nav-icon-link:hover {
  background: rgba(255,255,255,0.25) !important;
  backdrop-filter: none !important;
}
.navbar-nav .nav-link.nav-icon-link.dropdown-toggle::after {
  display: none;
}
/* Active state via Bootstrap's .show on parent */
.nav-item.show > .nav-icon-link,
.nav-item.show > .nav-icon-link:hover {
  background: rgba(80,160,240,0.25) !important;
  border-radius: 50% !important;
}
.nav-item.show > .nav-icon-link .nav-icon { opacity: 1; }
.nav-item.show > .nav-icon-link .fas,
.nav-item.show > .nav-icon-link .far { opacity: 1; }

.nav-icon {
  width: 16px;
  height: 16px;
  object-fit: contain;
  filter: brightness(0) invert(1);
  opacity: 0.7;
  transition: opacity 0.2s ease;
}
.nav-link:hover .nav-icon { opacity: 1; }

.navbar-nav .nav-link .fas, .navbar-nav .nav-link .far {
  font-size: 0.95rem;
  color: rgba(255,255,255,0.7);
  transition: color 0.2s ease;
}
.navbar-nav .nav-link:hover .fas, .navbar-nav .nav-link:hover .far {
  color: #fff;
}
.menu-icon {
  opacity: 0.7;
  font-size: 1em;
  margin-right: 3px;
}
/* --- Menu icon colors --- */
/* Navbar dropdown icons — don't resize DMs (.fa-envelope) or profile (.fa-user-circle) nav icons */
.nav-icon-link .fa-envelope,
.nav-icon-link .fa-user-circle { font-size: inherit; }

/* Actions */
.menu-icon.fa-eye         { color: #64b5f6; }
.menu-icon.fa-plus        { color: #81c784; }
.menu-icon.fa-search      { color: #90caf9; }
.menu-icon.fa-database    { color: #b39ddb; }
.menu-icon.fa-trash-alt   { color: #ef5350; }
.menu-icon.fa-eraser      { color: #ff8a65; }

/* Analysis / Detection */
.menu-icon.fa-exclamation-triangle { color: #ffa726; }
.menu-icon.fa-list        { color: #80cbc4; }
.menu-icon.fa-chart-line  { color: #4fc3f7; }
.menu-icon.fa-chart-pie   { color: #ce93d8; }
.menu-icon.fa-file-contract { color: #a5d6a7; }

/* AI / Reports */
.menu-icon.fa-brain       { color: #f48fb1; }
.menu-icon.fa-tags        { color: #ffcc80; }
.menu-icon.fa-calendar-day   { color: #80deea; }
.menu-icon.fa-calendar-week  { color: #80cbc4; }
.menu-icon.fa-calendar-alt   { color: #a5d6a7; }

/* Export */
.menu-icon.fa-file-export { color: #b0bec5; }
.menu-icon.fa-code        { color: #ffb74d; }
.menu-icon.fa-file-alt    { color: #81d4fa; }
.menu-icon.fa-file        { color: #c5e1a5; }

/* Filters */
.menu-icon.fa-layer-group { color: #9fa8da; }
.menu-icon.fa-language    { color: #80cbc4; }

/* Totals */
.menu-icon.fa-ban         { color: #ef9a9a; }

/* Admin panel sidebar */
.menu-icon.fa-users       { color: #64b5f6; }
.menu-icon.fa-bell        { color: #ffd54f; }
.menu-icon.fa-envelope    { color: #4fc3f7; }
.menu-icon.fa-key         { color: #ffb74d; }
.menu-icon.fa-door-open   { color: #ff8a65; }
.menu-icon.fa-network-wired { color: #80cbc4; }
.menu-icon.fa-desktop     { color: #90a4ae; }
.menu-icon.fa-clipboard-list { color: #b39ddb; }
.menu-icon.fa-globe       { color: #4db6ac; }
.menu-icon.fa-shield-alt  { color: #e57373; }

/* Profile dropdown */
.menu-icon.fa-cog         { color: #90a4ae; }
.menu-icon.fa-sliders-h   { color: #9fa8da; }
.menu-icon.fa-sign-out-alt { color: #ef5350; }
.nav-platform-logo {
  width: 14px;
  height: 14px;
  object-fit: contain;
  vertical-align: middle;
  margin-right: 5px;
  filter: drop-shadow(0 0 2px rgba(255,255,255,0.2));
}

.platform-logo-strip {
  display: flex;
  justify-content: center;
  gap: 32px;
  margin-bottom: 18px;
  flex-wrap: wrap;
}

.platform-logo-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}

.platform-logo-img {
  width: 36px;
  height: 36px;
  object-fit: contain;
  filter: drop-shadow(0 0 4px rgba(255,255,255,0.15));
}

.platform-logo-label {
  font-size: 0.72rem;
  letter-spacing: 0.04em;
  font-weight: 600;
}

.fp-summary {
  flex: 0 0 100%;
  width: 100%;
  text-align: center;
  color: #6a7d94;
  font-size: 0.85rem;
  margin-top: 0.5rem;
}

.fp-summary strong {
  color: rgba(220, 53, 69, 0.85);
}

.removebot-section {
  background-color: rgba(76, 30, 30, 0.45);
  text-align: center;
  padding: 25px 25px 17px 20px;
}

/* Push content right to clear sidebar on pages that need it */
/* Persistent sidebar shell (layout.html) */
.sidebar-shell {
  background-color: transparent;
  position: fixed;
  top: 70px;
  overflow: visible;
  left: 0;
  width: clamp(120px, 12vw, 155px);
  height: calc(100% - 60px);
  padding-top: 12px;
  display: flex;
  flex-direction: column;
  z-index: 900;
  min-width: 50px;
}
.sidebar-shell {
  background-color: transparent;
  isolation: isolate;
}
.sidebar-shell::before {
  content: '';
  position: absolute;
  inset: 0;
  background-color: rgba(25, 57, 76, 0.45);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  z-index: 0;
}
.sidebar-shell > * {
  position: relative;
  z-index: 1;
}
#sidebar-content {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding-top: 4px;
  padding-left: 2px;
  animation: sidebarFadeIn 0.3s ease forwards;
}
@keyframes sidebarFadeIn { from { opacity: 0; transform: translateX(-8px); } to { opacity: 1; transform: translateX(0); } }
.side-nav-home {
  margin-bottom: 2px;
  padding-bottom: 8px !important;
  border-bottom: 1px solid rgba(255,255,255,0.05);
  text-decoration: none !important;
}
.sidebar-eye {
  display: none;
}
/* Hide page-sidebar — content is extracted by JS into persistent sidebar shell */
#page-sidebar { display: none !important; }

/* Legacy .side-panel — now only used as inner content wrapper inside page templates */
.side-panel {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding-top: 0;
}

.side-panel a, .side-panel .panel-btn {
  color: #999;
  padding: 4px 20px;
  text-decoration: none;
  font-size: 10px;
  display: block;
  border-left: 2px solid transparent;
  transition: background 0.25s ease, color 0.25s ease;
}
.side-panel i.menu-icon, .sidebar-shell i.menu-icon {
  width: 16px;
  text-align: center;
  display: inline-block;
  margin-right: 3px;
}

.side-panel a:hover, .side-panel .panel-btn:hover {
  background: rgba(89, 113, 142, 0.15);
  color: #dadada !important;
  text-decoration: none;
}

.side-nav-link {
  display: block;
  padding: 4px 20px !important;
  font-size: 10px !important;
  color: #999 !important;
  border-left: 2px solid transparent;
  cursor: pointer;
  transition: background 0.25s ease, color 0.25s ease, box-shadow 0.25s ease, transform 0.15s ease;
}
.side-nav-link i {
  width: 16px;
  text-align: center;
  margin-right: 3px;
  font-size: 9px;
  transition: color 0.25s ease, transform 0.2s ease;
}
.side-nav-link:hover {
  background: rgba(89, 113, 142, 0.15) !important;
  color: #dadada !important;
  box-shadow: inset 2px 0 8px rgba(100, 180, 255, 0.06);
}
.side-nav-link:hover i {
  color: rgba(100, 200, 255, 0.8);
  transform: scale(1.12);
}
.side-nav-link:active {
  transform: scale(0.98);
}
.side-nav-link.side-nav-active {
  background: rgba(100, 180, 255, 0.1) !important;
  color: rgba(255, 255, 255, 0.95) !important;
  border-left-color: rgba(100, 180, 255, 0.6);
}
.side-nav-link.side-nav-active i {
  color: rgba(100, 200, 255, 0.9);
}

.line {
  width: 100%;
  height: 1px;
  background: rgba(0, 36, 70, 0.5);
  margin: 1px 0; /* optional spacing */
}

.panel-section-label {
  font-size: 9px;
  color: rgba(255, 255, 255, 0.35);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 0 20px 0 22px;
  margin-top: 2px;
}

.filter-search {
  background: rgba(255, 255, 255, 0.04);
  border: 0.5px solid rgba(255, 255, 255, 0.1);
  border-radius: 6px;
  color: #ccc;
  font-size: 10px;
  padding: 4px 10px;
  margin: 0 14px 0 22px;
  width: calc(100% - 36px);
  outline: none;
  transition: border-color 0.2s ease, background 0.2s ease;
}

.filter-search::placeholder {
  color: rgba(255, 255, 255, 0.25);
}

.filter-search:hover {
  border-color: rgba(255, 255, 255, 0.22);
  background: rgba(255, 255, 255, 0.07);
}

.filter-search:focus {
  border-color: rgba(153, 254, 254, 0.4);
  background: rgba(255, 255, 255, 0.06);
}

.filter-select {
  appearance: none;
  -webkit-appearance: none;
  background: rgba(255, 255, 255, 0.04);
  border: 0.5px solid rgba(255, 255, 255, 0.1);
  border-radius: 6px;
  color: #ccc;
  font-size: 10px;
  padding: 4px 10px;
  margin: 0 14px 0 22px;
  cursor: pointer;
  width: calc(100% - 36px);
  transition: border-color 0.2s ease, background 0.2s ease;
}

.filter-select:hover {
  border-color: rgba(255, 255, 255, 0.22);
  background: rgba(255, 255, 255, 0.07);
}

.filter-select:focus {
  outline: none;
  border-color: rgba(153, 254, 254, 0.4);
}

.filter-select option,
.filter-select optgroup {
  background: rgba(25, 57, 76, 0.55);
  color: #ccc;
}

/* ── Custom dropdown (replaces native <select>) ── */
.custom-select-wrap {
  position: relative;
  display: inline-block;
  width: calc(100% - 24px);
  margin: 0 12px;
}
.custom-select-trigger {
  appearance: none;
  background: rgba(255, 255, 255, 0.04);
  border: 0.5px solid rgba(255, 255, 255, 0.1);
  border-radius: 6px;
  color: #ccc;
  font-size: 10px;
  padding: 4px 24px 4px 10px;
  cursor: pointer;
  transition: border-color 0.2s ease, background 0.2s ease;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.custom-select-trigger::after {
  content: '›';
  position: absolute;
  right: 8px;
  top: 50%;
  transform: translateY(-50%) rotate(90deg);
  font-size: 11px;
  color: rgba(255,255,255,0.3);
  pointer-events: none;
  transition: transform 0.2s ease;
}
.custom-select-wrap.open .custom-select-trigger::after {
  transform: translateY(-50%) rotate(-90deg);
}
.custom-select-trigger:hover {
  border-color: rgba(255, 255, 255, 0.22);
  background: rgba(255, 255, 255, 0.07);
}
.custom-select-wrap.open .custom-select-trigger {
  border-color: rgba(153, 254, 254, 0.4);
}
/* Elevate parent panel when dropdown is open so it sits above siblings */
.panel-section:has(.custom-select-wrap.open) {
  z-index: 10;
  position: relative;
  overflow: visible;
}
.admin-tab-content:has(.custom-select-wrap.open) {
  overflow: visible;
}
.custom-select-panel {
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  right: 0;
  z-index: 1060;
  background: rgba(25, 57, 76, 0.9);
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
  border: 0.5px solid rgba(255,255,255,0.12);
  border-radius: 10px;
  padding: 4px 0;
  max-height: 220px;
  overflow-y: auto;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-4px);
  transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s ease;
}
.custom-select-wrap.open .custom-select-panel {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.custom-select-item {
  padding: 4px 12px;
  font-size: 10px;
  color: rgba(255,255,255,0.7);
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease;
}
.custom-select-item:hover {
  background: rgba(255,255,255,0.08);
  color: #fff;
}
.custom-select-item.active {
  color: rgba(100,180,255,0.9);
}
.custom-select-group {
  padding: 6px 12px 2px;
  font-size: 8px;
  color: rgba(255,255,255,0.3);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-weight: 600;
}
/* Scrollbar for dropdown panel */
.custom-select-panel::-webkit-scrollbar { width: 4px; }
.custom-select-panel::-webkit-scrollbar-track { background: transparent; }
.custom-select-panel::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.1); border-radius: 2px; }
.custom-select-panel::-webkit-scrollbar-thumb:hover { background: rgba(255,255,255,0.2); }

.bottom-widget {
  margin-top: auto;
  padding: 10px 20px;
  font-size: 10px;
  color: #eee;
}

.total-desc {
  font-size: 9px;
  display: block;
  white-space: nowrap;
}

.total-entries {
  color: rgb(57, 179, 195);
}

.btn-no, .btn-yes {
  position: relative;
  padding: 8px 13px;
  border: solid;
  border-radius: 10px;
  text-decoration: none;
  font-size: 12px;
  border-color: #4e6182;
  border-width: 1px;
  color: #ffffff;
}


.btn-no:hover {
  border-color: #b97474ed;
  color: white;
  background-color: #b97474ed;
}

.btn-yes:hover {
  border-color: #17a2b8ed;
  color: white;
  background-color: #17a2b8ed;
} 

.remove-text {
  font-weight: 700;
  font-size: 15px;
  color: rgb(210, 87, 87);
}

.remove-btn, .remove-btn-account {
  position: absolute;
  top: 12px;
  right: 16px;
  text-decoration: none;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: transparent;
  color: rgba(255, 255, 255, 0.15);
  font-size: 9px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.4s ease;
  opacity: 0;
}

article:hover > .remove-btn,
.content-section:hover .remove-btn-account,
.account-alive-section:hover .remove-btn-account,
.account-dead-section:hover .remove-btn-account,
.removebot-section:hover .remove-btn-account {
  opacity: 1;
}

.remove-btn:hover, .remove-btn-account:hover {
  background: rgba(220, 53, 69, 0.15);
  color: #dc3545;
}


.activitylog-section {
  position: relative;
  padding: 20px 30px;
  border-radius: 30px;
  margin-bottom: 20px;
  margin-left: 0;
  width: 100%;
  max-width: 100%;
  overflow: hidden;
  box-sizing: border-box;
  min-width: 600px !important;
  box-shadow: 0 4px 20px rgba(0, 140, 255, 0), 0 0 40px rgba(0, 140, 255, 0);
}

.log-button {
  margin-left: clamp(10px, 2vw, 30px);
  color: rgb(187, 187, 187);
  font-size: clamp(10px, 0.9vw, 12px);
  display: inline-block;
  background: rgba(109, 174, 253, 0.1);
  backdrop-filter: blur(4px);
  border: solid;
  border-width: 1px;
  border-color: rgb(160, 160, 160, 0.1);
  border-radius: 7px;
  padding: 2px 4px;
  margin-bottom: 8px;
  transition: all 0.3s ease;
  white-space: nowrap;
}

.report-button-container {
  display: flex;
  gap: 10px 20px;
}

.report-log-button {
  margin-left: 1px;
  color: rgb(187, 187, 187);
  font-size: 12px;
  display: inline-block;
  background: rgba(109, 174, 253, 0.1);
  backdrop-filter: blur(4px);
  border: solid;
  border-width: 1px;
  border-color: rgb(160, 160, 160, 0.1);
  border-radius: 7px;
  padding: 2px 4px;
  margin-bottom: 20px;
  transition: all 0.3s ease; 
}

.report-gen-indicator {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  color: rgba(130,200,240,0.8);
  font-size: 0.72rem;
}

#report-text {
    font-family: inherit;
    color: white;
    white-space: pre-wrap;
    word-wrap: break-word;
    overflow-wrap: break-word;
    width: 100%;
}

.log-button:hover, .report-log-button:hover {
  color: rgb(187, 187, 187) !important;
  background: rgba(104, 172, 254, 0.2);
  text-decoration: none;
}

.getcode-section {
  padding: 20px 30px;
  border-radius: 40px;
  margin-bottom: 30px;
  width: 20vw;
  min-width: 275px;
}

.login-section {
  padding: 20px 25px;
  border-radius: 30px;
  margin-bottom: 20px;
  width: 400px;
}

.report-section {
  padding: 20px 25px;
  border-radius: 30px;
  margin-bottom: 20px;
  width: 100%;
  max-width: 850px;
  font-size: 12px;
  box-sizing: border-box;
}

.content-section input {
  color: #ffffff;
  border: 1px solid #585858;
  padding: 8px 12px;
  border-radius: 8px;
}

/* Style inputs inside .login-section */
.login-section input, .getcode-section input {
  background-color: #1e272e5d;
  color: #f1f1f1;
  border: 1px solid #444;
  padding: 8px 12px;
  border-radius: 8px;
}

/* Optional: style placeholder text */
.content-section input::placeholder,
.login-section input::placeholder {
  color: #aaaaaa;
  opacity: 0.8;
}

/* Optional: focus state */
.content-section input:focus,
.login-section input:focus, .getcode-section input:focus {
  outline: none;
  border-color: #00aaff;
  background-color: #263544;
  color: #fff;
}

.article-name {
  color: #1da4a0 !important;
}

.text-none {
  color: #7b7b7b;
}

.article-text-dead, .article-text-alive {
  font-size: 22px;
}

.article-text-alive {
  color: #51b675 !important;
}

.article-text {
  color: rgb(206, 206, 206);
  font-size: clamp(11px, 1vw, 14px);
}

.article-text-dead {
  color: #858585 !important;
}

.text-none:hover {
  color: #5b9db7;
  text-decoration: none;
}

.log-search-input {
  outline: none;
  background-color: rgba(173, 172, 172, 0.1);
  border: none;
  font-size: 12px;
  color: white;
  padding-left: 12px;
  border-top: solid;
  border-bottom: solid;
  border-color: rgba(220, 220, 220, 0.1);
  border-width: 1px;
}

.scroll-wrapper {
  height: 100vh;
  overflow-y: auto;
}


.article-content {
  white-space: pre-line;
}

.article-img {
  height: 65px;
  width: 65px;
  margin-right: 16px;
}

.log-metadata {
  background-color: #0b3547;
  position: sticky;
  margin-left: -25px;
  top: 0;
  border-radius: 70px;
  z-index: 10;
  padding: clamp(10px, 1.2vw, 15px) 7px clamp(6px, 0.8vw, 9px) clamp(16px, 2vw, 25px);
  margin-bottom: 4px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 2px;
}

.article-metadata {
  padding-bottom: 1px;
  margin-bottom: 4px;
  border-bottom: 1px solid #bcbcbc
}

.article-metadata a:hover, .log-metadata a:hover {
  color: #333;
  text-decoration: none;
}

.article-svg {
  width: 25px;
  height: 25px;
  vertical-align: middle;
}

.account-img {
  height: 125px;
  width: 125px;
  margin-right: 20px;
  margin-bottom: 16px;
}

.account-heading {
  font-size: 2.5rem;
}

/* -------------------------------------------------------
   Bots page — top control panel
   ------------------------------------------------------- */
.bots-top-panel {
  /* Force own row, then act as a transparent centering wrapper */
  flex: 0 0 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
  gap: 10px;
  padding-bottom: 0.75rem;
  background: transparent;
  border: none;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  border-radius: 0;
  /* Prevent will-change from creating a compositing layer that would
     block backdrop-filter on child .panel-section from seeing through */
  will-change: auto;
}

.panel-label {
  font-size: 9px;
  color: rgba(255, 255, 255, 0.35);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  white-space: nowrap;
  margin-right: 2px;
}

.panel-section {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  padding: 9px 18px;
  background-color: rgba(25, 57, 76, 0.55);
  backdrop-filter: blur(30px);
  -webkit-backdrop-filter: blur(30px);
  border-style: solid;
  border-width: 0.5px;
  border-color: #6a7d944d;
  border-radius: 14px;
}

.panel-toggle-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 20px;
  padding: 5px 13px;
  color: #999;
  font-size: 10px;
  cursor: pointer;
  transition: background 0.25s ease, border-color 0.25s ease, color 0.25s ease;
  user-select: none;
  white-space: nowrap;
}

.panel-toggle-btn:hover {
  background: rgba(255, 255, 255, 0.09);
  color: #ccc;
}

.panel-toggle-btn.active {
  background: rgba(210, 70, 70, 0.18);
  border-color: rgba(210, 70, 70, 0.45);
  color: #e08080;
}

.toggle-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.18);
  flex-shrink: 0;
  transition: background 0.25s ease, box-shadow 0.25s ease;
}

.panel-toggle-btn.active .toggle-dot {
  background: rgba(210, 70, 70, 0.9);
  box-shadow: 0 0 5px rgba(210, 70, 70, 0.55);
}

/* Toggle slider for admin config checkboxes */
.toggle-slider {
  position: relative;
  display: inline-block;
  width: 34px;
  height: 18px;
  background: rgba(255, 255, 255, 0.12);
  border-radius: 18px;
  transition: background 0.25s ease;
  flex-shrink: 0;
}
.toggle-slider::after {
  content: '';
  position: absolute;
  top: 2px;
  left: 2px;
  width: 14px;
  height: 14px;
  background: rgba(255, 255, 255, 0.5);
  border-radius: 50%;
  transition: transform 0.25s ease, background 0.25s ease;
}
.toggle-slider.active {
  background: rgba(100, 200, 255, 0.35);
}
.toggle-slider.active::after {
  transform: translateX(16px);
  background: rgba(100, 200, 255, 0.95);
  box-shadow: 0 0 6px rgba(100, 200, 255, 0.5);
}

/* -------------------------------------------------------
   Bot card right-click context menu
   ------------------------------------------------------- */
.bot-context-menu, .ngv-context-menu {
  position: fixed;
  z-index: 9998;
  background: rgba(25, 57, 76, 0.4);
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
  border: 0.5px solid rgba(255, 255, 255, 0.12);
  border-radius: 10px;
  padding: 5px 0;
  min-width: 185px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.45);
  transition: opacity 0.15s ease, transform 0.15s ease;
}
.bot-context-menu {
  opacity: 0;
  transform: scale(0.95) translateY(-6px);
  pointer-events: none;
}
.ngv-context-menu {
  opacity: 0;
  transform: scale(0.95);
}

.bot-context-menu.visible {
  opacity: 1;
  transform: scale(1) translateY(0);
  pointer-events: auto;
}

.bot-context-menu-item {
  padding: 7px 16px;
  font-size: 10px;
  color: #ccc;
  cursor: pointer;
  transition: background 0.18s ease;
  display: flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
}

.bot-context-menu-item:hover {
  background: rgba(255, 255, 255, 0.07);
  color: #eee;
}

.bot-context-menu-item.ctx-active {
  color: #e08080;
}

.ctx-toggle-item {
  justify-content: space-between;
}

.ctx-mini-toggle {
  width: 24px;
  height: 12px;
  border-radius: 6px;
  background: rgba(255,255,255,0.12);
  position: relative;
  flex-shrink: 0;
}

.ctx-mini-toggle-knob {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255,255,255,0.3);
  position: absolute;
  top: 2px;
  left: 8px;
  transition: left 0.25s ease, background 0.25s ease;
}

.ctx-mini-toggle {
  transition: background 0.25s ease;
}

.ctx-mini-toggle.ctx-mini-toggle-on {
  background: rgba(80, 210, 100, 0.3);
}

.ctx-mini-toggle.ctx-mini-toggle-on .ctx-mini-toggle-knob {
  left: 14px;
  background: rgba(80, 210, 100, 0.95);
}

.ctx-mini-toggle.ctx-mini-toggle-off {
  background: rgba(210, 70, 70, 0.25);
}

.ctx-mini-toggle.ctx-mini-toggle-off .ctx-mini-toggle-knob {
  left: 2px;
  background: rgba(210, 70, 70, 0.9);
}

.panel-toggle-wrap {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  padding: 4px 10px;
  border-radius: 6px;
  border: 1px solid rgba(255,255,255,0.08);
  background: rgba(255,255,255,0.03);
}

.panel-toggle-wrap:hover {
  background: rgba(255,255,255,0.07);
}

.panel-toggle-label {
  font-size: 9px;
  color: rgba(255,255,255,0.55);
  white-space: nowrap;
}

.panel-mini-toggle {
  width: 26px;
  height: 13px;
  border-radius: 7px;
}

.panel-mini-toggle .ctx-mini-toggle-knob {
  width: 9px;
  height: 9px;
}

.bot-context-menu-divider {
  height: 1px;
  background: rgba(255, 255, 255, 0.07);
  margin: 4px 0;
}

.bot-context-menu-danger {
  color: #d07070 !important;
}

.bot-context-menu-danger:hover {
  background: rgba(200, 60, 60, 0.1) !important;
  color: #e88 !important;
}

.ctx-submenu-wrapper {
  position: relative;
  overflow: visible;
  justify-content: space-between;
}

.ctx-submenu {
  position: absolute;
  left: 100%;
  top: -5px;
  background: rgba(25, 57, 76, 0.4);
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
  border: 0.5px solid rgba(255, 255, 255, 0.12);
  border-radius: 10px;
  padding: 5px 0;
  min-width: 160px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.45);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.15s ease;
  z-index: 9999;
}

.ctx-submenu-wrapper:hover .ctx-submenu {
  opacity: 1;
  pointer-events: auto;
}

/* ── Admin Panel & User Profile ─────────────────────────────────────────── */

.admin-tab {
  display: block;
  color: #999;
  padding: 4px 20px;
  text-decoration: none;
  font-size: 10px;
  cursor: pointer;
  transition: background 0.25s ease, color 0.25s ease, box-shadow 0.25s ease, transform 0.15s ease;
  border: none;
  background: none;
  text-align: left;
  width: 100%;
  position: relative;
}

.admin-tab:hover {
  background: rgba(89, 113, 142, 0.15);
  color: #dadada;
  text-decoration: none;
  box-shadow: inset 2px 0 8px rgba(100, 180, 255, 0.06);
}

.admin-tab:active {
  transform: scale(0.98);
}

.admin-tab .menu-icon {
  transition: color 0.25s ease, transform 0.2s ease;
}

.admin-tab:hover .menu-icon {
  color: rgba(100, 200, 255, 0.8);
  transform: scale(1.12);
}

.admin-tab.active {
  background: rgba(100, 180, 255, 0.1);
  color: rgba(255, 255, 255, 0.95);
  border-left: 2px solid rgba(100, 180, 255, 0.6);
}

.admin-tab.active .menu-icon {
  color: rgba(100, 200, 255, 0.9);
}

.admin-tab-content {
  display: none;
  overflow-x: auto;
  padding-top: 0.5rem;
}

.admin-tab-content.active {
  display: block;
  animation: adminTabSlideIn 0.3s ease-out;
}

.admin-tab-content .panel-section {
  display: block;
  box-sizing: border-box;
}

#tab-prompts .panel-section {
  width: 100%;
}

#tab-prompts .prompt-editor {
  width: 100% !important;
}

/* Prevent admin panel from shifting when switching tabs */
.bots-section {
  width: 100%;
  min-width: 0;
  box-sizing: border-box;
  overflow: hidden;
}

/* Permission badges */
.perm-badge {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.3rem 0.6rem;
  border-radius: 6px;
  font-size: 0.78rem;
  border: 1px solid transparent;
  transition: opacity 0.15s;
}

.perm-granted {
  background: rgba(60, 180, 100, 0.12);
  border-color: rgba(60, 180, 100, 0.3);
  color: rgba(130, 230, 160, 0.9);
}

.perm-denied {
  background: rgba(200, 60, 60, 0.08);
  border-color: rgba(200, 60, 60, 0.2);
  color: rgba(255, 120, 120, 0.7);
}

.perm-icon {
  font-weight: bold;
  font-size: 0.9rem;
}

/* Notification rows */
.auth-log-row {
  display: flex;
  gap: 0.8rem;
  padding: 5px 12px;
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.7);
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  align-items: center;
}

.notif-row {
  padding: 0.6rem 0.8rem;
  border-radius: 6px;
  margin-bottom: 0.4rem;
  border: 1px solid transparent;
  transition: background 0.15s;
}

.notif-unread {
  background: rgba(255, 200, 80, 0.06);
  border-color: rgba(255, 200, 80, 0.2);
}

/* Modal overlay */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s cubic-bezier(0.4, 0, 0.2, 1), visibility 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.modal-overlay.modal-visible {
  opacity: 1;
  visibility: visible;
}

.modal-box {
  background: rgba(18, 40, 58, 0.4);
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 14px;
  padding: 1.8rem 2rem;
  width: min(680px, 94vw);
  max-height: 80vh;
  overflow-y: auto;
  transform: scale(0.96) translateY(8px);
  opacity: 0;
  transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.5);
  will-change: transform, opacity;
}

.modal-overlay.modal-visible .modal-box {
  transform: scale(1) translateY(0);
  opacity: 1;
}

.modal-close-btn {
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.06);
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.85rem;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
  padding: 0;
  line-height: 1;
}

.modal-close-btn:hover {
  background: rgba(255, 80, 80, 0.15);
  color: rgba(255, 100, 100, 0.9);
  border-color: rgba(255, 80, 80, 0.3);
}

/* Small button variant */
.btn-xs {
  padding: 0.15rem 0.45rem;
  font-size: 0.72rem;
  border-radius: 4px;
  line-height: 1.4;
}

.admin-action-btn {
  min-width: 72px;
  text-align: center;
  color: rgb(187, 187, 187);
  font-size: 0.7rem;
  background: rgba(109, 174, 253, 0.1);
  backdrop-filter: blur(4px);
  border: 1px solid rgba(160, 160, 160, 0.1);
  border-radius: 7px;
  padding: 2px 8px;
  transition: background 0.2s;
}

.admin-action-btn:hover {
  background: rgba(104, 172, 254, 0.2);
  color: rgb(187, 187, 187);
}

.admin-action-btn.btn-warning,
.admin-action-btn.btn-warning:hover {
  background: rgba(220, 180, 80, 0.1);
  border-color: rgba(220, 180, 80, 0.15);
  color: rgba(220, 190, 120, 0.85);
}

.admin-action-btn.btn-warning:hover {
  background: rgba(220, 180, 80, 0.2);
}

.admin-action-btn.btn-danger,
.admin-action-btn.btn-danger:hover {
  background: rgba(210, 80, 80, 0.1);
  border-color: rgba(210, 80, 80, 0.15);
  color: rgba(220, 120, 120, 0.85);
}

.admin-action-btn.btn-danger:hover {
  background: rgba(210, 80, 80, 0.2);
}

.admin-action-btn.btn-info,
.admin-action-btn.btn-info:hover {
  background: rgba(80, 160, 220, 0.1);
  border-color: rgba(80, 160, 220, 0.15);
  color: rgba(130, 190, 230, 0.85);
}

.admin-action-btn.btn-info:hover {
  background: rgba(80, 160, 220, 0.2);
}

.admin-action-btn.btn-success,
.admin-action-btn.btn-success:hover {
  background: rgba(80, 180, 100, 0.1);
  border-color: rgba(80, 180, 100, 0.15);
  color: rgba(120, 200, 140, 0.85);
}

.admin-action-btn.btn-success:hover {
  background: rgba(80, 180, 100, 0.2);
}

.admin-action-btn.btn-secondary,
.admin-action-btn.btn-secondary:hover {
  background: rgba(160, 160, 160, 0.1);
  border-color: rgba(160, 160, 160, 0.15);
  color: rgba(180, 180, 180, 0.85);
}

.admin-action-btn.btn-secondary:hover {
  background: rgba(160, 160, 160, 0.2);
}

.admin-action-btn:focus,
.admin-action-btn:active,
.admin-action-btn:active:focus {
  box-shadow: none !important;
  outline: none !important;
}

.admin-action-btn.btn-warning:focus,
.admin-action-btn.btn-warning:active {
  background: rgba(220, 180, 80, 0.15) !important;
  border-color: rgba(220, 180, 80, 0.15) !important;
  color: rgba(220, 190, 120, 0.85) !important;
}

.admin-action-btn.btn-danger:focus,
.admin-action-btn.btn-danger:active {
  background: rgba(210, 80, 80, 0.15) !important;
  border-color: rgba(210, 80, 80, 0.15) !important;
  color: rgba(220, 120, 120, 0.85) !important;
}

.admin-action-btn.btn-info:focus,
.admin-action-btn.btn-info:active {
  background: rgba(80, 160, 220, 0.15) !important;
  border-color: rgba(80, 160, 220, 0.15) !important;
  color: rgba(130, 190, 230, 0.85) !important;
}

.admin-action-btn.btn-success:focus,
.admin-action-btn.btn-success:active {
  background: rgba(80, 180, 100, 0.15) !important;
  border-color: rgba(80, 180, 100, 0.15) !important;
  color: rgba(120, 200, 140, 0.85) !important;
}

.admin-action-btn.btn-secondary:focus,
.admin-action-btn.btn-secondary:active {
  background: rgba(160, 160, 160, 0.15) !important;
  border-color: rgba(160, 160, 160, 0.15) !important;
  color: rgba(180, 180, 180, 0.85) !important;
}

/* ═══ Blue Teaming — no custom layout, uses same table pattern as Users ═══ */

.al-pagination {
  display: flex; align-items: center; gap: 0.5rem; padding: 0.5rem 0; justify-content: center;
}
.al-pag-info { color: rgba(255,255,255,0.3); font-size: 0.65rem; }
.al-pag-btn {
  background: rgba(255,255,255,0.04); border: 0.5px solid rgba(255,255,255,0.1); border-radius: 6px;
  color: rgba(255,255,255,0.55); font-size: 0.6rem; padding: 3px 10px; cursor: pointer;
  transition: border-color 0.2s ease, background 0.2s ease;
}
.al-pag-btn:hover { border-color: rgba(100,200,255,0.3); background: rgba(255,255,255,0.07); color: rgba(255,255,255,0.8); }

/* Notification buttons — same scheme as admin-action-btn but duller */
.notif-btn {
  min-width: 60px;
  text-align: center;
  color: rgba(170, 170, 170, 0.7);
  font-size: 0.7rem;
  background: rgba(140, 160, 180, 0.07);
  backdrop-filter: blur(4px);
  border: 1px solid rgba(140, 140, 140, 0.08);
  border-radius: 7px;
  padding: 2px 8px;
  transition: background 0.2s, color 0.2s;
}

.notif-btn:hover {
  background: rgba(140, 160, 180, 0.14);
  color: rgba(180, 180, 180, 0.8);
}

.notif-btn-secondary {
  background: rgba(140, 140, 140, 0.07);
  border-color: rgba(140, 140, 140, 0.1);
  color: rgba(160, 160, 160, 0.65);
}

.notif-btn-secondary:hover {
  background: rgba(140, 140, 140, 0.15);
  color: rgba(180, 180, 180, 0.8);
}

.notif-btn-danger {
  background: rgba(190, 70, 70, 0.07);
  border-color: rgba(190, 70, 70, 0.1);
  color: rgba(200, 110, 110, 0.65);
}

.notif-btn-danger:hover {
  background: rgba(190, 70, 70, 0.15);
  color: rgba(210, 120, 120, 0.8);
}

.notif-btn:focus,
.notif-btn:active,
.notif-btn:active:focus {
  box-shadow: none !important;
  outline: none !important;
}

.notif-btn-secondary:focus,
.notif-btn-secondary:active {
  background: rgba(140, 140, 140, 0.1) !important;
  border-color: rgba(140, 140, 140, 0.1) !important;
  color: rgba(160, 160, 160, 0.65) !important;
}

.notif-btn-danger:focus,
.notif-btn-danger:active {
  background: rgba(190, 70, 70, 0.1) !important;
  border-color: rgba(190, 70, 70, 0.1) !important;
  color: rgba(200, 110, 110, 0.65) !important;
}

/* --- Bot Card Redesign --- */
.bot-card {
  cursor: pointer;
  transition: opacity 1s ease, box-shadow 0.6s ease, background 0.4s ease;
  padding: 16px 20px;
  min-width: 180px;
  max-width: 220px;
  box-shadow: 0 6px 24px rgba(0, 170, 255, 0);
}
.bot-card:hover {
  box-shadow: 0 6px 24px rgba(0, 170, 255, 0.12);
}
.bot-card-link,
.bot-card-link:hover,
.bot-card-link:focus {
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  text-align: center;
}
.bot-card-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  font-size: 1.2rem;
  color: rgba(255,255,255,0.9);
  font-weight: 600;
  flex-shrink: 0;
}
.bot-card-avatar-tg { background: linear-gradient(135deg, rgba(40,168,233,0.35), rgba(40,168,233,0.1)); }
.bot-card-avatar-dc { background: linear-gradient(135deg, rgba(88,101,242,0.35), rgba(88,101,242,0.1)); }
.bot-card-avatar-mx { background: linear-gradient(135deg, rgba(11,189,148,0.35), rgba(11,189,148,0.1)); }
.bot-card-avatar-th { background: linear-gradient(135deg, rgba(220,80,80,0.35), rgba(220,80,80,0.1)); }
.bot-card-info {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}
.bot-card-name {
  color: #1da4a0;
  font-size: 0.82rem;
  font-weight: 500;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 170px;
}
.bot-card-username {
  color: rgba(255,255,255,0.35);
  font-size: 0.68rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 170px;
}
.bot-card-stats {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
  font-size: 0.68rem;
  color: rgba(255,255,255,0.45);
}
/* Slot roller animation */
.slot-analyzed, .slot-detected {
  display: inline;
}
.slot-label {
  white-space: nowrap;
  position: relative;
  top: -2px;
}
.slot-roller {
  display: inline-flex;
  overflow: hidden;
  height: 1em;
  line-height: 1em;
  vertical-align: baseline;
  font-variant-numeric: tabular-nums;
}
.slot-digit {
  display: inline-block;
  width: 0.6em;
  text-align: center;
  position: relative;
  overflow: hidden;
  height: 1em;
}
.slot-digit-inner {
  display: flex;
  flex-direction: column;
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
}
.slot-digit-inner span {
  height: 1em;
  line-height: 1em;
}
.slot-comma {
  display: inline-block;
  width: 0.3em;
  text-align: center;
}
/* Profile page stat rollers — larger */
.profile-stat-value .slot-roller {
  font-size: 1.05rem;
  font-weight: 500;
}
.profile-stat-value .slot-digit {
  width: 0.65em;
}
.bot-card-stat-detected { color: rgba(255,180,100,0.7); }
.bot-card-status {
  font-size: 0.6rem;
  padding: 2px 10px;
  border-radius: 10px;
  letter-spacing: 0.03em;
}
.bot-card-status-active { background: rgba(0,255,64,0.1); color: rgba(80,230,120,0.8); }
.bot-card-status-inactive { background: rgba(255,50,50,0.1); color: rgba(255,120,120,0.7); }
.bot-card-status-reason {
  display: block;
  font-size: 0.55rem;
  color: rgba(255,100,100,0.6);
  margin-top: 2px;
  text-align: center;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 100%;
}

/* --- Bot Profile Page --- */
.bot-profile-page {
  max-width: 900px;
  margin: 0 auto;
  padding: 0 1rem;
}
.bot-profile-back {
  color: rgba(255,255,255,0.5);
  font-size: 1.1rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(255,255,255,0.05);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255,255,255,0.08);
  text-decoration: none;
  position: fixed;
  left: 170px;
  top: 85px;
  z-index: 1035;
  margin: 0;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}
.bot-profile-back:hover {
  background: rgba(100,200,255,0.12);
  border-color: rgba(100,200,255,0.25);
  color: rgba(100,200,255,0.9);
  text-decoration: none;
}
.bot-profile-header {
  padding: 20px 24px;
  margin-bottom: 0.8rem;
}
.bot-profile-identity {
  display: flex;
  align-items: center;
  gap: 1rem;
}
.bot-profile-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  color: rgba(255,255,255,0.9);
  font-weight: 600;
  flex-shrink: 0;
  position: relative;
  overflow: hidden;
}
.bot-avatar-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,0.8);
  font-size: 0.7rem;
  opacity: 0;
  transition: opacity 0.2s ease;
  border-radius: 50%;
}
.bot-profile-avatar:hover .bot-avatar-overlay {
  opacity: 1;
}
.bot-profile-info {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}
.bot-profile-name {
  color: rgba(255,255,255,0.9);
  font-size: 1.05rem;
  font-weight: 500;
}
.bot-profile-username {
  color: rgba(255,255,255,0.4);
  font-size: 0.8rem;
}
.bot-profile-badges {
  display: flex;
  gap: 0.4rem;
  margin-top: 0.2rem;
}
.bot-profile-stats {
  display: flex;
  gap: 2.5rem;
  margin-top: 1rem;
  padding-top: 0.8rem;
  border-top: 1px solid rgba(255,255,255,0.06);
}
.bot-stat {
  display: flex;
  flex-direction: column;
}
.bot-stat-label {
  color: rgba(255,255,255,0.3);
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.bot-stat-value {
  color: rgba(255,255,255,0.8);
  font-size: 1.15rem;
  font-weight: 500;
}
.bot-edit-field {
  background: transparent;
  border: 1px solid transparent;
  border-radius: 4px;
  padding: 2px 6px;
  outline: none;
  display: block;
  width: 100%;
  transition: border-color 0.2s ease, background 0.2s ease;
}
.bot-edit-field:hover {
  border-color: rgba(255,255,255,0.12);
  background: rgba(255,255,255,0.03);
}
.bot-edit-field:focus {
  border-color: rgba(100,200,255,0.4);
  background: rgba(255,255,255,0.05);
}
.bot-tools-grid {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-top: 0.5rem;
}
.bot-tool-status {
  margin-top: 0.4rem;
  font-size: 0.75rem;
  min-height: 1.2em;
}
.bot-search-row {
  display: flex;
  gap: 0.5rem;
  margin-top: 0.5rem;
}
.bot-search-row input { flex: 1; }
.bot-search-result {
  margin-top: 0.5rem;
  font-size: 0.78rem;
  color: rgba(255,255,255,0.6);
}
.bot-export-row {
  display: flex;
  gap: 0.5rem;
  margin-top: 0.5rem;
}
.bot-export-row input { flex: 1; max-width: 250px; }

/* --- Global Search --- */
.global-search-bar {
  display: flex;
  gap: 0.4rem;
  align-items: center;
}
.global-search-bar input {
  flex: 1;
  max-width: 280px;
}
.search-results-container {
  margin-top: 0.6rem;
}
.search-result-card {
  padding: 10px 14px;
  margin-bottom: 0.4rem;
  border-radius: 8px;
  background: rgba(255,255,255,0.04);
  backdrop-filter: blur(30px);
  -webkit-backdrop-filter: blur(30px);
  border: 1px solid rgba(255,255,255,0.08);
  font-size: 0.78rem;
  opacity: 0;
  transform: translateY(6px);
  animation: searchFadeIn 0.35s ease forwards;
}
.search-result-card,
.search-result-card *,
.bot-search-result,
.bot-search-result *,
.bot-profile-page .panel-section,
.bot-profile-page .panel-section * {
  -webkit-user-select: text !important;
  -moz-user-select: text !important;
  -ms-user-select: text !important;
  user-select: text !important;
  cursor: text;
}
.search-result-card:nth-child(1) { animation-delay: 0s; }
.search-result-card:nth-child(2) { animation-delay: 0.05s; }
.search-result-card:nth-child(3) { animation-delay: 0.1s; }
.search-result-card:nth-child(4) { animation-delay: 0.15s; }
.search-result-card:nth-child(5) { animation-delay: 0.2s; }
.search-result-card:nth-child(n+6) { animation-delay: 0.25s; }
/* --- Message Context Modal --- */
.context-msg {
  padding: 5px 10px;
  font-size: 0.75rem;
  border-bottom: 1px solid rgba(255,255,255,0.03);
  opacity: 0;
  animation: searchFadeIn 0.2s ease forwards;
}
.context-msg-target {
  background: rgba(210, 70, 70, 0.15);
  border-left: 3px solid rgba(210, 70, 70, 0.7);
  padding-left: 8px;
}
.context-msg-who {
  color: rgba(100,200,255,0.8);
  font-weight: 500;
  font-size: 0.7rem;
  margin-right: 0.4rem;
}
.context-msg-time {
  color: rgba(255,255,255,0.2);
  font-size: 0.6rem;
  float: right;
}
.context-msg-text {
  color: rgba(255,255,255,0.6);
  white-space: pre-wrap;
  word-break: break-word;
}
.context-msg,
.context-msg * {
  -webkit-user-select: text !important;
  user-select: text !important;
  cursor: text;
}

@keyframes searchFadeIn {
  to { opacity: 1; transform: translateY(0); }
}
.search-dots {
  display: flex;
  gap: 5px;
  padding: 0.6rem 0;
  justify-content: center;
}
.search-dots span {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(100,200,255,0.6);
  animation: searchDotBounce 1.2s ease-in-out infinite;
}
.search-dots span:nth-child(2) { animation-delay: 0.15s; }
.search-dots span:nth-child(3) { animation-delay: 0.3s; }
@keyframes searchDotBounce {
  0%, 80%, 100% { opacity: 0.25; transform: scale(0.8); }
  40% { opacity: 1; transform: scale(1.2); }
}
.search-result-name {
  color: rgba(100,200,255,0.9);
  font-weight: 500;
  margin-bottom: 0.2rem;
}
.search-result-meta {
  color: rgba(255,255,255,0.45);
  font-size: 0.72rem;
}
.search-result-bot {
  color: rgba(255,255,255,0.25);
  font-size: 0.65rem;
  margin-top: 0.2rem;
}

/* --- DM Interface --- */
.dm-container {
  width: min(calc(96vw - min(14vw, 150px)), 1450px);
  min-width: 900px;
  height: calc(100vh - 100px);
  display: flex;
  flex-direction: column;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.07);
  background: rgba(12,20,30,0.55);
  backdrop-filter: blur(40px);
  -webkit-backdrop-filter: blur(40px);
  box-shadow: 0 8px 40px rgba(0,0,0,0.4);
  transition: opacity 0.8s ease;
}
.dm-top-bar {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  padding: 12px 18px;
  background: rgba(255,255,255,0.03);
  border-bottom: 1px solid rgba(255,255,255,0.05);
  flex-shrink: 0;
  overflow: visible;
  z-index: 10;
}
/* DM bot dropdown — solid bg, no ::before */
.dm-top-bar .dropdown-menu {
  background-color: rgba(25, 57, 76, 0.92);
  border-radius: 10px;
  border: 0.5px solid rgba(255, 255, 255, 0.12);
  isolation: auto;
}
.dm-top-bar .dropdown-menu::before {
  display: none;
}
.dm-top-bar .dropdown-menu > * {
  position: static;
  z-index: auto;
}
.dm-back-arrow {
  color: rgba(255,255,255,0.4);
  font-size: 1.1rem;
  text-decoration: none;
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: background 0.15s ease, color 0.15s ease;
}
.dm-back-arrow:hover { background: rgba(255,255,255,0.08); color: rgba(100,200,255,0.9); text-decoration: none; }
.dm-top-info { flex: 1; }
.dm-top-title { color: rgba(255,255,255,0.85); font-size: 0.82rem; font-weight: 600; }
.dm-top-subtitle { color: rgba(255,255,255,0.25); font-size: 0.62rem; margin-left: 0.5rem; }
.dm-compose-link {
  color: rgba(100,200,255,0.6);
  font-size: 1.2rem;
  text-decoration: none;
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  border: 1px solid rgba(100,200,255,0.2);
  transition: all 0.15s ease;
}
.dm-compose-link:hover { background: rgba(100,200,255,0.1); color: rgba(100,200,255,0.9); text-decoration: none; }
.dm-body {
  display: flex;
  flex: 1;
  min-height: 0;
}
.dm-sidebar {
  width: 300px;
  flex-shrink: 0;
  border-right: 1px solid rgba(255,255,255,0.05);
  display: flex;
  flex-direction: column;
  background: rgba(255,255,255,0.01);
}
.dm-sidebar-search {
  padding: 10px;
  border-bottom: 1px solid rgba(255,255,255,0.04);
  flex-shrink: 0;
}
.dm-search-input {
  width: 100%;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 8px;
  color: #fff;
  font-size: 0.72rem;
  padding: 6px 10px;
  outline: none;
  transition: border-color 0.2s ease;
}
.dm-search-input:focus { border-color: rgba(100,200,255,0.3); }
.dm-search-input::placeholder { color: rgba(255,255,255,0.2); }
.dm-sidebar-list {
  flex: 1;
  overflow-y: auto;
  overflow-x: hidden;
}
.dm-convo-item {
  padding: 10px 14px;
  cursor: pointer;
  border-bottom: 1px solid rgba(255,255,255,0.025);
  position: relative;
  opacity: 1;
  transform: none;
  max-height: 80px;
  transition: background 0.15s ease, opacity 0.35s ease, transform 0.35s ease, max-height 0.35s ease, padding 0.35s ease;
}
.dm-convo-item:hover { background: rgba(255,255,255,0.04); }
.dm-convo-item.dm-convo-removing {
  opacity: 0 !important;
  transform: translateX(-30px) !important;
  max-height: 0 !important;
  padding-top: 0 !important;
  padding-bottom: 0 !important;
  margin: 0 !important;
  overflow: hidden !important;
  border: none !important;
  transition: all 0.35s ease !important;
  animation: none !important;
}
@keyframes dmConvoSlideIn {
  from { opacity: 0; transform: translateX(-8px); }
  to { opacity: 1; transform: translateX(0); }
}
.dm-convo-item.dm-convo-new {
  animation: dmConvoSlideIn 0.3s ease forwards;
  opacity: 0;
  transform: translateX(-8px);
}
.dm-convo-item.dm-convo-active {
  background: rgba(100,200,255,0.06);
  border-left: 2px solid rgba(100,200,255,0.5);
}
.dm-platform-icon { width: 14px; height: 14px; object-fit: contain; opacity: 0.7; flex-shrink: 0; }
.dm-convo-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(100,180,255,0.15);
  color: rgba(100,200,255,0.8);
  font-size: 0.7rem;
  font-weight: 600;
  flex-shrink: 0;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}
.dm-convo-name { color: rgba(255,255,255,0.85); font-size: 0.75rem; font-weight: 500; }
.dm-convo-preview { color: rgba(255,255,255,0.25); font-size: 0.62rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; margin-top: 2px; }
.dm-convo-time { color: rgba(255,255,255,0.15); font-size: 0.55rem; position: absolute; top: 1px; right: 12px; }
.dm-convo-unread { border-left: 2px solid rgba(100,200,255,0.6); }
.dm-unread-badge {
  background: rgba(100,200,255,0.8);
  color: #000;
  font-size: 0.4rem;
  font-weight: 700;
  padding: 1px 4px;
  border-radius: 8px;
  position: absolute;
  bottom: 6px;
  right: 6px;
}
.dm-translate-toggle {
  background: none; border: 1px solid rgba(255,255,255,0.12); color: rgba(255,255,255,0.5);
  font-size: 0.7rem; padding: 2px 6px; border-radius: 4px; cursor: pointer; transition: all 0.2s;
}
.dm-translate-toggle:hover, .dm-translate-toggle.active { border-color: rgba(100,200,255,0.4); color: rgba(100,200,255,0.8); }
.dm-translate-panel {
  background: rgba(0,0,0,0.35); border-bottom: 1px solid rgba(255,255,255,0.06);
  padding: 0.4rem 0.8rem; display: flex; gap: 1rem; align-items: center; flex-shrink: 0;
}
.dm-translate-row { display: flex; align-items: center; gap: 0.25rem; }
.dm-translate-row label { color: rgba(255,255,255,0.3); font-size: 0.55rem; white-space: nowrap; text-transform: uppercase; letter-spacing: 0.04em; }
.dm-translate-select { width: auto; margin: 0; padding: 3px 10px; font-size: 0.58rem; }
.dm-loading { display: flex; justify-content: center; padding: 2rem 0; }
.dm-chat {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-width: 0;
  background: rgba(0,0,0,0.1);
  position: relative;
}
.dm-chat-header {
  padding: 10px 18px;
  background: rgba(255,255,255,0.02);
  border-bottom: 1px solid rgba(255,255,255,0.04);
  flex-shrink: 0;
}
/* Custom language dropdown — no Bootstrap/Popper */
.dm-lang-wrap { position: relative; display: inline-block; }
.dm-lang-toggle {
  font-size: 0.68rem;
  color: rgba(255,255,255,0.5);
  padding: 3px 8px;
  text-decoration: none;
  cursor: pointer;
  transition: color 0.2s ease;
}
.dm-lang-toggle:hover { color: rgba(255,255,255,0.8); text-decoration: none; }
.dm-lang-menu {
  display: none;
  position: absolute;
  top: 100%;
  right: 0;
  z-index: 1060;
  background-color: rgba(25, 57, 76, 0.4);
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
  border: 0.5px solid rgba(255, 255, 255, 0.12);
  border-radius: 10px;
  padding: 7px 0;
  width: 160px;
  max-height: 320px;
  overflow-y: auto;
  overscroll-behavior: contain;
  box-shadow: 0 4px 20px rgba(0,0,0,0.4);
}
.dm-lang-menu.open { display: block; }
.dm-chat-header-text { color: rgba(255,255,255,0.6); font-size: 0.78rem; font-weight: 500; }
.dm-chat-messages {
  flex: 1;
  overflow-y: auto;
  padding: 14px 18px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.dm-empty-state {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}
.dm-empty-icon { font-size: 2rem; opacity: 0.15; }
.dm-empty-text { color: rgba(255,255,255,0.15); font-size: 0.75rem; }
.dm-chat-reply {
  padding: 10px 16px;
  border-top: 1px solid rgba(255,255,255,0.05);
  display: flex;
  gap: 0.5rem;
  flex-shrink: 0;
  background: rgba(255,255,255,0.02);
}
.dm-reply-input {
  flex: 1;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 20px;
  color: #fff;
  font-size: 0.78rem;
  padding: 8px 16px;
  outline: none;
  transition: border-color 0.2s ease;
}
.dm-reply-input:focus { border-color: rgba(100,200,255,0.3); }
.dm-reply-input::placeholder { color: rgba(255,255,255,0.2); }
.dm-send-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: none;
  background: rgba(100,200,255,0.15);
  color: rgba(100,200,255,0.8);
  font-size: 0.9rem;
  cursor: pointer;
  transition: all 0.15s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.dm-send-btn:hover { background: rgba(100,200,255,0.25); color: rgba(100,200,255,1); }
.dm-msg {
  padding: 8px 14px;
  max-width: 72%;
  border-radius: 16px;
  font-size: 0.78rem;
  word-break: break-word;
  line-height: 1.4;
}
#dm-compose-fields {
  opacity: 0;
  transform: translateY(-4px);
  transition: opacity 0.3s ease, transform 0.3s ease;
}
#dm-compose-fields.visible {
  opacity: 1;
  transform: translateY(0);
}
.dm-date-sep {
  text-align: center;
  color: rgba(255,255,255,0.25);
  font-size: 0.58rem;
  padding: 8px 0 4px;
  letter-spacing: 0.03em;
}
.dm-date-float {
  position: sticky;
  top: 0;
  align-self: center;
  background: rgba(20,45,65,0.55);
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
  color: rgba(180,220,255,0.7);
  font-size: 0.58rem;
  padding: 3px 14px;
  border-radius: 10px;
  z-index: 5;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.3s ease;
  margin-bottom: -20px;
}
.dm-date-float.visible { opacity: 1; }
.dm-msg-fadein {
  opacity: 0;
  transform: translateY(1px);
  animation: dmFadeIn 0.5s ease forwards;
}
@keyframes dmFadeIn {
  to { opacity: 1; transform: translateY(0); }
}
.dm-msg-in {
  background: rgba(255,255,255,0.06);
  color: rgba(255,255,255,0.85);
  align-self: flex-start;
  border-bottom-left-radius: 4px;
}
.dm-msg-out {
  background: linear-gradient(135deg, rgba(60,140,200,0.2), rgba(80,160,220,0.15));
  color: rgba(255,255,255,0.9);
  align-self: flex-end;
  border-bottom-right-radius: 4px;
}
.dm-msg-err {
  background: rgba(200,60,60,0.15); color: rgba(255,120,120,0.9); font-size: 0.68rem;
  padding: 0.3rem 0.6rem; border-radius: 6px; align-self: center; border: 1px solid rgba(200,60,60,0.2);
}
/* DM media */
.dm-msg-media { margin: 4px 0; }
.dm-msg-media img { max-width: 280px; max-height: 280px; border-radius: 6px; cursor: pointer; display: block; object-fit: cover; }
.dm-msg-media video { max-width: 100%; max-height: 300px; border-radius: 6px; }
.dm-msg-file { margin: 4px 0; }
.dm-msg-file a { color: rgba(100,180,255,0.9); text-decoration: none; font-size: 0.72rem; display: flex; align-items: center; gap: 4px; }
.dm-msg-file a:hover { text-decoration: underline; }
.dm-file-icon { font-size: 1rem; }
.dm-file-size { color: rgba(255,255,255,0.3); font-size: 0.62rem; }
.dm-attach-btn { background: none; border: none; color: rgba(255,255,255,0.35); font-size: 1.1rem; cursor: pointer; padding: 4px 6px; flex-shrink: 0; transition: color 0.15s; }
.dm-attach-btn:hover { color: rgba(255,255,255,0.65); }
.dm-attach-preview { display: flex; align-items: center; padding: 6px 12px; background: rgba(255,255,255,0.04); border-top: 1px solid rgba(255,255,255,0.06); flex-shrink: 0; }
.dm-attach-info { display: flex; align-items: center; gap: 8px; font-size: 0.7rem; color: rgba(255,255,255,0.6); flex: 1; min-width: 0; }
.dm-attach-info span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dm-attach-thumb { width: 40px; height: 40px; border-radius: 4px; object-fit: cover; flex-shrink: 0; }
.dm-attach-remove { background: none; border: none; color: rgba(255,100,100,0.7); font-size: 1rem; cursor: pointer; padding: 0 4px; flex-shrink: 0; }
.dm-attach-remove:hover { color: rgba(255,100,100,1); }
.dm-dragover { outline: 2px dashed rgba(100,180,255,0.4); outline-offset: -4px; }
.dm-media-lightbox { position: fixed; top: 0; left: 0; right: 0; bottom: 0; background: rgba(0,0,0,0.85); z-index: 9999; display: flex; align-items: center; justify-content: center; }
.dm-media-lightbox img { max-width: 90vw; max-height: 90vh; border-radius: 4px; object-fit: contain; }
.dm-lightbox-close { position: absolute; top: 16px; right: 24px; color: #fff; font-size: 2rem; cursor: pointer; z-index: 10000; line-height: 1; }
/* DM Contact Panel */
.dm-contact-panel {
  width: 0; flex-shrink: 0; overflow: hidden;
  background: rgba(255,255,255,0.015);
  display: flex; flex-direction: column;
  transition: width 0.35s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.35s;
  border-left: 1px solid transparent;
}
.dm-contact-panel.active {
  width: 280px; overflow-y: auto; overflow-x: hidden;
  border-left-color: rgba(255,255,255,0.05);
}
.dm-cp-empty { display: flex; flex-direction: column; align-items: center; justify-content: center; flex: 1; }
.dm-cp-content { animation: dmCpSlideIn 0.35s cubic-bezier(0.16, 1, 0.3, 1) forwards; }
@keyframes dmCpSlideIn { from { transform: translateX(30px); opacity: 0; } to { transform: translateX(0); opacity: 1; } }
.dm-cp-section { padding: 16px 18px; border-bottom: 1px solid rgba(255,255,255,0.04); }
.dm-cp-section:last-child { border-bottom: none; }
.dm-cp-section-header {
  font-size: 0.56rem; font-weight: 600; text-transform: uppercase; letter-spacing: 1.2px;
  color: rgba(255,255,255,0.22); margin-bottom: 10px;
}
/* Identity */
.dm-cp-identity { text-align: center; padding: 20px 18px 16px; }
.dm-cp-avatar {
  width: 72px; height: 72px; border-radius: 50%; object-fit: cover; margin: 0 auto 10px;
  display: block; border: 2px solid rgba(255,255,255,0.06);
}
.dm-cp-avatar-fallback {
  width: 72px; height: 72px; border-radius: 50%; margin: 0 auto 10px;
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, rgba(80,150,220,0.3), rgba(120,80,200,0.3));
  font-size: 1.4rem; font-weight: 600; color: rgba(255,255,255,0.7);
}
.dm-cp-name { font-size: 0.88rem; font-weight: 600; color: rgba(255,255,255,0.9); margin-bottom: 2px; -webkit-user-select: text !important; user-select: text !important; cursor: text; }
.dm-cp-username { font-size: 0.68rem; color: rgba(255,255,255,0.35); margin-bottom: 1px; -webkit-user-select: text !important; user-select: text !important; cursor: text; }
.dm-cp-userid { font-size: 0.62rem; color: rgba(255,255,255,0.2); font-family: monospace; -webkit-user-select: text !important; user-select: text !important; cursor: text; }
.dm-cp-value, .dm-cp-bot-tag, .dm-cp-xplat-badge, .dm-cp-group-tag, .dm-cp-lang { -webkit-user-select: text !important; user-select: text !important; cursor: text; }
.dm-cp-platform-badge {
  display: inline-flex; align-items: center; gap: 4px; margin-top: 6px;
  font-size: 0.6rem; color: rgba(255,255,255,0.35); background: rgba(255,255,255,0.04);
  padding: 2px 8px; border-radius: 10px;
}
.dm-cp-platform-badge img { width: 12px; height: 12px; opacity: 0.6; }
/* Stats row */
.dm-cp-row { display: flex; justify-content: space-between; align-items: center; padding: 4px 0; }
.dm-cp-label { font-size: 0.65rem; color: rgba(255,255,255,0.3); }
.dm-cp-value { font-size: 0.68rem; color: rgba(255,255,255,0.7); text-align: right; }
.dm-cp-value a { color: rgba(100,180,255,0.85); text-decoration: none; }
.dm-cp-value a:hover { text-decoration: underline; }
/* Bots list */
.dm-cp-bots { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 4px; }
.dm-cp-bot-tag {
  font-size: 0.58rem; color: rgba(255,255,255,0.5); background: rgba(255,255,255,0.04);
  padding: 2px 7px; border-radius: 8px; white-space: nowrap; max-width: 100%; overflow: hidden; text-overflow: ellipsis;
}
/* Threat level */
.dm-cp-threat { display: inline-block; padding: 1px 8px; border-radius: 8px; font-size: 0.6rem; font-weight: 600; }
.dm-cp-threat-low { background: rgba(80,200,120,0.15); color: rgba(80,200,120,0.9); }
.dm-cp-threat-mid { background: rgba(240,180,40,0.15); color: rgba(240,180,40,0.9); }
.dm-cp-threat-high { background: rgba(220,60,60,0.15); color: rgba(220,60,60,0.9); }
/* Deep monitor toggle */
.dm-cp-toggle { position: relative; display: inline-block; width: 32px; height: 18px; cursor: pointer; vertical-align: middle; }
.dm-cp-toggle input { opacity: 0; width: 0; height: 0; }
.dm-cp-toggle-slider {
  position: absolute; inset: 0; background: rgba(255,255,255,0.1); border-radius: 9px; transition: background 0.25s;
}
.dm-cp-toggle-slider::before {
  content: ''; position: absolute; width: 14px; height: 14px; left: 2px; bottom: 2px;
  background: rgba(255,255,255,0.5); border-radius: 50%; transition: transform 0.25s, background 0.25s;
}
.dm-cp-toggle input:checked + .dm-cp-toggle-slider { background: rgba(80,150,220,0.5); }
.dm-cp-toggle input:checked + .dm-cp-toggle-slider::before { transform: translateX(14px); background: rgba(100,180,255,0.95); }
/* Cross-platform badges */
.dm-cp-xplat { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 4px; }
.dm-cp-xplat-badge {
  display: flex; align-items: center; gap: 3px; font-size: 0.58rem; color: rgba(255,255,255,0.45);
  background: rgba(255,255,255,0.04); padding: 2px 7px; border-radius: 8px;
}
.dm-cp-xplat-badge img { width: 11px; height: 11px; opacity: 0.5; }
/* Groups */
.dm-cp-groups { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 4px; }
.dm-cp-group-tag {
  font-size: 0.58rem; color: rgba(100,180,255,0.8); background: rgba(100,180,255,0.08);
  padding: 2px 7px; border-radius: 8px; cursor: pointer;
}
.dm-cp-group-tag:hover { background: rgba(100,180,255,0.15); }
/* Actions */
.dm-cp-actions { display: flex; flex-wrap: wrap; gap: 6px; padding: 14px 18px; }
.dm-cp-btn {
  flex: 1; min-width: 0; padding: 6px 0; border-radius: 6px; border: 1px solid rgba(255,255,255,0.08);
  background: rgba(255,255,255,0.03); color: rgba(255,255,255,0.55); font-size: 0.62rem;
  cursor: pointer; text-align: center; transition: all 0.2s; white-space: nowrap;
  -webkit-user-select: none !important; user-select: none !important;
}
.dm-cp-btn:hover { background: rgba(255,255,255,0.07); color: rgba(255,255,255,0.8); }
.dm-cp-btn-accent { border-color: rgba(100,180,255,0.2); color: rgba(100,180,255,0.7); }
.dm-cp-btn-accent:hover { background: rgba(100,180,255,0.1); color: rgba(100,180,255,0.9); }
/* Staggered section animation */
.dm-cp-content .dm-cp-section:nth-child(1) { animation: dmCpFadeUp 0.3s 0.05s both; }
.dm-cp-content .dm-cp-section:nth-child(2) { animation: dmCpFadeUp 0.3s 0.12s both; }
.dm-cp-content .dm-cp-section:nth-child(3) { animation: dmCpFadeUp 0.3s 0.19s both; }
.dm-cp-content .dm-cp-section:nth-child(4) { animation: dmCpFadeUp 0.3s 0.26s both; }
.dm-cp-content .dm-cp-actions { animation: dmCpFadeUp 0.3s 0.33s both; }
@keyframes dmCpFadeUp { from { transform: translateY(8px); opacity: 0; } to { transform: translateY(0); opacity: 1; } }
/* Language badge */
.dm-cp-lang { display: inline-block; padding: 1px 7px; border-radius: 8px; font-size: 0.58rem; background: rgba(255,255,255,0.05); color: rgba(255,255,255,0.45); }
/* DM context menu */
.dm-ctx-menu {
  background: rgba(25, 57, 76, 0.4);
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
  border: 0.5px solid rgba(255, 255, 255, 0.12);
  border-radius: 10px;
  padding: 4px 0;
  min-width: 120px;
  box-shadow: 0 4px 16px rgba(0,0,0,0.4);
}
.dm-ctx-item {
  padding: 6px 14px;
  font-size: 0.72rem;
  color: rgba(255,255,255,0.8);
  cursor: pointer;
  transition: background 0.15s ease;
}
.dm-ctx-item:hover { background: rgba(100,180,255,0.12); }
.dm-ctx-item i { margin-right: 6px; opacity: 0.6; font-size: 0.65rem; }
.dm-ctx-danger { color: rgba(220,80,80,0.9); }
.dm-ctx-danger:hover { background: rgba(220,53,69,0.15); color: #dc3545; }
.dm-ctx-separator { height: 1px; background: rgba(255,255,255,0.08); margin: 4px 10px; }
/* DM reply quote bar */
.dm-reply-quote-bar {
  display: flex;
  align-items: center;
  padding: 6px 12px;
  background: rgba(100,180,255,0.08);
  border-left: 3px solid rgba(100,180,255,0.5);
  margin: 0 8px;
  border-radius: 0 6px 6px 0;
  gap: 8px;
}
.dm-reply-bar-content { flex: 1; min-width: 0; overflow: hidden; }
.dm-reply-bar-who { color: rgba(100,200,255,0.8); font-size: 0.68rem; font-weight: 600; margin-right: 6px; }
.dm-reply-bar-text { color: rgba(255,255,255,0.5); font-size: 0.68rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dm-reply-bar-close { background: none; border: none; color: rgba(255,255,255,0.4); cursor: pointer; font-size: 1rem; padding: 0 4px; }
.dm-reply-bar-close:hover { color: rgba(255,255,255,0.8); }
.dm-msg-who { font-size: 0.6rem; color: rgba(100,200,255,0.45); margin-bottom: 2px; font-weight: 500; }
.dm-msg-reply {
  font-size: 0.65rem;
  color: rgba(255,255,255,0.4);
  padding: 4px 8px;
  margin-bottom: 4px;
  border-left: 2px solid rgba(100,180,255,0.4);
  border-radius: 2px;
  background: rgba(100,180,255,0.05);
  max-height: 3em;
  overflow: hidden;
  text-overflow: ellipsis;
}
.dm-reply-sender { color: rgba(100,200,255,0.6); font-weight: 500; margin-right: 4px; font-size: 0.6rem; }
.dm-msg-time { font-size: 0.52rem; color: rgba(255,255,255,0.12); margin-top: 2px; text-align: right; }
.dm-msg, .dm-msg * {
  -webkit-user-select: text !important;
  user-select: text !important;
  cursor: text;
}

.dm-bot-select {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 8px;
  color: rgba(255,255,255,0.7);
  font-size: 0.68rem;
  padding: 5px 10px;
  outline: none;
  max-width: 200px;
}
.dm-bot-select option { background: rgba(26, 42, 58, 0.9); }
.dm-new-chat-btn {
  width: 30px;
  height: 30px;
  margin: 6px auto;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: 1px solid rgba(100,200,255,0.15);
  border-radius: 50%;
  color: rgba(100,200,255,0.6);
  font-size: 1rem;
  cursor: pointer;
  transition: all 0.2s ease;
  flex-shrink: 0;
}
.dm-new-chat-btn:hover {
  background: rgba(100,200,255,0.12);
  border-color: rgba(100,200,255,0.35);
  color: rgba(100,200,255,1);
}
.dm-ctx-menu {
  position: fixed;
  z-index: 9998;
  background: rgba(25, 57, 76, 0.55);
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
  border: 0.5px solid rgba(255, 255, 255, 0.12);
  border-radius: 10px;
  padding: 4px 0;
  min-width: 160px;
  box-shadow: 0 6px 24px rgba(0,0,0,0.5);
  opacity: 0;
  transform: scale(0.95);
  pointer-events: none;
  transition: opacity 0.15s ease, transform 0.15s ease;
}
.dm-ctx-menu.visible {
  opacity: 1;
  transform: scale(1);
  pointer-events: auto;
}
.dm-ctx-item {
  padding: 7px 14px;
  font-size: 0.72rem;
  color: rgba(255,255,255,0.7);
  cursor: pointer;
  transition: background 0.12s ease;
}
.dm-ctx-item:hover {
  background: rgba(255,255,255,0.07);
  color: #eee;
}
.dm-ctx-item:first-child {
  color: rgba(255,100,100,0.8);
}
.dm-ctx-item:first-child:hover {
  background: rgba(255,60,60,0.1);
}
.dm-compose-bar {
  display: flex;
  gap: 0.4rem;
  padding: 10px 14px;
  background: rgba(100,200,255,0.03);
  border-bottom: 1px solid rgba(100,200,255,0.08);
  flex-shrink: 0;
  align-items: center;
}
.dm-compose-bar-select, .dm-compose-bar-input {
  flex: 1;
  min-width: 0;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 8px;
  color: #fff;
  font-size: 0.72rem;
  padding: 6px 10px;
  outline: none;
  transition: border-color 0.2s ease;
}
.dm-compose-bar-select:focus, .dm-compose-bar-input:focus { border-color: rgba(100,200,255,0.3); }
.dm-compose-bar-select option { background: rgba(26, 42, 58, 0.9); }
.dm-compose-bar-input::placeholder { color: rgba(255,255,255,0.2); }
.dm-compose-bar-go {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  border: none;
  background: rgba(100,200,255,0.12);
  color: rgba(100,200,255,0.8);
  font-size: 0.82rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.15s ease;
  flex-shrink: 0;
}
.dm-compose-bar-go:hover { background: rgba(100,200,255,0.22); color: rgba(100,200,255,1); }
.dm-compose-bar-cancel {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  border: none;
  background: transparent;
  color: rgba(255,255,255,0.3);
  font-size: 0.85rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.15s ease;
  flex-shrink: 0;
}
.dm-compose-bar-cancel:hover { color: rgba(255,100,100,0.8); background: rgba(255,100,100,0.08); }

/* --- DM Compose --- */
.dm-compose-body {
  padding: 20px 24px;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.dm-compose-field { display: flex; flex-direction: column; gap: 0.3rem; }
.dm-compose-label {
  color: rgba(255,255,255,0.35);
  font-size: 0.62rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.dm-compose-select, .dm-compose-input, .dm-compose-textarea {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 8px;
  color: #fff;
  font-size: 0.78rem;
  padding: 8px 12px;
  outline: none;
  transition: border-color 0.2s ease;
  width: 100%;
}
.dm-compose-select:focus, .dm-compose-input:focus, .dm-compose-textarea:focus {
  border-color: rgba(100,200,255,0.3);
}
.dm-compose-select option { background: rgba(26, 42, 58, 0.9); }
.dm-compose-textarea { resize: vertical; min-height: 80px; line-height: 1.5; }
.dm-compose-send-btn {
  background: linear-gradient(135deg, rgba(60,140,200,0.25), rgba(80,160,220,0.2));
  border: 1px solid rgba(100,200,255,0.2);
  border-radius: 8px;
  color: rgba(100,200,255,0.9);
  font-size: 0.75rem;
  padding: 8px 20px;
  cursor: pointer;
  transition: all 0.15s ease;
}
.dm-compose-send-btn:hover { background: rgba(100,200,255,0.2); border-color: rgba(100,200,255,0.4); }
.dm-compose-status { font-size: 0.72rem; }
.dm-compose-recent {
  padding: 0 24px 20px;
  border-top: 1px solid rgba(255,255,255,0.04);
}
.dm-compose-recent-header {
  color: rgba(255,255,255,0.25);
  font-size: 0.6rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 12px 0 6px;
}

@keyframes shake {
  0%, 100% { transform: translateX(0); }
  20%, 60% { transform: translateX(-8px); }
  40%, 80% { transform: translateX(8px); }
}
.shake { animation: shake 0.4s ease-in-out; }

/* ── Hide hamburger, never collapse navbar ── */
.navbar-toggler { display: none !important; }
.navbar-collapse { display: flex !important; }

/* ── Redactify button ── */
.redact-btn {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 9999;
  padding: 6px 14px;
  border: none;
  border-radius: 20px;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  cursor: pointer;
  background: rgba(60,130,200,0.3);
  color: rgba(100,180,255,0.9);
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
  transition: background 0.25s ease, color 0.25s ease, box-shadow 0.25s ease;
  box-shadow: 0 0 8px rgba(60,130,200,0.15);
}
.redact-btn:hover {
  background: rgba(60,130,200,0.45);
  color: #fff;
}
.redact-btn.active {
  background: rgba(50,180,100,0.3);
  color: rgba(100,255,150,0.9);
  box-shadow: 0 0 10px rgba(50,180,100,0.2);
}
.redact-btn.active:hover {
  background: rgba(50,180,100,0.45);
  color: #fff;
}

/* ── Redaction blur rules ── */
/* Elements that can be redacted — always have transition ready */
.bot-card-name, .bot-card-username, .bot-card-avatar,
.bot-edit-field, .allow-select, .admin-user-link,
.dm-convo-name, .dm-msg-who, .dm-chat-header-text,
.search-result-name, .search-result-meta, .ip-loc,
.navbar-brand, .custom-link, #context-chat-title,
.compose-bot-option, #compose-bot-toggle,
.dm-convo-preview, #dm-bot-toggle, .dm-bot-option,
.search-result-bot, .pii {
  transition: filter 0.4s ease;
}
body.redacted .bot-card-name,
body.redacted .bot-card-username,
body.redacted .bot-card-avatar,
body.redacted .bot-edit-field,
body.redacted .allow-select,
body.redacted .admin-user-link,
body.redacted .dm-convo-name,
body.redacted .dm-msg-who,
body.redacted .dm-chat-header-text,
body.redacted .search-result-name,
body.redacted .search-result-meta,
body.redacted .ip-loc,
body.redacted .navbar-brand,
body.redacted .custom-link,
body.redacted #context-chat-title,
body.redacted .compose-bot-option,
body.redacted #compose-bot-toggle,
body.redacted .dm-convo-preview,
body.redacted #dm-bot-toggle,
body.redacted .dm-bot-option,
body.redacted .search-result-bot,
body.redacted .pii,
body.redacted .af-desc,
body.redacted .af-time,
body.redacted .article-text,
body.redacted .log-metadata,
body.redacted .log-desc {
  filter: blur(5px);
  user-select: none;
  pointer-events: none;
}
/* SVG entity label redaction — handled via JS MutationObserver (text replaced with "Redacted") */
/* Breadcrumb navigation */
#ngv-breadcrumb {
  transition: opacity 0.3s ease;
}
#ngv-breadcrumb > span {
  animation: breadcrumbIn 0.3s ease forwards;
  opacity: 0;
}
@keyframes breadcrumbIn {
  from { opacity: 0; transform: translateX(-6px); }
  to { opacity: 1; transform: translateX(0); }
}
#ngv-breadcrumb span:hover {
  color: rgba(100, 180, 255, 1) !important;
}
/* Admin panel user table — username, email (template-rendered, no .pii class) */
body.redacted tr[id^="user-row-"] td:nth-child(1),
body.redacted tr[id^="user-row-"] td:nth-child(2) {
  filter: blur(5px);
  user-select: none;
  transition: filter 0.4s ease;
}

/* ── UI Enhancements (CSS-only) ── */

/* Text rendering — crisper on dark backgrounds */
body {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

/* Custom scrollbars */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: rgba(0, 0, 0, 0.1); }
::-webkit-scrollbar-thumb { background: rgba(100, 180, 255, 0.15); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: rgba(100, 180, 255, 0.3); }
* { scrollbar-width: thin; scrollbar-color: rgba(100, 180, 255, 0.15) transparent; }

/* Custom selection color */
::selection { background: rgba(100, 180, 255, 0.25); color: #fff; }

/* Button hover lift */
.btn {
  transition: transform 0.15s ease, border-color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}
.btn:hover {
  transform: translateY(-1px);
}
.btn:active {
  transform: translateY(0);
}

/* Panel hover glow (preserve existing fade transitions) */
.panel-section:not(.fade):not(.fade-in) {
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}
.panel-section.fade, .panel-section.fade-in {
  transition: opacity 1s ease, transform 1s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}
.panel-section:hover {
  border-color: rgba(100, 180, 255, 0.12);
  box-shadow: 0 0 20px rgba(100, 180, 255, 0.02);
}

/* Table row hover */
.admin-table tr {
  transition: background 0.2s ease;
}
.admin-table tr:hover {
  background: rgba(100, 180, 255, 0.03) !important;
}

/* Input focus glow */
input:focus, textarea:focus, select:focus {
  border-color: rgba(100, 180, 255, 0.4) !important;
  box-shadow: 0 0 0 2px rgba(100, 180, 255, 0.06);
  outline: none;
}

/* Badge subtle depth */
.badge {
  transition: transform 0.15s ease;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}

/* Navbar active link indicator */
.nav-item.active .nav-link::after,
.custom-link.active::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 70%;
  height: 2px;
  background: rgba(100, 180, 255, 0.6);
  border-radius: 1px;
}

/* Card depth layering */
.modal-box {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2), 0 16px 48px rgba(0, 0, 0, 0.4), 0 0 1px rgba(100, 180, 255, 0.1) !important;
}

/* Smooth link hovers */
a.custom-link, .log-button {
  transition: color 0.2s ease, opacity 0.2s ease;
}
a.custom-link:hover, .log-button:hover {
  opacity: 1;
}

/* Activity log entry hover (preserve fade-in transition) */
.activitylog-section {
  transition: opacity 1s ease, transform 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94), border-color 0.5s ease, box-shadow 0.6s ease;
}
.activitylog-section:hover {
  border-color: rgba(100, 180, 255, 0.15);
  box-shadow: 0 4px 20px rgba(0, 140, 255, 0.08), 0 0 40px rgba(0, 140, 255, 0.04);
}

/* Filter select hover */
.filter-select {
  transition: border-color 0.2s ease, background 0.2s ease;
}
.filter-select:hover {
  border-color: rgba(255, 255, 255, 0.2);
}

/* ── Activity Feed ── */
.af-event {
  display: flex;
  gap: 12px;
  padding: 12px 16px;
  margin-bottom: 6px;
  border-radius: 8px;
  background: rgba(25, 57, 76, 0.35);
  backdrop-filter: blur(30px);
  -webkit-backdrop-filter: blur(30px);
  border: 0.5px solid #6a7d944d;
  transition: border-color 0.2s ease, opacity 0.4s ease, transform 0.4s ease;
  position: relative;
}
.af-event:hover { border-color: rgba(106, 125, 148, 0.5); }
.af-event .af-desc, .af-event .af-time, .af-event .af-meta { -webkit-user-select: text !important; user-select: text !important; cursor: text; }
#af-wipe-btn { -webkit-user-select: none !important; user-select: none !important; }
.af-del-btn {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 22px;
  height: 22px;
  border: none;
  border-radius: 50%;
  background: transparent;
  color: rgba(255, 255, 255, 0.4);
  font-size: 9px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.4s ease;
  opacity: 0;
}
.af-event:hover .af-del-btn { opacity: 1; }
.af-del-btn:hover { background: rgba(220, 53, 69, 0.15); color: #dc3545; }
/* Activity feed theme overrides */
.theme-storm .af-event { background: rgba(35, 35, 42, 0.4); border-color: rgba(255, 255, 255, 0.1); }
.theme-storm .af-event:hover { border-color: rgba(255, 255, 255, 0.18); }
.theme-midnight .af-event { background: rgba(16, 18, 26, 0.5); border-color: rgba(255,255,255,0.06); }
.theme-midnight .af-event:hover { border-color: rgba(255,255,255,0.12); }
.theme-incognito .af-event { background: rgba(32, 33, 36, 0.9); border-color: rgba(255, 255, 255, 0.06); }
.theme-incognito .af-event:hover { border-color: rgba(255, 255, 255, 0.12); }
.theme-incognito .af-icon.detection { background: rgba(220, 53, 69, 0.1); }
.theme-incognito .af-icon.entity { background: rgba(100, 180, 255, 0.08); }
.theme-incognito .af-icon.threat { background: rgba(255, 193, 7, 0.1); }
.theme-incognito .af-icon.user { background: rgba(40, 167, 69, 0.1); }
.theme-incognito .af-icon.osint { background: rgba(153, 102, 255, 0.1); }
.theme-incognito .af-desc { color: rgba(255, 255, 255, 0.75); }
.theme-incognito .af-time { color: rgba(255, 255, 255, 0.2); }
.af-icon {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  flex-shrink: 0;
}
.af-icon.detection { background: rgba(220, 53, 69, 0.15); color: #dc3545; }
.af-icon.entity { background: rgba(100, 180, 255, 0.12); color: rgba(100, 180, 255, 0.9); }
.af-icon.threat { background: rgba(255, 193, 7, 0.15); color: #ffc107; }
.af-icon.user { background: rgba(40, 167, 69, 0.15); color: #28a745; }
.af-icon.osint { background: rgba(153, 102, 255, 0.15); color: #9966ff; }
.af-icon.monitor { background: rgba(255, 200, 60, 0.15); color: rgba(255, 200, 60, 0.9); }
.af-icon.merge { background: rgba(75, 192, 192, 0.15); color: #4bc0c0; }
.af-icon.report { background: rgba(255, 159, 64, 0.15); color: #ff9f40; }
.af-icon.hids { background: rgba(255, 140, 50, 0.15); color: rgba(255, 160, 70, 0.95); }
.af-body { flex: 1; min-width: 0; -webkit-user-select: text !important; user-select: text !important; cursor: text; }
.af-desc {
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.78rem;
  line-height: 1.4;
}
.af-time {
  color: rgba(255, 255, 255, 0.25);
  font-size: 0.65rem;
  margin-top: 3px;
}
.af-badge {
  display: inline-block;
  font-size: 0.6rem;
  padding: 1px 6px;
  border-radius: 3px;
  margin-right: 4px;
  font-weight: 500;
}

/* ── Toast Notifications ── */
.vio-toast {
  min-width: 280px;
  max-width: 380px;
  background: rgba(25, 57, 76, 0.55);
  backdrop-filter: blur(30px);
  -webkit-backdrop-filter: blur(30px);
  border: 0.5px solid #6a7d944d;
  border-radius: 10px;
  padding: 12px 16px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
  pointer-events: auto;
  animation: toastSlideIn 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  transition: opacity 0.4s ease, transform 0.4s ease;
  cursor: pointer;
}
.vio-toast.dismissing {
  opacity: 0;
  transform: translateX(40px);
}
.vio-toast-header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 6px;
}
.vio-toast-icon {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  flex-shrink: 0;
}
.vio-toast-icon.threat { background: rgba(220, 53, 69, 0.2); color: #dc3545; }
.vio-toast-icon.terror { background: rgba(255, 193, 7, 0.2); color: #ffc107; }
.vio-toast-icon.info { background: rgba(100, 180, 255, 0.15); color: rgba(100, 180, 255, 0.9); }
.vio-toast-icon.hids { background: rgba(255, 140, 50, 0.2); color: rgba(255, 160, 70, 0.95); }
.vio-toast-title {
  font-size: 0.75rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.9);
}
.vio-toast-time {
  font-size: 0.6rem;
  color: rgba(255, 255, 255, 0.25);
  margin-left: auto;
}
.vio-toast-body {
  font-size: 0.72rem;
  color: rgba(255, 255, 255, 0.6);
  line-height: 1.4;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}
.vio-toast-progress {
  height: 2px;
  background: rgba(100, 180, 255, 0.3);
  border-radius: 0 0 10px 10px;
  margin: 8px -16px -12px;
  transition: width linear;
}
@keyframes toastSlideIn {
  from { opacity: 0; transform: translateX(60px); }
  to { opacity: 1; transform: translateX(0); }
}
.theme-storm .vio-toast { background: rgba(80, 85, 95, 0.15); }
.theme-midnight .vio-toast { background: rgba(10, 12, 20, 0.95); }
.theme-incognito .vio-toast { display: none !important; }

/* ── Copy Button ── */
.copy-btn {
  border: none;
  background: rgba(100, 180, 255, 0.08);
  color: rgba(100, 180, 255, 0.6);
  font-size: 9px;
  padding: 2px 5px;
  border-radius: 3px;
  cursor: pointer;
  margin-left: 4px;
  transition: all 0.15s ease;
  vertical-align: middle;
}
.copy-btn:hover { background: rgba(100, 180, 255, 0.2); color: rgba(100, 180, 255, 1); }
.copy-btn.copied { background: rgba(40, 167, 69, 0.15); color: #28a745; }

/* ── Global Page Insights Bar ── */
.page-insights-bar {
  position: fixed;
  top: 62px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 9000;
  max-width: 720px;
  width: 90%;
  background: rgba(25, 57, 76, 0.55);
  backdrop-filter: blur(30px);
  -webkit-backdrop-filter: blur(30px);
  border: 0.5px solid #6a7d944d;
  border-radius: 10px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
  overflow: hidden;
  animation: insightsSlideUp 0.4s ease-out;
  transition: opacity 0.3s ease, transform 0.3s ease;
}
.page-insights-bar.dismissed {
  opacity: 0;
  transform: translateX(-50%) translateY(-12px);
  pointer-events: none;
}
.page-insights-inner {
  display: flex;
  align-items: center;
  padding: 10px 14px;
  gap: 10px;
}
.page-insights-icon {
  color: rgba(255, 200, 60, 0.7);
  font-size: 13px;
  flex-shrink: 0;
}
.page-insights-track {
  flex: 1;
  min-width: 0;
  overflow: hidden;
}
.page-insights-slide {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.76rem;
  line-height: 1.5;
  transition: opacity 0.4s ease;
}
.page-insights-controls {
  display: flex;
  align-items: center;
  gap: 4px;
  flex-shrink: 0;
}
.page-insights-arrow {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: none;
  background: rgba(255, 255, 255, 0.05);
  color: rgba(255, 255, 255, 0.4);
  font-size: 9px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.15s ease;
}
.page-insights-arrow:hover {
  background: rgba(100, 180, 255, 0.12);
  color: rgba(100, 180, 255, 0.9);
}
.page-insights-counter {
  color: rgba(255, 255, 255, 0.25);
  font-size: 0.62rem;
  min-width: 30px;
  text-align: center;
  transition: opacity 0.4s ease;
}
.page-insights-dismiss {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: none;
  background: rgba(255, 255, 255, 0.04);
  color: rgba(255, 255, 255, 0.3);
  font-size: 9px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: all 0.15s ease;
}
.page-insights-dismiss:hover {
  background: rgba(255, 80, 80, 0.12);
  color: rgba(255, 100, 100, 0.9);
}
.page-insights-progress {
  height: 2px;
  background: rgba(100, 180, 255, 0.3);
  width: 0%;
  transition: width 8s linear;
}
.page-insights-gotit {
  border: none;
  background: rgba(100, 180, 255, 0.1);
  color: rgba(100, 180, 255, 0.8);
  font-size: 0.65rem;
  padding: 3px 10px;
  border-radius: 4px;
  cursor: pointer;
  flex-shrink: 0;
  font-weight: 500;
  transition: all 0.15s ease;
}
.page-insights-gotit:hover {
  background: rgba(100, 180, 255, 0.2);
  color: rgba(100, 180, 255, 1);
}
/* Pull-tab to reopen insights */
.page-insights-tab {
  position: fixed;
  top: 56px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 8999;
  width: 36px;
  height: 20px;
  background: rgba(25, 57, 76, 0.55);
  backdrop-filter: blur(30px);
  -webkit-backdrop-filter: blur(30px);
  border: 0.5px solid #6a7d944d;
  border-top: none;
  border-radius: 0 0 8px 8px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  color: rgba(255, 200, 60, 0.5);
  transition: all 0.2s ease;
  animation: tabSlideDown 0.3s ease-out;
}
.page-insights-tab:hover {
  height: 24px;
  color: rgba(255, 200, 60, 1);
  background: rgba(20, 40, 65, 0.95);
  border-color: rgba(100, 180, 255, 0.25);
}
@keyframes tabSlideDown {
  from { opacity: 0; height: 0; }
  to { opacity: 1; height: 20px; }
}
/* Theme overrides for insights */
.theme-storm .page-insights-bar, .theme-storm .page-insights-tab,
.theme-storm .vio-toast, .theme-storm .notification { background: rgba(80, 85, 95, 0.13); border-color: rgba(255, 255, 255, 0.12); }
.theme-midnight .page-insights-bar, .theme-midnight .page-insights-tab,
.theme-midnight .vio-toast, .theme-midnight .notification { background: rgba(16, 18, 26, 0.5); border-color: rgba(255,255,255,0.06); }
.theme-incognito .page-insights-bar { display: none !important; }
.theme-incognito .page-insights-tab { display: none !important; }
.theme-incognito .vio-toast { background: #242526; border-color: #3A3B3C; }
.theme-incognito .notification { background: #242526; border-color: #3A3B3C; }
@keyframes insightsSlideUp {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ── OSINT Search Engine ── */
.osint-result-card {
  background: rgba(20, 35, 55, 0.6);
  border: 1px solid rgba(100, 180, 255, 0.08);
  border-radius: 10px;
  padding: 14px 18px;
  transition: border-color 0.2s ease, transform 0.15s ease;
}
.osint-result-card:hover {
  border-color: rgba(100, 180, 255, 0.2);
  transform: translateY(-1px);
}
.osint-field {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 3px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.03);
}
.osint-field:last-child { border-bottom: none; }
.osint-field-label {
  color: rgba(255, 255, 255, 0.35);
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  flex-shrink: 0;
  width: 70px;
}
.osint-field-value {
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.76rem;
  text-align: right;
  word-break: break-all;
}
.osint-field-value.pii-field {
  color: rgba(255, 200, 100, 0.8);
}
.osint-pivot-btn {
  border: none;
  background: rgba(100, 180, 255, 0.08);
  color: rgba(100, 180, 255, 0.7);
  font-size: 0.6rem;
  padding: 1px 6px;
  border-radius: 3px;
  cursor: pointer;
  margin-left: 4px;
  transition: all 0.15s ease;
}
.osint-pivot-btn:hover {
  background: rgba(100, 180, 255, 0.2);
  color: rgba(100, 180, 255, 1);
}
.osint-tree-node {
  padding: 4px 8px;
  margin: 2px 0;
  border-radius: 4px;
  cursor: pointer;
  font-size: 0.72rem;
  color: rgba(255, 255, 255, 0.7);
  transition: background 0.15s ease;
  display: flex;
  align-items: center;
  gap: 6px;
}
.osint-tree-node:hover { background: rgba(100, 180, 255, 0.08); }
.osint-tree-node.active { background: rgba(100, 180, 255, 0.12); color: rgba(100, 180, 255, 0.9); }
.osint-tree-indent { padding-left: 16px; border-left: 1px solid rgba(100, 180, 255, 0.1); margin-left: 8px; }
.osint-history-item {
  padding: 5px 8px;
  margin: 2px 0;
  border-radius: 4px;
  cursor: pointer;
  font-size: 0.7rem;
  color: rgba(255, 255, 255, 0.5);
  transition: background 0.15s ease;
}
.osint-history-item:hover { background: rgba(255, 255, 255, 0.04); color: rgba(255, 255, 255, 0.8); }
.osint-db-badge {
  display: inline-block;
  background: rgba(255, 99, 132, 0.12);
  color: rgba(255, 99, 132, 0.8);
  font-size: 0.62rem;
  padding: 1px 6px;
  border-radius: 3px;
  font-weight: 500;
}

/* ── System Metrics Dashboard ── */
.metrics-gauge-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}
.metrics-gauge-ring {
  position: relative;
  width: 100px;
  height: 100px;
}
.metrics-gauge-ring svg {
  width: 100%;
  height: 100%;
  transform: rotate(-90deg);
}
.metrics-gauge-ring .mg-bg {
  fill: none;
  stroke: rgba(255, 255, 255, 0.06);
  stroke-width: 6;
}
.metrics-gauge-ring .mg-fill {
  fill: none;
  stroke: rgba(100, 180, 255, 0.8);
  stroke-width: 6;
  stroke-linecap: round;
  stroke-dasharray: 264;
  stroke-dashoffset: 264;
  transition: stroke-dashoffset 0.8s ease, stroke 0.5s ease;
}
.mg-value {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 1.1rem;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.9);
  letter-spacing: -0.02em;
}
.mg-label {
  font-size: 0.68rem;
  color: rgba(255, 255, 255, 0.4);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.mg-fill.mg-green { stroke: #28a745; }
.mg-fill.mg-yellow { stroke: #ffc107; }
.mg-fill.mg-orange { stroke: #fd7e14; }
.mg-fill.mg-red { stroke: #dc3545; }
.metrics-service-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 6px 10px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.02);
  font-size: 0.78rem;
}
.metrics-service-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}
.metrics-service-dot.online { background: #28a745; box-shadow: 0 0 6px rgba(40, 167, 69, 0.4); }
.metrics-service-dot.offline { background: #dc3545; box-shadow: 0 0 6px rgba(220, 53, 69, 0.4); }

/* ── Theme selector ── */
.theme-option {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 6px 10px;
  border: 2px solid rgba(255,255,255,0.06);
  border-radius: 8px;
  background: transparent;
  cursor: pointer;
  transition: border-color 0.2s ease, background 0.2s ease;
}
.theme-option:hover { border-color: rgba(255,255,255,0.15); background: rgba(255,255,255,0.03); }
.theme-option.theme-active { border-color: rgba(120,120,130,0.6); background: rgba(120,120,130,0.08); }
body.theme-storm .theme-option.theme-active { border-color: rgba(80,80,90,0.6); background: rgba(80,80,90,0.1); }
.theme-preview {
  width: 60px;
  height: 36px;
  border-radius: 4px;
  border: 1px solid rgba(255,255,255,0.08);
}
.theme-preview-default { background: linear-gradient(135deg, #0a1628 0%, #132840 50%, #1a3a5c 100%); }
.theme-preview-storm { background: linear-gradient(135deg, #1a1a1e 0%, #2a2a30 50%, #38383f 100%); }
.theme-preview-midnight { background: linear-gradient(135deg, #0e1014 0%, #141620 50%, #1a1e2a 100%); }
.theme-preview-incognito { background: linear-gradient(135deg, #1877F2 0%, #242526 40%, #18191A 100%); }
.theme-label { color: rgba(255,255,255,0.5); font-size: 0.62rem; }

/* ── Storm Theme — frosted glass ── */
body.theme-storm {
  background: #1a1a1e;
  color: #fff;
}
.theme-storm { color: rgba(255, 255, 255, 0.88); }
.theme-storm a, .theme-storm span, .theme-storm div, .theme-storm p,
.theme-storm small, .theme-storm i, .theme-storm b, .theme-storm strong,
.theme-storm label, .theme-storm td, .theme-storm th,
.theme-storm li, .theme-storm input, .theme-storm select, .theme-storm textarea {
  color: inherit;
}
.theme-storm .metric-cpu { color: rgba(168, 255, 254, 0.8); }
.theme-storm .metric-ram { color: rgba(250, 250, 250, 0.8); }
.theme-storm .metric-disk { color: rgba(168, 194, 255, 0.8); }
.theme-storm .metric-net { color: rgba(185, 168, 255, 0.8); }
.theme-storm .metric-storage { color: rgba(162, 253, 172, 0.8); }
.theme-storm .metric-media { color: rgba(255, 200, 100, 0.8); }
.theme-storm h1, .theme-storm h2, .theme-storm h3,
.theme-storm h4, .theme-storm h5, .theme-storm h6,
.theme-storm .navbar-brand,
.theme-storm .site-header .navbar-nav .nav-link:hover { color: #fff; }
.theme-storm .log-desc, .theme-storm .panel-label,
.theme-storm .panel-section-label, .theme-storm .metric-label { color: rgba(255, 255, 255, 0.5); }
.theme-storm .article-text, .theme-storm .log-text { color: rgba(255, 255, 255, 0.8); }
.theme-storm .total-entries, .theme-storm .custom-link { color: rgba(255, 255, 255, 0.65); }
/* Preserve danger badge white-on-red */
.theme-storm .badge-danger, .theme-storm .nav-badge.badge-danger { color: #fff !important; }
/* Increased blur for frosted glass effect */
.theme-storm .content-section, .theme-storm .report-section, .theme-storm .chart-section,
.theme-storm .login-section, .theme-storm .getcode-section, .theme-storm .activitylog-section,
.theme-storm .removebot-section, .theme-storm .account-alive-section, .theme-storm .account-dead-section,
.theme-storm .panel-section, .theme-storm .notification {
  backdrop-filter: blur(70px);
  -webkit-backdrop-filter: blur(70px);
}
.theme-storm .custom-navbar::before {
  background-color: rgba(80, 85, 95, 0.14);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}
.theme-storm .sidebar-shell::before,
.theme-storm .dropdown-menu::before {
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}
.theme-storm .submenu::before,
.theme-storm .small-submenu::before {
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}
.theme-storm .custom-navbar {
  background-color: transparent !important;
}
.theme-storm .dropdown-menu::before {
  background-color: rgba(80, 85, 95, 0.13);
  border-radius: 10px;
  border: 0.5px solid rgba(255, 255, 255, 0.15);
}
.theme-storm .submenu::before,
.theme-storm .small-submenu::before {
  background-color: rgba(80, 85, 95, 0.13);
  border-radius: 10px;
  border: 0.5px solid rgba(255, 255, 255, 0.15);
}
.theme-storm .small-submenu .dropdown-submenu-nested > .tiny-submenu::before {
  background-color: rgba(80, 85, 95, 0.13);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-radius: 10px;
  border: 0.5px solid rgba(255, 255, 255, 0.15);
}
.theme-storm .tiny-submenu .dropdown-submenu-nested > .tiny-submenu {
  background-color: rgba(80, 85, 95, 0.13);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  border-radius: 10px;
  border: 0.5px solid rgba(255, 255, 255, 0.12);
}
.theme-storm .small-submenu .dropdown-item:hover,
.theme-storm .tiny-submenu .dropdown-item:hover { background: rgba(255, 255, 255, 0.1); color: #fff; }
.theme-storm .sidebar-shell {
  background-color: transparent;
}
.theme-storm .sidebar-shell::before {
  background-color: rgba(80, 85, 95, 0.14);
}
.theme-storm .side-panel a,
.theme-storm .side-panel .panel-btn,
.theme-storm .sidebar-shell a,
.theme-storm .admin-tab,
.theme-storm .dropdown-item,
.theme-storm .dropdown-submenu { color: rgba(255, 255, 255, 0.85) !important; }
.theme-storm .side-panel a:hover,
.theme-storm .side-panel .panel-btn:hover,
.theme-storm .admin-tab:hover,
.theme-storm .dropdown-item:hover { color: #fff !important; }
.theme-storm .content-section,
.theme-storm .panel-section {
  background-color: rgba(80, 85, 95, 0.15);
}
.theme-storm .account-dead-section {
  background-color: rgba(80, 85, 95, 0.15);
}
.theme-storm .bot-card:hover {
  background: rgba(255,255,255,0.03);
  box-shadow: 0 4px 20px rgba(180, 200, 230, 0.12), 0 0 50px rgba(180, 200, 230, 0.06);
}
/* DM interface */
.theme-storm .dm-sidebar { background: rgba(80, 85, 95, 0.07); }
.theme-storm .dm-contact-panel { background: rgba(80, 85, 95, 0.05); }
.theme-storm .dm-chat-header { background: rgba(80, 85, 95, 0.07); }
.theme-storm .dm-reply-box { background: rgba(80, 85, 95, 0.07); }
.theme-storm .dm-convo-item { border-bottom-color: rgba(255,255,255,0.04); }
/* All containers — dark frosted glass */
.theme-storm .content-section,
.theme-storm .report-section,
.theme-storm .chart-section,
.theme-storm .activitylog-section,
.theme-storm .removebot-section,
.theme-storm .account-alive-section,
.theme-storm .account-dead-section,
.theme-storm .panel-section,
.theme-storm .bot-card,
.theme-storm .notif-row,
.theme-storm .auth-log-row,
.theme-storm .af-event {
  background:
    linear-gradient(
      135deg,
      rgba(255,255,255,0.06) 0%,
      rgba(255,255,255,0.015) 35%,
      rgba(255,255,255,0) 50%,
      rgba(255,255,255,0.02) 65%,
      rgba(255,255,255,0.05) 100%
    ),
    rgba(35, 35, 42, 0.4);
  border-color: rgba(255, 255, 255, 0.1);
}
.theme-storm .chart-section, .theme-storm .mini-chart-section { background-color: rgba(30, 30, 35, 0.6); }
.theme-storm .activitylog-section { background-color: rgba(35, 35, 42, 0.4); }
.theme-storm .notif-row { border-bottom-color: rgba(255,255,255,0.05); }
.theme-storm .auth-log-row { border-bottom-color: rgba(255,255,255,0.05); }
/* Log buttons */
.theme-storm .log-button, .theme-storm .report-log-button {
  opacity: 0.75;
  transition: all 0.3s ease;
}
.theme-storm .log-button:hover, .theme-storm .report-log-button:hover {
  opacity: 1;
  background: rgba(104, 172, 254, 0.25);
  color: rgb(210, 210, 210) !important;
}
.theme-storm .notification-info { background: rgba(255, 255, 255, 0.06); border-color: rgba(255, 255, 255, 0.1); }
.theme-storm .notification-danger { background: rgba(255, 80, 80, 0.08); border-color: rgba(255, 80, 80, 0.15); }
.theme-storm .nav-icon-link { background: rgba(255,255,255,0.06); }
.theme-storm .nav-icon-link:hover { background: rgba(255,255,255,0.12) !important; }
.theme-storm .nav-item.show > .nav-icon-link { background: rgba(255,255,255,0.15) !important; }
.theme-storm .modal-overlay { background: rgba(0, 0, 0, 0.6); }
.theme-storm .modal-box,
.theme-storm .confirm-box { background: rgba(30, 45, 65, 0.4); backdrop-filter: blur(5px); -webkit-backdrop-filter: blur(5px); border: 1px solid rgba(255,255,255,0.12); }
.theme-storm .ngv-dossier-modal { background: rgba(30, 45, 65, 0.4) !important; backdrop-filter: blur(12px) !important; -webkit-backdrop-filter: blur(12px) !important; border: 1px solid rgba(255,255,255,0.12) !important; }
.theme-storm .bot-context-menu, .theme-storm .ngv-context-menu,
.theme-storm .dm-ctx-menu, .theme-storm .ctx-submenu,
.theme-storm .dm-lang-menu {
  background: rgba(30, 45, 65, 0.4);
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
  border: 0.5px solid rgba(255, 255, 255, 0.12);
  border-radius: 10px;
}
.theme-storm .dm-convo-item:hover { background: rgba(255,255,255,0.06); }
.theme-storm .dm-convo-active { background: rgba(255, 255, 255, 0.08) !important; }
.theme-storm .notif-row { border-bottom-color: rgba(255,255,255,0.04); }
.theme-storm .notif-unread { background: rgba(255, 255, 255, 0.06); }
.theme-storm .redact-btn { background: rgba(255, 255, 255, 0.08); color: rgba(255, 255, 255, 0.6); }
.theme-storm .redact-btn.active { background: rgba(80, 200, 120, 0.15); color: rgba(100, 255, 150, 0.9); }

/* Storm — frosted glass panels */
.theme-storm .separator { border-color: rgba(255,255,255,0.08); }
.theme-storm .badge-info { background: rgba(255,255,255,0.15); }
.theme-storm .badge-primary { background: rgba(255,255,255,0.12); }
.theme-storm .badge-success { background: rgba(255,255,255,0.12); }
.theme-storm .badge-danger { background: rgba(255,80,80,0.3); }
.theme-storm .nav-badge.badge-info { background: rgba(255,255,255,0.25); }
.theme-storm .nav-badge.badge-danger { background: rgba(210,70,70,0.8); }
.theme-storm .btn-outline-info { color: rgba(255,255,255,0.7); border-color: rgba(255,255,255,0.15); }
.theme-storm .btn-outline-info:hover { color: #fff; background: rgba(255,255,255,0.1); }
.theme-storm .btn-outline-danger { color: rgba(255,130,130,0.8); border-color: rgba(255,80,80,0.25); }
.theme-storm .btn-outline-danger:hover { color: #fff; background: rgba(200,60,60,0.5); }
.theme-storm .admin-action-btn { border-color: rgba(255,255,255,0.1); }
.theme-storm .admin-action-btn:hover { background: rgba(255,255,255,0.08); }
.theme-storm .filter-search,
.theme-storm .dm-search-input { color: #ddd; background: rgba(255,255,255,0.04); border-color: rgba(255,255,255,0.1); }
.theme-storm .filter-select { color: rgba(255,255,255,0.7); border-color: rgba(255,255,255,0.1); }
.theme-storm .custom-select-trigger { color: rgba(255,255,255,0.7); border-color: rgba(255,255,255,0.1); }
.theme-storm .custom-select-panel { background: rgba(80, 85, 95, 0.15); backdrop-filter: blur(70px); -webkit-backdrop-filter: blur(70px); border-radius: 10px; border: 0.5px solid rgba(255, 255, 255, 0.15); }
.theme-storm .line { background: rgba(255,255,255,0.06); }
.theme-storm ::selection { background: rgba(255,255,255,0.2); color: #fff; }
.theme-storm .menu-icon { opacity: 0.5; }
.theme-storm .dm-date-float { background: rgba(255,255,255,0.07); }
.theme-storm .dm-msg-in { background: rgba(255,255,255,0.04); }
.theme-storm .dm-msg-out { background: rgba(255,255,255,0.07); }
.theme-storm ::-webkit-scrollbar-track { background: transparent; }
.theme-storm ::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.15); }
.theme-storm ::-webkit-scrollbar-thumb:hover { background: rgba(255,255,255,0.25); }

/* ── Midnight Theme ── */
body.theme-midnight { background: #0e1014; }
.theme-midnight .custom-navbar { background-color: transparent !important; }
.theme-midnight .custom-navbar::before { background-color: rgba(16, 18, 26, 0.5); }
.theme-midnight .dropdown-menu::before { background-color: rgba(18, 20, 28, 0.55); }
.theme-midnight .submenu::before,
.theme-midnight .small-submenu::before {
  background-color: rgba(18, 20, 28, 0.55);
}
.theme-midnight .small-submenu .dropdown-submenu-nested > .tiny-submenu::before { background-color: rgba(18, 20, 28, 0.55); }
.theme-midnight .tiny-submenu .dropdown-submenu-nested > .tiny-submenu { background-color: rgba(18, 20, 28, 0.55); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.theme-midnight .small-submenu .dropdown-item,
.theme-midnight .tiny-submenu .dropdown-item,
.theme-midnight .small-submenu .dropdown-submenu-nested > .dropdown-item { color: rgba(170, 180, 200, 0.8); }
.theme-midnight .small-submenu .dropdown-item:hover,
.theme-midnight .tiny-submenu .dropdown-item:hover { background: rgba(80, 140, 255, 0.1); color: rgba(200, 220, 255, 0.95); }
.theme-midnight .sidebar-shell { background-color: transparent; }
.theme-midnight .sidebar-shell::before { background-color: rgba(14, 16, 22, 0.5); }
.theme-midnight .content-section,
.theme-midnight .report-section,
.theme-midnight .chart-section,
.theme-midnight .activitylog-section,
.theme-midnight .removebot-section,
.theme-midnight .account-alive-section,
.theme-midnight .panel-section,
.theme-midnight .bot-card,
.theme-midnight .notif-row,
.theme-midnight .auth-log-row {
  background-color: rgba(16, 18, 26, 0.5);
  border-color: rgba(255,255,255,0.06);
}
.theme-midnight .account-dead-section { background-color: rgba(30, 16, 16, 0.5); border-color: rgba(255,255,255,0.06); }
.theme-midnight .activitylog-section { background-color: rgba(16, 18, 26, 0.45); }
.theme-midnight .bot-card:hover { background: rgba(255,255,255,0.02); box-shadow: 0 6px 24px rgba(100, 120, 180, 0.06); }
.theme-midnight .dm-sidebar { background: rgba(12, 14, 20, 0.7); }
.theme-midnight .dm-contact-panel { background: rgba(12, 14, 20, 0.5); }
.theme-midnight .dm-chat-header { background: rgba(12, 14, 20, 0.6); }
.theme-midnight .dm-reply-box { background: rgba(12, 14, 20, 0.6); }
.theme-midnight .dm-convo-item { border-bottom-color: rgba(255,255,255,0.04); }
.theme-midnight .dm-convo-active { background: rgba(30, 35, 50, 0.3) !important; }
.theme-midnight .dm-convo-item:hover { background: rgba(255,255,255,0.03); }
.theme-midnight .dm-msg-in { background: rgba(255,255,255,0.03); }
.theme-midnight .dm-msg-out { background: rgba(20, 22, 32, 0.4); }
.theme-midnight .dm-date-float { background: rgba(16, 18, 26, 0.85); }
.theme-midnight .modal-overlay { background: rgba(0, 0, 0, 0.7); }
.theme-midnight .modal-box,
.theme-midnight .confirm-box { background: rgba(16, 18, 26, 0.5); backdrop-filter: blur(5px); -webkit-backdrop-filter: blur(5px); border: 1px solid rgba(255,255,255,0.08); }
.theme-midnight .ngv-dossier-modal { background: rgba(16, 18, 26, 0.5) !important; backdrop-filter: blur(12px) !important; -webkit-backdrop-filter: blur(12px) !important; border: 1px solid rgba(255,255,255,0.08) !important; }
.theme-midnight .bot-context-menu, .theme-midnight .ngv-context-menu,
.theme-midnight .dm-ctx-menu, .theme-midnight .ctx-submenu,
.theme-midnight .dm-lang-menu {
  background: rgba(16, 18, 26, 0.5);
  border: 0.5px solid rgba(255, 255, 255, 0.08);
  border-radius: 10px;
}
.theme-midnight .nav-icon-link { background: rgba(255,255,255,0.06); }
.theme-midnight .nav-icon-link:hover { background: rgba(255,255,255,0.12) !important; }
.theme-midnight .nav-item.show > .nav-icon-link { background: rgba(255,255,255,0.15) !important; }
.theme-midnight .notification-info { background: rgba(255,255,255,0.05); border-color: rgba(255,255,255,0.1); }
.theme-midnight .notification-danger { background: rgba(180,60,60,0.1); border-color: rgba(180,60,60,0.2); }
.theme-midnight .notif-row { border-bottom-color: rgba(255,255,255,0.04); }
.theme-midnight .notif-unread { background: rgba(255,255,255,0.04); }
.theme-midnight .auth-log-row { border-bottom-color: rgba(255,255,255,0.04); }
/* Neutral accents — no color, pure grey */
.theme-midnight .badge-info { background: rgba(120,120,120,0.6); }
.theme-midnight .badge-primary { background: rgba(100,100,100,0.6); }
.theme-midnight .badge-success { background: rgba(80,120,80,0.6); }
.theme-midnight .badge-danger { background: rgba(150,60,60,0.7); }
.theme-midnight .nav-badge.badge-info { background: rgba(130,130,130,0.8); }
.theme-midnight .nav-badge.badge-danger { background: rgba(170,55,55,0.85); }
.theme-midnight .custom-link { color: rgba(255,255,255,0.5); }
.theme-midnight .custom-link:hover { color: #fff; }
.theme-midnight .btn-outline-info { color: rgba(255,255,255,0.6); border-color: rgba(255,255,255,0.15); }
.theme-midnight .btn-outline-info:hover { color: #fff; background: rgba(255,255,255,0.1); }
.theme-midnight .btn-outline-danger { color: rgba(230,120,120,0.8); border-color: rgba(200,80,80,0.25); }
.theme-midnight .btn-outline-danger:hover { color: #fff; background: rgba(160,50,50,0.6); }
.theme-midnight .admin-action-btn { border-color: rgba(255,255,255,0.08); }
.theme-midnight .admin-action-btn:hover { background: rgba(255,255,255,0.08); }
.theme-midnight .filter-search,
.theme-midnight .dm-search-input { color: #ddd; background: rgba(255,255,255,0.04); border-color: rgba(255,255,255,0.08); }
.theme-midnight .filter-select { color: #ccc; border-color: rgba(255,255,255,0.08); }
.theme-midnight .custom-select-trigger { color: #ccc; border-color: rgba(255,255,255,0.08); }
.theme-midnight .custom-select-panel { background: rgba(18, 20, 28, 0.97); }
.theme-midnight .line { background: rgba(255,255,255,0.05); }
.theme-midnight .separator { border-color: rgba(255,255,255,0.06); }
.theme-midnight ::selection { background: rgba(255,255,255,0.2); color: #fff; }
.theme-midnight .menu-icon { opacity: 0.45; }
.theme-midnight .log-button { color: rgba(255,255,255,0.5); }
.theme-midnight .log-button:hover { color: #fff; }
.theme-midnight .redact-btn { background: rgba(80,80,80,0.3); color: rgba(200,200,200,0.8); }
.theme-midnight .redact-btn.active { background: rgba(60,140,80,0.3); color: rgba(100,255,150,0.9); }
.theme-midnight ::-webkit-scrollbar-track { background: #0e1014; }
.theme-midnight ::-webkit-scrollbar-thumb { background: #252830; }
.theme-midnight ::-webkit-scrollbar-thumb:hover { background: #353840; }
/* Midnight + Storm — neutralize blue-tinted text colors */
.theme-midnight .content-section,
.theme-midnight .account-alive-section,
.theme-midnight .account-dead-section,
.theme-storm .content-section,
.theme-storm .account-alive-section,
.theme-storm .account-dead-section { color: rgba(255,255,255,0.6); }
.theme-midnight .article-text,
.theme-storm .article-text { color: rgba(255,255,255,0.7); }
.theme-midnight .log-desc,
.theme-storm .log-desc { color: rgba(255,255,255,0.35); }
.theme-midnight .log-text,
.theme-storm .log-text { color: rgba(255,255,255,0.75); }
.theme-midnight .article-text-alive,
.theme-storm .article-text-alive { color: #5cc480 !important; }
.theme-midnight .article-text-dead,
.theme-storm .article-text-dead { color: #c45555 !important; }
.theme-midnight .site-header .navbar-nav .nav-link,
.theme-storm .site-header .navbar-nav .nav-link { color: rgba(255,255,255,0.6); }
.theme-midnight .site-header .navbar-nav .nav-link:hover,
.theme-storm .site-header .navbar-nav .nav-link:hover { color: #fff; }
.theme-midnight .bot-card-name,
.theme-storm .bot-card-name { color: rgba(255,255,255,0.85); }
.theme-midnight .bot-card-username,
.theme-storm .bot-card-username { color: rgba(255,255,255,0.35); }
.theme-midnight .bot-card-stats span,
.theme-storm .bot-card-stats span { color: rgba(255,255,255,0.3); }
.theme-midnight .panel-section-label,
.theme-storm .panel-section-label { color: rgba(255,255,255,0.4); }
.theme-midnight .panel-label,
.theme-storm .panel-label { color: rgba(255,255,255,0.4); }
.theme-midnight .panel-toggle-label,
.theme-storm .panel-toggle-label { color: rgba(255,255,255,0.35); }
.theme-midnight .total-desc,
.theme-storm .total-desc { color: rgba(255,255,255,0.3); }
.theme-midnight .metric-label,
.theme-storm .metric-label { color: rgba(255,255,255,0.3); }
.theme-midnight .admin-tab,
.theme-storm .admin-tab { color: rgba(255,255,255,0.45); }
.theme-midnight .admin-tab.active,
.theme-storm .admin-tab.active { color: rgba(255,255,255,0.9); }
.theme-midnight .nav-icon-link .fas,
.theme-midnight .nav-icon-link .far,
.theme-storm .nav-icon-link .fas,
.theme-storm .nav-icon-link .far { color: rgba(255,255,255,0.55); }
.theme-midnight .nav-icon-link:hover .fas,
.theme-midnight .nav-icon-link:hover .far,
.theme-storm .nav-icon-link:hover .fas,
.theme-storm .nav-icon-link:hover .far { color: #fff; }
.theme-midnight .navbar-brand,
.theme-storm .navbar-brand { color: rgba(255,255,255,0.8) !important; }
/* Override ALL inline blue-tinted colors in both themes */
body.theme-midnight [style*="100,200,255"],
body.theme-midnight [style*="100,255,180"],
body.theme-midnight [style*="100,255,150"],
body.theme-storm [style*="100,200,255"],
body.theme-storm [style*="100,255,180"],
body.theme-storm [style*="100,255,150"] {
  color: rgba(255,255,255,0.7) !important;
}
body.theme-midnight [style*="255,200,100"],
body.theme-storm [style*="255,200,100"] {
  color: rgba(255,220,150,0.8) !important;
}
body.theme-midnight a[style*="100,200,255"],
body.theme-storm a[style*="100,200,255"] {
  color: rgba(200,200,210,0.7) !important;
}
/* Log-specific blue overrides */
.theme-midnight .log-metadata { background-color: rgba(16, 18, 26, 0.8); }
.theme-midnight .log-text { border-color: rgba(255,255,255,0.03); background-color: rgba(20, 22, 30, 0.6); }
.theme-midnight .article-metadata { border-bottom-color: rgba(255,255,255,0.1); }
.theme-midnight .activitylog-section { border-color: rgba(255,255,255,0.06); }
.theme-storm .log-metadata { background-color: rgba(40, 80, 115, 0.4); backdrop-filter: none; -webkit-backdrop-filter: none; }
.theme-storm .log-text { border-color: rgba(255,255,255,0.1); background-color: rgba(80, 85, 95, 0.06); }
.theme-storm .article-metadata { border-bottom-color: rgba(255,255,255,0.1); }
.theme-storm .activitylog-section { border-color: rgba(255,255,255,0.06); }

/* ── Incognito Theme (Facebook Dark Mode Skin) ── */
body.theme-incognito {
  background: #18191A;
  color: #E4E6EB;
  font-family: -apple-system, 'Segoe UI', Helvetica, Arial, sans-serif;
}
/* Hide video background */
.theme-incognito #bg-video { display: none !important; }
/* Hide VioSieve branding */
.theme-incognito .header-logo { display: none; }
.theme-incognito .navbar-brand {
  color: transparent !important;
  font-size: 0;
  position: relative;
  width: 35px;
  height: 35px;
  min-width: 35px;
  margin: 0 !important;
  padding: 0 !important;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 36 36' fill='%230866FF'%3E%3Cpath d='M20.181 35.87C29.094 34.791 36 27.202 36 18c0-9.941-8.059-18-18-18S0 8.059 0 18c0 8.442 5.811 15.526 13.652 17.471L14 34h5.5l.681 1.87Z'/%3E%3Cpath fill='%23fff' d='M13.651 35.471v-11.97H9.936V18h3.715v-2.37c0-6.127 2.772-8.964 8.784-8.964 1.138 0 3.103.223 3.91.446v4.983c-.425-.043-1.167-.065-2.081-.065-2.952 0-4.09 1.116-4.09 4.025V18h5.883l-1.008 5.5h-4.867v12.37a18.183 18.183 0 0 1-6.53-.399Z'/%3E%3C/svg%3E") center/contain no-repeat;
  border-radius: 50%;
  flex-shrink: 0;
  line-height: 0 !important;
}
.brand-combo {
  position: relative;
  display: inline-flex;
  align-items: center;
}
.header-logo-overlay {
  height: 32px;
  width: 32px;
  object-fit: contain;
  margin-right: 6px;
  position: relative;
  top: -2px;
  filter: drop-shadow(0 0 4px rgba(100, 200, 255, 0.2));
  transition: filter 0.8s ease;
}
.brand-combo:hover .header-logo-overlay {
  filter: drop-shadow(0 0 8px rgba(100, 200, 255, 0.4));
}
.brand-combo:hover .brand-img {
  opacity: 1;
  filter: drop-shadow(0 0 6px rgba(100, 200, 255, 0.3));
}
.brand-img {
  height: 18px;
  width: auto;
  object-fit: contain;
  vertical-align: middle;
  position: relative;
  opacity: 0.7;
  transition: opacity 0.8s ease, filter 0.8s ease;
  opacity: 0.85;
  transition: opacity 0.2s ease;
}
.navbar-brand:hover .brand-img { opacity: 1; }
.theme-incognito .brand-img { display: none; }
.theme-incognito .header-logo-overlay { display: none; }
.theme-incognito .navbar-brand .brand-text { display: none; }
.theme-incognito .navbar-brand::after { content: none; }
/* Fake search bar */
.theme-incognito .navbar-brand::before {
  content: 'Search Facebook';
  font-family: -apple-system, 'Segoe UI', Helvetica, Arial, sans-serif;
  font-size: 13px;
  font-weight: 350;
  color: #B0B3B8;
  position: absolute;
  left: 40px;
  top: 50%;
  transform: translateY(-50%);
  background: #3A3B3C url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 16 16'%3E%3Cg fill-rule='evenodd' transform='translate(-448 -544)'%3E%3Cg fill-rule='nonzero'%3E%3Cpath fill='%23B0B3B8' d='M10.743 2.257a6 6 0 1 1-8.485 8.486 6 6 0 0 1 8.485-8.486zm-1.06 1.06a4.5 4.5 0 1 0-6.365 6.364 4.5 4.5 0 0 0 6.364-6.363z' transform='translate(448 544)'/%3E%3Cpath fill='%23B0B3B8' d='m13.463 15.142-.04-.044-3.574-4.192c-.599-.703.355-1.656 1.058-1.057l4.191 3.574.044.04c.058.059.122.137.182.24.249.425.249.96-.154 1.41l-.057.057c-.45.403-.986.403-1.411.154a1.182 1.182 0 0 1-.24-.182z' transform='translate(448 544)'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E") 10px center/14px 14px no-repeat;
  padding: 0 10px 0 30px;
  border-radius: 50px;
  white-space: nowrap;
  width: 207px;
  height: 35px;
  line-height: 35px;
  pointer-events: none;
  letter-spacing: 0;
  box-sizing: border-box;
}
/* Navbar — FB dark */
.theme-incognito .custom-navbar {
  background-color: #242526 !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  border-bottom: 0.5px solid #3E4042;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
  padding: 0 12px !important;
  height: 49px !important;
  isolation: auto;
}
.theme-incognito .custom-navbar::before {
  display: none;
  padding: 0 12px !important;
  height: 49px !important;
}
.theme-incognito .custom-navbar .container {
  max-width: 100% !important;
  padding: 0 !important;
  margin: 0 !important;
  width: 100% !important;
  display: flex !important;
  align-items: center !important;
  height: 49px !important;
}
/* Right section — compact FB action buttons */
.theme-incognito .navbar-nav {
  margin-left: auto !important;
  margin-right: 0 !important;
  display: flex !important;
  align-items: center !important;
  gap: 6px !important;
  height: 49px !important;
}
.theme-incognito .navbar-nav .nav-item {
  margin: 0 !important;
  padding: 0 !important;
  display: flex !important;
  align-items: center !important;
}
.theme-incognito .separator { display: none !important; }
/* Fake profile avatar */
.theme-incognito .nav-link.nav-icon-link[title="Profile"] {
  background: url('/static/themes/avatar.jpg') center/cover no-repeat !important;
  border-radius: 50% !important;
  width: 34px !important;
  height: 34px !important;
  min-width: 34px !important;
  min-height: 34px !important;
  max-width: 34px !important;
  max-height: 34px !important;
  overflow: visible;
  align-self: center;
  position: relative;
}
.theme-incognito .nav-link.nav-icon-link[title="Profile"]:hover {
  background: url('/static/themes/avatar.jpg') center/cover no-repeat !important;
}
.theme-incognito .nav-link.nav-icon-link[title="Profile"] .fa-user-circle { display: none; }
.theme-incognito .nav-link.nav-icon-link[title="Profile"].dropdown-toggle::after {
  content: '\f0d7';
  font-family: 'Font Awesome 6 Free';
  font-weight: 900;
  font-size: 0.35rem;
  color: #E4E6EB;
  background: #3A3B3C;
  border: 2px solid #242526;
  border-radius: 50%;
  width: 14px;
  height: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: absolute;
  bottom: -2px;
  right: -2px;
  margin: 0;
  padding: 0;
  -webkit-font-smoothing: antialiased;
}
.theme-incognito .site-header .navbar-nav .nav-link {
  color: #B0B3B8;
  padding: 0 !important;
  margin: 0 !important;
  line-height: 1 !important;
}
.theme-incognito .site-header .navbar-nav .nav-link:hover { color: #E4E6EB; background: transparent; }
.theme-incognito .nav-icon-link {
  background: #3A3B3C !important;
  border-radius: 50% !important;
  width: 34px !important;
  height: 34px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  padding: 0 !important;
  margin: 0 !important;
}
.theme-incognito .nav-icon-link:hover { background: #4E4F50 !important; }
.theme-incognito .nav-item.show > .nav-icon-link:not([title="Profile"]) { background: rgba(8,102,255,0.2) !important; }
.theme-incognito .nav-item.show > .nav-icon-link[title="Profile"] { background: url('/static/themes/avatar.jpg') center/cover no-repeat !important; box-shadow: none !important; outline: none !important; }
.theme-incognito .nav-icon-link .fas,
.theme-incognito .nav-icon-link .far { color: #E4E6EB; font-size: 18px; }
.theme-incognito .nav-icon-link:hover .fas,
.theme-incognito .nav-icon-link:hover .far { color: #0866FF; }
.theme-incognito .nav-icon-link[title="Profile"]:hover .fas,
.theme-incognito .nav-icon-link[title="Profile"]:hover .far,
.theme-incognito .nav-item.show > .nav-icon-link[title="Profile"] .fas,
.theme-incognito .nav-item.show > .nav-icon-link[title="Profile"] .far { color: transparent !important; }
/* Home icon — very subtle gray, barely visible */
.theme-incognito .nav-icon-link[title="Home"] { background: transparent !important; width: auto !important; min-width: 0 !important; max-width: none !important; height: auto !important; min-height: 0 !important; max-height: none !important; }
.theme-incognito .nav-icon-link[title="Home"] .fas { color: #4E4F50; font-size: 0.7rem; }
.theme-incognito .nav-icon-link[title="Home"]:hover { background: transparent !important; }
.theme-incognito .nav-icon-link[title="Home"]:hover .fas { color: #65676B; }
/* Profile dropdown — no highlight on click/open */
.theme-incognito .nav-item.show > .nav-link.nav-icon-link[title="Profile"] { background: url('/static/themes/avatar.jpg') center/cover no-repeat !important; }
.theme-incognito .nav-link.nav-icon-link[title="Profile"]:hover { background: url('/static/themes/avatar.jpg') center/cover no-repeat !important; box-shadow: none !important; filter: none !important; }
.theme-incognito .nav-link.nav-icon-link[title="Profile"]:hover .fas,
.theme-incognito .nav-link.nav-icon-link[title="Profile"]:hover .far { color: #E4E6EB !important; }
.theme-incognito .nav-item:has([title="Profile"]):hover .nav-icon-link { background: url('/static/themes/avatar.jpg') center/cover no-repeat !important; }
.theme-incognito .nav-item:has([title="Profile"]).show > .nav-icon-link { background: url('/static/themes/avatar.jpg') center/cover no-repeat !important; }
.theme-incognito .nav-item.show > .nav-link.nav-icon-link[title="Profile"]:hover { background: url('/static/themes/avatar.jpg') center/cover no-repeat !important; box-shadow: none !important; filter: none !important; outline: none !important; }
.theme-incognito .nav-link.nav-icon-link[title="Profile"]:active,
.theme-incognito .nav-link.nav-icon-link[title="Profile"]:focus { box-shadow: none !important; outline: none !important; background: url('/static/themes/avatar.jpg') center/cover no-repeat !important; }
.theme-incognito .nav-icon { filter: brightness(0.9) invert(0); width: 16px; height: 16px; }
/* Hide non-FB elements in incognito */
.theme-incognito #server-metrics { display: none !important; }
.theme-incognito #metrics-toggle { display: none !important; }
.theme-incognito .navbar-toggler { display: none !important; }
/* FB center nav tabs */
.fb-center-nav { display: none; }
.theme-incognito .fb-center-nav {
  display: flex !important;
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  gap: 3px;
  height: 49px;
  align-items: center;
}
.fb-nav-tab {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 112px;
  height: 34px;
  border-radius: 6px;
  color: #9FA4AB;
  cursor: pointer;
  transition: background 0.2s ease;
  text-decoration: none !important;
  position: relative;
  box-sizing: border-box;
  padding: 0 !important;
}
.fb-nav-tab, .fb-nav-tab i { color: #9FA4AB !important; }
.fb-nav-tab svg { fill: #9FA4AB; transition: fill 0.2s ease; width: 20px; height: 20px; }
.fb-nav-tab:hover, .fb-nav-tab:hover i { background: #3A3B3C; color: #B0B3B8 !important; border-radius: 6px; }
.fb-nav-tab:hover svg { fill: #B0B3B8; }
.fb-nav-tab.fb-nav-active,
.fb-nav-tab.fb-nav-active i {
  color: #0866FF !important;
  background: transparent !important;
}
.fb-nav-tab.fb-nav-active svg { fill: #0866FF; }
.fb-nav-tab.fb-nav-active {
  border-radius: 0;
  border-bottom: 3px solid #0866FF;
  height: 49px;
}
.fb-nav-tab.fb-nav-active:hover { background: transparent !important; }
/* Swap nav icons to FB-style SVGs */
.theme-incognito #accountsDropdown .nav-icon { display: none; }
.theme-incognito #accountsDropdown .fas { display: none; }
.theme-incognito #accountsDropdown::before {
  content: '';
  display: block;
  width: 18px;
  height: 18px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23E4E6EB'%3E%3Cpath d='M18.5 1A1.5 1.5 0 0 0 17 2.5v3A1.5 1.5 0 0 0 18.5 7h3A1.5 1.5 0 0 0 23 5.5v-3A1.5 1.5 0 0 0 21.5 1h-3zm0 8a1.5 1.5 0 0 0-1.5 1.5v3a1.5 1.5 0 0 0 1.5 1.5h3a1.5 1.5 0 0 0 1.5-1.5v-3A1.5 1.5 0 0 0 21.5 9h-3zm-16 8A1.5 1.5 0 0 0 1 18.5v3A1.5 1.5 0 0 0 2.5 23h3A1.5 1.5 0 0 0 7 21.5v-3A1.5 1.5 0 0 0 5.5 17h-3zm8 0A1.5 1.5 0 0 0 9 18.5v3a1.5 1.5 0 0 0 1.5 1.5h3a1.5 1.5 0 0 0 1.5-1.5v-3a1.5 1.5 0 0 0-1.5-1.5h-3zm8 0a1.5 1.5 0 0 0-1.5 1.5v3a1.5 1.5 0 0 0 1.5 1.5h3a1.5 1.5 0 0 0 1.5-1.5v-3a1.5 1.5 0 0 0-1.5-1.5h-3zm-16-8A1.5 1.5 0 0 0 1 10.5v3A1.5 1.5 0 0 0 2.5 15h3A1.5 1.5 0 0 0 7 13.5v-3A1.5 1.5 0 0 0 5.5 9h-3zm0-8A1.5 1.5 0 0 0 1 2.5v3A1.5 1.5 0 0 0 2.5 7h3A1.5 1.5 0 0 0 7 5.5v-3A1.5 1.5 0 0 0 5.5 1h-3zm8 0A1.5 1.5 0 0 0 9 2.5v3A1.5 1.5 0 0 0 10.5 7h3A1.5 1.5 0 0 0 15 5.5v-3A1.5 1.5 0 0 0 13.5 1h-3zm0 8A1.5 1.5 0 0 0 9 10.5v3a1.5 1.5 0 0 0 1.5 1.5h3a1.5 1.5 0 0 0 1.5-1.5v-3A1.5 1.5 0 0 0 13.5 9h-3z'/%3E%3C/svg%3E") center/contain no-repeat;
}
.theme-incognito #analysisDropdown .nav-icon { display: none; }
.theme-incognito #analysisDropdown .fas { display: none; }
.theme-incognito #analysisDropdown::before {
  content: '';
  display: block;
  width: 18px;
  height: 18px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23E4E6EB'%3E%3Cpath fill-rule='evenodd' d='M.5 8a7.5 7.5 0 1 1 4.006 6.638.341.341 0 0 0-.236-.041l-2.193.534A1 1 0 0 1 .87 13.923l.534-2.193a.341.341 0 0 0-.04-.236A7.47 7.47 0 0 1 .5 8zm11.389-.907a.56.56 0 0 0-.79-.78L9.25 7.75 7.294 6.327a1 1 0 0 0-1.386.205L4.111 8.906a.56.56 0 0 0 .791.781L6.75 8.25l1.957 1.423a1 1 0 0 0 1.385-.205l1.797-2.375z' clip-rule='evenodd'/%3E%3C/svg%3E") center/contain no-repeat;
}
.theme-incognito .nav-link.nav-icon-link[title="Direct Messages"] .fa-envelope { display: none; }
.theme-incognito .nav-link.nav-icon-link[title="Direct Messages"]::before {
  content: '';
  display: block;
  width: 18px;
  height: 18px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23E4E6EB'%3E%3Cpath d='M3 9.5a9 9 0 1 1 18 0v2.927c0 1.69.475 3.345 1.37 4.778a1.5 1.5 0 0 1-1.272 2.295h-4.625a4.5 4.5 0 0 1-8.946 0H2.902a1.5 1.5 0 0 1-1.272-2.295A9.01 9.01 0 0 0 3 12.43V9.5zm6.55 10a2.5 2.5 0 0 0 4.9 0h-4.9z'/%3E%3C/svg%3E") center/contain no-repeat;
}
/* Dropdowns */
.theme-incognito .dropdown-menu {
  background-color: #242526;
  border: 1px solid #3A3B3C;
  box-shadow: 0 4px 12px rgba(0,0,0,0.4);
  border-radius: 8px;
  right: 30px;
  left: auto;
}
.theme-incognito .dropdown-menu::before {
  display: none;
}
.theme-incognito .submenu,
.theme-incognito .small-submenu,
.theme-incognito .tiny-submenu {
  background-color: #242526;
  border: 1px solid #3A3B3C;
  box-shadow: 0 4px 12px rgba(0,0,0,0.4);
  border-radius: 8px;
}
.theme-incognito .submenu::before,
.theme-incognito .small-submenu::before {
  display: none;
}
.theme-incognito .dropdown-item { color: #E4E6EB; }
.theme-incognito .dropdown-item:hover { background: #3A3B3C; color: #E4E6EB; }
/* Badges */
.theme-incognito .badge-info { background: #1877F2; }
.theme-incognito .badge-primary { background: #1877F2; }
.theme-incognito .badge-success { background: #42b72a; }
.theme-incognito .badge-danger { background: #fa3e3e; }
.theme-incognito .nav-badge { font-size: 0.55rem; }
/* Side panel */
.theme-incognito .sidebar-shell {
  background-color: #242526;
  border-right: 1px solid #3A3B3C;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}
.theme-incognito .sidebar-shell::before {
  display: none;
}
.theme-incognito .side-panel a, .theme-incognito .sidebar-shell a { color: #E4E6EB; }
.theme-incognito .side-panel a:hover, .theme-incognito .sidebar-shell a:hover { background: #3A3B3C !important; color: #1877F2 !important; }
.theme-incognito .side-nav-link { color: #B0B3B8 !important; }
.theme-incognito .side-nav-link:hover { color: #1877F2 !important; }
.theme-incognito .side-nav-link.side-nav-active { color: #1877F2 !important; border-left-color: #1877F2; background: rgba(24,119,242,0.08) !important; }
.theme-incognito .side-nav-link.side-nav-active i { color: #1877F2; }
.theme-midnight .side-nav-link { color: rgba(255,255,255,0.45) !important; }
.theme-storm .side-nav-link { color: rgba(255,255,255,0.85) !important; }
.theme-midnight .side-nav-link.side-nav-active { color: rgba(255,255,255,0.9) !important; }
.theme-storm .side-nav-link.side-nav-active { color: #fff !important; }
.theme-incognito .panel-section-label { color: #B0B3B8; }
.theme-incognito .panel-label { color: #B0B3B8; }
.theme-incognito .panel-toggle-label { color: #B0B3B8; }
.theme-incognito .panel-btn { color: #E4E6EB; }
.theme-incognito .line { background: #3A3B3C; }
.theme-incognito .total-desc { color: #B0B3B8; }
.theme-incognito .filter-select { color: #E4E6EB; background: #3A3B3C; border-color: #4E4F50; }
.theme-incognito .custom-select-trigger { color: #E4E6EB; background: #3A3B3C; border-color: #4E4F50; }
.theme-incognito .custom-select-panel { background: #242526; border-color: #3A3B3C; }
.theme-incognito .custom-select-item:hover { background: rgba(255,255,255,0.06); }
.theme-incognito .custom-select-panel::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.08); }
.theme-incognito .filter-search,
.theme-incognito .dm-search-input { color: #E4E6EB; background: #3A3B3C; border-color: #4E4F50; }
/* Content cards — dark FB cards */
.theme-incognito .content-section,
.theme-incognito .report-section,
.theme-incognito .chart-section,
.theme-incognito .activitylog-section,
.theme-incognito .removebot-section,
.theme-incognito .account-alive-section,
.theme-incognito .account-dead-section,
.theme-incognito .panel-section,
.theme-incognito .bot-card,
.theme-incognito .notif-row,
.theme-incognito .auth-log-row {
  background-color: #242526;
  border-color: #3A3B3C;
  box-shadow: 0 1px 2px rgba(0,0,0,0.3);
  border-radius: 8px;
}
.theme-incognito .content-section,
.theme-incognito .account-alive-section,
.theme-incognito .account-dead-section { color: #E4E6EB; }
.theme-incognito .account-dead-section { background-color: #2D2022; }
.theme-incognito .bot-card:hover {
  background: #2D2E2F;
  box-shadow: 0 2px 8px rgba(0,0,0,0.4);
}
.theme-incognito .bot-card-name { color: #E4E6EB; }
.theme-incognito .bot-card-username { color: #B0B3B8; }
.theme-incognito .bot-card-stats span { color: #B0B3B8; }
.theme-incognito .bot-card-status-active { color: #42b72a; }
.theme-incognito .bot-card-status-inactive { color: #fa3e3e; }
/* Activity logs */
.theme-incognito .activitylog-section {
  background: #242526;
  border-radius: 8px;
}
.theme-incognito .log-metadata {
  background-color: #3A3B3C;
  border-radius: 8px;
}
.theme-incognito .log-text {
  background-color: #3A3B3C;
  border-color: #4E4F50;
  color: #E4E6EB;
}
.theme-incognito .log-desc { color: #B0B3B8; }
.theme-incognito .article-text { color: #E4E6EB; }
.theme-incognito .article-metadata { border-bottom-color: #3A3B3C; }
.theme-incognito .log-button { color: #1877F2; }
.theme-incognito .log-button:hover { color: #4599FF; }
.theme-incognito .custom-link { color: #1877F2; }
.theme-incognito .custom-link:hover { color: #4599FF; }
/* DMs — Messenger dark style */
.theme-incognito .dm-top-title { font-size: 0; color: transparent; }
.theme-incognito .dm-top-title::after { content: 'Messenger'; font-size: 0.82rem; color: #E4E6EB; font-weight: 600; }
.theme-incognito .dm-container { background: #242526; backdrop-filter: none; -webkit-backdrop-filter: none; border-color: #3A3B3C; }
.theme-incognito .dm-top-bar { background: #2D2F33; border-bottom-color: #3E4042; }
.theme-incognito .dm-chat { background: #242526; }
.theme-incognito .dm-sidebar { background: #242526; border-right: 1px solid #3A3B3C; }
.theme-incognito .dm-contact-panel { background: #242526; border-left: 1px solid #3A3B3C; }
.theme-incognito .dm-chat-header { background: #2D2F33; border-bottom: 1px solid #3E4042; }
.theme-incognito .dm-chat-header-text { color: #E4E6EB; }
.theme-incognito .dm-reply-box { background: #2D2F33; border-top: 1px solid #3E4042; }
.theme-incognito .dm-chat-messages { background: #242526; }
.theme-incognito .dm-convo-item { border-bottom-color: #3A3B3C; }
.theme-incognito .dm-convo-item:hover { background: #3A3B3C; }
.theme-incognito .dm-convo-active { background: rgba(24,119,242,0.15) !important; }
.theme-incognito .dm-convo-name { color: #E4E6EB; }
.theme-incognito .dm-convo-preview { color: #B0B3B8; }
.theme-incognito .dm-convo-time { color: #B0B3B8; }
.theme-incognito .dm-msg-in {
  background: #303236;
  border-radius: 18px;
  color: #E4E6EB;
}
.theme-incognito .dm-msg-out {
  background: #1877F2;
  border-radius: 18px;
  color: #fff;
}
.theme-incognito .dm-msg-out .dm-msg-text { color: #fff; }
.theme-incognito .dm-msg-out .dm-msg-time { color: rgba(255,255,255,0.5); }
.theme-incognito .dm-msg-in .dm-msg-text { color: #E4E6EB; }
.theme-incognito .dm-msg-in .dm-msg-who { color: #B0B3B8; }
.theme-incognito .dm-msg-in .dm-msg-time { color: #B0B3B8; }
.theme-incognito .dm-date-sep { color: #B0B3B8; }
.theme-incognito .dm-date-float { background: rgba(36,37,38,0.9); color: #B0B3B8; }
.theme-incognito .dm-empty-text { color: #B0B3B8; }
.theme-incognito .dm-empty-icon { color: #4E4F50; }
.theme-incognito .dm-unread-badge { background: #fa3e3e; }
/* Admin panel */
.theme-incognito .admin-tab { color: #B0B3B8; }
.theme-incognito .admin-tab.active { color: #1877F2; border-bottom: 2px solid #1877F2; }
.theme-incognito .admin-tab:hover { color: #1877F2; }
.theme-incognito .admin-action-btn { border-color: rgba(24,119,242,0.3); }
.theme-incognito .admin-action-btn:hover { background: rgba(24,119,242,0.15); }
/* Buttons */
.theme-incognito .btn-outline-info { color: #1877F2; border-color: #1877F2; }
.theme-incognito .btn-outline-info:hover { color: #fff; background: #1877F2; }
.theme-incognito .btn-outline-danger { color: #fa3e3e; border-color: #fa3e3e; }
.theme-incognito .btn-outline-danger:hover { color: #fff; background: #fa3e3e; }
/* Modals */
.theme-incognito .modal-overlay { background: rgba(0,0,0,0.65); }
.theme-incognito .modal-box,
.theme-incognito .confirm-box { background: #242526; color: #E4E6EB; border: 1px solid #3A3B3C; }
.theme-incognito .ngv-dossier-modal { background: #242526 !important; border: 1px solid #3A3B3C !important; backdrop-filter: none !important; -webkit-backdrop-filter: none !important; }
.theme-incognito .bot-context-menu, .theme-incognito .ngv-context-menu,
.theme-incognito .dm-ctx-menu, .theme-incognito .ctx-submenu,
.theme-incognito .dm-lang-menu {
  background: #242526;
  border: 1px solid #3A3B3C;
  border-radius: 8px;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}
.theme-incognito .confirm-text { color: #E4E6EB; }
.theme-incognito .confirm-btn-cancel { background: #3A3B3C; color: #E4E6EB; }
.theme-incognito .confirm-btn-cancel:hover { background: #4E4F50; }
.theme-incognito .confirm-btn-ok { background: #1877F2; color: #fff; }
.theme-incognito .confirm-btn-ok:hover { background: #4599FF; }
/* Notifications */
.theme-incognito .notification-info { background: rgba(24,119,242,0.12); border-color: rgba(24,119,242,0.3); color: #4599FF; }
.theme-incognito .notification-danger { background: rgba(250,62,62,0.12); border-color: rgba(250,62,62,0.3); color: #fa3e3e; }
.theme-incognito .notif-row { border-bottom-color: #3A3B3C; }
.theme-incognito .notif-unread { background: rgba(24,119,242,0.08); }
/* Scrollbars */
.theme-incognito ::-webkit-scrollbar-track { background: #18191A; }
.theme-incognito ::-webkit-scrollbar-thumb { background: #3A3B3C; }
.theme-incognito ::-webkit-scrollbar-thumb:hover { background: #4E4F50; }
/* Text selection */
.theme-incognito ::selection { background: rgba(24,119,242,0.3); color: #E4E6EB; }
/* Menu icons */
.theme-incognito .menu-icon { opacity: 0.6; color: #B0B3B8 !important; }
/* Separator */
.theme-incognito .separator { border-color: #3A3B3C; }
/* Redactify button for incognito */
.theme-incognito .redact-btn { background: rgba(58,59,60,0.8); color: #B0B3B8; }
.theme-incognito .redact-btn:hover { background: rgba(78,79,80,0.8); color: #E4E6EB; }
.theme-incognito .redact-btn.active { background: rgba(24,119,242,0.3); color: rgba(100,180,255,0.9); }
/* Don't redact FB branding in incognito — it's the disguise */
body.redacted.theme-incognito .navbar-brand,
body.redacted.theme-incognito .navbar-brand::before { filter: none !important; pointer-events: auto !important; }
/* Perm badges */
.theme-incognito .perm-badge { color: #E4E6EB; }
.theme-incognito .perm-granted { background: rgba(66,183,42,0.15); border-color: rgba(66,183,42,0.3); }
.theme-incognito .perm-denied { background: rgba(250,62,62,0.1); border-color: rgba(250,62,62,0.2); }
/* Tables */
.theme-incognito .table-dark { background: transparent !important; color: #E4E6EB; }
.theme-incognito .table-dark th { color: #B0B3B8; border-color: #3A3B3C; }
.theme-incognito .table-dark td { color: #E4E6EB; border-color: #3A3B3C; }
/* Theme selector in incognito */
.theme-incognito .theme-option { border-color: #3A3B3C; }
.theme-incognito .theme-option:hover { border-color: #4E4F50; background: #3A3B3C; }
.theme-incognito .theme-option.theme-active { border-color: #1877F2; background: rgba(24,119,242,0.1); }
.theme-incognito .theme-label { color: #B0B3B8; }

/* ── Custom confirm modal ── */
.confirm-box {
  background: rgba(20, 40, 55, 0.4);
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 10px;
  padding: 24px 28px 20px;
  max-width: 360px;
  width: 90%;
  text-align: center;
  transform: scale(0.95);
  transition: transform 0.25s ease;
}
.modal-overlay.modal-visible .confirm-box {
  transform: scale(1);
}
.confirm-text {
  color: rgba(255,255,255,0.8);
  font-size: 0.82rem;
  line-height: 1.5;
  margin-bottom: 18px;
}
.confirm-actions {
  display: flex;
  gap: 10px;
  justify-content: center;
}
.confirm-btn {
  padding: 6px 20px;
  border: none;
  border-radius: 6px;
  font-size: 0.72rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease;
}
.confirm-btn-cancel {
  background: rgba(255,255,255,0.08);
  color: rgba(255,255,255,0.5);
}
.confirm-btn-cancel:hover {
  background: rgba(255,255,255,0.14);
  color: rgba(255,255,255,0.7);
}
.confirm-btn-ok {
  background: rgba(220,70,70,0.3);
  color: rgba(255,120,120,0.9);
}
.confirm-btn-ok:hover {
  background: rgba(220,70,70,0.5);
  color: #fff;
}

/* ── Network Graph ─────────────────────────────────────────────── */
#network-graph-container {
  background: transparent;
}
body.network-graph-active #main-content.container { max-width: 100% !important; width: 100% !important; padding: 0 !important; padding-left: 0 !important; margin: 0 !important; overflow-x: hidden !important; }
body.network-graph-active #main-container.bots-container { width: 100% !important; max-width: 100% !important; padding: 0 !important; margin: 0 !important; gap: 0 !important; }
body.network-graph-active #main-content.container { margin-top: -15px !important; }
body.network-graph-active .bots-section { margin-top: 0 !important; margin-left: 0 !important; padding-top: 0 !important; padding-bottom: 0 !important; margin-bottom: 0 !important; height: 100vh !important; overflow: hidden !important; }
body.network-graph-active #network-graph-container { height: 100vh !important; margin-top: -60px !important; padding-top: 60px !important; }
body.network-graph-active #network-graph-container-wrap { height: 100% !important; }
.network-eye-bg {
  position: absolute;
  top: -40px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 0;
  pointer-events: none;
  opacity: 0.12;
}
.network-eye-bg img {
  width: 45vw;
  height: auto;
}
.theme-storm .network-eye-bg { opacity: 0.12; }
.theme-midnight .network-eye-bg { opacity: 0.10; }
.theme-incognito .network-eye-bg { display: none; }
#network-graph-container-wrap.panel-section {
  margin: 0 !important;
  border: none !important;
  border-radius: 0 !important;
}
#network-graph-container-wrap {
  background: rgba(0, 0, 0, 0.15) !important;
  backdrop-filter: blur(8px) !important;
  -webkit-backdrop-filter: blur(8px) !important;
  border-color: rgba(255,255,255,0.04) !important;
}
#network-graph-container svg {
  border-radius: 0;
}
#network-graph-container svg *:focus,
#network-graph-container svg *:active {
  outline: none !important;
}
#ngv-zoom-in:hover, #ngv-zoom-out:hover {
  background: rgba(40,65,95,0.95);
  color: rgba(255,255,255,0.95);
}
#ngv-tooltip {
  box-shadow: 0 4px 16px rgba(0,0,0,0.5);
  line-height: 1.5;
}

/* ── Graph Insights Bar ── */
.ngv-insights-bar {
  position: absolute;
  top: 12px;
  right: 80px;
  transform: none;
  z-index: 6;
  min-width: 420px;
  max-width: 680px;
  width: auto;
  background: rgba(12, 24, 42, 0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(100, 180, 255, 0.14);
  border-radius: 10px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.45), 0 0 1px rgba(100, 180, 255, 0.15);
  overflow: hidden;
  animation: insightsSlideUp 0.5s ease-out;
  transition: opacity 0.3s ease, transform 0.3s ease;
}
.ngv-insights-bar.dismissed {
  opacity: 0;
  transform: translateY(-12px);
  pointer-events: none;
}
.ngv-insights-inner {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
}
.ngv-insights-icon {
  color: rgba(255, 210, 80, 0.8);
  font-size: 0.85rem;
  flex-shrink: 0;
}
.ngv-insights-track {
  flex: 1;
  overflow: hidden;
  position: relative;
  min-height: 1.4em;
}
.ngv-insights-slide {
  font-size: 0.72rem;
  color: rgba(255, 255, 255, 0.7);
  line-height: 1.5;
  transition: opacity 0.35s ease, transform 0.35s ease;
}
.ngv-insights-slide.slide-out-left {
  opacity: 0;
  transform: translateX(-16px);
}
.ngv-insights-slide.slide-out-right {
  opacity: 0;
  transform: translateX(16px);
}
.ngv-insights-slide.slide-in {
  opacity: 0;
  transform: translateX(16px);
}
.ngv-insights-slide.slide-in-left {
  opacity: 0;
  transform: translateX(-16px);
}
.ngv-insights-controls {
  display: flex;
  align-items: center;
  gap: 4px;
  flex-shrink: 0;
}
.ngv-insights-arrow {
  background: none;
  border: none;
  color: rgba(255, 255, 255, 0.35);
  font-size: 0.6rem;
  cursor: pointer;
  padding: 3px 5px;
  border-radius: 4px;
  transition: color 0.2s ease, background 0.2s ease;
}
.ngv-insights-arrow:hover {
  color: rgba(255, 255, 255, 0.8);
  background: rgba(255, 255, 255, 0.06);
}
.ngv-insights-counter {
  font-size: 0.58rem;
  color: rgba(255, 255, 255, 0.25);
  min-width: 24px;
  text-align: center;
  font-variant-numeric: tabular-nums;
}
.ngv-insights-dismiss {
  background: none;
  border: none;
  color: rgba(255, 255, 255, 0.2);
  font-size: 0.6rem;
  cursor: pointer;
  padding: 3px 5px;
  border-radius: 4px;
  flex-shrink: 0;
  transition: color 0.2s ease;
}
.ngv-insights-dismiss:hover {
  color: rgba(255, 255, 255, 0.6);
}
.ngv-insights-progress {
  height: 2px;
  background: rgba(100, 180, 255, 0.4);
  width: 0%;
  transition: width 0.3s linear;
  border-radius: 0 0 10px 10px;
}
@keyframes insightsSlideUp {
  from { opacity: 0; transform: translateX(-50%) translateY(20px); }
  to   { opacity: 1; transform: translateX(-50%) translateY(0); }
}

/* ── Entity Dossier Modal ── */
/* ── Entity Dossier Modal ── */
.ngv-dossier-modal {
  max-width: 602px !important;
  width: 94vw !important;
  padding: 0 !important;
  overflow-y: auto !important;
  overflow-x: hidden !important;
  max-height: 90vh !important;
  border-radius: 20px !important;
  background: rgba(18, 40, 58, 0.4) !important;
  backdrop-filter: blur(12px) !important;
  -webkit-backdrop-filter: blur(12px) !important;
  border: 1px solid rgba(255, 255, 255, 0.1) !important;
  box-shadow: 0 32px 100px rgba(0, 0, 0, 0.5) !important;
}
.ngv-dossier-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.04);
  color: rgba(255, 255, 255, 0.35);
  font-size: 12px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
  z-index: 2;
}
.ngv-dossier-close:hover {
  background: rgba(255, 80, 80, 0.12);
  color: rgba(255, 100, 100, 0.9);
  border-color: rgba(255, 80, 80, 0.2);
}
.ngv-dossier-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 32px 28px 20px;
  text-align: center;
  background: rgba(255, 255, 255, 0.02);
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}
.ngv-dossier-avatar-wrap {
  position: relative;
  margin-bottom: 14px;
}
.ngv-dossier-avatar {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.04);
  border: 2px solid rgba(255, 255, 255, 0.1);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.25);
  transition: border-color 0.3s ease;
}
.ngv-dossier-avatar:hover { border-color: rgba(255, 255, 255, 0.2); }
.ngv-dossier-avatar i {
  color: rgba(255, 255, 255, 0.15);
  font-size: 24px;
}
.ngv-dossier-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.ngv-dossier-avatar-btn {
  display: none;
  position: absolute;
  bottom: 0;
  right: 0;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.15);
  cursor: pointer;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  color: #fff;
  border: 2px solid rgba(18, 40, 58, 0.8);
  transition: all 0.15s ease;
  backdrop-filter: blur(8px);
}
.ngv-dossier-avatar-btn:hover {
  transform: scale(1.1);
  background: rgba(255, 255, 255, 0.25);
}
.ngv-dossier-name {
  color: #fff !important;
  margin: 0 !important;
  font-weight: 600 !important;
  font-size: 1.15rem !important;
  letter-spacing: -0.02em;
}
.ngv-dossier-threat {
  margin-top: 8px;
}
.ngv-dossier-divider {
  height: 1px;
  background: rgba(255, 255, 255, 0.04);
  margin: 0;
}
.ngv-dossier-body {
  padding: 0;
  overflow-y: auto;
  max-height: calc(100vh - 180px);
}
.ngv-dossier-row {
  padding: 18px 28px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.03);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}
.ngv-dossier-row:last-child {
  border-bottom: none;
}
.ngv-dossier-section {
  padding: 18px 28px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}
.ngv-dossier-label {
  color: rgba(255, 255, 255, 0.35);
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 600;
  margin-bottom: 5px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
}
.ngv-dossier-label i {
  font-size: 0.6rem;
  opacity: 0.4;
}
.ngv-dossier-value {
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.75);
  line-height: 1.5;
  min-height: 14px;
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  align-items: center;
  justify-content: center;
}
.ngv-dossier-notes {
  white-space: pre-wrap;
  font-size: 0.72rem;
  color: rgba(255, 255, 255, 0.45);
  line-height: 1.5;
  display: block;
}
.ngv-dossier-edit-row {
  display: none;
  margin-top: 6px;
  gap: 4px;
  align-items: stretch;
  width: 170px;
  max-width: 170px;
  margin-left: auto;
  margin-right: auto;
}
.ngv-dossier-input {
  background: rgba(255, 255, 255, 0.03);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 6px;
  font-size: 0.68rem;
  padding: 5px 10px;
  height: 28px;
  box-sizing: border-box;
  flex: 1;
  min-width: 0;
  outline: none;
  transition: border-color 0.2s ease, background 0.2s ease;
}
.ngv-dossier-input:focus {
  border-color: rgba(255, 255, 255, 0.15);
  background: rgba(255, 255, 255, 0.05);
}
.ngv-dossier-select {
  background: rgba(255, 255, 255, 0.03);
  color: rgba(255, 255, 255, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 6px;
  font-size: 0.65rem;
  padding: 5px 8px;
  outline: none;
  width: 100%;
  max-width: none;
  box-sizing: border-box;
  height: 28px;
}
.ngv-dossier-add-btn {
  width: 28px;
  min-height: 28px;
  border-radius: 6px;
  border: 1px solid rgba(80, 200, 120, 0.15);
  background: rgba(80, 200, 120, 0.06);
  color: rgba(80, 200, 120, 0.6);
  font-size: 10px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.15s ease;
  flex-shrink: 0;
}
.ngv-dossier-add-btn:hover {
  background: rgba(80, 200, 120, 0.15);
  color: rgba(80, 200, 120, 0.9);
  border-color: rgba(80, 200, 120, 0.3);
}
.ngv-dossier-textarea {
  display: none;
  width: 100%;
  max-width: 570px;
  min-height: 146px;
  margin-top: 6px;
  background: rgba(255, 255, 255, 0.02);
  color: rgba(255, 255, 255, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 8px;
  font-size: 0.7rem;
  padding: 8px 12px;
  resize: vertical;
  outline: none;
  transition: border-color 0.2s ease;
  line-height: 1.5;
}
.ngv-dossier-textarea:focus {
  border-color: rgba(255, 255, 255, 0.12);
}
/* Dossier badge styling — compact pills */
.ngv-dossier-value .badge {
  font-size: 0.62rem !important;
  padding: 2px 8px !important;
  border-radius: 10px !important;
  font-weight: 500 !important;
  background: rgba(80, 160, 220, 0.1) !important;
  border: 1px solid rgba(80, 160, 220, 0.15);
  color: rgba(130, 200, 255, 0.85) !important;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  gap: 3px;
}
/* Group badges — green tint */
.ngv-dossier-value .badge-primary {
  background: rgba(60, 180, 100, 0.1) !important;
  border-color: rgba(60, 180, 100, 0.15);
  color: rgba(120, 220, 150, 0.85) !important;
}
/* Dossier custom select dropdowns */
.ngv-dossier-cselect .custom-select-trigger {
  font-size: 0.65rem;
  padding: 4px 22px 4px 8px;
  height: 28px;
  line-height: 20px;
  box-sizing: border-box;
}
/* Portaled dossier/evidence panels — strong blur */
#ngv-ev-translate-panel,
#ngv-sb-pid-platform-panel,
#ngv-sb-group-select-panel,
#ngv-sb-assoc-type-panel {
  background: rgba(18, 40, 58, 0.75) !important;
  backdrop-filter: blur(16px) !important;
  -webkit-backdrop-filter: blur(16px) !important;
  border: 1px solid rgba(255, 255, 255, 0.12) !important;
  border-radius: 10px !important;
}
/* Deep Monitoring button — yellow accent */
#ngv-sb-monitor-btn {
  color: rgba(230, 190, 60, 0.75) !important;
  border: 1px solid rgba(230, 190, 60, 0.15);
  background: rgba(230, 190, 60, 0.06);
  padding: 4px 14px;
  border-radius: 6px;
  font-size: 0.7rem;
  transition: all 0.2s ease;
}
#ngv-sb-monitor-btn:hover {
  color: rgba(230, 190, 60, 1) !important;
  background: rgba(230, 190, 60, 0.12);
  border-color: rgba(230, 190, 60, 0.3);
}

#ngv-entity-modal,
#ngv-entity-modal *,
#ngv-sidebar,
#ngv-sidebar * {
  -webkit-user-select: text !important;
  -moz-user-select: text !important;
  user-select: text !important;
}
#ng-dossier-panel,
#ng-dossier-panel * {
  -webkit-user-select: text !important;
  -moz-user-select: text !important;
  user-select: text !important;
}
#ng-dossier-panel {
  border-left: 3px solid rgba(100,180,255,0.3);
}
#tab-network .admin-table td,
#tab-network .badge {
  -webkit-user-select: text !important;
  -moz-user-select: text !important;
  user-select: text !important;
}

/* ── Admin UI Enhancements ─────────────────────────────────────────────── */

/* Tab content slide-in */
@keyframes adminTabSlideIn {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.3; }
}
@keyframes pageSwap {
  from { opacity: 0; transform: translateY(6px); }
  to   { opacity: 1; transform: translateY(0); }
}
.page-swap { animation: pageSwap 0.3s ease-out; }

/* Staggered list item entrance */
@keyframes adminRowSlideIn {
  from { opacity: 0; transform: translateX(-12px); }
  to   { opacity: 1; transform: translateX(0); }
}

/* Unread badge pulse */
@keyframes badgePulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(100, 200, 255, 0.5); }
  50%      { box-shadow: 0 0 6px 2px rgba(100, 200, 255, 0.25); }
}

.admin-tab-badge {
  animation: badgePulse 2.5s ease-in-out infinite;
}

/* Notification row transitions */
.notif-row {
  transition: opacity 0.3s ease, transform 0.3s ease, background 0.2s ease;
}

.notif-row:hover {
  background: rgba(100, 180, 255, 0.04);
}

.notif-row.notif-removing {
  opacity: 0;
  transform: translateX(20px);
}

/* Unread indicator glow */
.notif-unread {
  position: relative;
}

.notif-unread::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 2px;
  background: rgba(100, 200, 255, 0.6);
  border-radius: 1px;
  animation: unreadGlow 2s ease-in-out infinite;
}

@keyframes unreadGlow {
  0%, 100% { opacity: 0.6; }
  50%      { opacity: 1; box-shadow: 0 0 6px rgba(100, 200, 255, 0.4); }
}

/* Login code value emphasis */
.lc-code-value {
  position: relative;
  display: inline-block;
}

.lc-code-value::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(100, 255, 180, 0.3), transparent);
}

/* Button micro-interactions */
.notif-btn {
  transition: transform 0.15s ease, background 0.2s ease, box-shadow 0.2s ease !important;
}

.notif-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
}

.notif-btn:active {
  transform: translateY(0) scale(0.96);
}

/* Panel section label subtle animation */
.panel-section-label {
  transition: color 0.3s ease, letter-spacing 0.3s ease;
}

.side-panel:hover .panel-section-label {
  letter-spacing: 0.08em;
}
