/* ===========================================================
   CODESPHERE PAYBILL — DASHBOARD
   Design tokens
   =========================================================== */

:root {
  --cs-ink-950: #06183a;
  --cs-brand-900: #082a63;
  --cs-brand-800: #0c3a86;
  --cs-brand-700: #1049a3;
  --cs-brand-600: #1657c4;
  --cs-brand-500: #2f74e6;
  --cs-brand-400: #5c99f7;
  --cs-mint-500: #17b26a;
  --cs-mint-100: #e2f8ed;
  --cs-coral-500: #e5484d;
  --cs-coral-100: #fde8e8;
  --cs-gold-400: #f0a93b;
  --cs-cloud-50: #f4f8ff;
  --cs-cloud-100: #eaf1ff;
  --cs-cloud-200: #dbe7fb;
  --cs-slate-600: #5b6b85;
  --cs-slate-400: #8ea0bc;
  --cs-white: #ffffff;

  --cs-font-display: "Sora", "Segoe UI", system-ui, sans-serif;
  --cs-font-body: "Inter", "Segoe UI", system-ui, sans-serif;

  --cs-radius-lg: 22px;
  --cs-radius-md: 16px;
  --cs-radius-sm: 12px;
  --cs-radius-pill: 999px;

  --cs-shadow-card: 0 12px 30px -14px rgba(8, 42, 99, 0.35);
  --cs-shadow-floating: 0 14px 28px -8px rgba(16, 73, 163, 0.55);

  --cs-nav-height: 72px;
}

@import url("https://fonts.googleapis.com/css2?family=Sora:wght@500;600;700;800&family=Inter:wght@400;500;600;700&display=swap");

/* ===========================================================
   APP SHELL — mobile-first, becomes a centred "device frame"
   on larger viewports so the layout stays coherent everywhere.
   =========================================================== */

.cs-app {
  min-height: 100vh;
  width: 100vw;
  margin-left: calc(50% - 50vw);
  font-family: var(--cs-font-body);
  color: var(--cs-ink-950);
  background: var(--cs-cloud-50);
  box-sizing: border-box;
  display: flex;
  justify-content: center;
}

.cs-app *,
.cs-app *::before,
.cs-app *::after {
  box-sizing: border-box;
}

.cs-shell {
  position: relative;
  width: 100%;
  max-width: 480px;
  min-height: 100vh;
  background: var(--cs-cloud-50);
  display: flex;
  isolation: isolate;
}

.cs-frame {
  position: relative;
  width: 100%;
  min-width: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.cs-sidebar {
  display: none;
}

/*@media (min-width: 640px) and (max-width: 1023.98px) {*/
/*  .cs-app {*/
/*    padding: 40px 24px;*/
/*    background: radial-gradient(circle at 15% 10%, #dfe9ff 0%, transparent 45%),*/
/*      radial-gradient(circle at 85% 90%, #dce6ff 0%, transparent 40%), var(--cs-cloud-50);*/
/*    align-items: flex-start;*/
/*  }*/

/*  .cs-shell {*/
/*    max-width: 520px;*/
/*    min-height: calc(100vh - 80px);*/
/*    max-height: 900px;*/
/*    border-radius: 32px;*/
/*    overflow: hidden;*/
/*    box-shadow: 0 40px 80px -30px rgba(6, 24, 58, 0.35), 0 0 0 10px var(--cs-white),*/
/*      0 0 0 11px var(--cs-cloud-200);*/
/*  }*/
/*}*/
@media (min-width: 640px) and (max-width: 1199.98px) {
  .cs-shell {
    max-width: 900px;
    margin: 0 auto;
  }

  .cs-main {
    max-width: 720px;
    margin: 0 auto;
    width: 100%;
  }
}
@media (min-width: 1024px) {
  .cs-app {
    padding: 0;
    align-items: stretch;
  }

  .cs-shell {
    max-width: 1440px;
    width: 100%;
    min-height: 100vh;
    margin: 0 auto;
    background: var(--cs-white);
    box-shadow: 0 0 0 1px var(--cs-cloud-200);
  }

  .cs-sidebar {
    display: flex;
  }

  .cs-main {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 340px;
    align-items: start;
    gap: 24px;
    padding: 28px 32px 40px;
  }

  .cs-main-rail {
    position: sticky;
    top: 88px;
  }

  .cs-bottom-nav {
    display: none;
  }
}

.cs-main {
  flex: 1 1 auto;
  overflow-y: auto;
  padding: 16px 16px calc(var(--cs-nav-height) + env(safe-area-inset-bottom, 0px) + 28px);
  display: flex;
  flex-direction: column;
  gap: 22px;
  scrollbar-width: thin;
}

.cs-main-primary,
.cs-main-rail {
  display: flex;
  flex-direction: column;
  gap: 22px;
}

.cs-main::-webkit-scrollbar {
  width: 6px;
}
.cs-main::-webkit-scrollbar-thumb {
  background: var(--cs-cloud-200);
  border-radius: 999px;
}

/* ===========================================================
   TOP BAR
   =========================================================== */

.cs-topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 16px;
  background: var(--cs-white);
  border-bottom: 1px solid var(--cs-cloud-200);
}

