.accounts-dashboard {
  width: 100%;
  max-width: none;
  min-height: 100%;
  padding: clamp(14px, 2vw, 28px);
  color: #0f172a;
  background: radial-gradient(circle at 8% 2%, rgba(37, 99, 235, .08), transparent 24rem), #f3f6fb;
}

.accounts-hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 20px;
  padding: clamp(22px, 3vw, 34px);
  color: #fff;
  background: radial-gradient(circle at 12% 0, rgba(125, 211, 252, .28), transparent 30%), linear-gradient(125deg, #172554 0%, #1e3a8a 50%, #2563eb 100%);
  border-radius: 24px;
  box-shadow: 0 22px 52px rgba(30, 58, 138, .18);
  position: relative;
  isolation: isolate;
  overflow: hidden;
}

.accounts-hero::before {
  content: "";
  position: absolute;
  inset-block-start: -120px;
  inset-inline-end: 7%;
  z-index: -1;
  width: 300px;
  height: 300px;
  border: 50px solid rgba(255, 255, 255, .055);
  border-radius: 50%;
}

.accounts-hero::after {
  content: "";
  position: absolute;
  inset-block-end: -95px;
  inset-inline-start: 32%;
  z-index: -1;
  width: 220px;
  height: 160px;
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: 50px;
  transform: rotate(-18deg);
}

.accounts-heading { max-width: 760px; }
.accounts-eyebrow { color: #bfdbfe; font-size: .8rem; font-weight: 900; letter-spacing: .08em; }
.accounts-heading h1 { margin: 6px 0 8px; font-size: clamp(1.75rem, 3vw, 2.6rem); font-weight: 900; }
.accounts-heading p { max-width: 650px; margin: 0; color: rgba(255, 255, 255, .78); line-height: 1.8; }
.accounts-hero-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.accounts-hero-actions .btn { display: inline-flex; align-items: center; gap: 8px; padding-inline: 17px; }

.accounts-kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; margin-bottom: 20px; }
.accounts-kpi {
  display: flex;
  align-items: center;
  gap: 15px;
  min-width: 0;
  padding: 20px;
  color: inherit;
  background: #fff;
  border: 1px solid rgba(148, 163, 184, .18);
  border-radius: 18px;
  box-shadow: 0 14px 36px rgba(15, 23, 42, .045);
  text-decoration: none;
  cursor: pointer;
  transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease;
  position: relative;
  overflow: hidden;
}

.accounts-kpi::after {
  content: "";
  position: absolute;
  inset-inline-end: 0;
  inset-block: 20%;
  width: 3px;
  border-radius: 999px 0 0 999px;
  background: #cbd5e1;
}

