:root {
  --bg: #0e1224;
  --bg-soft: #151b33;
  --panel: #141c32;
  --panel-2: #1c2743;
  --text: #f8fafc;
  --muted: #9aa7bd;
  --accent: #f43f5e;
  --accent-2: #38bdf8;
  --warning: #fbbf24;
  --danger: #fb7185;
  --success: #4ade80;
  --border: rgba(255, 255, 255, 0.1);
  --shadow: rgba(0, 0, 0, 0.35);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(circle at 20% 10%, rgba(244, 63, 94, 0.2), transparent 28%),
    radial-gradient(circle at 80% 0%, rgba(56, 189, 248, 0.18), transparent 24%),
    linear-gradient(180deg, #0e1224 0%, #111827 100%);
  color: var(--text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

a {
  color: inherit;
}

.nav {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
  padding: 16px 7vw;
  border-bottom: 1px solid var(--border);
  background: rgba(14, 18, 36, 0.82);
  backdrop-filter: blur(14px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  font-weight: 900;
  text-decoration: none;
  letter-spacing: -0.02em;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--accent), #fb923c);
  color: white;
  box-shadow: 0 12px 28px rgba(244, 63, 94, 0.3);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}

.nav-links a {
  color: var(--muted);
  text-decoration: none;
  font-size: 14px;
  font-weight: 700;
}

.nav-links a:hover {
  color: var(--text);
}

.nav-links .nav-pill {
  color: #06111f;
  background: var(--text);
  border-radius: 999px;
  padding: 9px 14px;
}

.container {
  width: min(1120px, 92vw);
  margin: 42px auto 70px;
}

.hero,
.card,
.product-card,
.admin-row {
  background: linear-gradient(180deg, rgba(28, 39, 67, 0.92), rgba(20, 28, 50, 0.95));
  border: 1px solid var(--border);
  box-shadow: 0 24px 70px var(--shadow);
}

.hero,
.card {
  border-radius: 28px;
  padding: clamp(24px, 4vw, 44px);
  margin-bottom: 24px;
}

.split {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(280px, 0.95fr);
  align-items: center;
  gap: 34px;
}

.hero-art {
  min-height: 360px;
  display: grid;
  place-items: center;
  background:
    radial-gradient(circle at center, rgba(244, 63, 94, 0.18), transparent 55%),
    rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border);
  border-radius: 28px;
  overflow: hidden;
}

.hero-art img {
  width: min(100%, 460px);
  height: auto;
  display: block;
}

.narrow {
  max-width: 560px;
  margin-left: auto;
  margin-right: auto;
}

.eyebrow {
  color: var(--accent-2);
  text-transform: uppercase;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.16em;
  margin: 0 0 12px;
}

h1 {
  font-size: clamp(36px, 6vw, 64px);
  line-height: 0.98;
  margin: 0 0 18px;
  letter-spacing: -0.055em;
}

h2 {
  margin: 0 0 10px;
  font-size: 20px;
  letter-spacing: -0.025em;
}

p {
  color: var(--muted);
  line-height: 1.72;
}

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

.small-note {
  color: var(--muted);
  font-size: 14px;
  margin-top: 16px;
}

code,
pre {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
}

code {
  color: var(--accent-2);
  background: rgba(56, 189, 248, 0.1);
  padding: 2px 6px;
  border-radius: 7px;
}

.actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 26px;
}

.actions.compact {
  margin-top: 0;
}

.button,
button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  background: linear-gradient(135deg, var(--accent), #fb923c);
  color: white;
  border: none;
  border-radius: 14px;
  padding: 12px 18px;
  font-weight: 900;
  text-decoration: none;
  cursor: pointer;
  box-shadow: 0 14px 28px rgba(244, 63, 94, 0.23);
}

.button.secondary {
  color: var(--text);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border);
  box-shadow: none;
}

button:hover,
.button:hover {
  transform: translateY(-1px);
}

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

.search-form {
  grid-template-columns: 1fr auto;
  margin: 20px 0;
}

label {
  color: var(--muted);
  font-size: 14px;
  font-weight: 800;
}

input,
textarea {
  width: 100%;
  background: rgba(4, 9, 20, 0.66);
  border: 1px solid var(--border);
  color: var(--text);
  border-radius: 14px;
  padding: 13px 14px;
  outline: none;
}

textarea {
  min-height: 120px;
  resize: vertical;
}

input:focus,
textarea:focus {
  border-color: rgba(56, 189, 248, 0.7);
  box-shadow: 0 0 0 4px rgba(56, 189, 248, 0.09);
}

.alert {
  border: 1px solid var(--border);
  background: rgba(148, 163, 184, 0.08);
  color: var(--text);
  border-radius: 16px;
  padding: 14px 16px;
  margin: 16px 0;
}

.alert.error {
  border-color: rgba(251, 113, 133, 0.5);
  color: #fecdd3;
  background: rgba(251, 113, 133, 0.1);
}

.alert.success {
  border-color: rgba(74, 222, 128, 0.45);
  color: #bbf7d0;
  background: rgba(74, 222, 128, 0.1);
}

.alert.warning {
  border-color: rgba(251, 191, 36, 0.45);
  color: #fde68a;
  background: rgba(251, 191, 36, 0.1);
}

.debug {
  margin: 20px 0 0;
  border: 1px dashed rgba(56, 189, 248, 0.55);
  background: rgba(56, 189, 248, 0.08);
  border-radius: 16px;
  padding: 14px;
}

.debug strong {
  display: block;
  color: var(--accent-2);
  margin-bottom: 8px;
}

pre {
  white-space: pre-wrap;
  word-break: break-word;
  margin: 0;
  color: #dbeafe;
}

.section-head {
  margin: 0 0 24px;
}

.section-head h1 {
  margin-bottom: 12px;
}

.section-head p {
  max-width: 780px;
}

.section-head.with-action {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 22px;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.product-card {
  overflow: hidden;
  border-radius: 24px;
}

.product-card img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  background: var(--bg-soft);
  display: block;
}

.product-body {
  padding: 20px;
}

.product-body p {
  min-height: 82px;
  margin: 0 0 16px;
}

.product-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.price {
  color: white;
  font-size: 22px;
  font-weight: 950;
  letter-spacing: -0.03em;
}

.admin-list {
  display: grid;
  gap: 14px;
}

.admin-row {
  display: grid;
  grid-template-columns: 120px 1fr auto;
  align-items: center;
  gap: 18px;
  border-radius: 22px;
  padding: 14px;
}

.admin-row img {
  width: 120px;
  height: 90px;
  border-radius: 16px;
  object-fit: cover;
  background: var(--bg-soft);
}

.admin-row p {
  margin: 0 0 8px;
}

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

table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 18px;
  overflow: hidden;
  border-radius: 16px;
}

th,
td {
  border-bottom: 1px solid var(--border);
  padding: 14px;
  text-align: left;
  vertical-align: top;
}

th {
  color: var(--accent-2);
  background: rgba(56, 189, 248, 0.08);
}

tr:last-child td {
  border-bottom: none;
}

@media (max-width: 900px) {
  .split,
  .product-grid {
    grid-template-columns: 1fr;
  }

  .hero-art {
    min-height: 260px;
  }

  .section-head.with-action,
  .admin-row {
    align-items: stretch;
    grid-template-columns: 1fr;
  }

  .admin-row img {
    width: 100%;
    height: 180px;
  }
}

@media (max-width: 640px) {
  .nav {
    align-items: flex-start;
    flex-direction: column;
  }

  .search-form {
    grid-template-columns: 1fr;
  }
}
