:root {
  --color1: #042cb5;
  --color4: #D4141F;
  --color1-hover: #03259a;
  --color1-50: rgba(4,44,181,0.14);
  --color1-100: rgba(4,44,181,0.22);

  --mint: #29E0B0;
  --mint-soft: rgba(41,224,176,0.14);
  --amber: #FFB238;
  --amber-soft: rgba(255,178,56,0.14);
  --coral: #FF5C7A;
  --coral-soft: rgba(255,92,122,0.14);

  --ink-900: #0A0B0F;
  --ink-800: #14161C;
  --ink-700: #1B1E27;
  --ink-500: #5B5F6E;
  --ink-300: #888D9E;
  --ink-100: rgba(255,255,255,0.07);
  --ink-050: #0A0B0F;

  --surface: #14161C;
  --hairline: rgba(255,255,255,0.07);
  --hairline-strong: rgba(255,255,255,0.12);

  --text-hi: #F2F3F7;
  --text-lo: #888D9E;
  --text-faint: #5B5F6E;

  --radius-sm: 9px;
  --radius-md: 14px;
  --radius-lg: 20px;

  --shadow-sm: 0 1px 3px rgba(0,0,0,0.2);
  --shadow-md: 0 8px 24px rgba(0,0,0,0.3);
  --shadow-lg: 0 16px 48px rgba(0,0,0,0.4);

  --topbar-bg: rgba(10,11,15,0.85);

  --font-display: "Space Grotesk", sans-serif;
  --font-body: "Inter", sans-serif;
  --font-mono: "JetBrains Mono", monospace;
}

[data-theme="light"] {
  --ink-900: #12141A;
  --ink-800: #FFFFFF;
  --ink-700: #F4F5F7;
  --ink-500: #6B707C;
  --ink-300: #A7ABB5;
  --ink-100: #E7E8EC;
  --ink-050: #FFFFFF;
  --surface: #FFFFFF;
  --hairline: #E7E8EC;
  --hairline-strong: #D0D2D8;
  --text-hi: #12141A;
  --text-lo: #6B707C;
  --text-faint: #A7ABB5;
  --topbar-bg: rgba(255,255,255,0.85);
  --shadow-sm: 0 1px 2px rgba(18,20,26,0.04), 0 1px 1px rgba(18,20,26,0.03);
  --shadow-md: 0 8px 24px rgba(18,20,26,0.06), 0 2px 6px rgba(18,20,26,0.04);
  --shadow-lg: 0 16px 48px rgba(18,20,26,0.08);
}

*, *::before, *::after { box-sizing: border-box; }
* { font-family: var(--font-body); }

body {
  margin: 0; background: var(--ink-050); color: var(--text-hi);
  -webkit-font-smoothing: antialiased; min-height: 100vh;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display); color: var(--text-hi); font-weight: 600; letter-spacing: -0.01em;
}

a { color: var(--color1); text-decoration: none; }
a:hover { color: var(--color1-hover); }

.money, .fs-amount, .wallet-bal, .kes, .balance-figure, .mono {
  font-family: var(--font-mono); font-variant-numeric: tabular-nums; letter-spacing: -0.02em;
}
.display { font-family: var(--font-display); }

/* ── Shell layout ── */
.shell { display: grid; grid-template-columns: 248px 1fr; min-height: 100vh; }

