:root {
  --bg: #080914;
  --panel: #101220;
  --line: #24283b;
  --text: #f4f6ff;
  --muted: #8e94ad;
  --green: #23d18b;
  --yellow: #f3bc2f;
  --red: #ff5b77;
  --blue: #49a7ff;
  --purple: #7c5cff;
}
* { box-sizing: border-box; }
body {
  margin: 0;
  background: radial-gradient(circle at top, #131735 0, var(--bg) 42%);
  color: var(--text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  display: flex;
  min-height: 100vh;
}
.sidebar {
  width: 245px;
  background: rgba(8, 9, 20, 0.92);
  border-right: 1px solid var(--line);
  padding: 24px 18px;
  position: sticky;
  top: 0;
  height: 100vh;
}
.brand { display: flex; gap: 12px; align-items: center; margin-bottom: 36px; }
.logo {
  width: 42px; height: 42px; border-radius: 14px;
  background: linear-gradient(135deg, var(--purple), var(--blue));
  display: grid; place-items: center; font-weight: 800;
}
.brand span { display: block; color: var(--muted); font-size: 12px; margin-top: 2px; }
nav { display: grid; gap: 8px; }
nav a {
  color: var(--muted); text-decoration: none; padding: 11px 12px;
  border-radius: 12px; border: 1px solid transparent;
}
nav a.active, nav a:hover { color: var(--text); background: #171a2d; border-color: var(--line); }
.sandbox {
  position: absolute; left: 18px; right: 18px; bottom: 22px;
  background: #141320; border: 1px solid #30243b; border-radius: 14px;
  padding: 14px;
}
.sandbox span { display: block; color: var(--yellow); margin-top: 4px; font-size: 12px; }
.main { flex: 1; padding: 28px; }
.topbar {
  display: flex; justify-content: space-between; gap: 22px; align-items: flex-start;
  background: rgba(16, 18, 32, 0.75);
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 24px;
}
.eyebrow { color: var(--purple); text-transform: uppercase; letter-spacing: .12em; font-size: 12px; margin: 0 0 8px; }
h1 { margin: 0; font-size: 34px; }
h2 { margin: 0; font-size: 18px; }
.muted { color: var(--muted); margin-bottom: 0; }
.badges { display: flex; gap: 8px; flex-wrap: wrap; justify-content: flex-end; }
.badge {
  display: inline-flex; align-items: center; border-radius: 999px; padding: 6px 10px;
  font-size: 12px; font-weight: 700; background: #202337; color: var(--muted);
}
.green { color: var(--green); background: rgba(35, 209, 139, .1); }
.yellow { color: var(--yellow); background: rgba(243, 188, 47, .1); }
.red { color: var(--red); background: rgba(255, 91, 119, .1); }
.blue { color: var(--blue); background: rgba(73, 167, 255, .1); }
.purple { color: var(--purple); background: rgba(124, 92, 255, .13); }
.notice {
  margin: 16px 0;
  border: 1px solid rgba(243, 188, 47, .3);
  background: rgba(243, 188, 47, .08);
  color: #ffd772;
  border-radius: 16px;
  padding: 14px 16px;
}
.cards { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; margin: 16px 0; }
.metric, .panel {
  background: rgba(16, 18, 32, 0.86);
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: 0 20px 60px rgba(0,0,0,.22);
}
.metric { padding: 18px; }
.metric span { color: var(--muted); font-size: 13px; display: block; }
.metric strong { display: block; font-size: 28px; margin: 8px 0; }
.metric small { color: var(--muted); }
.grid { display: grid; gap: 14px; margin-bottom: 14px; }
.grid.two { grid-template-columns: 1fr 1fr; }
.panel { padding: 18px; }
.panel-head {
  display: flex; justify-content: space-between; align-items: center;
  padding-bottom: 14px; border-bottom: 1px solid var(--line); margin-bottom: 14px;
}
.item {
  display: flex; justify-content: space-between; gap: 16px;
  padding: 14px 0; border-bottom: 1px solid rgba(36, 40, 59, .7);
}
.item:last-child { border-bottom: 0; }
.item strong { display: block; }
.item small { color: var(--muted); display: block; margin-top: 4px; }
.form { display: grid; gap: 12px; }
label { display: grid; gap: 6px; color: var(--muted); font-size: 13px; }
input {
  width: 100%; border: 1px solid var(--line); background: #0c0e1a; color: var(--text);
  border-radius: 12px; padding: 12px 14px; outline: none;
}
button {
  border: 0; border-radius: 12px; padding: 12px 14px; cursor: pointer;
  background: linear-gradient(135deg, var(--purple), var(--blue));
  color: white; font-weight: 800;
}
pre {
  white-space: pre-wrap; background: #0b0d18; color: #cfd5ff;
  border: 1px solid var(--line); border-radius: 14px; padding: 14px; min-height: 112px;
}
table { width: 100%; border-collapse: collapse; }
th, td { text-align: left; padding: 11px 8px; border-bottom: 1px solid var(--line); font-size: 13px; }
th { color: var(--muted); font-weight: 600; }
td { color: var(--text); }
footer { color: var(--muted); text-align: center; padding: 28px 0 10px; font-size: 13px; }
@media (max-width: 1100px) {
  body { display: block; }
  .sidebar { position: relative; width: 100%; height: auto; }
  .sandbox { position: relative; left: auto; right: auto; bottom: auto; margin-top: 18px; }
  .cards, .grid.two { grid-template-columns: 1fr; }
  .topbar { display: grid; }
}

.provider-ready {
  border-color: rgba(35, 209, 139, .35);
  background: linear-gradient(135deg, rgba(35, 209, 139, .10), rgba(124, 92, 255, .10));
  color: #dce3ff;
}
.provider-ready strong {
  display: block;
  color: #ffffff;
  margin-bottom: 6px;
}

.brand-link {
  color: inherit;
  text-decoration: none;
  cursor: pointer;
  transition: transform .15s ease, opacity .15s ease;
}

.brand-link:hover {
  transform: translateY(-1px);
  opacity: .9;
}

.brand-link:hover .logo {
  box-shadow: 0 0 0 4px rgba(124, 92, 255, .18);
}
