:root {
  --bg: #0b0810;
  --panel: #17121f;
  --line: #2b2236;
  --gold: #c89b5a;
  --gold-2: #e4c27d;
  --text: #f2e4d2;
  --muted: #c8b9a6;
  --danger: #ff8f8f;
  --success: #80dcae;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: "Segoe UI", sans-serif;
  background:
    radial-gradient(circle at top right, rgba(88, 58, 115, 0.28), transparent 28%),
    linear-gradient(180deg, #0b0810, #130e1a 46%, #19121f);
  color: var(--text);
  min-height: 100vh;
}

.page-shell { display: grid; grid-template-columns: 320px 1fr; min-height: 100vh; }
.side-panel { border-right: 1px solid var(--line); padding: 28px; background: rgba(11, 8, 16, 0.82); backdrop-filter: blur(12px); }
.content-panel { padding: 28px; }
.brand-block { display: flex; align-items: center; gap: 14px; margin-bottom: 24px; }
.brand-mark {
  width: 60px; height: 60px; display: grid; place-items: center; border-radius: 18px;
  background: linear-gradient(135deg, #ead095, #be8440); color: #110c14; font-size: 20px; font-weight: 800;
}

.brand-block h1, .section-head h2, .login-card h2 { margin: 0 0 6px; }
.brand-block p, .section-head p, .login-card p, .status-card { margin: 0; color: var(--muted); }

.status-card, .card, .user-card, .transaction-card, .doc-card {
  background: rgba(23, 18, 31, 0.92);
  border: 1px solid var(--line);
  border-radius: 24px;
}

.status-card { display: flex; align-items: center; gap: 10px; padding: 14px 16px; margin-bottom: 18px; }
.status-dot { width: 10px; height: 10px; border-radius: 999px; background: var(--success); }
.nav-stack { display: grid; gap: 10px; margin-bottom: 18px; }

.nav-button, .ghost-button, .primary-button {
  border-radius: 16px; padding: 12px 16px; font-weight: 700; cursor: pointer; transition: 0.18s ease;
}
.nav-button, .ghost-button { background: transparent; border: 1px solid var(--line); color: var(--text); }
.nav-button:hover, .ghost-button:hover { border-color: var(--gold); }
.nav-button.active, .primary-button { background: linear-gradient(135deg, var(--gold-2), #bf8843); color: #120d19; border: none; }

.hidden { display: none !important; }
.card { padding: 20px; }
.page-section { display: grid; gap: 16px; }
.login-card { max-width: 520px; }
.stats-grid, .grid-two { display: grid; gap: 16px; }
.stats-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.stat-card span { display: block; color: var(--muted); margin-bottom: 10px; }
.stat-card strong { font-size: 32px; }
.section-head { display: flex; justify-content: space-between; gap: 12px; }
.search-inline { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
form, .form-grid, .metric-list, .users-list, .transactions-list, .legal-doc-list { display: grid; gap: 14px; }
.form-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.full-span { grid-column: 1 / -1; }

label { display: grid; gap: 8px; color: var(--muted); font-size: 14px; }
.checkbox-line { display: flex; align-items: center; gap: 10px; }

input, textarea, select {
  width: 100%; padding: 14px 16px; border-radius: 16px; border: 1px solid var(--line);
  background: #120d19; color: var(--text); outline: none;
}
input:focus, textarea:focus, select:focus { border-color: var(--gold); }

.message { min-height: 20px; color: var(--muted); }
.metric-row {
  display: flex; justify-content: space-between; gap: 12px; padding: 12px 14px;
  border-radius: 16px; border: 1px solid rgba(200, 155, 90, 0.12); background: rgba(255, 255, 255, 0.02);
}
.metric-row span { color: var(--muted); }
.metric-row strong { text-align: right; }

.user-card, .transaction-card, .doc-card { padding: 18px; }
.user-head, .user-meta, .user-actions, .transaction-head, .transaction-meta {
  display: flex; justify-content: space-between; gap: 10px; align-items: center;
}
.user-head, .transaction-head { margin-bottom: 10px; }
.user-email, .transaction-title, .doc-title { font-weight: 700; }
.pill { padding: 6px 12px; border-radius: 999px; font-size: 12px; font-weight: 700; }
.pill.active, .pill.credit { background: rgba(95, 207, 156, 0.15); color: var(--success); }
.pill.blocked, .pill.debit { background: rgba(255, 143, 143, 0.15); color: var(--danger); }
.user-meta, .transaction-meta, .doc-meta { color: var(--muted); margin-bottom: 14px; }
.user-actions { justify-content: flex-start; flex-wrap: wrap; }
.doc-card.active { border-color: var(--gold); box-shadow: 0 0 0 1px rgba(200, 155, 90, 0.2); }

@media (max-width: 1180px) {
  .stats-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 980px) {
  .page-shell { grid-template-columns: 1fr; }
  .stats-grid, .grid-two, .form-grid { grid-template-columns: 1fr; }
}
