:root {
  --bg: #020806;
  --bg-soft: #07100c;
  --panel: rgba(255, 255, 255, 0.05);
  --panel-strong: rgba(255, 255, 255, 0.075);
  --panel-soft: rgba(255, 255, 255, 0.045);
  --line: rgba(255, 255, 255, 0.08);
  --line-strong: rgba(54, 242, 124, 0.45);
  --text: #ffffff;
  --muted: rgba(255, 255, 255, 0.65);
  --quiet: rgba(255, 255, 255, 0.42);
  --green: #22c55e;
  --green-deep: #15803d;
  --mint: #36f27c;
  --red: #ef4444;
  --yellow: #f59e0b;
  --shadow: 0 28px 80px rgba(0, 0, 0, 0.5);
  --radius: 18px;
  --radius-sm: 12px;
  --nav-height: 82px;
  --device-height: calc(100vh - 24px);
  color-scheme: dark;
  font-family: "Segoe UI Variable Text", "Segoe UI", Roboto, Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  background: var(--bg);
}

body {
  min-height: 100vh;
  margin: 0;
  background:
    radial-gradient(circle at 50% 0%, rgba(34, 197, 94, 0.12), transparent 32%),
    linear-gradient(180deg, #04100b 0%, #020806 46%, #010302 100%);
  color: var(--text);
  display: grid;
  place-items: center;
  padding: 12px 24px;
  -webkit-font-smoothing: antialiased;
  text-rendering: geometricPrecision;
}

button,
input {
  font: inherit;
}

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

.device {
  width: min(100%, 410px);
  max-width: 100%;
  height: var(--device-height);
  min-height: var(--device-height);
  background: linear-gradient(180deg, #07110c, #020806);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 34px;
  box-shadow:
    0 34px 110px rgba(0, 0, 0, 0.58),
    0 0 0 1px rgba(54, 242, 124, 0.05),
    inset 0 0 0 9px rgba(255, 255, 255, 0.025);
  overflow: hidden;
  position: relative;
}

.screen {
  height: 100%;
  min-height: var(--device-height);
  max-width: 100%;
  display: flex;
  flex-direction: column;
  background:
    radial-gradient(circle at 50% -12%, rgba(34, 197, 94, 0.16), transparent 30%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.045), transparent 17%),
    linear-gradient(180deg, #07120d, #020806 72%);
  position: relative;
}

.screen::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(180deg, rgba(2, 8, 6, 0) 0%, rgba(2, 8, 6, 0.7) 72%),
    radial-gradient(circle at 100% 16%, rgba(54, 242, 124, 0.08), transparent 26%);
}

.screen > * {
  position: relative;
  z-index: 1;
}

.status-bar {
  height: 42px;
  padding: 14px 24px 0;
  display: none;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0;
  flex: 0 0 auto;
}

.status-icons {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.signal {
  display: inline-flex;
  align-items: end;
  gap: 2px;
  height: 12px;
}

.signal i {
  width: 3px;
  background: var(--text);
  border-radius: 3px;
  display: block;
}

.signal i:nth-child(1) {
  height: 4px;
}

.signal i:nth-child(2) {
  height: 6px;
}

.signal i:nth-child(3) {
  height: 8px;
}

.signal i:nth-child(4) {
  height: 10px;
}

.wifi {
  width: 14px;
  height: 10px;
  position: relative;
}

.wifi::before,
.wifi::after {
  content: "";
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  border: 2px solid var(--text);
  border-color: var(--text) transparent transparent transparent;
  border-radius: 50%;
}

.wifi::before {
  width: 14px;
  height: 10px;
  top: 2px;
}

.wifi::after {
  width: 8px;
  height: 6px;
  top: 6px;
}

.battery {
  width: 22px;
  height: 11px;
  border: 1.5px solid var(--text);
  border-radius: 4px;
  position: relative;
  padding: 2px;
}

.battery::after {
  content: "";
  position: absolute;
  right: -4px;
  top: 3px;
  width: 2px;
  height: 5px;
  border-radius: 1px;
  background: var(--text);
}

.battery span {
  display: block;
  height: 100%;
  width: 70%;
  border-radius: 2px;
  background: var(--text);
}

.content {
  flex: 1 1 auto;
  min-height: 0;
  width: 100%;
  max-width: 100%;
  padding: 24px 20px 24px;
  overflow-y: auto;
  overflow-x: hidden;
  scrollbar-width: none;
}

.content::-webkit-scrollbar {
  display: none;
}

.auth-content {
  padding-bottom: 26px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.topbar {
  min-height: 48px;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}

.app-header {
  min-height: 58px;
  margin-bottom: 10px;
}

.brand-stack {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.greeting-text {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.2;
  font-weight: 620;
}

.brand-row {
  display: flex;
  align-items: center;
  gap: 9px;
  min-width: 0;
}

.online-indicator {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: var(--mint);
  font-size: 10px;
  line-height: 1;
  font-weight: 720;
}

.online-indicator::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--mint);
  box-shadow: 0 0 0 4px rgba(54, 242, 124, 0.1);
}

.header-actions {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding-top: 13px;
}

.page-title {
  margin: 0;
  font-size: 17px;
  font-weight: 760;
  line-height: 1.2;
  text-align: center;
}

.icon-button {
  width: 34px;
  height: 34px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.07);
  background: rgba(255, 255, 255, 0.045);
  color: var(--text);
  display: inline-grid;
  place-items: center;
  cursor: pointer;
  transition: transform 160ms ease, border-color 160ms ease, background 160ms ease, color 160ms ease;
}

.icon-button:hover,
.icon-button:focus-visible {
  border-color: rgba(53, 216, 99, 0.45);
  background: rgba(53, 216, 99, 0.08);
  color: var(--green);
  outline: none;
}

.icon-button:active {
  transform: scale(0.94);
}

.brand-lockup {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 780;
  font-size: 18px;
  line-height: 1.05;
}

.verification-badge {
  width: max-content;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 7px;
  border-radius: 999px;
  color: var(--mint);
  background: rgba(34, 197, 94, 0.09);
  border: 1px solid rgba(54, 242, 124, 0.18);
  font-size: 10px;
  font-weight: 720;
  line-height: 1;
}

.verification-badge [data-icon] {
  width: 12px;
  height: 12px;
}

.brand-lockup.center {
  flex-direction: column;
  gap: 12px;
  font-size: 28px;
  margin-bottom: 20px;
}

.brand-lockup.center .brand-mark {
  width: 42px;
  height: 42px;
}

.brand-mark {
  width: 25px;
  height: 25px;
  color: var(--green);
  filter: drop-shadow(0 0 12px rgba(34, 197, 94, 0.26));
}

.dashboard-brand-logo {
  width: 30px;
  height: 30px;
  display: block;
  border-radius: 9px;
  object-fit: cover;
  object-position: center;
  filter: drop-shadow(0 0 10px rgba(54, 242, 124, 0.22));
}

.brand-logo {
  width: 72px;
  height: 72px;
  display: block;
  border-radius: 20px;
  object-fit: cover;
  object-position: center;
  filter: drop-shadow(0 0 16px rgba(54, 242, 124, 0.22));
}

.brand-lockup.center .brand-logo {
  width: 96px;
  height: 96px;
}

.auth-title {
  text-align: center;
  margin: 0 0 26px;
}

.auth-title h1 {
  margin: 0 0 6px;
  font-size: 22px;
  line-height: 1.15;
  letter-spacing: 0;
  font-weight: 780;
}

.auth-title p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.45;
}

