﻿:root {
  --bg: #0f141d;
  --surface: #151f2c;
  --surface-soft: #1c2736;
  --line: #2f4058;
  --text: #f4f7fb;
  --muted: #b9c7d8;
  --red: #e83434;
  --blue: #56c3ff;
  --radius: 16px;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
}

body {
  font-family: "Manrope", sans-serif;
  color: var(--text);
  min-height: 100vh;
  background: linear-gradient(165deg, #111726, #0f141d 52%);
}

[hidden] {
  display: none !important;
}

.panel-layout {
  width: min(980px, 92vw);
  margin: 0 auto;
  padding: 30px 0 46px;
  display: grid;
  gap: 18px;
}

.auth-card {
  width: min(560px, 100%);
  margin: 40px auto 0;
}

.panel-header {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: center;
  flex-wrap: wrap;
}

.kicker {
  margin: 0 0 8px;
  color: var(--blue);
  letter-spacing: 0.14em;
  font-weight: 700;
  font-size: 0.78rem;
  font-family: "Sora", sans-serif;
}

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

h1 {
  font-size: clamp(1.5rem, 3.2vw, 2.2rem);
}

.panel-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px;
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.03), rgba(255, 255, 255, 0.015));
}

.product-form {
  margin-top: 14px;
  display: grid;
  gap: 10px;
}

label {
  font-weight: 700;
  font-size: 0.95rem;
}

input,
textarea {
  width: 100%;
  background: var(--surface-soft);
  color: var(--text);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 12px 13px;
  font-family: inherit;
}

input:focus,
textarea:focus {
  outline: none;
  border-color: var(--blue);
}

.actions,
.list-head {
  margin-top: 10px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

.auth-actions {
  margin-top: 10px;
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.auth-message {
  margin: 6px 0 0;
  color: #ffb8b8;
  min-height: 1.2em;
}

.btn,
.go-site {
  border: 1px solid transparent;
  border-radius: 12px;
  padding: 9px 14px;
  text-decoration: none;
  color: var(--text);
  font-weight: 700;
  cursor: pointer;
  background: transparent;
}

.btn-primary {
  background: linear-gradient(135deg, var(--red), #ff6a45);
  color: #fff;
}

.btn-ghost,
.go-site {
  border-color: rgba(255, 255, 255, 0.25);
}

.btn-danger {
  border-color: rgba(255, 255, 255, 0.15);
  background: rgba(232, 52, 52, 0.16);
  color: #ffd6d6;
}

.product-table {
  margin-top: 14px;
  display: grid;
  gap: 10px;
}

.item {
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 14px;
  background: var(--surface);
}

.item h3 {
  margin: 0 0 6px;
  font-family: "Sora", sans-serif;
}

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

.panel-item-image {
  width: 100%;
  height: 140px;
  object-fit: cover;
  border-radius: 10px;
  margin-bottom: 10px;
  border: 1px solid var(--line);
}

.item-actions {
  margin-top: 10px;
  display: flex;
  gap: 8px;
}

.empty {
  border: 1px dashed rgba(255, 255, 255, 0.24);
  border-radius: 14px;
  padding: 14px;
  color: var(--muted);
}

@media (max-width: 720px) {
  .panel-card {
    padding: 15px;
  }

  .actions,
  .list-head,
  .auth-actions {
    flex-direction: column;
    align-items: flex-start;
  }
}
