:root {
  --bg: #0e1412;
  --bg-2: #141c19;
  --panel: #171e1b;
  --panel-2: #1d2622;
  --line: #2a3530;
  --text: #e8efe6;
  --muted: #8a9a90;
  --accent: #c4f542;
  --accent-2: #8ee0c4;
  --danger: #ff6b4a;
  --warn: #f0c14b;
  --ok: #6ee7b7;
  --shadow: 0 24px 60px rgba(0, 0, 0, 0.35);
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
  background: radial-gradient(1200px 600px at 10% -10%, #1c2a22 0%, transparent 50%),
    radial-gradient(900px 500px at 100% 0%, #1a2428 0%, transparent 45%), var(--bg);
  color: var(--text);
  font-family: Figtree, system-ui, sans-serif;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
select,
textarea {
  font: inherit;
}

h1,
h2,
.serif {
  font-family: Newsreader, Georgia, serif;
  font-weight: 550;
  letter-spacing: -0.02em;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 28px;
  border-bottom: 1px solid var(--line);
  background: rgba(14, 20, 18, 0.72);
  backdrop-filter: blur(12px);
  position: sticky;
  top: 0;
  z-index: 10;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
}

.mark {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
}

.nav-links {
  display: flex;
  gap: 18px;
  color: var(--muted);
  font-size: 14px;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--text);
}

.btn {
  border: 0;
  border-radius: 999px;
  padding: 10px 16px;
  cursor: pointer;
  background: var(--accent);
  color: #111;
  font-weight: 650;
}

.btn.ghost {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--line);
}

.btn.danger {
  background: var(--danger);
  color: #1a0b08;
}

.hero {
  max-width: 1080px;
  margin: 0 auto;
  padding: 72px 24px 40px;
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 48px;
  align-items: center;
}

.kicker {
  color: var(--accent-2);
  font-size: 13px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.hero h1 {
  font-size: 56px;
  line-height: 1.05;
  margin: 12px 0 16px;
}

.lede {
  color: var(--muted);
  font-size: 18px;
  line-height: 1.5;
  max-width: 540px;
}

.hero-card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 22px;
  box-shadow: var(--shadow);
}

.hero-card h3 {
  margin: 0 0 12px;
}

.row {
  display: flex;
  justify-content: space-between;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  font-size: 14px;
}

.row b {
  color: var(--text);
  font-weight: 600;
}

.layout {
  display: grid;
  grid-template-columns: 240px 1fr;
  min-height: calc(100vh - 61px);
}

.side {
  border-right: 1px solid var(--line);
  padding: 22px 16px;
  background: rgba(20, 28, 25, 0.5);
}

.side a {
  display: block;
  padding: 10px 12px;
  border-radius: 10px;
  color: var(--muted);
  margin-bottom: 4px;
}

.side a.active,
.side a:hover {
  background: var(--panel-2);
  color: var(--text);
}

.main {
  padding: 28px;
}

.cards {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}

.card,
.panel {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 18px;
}

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

.card .value {
  font-size: 28px;
  margin-top: 8px;
}

.table {
  width: 100%;
  border-collapse: collapse;
}

.table th,
.table td {
  text-align: left;
  padding: 12px 10px;
  border-bottom: 1px solid var(--line);
  font-size: 14px;
}

.table th {
  color: var(--muted);
  font-weight: 500;
}

.badge {
  display: inline-flex;
  padding: 3px 9px;
  border-radius: 999px;
  font-size: 12px;
  background: #24302b;
  color: var(--accent-2);
}

.badge.pending {
  background: #332b16;
  color: var(--warn);
}

.badge.approved {
  background: #1c332c;
  color: var(--ok);
}

.badge.processed {
  background: #1b2a38;
  color: #9fd4ff;
}

.form {
  display: grid;
  gap: 12px;
  max-width: 460px;
}

.form.wide {
  max-width: 640px;
}

label {
  display: grid;
  gap: 6px;
  font-size: 13px;
  color: var(--muted);
}

input,
select,
textarea {
  background: var(--bg-2);
  border: 1px solid var(--line);
  color: var(--text);
  border-radius: 10px;
  padding: 10px 12px;
}

.auth-wrap {
  min-height: calc(100vh - 70px);
  display: grid;
  place-items: center;
  padding: 32px 16px;
}

.auth-card {
  width: 100%;
  max-width: 440px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 28px;
  box-shadow: var(--shadow);
}

.error {
  color: var(--danger);
  font-size: 14px;
}

.ok {
  color: var(--ok);
}

.muted {
  color: var(--muted);
}

.pre {
  white-space: pre-wrap;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 13px;
  line-height: 1.55;
  background: #101714;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 16px;
}

.toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}

@media (max-width: 960px) {
  .hero,
  .layout,
  .cards {
    grid-template-columns: 1fr;
  }
  .side {
    display: none;
  }
}
