@import url('./design-tokens.css');
@import url('https://fonts.googleapis.com/css2?family=JetBrains+Mono:wght@400;600;700&family=Outfit:wght@400;500;600;700;800&display=swap');

/* ==========================================================================
   COLMENA SEGURA - 100% FULLY RESPONSIVE CENTRAL COMMAND & DISPATCH ROOM
   ========================================================================== */

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-tap-highlight-color: transparent;
}

.hidden {
  display: none !important;
  visibility: hidden !important;
  pointer-events: none !important;
}

/* Custom Tactical Glass Scrollbars */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}
::-webkit-scrollbar-track {
  background: rgba(0, 0, 0, 0.25);
}
::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.16);
  border-radius: var(--radius-full);
}
::-webkit-scrollbar-thumb:hover {
  background: rgba(0, 210, 255, 0.45);
}
* {
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, 0.16) rgba(0, 0, 0, 0.25);
}

html, body.admin-body {
  background-color: #050811;
  color: var(--text-main);
  font-family: var(--font-display);
  width: 100vw;
  height: 100vh;
  height: 100dvh;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

/* Command Center Header */
.admin-header {
  height: clamp(54px, 8vh, 64px);
  min-height: 54px;
  background: #090e1a;
  border-bottom: 1px solid var(--border-glass);
  padding: 0 clamp(10px, 2.5vw, 20px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  z-index: 1000;
  flex-shrink: 0;
}

.admin-brand {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.admin-logo-badge {
  background: rgba(255, 42, 85, 0.15);
  border: 1px solid var(--border-critical);
  color: var(--color-critical);
  font-family: var(--font-mono);
  font-size: clamp(0.65rem, 2vw, 0.75rem);
  font-weight: 700;
  padding: 3px 6px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  gap: 5px;
  white-space: nowrap;
}

.pulse-led {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--color-critical);
  box-shadow: 0 0 8px var(--color-critical);
  animation: glow-badge 1.5s infinite;
}

.admin-title-group {
  min-width: 0;
}

.admin-title-group h1 {
  font-size: clamp(0.85rem, 2.2vw, 1.05rem);
  font-weight: 800;
  letter-spacing: -0.3px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.admin-title-group span {
  font-size: clamp(0.58rem, 1.6vw, 0.68rem);
  color: var(--text-muted);
  display: block;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Top Telemetry Stats Bar */
.admin-telemetry-bar {
  display: flex;
  align-items: center;
  gap: clamp(8px, 1.8vw, 18px);
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.admin-telemetry-bar::-webkit-scrollbar { display: none; }

.telemetry-metric {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  white-space: nowrap;
}

.metric-label {
  font-size: clamp(0.55rem, 1.5vw, 0.62rem);
  text-transform: uppercase;
  color: var(--text-dim);
  font-weight: 600;
  letter-spacing: 0.5px;
}

.metric-val {
  font-family: var(--font-mono);
  font-size: clamp(0.88rem, 2.2vw, 1.05rem);
  font-weight: 700;
}

.metric-crit { color: var(--color-critical); }
.metric-warn { color: var(--color-warning); }
.metric-info { color: var(--color-info); }
.metric-safe { color: var(--color-safe); }

.admin-header-actions {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}

.tactical-btn {
  background: var(--bg-card);
  border: 1px solid var(--border-glass);
  color: var(--text-main);
  font-size: clamp(0.68rem, 2vw, 0.75rem);
  font-weight: 600;
  padding: 6px clamp(8px, 1.8vw, 12px);
  border-radius: var(--radius-md);
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 5px;
  transition: var(--transition-fast);
  white-space: nowrap;
}

.tactical-btn:hover {
  background: var(--bg-card-hover);
  border-color: rgba(255, 255, 255, 0.2);
}

.btn-broadcast-open {
  background: rgba(255, 42, 85, 0.2);
  border-color: var(--color-critical);
  color: #fff;
}
.btn-broadcast-open:hover {
  background: rgba(255, 42, 85, 0.4);
  box-shadow: 0 0 14px rgba(255, 42, 85, 0.5);
}

.btn-citizen-app-link {
  color: var(--color-info);
  border-color: rgba(0, 210, 255, 0.4);
  text-decoration: none;
}

/* Mobile Telemetry Quick Strip (Visible only on < 768px) */
.admin-mobile-telemetry {
  display: none;
  background: #070c18;
  border-bottom: 1px solid var(--border-glass);
  padding: 6px 12px;
  gap: 8px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  flex-shrink: 0;
}
.admin-mobile-telemetry::-webkit-scrollbar { display: none; }

.telemetry-mini-pill {
  font-size: 0.68rem;
  font-family: var(--font-mono);
  color: var(--text-muted);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-glass);
  padding: 3px 8px;
  border-radius: var(--radius-full);
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

/* Category Filter Strip in Admin */
.admin-category-nav {
  height: clamp(38px, 6vh, 44px);
  min-height: 38px;
  background: #0b1120;
  border-bottom: 1px solid var(--border-glass);
  padding: 0 clamp(10px, 2vw, 20px);
  display: flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.admin-category-nav::-webkit-scrollbar { display: none; }

.filter-nav-label {
  font-size: clamp(0.65rem, 1.8vw, 0.72rem);
  font-weight: 700;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-right: 4px;
  white-space: nowrap;
}

.admin-filter-pill {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-glass);
  color: var(--text-muted);
  font-size: clamp(0.65rem, 1.9vw, 0.72rem);
  font-weight: 600;
  padding: 4px clamp(8px, 2vw, 12px);
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: var(--transition-fast);
  white-space: nowrap;
}

.admin-filter-pill.active {
  background: var(--color-info);
  color: #060a14;
  border-color: var(--color-info);
  font-weight: 700;
  box-shadow: 0 0 10px rgba(0, 210, 255, 0.4);
}

.admin-time-pill {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-glass);
  color: var(--text-muted);
  font-size: clamp(0.65rem, 1.9vw, 0.72rem);
  font-weight: 600;
  padding: 4px clamp(8px, 2vw, 12px);
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: var(--transition-fast);
  white-space: nowrap;
}

.admin-time-pill:hover {
  background: rgba(245, 158, 11, 0.12);
  color: #fff;
  border-color: rgba(245, 158, 11, 0.35);
}

.admin-time-pill.active {
  background: rgba(245, 158, 11, 0.25);
  color: #f59e0b;
  border-color: #f59e0b;
  font-weight: 700;
  box-shadow: 0 0 10px rgba(245, 158, 11, 0.4);
}

/* Main Dashboard Workspace (Responsive Split Layout) */
.admin-workspace {
  flex: 1 1 0;
  min-height: 0;
  display: grid;
  grid-template-columns: 390px 1fr;
  width: 100%;
  overflow: hidden;
  position: relative;
}

/* Medium Tablets (768px - 1100px) */
@media (max-width: 1100px) and (min-width: 769px) {
  .admin-workspace {
    grid-template-columns: 320px 1fr;
  }
}

/* Mobile & Small Tablet (< 768px): Full-height adaptive view with switcher */
@media (max-width: 768px) {
  .admin-title-group span {
    display: none;
  }
  .admin-telemetry-bar {
    display: none; /* Collapses into mobile clean view */
  }
  /* El header nunca tenía reglas responsive: con 8-9 botones (vistas + Inyector/Audio/Nuevo Aviso/App)
     en una sola fila sin wrap y sin overflow-x, en pantallas angostas simplemente se salían del viewport
     y quedaban inalcanzables (ni visibles ni "scrolleables"). Ahora el header pasa a 2 filas: marca arriba,
     acciones abajo con scroll horizontal (mismo patrón que ya usan .admin-category-nav / .admin-sim-floating-bar). */
  .admin-header {
    height: auto;
    min-height: 54px;
    flex-wrap: wrap;
    row-gap: 6px;
    padding: 8px 10px;
  }
  .admin-header-actions {
    flex-shrink: 1;
    flex-basis: 100%;
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    justify-content: flex-start;
  }
  .admin-header-actions::-webkit-scrollbar {
    display: none;
  }
  .admin-header-actions > * {
    flex-shrink: 0;
  }
  /* 4 botones con flex:1 + nowrap no pueden encogerse por debajo del ancho de su propio texto (el clásico
     "flexbox min-width:auto pitfall"): en pantallas angostas se desbordaban y el panel padre (overflow:hidden)
     recortaba en silencio el último botón ("📋 Todas") o parte de "🟡 Sondeo". Se vuelve deslizable en vez de
     intentar que quepan los 4 a la fuerza. */
  .admin-status-segmented-control {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }
  .admin-status-segmented-control::-webkit-scrollbar {
    display: none;
  }
  .status-segment-btn {
    flex: 0 0 auto;
  }

  .admin-mobile-telemetry {
    display: flex;
    align-items: center;
    justify-content: space-around;
  }
  .admin-workspace {
    display: flex;
    flex-direction: column;
    flex: 1 1 0;
    min-height: 0;
    height: 100%;
    position: relative;
    overflow: hidden;
  }
  .admin-queue-panel {
    display: none; /* Toggleable on mobile */
    width: 100% !important;
    height: 100% !important;
    border-right: none !important;
  }
  .admin-queue-panel.mobile-active {
    display: flex !important;
  }
  .admin-map-panel {
    display: flex;
    width: 100% !important;
    height: 100% !important;
  }
  .admin-map-panel.mobile-hidden {
    display: none !important;
  }
  .admin-mobile-view-toggle {
    display: flex !important;
  }
}

/* Left Panel: Incident Queue */
.admin-queue-panel {
  background: #080c17;
  border-right: 1px solid var(--border-glass);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  height: 100%;
}

.queue-panel-header {
  padding: clamp(8px, 2vh, 12px) 14px;
  background: #0c1426;
  border-bottom: 1px solid var(--border-glass);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-shrink: 0;
}

.queue-panel-header h3 {
  font-size: clamp(0.75rem, 2.2vw, 0.85rem);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.live-incident-feed {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  padding: 10px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

/* Admin Incident Cards (Fluid font-sizes) */
.admin-incident-card {
  background: #0d1527;
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-md);
  padding: 10px 12px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  transition: var(--transition-fast);
}

.admin-card-critical {
  border-color: var(--color-critical);
  background: rgba(255, 42, 85, 0.1);
  box-shadow: 0 0 16px rgba(255, 42, 85, 0.2);
}

.admin-card-dispatched {
  border-color: var(--color-info);
  background: rgba(0, 210, 255, 0.08);
}

.admin-card-probing {
  border-color: rgba(255, 184, 0, 0.35);
  background: rgba(255, 184, 0, 0.06);
}

.card-header-tactical {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.header-left {
  display: flex;
  align-items: center;
  gap: 6px;
}

.badge-status-tactical {
  font-size: 0.62rem;
  font-weight: 800;
  padding: 2px 6px;
  border-radius: var(--radius-sm);
  font-family: var(--font-mono);
}

.status-critical { background: var(--color-critical); color: #fff; }
.status-warning { background: var(--color-warning); color: #000; }
.status-info { background: var(--color-info); color: #000; }

.incident-code {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  color: var(--text-dim);
}

.incident-time {
  font-size: 0.68rem;
  color: var(--text-muted);
}

.category-row {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: clamp(0.78rem, 2.3vw, 0.85rem);
}

.swarm-tally {
  font-size: 0.7rem;
  color: var(--text-muted);
  margin-left: auto;
}

.reporter-notes {
  font-size: 0.72rem;
  color: var(--text-main);
  background: rgba(0, 0, 0, 0.25);
  padding: 5px 8px;
  border-radius: var(--radius-sm);
  margin-top: 3px;
}

.dispatched-unit-info {
  font-size: 0.74rem;
  color: var(--color-info);
  background: rgba(0, 210, 255, 0.12);
  padding: 5px 8px;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(0, 210, 255, 0.25);
}

/* Card Actions Grid */
.card-actions-tactical {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(80px, 1fr));
  gap: 5px;
  margin-top: 4px;
}

.btn-tactical {
  border: none;
  font-size: clamp(0.64rem, 1.9vw, 0.72rem);
  font-weight: 700;
  padding: 6px 8px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: var(--transition-fast);
  white-space: nowrap;
  text-align: center;
}

.btn-dispatch {
  background: var(--color-info);
  color: #060a14;
}
.btn-dispatch:hover {
  box-shadow: 0 0 12px rgba(0, 210, 255, 0.5);
}

.btn-resolve {
  background: var(--color-safe);
  color: #060a14;
}

.btn-locate {
  background: rgba(255, 255, 255, 0.1);
  color: var(--text-main);
}

.btn-dismiss {
  background: rgba(255, 255, 255, 0.06);
  color: var(--text-dim);
}
.btn-dismiss:hover {
  background: rgba(255, 42, 85, 0.2);
  color: var(--color-critical);
}

.admin-empty-queue {
  text-align: center;
  padding: 30px 14px;
  color: var(--text-muted);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}

/* Right Panel: Map & Simulation Overlay */
.admin-map-panel {
  position: relative;
  width: 100%;
  height: 100%;
  background: #050811;
}

#admin-map {
  width: 100% !important;
  height: 100% !important;
  position: absolute !important;
  inset: 0;
  z-index: 10;
}

/* Simulation Toolbar Floating at Bottom */
.admin-sim-floating-bar {
  position: absolute;
  bottom: clamp(10px, 3vh, 20px);
  left: clamp(10px, 3vw, 20px);
  z-index: 500;
  background: rgba(11, 17, 32, 0.92);
  backdrop-filter: blur(16px);
  border: 1px solid var(--border-glass);
  padding: 6px 12px;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  gap: 8px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
  max-width: calc(100% - 130px);
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.admin-sim-floating-bar::-webkit-scrollbar { display: none; }

.sim-label {
  font-size: clamp(0.65rem, 1.8vw, 0.72rem);
  font-weight: 700;
  text-transform: uppercase;
  color: var(--color-accent);
  white-space: nowrap;
}

.sim-btn-pill {
  background: var(--bg-card);
  border: 1px solid var(--border-glass);
  color: var(--text-main);
  font-size: clamp(0.65rem, 1.8vw, 0.72rem);
  font-weight: 600;
  padding: 5px 10px;
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: var(--transition-fast);
  white-space: nowrap;
}

.sim-btn-pill:hover {
  background: rgba(139, 92, 246, 0.3);
  border-color: var(--color-accent);
}

.sim-btn-pill.active {
  background: var(--color-accent);
  border-color: var(--color-accent);
  color: #fff;
}

/* Floating Mobile View Switcher Pill for Admin */
.admin-mobile-view-toggle {
  display: none;
  position: fixed;
  bottom: calc(18px + env(safe-area-inset-bottom, 0px));
  right: 14px;
  z-index: 2500;
  background: var(--color-info);
  color: #060a14;
  border: none;
  font-weight: 800;
  font-size: 0.8rem;
  padding: 10px 18px;
  border-radius: var(--radius-full);
  box-shadow: 0 6px 20px rgba(0, 210, 255, 0.5);
  cursor: pointer;
  transition: transform var(--transition-fast);
}
.admin-mobile-view-toggle:active {
  transform: scale(0.95);
}

/* Tactical Broadcast Modal (Responsive Width) */
.admin-modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(5, 8, 17, 0.88);
  backdrop-filter: blur(20px);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
}

.admin-modal-backdrop.hidden { display: none !important; }

.admin-modal-card {
  width: min(480px, 94vw);
  max-height: 90vh;
  overflow-y: auto;
  background: #0c1220;
  border: 1px solid var(--border-critical);
  box-shadow: var(--shadow-neon-red);
  border-radius: var(--radius-lg);
  padding: clamp(16px, 4vw, 24px);
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.modal-header h3 {
  font-size: clamp(1rem, 3.5vw, 1.15rem);
  font-weight: 800;
  color: var(--color-critical);
}

.modal-header p {
  font-size: clamp(0.72rem, 2.4vw, 0.78rem);
  color: var(--text-muted);
}

.modal-body {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  margin-top: 6px;
}

.broadcast-zone-picker-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-sm);
  padding: 8px 10px;
}

.broadcast-zone-picker-row span {
  font-size: 0.72rem;
  color: var(--text-muted);
}

.broadcast-zone-picker-row span.zone-picked {
  color: var(--color-info, #00d2ff);
  font-weight: 700;
}

.zone-pick-marker {
  font-size: 1.4rem;
  text-align: center;
  line-height: 26px;
  filter: drop-shadow(0 0 4px rgba(0, 210, 255, 0.9));
}

/* ==========================================================================
   ADMIN USER DIRECTORY & CITIZEN ACCOUNTS PANEL
   ========================================================================== */
.admin-view-switcher {
  display: flex;
  gap: 4px;
  background: rgba(0, 0, 0, 0.4);
  padding: 3px;
  border-radius: var(--radius-full);
  border: 1px solid var(--border-glass);
}

.admin-view-switcher .tactical-btn {
  padding: 4px 10px;
  font-size: 0.72rem;
  border-radius: var(--radius-full);
  border: none;
  background: transparent;
  color: var(--text-muted);
}

.admin-view-switcher .tactical-btn.active {
  background: linear-gradient(135deg, rgba(0, 210, 255, 0.25) 0%, rgba(0, 245, 160, 0.25) 100%);
  color: #fff;
  border: 1px solid var(--color-info);
  box-shadow: 0 0 10px rgba(0, 210, 255, 0.4);
}

.admin-users-panel {
  grid-column: 1 / -1;
  width: 100%;
  height: 100%;
  overflow-y: auto;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  animation: slide-up 0.25s ease-out;
  background: var(--bg-dark);
}

.admin-users-panel.hidden {
  display: none !important;
}

/* La vista de Avisos de Zona solo trae estilos inline (padding/overflow); le faltaba ocupar
   todo el ancho del grid del workspace (390px 1fr), por eso se veía "cortada" en una columna angosta */
.admin-broadcasts-panel {
  grid-column: 1 / -1;
  width: 100%;
}

.admin-broadcasts-panel.hidden {
  display: none !important;
}

.users-panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
  border-bottom: 1px solid var(--border-glass);
  padding-bottom: 12px;
}

.users-header-info h3 {
  font-size: 1.1rem;
  font-weight: 800;
  color: #fff;
}

.users-header-info p {
  font-size: 0.76rem;
  color: var(--text-muted);
  margin-top: 2px;
}

.users-online-readout {
  color: var(--color-safe, #00e676) !important;
  font-weight: 700;
}

.users-search-box {
  width: min(340px, 100%);
}

.users-directory-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 12px;
}

.admin-user-card {
  background: var(--bg-card);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-lg);
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.4);
  transition: var(--transition-fast);
}

.admin-user-card:hover {
  border-color: var(--color-info);
  box-shadow: 0 6px 20px rgba(0, 210, 255, 0.15);
}

.user-card-header {
  display: flex;
  align-items: center;
  gap: 10px;
}

.user-card-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 2px solid var(--color-safe);
  object-fit: cover;
  background: #080d18;
  flex-shrink: 0;
}

.user-card-main-info {
  flex: 1;
  min-width: 0;
}

.user-card-main-info h4 {
  font-size: 0.88rem;
  font-weight: 800;
  color: #fff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.user-card-main-info p {
  font-size: 0.74rem;
  color: var(--text-dim);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.user-badge-row {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.badge-role {
  font-size: 0.65rem;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: var(--radius-full);
}
.role-admin { background: rgba(0, 210, 255, 0.2); color: var(--color-info); border: 1px solid var(--color-info); }
.role-citizen { background: rgba(0, 245, 160, 0.15); color: var(--color-safe); border: 1px solid var(--color-safe); }

.badge-status {
  font-size: 0.65rem;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: var(--radius-full);
}
.status-active-user { background: rgba(0, 245, 160, 0.15); color: var(--color-safe); }
.status-suspended-user { background: rgba(255, 42, 85, 0.2); color: var(--color-critical); border: 1px solid var(--color-critical); }

.user-stat-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
  background: rgba(0, 0, 0, 0.25);
  padding: 8px;
  border-radius: var(--radius-md);
}

.user-stat-box {
  display: flex;
  flex-direction: column;
}
.user-stat-box span {
  font-size: 0.65rem;
  color: var(--text-dim);
  text-transform: uppercase;
}
.user-stat-box strong {
  font-size: 0.82rem;
  font-family: var(--font-mono);
  color: #fff;
}

.user-card-actions {
  display: flex;
  gap: 6px;
  margin-top: 4px;
}

.btn-user-action {
  flex: 1;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--border-glass);
  color: var(--text-muted);
  font-size: 0.72rem;
  font-weight: 700;
  padding: 6px;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: var(--transition-fast);
  text-align: center;
}

.btn-user-action:hover {
  background: rgba(255, 255, 255, 0.18);
  color: #fff;
}

.btn-user-suspend:hover {
  background: rgba(255, 42, 85, 0.25);
  color: var(--color-critical);
  border-color: var(--color-critical);
}

/* ==========================================================================
   QUEUE STATUS SEGMENTED CONTROL (DISPATCH PRIORITY)
   ========================================================================== */
.admin-status-segmented-control {
  display: flex;
  background: #090e1a;
  padding: 4px;
  gap: 4px;
  border-bottom: 1px solid var(--border-glass);
}

.status-segment-btn {
  flex: 1;
  background: transparent;
  border: 1px solid transparent;
  color: var(--text-muted);
  font-family: var(--font-display);
  font-size: 0.72rem;
  font-weight: 700;
  padding: 6px 8px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.2s ease;
  text-align: center;
}

.status-segment-btn:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.05);
}

.status-segment-btn.active {
  background: rgba(0, 210, 255, 0.16);
  border-color: var(--color-info);
  color: #fff;
  box-shadow: 0 0 10px rgba(0, 210, 255, 0.2);
}

/* Patrol Attended card & badge */
.admin-card-patrol-attended {
  border-left: 4px solid #00b0ff !important;
  background: rgba(0, 176, 255, 0.06) !important;
}
.status-patrol-attended {
  background: rgba(0, 176, 255, 0.18) !important;
  color: #00b0ff !important;
  border: 1px solid rgba(0, 176, 255, 0.4) !important;
}

/* ==========================================================================
   USER DIRECTORY ROLE FILTERS & MODERATION MODAL
   ========================================================================== */
.users-role-filters-bar {
  display: flex;
  gap: 8px;
  margin-bottom: 14px;
  overflow-x: auto;
  padding-bottom: 4px;
}

.role-filter-tab {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-glass);
  color: var(--text-muted);
  font-size: 0.74rem;
  font-weight: 700;
  padding: 6px 14px;
  border-radius: var(--radius-full);
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.2s ease;
}

