:root {
  --adm-sidebar-w: 248px;
  --adm-accent: #10b981;
  --adm-accent-rgb: 16, 185, 129;
  --adm-dock-h: 62px;
}
[data-bs-theme="dark"] {
  --bs-body-bg: #060a14;
  --bs-body-bg-rgb: 6, 10, 20;
  --bs-secondary-bg: #0e172a;
  --bs-tertiary-bg: #0a1120;
  --bs-border-color: rgba(255, 255, 255, 0.08);
  --adm-card: rgba(13, 23, 42, 0.72);
  --adm-side: rgba(8, 14, 28, 0.88);
  --adm-topbar-bg: rgba(6, 10, 20, 0.82);
  --adm-glow-emerald: 0 0 24px rgba(16, 185, 129, 0.22);
  --adm-glow-cyan: 0 0 24px rgba(6, 182, 212, 0.22);
  --adm-glow-violet: 0 0 24px rgba(139, 92, 246, 0.22);
}
[data-bs-theme="light"] {
  --bs-body-bg: #f8fafc;
  --adm-card: #ffffff;
  --adm-side: #ffffff;
  --adm-topbar-bg: rgba(248, 250, 252, 0.9);
  --adm-glow-emerald: 0 4px 16px rgba(16, 185, 129, 0.15);
  --adm-glow-cyan: 0 4px 16px rgba(6, 182, 212, 0.15);
  --adm-glow-violet: 0 4px 16px rgba(139, 92, 246, 0.15);
}
body {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: .925rem;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  background-attachment: fixed;
}
[data-bs-theme="dark"] body {
  background-image: 
    radial-gradient(1200px 700px at 10% 5%, rgba(16, 185, 129, 0.07), transparent 70%),
    radial-gradient(900px 600px at 90% 90%, rgba(14, 165, 233, 0.07), transparent 60%),
    radial-gradient(700px 500px at 50% 40%, rgba(139, 92, 246, 0.04), transparent 75%);
  background-color: #060a14;
}
.adm-shell { display: flex; min-height: 100vh; }
.adm-sidebar { width: var(--adm-sidebar-w); background: var(--adm-side); border-right: 1px solid var(--bs-border-color); }
@media (min-width: 992px) { .adm-sidebar { position: sticky; top: 0; height: 100vh; overflow-y: auto; flex: 0 0 var(--adm-sidebar-w); } }
.adm-brand { padding: 1rem 1.15rem; border-bottom: 1px solid var(--bs-border-color); }
.adm-brand a { color: var(--bs-body-color); }
.adm-brand-ver { font-size: 0.72rem; }
.adm-logo { width: 34px; height: 34px; border-radius: 10px; display: inline-grid; place-items: center; font-weight: 800; color: #fff; background: linear-gradient(135deg, #10b981, #0ea5e9); box-shadow: 0 4px 12px rgba(16,185,129,.25); }
.adm-logo-sm { width: 28px; height: 28px; border-radius: 8px; font-size: 0.85rem; }
.adm-nav { padding: .5rem .6rem 1.5rem; }
.adm-nav-group { font-size: .7rem; text-transform: uppercase; letter-spacing: .08em; color: var(--bs-secondary-color); padding: .9rem .6rem .35rem; }
.adm-nav-link { display: flex; align-items: center; gap: .65rem; padding: .55rem .65rem; border-radius: .55rem; color: var(--bs-body-color); text-decoration: none; margin-bottom: 2px; min-height: 40px; transition: all .14s ease; }
.adm-nav-link i { font-size: 1.05rem; opacity: .8; }
.adm-nav-link:hover { background: var(--bs-secondary-bg); transform: translateX(2px); }
.adm-nav-link.active { background: rgba(16,185,129,.14); color: var(--adm-accent); font-weight: 600; }
.adm-main { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; }
.adm-topbar { position: sticky; top: 0; z-index: 1020; display: flex; align-items: center; gap: .75rem; padding: .6rem 1.25rem; background: var(--adm-topbar-bg); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-bottom: 1px solid var(--bs-border-color); }
.adm-burger-btn { width: 36px; height: 36px; padding: 0; display: grid; place-items: center; }
.adm-search { position: relative; align-items: center; width: min(420px, 45vw); }
.adm-search i { position: absolute; left: .65rem; color: var(--bs-secondary-color); font-size: .85rem; }
.adm-search input { padding-left: 2rem; padding-right: 2.5rem; border-radius: .55rem; }
.adm-search-hint { position: absolute; right: .6rem; font-size: .68rem; font-weight: 600; padding: .15rem .35rem; border-radius: 4px; background: var(--bs-secondary-bg); color: var(--bs-secondary-color); border: 1px solid var(--bs-border-color); pointer-events: none; }
.adm-mobile-search-bar { background: var(--adm-card); border-bottom: 1px solid var(--bs-border-color); box-shadow: 0 4px 16px rgba(0,0,0,.25); }
.adm-user-avatar { width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; background: rgba(16,185,129,.15); color: var(--adm-accent); font-size: 1.1rem; }
.adm-pulse { animation: admRadar 1.8s infinite ease-out; }
@keyframes admRadar { 0% { box-shadow: 0 0 0 0 rgba(16,185,129,.7); } 70% { box-shadow: 0 0 0 6px rgba(16,185,129,0); } 100% { box-shadow: 0 0 0 0 rgba(16,185,129,0); } }
.adm-content { padding: 1.25rem; flex: 1 1 auto; }
.adm-footer { padding: .8rem 1.25rem; border-top: 1px solid var(--bs-border-color); }
.card {
  background: var(--adm-card);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border: 1px solid var(--bs-border-color);
  border-radius: .95rem;
  box-shadow: 0 4px 20px rgba(0,0,0,.15), inset 0 1px 0 rgba(255,255,255,.05);
  transition: transform .18s cubic-bezier(0.16, 1, 0.3, 1), box-shadow .18s cubic-bezier(0.16, 1, 0.3, 1), border-color .18s ease;
}
.card-header {
  background: transparent;
  border-bottom-color: var(--bs-border-color);
  font-weight: 600;
  padding-top: .85rem;
  padding-bottom: .85rem;
  letter-spacing: .01em;
}
.adm-kpi {
  color: var(--bs-body-color);
  position: relative;
  overflow: hidden;
  border-radius: .95rem;
  transition: transform .2s cubic-bezier(0.16, 1, 0.3, 1), box-shadow .2s cubic-bezier(0.16, 1, 0.3, 1), border-color .2s ease;
}
.adm-kpi::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, rgba(16, 185, 129, 0.6), transparent);
  opacity: 0.7;
}
a.adm-kpi:hover {
  transform: translateY(-3px);
  border-color: rgba(16, 185, 129, 0.35);
  box-shadow: 0 12px 30px -4px rgba(0,0,0,.35), 0 0 18px rgba(16,185,129,.15);
}
.adm-kpi-icon {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  font-size: 1.45rem;
  background: var(--bs-secondary-bg);
  border: 1px solid var(--bs-border-color);
  flex: 0 0 48px;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.08);
}
.adm-kpi-label { font-size: .74rem; color: var(--bs-secondary-color); text-transform: uppercase; letter-spacing: .05em; font-weight: 600; }
.adm-kpi-value { font-size: 1.55rem; font-weight: 800; line-height: 1.2; letter-spacing: -0.02em; }
.adm-kpi-sub { font-size: .74rem; color: var(--bs-secondary-color); margin-top: 2px; }
.adm-chart { position: relative; width: 100%; }
.table { --bs-table-bg: transparent; }
.table > :not(caption) > * > * { padding: .55rem .65rem; }
.table thead th { font-size: .72rem; text-transform: uppercase; letter-spacing: .04em; color: var(--bs-secondary-color); font-weight: 600; white-space: nowrap; }
.table-hover > tbody > tr:hover > * { --bs-table-bg-state: rgba(16,185,129,.06); }
.min-w-0 { min-width: 0; }
.text-truncate-2 { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.adm-login { min-height: 100vh; display: grid; place-items: center; background: radial-gradient(900px 500px at 50% -20%, rgba(16,185,129,.18), transparent 60%), var(--bs-body-bg); }
.adm-login .card { width: min(420px, 92vw); }
.otp-input { letter-spacing: .4em; text-align: center; font-size: 1.4rem; font-weight: 700; }
.adm-phone { width: 300px; max-width: 100%; border-radius: 28px; border: 8px solid #1f2937; background: #0b1220; padding: 18px 12px; color: #e5e7eb; }
.adm-notif { background: rgba(255,255,255,.08); border-radius: 14px; padding: 10px 12px; }
.adm-notif .t { font-weight: 600; font-size: .9rem; }
.adm-notif .b { font-size: .82rem; opacity: .85; white-space: pre-wrap; }
.adm-code { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: .78rem; white-space: pre-wrap; word-break: break-all; max-height: 420px; overflow: auto; background: var(--bs-tertiary-bg); border-radius: .5rem; padding: .75rem; }
.nav-tabs .nav-link { color: var(--bs-secondary-color); }
.nav-tabs .nav-link.active { color: var(--bs-body-color); font-weight: 600; }
.progress { background: var(--bs-secondary-bg); }
#admQr svg, #admQr img { background: #fff; padding: 8px; border-radius: 8px; }
.adm-log { max-height: 70vh; overflow: auto; font-size: .75rem; padding: 12px; white-space: pre-wrap; word-break: break-all; }
/* Support call (Video/Audio aloqa) - Upgraded & Modernized */
.sc-stage {
  position: relative;
  background: radial-gradient(circle at center, #111827 0%, #030712 100%);
  border-radius: 1rem;
  width: 100%;
  height: clamp(440px, calc(100vh - 270px), 740px);
  min-height: 420px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.08), 0 16px 36px rgba(0,0,0,.5);
  user-select: none;
  transition: height .25s ease, border-radius .25s ease, box-shadow .25s ease;
}

#scRoot.theater-mode #scColSidebar {
  display: none !important;
}
#scRoot.theater-mode #scColStage {
  width: 100% !important;
  flex: 0 0 100% !important;
  max-width: 100% !important;
}
#scRoot.theater-mode .sc-stage {
  height: clamp(520px, calc(100vh - 170px), 920px);
}

