﻿:root {
  --bg: #f4efe5;
  --surface: rgba(255, 252, 246, 0.96);
  --surface-2: rgba(248, 242, 231, 0.96);
  --line: rgba(33, 33, 28, 0.12);
  --ink: #181714;
  --muted: #6d675e;
  --accent: #173a2f;
  --accent-2: #b0532e;
  --ok: #2d7a58;
  --warn: #9d6a19;
  --danger: #922f2f;
  --shadow: 0 16px 42px rgba(35, 26, 15, 0.12);
  --radius: 18px;
}
* { box-sizing: border-box; }
body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(circle at top left, rgba(176, 83, 46, 0.14), transparent 30%),
    radial-gradient(circle at bottom right, rgba(23, 58, 47, 0.16), transparent 28%),
    linear-gradient(160deg, #f7f3ec, #efe6d6);
  color: var(--ink);
  font-family: "Segoe UI", "Trebuchet MS", sans-serif;
}
button, input, textarea, select { font: inherit; }
button { cursor: pointer; }
.app {
  min-height: 100vh;
  padding: 18px 16px 96px;
}
.boot-screen {
  position: fixed;
  inset: 0;
  z-index: 30;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgba(244, 239, 229, 0.96);
  backdrop-filter: blur(14px);
}
.boot-card {
  width: min(460px, 100%);
  padding: 24px;
  border-radius: 24px;
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}
.boot-kicker, .eyebrow {
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 11px;
}
.topbar {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}
.topbar h1, .section-title { margin: 6px 0 0; font-size: 24px; }
.content { display: grid; gap: 16px; }
.panel { display: none; }
.panel.active { display: block; }
.card, .sheet, .metric, .feedback-card, .user-card, .load-card, .payment-card, .admin-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.sheet { padding: 16px; }
.section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}
.stack { display: grid; gap: 12px; }
.metrics {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}
.metric { padding: 14px; }
.metric .value { font-size: 28px; font-weight: 700; margin-top: 8px; }
.log-list, .feedback-list, .user-list, .load-list, .payment-list, .admin-list { display: grid; gap: 10px; }
.log-item, .feedback-card, .user-card, .load-card, .payment-card, .admin-card { padding: 14px; }
.row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
}
.meta { color: var(--muted); font-size: 13px; }
.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
}
.badge.ok { background: rgba(45,122,88,0.12); color: var(--ok); }
.badge.warn { background: rgba(157,106,25,0.12); color: var(--warn); }
.badge.danger { background: rgba(146,47,47,0.12); color: var(--danger); }
.badge.neutral { background: rgba(23,58,47,0.08); color: var(--accent); }
.actions { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 12px; }
.primary, .secondary, .danger, .ghost {
  border-radius: 14px;
  border: 1px solid transparent;
  padding: 11px 14px;
}
.primary { background: var(--accent); color: #fff; }
.secondary { background: rgba(176, 83, 46, 0.12); color: var(--accent-2); border-color: rgba(176, 83, 46, 0.18); }
.danger { background: rgba(146,47,47,0.10); color: var(--danger); border-color: rgba(146,47,47,0.16); }
.ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.small { padding: 8px 12px; }
input, textarea, select {
  width: 100%;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: #fffdf8;
  padding: 12px 14px;
}
textarea { min-height: 92px; resize: vertical; }
.form-grid { display: grid; gap: 10px; }
.helper { color: var(--muted); font-size: 13px; }
.kv { display: grid; gap: 8px; margin-top: 12px; }
.kv div { display: flex; justify-content: space-between; gap: 12px; font-size: 14px; }
.kv strong { font-weight: 600; }
.inline-form { display: grid; gap: 8px; margin-top: 12px; }
.bottom-nav {
  position: fixed;
  left: 12px;
  right: 12px;
  bottom: 12px;
  z-index: 20;
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 8px;
  padding: 8px;
  border-radius: 20px;
  background: rgba(255, 250, 241, 0.92);
  border: 1px solid rgba(27, 24, 19, 0.1);
  box-shadow: 0 18px 44px rgba(27, 24, 19, 0.18);
  backdrop-filter: blur(14px);
}
.nav-btn {
  min-height: 52px;
  border: none;
  border-radius: 16px;
  background: transparent;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}
.nav-btn.active {
  background: var(--accent);
  color: #fff;
}
.error-box, .success-box {
  padding: 12px 14px;
  border-radius: 14px;
  margin-bottom: 12px;
}
.error-box { background: rgba(146,47,47,0.12); color: var(--danger); }
.success-box { background: rgba(45,122,88,0.12); color: var(--ok); }
.hidden { display: none !important; }
@media (min-width: 820px) {
  .app { padding: 26px 24px 110px; }
  .metrics { grid-template-columns: repeat(5, minmax(0, 1fr)); }
  .content { max-width: 960px; margin: 0 auto; }
}