.role-filter-tab:hover {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.2);
}

.role-filter-tab.active {
  background: var(--color-accent);
  color: #fff;
  border-color: var(--color-accent);
  box-shadow: 0 0 12px rgba(139, 92, 246, 0.35);
}

/* User Action Modal */
.user-moderation-grid {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.user-mod-header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px;
  background: rgba(255, 255, 255, 0.03);
  border-radius: 8px;
  border: 1px solid var(--border-glass);
}
.user-mod-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 2px solid var(--color-accent);
}
.user-mod-meta h4 {
  font-size: 0.95rem;
  color: #fff;
}
.user-mod-meta p {
  font-size: 0.75rem;
  color: var(--text-muted);
}
.mod-section-box {
  background: #090e1a;
  padding: 12px;
  border-radius: 8px;
  border: 1px solid var(--border-glass);
}
.mod-section-title {
  font-size: 0.78rem;
  font-weight: 800;
  color: var(--color-info);
  text-transform: uppercase;
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 6px;
}
.rep-buttons-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 6px;
}
.btn-rep-delta {
  padding: 6px;
  font-size: 0.75rem;
  font-weight: 800;
  border-radius: 6px;
  cursor: pointer;
  border: 1px solid var(--border-glass);
  background: rgba(255, 255, 255, 0.05);
  color: #fff;
  transition: all 0.2s ease;
}
.btn-rep-delta.pos:hover {
  background: rgba(16, 185, 129, 0.25);
  border-color: var(--color-safe);
  color: var(--color-safe);
}
.btn-rep-delta.neg:hover {
  background: rgba(255, 42, 85, 0.25);
  border-color: var(--color-critical);
  color: var(--color-critical);
}