.sc-stage:fullscreen,
.sc-stage:-webkit-full-screen {
  width: 100vw !important;
  height: 100vh !important;
  border-radius: 0 !important;
  background: #000 !important;
  box-shadow: none !important;
  z-index: 99999;
}

/* Inner viewport for video & pan/zoom */
.sc-stage-viewport {
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  cursor: default;
}

.sc-remote {
  max-width: 100%;
  max-height: 100%;
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: transparent;
  transform-origin: center center;
  transition: transform .18s cubic-bezier(.2,0,0,1);
  will-change: transform;
}

.sc-remote.fit-cover {
  object-fit: cover !important;
}
.sc-remote.fit-original {
  object-fit: none !important;
  width: auto !important;
  height: auto !important;
}

/* Local preview picture-in-picture */
.sc-local-wrap {
  position: absolute;
  z-index: 10;
  width: clamp(130px, 18vw, 210px);
  aspect-ratio: 4 / 3;
  border-radius: .85rem;
  overflow: hidden;
  box-shadow: 0 10px 28px rgba(0,0,0,.7), 0 0 0 2px rgba(255,255,255,.3);
  background: #111827;
  transition: all .25s ease;
}
.sc-local-wrap.pos-bottom-right { right: 16px; bottom: 68px; }
.sc-local-wrap.pos-bottom-left { left: 16px; bottom: 68px; }
.sc-local-wrap.pos-top-right { right: 16px; top: 60px; }
.sc-local-wrap.pos-top-left { left: 16px; top: 60px; }
.sc-local-wrap.minimized {
  width: 42px;
  height: 42px;
  aspect-ratio: 1;
  border-radius: 50%;
}
.sc-local-wrap.minimized video { display: none; }
.sc-local-wrap.minimized .sc-local-tools { opacity: 1 !important; }

