/* ==========================================================================
   UnderHost Network Status — status.css
   White-background NOC status page. Brand: dark navy + cyan/blue accents.
   All colors are exposed as CSS variables for easy customization.
   ========================================================================== */

:root {
  /* --- Required brand status tokens (customize here) --- */
  --uh-navy: #0A1220;        /* primary dark text / headings */
  --uh-blue: #0091D6;        /* secondary accent */
  --uh-cyan: #00D4FF;        /* primary accent / glow */
  --uh-green: #16A34A;       /* operational (text-safe) */
  --uh-amber: #D97706;       /* degraded / maintenance (text-safe) */
  --uh-red: #DC2626;         /* down / outage (text-safe) */
  --uh-gray: #64748B;        /* muted text / no-data */
  --uh-border: #E5E7EB;      /* card + divider borders */
  --uh-card: #FFFFFF;        /* card surface */
  --uh-shadow: 0 2px 12px rgba(10, 18, 32, 0.05);

  /* --- Supporting tokens --- */
  --uh-navy-2: #0D1B30;
  --uh-navy-3: #0F2040;
  --uh-text: #0A1220;
  --uh-text-soft: #475569;
  --uh-text-muted: #64748B;
  --uh-surface: #FFFFFF;
  --uh-surface-soft: #F6F8FB;
  --uh-border-soft: #EEF1F5;

  /* Status dot fills (brighter than text variants for visibility) */
  --uh-green-dot: #22C55E;
  --uh-amber-dot: #F59E0B;
  --uh-red-dot: #EF4444;

  /* Tints for badges / pills */
  --uh-green-tint: #E7F6EC;
  --uh-amber-tint: #FCF1E1;
  --uh-red-tint: #FCE9E9;
  --uh-blue-tint: #E5F6FD;
  --uh-gray-tint: #EEF1F5;

  --uh-gradient-cyan: linear-gradient(90deg, #00D4FF, #0091D6);
  --uh-shadow-md: 0 4px 16px rgba(0, 145, 214, 0.20);
  --uh-shadow-lg: 0 14px 36px rgba(10, 18, 32, 0.10);

  --uh-radius-sm: 8px;
  --uh-radius-md: 12px;
  --uh-radius-lg: 16px;
  --uh-radius-xl: 20px;
  --uh-radius-2xl: 24px;

  --uh-container: 1200px;
  --uh-font: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --uh-mono: "JetBrains Mono", "IBM Plex Mono", SFMono-Regular, Consolas, monospace;
}

/* ---------- Reset / base ---------- */
*,
*::before,
*::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: var(--uh-font);
  background: var(--uh-surface);
  color: var(--uh-text);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; display: block; }

a { color: var(--uh-blue); text-decoration: none; }
a:hover { color: var(--uh-cyan); }

h1, h2, h3, h4 {
  margin: 0;
  color: var(--uh-navy);
  font-weight: 800;
  letter-spacing: -0.01em;
  line-height: 1.15;
  text-wrap: balance;
}

.uh-container {
  width: min(100% - 40px, var(--uh-container));
  margin-inline: auto;
}

.uh-tnum { font-variant-numeric: tabular-nums; }
.uh-visually-hidden {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

a:focus-visible,
button:focus-visible {
  outline: 3px solid rgba(0, 212, 255, 0.45);
  outline-offset: 3px;
  border-radius: 6px;
}

/* ==========================================================================
   Header
   ========================================================================== */
.uh-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--uh-border);
}

.uh-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  height: 74px;
}

.uh-logo { display: inline-flex; align-items: center; gap: 12px; }
.uh-logo-img { height: 38px; width: auto; max-width: 200px; display: block; object-fit: contain; }

/* Text fallback if logo image fails to load */
.uh-logo-fallback {
  display: none;
  align-items: center;
  gap: 9px;
  font-weight: 800;
  font-size: 19px;
  color: var(--uh-navy);
  letter-spacing: -0.02em;
}
.uh-logo-fallback .mark {
  display: inline-flex; align-items: center; justify-content: center;
  width: 34px; height: 34px; border-radius: 9px;
  background: var(--uh-gradient-cyan); color: #fff; font-weight: 900;
  box-shadow: var(--uh-shadow-md);
}
.uh-logo.is-fallback .uh-logo-img { display: none; }
.uh-logo.is-fallback .uh-logo-fallback { display: inline-flex; }

