:root {
  --ink: #15202b;
  --muted: #65707b;
  --bg: #f3efe7;
  --card: #fffdfa;
  --line: #ddd4c6;
  --gold: #c98b20;
  --teal: #116d73;
  --danger: #b03a3a;
}

* { box-sizing: border-box; }
body {
  margin: 0;
  font-family: Manrope, sans-serif;
  color: var(--ink);
  background: radial-gradient(circle at top left, #ffe7b5 0%, transparent 35%),
    radial-gradient(circle at bottom right, #c8eef1 0%, transparent 34%),
    var(--bg);
  min-height: 100vh;
}
.bg {
  position: fixed;
  border-radius: 999px;
  filter: blur(70px);
  opacity: 0.35;
}
.bg-a { width: 300px; height: 300px; top: 8%; left: 70%; background: #f7c95a; }
.bg-b { width: 340px; height: 340px; bottom: -80px; left: -60px; background: #7ad6df; }
.wrap { position: relative; z-index: 1; max-width: 1240px; margin: 0 auto; padding: 24px; }
.masthead {
  display: flex; align-items: end; justify-content: space-between; gap: 16px; flex-wrap: wrap;
}
.eyebrow { margin: 0 0 6px; color: var(--gold); text-transform: uppercase; letter-spacing: .18em; font-weight: 800; font-size: 12px; }
h1 { margin: 0; font-family: 'Space Grotesk', sans-serif; font-size: clamp(32px, 4vw, 52px); line-height: .95; letter-spacing: -.04em; }
.lead { margin: 10px 0 0; color: var(--muted); max-width: 720px; }
.badge { background: linear-gradient(135deg, var(--teal), #0f5674); color: white; padding: 14px 18px; border-radius: 999px; font-weight: 800; box-shadow: 0 10px 24px rgba(17,109,115,.2); }
.panel {
  margin-top: 18px; background: color-mix(in oklab, var(--card) 94%, white); border: 1px solid var(--line);
  border-radius: 18px; padding: 18px; box-shadow: 0 10px 28px rgba(30, 36, 40, 0.08);
}
.tabs { display:flex; gap:10px; flex-wrap:wrap; margin-bottom: 14px; }
.tab, .btn {
  border-radius: 12px; border: 1px solid #c5cdd6; background: #fff; color: var(--ink);
  padding: 10px 14px; font-weight: 800; cursor: pointer;
}
.tab.active, .btn.primary { background: linear-gradient(135deg, var(--teal), #0f5674); color: white; border-color: transparent; }
.btn.ghost { color: var(--danger); border-color: #e0aaaa; }
.tab-content { display:none; }
.tab-content.active { display:block; }
.grid { display:grid; gap: 12px; }
.grid.two { grid-template-columns: repeat(2, minmax(0,1fr)); }
label { display:flex; flex-direction:column; gap:8px; font-size:13px; color: var(--muted); }
input {
  width:100%; height:44px; border-radius: 12px; border:1px solid var(--line); padding: 10px 12px; font-size: 14px; color: var(--ink); background:#fff;
}
.actions { display:flex; align-items:center; gap:10px; flex-wrap:wrap; margin-top: 12px; }
.status { margin: 12px 0 0; font-size: 13px; font-weight: 700; }
.status.muted { color: var(--muted); }
.status.ok { color: #137b3f; }
.status.err { color: var(--danger); }
.auth-panel .otp-box { margin-top: 16px; padding-top: 16px; border-top: 1px dashed var(--line); }
.card-grid { display:grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 12px; }
.metric {
  border: 1px solid var(--line); border-radius: 16px; padding: 18px; background: #fff;
}
.metric span { display:block; color: var(--muted); font-size: 13px; margin-bottom: 8px; }
.metric strong { font-size: 28px; font-family: 'Space Grotesk', sans-serif; }
.detail-grid { display:grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 12px; margin-top: 12px; }
.code-box { margin:0; background:#0f1d2c; color:#d7f7ff; border-radius: 12px; padding: 12px; min-height: 200px; overflow:auto; font-size: 12px; }
.card-head { display:flex; align-items:center; justify-content:space-between; gap:12px; flex-wrap:wrap; }
@media (max-width: 980px) {
  .grid.two, .card-grid, .detail-grid { grid-template-columns: 1fr; }
  .masthead { align-items: start; }
}
