:root {
  --bg: #0d1020;
  --panel: #151a31;
  --panel-2: #1d2442;
  --text: #f6f7fb;
  --muted: #a9b1c9;
  --brand: #7c5cff;
  --brand-2: #00d4ff;
  --ok: #20d489;
  --danger: #ff647c;
  --line: rgba(255,255,255,.1);
  --shadow: 0 20px 60px rgba(0,0,0,.28);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
body {
  margin: 0;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(124,92,255,.28), transparent 34rem),
    radial-gradient(circle at top right, rgba(0,212,255,.14), transparent 30rem),
    var(--bg);
  min-height: 100vh;
}

a { color: inherit; text-decoration: none; }
button, .button {
  border: 0;
  border-radius: 14px;
  padding: .85rem 1.05rem;
  color: white;
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 10px 24px rgba(124,92,255,.25);
}
button:disabled { opacity: .55; cursor: not-allowed; }
.danger-btn {
  background: linear-gradient(135deg, #ff4d6d, #ff8a5c);
  box-shadow: 0 10px 24px rgba(255,100,124,.22);
}
.ghost {
  background: transparent;
  border: 1px solid var(--line);
  box-shadow: none;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: .9rem clamp(1rem, 4vw, 2.2rem);
  background: rgba(13,16,32,.82);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--line);
}
.brand { font-weight: 900; letter-spacing: -.02em; margin-right: auto; }
.nav { display: flex; gap: .35rem; flex-wrap: wrap; }
.nav a {
  color: var(--muted);
  padding: .55rem .75rem;
  border-radius: 999px;
}
.nav a:hover { color: white; background: rgba(255,255,255,.08); }

.container { width: min(1180px, calc(100% - 2rem)); margin: 1.5rem auto 4rem; }
.hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
}
.eyebrow {
  color: var(--brand-2);
  text-transform: uppercase;
  letter-spacing: .12em;
  font-size: .78rem;
  font-weight: 900;
}
h1, h2, h3 { margin: .2rem 0 .7rem; letter-spacing: -.03em; }
p { color: var(--muted); }

.card, .login-card, .result {
  background: linear-gradient(180deg, rgba(255,255,255,.075), rgba(255,255,255,.035));
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: 1.2rem;
  box-shadow: var(--shadow);
}
.grid { display: grid; gap: 1rem; }
.cards { grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); margin: 1rem 0; }
.stats { grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); margin-bottom: 1rem; }
.stats strong { display: block; font-size: 2rem; margin-top: .35rem; }
.platform { display: grid; gap: .75rem; align-content: start; }
.platform-icon { font-size: 2.1rem; }

.login-wrap {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 1rem;
}
.login-card { width: min(430px, 100%); }
.logo { font-size: 3rem; }
.stack { display: grid; gap: .9rem; }
.form-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: .9rem;
  align-items: end;
}
.inline-form { display: flex; gap: .7rem; flex-wrap: wrap; }
label { display: grid; gap: .35rem; color: var(--muted); font-size: .92rem; }
input, select {
  width: 100%;
  color: var(--text);
  background: rgba(0,0,0,.22);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: .82rem .9rem;
  outline: none;
}
select[multiple] { min-height: 145px; }
.check { display: flex; align-items: center; gap: .5rem; }
.check input { width: auto; }

.alert {
  margin: .75rem 0;
  border-radius: 16px;
  padding: .85rem 1rem;
}
.success { background: rgba(32,212,137,.13); border: 1px solid rgba(32,212,137,.32); }
.error { background: rgba(255,100,124,.13); border: 1px solid rgba(255,100,124,.32); }
.danger { color: var(--danger); }
.pill {
  display: inline-flex;
  border-radius: 999px;
  padding: .25rem .6rem;
  font-size: .78rem;
  font-weight: 900;
}
.pill.ok { color: #baffe6; background: rgba(32,212,137,.16); }
.pill.off { color: #ffd1d8; background: rgba(255,100,124,.16); }

.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; min-width: 720px; }
th, td { text-align: left; border-bottom: 1px solid var(--line); padding: .75rem; vertical-align: top; }
th { color: var(--muted); font-size: .82rem; }
.actions { display: flex; gap: .45rem; flex-wrap: wrap; }
code {
  color: #dfe6ff;
  background: rgba(0,0,0,.25);
  border-radius: 8px;
  padding: .12rem .35rem;
}

.result {
  margin: 1rem 0;
  border-color: rgba(0,212,255,.3);
}
.result.hidden { display: none; }
.copy-box {
  display: flex;
  gap: .65rem;
  flex-wrap: wrap;
  align-items: center;
  margin: .8rem 0;
}
.copy-value {
  flex: 1;
  min-width: 220px;
  overflow-wrap: anywhere;
  font-size: 1.25rem;
  font-weight: 900;
  color: white;
  background: rgba(0,0,0,.32);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: .9rem;
}
.center { text-align: center; }

@media (max-width: 720px) {
  .topbar { align-items: flex-start; flex-direction: column; }
  .hero { align-items: stretch; flex-direction: column; }
  .container { width: min(100% - 1rem, 1180px); }
  .card, .login-card, .result { border-radius: 18px; padding: 1rem; }
}
