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

:root {
  --bg: #08111f;
  --bg-2: #0e1729;
  --panel: rgba(12, 21, 38, 0.82);
  --panel-strong: rgba(16, 27, 49, 0.95);
  --border: rgba(148, 163, 184, 0.14);
  --border-strong: rgba(96, 165, 250, 0.28);
  --text: #e6edf8;
  --muted: #93a4bd;
  --green: #34d399;
  --red: #f87171;
  --amber: #fbbf24;
  --blue: #60a5fa;
  --cyan: #22d3ee;
  --purple: #a78bfa;
  --shadow: 0 16px 40px rgba(2, 8, 23, 0.35);
}

html, body {
  min-height: 100%;
  background:
    radial-gradient(circle at top left, rgba(34, 211, 238, 0.12), transparent 28%),
    radial-gradient(circle at top right, rgba(96, 165, 250, 0.18), transparent 32%),
    linear-gradient(180deg, #07101d 0%, #0a1324 35%, #07101a 100%);
  color: var(--text);
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

body {
  padding: 28px;
}

.shell {
  max-width: 1500px;
  margin: 0 auto;
}

.hero {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  align-items: flex-start;
  margin-bottom: 22px;
  padding: 26px 28px;
  border: 1px solid var(--border);
  background: linear-gradient(135deg, rgba(14, 23, 41, 0.94), rgba(10, 17, 31, 0.82));
  border-radius: 24px;
  box-shadow: var(--shadow);
}

.eyebrow {
  color: var(--cyan);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 12px;
  margin-bottom: 10px;
}

h1 {
  font-size: clamp(28px, 4vw, 42px);
  line-height: 1.05;
  margin-bottom: 10px;
}

.hero-copy {
  max-width: 760px;
  color: var(--muted);
  line-height: 1.6;
  font-size: 15px;
}

.hero-actions {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 12px;
  min-width: 180px;
}

button {
  border: 1px solid rgba(96, 165, 250, 0.35);
  background: linear-gradient(135deg, rgba(96, 165, 250, 0.22), rgba(34, 211, 238, 0.16));
  color: var(--text);
  padding: 11px 15px;
  border-radius: 14px;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.15s ease, border-color 0.15s ease, background 0.15s ease;
}

button:hover { transform: translateY(-1px); border-color: var(--blue); }
button:disabled { opacity: 0.7; cursor: wait; transform: none; }

.meta-chip,
.chip,
.status-pill,
.scope-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border-radius: 999px;
  padding: 7px 11px;
  font-size: 12px;
  line-height: 1;
  white-space: nowrap;
}

.meta-chip,
.chip { background: rgba(148, 163, 184, 0.1); color: var(--muted); border: 1px solid var(--border); }
.status-ok { background: rgba(52, 211, 153, 0.14); color: var(--green); border: 1px solid rgba(52, 211, 153, 0.24); }
.status-warn { background: rgba(251, 191, 36, 0.14); color: var(--amber); border: 1px solid rgba(251, 191, 36, 0.22); }
.status-bad { background: rgba(248, 113, 113, 0.14); color: var(--red); border: 1px solid rgba(248, 113, 113, 0.22); }
.scope-public { background: rgba(96, 165, 250, 0.14); color: var(--blue); border: 1px solid rgba(96, 165, 250, 0.24); }
.scope-lan { background: rgba(167, 139, 250, 0.14); color: var(--purple); border: 1px solid rgba(167, 139, 250, 0.24); }

.summary-grid,
.main-grid,
.split-grid {
  display: grid;
  gap: 18px;
  margin-bottom: 18px;
}

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

.main-grid {
  grid-template-columns: 1.2fr 1fr 1fr;
}

.split-grid {
  grid-template-columns: 2fr 1fr;
}

.card {
  border: 1px solid var(--border);
  background: var(--panel);
  backdrop-filter: blur(14px);
  border-radius: 22px;
  padding: 22px;
  box-shadow: var(--shadow);
}

.card.wide { margin-bottom: 18px; }
.span-2 { min-width: 0; }

.section-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  margin-bottom: 18px;
}

.section-head h2 {
  font-size: 16px;
}

.muted {
  color: var(--muted);
  font-size: 13px;
}

.empty-state {
  color: var(--muted);
}

