/* ===== RESET & BASE ===== */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --bg-deep:    #040a14;
  --bg-mid:     #0a1628;
  --card-bg:    #0f1e35;
  --card-border:#1a2e4a;
  --accent:     #38bdf8;
  --accent-dim: rgba(56,189,248,0.15);
  --text:       #e2e8f0;
  --text-muted: #7a91ad;
  --green:      #22c55e;
  --green-dim:  rgba(34,197,94,0.15);
  --red:        #ef4444;
  --red-dim:    rgba(239,68,68,0.15);
  --font-display: 'Orbitron', sans-serif;
  --font-body:    'Inter', sans-serif;
}

html { 
  scroll-behavior: smooth; 
}

body {
  background: var(--bg-deep);
  color: var(--text);
  font-family: var(--font-body);
  min-height: 100vh;
  overflow-x: hidden;
}

/* Ambient glow */
body::before {
  content: '';
  position: fixed;
  top: -20%;
  left: 50%;
  transform: translateX(-50%);
  width: 800px;
  height: 500px;
  background: radial-gradient(ellipse, rgba(56,189,248,0.07) 0%, transparent 70%);
  pointer-events: none;
  z-index: 0;
}

/* ===== NAVBAR ===== */
.navbar {
  position: fixed;
  top: 14px;
  left: 50%;
  transform: translateX(-50%);
  width: calc(100% - 28px);
  max-width: 1100px;
  height: 58px;
  background: rgba(9, 18, 34, 0.75);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(56,189,248,0.12);
  border-radius: 16px;
  padding: 0 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  z-index: 1000;
}

.nav-logo {
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 900;
  letter-spacing: 2px;
  color: var(--accent);
  text-transform: uppercase;
  text-decoration: none;
}

.nav-icons {
  display: flex;
  align-items: center;
  gap: 12px;
}

.icon-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: transparent;
  border: 1px solid transparent;
  color: var(--text-muted);
  cursor: pointer;
  transition: color 0.2s, background 0.2s, border-color 0.2s;
}

.icon-btn:hover {
  color: var(--accent);
  background: var(--accent-dim);
  border-color: rgba(56,189,248,0.3);
}

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

/* ===== SIDEBAR ===== */
.sidebar-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.5);
  backdrop-filter: blur(4px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s;
  z-index: 1001;
}

.sidebar-overlay.active {
  opacity: 1;
  pointer-events: all;
}

.sidebar {
  position: fixed;
  top: 0;
  right: -300px;
  width: 280px;
  height: 100%;
  background: var(--bg-mid);
  border-left: 1px solid var(--card-border);
  padding: 24px 20px;
  transition: right 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 1002;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.sidebar.active { 
  right: 0; 
}

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

.sidebar-title {
  font-family: var(--font-display);
  font-size: 13px;
  letter-spacing: 2px;
  color: var(--accent);
}

.sidebar-close {
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 20px;
  cursor: pointer;
  padding: 4px;
  line-height: 1;
  transition: color 0.2s;
}

.sidebar-close:hover { 
  color: var(--text); 
}

.sidebar a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 14px;
  border-radius: 10px;
  text-decoration: none;
  color: var(--text-muted);
  font-size: 14px;
  font-weight: 500;
  transition: background 0.2s, color 0.2s;
}

.sidebar a:hover {
  background: var(--accent-dim);
  color: var(--accent);
}

.sidebar a svg { 
  opacity: 0.5; 
  flex-shrink: 0; 
}

/* ===== MAIN CONTENT ===== */
.page-content {
  position: relative;
  z-index: 1;
  padding: 100px 20px 60px;
  max-width: 760px;
  margin: 0 auto;
}

/* Page eyebrow */
.page-eyebrow {
  display: table;
  margin: 0 auto 24px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--accent);
  background: var(--accent-dim);
  border: 1px solid rgba(56,189,248,0.25);
  padding: 5px 14px;
  border-radius: 100px;
  animation: fadeUp 0.6s ease both;
}

.page-title {
  font-family: var(--font-display);
  font-size: clamp(22px, 4vw, 36px);
  font-weight: 900;
  letter-spacing: -0.5px;
  color: var(--text);
  margin-bottom: 8px;
  animation: fadeUp 0.6s 0.1s ease both;
}

.page-subtitle {
  font-size: 14px;
  color: var(--text-muted);
  margin-bottom: 36px;
  animation: fadeUp 0.6s 0.2s ease both;
}

/* ===== UPTIME BANNER ===== */
.uptime-banner {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 16px;
  padding: 20px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 36px;
  animation: fadeUp 0.6s 0.3s ease both;
  flex-wrap: wrap;
}

.uptime-left {
  display: flex;
  align-items: center;
  gap: 14px;
}

.uptime-pulse {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 10px var(--green);
  flex-shrink: 0;
  animation: pulse 2s infinite;
}

.uptime-label {
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 2px;
}

.uptime-value {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 900;
  color: var(--green);
  letter-spacing: 1px;
}

.uptime-time {
  font-size: 12px;
  color: var(--text-muted);
  text-align: right;
}

/* ===== SECTION ===== */
.section-block {
  margin-bottom: 36px;
  animation: fadeUp 0.6s 0.4s ease both;
}

.section-label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-display);
  font-size: 10px;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 16px;
}

.section-label::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--card-border);
}

/* ===== STATUS CARD ===== */
.status-card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 14px;
  padding: 16px 20px;
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  text-decoration: none;
  color: inherit;
  transition: border-color 0.2s, transform 0.2s, box-shadow 0.2s;
}

.status-card:hover {
  border-color: rgba(56,189,248,0.3);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.3);
}

.card-left {
  display: flex;
  align-items: center;
  gap: 14px;
}

.card-icon {
  font-size: 22px;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--accent-dim);
  border-radius: 10px;
  flex-shrink: 0;
}

.card-info strong {
  display: block;
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 2px;
}

.card-info small {
  font-size: 12px;
  color: var(--text-muted);
}

/* Status dot */
.status-dot {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}

.dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  flex-shrink: 0;
}

.dot.online {
  background: var(--green);
  box-shadow: 0 0 8px var(--green);
  animation: pulse 2s infinite;
}

.dot.offline {
  background: var(--red);
  box-shadow: 0 0 8px var(--red);
}

.status-label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.5px;
}

.status-label.online { color: var(--green); }
.status-label.offline { color: var(--red); }

/* ===== FOOTER ===== */
footer {
  padding: 60px 20px 40px;
  text-align: center;
  background: linear-gradient(to bottom, transparent, var(--bg-mid));
  border-top: 1px solid var(--card-border);
  position: relative;
  z-index: 1;
}

footer h2 {
  font-family: var(--font-display);
  font-size: 16px;
  letter-spacing: 2px;
  color: var(--text);
  margin-bottom: 14px;
}

footer p {
  max-width: 500px;
  margin: 0 auto 24px;
  line-height: 1.8;
  font-size: 13px;
  color: var(--text-muted);
}

.footer-links {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  margin-bottom: 20px;
}

.footer-links a {
  color: var(--accent);
  text-decoration: none;
  font-size: 12px;
  font-weight: 500;
  transition: opacity 0.2s;
}

.footer-links a:hover { opacity: 0.7; }

.footer-links span { color: var(--card-border); }

.footer-copy {
  display: block;
  font-size: 11px;
  color: var(--text-muted);
  opacity: 0.5;
}

/* ===== ANIMATIONS ===== */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}

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