/* ==========================================================================
   VIEW 4: TACTICAL RADIO & COMMS STATION (#admin-chat-panel)
   ========================================================================== */
.admin-chat-panel {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: 320px 1fr;
  height: 100%;
  overflow: hidden;
  background: #050811;
}

.admin-chat-panel.hidden {
  display: none !important;
}

.admin-chat-sidebar-toggle,
.admin-chat-sidebar-back {
  display: none;
}

/* El directorio de contactos (canales + "Directorio por Roles") vivía en un <aside> que se ocultaba
   por completo con display:none en cualquier pantalla <=900px (todo celular y muchas tablets), sin
   ningún botón para volver a mostrarlo — el despachador no tenía forma de elegir a un ciudadano ni de
   cambiar de canal desde el móvil. Ahora se comporta como un panel alternable (mismo patrón que el
   selector Mapa/Cola): oculto por defecto, se muestra a pantalla completa con .mobile-active. */
@media (max-width: 900px) {
  .admin-chat-panel {
    grid-template-columns: 1fr;
    position: relative;
  }
  .admin-chat-sidebar-toggle,
  .admin-chat-sidebar-back {
    display: inline-flex;
    align-items: center;
    white-space: nowrap;
  }
  .admin-chat-sidebar {
    display: none;
    position: absolute;
    inset: 0;
    z-index: 5;
    width: 100%;
  }
  .admin-chat-sidebar.mobile-active {
    display: flex !important;
  }
  .admin-chat-main.mobile-hidden {
    display: none !important;
  }
}