/* ── Sidebar ── */
.sidebar {
  background: var(--ink-800); border-right: 1px solid var(--hairline);
  padding: 22px 16px 20px; display: flex; flex-direction: column;
}
.brand { display: flex; align-items: center; gap: 10px; padding: 4px 8px 22px; }
.brand-mark {
  width: 32px; height: 32px; border-radius: 9px;
  background: linear-gradient(135deg, var(--color1), #8B8FF5);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display); font-weight: 700; font-size: 15px; color: #fff; flex: none;
}
.brand-name { font-family: var(--font-display); font-weight: 700; font-size: 16px; letter-spacing: 0.2px; color: var(--text-hi); }
.brand-sub { font-size: 11px; color: var(--text-lo); margin-top: 1px; }
.nav-group-label {
  font-size: 10.5px; font-weight: 600; letter-spacing: 0.09em; text-transform: uppercase;
  color: var(--text-faint); padding: 16px 12px 6px;
}
.nav-item {
  display: flex; align-items: center; gap: 11px;
  padding: 9px 12px; border-radius: 10px; font-size: 13.5px; font-weight: 500;
  color: var(--text-lo); margin-bottom: 2px; transition: background .15s, color .15s; cursor: pointer;
}
.nav-item i { width: 16px; text-align: center; font-size: 14px; color: var(--text-faint); transition: color .15s; }
.nav-item:hover { background: var(--ink-700); color: var(--text-hi); }
.nav-item:hover i { color: var(--text-hi); }
.nav-item.active { background: var(--color1-50); color: var(--color1); }
.nav-item.active i { color: var(--color1); }
.nav-item .badge-dot { margin-left: auto; width: 6px; height: 6px; border-radius: 50%; background: var(--mint); }
.nav-item a { color: inherit; text-decoration: none; display: flex; align-items: center; gap: 11px; width: 100%; }
.sidebar-foot { margin-top: auto; padding-top: 16px; border-top: 1px solid var(--hairline); }
.user-mini {
  display: flex; align-items: center; gap: 10px; padding: 8px; border-radius: 10px; color: var(--text-hi); text-decoration: none;
}
.user-mini:hover { background: var(--ink-700); }
.user-mini img { width: 32px; height: 32px; border-radius: 9px; object-fit: cover; }
.user-mini-name { font-size: 13px; font-weight: 600; }
.user-mini-role { font-size: 11px; color: var(--text-lo); }

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

/* ── Topbar ── */
.topbar {
  height: 66px; display: flex; align-items: center; justify-content: space-between;
  padding: 0 28px; border-bottom: 1px solid var(--hairline);
  position: sticky; top: 0; background: var(--topbar-bg); backdrop-filter: blur(8px); z-index: 5;
}
.greeting { font-family: var(--font-display); font-weight: 600; font-size: 16px; }
.greeting span { color: var(--text-lo); font-family: var(--font-body); font-weight: 400; font-size: 12.5px; display: block; margin-top: 1px; }
.topbar-right { display: flex; align-items: center; gap: 14px; margin-left: auto; }
.wallet-chip {
  display: flex; align-items: center; gap: 8px;
  background: var(--ink-700); border: 1px solid var(--hairline-strong);
  padding: 7px 14px 7px 10px; border-radius: 99px; font-size: 13px;
}
.wallet-chip .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--mint); box-shadow: 0 0 0 3px var(--mint-soft); }
.icon-btn {
  width: 36px; height: 36px; border-radius: 10px; border: none;
  display: flex; align-items: center; justify-content: center;
  background: var(--ink-700); color: var(--text-lo); font-size: 13px; position: relative; cursor: pointer;
}
.icon-btn .ping { position: absolute; top: 7px; right: 8px; width: 6px; height: 6px; border-radius: 50%; background: var(--coral); }
.avatar { width: 36px; height: 36px; border-radius: 10px; object-fit: cover; }

/* ── Content ── */
.content { padding: 26px 28px 60px; }

/* ── CTA row ── */
.cta-row { display: flex; justify-content: flex-end; gap: 10px; margin-bottom: 18px; }
.btn {
  font-family: var(--font-body); font-weight: 600; font-size: 13px;
  padding: 9px 16px; border-radius: 10px; border: none; cursor: pointer;
  display: inline-flex; align-items: center; gap: 7px; transition: background .15s, transform .12s;
}
.btn:active { transform: scale(0.97); }
.btn-primary { background: var(--color1); color: #fff; }
.btn-primary:hover { background: var(--color1-hover); }
.btn-ghost { background: var(--ink-700); color: var(--text-hi); border: 1px solid var(--hairline-strong); }
.btn-ghost:hover { background: var(--ink-800); }
.btn-sm { padding: 7px 12px; font-size: 12px; }
.btn-xs { padding: 5px 10px; font-size: 11px; }

/* ── Ledger hero ── */
.ledger {
  position: relative;
  background: linear-gradient(135deg, var(--ink-900) 0%, #23262F 100%);
  border: none; border-radius: var(--radius-md);
  padding: 26px 28px 0; overflow: hidden; margin-bottom: 20px;
  box-shadow: var(--shadow-lg);
}
.ledger::before {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(41,224,176,0.15) 0%, transparent 50%);
  pointer-events: none;
}
.ledger::after {
  content: ""; position: absolute; top: -40%; right: -10%;
  width: 280px; height: 280px;
  background: radial-gradient(circle, rgba(41,224,176,0.25), transparent 70%);
  pointer-events: none;
}
.ledger-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 24px; position: relative; }
.ledger-label { font-size: 12.5px; color: var(--text-lo); font-weight: 500; margin-bottom: 8px; }
.ledger-balance { font-family: var(--font-mono); font-weight: 600; font-size: 40px; letter-spacing: -0.5px; }
.ledger-balance .cur { font-size: 20px; color: var(--text-lo); margin-right: 6px; font-weight: 500; }
.ledger-delta { display: inline-flex; align-items: center; gap: 5px; margin-top: 10px; font-size: 12.5px; color: var(--mint); background: var(--mint-soft); padding: 4px 9px; border-radius: 99px; }
.ledger-spark { width: 220px; height: 64px; flex: none; }
.ledger-spark svg { width: 100%; height: 100%; }
.ledger-rail {
  position: relative; display: grid; grid-template-columns: repeat(3,1fr);
  margin-top: 22px; border-top: 1px solid var(--hairline);
}
.ledger-rail-item { padding: 16px 4px 18px; border-right: 1px solid var(--hairline); }
.ledger-rail-item:last-child { border-right: none; }
.ledger-rail-item .k { font-size: 11.5px; color: var(--text-lo); margin-bottom: 6px; display: flex; align-items: center; gap: 6px; }
.ledger-rail-item .k i { font-size: 11px; color: var(--text-faint); }
.ledger-rail-item .v { font-family: var(--font-mono); font-weight: 600; font-size: 19px; }

