:root {
  --bg: #05070d;
  --bg-2: #0a0f1c;
  --panel: rgba(15, 22, 39, 0.72);
  --panel-solid: #0f1627;
  --border: rgba(0, 229, 255, 0.16);
  --cyan: #00e5ff;
  --purple: #7c4dff;
  --green: #00ffa3;
  --amber: #ffb020;
  --pink: #ff2e88;
  --text: #e7f0ff;
  --muted: #7f8ea8;
  --sidebar-w: 264px;
  --sidebar-w-collapsed: 78px;
  --radius: 16px;
  --transition: 0.28s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html,
body {
  height: 100%;
}

body {
  font-family: 'Rajdhani', system-ui, sans-serif;
  background-color: var(--bg);
  background-image:
    radial-gradient(circle at 12% 18%, rgba(124, 77, 255, 0.14), transparent 42%),
    radial-gradient(circle at 88% 82%, rgba(0, 229, 255, 0.12), transparent 45%),
    linear-gradient(rgba(0, 229, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 229, 255, 0.035) 1px, transparent 1px);
  background-size: auto, auto, 42px 42px, 42px 42px;
  color: var(--text);
  font-size: 16px;
  letter-spacing: 0.3px;
  overflow-x: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}

/* ---------- Layout ---------- */
.app {
  display: flex;
  min-height: 100vh;
}

/* ---------- Sidebar ---------- */
.sidebar {
  position: fixed;
  inset: 0 auto 0 0;
  width: var(--sidebar-w);
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 22px 16px;
  background: linear-gradient(180deg, rgba(10, 15, 28, 0.96), rgba(6, 9, 18, 0.96));
  border-right: 1px solid var(--border);
  backdrop-filter: blur(18px);
  z-index: 50;
  transition: width var(--transition), padding var(--transition), transform var(--transition);
}

.sidebar::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent, rgba(0, 229, 255, 0.06) 50%, transparent);
  pointer-events: none;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 6px 8px 22px;
  min-height: 62px;
}

.brand__mark {
  flex: 0 0 auto;
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--cyan), var(--purple));
  box-shadow: 0 0 22px rgba(0, 229, 255, 0.45);
  color: #03060d;
}

.brand__mark svg {
  width: 22px;
  height: 22px;
}

.brand__text {
  display: flex;
  flex-direction: column;
  line-height: 1.05;
  overflow: hidden;
  white-space: nowrap;
}

.brand__name {
  font-family: 'Orbitron', sans-serif;
  font-weight: 800;
  font-size: 1.02rem;
  letter-spacing: 2.5px;
  background: linear-gradient(90deg, var(--cyan), #b9f4ff);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.brand__sub {
  font-size: 0.66rem;
  letter-spacing: 3.4px;
  text-transform: uppercase;
  color: var(--muted);
}

.nav {
  display: flex;
  flex-direction: column;
  gap: 4px;
  flex: 1;
  overflow-y: auto;
  overflow-x: hidden;
}

.nav__label {
  font-size: 0.64rem;
  letter-spacing: 2.6px;
  text-transform: uppercase;
  color: var(--muted);
  padding: 16px 12px 8px;
  white-space: nowrap;
}

.nav__item {
  position: relative;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 14px;
  border-radius: 12px;
  color: var(--muted);
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  transition: background var(--transition), color var(--transition), transform var(--transition);
}

.nav__item svg {
  flex: 0 0 auto;
  width: 20px;
  height: 20px;
  stroke-width: 1.7;
}

.nav__item:hover {
  color: var(--text);
  background: rgba(0, 229, 255, 0.08);
}

.nav__item.is-active {
  color: #d7fbff;
  background: linear-gradient(90deg, rgba(0, 229, 255, 0.22), rgba(124, 77, 255, 0.08));
  box-shadow: inset 0 0 0 1px rgba(0, 229, 255, 0.35), 0 0 18px rgba(0, 229, 255, 0.12);
}

.nav__item.is-active::before {
  content: '';
  position: absolute;
  left: 0;
  top: 18%;
  height: 64%;
  width: 3px;
  border-radius: 3px;
  background: var(--cyan);
  box-shadow: 0 0 12px var(--cyan);
}

.nav__text {
  transition: opacity var(--transition);
}

.badge {
  margin-left: auto;
  font-size: 0.62rem;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 999px;
  background: rgba(255, 46, 136, 0.16);
  color: var(--pink);
  border: 1px solid rgba(255, 46, 136, 0.35);
}

.sidebar__footer {
  border-top: 1px solid var(--border);
  padding-top: 14px;
}

.nav__item--logout {
  margin-bottom: 10px;
}

.nav__item--logout:hover {
  color: #ffc6de;
  background: rgba(255, 46, 136, 0.12);
}

.user {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px;
  border-radius: 12px;
  overflow: hidden;
  white-space: nowrap;
}

.user__avatar {
  flex: 0 0 auto;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-family: 'Orbitron', sans-serif;
  font-size: 0.8rem;
  color: #03060d;
  background: linear-gradient(135deg, var(--green), var(--cyan));
}

.user__meta {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}

.user__name {
  font-weight: 700;
  font-size: 0.9rem;
}

.user__role {
  font-size: 0.7rem;
  color: var(--muted);
  letter-spacing: 1.4px;
  text-transform: uppercase;
}

/* ---------- Collapsed state ---------- */
.app.is-collapsed .sidebar {
  width: var(--sidebar-w-collapsed);
  padding-inline: 12px;
}

.app.is-collapsed .brand__text,
.app.is-collapsed .nav__text,
.app.is-collapsed .nav__label,
.app.is-collapsed .badge,
.app.is-collapsed .user__meta {
  opacity: 0;
  pointer-events: none;
  width: 0;
}

.app.is-collapsed .nav__item {
  justify-content: center;
  padding-inline: 0;
}

.app.is-collapsed .nav__item.is-active::before {
  display: none;
}

.app.is-collapsed .user {
  justify-content: center;
}

/* ---------- Main ---------- */
.main {
  flex: 1;
  margin-left: var(--sidebar-w);
  min-width: 0;
  display: flex;
  flex-direction: column;
  transition: margin-left var(--transition);
}

.app.is-collapsed .main {
  margin-left: var(--sidebar-w-collapsed);
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 30;
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 16px 30px;
  background: rgba(6, 9, 18, 0.72);
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(16px);
}

.icon-btn {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: rgba(0, 229, 255, 0.05);
  color: var(--cyan);
  cursor: pointer;
  transition: background var(--transition), box-shadow var(--transition), transform var(--transition);
}

.icon-btn:hover {
  background: rgba(0, 229, 255, 0.14);
  box-shadow: 0 0 18px rgba(0, 229, 255, 0.25);
}

.icon-btn:active {
  transform: scale(0.94);
}

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

.topbar__heading {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}

.topbar__eyebrow {
  font-size: 0.68rem;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--muted);
}

