/*
  =====================================================
  PRUTHVI RAJ D S — ADMIN CONTROL CENTER DESIGN SYSTEM
  Inspired by Linear, Vercel, Stripe & Apple Liquid Glass
  =====================================================
*/

:root {
  --adm-bg-base: #060813;
  --adm-bg-surface: #0c1022;
  --adm-bg-card: rgba(16, 22, 44, 0.75);
  --adm-bg-card-hover: rgba(22, 30, 60, 0.85);
  --adm-sidebar-bg: rgba(9, 13, 28, 0.94);
  
  --adm-border: rgba(255, 255, 255, 0.08);
  --adm-border-hover: rgba(6, 182, 212, 0.35);
  
  --adm-text-primary: #f8fafc;
  --adm-text-secondary: #94a3b8;
  --adm-text-muted: #64748b;
  
  --adm-cyan: #06b6d4;
  --adm-blue: #3b82f6;
  --adm-violet: #8b5cf6;
  --adm-emerald: #10b981;
  --adm-amber: #f59e0b;
  --adm-rose: #f43f5e;
  
  --adm-shadow: 0 16px 40px -12px rgba(0, 0, 0, 0.6);
  --adm-blur: blur(20px);
  --adm-font-sans: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --adm-font-display: 'Syne', sans-serif;
  --adm-font-mono: 'DM Mono', monospace;
  --adm-sidebar-width: 260px;
}

[data-theme="light"] {
  --adm-bg-base: #f1f5f9;
  --adm-bg-surface: #ffffff;
  --adm-bg-card: rgba(255, 255, 255, 0.88);
  --adm-bg-card-hover: rgba(255, 255, 255, 0.98);
  --adm-sidebar-bg: rgba(248, 250, 252, 0.95);
  --adm-border: rgba(0, 0, 0, 0.08);
  --adm-border-hover: rgba(37, 99, 235, 0.35);
  --adm-text-primary: #0f172a;
  --adm-text-secondary: #475569;
  --adm-text-muted: #64748b;
  --adm-shadow: 0 14px 35px -10px rgba(0, 0, 0, 0.08);
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: var(--adm-font-sans);
  background-color: var(--adm-bg-base);
  color: var(--adm-text-primary);
  min-height: 100vh;
  line-height: 1.5;
  overflow-x: hidden;
  display: flex;
}

/* ────────────────────────────────────────────────────────
   ADMIN LAYOUT (SIDEBAR + MAIN WORKSPACE)
──────────────────────────────────────────────────────── */
.admin-shell {
  display: flex;
  width: 100%;
  min-height: 100vh;
}

/* Sidebar */
.admin-sidebar {
  width: var(--adm-sidebar-width);
  background: var(--adm-sidebar-bg);
  backdrop-filter: var(--adm-blur);
  -webkit-backdrop-filter: var(--adm-blur);
  border-right: 1px solid var(--adm-border);
  display: flex;
  flex-direction: column;
  position: fixed;
  top: 0;
  bottom: 0;
  left: 0;
  z-index: 100;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.sidebar-header {
  padding: 1.25rem 1.4rem;
  border-bottom: 1px solid var(--adm-border);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.sidebar-brand {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  text-decoration: none;
}

.brand-badge {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--adm-cyan), var(--adm-violet));
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-family: var(--adm-font-display);
  font-weight: 800;
  font-size: 0.9rem;
}

.brand-text h1 {
  font-family: var(--adm-font-display);
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--adm-text-primary);
  line-height: 1.1;
}

.brand-text span {
  font-family: var(--adm-font-mono);
  font-size: 0.65rem;
  color: var(--adm-cyan);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.sidebar-nav {
  flex: 1;
  overflow-y: auto;
  padding: 1rem 0.75rem;
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
}

.nav-group-title {
  font-family: var(--adm-font-mono);
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--adm-text-muted);
  padding: 0 0.65rem;
  margin-bottom: 0.35rem;
}

.nav-item {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.55rem 0.75rem;
  border-radius: 10px;
  color: var(--adm-text-secondary);
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: 500;
  transition: all 0.2s ease;
  position: relative;
}

.nav-item:hover {
  color: var(--adm-text-primary);
  background: rgba(255, 255, 255, 0.05);
}

.nav-item.active {
  color: #fff;
  background: linear-gradient(135deg, rgba(6, 182, 212, 0.18), rgba(59, 130, 246, 0.18));
  border: 1px solid rgba(6, 182, 212, 0.3);
  font-weight: 600;
}

.nav-item svg {
  width: 17px;
  height: 17px;
  flex-shrink: 0;
}

.nav-badge-pill {
  margin-left: auto;
  padding: 0.1rem 0.45rem;
  border-radius: 9999px;
  background: var(--adm-cyan);
  color: #000;
  font-family: var(--adm-font-mono);
  font-size: 0.68rem;
  font-weight: 700;
}