.sc-local {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scaleX(-1);
}

.sc-local-tools {
  position: absolute;
  top: 6px;
  right: 6px;
  display: flex;
  gap: 4px;
  opacity: 0;
  transition: opacity .15s ease;
}
.sc-local-wrap:hover .sc-local-tools {
  opacity: 1;
}
.sc-local-btn {
  background: rgba(15,23,42,.85);
  border: 1px solid rgba(255,255,255,.2);
  color: #fff;
  border-radius: 6px;
  width: 24px;
  height: 24px;
  display: grid;
  place-items: center;
  font-size: .75rem;
  cursor: pointer;
  padding: 0;
}
.sc-local-btn:hover {
  background: #2563eb;
}

/* Stage top bar */
.sc-stage-topbar {
  position: absolute;
  top: 14px;
  left: 16px;
  right: 16px;
  z-index: 15;
  display: flex;
  align-items: center;
  gap: 8px;
  pointer-events: none;
  opacity: 1;
  transition: opacity .3s ease;
}
.sc-stage-topbar > * {
  pointer-events: auto;
}

.sc-source {
  background: rgba(15,23,42,.85);
  color: #fff;
  padding: .35rem .75rem;
  border-radius: 2rem;
  font-size: .8rem;
  font-weight: 600;
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,.15);
  display: inline-flex;
  align-items: center;
  gap: .4rem;
}
.sc-source.screen {
  background: rgba(220,38,38,.92);
  border-color: rgba(255,255,255,.3);
  box-shadow: 0 0 16px rgba(220,38,38,.45);
}

.sc-tool-btn {
  background: rgba(15,23,42,.8);
  border: 1px solid rgba(255,255,255,.18);
  color: #f1f5f9;
  width: 34px;
  height: 34px;
  border-radius: .5rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: .95rem;
  backdrop-filter: blur(8px);
  cursor: pointer;
  transition: all .15s ease;
}
.sc-tool-btn:hover {
  background: rgba(30,41,59,.95);
  color: #fff;
  transform: translateY(-1px);
  border-color: rgba(255,255,255,.35);
}