.uh-header-tag {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 5px 11px;
  border: 1px solid var(--uh-border);
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  color: var(--uh-text-soft);
  background: var(--uh-surface-soft);
  margin-left: 2px;
}
.uh-header-tag i { color: var(--uh-blue); font-size: 11px; }

.uh-header-actions { display: flex; align-items: center; gap: 12px; }

/* ==========================================================================
   Buttons
   ========================================================================== */
.uh-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 11px 18px;
  border-radius: var(--uh-radius-md);
  font-family: inherit;
  font-size: 14px;
  font-weight: 700;
  line-height: 1;
  cursor: pointer;
  border: 1px solid transparent;
  transition: transform 160ms ease, box-shadow 160ms ease,
              background-color 160ms ease, border-color 160ms ease, color 160ms ease;
  white-space: nowrap;
}
.uh-btn-primary {
  background: var(--uh-gradient-cyan);
  color: #fff;
  box-shadow: var(--uh-shadow-md);
}
.uh-btn-primary:hover { color: #fff; transform: translateY(-1px); box-shadow: var(--uh-shadow-lg); }
.uh-btn-primary:active { transform: translateY(0); }
.uh-btn-ghost {
  background: var(--uh-surface);
  color: var(--uh-navy);
  border-color: var(--uh-border);
}
.uh-btn-ghost:hover { color: var(--uh-navy); border-color: var(--uh-blue); background: var(--uh-surface-soft); }
.uh-btn[disabled] { opacity: 0.6; cursor: progress; pointer-events: none; }

.uh-btn .fa-rotate { transition: transform 600ms ease; }
.uh-btn.is-spinning .fa-rotate { animation: uh-spin 700ms linear infinite; }
@keyframes uh-spin { to { transform: rotate(360deg); } }

/* ==========================================================================
   Hero
   ========================================================================== */
.uh-hero {
  position: relative;
  padding: 56px 0 30px;
  background:
    radial-gradient(900px 320px at 50% -40px, rgba(0, 212, 255, 0.08), transparent 70%),
    var(--uh-surface);
  border-bottom: 1px solid var(--uh-border-soft);
  overflow: hidden;
}
.uh-hero-inner { text-align: center; }

.uh-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: 999px;
  background: var(--uh-blue-tint);
  border: 1px solid rgba(0, 145, 214, 0.18);
  color: var(--uh-blue);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}
.uh-pill i { font-size: 11px; }

.uh-hero h1 {
  font-size: clamp(34px, 5vw, 52px);
  margin-top: 18px;
}
.uh-hero p.uh-subtitle {
  max-width: 640px;
  margin: 14px auto 0;
  color: var(--uh-text-soft);
  font-size: clamp(16px, 2.2vw, 18px);
  line-height: 1.6;
}

/* Global status banner */
.uh-global {
  display: inline-flex;
  align-items: center;
  gap: 16px;
  margin: 28px auto 0;
  padding: 16px 22px 16px 18px;
  border-radius: var(--uh-radius-xl);
  background: var(--uh-card);
  border: 1px solid var(--uh-border);
  box-shadow: var(--uh-shadow);
  text-align: left;
  max-width: 100%;
}
.uh-global-icon {
  flex: none;
  width: 48px; height: 48px;
  border-radius: 14px;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 20px;
  color: #fff;
}
.uh-global-body { display: flex; flex-direction: column; gap: 2px; }
.uh-global-title { font-size: 19px; font-weight: 800; color: var(--uh-navy); line-height: 1.2; }
.uh-global-sub { font-size: 13px; color: var(--uh-text-muted); font-weight: 500; }

