:root {
  --brand-bg: #0f1117;
  --brand-bg-2: #151924;
  --brand-surface: rgba(24, 29, 41, 0.88);
  --brand-surface-2: rgba(18, 22, 32, 0.96);
  --brand-border: rgba(255, 255, 255, 0.08);

  /* Keep the original playful palette, but weaponize it for tech */
  --brand-cyan: #4cc9f0;
  --brand-purple: #c084fc;
  --brand-yellow: #f4c430;
  --brand-coral: #ff6b6b;
  --brand-green: #6ee7b7;

  --brand-text: #e8edf5;
  --brand-muted: #95a3b8;
}

html, body {
  min-height: 100vh;
  background:
    radial-gradient(circle at 15% 20%, rgba(76, 201, 240, 0.10), transparent 18%),
    radial-gradient(circle at 85% 15%, rgba(192, 132, 252, 0.10), transparent 16%),
    radial-gradient(circle at 80% 75%, rgba(244, 196, 48, 0.08), transparent 16%),
    radial-gradient(circle at 20% 85%, rgba(255, 107, 107, 0.08), transparent 16%),
    linear-gradient(180deg, var(--brand-bg), var(--brand-bg-2));
  color: var(--brand-text);
}

body {
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  position: relative;
  overflow-x: hidden;
}

.noise::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255,255,255,0.015) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.015) 1px, transparent 1px);
  background-size: 32px 32px;
  mask-image: radial-gradient(circle at center, black 40%, transparent 95%);
  opacity: 0.35;
}

.dashboard-wrap,
.page-wrap {
  max-width: 980px;
  margin: 0 auto;
  padding: 72px 20px 48px;
  position: relative;
  z-index: 1;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.45rem 0.8rem;
  border: 1px solid rgba(76, 201, 240, 0.25);
  border-radius: 999px;
  background: rgba(76, 201, 240, 0.08);
  color: #b9ecfb;
  font-size: 0.8rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.animate-pulse {
  animation: pulse 2.5s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

@keyframes pulse {
  0%, 100% {
    opacity: 1;
  }
  50% {
    opacity: 0.5;
  }
}

.hero-title {
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.02;
}

.hero-subtitle,
.small-muted,
.section-meta,
.incident-summary,
.incident-meta,
.update-time,
.pm-meta,
.breadcrumb-link {
  color: var(--brand-muted);
}

.hero-subtitle {
  max-width: 720px;
  font-size: 1.05rem;
}

.glass-card {
  background: linear-gradient(180deg, rgba(24, 29, 41, 0.88), rgba(16, 19, 28, 0.96));
  border: 1px solid var(--brand-border);
  border-radius: 1.25rem;
  box-shadow:
    0 10px 30px rgba(0, 0, 0, 0.32),
    0 0 0 1px rgba(255, 255, 255, 0.02) inset;
  backdrop-filter: blur(14px);
}

.status-hero {
  position: relative;
  overflow: hidden;
}

.status-hero::after {
  content: "";
  position: absolute;
  inset: auto -10% -35% auto;
  width: 280px;
  height: 280px;
  background: radial-gradient(circle, rgba(76, 201, 240, 0.22), transparent 68%);
  pointer-events: none;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.7rem 1rem;
  border-radius: 999px;
  background: rgba(110, 231, 183, 0.12);
  border: 1px solid rgba(110, 231, 183, 0.25);
  color: #c9ffe8;
  font-weight: 600;
}

.status-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--brand-green);
  box-shadow: 0 0 12px var(--brand-green);
  flex-shrink: 0;
}

.section-label {
  color: #dbe7f5;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 0.25rem;
}

.section-meta {
  color: var(--brand-muted);
  font-size: 0.92rem;
}

.form-control,
.form-select,
.form-control:focus,
.form-select:focus {
  background-color: rgba(255, 255, 255, 0.04);
  border-color: rgba(255, 255, 255, 0.10);
  color: var(--brand-text);
  box-shadow: none;
}