.sidebar-footer {
  padding: 1rem 1.15rem;
  border-top: 1px solid var(--adm-border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(0, 0, 0, 0.15);
}

.user-profile-badge {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

.user-avatar-mini {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 1.5px solid var(--adm-cyan);
}

.user-info-text {
  display: flex;
  flex-direction: column;
}

.user-role-tag {
  font-family: var(--adm-font-mono);
  font-size: 0.65rem;
  color: var(--adm-emerald);
  font-weight: 600;
  letter-spacing: 0.05em;
}

.user-email-truncate {
  font-size: 0.75rem;
  color: var(--adm-text-primary);
  max-width: 130px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* Main Workspace */
.admin-workspace {
  margin-left: var(--adm-sidebar-width);
  flex: 1;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  width: calc(100% - var(--adm-sidebar-width));
}

/* Topbar */
.admin-topbar {
  height: 64px;
  padding: 0 2rem;
  border-bottom: 1px solid var(--adm-border);
  background: var(--adm-bg-surface);
  backdrop-filter: var(--adm-blur);
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: sticky;
  top: 0;
  z-index: 90;
}

.topbar-left {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.topbar-title {
  font-family: var(--adm-font-display);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--adm-text-primary);
}

.topbar-actions {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

/* Status Badges */
.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.3rem 0.75rem;
  border-radius: 9999px;
  font-family: var(--adm-font-mono);
  font-size: 0.72rem;
  border: 1px solid var(--adm-border);
  background: rgba(255, 255, 255, 0.03);
}

.status-pulse-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--adm-emerald);
  box-shadow: 0 0 8px var(--adm-emerald);
  animation: pulseBeacon 2s infinite ease-out;
}

@keyframes pulseBeacon {
  0% { transform: scale(0.9); opacity: 1; }
  100% { transform: scale(2.2); opacity: 0; }
}

.btn-icon-square {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  border: 1px solid var(--adm-border);
  background: var(--adm-bg-card);
  color: var(--adm-text-secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-icon-square:hover {
  color: var(--adm-text-primary);
  border-color: var(--adm-cyan);
}

.btn-icon-square svg {
  width: 17px;
  height: 17px;
}

/* Workspace Content Container */
.admin-content {
  padding: 2rem;
  flex: 1;
  max-width: 1400px;
  width: 100%;
  margin: 0 auto;
}

/* ────────────────────────────────────────────────────────
   CARDS & CONTAINERS (APPLE LIQUID GLASS)
──────────────────────────────────────────────────────── */
.adm-card {
  background: var(--adm-bg-card);
  border: 1px solid var(--adm-border);
  border-radius: 20px;
  padding: 1.75rem;
  box-shadow: var(--adm-shadow);
  backdrop-filter: var(--adm-blur);
  -webkit-backdrop-filter: var(--adm-blur);
  position: relative;
  overflow: hidden;
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

.adm-card:hover {
  border-color: var(--adm-border-hover);
}

.adm-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.4rem;
}

.adm-card-title {
  font-family: var(--adm-font-display);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--adm-text-primary);
  display: flex;
  align-items: center;
  gap: 0.55rem;
}

.adm-card-title svg {
  width: 18px;
  height: 18px;
  color: var(--adm-cyan);
}

/* KPI Metrics Grid */
.kpi-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.25rem;
  margin-bottom: 1.75rem;
}

.kpi-card {
  background: var(--adm-bg-card);
  border: 1px solid var(--adm-border);
  border-radius: 16px;
  padding: 1.4rem;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
}

.kpi-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--kpi-color, var(--adm-cyan)), transparent);
}

.kpi-label {
  font-family: var(--adm-font-mono);
  font-size: 0.72rem;
  text-transform: uppercase;
  color: var(--adm-text-muted);
  letter-spacing: 0.08em;
  margin-bottom: 0.35rem;
}

.kpi-value {
  font-family: var(--adm-font-display);
  font-size: 2rem;
  font-weight: 800;
  color: var(--adm-text-primary);
  line-height: 1.1;
  margin-bottom: 0.35rem;
}

.kpi-trend {
  font-family: var(--adm-font-mono);
  font-size: 0.72rem;
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  color: var(--adm-emerald);
}

/* Action Buttons */
.adm-btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.6rem 1.25rem;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--adm-cyan), var(--adm-blue));
  color: #fff;
  border: none;
  font-family: var(--adm-font-sans);
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 4px 14px rgba(6, 182, 212, 0.25);
}

.adm-btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(6, 182, 212, 0.35);
}

.adm-btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.6rem 1.15rem;
  border-radius: 10px;
  background: var(--adm-bg-surface);
  border: 1px solid var(--adm-border);
  color: var(--adm-text-secondary);
  font-family: var(--adm-font-sans);
  font-size: 0.85rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
}

.adm-btn-secondary:hover {
  color: var(--adm-text-primary);
  border-color: var(--adm-cyan);
}

.adm-btn-danger {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.55rem 1rem;
  border-radius: 8px;
  background: rgba(244, 63, 94, 0.12);
  border: 1px solid rgba(244, 63, 94, 0.35);
  color: var(--adm-rose);
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.adm-btn-danger:hover {
  background: var(--adm-rose);
  color: #fff;
}

/* ────────────────────────────────────────────────────────
   DATA TABLES
──────────────────────────────────────────────────────── */
.adm-table-wrap {
  overflow-x: auto;
  border-radius: 12px;
  border: 1px solid var(--adm-border);
}

.adm-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.85rem;
  text-align: left;
}

.adm-table th {
  background: rgba(0, 0, 0, 0.2);
  padding: 0.85rem 1rem;
  font-family: var(--adm-font-mono);
  font-size: 0.72rem;
  text-transform: uppercase;
  color: var(--adm-text-muted);
  letter-spacing: 0.08em;
  border-bottom: 1px solid var(--adm-border);
}

.adm-table td {
  padding: 0.95rem 1rem;
  border-bottom: 1px solid var(--adm-border);
  color: var(--adm-text-secondary);
}

.adm-table tr:last-child td {
  border-bottom: none;
}

.adm-table tr:hover td {
  background: rgba(255, 255, 255, 0.02);
  color: var(--adm-text-primary);
}

/* Tag Pills */
.tag-badge {
  display: inline-block;
  padding: 0.18rem 0.55rem;
  border-radius: 9999px;
  font-family: var(--adm-font-mono);
  font-size: 0.68rem;
  background: rgba(6, 182, 212, 0.12);
  border: 1px solid rgba(6, 182, 212, 0.3);
  color: var(--adm-cyan);
}

.tag-badge.published {
  background: rgba(16, 185, 129, 0.12);
  border-color: rgba(16, 185, 129, 0.35);
  color: var(--adm-emerald);
}

.tag-badge.draft {
  background: rgba(245, 158, 11, 0.12);
  border-color: rgba(245, 158, 11, 0.35);
  color: var(--adm-amber);
}

/* Modal Dialogs */
.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: rgba(6, 8, 19, 0.85);
  backdrop-filter: blur(12px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  opacity: 0;
  visibility: hidden;
  transition: all 0.25s ease;
}

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

.modal-box {
  background: var(--adm-bg-surface);
  border: 1px solid var(--adm-border);
  border-radius: 20px;
  width: 100%;
  max-width: 640px;
  max-height: 88vh;
  overflow-y: auto;
  padding: 2rem;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.7);
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.6rem;
  border-bottom: 1px solid var(--adm-border);
  padding-bottom: 1rem;
}