.topbar__title {
  font-family: 'Orbitron', sans-serif;
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: 1px;
}

.topbar__spacer {
  flex: 1;
}

.live {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-size: 0.76rem;
  letter-spacing: 1.6px;
  text-transform: uppercase;
  color: var(--green);
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid rgba(0, 255, 163, 0.3);
  background: rgba(0, 255, 163, 0.07);
}

.live__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 0 rgba(0, 255, 163, 0.6);
  animation: pulse 1.8s infinite;
}

.clock {
  font-family: 'Orbitron', sans-serif;
  font-size: 0.94rem;
  letter-spacing: 2px;
  color: #bfeaff;
  min-width: 96px;
  text-align: right;
}

.content {
  padding: 30px;
  display: flex;
  flex-direction: column;
  gap: 24px;
  flex: 1;
}

/* ---------- Cards ---------- */
.grid {
  display: grid;
  gap: 20px;
}

.grid--kpi {
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
}

.grid--2 {
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
}

.grid--3 {
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.card {
  position: relative;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px;
  backdrop-filter: blur(14px);
  overflow: hidden;
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}

.card:hover {
  transform: translateY(-4px);
  border-color: rgba(0, 229, 255, 0.4);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.45), 0 0 24px rgba(0, 229, 255, 0.1);
}

.card::before {
  content: '';
  position: absolute;
  inset: 0 auto auto 0;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, var(--cyan), transparent);
  opacity: 0.55;
}

.card__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
}

.card__title {
  font-family: 'Orbitron', sans-serif;
  font-size: 0.84rem;
  font-weight: 700;
  letter-spacing: 1.6px;
  text-transform: uppercase;
  color: #cfeaff;
}

.card__hint {
  font-size: 0.72rem;
  letter-spacing: 1px;
  color: var(--muted);
  text-transform: uppercase;
}

.kpi {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.kpi__icon {
  width: 46px;
  height: 46px;
  border-radius: 13px;
  display: grid;
  place-items: center;
  margin-bottom: 6px;
}

.kpi__icon svg {
  width: 24px;
  height: 24px;
}

.kpi__label {
  font-size: 0.72rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--muted);
}

.kpi__value {
  font-family: 'Orbitron', sans-serif;
  font-size: 2rem;
  font-weight: 800;
  line-height: 1;
}

.kpi__value small {
  font-size: 0.95rem;
  color: var(--muted);
  margin-left: 4px;
}

.kpi__trend {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.78rem;
  font-weight: 700;
}

.trend-up { color: var(--green); }
.trend-down { color: var(--pink); }

.accent-cyan { color: var(--cyan); background: rgba(0, 229, 255, 0.1); box-shadow: 0 0 20px rgba(0, 229, 255, 0.15); }
.accent-purple { color: var(--purple); background: rgba(124, 77, 255, 0.12); }
.accent-green { color: var(--green); background: rgba(0, 255, 163, 0.1); }
.accent-amber { color: var(--amber); background: rgba(255, 176, 32, 0.1); }
.accent-pink { color: var(--pink); background: rgba(255, 46, 136, 0.12); }