/* Floating Bottom Control Dock */
.sc-stage-dock {
  position: absolute;
  bottom: 16px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 20;
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(11, 18, 32, .9);
  backdrop-filter: blur(14px);
  border: 1px solid rgba(255,255,255,.15);
  border-radius: 3rem;
  padding: 6px 12px;
  box-shadow: 0 16px 36px rgba(0,0,0,.65);
  opacity: 0.95;
  transition: opacity .25s ease, transform .25s ease;
  max-width: calc(100% - 32px);
  overflow-x: auto;
}

.sc-stage:hover .sc-stage-dock,
.sc-stage:focus-within .sc-stage-dock,
.sc-stage:fullscreen .sc-stage-dock {
  opacity: 1;
}

/* Hide dock when cursor idle in fullscreen */
.sc-stage.cursor-hidden {
  cursor: none;
}
.sc-stage.cursor-hidden .sc-stage-dock,
.sc-stage.cursor-hidden .sc-stage-topbar {
  opacity: 0;
  pointer-events: none;
}

.sc-dock-group {
  display: flex;
  align-items: center;
  gap: 6px;
}

.sc-dock-btn {
  background: transparent;
  border: 1px solid transparent;
  color: #cbd5e1;
  height: 36px;
  padding: 0 10px;
  border-radius: 2rem;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: .82rem;
  font-weight: 500;
  cursor: pointer;
  white-space: nowrap;
  transition: all .15s ease;
}
.sc-dock-btn:hover {
  background: rgba(255,255,255,.12);
  color: #fff;
}
.sc-dock-btn.active {
  background: rgba(16,185,129,.22);
  border-color: rgba(16,185,129,.45);
  color: #34d399;
}
.sc-dock-btn.sc-dock-end {
  background: #dc2626 !important;
  color: #fff !important;
  font-weight: 600;
  padding: 0 14px;
}
.sc-dock-btn.sc-dock-end:hover {
  background: #b91c1c !important;
  box-shadow: 0 0 16px rgba(220,38,38,.5);
}

.sc-dock-zoom {
  display: flex;
  align-items: center;
  background: rgba(255,255,255,.08);
  border-radius: 2rem;
  padding: 2px 4px;
  gap: 2px;
}
.sc-dock-zoom .sc-dock-btn {
  height: 30px;
  padding: 0 8px;
}
.sc-zoom-val {
  font-size: .78rem;
  color: #cbd5e1;
  font-variant-numeric: tabular-nums;
  padding: 0 4px;
  min-width: 44px;
  text-align: center;
}

/* Toast inside stage */
.sc-toast {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(.9);
  background: rgba(15,23,42,.92);
  color: #fff;
  border: 1px solid rgba(255,255,255,.2);
  box-shadow: 0 12px 32px rgba(0,0,0,.6);
  backdrop-filter: blur(12px);
  padding: 10px 18px;
  border-radius: .8rem;
  font-size: .88rem;
  font-weight: 500;
  z-index: 50;
  opacity: 0;
  pointer-events: none;
  transition: all .2s cubic-bezier(.16,1,.3,1);
}
.sc-toast.show {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}