/* ── Grid cards ── */
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 16px; }
.card {
  background: var(--ink-800); border: 1px solid var(--hairline);
  border-radius: var(--radius-md); padding: 18px 20px 20px;
}
.card .card-header {
  background: transparent; border-bottom: none;
  font-family: var(--font-display); font-weight: 600; color: var(--text-hi); padding: 0 0 14px;
}
.card-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.card-title { font-size: 13.5px; font-weight: 600; font-family: var(--font-display); }
.card-title .sub { display: block; font-family: var(--font-body); font-weight: 400; font-size: 11.5px; color: var(--text-lo); margin-top: 2px; }
.chart-tag { font-size: 11px; color: var(--mint); background: var(--mint-soft); padding: 3px 8px; border-radius: 99px; font-weight: 600; }

.info-split { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: var(--hairline); border-radius: 10px; overflow: hidden; margin-bottom: 14px; }
.info-split > div { background: var(--ink-700); padding: 14px 16px; }
.info-split .k { font-size: 11.5px; color: var(--text-lo); margin-bottom: 6px; }
.info-split .v { font-family: var(--font-mono); font-weight: 600; font-size: 16px; }

/* ── Earn tiles ── */
.section-head { display: flex; align-items: baseline; justify-content: space-between; margin: 26px 0 14px; }
.section-title { font-family: var(--font-display); font-weight: 600; font-size: 15px; }
.section-title span { color: var(--text-lo); font-family: var(--font-body); font-weight: 400; font-size: 12px; margin-left: 8px; }
.tiles { display: grid; grid-template-columns: repeat(6,1fr); gap: 14px; }
.tile {
  background: var(--ink-800); border: 1px solid var(--hairline);
  border-radius: var(--radius-md); padding: 16px 14px;
  display: flex; flex-direction: column; gap: 10px;
}
.tile-icon {
  width: 36px; height: 36px; border-radius: 10px;
  display: flex; align-items: center; justify-content: center; font-size: 15px; color: #fff;
}
.tile-title { font-size: 13px; font-weight: 700; font-family: var(--font-display); }
.tile-copy { font-size: 11.5px; color: var(--text-lo); line-height: 1.4; flex: 1; }
.tile-cta { font-size: 11.5px; font-weight: 600; color: var(--text-hi); display: flex; align-items: center; gap: 6px; }
.tile-cta i { font-size: 10px; }

