:root {
  --bg: #f6f7fa;
  --surface: #ffffff;
  --surface-2: #f4f5f7;
  --ink: #0a0e1a;
  --ink-soft: #1a2238;
  --muted: #5a6478;
  --muted-2: #8a93a6;
  --line: #e5e8ee;
  --line-soft: #f0f2f6;
  --brand: #0052cc;
  --brand-dark: #003d99;
  --brand-deep: #001a4d;
  --brand-soft: #e8f0ff;
  --accent: #ff4757;
  --mint: #10b981;
  --mint-soft: #ecfdf5;
  --amber: #f59e0b;
  --amber-soft: #fffbeb;
  --rose-soft: #fef2f2;
  --radius-sm: 6px;
  --radius: 12px;
  --radius-lg: 20px;
  --shadow-sm: 0 1px 2px rgba(10, 14, 26, .04);
  --shadow: 0 4px 16px rgba(10, 14, 26, .06);
  --shadow-md: 0 8px 32px rgba(10, 14, 26, .08);
  --t: .25s cubic-bezier(.16, 1, .3, 1);
}
* { margin: 0; padding: 0; box-sizing: border-box; }
html, body { height: 100%; }
body {
  font-family: Inter, -apple-system, system-ui, sans-serif;
  color: var(--ink);
  background: var(--bg);
  font-size: 15px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font-family: inherit; }
img { max-width: 100%; }