.segmented {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 1fr;
  gap: 5px;
  padding: 5px;
  border-radius: 14px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.065), rgba(255, 255, 255, 0.022)),
    rgba(11, 15, 12, 0.86);
  border: 1px solid rgba(191, 255, 208, 0.1);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.055);
  margin-bottom: 16px;
}

.segmented button,
.segmented a {
  min-height: 34px;
  border: 0;
  border-radius: 9px;
  color: var(--muted);
  background: transparent;
  display: inline-grid;
  place-items: center;
  font-size: 13px;
  font-weight: 750;
  cursor: pointer;
}

.segmented .is-active,
.segmented [aria-selected="true"] {
  color: var(--text);
  background: linear-gradient(135deg, #35d863, #179b3e);
  box-shadow: 0 10px 22px rgba(32, 190, 76, 0.18), inset 0 1px 0 rgba(255, 255, 255, 0.22);
}

.form-stack {
  display: grid;
  gap: 14px;
}

.field {
  display: grid;
  gap: 8px;
}

.field label,
.section-label {
  color: var(--text);
  font-size: 12px;
  font-weight: 740;
}

.control {
  min-height: 48px;
  display: grid;
  grid-template-columns: 22px 1fr auto;
  align-items: center;
  gap: 10px;
  padding: 0 12px;
  border-radius: 14px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.062), rgba(255, 255, 255, 0.025)),
    rgba(9, 13, 10, 0.9);
  border: 1px solid rgba(191, 255, 208, 0.11);
  color: var(--text);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.045);
}

.control:focus-within {
  border-color: rgba(53, 216, 99, 0.75);
  box-shadow: 0 0 0 3px rgba(53, 216, 99, 0.12);
}

.control input {
  width: 100%;
  min-width: 0;
  color: var(--text);
  border: 0;
  outline: 0;
  background: transparent;
  font-size: 14px;
}

.control input::placeholder {
  color: var(--quiet);
}

.text-link {
  color: var(--green);
  font-weight: 740;
  font-size: 13px;
}

.text-link:hover,
.text-link:focus-visible {
  color: var(--mint);
  outline: none;
}

.helper-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 2px;
  color: var(--muted);
  font-size: 12px;
}

.helper-good {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: var(--muted);
}

.helper-good::after {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 3px rgba(53, 216, 99, 0.16);
}

.primary-btn,
.secondary-btn,
.mini-btn {
  border: 0;
  border-radius: 14px;
  min-height: 52px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0 16px;
  font-weight: 760;
  cursor: pointer;
  transition: transform 160ms ease, filter 160ms ease, background 160ms ease, border-color 160ms ease;
}

.primary-btn {
  color: white;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.22), transparent 32%),
    linear-gradient(135deg, #44e474, #1dae47 58%, #108b35);
  box-shadow:
    0 20px 38px rgba(35, 188, 75, 0.26),
    inset 0 1px 0 rgba(255, 255, 255, 0.25);
}

