:root {
  color-scheme: light;
  --bg: #f7f5ef;
  --panel: #fffdf8;
  --panel-soft: #f3efe5;
  --line: rgba(56, 68, 48, 0.08);
  --text: #263126;
  --muted: #7d7b72;
  --green: #2f8a52;
  --orange: #ff8a2a;
  --red: #dc5d48;
  --shadow: 0 14px 40px rgba(51, 63, 43, 0.08);
  --radius: 20px;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; background: var(--bg); color: var(--text); font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "PingFang SC", "Helvetica Neue", sans-serif; }
button, input, textarea { font: inherit; }
button { cursor: pointer; border: 0; background: none; }

.shell {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 248px 1fr;
}

.sidebar {
  border-right: 1px solid var(--line);
  padding: 28px 18px;
  background: linear-gradient(180deg, #fffaf2 0%, #f6f2e8 100%);
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.brand {
  display: flex;
  gap: 14px;
  align-items: center;
}

.brand-mark {
  width: 48px;
  height: 48px;
  border-radius: 16px;
  background: linear-gradient(135deg, #ffb24c 0%, #ff7f32 100%);
  color: #fff;
  display: grid;
  place-items: center;
  font-size: 24px;
  font-weight: 800;
  box-shadow: 0 10px 24px rgba(255, 138, 42, 0.22);
}

.brand-title { font-size: 22px; font-weight: 800; }
.brand-sub { font-size: 13px; color: var(--muted); margin-top: 4px; }

.nav {
  display: grid;
  gap: 10px;
}

.nav-item, .ghost-button {
  width: 100%;
  text-align: left;
  padding: 14px 16px;
  border-radius: 16px;
  color: var(--text);
  background: rgba(255, 255, 255, 0.55);
  transition: 160ms ease;
}

.nav-item.active {
  background: linear-gradient(135deg, rgba(47, 138, 82, 0.16), rgba(255, 186, 119, 0.16));
  color: var(--green);
  font-weight: 700;
}

.sidebar-footer { margin-top: auto; }

.main {
  padding: 28px 32px 36px;
  display: grid;
  gap: 20px;
}

.topbar {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: flex-start;
}

h1 {
  margin: 0;
  font-size: 34px;
  line-height: 1.1;
}

#pageSubtitle {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 15px;
}

.overview {
  display: grid;
  grid-auto-flow: column;
  gap: 12px;
}

.overview-card {
  min-width: 116px;
  padding: 14px 16px;
  border-radius: 18px;
  background: var(--panel);
  box-shadow: var(--shadow);
}

.overview-card .count {
  font-size: 28px;
  font-weight: 800;
}

.overview-card .label {
  margin-top: 4px;
  font-size: 13px;
  color: var(--muted);
}

.toolbar {
  display: flex;
  gap: 16px;
  justify-content: space-between;
  align-items: center;
}

.filter-group {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.chip {
  padding: 10px 16px;
  border-radius: 999px;
  background: #fff;
  border: 1px solid var(--line);
  color: var(--muted);
}

.chip.active {
  background: rgba(47, 138, 82, 0.14);
  color: var(--green);
  border-color: rgba(47, 138, 82, 0.18);
}

.search-box {
  display: flex;
  align-items: center;
  width: min(360px, 100%);
  background: var(--panel);
  border-radius: 999px;
  box-shadow: var(--shadow);
  padding: 0 18px;
}

.search-box input {
  width: 100%;
  height: 48px;
  border: 0;
  outline: none;
  background: transparent;
}

.list-grid {
  display: grid;
  gap: 18px;
}

.review-card {
  background: var(--panel);
  border-radius: 24px;
  padding: 22px;
  box-shadow: var(--shadow);
  display: grid;
  gap: 18px;
}

.card-header {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: flex-start;
}

.card-title { font-size: 24px; font-weight: 800; line-height: 1.2; }
.card-meta, .card-subtitle { color: var(--muted); font-size: 14px; line-height: 1.5; margin-top: 6px; }

.status-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 84px;
  padding: 8px 14px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 700;
  background: rgba(47, 138, 82, 0.12);
  color: var(--green);
}

.status-badge.pending { background: rgba(255, 138, 42, 0.14); color: var(--orange); }
.status-badge.rejected { background: rgba(220, 93, 72, 0.14); color: var(--red); }
.status-badge.paused { background: rgba(82, 93, 108, 0.12); color: #5e6772; }

.card-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.card-grid > div {
  background: var(--panel-soft);
  border-radius: 16px;
  padding: 12px 14px;
  display: grid;
  gap: 6px;
}

.label {
  font-size: 12px;
  color: var(--muted);
}

.card-grid span:last-child,
.announcement,
.address-text,
.description-text {
  font-size: 15px;
  line-height: 1.6;
  color: var(--text);
}

.card-section {
  display: grid;
  gap: 8px;
}

.card-section.compact { gap: 6px; }

.review-note {
  width: 100%;
  min-height: 90px;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 14px 16px;
  resize: vertical;
  background: #fff;
  outline: none;
}

.card-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.approve-button,
.reject-button,
.pause-button,
.primary-button {
  height: 46px;
  padding: 0 20px;
  border-radius: 16px;
  font-weight: 700;
}

.approve-button, .primary-button {
  background: linear-gradient(135deg, #2f8a52, #45a967);
  color: #fff;
}

.reject-button {
  background: rgba(220, 93, 72, 0.12);
  color: var(--red);
}

.pause-button {
  background: rgba(255, 186, 119, 0.18);
  color: #8a5d1c;
}

.shop-layout {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 18px;
}

.shop-gallery {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
  align-content: start;
}

.shop-gallery img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 16px;
  display: block;
}

.shop-gallery img:first-child {
  grid-column: 1 / -1;
  aspect-ratio: 1.4;
}

.tag-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tag-pill {
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(47, 138, 82, 0.1);
  color: var(--green);
  font-size: 13px;
}

.empty-state {
  padding: 72px 28px;
  border-radius: 24px;
  background: var(--panel);
  box-shadow: var(--shadow);
  text-align: center;
  color: var(--muted);
}

.login-overlay {
  position: fixed;
  inset: 0;
  display: grid;
  place-items: center;
  background: rgba(22, 28, 18, 0.22);
  backdrop-filter: blur(18px);
}

.login-overlay.hidden { display: none; }

.login-card {
  width: min(420px, calc(100vw - 32px));
  background: var(--panel);
  border-radius: 28px;
  padding: 28px;
  box-shadow: 0 24px 80px rgba(25, 35, 22, 0.18);
  display: grid;
  gap: 14px;
}

.login-card h2 { margin: 0; font-size: 28px; }
.login-card p { margin: 0; color: var(--muted); line-height: 1.6; }

.login-logo {
  width: 96px;
  height: 96px;
  border-radius: 28px;
  display: grid;
  place-items: center;
  font-size: 24px;
  font-weight: 800;
  color: #fff;
  background: linear-gradient(135deg, #ffb24c 0%, #ff7f32 100%);
}

.login-card input {
  height: 52px;
  border-radius: 16px;
  border: 1px solid var(--line);
  padding: 0 16px;
  outline: none;
}

.error-text {
  min-height: 20px;
  font-size: 13px;
  color: var(--red);
}

@media (max-width: 1180px) {
  .shell { grid-template-columns: 1fr; }
  .sidebar { border-right: 0; border-bottom: 1px solid var(--line); }
  .sidebar-footer { margin-top: 0; }
  .topbar { flex-direction: column; }
  .overview { grid-auto-flow: row; grid-template-columns: repeat(2, minmax(0, 1fr)); width: 100%; }
  .shop-layout { grid-template-columns: 1fr; }
  .card-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 720px) {
  .main { padding: 20px 16px 32px; }
  .toolbar { flex-direction: column; align-items: stretch; }
  .search-box { width: 100%; }
  .card-grid { grid-template-columns: 1fr; }
  .card-actions { display: grid; grid-template-columns: 1fr; }
}
