:root {
  --bg: #070c1b;
  --panel: rgba(13, 18, 38, 0.76);
  --card: rgba(16, 22, 44, 0.92);
  --stroke: rgba(255, 255, 255, 0.08);
  --accent: #52d7b3;
  --accent-2: #7aa1ff;
  --text: #e9ecf5;
  --muted: #a2acc2;
  --danger: #ff5c8a;
  --shadow: 0 12px 48px rgba(0, 0, 0, 0.25);
  --radius: 16px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Manrope", "SF Pro Display", "Segoe UI", "Inter", system-ui, -apple-system, sans-serif;
  color: var(--text);
  background: radial-gradient(120% 120% at 10% 10%, rgba(82, 215, 179, 0.15), transparent),
    radial-gradient(120% 120% at 80% 20%, rgba(122, 161, 255, 0.12), transparent), var(--bg);
  min-height: 100vh;
}

.layout {
  width: min(1100px, 92vw);
  margin: 48px auto 64px;
  position: relative;
  z-index: 1;
  display: grid;
  gap: 24px;
}

.bg-accent {
  position: fixed;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(28% 24% at 18% 30%, rgba(82, 215, 179, 0.2), transparent),
    radial-gradient(24% 20% at 78% 12%, rgba(122, 161, 255, 0.2), transparent);
  filter: blur(40px);
  opacity: 0.75;
}

.bg-grid {
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image: linear-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.05) 1px, transparent 1px);
  background-size: 80px 80px;
  opacity: 0.15;
}

.hero {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 18px 14px;
  align-items: center;
}

.hero h1 {
  margin: 0;
  letter-spacing: -0.02em;
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 12px;
  color: var(--muted);
  margin: 0 0 4px;
}

.logo-mark {
  width: 64px;
  height: 64px;
  border-radius: 20px;
  background: linear-gradient(135deg, rgba(82, 215, 179, 0.25), rgba(122, 161, 255, 0.25));
  border: 1px solid var(--stroke);
  display: grid;
  place-items: center;
  position: relative;
  box-shadow: var(--shadow);
}

.logo-mark .dot,
.logo-mark .dash {
  display: block;
  background: #fff;
  border-radius: 999px;
}

.logo-mark .dot {
  width: 12px;
  height: 12px;
}

.logo-mark .dash {
  width: 28px;
  height: 8px;
  margin-top: 4px;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
}

.card {
  background: var(--card);
  border: 1px solid var(--stroke);
  border-radius: 22px;
  padding: 24px;
  box-shadow: var(--shadow);
  backdrop-filter: blur(10px);
}

.card-head {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: center;
  margin-bottom: 12px;
}

.card h2 {
  margin: 4px 0 6px;
}

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

.subtle {
  font-size: 13px;
}

.stack {
  display: grid;
  gap: 12px;
}

.field {
  display: grid;
  gap: 6px;
}

.field span {
  font-size: 14px;
  color: var(--muted);
}

input,
select {
  width: 100%;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid var(--stroke);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
  font-size: 15px;
  outline: none;
  transition: border 0.15s ease, box-shadow 0.15s ease;
}

select {
  appearance: none;
}

input:focus,
select:focus {
  border-color: rgba(82, 215, 179, 0.5);
  box-shadow: 0 0 0 4px rgba(82, 215, 179, 0.12);
}

button {
  cursor: pointer;
  border: none;
  border-radius: 12px;
  font-weight: 600;
  font-size: 15px;
  padding: 12px 14px;
  transition: transform 0.12s ease, box-shadow 0.2s ease, background 0.2s ease;
}

button:active {
  transform: translateY(1px);
}

.primary {
  background: linear-gradient(120deg, var(--accent), var(--accent-2));
  color: #0c1224;
  box-shadow: 0 10px 30px rgba(82, 215, 179, 0.35);
}

.ghost {
  background: rgba(255, 255, 255, 0.06);
  color: var(--text);
  border: 1px solid var(--stroke);
}

.inline-form {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
  align-items: center;
  margin-top: 10px;
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 16px;
  margin-top: 16px;
}

.panel-block {
  background: var(--panel);
  border: 1px solid var(--stroke);
  border-radius: 16px;
  padding: 16px;
  display: grid;
  gap: 12px;
}

.block-head {
  display: flex;
  flex-direction: column;
}

.toggle {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  font-weight: 600;
  cursor: pointer;
  margin-block-start: 12px;
}

.toggle input {
  display: none;
}

.track {
  width: 52px;
  height: 28px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid var(--stroke);
  display: inline-flex;
  align-items: center;
  padding: 4px;
  transition: background 0.2s ease, border 0.2s ease;
}

.thumb {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #fff;
  transform: translateX(0);
  transition: transform 0.2s ease, background 0.2s ease;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.25);
}

.toggle input:checked + .track {
  background: rgba(82, 215, 179, 0.2);
  border-color: rgba(82, 215, 179, 0.8);
}

.toggle input:checked + .track .thumb {
  transform: translateX(22px);
  background: linear-gradient(120deg, var(--accent), var(--accent-2));
}

.toggle-label {
  font-size: 14px;
  color: var(--muted);
}

.status-actions {
  display: flex;
  gap: 10px;
}

.pill {
  padding: 12px 24px;
  border-radius: 999px;
  font-weight: 700;
  height: fit-content;
}

.success {
  background: rgba(82, 215, 179, 0.12);
  color: var(--accent);
  border: 1px solid rgba(82, 215, 179, 0.4);
}

.danger {
  background: rgba(255, 92, 138, 0.12);
  color: var(--danger);
  border: 1px solid rgba(255, 92, 138, 0.4);
}

.user-box {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--stroke);
}

.user-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 6px rgba(82, 215, 179, 0.15);
}

.flash {
  position: fixed;
  bottom: 22px;
  right: 22px;
  padding: 12px 16px;
  border-radius: 12px;
  background: var(--card);
  border: 1px solid var(--stroke);
  box-shadow: var(--shadow);
  color: var(--text);
  max-width: 320px;
}

.hidden {
  display: none;
}

@media (max-width: 720px) {
  .layout {
    width: 94vw;
    margin: 32px auto 48px;
  }

  .hero {
    grid-template-columns: 1fr;
  }

  .card-head,
  .block-head,
  .inline-form {
    flex-direction: column;
    align-items: flex-start;
  }

  .inline-form {
    grid-template-columns: 1fr;
    width: 100%;
  }

  .status-actions {
    flex-direction: column;
    width: 100%;
  }
}
