:root {
  --bg: #0f1117;
  --card-bg: #1a1d27;
  --card-border: #2a2e3a;
  --text: #e8e9ed;
  --text-muted: #8b8f9c;
  --accent: #5b8cff;
  --up: #3ecf6e;
  --down: #ef4444;
  --checking: #f5a623;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  background: var(--bg);
  color: var(--text);
  padding: 24px 16px 60px;
}

.portal-header {
  text-align: center;
  margin-bottom: 32px;
}

.portal-header h1 {
  margin: 0;
  font-size: 1.8rem;
  font-weight: 700;
}

.subtitle {
  color: var(--text-muted);
  margin-top: 4px;
  font-size: 0.95rem;
}

main {
  max-width: 900px;
  margin: 0 auto;
}

.service-section {
  margin-bottom: 32px;
}

.service-section h2 {
  font-size: 1.1rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 12px;
  border-bottom: 1px solid var(--card-border);
  padding-bottom: 6px;
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 12px;
}

.service-card {
  position: relative;
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 12px;
  padding: 16px 14px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  text-decoration: none;
  color: var(--text);
  transition: transform 0.15s ease, border-color 0.15s ease;
}

.service-card:hover {
  transform: translateY(-2px);
  border-color: var(--accent);
}

.status-dot {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  box-shadow: 0 0 0 rgba(0,0,0,0);
}

.status-up { background: var(--up); box-shadow: 0 0 6px var(--up); }
.status-down { background: var(--down); box-shadow: 0 0 6px var(--down); }
.status-checking { background: var(--checking); animation: pulse 1.4s infinite; }

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

.service-icon {
  font-size: 1.8rem;
  margin-bottom: 8px;
}

.service-name {
  font-weight: 600;
  font-size: 0.95rem;
}

.service-subtitle {
  color: var(--text-muted);
  font-size: 0.75rem;
  margin-top: 2px;
}

.portal-footer {
  text-align: center;
  color: var(--text-muted);
  font-size: 0.8rem;
  margin-top: 40px;
}