.accounts-kpi:nth-child(1)::after { background: #10b981; }
.accounts-kpi:nth-child(2)::after { background: #f43f5e; }
.accounts-kpi:nth-child(3)::after { background: #3b82f6; }
.accounts-kpi:nth-child(4)::after { background: #06b6d4; }

.accounts-kpi:hover,
.accounts-kpi:focus-visible { color: inherit; border-color: rgba(37, 99, 235, .28); box-shadow: 0 18px 42px rgba(37, 99, 235, .08); transform: translateY(-2px); }
.accounts-kpi-icon { display: grid; place-items: center; width: 50px; height: 50px; border-radius: 15px; flex: 0 0 50px; font-size: 1.3rem; }
.accounts-kpi-icon.is-success { color: #047857; background: #d1fae5; }
.accounts-kpi-icon.is-danger { color: #be123c; background: #ffe4e6; }
.accounts-kpi-icon.is-primary { color: #1d4ed8; background: #dbeafe; }
.accounts-kpi-icon.is-info { color: #0e7490; background: #cffafe; }
.accounts-kpi > div { min-width: 0; }
.accounts-kpi-label, .accounts-kpi small { display: block; color: #64748b; }
.accounts-kpi-label { margin-bottom: 5px; font-size: .88rem; font-weight: 800; }
.accounts-kpi-value { display: block; color: #0f172a; font-size: clamp(1.25rem, 2vw, 1.7rem); font-weight: 900; line-height: 1.25; overflow-wrap: anywhere; }
.accounts-kpi small { margin-top: 5px; font-size: .76rem; }

.accounts-quick-panel,
.accounts-panel { background: #fff; border: 1px solid rgba(148, 163, 184, .18); border-radius: 18px; box-shadow: 0 14px 36px rgba(15, 23, 42, .045); overflow: hidden; }
.accounts-quick-panel { margin-bottom: 20px; }
.accounts-panel-head { padding: 17px 19px; border-bottom: 1px solid rgba(148, 163, 184, .14); }
.accounts-panel-head h2 { margin: 0; font-size: 1rem; font-weight: 900; }
.accounts-panel-head p { margin: 4px 0 0; color: #64748b; font-size: .82rem; }
.accounts-panel-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 15px; }
.accounts-quick-grid { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 12px; padding: 16px 18px 18px; }
.accounts-quick-link { display: flex; align-items: center; gap: 11px; min-height: 56px; padding: 12px 13px; color: #1e293b; background: #f8fafc; border: 1px solid rgba(148, 163, 184, .18); border-radius: 14px; font-size: .87rem; font-weight: 850; text-decoration: none; }
.accounts-quick-link i { display: grid; place-items: center; width: 38px; height: 38px; color: #2563eb; background: #eaf2ff; border-radius: 12px; flex: 0 0 38px; }
.accounts-quick-link:nth-child(2) i { color: #be123c; background: #ffe4e6; }
.accounts-quick-link:nth-child(3) i { color: #7c3aed; background: #ede9fe; }
.accounts-quick-link:nth-child(4) i { color: #0f766e; background: #ccfbf1; }
.accounts-quick-link:nth-child(5) i { color: #b45309; background: #fef3c7; }
.accounts-quick-link:nth-child(6) i { color: #0369a1; background: #e0f2fe; }
.accounts-quick-link:hover { color: #1d4ed8; background: #f3f7ff; border-color: #bfdbfe; }

.accounts-grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 16px; }
.accounts-span-8 { grid-column: span 8; }
.accounts-span-7 { grid-column: span 7; }
.accounts-span-6 { grid-column: span 6; }
.accounts-span-5 { grid-column: span 5; }
.accounts-span-4 { grid-column: span 4; }
.accounts-panel-body { padding: 17px 19px; }
.accounts-scroll { max-height: 330px; overflow: auto; }
.accounts-date-filter { display: flex; align-items: flex-end; gap: 8px; }
.accounts-date-filter label { display: grid; gap: 4px; margin: 0; color: #64748b; font-size: .75rem; font-weight: 800; }
.accounts-date-filter input { min-width: 138px; }
.accounts-chart-lg, .accounts-chart-md, .accounts-chart-sm { position: relative; padding: 18px; }
.accounts-chart-lg { height: 340px; }
.accounts-chart-md { height: 285px; }
.accounts-chart-sm { width: min(240px, 100%); height: 235px; flex: 0 0 240px; }
.accounts-chart-lg canvas, .accounts-chart-md canvas, .accounts-chart-sm canvas { width: 100% !important; height: 100% !important; }
.accounts-split-chart { display: flex; align-items: center; gap: 20px; padding: 10px 18px 18px; }
.report-legend { display: grid; gap: 9px; width: 100%; }
.report-legend .item { display: flex; align-items: center; gap: 8px; color: #475569; font-size: .84rem; }
.report-legend .dot { width: 9px; height: 9px; border-radius: 50%; }
.report-legend .pct { margin-inline-start: auto; color: #0f172a; font-weight: 900; }
.txn-list { display: grid; gap: 9px; }
.txn-item { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 13px; background: #f8fafc; border: 1px solid rgba(148, 163, 184, .15); border-radius: 13px; cursor: pointer; }
.txn-item:hover { background: #f1f6ff; }
.txn-meta { margin-top: 3px; color: #64748b; font-size: .76rem; }
.txn-amount { font-weight: 900; white-space: nowrap; }

@media (max-width: 1350px) {
  .accounts-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .accounts-quick-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 1000px) {
  .accounts-span-8, .accounts-span-7, .accounts-span-6, .accounts-span-5, .accounts-span-4 { grid-column: span 12; }
}

@media (max-width: 700px) {
  .accounts-hero { align-items: flex-start; flex-direction: column; border-radius: 18px; }
  .accounts-hero-actions, .accounts-hero-actions .btn { width: 100%; }
  .accounts-kpis, .accounts-quick-grid { grid-template-columns: 1fr; }
  .accounts-panel-toolbar { align-items: flex-start; flex-direction: column; }
  .accounts-date-filter { width: 100%; }
  .accounts-date-filter label { flex: 1; }
  .accounts-date-filter input { width: 100%; min-width: 0; }
  .accounts-split-chart { align-items: stretch; flex-direction: column-reverse; }
  .accounts-chart-sm { width: 100%; flex-basis: 230px; }
  .accounts-chart-lg { height: 290px; }
}