.admin-chat-sidebar {
  background: #090e1a;
  border-right: 1px solid var(--border-glass);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.chat-sidebar-header {
  padding: 14px 16px;
  border-bottom: 1px solid var(--border-glass);
}
.chat-sidebar-header h4 {
  font-size: 0.85rem;
  color: #fff;
  font-family: var(--font-mono);
}
.chat-sidebar-header p {
  font-size: 0.7rem;
  color: var(--text-muted);
  margin-top: 2px;
}

.admin-chat-channels-list {
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  border-bottom: 1px solid var(--border-glass);
}
.chat-group-label {
  font-size: 0.65rem;
  font-weight: 800;
  color: var(--text-dim);
  letter-spacing: 0.05em;
  margin-bottom: 4px;
}

.admin-chat-channel-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid transparent;
  cursor: pointer;
  text-align: left;
  transition: all 0.2s ease;
}
.admin-chat-channel-item:hover {
  background: rgba(255, 255, 255, 0.08);
}
.admin-chat-channel-item.active {
  background: rgba(0, 210, 255, 0.15);
  border-color: var(--color-info);
}
.chan-icon {
  font-size: 1.1rem;
}
.chan-meta strong {
  display: block;
  font-size: 0.78rem;
  color: #fff;
}
.chan-meta small {
  font-size: 0.65rem;
  color: var(--text-muted);
}