.modal-title {
  font-family: var(--adm-font-display);
  font-size: 1.25rem;
  font-weight: 700;
}

.form-group {
  margin-bottom: 1.25rem;
}

.form-label {
  display: block;
  font-family: var(--adm-font-mono);
  font-size: 0.75rem;
  color: var(--adm-text-secondary);
  margin-bottom: 0.4rem;
}

.form-input, .form-textarea, .form-select {
  width: 100%;
  padding: 0.75rem 0.95rem;
  border-radius: 10px;
  background: var(--adm-bg-card);
  border: 1px solid var(--adm-border);
  color: var(--adm-text-primary);
  font-family: var(--adm-font-sans);
  font-size: 0.88rem;
  outline: none;
  transition: border-color 0.2s ease;
}

.form-input:focus, .form-textarea:focus, .form-select:focus {
  border-color: var(--adm-cyan);
}

/* Toast Notifications */
#toastContainer {
  position: fixed;
  bottom: 1.75rem;
  right: 1.75rem;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.toast {
  padding: 0.85rem 1.25rem;
  border-radius: 12px;
  background: var(--adm-bg-surface);
  border: 1px solid var(--adm-border);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
  font-size: 0.85rem;
  display: flex;
  align-items: center;
  gap: 0.65rem;
  animation: toastIn 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.toast.success { border-color: var(--adm-emerald); color: var(--adm-emerald); }
.toast.error { border-color: var(--adm-rose); color: var(--adm-rose); }

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

/* Responsive Mobile Sidebar */
.mob-menu-btn {
  display: none;
}

.btn-icon-mini {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--adm-border);
  color: var(--adm-text-secondary);
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-icon-mini:hover {
  background: var(--adm-border-hover);
  color: var(--adm-cyan);
}

@media (max-width: 900px) {
  .admin-sidebar {
    transform: translateX(-100%);
  }

  .admin-sidebar.open {
    transform: translateX(0);
  }

  .admin-workspace {
    margin-left: 0;
    width: 100%;
  }

  .mob-menu-btn {
    display: flex;
  }
}

/* ────────────────────────────────────────────────────────
   LIVE GEOSPATIAL WORLD MAP & SATELLITE RADAR STYLES
   ──────────────────────────────────────────────────────── */

.live-map-card {
  background: #040813;
  border: 1px solid rgba(0, 240, 255, 0.24);
  border-radius: var(--adm-radius-lg);
  overflow: hidden;
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.72), 0 0 22px rgba(0, 240, 255, 0.08);
  margin-bottom: 1.75rem;
}

.live-map-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 1.35rem;
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.85) 0%, rgba(7, 11, 24, 0.92) 100%);
  border-bottom: 1px solid rgba(0, 240, 255, 0.14);
  flex-wrap: wrap;
  gap: 0.75rem;
}

.map-live-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  background: rgba(0, 240, 255, 0.12);
  padding: 0.28rem 0.75rem;
  border-radius: 20px;
  border: 1px solid rgba(0, 240, 255, 0.36);
  font-family: var(--adm-font-mono);
  font-size: 0.74rem;
  color: #00f0ff;
}

.map-header-btn {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #cbd5e1;
  font-family: var(--adm-font-sans);
  font-size: 0.74rem;
  font-weight: 600;
  padding: 0.34rem 0.75rem;
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.18s ease, color 0.18s ease, border-color 0.18s ease;
}

.map-header-btn:hover {
  background: rgba(0, 240, 255, 0.14);
  border-color: rgba(0, 240, 255, 0.45);
  color: #f8fafc;
}

