.status-hero {
  position: relative;
  padding: 64px 0 40px;
  overflow: hidden;
}
.status-hero::before {
  content: "";
  position: absolute;
  top: -200px; left: 50%;
  width: 900px; height: 500px;
  background: radial-gradient(circle, var(--glow) 0%, transparent 70%);
  transform: translateX(-50%);
  pointer-events: none;
}

.status-global {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  padding: 28px 32px;
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  box-shadow: var(--glass-shadow), 0 0 0 1px rgba(255,255,255,0.03) inset;
}

.status-global-left {
  display: flex;
  align-items: center;
  gap: 16px;
}

.status-pulse {
  position: relative;
  width: 16px; height: 16px;
  border-radius: 50%;
  background: #2ecc71;
  box-shadow: 0 0 16px rgba(46,204,113,0.6);
  flex-shrink: 0;
}
.status-pulse::after {
  content: "";
  position: absolute;
  inset: -6px;
  border-radius: 50%;
  border: 2px solid rgba(46,204,113,0.5);
  animation: status-ring 2s ease-out infinite;
}
.status-pulse.warn { background: #f5a623; box-shadow: 0 0 16px rgba(245,166,35,0.6); }
.status-pulse.warn::after { border-color: rgba(245,166,35,0.5); }
.status-pulse.down { background: #ef4444; box-shadow: 0 0 16px rgba(239,68,68,0.6); }
.status-pulse.down::after { border-color: rgba(239,68,68,0.5); }

@keyframes status-ring {
  0%   { transform: scale(1);   opacity: 0.8; }
  100% { transform: scale(2.4); opacity: 0; }
}

.status-global-text h1 {
  font-family: var(--display);
  font-size: 1.4rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--text);
  margin: 0 0 2px;
}
.status-global-text p {
  font-size: 0.88rem;
  color: var(--text-2);
  margin: 0;
}

.status-global-right {
  display: flex;
  align-items: center;
  gap: 28px;
}

.status-uptime-mini {
  text-align: right;
}
.status-uptime-mini .num {
  font-family: var(--mono);
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--blue-light);
  line-height: 1;
}
.status-uptime-mini .lbl {
  font-size: 0.74rem;
  color: var(--text-3);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-top: 4px;
}

.status-refresh {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.78rem;
  color: var(--text-3);
  font-family: var(--mono);
}
.status-refresh svg {
  width: 14px; height: 14px;
  animation: spin-slow 3s linear infinite;
}
@keyframes spin-slow { to { transform: rotate(360deg); } }