.primary-btn:hover,
.primary-btn:focus-visible {
  filter: brightness(1.07);
  transform: translateY(-1px);
  outline: none;
}

.secondary-btn {
  color: var(--text);
  background: rgba(255, 255, 255, 0.045);
  border: 1px solid rgba(191, 255, 208, 0.12);
}

.secondary-btn:hover,
.secondary-btn:focus-visible {
  border-color: rgba(53, 216, 99, 0.45);
  outline: none;
}

.mini-btn {
  min-height: 34px;
  padding: 0 14px;
  border-radius: 11px;
  font-size: 12px;
  color: white;
  background: linear-gradient(135deg, #3fe36d, #15953b);
  box-shadow: 0 10px 20px rgba(35, 188, 75, 0.18);
}

.divider {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 12px;
  margin: 18px 0 14px;
  color: var(--quiet);
  font-size: 12px;
}

.divider::before,
.divider::after {
  content: "";
  height: 1px;
  background: var(--line);
}

.social-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.auth-switch {
  margin: 16px 0 0;
  text-align: center;
  color: var(--muted);
  font-size: 14px;
}

.legal {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.55;
  text-align: center;
}

.balance-card {
  position: relative;
  overflow: hidden;
  border-radius: 24px;
  padding: 20px;
  min-height: 236px;
  display: flex;
  flex-direction: column;
  background:
    radial-gradient(circle at 92% 12%, rgba(54, 242, 124, 0.2), transparent 29%),
    radial-gradient(circle at 18% 108%, rgba(54, 242, 124, 0.1), transparent 34%),
    linear-gradient(135deg, rgba(54, 242, 124, 0.15), rgba(255, 255, 255, 0.035) 48%, rgba(255, 255, 255, 0.018)),
    linear-gradient(180deg, rgba(14, 32, 20, 0.98), rgba(5, 15, 10, 0.98));
  color: white;
  border: 1px solid rgba(54, 242, 124, 0.18);
  box-shadow:
    0 22px 42px rgba(0, 0, 0, 0.28),
    0 0 34px rgba(34, 197, 94, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.11);
}

.balance-card::before {
  content: "";
  position: absolute;
  inset: 12px;
  border-radius: 14px;
  background:
    linear-gradient(90deg, transparent 0 69%, rgba(54, 242, 124, 0.12) 69% 70%, transparent 70%),
    repeating-linear-gradient(135deg, transparent 0 10px, rgba(255, 255, 255, 0.05) 11px, transparent 12px 24px);
  mask-image: linear-gradient(90deg, transparent, #000 52%, #000);
  opacity: 0.18;
}

.balance-card::after {
  content: "";
  position: absolute;
  right: -70px;
  bottom: -92px;
  width: 220px;
  height: 220px;
  border: 1px solid rgba(54, 242, 124, 0.2);
  border-radius: 50%;
  box-shadow: -24px -18px 0 -21px rgba(255, 255, 255, 0.22), -44px -34px 0 -40px rgba(54, 242, 124, 0.16);
  opacity: 0.38;
}

.balance-card > * {
  position: relative;
  z-index: 1;
}

.balance-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 18px;
  font-size: 12px;
  font-weight: 740;
}

.balance-head > div {
  display: grid;
  gap: 8px;
  min-width: 0;
}

.balance-label {
  color: rgba(255, 255, 255, 0.88);
}

.card-security {
  width: max-content;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 5px 8px;
  border-radius: 999px;
  color: var(--mint);
  background: rgba(54, 242, 124, 0.1);
  border: 1px solid rgba(54, 242, 124, 0.2);
  font-size: 10px;
  line-height: 1;
}

.card-security [data-icon] {
  width: 12px;
  height: 12px;
}

.balance-amount {
  margin: 2px 0 0;
  font-size: 40px;
  line-height: 1;
  letter-spacing: 0;
  font-weight: 840;
  text-shadow: 0 3px 14px rgba(0, 0, 0, 0.28);
}

.balance-breakdown {
  margin-top: auto;
  padding-top: 20px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.balance-breakdown article,
.balance-action {
  min-width: 0;
  border-radius: 13px;
}

.balance-action {
  width: 100%;
  min-height: 58px;
  padding: 0 12px;
  appearance: none;
  border: 1px solid rgba(54, 242, 124, 0.22);
  background:
    linear-gradient(135deg, rgba(54, 242, 124, 0.18), rgba(255, 255, 255, 0.055)),
    rgba(255, 255, 255, 0.045);
  color: var(--text);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  text-align: center;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.08),
    0 8px 18px rgba(0, 0, 0, 0.14);
  transition:
    background 180ms ease,
    border-color 180ms ease,
    box-shadow 180ms ease,
    transform 180ms ease;
}

.balance-action:hover,
.balance-action:focus-visible {
  background:
    linear-gradient(135deg, rgba(54, 242, 124, 0.26), rgba(255, 255, 255, 0.075)),
    rgba(255, 255, 255, 0.05);
  border-color: rgba(54, 242, 124, 0.38);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.1),
    0 10px 24px rgba(0, 0, 0, 0.18);
  transform: translateY(-1px);
}