.hud-status-badge {
  font-family: var(--adm-font-mono);
  font-size: 0.65rem;
  font-weight: 700;
  padding: 0.18rem 0.5rem;
  background: rgba(0, 240, 255, 0.14);
  border: 1px solid rgba(0, 240, 255, 0.38);
  color: #00f0ff;
  border-radius: 4px;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.live-map-wrapper,
.globe-3d-wrapper {
  position: relative;
  width: 100%;
  min-height: 420px;
  background: radial-gradient(circle at 50% 48%, #07142a 0%, #030712 58%, #010308 100%);
  overflow: hidden;
  outline: none;
}

.live-map-wrapper.fullscreen,
.globe-3d-wrapper.fullscreen {
  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
  width: 100vw !important;
  height: 100vh !important;
  z-index: 99999 !important;
  border-radius: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
}

/* Deep-Space Subtle Starfield Behind 3D Earth Globe */
.globe-starfield {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background-image:
    radial-gradient(1px 1px at 12% 18%, rgba(255, 255, 255, 0.72), transparent),
    radial-gradient(1.2px 1.2px at 26% 74%, rgba(186, 230, 253, 0.65), transparent),
    radial-gradient(1px 1px at 41% 14%, rgba(255, 255, 255, 0.55), transparent),
    radial-gradient(1.5px 1.5px at 58% 82%, rgba(56, 189, 248, 0.55), transparent),
    radial-gradient(1px 1px at 73% 24%, rgba(255, 255, 255, 0.7), transparent),
    radial-gradient(1.2px 1.2px at 86% 62%, rgba(224, 242, 254, 0.6), transparent),
    radial-gradient(1px 1px at 92% 16%, rgba(255, 255, 255, 0.5), transparent),
    radial-gradient(1px 1px at 18% 48%, rgba(255, 255, 255, 0.45), transparent),
    radial-gradient(1px 1px at 66% 42%, rgba(255, 255, 255, 0.4), transparent),
    radial-gradient(1.2px 1.2px at 34% 90%, rgba(125, 211, 252, 0.5), transparent);
  opacity: 0.9;
}

.live-map-canvas {
  position: relative;
  width: 100%;
  height: 100%;
  z-index: 1;
  background: transparent;
  cursor: grab;
}

.live-map-canvas:active {
  cursor: grabbing;
}

/* Crisp MapLibre Metric Scale Bar */
.live-map-wrapper .maplibregl-ctrl-bottom-left {
  bottom: 12px !important;
  left: 12px !important;
  z-index: 900 !important;
}

.live-map-wrapper .maplibregl-ctrl-scale {
  background: rgba(4, 8, 19, 0.84) !important;
  border: 1px solid rgba(0, 240, 255, 0.45) !important;
  border-top: none !important;
  color: #cbd5e1 !important;
  font-family: var(--adm-font-mono) !important;
  font-size: 0.64rem !important;
  padding: 2px 6px !important;
  border-radius: 0 0 4px 4px;
  backdrop-filter: blur(8px);
}

/* Fullscreen Card Mode (keeps Top & Bottom toolbars accessible!) */
.live-map-card.globe-card-fullscreen {
  position: fixed !important;
  inset: 0 !important;
  z-index: 99999 !important;
  margin: 0 !important;
  border-radius: 0 !important;
  display: flex !important;
  flex-direction: column !important;
  height: 100vh !important;
  width: 100vw !important;
}

.live-map-card.globe-card-fullscreen .live-map-wrapper {
  flex: 1 1 auto !important;
  height: auto !important;
  min-height: 0 !important;
}

/* De-Congested Docked Toolbars (Above & Below 3D Globe — Zero Canvas Overlap!) */
.globe-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.6rem;
  padding: 0.65rem 1rem;
  background: rgba(8, 14, 29, 0.96);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.globe-toolbar-bottom {
  border-bottom: none;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.globe-toolbar-group {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  flex-wrap: wrap;
}

.globe-search-inline {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(0, 240, 255, 0.25);
  border-radius: 9px;
  padding: 3px 5px 3px 9px;
  width: 240px;
  max-width: 100%;
  flex-wrap: nowrap;
}

.globe-surface-group {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 9px;
  padding: 3px;
}

.globe-tool-btn {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.11);
  color: #cbd5e1;
  font-family: var(--adm-font-sans);
  font-size: 0.72rem;
  font-weight: 600;
  padding: 5px 10px;
  border-radius: 7px;
  cursor: pointer;
  transition: all 0.15s ease;
  white-space: nowrap;
}

.globe-tool-btn:hover {
  background: rgba(0, 240, 255, 0.14);
  border-color: rgba(0, 240, 255, 0.45);
  color: #ffffff;
}

.globe-tool-btn.active {
  background: rgba(0, 240, 255, 0.18);
  border-color: #00f0ff;
  color: #00f0ff;
}

.globe-tool-btn.accent {
  background: rgba(0, 240, 255, 0.14);
  border-color: rgba(0, 240, 255, 0.42);
  color: #00f0ff;
  font-weight: 700;
}

.globe-tool-btn.accent:hover {
  background: #00f0ff;
  color: #020617;
}

/* Minimalist Canvas Zoom Pill (Only element on the 3D Globe canvas) */
.globe-mini-zoom {
  position: absolute;
  right: 14px;
  bottom: 14px;
  z-index: 950;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  padding: 5px;
  background: rgba(6, 11, 24, 0.85);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(0, 240, 255, 0.28);
  border-radius: 10px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.55);
}

.globe-mini-zoom-btn {
  width: 30px;
  height: 28px;
  border-radius: 7px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.05);
  color: #f8fafc;
  font-size: 1rem;
  font-weight: 700;
  line-height: 1;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: all 0.14s ease;
}

.globe-mini-zoom-btn:hover {
  background: rgba(0, 240, 255, 0.2);
  border-color: #00f0ff;
  color: #00f0ff;
}

.globe-mini-zoom-readout {
  font-family: var(--adm-font-mono);
  font-size: 0.62rem;
  font-weight: 700;
  color: #00f0ff;
  padding: 2px 0;
}

/* Bottom Bar Horizontal Zoom Slider & Presets */
.globe-zoom-bar-inline {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  flex-wrap: wrap;
}

.globe-tier-chip {
  font-family: var(--adm-font-mono);
  font-size: 0.64rem;
  font-weight: 700;
  color: #38bdf8;
  background: rgba(56, 189, 248, 0.12);
  border: 1px solid rgba(56, 189, 248, 0.28);
  padding: 2px 7px;
  border-radius: 5px;
}

.globe-zoom-slider-h {
  -webkit-appearance: none;
  appearance: none;
  width: 130px;
  height: 6px;
  border-radius: 999px;
  background: linear-gradient(
    90deg,
    #00f0ff 0%,
    #00f0ff var(--zoom-pct, 8%),
    rgba(148, 163, 184, 0.25) var(--zoom-pct, 8%),
    rgba(148, 163, 184, 0.25) 100%
  );
  cursor: pointer;
  outline: none;
}

.globe-zoom-slider-h::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 15px;
  height: 15px;
  border-radius: 50%;
  background: #00f0ff;
  border: 2px solid #020617;
  box-shadow: 0 0 8px rgba(0, 240, 255, 0.8);
  cursor: grab;
}

.globe-zoom-slider-h::-moz-range-thumb {
  width: 15px;
  height: 15px;
  border-radius: 50%;
  background: #00f0ff;
  border: 2px solid #020617;
  box-shadow: 0 0 8px rgba(0, 240, 255, 0.8);
  cursor: grab;
}

.globe-alt-readout {
  font-family: var(--adm-font-mono);
  font-size: 0.68rem;
  color: #94a3b8;
  min-width: 82px;
}

.globe-presets-inline {
  display: inline-flex;
  gap: 4px;
}

.globe-presets-inline .zoom-preset-btn {
  padding: 0 8px;
  height: 24px;
}

.globe-telemetry-inline {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  font-family: var(--adm-font-mono);
  font-size: 0.68rem;
  color: #cbd5e1;
}

.globe-clock-readout {
  color: #00f0ff;
  font-weight: 700;
}

.globe-targets-footer {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.5rem 1rem;
  background: rgba(4, 8, 19, 0.95);
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.globe-targets-label {
  font-family: var(--adm-font-mono);
  font-size: 0.66rem;
  font-weight: 700;
  color: #64748b;
  text-transform: uppercase;
  white-space: nowrap;
}

/* Top-Left Instant Search & Coordinate Jump */
.map-search-bar {
  position: absolute;
  top: 14px;
  left: 14px;
  z-index: 1000;
  display: flex;
  align-items: center;
  gap: 6px;
  background: rgba(6, 11, 24, 0.88);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(0, 240, 255, 0.25);
  border-radius: 10px;
  padding: 4px 6px 4px 10px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5);
  width: 255px;
  max-width: calc(100% - 110px);
}