.status-kpis {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-top: 24px;
}
.status-kpi {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px 22px;
  position: relative;
  overflow: hidden;
  transition: border-color 0.25s, transform 0.25s;
}
.status-kpi:hover { border-color: var(--border-h); transform: translateY(-2px); }
.status-kpi-icon {
  width: 36px; height: 36px;
  border-radius: 9px;
  display: grid;
  place-items: center;
  margin-bottom: 14px;
  background: var(--bg-glass-h);
  color: var(--blue-light);
}
.status-kpi-icon svg { width: 18px; height: 18px; }
.status-kpi .val {
  font-family: var(--display);
  font-size: 1.7rem;
  font-weight: 600;
  color: var(--text);
  line-height: 1;
  margin-bottom: 4px;
}
.status-kpi .lbl {
  font-size: 0.82rem;
  color: var(--text-2);
}
.status-kpi .delta {
  position: absolute;
  top: 20px; right: 20px;
  font-family: var(--mono);
  font-size: 0.72rem;
  padding: 3px 8px;
  border-radius: 6px;
}
.delta.up   { color: #2ecc71; background: rgba(46,204,113,0.1); }
.delta.flat { color: var(--text-3); background: var(--bg-glass); }

.status-services {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 8px;
}

.service-row {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px 22px;
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s, transform 0.2s;
}
.service-row:hover {
  border-color: var(--border-glow);
  background: var(--bg-card-2);
}
.service-row.expanded {
  border-color: var(--border-glow);
}

.service-row-main {
  display: flex;
  align-items: center;
  gap: 16px;
}

.service-dot {
  width: 10px; height: 10px;
  border-radius: 50%;
  flex-shrink: 0;
  background: #2ecc71;
  box-shadow: 0 0 10px rgba(46,204,113,0.6);
}
.service-dot.down { background: #ef4444; box-shadow: 0 0 10px rgba(239,68,68,0.6); }
.service-dot.warn { background: #f5a623; box-shadow: 0 0 10px rgba(245,166,35,0.6); }

.service-info { flex: 1; min-width: 0; }
.service-name {
  font-family: var(--display);
  font-size: 0.98rem;
  font-weight: 600;
  color: var(--text);
}
.service-desc {
  font-size: 0.8rem;
  color: var(--text-3);
  margin-top: 2px;
}

.service-bars {
  display: flex;
  align-items: center;
  gap: 2px;
  margin: 0 8px;
}
.service-bar {
  width: 4px;
  height: 22px;
  border-radius: 2px;
  background: #2ecc71;
  opacity: 0.85;
}
.service-bar.down { background: #ef4444; }
.service-bar.warn { background: #f5a623; }

.service-ping {
  font-family: var(--mono);
  font-size: 0.85rem;
  color: var(--text-2);
  min-width: 64px;
  text-align: right;
}
.service-ping .ms { color: var(--text-3); font-size: 0.75rem; }

.service-badge {
  font-family: var(--mono);
  font-size: 0.74rem;
  font-weight: 600;
  padding: 5px 12px;
  border-radius: 999px;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  white-space: nowrap;
}
.service-badge.up   { color: #2ecc71; background: rgba(46,204,113,0.1); border: 1px solid rgba(46,204,113,0.25); }
.service-badge.down { color: #ef4444; background: rgba(239,68,68,0.1); border: 1px solid rgba(239,68,68,0.25); }
.service-badge.warn { color: #f5a623; background: rgba(245,166,35,0.1); border: 1px solid rgba(245,166,35,0.25); }

.service-chevron {
  width: 18px; height: 18px;
  color: var(--text-3);
  transition: transform 0.25s;
  flex-shrink: 0;
}
.service-row.expanded .service-chevron { transform: rotate(180deg); }

.service-detail {
  display: grid;
  grid-template-rows: 0fr;
  opacity: 0;
  transition: grid-template-rows 0.3s ease, opacity 0.25s ease;
}
.service-row.expanded .service-detail {
  grid-template-rows: 1fr;
  opacity: 1;
  margin-top: 18px;
}
.service-detail > div { overflow: hidden; }

.service-detail-inner {
  padding-top: 18px;
  border-top: 1px solid var(--border);
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.detail-stat {
  background: var(--bg-glass);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 14px 16px;
}
.detail-stat .lbl {
  font-size: 0.72rem;
  color: var(--text-3);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 6px;
}
.detail-stat .val {
  font-family: var(--mono);
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text);
}
.detail-stat .val.green { color: #2ecc71; }
.detail-stat .val.red { color: #ef4444; }

.detail-chart-wrap {
  grid-column: 1 / -1;
  background: var(--bg-glass);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 16px 18px 10px;
}
.detail-chart-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
}
.detail-chart-head span {
  font-size: 0.78rem;
  color: var(--text-3);
}
.detail-chart-head .avg {
  font-family: var(--mono);
  color: var(--blue-light);
  font-size: 0.8rem;
}
.detail-chart svg { width: 100%; display: block; overflow: visible; }

.detail-events {
  grid-column: 1 / -1;
}
.detail-events .lbl {
  font-size: 0.72rem;
  color: var(--text-3);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 10px;
}
.event-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 0;
  border-bottom: 1px solid var(--border);
  font-size: 0.84rem;
}
.event-row:last-child { border-bottom: none; }
.event-icon {
  width: 22px; height: 22px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  flex-shrink: 0;
}
.event-icon.down { background: rgba(239,68,68,0.12); color: #ef4444; }
.event-icon.up { background: rgba(46,204,113,0.12); color: #2ecc71; }
.event-icon svg { width: 12px; height: 12px; }
.event-text { flex: 1; color: var(--text-2); }
.event-text strong { color: var(--text); font-weight: 500; }
.event-time {
  font-family: var(--mono);
  font-size: 0.76rem;
  color: var(--text-3);
  white-space: nowrap;
}
.event-duration {
  font-family: var(--mono);
  font-size: 0.76rem;
  color: var(--text-3);
  background: var(--bg-glass-h);
  padding: 2px 8px;
  border-radius: 6px;
  white-space: nowrap;
}

.no-events {
  font-size: 0.85rem;
  color: var(--text-3);
  padding: 8px 0;
}

.status-legend {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  margin-top: 28px;
  font-size: 0.8rem;
  color: var(--text-3);
}
.status-legend span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}
.status-legend .dot { width: 8px; height: 8px; border-radius: 50%; }

@media (max-width: 860px) {
  .status-kpis { grid-template-columns: repeat(2, 1fr); }
  .status-global { flex-direction: column; align-items: flex-start; }
  .status-global-right { width: 100%; justify-content: space-between; }
  .service-row-main { flex-wrap: wrap; gap: 10px; }
  .service-bars { display: none; }
  .service-detail-inner { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 520px) {
  .status-kpis { grid-template-columns: 1fr 1fr; }
  .detail-stat { grid-column: span 1; }
  .detail-stat:nth-child(odd):nth-last-child(1) {}
  .service-ping { display: none; }
}

.service-bar {
  position: relative;
  cursor: default;
  transition: opacity 0.15s, transform 0.15s;
}
.service-bar:hover {
  opacity: 1 !important;
  transform: scaleY(1.3);
}

.service-bar.checking {
  background: var(--text-3, #555);
  opacity: 0.35;
  animation: bar-pulse 1.5s ease-in-out infinite;
}
@keyframes bar-pulse {
  0%, 100% { opacity: 0.2; }
  50% { opacity: 0.45; }
}

.service-dot.checking {
  background: var(--text-3, #888);
  box-shadow: 0 0 8px rgba(136,136,136,0.4);
  animation: bar-pulse 1.5s ease-in-out infinite;
}

.service-badge.checking {
  color: var(--text-3, #888);
  background: rgba(136,136,136,0.08);
  border: 1px solid rgba(136,136,136,0.2);
}

.detail-stat .val.red { color: #ef4444; }