/* Global status color theming (applied to .uh-global) */
.uh-global[data-state="operational"] .uh-global-icon { background: var(--uh-green-dot); }
.uh-global[data-state="degraded"] .uh-global-icon,
.uh-global[data-state="maintenance"] .uh-global-icon { background: var(--uh-amber-dot); }
.uh-global[data-state="outage"] .uh-global-icon { background: var(--uh-red-dot); }
.uh-global[data-state="unavailable"] .uh-global-icon,
.uh-global[data-state="unknown"] .uh-global-icon { background: var(--uh-gray); }

.uh-global[data-state="operational"] { border-color: rgba(34, 197, 94, 0.35); box-shadow: 0 6px 22px rgba(34,197,94,0.10); }
.uh-global[data-state="degraded"],
.uh-global[data-state="maintenance"] { border-color: rgba(245, 158, 11, 0.40); box-shadow: 0 6px 22px rgba(245,158,11,0.10); }
.uh-global[data-state="outage"] { border-color: rgba(239, 68, 68, 0.40); box-shadow: 0 6px 22px rgba(239,68,68,0.10); }

/* Meta line under banner */
.uh-hero-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 8px 18px;
  margin-top: 18px;
  font-size: 13px;
  color: var(--uh-text-muted);
}
.uh-hero-meta .dot-sep { width: 4px; height: 4px; border-radius: 50%; background: var(--uh-border); }
.uh-hero-meta strong { color: var(--uh-text-soft); font-weight: 700; }
.uh-live {
  display: inline-flex; align-items: center; gap: 7px;
  font-weight: 700; color: var(--uh-green);
}
.uh-live .pulse {
  width: 8px; height: 8px; border-radius: 50%; background: var(--uh-green-dot);
  box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.5);
  animation: uh-pulse 2s infinite;
}
@keyframes uh-pulse {
  0% { box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.45); }
  70% { box-shadow: 0 0 0 7px rgba(34, 197, 94, 0); }
  100% { box-shadow: 0 0 0 0 rgba(34, 197, 94, 0); }
}

/* ==========================================================================
   Section scaffolding
   ========================================================================== */
.uh-section { padding: 34px 0; }
.uh-section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 18px;
  flex-wrap: wrap;
}
.uh-section-head h2 { font-size: clamp(20px, 3vw, 26px); }
.uh-section-head .uh-count {
  font-size: 13px;
  font-weight: 700;
  color: var(--uh-text-muted);
}

/* ==========================================================================
   Summary cards
   ========================================================================== */
.uh-summary {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 14px;
}
.uh-stat {
  background: var(--uh-card);
  border: 1px solid var(--uh-border);
  border-radius: var(--uh-radius-lg);
  box-shadow: var(--uh-shadow);
  padding: 16px 16px 15px;
  display: flex;
  flex-direction: column;
  gap: 9px;
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}
.uh-stat:hover { transform: translateY(-2px); box-shadow: var(--uh-shadow-lg); border-color: rgba(0,145,214,0.18); }
.uh-stat-icon {
  width: 36px; height: 36px; border-radius: 10px;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--uh-blue-tint); color: var(--uh-blue); font-size: 15px;
}
.uh-stat-label { font-size: 12px; font-weight: 700; color: var(--uh-text-muted); text-transform: uppercase; letter-spacing: 0.03em; }
.uh-stat-value { font-size: 26px; font-weight: 800; color: var(--uh-navy); line-height: 1; }
.uh-stat-value small { font-size: 15px; font-weight: 700; color: var(--uh-text-muted); }
.uh-stat-help { font-size: 12px; color: var(--uh-text-muted); }

/* Accent variants for summary icons */
.uh-stat.is-green .uh-stat-icon { background: var(--uh-green-tint); color: var(--uh-green); }
.uh-stat.is-amber .uh-stat-icon { background: var(--uh-amber-tint); color: var(--uh-amber); }
.uh-stat.is-red .uh-stat-icon { background: var(--uh-red-tint); color: var(--uh-red); }
.uh-stat.is-gray .uh-stat-icon { background: var(--uh-gray-tint); color: var(--uh-gray); }

/* ==========================================================================
   Status badges + dots (shared)
   ========================================================================== */