.admin-chat-contacts-section {
  flex: 1;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  padding: 12px;
}
.contacts-header-flex {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 6px;
}
.admin-chat-role-chips {
  display: flex;
  gap: 4px;
  margin-bottom: 8px;
  overflow-x: auto;
}
.chat-role-chip {
  padding: 3px 8px;
  border-radius: var(--radius-full);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-glass);
  color: var(--text-muted);
  font-size: 0.65rem;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
}
.chat-role-chip.active {
  background: var(--color-info);
  color: #0b0f19;
  border-color: var(--color-info);
}
.admin-contacts-list-scroll {
  flex: 1;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.admin-contact-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 8px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid transparent;
  cursor: pointer;
  transition: all 0.2s ease;
}
.admin-contact-item:hover {
  background: rgba(0, 210, 255, 0.08);
  border-color: rgba(0, 210, 255, 0.25);
}
.admin-contact-item.active {
  background: rgba(0, 210, 255, 0.16);
  border-color: var(--color-info, #00d2ff);
}
.admin-contact-item .admin-contact-meta span {
  font-size: 0.68rem;
}
.admin-contact-avatar {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  border: 1px solid var(--border-glass);
}
.admin-contact-meta {
  flex: 1;
  min-width: 0;
}
.admin-contact-meta h6 {
  font-size: 0.74rem;
  color: #fff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.admin-contact-meta span {
  font-size: 0.65rem;
  color: var(--text-muted);
}

/* Right Main Chat Panel */
.admin-chat-main {
  display: flex;
  flex-direction: column;
  height: 100%;
  overflow: hidden;
  background: #070a12;
}
.admin-chat-top-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 20px;
  background: #090e1a;
  border-bottom: 1px solid var(--border-glass);
}
.active-chat-info {
  display: flex;
  align-items: center;
  gap: 12px;
}
.active-chat-icon {
  font-size: 1.4rem;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.05);
  border-radius: var(--radius-full);
  border: 1px solid var(--border-glass);
}
.active-chat-info h3 {
  font-size: 0.95rem;
  color: #fff;
}
.active-chat-info p {
  font-size: 0.72rem;
  color: var(--text-muted);
}
.status-live-indicator {
  font-size: 0.7rem;
  font-family: var(--font-mono);
  color: var(--color-safe);
  font-weight: 700;
}