.bg-indigo { background: linear-gradient(135deg, var(--color1), #8B8FF5); }
.bg-mint { background: linear-gradient(135deg, #1FBE95, var(--mint)); }
.bg-amber { background: linear-gradient(135deg, #E8951F, var(--amber)); }
.bg-coral { background: linear-gradient(135deg, #D6435F, var(--coral)); }
.bg-violet { background: linear-gradient(135deg, #8B5CF6, #B39CFA); }
.bg-slate { background: linear-gradient(135deg, #4A5164, #6B7286); }

/* ── Forms ── */
.form-control, .form-select {
  border: 1.5px solid var(--hairline-strong); border-radius: var(--radius-sm);
  font-family: var(--font-body); padding: 0.65em 0.9em;
  background: var(--ink-700); color: var(--text-hi); height: auto;
}
.form-control:focus, .form-select:focus {
  border-color: var(--color1); box-shadow: 0 0 0 3px var(--color1-50);
}
label { font-weight: 600; font-size: 0.85rem; color: var(--text-lo); }
input::placeholder { font-size: 13px; color: var(--text-faint); }

/* ── Tables ── */
table { font-size: 0.875rem; }
.table thead th {
  font-family: var(--font-display); font-size: 0.72rem; text-transform: uppercase;
  letter-spacing: 0.06em; color: var(--text-faint); border-bottom: 1px solid var(--hairline); font-weight: 600;
}
.table td, .table th { border-color: var(--hairline); vertical-align: middle; color: var(--text-hi); }
.table-hover tbody tr:hover { background: var(--ink-700); }

/* ── Badges ── */
.badge {
  font-weight: 600; font-size: 0.72rem; letter-spacing: 0.02em;
  padding: 0.4em 0.7em; border-radius: 999px;
}
.text-bg-success, .bg-success { background: var(--mint-soft) !important; color: var(--mint) !important; }
.text-bg-error, .bg-danger { background: var(--coral-soft) !important; color: var(--coral) !important; }
.bg-1 { background: var(--color1) !important; }

/* ── Alerts ── */
.alert { border-radius: var(--radius-sm); border: none; }
.alert-primary { background: var(--color1-50); color: var(--color1); }

/* ── Dropdowns ── */
.dropdown-menu {
  border: 1px solid var(--hairline); box-shadow: var(--shadow-md);
  border-radius: var(--radius-sm); padding: 0.5rem; background: var(--ink-700);
}
.dropdown-menu .dropdown-item {
  border-radius: 6px; font-size: 0.875rem; padding: 0.5rem 0.75rem; color: var(--text-lo);
}
.dropdown-menu .dropdown-item:hover { background: var(--ink-800); color: var(--text-hi); }
.dropdown-menu .dropdown-item i { color: var(--text-faint); margin-right: 5px; font-size: 16px; }

/* ── Modals ── */
.modal .modal-content {
  border-radius: var(--radius-md); border: 1px solid var(--hairline);
  padding: 10px; box-shadow: var(--shadow-lg); background: var(--ink-800);
}
.modal .modal-dialog.md { width: 400px; }

/* ── Pagination ── */
.paginate .btn { min-width: 36px; }

/* ── Loading ── */
.lds-ring {
  display: inline-block; position: relative; width: 80px; height: 80px;
}
.lds-ring div {
  box-sizing: border-box; display: block; position: absolute;
  width: 64px; height: 64px; margin: 8px;
  border: 8px solid var(--color1); border-radius: 50%;
  animation: lds-ring 1.2s cubic-bezier(0.5, 0, 0.5, 1) infinite;
  border-color: var(--color1) transparent transparent transparent;
}
.lds-ring div:nth-child(1) { animation-delay: -0.45s; }
.lds-ring div:nth-child(2) { animation-delay: -0.3s; }
.lds-ring div:nth-child(3) { animation-delay: -0.15s; }
@keyframes lds-ring { 0% { transform: rotate(0deg); } 100% { transform: rotate(360deg); } }

/* ── Responsive ── */
@media (max-width: 1100px) {
  .tiles { grid-template-columns: repeat(3,1fr); }
  .grid-2 { grid-template-columns: 1fr; }
}
@media (max-width: 768px) {
  .shell { grid-template-columns: 1fr; }
  .sidebar { display: none; position: fixed; top: 0; left: 0; height: 100%; z-index: 100; width: 260px; overflow-y: auto; }
  .sidebar.mobile-shown { display: flex; }
  .topbar { padding: 0 16px; }
  .content { padding: 20px 16px 40px; }
  .tiles { grid-template-columns: repeat(2,1fr); }
  .ledger-top { flex-direction: column; }
  .ledger-spark { width: 100%; height: 48px; }
  .ledger-balance { font-size: 28px; }
  .ledger-rail { grid-template-columns: 1fr; }
  .ledger-rail-item { border-right: none; border-bottom: 1px solid var(--hairline); padding: 12px 4px; }
  .ledger-rail-item:last-child { border-bottom: none; }
}

/* ── Utility ── */
.mono { font-family: var(--font-mono); }
.container { max-width: 1240px; }
.center-xy { display: flex; flex-direction: column; justify-content: center; align-items: center; min-height: 100%; }
.center-screen { min-height: 100vh; display: flex; flex-direction: column; justify-content: center; align-items: center; }
.fs-12 { font-size: 12px; }
.fs-13 { font-size: 13px; }
.fs-14 { font-size: 14px; }
.fs-16 { font-size: 16px; }
.fs-18 { font-size: 18px; }
.fs-20 { font-size: 20px; }
.fs-22 { font-size: 22px; }
.fs-24 { font-size: 24px; }
.fs-26 { font-size: 26px; }
.fs-30 { font-size: 30px; }
.fs-40 { font-size: 40px; }
.fw-700 { font-weight: 700; }
.fw-600 { font-weight: 600; }
.fw-500 { font-weight: 500; }
.text-lo { color: var(--text-lo); }
.text-faint { color: var(--text-faint); }
.text-hi { color: var(--text-hi); }
[v-cloak] { display: none; }
.cursor-pointer { cursor: pointer; }
.rounded-4 { border-radius: var(--radius-md); }
video, iframe { max-width: 100%; }

/* ── Auth wrapper ── */
#auth-wrapper { background: var(--ink-050); min-height: 100vh; }
#auth-wrapper .auth-card {
  background: var(--ink-800); border: 1px solid var(--hairline);
  border-radius: var(--radius-md); padding: 32px;
  max-width: 420px; width: 100%;
}
#auth-wrapper .auth-card .brand { padding: 0 0 24px; justify-content: center; }
#auth-wrapper .auth-card h1 { font-size: 1.3rem; text-align: center; }
#auth-wrapper .auth-card p { color: var(--text-lo); font-size: 0.85rem; }
#auth-wrapper .auth-card a { color: var(--color1); font-weight: 600; }

/* ── Footer ── */
.dash-footer {
  background: var(--ink-050); padding: 16px 28px; text-align: center;
  border-top: 1px solid var(--hairline);
}
.dash-footer h4 { color: var(--text-lo); font-size: 0.8rem; margin: 0; }
.dash-footer p { color: var(--text-faint); font-size: 0.72rem; margin: 4px 0 0; }

/* ── Info block ── */
.info-block.block2 { background: var(--ink-700); border-radius: var(--radius-sm); padding: 14px 16px; }
.info-block.block2 h6 { color: var(--text-lo); text-transform: uppercase; letter-spacing: 0.04em; font-size: 0.72rem; margin: 0; }
.info-block.block2 p { font-family: var(--font-mono); font-weight: 600; color: var(--text-hi); font-size: 0.95em; margin: 0; }
.info-block.block2 img { width: 36px; height: 36px; object-fit: contain; opacity: 0.7; }

/* ── Legacy admin card overrides ── */
.card.custom1 { border: none; overflow: hidden; }
.card.custom2 { border: none; margin-bottom: 20px; box-shadow: var(--shadow-md); border-radius: 10px; }
.card.custom2 .more { text-decoration: none; color: var(--text-faint); }
.card.custom2 h5 { font-size: 18px; }
.card.custom2 p { color: var(--text-lo); }
.card.custom2 .icon-center-wrap { border-radius: 50%; box-shadow: none; width: 45px; height: 45px; }
.card.custom2 .icon-center-wrap .icon { font-size: 16px; }

.sum-block, .card.sum-block {
  background: linear-gradient(135deg, var(--ink-900) 0%, #23262F 100%);
  border: none; border-radius: var(--radius-lg); color: var(--text-hi);
  position: relative; overflow: hidden; box-shadow: var(--shadow-md);
}
.sum-block::after {
  content: ""; position: absolute; top: -40%; right: -10%;
  width: 260px; height: 260px;
  background: radial-gradient(circle, rgba(212,20,31,0.35), transparent 70%);
  pointer-events: none;
}
.sum-block h4 { color: var(--text-hi); font-size: 14px; margin: 8px 0 4px; }
.sum-block p { color: var(--text-lo); font-size: 14px; margin: 0; }
.sum-block img { width: 36px; height: 36px; object-fit: contain; opacity: 0.7; }

.icon-center-wrap {
  width: 40px; height: 40px; border-radius: 6px;
  border: 1px solid var(--hairline-strong); background: transparent;
  position: relative; box-shadow: 0 8px 28px rgba(4,44,181,0.2);
}
.icon-center-wrap .icon {
  position: absolute; top: 50%; left: 50%;
  transform: translate(-50%, -50%); color: var(--text-hi); font-size: 14px;
}
.icon-center-wrap img {
  position: absolute; top: 50%; left: 50%;
  transform: translate(-50%, -50%); color: var(--text-hi); width: 20px;
}

.bg-2 { background: var(--ink-700) !important; }

/* ── CKEditor content (task descriptions) ── */
.CKEditor-content { color: var(--text-hi); line-height: 1.65; }
.CKEditor-content p { color: var(--text-hi); }
.CKEditor-content strong { color: var(--text-hi); }
.CKEditor-content a { color: var(--color1); }
.CKEditor-content img { max-width: 100%; border-radius: var(--radius-sm); }

/* ── Package features list ── */
.pkgs { color: var(--text-hi) !important; }

/* ── Toasts / notifications ── */
.toast {
  background: var(--ink-700) !important; border: 1px solid var(--hairline-strong);
  border-radius: var(--radius-md); box-shadow: var(--shadow-lg); color: var(--text-hi);
}
.toast .toast-header {
  background: var(--ink-800); color: var(--text-hi); border-bottom: 1px solid var(--hairline);
  border-radius: var(--radius-md) var(--radius-md) 0 0; padding: 0.75rem 1rem;
}
.toast .toast-header strong { color: var(--text-hi); }
.toast .toast-header small { color: var(--text-lo); }
.toast .toast-body { color: var(--text-lo); padding: 0.85rem 1rem; }
.toast .btn-close {
  filter: invert(1) brightness(0.8); opacity: 0.7;
}
.toast .btn-close:hover { opacity: 1; }
[data-theme="light"] .toast .btn-close { filter: none; }
.toast .icon {
  width: 8px; height: 8px; border-radius: 50%; display: inline-block;
}
.toast .icon.text-bg-success { background: var(--mint); }
.toast .icon.text-bg-error,
.toast .icon.text-bg-danger { background: var(--coral); }
.toast .icon.text-bg-info { background: var(--color1); }
.toast .icon.text-bg-warning { background: var(--amber); }

/* ── Logout link in sidebar ── */
.nav-item.logout { margin-top: 0; }
.nav-item.logout a { color: var(--coral); }
.nav-item.logout a i { color: var(--coral); }
.nav-item.logout:hover { background: var(--coral-soft); }
.nav-item.logout:hover a { color: var(--coral); }
.nav-item.logout:hover a i { color: var(--coral); }

/* ── Light mode: ledger card ── */
[data-theme="light"] .ledger {
  background: var(--surface);
  border: 1px solid var(--hairline);
  box-shadow: var(--shadow-md);
}
[data-theme="light"] .ledger::before,
[data-theme="light"] .ledger::after {
  display: none;
}
[data-theme="light"] .ledger-label {
  color: var(--text-faint);
  font-size: 11px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 10px;
}
[data-theme="light"] .ledger-balance {
  font-size: 44px;
  font-weight: 700;
  letter-spacing: -1px;
}
[data-theme="light"] .ledger-balance .cur {
  font-size: 22px;
  color: var(--text-faint);
}
[data-theme="light"] .ledger-delta {
  background: var(--mint-soft);
  color: #1C8A4B;
}
[data-theme="light"] .ledger-rail-item .k {
  font-size: 11px;
  color: var(--text-faint);
  text-transform: uppercase;
  letter-spacing: 0.03em;
}
[data-theme="light"] .ledger-rail-item .v {
  font-size: 20px;
  font-weight: 700;
}

/* ===== Loading Overlay ===== */
.deposit-loading-overlay {
  position: fixed;
  inset: 0;
  z-index: 99999;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: rgba(10, 11, 15, 0.85);
  backdrop-filter: blur(8px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}
.deposit-loading-overlay.active {
  opacity: 1;
  pointer-events: all;
}
.deposit-loading-overlay .spinner {
  width: 48px;
  height: 48px;
  border: 4px solid var(--ink-500);
  border-top-color: var(--color1);
  border-radius: 50%;
  animation: deposit-spin 0.8s linear infinite;
}
.deposit-loading-overlay .icon {
  font-size: 48px;
  color: var(--mint);
  display: none;
}
.deposit-loading-overlay .icon.show {
  display: block;
}
.deposit-loading-overlay .spinner.hide {
  display: none;
}
.deposit-loading-overlay .msg {
  margin-top: 20px;
  font-size: 16px;
  color: var(--text-hi);
  font-weight: 500;
}
.deposit-loading-overlay .sub-msg {
  margin-top: 6px;
  font-size: 13px;
  color: var(--text-lo);
}
@keyframes deposit-spin {
  to { transform: rotate(360deg); }
}
