body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font-body);
  color: var(--ink);
  background: linear-gradient(135deg, #a0c4ff 0%, #bdb2ff 35%, #ffc6ff 70%, #fdffb6 100%);
  padding: 20px;
}

.wrap { max-width: 1240px; margin: 0 auto; }

.topbar {
  background: rgba(255, 255, 255, 0.95);
  border-radius: 999px;
  padding: 12px 22px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  border: 3px solid #fff;
  box-shadow: 0 8px 0 rgba(43, 16, 85, 0.14);
  margin-bottom: 20px;
}

.topbar-title { font-family: var(--font-display); font-size: 1.5rem; font-weight: 700; }
.topbar-right { display: flex; gap: 10px; align-items: center; }
.admin-user-label { font-weight: 900; }

.card {
  background: rgba(255, 255, 255, 0.95);
  border-radius: 28px;
  padding: 22px;
  border: 3px solid #fff;
  box-shadow: 0 10px 0 rgba(43, 16, 85, 0.14);
  margin-bottom: 20px;
}

.warn-banner {
  background: #fff3cd;
  color: #664d03;
  border: 3px solid #ffca2c;
  border-radius: 20px;
  padding: 14px 20px;
  margin-bottom: 20px;
  font-weight: 700;
  box-shadow: 0 6px 0 rgba(102, 77, 3, 0.12);
}

.badge-you {
  display: inline-block;
  margin-left: 8px;
  padding: 2px 9px;
  border-radius: 999px;
  background: #ede9fe;
  color: #5b21b6;
  font-size: 0.78rem;
  font-weight: 800;
}

.login-card { max-width: 440px; margin: 48px auto; }
.card-header { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 10px; margin-bottom: 14px; }
.card h2 { font-family: var(--font-display); margin: 0; }
.card h3 { font-family: var(--font-display); margin: 22px 0 6px; }

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 14px;
}

.stat-box {
  background: #faf5ff;
  border: 3px solid #d8b4fe;
  border-radius: 22px;
  padding: 16px;
  text-align: center;
}

.stat-val { font-family: var(--font-display); font-size: 2rem; color: #8338ec; }
.stat-lbl { font-weight: 800; color: var(--muted); font-size: 0.9rem; }

input, select, button { font-family: var(--font-body); }
label { font-weight: 800; display: block; }

input[type="text"],
input[type="password"],
input[type="url"],
input[type="number"],
select {
  width: 100%;
  padding: 11px 14px;
  border-radius: 14px;
  border: 2px solid #d8b4fe;
  font-weight: 700;
  margin-top: 4px;
  background: #fff;
}

.btn { background: linear-gradient(135deg, #8338ec, #ff4d8d); font-size: 1rem; padding: 10px 18px; }
.btn-full { width: 100%; margin-top: 16px; }
.btn-cyan { background: linear-gradient(135deg, #00c2ff, #3a86ff); }
.btn-mint { background: linear-gradient(135deg, #06d6a0, #2ec4b6); }
.btn-red { background: linear-gradient(135deg, #ef233c, #d90429); }

.preset-row { display: flex; gap: 6px; margin-top: 6px; }
.search-row { margin-top: 16px; display: flex; gap: 10px; }
.create-box { margin-top: 16px; padding: 16px; background: #faf5ff; border-radius: 20px; border: 2px solid #e9d5ff; }
.create-title { font-family: var(--font-display); }
.spacer-sm { height: 12px; }
.inline-msg { margin-left: 10px; font-weight: 800; }
.ok-msg { color: #059669; }
.err-inline { color: #d00000; }
.error-msg { color: #d00000; font-weight: 800; margin-top: 10px; text-align: center; }

table { width: 100%; border-collapse: collapse; margin-top: 10px; }
th, td { text-align: left; padding: 10px 8px; border-bottom: 1px solid #ede9fe; font-size: 0.94rem; }
th { font-family: var(--font-display); color: var(--muted); }

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

.item-card {
  background: #fff;
  border: 2px solid #e9d5ff;
  border-radius: 22px;
  padding: 14px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 10px;
}

.item-card img {
  width: 100%;
  height: 165px;
  object-fit: cover;
  border-radius: 14px;
  border: 2px solid #ffd60a;
}

.item-field-label { font-weight: 800; font-size: 0.82rem; display: block; margin-top: 8px; }
.item-actions { display: flex; gap: 8px; justify-content: space-between; }

.form-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 12px;
  align-items: end;
}
