:root {
  --bg: #050816;
  --bg-alt: #0b1020;
  --accent: #3b82f6;
  --accent-soft: rgba(59,130,246,0.1);
  --accent-strong: #2563eb;
  --text: #e5e7eb;
  --text-muted: #9ca3af;
  --border-subtle: #1f2937;
  --danger: #f97373;
  --success: #22c55e;
  --radius: 14px;
  --shadow-soft: 0 18px 40px rgba(0, 0, 0, 0.45);
  --max-width: 1100px;
}

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

body {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: radial-gradient(circle at top, #111827 0, #020617 55%, #020617 100%);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
  text-decoration: none;
}

.page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.wrap {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 1.75rem 1.25rem 3rem;
}

header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  margin-bottom: 2.5rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.brand-logo {
  height: 40px;
  width: auto;
  display: block;
}

.brand-text {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
}

.brand-title {
  font-weight: 600;
  font-size: 1.1rem;
}

.brand-subtitle {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.header-links {
  display: flex;
  gap: 0.75rem;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.header-links a {
  padding: 0.5rem 1rem;
  border-radius: var(--radius);
  background: #0f182e;
  border: 1px solid rgba(31, 41, 55, 0.95);
  color: var(--text-muted);
  text-decoration: none;
  transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.header-links a:hover {
  background: #152238;
  border-color: var(--accent-soft);
  color: var(--text);
}

main {
  display: grid;
  grid-template-columns: minmax(0, 3fr) minmax(0, 2.6fr);
  gap: 2.5rem;
}

/* Hero */
.hero-eyebrow {
  font-size: 0.8rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.75rem;
}

.hero-title {
  font-size: clamp(2.2rem, 4vw, 2.8rem);
  font-weight: 650;
  line-height: 1.1;
  margin-bottom: 0.85rem;
}

.hero-ticker {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 1.25rem;
}

.ticker-pill {
  padding: 0.1rem 0.6rem;
  border-radius: 999px;
  border: 1px solid var(--border-subtle);
  background: rgba(15, 23, 42, 0.8);
  font-weight: 600;
  letter-spacing: 0.08em;
  font-size: 0.7rem;
  text-transform: uppercase;
}

.hero-body {
  font-size: 0.95rem;
  color: var(--text-muted);
  max-width: 32rem;
  margin-bottom: 1.75rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  margin-bottom: 1.75rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  padding: 0.7rem 1.2rem;
  border-radius: 999px;
  font-size: 0.9rem;
  font-weight: 500;
  border: 1px solid transparent;
  cursor: pointer;
  background: transparent;
  color: inherit;
  transition: transform 0.12s ease, box-shadow 0.12s ease, background 0.12s ease, border-color 0.12s ease;
}

.btn-primary {
  background: linear-gradient(to right, var(--accent), var(--accent-strong));
  color: #f9fafb;
  box-shadow: var(--shadow-soft);
}

.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 20px 45px rgba(37, 99, 235, 0.45);
}

.btn-outline {
  border-color: var(--border-subtle);
  background: rgba(15, 23, 42, 0.8);
  color: var(--text);
}

.btn-outline:hover {
  background: rgba(15, 23, 42, 0.95);
  border-color: var(--accent-soft);
}

.btn-pill-label {
  font-size: 0.75rem;
  color: var(--text-muted);
}

.hero-note {
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* Stats card */
.stats-card {
  background: radial-gradient(circle at top left, rgba(59, 130, 246, 0.14), rgba(15, 23, 42, 0.95));
  border-radius: var(--radius);
  padding: 1.4rem 1.4rem 1.5rem;
  border: 1px solid rgba(31, 41, 55, 0.9);
  box-shadow: var(--shadow-soft);
  display: flex;
  flex-direction: column;
  gap: 1.4rem;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.stat {
  padding: 0.7rem 0.85rem;
  border-radius: 11px;
  background: rgba(15, 23, 42, 0.8);
  border: 1px solid rgba(31, 41, 55, 0.9);
}

.stat-label {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 0.1rem;
}

.stat-value {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 0.15rem;
}

.stat-value a {
  color: inherit;
  text-decoration: none;
  transition: color 0.2s ease;
}

.stat-value a:hover {
  color: var(--accent);
}

.stat-caption {
  font-size: 0.75rem;
  color: var(--text-muted);
}

.stat-pill {
  font-size: 0.75rem;
  padding: 0.1rem 0.5rem;
  border-radius: 999px;
  border: 1px solid rgba(34, 197, 94, 0.4);
  background: rgba(22, 163, 74, 0.08);
  color: var(--success);
  display: inline-block;
  margin-top: 0.2rem;
}

.uptime-pill {
  border-color: rgba(56, 189, 248, 0.4);
  background: rgba(8, 47, 73, 0.74);
  color: #7dd3fc;
}

.stat-warning {
  color: var(--danger);
}

.pool-meta {
  border-radius: 11px;
  background: rgba(15, 23, 42, 0.8);
  border: 1px solid rgba(31, 41, 55, 0.9);
  padding: 0.95rem 1rem;
  font-size: 0.8rem;
}

.pool-meta-row {
  display: flex;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.45rem;
}

.pool-meta-row:last-child {
  margin-bottom: 0;
}

.pool-meta-label {
  color: var(--text-muted);
}

.pool-meta-value {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
  font-size: 0.78rem;
  text-align: right;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.5rem;
  max-width: 100%;
}

.pool-id-input {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
  font-size: 0.78rem;
  padding: 0.4rem 0.6rem;
  border-radius: 6px;
  background: rgba(15, 23, 42, 0.95);
  border: 1px solid rgba(31, 41, 55, 0.95);
  color: var(--text);
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  outline: none;
}

.pool-id-input:focus {
  border-color: var(--accent-soft);
}

.copy-btn {
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0.25rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  transition: color 0.2s ease;
  flex-shrink: 0;
}

.copy-btn:hover {
  color: var(--accent);
}

.copy-btn svg {
  display: block;
}

.pool-meta-value a {
  display: inline-block;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.meta-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  font-size: 0.75rem;
  padding: 0.1rem 0.55rem;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.9);
  border: 1px solid rgba(31, 41, 55, 0.9);
  margin-top: 0.6rem;
  color: var(--text-muted);
}

/* Sections under fold */
.sections {
  margin-top: 3rem;
  display: grid;
  grid-template-columns: minmax(0, 3fr) minmax(0, 2.4fr);
  gap: 2rem;
}

.card {
  border-radius: var(--radius);
  background: rgba(15, 23, 42, 0.94);
  border: 1px solid rgba(31, 41, 55, 0.95);
  padding: 1.5rem 1.4rem;
}

.card + .card {
  margin-top: 1rem;
}

.card-title {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 0.7rem;
}

.card-subtitle {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 1rem;
}

.list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.list li::before {
  content: "•";
  color: var(--accent);
  margin-right: 0.45rem;
}

.steps {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 0.75rem;
  font-size: 0.9rem;
}

.step {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.75rem;
  align-items: flex-start;
}

.step-number {
  width: 26px;
  height: 26px;
  border-radius: 999px;
  border: 1px solid rgba(31, 41, 55, 0.9);
  background: rgba(15, 23, 42, 0.95);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--accent);
}

.step h3 {
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 0.1rem;
}

.step p {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.step p a {
  color: var(--accent);
  text-decoration: none;
  transition: opacity 0.2s ease;
}

.step p a:hover {
  opacity: 0.8;
}

.pool-info-label {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 0.2rem;
}

.pool-id {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
  font-size: 0.78rem;
  padding: 0.6rem 0.75rem;
  border-radius: 9px;
  background: rgba(15, 23, 42, 0.95);
  border: 1px solid rgba(31, 41, 55, 0.95);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 100%;
}

.metadata-note {
  margin-top: 0.6rem;
  font-size: 0.78rem;
  color: var(--text-muted);
}

.metadata-note a {
  color: var(--accent);
  text-decoration: none;
  transition: opacity 0.2s ease;
}

.metadata-note a:hover {
  opacity: 0.8;
}

/* Services Status */
.services-status {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}

.service-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.75rem 1rem;
  border-radius: 9px;
  background: rgba(15, 23, 42, 0.8);
  border: 1px solid rgba(31, 41, 55, 0.9);
}

.service-name {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text);
}

.service-status {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.status-indicator {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  display: inline-block;
}

.status-indicator.status-operational {
  background: var(--accent);
  box-shadow: 0 0 8px rgba(59, 130, 246, 0.6);
}

.status-indicator.status-degraded {
  background: #f59e0b;
  box-shadow: 0 0 8px rgba(245, 158, 11, 0.6);
}

.status-indicator.status-down {
  background: var(--danger);
  box-shadow: 0 0 8px rgba(249, 115, 115, 0.6);
}

.status-text {
  font-size: 0.85rem;
  color: var(--text-muted);
}

footer {
  margin-top: 3rem;
  border-top: 1px solid rgba(31, 41, 55, 0.9);
  padding-top: 1.3rem;
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem;
  align-items: center;
  justify-content: space-between;
  font-size: 0.8rem;
  color: var(--text-muted);
}

.footer-links,
.footer-social {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  align-items: center;
}

.footer-links a,
.footer-social a {
  opacity: 0.85;
}

.footer-links a:hover,
.footer-social a:hover {
  opacity: 1;
  color: var(--text);
}

.footer-social span {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.11em;
  color: var(--text-muted);
}

@media (max-width: 900px) {
  main {
    grid-template-columns: minmax(0, 1fr);
  }

  .sections {
    grid-template-columns: minmax(0, 1fr);
  }

  header {
    flex-direction: column;
    align-items: flex-start;
  }

  .header-links {
    flex-wrap: wrap;
  }
}