.sc-placeholder, .sc-audio {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  color: #cbd5e1;
  text-align: center;
  padding: 1.5rem;
  z-index: 5;
}
.sc-placeholder i, .sc-audio i { font-size: 3.5rem; opacity: .7; }
.sc-audio i { color: #10b981; animation: scPulse 1.4s ease-in-out infinite; }
@keyframes scPulse { 50% { transform: scale(1.15); opacity: .5; } }
.sc-dot { width: 10px; height: 10px; border-radius: 50%; background: #9ca3af; flex: 0 0 10px; }
.sc-dot.on { background: #10b981; box-shadow: 0 0 0 3px rgba(16,185,129,.25); }
/* Analitika */
.an-src { display: inline-flex; align-items: center; gap: .3rem; font-size: .72rem; font-weight: 500; color: var(--bs-secondary-color); background: var(--bs-tertiary-bg); border: 1px solid var(--bs-border-color); border-radius: 1rem; padding: .1rem .55rem; }
.an-empty { text-align: center; color: var(--bs-secondary-color); padding: 1.4rem .5rem; border: 1px dashed var(--bs-border-color); border-radius: .6rem; font-size: .88rem; }
.an-coverage { display: flex; flex-wrap: wrap; gap: .4rem .6rem; align-items: center; }
.an-cov { padding: .15rem .6rem; border-radius: 1rem; background: var(--bs-secondary-bg); border: 1px solid var(--bs-border-color); }
.an-cov.on { border-color: rgba(16,185,129,.45); }
.an-cov.off { border-color: rgba(245,158,11,.55); }
.an-zero td { color: var(--bs-secondary-color); }
.an-zero td:first-child + td a { color: #dc2626; }
.an-heat { border-collapse: separate; border-spacing: 2px; font-size: .7rem; width: 100%; }
.an-heat th { font-weight: 600; color: var(--bs-secondary-color); text-align: center; padding: 2px 3px; }
.an-heat td { text-align: center; min-width: 26px; height: 26px; border-radius: 4px; border: 1px solid var(--bs-border-color); }
.an-ret td, .an-ret th { text-align: center; white-space: nowrap; }

/* ==========================================================================
   Ergonomic Mobile Dock & Smartphone Responsiveness
   ========================================================================== */
.adm-mobile-dock {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 1040;
  display: flex;
  align-items: stretch;
  height: calc(var(--adm-dock-h) + env(safe-area-inset-bottom, 0px));
  padding-bottom: env(safe-area-inset-bottom, 0px);
  background: var(--adm-topbar-bg);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-top: 1px solid var(--bs-border-color);
  box-shadow: 0 -4px 24px rgba(0, 0, 0, 0.3);
}

.adm-dock-item {
  flex: 1 1 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  color: var(--bs-secondary-color);
  text-decoration: none;
  font-size: 0.68rem;
  font-weight: 500;
  border: none;
  background: transparent;
  cursor: pointer;
  padding: 6px 2px;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
  transition: all 0.15s ease;
  position: relative;
}
.adm-dock-item i {
  font-size: 1.25rem;
  line-height: 1;
  transition: transform 0.15s ease, color 0.15s ease;
}
.adm-dock-item:hover, .adm-dock-item:focus {
  color: var(--bs-body-color);
}
.adm-dock-item:active {
  transform: scale(0.92);
}
.adm-dock-item.active {
  color: var(--adm-accent);
  font-weight: 700;
}
.adm-dock-item.active i {
  transform: translateY(-2px);
  color: var(--adm-accent);
  filter: drop-shadow(0 2px 8px rgba(16, 185, 129, 0.45));
}
.adm-dock-badge {
  position: absolute;
  top: 4px;
  right: calc(50% - 18px);
  font-size: 0.62rem;
  font-weight: 700;
  padding: 0.15em 0.45em;
  border: 1.5px solid var(--bs-body-bg);
  box-shadow: 0 2px 6px rgba(0,0,0,0.3);
}

/* Offcanvas Sidebar Drawer (Mobile) */
@media (max-width: 991.98px) {
  .adm-sidebar.offcanvas-lg {
    max-width: 310px;
    width: 84vw;
    background: var(--adm-side);
    border-right: 1px solid var(--bs-border-color);
    box-shadow: 0 0 32px rgba(0, 0, 0, 0.5);
  }
  .adm-sidebar .adm-nav-link {
    min-height: 44px;
    padding: 0.65rem 0.85rem;
    font-size: 0.95rem;
    gap: 0.85rem;
  }
  .adm-sidebar .adm-nav-link i {
    font-size: 1.2rem;
  }
  .adm-content {
    padding: 0.85rem 0.75rem calc(var(--adm-dock-h) + env(safe-area-inset-bottom, 0px) + 1.25rem) !important;
  }
  .adm-footer {
    padding-bottom: calc(var(--adm-dock-h) + env(safe-area-inset-bottom, 0px) + 0.75rem) !important;
  }
  .adm-topbar {
    padding: 0.5rem 0.75rem;
  }
  .adm-search {
    width: 100%;
  }
}

/* Smartphone screen fine-tuning (< 576px) */
@media (max-width: 575.98px) {
  body {
    font-size: 0.88rem;
  }
  .adm-content {
    padding: 0.65rem 0.55rem calc(var(--adm-dock-h) + env(safe-area-inset-bottom, 0px) + 1rem) !important;
  }
  .adm-kpi .card-body {
    padding: 0.75rem 0.65rem;
    gap: 0.65rem;
  }
  .adm-kpi-icon {
    width: 36px;
    height: 36px;
    flex: 0 0 36px;
    border-radius: 10px;
    font-size: 1.15rem;
  }
  .adm-kpi-value {
    font-size: 1.2rem;
  }
  .adm-kpi-label {
    font-size: 0.68rem;
  }
  .adm-kpi-sub {
    font-size: 0.68rem;
  }
  .table > :not(caption) > * > * {
    padding: 0.45rem 0.45rem;
    font-size: 0.82rem;
  }
  .btn-sm {
    padding: 0.3rem 0.55rem;
    font-size: 0.8rem;
  }
  .card-header {
    padding: 0.65rem 0.75rem;
    font-size: 0.9rem;
  }
  .card-body {
    padding: 0.75rem;
  }
  .sc-stage {
    min-height: 280px;
    height: 50vh;
  }
  .pagination .page-link {
    padding: 0.35rem 0.55rem;
    font-size: 0.82rem;
  }
}

/* Horizontal Scroll Momentum & Visual Cue for Tables */
.table-responsive {
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
  position: relative;
}
.table-responsive::-webkit-scrollbar {
  height: 6px;
}
.table-responsive::-webkit-scrollbar-thumb {
  background: var(--bs-border-color);
  border-radius: 4px;
}
.table-responsive::-webkit-scrollbar-thumb:hover {
  background: var(--bs-secondary-color);
}
.table-scroll-hint {
  font-size: 0.72rem;
  color: var(--bs-secondary-color);
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 4px 8px;
}

/* Swipeable Pill Tabs for Mobile & Desktop */
.adm-tabs {
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  gap: 0.35rem;
}
.adm-tabs::-webkit-scrollbar {
  display: none;
}
.adm-tabs .nav-link {
  font-size: 0.85rem;
  padding: 0.45rem 0.85rem;
  border-radius: 2rem;
  background: var(--bs-secondary-bg);
  color: var(--bs-secondary-color);
  border: 1px solid var(--bs-border-color);
  transition: all 0.15s ease;
  white-space: nowrap;
}
.adm-tabs .nav-link:hover {
  color: var(--bs-body-color);
  background: rgba(16, 185, 129, 0.1);
  border-color: rgba(16, 185, 129, 0.3);
}
.adm-tabs .nav-link.active {
  background: var(--adm-accent) !important;
  color: #fff !important;
  border-color: var(--adm-accent) !important;
  font-weight: 600;
  box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
}

/* Live Telemetry Radar Dot */
.adm-live-badge {
  padding: 0.25rem 0.55rem;
  border-radius: 2rem;
  background: rgba(16, 185, 129, 0.1);
  border: 1px solid rgba(16, 185, 129, 0.25);
  font-size: 0.75rem;
  font-weight: 600;
  color: #10b981;
}
.adm-live-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background-color: #10b981;
  display: inline-block;
  box-shadow: 0 0 0 rgba(16, 185, 129, 0.4);
  animation: adm-live-pulse 2s infinite cubic-bezier(0.4, 0, 0.6, 1);
}
@keyframes adm-live-pulse {
  0% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7); }
  70% { box-shadow: 0 0 0 7px rgba(16, 185, 129, 0); }
  100% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}

/* Super-Commander Spotlight Modal (Raycast/Linear style) */
.adm-spotlight-modal .modal-content {
  border-radius: 1rem;
  overflow: hidden;
  border: 1px solid var(--bs-border-color) !important;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.45) !important;
  background: var(--bs-body-bg);
}
[data-bs-theme="dark"] .adm-spotlight-modal .modal-content {
  background: rgba(15, 23, 42, 0.95);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.12) !important;
}
.adm-spotlight-header {
  background: transparent;
}
.adm-spotlight-header input {
  font-size: 1.05rem;
  background: transparent !important;
  color: var(--bs-body-color);
}
.adm-spotlight-header input:focus {
  outline: none;
}
.adm-spotlight-list {
  max-height: 60vh;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
}
.adm-spotlight-item {
  color: inherit;
  transition: all 0.12s ease;
  cursor: pointer;
  border-left: 3px solid transparent;
}
.adm-spotlight-item:hover,
.adm-spotlight-item.is-selected {
  background: rgba(16, 185, 129, 0.08);
  border-left-color: var(--adm-accent);
  color: inherit;
  transform: translateX(2px);
}
[data-bs-theme="dark"] .adm-spotlight-item:hover,
[data-bs-theme="dark"] .adm-spotlight-item.is-selected {
  background: rgba(16, 185, 129, 0.16);
  border-left-color: #34d399;
}
.adm-spotlight-icon {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.15rem;
  flex-shrink: 0;
}
.adm-cmd-btn {
  border-radius: 2rem;
  padding: 0.25rem 0.65rem;
}
.adm-kbd {
  font-size: 0.68rem;
  padding: 0.15rem 0.35rem;
  border-radius: 4px;
  background: var(--bs-secondary-bg);
  color: var(--bs-secondary-color);
  border: 1px solid var(--bs-border-color);
}