.map-search-icon {
  color: #00f0ff;
  font-size: 0.92rem;
  line-height: 1;
  user-select: none;
}

.map-search-input {
  flex: 1;
  min-width: 0;
  background: transparent;
  border: none;
  outline: none;
  color: #f8fafc;
  font-family: var(--adm-font-sans);
  font-size: 0.74rem;
  padding: 4px 2px;
}

.map-search-input::placeholder {
  color: #64748b;
}

.map-search-input.search-miss {
  color: #fb7185;
}

.map-search-go {
  background: rgba(0, 240, 255, 0.16);
  border: 1px solid rgba(0, 240, 255, 0.38);
  color: #00f0ff;
  font-family: var(--adm-font-mono);
  font-size: 0.68rem;
  font-weight: 700;
  padding: 4px 9px;
  border-radius: 7px;
  cursor: pointer;
  transition: all 0.16s ease;
}

.map-search-go:hover {
  background: #00f0ff;
  color: #020617;
}

/* Top-Right 4-Mode Basemap Switcher */
.map-controls-floating {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 1000;
  display: flex;
  gap: 4px;
  background: rgba(6, 11, 24, 0.88);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  padding: 4px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5);
}

.map-control-btn {
  background: transparent;
  border: none;
  color: #94a3b8;
  font-family: var(--adm-font-sans);
  font-size: 0.72rem;
  font-weight: 600;
  padding: 5px 10px;
  border-radius: 7px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  transition: all 0.16s ease;
  white-space: nowrap;
}

.map-control-btn:hover {
  color: #f8fafc;
  background: rgba(255, 255, 255, 0.08);
}

.map-control-btn.active {
  background: #00f0ff;
  color: #020617;
  font-weight: 700;
  box-shadow: 0 0 12px rgba(0, 240, 255, 0.45);
}

/* Left Layer Display Toggles */
.map-layer-toggles {
  position: absolute;
  top: 58px;
  left: 14px;
  z-index: 1000;
  display: flex;
  gap: 6px;
}

.map-toggle-pill {
  background: rgba(6, 11, 24, 0.84);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #94a3b8;
  font-family: var(--adm-font-mono);
  font-size: 0.66rem;
  font-weight: 600;
  padding: 4px 9px;
  border-radius: 7px;
  cursor: pointer;
  backdrop-filter: blur(10px);
  transition: all 0.16s ease;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
}

.map-toggle-pill:hover {
  color: #f8fafc;
  border-color: rgba(0, 240, 255, 0.4);
}

.map-toggle-pill.active {
  color: #00f0ff;
  border-color: rgba(0, 240, 255, 0.55);
  background: rgba(0, 240, 255, 0.15);
}

/* Pro Floating Right Precision Zoom & Camera Control Dock */
.map-zoom-dock {
  position: absolute;
  top: 62px;
  right: 14px;
  z-index: 1000;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  width: 68px;
  padding: 8px 6px;
  background: rgba(6, 11, 24, 0.9);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(0, 240, 255, 0.24);
  border-radius: 14px;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.62);
}

.zoom-dock-telemetry {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  width: 100%;
  padding-bottom: 4px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.zoom-dock-level {
  font-family: var(--adm-font-mono);
  font-size: 0.78rem;
  font-weight: 800;
  color: #00f0ff;
  line-height: 1.1;
}

.zoom-dock-tier {
  font-family: var(--adm-font-mono);
  font-size: 0.55rem;
  font-weight: 700;
  color: #38bdf8;
  letter-spacing: 0.06em;
  margin-top: 2px;
}

.zoom-dock-alt {
  font-family: var(--adm-font-mono);
  font-size: 0.54rem;
  color: #94a3b8;
  margin-top: 1px;
}

.zoom-dock-btn {
  width: 36px;
  height: 30px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.05);
  color: #f1f5f9;
  font-size: 1rem;
  font-weight: 700;
  line-height: 1;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: all 0.15s ease;
}

.zoom-dock-btn:hover {
  background: rgba(0, 240, 255, 0.18);
  border-color: #00f0ff;
  color: #00f0ff;
  transform: scale(1.04);
}

.zoom-dock-btn:active {
  transform: scale(0.95);
}

/* Vertical Smooth Zoom Slider (Z2 -> Z20) */
.zoom-slider-wrap {
  height: 92px;
  width: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.zoom-range-slider {
  -webkit-appearance: none;
  appearance: none;
  width: 86px;
  height: 6px;
  border-radius: 999px;
  background: linear-gradient(
    90deg,
    #00f0ff 0%,
    #00f0ff var(--zoom-pct, 10%),
    rgba(148, 163, 184, 0.25) var(--zoom-pct, 10%),
    rgba(148, 163, 184, 0.25) 100%
  );
  transform: rotate(-90deg);
  cursor: pointer;
  outline: none;
}

.zoom-range-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 15px;
  height: 15px;
  border-radius: 50%;
  background: #00f0ff;
  border: 2px solid #020617;
  box-shadow: 0 0 10px rgba(0, 240, 255, 0.85);
  cursor: grab;
  transition: transform 0.12s ease;
}

.zoom-range-slider::-webkit-slider-thumb:active {
  cursor: grabbing;
  transform: scale(1.2);
}

.zoom-range-slider::-moz-range-thumb {
  width: 15px;
  height: 15px;
  border-radius: 50%;
  background: #00f0ff;
  border: 2px solid #020617;
  box-shadow: 0 0 10px rgba(0, 240, 255, 0.85);
  cursor: grab;
}

.zoom-dock-divider {
  width: 75%;
  height: 1px;
  background: rgba(255, 255, 255, 0.08);
  margin: 1px 0;
}

.zoom-preset-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px;
  width: 100%;
}

.zoom-preset-btn {
  height: 22px;
  border-radius: 6px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.04);
  color: #94a3b8;
  font-family: var(--adm-font-mono);
  font-size: 0.62rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.15s ease;
}

