/* ===== RESET & BASE ===== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
body {
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  background: #0b0d12;
  color: #e6e9ef;
  line-height: 1.5;
}
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}
a {
  color: #6ea8fe;
  text-decoration: none;
}
a:hover {
  color: #8fc9ff;
}

/* ===== HEADER ===== */
.header {
  border-bottom: 1px solid #1f2636;
  padding: 16px 0;
  background: #101318;
}
.header-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}
.logo {
  font-size: 22px;
  font-weight: 600;
  letter-spacing: -0.3px;
}
.logo i {
  margin-right: 8px;
}
.logo strong {
  color: #6ea8fe;
}
.nav {
  display: flex;
  gap: 24px;
}
.nav a {
  font-weight: 500;
  color: #8b93a7;
  transition: 0.2s;
}
.nav a:hover,
.nav a.active {
  color: #e6e9ef;
}
.nav a.active {
  border-bottom: 2px solid #6ea8fe;
  padding-bottom: 4px;
}

/* ===== HERO ===== */
.hero {
  padding: 48px 0 32px;
  text-align: center;
  background: linear-gradient(160deg, #101318 0%, #171e2b 100%);
  border-bottom: 1px solid #1f2636;
}
.hero .badge {
  display: inline-block;
  padding: 6px 16px;
  border-radius: 999px;
  background: #1b2230;
  color: #6fe07f;
  font-size: 14px;
  font-weight: 500;
  margin-bottom: 16px;
}
.hero h1 {
  font-size: 42px;
  font-weight: 700;
  letter-spacing: -0.5px;
  margin-bottom: 12px;
}
.hero-desc {
  max-width: 640px;
  margin: 0 auto 24px;
  color: #a8b0c4;
  font-size: 18px;
}
.hero-actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 28px;
  border-radius: 30px;
  font-weight: 600;
  font-size: 15px;
  transition: 0.2s;
  border: 1px solid transparent;
}
.btn-primary {
  background: #6ea8fe;
  color: #0b0d12;
}
.btn-primary:hover {
  background: #8fc9ff;
  color: #0b0d12;
}
.btn-outline {
  border-color: #2f3a4f;
  color: #e6e9ef;
}
.btn-outline:hover {
  border-color: #6ea8fe;
  color: #6ea8fe;
}

/* ===== METRICS ===== */
.metrics {
  padding: 40px 0;
  background: #0b0d12;
}
.metrics-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 24px;
}
.metric-card {
  background: #141a24;
  border-radius: 16px;
  padding: 24px 20px;
  text-align: center;
  border: 1px solid #1f2636;
  transition: 0.2s;
}
.metric-card:hover {
  border-color: #2f3a4f;
}
.metric-icon {
  font-size: 28px;
  color: #6ea8fe;
  margin-bottom: 8px;
}
.metric-value {
  font-size: 32px;
  font-weight: 700;
  letter-spacing: -0.3px;
  margin-bottom: 4px;
}
.metric-label {
  color: #8b93a7;
  font-size: 14px;
}
.metric-trend {
  margin-top: 8px;
  font-size: 13px;
  color: #8b93a7;
}

/* ===== REGION STATUS ===== */
.region-status {
  padding: 40px 0;
  background: #0f1219;
  border-top: 1px solid #1f2636;
  border-bottom: 1px solid #1f2636;
}
.region-status h2 {
  font-size: 22px;
  margin-bottom: 20px;
}
.region-status h2 i {
  color: #6ea8fe;
  margin-right: 10px;
}
.region-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 16px;
}
.region-card {
  background: #141a24;
  border: 1px solid #1f2636;
  border-radius: 12px;
  padding: 16px 18px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.region-name {
  font-weight: 600;
  font-size: 15px;
}
.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 500;
  padding: 2px 10px;
  border-radius: 999px;
  width: fit-content;
}
.status-badge.online {
  color: #6fe07f;
  background: rgba(111, 224, 127, 0.12);
}
.status-badge.degraded {
  color: #f9a74b;
  background: rgba(249, 167, 75, 0.12);
}
.region-latency {
  font-size: 14px;
  color: #8b93a7;
}

/* ===== RECENT REQUESTS (TABLE) ===== */
.recent-requests {
  padding: 40px 0;
  background: #0b0d12;
}
.recent-requests h2 {
  font-size: 22px;
  margin-bottom: 20px;
}
.recent-requests h2 i {
  color: #6ea8fe;
  margin-right: 10px;
}
.table-wrap {
  overflow-x: auto;
  border-radius: 12px;
  border: 1px solid #1f2636;
  background: #101318;
}
table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}
thead {
  background: #141a24;
  color: #8b93a7;
  text-align: left;
}
th {
  padding: 12px 16px;
  font-weight: 600;
  border-bottom: 1px solid #1f2636;
}
td {
  padding: 10px 16px;
  border-bottom: 1px solid #1a212e;
}
tr:last-child td {
  border-bottom: none;
}
td .status-badge {
  font-size: 12px;
}
td .status-badge.success {
  color: #6fe07f;
  background: rgba(111, 224, 127, 0.08);
}
td .status-badge.error {
  color: #f97a7a;
  background: rgba(249, 122, 122, 0.08);
}

/* ===== FOOTER ===== */
.footer {
  background: #0b0d12;
  border-top: 1px solid #1f2636;
  padding: 40px 0 0;
}
.footer-inner {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 32px;
  padding-bottom: 32px;
}
.footer-col .logo {
  font-size: 20px;
  margin-bottom: 8px;
}
.footer-desc {
  color: #8b93a7;
  font-size: 14px;
  margin: 8px 0 16px;
  max-width: 260px;
}
.footer-social {
  display: flex;
  gap: 12px;
}
.footer-social a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #141a24;
  color: #8b93a7;
  transition: 0.2s;
}
.footer-social a:hover {
  background: #1f2636;
  color: #e6e9ef;
}
.footer-col h4 {
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 12px;
  color: #e6e9ef;
}
.footer-col ul {
  list-style: none;
}
.footer-col ul li {
  margin-bottom: 8px;
}
.footer-col ul a {
  color: #8b93a7;
  font-size: 14px;
}
.footer-col ul a:hover {
  color: #e6e9ef;
}
.footer-bottom {
  border-top: 1px solid #1a212e;
  padding: 16px 0;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 13px;
  color: #8b93a7;
}
.footer-bottom .muted {
  color: #5e6a7e;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
  .header-inner {
    flex-direction: column;
    align-items: stretch;
  }
  .nav {
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
  }
  .hero h1 {
    font-size: 28px;
  }
  .metrics-grid {
    grid-template-columns: 1fr 1fr;
  }
  .footer-inner {
    grid-template-columns: 1fr 1fr;
  }
}
@media (max-width: 480px) {
  .metrics-grid {
    grid-template-columns: 1fr;
  }
  .region-grid {
    grid-template-columns: 1fr 1fr;
  }
  .footer-inner {
    grid-template-columns: 1fr;
  }
}
