/* Axionova System Status — Dark Web3 Theme v2 */
:root {
  --bg-primary: #05070f;
  --bg-secondary: #0a0e1e;
  --bg-card: rgba(10, 15, 32, 0.65);
  --bg-card-hover: rgba(14, 21, 45, 0.8);
  
  --border-color: rgba(30, 41, 75, 0.55);
  --border-glow: rgba(0, 240, 255, 0.2);
  
  --accent-cyan: #00f0ff;
  --accent-cyan-rgb: 0, 240, 255;
  --accent-purple: #8b5cf6;
  --accent-blue: #3b82f6;
  
  --status-up: #00e87b;
  --status-up-dim: #00c968;
  --status-up-glow: rgba(0, 232, 123, 0.3);
  --status-deg: #f0b429;
  --status-deg-glow: rgba(240, 180, 41, 0.3);
  --status-down: #f04343;
  --status-down-glow: rgba(240, 67, 67, 0.35);
  
  --text-main: #edf2fc;
  --text-muted: #7e92b5;
  --text-dim: #4a5d7e;
  
  --font-orbitron: 'Orbitron', monospace, sans-serif;
  --font-exo: 'Exo 2', sans-serif;
  --font-rajdhani: 'Rajdhani', sans-serif;

  --card-radius: 14px;
  --transition-smooth: cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

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

html {
  scroll-behavior: smooth;
}

body {
  background-color: var(--bg-primary);
  background-image: 
    radial-gradient(ellipse 80% 50% at 50% -10%, rgba(0, 240, 255, 0.06) 0%, transparent 60%),
    radial-gradient(ellipse 60% 40% at 100% 40%, rgba(139, 92, 246, 0.04) 0%, transparent 50%);
  background-attachment: fixed;
  color: var(--text-main);
  font-family: var(--font-exo);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ─── HEADER ─── */
.axnv-header {
  border-bottom: 1px solid var(--border-color);
  background: rgba(5, 7, 15, 0.75);
  backdrop-filter: blur(20px) saturate(1.4);
  -webkit-backdrop-filter: blur(20px) saturate(1.4);
  position: sticky;
  top: 0;
  z-index: 100;
}

.axnv-header-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 13px 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.axnv-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--text-main);
}

.axnv-logo {
  filter: drop-shadow(0 0 8px rgba(0, 240, 255, 0.3));
  transition: transform 0.4s var(--transition-smooth);
}

.axnv-brand:hover .axnv-logo {
  transform: rotate(12deg) scale(1.06);
}

.axnv-brand-name {
  font-family: var(--font-orbitron);
  font-weight: 700;
  font-size: 18px;
  letter-spacing: 0.1em;
  background: linear-gradient(90deg, #ffffff 0%, var(--accent-cyan) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.axnv-badge {
  font-family: var(--font-orbitron);
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: 0.14em;
  padding: 3px 9px;
  border-radius: 5px;
  background: rgba(0, 240, 255, 0.08);
  color: var(--accent-cyan);
  border: 1px solid rgba(0, 240, 255, 0.2);
}

.axnv-nav {
  display: flex;
  gap: 24px;
  align-items: center;
}

.axnv-nav a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 13.5px;
  font-weight: 500;
  letter-spacing: 0.01em;
  transition: color 0.25s, text-shadow 0.25s;
  position: relative;
}

.axnv-nav a::after {
  content: '';
  position: absolute;
  bottom: -3px;
  left: 0;
  width: 0;
  height: 1.5px;
  background: var(--accent-cyan);
  transition: width 0.3s var(--transition-smooth);
}

.axnv-nav a:hover {
  color: var(--accent-cyan);
}

.axnv-nav a:hover::after {
  width: 100%;
}

.axnv-nav a.nav-github {
  padding: 5px 14px;
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-color);
  transition: all 0.25s;
}
.axnv-nav a.nav-github::after { display: none; }
.axnv-nav a.nav-github:hover {
  border-color: rgba(0, 240, 255, 0.35);
  background: rgba(0, 240, 255, 0.06);
}