/* Super Pulse HUD & Action Strip */
.adm-hud-card {
  border: 1px solid rgba(16, 185, 129, 0.25);
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.08) 0%, rgba(14, 165, 233, 0.06) 100%);
  border-radius: 1rem;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.08);
}
.adm-hud-stat {
  padding: 0.65rem 0.85rem;
  border-radius: 0.75rem;
  background: rgba(13, 23, 40, 0.65);
  border: 1px solid var(--bs-border-color);
  backdrop-filter: blur(12px);
  transition: all 0.18s ease;
}
.adm-hud-stat:hover {
  transform: translateY(-2px);
  border-color: rgba(16, 185, 129, 0.35);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.2);
}
.adm-super-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 0.95rem;
  font-size: 0.82rem;
  font-weight: 600;
  border-radius: 0.75rem;
  text-decoration: none;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  white-space: nowrap;
}
.adm-super-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
}

/* ==========================================================================
   FUTURISTIC CYBERPUNK / MISSION CONTROL DESIGN SYSTEM 2.0
   ========================================================================== */

/* Neon glowing badges */
.badge-neon-emerald {
  background: rgba(16, 185, 129, 0.15) !important;
  color: #34d399 !important;
  border: 1px solid rgba(16, 185, 129, 0.35);
  box-shadow: 0 0 12px rgba(16, 185, 129, 0.25);
}
.badge-neon-cyan {
  background: rgba(6, 182, 212, 0.15) !important;
  color: #22d3ee !important;
  border: 1px solid rgba(6, 182, 212, 0.35);
  box-shadow: 0 0 12px rgba(6, 182, 212, 0.25);
}
.badge-neon-amber {
  background: rgba(245, 158, 11, 0.15) !important;
  color: #fbbf24 !important;
  border: 1px solid rgba(245, 158, 11, 0.35);
  box-shadow: 0 0 12px rgba(245, 158, 11, 0.25);
}
.badge-neon-rose {
  background: rgba(244, 63, 94, 0.15) !important;
  color: #fb7185 !important;
  border: 1px solid rgba(244, 63, 94, 0.35);
  box-shadow: 0 0 12px rgba(244, 63, 94, 0.25);
}
.badge-neon-violet {
  background: rgba(139, 92, 246, 0.15) !important;
  color: #c084fc !important;
  border: 1px solid rgba(139, 92, 246, 0.35);
  box-shadow: 0 0 12px rgba(139, 92, 246, 0.25);
}