/* ---------- Map / pulse ---------- */
.map {
  position: relative;
  height: 340px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background:
    linear-gradient(rgba(0, 229, 255, 0.07) 1px, transparent 1px) 0 0 / 34px 34px,
    linear-gradient(90deg, rgba(0, 229, 255, 0.07) 1px, transparent 1px) 0 0 / 34px 34px,
    radial-gradient(circle at 50% 55%, rgba(124, 77, 255, 0.18), transparent 60%),
    var(--panel-solid);
  overflow: hidden;
}

.map__road {
  position: absolute;
  background: linear-gradient(90deg, transparent, rgba(0, 229, 255, 0.5), transparent);
  height: 2px;
}

.map__pulse {
  position: absolute;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 16px var(--green);
}

.map__pulse::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 2px solid var(--green);
  animation: ripple 2.4s infinite;
}

.map__pulse--blue { background: var(--cyan); box-shadow: 0 0 16px var(--cyan); }
.map__pulse--blue::after { border-color: var(--cyan); }
.map__pulse--pink { background: var(--pink); box-shadow: 0 0 16px var(--pink); }
.map__pulse--pink::after { border-color: var(--pink); }

/* ---------- Bars ---------- */
.bars {
  display: flex;
  align-items: flex-end;
  gap: 10px;
  height: 180px;
  padding-top: 10px;
}

.bars__col {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  height: 100%;
  justify-content: flex-end;
}

.bars__bar {
  width: 100%;
  border-radius: 8px 8px 3px 3px;
  background: linear-gradient(180deg, var(--cyan), rgba(0, 229, 255, 0.15));
  box-shadow: 0 0 16px rgba(0, 229, 255, 0.22);
  transition: height 0.6s ease;
}

.bars__bar--purple { background: linear-gradient(180deg, var(--purple), rgba(124, 77, 255, 0.15)); box-shadow: 0 0 16px rgba(124, 77, 255, 0.22); }
.bars__bar--green { background: linear-gradient(180deg, var(--green), rgba(0, 255, 163, 0.15)); box-shadow: 0 0 16px rgba(0, 255, 163, 0.22); }

.bars__label {
  font-size: 0.68rem;
  color: var(--muted);
  letter-spacing: 1px;
}

/* ---------- Ring gauge ---------- */
.gauge {
  display: grid;
  place-items: center;
  padding: 6px 0;
}

.gauge svg { transform: rotate(-90deg); }
.gauge__track { fill: none; stroke: rgba(255, 255, 255, 0.07); stroke-width: 12; }
.gauge__value {
  fill: none;
  stroke: var(--cyan);
  stroke-width: 12;
  stroke-linecap: round;
  filter: drop-shadow(0 0 8px rgba(0, 229, 255, 0.6));
}
.gauge__value--green { stroke: var(--green); filter: drop-shadow(0 0 8px rgba(0, 255, 163, 0.6)); }
.gauge__value--purple { stroke: var(--purple); filter: drop-shadow(0 0 8px rgba(124, 77, 255, 0.6)); }

.gauge__wrap { position: relative; display: grid; place-items: center; }
.gauge__num {
  position: absolute;
  font-family: 'Orbitron', sans-serif;
  font-size: 1.7rem;
  font-weight: 800;
}

/* ---------- Table / list ---------- */
.list {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.list__row {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 13px 12px;
  border-radius: 11px;
  transition: background var(--transition);
}

.list__row:hover { background: rgba(0, 229, 255, 0.06); }

.list__icon {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
}

.list__icon svg { width: 18px; height: 18px; }

.list__main { flex: 1; min-width: 0; }
.list__title { font-weight: 700; font-size: 0.94rem; }
.list__sub { font-size: 0.78rem; color: var(--muted); }
.list__meta { font-family: 'Orbitron', sans-serif; font-size: 0.72rem; color: var(--muted); letter-spacing: 1px; }

.tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 999px;
}
.tag--ok { color: var(--green); background: rgba(0, 255, 163, 0.1); border: 1px solid rgba(0, 255, 163, 0.3); }
.tag--warn { color: var(--amber); background: rgba(255, 176, 32, 0.1); border: 1px solid rgba(255, 176, 32, 0.3); }
.tag--alert { color: var(--pink); background: rgba(255, 46, 136, 0.12); border: 1px solid rgba(255, 46, 136, 0.32); }

/* ---------- Camera grid ---------- */
.cameras {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
}

.cam {
  position: relative;
  aspect-ratio: 16 / 10;
  border-radius: 12px;
  border: 1px solid var(--border);
  background:
    repeating-linear-gradient(0deg, rgba(0, 0, 0, 0.28) 0 1px, transparent 1px 3px),
    linear-gradient(160deg, #101a2e, #070c17);
  overflow: hidden;
}

.cam::after {
  content: 'REC';
  position: absolute;
  top: 10px;
  left: 12px;
  font-family: 'Orbitron', sans-serif;
  font-size: 0.6rem;
  letter-spacing: 1.5px;
  color: var(--pink);
}

.cam::before {
  content: '';
  position: absolute;
  top: 12px;
  right: 12px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--pink);
  box-shadow: 0 0 10px var(--pink);
  animation: blink 1.4s infinite;
}