.balance-action:focus-visible {
  outline: 2px solid rgba(54, 242, 124, 0.5);
  outline-offset: 3px;
}

.balance-breakdown article {
  padding: 10px;
  background: rgba(255, 255, 255, 0.055);
  border: 1px solid rgba(255, 255, 255, 0.075);
  display: grid;
  gap: 5px;
}

.balance-breakdown article span {
  color: rgba(255, 255, 255, 0.62);
  font-size: 10.5px;
}

.balance-action span {
  color: var(--text);
  font-size: 12px;
  font-weight: 760;
}

.balance-action-icon {
  width: 15px;
  height: 15px;
  color: var(--mint);
  flex: 0 0 auto;
}

.balance-breakdown strong {
  font-size: 13px;
  line-height: 1.1;
}

.copy-wallet {
  flex: 0 0 auto;
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.14);
  color: rgba(255, 255, 255, 0.9);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.finance-insights {
  margin-top: 18px;
  padding: 16px;
  border-radius: 22px;
  display: grid;
  gap: 13px;
  border: 1px solid rgba(255, 255, 255, 0.075);
  background:
    radial-gradient(circle at 90% 0%, rgba(54, 242, 124, 0.08), transparent 34%),
    linear-gradient(135deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.024)),
    rgba(255, 255, 255, 0.035);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.055),
    0 16px 32px rgba(0, 0, 0, 0.12);
}

.compact-head {
  margin: 0;
}

.period-label {
  color: var(--muted);
  font-size: 12px;
  font-weight: 650;
}

.insight-metrics {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.insight-metrics article {
  min-width: 0;
  padding: 10px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.042);
  border: 1px solid rgba(255, 255, 255, 0.065);
  display: grid;
  gap: 5px;
}

.insight-metrics span {
  color: var(--muted);
  font-size: 11px;
}

.insight-metrics strong {
  font-size: 14px;
  line-height: 1.1;
}

.insight-chart {
  height: 50px;
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 8px;
  align-items: end;
}

.insight-chart span {
  height: var(--bar);
  min-height: 12px;
  border-radius: 999px;
  background: linear-gradient(180deg, #36f27c, #22c55e);
  box-shadow: 0 0 12px rgba(34, 197, 94, 0.13);
}

.savings-progress {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-size: 11px;
}

.savings-progress strong {
  color: var(--mint);
  font-size: 12px;
}

.savings-progress i {
  grid-column: 1 / -1;
  height: 6px;
  border-radius: 999px;
  background:
    linear-gradient(90deg, var(--mint) 0 var(--progress), rgba(255, 255, 255, 0.08) var(--progress) 100%);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.04);
}

.section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 20px 0 10px;
}

.section-head h2 {
  margin: 0;
  font-size: 15px;
  font-weight: 760;
}

.section-caption {
  color: var(--quiet);
  font-size: 11px;
  font-weight: 650;
}

.income-summary-panel .section-head {
  margin-top: 18px;
}

.income-summary-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.income-summary-card {
  min-width: 0;
  min-height: 74px;
  padding: 12px;
  border-radius: 16px;
  background:
    linear-gradient(135deg, rgba(54, 242, 124, 0.11), rgba(255, 255, 255, 0.035)),
    rgba(255, 255, 255, 0.035);
  border: 1px solid rgba(54, 242, 124, 0.12);
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.055);
}

.income-summary-card.is-wide {
  grid-column: 1 / -1;
}

.income-summary-icon {
  width: 34px;
  height: 34px;
  border-radius: 13px;
  background:
    linear-gradient(180deg, rgba(54, 242, 124, 0.22), rgba(34, 197, 94, 0.1));
  color: var(--mint);
  display: grid;
  place-items: center;
  flex: 0 0 auto;
}

.income-summary-icon .icon {
  width: 17px;
  height: 17px;
}

.income-summary-copy {
  min-width: 0;
  display: grid;
  gap: 5px;
}

.income-summary-copy span {
  color: rgba(255, 255, 255, 0.62);
  font-size: 11px;
  line-height: 1.15;
  font-weight: 680;
}

.income-summary-copy strong {
  color: var(--text);
  font-size: 15px;
  line-height: 1.05;
  font-weight: 800;
}

.list {
  display: grid;
  gap: 10px;
}

.row-card,
.option-card,
.account-card,
.transaction-row,
.catalog-row,
.notice-panel {
  border: 1px solid rgba(255, 255, 255, 0.075);
  border-radius: 16px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.022)),
    rgba(255, 255, 255, 0.035);
  box-shadow:
    0 12px 28px rgba(0, 0, 0, 0.14),
    inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.account-card {
  min-height: 70px;
  padding: 14px;
  display: grid;
  grid-template-columns: 40px 1fr auto 18px;
  align-items: center;
  gap: 10px;
}

.account-stack {
  display: grid;
  gap: 9px;
}

.account-stack .account-card {
  min-height: 68px;
  border-radius: 18px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.065), rgba(255, 255, 255, 0.025)),
    rgba(255, 255, 255, 0.038);
  border-color: rgba(255, 255, 255, 0.075);
  transition: transform 160ms ease, border-color 160ms ease, background 160ms ease;
}