.form-control::placeholder {
  color: #77859b;
}

.btn-tech {
  border: 0;
  color: #081018;
  font-weight: 700;
  border-radius: 0.9rem;
  background: linear-gradient(135deg, var(--brand-cyan), #7dd3fc);
  box-shadow: 0 8px 20px rgba(76, 201, 240, 0.25);
}

.btn-tech:hover {
  color: #081018;
  transform: translateY(-1px);
}

.btn-outline-tech {
  border-radius: 0.9rem;
  border: 1px solid rgba(76, 201, 240, 0.25);
  color: #bfefff;
  background: rgba(76, 201, 240, 0.06);
}

.btn-outline-tech:hover {
  border-color: rgba(76, 201, 240, 0.45);
  background: rgba(76, 201, 240, 0.12);
  color: #dff7ff;
}

.incident-item,
.history-item {
  border-radius: 1rem;
  border: 1px solid rgba(255,255,255,0.06);
  background: rgba(255,255,255,0.03);
  padding: 1rem 1rem;
}

.incident-item + .incident-item,
.history-item + .history-item {
  margin-top: 0.85rem;
}

.incident-badge {
  display: inline-flex;
  align-items: flex-end;
  gap: 0.4rem;
  font-size: 0.78rem;
  font-weight: 700;
  border-radius: 999px;
  padding: 0.35rem 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.badge-investigating,
.badge-major {
  background: rgba(244, 196, 48, 0.12);
  color: #ffe28a;
  border: 1px solid rgba(244, 196, 48, 0.22);
}

.badge-monitoring,
.badge-minor {
  background: rgba(76, 201, 240, 0.08);
  color: #b9ecfb;
  border: 1px solid rgba(76, 201, 240, 0.25);
}

.badge-critical {
  background: rgba(255, 107, 107, 0.10);
  color: #ffb7b7;
  border: 1px solid rgba(255, 107, 107, 0.22);
}

.badge-resolved {
  background: rgba(110, 231, 183, 0.10);
  color: #bff7dc;
  border: 1px solid rgba(110, 231, 183, 0.18);
}

.status {
  font-weight: 600;
}

.status-investigating,
.status-major {
  color: #ffe28a;
}

.status-monitoring,
.status-minor {
  color: #b9ecfb;
}

.status-critical {
  color: #ffb7b7;
}

.status-resolved {
  color: #bff7dc;
}

.incident-title,
.history-title {
  font-weight: 700;
  color: #edf4ff;
  margin-bottom: 0.2rem;
}

.incident-desc,
.history-meta,
.small-muted {
  color: var(--brand-muted);
}

.tech-divider {
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(76, 201, 240, 0.30), transparent);
  margin: 1.1rem 0 0.75rem;
}

.card-header-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
}

.mini-stat {
  padding: 0.4rem 0.7rem;
  border-radius: 999px;
  font-size: 0.78rem;
  color: #cad6e3;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.07);
  white-space: nowrap;
}

.footer-logo {
  text-align: center;
}
.footer-logo-container {
  display: inline-block;
  /* color: #b9ecfb; */
  color: #fff;
  font-size: 0.75rem;
  text-align: left;
  text-transform: uppercase;
}

.footer-logo img {
  height: 4rem;
}

.footer-note {
  text-align: center;
  color: #708198;
  font-size: 0.75rem;
}

.footer-note a {
  font-size: 0.75rem;
}

@media (max-width: 767.98px) {
  .dashboard-wrap,
  .page-wrap {
    padding-top: 48px;
  }

  .hero-title {
    font-size: 2rem;
  }
}

/* .badge-critical {
  background: rgba(255, 107, 107, 0.10);
  color: #ffb7b7;
  border-color: rgba(255, 107, 107, 0.22);
}

.badge-major {
  background: rgba(255, 107, 107, 0.10);
  color: #ffb7b7;
  border-color: rgba(255, 107, 107, 0.22);
}

.badge-minor {
  background: rgba(192, 132, 252, 0.10);
  color: #e7cbff;
  border-color: rgba(192, 132, 252, 0.22);
} */