.cam__scan {
  position: absolute;
  left: 0;
  right: 0;
  height: 38%;
  background: linear-gradient(180deg, transparent, rgba(0, 229, 255, 0.14), transparent);
  animation: scan 4.5s linear infinite;
}

.cam__label {
  position: absolute;
  bottom: 10px;
  left: 12px;
  font-size: 0.72rem;
  letter-spacing: 1px;
  color: #a9c4dd;
}

.cam__box {
  position: absolute;
  border: 1.5px solid var(--cyan);
  border-radius: 4px;
  box-shadow: 0 0 12px rgba(0, 229, 255, 0.5);
}

/* ---------- Helpers ---------- */
.section-title {
  font-family: 'Orbitron', sans-serif;
  font-size: 0.78rem;
  letter-spacing: 2.4px;
  text-transform: uppercase;
  color: var(--muted);
  margin-top: 4px;
}

.air-quality {
  display: flex;
  align-items: baseline;
  gap: 8px;
}
.air-quality__value { font-family: 'Orbitron', sans-serif; font-size: 2.6rem; font-weight: 800; }

.legend { display: flex; flex-wrap: wrap; gap: 16px; margin-top: 14px; }
.legend__item { display: flex; align-items: center; gap: 8px; font-size: 0.78rem; color: var(--muted); }
.legend__dot { width: 10px; height: 10px; border-radius: 3px; }

/* ---------- Animations ---------- */
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(0, 255, 163, 0.55); }
  70% { box-shadow: 0 0 0 12px rgba(0, 255, 163, 0); }
  100% { box-shadow: 0 0 0 0 rgba(0, 255, 163, 0); }
}

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

@keyframes blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.25; }
}

@keyframes scan {
  0% { top: -40%; }
  100% { top: 110%; }
}

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

.content > * {
  animation: fadeUp 0.5s ease both;
}
.content > *:nth-child(2) { animation-delay: 0.06s; }
.content > *:nth-child(3) { animation-delay: 0.12s; }
.content > *:nth-child(4) { animation-delay: 0.18s; }
.content > *:nth-child(5) { animation-delay: 0.24s; }

/* ---------- Overlay (mobile) ---------- */
.overlay {
  position: fixed;
  inset: 0;
  background: rgba(2, 5, 12, 0.6);
  backdrop-filter: blur(3px);
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition);
  z-index: 40;
}

/* ---------- Responsive ---------- */
@media (max-width: 860px) {
  .sidebar,
  .app.is-collapsed .sidebar {
    width: var(--sidebar-w);
    transform: translateX(-100%);
    box-shadow: 24px 0 60px rgba(0, 0, 0, 0.5);
  }

  .app.is-mobile-open .sidebar {
    transform: translateX(0);
  }

  .app.is-mobile-open .overlay {
    opacity: 1;
    pointer-events: auto;
  }

  .app.is-collapsed .brand__text,
  .app.is-collapsed .nav__text,
  .app.is-collapsed .nav__label,
  .app.is-collapsed .user__meta {
    opacity: 1;
    width: auto;
    pointer-events: auto;
  }

  .app.is-collapsed .nav__item {
    justify-content: flex-start;
    padding-inline: 14px;
  }

  .main,
  .app.is-collapsed .main {
    margin-left: 0;
  }

  .content { padding: 20px 16px; }
  .topbar { padding: 14px 16px; gap: 12px; }
  .clock { display: none; }
}

/* ---------- Login ---------- */
.login {
  position: relative;
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 28px 18px;
  overflow: hidden;
}

.login::before,
.login::after {
  content: '';
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  pointer-events: none;
}

.login::before {
  width: 420px;
  height: 420px;
  top: -120px;
  left: -120px;
  background: rgba(124, 77, 255, 0.28);
  animation: float 9s ease-in-out infinite;
}

.login::after {
  width: 380px;
  height: 380px;
  bottom: -140px;
  right: -100px;
  background: rgba(0, 229, 255, 0.22);
  animation: float 11s ease-in-out infinite reverse;
}

.login__card {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 420px;
  padding: 40px 36px;
  border-radius: 22px;
  background: var(--panel);
  border: 1px solid var(--border);
  backdrop-filter: blur(22px);
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.55), 0 0 40px rgba(0, 229, 255, 0.08);
  animation: fadeUp 0.6s ease both;
}

.login__card::before {
  content: '';
  position: absolute;
  inset: 0 auto auto 0;
  width: 100%;
  height: 2px;
  border-radius: 22px 22px 0 0;
  background: linear-gradient(90deg, transparent, var(--cyan), var(--purple), transparent);
}

.login__brand {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  margin-bottom: 28px;
  text-align: center;
}

.login__mark {
  width: 58px;
  height: 58px;
  display: grid;
  place-items: center;
  border-radius: 17px;
  background: linear-gradient(135deg, var(--cyan), var(--purple));
  box-shadow: 0 0 30px rgba(0, 229, 255, 0.5);
  color: #03060d;
}

.login__mark svg { width: 30px; height: 30px; }

