:root {
  --bg: #050505;
  --panel: rgba(11, 11, 11, 0.88);
  --line: rgba(255, 255, 255, 0.14);
  --line-strong: rgba(255, 255, 255, 0.32);
  --text: #f2f2f2;
  --text-soft: #b4b4b4;
  --danger: #ef6f6f;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
}

body {
  font-family: "Space Grotesk", sans-serif;
  color: var(--text);
  background: linear-gradient(180deg, #030303 0%, #080808 100%);
  padding: 1rem;
}

.dot-overlay {
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image: radial-gradient(rgba(255, 255, 255, 0.08) 0.7px, transparent 0.7px);
  background-size: 4px 4px;
  opacity: 0.5;
  z-index: -2;
}

.admin-shell {
  width: min(980px, 100%);
  margin: 0 auto;
  padding: 1rem 0 2rem;
}

.admin-card {
  border: 1px solid var(--line);
  border-radius: 24px;
  background: var(--panel);
  backdrop-filter: blur(12px);
  box-shadow: 0 24px 48px rgba(0, 0, 0, 0.36);
  padding: clamp(1rem, 3vw, 1.5rem);
}

.admin-card + .admin-card {
  margin-top: 0.8rem;
}

.eyebrow {
  margin: 0;
  color: var(--text-soft);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.72rem;
  font-weight: 700;
}

h1,
h2 {
  margin: 0.45rem 0 0;
  font-family: "Sora", sans-serif;
}

h1 {
  font-size: clamp(1.45rem, 5vw, 2rem);
}

h2 {
  font-size: clamp(1.2rem, 4vw, 1.6rem);
}

.copy {
  color: var(--text-soft);
  margin-top: 0.6rem;
}

.stack {
  display: grid;
  gap: 0.9rem;
}

label {
  display: grid;
  gap: 0.38rem;
  font-size: 0.82rem;
  color: var(--text-soft);
}

input,
textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.03);
  color: var(--text);
  font: inherit;
  padding: 0.62rem 0.72rem;
}

textarea {
  resize: vertical;
}

input:focus-visible,
textarea:focus-visible,
.btn:focus-visible {
  outline: 2px solid rgba(255, 255, 255, 0.45);
  outline-offset: 2px;
}

.toolbar {
  display: flex;
  justify-content: space-between;
  gap: 0.8rem;
  align-items: flex-start;
  margin-bottom: 0.75rem;
}

.toolbar-actions {
  display: flex;
  gap: 0.45rem;
}

fieldset {
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 0.8rem;
  margin: 0;
}

legend {
  padding: 0 0.45rem;
  color: #d9d9d9;
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.grid {
  display: grid;
  gap: 0.7rem;
}

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

.rows {
  display: grid;
  gap: 0.65rem;
}

.row {
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 0.7rem;
  display: grid;
  gap: 0.6rem;
  background: rgba(255, 255, 255, 0.02);
}

.row-social {
  grid-template-columns: 1fr 2fr auto;
  align-items: end;
}

.row-link {
  grid-template-columns: repeat(5, minmax(0, 1fr)) auto;
  align-items: end;
}

.check {
  align-self: center;
  gap: 0.3rem;
  grid-template-columns: auto 1fr;
  display: inline-grid;
}

.check input {
  width: 18px;
  height: 18px;
  margin: 0;
  padding: 0;
}

.btn {
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.02);
  color: var(--text);
  font: inherit;
  font-weight: 700;
  padding: 0.48rem 0.86rem;
  cursor: pointer;
}

.btn:hover {
  border-color: var(--line-strong);
  background: rgba(255, 255, 255, 0.08);
}

.btn-primary {
  background: #efefef;
  color: #090909;
  border-color: #efefef;
}

.btn-primary:hover {
  background: #fff;
}

.btn-danger {
  border-color: rgba(239, 111, 111, 0.45);
  color: #ffc7c7;
}

.btn-danger:hover {
  border-color: rgba(239, 111, 111, 0.8);
  background: rgba(239, 111, 111, 0.14);
}

.actions {
  display: flex;
  justify-content: flex-end;
}

.status {
  margin: 0;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 0.52rem 0.64rem;
  font-size: 0.8rem;
  color: #dbdbdb;
  background: rgba(255, 255, 255, 0.03);
}

.status-error {
  border-color: rgba(239, 111, 111, 0.45);
  color: #ffc7c7;
}

.hint {
  margin: 0 0 0.6rem;
  color: var(--text-soft);
  font-size: 0.78rem;
}

@media (max-width: 860px) {
  .row-link {
    grid-template-columns: 1fr 1fr;
  }

  .row-social {
    grid-template-columns: 1fr;
  }

  .toolbar {
    flex-direction: column;
  }

  .actions {
    justify-content: stretch;
  }

  .actions .btn {
    width: 100%;
  }

  .two-up {
    grid-template-columns: 1fr;
  }
}