.zoom-preset-btn:hover {
  background: rgba(0, 240, 255, 0.18);
  border-color: rgba(0, 240, 255, 0.5);
  color: #00f0ff;
}

.zoom-preset-btn.active {
  background: rgba(0, 240, 255, 0.22);
  border-color: #00f0ff;
  color: #00f0ff;
  box-shadow: 0 0 10px rgba(0, 240, 255, 0.35);
}

/* Bottom Dock: Quick Region Bar + Live Target Jump Strip */
.map-bottom-dock {
  position: absolute;
  bottom: 14px;
  left: 14px;
  z-index: 1000;
  display: flex;
  flex-direction: column;
  gap: 6px;
  max-width: calc(100% - 210px);
}

.map-region-bar {
  display: flex;
  gap: 5px;
  background: rgba(6, 11, 24, 0.88);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  padding: 4px 6px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5);
  flex-wrap: wrap;
}

.map-region-btn {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: #cbd5e1;
  font-family: var(--adm-font-sans);
  font-size: 0.7rem;
  font-weight: 600;
  padding: 4px 9px;
  border-radius: 7px;
  cursor: pointer;
  transition: all 0.16s ease;
}

.map-region-btn:hover {
  background: rgba(255, 255, 255, 0.14);
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.22);
}

.map-region-btn.accent {
  color: #00f0ff;
  border-color: rgba(0, 240, 255, 0.35);
  background: rgba(0, 240, 255, 0.12);
  font-weight: 700;
}

.map-region-btn.accent:hover {
  background: #00f0ff;
  color: #020617;
}

.map-target-strip {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: nowrap;
  overflow-x: auto;
  scrollbar-width: none;
}

.map-target-strip::-webkit-scrollbar {
  display: none;
}

.map-target-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(6, 11, 24, 0.88);
  border: 1px solid rgba(0, 240, 255, 0.3);
  color: #e2e8f0;
  font-family: var(--adm-font-mono);
  font-size: 0.67rem;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  backdrop-filter: blur(10px);
  transition: all 0.16s ease;
}

.map-target-pill:hover {
  border-color: #00f0ff;
  background: rgba(0, 240, 255, 0.18);
  color: #ffffff;
}

.map-target-pill.owner {
  border-color: rgba(245, 158, 11, 0.5);
  color: #fde68a;
}

.map-target-pill.hub {
  border-color: rgba(59, 130, 246, 0.45);
  color: #bfdbfe;
}

.map-target-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #00f0ff;
  box-shadow: 0 0 8px #00f0ff;
}

.map-target-pill.owner .map-target-dot {
  background: #f59e0b;
  box-shadow: 0 0 8px #f59e0b;
}

.map-target-pill.hub .map-target-dot {
  background: #3b82f6;
  box-shadow: 0 0 6px #3b82f6;
}

.map-target-empty {
  font-family: var(--adm-font-mono);
  font-size: 0.65rem;
  color: #94a3b8;
  background: rgba(6, 11, 24, 0.78);
  border: 1px solid rgba(255, 255, 255, 0.08);
  padding: 3px 9px;
  border-radius: 999px;
  backdrop-filter: blur(8px);
}

/* Bottom-Right Compact Telemetry Corner */
.hud-corner {
  position: absolute;
  font-family: var(--adm-font-mono);
  font-size: 0.66rem;
  letter-spacing: 0.05em;
  color: #00f0ff;
  z-index: 850;
  pointer-events: none;
  background: rgba(6, 11, 24, 0.8);
  border: 1px solid rgba(0, 240, 255, 0.2);
  padding: 5px 10px;
  border-radius: 8px;
  backdrop-filter: blur(8px);
}

.hud-corner .hud-tag {
  font-weight: 700;
}

.hud-corner .hud-sub {
  font-size: 0.62rem;
  color: #cbd5e1;
  margin-top: 1px;
}

.hud-corner.bottom-right {
  bottom: 14px;
  right: 14px;
  text-align: right;
}