.timeline {
  position: relative;
  margin-left: 0.2rem;
  padding-left: 1.35rem;
  border-left: 1px solid rgba(255,255,255,0.08);
}

.timeline-item {
  position: relative;
  padding-bottom: 1.2rem;
}

.timeline-item:last-child {
  padding-bottom: 0;
}

.timeline-dot {
  position: absolute;
  left: -1.75rem;
  top: 0.2rem;
  width: 0.8rem;
  height: 0.8rem;
  border-radius: 50%;
  background: var(--brand-cyan);
  box-shadow: 0 0 10px rgba(76, 201, 240, 0.6);
  border: 2px solid #0f1117;
}

.timeline-dot.resolved {
  background: var(--brand-green);
  box-shadow: 0 0 10px rgba(110, 231, 183, 0.6);
}

.timeline-dot.warning {
  background: var(--brand-yellow);
  box-shadow: 0 0 10px rgba(244, 196, 48, 0.6);
}

.update-title {
  font-weight: 700;
  color: #edf4ff;
  margin-bottom: 0.2rem;
}

.update-body {
  color: #c9d5e3;
}

.postmortem-box {
  border: 1px solid rgba(192, 132, 252, 0.16);
  background: rgba(192, 132, 252, 0.06);
  border-radius: 1rem;
  padding: 1rem;
  margin-top: 1rem;
}

.postmortem-title {
  font-weight: 700;
  color: #f0e4ff;
  margin-bottom: 0.35rem;
}

.postmortem-section-title {
  color: #d9c2ff;
  font-size: 0.9rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 0.35rem;
}

.postmortem-box p:last-child {
  margin-bottom: 0;
}

.pagination .page-link {
  background: rgba(255,255,255,0.03);
  border-color: rgba(255,255,255,0.08);
  color: #d5e8f6;
}

.pagination .page-link:hover {
  background: rgba(76, 201, 240, 0.08);
  color: #e4f8ff;
}

.pagination .page-item.active .page-link {
  background: linear-gradient(135deg, var(--brand-cyan), #7dd3fc);
  border-color: transparent;
  color: #081018;
  font-weight: 700;
}

.pagination .page-item.disabled .page-link {
  background: rgba(255,255,255,0.02);
  color: #6c7a8d;
}

.filter-chip {
  display: inline-flex;
  align-items: center;
  padding: 0.45rem 0.8rem;
  border-radius: 999px;
  font-size: 0.82rem;
  border: 1px solid rgba(255,255,255,0.08);
  background: rgba(255,255,255,0.03);
  color: #cfdceb;
}

.sticky-filters {
  position: sticky;
  top: 20px;
}

@media (max-width: 991.98px) {
  .sticky-filters {
    position: static;
  }
}

.error-code {
  font-size: clamp(4rem, 12vw, 7rem);
  line-height: 0.95;
  font-weight: 900;
  letter-spacing: -0.06em;
  margin: 0;
  background: linear-gradient(135deg, #edf4ff, #7dd3fc);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.error-title {
  font-size: clamp(1.8rem, 3vw, 2.8rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  margin-bottom: 0.85rem;
  color: #edf4ff;
}

.error-subtitle {
  color: var(--brand-muted);
  font-size: 1.05rem;
  line-height: 1.7;
  max-width: 580px;
  margin: 0 auto;
}

.signal-grid {
  margin-top: 2rem;
}

.signal-card {
  border-radius: 1rem;
  border: 1px solid rgba(255,255,255,0.06);
  background: rgba(255,255,255,0.03);
  padding: 1rem;
  height: 100%;
  text-align: left;
}

.signal-label {
  color: var(--brand-muted);
  font-size: 0.85rem;
  margin-bottom: 0.35rem;
}

.signal-value {
  color: #edf4ff;
  font-weight: 700;
}

.error-footer-note {
  color: #708198;
  font-size: 0.9rem;
}