.axnv-refresh-ctrl {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 12.5px;
  color: var(--text-dim);
}

.pulse-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--status-up);
  box-shadow: 0 0 8px var(--status-up);
  animation: pulseAnim 2.5s ease-in-out infinite;
}

@keyframes pulseAnim {
  0%, 100% { transform: scale(0.9); opacity: 0.7; }
  50% { transform: scale(1.2); opacity: 1; box-shadow: 0 0 12px var(--status-up-glow); }
}

.refresh-btn {
  background: transparent;
  border: 1px solid var(--border-color);
  color: var(--text-dim);
  padding: 5px;
  border-radius: 6px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.25s;
}

.refresh-btn:hover {
  color: var(--accent-cyan);
  border-color: rgba(0, 240, 255, 0.35);
  background: rgba(0, 240, 255, 0.06);
}

.refresh-btn.spinning svg {
  animation: spin 0.7s linear infinite;
}

@keyframes spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

/* ─── MAIN ─── */
.axnv-main {
  max-width: 1200px;
  width: 100%;
  margin: 0 auto;
  padding: 36px 28px 60px;
  flex: 1;
}

/* ─── HERO ─── */
.axnv-hero {
  position: relative;
  background: var(--bg-card);
  border-radius: 18px;
  border: 1px solid var(--border-color);
  padding: 36px 40px;
  margin-bottom: 44px;
  overflow: hidden;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  transition: border-color 0.4s, box-shadow 0.4s;
}

.axnv-hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent 0%, rgba(0, 240, 255, 0.25) 50%, transparent 100%);
}

.status-operational {
  border-color: rgba(0, 232, 123, 0.2);
  box-shadow: 0 8px 48px -16px rgba(0, 232, 123, 0.1), inset 0 1px 0 rgba(0, 232, 123, 0.08);
}

.status-degraded {
  border-color: rgba(240, 180, 41, 0.25);
  box-shadow: 0 8px 48px -16px rgba(240, 180, 41, 0.12), inset 0 1px 0 rgba(240, 180, 41, 0.08);
}

.status-outage {
  border-color: rgba(240, 67, 67, 0.3);
  box-shadow: 0 8px 48px -16px rgba(240, 67, 67, 0.15), inset 0 1px 0 rgba(240, 67, 67, 0.08);
}

.hero-content {
  position: relative;
  z-index: 2;
}

.hero-status-indicator {
  display: flex;
  align-items: center;
  gap: 22px;
  margin-bottom: 32px;
}

.status-orb {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  position: relative;
}

.status-orb::before {
  content: '';
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  border: 2px solid transparent;
  animation: orbPulse 3s ease-in-out infinite;
}

.status-operational .status-orb {
  background: rgba(0, 232, 123, 0.1);
  box-shadow: 0 0 24px rgba(0, 232, 123, 0.2);
}
.status-operational .status-orb::before { border-color: rgba(0, 232, 123, 0.2); }

.status-degraded .status-orb {
  background: rgba(240, 180, 41, 0.1);
  box-shadow: 0 0 24px rgba(240, 180, 41, 0.2);
}
.status-degraded .status-orb::before { border-color: rgba(240, 180, 41, 0.2); }

.status-outage .status-orb {
  background: rgba(240, 67, 67, 0.12);
  box-shadow: 0 0 24px rgba(240, 67, 67, 0.25);
}
.status-outage .status-orb::before { border-color: rgba(240, 67, 67, 0.25); }

@keyframes orbPulse {
  0%, 100% { transform: scale(1); opacity: 0.5; }
  50% { transform: scale(1.12); opacity: 1; }
}

.status-orb-inner {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--status-up);
  box-shadow: 0 0 12px var(--status-up-glow);
}

.status-degraded .status-orb-inner { background: var(--status-deg); box-shadow: 0 0 12px var(--status-deg-glow); }
.status-outage .status-orb-inner { background: var(--status-down); box-shadow: 0 0 12px var(--status-down-glow); }