.account-stack .account-card:hover,
.account-stack .account-card:focus-visible {
  border-color: rgba(54, 242, 124, 0.35);
  outline: none;
}

.account-stack .account-card:active {
  transform: scale(0.985);
}

.secondary-account {
  opacity: 0.88;
}

.account-meta strong,
.row-main strong,
.transaction-main strong,
.catalog-main strong {
  display: block;
  font-size: 14px;
  line-height: 1.25;
  font-weight: 760;
}

.account-meta span,
.row-main span,
.transaction-main span,
.catalog-main span,
.muted {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.35;
}

.account-balance {
  text-align: right;
  font-size: 13px;
  font-weight: 760;
}

.account-balance span {
  display: block;
  margin-top: 3px;
  font-size: 11px;
  font-weight: 740;
}

.badge-soft {
  width: max-content;
  margin-left: auto;
  padding: 3px 7px;
  border-radius: 999px;
  color: var(--mint);
  background: rgba(34, 197, 94, 0.1);
  border: 1px solid rgba(54, 242, 124, 0.16);
}

.muted-badge {
  color: var(--muted);
  background: rgba(255, 255, 255, 0.045);
  border-color: rgba(255, 255, 255, 0.075);
}

.transaction-row,
.catalog-row {
  min-height: 68px;
  padding: 12px;
  display: grid;
  grid-template-columns: 42px 1fr auto;
  align-items: center;
  gap: 11px;
}

.transaction-row {
  border-radius: 18px;
  transition: transform 160ms ease, border-color 160ms ease, background 160ms ease;
}

.transaction-row:hover,
.transaction-row:focus-within {
  border-color: rgba(54, 242, 124, 0.22);
}

.transaction-row:active {
  transform: scale(0.985);
}

.insight-row {
  margin-top: 12px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.insight-row article {
  min-height: 84px;
  padding: 13px;
  border-radius: 18px;
  border: 1px solid rgba(191, 255, 208, 0.1);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.058), rgba(255, 255, 255, 0.018)),
    rgba(9, 13, 10, 0.9);
  display: grid;
  align-content: space-between;
  gap: 8px;
}

.insight-row strong {
  font-size: 18px;
  line-height: 1;
}

.progress-track {
  height: 6px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  overflow: hidden;
}

.progress-track span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #36de66, #bfffd0);
}

.health-panel {
  margin-top: 12px;
  min-height: 104px;
  padding: 15px;
  border-radius: 20px;
  display: grid;
  grid-template-columns: 1fr 86px;
  align-items: center;
  gap: 14px;
  border: 1px solid rgba(191, 255, 208, 0.11);
  background:
    linear-gradient(135deg, rgba(53, 216, 99, 0.08), rgba(255, 255, 255, 0.022)),
    rgba(8, 12, 9, 0.94);
  box-shadow:
    0 16px 34px rgba(0, 0, 0, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.health-copy {
  display: grid;
  gap: 5px;
}

.health-copy span,
.health-copy small {
  color: var(--muted);
  font-size: 12px;
}

.health-copy strong {
  font-size: 16px;
}

.health-meter {
  width: 76px;
  height: 76px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background:
    conic-gradient(from -90deg, #35d863 0 72%, rgba(255, 255, 255, 0.08) 72% 100%);
  box-shadow: 0 0 26px rgba(53, 216, 99, 0.18);
}

.health-meter span {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background:
    radial-gradient(circle at 50% 25%, rgba(255, 255, 255, 0.08), transparent 42%),
    #071009;
  border: 1px solid rgba(191, 255, 208, 0.12);
}

.beneficiaries .section-head {
  margin-bottom: 10px;
}

.beneficiary-rail {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 72px;
  gap: 10px;
  overflow-x: auto;
  padding: 1px 2px 4px;
  scrollbar-width: none;
}

.beneficiary-rail::-webkit-scrollbar {
  display: none;
}

.beneficiary {
  min-height: 78px;
  padding: 9px 6px;
  border: 1px solid rgba(255, 255, 255, 0.075);
  border-radius: 18px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.058), rgba(255, 255, 255, 0.02)),
    rgba(255, 255, 255, 0.035);
  color: var(--text);
  display: grid;
  place-items: center;
  align-content: center;
  gap: 7px;
  cursor: pointer;
  transition: transform 160ms ease, border-color 160ms ease, background 160ms ease;
}

.beneficiary:hover,
.beneficiary:focus-visible {
  border-color: rgba(54, 242, 124, 0.35);
  outline: none;
}

.beneficiary:active {
  transform: scale(0.96);
}

.beneficiary-avatar {
  width: 39px;
  height: 39px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: #041007;
  background: linear-gradient(135deg, #bfffd0, #36f27c 60%, #22c55e);
  font-size: 14px;
  font-weight: 780;
  box-shadow: 0 10px 18px rgba(34, 197, 94, 0.14);
}

.add-avatar {
  color: var(--green);
  background: rgba(34, 197, 94, 0.1);
  border: 1px dashed rgba(54, 242, 124, 0.38);
  box-shadow: none;
}

.add-avatar [data-icon] {
  width: 18px;
  height: 18px;
}

.beneficiary span:last-child {
  color: var(--muted);
  font-size: 11px;
  font-weight: 720;
}

.activity-filters {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 7px;
  margin-bottom: 10px;
}

.activity-filters button {
  min-height: 32px;
  border: 1px solid rgba(255, 255, 255, 0.075);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.035);
  color: var(--muted);
  font-size: 12px;
  font-weight: 730;
  cursor: pointer;
  transition: transform 160ms ease, border-color 160ms ease, background 160ms ease, color 160ms ease;
}

.activity-filters button:hover,
.activity-filters button:focus-visible,
.activity-filters .is-active {
  color: #061008;
  border-color: transparent;
  background: linear-gradient(135deg, #bfffd0, #36f27c);
  outline: none;
}

.activity-filters button:active {
  transform: scale(0.96);
}

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

.dashboard-transaction .transaction-main {
  display: grid;
  gap: 3px;
}

.status-badge {
  width: max-content;
  margin-top: 1px;
  padding: 3px 7px;
  border-radius: 999px;
  font-style: normal;
  font-size: 10px;
  line-height: 1;
  font-weight: 740;
}

.status-badge.completed {
  color: var(--mint);
  background: rgba(34, 197, 94, 0.1);
  border: 1px solid rgba(54, 242, 124, 0.15);
}

.status-badge.pending {
  color: #ffd890;
  background: rgba(245, 158, 11, 0.12);
  border: 1px solid rgba(245, 158, 11, 0.2);
}

.transaction-main,
.catalog-main {
  min-width: 0;
}

.amount {
  text-align: right;
  font-size: 13px;
  font-weight: 780;
  white-space: nowrap;
}

.amount.income {
  color: var(--green);
}

.amount.expense {
  color: var(--red);
}

.amount.pending {
  color: var(--yellow);
}

.status-text {
  display: block;
  margin-top: 3px;
  color: var(--green);
  font-size: 11px;
  font-weight: 720;
}

.avatar,
.service-icon {
  width: 42px;
  height: 42px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  color: white;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.06), transparent),
    var(--panel-soft);
  border: 1px solid rgba(191, 255, 208, 0.1);
  font-size: 16px;
  font-weight: 900;
}

