:root {
  --bg-0: #091017;
  --bg-1: #0f1a26;
  --bg-2: #16273a;
  --card: rgba(16, 29, 43, 0.72);
  --line: rgba(157, 201, 255, 0.18);
  --text: #e9f3ff;
  --muted: #94acc4;
  --accent: #58f2cf;
  --warn: #ff7676;
  --shadow: 0 20px 60px rgba(0, 0, 0, 0.35);
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
}

body {
  font-family: "Space Grotesk", sans-serif;
  color: var(--text);
  background:
    radial-gradient(1000px 500px at 15% 0%, #19314e 0%, transparent 65%),
    radial-gradient(900px 600px at 90% 15%, #1e425f 0%, transparent 55%),
    linear-gradient(160deg, var(--bg-0), var(--bg-1) 45%, var(--bg-2));
  overflow-x: hidden;
}

.bg-orb {
  position: fixed;
  border-radius: 999px;
  filter: blur(70px);
  opacity: 0.28;
  pointer-events: none;
}

.orb-a {
  width: 320px;
  height: 320px;
  background: #3cffcc;
  left: -80px;
  top: 120px;
}

.orb-b {
  width: 360px;
  height: 360px;
  background: #66b9ff;
  right: -130px;
  top: 220px;
}

.grain {
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image: radial-gradient(rgba(255, 255, 255, 0.06) 0.8px, transparent 0);
  background-size: 3px 3px;
  opacity: 0.12;
}

.panel-wrap {
  width: min(1220px, 92vw);
  margin: 36px auto 42px;
  display: grid;
  gap: 16px;
}

.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: var(--shadow);
  backdrop-filter: blur(8px);
  padding: 18px;
}

.hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.eyebrow {
  margin: 0;
  color: var(--accent);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 700;
  font-size: 0.76rem;
}

h1,
h2 {
  margin: 6px 0 8px;
}

h1 {
  font-size: clamp(1.55rem, 3.8vw, 2.4rem);
}

h2 {
  font-size: 1.15rem;
}

.muted {
  color: var(--muted);
  margin: 0;
}

.status-block {
  display: grid;
  gap: 10px;
  justify-items: end;
}

.chip {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 6px 11px;
  font-size: 0.8rem;
  color: var(--muted);
}

.auth-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
  margin-top: 12px;
}

.grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.card-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
}

.form-block {
  margin: 12px 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.form-block input:nth-child(3) {
  min-width: 0;
}

.form-block button {
  grid-column: 1 / -1;
}

input,
button {
  border: 1px solid var(--line);
  background: rgba(9, 21, 34, 0.74);
  color: var(--text);
  border-radius: 11px;
  padding: 10px 11px;
  font-family: inherit;
}

input:focus,
button:focus {
  outline: none;
  border-color: rgba(94, 247, 211, 0.9);
  box-shadow: 0 0 0 2px rgba(94, 247, 211, 0.2);
}

.btn {
  cursor: pointer;
  transition: transform 0.18s ease, border-color 0.18s ease, background 0.18s ease;
}

.btn:hover {
  transform: translateY(-1px);
  border-color: rgba(88, 242, 207, 0.72);
}

.btn-accent {
  background: linear-gradient(140deg, #49d7ba, #73baff);
  color: #021017;
  font-weight: 700;
  border: none;
}

.btn-ghost {
  background: rgba(10, 19, 31, 0.56);
  color: var(--muted);
}

.action-btn {
  font-size: 0.78rem;
  padding: 7px 9px;
}

.action-danger {
  border-color: rgba(255, 118, 118, 0.45);
  color: #ffadad;
}

.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 12px;
}

table {
  width: 100%;
  border-collapse: collapse;
  min-width: 560px;
}

th,
td {
  padding: 10px 11px;
  text-align: left;
  border-bottom: 1px solid rgba(157, 201, 255, 0.14);
  font-size: 0.9rem;
}

th {
  color: var(--muted);
  font-weight: 500;
}

tr:last-child td {
  border-bottom: none;
}

.log-box {
  margin: 8px 0 0;
  max-height: 180px;
  overflow: auto;
  background: rgba(5, 12, 20, 0.65);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 12px;
  color: #b7cae0;
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.8rem;
  line-height: 1.45;
  white-space: pre-wrap;
}

.reveal {
  opacity: 0;
  transform: translateY(14px);
  animation: rise 0.55s ease forwards;
}

.delay-1 { animation-delay: 0.08s; }
.delay-2 { animation-delay: 0.15s; }
.delay-3 { animation-delay: 0.22s; }
.delay-4 { animation-delay: 0.28s; }

@keyframes rise {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 1080px) {
  .grid {
    grid-template-columns: 1fr;
  }

  .form-block {
    grid-template-columns: 1fr;
  }

  .hero {
    flex-direction: column;
    align-items: flex-start;
  }

  .status-block {
    width: 100%;
    justify-items: start;
  }
}