.login__name {
  font-family: 'Orbitron', sans-serif;
  font-size: 1.6rem;
  font-weight: 800;
  letter-spacing: 5px;
  background: linear-gradient(90deg, var(--cyan), #cbb6ff);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.login__tagline {
  font-size: 0.7rem;
  letter-spacing: 3.5px;
  text-transform: uppercase;
  color: var(--muted);
}

.login__form {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.field__label {
  font-size: 0.68rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--muted);
}

.field__control {
  position: relative;
  display: flex;
  align-items: center;
}

.field__control svg {
  position: absolute;
  left: 14px;
  width: 18px;
  height: 18px;
  color: var(--muted);
  pointer-events: none;
  transition: color var(--transition);
}

.field__input {
  width: 100%;
  padding: 14px 14px 14px 44px;
  font-family: inherit;
  font-size: 0.98rem;
  color: var(--text);
  background: rgba(6, 10, 20, 0.7);
  border: 1px solid var(--border);
  border-radius: 12px;
  outline: none;
  transition: border-color var(--transition), box-shadow var(--transition), background var(--transition);
}

.field__input::placeholder { color: #56637a; }

.field__input:focus {
  border-color: var(--cyan);
  background: rgba(0, 229, 255, 0.06);
  box-shadow: 0 0 0 3px rgba(0, 229, 255, 0.14), 0 0 22px rgba(0, 229, 255, 0.16);
}

.field__control:focus-within svg { color: var(--cyan); }

.login__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font-size: 0.82rem;
}

.checkbox {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: var(--muted);
  cursor: pointer;
  user-select: none;
}

.checkbox input {
  appearance: none;
  width: 17px;
  height: 17px;
  border: 1px solid var(--border);
  border-radius: 5px;
  background: rgba(6, 10, 20, 0.7);
  cursor: pointer;
  transition: background var(--transition), border-color var(--transition);
}

.checkbox input:checked {
  background: linear-gradient(135deg, var(--cyan), var(--purple));
  border-color: transparent;
  box-shadow: 0 0 12px rgba(0, 229, 255, 0.5);
}

.login__link {
  color: var(--cyan);
  transition: text-shadow var(--transition);
}

.login__link:hover { text-shadow: 0 0 12px rgba(0, 229, 255, 0.6); }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  padding: 15px 20px;
  font-family: 'Orbitron', sans-serif;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: #03060d;
  background: linear-gradient(135deg, var(--cyan), var(--purple));
  border: none;
  border-radius: 12px;
  cursor: pointer;
  box-shadow: 0 10px 30px rgba(0, 229, 255, 0.25);
  transition: transform var(--transition), box-shadow var(--transition), filter var(--transition);
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 40px rgba(0, 229, 255, 0.4);
  filter: brightness(1.08);
}

.btn:active { transform: translateY(0) scale(0.99); }

.btn svg { width: 18px; height: 18px; }

.login__footer {
  margin-top: 24px;
  text-align: center;
  font-size: 0.78rem;
  color: var(--muted);
}

.login__status {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 18px;
  font-size: 0.68rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--muted);
}

@keyframes float {
  0%, 100% { transform: translate(0, 0); }
  50% { transform: translate(30px, 24px); }
}

@media (max-width: 480px) {
  .login__card { padding: 30px 22px; }
  .login__name { font-size: 1.35rem; letter-spacing: 4px; }
}

/* ---------- User form ---------- */
.form-card {
  max-width: 760px;
  width: 100%;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.form-grid .field__input {
  padding-left: 44px;
}

.field--full {
  grid-column: 1 / -1;
}

.field__select {
  appearance: none;
  -webkit-appearance: none;
  cursor: pointer;
  padding-right: 44px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2300e5ff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  background-size: 18px;
}

.field__select option {
  background: var(--panel-solid);
  color: var(--text);
}

.role-switch {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.role-option input {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
  pointer-events: none;
}

.role-option__body {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 16px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: rgba(6, 10, 20, 0.7);
  color: var(--muted);
  font-weight: 600;
  cursor: pointer;
  transition: border-color var(--transition), color var(--transition), background var(--transition), box-shadow var(--transition);
}

.role-option__body svg {
  width: 20px;
  height: 20px;
}

.role-option__body:hover {
  color: var(--text);
  border-color: rgba(0, 229, 255, 0.4);
}

.role-option input:checked + .role-option__body {
  color: #d7fbff;
  background: linear-gradient(135deg, rgba(0, 229, 255, 0.22), rgba(124, 77, 255, 0.12));
  border-color: var(--cyan);
  box-shadow: inset 0 0 0 1px rgba(0, 229, 255, 0.4), 0 0 20px rgba(0, 229, 255, 0.18);
}

.role-option input:focus-visible + .role-option__body {
  outline: 2px solid var(--cyan);
  outline-offset: 2px;
}

.form-card .btn {
  margin-top: 6px;
}

.field__input[type="date"] {
  color-scheme: dark;
}

.alert {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 18px;
  padding: 13px 16px;
  border-radius: 12px;
  font-size: 0.9rem;
  font-weight: 600;
  color: #ffc6de;
  background: rgba(255, 46, 136, 0.12);
  border: 1px solid rgba(255, 46, 136, 0.32);
}

.alert svg {
  flex: 0 0 auto;
  width: 20px;
  height: 20px;
  color: var(--pink);
}

@media (max-width: 620px) {
  .form-grid { grid-template-columns: 1fr; }
}

/* ---------- Home map ---------- */
.home-map {
  position: relative;
  flex: 1;
  padding: 0;
  min-height: calc(100vh - 150px);
}

.home-map:hover {
  transform: none;
}

.leaflet-map {
  width: 100%;
  height: calc(100vh - 150px);
  min-height: 420px;
  border-radius: var(--radius);
  z-index: 1;
}

.map-overlay {
  position: absolute;
  top: 16px;
  left: 16px;
  z-index: 500;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 16px 18px;
  min-width: 250px;
  border-radius: 14px;
  background: rgba(9, 14, 26, 0.82);
  border: 1px solid var(--border);
  backdrop-filter: blur(14px);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.45), 0 0 24px rgba(0, 229, 255, 0.08);
}

.map-overlay__eyebrow {
  font-size: 0.64rem;
  letter-spacing: 2.6px;
  text-transform: uppercase;
  color: var(--muted);
}

.map-overlay__row {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 0.9rem;
  font-weight: 600;
}

.map-overlay__row svg {
  width: 18px;
  height: 18px;
  color: var(--cyan);
}

.map-overlay__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 2px;
  padding: 10px 14px;
  font-family: 'Orbitron', sans-serif;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--cyan);
  background: rgba(0, 229, 255, 0.08);
  border: 1px solid var(--border);
  border-radius: 10px;
  cursor: pointer;
  transition: background var(--transition), box-shadow var(--transition);
}

