:root {
  --bg: #08101c;
  --bg-soft: #0f1b2f;
  --panel: #ffffff;
  --text: #122033;
  --muted: #5f6b7c;
  --line: #dde3ec;
  --accent: #d62d3a;
  --accent-dark: #ab1c27;
  --success: #13795b;
  --warning: #b7791f;
}
* { box-sizing: border-box; }
body {
  margin: 0;
  font-family: Inter, Arial, sans-serif;
  background: #f4f7fb;
  color: var(--text);
}
a { color: inherit; text-decoration: none; }
.container { width: min(1180px, calc(100% - 32px)); margin: 0 auto; }
.topbar {
  background: linear-gradient(135deg, var(--bg), #101d34 60%, #280d12);
  color: #fff;
  padding: 18px 0;
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.brand { display:flex; align-items:center; gap:14px; }
.logo-dot { width: 42px; height: 42px; border-radius: 14px; background: linear-gradient(135deg, #ff4a58, #ff8f55); }
.nav { display:flex; gap:18px; flex-wrap:wrap; align-items:center; }
.header-row, .footer-row { display:flex; justify-content:space-between; align-items:center; gap:18px; }
.hero {
  background: radial-gradient(circle at right top, rgba(214,45,58,.25), transparent 25%), linear-gradient(135deg, #09111d, #10203b);
  color:#fff; padding: 56px 0 42px;
}
.hero-grid { display:grid; grid-template-columns: 1.3fr .9fr; gap:28px; align-items:start; }
.card, .panel { background: var(--panel); border: 1px solid var(--line); border-radius: 22px; box-shadow: 0 8px 24px rgba(15,23,42,.05); }
.hero-card { background: rgba(255,255,255,.08); border:1px solid rgba(255,255,255,.1); color:#fff; backdrop-filter: blur(10px); }
.hero-card .muted { color: rgba(255,255,255,.75); }
.p-24 { padding:24px; } .p-20{padding:20px;} .p-16{padding:16px;}
.grid-4, .grid-3, .grid-2 { display:grid; gap:18px; }
.grid-4 { grid-template-columns: repeat(4,1fr); }
.grid-3 { grid-template-columns: repeat(3,1fr); }
.grid-2 { grid-template-columns: repeat(2,1fr); }
.section { padding: 28px 0; }
.section-title { font-size: 32px; margin: 0 0 8px; }
.eyebrow { text-transform: uppercase; letter-spacing: .18em; color: var(--accent); font-size: 12px; font-weight: 700; }
.muted { color: var(--muted); }
.stat-value { font-size: 32px; font-weight: 800; margin: 8px 0; }
.btn { display:inline-block; padding: 12px 16px; border-radius: 14px; border:1px solid var(--line); font-weight:700; }
.btn-primary { background: var(--accent); color:#fff; border-color: var(--accent); }
.btn-primary:hover { background: var(--accent-dark); }
.btn-ghost { background: transparent; color: #fff; border-color: rgba(255,255,255,.18); }
.table-wrap { overflow:auto; }
table { width:100%; border-collapse: collapse; }
th, td { padding: 13px 12px; border-bottom: 1px solid var(--line); text-align:left; vertical-align: top; }
th { font-size: 13px; color: var(--muted); background: #f9fbfd; }
.badge { display:inline-block; padding: 6px 10px; border-radius: 999px; font-size: 12px; font-weight: 700; }
.badge-accent { background: #111827; color:#fff; }
.badge-success { background:#ddf8ee; color: var(--success); }
.badge-warning { background:#fff2d8; color: var(--warning); }
.kpis { display:grid; grid-template-columns: repeat(4,1fr); gap:18px; margin-top: -28px; }
.panel-dark { background:#0b1220; color:#fff; border-color:#1f2937; }
.list { display:grid; gap:12px; }
.list-item { padding:14px 16px; border:1px solid var(--line); border-radius: 16px; background:#fff; }
.login-box { max-width: 430px; margin: 48px auto; }
input, select, textarea {
  width:100%; padding: 12px 14px; border-radius: 12px; border:1px solid #ced7e2; background:#fff; font: inherit;
}
label { display:block; font-size: 14px; font-weight:600; margin-bottom:6px; }
.field { margin-bottom: 14px; }
.actions { display:flex; gap:12px; flex-wrap:wrap; }
.flash { padding: 14px 16px; border-radius: 16px; margin-bottom: 16px; }
.flash.success { background: #ddf8ee; color: var(--success); }
.flash.error { background: #ffe3e6; color: #9f1239; }
.sidebar-layout { display:grid; grid-template-columns: 270px 1fr; gap:20px; padding: 24px 0; }
.sidebar { background: #0c1424; color:#fff; border-radius: 24px; padding: 18px; height: fit-content; }
.sidebar a { display:block; padding: 12px 14px; border-radius: 14px; color: rgba(255,255,255,.85); }
.sidebar a:hover, .sidebar a.active { background: rgba(255,255,255,.09); color:#fff; }
.page-title { margin:0 0 8px; font-size: 28px; }
.toolbar { display:flex; justify-content:space-between; align-items:center; gap:12px; flex-wrap:wrap; margin-bottom: 16px; }
.footer { background:#09111d; color:#fff; padding: 24px 0; margin-top: 36px; }
.small { font-size:12px; }
.summary { display:grid; gap:12px; grid-template-columns: repeat(3,1fr); }
.empty { padding:24px; text-align:center; color:var(--muted); }
@media (max-width: 980px) {
  .hero-grid, .sidebar-layout, .grid-4, .grid-3, .grid-2, .summary, .kpis { grid-template-columns: 1fr; }
  .header-row, .footer-row { flex-direction: column; align-items:flex-start; }
}
