:root {
  --bg: #0a0d11;
  --panel: #131921;
  --panel-soft: #181f28;
  --line: #2b3441;
  --ink: #eef3fb;
  --muted: #9facbd;
  --accent: #f24f2b;
  --ok: #22c55e;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: radial-gradient(circle at 10% -10%, #2a323f, transparent 30%), var(--bg);
  color: var(--ink);
  font-family: "Manrope", sans-serif;
}

.admin-wrap {
  width: min(1280px, 94vw);
  margin: 0 auto;
  padding: 1.2rem 0 2rem;
}

.panel {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 1rem;
}

.login-panel {
  max-width: 460px;
  margin: 8vh auto;
}

h1,
h2,
h3,
h4 {
  margin: 0 0 0.7rem;
  font-family: "Bebas Neue", sans-serif;
  letter-spacing: 0.06em;
}

h1 {
  font-size: 2rem;
}

h2 {
  font-size: 1.9rem;
}

h3 {
  font-size: 1.55rem;
}

h4 {
  font-size: 1.3rem;
}

p,
label,
input,
textarea,
button,
a {
  font-size: 0.92rem;
}

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

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

.form-grid label,
form label {
  display: grid;
  gap: 0.4rem;
  color: var(--muted);
}

input,
textarea,
button {
  font: inherit;
  border-radius: 10px;
  border: 1px solid var(--line);
}

input,
textarea {
  background: var(--panel-soft);
  color: var(--ink);
  padding: 0.6rem 0.7rem;
}

textarea {
  resize: vertical;
}

button,
a {
  background: var(--accent);
  color: #fff;
  border: 1px solid #cf3f1d;
  padding: 0.62rem 0.85rem;
  text-decoration: none;
  text-align: center;
  cursor: pointer;
}

button:hover,
a:hover {
  filter: brightness(1.06);
}

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

.hidden {
  display: none;
}

.top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
}

.top-actions {
  display: flex;
  gap: 0.5rem;
}

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

.products-list {
  display: grid;
  gap: 0.6rem;
  margin-bottom: 1rem;
}

.product-edit {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 0.7rem;
  display: grid;
  gap: 0.6rem;
  background: #10161e;
}

.product-edit .row {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 0.45rem;
}

.product-edit .actions {
  display: flex;
  gap: 0.4rem;
}

.product-edit .actions button {
  flex: 1;
}

.danger {
  background: #8f2020;
  border-color: #6f1717;
}

@media (max-width: 980px) {
  .form-grid {
    grid-template-columns: 1fr;
  }

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

  .top {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.6rem;
  }
}