.hero-status-texts h1 {
  font-family: var(--font-orbitron);
  font-size: 24px;
  font-weight: 700;
  letter-spacing: 0.03em;
  margin-bottom: 6px;
  line-height: 1.3;
}

.hero-status-texts p {
  color: var(--text-muted);
  font-size: 14.5px;
  line-height: 1.5;
}

.hero-metrics-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.04);
  padding-top: 26px;
}

.metric-card {
  background: rgba(8, 12, 26, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.04);
  border-radius: 12px;
  padding: 18px 20px;
  display: flex;
  flex-direction: column;
  transition: all 0.3s var(--transition-smooth);
}

.metric-card:hover {
  border-color: rgba(0, 240, 255, 0.12);
  background: rgba(10, 16, 34, 0.6);
}

.metric-label {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-dim);
  margin-bottom: 6px;
  font-weight: 500;
}

.metric-value {
  font-family: var(--font-rajdhani);
  font-size: 28px;
  font-weight: 700;
  color: var(--text-main);
  letter-spacing: 0.01em;
  line-height: 1.1;
}

.metric-sub {
  font-size: 11.5px;
  color: var(--text-dim);
  margin-top: 4px;
}

/* ─── GROUPS & MONITORS ─── */
.group-section {
  margin-bottom: 40px;
}

.group-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 18px;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.group-title {
  font-family: var(--font-orbitron);
  font-size: 15px;
  font-weight: 600;
  color: var(--accent-cyan);
  letter-spacing: 0.05em;
  display: flex;
  align-items: center;
  gap: 10px;
  text-shadow: 0 0 20px rgba(0, 240, 255, 0.15);
}

.group-count {
  font-size: 12px;
  font-family: var(--font-exo);
  color: var(--text-dim);
  font-weight: 400;
}

.monitors-grid {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

/* ─── MONITOR CARD v2 ─── */
.monitor-card {
  background: linear-gradient(135deg, rgba(10, 15, 32, 0.7) 0%, rgba(8, 12, 26, 0.55) 100%);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: var(--card-radius);
  padding: 22px 26px 20px;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition: all 0.35s var(--transition-smooth);
  position: relative;
  overflow: hidden;
}

.monitor-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent 0%, rgba(255, 255, 255, 0.06) 30%, rgba(255, 255, 255, 0.06) 70%, transparent 100%);
  opacity: 0;
  transition: opacity 0.35s;
}

.monitor-card:hover {
  background: linear-gradient(135deg, rgba(14, 21, 44, 0.8) 0%, rgba(12, 18, 38, 0.65) 100%);
  border-color: rgba(0, 240, 255, 0.12);
  box-shadow: 0 8px 32px -8px rgba(0, 0, 0, 0.4), 0 0 0 1px rgba(0, 240, 255, 0.06);
  transform: translateY(-2px);
}

.monitor-card:hover::before {
  opacity: 1;
}

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

.monitor-info {
  display: flex;
  align-items: center;
  gap: 14px;
  flex: 1;
  min-width: 0;
}

.monitor-name {
  font-size: 15.5px;
  font-weight: 600;
  color: var(--text-main);
  letter-spacing: 0.005em;
  white-space: nowrap;
}

.monitor-tag {
  font-size: 10px;
  font-family: var(--font-orbitron);
  font-weight: 600;
  padding: 3px 10px;
  border-radius: 5px;
  background: rgba(0, 240, 255, 0.06);
  color: rgba(0, 240, 255, 0.6);
  border: 1px solid rgba(0, 240, 255, 0.1);
  letter-spacing: 0.06em;
  white-space: nowrap;
  flex-shrink: 0;
}

.monitor-url {
  font-size: 12.5px;
  color: var(--text-dim);
  text-decoration: none;
  max-width: 280px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  transition: color 0.2s;
}

.monitor-card:hover .monitor-url {
  color: var(--text-muted);
}

.monitor-meta {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-shrink: 0;
}