.uh-badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 5px 11px 5px 9px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.01em;
  white-space: nowrap;
}
.uh-badge .uh-dot { width: 8px; height: 8px; border-radius: 50%; flex: none; }

.uh-badge[data-status="operational"] { background: var(--uh-green-tint); color: var(--uh-green); }
.uh-badge[data-status="operational"] .uh-dot { background: var(--uh-green-dot); }
.uh-badge[data-status="degraded"] { background: var(--uh-amber-tint); color: var(--uh-amber); }
.uh-badge[data-status="degraded"] .uh-dot { background: var(--uh-amber-dot); }
.uh-badge[data-status="maintenance"] { background: var(--uh-blue-tint); color: var(--uh-blue); }
.uh-badge[data-status="maintenance"] .uh-dot { background: var(--uh-blue); }
.uh-badge[data-status="down"] { background: var(--uh-red-tint); color: var(--uh-red); }
.uh-badge[data-status="down"] .uh-dot { background: var(--uh-red-dot); }
.uh-badge[data-status="unknown"] { background: var(--uh-gray-tint); color: var(--uh-gray); }
.uh-badge[data-status="unknown"] .uh-dot { background: var(--uh-gray); }

/* ==========================================================================
   Incidents & maintenance
   ========================================================================== */
.uh-notices { display: flex; flex-direction: column; gap: 12px; }
.uh-notice {
  display: flex;
  gap: 14px;
  background: var(--uh-card);
  border: 1px solid var(--uh-border);
  border-left-width: 4px;
  border-radius: var(--uh-radius-md);
  box-shadow: var(--uh-shadow);
  padding: 16px 18px;
}
.uh-notice-icon {
  flex: none; width: 34px; height: 34px; border-radius: 9px;
  display: inline-flex; align-items: center; justify-content: center; font-size: 15px;
}
.uh-notice-body { flex: 1; min-width: 0; }
.uh-notice-top { display: flex; align-items: center; gap: 8px 10px; flex-wrap: wrap; margin-bottom: 6px; }
.uh-notice-title { font-size: 15px; font-weight: 800; color: var(--uh-navy); line-height: 1.35; overflow-wrap: anywhere; }
.uh-notice-text { font-size: 14px; color: var(--uh-text-soft); margin: 4px 0 0; }
.uh-notice-time { font-size: 12px; color: var(--uh-text-muted); margin-top: 7px; }

.uh-notice.is-incident { border-left-color: var(--uh-red-dot); }
.uh-notice.is-incident .uh-notice-icon { background: var(--uh-red-tint); color: var(--uh-red); }
.uh-notice.is-maintenance { border-left-color: var(--uh-amber-dot); }
.uh-notice.is-maintenance .uh-notice-icon { background: var(--uh-amber-tint); color: var(--uh-amber); }
.uh-notice.is-resolved { border-left-color: var(--uh-green-dot); opacity: 0.92; }
.uh-notice.is-resolved .uh-notice-icon { background: var(--uh-green-tint); color: var(--uh-green); }

.uh-mini-tag {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 3px 9px; border-radius: 999px;
  font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: 0.03em;
}
.uh-mini-tag.t-incident { background: var(--uh-red-tint); color: var(--uh-red); }
.uh-mini-tag.t-maintenance { background: var(--uh-amber-tint); color: var(--uh-amber); }
.uh-mini-tag.t-resolved { background: var(--uh-green-tint); color: var(--uh-green); }

/* All-clear card */
.uh-allclear {
  display: flex; align-items: center; gap: 13px;
  background: var(--uh-card);
  border: 1px solid var(--uh-border);
  border-radius: var(--uh-radius-md);
  box-shadow: var(--uh-shadow);
  padding: 16px 18px;
  color: var(--uh-text-soft);
  font-size: 14px;
  font-weight: 600;
}
.uh-allclear i { color: var(--uh-green); font-size: 17px; }

/* ==========================================================================
   Service groups + cards
   ========================================================================== */
