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

:root {
  --bg: #0f1117;
  --bg2: #161820;
  --bg3: #1e2030;
  --border: rgba(255,255,255,0.08);
  --border2: rgba(255,255,255,0.14);
  --text: #e8eaf0;
  --text2: #9399a8;
  --text3: #5a6070;
  --accent: #5865f2;
  --green: #2ecc71;
  --red: #e74c3c;
  --yellow: #f5a623;
  --radius: 8px;
  --radius-lg: 12px;
}

body { font-family: 'Inter', sans-serif; background: var(--bg); color: var(--text); font-size: 15px; line-height: 1.6; }
a { color: var(--accent); text-decoration: none; }

.navbar { background: var(--bg2); border-bottom: 1px solid var(--border); }
.nav-inner { max-width: 800px; margin: 0 auto; padding: 0 24px; height: 58px; display: flex; align-items: center; justify-content: space-between; }
.nav-brand { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 17px; color: var(--text); }
.brand-dot { width: 9px; height: 9px; background: var(--accent); border-radius: 50%; }
.nav-right { font-size: 13px; color: var(--text3); }

.container { max-width: 800px; margin: 0 auto; padding: 40px 24px; }

/* Overall banner */
.overall-banner { display: flex; align-items: center; gap: 16px; padding: 20px 24px; border-radius: var(--radius-lg); margin-bottom: 40px; }
.banner-up { background: rgba(46,204,113,.1); border: 1px solid rgba(46,204,113,.25); }
.banner-down { background: rgba(231,76,60,.1); border: 1px solid rgba(231,76,60,.25); }
.banner-dot { width: 14px; height: 14px; border-radius: 50%; flex-shrink: 0; }
.banner-up .banner-dot { background: var(--green); box-shadow: 0 0 0 4px rgba(46,204,113,.2); animation: pulse 2s infinite; }
.banner-down .banner-dot { background: var(--red); }
.banner-title { font-size: 18px; font-weight: 700; }
.banner-sub { font-size: 13px; color: var(--text2); margin-top: 2px; }

@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 4px rgba(46,204,113,.2); }
  50% { box-shadow: 0 0 0 8px rgba(46,204,113,.05); }
}

/* Section title */
.section-title { font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: .07em; color: var(--text3); margin-bottom: 16px; }

/* Services */
.services-list { background: var(--bg2); border: 1px solid var(--border); border-radius: var(--radius-lg); overflow: hidden; margin-bottom: 40px; }
.service-row { display: flex; align-items: center; justify-content: space-between; padding: 18px 20px; border-bottom: 1px solid var(--border); gap: 16px; flex-wrap: wrap; }
.service-row:last-child { border-bottom: none; }
.service-left { display: flex; align-items: center; gap: 12px; }
.service-dot { width: 10px; height: 10px; border-radius: 50%; flex-shrink: 0; }
.dot-up { background: var(--green); }
.dot-down { background: var(--red); animation: blink .8s step-end infinite; }
@keyframes blink { 0%,100%{opacity:1} 50%{opacity:.3} }
.service-name { font-weight: 600; font-size: 15px; }
.service-uptime { font-size: 12px; color: var(--text3); margin-top: 2px; }
.service-right { display: flex; align-items: center; gap: 16px; }
.ping-bars { display: flex; align-items: flex-end; gap: 2px; height: 32px; }
.ping-bar { width: 4px; border-radius: 2px; transition: height .1s; }
.bar-up { height: 100%; background: var(--green); opacity: .7; }
.bar-down { height: 100%; background: var(--red); opacity: .9; }
.bar-empty { height: 40%; background: var(--bg3); }
.service-status-label { font-size: 12px; font-weight: 600; padding: 4px 10px; border-radius: 100px; white-space: nowrap; }
.label-up { background: rgba(46,204,113,.15); color: var(--green); }
.label-down { background: rgba(231,76,60,.15); color: var(--red); }

/* Stats */
.stats-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 40px; }
.stat-card { background: var(--bg2); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 24px; }
.stat-num { font-size: 36px; font-weight: 800; color: var(--text); }
.stat-label { font-size: 13px; color: var(--text2); margin-top: 4px; }

/* Incidents */
.no-incidents { background: var(--bg2); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 24px; text-align: center; color: var(--text2); font-size: 14px; margin-bottom: 40px; }
.incidents-list { display: flex; flex-direction: column; gap: 12px; margin-bottom: 40px; }
.incident-card { border-radius: var(--radius-lg); padding: 18px 20px; border: 1px solid; }
.inc-minor { background: rgba(245,166,35,.08); border-color: rgba(245,166,35,.2); }
.inc-major { background: rgba(231,76,60,.08); border-color: rgba(231,76,60,.2); }
.inc-critical { background: rgba(231,76,60,.12); border-color: rgba(231,76,60,.35); }
.inc-resolved { background: var(--bg2); border-color: var(--border); opacity: .75; }
.inc-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; gap: 12px; flex-wrap: wrap; }
.inc-title { font-weight: 600; font-size: 15px; }
.inc-badges { display: flex; gap: 6px; }
.inc-severity { font-size: 11px; padding: 2px 8px; border-radius: 100px; background: rgba(255,255,255,.08); color: var(--text2); text-transform: capitalize; }
.inc-resolved-badge { font-size: 11px; padding: 2px 8px; border-radius: 100px; background: rgba(46,204,113,.15); color: var(--green); }
.inc-message { font-size: 14px; color: var(--text2); line-height: 1.6; margin-bottom: 8px; }
.inc-meta { font-size: 12px; color: var(--text3); }

.footer { border-top: 1px solid var(--border); padding: 24px; text-align: center; font-size: 13px; color: var(--text3); }
.footer a { color: var(--text3); }

@media (max-width: 600px) {
  .stats-row { grid-template-columns: 1fr; }
  .ping-bars { display: none; }
}