.map-overlay__btn:hover {
  background: rgba(0, 229, 255, 0.16);
  box-shadow: 0 0 18px rgba(0, 229, 255, 0.25);
}

.map-overlay__btn svg {
  width: 16px;
  height: 16px;
}

.geo-marker {
  display: grid;
  place-items: center;
}

.geo-marker__dot {
  position: relative;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #ff2e3b;
  box-shadow: 0 0 0 4px rgba(255, 46, 59, 0.25), 0 0 18px #ff2e3b;
}

.geo-marker__dot::after {
  content: '';
  position: absolute;
  inset: -6px;
  border-radius: 50%;
  border: 2px solid #ff2e3b;
  animation: ripple 2.2s infinite;
}

.sem-marker-wrap {
  background: transparent;
  border: none;
}

.sem-marker {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #5bc8ff, #0a6dff);
  border: 2px solid rgba(255, 255, 255, 0.9);
  box-shadow: 0 0 0 3px rgba(10, 109, 255, 0.25), 0 0 16px rgba(10, 109, 255, 0.7);
  color: #fff;
  font-family: 'Orbitron', sans-serif;
  font-size: 0.58rem;
  font-weight: 700;
  letter-spacing: 0.2px;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.45);
  transition: transform var(--transition), box-shadow var(--transition);
}

.sem-marker:hover {
  transform: scale(1.12);
  box-shadow: 0 0 0 4px rgba(10, 109, 255, 0.35), 0 0 22px rgba(10, 109, 255, 0.9);
}

.admin-marker-wrap {
  background: transparent;
  border: none;
}

.admin-marker {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #6bffb0, #00c46a);
  border: 2px solid rgba(255, 255, 255, 0.9);
  box-shadow: 0 0 0 3px rgba(0, 196, 106, 0.25), 0 0 18px rgba(0, 196, 106, 0.75);
  color: #04210f;
  font-family: 'Orbitron', sans-serif;
  font-size: 0.72rem;
  font-weight: 700;
  transition: transform var(--transition);
}

.admin-marker:hover {
  transform: scale(1.12);
}

/* ---------- Emergencia ---------- */
.emergency-ring {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 84px;
  height: 84px;
  transform: translate(-50%, -50%) scale(0.85);
  border: 2px solid #ff2e3b;
  border-radius: 50%;
  box-shadow: 0 0 0 2px rgba(255, 46, 59, 0.25), 0 0 26px rgba(255, 46, 59, 0.6), inset 0 0 26px rgba(255, 46, 59, 0.25);
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.25s ease, transform 0.25s ease;
  z-index: 700;
}

.emergency-ring.is-visible {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
  animation: emergency-pulse 1.6s infinite;
}

.emergency-ring span {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #ff2e3b;
  transform: translate(-50%, -50%);
  box-shadow: 0 0 10px #ff2e3b;
}

.emergency-ring.is-destino {
  border-color: #00c46a;
}

.emergency-ring.is-destino span {
  background: #00c46a;
  box-shadow: 0 0 10px #00c46a;
}

.emergency-ring.is-destino.is-visible {
  animation: emergency-pulse-green 1.6s infinite;
}

@keyframes emergency-pulse {
  0%, 100% { box-shadow: 0 0 0 2px rgba(255, 46, 59, 0.25), 0 0 26px rgba(255, 46, 59, 0.55), inset 0 0 26px rgba(255, 46, 59, 0.22); }
  50% { box-shadow: 0 0 0 10px rgba(255, 46, 59, 0.12), 0 0 34px rgba(255, 46, 59, 0.75), inset 0 0 30px rgba(255, 46, 59, 0.3); }
}