.uh-group { margin-bottom: 26px; }
.uh-group:last-child { margin-bottom: 0; }
.uh-group-head {
  display: flex; align-items: center; gap: 10px;
  margin-bottom: 12px;
}
.uh-group-head h3 { font-size: 16px; font-weight: 800; color: var(--uh-navy); }
.uh-group-head .uh-group-icon { color: var(--uh-blue); font-size: 13px; }
.uh-group-line { flex: 1; height: 1px; background: var(--uh-border-soft); }
.uh-group-count { font-size: 12px; font-weight: 700; color: var(--uh-text-muted); }

.uh-services { display: grid; gap: 14px; grid-template-columns: 1fr; }

.uh-service {
  background: var(--uh-card);
  border: 1px solid var(--uh-border);
  border-radius: var(--uh-radius-lg);
  box-shadow: var(--uh-shadow);
  padding: 16px 18px;
  transition: border-color 180ms ease, box-shadow 180ms ease;
}
.uh-service:hover { border-color: rgba(0,145,214,0.18); box-shadow: var(--uh-shadow-lg); }

.uh-service-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
}
.uh-service-id { display: flex; align-items: flex-start; gap: 11px; min-width: 0; flex: 1; }
.uh-service-statusdot { margin-top: 4px; }
.uh-service-statusdot {
  flex: none; width: 11px; height: 11px; border-radius: 50%;
  position: relative;
}
.uh-service-statusdot[data-status="operational"] { background: var(--uh-green-dot); }
.uh-service-statusdot[data-status="degraded"] { background: var(--uh-amber-dot); }
.uh-service-statusdot[data-status="maintenance"] { background: var(--uh-blue); }
.uh-service-statusdot[data-status="down"] { background: var(--uh-red-dot); }
.uh-service-statusdot[data-status="unknown"] { background: var(--uh-gray); }

.uh-service-nameblock { display: flex; flex-direction: column; min-width: 0; gap: 3px; }
.uh-service-name { font-size: 15px; font-weight: 700; color: var(--uh-navy); overflow-wrap: anywhere; display: flex; align-items: center; gap: 7px; line-height: 1.3; }
.uh-service-flag { width: 18px; height: 13px; object-fit: cover; border-radius: 2px; flex-shrink: 0; box-shadow: 0 0 0 1px rgba(0,0,0,0.08); }
.uh-service-cat { font-size: 11.5px; color: var(--uh-text-muted); display: flex; align-items: center; gap: 4px; }
.uh-service-cat i { font-size: 9px; opacity: 0.7; }

.uh-service-metrics {
  display: flex;
  align-items: flex-start;
  gap: 6px 18px;
  flex-wrap: wrap;
  flex-shrink: 0;
}
.uh-metric { display: flex; flex-direction: column; align-items: flex-end; line-height: 1.2; }
.uh-metric .v { font-size: 14px; font-weight: 800; color: var(--uh-navy); }
.uh-metric .v.muted { color: var(--uh-text-muted); font-weight: 700; }
.uh-metric .k { font-size: 10.5px; font-weight: 700; color: var(--uh-text-muted); text-transform: uppercase; letter-spacing: 0.03em; }
.uh-metric-sub { font-size: 9.5px; font-weight: 600; color: var(--uh-text-muted); margin-top: 2px; opacity: 0.85; }

/* Heartbeat timeline */
.uh-heartbeat {
  display: flex;
  align-items: flex-end;
  gap: 2px;
  margin-top: 14px;
  height: 34px;
}
.uh-beat {
  flex: 1 1 0;
  min-width: 0;
  height: 100%;
  border-radius: 3px;
  background: var(--uh-gray-tint);
  transition: opacity 140ms ease, transform 140ms ease;
}
.uh-beat:hover { transform: scaleY(1.06); }
.uh-beat[data-status="operational"] { background: var(--uh-green-dot); }
.uh-beat[data-status="degraded"] { background: var(--uh-amber-dot); }
.uh-beat[data-status="maintenance"] { background: var(--uh-blue); }
.uh-beat[data-status="down"] { background: var(--uh-red-dot); }
.uh-beat[data-status="empty"] { background: var(--uh-gray-tint); }

