@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@400;500;600;700&display=swap');

:root {
  --bg: #0b0d14;
  --card: #121929;
  --card-2: #1a2439;
  --line: #2b3857;
  --text: #eef4ff;
  --muted: #9eb0d8;
  --accent: #3ce9c6;
  --accent-2: #7ebdff;
  --danger: #ff6b6b;
  --ok: #67f2a2;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: 'Space Grotesk', 'Segoe UI', sans-serif;
  background: radial-gradient(circle at 12% 18%, #19233a 0, transparent 42%), radial-gradient(circle at 90% 82%, #233b3a 0, transparent 48%), var(--bg);
  color: var(--text);
}

.background-glow {
  position: fixed;
  width: 280px;
  height: 280px;
  border-radius: 50%;
  filter: blur(80px);
  pointer-events: none;
  opacity: 0.35;
}

.background-glow-a {
  background: #2cc3ff;
  top: -60px;
  right: 10%;
}

.background-glow-b {
  background: #24e9b8;
  bottom: -90px;
  left: 7%;
}

.shell {
  position: relative;
  width: min(1160px, 92vw);
  margin: 30px auto 48px;
}

.hero {
  padding: 22px 0;
}

.eyebrow {
  margin: 0;
  color: var(--accent);
  text-transform: uppercase;
  font-size: 0.78rem;
  letter-spacing: 0.14em;
}

h1 {
  margin: 8px 0;
  font-size: clamp(2rem, 3vw, 3rem);
  letter-spacing: -0.03em;
}

.subtitle {
  margin: 0;
  color: var(--muted);
}

.card {
  background: linear-gradient(155deg, rgba(255, 255, 255, 0.02), rgba(255, 255, 255, 0.01)), var(--card);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 18px;
  margin-bottom: 16px;
  backdrop-filter: blur(4px);
}

.toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.whoami {
  margin: 4px 0 0;
  font-size: 1.05rem;
  font-weight: 600;
}

.muted {
  margin: 0;
  color: var(--muted);
}

.status {
  margin-top: 14px;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid transparent;
}

.status.ok {
  background: rgba(103, 242, 162, 0.12);
  border-color: rgba(103, 242, 162, 0.45);
  color: var(--ok);
}

.status.error {
  background: rgba(255, 107, 107, 0.11);
  border-color: rgba(255, 107, 107, 0.45);
  color: #ffc2c2;
}

.hidden {
  display: none !important;
}

.panel-grid {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.grid-form {
  display: grid;
  gap: 12px;
}

.upload-progress {
  display: grid;
  gap: 6px;
  margin-top: 2px;
}

.upload-progress progress {
  width: 100%;
  height: 12px;
  border-radius: 999px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: #0a1220;
}

.upload-progress progress::-webkit-progress-bar {
  background: #0a1220;
}

.upload-progress progress::-webkit-progress-value {
  background: linear-gradient(145deg, var(--accent), var(--accent-2));
}

.upload-progress progress::-moz-progress-bar {
  background: linear-gradient(145deg, var(--accent), var(--accent-2));
}

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

.user-create-grid {
  grid-template-columns: 1.25fr 1.25fr 0.8fr auto;
  align-items: end;
}

label {
  display: grid;
  gap: 6px;
}

label > span {
  color: var(--muted);
  font-size: 0.82rem;
}

input,
select,
button,
textarea {
  font-family: inherit;
  font-size: 0.95rem;
}

input,
select,
textarea {
  width: 100%;
  border: 1px solid var(--line);
  background: #0d1424;
  color: var(--text);
  border-radius: 10px;
  padding: 9px 11px;
  outline: none;
  transition: border-color 160ms ease, box-shadow 160ms ease;
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--accent-2);
  box-shadow: 0 0 0 3px rgba(126, 189, 255, 0.14);
}

button {
  border: 1px solid transparent;
  border-radius: 10px;
  padding: 10px 14px;
  color: #05131f;
  background: linear-gradient(145deg, var(--accent), var(--accent-2));
  font-weight: 700;
  cursor: pointer;
}

button:hover {
  filter: brightness(1.05);
}

button.secondary {
  color: var(--text);
  background: #27385b;
}

button.danger {
  color: #ffeaea;
  background: #70323c;
}

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

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

table {
  width: 100%;
  border-collapse: collapse;
}

th,
td {
  text-align: left;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  padding: 10px 8px;
  vertical-align: top;
  font-size: 0.9rem;
}

th {
  color: var(--muted);
  font-weight: 600;
}

.action-row {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.user-row-controls {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
}

.code-box {
  margin: 0;
  background: #0a1220;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 12px;
  white-space: pre-wrap;
  word-break: break-word;
  color: #dff7ff;
  min-height: 84px;
}

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

h2,
h3 {
  margin-top: 0;
}

h3 {
  margin-bottom: 8px;
  color: #c8dbff;
}

@media (max-width: 980px) {
  .panel-grid,
  .inline-grid,
  .examples-grid,
  .user-create-grid {
    grid-template-columns: 1fr;
  }
}