.avatar.green,
.service-icon.green {
  color: white;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.18), transparent 35%),
    linear-gradient(135deg, #39db68, #168f39);
  box-shadow: 0 10px 22px rgba(35, 188, 75, 0.18);
}

.avatar.red,
.service-icon.red {
  color: white;
  background: linear-gradient(135deg, #ff5f63, #c72130);
}

.avatar.blue,
.service-icon.blue {
  color: white;
  background: linear-gradient(135deg, #4b8fff, #2458c9);
}

.avatar.dark,
.service-icon.dark {
  color: var(--green);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.04), transparent),
    #0d110f;
}

.form-page {
  display: grid;
  gap: 20px;
}

.option-group {
  display: grid;
  gap: 10px;
}

.deposit-package-list {
  display: grid;
  gap: 10px;
}

.deposit-package-card {
  min-width: 0;
  min-height: 62px;
  display: grid;
  grid-template-columns: 20px minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  padding: 11px 12px;
  border: 1px solid rgba(191, 255, 208, 0.08);
  border-radius: 16px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.052), rgba(255, 255, 255, 0.02)),
    rgba(255, 255, 255, 0.034);
  cursor: pointer;
  transition: border-color 160ms ease, background 160ms ease, box-shadow 160ms ease;
}

.deposit-package-card:hover,
.deposit-package-card:focus-within {
  border-color: rgba(53, 216, 99, 0.45);
}

.deposit-package-card.is-selected,
.deposit-package-card:has(input:checked) {
  border-color: var(--green);
  background:
    linear-gradient(135deg, rgba(53, 216, 99, 0.13), rgba(255, 255, 255, 0.02)),
    linear-gradient(180deg, rgba(14, 21, 16, 0.98), rgba(7, 10, 8, 0.98));
  box-shadow:
    0 0 0 1px rgba(53, 216, 99, 0.22),
    0 14px 28px rgba(35, 188, 75, 0.11),
    inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.deposit-package-radio {
  appearance: none;
  width: 18px;
  height: 18px;
  border: 1px solid var(--muted);
  border-radius: 50%;
  display: grid;
  place-items: center;
  margin: 0;
}

.deposit-package-radio::before {
  content: "";
  width: 9px;
  height: 9px;
  border-radius: 50%;
  transform: scale(0);
  background: var(--green);
  transition: transform 160ms ease;
}

.deposit-package-radio:checked {
  border-color: var(--green);
}

.deposit-package-radio:checked::before {
  transform: scale(1);
}

.deposit-package-copy {
  min-width: 0;
  display: grid;
  gap: 4px;
}

.deposit-package-copy strong,
.deposit-package-price {
  color: var(--text);
  font-size: 13px;
  font-weight: 800;
  line-height: 1.1;
}

.deposit-package-copy span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 650;
  line-height: 1.25;
}

.deposit-package-price {
  white-space: nowrap;
  color: var(--mint);
  text-align: right;
}

.option-card {
  min-height: 56px;
  display: grid;
  grid-template-columns: 36px 1fr 20px;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  cursor: pointer;
}

.option-card:hover,
.option-card:focus-within {
  border-color: rgba(53, 216, 99, 0.45);
}