@keyframes emergency-pulse-green {
  0%, 100% { box-shadow: 0 0 0 2px rgba(0, 196, 106, 0.25), 0 0 26px rgba(0, 196, 106, 0.55), inset 0 0 26px rgba(0, 196, 106, 0.22); }
  50% { box-shadow: 0 0 0 10px rgba(0, 196, 106, 0.12), 0 0 34px rgba(0, 196, 106, 0.75), inset 0 0 30px rgba(0, 196, 106, 0.3); }
}

.emergency-panel {
  position: absolute;
  top: 16px;
  left: 16px;
  z-index: 700;
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 14px 16px;
  border-radius: 14px;
  background: rgba(9, 14, 26, 0.82);
  border: 1px solid var(--border);
  backdrop-filter: blur(14px);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.45);
}

.panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.panel-head__right {
  display: flex;
  align-items: center;
  gap: 8px;
}

.panel-toggle {
  flex: 0 0 auto;
  width: 24px;
  height: 24px;
  display: grid;
  place-items: center;
  border: 1px solid var(--border);
  border-radius: 7px;
  background: rgba(0, 229, 255, 0.06);
  color: var(--cyan);
  cursor: pointer;
  transition: background var(--transition);
}

.panel-toggle svg {
  width: 14px;
  height: 14px;
  transition: transform var(--transition);
}

.panel-toggle:hover {
  background: rgba(0, 229, 255, 0.16);
}

.panel-toggle.is-collapsed svg {
  transform: rotate(180deg);
}

.emergency-panel.is-collapsed .panel-body,
.intercepted-panel.is-collapsed .intercepted-list {
  display: none;
}

.intercepted-panel {
  position: absolute;
  top: 16px;
  right: 16px;
  z-index: 700;
  width: 280px;
  max-height: min(60%, 420px);
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 14px 16px;
  border-radius: 14px;
  background: rgba(9, 14, 26, 0.86);
  border: 1px solid var(--border);
  backdrop-filter: blur(14px);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.45);
  overflow: hidden;
}

.intercepted-panel[hidden] {
  display: none;
}

.intercepted-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.intercepted-count {
  font-family: 'Orbitron', sans-serif;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--cyan);
  padding: 2px 10px;
  border-radius: 999px;
  background: rgba(0, 229, 255, 0.1);
  border: 1px solid rgba(0, 229, 255, 0.3);
}

.intercepted-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
  overflow-y: auto;
}

.intercepted-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  border-radius: 10px;
  background: rgba(6, 10, 20, 0.5);
  border: 1px solid var(--border);
}

.intercepted-badge {
  flex: 0 0 auto;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: radial-gradient(circle at 35% 30%, #5bc8ff, #0a6dff);
  color: #fff;
  font-family: 'Orbitron', sans-serif;
  font-size: 0.55rem;
  font-weight: 700;
  box-shadow: 0 0 12px rgba(10, 109, 255, 0.7);
}

.intercepted-info {
  min-width: 0;
}

.intercepted-info strong {
  display: block;
  font-size: 0.82rem;
}

.intercepted-info small {
  display: block;
  color: var(--muted);
  font-size: 0.72rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

#emergency-origin,
#emergency-dest {
  font-family: 'Orbitron', sans-serif;
  font-size: 0.92rem;
  color: var(--text);
}

#emergency-origin.is-set {
  color: #ff8f98;
}

#emergency-dest.is-set {
  color: #6bffb0;
}