/* Pulsing radar dots */
.adm-pulse-dot {
  position: relative;
  display: inline-block;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #10b981;
}
.adm-pulse-dot::after {
  content: "";
  position: absolute;
  top: -3px;
  left: -3px;
  right: -3px;
  bottom: -3px;
  border-radius: 50%;
  border: 2px solid #10b981;
  animation: admPulseWave 1.8s infinite ease-out;
}
@keyframes admPulseWave {
  0% { transform: scale(0.6); opacity: 1; }
  100% { transform: scale(2.4); opacity: 0; }
}

/* Live Telemetry Dot */
.adm-live-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: #10b981;
  box-shadow: 0 0 10px #10b981;
  animation: admLiveBlink 1.4s infinite alternate;
}
@keyframes admLiveBlink {
  0% { opacity: 0.4; transform: scale(0.85); }
  100% { opacity: 1; transform: scale(1.15); box-shadow: 0 0 14px #10b981; }
}
.adm-live-badge {
  background: rgba(16, 185, 129, 0.1);
  border: 1px solid rgba(16, 185, 129, 0.25);
  padding: 0.2rem 0.6rem;
  border-radius: 2rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  color: #34d399;
}

/* Audio FX Toggle Button */
#admSoundToggle {
  position: relative;
  transition: all 0.2s ease;
}
#admSoundToggle.sound-on {
  color: #10b981;
  border-color: rgba(16, 185, 129, 0.4);
  background: rgba(16, 185, 129, 0.1);
  box-shadow: 0 0 10px rgba(16, 185, 129, 0.25);
}

/* ==========================================================================
   INTERACTIVE LIVING ECOSYSTEM TOPOLOGY MAP CANVAS
   ========================================================================== */
.adm-ecosystem-card {
  position: relative;
  background: radial-gradient(circle at 50% 50%, rgba(16, 185, 129, 0.04) 0%, rgba(13, 23, 42, 0.8) 100%);
  border: 1px solid rgba(16, 185, 129, 0.2);
  border-radius: 1rem;
  overflow: hidden;
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.4);
}
.adm-ecosystem-header {
  position: absolute;
  top: 14px;
  left: 18px;
  right: 18px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 10;
  pointer-events: none;
}
.adm-ecosystem-header * {
  pointer-events: auto;
}
#admEcosystemCanvas {
  display: block;
  width: 100%;
  height: 380px;
  cursor: grab;
}
#admEcosystemCanvas:active {
  cursor: grabbing;
}
.adm-node-tooltip {
  position: absolute;
  z-index: 20;
  pointer-events: none;
  background: rgba(10, 17, 32, 0.92);
  border: 1px solid rgba(16, 185, 129, 0.4);
  border-radius: 0.65rem;
  padding: 0.5rem 0.85rem;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5), 0 0 15px rgba(16, 185, 129, 0.2);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  color: #fff;
  font-size: 0.78rem;
  transform: translate(-50%, -120%);
  white-space: nowrap;
  transition: opacity 0.15s ease;
}

