:root {
  color-scheme: dark;
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  color: #f6f8ff;
  background: #020617;
  font-synthesis: none;
  text-rendering: geometricPrecision;
  --page: #020617;
  --sidebar: rgba(5, 17, 42, 0.94);
  --surface: rgba(8, 23, 52, 0.76);
  --surface-strong: rgba(10, 27, 61, 0.94);
  --surface-soft: rgba(12, 31, 67, 0.58);
  --line: rgba(122, 148, 205, 0.24);
  --line-bright: rgba(137, 170, 236, 0.4);
  --text: #f6f8ff;
  --muted: #8795b7;
  --muted-bright: #b6c1dc;
  --violet: #9774ff;
  --violet-bright: #ae91ff;
  --cyan: #55d0ff;
  --blue: #638cff;
  --green: #58d58a;
  --red: #ff6c79;
  --shadow: 0 22px 70px rgba(0, 0, 0, 0.32);
}

* {
  box-sizing: border-box;
}

html {
  min-width: 320px;
  scroll-behavior: smooth;
  scroll-padding-top: 22px;
  background: var(--page);
}

body {
  min-width: 320px;
  min-height: 100vh;
  margin: 0;
  overflow-x: hidden;
  background:
    radial-gradient(circle at 76% -8%, rgba(75, 75, 196, 0.2), transparent 32%),
    radial-gradient(circle at 19% 102%, rgba(26, 104, 178, 0.13), transparent 34%),
    linear-gradient(145deg, #03091d 0%, #020717 52%, #06112b 100%);
  -webkit-font-smoothing: antialiased;
}

body::before {
  position: fixed;
  inset: 0;
  z-index: -1;
  content: "";
  opacity: 0.25;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.012) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.01) 1px, transparent 1px);
  background-size: 42px 42px;
  mask-image: linear-gradient(to bottom, #000, transparent 72%);
}