.option-card.is-selected,
.option-card:has(input:checked) {
  border-color: var(--green);
  background:
    linear-gradient(135deg, rgba(53, 216, 99, 0.13), rgba(255, 255, 255, 0.02)),
    linear-gradient(180deg, rgba(14, 21, 16, 0.98), rgba(7, 10, 8, 0.98));
  box-shadow:
    0 0 0 1px rgba(53, 216, 99, 0.22),
    0 14px 28px rgba(35, 188, 75, 0.11),
    inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.option-card input {
  appearance: none;
  width: 18px;
  height: 18px;
  border: 1px solid var(--muted);
  border-radius: 50%;
  display: grid;
  place-items: center;
  margin: 0;
}

.option-card input::before {
  content: "";
  width: 9px;
  height: 9px;
  border-radius: 50%;
  transform: scale(0);
  background: var(--green);
  transition: transform 160ms ease;
}

.option-card input:checked {
  border-color: var(--green);
}

.option-card input:checked::before {
  transform: scale(1);
}

.amount-control {
  display: grid;
  grid-template-columns: 1fr auto;
  min-height: 62px;
  padding: 0 16px;
}

.amount-control input {
  font-size: 24px;
  font-weight: 800;
}

.amount-control strong {
  color: var(--text);
  font-size: 13px;
}

.amount-chips {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.chip {
  min-height: 42px;
  border-radius: 12px;
  border: 1px solid rgba(191, 255, 208, 0.08);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.045), rgba(255, 255, 255, 0.018)),
    var(--panel-strong);
  color: var(--text);
  font-size: 13px;
  font-weight: 780;
  cursor: pointer;
}

.chip:hover,
.chip:focus-visible,
.chip.is-active {
  border-color: var(--green);
  color: var(--mint);
  outline: none;
}

.notice-panel {
  padding: 15px;
  display: grid;
  gap: 10px;
}

.copy-row {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 10px;
  padding: 11px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.045);
  color: var(--muted);
  font-size: 12px;
  word-break: break-all;
}

.category-bar {
  margin-bottom: 12px;
  grid-auto-columns: max-content;
  overflow-x: auto;
  scrollbar-width: none;
}

.category-bar::-webkit-scrollbar {
  display: none;
}

.category-bar button {
  padding: 0 15px;
}

.catalog-row {
  grid-template-columns: 48px 1fr auto;
}

.catalog-price {
  display: grid;
  justify-items: end;
  gap: 8px;
}

.catalog-price strong {
  font-size: 14px;
}

.transaction-date {
  margin: 18px 0 9px;
  color: var(--text);
  font-size: 13px;
  font-weight: 850;
}

.bottom-nav {
  flex: 0 0 var(--nav-height);
  height: var(--nav-height);
  padding: 10px 16px calc(10px + env(safe-area-inset-bottom));
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 6px;
  background:
    linear-gradient(180deg, rgba(7, 18, 12, 0.98), #020806 48%),
    #020806;
  border-top: 1px solid rgba(255, 255, 255, 0.075);
  border-radius: 24px 24px 0 0;
  backdrop-filter: blur(16px);
  box-shadow: 0 -18px 34px rgba(0, 0, 0, 0.28);
}

.nav-item {
  min-width: 0;
  border-radius: 14px;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 4px;
  color: var(--muted);
  font-size: 10px;
  font-weight: 720;
  transition: transform 160ms ease, color 160ms ease, background 160ms ease;
}

.nav-item [data-icon] {
  width: 21px;
  height: 21px;
}

.nav-pay {
  position: relative;
  transform: translateY(-14px);
  color: #061008;
  gap: 5px;
}

.nav-pay [data-icon] {
  width: 26px;
  height: 26px;
  padding: 13px;
  box-sizing: content-box;
  border-radius: 20px;
  color: #061008;
  background:
    linear-gradient(135deg, #c7ffd6, #36f27c 62%, #22c55e);
  box-shadow:
    0 16px 30px rgba(34, 197, 94, 0.22),
    0 0 0 7px rgba(2, 8, 6, 0.94);
}

.nav-pay span:last-child {
  color: var(--green);
  font-size: 10px;
  white-space: nowrap;
}

.nav-item.is-active {
  color: var(--mint);
  text-shadow: 0 0 14px rgba(34, 197, 94, 0.28);
}

.nav-item.is-active [data-icon] {
  color: var(--green);
}

.nav-item:hover,
.nav-item:focus-visible {
  color: var(--mint);
  outline: none;
}

.nav-item:active {
  transform: scale(0.94);
}

.nav-pay:active {
  transform: translateY(-14px) scale(0.94);
}

.referral-modal[hidden] {
  display: none;
}

.referral-modal {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: grid;
  place-items: center;
  padding: 20px;
}

.referral-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.62);
  backdrop-filter: blur(14px);
}

.referral-dialog {
  position: relative;
  z-index: 1;
  width: min(100%, 360px);
  border: 1px solid rgba(191, 255, 208, 0.14);
  border-radius: 26px;
  background:
    radial-gradient(circle at top right, rgba(54, 242, 124, 0.18), transparent 34%),
    linear-gradient(145deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.015)),
    #0c1d13;
  box-shadow: 0 28px 70px rgba(0, 0, 0, 0.46), inset 0 1px 0 rgba(255, 255, 255, 0.06);
  padding: 22px;
  color: var(--text);
}