.cs-profile {
  display: flex;
  align-items: center;
  gap: 11px;
  min-width: 0;
}

.cs-avatar {
  position: relative;
  width: 44px;
  height: 44px;
  flex: none;
  border-radius: 50%;
  background: linear-gradient(150deg, var(--cs-brand-600), var(--cs-brand-800));
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: visible;
}

.cs-avatar img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
}

.cs-avatar-initials {
  color: var(--cs-white);
  font-family: var(--cs-font-display);
  font-weight: 700;
  font-size: 15px;
  letter-spacing: 0.02em;
}

.cs-avatar-cam {
  position: absolute;
  bottom: -2px;
  right: -2px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  border: 2px solid var(--cs-white);
  background: var(--cs-gold-400);
  color: var(--cs-ink-950);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  padding: 0;
}

.cs-greeting {
  display: flex;
  flex-direction: column;
  min-width: 0;
  line-height: 1.25;
}

.cs-greeting-line {
  font-size: 12.5px;
  color: var(--cs-slate-600);
}

.cs-greeting-name {
  font-family: var(--cs-font-display);
  font-weight: 700;
  font-size: 15.5px;
  color: var(--cs-ink-950);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.cs-greeting-business {
  margin-top: 2px;
  font-size: 11px;
  font-weight: 600;
  color: var(--cs-brand-600);
  background: var(--cs-cloud-100);
  border-radius: var(--cs-radius-pill);
  padding: 1px 8px;
  width: fit-content;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 160px;
}

.cs-topbar-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: none;
}

.cs-icon-btn {
  position: relative;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: none;
  background: var(--cs-cloud-100);
  color: var(--cs-brand-800);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.cs-dot {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--cs-mint-500);
  border: 2px solid var(--cs-white);
}

/* ===========================================================
   BALANCE CARD — the signature element
   =========================================================== */

.cs-balance-card {
  position: relative;
  overflow: hidden;
  border-radius: var(--cs-radius-lg);
  padding: 20px 18px 16px;
  background: linear-gradient(155deg, var(--cs-brand-700) 0%, var(--cs-brand-800) 55%, var(--cs-ink-950) 100%);
  color: var(--cs-white);
  box-shadow: var(--cs-shadow-card);
}

.cs-bubbles {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}

.cs-bubble {
  position: absolute;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, rgba(255, 255, 255, 0.35), rgba(255, 255, 255, 0.04));
  animation: cs-float 9s ease-in-out infinite;
}

.cs-bubble.b1 { width: 120px; height: 120px; top: -40px; right: -30px; animation-duration: 11s; }
.cs-bubble.b2 { width: 60px; height: 60px; bottom: 10px; right: 40px; animation-duration: 8s; animation-delay: 1s; }
.cs-bubble.b3 { width: 34px; height: 34px; top: 60px; right: 90px; animation-duration: 7s; animation-delay: 0.4s; }
.cs-bubble.b4 { width: 90px; height: 90px; bottom: -50px; left: -30px; animation-duration: 10s; animation-delay: 0.6s; }
.cs-bubble.b5 { width: 20px; height: 20px; top: 30%; left: 8%; animation-duration: 6s; animation-delay: 1.4s; }

@keyframes cs-float {
  0%, 100% { transform: translateY(0) translateX(0); }
  50% { transform: translateY(-10px) translateX(4px); }
}

@media (prefers-reduced-motion: reduce) {
  .cs-bubble { animation: none; }
}

.cs-balance-top {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding-bottom: 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.16);
}

.cs-balance-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.cs-balance-label {
  font-size: 12.5px;
  color: rgba(255, 255, 255, 0.7);
}

.cs-balance-chip {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(255, 255, 255, 0.12);
  border-radius: var(--cs-radius-pill);
  padding: 4px 6px 4px 12px;
  font-family: var(--cs-font-display);
  font-weight: 600;
  font-size: 13.5px;
}