.summary-card {
  padding: 18px;
  border-radius: 20px;
  border: 1px solid var(--border);
  background: linear-gradient(180deg, rgba(15, 25, 46, 0.95), rgba(9, 16, 29, 0.88));
}

.summary-label {
  color: var(--muted);
  font-size: 12px;
  margin-bottom: 10px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.summary-value {
  font-size: 32px;
  font-weight: 800;
  line-height: 1.05;
  margin-bottom: 10px;
}

.summary-sub {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  color: var(--muted);
  font-size: 13px;
}

.good { color: var(--green); }
.bad { color: var(--red); }
.warn { color: var(--amber); }
.accent { color: var(--cyan); }

.alert-list {
  display: grid;
  gap: 12px;
}

.alert-item {
  border-radius: 18px;
  padding: 14px 16px;
  border: 1px solid var(--border);
}

.alert-item.success { background: rgba(52, 211, 153, 0.08); }
.alert-item.warning { background: rgba(251, 191, 36, 0.08); }
.alert-item.info { background: rgba(96, 165, 250, 0.08); }
.alert-item.error { background: rgba(248, 113, 113, 0.08); }

.alert-title {
  font-weight: 700;
  margin-bottom: 4px;
}

.metrics-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 14px;
}

.metric {
  padding: 14px;
  border-radius: 16px;
  background: rgba(15, 23, 42, 0.55);
  border: 1px solid var(--border);
}

.metric-label {
  color: var(--muted);
  font-size: 12px;
  margin-bottom: 6px;
}

.metric-value {
  font-size: 21px;
  font-weight: 700;
}

.kv-list {
  display: grid;
  gap: 10px;
}

.kv-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(148, 163, 184, 0.08);
}

.kv-row:last-child { border-bottom: 0; padding-bottom: 0; }
.kv-key { color: var(--muted); }
.kv-value { text-align: right; font-weight: 600; }
.small { font-size: 12px; word-break: break-word; }

.link-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 14px;
}

.link-card {
  display: flex;
  flex-direction: column;
  gap: 12px;
  border-radius: 18px;
  padding: 16px;
  border: 1px solid var(--border);
  background: linear-gradient(180deg, rgba(13, 23, 40, 0.92), rgba(9, 16, 29, 0.82));
}

.link-card a {
  color: var(--text);
  text-decoration: none;
}

.link-top {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: flex-start;
}

.link-title {
  font-weight: 700;
  margin-bottom: 4px;
}

.link-note {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}

.link-meta {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.table-wrap {
  overflow-x: auto;
}

.table-wrap table {
  width: 100%;
  border-collapse: collapse;
  min-width: 720px;
}

.table-wrap th,
.table-wrap td {
  padding: 12px 10px;
  border-bottom: 1px solid rgba(148, 163, 184, 0.08);
  text-align: left;
  vertical-align: top;
  font-size: 14px;
}

.table-wrap th {
  color: var(--muted);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.coin {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.coin small { color: var(--muted); }

.opportunity-grid,
.timeline {
  display: grid;
  gap: 12px;
}

.opportunity-card,
.timeline-item {
  border-radius: 18px;
  border: 1px solid var(--border);
  background: rgba(15, 23, 42, 0.52);
  padding: 16px;
}

.opportunity-head,
.timeline-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  margin-bottom: 10px;
}

.opportunity-title,
.timeline-title {
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 8px;
}

.subgrid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-top: 10px;
}

.subcard {
  border-radius: 14px;
  background: rgba(8, 15, 28, 0.7);
  border: 1px solid rgba(148, 163, 184, 0.08);
  padding: 10px 12px;
}

.subcard .label {
  color: var(--muted);
  font-size: 11px;
  margin-bottom: 4px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.subcard .value {
  font-size: 15px;
  font-weight: 700;
}

footer {
  color: var(--muted);
  text-align: center;
  padding: 8px 0 24px;
  font-size: 13px;
}

@media (max-width: 1180px) {
  .summary-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .main-grid, .split-grid { grid-template-columns: 1fr; }
}

@media (max-width: 720px) {
  body { padding: 16px; }
  .hero { padding: 20px; border-radius: 20px; flex-direction: column; }
  .hero-actions { width: 100%; align-items: stretch; }
  .summary-grid { grid-template-columns: 1fr; }
  .metrics-grid, .subgrid { grid-template-columns: 1fr; }
  .card { padding: 18px; border-radius: 18px; }
  .summary-value { font-size: 28px; }
}