/* Server Hub Marker (Mumbai BOM1) */
.globe-server-hub-pin {
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.server-hub-radar {
  position: relative;
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hub-beacon-ring {
  position: absolute;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  border: 1.5px solid #00f0ff;
  background: rgba(0, 240, 255, 0.18);
  animation: globeBeaconPing 2.4s cubic-bezier(0, 0.2, 0.8, 1) infinite;
}

.hub-beacon-center {
  position: relative;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #00f0ff;
  box-shadow: 0 0 10px #00f0ff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 8px;
  color: #020617;
  font-weight: 900;
}

/* Live 3D Globe Beacon */
.globe-live-beacon {
  position: relative;
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.beacon-wave {
  position: absolute;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  border: 1.5px solid #00f0ff;
  background: rgba(0, 240, 255, 0.2);
  animation: globeBeaconPing 2s cubic-bezier(0.1, 0.3, 0.7, 1) infinite;
  will-change: transform, opacity;
}

.beacon-wave.wave-1 { animation-delay: 0s; }
.beacon-wave.wave-2 { animation-delay: 0.9s; }

.beacon-scanner-tick {
  position: absolute;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  border-top: 1.5px solid #ffffff;
  border-right: 1.5px solid transparent;
  animation: beaconScanRotate 1.8s linear infinite;
  will-change: transform;
}

@keyframes beaconScanRotate {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

.beacon-core {
  position: relative;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #00f0ff;
  box-shadow: 0 0 8px #00f0ff;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
}

.multi-count {
  font-family: var(--adm-font-mono);
  font-size: 7px;
  font-weight: 800;
  color: #040813;
}

.globe-live-beacon.active-cyan .beacon-wave {
  border-color: #00f0ff;
  background: rgba(0, 240, 255, 0.2);
}
.globe-live-beacon.active-cyan .beacon-core {
  background: #00f0ff;
  box-shadow: 0 0 10px #00f0ff;
}

.globe-live-beacon.owner-amber .beacon-wave {
  border-color: #f59e0b;
  background: rgba(245, 158, 11, 0.25);
}
.globe-live-beacon.owner-amber .beacon-core {
  background: #fbbf24;
  box-shadow: 0 0 12px #f59e0b;
}

.globe-live-beacon.stale-amber .beacon-wave {
  border-color: #fb923c;
  background: rgba(251, 146, 60, 0.18);
  animation-duration: 3s;
}
.globe-live-beacon.stale-amber .beacon-core {
  background: #fb923c;
  box-shadow: 0 0 6px #fb923c;
}

.globe-live-beacon.multi-cluster .beacon-wave {
  border-color: #a855f7;
  background: rgba(168, 85, 247, 0.2);
}
.globe-live-beacon.multi-cluster .beacon-core {
  width: 14px;
  height: 14px;
  background: #c084fc;
  box-shadow: 0 0 10px #a855f7;
}

@keyframes globeBeaconPing {
  0% { transform: scale(0.3); opacity: 0.92; }
  75% { opacity: 0.3; }
  100% { transform: scale(1.85); opacity: 0; }
}

/* Historical Hub Cluster Pin */
.historical-cluster-pin {
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.globe-historical-hub {
  position: relative;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: rgba(30, 58, 138, 0.76);
  border: 1.5px solid #3b82f6;
  box-shadow: 0 0 10px rgba(59, 130, 246, 0.55);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.16s ease;
}

.globe-historical-hub.hub-md {
  width: 27px;
  height: 27px;
  border-color: #38bdf8;
}

.globe-historical-hub.hub-lg {
  width: 30px;
  height: 30px;
  background: rgba(14, 116, 144, 0.82);
  border-color: #00f0ff;
  box-shadow: 0 0 14px rgba(0, 240, 255, 0.6);
}

.globe-historical-hub:hover {
  transform: scale(1.14);
}

.hub-pulse-ring {
  position: absolute;
  inset: -3px;
  border-radius: 50%;
  border: 1px dashed rgba(96, 165, 250, 0.65);
}

.hub-core-num {
  font-family: var(--adm-font-mono);
  font-size: 0.65rem;
  font-weight: 800;
  color: #e0f2fe;
}

/* Tactical Coordinate Probe Diamond */
.tactical-probe-pin {
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.probe-diamond {
  width: 16px;
  height: 16px;
  transform: rotate(45deg);
  border: 2px solid #38bdf8;
  background: rgba(56, 189, 248, 0.25);
  box-shadow: 0 0 12px rgba(56, 189, 248, 0.8);
  display: flex;
  align-items: center;
  justify-content: center;
}

.probe-diamond span {
  width: 5px;
  height: 5px;
  background: #ffffff;
}

/* MapLibre GL Custom Dark Glass Popup Styling */
.maplibregl-popup {
  z-index: 1200 !important;
}

.maplibregl-popup-content {
  background: rgba(6, 11, 24, 0.96) !important;
  backdrop-filter: blur(16px) !important;
  -webkit-backdrop-filter: blur(16px) !important;
  border: 1px solid rgba(0, 240, 255, 0.3) !important;
  border-radius: 12px !important;
  color: #f1f5f9 !important;
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.78) !important;
  padding: 2px !important;
}

.maplibregl-popup-anchor-bottom .maplibregl-popup-tip {
  border-top-color: rgba(6, 11, 24, 0.96) !important;
}

.maplibregl-popup-anchor-top .maplibregl-popup-tip {
  border-bottom-color: rgba(6, 11, 24, 0.96) !important;
}

.maplibregl-popup-anchor-left .maplibregl-popup-tip {
  border-right-color: rgba(6, 11, 24, 0.96) !important;
}

.maplibregl-popup-anchor-right .maplibregl-popup-tip {
  border-left-color: rgba(6, 11, 24, 0.96) !important;
}

.maplibregl-popup-close-button {
  color: #94a3b8 !important;
  font-size: 1.05rem !important;
  padding: 4px 8px !important;
  right: 4px !important;
  top: 2px !important;
}

.maplibregl-popup-close-button:hover {
  color: #f8fafc !important;
  background: transparent !important;
}

.globe-hud-card {
  padding: 0.7rem 0.85rem;
  min-width: 245px;
  max-width: 315px;
  font-family: var(--adm-font-sans);
}

.globe-hud-card .hud-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-family: var(--adm-font-mono);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  margin-bottom: 0.45rem;
  gap: 0.4rem;
}

.globe-hud-card .hud-card-pill {
  font-size: 0.63rem;
  padding: 0.14rem 0.45rem;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.08);
  color: #cbd5e1;
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.globe-hud-card .hud-card-title {
  font-size: 0.94rem;
  font-weight: 800;
  color: #f8fafc;
  margin-bottom: 0.18rem;
}

.globe-hud-card .hud-card-subtitle {
  font-size: 0.76rem;
  color: #94a3b8;
  margin-bottom: 0.55rem;
  font-family: var(--adm-font-mono);
}

.globe-hud-card .hud-card-meta {
  font-size: 0.74rem;
  color: #cbd5e1;
  display: flex;
  flex-direction: column;
  gap: 0.26rem;
  line-height: 1.4;
  background: rgba(255, 255, 255, 0.03);
  padding: 0.5rem 0.55rem;
  border-radius: 7px;
  border: 1px solid rgba(255, 255, 255, 0.07);
}

.hud-route-tag {
  font-family: var(--adm-font-mono);
  color: #38bdf8;
  background: rgba(56, 189, 248, 0.14);
  padding: 0.08rem 0.35rem;
  border-radius: 4px;
}

.globe-hud-card .hud-card-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-top: 0.7rem;
}

/* Mobile Responsive Precision Map Controls */
@media (max-width: 768px) {
  .map-search-bar {
    width: calc(100% - 28px);
    max-width: none;
  }
  .map-controls-floating {
    top: 56px;
    left: 14px;
    right: auto;
    max-width: calc(100% - 96px);
    overflow-x: auto;
  }
  .map-layer-toggles {
    top: 98px;
    left: 14px;
  }
  .map-zoom-dock {
    top: 56px;
    right: 10px;
    width: 58px;
    padding: 6px 4px;
  }
  .zoom-slider-wrap {
    height: 76px;
  }
  .zoom-range-slider {
    width: 70px;
  }
  .map-bottom-dock {
    max-width: calc(100% - 28px);
    bottom: 10px;
    left: 10px;
  }
  .hud-corner.bottom-right {
    display: none;
  }
  .live-map-wrapper .maplibregl-ctrl-scale {
    display: none;
  }
}

/* ────────────────────────────────────────────────────────
   MOBILE PUSH NOTIFICATION DASHBOARD STYLES
   ──────────────────────────────────────────────────────── */
.push-banner-card {
  background: linear-gradient(135deg, rgba(6, 182, 212, 0.1) 0%, rgba(99, 102, 241, 0.1) 100%);
  border: 1px solid rgba(6, 182, 212, 0.3);
  border-radius: var(--adm-radius-lg);
  padding: 1.5rem;
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1.25rem;
}
.push-device-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: rgba(6, 182, 212, 0.15);
  border: 1px solid rgba(6, 182, 212, 0.4);
  color: var(--adm-cyan);
  font-family: var(--adm-font-mono);
  font-size: 0.72rem;
  padding: 0.25rem 0.6rem;
  border-radius: 14px;
  font-weight: 700;
}
.push-status-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.25rem 0.75rem;
  border-radius: 20px;
}
.push-status-badge.granted {
  background: rgba(34, 197, 94, 0.15);
  border: 1px solid rgba(34, 197, 94, 0.35);
  color: #4ade80;
}
.push-status-badge.denied {
  background: rgba(244, 63, 94, 0.15);
  border: 1px solid rgba(244, 63, 94, 0.35);
  color: #fb7185;
}
.push-status-badge.prompt {
  background: rgba(245, 158, 11, 0.15);
  border: 1px solid rgba(245, 158, 11, 0.35);
  color: #fbbf24;
}

.push-toggle-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.9rem 1rem;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--adm-border-subtle);
  border-radius: var(--adm-radius-md);
  margin-bottom: 0.65rem;
  transition: all 0.2s ease;
}
.push-toggle-item:hover {
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(255, 255, 255, 0.14);
}
.push-switch {
  position: relative;
  display: inline-block;
  width: 44px;
  height: 24px;
  flex-shrink: 0;
}
.push-switch input {
  opacity: 0;
  width: 0;
  height: 0;
}
.push-slider {
  position: absolute;
  cursor: pointer;
  inset: 0;
  background-color: #334155;
  transition: .3s;
  border-radius: 24px;
}
.push-slider:before {
  position: absolute;
  content: "";
  height: 18px;
  width: 18px;
  left: 3px;
  bottom: 3px;
  background-color: white;
  transition: .3s;
  border-radius: 50%;
}
.push-switch input:checked + .push-slider {
  background-color: var(--adm-cyan);
}
.push-switch input:checked + .push-slider:before {
  transform: translateX(20px);
}