.cs-copy-btn {
  position: relative;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  border: none;
  background: rgba(255, 255, 255, 0.18);
  color: var(--cs-white);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.cs-copy-btn--ghost {
  background: rgba(255, 255, 255, 0.1);
}

.cs-amount-block {
  position: relative;
  z-index: 1;
  padding: 16px 0 14px;
}

.cs-amount-row {
  display: flex;
  align-items: center;
  gap: 10px;
}

.cs-currency {
  font-family: var(--cs-font-display);
  font-weight: 600;
  font-size: 15px;
  opacity: 0.75;
  letter-spacing: 0.04em;
}

.cs-amount {
  font-family: var(--cs-font-display);
  font-weight: 800;
  font-size: 30px;
  letter-spacing: -0.01em;
}

.cs-eye-btn {
  margin-left: auto;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: none;
  background: rgba(255, 255, 255, 0.14);
  color: var(--cs-white);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.cs-amount-caption {
  display: block;
  margin-top: 4px;
  font-size: 12.5px;
  color: rgba(255, 255, 255, 0.65);
}

.cs-collections-block {
  position: relative;
  z-index: 1;
  padding-bottom: 18px;
}

.cs-collections-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  background: rgba(255, 255, 255, 0.08);
  border-radius: var(--cs-radius-sm);
  padding: 10px 14px;
}

.cs-collections-label {
  font-size: 12.5px;
  color: rgba(255, 255, 255, 0.72);
}

.cs-collections-value {
  font-family: var(--cs-font-display);
  font-weight: 700;
  font-size: 15px;
}

.cs-quick-actions {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 6px;
}

.cs-quick-action {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  background: none;
  border: none;
  color: var(--cs-white);
  cursor: pointer;
  padding: 4px 2px;
}

.cs-quick-icon {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.14);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.15s ease, background 0.15s ease;
}

.cs-quick-action:hover .cs-quick-icon,
.cs-quick-action:focus-visible .cs-quick-icon {
  background: rgba(255, 255, 255, 0.26);
  transform: translateY(-2px);
}

.cs-quick-icon--pay { background: rgba(240, 169, 59, 0.32); }
.cs-quick-icon--deposit { background: rgba(23, 178, 106, 0.3); }

.cs-quick-label {
  font-size: 11px;
  line-height: 1.25;
  text-align: center;
  color: rgba(255, 255, 255, 0.85);
  max-width: 68px;
}

/* ===========================================================
   SECURITY NOTE
   =========================================================== */

.cs-security-note {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin: -8px 2px 0;
  font-size: 12px;
  line-height: 1.5;
  color: var(--cs-slate-600);
  background: var(--cs-cloud-100);
  border: 1px solid var(--cs-cloud-200);
  border-radius: var(--cs-radius-sm);
  padding: 10px 12px;
}

.cs-security-icon {
  flex: none;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--cs-brand-600);
  margin-top: 1px;
}

/* ===========================================================
   GENERIC SECTION HEAD
   =========================================================== */

.cs-section {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.cs-section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
}

.cs-section-head h2 {
  margin: 0;
  font-family: var(--cs-font-display);
  font-weight: 700;
  font-size: 16.5px;
  color: var(--cs-ink-950);
}

.cs-section-sub {
  font-size: 12px;
  color: var(--cs-slate-400);
}

.cs-see-all,
.cs-edit-link {
  border: none;
  background: none;
  color: var(--cs-brand-600);
  font-weight: 600;
  font-size: 13px;
  display: flex;
  align-items: center;
  gap: 2px;
  cursor: pointer;
  padding: 0;
}

/* ===========================================================
   OVERVIEW GRID — vivid banking-primary tiles with depth
   =========================================================== */

.cs-overview-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}

@media (min-width: 480px) {
  .cs-overview-grid {
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  }
}

.cs-overview-card {
  position: relative;
  overflow: hidden;
  border: none;
  border-radius: var(--cs-radius-md);
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  color: var(--cs-white);
  /* subtle diagonal texture layered under each card's own gradient,
     overridden per-card below */
  background-image:
    repeating-linear-gradient(135deg, rgba(255,255,255,0.06) 0px, rgba(255,255,255,0.06) 2px, transparent 2px, transparent 10px),
    radial-gradient(circle at 85% -10%, rgba(255,255,255,0.28), transparent 55%);
  box-shadow: 0 14px 26px -16px rgba(6, 24, 58, 0.55);
}

/*.cs-overview-card:last-child {*/
/*  grid-column: 1 / -1;*/
/*}*/

/*@media (min-width: 480px) {*/
/*  .cs-overview-card:last-child {*/
/*    grid-column: auto;*/
/*  }*/
/*}*/

