:root {
  --bg: #f4f6fb;
  --panel: #ffffff;
  --panel-weak: #f0f3fa;
  --text: #0f172a;
  --muted: #5b6475;
  --border: #d9deea;
  --accent: #0f9d7a;
  --accent-2: #0d8bd7;
  --radius: 16px;
  font-family: "Manrope", "Segoe UI", system-ui, -apple-system, sans-serif;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  min-height: 100vh;
  background: radial-gradient(circle at 18% 20%, rgba(13, 139, 215, 0.08), transparent 28%),
              radial-gradient(circle at 82% 0%, rgba(15, 157, 122, 0.08), transparent 30%),
              var(--bg);
  color: var(--text);
}

.page {
  max-width: 1080px;
  margin: 0 auto;
  padding: 32px clamp(18px, 4vw, 40px) 60px;
}

.topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 28px;
}

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

.mark {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #fff;
  font-weight: 700;
  font-size: 22px;
  display: grid;
  place-items: center;
}

.brand-copy {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.brand-copy strong { font-size: 18px; }

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 12px;
  color: var(--muted);
  margin: 0;
}

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

.chip.success { color: var(--accent); border-color: rgba(15, 157, 122, 0.4); }
.chip.error { color: #e43c3c; border-color: rgba(228, 60, 60, 0.35); }

.single { max-width: 760px; }
.panel {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: 0 12px 30px rgba(12, 23, 51, 0.06);
}

.panel h1 { margin: 6px 0 6px; font-size: clamp(24px, 4vw, 30px); letter-spacing: -0.01em; }
.panel .sub { margin: 0; color: var(--muted); }

.tag { display: inline-block; padding: 8px 12px; border-radius: 10px; background: rgba(13, 139, 215, 0.12); color: #0d8bd7; font-weight: 600; font-size: 13px; align-self: center; margin-bottom: 8px; }

.review-block {
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 16px 18px;
  background: #fff;
  margin-bottom: 16px;
}

.review-text {
  margin: 0;
  font-size: 18px;
  line-height: 1.6;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
}

.btn {
  border: 1px solid transparent;
  cursor: pointer;
  padding: 14px 18px;
  border-radius: 12px;
  font-weight: 700;
  font-size: 15px;
  transition: transform 0.12s ease, box-shadow 0.12s ease, background 0.12s ease;
}

.btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

.btn.primary {
  background: linear-gradient(130deg, var(--accent), var(--accent-2));
  color: #fff;
  box-shadow: 0 10px 24px rgba(15, 157, 122, 0.25);
}

.btn.primary:not(:disabled):hover { transform: translateY(-1px); }

.btn.ghost {
  background: #fff;
  border-color: var(--border);
  color: var(--text);
}

.btn.ghost:not(:disabled):hover { transform: translateY(-1px); }

.btn.small { padding: 10px 12px; font-size: 13px; }

.btn.full {
  width: 100%;
  max-width: 360px;
  text-align: center;
  display: block;
  margin: 8px auto 0;
}

.micro {
  margin-top: 10px;
  color: var(--muted);
  font-size: 13px;
}

.brand-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 22px;
}

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

.brand-icon {
  width: 42px;
  height: 42px;
  border-radius: 11px;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #fff;
  display: grid;
  place-items: center;
  font-weight: 700;
}

.brand-text .title { margin: 2px 0 0; font-weight: 700; }

.status-chip {
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: #fff;
  color: var(--muted);
  text-decoration: none;
}

.card {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  box-shadow: 0 8px 20px rgba(12, 23, 51, 0.05);
}

.admin-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: 16px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field label { font-weight: 600; color: var(--text); }
.field textarea, .field input {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 12px;
  color: var(--text);
  font-size: 15px;
  resize: vertical;
  min-height: 120px;
}
.stack { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.upload-stack { margin-top: 10px; }
.file-input {
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 10px;
  background: #fff;
  color: var(--text);
}
.link-btn {
  text-decoration: none;
  font-weight: 700;
  color: var(--accent-2);
  padding: 10px 12px;
  border-radius: 10px;
  background: #e8f4ff;
  border: 1px solid #cce4fb;
}
.list { margin: 0; padding: 0; list-style: none; display: grid; gap: 10px; max-height: 520px; overflow: auto; }
.item { border: 1px solid var(--border); border-radius: 12px; padding: 12px; background: #fff; }
.item .meta { display: flex; justify-content: space-between; color: var(--muted); font-size: 13px; margin-bottom: 6px; }
.tag { padding: 8px 12px; border-radius: 10px; background: rgba(13, 139, 215, 0.12); color: #0d8bd7; font-weight: 600; font-size: 13px; }
.muted { color: var(--muted); }
.head-row { display: flex; justify-content: space-between; align-items: center; gap: 10px; }

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

@media (max-width: 900px) {
  .topbar { flex-direction: column; align-items: flex-start; gap: 10px; }
  .btn.full { width: 100%; max-width: 320px; }
}