.layout { display: flex; min-height: 100%; }
.sidebar {
  width: 248px;
  background: var(--brand-deep);
  color: #fff;
  padding: 28px 18px;
  display: flex;
  flex-direction: column;
  flex-shrink: 0;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0 8px 28px;
  border-bottom: 1px solid rgba(255,255,255,.08);
  margin-bottom: 18px;
}
.brand-mark {
  width: 36px; height: 36px; border-radius: 10px;
  background: var(--brand);
  display: grid; place-items: center;
  font-weight: 700; letter-spacing: -.04em;
}
.brand-name { font-weight: 650; font-size: 14px; letter-spacing: -.02em; }
.brand-sub { font-size: 11px; color: rgba(255,255,255,.45); margin-top: 1px; }
.nav { display: flex; flex-direction: column; gap: 4px; }
.nav a {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 12px; border-radius: 10px;
  color: rgba(255,255,255,.7); font-size: 14px; font-weight: 500;
  transition: background var(--t), color var(--t);
}
.nav a:hover { background: rgba(255,255,255,.06); color: #fff; }
.nav a.active { background: var(--brand); color: #fff; }
.nav .badge {
  margin-left: auto;
  background: var(--accent);
  color: #fff;
  font-size: 11px;
  font-weight: 650;
  min-width: 18px;
  height: 18px;
  padding: 0 6px;
  border-radius: 99px;
  display: grid; place-items: center;
}
.sidebar-foot {
  margin-top: auto;
  padding-top: 18px;
  border-top: 1px solid rgba(255,255,255,.08);
  display: flex; align-items: center; justify-content: space-between;
  gap: 8px;
}
.who { font-size: 13px; color: rgba(255,255,255,.6); padding-left: 8px; }
.who strong { display: block; color: #fff; font-weight: 600; }
.btn-ghost {
  background: transparent; border: 0; color: rgba(255,255,255,.55);
  cursor: pointer; font-size: 12px; padding: 6px 8px;
}
.btn-ghost:hover { color: #fff; }

.content { flex: 1; padding: 32px 40px 64px; min-width: 0; }
.page-head {
  display: flex; align-items: flex-start; justify-content: space-between;
  gap: 16px; margin-bottom: 28px; flex-wrap: wrap;
}
.page-head h1 { font-size: 26px; letter-spacing: -.03em; font-weight: 700; }
.page-head p { color: var(--muted); margin-top: 4px; }

.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-bottom: 28px; }
.stat {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 18px 20px;
  box-shadow: var(--shadow-sm);
}
.stat .label { color: var(--muted); font-size: 12.5px; font-weight: 500; }
.stat .num { font-size: 28px; font-weight: 720; letter-spacing: -.04em; margin-top: 6px; }
.stat.mint .num { color: var(--mint); }
.stat.amber .num { color: var(--amber); }
.stat.brand .num { color: var(--brand); }

.card {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius-lg); box-shadow: var(--shadow-sm); overflow: hidden;
}
.card + .card { margin-top: 16px; }
.card-h {
  padding: 16px 20px; border-bottom: 1px solid var(--line);
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
}
.card-h h2 { font-size: 15px; font-weight: 650; }
.card-b { padding: 8px 0; }
.grid-2 { display: grid; grid-template-columns: 1.4fr 1fr; gap: 16px; }

table { width: 100%; border-collapse: collapse; }
th, td { text-align: left; padding: 12px 20px; font-size: 13.5px; }
th { color: var(--muted); font-weight: 550; font-size: 12px; letter-spacing: .02em; text-transform: uppercase; }
tr { border-top: 1px solid var(--line-soft); }
tbody tr:hover { background: var(--surface-2); }
.empty { padding: 36px 20px; text-align: center; color: var(--muted); }

.pill {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 3px 10px; border-radius: 99px; font-size: 12px; font-weight: 600;
}
.pill.pending { background: var(--surface-2); color: var(--muted); }
.pill.verified { background: var(--mint-soft); color: #047857; }
.pill.open { background: var(--amber-soft); color: #b45309; }
.pill.approved { background: var(--mint-soft); color: #047857; }
.pill.rejected { background: var(--rose-soft); color: #b91c1c; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  background: var(--brand); color: #fff; border: 0;
  padding: 10px 16px; border-radius: 10px; font-weight: 600; font-size: 14px;
  cursor: pointer; transition: background var(--t), transform var(--t);
}
.btn:hover { background: var(--brand-dark); }
.btn-sm { padding: 7px 12px; font-size: 13px; border-radius: 8px; }
.btn-sec {
  background: #fff; color: var(--ink); border: 1px solid var(--line);
}
.btn-sec:hover { background: var(--surface-2); }
.btn-danger { background: var(--accent); }
.btn-danger:hover { background: #e02b3b; }
.btn-row { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }

.toolbar { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 16px; }
.field, .select, textarea {
  border: 1px solid var(--line); background: #fff; border-radius: 10px;
  padding: 10px 12px; font-size: 14px; color: var(--ink); outline: none;
  width: 100%;
}
.field:focus, .select:focus, textarea:focus {
  border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-soft);
}
.select { min-width: 160px; width: auto; }
.toolbar .field { width: 260px; }
label.lbl { display: block; font-size: 12.5px; font-weight: 600; color: var(--muted); margin: 0 0 6px; }
.form-grid { display: grid; gap: 16px; padding: 20px; max-width: 640px; }
.form-actions { display: flex; gap: 10px; padding: 0 20px 20px; }
.hint { font-size: 12.5px; color: var(--muted-2); margin-top: 6px; }

.flash {
  padding: 12px 16px; border-radius: 12px; margin-bottom: 18px; font-size: 14px; font-weight: 500;
}
.flash.ok { background: var(--mint-soft); color: #047857; }
.flash.err { background: var(--rose-soft); color: #b91c1c; }
.flash.warn { background: var(--amber-soft); color: #b45309; }

.login-wrap {
  min-height: 100%; display: grid; place-items: center;
  background: linear-gradient(180deg, #f4f7ff 0%, var(--bg) 100%);
  padding: 24px;
}
.login-card {
  width: 100%; max-width: 420px; background: #fff;
  border: 1px solid var(--line); border-radius: 24px;
  box-shadow: var(--shadow-md); padding: 36px 32px;
}
.login-card h1 { font-size: 24px; letter-spacing: -.03em; margin: 16px 0 6px; }
.login-card .lead { color: var(--muted); margin-bottom: 24px; }
.login-card .field { margin-bottom: 12px; }
.login-card .btn { width: 100%; margin-top: 8px; height: 44px; }

.req-card { padding: 18px 20px; border-top: 1px solid var(--line-soft); }
.req-card:first-child { border-top: 0; }
.req-meta { color: var(--muted); font-size: 13px; display: flex; gap: 14px; flex-wrap: wrap; margin: 6px 0 12px; }
.req-actions { display: grid; gap: 10px; }
.req-actions form { display: grid; gap: 8px; background: var(--surface-2); padding: 12px; border-radius: 12px; }

.progress {
  height: 8px; background: var(--line-soft); border-radius: 99px; overflow: hidden; margin-top: 8px;
}
.progress span { display: block; height: 100%; background: var(--brand); border-radius: 99px; }

.mono { font-variant-numeric: tabular-nums; font-feature-settings: "tnum"; }
.muted { color: var(--muted); }
.row-actions { display: flex; gap: 8px; }
.linkish { color: var(--brand); font-weight: 600; font-size: 13px; }
.linkish:hover { text-decoration: underline; }

.tabs { display: flex; gap: 6px; margin-bottom: 16px; }
.tabs a {
  padding: 7px 12px; border-radius: 99px; font-size: 13px; font-weight: 600;
  color: var(--muted); background: var(--surface); border: 1px solid var(--line);
}
.tabs a.on { background: var(--brand-soft); color: var(--brand); border-color: transparent; }

.alert-bot {
  background: var(--amber-soft); border: 1px solid #fde68a; color: #92400e;
  padding: 12px 16px; border-radius: 12px; margin-bottom: 18px; font-size: 13.5px;
}

@media (max-width: 1100px) {
  .stats { grid-template-columns: 1fr 1fr; }
  .grid-2 { grid-template-columns: 1fr; }
  .content { padding: 24px 18px 48px; }
}
@media (max-width: 800px) {
  .layout { flex-direction: column; }
  .sidebar { width: 100%; padding: 16px; }
  .nav { flex-direction: row; overflow-x: auto; }
  .sidebar-foot { display: none; }
}