.latency-badge {
  font-family: var(--font-rajdhani);
  font-size: 14px;
  font-weight: 700;
  color: var(--text-muted);
  background: rgba(255, 255, 255, 0.03);
  padding: 4px 12px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.05);
  letter-spacing: 0.02em;
}

/* ─── STATUS PILL v2 ─── */
.status-pill {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 12.5px;
  font-weight: 600;
  padding: 5px 14px;
  border-radius: 20px;
  letter-spacing: 0.01em;
  white-space: nowrap;
}

.status-pill.operational {
  background: rgba(0, 232, 123, 0.08);
  color: var(--status-up);
  border: 1px solid rgba(0, 232, 123, 0.18);
}

.status-pill.degraded {
  background: rgba(240, 180, 41, 0.08);
  color: var(--status-deg);
  border: 1px solid rgba(240, 180, 41, 0.18);
}

.status-pill.down {
  background: rgba(240, 67, 67, 0.1);
  color: var(--status-down);
  border: 1px solid rgba(240, 67, 67, 0.22);
}

.status-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
  box-shadow: 0 0 6px currentColor;
}

/* ─── 90-DAY HISTORY BARS v2 ─── */
.history-section {
  margin-top: 16px;
}

.history-bars {
  display: flex;
  align-items: flex-end;
  gap: 1.5px;
  height: 36px;
  width: 100%;
  padding: 2px 0;
}

.hist-bar {
  flex: 1;
  min-width: 0;
  border-radius: 2px 2px 1px 1px;
  cursor: pointer;
  transition: transform 0.2s var(--transition-smooth), filter 0.2s, box-shadow 0.2s;
  position: relative;
}

.hist-bar:hover {
  transform: scaleY(1.25) scaleX(1.8);
  z-index: 5;
  filter: brightness(1.3);
}

.hist-bar.status-operational {
  background: linear-gradient(to top, rgba(0, 200, 100, 0.65) 0%, #00e87b 60%, #30ffa0 100%);
  box-shadow: 0 0 3px rgba(0, 232, 123, 0.15);
}

.hist-bar.status-operational:hover {
  box-shadow: 0 0 10px rgba(0, 232, 123, 0.5);
}

.hist-bar.status-degraded {
  background: linear-gradient(to top, rgba(200, 150, 20, 0.65) 0%, #f0b429 60%, #ffd060 100%);
  box-shadow: 0 0 3px rgba(240, 180, 41, 0.15);
}

.hist-bar.status-degraded:hover {
  box-shadow: 0 0 10px rgba(240, 180, 41, 0.5);
}

.hist-bar.status-down {
  background: linear-gradient(to top, rgba(200, 40, 40, 0.65) 0%, #f04343 60%, #ff7070 100%);
  box-shadow: 0 0 3px rgba(240, 67, 67, 0.15);
}

.hist-bar.status-down:hover {
  box-shadow: 0 0 10px rgba(240, 67, 67, 0.5);
}

.history-legend {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 11.5px;
  color: var(--text-dim);
  margin-top: 8px;
  padding: 0 1px;
}

.history-uptime-rate {
  font-family: var(--font-rajdhani);
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 0.02em;
}

.history-uptime-rate.rate-good { color: var(--status-up); }
.history-uptime-rate.rate-warn { color: var(--status-deg); }
.history-uptime-rate.rate-bad { color: var(--status-down); }

/* ─── INCIDENTS ─── */
.axnv-incidents-section {
  background: linear-gradient(135deg, rgba(10, 15, 32, 0.6) 0%, rgba(8, 12, 26, 0.45) 100%);
  border: 1px solid rgba(255, 255, 255, 0.04);
  border-radius: 16px;
  padding: 28px 32px;
  margin-top: 44px;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 22px;
}

.section-title-wrap {
  display: flex;
  align-items: center;
  gap: 12px;
}

.section-title-wrap h2 {
  font-family: var(--font-orbitron);
  font-size: 16px;
  font-weight: 600;
  color: var(--text-main);
  letter-spacing: 0.03em;
}

.incident-badge-clean {
  font-size: 11px;
  color: var(--text-dim);
  border: 1px solid rgba(255, 255, 255, 0.06);
  padding: 4px 12px;
  border-radius: 6px;
  font-weight: 500;
  letter-spacing: 0.02em;
}

.incident-card {
  border-left: 3px solid rgba(0, 240, 255, 0.35);
  background: rgba(8, 12, 26, 0.4);
  border-radius: 0 10px 10px 0;
  padding: 18px 24px;
  margin-bottom: 12px;
  transition: all 0.25s;
}

.incident-card:hover {
  background: rgba(12, 18, 36, 0.5);
  border-left-color: var(--accent-cyan);
}

.incident-card:last-child {
  margin-bottom: 0;
}

.incident-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
}

.incident-title {
  font-size: 14.5px;
  font-weight: 600;
  color: var(--text-main);
}

.incident-date {
  font-size: 12px;
  color: var(--text-dim);
}

.incident-body {
  font-size: 13.5px;
  color: var(--text-muted);
  line-height: 1.6;
}

/* ─── TOOLTIP v2 ─── */
.bar-tooltip {
  position: fixed;
  background: rgba(10, 14, 30, 0.95);
  border: 1px solid rgba(0, 240, 255, 0.3);
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.6), 0 0 20px rgba(0, 240, 255, 0.1);
  color: #fff;
  padding: 10px 14px;
  border-radius: 10px;
  font-size: 12px;
  pointer-events: none;
  z-index: 1000;
  white-space: nowrap;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

/* ─── FOOTER ─── */
.axnv-footer {
  border-top: 1px solid rgba(255, 255, 255, 0.04);
  background: rgba(5, 7, 15, 0.9);
  padding: 38px 28px 30px;
  margin-top: 44px;
}

.axnv-footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 30px;
  margin-bottom: 26px;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-orbitron);
  font-weight: 700;
  font-size: 14px;
  color: var(--text-main);
  margin-bottom: 10px;
}