.admin-chat-messages-container {
  flex: 1;
  overflow-y: auto;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.admin-chat-composer {
  padding: 14px 20px;
  background: #090e1a;
  border-top: 1px solid var(--border-glass);
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.admin-chat-priority-selector {
  display: flex;
  align-items: center;
  gap: 8px;
}
.p-label {
  font-size: 0.72rem;
  color: var(--text-muted);
  font-weight: 700;
}
.admin-priority-pill {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 0.72rem;
  color: var(--text-muted);
  padding: 4px 10px;
  border-radius: var(--radius-full);
  border: 1px solid var(--border-glass);
  cursor: pointer;
  background: rgba(255, 255, 255, 0.03);
  transition: all 0.2s ease;
}
.admin-priority-pill input {
  display: none;
}
.admin-priority-pill.active {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.3);
}
.admin-priority-pill.p-warning.active {
  background: rgba(255, 184, 0, 0.2);
  color: #ffb800;
  border-color: #ffb800;
}
.admin-priority-pill.p-emergency.active {
  background: rgba(255, 42, 85, 0.25);
  color: #ff2a55;
  border-color: #ff2a55;
  box-shadow: 0 0 10px rgba(255, 42, 85, 0.3);
}

.admin-composer-row {
  display: flex;
  gap: 10px;
}
.admin-chat-field {
  flex: 1;
  height: 42px;
  padding: 0 14px;
  font-size: 0.85rem;
}
.btn-send-admin-chat {
  background: var(--color-accent);
  color: #fff;
  height: 42px;
  padding: 0 20px;
  font-weight: 700;
  font-size: 0.82rem;
  border-radius: var(--radius-sm);
  cursor: pointer;
}
.btn-send-admin-chat:hover {
  filter: brightness(1.15);
  box-shadow: 0 0 12px rgba(139, 92, 246, 0.4);
}

/* Authority Header User Chip */
.admin-user-header-pill {
  display: flex;
  align-items: center;
}

.authority-header-chip {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: var(--radius-full);
  padding: 4px 10px 4px 4px;
}

.auth-chip-avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.auth-chip-info {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
  text-align: left;
}

.auth-chip-name {
  font-size: 0.75rem;
  font-weight: 700;
  color: #fff;
}

.auth-chip-role {
  font-size: 0.62rem;
  font-family: var(--font-mono);
  color: #00d2ff;
}

.auth-chip-logout {
  background: transparent;
  border: none;
  color: #94a3b8;
  font-size: 1.1rem;
  line-height: 1;
  cursor: pointer;
  padding: 0 4px;
}

.auth-chip-logout:hover {
  color: #ff5c77;
}

/* 100% Free OpenStreetMap High-Contrast Tactical Cyber Map (Zero API Key - Zero Watermarks) */
.leaflet-tile-pane .colmena-dark-tiles {
  filter: brightness(0.6) invert(1) contrast(2.5) hue-rotate(200deg) saturate(0.3) brightness(0.75);
}

.leaflet-container {
  background: #070a12 !important;
}

/* Toast Notification Feedback */
#toast-container {
  position: fixed;
  top: 24px;
  right: 24px;
  z-index: 999999;
  display: flex;
  flex-direction: column;
  gap: 10px;
  pointer-events: none;
}