.uh-heartbeat-foot {
  display: flex; align-items: center; justify-content: space-between;
  margin-top: 7px;
  font-size: 11px; color: var(--uh-text-muted); font-weight: 600;
}

/* ==========================================================================
   Loading skeleton + error / empty states
   ========================================================================== */
.uh-skeleton {
  background: linear-gradient(90deg, #eef1f5 25%, #f6f8fb 37%, #eef1f5 63%);
  background-size: 400% 100%;
  animation: uh-shimmer 1.3s ease infinite;
  border-radius: 8px;
}
@keyframes uh-shimmer { 0% { background-position: 100% 0; } 100% { background-position: -100% 0; } }
.sk-line { height: 12px; margin: 8px 0; }
.sk-card { height: 96px; }

.uh-state {
  text-align: center;
  padding: 40px 22px;
  background: var(--uh-card);
  border: 1px solid var(--uh-border);
  border-radius: var(--uh-radius-lg);
  box-shadow: var(--uh-shadow);
}
.uh-state-icon {
  width: 54px; height: 54px; margin: 0 auto 14px;
  border-radius: 16px;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 22px;
}
.uh-state.is-error .uh-state-icon { background: var(--uh-amber-tint); color: var(--uh-amber); }
.uh-state.is-empty .uh-state-icon { background: var(--uh-gray-tint); color: var(--uh-gray); }
.uh-state h3 { font-size: 18px; margin-bottom: 6px; }
.uh-state p { color: var(--uh-text-soft); font-size: 14px; margin: 0 auto; max-width: 420px; }
.uh-state .uh-btn { margin-top: 18px; }

[hidden] { display: none !important; }

/* ==========================================================================
   Footer
   ========================================================================== */
.uh-footer {
  margin-top: 48px;
  background:
    radial-gradient(700px 220px at 80% 0, rgba(0, 212, 255, 0.10), transparent 60%),
    linear-gradient(180deg, var(--uh-navy) 0%, var(--uh-navy-2) 100%);
  color: rgba(255, 255, 255, 0.74);
}
.uh-footer-top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 38px 0 28px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.uh-footer-brand { display: flex; flex-direction: column; gap: 10px; max-width: 420px; }
.uh-footer-logo { height: 34px; width: auto; max-width: 200px; object-fit: contain; }
.uh-footer-brand p { margin: 0; font-size: 13px; line-height: 1.6; color: rgba(255,255,255,0.6); }
.uh-footer-links { display: flex; flex-wrap: wrap; gap: 10px 26px; }
.uh-footer-links a {
  color: rgba(255, 255, 255, 0.78);
  font-size: 14px;
  font-weight: 600;
  display: inline-flex; align-items: center; gap: 7px;
}
.uh-footer-links a i { color: var(--uh-cyan); font-size: 12px; }
.uh-footer-links a:hover { color: #fff; }
.uh-footer-bottom {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: 10px;
  padding: 18px 0 30px;
  font-size: 12.5px;
  color: rgba(255, 255, 255, 0.5);
}
.uh-footer-bottom a { color: rgba(255,255,255,0.7); }
.uh-footer-bottom a:hover { color: #fff; }

/* ==========================================================================
   Footer – full navigation grid (mirrors main underhost.com footer)
   Variables mapped to status page dark-theme equivalents.
   ========================================================================== */
.uh-footer .footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr 1fr;
  gap: 28px;
  padding: 48px 0 0;
}
.uh-footer .footer-brand p {
  font-size: 13px;
  color: rgba(255,255,255,0.58);
  line-height: 1.7;
  max-width: 230px;
  margin-top: 14px;
}
.uh-footer .footer-col h4 {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--uh-cyan);
  margin-bottom: 14px;
}
.uh-footer .footer-col ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 9px;
  padding: 0;
  margin: 0;
}
.uh-footer .footer-col ul li a {
  font-size: 13px;
  color: rgba(255,255,255,0.58);
  transition: color .2s;
}
.uh-footer .footer-col ul li a:hover { color: #fff; }

/* Social buttons */
.uh-footer .soc-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.18);
  color: rgba(255,255,255,0.7);
  font-size: 14px;
  transition: border-color .2s, color .2s, background .2s;
}
.uh-footer .soc-btn:hover {
  border-color: var(--uh-cyan);
  color: var(--uh-cyan);
  background: rgba(0,212,255,0.08);
}