button,
input {
  font: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

button {
  color: inherit;
}

a {
  color: inherit;
  text-decoration: none;
}

button:focus-visible,
a:focus-visible,
input:focus-visible {
  outline: 2px solid rgba(94, 208, 255, 0.9);
  outline-offset: 3px;
}

.skip-link {
  position: fixed;
  z-index: 100;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  border: 0;
  white-space: nowrap;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
}

.skip-link:focus {
  top: 10px;
  left: 10px;
  width: auto;
  height: auto;
  padding: 10px 14px;
  margin: 0;
  overflow: visible;
  border-radius: 7px;
  color: #071129;
  white-space: normal;
  background: #fff;
  clip: auto;
  clip-path: none;
}

.dashboard-shell {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 248px minmax(0, 1fr);
}

.dashboard-sidebar {
  position: sticky;
  top: 0;
  z-index: 20;
  height: 100vh;
  min-height: 650px;
  padding: 31px 18px 24px;
  display: flex;
  flex-direction: column;
  border-right: 1px solid rgba(125, 154, 215, 0.18);
  background:
    radial-gradient(circle at 50% 8%, rgba(65, 104, 190, 0.12), transparent 32%),
    linear-gradient(180deg, rgba(6, 21, 51, 0.98), rgba(4, 16, 39, 0.96));
  box-shadow: 18px 0 60px rgba(0, 0, 0, 0.14);
}

.sidebar-head {
  padding: 0 13px 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.dashboard-brand {
  width: max-content;
  font-size: 25px;
  font-weight: 470;
  line-height: 1;
  letter-spacing: 0.34em;
}

.sidebar-toggle {
  position: relative;
  width: 40px;
  height: 38px;
  padding: 0;
  display: none;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(14, 34, 72, 0.68);
  cursor: pointer;
}

.sidebar-toggle span {
  position: absolute;
  left: 11px;
  width: 17px;
  height: 1px;
  background: #fff;
  transition: transform 180ms ease;
}

.sidebar-toggle span:first-child {
  transform: translateY(-3px);
}

.sidebar-toggle span:last-child {
  transform: translateY(3px);
}

.dashboard-nav {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.dashboard-nav__item {
  width: 100%;
  min-height: 45px;
  padding: 0 13px;
  display: flex;
  align-items: center;
  gap: 13px;
  border: 1px solid transparent;
  border-radius: 8px;
  color: #a7b3ce;
  text-align: left;
  background: transparent;
  cursor: pointer;
  transition:
    color 180ms ease,
    border-color 180ms ease,
    background-color 180ms ease,
    transform 180ms ease;
}

.dashboard-nav__item:hover {
  color: #fff;
  background: rgba(43, 70, 126, 0.18);
  transform: translateX(2px);
}

.dashboard-nav__item.is-active {
  border-color: rgba(117, 144, 211, 0.16);
  color: #fff;
  background:
    linear-gradient(90deg, rgba(63, 83, 152, 0.25), rgba(28, 53, 105, 0.3)),
    rgba(19, 41, 83, 0.52);
  box-shadow: inset 3px 0 #9874ff;
}

.dashboard-nav__icon {
  width: 25px;
  height: 25px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  border: 1px solid rgba(135, 157, 210, 0.22);
  border-radius: 7px;
  color: #9a84ff;
  font-size: 15px;
  line-height: 1;
}

.dashboard-nav__item.is-active .dashboard-nav__icon {
  border-color: rgba(163, 135, 255, 0.48);
  background: rgba(131, 94, 246, 0.14);
}

.sidebar-profile {
  margin-top: auto;
  padding: 16px 12px;
  display: flex;
  align-items: center;
  gap: 11px;
  border-top: 1px solid rgba(125, 148, 198, 0.13);
  color: #dfe5f5;
}

.sidebar-profile__avatar {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(163, 132, 255, 0.5);
  border-radius: 50%;
  color: #f7f4ff;
  background: linear-gradient(145deg, rgba(142, 105, 255, 0.48), rgba(62, 91, 169, 0.25));
}

.sidebar-profile strong,
.sidebar-profile small {
  display: block;
}

.sidebar-profile strong {
  font-size: 12px;
}

.sidebar-profile small {
  margin-top: 3px;
  color: var(--muted);
  font-size: 10px;
}

.sidebar-exit {
  min-height: 42px;
  padding: 0 13px;
  display: flex;
  align-items: center;
  gap: 13px;
  color: #a4b0cb;
  font-size: 12px;
  border-radius: 8px;
  transition:
    color 180ms ease,
    background-color 180ms ease;
}

.sidebar-exit span {
  width: 25px;
  color: #8090b4;
  font-size: 19px;
}

.sidebar-exit:hover {
  color: #fff;
  background: rgba(32, 56, 105, 0.28);
}

.dashboard-main {
  width: 100%;
  max-width: 1550px;
  margin: 0 auto;
  padding: 31px clamp(22px, 2.5vw, 42px) 24px;
}

.dashboard-view-header {
  min-height: 92px;
  padding: 3px 0 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  border-bottom: 1px solid rgba(128, 153, 211, 0.16);
}

.dashboard-view-header h1 {
  margin: 7px 0 0;
  font-size: clamp(24px, 2.2vw, 32px);
  font-weight: 560;
  line-height: 1.05;
  letter-spacing: -0.035em;
}

.dashboard-view-header p {
  margin: 8px 0 0;
  color: #7787a8;
  font-size: 11px;
  line-height: 1.45;
}

.dashboard-header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.quick-action {
  min-height: 43px;
  padding: 0 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  border: 1px solid rgba(126, 151, 205, 0.26);
  border-radius: 7px;
  color: #b9c4db;
  font-size: 11px;
  background: rgba(12, 31, 67, 0.58);
  cursor: pointer;
  transition:
    color 180ms ease,
    border-color 180ms ease,
    background-color 180ms ease,
    transform 180ms ease;
}

.quick-action span {
  color: #a98dff;
  font-size: 15px;
}

.quick-action:hover {
  border-color: rgba(159, 130, 255, 0.56);
  color: #fff;
  background: rgba(43, 47, 105, 0.58);
  transform: translateY(-1px);
}

[data-view-section]:not([hidden]) {
  animation: dashboard-view-in 220ms ease both;
}

[data-view-section][hidden],
[data-view-group][hidden] {
  display: none !important;
}

@keyframes dashboard-view-in {
  from {
    opacity: 0;
    transform: translateY(6px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.balance-overview {
  min-height: 252px;
  margin-top: 16px;
  padding: 18px;
  display: grid;
  grid-template-columns: minmax(340px, 0.95fr) minmax(380px, 1.05fr);
  align-items: stretch;
  gap: 13px;
  border: 1px solid var(--line);
  border-radius: 11px;
  background:
    radial-gradient(circle at 8% 0%, rgba(105, 75, 209, 0.1), transparent 34%),
    linear-gradient(145deg, rgba(8, 24, 54, 0.82), rgba(5, 16, 40, 0.9));
  box-shadow:
    inset 0 1px rgba(255, 255, 255, 0.03),
    0 16px 40px rgba(0, 0, 0, 0.11);
}

.section-label {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #c5cee2;
  font-size: 12px;
}

.balance-copy {
  min-width: 0;
  padding: 5px 6px;
}

.balance-heading,
.balance-main-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.balance-main-row {
  margin-top: 14px;
  align-items: end;
}

.visibility-button {
  min-width: 84px;
  height: 30px;
  padding: 0 9px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  border: 1px solid rgba(125, 149, 205, 0.18);
  border-radius: 7px;
  color: #8492b3;
  font-size: 10px;
  background: rgba(12, 30, 64, 0.44);
  cursor: pointer;
}

.visibility-button b {
  font-size: 10px;
  font-weight: 500;
}

.visibility-button:hover {
  color: #fff;
  border-color: rgba(157, 130, 242, 0.38);
  background: rgba(82, 106, 160, 0.18);
}

.balance-value {
  margin: 0 0 7px;
  display: block;
  font-size: clamp(37px, 3.3vw, 50px);
  font-weight: 570;
  line-height: 1;
  letter-spacing: -0.045em;
  font-variant-numeric: tabular-nums;
}

.balance-copy p {
  margin: 0;
  color: #7e8cae;
  font-size: 13px;
  font-variant-numeric: tabular-nums;
}

.balance-details {
  margin-top: 24px;
  padding-top: 17px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-top: 1px solid rgba(122, 146, 198, 0.13);
}

.balance-details article {
  min-width: 0;
  padding: 0 14px;
  border-right: 1px solid rgba(122, 146, 198, 0.12);
}

.balance-details article:first-child {
  padding-left: 0;
}

.balance-details article:last-child {
  padding-right: 0;
  border-right: 0;
}

.balance-details span,
.balance-details strong {
  display: block;
}

.balance-details span {
  color: #70809f;
  font-size: 10px;
}

.balance-details strong {
  margin-top: 7px;
  overflow: hidden;
  color: #dce3f2;
  font-size: 14px;
  font-weight: 550;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}

.balance-details strong.is-positive {
  color: #62d791;
}

.currency-switch {
  padding: 3px;
  display: flex;
  align-items: center;
  border: 1px solid rgba(119, 142, 198, 0.14);
  border-radius: 999px;
  background: rgba(13, 29, 65, 0.66);
}

.currency-switch button {
  min-width: 57px;
  height: 30px;
  padding: 0 15px;
  border: 0;
  border-radius: 999px;
  color: #7785a6;
  font-size: 11px;
  background: transparent;
  cursor: pointer;
}

.currency-switch button.is-active {
  color: #fff;
  background: linear-gradient(135deg, #7256d7, #8d6be8);
  box-shadow: inset 0 1px rgba(255, 255, 255, 0.22);
}

.balance-distribution {
  min-width: 0;
  padding: 17px 18px;
  border: 1px solid rgba(122, 148, 205, 0.18);
  border-radius: 9px;
  background: rgba(7, 22, 51, 0.5);
}

.balance-distribution > header {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 18px;
}

.balance-distribution > header span,
.balance-distribution > header strong {
  display: block;
}

.balance-distribution > header span {
  color: #d7deed;
  font-size: 12px;
  font-weight: 540;
}

.balance-distribution > header strong {
  margin-top: 5px;
  color: #71809f;
  font-size: 9px;
  font-weight: 450;
}

.balance-distribution > header > b {
  color: #9d89e8;
  font-size: 11px;
  font-weight: 550;
}

.allocation-bar {
  width: 100%;
  height: 11px;
  margin-top: 20px;
  display: flex;
  gap: 3px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(66, 84, 127, 0.24);
}

.allocation-bar i {
  height: 100%;
  display: block;
}

.allocation-bar__single {
  border-radius: 999px 3px 3px 999px;
  background: linear-gradient(90deg, #8f6df3, #a080ff);
}

.allocation-bar__subscriptions {
  border-radius: 3px;
  background: linear-gradient(90deg, #43c5fa, #69d7ff);
}

.allocation-bar__team {
  border-radius: 3px 999px 999px 3px;
  background: linear-gradient(90deg, #638cff, #789dff);
}

.balance-distribution ul {
  margin: 17px 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
  list-style: none;
}

.balance-distribution li {
  display: grid;
  grid-template-columns: 8px minmax(0, 1fr) auto;
  align-items: center;
  gap: 9px;
}

.balance-distribution li span strong,
.balance-distribution li span small {
  display: block;
}

.balance-distribution li span strong {
  color: #aeb9d0;
  font-size: 10px;
  font-weight: 500;
}

.balance-distribution li span small {
  margin-top: 3px;
  color: #687795;
  font-size: 8px;
}

.balance-distribution li > b {
  color: #e7ebf7;
  font-size: 11px;
  font-weight: 520;
  font-variant-numeric: tabular-nums;
}

.legend-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
}

.legend-dot--violet {
  background: var(--violet);
  box-shadow: 0 0 9px rgba(151, 116, 255, 0.65);
}

.legend-dot--cyan {
  background: var(--cyan);
  box-shadow: 0 0 9px rgba(85, 208, 255, 0.55);
}

.legend-dot--blue {
  background: var(--blue);
}

.primary-action,
.secondary-action,
.card-actions button,
.link-action {
  border: 0;
  cursor: pointer;
}

.primary-action {
  min-height: 43px;
  padding: 0 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 1px solid rgba(188, 171, 255, 0.62);
  border-radius: 7px;
  color: #fff;
  background: linear-gradient(135deg, #8669ed, #9c77f2);
  box-shadow:
    0 12px 28px rgba(103, 73, 218, 0.24),
    inset 0 1px rgba(255, 255, 255, 0.24);
  transition:
    transform 180ms ease,
    box-shadow 180ms ease;
}

.primary-action:hover {
  transform: translateY(-2px);
  box-shadow:
    0 16px 34px rgba(103, 73, 218, 0.32),
    inset 0 1px rgba(255, 255, 255, 0.28);
}

.new-card-trigger {
  min-width: 138px;
  font-size: 12px;
}

.cards-section {
  padding: 23px 0 18px;
  scroll-margin-top: 24px;
}

.overview-insights {
  margin-top: 16px;
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(380px, 0.88fr);
  gap: 13px;
}

.spending-content {
  min-height: 188px;
  padding: 20px 20px 8px;
  display: grid;
  grid-template-columns: minmax(145px, 0.56fr) minmax(270px, 1.44fr);
  align-items: center;
  gap: 26px;
}

.spending-total strong,
.spending-total span {
  display: block;
}

.spending-total > strong {
  font-size: 29px;
  font-weight: 560;
  line-height: 1;
  letter-spacing: -0.035em;
  font-variant-numeric: tabular-nums;
}

.spending-total > span {
  margin-top: 7px;
  color: #7887a7;
  font-size: 9px;
}

.budget-progress {
  height: 7px;
  margin-top: 18px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(78, 101, 150, 0.3);
}

.budget-progress span {
  height: 100%;
  display: block;
  border-radius: inherit;
  background: linear-gradient(90deg, #55d0ff, #9674ff);
  box-shadow: 0 0 13px rgba(105, 148, 255, 0.26);
}

.spending-trend {
  padding: 6px 9px;
  border: 1px solid rgba(82, 206, 140, 0.2);
  border-radius: 999px;
  color: #61d691;
  font-size: 9px;
  background: rgba(49, 175, 106, 0.08);
}

.spending-bars {
  height: 140px;
  padding-top: 24px;
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 10px;
  border-bottom: 1px solid rgba(126, 151, 205, 0.18);
}

.spending-bars > span {
  position: relative;
  width: min(42px, 16%);
  height: var(--bar-height);
  min-height: 10px;
  border-radius: 5px 5px 0 0;
  background:
    linear-gradient(180deg, rgba(103, 207, 255, 0.9), rgba(103, 116, 247, 0.45)),
    rgba(39, 63, 116, 0.55);
  box-shadow: inset 0 1px rgba(255, 255, 255, 0.12);
}

.spending-bars > span.is-current {
  background: linear-gradient(180deg, #ad8dff, #725ee2);
  box-shadow:
    0 0 18px rgba(128, 99, 231, 0.2),
    inset 0 1px rgba(255, 255, 255, 0.16);
}

.spending-bars i {
  position: absolute;
  top: -18px;
  left: 50%;
  color: #8d9cba;
  font-size: 8px;
  font-style: normal;
  transform: translateX(-50%);
}

.spending-bars b {
  position: absolute;
  bottom: -21px;
  left: 50%;
  color: #677694;
  font-size: 7px;
  font-weight: 450;
  white-space: nowrap;
  transform: translateX(-50%);
}

.spending-categories {
  min-height: 52px;
  padding: 9px 20px 14px;
  display: flex;
  align-items: center;
  gap: 22px;
  color: #7584a4;
  font-size: 8px;
}

.spending-categories > span {
  display: flex;
  align-items: center;
  gap: 6px;
}

.spending-categories strong {
  color: #cbd3e6;
  font-weight: 530;
}

.upcoming-total {
  color: #e7ebf7;
  font-size: 15px;
  font-weight: 550;
  font-variant-numeric: tabular-nums;
}

.upcoming-list {
  padding: 5px 18px;
}

.upcoming-list article {
  min-height: 62px;
  display: grid;
  grid-template-columns: 38px 31px minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  border-bottom: 1px solid rgba(122, 146, 198, 0.11);
}

.upcoming-list article:last-child {
  border-bottom: 0;
}

.upcoming-list time {
  width: 36px;
  height: 41px;
  display: grid;
  place-content: center;
  border: 1px solid rgba(126, 151, 205, 0.2);
  border-radius: 8px;
  color: #d8deed;
  text-align: center;
  background: rgba(17, 38, 79, 0.5);
}

.upcoming-list time strong,
.upcoming-list time span {
  display: block;
}

.upcoming-list time strong {
  font-size: 12px;
  font-weight: 570;
  line-height: 1;
}

.upcoming-list time span {
  margin-top: 3px;
  color: #7786a5;
  font-size: 7px;
  text-transform: uppercase;
}

.upcoming-list article > span:nth-child(3) strong,
.upcoming-list article > span:nth-child(3) small {
  display: block;
}

.upcoming-list article > span:nth-child(3) strong {
  font-size: 10px;
  font-weight: 530;
}

.upcoming-list article > span:nth-child(3) small {
  margin-top: 4px;
  color: #6e7d9d;
  font-size: 8px;
}

.upcoming-list article > b {
  font-size: 10px;
  font-weight: 540;
  font-variant-numeric: tabular-nums;
}

.balance-forecast {
  min-height: 48px;
  padding: 0 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  border-top: 1px solid rgba(122, 146, 198, 0.14);
  color: #7786a5;
  font-size: 9px;
  background: rgba(7, 21, 49, 0.36);
}

.balance-forecast strong {
  color: #62d891;
  font-size: 11px;
  font-weight: 550;
  font-variant-numeric: tabular-nums;
}

.section-title-row {
  min-height: 47px;
  margin-bottom: 14px;
  padding: 0 3px;
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
}

.section-kicker,
.surface-kicker {
  display: block;
  color: #8d7de8;
  font-size: 9px;
  font-weight: 650;
  line-height: 1.2;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.section-title-row h2 {
  margin: 6px 0 0;
  font-size: 17px;
  font-weight: 550;
  letter-spacing: -0.02em;
}

.section-meta {
  color: #7f8dab;
  font-size: 11px;
}

.section-meta strong {
  color: #e3e8f6;
  font-weight: 560;
}

.account-cards {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 13px;
}

.account-card,
.add-card-tile {
  position: relative;
  min-width: 0;
  height: 190px;
  padding: 17px 18px;
  overflow: hidden;
  border: 1px solid rgba(118, 145, 207, 0.25);
  border-radius: 10px;
  color: #eef2fc;
  text-align: left;
  background:
    radial-gradient(circle at 83% 12%, rgba(108, 82, 231, 0.18), transparent 42%),
    linear-gradient(145deg, rgba(10, 30, 67, 0.94), rgba(6, 17, 43, 0.96));
  box-shadow:
    inset 0 1px rgba(255, 255, 255, 0.04),
    0 12px 28px rgba(0, 0, 0, 0.12);
  cursor: pointer;
  transition:
    transform 180ms ease,
    border-color 180ms ease,
    box-shadow 180ms ease;
}

.account-card::before {
  position: absolute;
  inset: 0;
  content: "";
  opacity: 0;
  pointer-events: none;
  background: linear-gradient(118deg, transparent 18%, rgba(255, 255, 255, 0.06) 48%, transparent 72%);
  transform: translateX(-45%);
  transition:
    opacity 200ms ease,
    transform 500ms ease;
}

.account-card:hover,
.account-card.is-selected {
  transform: translateY(-3px);
}

.account-card:hover::before,
.account-card.is-selected::before {
  opacity: 1;
  transform: translateX(40%);
}

.account-card.is-selected {
  border-color: rgba(166, 127, 255, 0.95);
  box-shadow:
    0 0 0 1px rgba(135, 92, 255, 0.42),
    0 14px 34px rgba(70, 48, 165, 0.22),
    inset 0 1px rgba(255, 255, 255, 0.08);
}

.account-card.is-frozen {
  filter: saturate(0.35);
}

.account-card.is-frozen::after {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  content: "ЗАМОРОЖЕНА";
  color: #dbe4fa;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.16em;
  background: rgba(3, 9, 26, 0.72);
  backdrop-filter: blur(3px);
}

.account-card__top,
.account-card__bottom {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.account-card__top {
  color: #9b89f1;
  font-size: 11px;
}

.account-card__signal {
  color: #8493b6;
  font-size: 17px;
}

.account-card > strong {
  position: relative;
  z-index: 1;
  margin-top: 22px;
  display: block;
  font-size: 17px;
  font-weight: 500;
  letter-spacing: 0.08em;
  white-space: nowrap;
}

.account-card__bottom {
  margin-top: 12px;
  color: #92a0bd;
  font-size: 10px;
}

.account-card__bottom b {
  color: #fff;
  font-size: 13px;
  font-style: italic;
}

.account-card__finance {
  position: relative;
  z-index: 1;
  margin-top: 17px;
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 12px;
}

.account-card__finance > span,
.account-card__finance > span small,
.account-card__finance > span b {
  display: block;
}

.account-card__finance small {
  color: #71809f;
  font-size: 8px;
  font-weight: 450;
}

.account-card__finance > span small {
  margin-bottom: 4px;
}

.account-card__finance b {
  color: #f4f6fd;
  font-size: 14px;
  font-weight: 570;
  font-variant-numeric: tabular-nums;
}

.account-card__usage {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 4px;
  margin-top: 8px;
  display: block;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(83, 104, 151, 0.3);
}

.account-card__usage i {
  height: 100%;
  display: block;
  border-radius: inherit;
  background: linear-gradient(90deg, #59d1ff, #9874ff);
  box-shadow: 0 0 10px rgba(102, 159, 255, 0.32);
}

.account-card--indigo {
  background:
    radial-gradient(circle at 86% 12%, rgba(77, 84, 210, 0.22), transparent 43%),
    linear-gradient(145deg, rgba(9, 28, 64, 0.96), rgba(8, 18, 51, 0.96));
}

.account-card--blue {
  background:
    radial-gradient(circle at 86% 12%, rgba(47, 148, 211, 0.16), transparent 43%),
    linear-gradient(145deg, rgba(8, 30, 67, 0.96), rgba(7, 18, 47, 0.96));
}

.mastercard-mark {
  position: relative;
  width: 30px;
  height: 18px;
}

.mastercard-mark i {
  position: absolute;
  top: 2px;
  width: 15px;
  height: 15px;
  border-radius: 50%;
}

.mastercard-mark i:first-child {
  left: 2px;
  background: #ff3347;
}

.mastercard-mark i:last-child {
  right: 2px;
  background: #ff9f43;
  mix-blend-mode: screen;
}

.add-card-tile {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border-style: dashed;
  border-color: rgba(128, 154, 213, 0.34);
  color: #9eabc6;
  text-align: center;
  background: rgba(5, 16, 39, 0.38);
}

.add-card-tile > span {
  width: 34px;
  height: 34px;
  margin-bottom: 8px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(153, 126, 244, 0.34);
  border-radius: 50%;
  color: #ae8fff;
  font-size: 20px;
  background: rgba(107, 74, 209, 0.11);
}

.add-card-tile strong {
  color: #d7ddec;
  font-size: 12px;
  font-weight: 540;
}

.add-card-tile small {
  margin-top: 5px;
  color: #667596;
  font-size: 9px;
}

.add-card-tile:hover {
  border-color: rgba(164, 129, 255, 0.7);
  color: #fff;
  transform: translateY(-3px);
  background: rgba(29, 35, 86, 0.34);
}

.dashboard-grid {
  display: grid;
  gap: 13px;
}

.dashboard-grid--primary {
  grid-template-columns: minmax(0, 1.62fr) minmax(310px, 0.82fr);
}

.dashboard-grid--secondary {
  margin-top: 13px;
  grid-template-columns: minmax(0, 1.08fr) minmax(370px, 0.92fr);
}

.dashboard-grid.is-single {
  grid-template-columns: minmax(0, 1fr);
}

.surface {
  min-width: 0;
  scroll-margin-top: 24px;
  border: 1px solid var(--line);
  border-radius: 11px;
  background:
    radial-gradient(circle at 92% 0%, rgba(70, 95, 175, 0.08), transparent 34%),
    linear-gradient(145deg, rgba(8, 24, 54, 0.82), rgba(5, 16, 40, 0.9));
  box-shadow:
    inset 0 1px rgba(255, 255, 255, 0.03),
    0 16px 40px rgba(0, 0, 0, 0.11);
}

.surface-header {
  min-height: 68px;
  padding: 15px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  border-bottom: 1px solid rgba(124, 149, 205, 0.15);
}

.surface-header h2 {
  margin: 5px 0 0;
  font-size: 16px;
  font-weight: 550;
  letter-spacing: -0.018em;
}

.card-actions {
  display: flex;
  align-items: center;
  gap: 7px;
}

.card-actions button,
.secondary-action {
  min-height: 34px;
  padding: 0 12px;
  border: 1px solid rgba(127, 150, 203, 0.24);
  border-radius: 7px;
  color: #b9c3da;
  font-size: 10px;
  background: rgba(21, 43, 83, 0.74);
  transition:
    color 180ms ease,
    border-color 180ms ease,
    background-color 180ms ease;
}

.card-actions button:hover,
.secondary-action:hover {
  border-color: rgba(159, 131, 255, 0.55);
  color: #fff;
  background: rgba(45, 50, 111, 0.68);
}

.card-actions .icon-action {
  min-width: 35px;
  padding: 0;
}

.card-actions [data-freeze-card].is-frozen {
  border-color: rgba(255, 108, 121, 0.32);
  color: #ff9ca5;
}

.card-management__content {
  padding: 13px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 11px;
}

.info-panel {
  min-width: 0;
  min-height: 178px;
  padding: 15px;
  border: 1px solid rgba(120, 146, 203, 0.19);
  border-radius: 9px;
  background: rgba(10, 28, 62, 0.5);
}

.info-panel__label {
  color: #dce2f2;
  font-size: 11px;
  font-weight: 560;
}

.card-requisites {
  margin: 18px 0 0;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 16px 10px;
}

.card-requisites div:first-child {
  grid-column: 1 / -1;
}

.card-requisites dt {
  color: #7281a1;
  font-size: 9px;
}

.card-requisites dd {
  margin: 6px 0 0;
  color: #e7ebf6;
  font-size: 12px;
  font-weight: 500;
  font-variant-numeric: tabular-nums;
}

.limit-value {
  margin: 18px 0 12px;
  display: flex;
  align-items: baseline;
  gap: 5px;
}

.limit-value strong {
  font-size: 15px;
  font-weight: 560;
}

.limit-value span {
  color: #7786a7;
  font-size: 9px;
}

.limit-bar {
  height: 8px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(79, 101, 151, 0.28);
}

.limit-bar span {
  height: 100%;
  display: block;
  border-radius: inherit;
  background: linear-gradient(90deg, #5fcfff, #9675ff);
  box-shadow: 0 0 14px rgba(116, 115, 255, 0.3);
  transition: width 260ms ease;
}

.limit-value + .limit-bar + .secondary-action {
  width: 100%;
  margin-top: 20px;
}

.notification-state {
  margin-top: 17px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.notification-bell {
  width: 31px;
  height: 31px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(154, 127, 246, 0.36);
  border-radius: 8px;
  color: #ab8cff;
  background: rgba(110, 80, 206, 0.12);
}

.notification-state strong {
  font-size: 12px;
  font-weight: 550;
}

.notification-panel p {
  margin: 14px 0 12px;
  color: #7f8eac;
  font-size: 9px;
  line-height: 1.55;
}

.switch-control {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #9cabc6;
  font-size: 9px;
  cursor: pointer;
}

.switch-control input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.switch-control > span {
  position: relative;
  width: 31px;
  height: 18px;
  border-radius: 999px;
  background: rgba(74, 94, 139, 0.5);
  transition: background-color 180ms ease;
}

.switch-control > span::after {
  position: absolute;
  top: 3px;
  left: 3px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  content: "";
  background: #93a1bf;
  transition: transform 180ms ease;
}

.switch-control input:checked + span {
  background: rgba(131, 96, 235, 0.8);
}

.switch-control input:checked + span::after {
  background: #fff;
  transform: translateX(13px);
}

.link-action {
  padding: 7px 0;
  color: #a58af2;
  font-size: 10px;
  background: transparent;
}

.link-action span {
  margin-left: 4px;
  transition: transform 180ms ease;
}

.link-action:hover {
  color: #c4b1ff;
}

.link-action:hover span {
  display: inline-block;
  transform: translateX(3px);
}

.history-summary {
  padding: 14px 17px;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 9px;
  border-bottom: 1px solid rgba(122, 146, 198, 0.13);
}

.history-summary article {
  min-height: 78px;
  padding: 13px;
  border: 1px solid rgba(122, 148, 205, 0.18);
  border-radius: 8px;
  background: rgba(9, 27, 59, 0.48);
}

.history-summary span,
.history-summary strong,
.history-summary small {
  display: block;
}

.history-summary span {
  color: #7988a7;
  font-size: 8px;
}

.history-summary strong {
  margin-top: 8px;
  font-size: 17px;
  font-weight: 560;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}

.history-summary small {
  margin-top: 7px;
  color: #697896;
  font-size: 7px;
}

.history-summary article:first-child small {
  color: #5fd48e;
}

.history-toolbar {
  padding: 13px 17px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  border-bottom: 1px solid rgba(122, 146, 198, 0.12);
}

.history-search {
  width: min(100%, 310px);
  height: 38px;
  padding: 0 11px;
  display: flex;
  align-items: center;
  gap: 8px;
  border: 1px solid rgba(125, 149, 205, 0.22);
  border-radius: 7px;
  color: #7e8dad;
  background: rgba(5, 18, 43, 0.62);
}

.history-search input {
  width: 100%;
  min-width: 0;
  border: 0;
  outline: 0;
  color: #e8edf8;
  font-size: 10px;
  background: transparent;
}

.history-search input::placeholder {
  color: #667695;
}

.history-filters {
  padding: 3px;
  display: flex;
  align-items: center;
  gap: 2px;
  border: 1px solid rgba(125, 149, 205, 0.16);
  border-radius: 8px;
  background: rgba(7, 20, 48, 0.55);
}

.history-filters button {
  min-height: 30px;
  padding: 0 10px;
  border: 0;
  border-radius: 6px;
  color: #7584a3;
  font-size: 8px;
  background: transparent;
  cursor: pointer;
}

.history-filters button.is-active {
  color: #fff;
  background: rgba(120, 89, 222, 0.62);
  box-shadow: inset 0 1px rgba(255, 255, 255, 0.14);
}

.transaction-list {
  padding: 5px 17px 9px;
}

.transaction {
  min-height: 53px;
  display: grid;
  grid-template-columns: 34px minmax(150px, 1fr) minmax(80px, 0.42fr) auto;
  align-items: center;
  gap: 10px;
  border-bottom: 1px solid rgba(122, 146, 198, 0.11);
}

.transaction[hidden] {
  display: none;
}

.transaction:last-child {
  border-bottom: 0;
}

.service-logo {
  width: 31px;
  height: 31px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  box-shadow: inset 0 1px rgba(255, 255, 255, 0.16);
}

.service-logo--netflix {
  color: #ff3048;
  background: #05070e;
}

.service-logo--spotify {
  color: #061d10;
  background: #34dc79;
}

.service-logo--adobe {
  font-size: 10px;
  background: linear-gradient(135deg, #ff636c, #ffb24c 42%, #8166ff 76%, #55b9ff);
}

.service-logo--play {
  color: #52e27f;
  background: #05070e;
}

.service-logo--figma {
  color: #ff8f78;
  background: linear-gradient(145deg, #5b4bc1, #1a204c);
}

.service-logo--steam {
  color: #8fc5ff;
  background: #0c1a31;
}

.transaction__copy strong,
.transaction__copy small,
.transaction__amount strong,
.transaction__amount small {
  display: block;
}

.transaction__copy strong {
  overflow: hidden;
  font-size: 11px;
  font-weight: 540;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.transaction__copy small {
  margin-top: 3px;
  color: #7685a5;
  font-size: 8px;
}

.transaction__amount {
  text-align: right;
}

.transaction__amount strong {
  font-size: 10px;
  font-weight: 530;
  font-variant-numeric: tabular-nums;
}

.transaction__amount small {
  margin-top: 4px;
  font-size: 8px;
}

.transaction__category {
  width: max-content;
  padding: 5px 7px;
  border-radius: 999px;
  color: #8291af;
  font-size: 8px;
  background: rgba(72, 94, 142, 0.16);
}

.transaction__amount--positive strong,
.status-refund {
  color: #66d997;
}

.status-success {
  color: var(--green);
}

.status-declined {
  color: #ff8791;
}

.history-empty {
  margin: 0;
  padding: 30px 18px 34px;
  color: #7a89a8;
  font-size: 10px;
  text-align: center;
}

.notifications-center {
  margin-top: 16px;
}

.notifications-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(310px, 0.65fr);
}

.notification-feed {
  padding: 7px 18px 12px;
}

.notification-event {
  position: relative;
  min-height: 72px;
  padding: 10px 3px;
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  border-bottom: 1px solid rgba(122, 146, 198, 0.11);
}

.notification-event:last-child {
  border-bottom: 0;
}

.notification-event.is-unread::before {
  position: absolute;
  top: 50%;
  left: -11px;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  content: "";
  background: #9b79ff;
  box-shadow: 0 0 9px rgba(155, 121, 255, 0.75);
  transform: translateY(-50%);
}

.notification-event__icon {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(126, 151, 205, 0.23);
  border-radius: 9px;
  color: #9b8ce5;
  background: rgba(26, 47, 91, 0.38);
}

.notification-event__icon--success {
  border-color: rgba(75, 205, 136, 0.24);
  color: #63da95;
  background: rgba(44, 172, 103, 0.09);
}

.notification-event__icon--limit {
  border-color: rgba(102, 203, 255, 0.23);
  color: #68d1ff;
  background: rgba(63, 165, 218, 0.09);
}

.notification-event__icon--security {
  border-color: rgba(155, 121, 255, 0.26);
  color: #a98dff;
  background: rgba(117, 81, 220, 0.1);
}

.notification-event strong,
.notification-event small {
  display: block;
}

.notification-event strong {
  font-size: 12px;
  font-weight: 540;
}

.notification-event small {
  margin-top: 5px;
  color: #7483a2;
  font-size: 9px;
}

.notification-event time {
  color: #657492;
  font-size: 9px;
}

.notification-preferences {
  padding: 22px;
  border-left: 1px solid rgba(122, 146, 198, 0.14);
  background: rgba(6, 20, 48, 0.36);
}

.notification-preferences h3 {
  margin: 7px 0 17px;
  font-size: 16px;
  font-weight: 550;
}

.notification-preferences label {
  min-height: 63px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 34px;
  align-items: center;
  gap: 14px;
  border-bottom: 1px solid rgba(122, 146, 198, 0.1);
  cursor: pointer;
}

.notification-preferences label:last-child {
  border-bottom: 0;
}

.notification-preferences label strong,
.notification-preferences label small {
  display: block;
}

.notification-preferences label strong {
  color: #cbd3e6;
  font-size: 10px;
  font-weight: 520;
}

.notification-preferences label small {
  margin-top: 4px;
  color: #697896;
  font-size: 8px;
}

.notification-preferences input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.notification-preferences label > i {
  position: relative;
  width: 33px;
  height: 19px;
  border-radius: 999px;
  background: rgba(75, 96, 143, 0.5);
  transition: background-color 180ms ease;
}

.notification-preferences label > i::after {
  position: absolute;
  top: 3px;
  left: 3px;
  width: 13px;
  height: 13px;
  border-radius: 50%;
  content: "";
  background: #92a0bd;
  transition: transform 180ms ease;
}

.notification-preferences input:checked + i {
  background: rgba(132, 98, 236, 0.82);
}

.notification-preferences input:checked + i::after {
  background: #fff;
  transform: translateX(14px);
}

html[data-dashboard-view="history"] .dashboard-grid--primary {
  margin-top: 16px;
}

.subscription-summary {
  padding: 14px 17px;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 9px;
  border-bottom: 1px solid rgba(122, 146, 198, 0.13);
}

.subscription-summary article {
  min-height: 82px;
  padding: 13px;
  border: 1px solid rgba(122, 148, 205, 0.18);
  border-radius: 8px;
  background: rgba(9, 27, 59, 0.48);
}

.subscription-summary span,
.subscription-summary strong,
.subscription-summary small {
  display: block;
}

.subscription-summary span {
  color: #7988a7;
  font-size: 8px;
}

.subscription-summary strong {
  margin-top: 8px;
  font-size: 15px;
  font-weight: 560;
  line-height: 1.05;
  font-variant-numeric: tabular-nums;
}

.subscription-summary small {
  margin-top: 7px;
  color: #697896;
  font-size: 7px;
}

.subscription-summary .subscription-saving {
  border-color: rgba(87, 205, 143, 0.2);
  background: rgba(39, 151, 92, 0.06);
}

.subscription-saving strong {
  color: #64d995;
}

.subscription-list {
  padding: 6px 17px 11px;
}

.subscription {
  min-height: 59px;
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr) auto 78px;
  align-items: center;
  gap: 11px;
  border-bottom: 1px solid rgba(122, 146, 198, 0.11);
  transition:
    opacity 180ms ease,
    filter 180ms ease;
}

.subscription.is-paused {
  opacity: 0.58;
  filter: saturate(0.55);
}

.subscription:last-child {
  border-bottom: 0;
}

.subscription > span:nth-child(2) strong,
.subscription > span:nth-child(2) small {
  display: block;
}

.subscription > span:nth-child(2) strong {
  font-size: 11px;
  font-weight: 540;
}

.subscription > span:nth-child(2) small {
  margin-top: 4px;
  color: #7584a4;
  font-size: 8px;
}

.subscription > b {
  color: #e9edf7;
  font-size: 10px;
  font-weight: 530;
  font-variant-numeric: tabular-nums;
}

.subscription > b small {
  color: #71809f;
  font-weight: 400;
}

.subscription-state {
  min-height: 28px;
  padding: 0 8px;
  border: 1px solid rgba(94, 209, 147, 0.18);
  border-radius: 999px;
  color: #65d995;
  font-size: 8px;
  text-align: center;
  background: rgba(62, 186, 116, 0.08);
  cursor: pointer;
}

.subscription-state:not(.is-active) {
  border-color: rgba(140, 157, 197, 0.2);
  color: #8b99b5;
  background: rgba(72, 92, 135, 0.12);
}

.subscription-footer {
  min-height: 50px;
  padding: 0 17px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  border-top: 1px solid rgba(122, 146, 198, 0.13);
  color: #72819f;
  font-size: 8px;
  background: rgba(6, 20, 47, 0.3);
}

.subscription-footer button {
  min-height: 30px;
  padding: 0 10px;
  border: 1px solid rgba(151, 119, 244, 0.28);
  border-radius: 6px;
  color: #ad95f4;
  font-size: 8px;
  background: rgba(104, 73, 199, 0.09);
  cursor: pointer;
}

.security-score {
  padding: 6px 9px;
  border: 1px solid rgba(81, 205, 139, 0.22);
  border-radius: 999px;
  color: #62d78f;
  font-size: 9px;
  background: rgba(49, 175, 106, 0.08);
}

.profile-security-layout {
  padding: 14px;
  display: grid;
  grid-template-columns: minmax(220px, 0.7fr) minmax(0, 1.7fr);
  gap: 13px;
}

.profile-card {
  padding: 24px 20px;
  display: flex;
  align-items: center;
  flex-direction: column;
  border: 1px solid rgba(122, 148, 205, 0.18);
  border-radius: 10px;
  text-align: center;
  background:
    radial-gradient(circle at 50% 0%, rgba(119, 84, 228, 0.12), transparent 34%),
    rgba(7, 22, 51, 0.5);
}

.profile-avatar {
  width: 72px;
  height: 72px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(171, 141, 255, 0.54);
  border-radius: 50%;
  color: #fff;
  font-size: 25px;
  background: linear-gradient(145deg, rgba(141, 104, 244, 0.8), rgba(50, 88, 165, 0.62));
  box-shadow:
    0 0 0 7px rgba(125, 92, 224, 0.07),
    0 18px 32px rgba(35, 23, 92, 0.24);
}

.profile-card h3 {
  margin: 17px 0 0;
  font-size: 17px;
  font-weight: 560;
}

.profile-card > p {
  margin: 6px 0 0;
  color: #7d8cab;
  font-size: 9px;
}

.profile-plan {
  margin-top: 12px;
  padding: 6px 10px;
  border: 1px solid rgba(155, 121, 255, 0.3);
  border-radius: 999px;
  color: #ad91ff;
  font-size: 8px;
  background: rgba(111, 78, 209, 0.09);
}

.profile-card dl {
  width: 100%;
  margin: 22px 0 18px;
  text-align: left;
}

.profile-card dl div {
  min-height: 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border-bottom: 1px solid rgba(122, 146, 198, 0.1);
}

.profile-card dt {
  color: #6f7e9d;
  font-size: 8px;
}

.profile-card dd {
  margin: 0;
  color: #b9c3d9;
  font-size: 8px;
  text-align: right;
}

.profile-card .secondary-action {
  width: 100%;
}

.security-workspace {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 11px;
}

.security-health {
  min-height: 112px;
  padding: 15px 17px;
  display: grid;
  grid-template-columns: 74px minmax(0, 1fr) auto;
  align-items: center;
  gap: 16px;
  border: 1px solid rgba(122, 148, 205, 0.18);
  border-radius: 9px;
  background: rgba(9, 27, 59, 0.48);
}

.security-health__score {
  width: 66px;
  height: 66px;
  padding: 6px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: conic-gradient(#61d794 0 92%, rgba(80, 101, 150, 0.25) 92% 100%);
}

.security-health__score > span {
  width: 100%;
  height: 100%;
  display: grid;
  place-content: center;
  border-radius: 50%;
  text-align: center;
  background: #091a3b;
}

.security-health__score strong,
.security-health__score small {
  display: block;
}

.security-health__score strong {
  font-size: 17px;
  font-weight: 580;
  line-height: 1;
}

.security-health__score small {
  margin-top: 3px;
  color: #71809e;
  font-size: 6px;
}

.security-health h3 {
  margin: 6px 0 0;
  font-size: 13px;
  font-weight: 550;
}

.security-health p {
  margin: 6px 0 0;
  color: #7483a1;
  font-size: 8px;
  line-height: 1.45;
}

.security-health > button,
.active-sessions header button {
  min-height: 32px;
  padding: 0 10px;
  border: 1px solid rgba(151, 119, 244, 0.28);
  border-radius: 6px;
  color: #ad95f4;
  font-size: 8px;
  background: rgba(104, 73, 199, 0.09);
  cursor: pointer;
}

.settings-list {
  padding: 6px 14px;
  border: 1px solid rgba(122, 148, 205, 0.18);
  border-radius: 9px;
  background: rgba(9, 27, 59, 0.42);
}

.settings-list button {
  width: 100%;
  min-height: 45px;
  padding: 0 3px;
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr) auto 14px;
  align-items: center;
  gap: 9px;
  border: 0;
  border-bottom: 1px solid rgba(122, 146, 198, 0.11);
  color: #aab5ce;
  text-align: left;
  background: transparent;
  cursor: pointer;
}

.settings-list button:last-child {
  border-bottom: 0;
}

.settings-list button > span {
  width: 26px;
  height: 26px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(130, 151, 203, 0.2);
  border-radius: 7px;
  color: #9383de;
}

.settings-list button > strong {
  font-size: 10px;
  font-weight: 500;
}

.settings-list button > i {
  color: #7d8ba7;
  font-size: 14px;
  font-style: normal;
}

.settings-list button > em {
  color: #8290ad;
  font-size: 8px;
  font-style: normal;
}

.settings-list button > em.is-positive {
  color: #61d48e;
}

.settings-list button > em.is-warning {
  color: #f1bc68;
}

.settings-list button:hover {
  color: #fff;
}

.active-sessions {
  padding: 13px 14px 5px;
  border: 1px solid rgba(122, 148, 205, 0.18);
  border-radius: 9px;
  background: rgba(9, 27, 59, 0.42);
}

.active-sessions > header {
  min-height: 45px;
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 16px;
}

.active-sessions h3 {
  margin: 5px 0 0;
  font-size: 12px;
  font-weight: 550;
}

.active-sessions article {
  min-height: 53px;
  display: grid;
  grid-template-columns: 32px minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  border-top: 1px solid rgba(122, 146, 198, 0.1);
}

.session-icon {
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(130, 151, 203, 0.2);
  border-radius: 7px;
  color: #9583e4;
  background: rgba(71, 76, 148, 0.1);
}

.active-sessions article > span:nth-child(2) strong,
.active-sessions article > span:nth-child(2) small {
  display: block;
}

.active-sessions article > span:nth-child(2) strong {
  font-size: 9px;
  font-weight: 520;
}

.active-sessions article > span:nth-child(2) small {
  margin-top: 4px;
  color: #6d7c9a;
  font-size: 7px;
}

.active-sessions article > button {
  padding: 6px 8px;
  border: 0;
  border-radius: 6px;
  color: #f08c96;
  font-size: 7px;
  background: rgba(190, 71, 83, 0.08);
  cursor: pointer;
}

.session-current {
  color: #61d691;
  font-size: 7px;
  font-style: normal;
}

.dashboard-footer {
  min-height: 54px;
  padding: 0 3px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: #5f6f91;
  font-size: 9px;
}

.dashboard-footer a {
  color: #8593af;
}

.dashboard-footer a:hover {
  color: #fff;
}

.new-card-dialog {
  width: min(92vw, 690px);
  max-height: min(88vh, 780px);
  padding: 0;
  overflow: auto;
  border: 1px solid rgba(145, 167, 220, 0.38);
  border-radius: 14px;
  color: var(--text);
  background:
    radial-gradient(circle at 88% 0%, rgba(101, 75, 203, 0.18), transparent 38%),
    #071633;
  box-shadow: 0 36px 100px rgba(0, 0, 0, 0.62);
}

.new-card-dialog::backdrop {
  background: rgba(1, 5, 17, 0.76);
  backdrop-filter: blur(8px);
}

.money-dialog {
  width: min(92vw, 500px);
}

.money-form {
  padding: 27px;
}

.money-form > header {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 20px;
}

.money-form h2 {
  margin: 7px 0 0;
  font-size: 25px;
  font-weight: 560;
  letter-spacing: -0.035em;
}

.money-form header p {
  margin: 8px 0 0;
  color: #7786a5;
  font-size: 9px;
}

.money-field {
  margin-top: 20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  color: #8c9ab8;
  font-size: 10px;
}

.money-field input,
.money-field select {
  width: 100%;
  height: 47px;
  padding: 0 13px;
  border: 1px solid rgba(124, 149, 207, 0.28);
  border-radius: 8px;
  color: #fff;
  background: rgba(4, 16, 40, 0.74);
}

.money-field select {
  appearance: none;
  background-image:
    linear-gradient(45deg, transparent 50%, #8492b2 50%),
    linear-gradient(135deg, #8492b2 50%, transparent 50%);
  background-position:
    calc(100% - 18px) 20px,
    calc(100% - 13px) 20px;
  background-size: 5px 5px, 5px 5px;
  background-repeat: no-repeat;
}

.money-summary {
  margin-top: 20px;
  padding: 14px 16px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 5px 16px;
  border: 1px solid rgba(122, 148, 205, 0.18);
  border-radius: 9px;
  background: rgba(7, 22, 51, 0.58);
}

.money-summary span {
  color: #8f9db9;
  font-size: 10px;
}

.money-summary strong {
  color: #61d68f;
  font-size: 11px;
  font-weight: 540;
}

.money-summary small {
  grid-column: 1 / -1;
  color: #687897;
  font-size: 8px;
}

.money-submit {
  width: 100%;
  min-height: 48px;
  margin-top: 20px;
}

.new-card-form {
  padding: 28px;
}

.new-card-form > header {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 20px;
}

.new-card-form h2 {
  margin: 7px 0 0;
  font-size: 26px;
  font-weight: 560;
  letter-spacing: -0.035em;
}

.dialog-close {
  position: relative;
  width: 38px;
  height: 38px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: #a7b3ce;
  background: rgba(15, 35, 72, 0.68);
  cursor: pointer;
}

.dialog-close::before,
.dialog-close::after {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 17px;
  height: 2px;
  border-radius: 999px;
  content: "";
  background: #a7b3ce;
  transform-origin: center;
}

.dialog-close::before {
  transform: translate(-50%, -50%) rotate(45deg);
}

.dialog-close::after {
  transform: translate(-50%, -50%) rotate(-45deg);
}

.dialog-close:hover {
  border-color: rgba(166, 136, 255, 0.5);
}

.dialog-close:hover::before,
.dialog-close:hover::after {
  background: #fff;
}

.card-type-options {
  margin: 27px 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  border: 0;
}

.card-type-options legend {
  width: 100%;
  margin-bottom: 10px;
  color: #8a99b8;
  font-size: 10px;
}

.card-type-options label {
  position: relative;
  min-width: 0;
  cursor: pointer;
}

.card-type-options input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.card-type-options label > span {
  min-height: 98px;
  padding: 15px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  border: 1px solid rgba(122, 148, 205, 0.24);
  border-radius: 9px;
  color: #bdc7dc;
  background: rgba(9, 27, 59, 0.66);
  transition:
    color 180ms ease,
    border-color 180ms ease,
    background-color 180ms ease,
    transform 180ms ease;
}

.card-type-options label:hover > span {
  transform: translateY(-2px);
}

.card-type-options input:checked + span {
  border-color: rgba(164, 127, 255, 0.82);
  color: #fff;
  background:
    radial-gradient(circle at 88% 12%, rgba(133, 95, 244, 0.2), transparent 42%),
    rgba(19, 33, 77, 0.82);
  box-shadow: inset 0 0 0 1px rgba(133, 95, 244, 0.18);
}

.card-type-options strong,
.card-type-options small {
  display: block;
}

.card-type-options strong {
  font-size: 12px;
  font-weight: 550;
}

.card-type-options small {
  color: #7887a6;
  font-size: 9px;
  line-height: 1.45;
}

.form-row {
  margin-top: 20px;
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr);
  gap: 12px;
}

.form-row label {
  display: flex;
  flex-direction: column;
  gap: 8px;
  color: #8b9ab9;
  font-size: 10px;
}

.form-row input {
  width: 100%;
  height: 45px;
  padding: 0 13px;
  border: 1px solid rgba(124, 149, 207, 0.28);
  border-radius: 8px;
  color: #fff;
  background: rgba(4, 16, 40, 0.74);
}

.form-row input:focus {
  border-color: rgba(158, 125, 255, 0.7);
}

.issue-summary {
  margin-top: 20px;
  padding: 15px 17px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 5px 20px;
  border: 1px solid rgba(122, 148, 205, 0.18);
  border-radius: 9px;
  background: rgba(7, 22, 51, 0.58);
}

.issue-summary span {
  color: #9ba9c4;
  font-size: 11px;
}

.issue-summary strong {
  color: #62d88f;
  font-size: 12px;
  font-weight: 540;
}

.issue-summary small {
  grid-column: 1 / -1;
  color: #687897;
  font-size: 9px;
}

.issue-card-action {
  width: 100%;
  margin-top: 20px;
  min-height: 48px;
}

.dashboard-toast {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 80;
  min-width: 220px;
  max-width: min(380px, calc(100vw - 32px));
  padding: 13px 16px;
  border: 1px solid rgba(134, 162, 221, 0.3);
  border-radius: 9px;
  color: #e9edf8;
  font-size: 11px;
  background: rgba(8, 23, 51, 0.94);
  box-shadow: var(--shadow);
  opacity: 0;
  pointer-events: none;
  transform: translateY(14px);
  transition:
    opacity 180ms ease,
    transform 180ms ease;
  backdrop-filter: blur(14px);
}

.dashboard-toast.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 1260px) {
  .overview-insights {
    grid-template-columns: minmax(0, 1fr);
  }

  .balance-overview {
    grid-template-columns: minmax(300px, 0.95fr) minmax(340px, 1.05fr);
  }

  .account-card {
    padding-right: 14px;
    padding-left: 14px;
  }

  .account-card > strong {
    font-size: 14px;
  }

  .card-management__content {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .notification-panel {
    grid-column: 1 / -1;
    min-height: 130px;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 0 22px;
    align-items: center;
  }

  .notification-panel .info-panel__label,
  .notification-panel p {
    grid-column: 1 / -1;
  }
}

@media (max-width: 1080px) {
  .dashboard-shell {
    grid-template-columns: 218px minmax(0, 1fr);
  }

  .dashboard-sidebar {
    padding-right: 13px;
    padding-left: 13px;
  }

  .balance-overview {
    min-height: 0;
    padding: 16px;
    grid-template-columns: minmax(0, 1fr);
  }

  .account-cards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .account-card,
  .add-card-tile {
    height: 190px;
  }

  .account-card > strong {
    font-size: 16px;
  }

  .dashboard-grid--primary,
  .dashboard-grid--secondary {
    grid-template-columns: minmax(0, 1fr);
  }

  .notifications-layout {
    grid-template-columns: minmax(0, 1fr);
  }

  .notification-preferences {
    border-top: 1px solid rgba(122, 146, 198, 0.14);
    border-left: 0;
  }

  .history-summary,
  .subscription-summary {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 900px) {
  html {
    scroll-padding-top: 82px;
  }

  .dashboard-shell {
    display: block;
  }

  .dashboard-sidebar {
    position: sticky;
    top: 0;
    z-index: 60;
    width: 100%;
    height: 70px;
    min-height: 0;
    padding: 0 18px;
    display: block;
    border-right: 0;
    border-bottom: 1px solid rgba(129, 155, 211, 0.23);
    background: rgba(4, 17, 42, 0.9);
    box-shadow: 0 16px 42px rgba(0, 0, 0, 0.24);
    backdrop-filter: blur(18px) saturate(1.12);
  }

  .sidebar-head {
    height: 69px;
    padding: 0;
  }

  .sidebar-toggle {
    display: block;
  }

  .sidebar-toggle[aria-expanded="true"] span:first-child {
    transform: rotate(45deg);
  }

  .sidebar-toggle[aria-expanded="true"] span:last-child {
    transform: rotate(-45deg);
  }

  .dashboard-nav {
    position: absolute;
    top: 69px;
    right: 10px;
    left: 10px;
    padding: 10px;
    display: flex;
    border: 1px solid rgba(129, 155, 211, 0.25);
    border-radius: 0 0 12px 12px;
    background: rgba(5, 18, 44, 0.97);
    box-shadow: 0 24px 54px rgba(0, 0, 0, 0.35);
    opacity: 0;
    pointer-events: none;
    transform: translateY(-8px);
    transition:
      opacity 180ms ease,
      transform 180ms ease;
  }

  .dashboard-sidebar.is-open .dashboard-nav {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
  }

  .dashboard-nav__item {
    min-height: 42px;
  }

  .sidebar-profile,
  .sidebar-exit {
    display: none;
  }

  .dashboard-main {
    padding-top: 22px;
  }

  .dashboard-view-header {
    scroll-margin-top: 88px;
  }

  .balance-overview,
  .cards-section,
  .surface {
    scroll-margin-top: 88px;
  }
}

@media (max-width: 720px) {
  .dashboard-main {
    padding: 18px 14px 16px;
  }

  .dashboard-view-header {
    min-height: 0;
    padding: 6px 0 18px;
    align-items: stretch;
    flex-direction: column;
    gap: 16px;
  }

  .dashboard-view-header h1 {
    font-size: 27px;
  }

  .dashboard-header-actions {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .new-card-trigger {
    grid-column: 1 / -1;
  }

  .balance-overview {
    margin-top: 14px;
    min-height: 0;
    padding: 14px;
    grid-template-columns: minmax(0, 1fr);
    gap: 13px;
  }

  .balance-value {
    font-size: 36px;
  }

  .new-card-trigger {
    width: 100%;
  }

  .spending-content {
    grid-template-columns: minmax(0, 1fr);
    gap: 8px;
  }

  .spending-total {
    padding-bottom: 8px;
  }

  .spending-bars {
    margin-bottom: 10px;
  }

  .spending-categories {
    flex-wrap: wrap;
    gap: 9px 18px;
  }

  .balance-distribution {
    padding: 16px;
  }

  .section-title-row {
    align-items: start;
    flex-direction: column;
    gap: 8px;
  }

  .account-cards {
    grid-template-columns: minmax(0, 1fr);
  }

  .account-card,
  .add-card-tile {
    width: 100%;
    height: 190px;
  }

  .account-card {
    padding: 20px;
  }

  .account-card > strong {
    margin-top: 22px;
    font-size: 18px;
  }

  .account-card__bottom {
    margin-top: 12px;
  }

  .card-management__header {
    align-items: start;
    flex-direction: column;
  }

  .card-actions {
    width: 100%;
  }

  .card-actions button {
    flex: 1 1 auto;
  }

  .card-actions .icon-action {
    flex: 0 0 35px;
  }

  .card-management__content {
    grid-template-columns: minmax(0, 1fr);
  }

  .notification-panel {
    grid-column: auto;
    display: block;
  }

  .notifications-center {
    margin-top: 14px;
  }

  .notification-feed {
    padding-right: 14px;
    padding-left: 14px;
  }

  .notification-preferences {
    padding: 20px 16px;
  }

  .history-toolbar {
    align-items: stretch;
    flex-direction: column;
  }

  .history-search {
    width: 100%;
  }

  .history-filters {
    width: 100%;
    overflow-x: auto;
  }

  .history-filters button {
    flex: 1 0 auto;
  }

  .transaction {
    grid-template-columns: 34px minmax(0, 1fr) auto;
  }

  .transaction__category {
    display: none;
  }

  .profile-security-layout {
    grid-template-columns: minmax(0, 1fr);
  }

  .profile-card dl {
    width: min(100%, 420px);
  }

  .new-card-form {
    padding: 22px 18px;
  }

  .money-form {
    padding: 22px 18px;
  }

  .card-type-options {
    grid-template-columns: minmax(0, 1fr);
  }

  .card-type-options label > span {
    min-height: 72px;
  }

  .form-row {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 460px) {
  .dashboard-sidebar {
    padding: 0 14px;
  }

  .dashboard-brand {
    font-size: 21px;
  }

  .balance-value {
    font-size: 31px;
  }

  .currency-switch button {
    min-width: 48px;
    padding: 0 10px;
  }

  .balance-main-row {
    align-items: flex-start;
    flex-direction: column;
    gap: 14px;
  }

  .balance-details article {
    padding-right: 9px;
    padding-left: 9px;
  }

  .balance-distribution li {
    grid-template-columns: 8px minmax(0, 1fr);
  }

  .balance-distribution li > b {
    grid-column: 2;
    margin-top: -2px;
  }

  .dashboard-header-actions {
    grid-template-columns: minmax(0, 1fr);
  }

  .new-card-trigger {
    grid-column: auto;
  }

  .upcoming-list article {
    grid-template-columns: 36px 30px minmax(0, 1fr);
  }

  .upcoming-list article > b {
    grid-column: 3;
    padding-bottom: 8px;
  }

  .surface-header {
    align-items: start;
    flex-direction: column;
  }

  .transaction-list,
  .subscription-list,
  .settings-list {
    padding-right: 12px;
    padding-left: 12px;
  }

  .subscription {
    grid-template-columns: 31px minmax(0, 1fr);
    padding: 9px 0;
  }

  .subscription > .service-logo {
    grid-row: 1 / 3;
  }

  .subscription > b {
    grid-column: 2;
    padding-bottom: 2px;
  }

  .subscription-state {
    grid-column: 1 / -1;
    width: 100%;
    margin-bottom: 5px;
  }

  .history-summary,
  .subscription-summary {
    grid-template-columns: minmax(0, 1fr);
  }

  .subscription-footer {
    padding: 12px;
    align-items: stretch;
    flex-direction: column;
  }

  .subscription-footer button {
    width: 100%;
  }

  .security-health {
    grid-template-columns: 66px minmax(0, 1fr);
  }

  .security-health > button {
    grid-column: 1 / -1;
    width: 100%;
  }

  .settings-list button {
    grid-template-columns: 28px minmax(0, 1fr) 14px;
  }

  .settings-list button > em {
    grid-column: 2;
    margin-top: -8px;
  }

  .settings-list button > i {
    grid-column: 3;
    grid-row: 1 / 3;
  }

  .active-sessions > header {
    align-items: stretch;
    flex-direction: column;
    padding-bottom: 10px;
  }

  .active-sessions header button {
    width: 100%;
  }

  .dashboard-footer {
    align-items: start;
    flex-direction: column;
    justify-content: center;
    gap: 6px;
  }

  .dashboard-toast {
    right: 16px;
    bottom: 16px;
    left: 16px;
    min-width: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}