.referral-close-button {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 34px;
  height: 34px;
  border: 1px solid rgba(191, 255, 208, 0.14);
  border-radius: 14px;
  display: grid;
  place-items: center;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.045);
  cursor: pointer;
  font-size: 16px;
  font-weight: 900;
}

.referral-dialog h2 {
  margin: 6px 42px 6px 0;
  color: var(--text);
  font-size: 25px;
  line-height: 1.1;
}

.referral-modal-copy {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
}

.referral-qr-frame {
  width: 196px;
  height: 196px;
  margin: 18px auto;
  border: 1px solid rgba(54, 242, 124, 0.24);
  border-radius: 24px;
  display: grid;
  place-items: center;
  background: #f7fff9;
  box-shadow: 0 18px 42px rgba(34, 197, 94, 0.14);
}

.referral-qr-frame img {
  width: 174px;
  height: 174px;
  display: block;
}

.referral-link-card {
  min-height: 58px;
  border: 1px solid rgba(191, 255, 208, 0.12);
  border-radius: 18px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  padding: 10px 10px 10px 14px;
  background: rgba(0, 0, 0, 0.18);
}

.referral-link-card span {
  min-width: 0;
  overflow: hidden;
  color: var(--text);
  font-size: 12px;
  font-weight: 760;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.referral-link-card .mini-btn {
  min-height: 38px;
  padding: 0 15px;
}

.referral-page-button {
  min-height: 50px;
  margin-top: 14px;
  display: grid;
  place-items: center;
  text-decoration: none;
}

body.referral-modal-open {
  overflow: hidden;
}

.icon {
  width: 20px;
  height: 20px;
  display: inline-block;
  flex: 0 0 auto;
}

[data-icon] {
  display: inline-block;
  width: 20px;
  height: 20px;
}

[data-icon] svg {
  width: 100%;
  height: 100%;
  display: block;
}

.brand-mark[data-icon] {
  width: 27px;
  height: 27px;
}

.brand-lockup.center .brand-mark[data-icon] {
  width: 42px;
  height: 42px;
}

.empty-state {
  padding: 22px;
  text-align: center;
  color: var(--muted);
  border: 1px dashed var(--line);
  border-radius: 16px;
}

.hidden {
  display: none !important;
}

@media (max-width: 560px) {
  body {
    padding: 0;
    display: block;
    background: #050706;
    overflow-x: hidden;
  }

  .device {
    width: 100%;
    max-width: 100%;
    height: 100dvh;
    min-height: 100dvh;
    border: 0;
    border-radius: 0;
    box-shadow: none;
  }

  .screen {
    height: 100dvh;
    min-height: 100dvh;
    overflow: hidden;
  }

  .content {
    padding: 24px 18px 30px;
  }

  .topbar {
    gap: 12px;
  }

  .brand-lockup {
    font-size: 17px;
  }

  .header-actions {
    gap: 2px;
  }

  .icon-button {
    width: 34px;
    height: 34px;
    border-radius: 12px;
  }

  .balance-card {
    padding: 18px;
    min-height: 228px;
  }

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

  .income-summary-grid {
    gap: 9px;
  }

  .income-summary-card {
    min-height: 70px;
    padding: 11px;
    border-radius: 15px;
  }

  .income-summary-icon {
    width: 32px;
    height: 32px;
    border-radius: 12px;
  }

  .finance-insights {
    padding: 14px;
  }

  .insight-metrics {
    gap: 8px;
  }

  .insight-metrics article {
    padding: 10px;
  }

  .insight-chart {
    gap: 7px;
  }

  .bottom-nav {
    padding-left: 12px;
    padding-right: 12px;
    gap: 4px;
  }

  .nav-pay [data-icon] {
    width: 24px;
    height: 24px;
    padding: 12px;
  }
}

@media (max-width: 380px) {
  .content {
    padding-left: 15px;
    padding-right: 15px;
  }

  .balance-card {
    border-radius: 22px;
    padding: 17px;
    min-height: 218px;
  }

  .balance-amount {
    font-size: 33px;
  }

  .balance-breakdown {
    gap: 8px;
    padding-top: 16px;
  }

  .balance-breakdown article,
  .insight-metrics article {
    padding: 9px;
  }

  .balance-action {
    min-height: 52px;
    padding: 0 10px;
    gap: 6px;
  }

  .income-summary-grid {
    gap: 8px;
  }

  .income-summary-card {
    min-height: 68px;
    padding: 10px;
    gap: 8px;
  }

  .income-summary-icon {
    width: 30px;
    height: 30px;
  }

  .income-summary-copy strong {
    font-size: 14px;
  }

  .account-card {
    grid-template-columns: 38px minmax(0, 1fr) auto 14px;
    gap: 8px;
    padding: 12px;
  }

  .account-balance {
    font-size: 12px;
  }

  .activity-filters {
    gap: 5px;
  }

  .activity-filters button {
    font-size: 11px;
  }

  .bottom-nav {
    padding-left: 8px;
    padding-right: 8px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}