.footer-col p {
  color: var(--text-dim);
  font-size: 13px;
  max-width: 480px;
  line-height: 1.6;
}

.footer-links {
  display: flex;
  gap: 22px;
  flex-wrap: wrap;
}

.footer-links a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 13px;
  transition: color 0.2s;
}

.footer-links a:hover {
  color: var(--accent-cyan);
}

.footer-bottom {
  max-width: 1200px;
  margin: 0 auto;
  border-top: 1px solid rgba(255, 255, 255, 0.04);
  padding-top: 18px;
  font-size: 12px;
  color: var(--text-dim);
  text-align: center;
}

/* ─── LOADING ─── */
.loading-state {
  text-align: center;
  padding: 48px 20px;
  color: var(--text-dim);
}

.spinner {
  width: 28px;
  height: 28px;
  border: 2.5px solid rgba(0, 240, 255, 0.15);
  border-top-color: var(--accent-cyan);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  margin: 0 auto 16px;
}

/* ─── RESPONSIVE ─── */
@media (max-width: 900px) {
  .hero-metrics-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .axnv-header-inner {
    padding: 12px 18px;
  }
  .axnv-main {
    padding: 24px 18px 48px;
  }
}

@media (max-width: 650px) {
  .axnv-nav {
    display: none;
  }
  .hero-status-indicator {
    flex-direction: column;
    align-items: flex-start;
  }
  .axnv-hero {
    padding: 24px 22px;
  }
  .hero-metrics-grid {
    grid-template-columns: 1fr;
  }
  .hero-status-texts h1 {
    font-size: 20px;
  }
  .monitor-card {
    padding: 18px 20px 16px;
  }
  .monitor-top {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }
  .monitor-meta {
    width: 100%;
    justify-content: space-between;
  }
  .axnv-footer-inner {
    flex-direction: column;
  }
  .axnv-incidents-section {
    padding: 22px 20px;
  }
}