/* Order matches dashboard.js exactly:
   1 total withdrawn · 2 pending withdrawal · 3 withdrawal fees ·
   4 total payments · 5 total withdrawals (count) */

.cs-overview-card[data-tone="withdrawn"] {
  background-color: var(--cs-coral-500);
  background-image:
    repeating-linear-gradient(135deg, rgba(255,255,255,0.07) 0px, rgba(255,255,255,0.07) 2px, transparent 2px, transparent 10px),
    linear-gradient(155deg, #ef6266, var(--cs-coral-500) 55%, #b5262b 100%);
  box-shadow: 0 14px 26px -14px rgba(229, 72, 77, 0.55);
}

.cs-overview-card[data-tone="pending"] {
  background-color: var(--cs-gold-400);
  background-image:
    repeating-linear-gradient(135deg, rgba(255,255,255,0.07) 0px, rgba(255,255,255,0.07) 2px, transparent 2px, transparent 10px),
    linear-gradient(155deg, #f5bf62, var(--cs-gold-400) 55%, #b8720f 100%);
  box-shadow: 0 14px 26px -14px rgba(240, 169, 59, 0.55);
}

.cs-overview-card[data-tone="fees"] {
  background-color: var(--cs-ink-950);
  background-image:
    repeating-linear-gradient(135deg, rgba(255,255,255,0.05) 0px, rgba(255,255,255,0.05) 2px, transparent 2px, transparent 10px),
    linear-gradient(155deg, var(--cs-slate-600), var(--cs-ink-950) 65%);
  box-shadow: 0 14px 26px -14px rgba(6, 24, 58, 0.6);
}

.cs-overview-card[data-tone="payments"] {
  background-color: var(--cs-mint-500);
  background-image:
    repeating-linear-gradient(135deg, rgba(255,255,255,0.07) 0px, rgba(255,255,255,0.07) 2px, transparent 2px, transparent 10px),
    linear-gradient(155deg, #3ecb8c, var(--cs-mint-500) 55%, #0c8a4f 100%);
  box-shadow: 0 14px 26px -14px rgba(23, 178, 106, 0.55);
}

.cs-overview-card[data-tone="withdrawals"] {
  background-color: var(--cs-brand-700);
  background-image:
    repeating-linear-gradient(135deg, rgba(255,255,255,0.07) 0px, rgba(255,255,255,0.07) 2px, transparent 2px, transparent 10px),
    linear-gradient(155deg, var(--cs-brand-500), var(--cs-brand-800) 65%);
  box-shadow: 0 14px 26px -14px rgba(16, 73, 163, 0.55);
}

/* KYC — one color per status */
.cs-overview-card[data-tone="kyc-verified"] {
  background-color: var(--cs-mint-500);
  background-image:
    repeating-linear-gradient(135deg, rgba(255,255,255,0.07) 0px, rgba(255,255,255,0.07) 2px, transparent 2px, transparent 10px),
    linear-gradient(155deg, #3ecb8c, var(--cs-mint-500) 55%, #0c8a4f 100%);
  box-shadow: 0 14px 26px -14px rgba(23, 178, 106, 0.55);
}
.cs-overview-card[data-tone="kyc-unverified"] {
  background-color: var(--cs-slate-600);
  background-image:
    repeating-linear-gradient(135deg, rgba(255,255,255,0.05) 0px, rgba(255,255,255,0.05) 2px, transparent 2px, transparent 10px),
    linear-gradient(155deg, var(--cs-slate-400), var(--cs-slate-600) 65%);
  box-shadow: 0 14px 26px -14px rgba(6, 24, 58, 0.45);
}
.cs-overview-card[data-tone="kyc-review"] {
  background-color: var(--cs-gold-400);
  background-image:
    repeating-linear-gradient(135deg, rgba(255,255,255,0.07) 0px, rgba(255,255,255,0.07) 2px, transparent 2px, transparent 10px),
    linear-gradient(155deg, #f5bf62, var(--cs-gold-400) 55%, #b8720f 100%);
  box-shadow: 0 14px 26px -14px rgba(240, 169, 59, 0.55);
}
.cs-overview-card[data-tone="kyc-failed"] {
  background-color: var(--cs-coral-500);
  background-image:
    repeating-linear-gradient(135deg, rgba(255,255,255,0.07) 0px, rgba(255,255,255,0.07) 2px, transparent 2px, transparent 10px),
    linear-gradient(155deg, #ef6266, var(--cs-coral-500) 55%, #b5262b 100%);
  box-shadow: 0 14px 26px -14px rgba(229, 72, 77, 0.55);
}
.cs-overview-card[data-tone="kyc-moreinfo"] {
  background-color: var(--cs-brand-700);
  background-image:
    repeating-linear-gradient(135deg, rgba(255,255,255,0.07) 0px, rgba(255,255,255,0.07) 2px, transparent 2px, transparent 10px),
    linear-gradient(155deg, var(--cs-brand-500), var(--cs-brand-800) 65%);
  box-shadow: 0 14px 26px -14px rgba(16, 73, 163, 0.55);
}

.cs-overview-icon {
  position: relative;
  z-index: 1;
  width: 30px;
  height: 30px;
  border-radius: 9px;
  background: rgba(255, 255, 255, 0.2);
  color: var(--cs-white);
  display: flex;
  align-items: center;
  justify-content: center;
}

.cs-overview-label {
  position: relative;
  z-index: 1;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.82);
}

.cs-overview-value {
  position: relative;
  z-index: 1;
  font-family: var(--cs-font-display);
  font-weight: 700;
  font-size: 15.5px;
  color: var(--cs-white);
}

/* ===========================================================
   TRANSACTIONS — tinted in/out rows with zebra depth
   =========================================================== */

.cs-tx-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.cs-tx-row {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--cs-white);
  border: 1px solid var(--cs-cloud-200);
  border-left: 3px solid transparent;
  border-radius: var(--cs-radius-md);
  padding: 12px;
}

.cs-tx-row--in {
  border-left-color: var(--cs-mint-500);
  background-image: linear-gradient(135deg, rgba(23, 178, 106, 0.1), rgba(23, 178, 106, 0.02) 65%);
  border-color: rgba(23, 178, 106, 0.22);
}

.cs-tx-row--out {
  border-left-color: var(--cs-coral-500);
  background-image: linear-gradient(135deg, rgba(229, 72, 77, 0.1), rgba(229, 72, 77, 0.02) 65%);
  border-color: rgba(229, 72, 77, 0.22);
}

/* zebra: every second row of each type reads a touch deeper,
   for scan-ability across a long list */
.cs-tx-row--in:nth-child(even) {
  background-image: linear-gradient(135deg, rgba(23, 178, 106, 0.16), rgba(23, 178, 106, 0.04) 65%);
}

.cs-tx-row--out:nth-child(even) {
  background-image: linear-gradient(135deg, rgba(229, 72, 77, 0.16), rgba(229, 72, 77, 0.04) 65%);
}

.cs-tx-icon {
  flex: none;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.cs-tx-icon--in {
  background: linear-gradient(155deg, #3ecb8c, var(--cs-mint-500));
  color: var(--cs-white);
  box-shadow: 0 6px 14px -6px rgba(23, 178, 106, 0.6);
}

.cs-tx-icon--out {
  background: linear-gradient(155deg, #ef6266, var(--cs-coral-500));
  color: var(--cs-white);
  box-shadow: 0 6px 14px -6px rgba(229, 72, 77, 0.6);
}

.cs-tx-info {
  flex: 1 1 auto;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.cs-tx-title {
  font-size: 13.5px;
  font-weight: 600;
  color: var(--cs-ink-950);
}

.cs-tx-subtitle {
  font-size: 12px;
  color: var(--cs-slate-400);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.cs-tx-meta {
  flex: none;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 2px;
}

.cs-tx-amount {
  font-family: var(--cs-font-display);
  font-weight: 700;
  font-size: 13.5px;
}

.cs-tx-amount--in { color: #0c8a4f; }
.cs-tx-amount--out { color: #b5262b; }

.cs-tx-time {
  font-size: 11px;
  color: var(--cs-slate-400);
}

.cs-tx-empty {
  background: var(--cs-white);
  border: 1px dashed var(--cs-cloud-200);
  border-radius: var(--cs-radius-md);
  padding: 22px 14px;
  text-align: center;
  font-size: 13px;
  color: var(--cs-slate-400);
}

/* ===========================================================
   "WHAT WOULD YOU LIKE TO DO TODAY" GRID
   =========================================================== */

.cs-do-today-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
}

.cs-do-today-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  border: none;
  background: var(--cs-white);
  border: 1px solid var(--cs-cloud-200);
  border-radius: var(--cs-radius-md);
  padding: 12px 6px;
  cursor: pointer;
}

.cs-do-today-icon {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--cs-white);
}

.cs-do-today-card--save .cs-do-today-icon { background: linear-gradient(155deg, #f0a93b, #d97e15); }
.cs-do-today-card--invest .cs-do-today-icon { background: linear-gradient(155deg, #17b26a, #0c8a4f); }
.cs-do-today-card--lipa .cs-do-today-icon { background: linear-gradient(155deg, #2f74e6, #0c3a86); }
.cs-do-today-card--cards .cs-do-today-icon { background: linear-gradient(155deg, #5b6b85, #2c374a); }

.cs-do-today-label {
  font-size: 11px;
  font-weight: 600;
  text-align: center;
  color: var(--cs-ink-950);
  line-height: 1.25;
}

/* ===========================================================
   ADVERT CAROUSEL
   =========================================================== */

.cs-section--ads {
  overflow: hidden;
}

.cs-ad-track {
  display: flex;
  transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.cs-ad-card {
  flex: 0 0 100%;
  border-radius: var(--cs-radius-lg);
  padding: 22px 20px;
  min-height: 140px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 8px;
  color: var(--cs-white);
  position: relative;
  overflow: hidden;
}

.cs-ad-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 85% 10%, rgba(255, 255, 255, 0.22), transparent 55%);
}

.cs-ad-card--gift { background: linear-gradient(140deg, #d9436e, #7c1f52); }
.cs-ad-card--invest { background: linear-gradient(140deg, #1657c4, #082a63); }
.cs-ad-card--save { background: linear-gradient(140deg, #0c8a4f, #06421f); }
.cs-ad-card--insure { background: linear-gradient(140deg, #f0a93b, #b8620a); }

.cs-ad-eyebrow {
  position: relative;
  z-index: 1;
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.8);
}

.cs-ad-title {
  position: relative;
  z-index: 1;
  margin: 0;
  font-family: var(--cs-font-display);
  font-weight: 700;
  font-size: 17px;
  line-height: 1.3;
  max-width: 78%;
}

.cs-ad-cta {
  position: relative;
  z-index: 1;
  align-self: flex-start;
  margin-top: 4px;
  border: none;
  background: var(--cs-white);
  color: var(--cs-ink-950);
  font-weight: 700;
  font-size: 12.5px;
  padding: 9px 16px;
  border-radius: var(--cs-radius-pill);
  cursor: pointer;
}

.cs-ad-dots {
  display: flex;
  justify-content: center;
  gap: 6px;
  margin-top: 10px;
}

.cs-ad-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  border: none;
  background: var(--cs-cloud-200);
  cursor: pointer;
  padding: 0;
  transition: width 0.2s ease, background 0.2s ease;
}

.cs-ad-dot.is-active {
  width: 18px;
  border-radius: 999px;
  background: var(--cs-brand-600);
}

/* ===========================================================
   BRAND STRIP
   =========================================================== */

.cs-brand-strip {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--cs-cloud-100);
  border: 1px dashed var(--cs-cloud-200);
  border-radius: var(--cs-radius-md);
  padding: 12px 14px;
  flex-wrap: wrap;
}

.cs-brand-strip-icon {
  color: var(--cs-brand-700);
}

.cs-brand-strip-label {
  font-family: var(--cs-font-display);
  font-weight: 700;
  font-size: 12.5px;
  letter-spacing: 0.03em;
  color: var(--cs-brand-800);
}

.cs-brand-strip-value {
  font-family: var(--cs-font-display);
  font-weight: 700;
  font-size: 12.5px;
  color: var(--cs-ink-950);
  background: var(--cs-white);
  border-radius: var(--cs-radius-pill);
  padding: 3px 10px;
}

.cs-brand-strip-tag {
  margin-left: auto;
  font-size: 11px;
  color: var(--cs-slate-400);
}

/* ===========================================================
   BOTTOM NAVIGATION — genuinely fixed (see skeleton.css fix:
   the fade-in animation was leaving a stray transform on the
   page root, which was silently turning this into
   position: absolute relative to that root instead of the
   viewport)
   =========================================================== */

.cs-bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 30;
  height: calc(var(--cs-nav-height) + env(safe-area-inset-bottom, 0px));
  padding-bottom: env(safe-area-inset-bottom, 0px);
  background: var(--cs-white);
  border-top: 1px solid var(--cs-cloud-200);
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  align-items: center;
  padding-left: 6px;
  padding-right: 6px;
}

.cs-nav-item {
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  border: none;
  background: none;
  color: var(--cs-slate-400);
  font-size: 10px;
  font-weight: 600;
  cursor: pointer;
  padding: 6px 1px;
  white-space: nowrap;
}

.cs-nav-item.is-active {
  color: var(--cs-brand-700);
}

.cs-nav-floating {
  position: relative;
  top: -22px;
  margin: 0 auto;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  border: 4px solid var(--cs-cloud-50);
  background: linear-gradient(
    155deg,
    var(--cs-brand-500),
    var(--cs-brand-800)
  );
  color: var(--cs-white);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--cs-shadow-floating);
  cursor: pointer;
}

.cs-nav-floating.is-active {
  background: linear-gradient(155deg, var(--cs-gold-400), #b8620a);
}

@media (min-width: 640px) {
  .cs-nav-floating {
    border-color: var(--cs-white);
  }
}

/* ===========================================================
   SIDEBAR NAV — desktop/laptop portal (>=1024px)
   =========================================================== */

.cs-sidebar {
  flex-direction: column;
  width: 240px;
  flex: none;
  background: var(--cs-cloud-50);
  border-right: 1px solid var(--cs-cloud-200);
  padding: 22px 16px;
  gap: 24px;
}

.cs-sidebar-brand {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 8px;
}

.cs-sidebar-brand-icon {
  color: var(--cs-brand-700);
  display: flex;
}

.cs-sidebar-brand-text {
  font-family: var(--cs-font-display);
  font-weight: 600;
  font-size: 12.5px;
  letter-spacing: 0.04em;
  color: var(--cs-brand-800);
}

.cs-sidebar-brand-text strong {
  color: var(--cs-ink-950);
}

.cs-sidebar-nav {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.cs-sidebar-link {
  display: flex;
  align-items: center;
  gap: 12px;
  border: none;
  background: none;
  color: var(--cs-slate-600);
  font-family: var(--cs-font-body);
  font-weight: 600;
  font-size: 13.5px;
  padding: 10px 12px;
  border-radius: var(--cs-radius-sm);
  cursor: pointer;
  text-align: left;
}

.cs-sidebar-link:hover {
  background: var(--cs-cloud-100);
  color: var(--cs-brand-700);
}

.cs-sidebar-link.is-active {
  background: var(--cs-brand-700);
  color: var(--cs-white);
}

.cs-sidebar-link-icon {
  display: flex;
  flex: none;
}

.cs-sidebar-profile {
  margin-top: auto;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px;
  background: var(--cs-white);
  border: 1px solid var(--cs-cloud-200);
  border-radius: var(--cs-radius-md);
}

.cs-sidebar-profile-avatar {
  flex: none;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: linear-gradient(150deg, var(--cs-brand-600), var(--cs-brand-800));
  color: var(--cs-white);
  font-family: var(--cs-font-display);
  font-weight: 700;
  font-size: 13px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.cs-sidebar-profile-meta {
  display: flex;
  flex-direction: column;
  min-width: 0;
  gap: 1px;
}

.cs-sidebar-profile-name {
  font-size: 12.5px;
  font-weight: 700;
  color: var(--cs-ink-950);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.cs-sidebar-profile-business {
  font-size: 11px;
  color: var(--cs-slate-400);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* ===========================================================
   RESPONSIVE — small phones
   =========================================================== */

@media (max-width: 360px) {
  .cs-amount {
    font-size: 26px;
  }
  .cs-quick-label {
    font-size: 10px;
  }
  .cs-do-today-grid,
  .cs-overview-grid {
    gap: 8px;
  }
}

/* ===========================================================
   ERROR STATE
   =========================================================== */

.cs-error-state {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 10px;
  padding: 40px 28px;
  min-height: 100vh;
}

.cs-error-icon {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: var(--cs-cloud-100);
  color: var(--cs-brand-700);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 6px;
}

.cs-error-state h2 {
  margin: 0;
  font-family: var(--cs-font-display);
  font-weight: 700;
  font-size: 17px;
  color: var(--cs-ink-950);
}

.cs-error-state p {
  margin: 0;
  font-size: 13.5px;
  color: var(--cs-slate-600);
  max-width: 320px;
  line-height: 1.5;
}

.cs-error-retry {
  margin-top: 10px;
  border: none;
  background: var(--cs-brand-600);
  color: var(--cs-white);
  font-weight: 600;
  font-size: 13.5px;
  padding: 10px 22px;
  border-radius: var(--cs-radius-pill);
  cursor: pointer;
}

/* ===========================================================
   FOCUS STATES — accessibility
   =========================================================== */

.cs-app button:focus-visible {
  outline: 2px solid var(--cs-brand-500);
  outline-offset: 2px;
}

/* ------------------------------------------------------------------ */
/*  KYC ALERT — danger banner shown above Overview when unverified      */
/* ------------------------------------------------------------------ */

.cs-kyc-alert {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 16px;
  border-radius: 14px;
  background: color-mix(in srgb, var(--cs-danger, #e5484d) 10%, transparent);
  border: 1px solid color-mix(in srgb, var(--cs-danger, #e5484d) 35%, transparent);
  margin: 4px 0 4px;
}

.cs-kyc-alert-icon {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--cs-danger, #e5484d);
  color: #fff;
  font-weight: 700;
  font-size: 15px;
  line-height: 1;
}

.cs-kyc-alert-body {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
}

.cs-kyc-alert-title {
  font-size: 14px;
  font-weight: 700;
  color: var(--cs-danger, #e5484d);
}

.cs-kyc-alert-text {
  font-size: 13px;
  line-height: 1.5;
  color: var(--cs-text-secondary, #5b5f66);
  margin: 0;
}

.cs-kyc-alert-btn {
  align-self: flex-start;
  margin-top: 4px;
  padding: 9px 18px;
  border: none;
  border-radius: 10px;
  background: var(--cs-danger, #e5484d);
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: opacity 0.15s ease;
}

.cs-kyc-alert-btn:hover {
  opacity: 0.9;
}

.cs-kyc-alert-btn:active {
  opacity: 0.8;
}

/* ------------------------------------------------------------------ */
/*  KYC STATUS STRIP — always-visible, sits below the brand strip       */
/* ------------------------------------------------------------------ */

.cs-kyc-status-strip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 16px;
  border-radius: 14px;
  background: var(--cs-surface, #fff);
  border: 1px solid var(--cs-border, #e7e8ec);
  margin-top: 12px;
}

.cs-kyc-status-info {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.cs-kyc-status-icon {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--cs-surface-muted, #f4f5f7);
  color: var(--cs-text-secondary, #5b5f66);
}

.cs-kyc-status-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.cs-kyc-status-label {
  font-size: 12px;
  font-weight: 600;
  color: var(--cs-text-secondary, #5b5f66);
}

.cs-kyc-status-value {
  font-size: 13px;
  font-weight: 700;
}

.cs-kyc-status-btn {
  flex: 0 0 auto;
  padding: 8px 16px;
  border: none;
  border-radius: 10px;
  background: var(--cs-primary, #0a7c4a);
  color: #fff;
  font-size: 12.5px;
  font-weight: 600;
  cursor: pointer;
  transition: opacity 0.15s ease;
}

.cs-kyc-status-btn:hover {
  opacity: 0.9;
}

.cs-kyc-status-btn:active {
  opacity: 0.8;
}

/* Tone variants — reuse the same tone keywords as the Overview's
   KYC Status card (kycStatusMeta) so colors stay consistent across
   the dashboard. */

.cs-kyc-status-strip[data-tone="kyc-unverified"] .cs-kyc-status-value,
.cs-kyc-status-value--kyc-unverified {
  color: var(--cs-danger, #e5484d);
}

.cs-kyc-status-strip[data-tone="kyc-verified"] .cs-kyc-status-value,
.cs-kyc-status-value--kyc-verified {
  color: var(--cs-success, #0a7c4a);
}

.cs-kyc-status-strip[data-tone="kyc-review"] .cs-kyc-status-value,
.cs-kyc-status-value--kyc-review {
  color: var(--cs-warning, #d78c11);
}

.cs-kyc-status-strip[data-tone="kyc-failed"] .cs-kyc-status-value,
.cs-kyc-status-value--kyc-failed {
  color: var(--cs-danger, #e5484d);
}

.cs-kyc-status-strip[data-tone="kyc-moreinfo"] .cs-kyc-status-value,
.cs-kyc-status-value--kyc-moreinfo {
  color: var(--cs-warning, #d78c11);
}

.cs-kyc-status-strip[data-tone="kyc-verified"] .cs-kyc-status-btn {
  background: var(--cs-surface-muted, #f4f5f7);
  color: var(--cs-text-secondary, #5b5f66);
}

/* Verified state doesn't need a loud green CTA — swap the icon
   background to signal "good" without competing with the primary
   action buttons elsewhere on the page. */
.cs-kyc-status-strip[data-tone="kyc-verified"] .cs-kyc-status-icon {
  background: color-mix(in srgb, var(--cs-success, #0a7c4a) 15%, transparent);
  color: var(--cs-success, #0a7c4a);
}

/* ------------------------------------------------------------------ */
/*  MOBILE                                                              */
/* ------------------------------------------------------------------ */

@media (max-width: 480px) {
  .cs-kyc-status-strip {
    flex-wrap: wrap;
  }

  .cs-kyc-status-btn {
    width: 100%;
  }
}