/* Dedicated Servers row */
.uh-footer .footer-ded-row {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 28px;
  margin-top: 36px;
  margin-bottom: 0;
}
.uh-footer .footer-ded-row > h4 {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--uh-cyan);
  margin-bottom: 18px;
}
.uh-footer .footer-ded-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}
.uh-footer .footer-ded-sub {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: rgba(255,255,255,0.42);
  margin-bottom: 10px;
  display: block;
  padding-bottom: 6px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}
.uh-footer .footer-ded-sub--specialty { margin-top: 16px; }
.uh-footer .footer-ded-grid ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin: 0;
  padding: 0;
}
.uh-footer .footer-ded-grid ul.footer-specialty-list { gap: 6px; }
.uh-footer .footer-ded-grid ul li a {
  font-size: 13px;
  color: rgba(255,255,255,0.58);
  transition: color .2s;
}
.uh-footer .footer-ded-grid ul li a:hover { color: #fff; }
.uh-footer .footer-ded-grid ul li a.footer-link-muted { color: rgba(255,255,255,0.26); }
.uh-footer .footer-ded-grid ul li a.footer-link-muted:hover { color: rgba(0,212,255,.82); }

/* "All Servers" CTA pill */
.uh-footer .footer-all-servers-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 14px;
  margin: 22px 0 0;
  border-radius: 999px;
  background: linear-gradient(135deg, rgba(0,212,255,.18), rgba(0,145,214,.12));
  border: 1px solid rgba(0,212,255,.35);
  color: #00D4FF !important;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
  transition: transform .2s, border-color .2s, background .2s, color .2s;
}
.uh-footer .footer-all-servers-cta i { font-size: 11px; transition: transform .2s; }
.uh-footer .footer-all-servers-cta:hover {
  transform: translateY(-1px);
  background: linear-gradient(135deg, #00D4FF, #0091D6);
  border-color: #00D4FF;
  color: #061426 !important;
}
.uh-footer .footer-all-servers-cta:hover i { transform: translateX(3px); }

/* ==========================================================================
   Service cards – country flag images
   ========================================================================== */
.uh-group-flag {
  width: 22px;
  height: 16px;
  object-fit: cover;
  border-radius: 2px;
  flex-shrink: 0;
  opacity: 0.9;
}
.uh-service-flag {
  width: 14px;
  height: 10px;
  object-fit: cover;
  border-radius: 1px;
  flex-shrink: 0;
}

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (min-width: 700px) {
  .uh-services { grid-template-columns: 1fr 1fr; }
}
@media (min-width: 1080px) {
  .uh-services { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 1080px) {
  .uh-summary { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 960px) {
  .uh-footer .footer-grid { grid-template-columns: 1fr 1fr 1fr; }
  .uh-footer .footer-brand { grid-column: 1 / -1; }
  .uh-footer .footer-ded-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 720px) {
  .uh-summary { grid-template-columns: repeat(2, 1fr); }
  .uh-service-top { align-items: flex-start; }
  .uh-service-metrics { width: 100%; justify-content: flex-start; gap: 8px 16px; }
  .uh-metric { align-items: flex-start; }
  .uh-metric-sub { text-align: left; }
  .uh-footer .footer-grid { grid-template-columns: 1fr 1fr; }
  .uh-footer .footer-ded-grid { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .uh-header-tag { display: none; }
  .uh-btn span.btn-label { display: none; }
  .uh-btn { padding: 11px 13px; }
  .uh-hero { padding: 36px 0 22px; }
  .uh-global { width: 100%; gap: 13px; padding: 14px 16px; }
  .uh-global-title { font-size: 17px; }
  .uh-summary { gap: 10px; }
  .uh-stat-value { font-size: 22px; }
}
@media (max-width: 380px) {
  .uh-summary { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
}
