:root {
  --ink: #14110f;
  --panel: #1d1916;
  --ember: #e85d04;
  --cream: #f7f1ea;
  --line: #ece2d7;
  --muted: #7d6e62;
}
* { box-sizing: border-box; }
body { margin: 0; font-family: "Outfit", sans-serif; background: var(--cream); color: var(--ink); }
a { color: inherit; text-decoration: none; }
h1, h2, h3 { font-family: "Syne", sans-serif; margin: 0 0 10px; }
.dash { display: grid; grid-template-columns: 250px 1fr; min-height: 100vh; }
.side { background: var(--ink); color: #f7f1ea; padding: 24px 18px; }
.side a { display: block; padding: 10px 12px; border-radius: 12px; color: rgba(247,241,234,.78); }
.side a:hover, .side a.active { background: rgba(232,93,4,.18); color: white; }
.brand { display: flex; gap: 10px; align-items: center; font-weight: 800; font-family: "Syne", sans-serif; margin-bottom: 28px; }
.brand i { width: 26px; height: 26px; border-radius: 50%; background: radial-gradient(circle at 40% 35%, #ffd166, #e85d04 50%, #9a031e); }
.main { padding: 28px; }
.top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 22px; }
.cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-bottom: 22px; }
.stat { background: white; border-radius: 18px; padding: 18px; box-shadow: 0 8px 24px rgba(20,17,15,.05); }
.stat span { color: var(--muted); font-size: 13px; }
.stat strong { display: block; font-size: 28px; font-family: "Syne", sans-serif; }
.charts { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.panel { background: white; border-radius: 18px; padding: 18px; box-shadow: 0 8px 24px rgba(20,17,15,.05); margin-bottom: 16px; }
table { width: 100%; border-collapse: collapse; }
th, td { text-align: left; padding: 10px 8px; border-bottom: 1px solid var(--line); font-size: 14px; }
.filters { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 14px; }
input, select, textarea {
  border: 1px solid #e4d6c8; border-radius: 12px; padding: 10px 12px; font: inherit; width: 100%; background: white;
}
.filters input, .filters select { width: auto; }
.btn { border: 0; border-radius: 999px; padding: 10px 14px; font-weight: 700; cursor: pointer; display: inline-flex; }
.btn-ember { background: var(--ember); color: white; }
.btn-line { background: white; border: 1px solid #e4d6c8; }
.form { display: grid; gap: 10px; max-width: 720px; }
.check { display: flex; gap: 8px; align-items: center; }
.login-wrap { min-height: 100vh; display: grid; place-items: center; background: #14110f; }
.login-card { width: min(420px, 92vw); background: white; border-radius: 24px; padding: 32px; }
.flash { background: #e8f5e9; padding: 10px 12px; border-radius: 10px; margin-bottom: 12px; }
@media (max-width: 980px) {
  .dash { grid-template-columns: 1fr; }
  .cards, .charts { grid-template-columns: 1fr 1fr; }
  .side { display: flex; gap: 8px; overflow: auto; }
  .side a { white-space: nowrap; }
}
@media (max-width: 640px) {
  .cards, .charts { grid-template-columns: 1fr; }
}