.toast-pill {
  pointer-events: auto;
  padding: 10px 18px;
  border-radius: 12px;
  font-size: 0.85rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 8px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(14px);
  animation: adminToastIn 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  transition: opacity 0.3s, transform 0.3s;
}

@keyframes adminToastIn {
  from { opacity: 0; transform: translateY(-12px) scale(0.95); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.toast-fadeout {
  opacity: 0;
  transform: translateY(-8px) scale(0.95);
}

.toast-info {
  background: rgba(14, 165, 233, 0.95);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.toast-warning {
  background: rgba(245, 158, 11, 0.95);
  color: #000;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.toast-critical {
  background: rgba(239, 68, 68, 0.95);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

/* Tactical Marked Hotspots Styling (Bogotá Heat Zones) */
.hotspot-pulse-marker {
  cursor: pointer;
  filter: drop-shadow(0 0 6px rgba(255, 23, 68, 0.75));
  transition: transform 0.2s cubic-bezier(0.4, 0, 0.2, 1), filter 0.2s ease;
}

.hotspot-pulse-marker:hover {
  filter: drop-shadow(0 0 12px rgba(255, 255, 255, 0.95)) brightness(1.25);
  transform: scale(1.2);
}

.leaflet-popup-content-wrapper {
  background: rgba(11, 17, 33, 0.95) !important;
  backdrop-filter: blur(14px) !important;
  -webkit-backdrop-filter: blur(14px) !important;
  border: 1px solid rgba(255, 255, 255, 0.16) !important;
  border-radius: 12px !important;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.7) !important;
}

.leaflet-popup-tip {
  background: rgba(11, 17, 33, 0.95) !important;
}

/* ==========================================================================
   BEJA HEXAGONAL HIVE CARE ZONES (PANALES DE CUIDADO DE ALTA FRECUENCIA)
   ========================================================================== */
.hive-care-zone-polygon {
  transition: all 0.3s ease;
  cursor: pointer;
  filter: drop-shadow(0 0 10px rgba(255, 23, 68, 0.45));
}

.hive-care-zone-polygon:hover {
  filter: drop-shadow(0 0 20px rgba(255, 255, 255, 0.8)) brightness(1.3);
}

.hive-badge-icon {
  background: transparent;
  border: none;
}

.hive-hex-pin {
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  cursor: pointer;
  transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.hive-hex-pin:hover {
  transform: scale(1.35);
}

.hive-hex-pin .hex-symbol {
  font-size: 26px;
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}

.hive-hex-pin.hex-crit .hex-symbol {
  color: #ff1744;
  filter: drop-shadow(0 0 8px #ff1744);
}

.hive-hex-pin.hex-warn .hex-symbol {
  color: #f59e0b;
  filter: drop-shadow(0 0 8px #f59e0b);
}

.hive-hex-pin.hex-acci .hex-symbol {
  color: #00d2ff;
  filter: drop-shadow(0 0 8px #00d2ff);
}

.hive-hex-pin .hex-cat-icon {
  font-size: 11px;
  position: relative;
  z-index: 2;
  margin-top: -1px;
}

/* Honeycomb Care Zone Popup Card */
.hive-popup-card {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  min-width: 250px;
  max-width: 320px;
  color: #f8fafc;
  line-height: 1.4;
  padding: 4px;
}

.hive-popup-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
}

.hive-tag {
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.5px;
  padding: 3px 8px;
  border-radius: 6px;
  text-transform: uppercase;
}

.hive-tag.tag-crit {
  background: rgba(239, 68, 68, 0.25);
  color: #ff4d6d;
  border: 1px solid rgba(239, 68, 68, 0.45);
}

.hive-tag.tag-warn {
  background: rgba(245, 158, 11, 0.25);
  color: #fbbf24;
  border: 1px solid rgba(245, 158, 11, 0.45);
}

.hive-tag.tag-acci {
  background: rgba(0, 210, 255, 0.25);
  color: #38bdf8;
  border: 1px solid rgba(0, 210, 255, 0.45);
}

.hive-time-tag {
  font-size: 10px;
  color: #94a3b8;
  font-weight: 700;
}

.hive-popup-title {
  font-size: 13px;
  font-weight: 800;
  color: #ffffff;
  margin: 0 0 6px 0;
  line-height: 1.3;
}

.hive-popup-desc {
  font-size: 11px;
  color: #cbd5e1;
  margin: 0 0 10px 0;
}

.hive-freq-meter {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  padding: 6px 8px;
  margin-bottom: 8px;
}

.freq-label-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 10px;
  margin-bottom: 4px;
}

.freq-label-row span {
  color: #94a3b8;
}

.freq-label-row strong {
  color: #fbbf24;
}

.freq-meter-bar {
  width: 100%;
  height: 5px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 3px;
  overflow: hidden;
}

.freq-meter-fill {
  height: 100%;
  border-radius: 3px;
  transition: width 0.5s ease;
}

.freq-meter-fill.fill-crit {
  background: linear-gradient(90deg, #f59e0b, #ef4444);
}

.freq-meter-fill.fill-warn {
  background: linear-gradient(90deg, #10b981, #f59e0b);
}

.hive-meta-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
  font-size: 10px;
  background: rgba(0, 0, 0, 0.35);
  padding: 6px 8px;
  border-radius: 6px;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.hive-meta-grid span {
  color: #64748b;
  display: block;
}

.hive-meta-grid strong {
  color: #f1f5f9;
}

/* Tactical Popup Styling */
.tactical-popup {
  color: #f8fafc;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  min-width: 250px;
  max-width: 320px;
  line-height: 1.4;
}
.popup-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  padding-bottom: 6px;
}
.popup-category {
  font-weight: 800;
  font-size: 0.78rem;
  color: #cbd5e1;
  letter-spacing: 0.3px;
}
.popup-badge {
  font-size: 0.65rem;
  font-weight: 800;
  padding: 3px 8px;
  border-radius: 6px;
  letter-spacing: 0.4px;
  text-transform: uppercase;
  white-space: nowrap;
}
.popup-badge.badge-critical {
  background: rgba(239, 68, 68, 0.25) !important;
  color: #ff4d6d !important;
  border: 1px solid rgba(239, 68, 68, 0.5) !important;
  box-shadow: 0 0 8px rgba(239, 68, 68, 0.3);
}
.popup-badge.badge-warning {
  background: rgba(245, 158, 11, 0.25) !important;
  color: #fbbf24 !important;
  border: 1px solid rgba(245, 158, 11, 0.5) !important;
  box-shadow: 0 0 8px rgba(245, 158, 11, 0.3);
}
.popup-badge.badge-info {
  background: rgba(0, 245, 160, 0.2) !important;
  color: #00f5a0 !important;
  border: 1px solid rgba(0, 245, 160, 0.45) !important;
  box-shadow: 0 0 8px rgba(0, 245, 160, 0.25);
}
.popup-body p { font-size: 0.75rem; margin-top: 4px; }

.hive-cell-count-pill {
  position: absolute;
  top: -4px;
  right: -6px;
  background: #ff1744;
  color: #ffffff;
  font-size: 9px;
  font-weight: 800;
  border-radius: 8px;
  padding: 1px 4px;
  line-height: 1.1;
  border: 1px solid #ffffff;
  box-shadow: 0 0 6px rgba(255, 23, 68, 0.8);
  z-index: 5;
}



