@import url("https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&family=Manrope:wght@600;700;800&display=swap");

:root {
  --bg: #f4f6fa;
  --surface: #fff;
  --surface2: #f8fafc;
  --border: #e7eaf0;
  --text: #171b29;
  --muted: #71798b;
  --primary: #5b50e6;
  --sidebar: #ffffff;
  --shadow: 0 12px 36px #1b21370d;
}
.dark {
  color-scheme: dark;
  --bg: #0e1018;
  --surface: #171a25;
  --surface2: #1d202d;
  --border: #2a2e3c;
  --text: #f3f5fa;
  --muted: #9ca4b7;
  --primary: #7c70f4;
  --sidebar: #090b12;
  --shadow: 0 16px 40px #0004;
}
@layer base {
  body {
    min-width: 320px;
    min-height: 100vh;
    background: var(--bg);
    color: var(--text);
    font-family: "DM Sans", sans-serif;
    transition: 0.25s;
  }
  h1,
  h2,
  h3 {
    font-family: "Manrope", sans-serif;
    letter-spacing: -0.025em;
  }
  button,
  a,
  input,
  select {
    transition: 0.18s;
  }
  input,
  select {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid var(--border);
    border-radius: 10px;
    background: var(--surface);
    color: var(--text);
    outline: 0;
  }
  input:focus,
  select:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--primary) 13%, transparent);
  }
  label {
    display: grid;
    gap: 7px;
    font-size: 13px;
    font-weight: 600;
  }
}
.app {
  min-height: 100vh;
}
.sidebar {
  position: fixed;
  inset: 0 auto 0 0;
  z-index: 40;
  width: 256px;
  display: flex;
  flex-direction: column;
  padding: 25px 16px 18px;
  background: var(--sidebar);
  color: var(--muted);
  border-right: 1px solid var(--border);
}
.brand {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 0 8px 27px;
  color: var(--text);
}
.brand > b {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border-radius: 11px;
  background: linear-gradient(
    145deg,
    color-mix(in srgb, var(--primary) 62%, white),
    var(--primary)
  );
  box-shadow: 0 7px 20px color-mix(in srgb, var(--primary) 35%, transparent);
  color: white;
}
.brand strong,
.brand small,
.user strong,
.user small {
  display: block;
}
.brand strong {
  font: 700 15px Manrope;
}
.brand small,
.user small {
  margin-top: 2px;
  color: var(--muted);
  font-size: 9px;
}
.brand > button {
  display: none;
  margin-left: auto;
}
.sidebar nav {
  display: grid;
  gap: 3px;
  overflow: auto;
}
.nav-title {
  padding: 0 12px 7px;
  color: var(--muted);
  font-size: 9px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.14em;
}
.nav-link {
  width: 100%;
  min-height: 42px;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0 12px;
  border-radius: 9px;
  color: var(--muted);
  font-size: 13px;
  text-decoration: none;
}
.nav-link:hover {
  background: color-mix(in srgb, var(--primary) 7%, transparent);
  color: var(--primary);
}
.nav-link.active {
  color: var(--primary);
  background: linear-gradient(
    90deg,
    color-mix(in srgb, var(--primary) 14%, transparent),
    color-mix(in srgb, var(--primary) 5%, transparent)
  );
  box-shadow: inset 3px 0 var(--primary);
}
.nav-parent {
  justify-content: space-between;
}
.nav-parent span {
  display: flex;
  align-items: center;
  gap: 12px;
}
.nav-parent > svg {
  transition: 0.2s;
}
.nav-parent > svg.down {
  transform: rotate(90deg);
}
.subnav {
  display: grid;
  padding: 2px 0 5px 17px;
}
.subnav .nav-link {
  min-height: 37px;
  font-size: 12px;
}
.help {
  display: grid;
  grid-template-columns: 28px 1fr auto;
  align-items: center;
  gap: 9px;
  margin-top: auto;
  padding: 13px 10px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--surface2);
}
.help > b {
  width: 27px;
  height: 27px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  color: #a49cff;
  background: color-mix(in srgb, var(--primary) 16%, transparent);
}
.help strong,
.help small {
  display: block;
}
.help strong {
  color: var(--text);
  font-size: 11px;
}
.help small {
  color: var(--muted);
  font-size: 9px;
}
.user {
  display: grid;
  grid-template-columns: 32px 1fr auto;
  align-items: center;
  gap: 9px;
  margin-top: 13px;
  padding: 12px 7px 0;
  border-top: 1px solid var(--border);
}
.user > span,
.avatar {
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  border-radius: 9px;
  color: #40399c;
  background: linear-gradient(145deg, #c8e7ff, #d8d1ff);
  font-size: 10px;
  font-weight: 800;
}
.user strong {
  color: var(--text);
  font-size: 11px;
}
main {
  min-height: 100vh;
  margin-left: 256px;
  display: flex;
  flex-direction: column;
}
.topbar {
  height: 78px;
  position: sticky;
  top: 0;
  z-index: 30;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 34px;
  border-bottom: 1px solid var(--border);
  background: color-mix(in srgb, var(--surface) 90%, transparent);
  backdrop-filter: blur(16px);
}
.topbar h1 {
  font-size: 18px;
  font-weight: 700;
}
.title,
.actions {
  display: flex;
  align-items: center;
  gap: 10px;
}
.menu {
  display: none;
}
.theme {
  display: flex;
  padding: 3px;
  border: 1px solid var(--border);
  border-radius: 9px;
  background: var(--surface2);
}
.theme span {
  width: 28px;
  height: 27px;
  display: grid;
  place-items: center;
  border-radius: 6px;
  color: var(--muted);
}
.theme span.on {
  color: var(--text);
  background: var(--surface);
  box-shadow: 0 2px 7px #0002;
}
.icon-btn,
.menu {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border: 1px solid var(--border);
  border-radius: 9px;
  color: var(--muted);
  background: var(--surface);
}
.menu {
  display: none;
}
.dot {
  position: relative;
}
.dot:after {
  content: "";
  position: absolute;
  top: 7px;
  right: 8px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #f35d6e;
}
.primary,
.secondary {
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0 16px;
  border-radius: 9px;
  font-size: 12px;
  font-weight: 700;
  text-decoration: none;
}
.primary {
  color: white;
  background: var(--primary);
  box-shadow: 0 5px 13px color-mix(in srgb, var(--primary) 22%, transparent);
}
.primary:hover {
  transform: translateY(-1px);
  filter: brightness(1.08);
}
.secondary {
  color: var(--text);
  background: var(--surface);
  border: 1px solid var(--border);
}
.wide {
  width: 100%;
}
.page {
  width: 100%;
  flex: 1;
  max-width: 1260px;
  margin: auto;
  padding: 30px 34px 50px;
}
.card {
  border: 1px solid var(--border);
  border-radius: 15px;
  background: var(--surface);
  box-shadow: var(--shadow);
}
.stack {
  display: grid;
  gap: 25px;
}
.welcome {
  display: flex;
  align-items: end;
  justify-content: space-between;
}
.welcome em {
  color: var(--primary);
  font-size: 10px;
  font-style: normal;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}
.welcome h2 {
  margin: 3px 0 4px;
  font-size: 23px;
  font-weight: 800;
}
.welcome p,
.section-title p {
  color: var(--muted);
  font-size: 12px;
}
.balance {
  min-height: 193px;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 34px 40px;
  border-radius: 17px;
  color: white;
  background: linear-gradient(
    115deg,
    color-mix(in srgb, var(--primary) 90%, black),
    color-mix(in srgb, var(--primary) 70%, white)
  );
  box-shadow: 0 18px 40px #4e42c538;
}
.balance:after {
  content: "";
  position: absolute;
  right: -60px;
  top: -170px;
  width: 320px;
  height: 320px;
  border: 1px solid #ffffff1f;
  border-radius: 50%;
}
.balance > div:first-child {
  z-index: 1;
}
.balance p {
  display: flex;
  align-items: center;
  gap: 9px;
  color: #d9d5ff;
  font-size: 12px;
}
.balance > div > strong {
  display: block;
  margin: 11px 0 9px;
  font: 800 34px Manrope;
}
.balance small {
  color: #d4d0fb;
}
.balance small b {
  margin-right: 6px;
  padding: 3px 7px;
  border-radius: 20px;
  color: #d8ffea;
  background: #1fcb7730;
}
.virtual-card {
  z-index: 1;
  width: 205px;
  height: 116px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 18px;
  margin-right: 20px;
  border: 1px solid #ffffff38;
  border-radius: 15px;
  background: linear-gradient(135deg, #ffffff3d, #ffffff18);
  backdrop-filter: blur(9px);
  transform: rotate(-4deg);
  box-shadow: 0 18px 35px #23197e38;
}
.virtual-card span {
  font: 700 9px Manrope;
  letter-spacing: 0.15em;
}
.virtual-card > strong {
  font-size: 14px;
  letter-spacing: 0.12em;
}
.virtual-card small {
  font-size: 7px;
  letter-spacing: 0.12em;
}
.section-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 13px;
}
.section-title h3 {
  font-size: 15px;
  font-weight: 800;
}
.section-title a {
  display: flex;
  align-items: center;
  gap: 5px;
  color: var(--primary);
  font-size: 11px;
  font-weight: 700;
  text-decoration: none;
}
.quick-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 13px;
}
.quick {
  min-height: 88px;
  display: grid;
  grid-template-columns: 40px 1fr auto;
  align-items: center;
  gap: 12px;
  padding: 17px;
  border: 1px solid var(--border);
  border-radius: 13px;
  color: var(--text);
  background: var(--surface);
  text-decoration: none;
}
.quick:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}
.quick > span,
.tx > span {
  display: grid;
  place-items: center;
  border-radius: 10px;
}
.quick > span {
  width: 40px;
  height: 40px;
}
.blue {
  color: #397adc;
  background: #e8f2ff;
}
.green {
  color: #20a565;
  background: #e3f9ee;
}
.amber {
  color: #d69518;
  background: #fff3d9;
}
.purple {
  color: #7656d9;
  background: #f0eaff;
}
.dark .blue {
  background: #172b45;
}
.dark .green {
  background: #142f26;
}
.dark .amber {
  background: #382d17;
}
.dark .purple {
  background: #2b2346;
}
.quick strong,
.quick small {
  display: block;
}
.quick strong {
  font-size: 12px;
}
.quick small {
  margin-top: 4px;
  color: var(--muted);
  font-size: 10px;
}
.transactions {
  padding: 22px 24px 8px;
  box-shadow: none;
}
.tx {
  min-height: 68px;
  display: grid;
  grid-template-columns: 37px 1fr 100px 110px;
  align-items: center;
  gap: 12px;
  border-top: 1px solid var(--border);
  font-size: 11px;
}
.tx > span {
  width: 35px;
  height: 35px;
}
.tx div strong,
.tx div small {
  display: block;
}
.tx div small {
  margin-top: 3px;
  color: var(--muted);
  font-size: 9px;
}
.tx em,
td em {
  width: max-content;
  padding: 4px 8px;
  border-radius: 20px;
  font-size: 9px;
  font-style: normal;
  font-weight: 700;
}
.successful {
  color: #168a53;
  background: #e6f8ef;
}
.processing {
  color: #a36d04;
  background: #fff4d9;
}
.failed {
  color: #c44151;
  background: #ffecee;
}
.positive {
  color: #1b9a5f;
}
.popover {
  position: absolute;
  top: 46px;
  right: 0;
  width: 330px;
  padding: 16px;
  border: 1px solid var(--border);
  border-radius: 13px;
  background: var(--surface);
  box-shadow: 0 18px 45px #181d2e2e;
}
.popover header {
  display: flex;
  justify-content: space-between;
  padding-bottom: 12px;
}
.popover header em {
  padding: 3px 7px;
  border-radius: 12px;
  color: var(--primary);
  background: color-mix(in srgb, var(--primary) 10%, transparent);
  font-size: 9px;
  font-style: normal;
}
.popover article {
  display: grid;
  grid-template-columns: 8px 1fr;
  gap: 10px;
  padding: 12px 2px;
  border-top: 1px solid var(--border);
}
.popover article > i {
  width: 7px;
  height: 7px;
  margin-top: 5px;
  border-radius: 50%;
  background: #28b773;
}
.popover article strong {
  font-size: 11px;
}
.popover article p,
.popover article small {
  color: var(--muted);
  font-size: 9px;
}
.relative {
  position: relative;
}
.modal-bg {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  padding: 20px;
  background: #090b149e;
  backdrop-filter: blur(5px);
}
.modal {
  width: min(440px, 100%);
  padding: 24px;
  border-radius: 17px;
  background: var(--surface);
  box-shadow: 0 30px 90px #0005;
}
.modal > header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.modal h2 {
  font-size: 18px;
}
.modal-form {
  display: grid;
  gap: 16px;
  margin-top: 22px;
}
.money {
  display: flex;
  align-items: center;
  border: 1px solid var(--border);
  border-radius: 10px;
}
.money > span {
  padding-left: 14px;
  color: var(--muted);
}
.money input {
  border: 0;
  box-shadow: none;
}
.chips {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 7px;
}
.chips button {
  padding: 8px 3px;
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--muted);
  font-size: 10px;
}
.center {
  text-align: center;
  color: var(--muted);
}
.success {
  display: grid;
  justify-items: center;
  gap: 10px;
  padding-top: 24px;
  text-align: center;
}
.success > span {
  width: 62px;
  height: 62px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: white;
  background: #21ae68;
  box-shadow: 0 0 0 9px #21ae6820;
}
.success h3 {
  margin-top: 10px;
  font-size: 18px;
}
.success p {
  max-width: 330px;
  margin-bottom: 12px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.7;
}
.split {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(260px, 0.7fr);
  gap: 20px;
  align-items: start;
}
.service,
.settings {
  padding: 28px;
  box-shadow: none;
}
.service-head {
  display: flex;
  align-items: center;
  gap: 13px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--border);
}
.service-head > span {
  width: 43px;
  height: 43px;
  display: grid;
  place-items: center;
  border-radius: 11px;
  color: #4b55a4;
}
.service-head span.mint {
  color: #179a60;
  background: #ddf8ed;
}
.service-head h2 {
  font-size: 18px;
}
.service-head p {
  margin-top: 4px;
  color: var(--muted);
  font-size: 11px;
}
.fields {
  display: grid;
  gap: 18px;
  padding: 24px 0;
}
.amounts {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
}
.amounts button {
  padding: 11px 5px;
  border: 1px solid var(--border);
  border-radius: 9px;
  font-size: 11px;
}
.amounts button.selected {
  border-color: var(--primary);
  color: var(--primary);
  background: color-mix(in srgb, var(--primary) 7%, var(--surface));
}
.summary {
  display: flex;
  justify-content: space-between;
  margin-bottom: 16px;
  padding: 15px;
  border-radius: 10px;
  background: var(--surface2);
  font-size: 12px;
}
.summary span {
  color: var(--muted);
}
.promo {
  padding: 24px;
  box-shadow: none;
}
.promo > div {
  height: 125px;
  position: relative;
  display: grid;
  place-items: center;
  overflow: hidden;
  margin-bottom: 20px;
  border-radius: 12px;
  color: white;
  background: linear-gradient(
    145deg,
    var(--primary),
    color-mix(in srgb, var(--primary) 62%, white)
  );
}
.promo > div i {
  position: absolute;
  width: 110px;
  height: 110px;
  border: 22px solid #ffffff16;
  border-radius: 50%;
}
.promo > div i:first-child {
  left: -35px;
  top: -48px;
}
.promo > div i:nth-child(2) {
  right: -42px;
  bottom: -52px;
}
.promo h3 {
  font-size: 15px;
}
.promo > p {
  margin: 8px 0 17px;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.65;
}
.promo > small {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 9px;
  color: var(--muted);
}
.promo > small svg {
  color: #23a968;
}
.table-card {
  overflow: hidden;
  box-shadow: none;
}
.table-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 25px;
  border-bottom: 1px solid var(--border);
}
.table-head h2 {
  font-size: 18px;
}
.table-head p {
  color: var(--muted);
  font-size: 11px;
}
.search {
  width: 245px;
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 0 12px;
  border: 1px solid var(--border);
  border-radius: 9px;
  color: var(--muted);
}
.search input {
  padding: 10px 0;
  border: 0;
  box-shadow: none;
}
.table-wrap {
  overflow-x: auto;
}
table {
  width: 100%;
  border-collapse: collapse;
  font-size: 11px;
}
th,
td {
  padding: 15px 20px;
  text-align: left;
  white-space: nowrap;
}
th {
  color: var(--muted);
  background: var(--surface2);
  font-size: 9px;
  text-transform: uppercase;
}
td {
  border-top: 1px solid var(--border);
}
td small {
  display: block;
  margin-top: 3px;
  color: var(--muted);
}
.empty {
  padding: 40px;
  text-align: center;
  color: var(--muted);
}
.docs {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 20px;
  align-items: start;
}
.docs-nav {
  position: sticky;
  top: 108px;
  display: grid;
  padding: 16px 10px;
  box-shadow: none;
}
.docs-nav strong {
  padding: 12px 10px 6px;
  color: var(--muted);
  font-size: 8px;
}
.docs-nav a {
  padding: 9px 10px;
  border-radius: 7px;
  color: var(--muted);
  font-size: 10px;
  text-decoration: none;
}
.docs-nav a:hover {
  color: var(--primary);
  background: color-mix(in srgb, var(--primary) 8%, transparent);
}
.docs-body {
  padding: 34px 40px;
  box-shadow: none;
}
.docs-body section + section {
  padding-top: 30px;
  margin-top: 30px;
  border-top: 1px solid var(--border);
}
.docs-body h2 {
  margin: 8px 0 12px;
  font-size: 26px;
}
.docs-body h3 {
  margin-bottom: 9px;
  font-size: 17px;
}
.docs-body p {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.7;
}
.docs-body > section > em {
  color: var(--primary);
  font-size: 9px;
  font-style: normal;
  font-weight: 800;
}
.base {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 14px;
  margin-top: 20px;
  padding: 11px 14px;
  border: 1px solid var(--border);
  border-radius: 9px;
  background: var(--surface2);
  font-size: 10px;
}
.info {
  display: flex;
  gap: 12px;
  margin-top: 17px;
  padding: 14px;
  border-radius: 9px;
  color: var(--primary);
  background: color-mix(in srgb, var(--primary) 8%, var(--surface));
}
.info strong {
  color: var(--text);
  font-size: 11px;
}
.docs-body h3 b {
  padding: 4px 7px;
  border-radius: 5px;
  color: #148d55;
  background: #e3f8ed;
  font-size: 8px;
}
.code {
  overflow: hidden;
  margin-top: 18px;
  border: 1px solid #292e3e;
  border-radius: 10px;
  background: #121520;
  color: #d8dceb;
}
.code header {
  display: flex;
  justify-content: space-between;
  padding: 10px 14px;
  border-bottom: 1px solid #292e3e;
  color: #8991a8;
  font-size: 9px;
}
.code button {
  display: flex;
  gap: 5px;
}
.code pre {
  overflow: auto;
  padding: 18px;
  font: 10px/1.75 monospace;
}
.response {
  display: grid;
  grid-template-columns: 45px 1fr;
  gap: 14px;
}
.response > code {
  padding: 4px;
  text-align: center;
  border-radius: 5px;
  color: #168a53;
  background: #e6f8ef;
  font-size: 9px;
}
.settings {
  display: grid;
  gap: 20px;
}
.settings label > small {
  color: var(--muted);
  font-size: 9px;
  font-weight: 400;
}
.saved {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 11px 13px;
  border-radius: 8px;
  color: #167f4e;
  background: #e5f8ee;
  font-size: 10px;
  font-weight: 700;
}
.secret {
  display: flex;
}
.secret input {
  border-radius: 9px 0 0 9px;
}
.secret button {
  width: 45px;
  border: 1px solid var(--border);
  border-left: 0;
  border-radius: 0 9px 9px 0;
}
.settings fieldset {
  display: grid;
  gap: 8px;
}
.settings legend {
  margin-bottom: 9px;
  font-size: 13px;
  font-weight: 700;
}
.check {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px;
  border: 1px solid var(--border);
  border-radius: 9px;
}
.check input {
  width: 15px;
  accent-color: var(--primary);
}
.check span strong,
.check span small {
  display: block;
}
.check span small {
  color: var(--muted);
  font-size: 9px;
  font-weight: 400;
}
.toggle-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 17px;
  border-top: 1px solid var(--border);
}
.toggle-row p {
  color: var(--muted);
  font-size: 9px;
}
.toggle {
  width: 39px;
  height: 22px;
  padding: 3px;
  border-radius: 20px;
  background: #c9ced8;
}
.toggle span {
  display: block;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: white;
  transition: 0.2s;
}
.toggle.on {
  background: var(--primary);
}
.toggle.on span {
  transform: translateX(17px);
}
.profile {
  max-width: 720px;
}
.profile .avatar {
  width: 47px;
  height: 47px;
}
.two {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
.settings footer {
  display: flex;
  justify-content: flex-end;
  gap: 9px;
  padding-top: 18px;
  border-top: 1px solid var(--border);
}
.not-found {
  min-height: 420px;
  display: grid;
  place-items: center;
  align-content: center;
  text-align: center;
  box-shadow: none;
}
.not-found > strong {
  color: var(--primary);
  font: 800 64px Manrope;
}
.not-found p {
  margin: 8px 0 20px;
  color: var(--muted);
}
.site-footer {
  width: calc(100% - 68px);
  max-width: 1192px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin: 0 auto;
  padding: 20px 0 28px;
  border-top: 1px solid var(--border);
  color: var(--muted);
  font-size: 10px;
}
.site-footer span {
  font-weight: 600;
}
.site-footer small:before {
  content: "·";
  margin-right: 8px;
}
.analysis-stack,
.accounts-stack {
  display: grid;
  gap: 22px;
}
.analysis-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
}
.analysis-head h2 {
  margin: 4px 0;
  font-size: 23px;
}
.analysis-head > div > span {
  color: var(--muted);
  font-size: 12px;
}
.analysis-head select {
  width: 150px;
  padding: 10px 12px;
  font-size: 11px;
}
.metric-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 13px;
}
.metric-card {
  padding: 20px;
  box-shadow: none;
}
.metric-card > div {
  display: flex;
  justify-content: space-between;
  color: var(--muted);
  font-size: 10px;
}
.metric-card > div b {
  padding: 3px 6px;
  border-radius: 12px;
  color: #178654;
  background: #e5f8ee;
}
.metric-card > strong {
  display: block;
  margin: 15px 0 6px;
  font: 800 22px Manrope;
}
.metric-card > small {
  color: var(--muted);
  font-size: 9px;
}
.analytics-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.7fr) minmax(270px, 0.7fr);
  gap: 18px;
}
.revenue-chart,
.service-share,
.top-products {
  padding: 23px;
  box-shadow: none;
}
.revenue-chart > header,
.service-share > header,
.top-products > header,
.account-table > header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.revenue-chart h3,
.service-share h3,
.top-products h3,
.account-table h3 {
  font-size: 14px;
}
.revenue-chart header p,
.service-share header p,
.top-products header p,
.account-table header p {
  margin-top: 4px;
  color: var(--muted);
  font-size: 10px;
}
.chart-legend {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--muted);
  font-size: 9px;
}
.chart-legend i {
  width: 8px;
  height: 8px;
  border-radius: 2px;
  background: var(--primary);
}
.chart-area {
  height: 260px;
  display: grid;
  grid-template-columns: 40px 1fr;
  gap: 12px;
  margin-top: 26px;
}
.y-labels {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding-bottom: 22px;
  color: var(--muted);
  font-size: 8px;
}
.bars {
  display: flex;
  align-items: end;
  justify-content: space-around;
  gap: 12px;
  padding: 0 10px 22px;
  border-bottom: 1px solid var(--border);
  background: repeating-linear-gradient(
    to bottom,
    transparent 0,
    transparent 58px,
    var(--border) 59px
  );
}
.bars > span {
  width: min(38px, 10%);
  position: relative;
  border-radius: 7px 7px 2px 2px;
  background: linear-gradient(
    180deg,
    color-mix(in srgb, var(--primary) 68%, white),
    var(--primary)
  );
  box-shadow: 0 8px 16px color-mix(in srgb, var(--primary) 18%, transparent);
}
.bars > span:hover {
  filter: brightness(1.12);
  transform: translateY(-2px);
}
.bars i {
  position: absolute;
  left: 50%;
  bottom: -20px;
  transform: translateX(-50%);
  color: var(--muted);
  font-size: 8px;
  font-style: normal;
}
.donut {
  width: 145px;
  height: 145px;
  display: grid;
  place-items: center;
  margin: 24px auto;
  border-radius: 50%;
  background: conic-gradient(var(--primary) 0 42%, #4d91e8 42% 70%, #e5a62e 70% 89%, #28ad70 89%);
}
.donut:before {
  content: "";
  width: 98px;
  height: 98px;
  border-radius: 50%;
  background: var(--surface);
}
.donut > div {
  position: absolute;
  text-align: center;
}
.donut strong,
.donut small {
  display: block;
}
.donut strong {
  font: 800 14px Manrope;
}
.donut small {
  margin-top: 3px;
  color: var(--muted);
  font-size: 8px;
}
.service-share ul {
  display: grid;
  gap: 10px;
}
.service-share li {
  display: grid;
  grid-template-columns: 8px 1fr auto;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-size: 10px;
}
.service-share li i {
  width: 8px;
  height: 8px;
  border-radius: 2px;
}
.share-purple {
  background: var(--primary);
}
.share-blue {
  background: #4d91e8;
}
.share-amber {
  background: #e5a62e;
}
.share-green {
  background: #28ad70;
}
.service-share li strong {
  color: var(--text);
}
.top-products header a {
  color: var(--primary);
  font-size: 10px;
  font-weight: 700;
  text-decoration: none;
}
.product-row {
  min-height: 62px;
  display: grid;
  grid-template-columns: 34px 1fr 110px 55px;
  align-items: center;
  gap: 10px;
  border-top: 1px solid var(--border);
  font-size: 11px;
}
.product-row:first-of-type {
  margin-top: 14px;
}
.product-row > b {
  color: var(--muted);
}
.product-row span strong,
.product-row span small {
  display: block;
}
.product-row span small {
  margin-top: 3px;
  color: var(--muted);
  font-size: 9px;
}
.product-row em {
  color: #1b9a5f;
  font-size: 9px;
  font-style: normal;
}
.account-summary {
  display: grid;
  grid-template-columns: 1fr 1fr 0.8fr;
  gap: 14px;
}
.virtual-account {
  min-height: 185px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 22px;
  overflow: hidden;
  position: relative;
  border-radius: 16px;
  color: white;
  box-shadow: 0 14px 30px #2f276324;
}
.virtual-account:after {
  content: "";
  width: 160px;
  height: 160px;
  position: absolute;
  right: -70px;
  top: -80px;
  border: 25px solid #ffffff12;
  border-radius: 50%;
}
.purple-account {
  background: linear-gradient(
    135deg,
    var(--primary),
    color-mix(in srgb, var(--primary) 64%, white)
  );
}
.dark-account {
  background: linear-gradient(135deg, #202536, #3b435c);
}
.virtual-account header,
.virtual-account footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.virtual-account header span {
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.12em;
}
.virtual-account header b {
  padding: 4px 7px;
  border-radius: 10px;
  background: #ffffff20;
  font-size: 7px;
}
.virtual-account > p {
  color: #ffffffa8;
  font-size: 9px;
}
.virtual-account > strong {
  font: 700 23px Manrope;
  letter-spacing: 0.12em;
}
.virtual-account footer span {
  font-size: 8px;
  letter-spacing: 0.07em;
}
.virtual-account footer button {
  padding: 5px 9px;
  border-radius: 7px;
  color: white;
  background: #ffffff20;
  font-size: 8px;
}
.account-total {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 22px;
  box-shadow: none;
}
.account-total > span,
.account-total > small {
  color: var(--muted);
  font-size: 9px;
}
.account-total > strong {
  margin: 13px 0 6px;
  font: 800 21px Manrope;
}
.account-total > div {
  margin-top: 22px;
  padding-top: 14px;
  border-top: 1px solid var(--border);
  color: var(--muted);
  font-size: 9px;
}
.account-total b {
  color: #1b9a5f;
}
.account-table {
  overflow: hidden;
  box-shadow: none;
}
.account-table > header {
  padding: 22px;
  border-bottom: 1px solid var(--border);
}
.account-table .search {
  width: 220px;
}
.receipt-page {
  max-width: 720px;
  margin: auto;
}
.receipt-actions {
  display: flex;
  justify-content: space-between;
  margin-bottom: 18px;
}
.receipt-actions > div {
  display: flex;
  gap: 8px;
}
.receipt {
  padding: 34px 42px;
  box-shadow: none;
}
.receipt > header {
  display: grid;
  grid-template-columns: 42px 1fr auto;
  align-items: center;
  gap: 12px;
  padding-bottom: 25px;
  border-bottom: 1px solid var(--border);
}
.receipt-logo {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  color: white;
  background: var(--primary);
  font: 800 18px Manrope;
}
.receipt header h2 {
  font-size: 16px;
}
.receipt header p {
  color: var(--muted);
  font-size: 9px;
}
.receipt-status {
  padding: 5px 9px;
  border-radius: 20px;
  color: #168a53;
  background: #e6f8ef;
  font-size: 9px;
  font-weight: 700;
}
.receipt-success {
  width: 58px;
  height: 58px;
  display: grid;
  place-items: center;
  margin: 28px auto 12px;
  border-radius: 50%;
  color: white;
  background: #21ae68;
  font-size: 22px;
  box-shadow: 0 0 0 9px #21ae681b;
}
.receipt > h3,
.receipt-subtitle {
  text-align: center;
}
.receipt > h3 {
  font-size: 18px;
}
.receipt-subtitle {
  margin-top: 5px;
  color: var(--muted);
  font-size: 10px;
}
.receipt-amount {
  display: grid;
  justify-items: center;
  gap: 6px;
  margin: 25px 0;
  padding: 18px;
  border-radius: 11px;
  background: var(--surface2);
}
.receipt-amount span {
  color: var(--muted);
  font-size: 9px;
}
.receipt-amount strong {
  font: 800 26px Manrope;
}
.receipt dl {
  display: grid;
}
.receipt dl > div {
  display: flex;
  justify-content: space-between;
  padding: 13px 0;
  border-bottom: 1px solid var(--border);
  font-size: 10px;
}
.receipt dt {
  color: var(--muted);
}
.receipt dd {
  font-weight: 700;
}
.receipt > footer {
  padding-top: 24px;
  text-align: center;
}
.receipt footer p {
  font-size: 10px;
  font-weight: 700;
}
.receipt footer small {
  color: var(--muted);
  font-size: 8px;
}
.welcome-modal {
  display: grid;
  justify-items: center;
  padding-top: 22px;
  text-align: center;
}
.welcome-orb {
  width: 62px;
  height: 62px;
  display: grid;
  place-items: center;
  margin-bottom: 16px;
  border-radius: 18px;
  color: white;
  background: linear-gradient(
    145deg,
    var(--primary),
    color-mix(in srgb, var(--primary) 62%, white)
  );
  box-shadow: 0 12px 28px color-mix(in srgb, var(--primary) 30%, transparent);
}
.welcome-modal h3 {
  font-size: 18px;
}
.welcome-modal > p {
  max-width: 345px;
  margin: 9px 0 22px;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.65;
}
.welcome-modal > div:last-child {
  width: 100%;
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 8px;
}
.hidden {
  display: none !important;
}
.scrim {
  display: none;
}
@media (max-width: 1000px) {
  .sidebar {
    transform: translateX(-100%);
    transition: 0.25s;
    box-shadow: 20px 0 50px #0003;
  }
  .sidebar.show {
    transform: none;
  }
  .brand > button,
  .menu {
    display: grid;
  }
  .scrim.visible {
    display: block;
    position: fixed;
    inset: 0;
    z-index: 35;
    background: #080a128c;
  }
  main {
    margin-left: 0;
  }
  .quick-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 720px) {
  .topbar {
    height: 68px;
    padding: 0 18px;
  }
  .topbar h1 {
    font-size: 15px;
  }
  .page {
    padding: 22px 17px 40px;
  }
  .theme {
    display: none;
  }
  .welcome .secondary {
    display: none;
  }
  .welcome h2 {
    font-size: 20px;
  }
  .balance {
    min-height: 175px;
    padding: 27px 24px;
  }
  .balance > div > strong {
    font-size: 27px;
  }
  .virtual-card {
    position: absolute;
    right: -80px;
    opacity: 0.55;
  }
  .quick-grid {
    grid-template-columns: 1fr;
  }
  .tx {
    grid-template-columns: 35px 1fr auto;
  }
  .tx em {
    display: none;
  }
  .transactions {
    padding: 18px 16px 5px;
  }
  .split,
  .docs {
    grid-template-columns: 1fr;
  }
  .docs-nav {
    display: none;
  }
  .promo {
    display: block;
  }
  .metric-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .analytics-grid,
  .account-summary {
    grid-template-columns: 1fr;
  }
  .service,
  .settings,
  .docs-body {
    padding: 21px 18px;
  }
  .table-head {
    align-items: stretch;
    flex-direction: column;
    gap: 16px;
  }
  .search {
    width: 100%;
  }
  .popover {
    position: fixed;
    top: 67px;
    left: 12px;
    right: 12px;
    width: auto;
  }
  .two {
    grid-template-columns: 1fr;
  }
  .analysis-head {
    align-items: stretch;
    flex-direction: column;
    gap: 14px;
  }
  .analysis-head select {
    width: 100%;
  }
  .account-table > header {
    align-items: stretch;
    flex-direction: column;
    gap: 14px;
  }
  .account-table .search {
    width: 100%;
  }
  .receipt-actions {
    align-items: stretch;
    flex-direction: column;
    gap: 10px;
  }
  .receipt-actions > div {
    display: grid;
    grid-template-columns: 1fr 1.3fr;
  }
  .receipt {
    padding: 25px 19px;
  }
}
@media (max-width: 420px) {
  .fund {
    /*width: 100px;*/
    padding: 0 16px;
    font-size: 12px;
  }
  .fund svg {
    display: block;
  }
  .amounts,
  .chips {
    grid-template-columns: repeat(2, 1fr);
  }
  .metric-grid {
    grid-template-columns: 1fr;
  }
  .product-row {
    grid-template-columns: 28px 1fr auto;
  }
  .product-row em {
    display: none;
  }
}

@media print {
  .sidebar,
  .topbar,
  .receipt-actions {
    display: none !important;
  }
  main {
    margin: 0;
  }
  .page {
    padding: 0;
  }
  .receipt {
    border: 0;
  }
}


/* Layout refinements: prevent sideways page scrolling and allow desktop sidebar collapse. */
html,
body {
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
}
body {
  margin: 0;
}
.app,
main,
.page {
  min-width: 0;
  max-width: 100%;
}
main,
.page {
  box-sizing: border-box;
}
.page > *,
.stack,
.stack > *,
.card,
.split > *,
.analytics-grid > *,
.account-summary > * {
  min-width: 0;
}
.table-wrap {
  max-width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}
.collapse-sidebar {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border: 1px solid var(--border);
  border-radius: 9px;
  color: var(--muted);
  background: var(--surface);
}
.collapse-sidebar:hover {
  color: var(--primary);
  background: var(--surface2);
}
.sidebar,
main {
  transition: width 0.22s ease, margin-left 0.22s ease;
}
@media (min-width: 1001px) {
  .app.sidebar-collapsed .sidebar {
    width: 76px;
    padding-left: 10px;
    padding-right: 10px;
  }
  .app.sidebar-collapsed main {
    margin-left: 76px;
  }
  .app.sidebar-collapsed .brand {
    justify-content: center;
    padding-left: 0;
    padding-right: 0;
  }
  .app.sidebar-collapsed .brand > div,
  .app.sidebar-collapsed .nav-title,
  .app.sidebar-collapsed .help > div,
  .app.sidebar-collapsed .help > svg,
  .app.sidebar-collapsed .user > div,
  .app.sidebar-collapsed .user > svg {
    display: none;
  }
  .app.sidebar-collapsed .nav-link {
    justify-content: center;
    gap: 0;
    padding-left: 0;
    padding-right: 0;
    font-size: 0;
  }
  .app.sidebar-collapsed .nav-parent span {
    justify-content: center;
    gap: 0;
    font-size: 0;
  }
  .app.sidebar-collapsed .nav-parent > svg:last-child,
  .app.sidebar-collapsed .subnav {
    display: none;
  }
  .app.sidebar-collapsed .help {
    display: flex;
    justify-content: center;
    padding: 10px 0;
  }
  .app.sidebar-collapsed .user {
    display: flex;
    justify-content: center;
    padding-left: 0;
    padding-right: 0;
  }
}
@media (max-width: 1000px) {
  .collapse-sidebar {
    display: none;
  }
}

/* Form sizing fix: keep controls inside their cards and grid columns. */
*,
*::before,
*::after {
  box-sizing: border-box;
}

form,
fieldset,
label,
input,
select,
textarea,
button {
  min-width: 0;
  max-width: 100%;
}

input,
select,
textarea {
  width: 100%;
  box-sizing: border-box;
}

.service,
.settings,
.modal,
.modal-form,
.fields,
.two,
.split {
  min-width: 0;
  max-width: 100%;
}

.money {
  min-width: 0;
  max-width: 100%;
}

.money input {
  min-width: 0;
  flex: 1 1 auto;
}
