:root {
  --bg: #0f1f17;
  --card: #173528;
  --line: #2f5a45;
  --text: #ecf7f0;
  --muted: #9fbfb0;
  --accent: #c9a227;
  --accent2: #2ecc71;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: "Segoe UI", Tahoma, sans-serif;
  background:
    radial-gradient(circle at top left, #1d4a34, transparent 40%),
    radial-gradient(circle at bottom right, #3a2f0e, transparent 35%),
    var(--bg);
  color: var(--text);
  min-height: 100vh;
}

.wrap { max-width: 1080px; margin: 0 auto; padding: 24px 18px 48px; }

nav {
  display: flex; gap: 8px; flex-wrap: wrap; align-items: center;
  padding: 12px 0 22px; border-bottom: 1px solid var(--line); margin-bottom: 26px;
}
nav .brand { font-weight: 800; margin-inline-end: auto; font-size: 18px; }
nav a {
  color: var(--muted); text-decoration: none; padding: 8px 14px;
  border-radius: 999px; border: 1px solid transparent; font-size: 14px;
}
nav a:hover { color: var(--text); border-color: var(--line); }
nav a.active { color: var(--accent); border-color: rgba(201,162,39,.4); background: rgba(201,162,39,.12); }

.badge {
  display: inline-block; padding: 6px 12px; border-radius: 999px;
  background: rgba(201,162,39,.15); color: var(--accent);
  border: 1px solid rgba(201,162,39,.35); font-size: 13px; margin-bottom: 10px;
}
.badge.green { background: rgba(46,204,113,.12); color: var(--accent2); border-color: rgba(46,204,113,.35); }
.badge.red { background: rgba(255,99,99,.12); color: #ff8b8b; border-color: rgba(255,99,99,.35); }

h1 { margin: 0 0 8px; font-size: 32px; }
h2 { margin-top: 0; }
p { color: var(--muted); line-height: 1.7; }

.card {
  background: linear-gradient(180deg, rgba(255,255,255,.03), transparent), var(--card);
  border: 1px solid var(--line); border-radius: 18px; padding: 20px;
  box-shadow: 0 20px 50px rgba(0,0,0,.25);
}

.grid { display: grid; gap: 16px; }
.grid.two { grid-template-columns: 1.2fr .8fr; }
.grid.three { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 900px) {
  .grid.two, .grid.three { grid-template-columns: 1fr; }
}

a.card { display: block; text-decoration: none; color: inherit; transition: transform .15s, border-color .15s; }
a.card:hover { transform: translateY(-3px); border-color: var(--accent); }

label { display: block; margin: 12px 0 6px; color: var(--muted); font-size: 14px; }
input, select, textarea {
  width: 100%; padding: 12px 14px; border-radius: 12px;
  border: 1px solid var(--line); background: #10261c; color: var(--text); outline: none;
}
input:focus, textarea:focus, select:focus { border-color: var(--accent); }

.row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
@media (max-width: 640px) { .row { grid-template-columns: 1fr; } }

button {
  margin-top: 16px; width: 100%; border: 0; border-radius: 12px; padding: 14px 16px;
  background: linear-gradient(135deg, var(--accent), #e0c35a);
  color: #1a1404; font-weight: 700; font-size: 16px; cursor: pointer;
}
button.secondary { background: transparent; color: var(--text); border: 1px solid var(--line); margin-top: 10px; }

.kpi { font-size: 28px; font-weight: 800; color: var(--accent2); margin: 8px 0 0; }
.line { display: flex; justify-content: space-between; gap: 12px; padding: 10px 0; border-bottom: 1px dashed var(--line); }
.line:last-child { border-bottom: 0; }
.muted { color: var(--muted); font-size: 13px; }
.ok { color: var(--accent2); }
.warn { color: #ffb84d; }

table { width: 100%; border-collapse: collapse; font-size: 14px; }
th, td { text-align: right; padding: 9px 10px; border-bottom: 1px solid var(--line); }
th { color: var(--muted); font-weight: 600; font-size: 13px; }
tbody tr:hover { background: rgba(255,255,255,.03); }

.pill {
  display: inline-block; padding: 2px 9px; border-radius: 999px; font-size: 12px;
  border: 1px solid var(--line); color: var(--muted);
}

details { border: 1px solid var(--line); border-radius: 14px; padding: 12px 16px; margin-bottom: 10px; background: rgba(0,0,0,.12); }
details summary { cursor: pointer; font-weight: 700; }
details[open] summary { color: var(--accent); margin-bottom: 10px; }

footer { margin-top: 26px; color: var(--muted); font-size: 12px; text-align: center; line-height: 1.8; }
