/* ============================================================
   NexaInvest — Application stylesheet (user + admin + auth)
   Modern dark fintech console. Distinct from legacy templates.
   ============================================================ */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&family=Space+Grotesk:wght@500;600;700&display=swap');

:root {
  --bg: #080C17;
  --bg-soft: #0B1120;
  --panel: #101829;
  --panel-2: #152036;
  --panel-3: #1A2740;
  --border: #1E2A44;
  --border-2: #2A3A5C;
  --text: #E7ECF5;
  --text-2: #9AA8C2;
  --text-3: #64738F;
  --cyan: #22D3EE;
  --cyan-soft: rgba(34, 211, 238, .12);
  --violet: #8B5CF6;
  --violet-soft: rgba(139, 92, 246, .14);
  --orange: #F97316;
  --orange-soft: rgba(249, 115, 22, .14);
  --green: #34D399;
  --green-soft: rgba(52, 211, 153, .13);
  --red: #F87171;
  --red-soft: rgba(248, 113, 113, .13);
  --amber: #FBBF24;
  --amber-soft: rgba(251, 191, 36, .14);
  --radius: 14px;
  --radius-sm: 10px;
  --grad: linear-gradient(135deg, #22D3EE 0%, #6366F1 55%, #8B5CF6 100%);
  --shadow: 0 10px 30px -12px rgba(0, 0, 0, .55);
  --font-head: 'Space Grotesk', 'Inter', system-ui, sans-serif;
  --font-body: 'Inter', system-ui, -apple-system, sans-serif;
}

* { box-sizing: border-box; }

html, body { height: 100%; }

body {
  margin: 0;
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  font-size: 14px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--cyan); text-decoration: none; }
a:hover { color: #7DE4F7; }

h1, h2, h3, h4 { font-family: var(--font-head); font-weight: 700; margin: 0 0 .5em; }
p { margin: 0 0 1em; }

/* ---------- Layout ---------- */
.app { display: flex; min-height: 100vh; }

.sidebar {
  width: 248px;
  flex: 0 0 248px;
  background: linear-gradient(180deg, #0D1424 0%, #0A0F1C 100%);
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  position: sticky;
  top: 0;
  height: 100vh;
  z-index: 40;
  transition: margin-left .25s ease;
}

.sidebar-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 22px 22px 18px;
  font-family: var(--font-head);
  font-size: 20px;
  font-weight: 700;
  color: var(--text);
  letter-spacing: .3px;
}
.sidebar-brand .logo {
  width: 38px; height: 38px;
  border-radius: 11px;
  background: var(--grad);
  display: grid; place-items: center;
  font-weight: 800; font-size: 15px; color: #04121A;
  box-shadow: 0 6px 16px -6px rgba(34, 211, 238, .6);
}

.sidebar-nav { flex: 1; padding: 8px 14px 20px; overflow-y: auto; }
.sidebar-nav .nav-section { font-size: 10.5px; text-transform: uppercase; letter-spacing: 1.4px; color: var(--text-3); padding: 16px 10px 8px; font-weight: 600; }

.nav-link {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  margin: 2px 0;
  border-radius: var(--radius-sm);
  color: var(--text-2);
  font-weight: 500;
  font-size: 13.5px;
  transition: all .15s ease;
  border: 1px solid transparent;
}
.nav-link svg { flex: 0 0 18px; opacity: .85; }
.nav-link:hover { color: var(--text); background: var(--panel-3); }
.nav-link.active {
  color: var(--cyan);
  background: var(--cyan-soft);
  border-color: rgba(34, 211, 238, .25);
}
.nav-link .badge-dot {
  margin-left: auto;
  background: var(--orange);
  color: #0A0F1C;
  font-size: 10.5px;
  font-weight: 700;
  border-radius: 20px;
  padding: 1px 8px;
}

.sidebar-footer { padding: 14px; border-top: 1px solid var(--border); }
.sidebar-footer .card-mini { background: var(--panel); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 12px; }

/* ---------- Main ---------- */
.main { flex: 1; display: flex; flex-direction: column; min-width: 0; }

.topbar {
  position: sticky;
  top: 0;
  z-index: 30;
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 12px 26px;
  background: rgba(8, 12, 23, .82);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}
.topbar .menu-btn { background: none; border: 1px solid var(--border); border-radius: 9px; padding: 8px; cursor: pointer; color: var(--text-2); display: grid; place-items: center; }
.topbar .menu-btn:hover { color: var(--text); border-color: var(--border-2); }

/* ---------- Mobile drawer ---------- */
.sidebar-close {
  display: none;
  margin-left: auto;
  background: none;
  border: 1px solid var(--border);
  border-radius: 9px;
  padding: 7px;
  cursor: pointer;
  color: var(--text-2);
  place-items: center;
  line-height: 1;
}
.sidebar-close:hover { color: var(--text); border-color: var(--border-2); }

.sidebar-backdrop {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(4, 7, 15, .55);
  z-index: 39;
}

@media (max-width: 1000px) {
  .sidebar-close { display: grid; }
  .sidebar-backdrop.active { display: block; }
  .sidebar.open-mobile {
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    height: 100vh;
    z-index: 40;
    box-shadow: 12px 0 40px rgba(0, 0, 0, .5);
  }
  .sidebar.open-mobile.collapsed { margin-left: -100%; }
}

.ticker { display: flex; gap: 8px; flex-wrap: wrap; }
.ticker .tk {
  padding: 5px 12px;
  border-radius: 20px;
  background: var(--panel);
  border: 1px solid var(--border);
  font-size: 12px;
  color: var(--text-2);
}
.ticker .tk b { color: var(--text); font-family: var(--font-head); }

.topbar-right { margin-left: auto; display: flex; align-items: center; gap: 12px; }
.balance-chip {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  padding: 6px 16px;
  border-radius: var(--radius-sm);
  background: var(--grad);
  color: #04121A;
  line-height: 1.15;
}
.balance-chip .lbl { font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: .8px; opacity: .75; }
.balance-chip .val { font-family: var(--font-head); font-weight: 700; font-size: 15px; }

.avatar-btn {
  display: flex;
  align-items: center;
  gap: 10px;
  background: none;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 6px 10px 6px 6px;
  color: var(--text);
  cursor: pointer;
}
.avatar-btn:hover { border-color: var(--border-2); }
.avatar {
  width: 34px; height: 34px;
  border-radius: 10px;
  background: var(--panel-3);
  display: grid; place-items: center;
  overflow: hidden;
  font-family: var(--font-head);
  font-weight: 700;
  color: var(--cyan);
  border: 1px solid var(--border-2);
}
.avatar img { width: 100%; height: 100%; object-fit: cover; }
.avatar.sm { width: 28px; height: 28px; border-radius: 8px; font-size: 12px; }
.avatar.lg { width: 64px; height: 64px; border-radius: 16px; font-size: 22px; }

.dropdown { position: relative; }
.dropdown-menu {
  position: absolute;
  right: 0;
  top: calc(100% + 8px);
  min-width: 220px;
  background: var(--panel-2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 8px;
  display: none;
  z-index: 50;
}
.dropdown.open .dropdown-menu { display: block; }
.dropdown-menu a, .dropdown-menu button {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 10px 12px;
  border-radius: 8px;
  color: var(--text-2);
  font-size: 13px;
  background: none;
  border: none;
  cursor: pointer;
  text-align: left;
  font-family: var(--font-body);
}
.dropdown-menu a:hover, .dropdown-menu button:hover { background: var(--panel-3); color: var(--text); }
.dropdown-menu .danger { color: var(--red); }
.dropdown-menu .danger:hover { background: var(--red-soft); }
.dropdown-head { padding: 10px 12px; border-bottom: 1px solid var(--border); margin-bottom: 4px; }
.dropdown-head b { display: block; }
.dropdown-head span { color: var(--text-3); font-size: 12px; }

.content { padding: 26px; max-width: 1280px; width: 100%; margin: 0 auto; }

.page-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; margin-bottom: 22px; flex-wrap: wrap; }
.page-head h1 { font-size: 24px; margin-bottom: 4px; }
.page-head p { color: var(--text-2); margin: 0; font-size: 13.5px; }

/* ---------- Cards / grid ---------- */
.card {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 20px;
}
.card + .card { margin-top: 18px; }
.card-title { display: flex; align-items: center; gap: 10px; font-family: var(--font-head); font-size: 16px; font-weight: 700; margin-bottom: 16px; }
.card-title .icon-orb { width: 30px; height: 30px; border-radius: 9px; display: grid; place-items: center; }

.grid { display: grid; gap: 18px; }
.grid.cols-4 { grid-template-columns: repeat(4, 1fr); }
.grid.cols-3 { grid-template-columns: repeat(3, 1fr); }
.grid.cols-2 { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 1100px) {
  .grid.cols-4 { grid-template-columns: repeat(2, 1fr); }
  .grid.cols-3 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .grid.cols-4, .grid.cols-3, .grid.cols-2 { grid-template-columns: 1fr; }
  .content { padding: 16px; }
}

.stat-card { position: relative; overflow: hidden; }
.stat-card::after {
  content: '';
  position: absolute;
  right: -30px;
  top: -30px;
  width: 130px;
  height: 130px;
  border-radius: 50%;
  filter: blur(0px);
  opacity: .18;
}
.stat-card .stat-label { color: var(--text-2); font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: .8px; }
.stat-card .stat-value { font-family: var(--font-head); font-size: 26px; font-weight: 700; margin-top: 6px; }
.stat-card .stat-extra { margin-top: 10px; font-size: 12.5px; color: var(--text-2); }
.stat-card.green::after { background: var(--green); }
.stat-card.cyan::after { background: var(--cyan); }
.stat-card.orange::after { background: var(--orange); }
.stat-card.violet::after { background: var(--violet); }
.stat-card .stat-ico { position: absolute; right: 16px; top: 18px; width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: var(--panel-3); }

/* ---------- Tables ---------- */
.table-wrap { overflow-x: auto; }
table.tbl { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.tbl th {
  text-align: left;
  padding: 11px 14px;
  color: var(--text-3);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: .8px;
  border-bottom: 1px solid var(--border);
  white-space: nowrap;
}
.tbl td { padding: 12px 14px; border-bottom: 1px solid var(--border); vertical-align: middle; }
.tbl tbody tr:hover { background: rgba(21, 32, 54, .5); }
.tbl tbody tr:last-child td { border-bottom: none; }
.tbl .status-pill { display: inline-block; padding: 2px 10px; border-radius: 20px; font-size: 11.5px; font-weight: 600; }
.tbl .muted { color: var(--text-3); }
.tbl .mono { font-family: var(--font-head); font-weight: 600; }

/* statuses */
.st-pending { background: var(--amber-soft); color: var(--amber); }
.st-processing { background: var(--cyan-soft); color: var(--cyan); }
.st-active { background: var(--cyan-soft); color: var(--cyan); }
.st-confirmed, .st-success, .st-credited, .st-delivered, .st-answered, .st-approved { background: var(--green-soft); color: var(--green); }
.st-rejected, .st-failed, .st-debited, .st-cancelled, .st-closed { background: var(--red-soft); color: var(--red); }
.st-pending-verification, .st-in_transit { background: var(--violet-soft); color: var(--violet); }
.st-new { background: var(--cyan-soft); color: var(--cyan); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 18px;
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-size: 13.5px;
  font-weight: 600;
  border: 1px solid transparent;
  cursor: pointer;
  transition: all .15s ease;
  text-decoration: none;
  line-height: 1.2;
}
.btn-primary { background: var(--grad); color: #04121A; box-shadow: 0 8px 20px -10px rgba(34, 211, 238, .5); }
.btn-primary:hover { filter: brightness(1.1); color: #04121A; }
.btn-ghost { background: var(--panel-2); color: var(--text); border-color: var(--border-2); }
.btn-ghost:hover { border-color: var(--cyan); color: var(--cyan); }
.btn-soft-cyan { background: var(--cyan-soft); color: var(--cyan); }
.btn-soft-cyan:hover { background: rgba(34, 211, 238, .2); }
.btn-soft-green { background: var(--green-soft); color: var(--green); }
.btn-soft-green:hover { background: rgba(52, 211, 153, .2); }
.btn-soft-orange { background: var(--orange-soft); color: var(--orange); }
.btn-soft-orange:hover { background: rgba(249, 115, 22, .2); }
.btn-soft-red { background: var(--red-soft); color: var(--red); }
.btn-soft-red:hover { background: rgba(248, 113, 113, .2); }
.btn-block { width: 100%; }
.btn-sm { padding: 7px 12px; font-size: 12.5px; }
.btn.disabled, .btn[disabled] { opacity: .5; pointer-events: none; }

/* ---------- Forms ---------- */
.form-group { margin-bottom: 16px; }
.form-label { display: block; font-size: 12.5px; font-weight: 600; color: var(--text-2); margin-bottom: 7px; }
.form-label .req { color: var(--orange); }
.form-control, select.form-control, textarea.form-control {
  width: 100%;
  padding: 11px 14px;
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 13.5px;
  outline: none;
  transition: border-color .15s;
}
.form-control:focus { border-color: var(--cyan); box-shadow: 0 0 0 3px var(--cyan-soft); }
textarea.form-control { resize: vertical; min-height: 110px; }
.form-control::placeholder { color: var(--text-3); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 640px) { .form-row { grid-template-columns: 1fr; } }
select.form-control option { background: var(--panel-2); }
.input-hint { font-size: 12px; color: var(--text-3); margin-top: 6px; }

/* ---------- Flash / toast ---------- */
.flash-stack { position: fixed; top: 18px; right: 18px; z-index: 200; display: flex; flex-direction: column; gap: 10px; max-width: 360px; }
.toast {
  padding: 14px 18px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  color: var(--text);
  font-size: 13.5px;
  font-weight: 500;
  display: flex;
  align-items: flex-start;
  gap: 10px;
  animation: slideIn .25s ease;
  background: var(--panel-2);
}
.toast.success { border-color: rgba(52, 211, 153, .4); background: rgba(17, 34, 32, .95); }
.toast.error { border-color: rgba(248, 113, 113, .4); background: rgba(36, 18, 22, .95); }
.toast .dot { flex: 0 0 8px; width: 8px; height: 8px; border-radius: 50%; margin-top: 6px; background: var(--green); }
.toast.error .dot { background: var(--red); }
@keyframes slideIn { from { transform: translateX(30px); opacity: 0; } to { transform: none; opacity: 1; } }

/* ---------- Alerts ---------- */
.alert { padding: 13px 16px; border-radius: var(--radius-sm); border: 1px solid; font-size: 13.5px; margin-bottom: 16px; }
.alert.success { background: var(--green-soft); border-color: rgba(52, 211, 153, .3); color: var(--green); }
.alert.error { background: var(--red-soft); border-color: rgba(248, 113, 113, .3); color: var(--red); }
.alert.info { background: var(--cyan-soft); border-color: rgba(34, 211, 238, .3); color: var(--cyan); }

/* ---------- Auth layout ---------- */
.auth-wrap {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1fr 430px;
  background: var(--bg);
}
.auth-left {
  background:
    radial-gradient(700px 420px at 15% 10%, rgba(34, 211, 238, .12), transparent 60%),
    radial-gradient(700px 420px at 85% 90%, rgba(139, 92, 246, .12), transparent 60%),
    var(--bg);
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 60px;
  overflow: hidden;
}
.auth-left .logo-big { display: flex; align-items: center; gap: 14px; font-family: var(--font-head); font-size: 30px; font-weight: 700; margin-bottom: 26px; }
.auth-left .logo-big .logo { width: 54px; height: 54px; border-radius: 15px; background: var(--grad); display: grid; place-items: center; font-weight: 800; color: #04121A; }
.auth-left h2 { font-size: 34px; line-height: 1.2; margin-bottom: 14px; }
.auth-left h2 .grad-txt { background: var(--grad); -webkit-background-clip: text; -webkit-text-fill-color: transparent; }
.auth-left p.lead { color: var(--text-2); font-size: 15px; max-width: 460px; }
.auth-left .feature-list { margin-top: 30px; display: grid; gap: 14px; max-width: 460px; }
.feature-item { display: flex; gap: 12px; align-items: flex-start; }
.feature-item .fico { flex: 0 0 38px; width: 38px; height: 38px; border-radius: 11px; background: var(--panel); border: 1px solid var(--border); display: grid; place-items: center; color: var(--cyan); }
.feature-item b { display: block; font-size: 14px; }
.feature-item span { color: var(--text-3); font-size: 12.5px; }

.auth-right { display: flex; flex-direction: column; justify-content: center; padding: 40px; background: var(--bg-soft); border-left: 1px solid var(--border); }
.auth-card { max-width: 380px; width: 100%; margin: 0 auto; }
.auth-card h3 { font-size: 22px; margin-bottom: 4px; }
.auth-card .sub { color: var(--text-2); font-size: 13.5px; margin-bottom: 24px; }

@media (max-width: 900px) {
  .auth-wrap { grid-template-columns: 1fr; }
  .auth-left { display: none; }
  .auth-right { border-left: none; }
}

.auth-card .form-control { background: var(--panel); }
.auth-alt { margin-top: 20px; text-align: center; color: var(--text-3); font-size: 13.5px; }
.auth-alt a { font-weight: 600; }

.api-box { margin-top: 12px; background: var(--bg); border: 1px dashed var(--border-2); border-radius: var(--radius-sm); padding: 14px; font-family: var(--font-head); font-size: 13px; word-break: break-all; color: var(--cyan); }

/* ---------- Referral ---------- */
.ref-banner {
  background: var(--grad);
  border-radius: var(--radius);
  padding: 26px;
  color: #04121A;
  position: relative;
  overflow: hidden;
}
.ref-banner h3 { color: #04121A; margin-bottom: 4px; }
.ref-banner p { margin: 0 0 16px; opacity: .85; }
.ref-code-box { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.ref-code { background: rgba(4, 18, 26, .85); color: var(--cyan); font-family: var(--font-head); font-weight: 700; padding: 10px 16px; border-radius: 10px; letter-spacing: .5px; }

/* ---------- Plans ---------- */
.plan-card {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  display: flex;
  flex-direction: column;
  position: relative;
  transition: transform .15s ease, border-color .15s ease;
}
.plan-card:hover { transform: translateY(-3px); border-color: var(--border-2); }
.plan-card .plan-name { font-family: var(--font-head); font-size: 17px; font-weight: 700; }
.plan-card .plan-desc { color: var(--text-3); font-size: 12.5px; }
.plan-card .plan-roi { margin: 16px 0; }
.plan-card .plan-roi .pct { font-family: var(--font-head); font-size: 34px; font-weight: 800; background: var(--grad); -webkit-background-clip: text; -webkit-text-fill-color: transparent; }
.plan-card .plan-roi .pct-label { color: var(--text-2); font-size: 12.5px; }
.plan-card ul.plan-meta { list-style: none; padding: 0; margin: 0 0 18px; }
.plan-card ul.plan-meta li { display: flex; justify-content: space-between; padding: 7px 0; border-bottom: 1px solid var(--border); font-size: 13px; color: var(--text-2); }
.plan-card ul.plan-meta li b { color: var(--text); }
.plan-card .btn { margin-top: auto; }

/* ---------- Pricing / confirm rows ---------- */
.summary-row { display: flex; justify-content: space-between; padding: 11px 0; border-bottom: 1px solid var(--border); font-size: 13.5px; }
.summary-row span { color: var(--text-2); }
.summary-row b { color: var(--text); font-family: var(--font-head); }
.summary-row.total { border-bottom: none; padding-top: 16px; }
.summary-row.total b { font-size: 18px; background: var(--grad); -webkit-background-clip: text; -webkit-text-fill-color: transparent; }

/* ---------- Timeline (activity) ---------- */
.timeline { position: relative; padding-left: 24px; }
.timeline::before { content: ''; position: absolute; left: 7px; top: 6px; bottom: 6px; width: 2px; background: var(--border); }
.tl-item { position: relative; padding: 0 0 18px 8px; }
.tl-item::before {
  content: '';
  position: absolute;
  left: -22px;
  top: 4px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 0 4px var(--cyan-soft);
}
.tl-item.in::before { background: var(--green); box-shadow: 0 0 0 4px var(--green-soft); }
.tl-item.out::before { background: var(--orange); box-shadow: 0 0 0 4px var(--orange-soft); }
.tl-item b { display: block; font-size: 13.5px; }
.tl-item span { color: var(--text-3); font-size: 12px; }
.tl-item .tl-amt { float: right; font-family: var(--font-head); font-weight: 700; }

/* ---------- OTP ---------- */
.otp-row { display: flex; gap: 10px; justify-content: center; margin: 22px 0; }
.otp-box {
  width: 52px; height: 58px;
  text-align: center;
  font-family: var(--font-head);
  font-size: 24px;
  font-weight: 700;
  background: var(--panel);
  border: 1px solid var(--border-2);
  border-radius: 12px;
  color: var(--text);
  outline: none;
}
.otp-box:focus { border-color: var(--cyan); box-shadow: 0 0 0 3px var(--cyan-soft); }

/* ---------- Empty & misc ---------- */
.empty-state { text-align: center; padding: 50px 20px; color: var(--text-3); }
.empty-state .big { font-size: 40px; margin-bottom: 10px; }
.empty-state b { display: block; color: var(--text-2); margin-bottom: 4px; }

.pagination { display: flex; gap: 6px; justify-content: center; margin-top: 20px; flex-wrap: wrap; }
.pagination a, .pagination span {
  padding: 7px 13px;
  border-radius: 8px;
  background: var(--panel);
  border: 1px solid var(--border);
  color: var(--text-2);
  font-size: 13px;
}
.pagination a:hover { border-color: var(--cyan); color: var(--cyan); }
.pagination .current { background: var(--grad); color: #04121A; border-color: transparent; font-weight: 700; }

.overview-line { display: flex; gap: 10px; flex-wrap: wrap; }
.ov-chip { background: var(--panel-2); border: 1px solid var(--border); border-radius: 9px; padding: 8px 14px; font-size: 12.5px; color: var(--text-2); }
.ov-chip b { color: var(--text); font-family: var(--font-head); margin-right: 4px; }

.doc-thumb { border: 1px solid var(--border); border-radius: var(--radius-sm); overflow: hidden; background: var(--panel-2); }
.doc-thumb img { width: 100%; display: block; height: 150px; object-fit: cover; }
.doc-thumb .doc-foot { padding: 8px 10px; font-size: 12px; color: var(--text-2); border-top: 1px solid var(--border); }

.divider { border-top: 1px solid var(--border); margin: 20px 0; }

/* ---------- Admin accents ---------- */
.admin .sidebar { background: linear-gradient(180deg, #0D1424 0%, #0A0F1C 100%); }
.admin .btn-primary { background: linear-gradient(135deg, #F97316, #FB923C); box-shadow: 0 8px 20px -10px rgba(249, 115, 22, .5); }
.admin .balance-chip { background: linear-gradient(135deg, #F97316, #FB923C); }
.admin .stat-card.violet::after { background: var(--orange); }

.filters { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; margin-bottom: 18px; }
.filters .form-control { width: auto; min-width: 160px; }

.kpi-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 14px; }
.kpi { background: var(--panel); border: 1px solid var(--border); border-radius: var(--radius); padding: 16px; }
.kpi .kpi-label { color: var(--text-3); font-size: 11.5px; text-transform: uppercase; letter-spacing: .8px; font-weight: 600; }
.kpi .kpi-value { font-family: var(--font-head); font-size: 22px; font-weight: 700; margin-top: 4px; }
.kpi .kpi-sub { color: var(--text-3); font-size: 12px; margin-top: 2px; }

.two-col { display: grid; grid-template-columns: 1.6fr 1fr; gap: 18px; }
@media (max-width: 1000px) { .two-col { grid-template-columns: 1fr; } }

.hover-row { cursor: pointer; }
.actions-col { display: flex; gap: 6px; flex-wrap: wrap; }