/* ==========================================================================
   REAL-TIME ACTIVITY RADAR & STREAM TICKER
   ========================================================================== */
.adm-stream-wrap {
  max-height: 380px;
  overflow-y: auto;
  scrollbar-width: thin;
}
.adm-stream-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.65rem 0.85rem;
  border-radius: 0.65rem;
  background: rgba(13, 23, 40, 0.45);
  border: 1px solid var(--bs-border-color);
  margin-bottom: 0.5rem;
  transition: all 0.2s ease;
  text-decoration: none;
  color: inherit;
}
.adm-stream-item:hover {
  background: rgba(16, 185, 129, 0.08);
  border-color: rgba(16, 185, 129, 0.35);
  transform: translateX(3px);
  color: inherit;
}
.adm-stream-icon {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  font-size: 0.95rem;
  flex-shrink: 0;
}

/* ==========================================================================
   HAMYON AI COPILOT 2.0 (FLOATING HUD & DRAWER)
   ========================================================================== */
.adm-copilot-fab {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  border: 0;
  outline: none;
  background: linear-gradient(135deg, #10b981 0%, #0ea5e9 50%, #8b5cf6 100%);
  color: #fff;
  font-size: 1.5rem;
  display: grid;
  place-items: center;
  z-index: 1045;
  cursor: pointer;
  box-shadow: 0 8px 28px rgba(16, 185, 129, 0.45), 0 0 20px rgba(14, 165, 233, 0.35);
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}
.adm-copilot-fab:hover {
  transform: scale(1.1) rotate(5deg);
  box-shadow: 0 12px 36px rgba(16, 185, 129, 0.6), 0 0 30px rgba(14, 165, 233, 0.5);
}
.adm-copilot-fab .pulse-ring {
  position: absolute;
  top: -4px;
  left: -4px;
  right: -4px;
  bottom: -4px;
  border-radius: 50%;
  border: 2px solid rgba(16, 185, 129, 0.6);
  animation: copilotRing 2.2s infinite ease-out;
}
@keyframes copilotRing {
  0% { transform: scale(0.85); opacity: 1; }
  100% { transform: scale(1.55); opacity: 0; }
}

/* Copilot Offcanvas Panel */
.adm-copilot-offcanvas {
  width: min(520px, 95vw) !important;
  background: rgba(8, 14, 28, 0.92) !important;
  backdrop-filter: blur(24px) !important;
  -webkit-backdrop-filter: blur(24px) !important;
  border-left: 1px solid rgba(16, 185, 129, 0.25) !important;
  box-shadow: -10px 0 40px rgba(0, 0, 0, 0.6) !important;
  color: #e2e8f0;
}
.adm-copilot-chat {
  height: calc(100vh - 230px);
  overflow-y: auto;
  padding: 1rem;
  scrollbar-width: thin;
}
.adm-copilot-msg {
  display: flex;
  gap: 0.75rem;
  margin-bottom: 1rem;
  animation: fadeInMsg 0.2s ease;
}
@keyframes fadeInMsg {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}
.adm-copilot-bubble {
  max-width: 85%;
  padding: 0.75rem 1rem;
  border-radius: 1rem;
  font-size: 0.86rem;
  line-height: 1.5;
  white-space: pre-wrap;
  word-break: break-word;
}
.adm-copilot-msg.user {
  flex-direction: row-reverse;
}
.adm-copilot-msg.user .adm-copilot-bubble {
  background: linear-gradient(135deg, #10b981, #059669);
  color: #fff;
  border-bottom-right-radius: 0.2rem;
  box-shadow: 0 4px 14px rgba(16, 185, 129, 0.25);
}
.adm-copilot-msg.ai .adm-copilot-bubble {
  background: rgba(19, 31, 54, 0.75);
  border: 1px solid rgba(255, 255, 255, 0.09);
  color: #e2e8f0;
  border-bottom-left-radius: 0.2rem;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.2);
}
.adm-copilot-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-top: 0.65rem;
}
.adm-copilot-chip {
  font-size: 0.74rem;
  font-weight: 600;
  padding: 0.25rem 0.65rem;
  border-radius: 2rem;
  background: rgba(16, 185, 129, 0.12);
  color: #34d399;
  border: 1px solid rgba(16, 185, 129, 0.3);
  cursor: pointer;
  transition: all 0.15s ease;
  text-decoration: none;
}
.adm-copilot-chip:hover {
  background: #10b981;
  color: #fff;
  transform: translateY(-1px);
}

/* Glowing futuristic scrollbars */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}
::-webkit-scrollbar-track {
  background: transparent;
}
::-webkit-scrollbar-thumb {
  background: rgba(148, 163, 184, 0.25);
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: rgba(16, 185, 129, 0.6);
  box-shadow: 0 0 10px rgba(16, 185, 129, 0.5);
}