.radar-setting-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--adm-border-subtle);
}

/* ────────────────────────────────────────────────────────
   PRINT STYLES FOR EXECUTIVE SUMMARY REPORTS (PDF READY)
   ──────────────────────────────────────────────────────── */
@media print {
  body {
    background: #ffffff !important;
    color: #0f172a !important;
  }

  .admin-sidebar,
  .admin-topbar,
  #toastContainer,
  .modal-close,
  button,
  .btn-icon-square,
  .status-pill {
    display: none !important;
  }

  .admin-shell,
  .admin-workspace,
  .admin-content {
    margin: 0 !important;
    padding: 0 !important;
    width: 100% !important;
    background: transparent !important;
  }

  .modal-overlay {
    position: static !important;
    background: transparent !important;
    padding: 0 !important;
    backdrop-filter: none !important;
    display: block !important;
    opacity: 1 !important;
    visibility: visible !important;
  }

  .modal-box {
    box-shadow: none !important;
    border: none !important;
    background: #ffffff !important;
    color: #0f172a !important;
    max-width: 100% !important;
    padding: 0 !important;
  }

  .kpi-card,
  .adm-card {
    background: #f8fafc !important;
    border: 1px solid #cbd5e1 !important;
    color: #0f172a !important;
    box-shadow: none !important;
    page-break-inside: avoid;
  }

  .kpi-val,
  h2,
  h4 {
    color: #0f172a !important;
  }

  .adm-table {
    border-collapse: collapse;
    width: 100%;
  }

  .adm-table th,
  .adm-table td {
    border-bottom: 1px solid #e2e8f0 !important;
    color: #1e293b !important;
  }
}

/* ────────────────────────────────────────────────────────
   PASSWORD SHOW / HIDE TOGGLE & TRAFFIC SOURCES MATRIX
   ──────────────────────────────────────────────────────── */
.password-field-wrap {
  position: relative;
  display: flex;
  align-items: center;
  width: 100%;
}

.password-field-wrap input {
  width: 100%;
  padding-right: 4.6rem !important;
}

.password-toggle-btn {
  position: absolute;
  right: 8px;
  top: 50%;
  transform: translateY(-50%);
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.28rem 0.55rem;
  border-radius: 6px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(15, 23, 42, 0.72);
  color: var(--adm-text-secondary);
  font-family: var(--adm-font-mono);
  font-size: 0.68rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.16s ease;
}

.password-toggle-btn:hover {
  color: var(--adm-cyan);
  border-color: rgba(6, 182, 212, 0.5);
  background: rgba(6, 182, 212, 0.12);
}

.source-channel-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(225px, 1fr));
  gap: 0.9rem;
}

.source-channel-card {
  background: rgba(255, 255, 255, 0.025);
  border: 1px solid var(--adm-border);
  border-radius: 10px;
  padding: 0.9rem 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  transition: border-color 0.18s ease, transform 0.18s ease;
}

.source-channel-card:hover {
  border-color: rgba(6, 182, 212, 0.4);
  transform: translateY(-1px);
}

.source-channel-card.inactive {
  opacity: 0.68;
}

.source-channel-bar {
  height: 5px;
  width: 100%;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  overflow: hidden;
}

.source-channel-bar-fill {
  height: 100%;
  border-radius: 999px;
  transition: width 0.35s ease;
}

.utm-preset-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(270px, 1fr));
  gap: 0.75rem;
}

.utm-preset-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.65rem;
  padding: 0.65rem 0.85rem;
  background: rgba(255, 255, 255, 0.025);
  border: 1px solid var(--adm-border);
  border-radius: 9px;
}