.emergency-btn {
  position: absolute;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 700;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 16px 32px;
  font-family: 'Orbitron', sans-serif;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: #fff;
  background: linear-gradient(135deg, #ff2e3b, #b3000c);
  border: none;
  border-radius: 999px;
  cursor: pointer;
  box-shadow: 0 0 0 4px rgba(255, 46, 59, 0.22), 0 12px 30px rgba(255, 46, 59, 0.4);
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.emergency-btn:hover {
  transform: translateX(-50%) translateY(-2px);
  box-shadow: 0 0 0 5px rgba(255, 46, 59, 0.3), 0 16px 36px rgba(255, 46, 59, 0.5);
}

.emergency-btn.is-destino {
  background: linear-gradient(135deg, #00c46a, #007a43);
  box-shadow: 0 0 0 6px rgba(0, 196, 106, 0.3), 0 0 26px rgba(0, 196, 106, 0.7);
}

.emergency-btn.is-cancelar {
  background: linear-gradient(135deg, #6b7280, #374151);
  box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.08), 0 12px 30px rgba(0, 0, 0, 0.45);
}

.emergency-btn svg {
  width: 18px;
  height: 18px;
}

.mark-marker-wrap {
  background: transparent;
  border: none;
}

.mark-marker {
  display: block;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #ff2e3b;
  border: 3px solid #fff;
  box-shadow: 0 0 16px #ff2e3b;
}

.mark-marker--dest {
  background: #00c46a;
  box-shadow: 0 0 16px #00c46a;
}

.route-line {
  stroke-dasharray: 12 14;
  animation: route-dash 1.1s linear infinite;
  filter: drop-shadow(0 0 6px rgba(255, 176, 32, 0.9));
}

@keyframes route-dash {
  to { stroke-dashoffset: -104; }
}

.ambulance-wrap {
  background: transparent;
  border: none;
}

.ambulance-marker {
  position: relative;
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #ffffff, #dbe3ee);
  border: 2px solid #ff2e3b;
  box-shadow: 0 0 0 3px rgba(255, 46, 59, 0.28), 0 0 20px rgba(255, 46, 59, 0.8);
  color: #b3000c;
}

.ambulance-marker svg {
  width: 26px;
  height: 26px;
}

.ambulance-marker__beacon {
  position: absolute;
  top: -6px;
  left: 50%;
  transform: translateX(-50%);
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #ff2e3b;
  box-shadow: 0 0 10px #ff2e3b;
  animation: beacon 0.7s steps(1, end) infinite;
}

@keyframes beacon {
  0%, 49% { background: #ff2e3b; box-shadow: 0 0 10px #ff2e3b; }
  50%, 100% { background: #00e5ff; box-shadow: 0 0 10px #00e5ff; }
}

.leaflet-container {
  background: #e8e6e1;
  font-family: inherit;
}

@media (max-width: 620px) {
  .map-overlay {
    left: 10px;
    right: 10px;
    min-width: 0;
  }
}

/* ---------- Users list ---------- */
.user-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 20px;
  margin-top: 14px;
}

.user-card {
  padding: 20px;
}

.user-card__head {
  display: flex;
  align-items: center;
  gap: 14px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 14px;
}

.user-card__avatar {
  flex: 0 0 auto;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-family: 'Orbitron', sans-serif;
  font-size: 0.9rem;
  font-weight: 700;
}

.user-card__name {
  font-family: 'Orbitron', sans-serif;
  font-size: 0.92rem;
  font-weight: 700;
  margin-bottom: 6px;
}

.user-card__meta {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.user-card__row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  font-size: 0.85rem;
}

.user-card__row span {
  color: var(--muted);
}

.user-card__row strong {
  font-weight: 600;
  text-align: right;
  word-break: break-word;
}

.empty {
  color: var(--muted);
}

.user-card__edit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  margin-top: 16px;
  padding: 10px 14px;
  font-family: 'Orbitron', sans-serif;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--cyan);
  background: rgba(0, 229, 255, 0.08);
  border: 1px solid var(--border);
  border-radius: 10px;
  transition: background var(--transition), box-shadow var(--transition);
}

.user-card__edit:hover {
  background: rgba(0, 229, 255, 0.16);
  box-shadow: 0 0 18px rgba(0, 229, 255, 0.25);
}

.user-card__edit svg {
  width: 15px;
  height: 15px;
}

.user-card__actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 16px;
}

.user-card__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 14px;
  font-family: 'Orbitron', sans-serif;
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--cyan);
  background: rgba(0, 229, 255, 0.08);
  border: 1px solid var(--border);
  border-radius: 10px;
  transition: background var(--transition), box-shadow var(--transition);
}

.user-card__btn:hover {
  background: rgba(0, 229, 255, 0.16);
  box-shadow: 0 0 18px rgba(0, 229, 255, 0.25);
}

.user-card__btn--edit {
  color: #c3a9ff;
  background: rgba(124, 77, 255, 0.12);
}

.user-card__btn--edit:hover {
  background: rgba(124, 77, 255, 0.2);
  box-shadow: 0 0 18px rgba(124, 77, 255, 0.28);
}

.user-card__btn svg {
  width: 15px;
  height: 15px;
}

/* ---------- User detail ---------- */
.detail-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  flex-wrap: wrap;
}

.detail-head__id {
  display: flex;
  align-items: center;
  gap: 16px;
}

.detail-head__name {
  font-family: 'Orbitron', sans-serif;
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 6px;
}

.detail-head__actions {
  display: flex;
  gap: 10px;
}

.detail-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 16px;
}

.detail-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: rgba(6, 10, 20, 0.4);
}

.detail-item span {
  font-size: 0.66rem;
  letter-spacing: 1.6px;
  text-transform: uppercase;
  color: var(--muted);
}

.detail-item strong {
  font-weight: 600;
  word-break: break-word;
}

.detail-item--full {
  grid-column: 1 / -1;
}

/* ---------- Historial ---------- */
.history__list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.history__row {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: rgba(6, 10, 20, 0.4);
}

.history__main {
  display: flex;
  flex-direction: column;
  gap: 3px;
  font-size: 0.85rem;
}

.history__main strong {
  font-family: 'Orbitron', sans-serif;
  font-size: 0.78rem;
}

.history__main span {
  color: var(--muted);
}

/* Marca CityOS */
.brand__logo {
  height: 34px;
  width: auto;
  display: block;
}
.login__logo {
  height: 46px;
  width: auto;
  display: block;
  margin: 0 auto 10px;
}




