:root {
  color-scheme: dark;
  --bg: #06070d;
  --surface: rgba(255, 255, 255, 0.09);
  --surface-strong: rgba(255, 255, 255, 0.14);
  --stroke: rgba(255, 255, 255, 0.18);
  --text: #f6f8ff;
  --muted: rgba(246, 248, 255, 0.62);
  --cyan: #72f7ff;
  --blue: #6e8bff;
  --green: #7dffb2;
  --red: #ff6f91;
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.42);
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

body {
  min-height: 100vh;
  margin: 0;
  background:
    radial-gradient(circle at 18% -10%, rgba(114, 247, 255, 0.22), transparent 34%),
    radial-gradient(circle at 90% 12%, rgba(126, 109, 255, 0.24), transparent 28%),
    linear-gradient(180deg, #0b0d18 0%, var(--bg) 52%, #030408 100%);
  color: var(--text);
  letter-spacing: 0;
}

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

.app-shell {
  position: relative;
  width: min(100%, 480px);
  min-height: 100vh;
  margin: 0 auto;
  overflow: hidden;
  padding: env(safe-area-inset-top) 18px calc(92px + env(safe-area-inset-bottom));
}

.ambient {
  position: fixed;
  z-index: -1;
  width: 260px;
  height: 260px;
  border-radius: 50%;
  filter: blur(24px);
  opacity: 0.42;
  pointer-events: none;
}

.ambient-one {
  top: 10%;
  left: calc(50% - 310px);
  background: rgba(114, 247, 255, 0.32);
}

.ambient-two {
  right: calc(50% - 330px);
  bottom: 10%;
  background: rgba(125, 255, 178, 0.22);
}

.topbar {
  display: grid;
  grid-template-columns: 48px 1fr 48px;
  gap: 12px;
  align-items: center;
  padding: 18px 0 12px;
}

.brand-mark,
.avatar,
.quick-action,
.bottom-nav,
.glass-panel,
.transaction-row,
.filter-pills button {
  border: 1px solid var(--stroke);
  background: var(--surface);
  box-shadow: var(--shadow);
  backdrop-filter: blur(24px) saturate(155%);
  -webkit-backdrop-filter: blur(24px) saturate(155%);
}

.brand-mark,
.avatar {
  display: grid;
  width: 46px;
  height: 46px;
  place-items: center;
  border-radius: 50%;
  font-weight: 800;
}

.brand-mark {
  background: linear-gradient(145deg, #fff, var(--cyan) 28%, var(--blue) 74%);
  color: #05060d;
}

.avatar {
  color: var(--text);
}

.eyebrow {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: uppercase;
}

.screen-title {
  font-size: 1.18rem;
  font-weight: 800;
}

.app-main {
  padding: 10px 0 28px;
}

.stack {
  display: grid;
  gap: 18px;
}

.gap-lg {
  gap: 22px;
}

.glass-panel {
  border-radius: 28px;
  padding: 20px;
}

.intro-panel h2,
.section-head h2 {
  margin: 0;
  font-size: 1.35rem;
  font-weight: 820;
}

.muted,
.intro-panel p:last-child {
  color: var(--muted);
}

.hero-balance {
  padding: 26px 22px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 34px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.18), rgba(255, 255, 255, 0.06)),
    radial-gradient(circle at top left, rgba(114, 247, 255, 0.32), transparent 42%),
    radial-gradient(circle at bottom right, rgba(125, 255, 178, 0.16), transparent 38%);
  box-shadow: var(--shadow);
  backdrop-filter: blur(28px);
}

.hero-balance strong {
  display: block;
  margin-top: 4px;
  font-size: clamp(2.55rem, 12vw, 4rem);
  font-weight: 880;
  line-height: 0.96;
}

.hero-balance span {
  display: block;
  margin-top: 12px;
  color: var(--muted);
}

.hero-balance.compact strong {
  font-size: 2.05rem;
}

.quick-grid,
.stats-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.stats-row {
  grid-template-columns: repeat(2, 1fr);
}

.quick-action {
  display: grid;
  min-height: 94px;
  place-items: center;
  border-radius: 26px;
  color: var(--text);
  font-weight: 760;
}

.quick-action i {
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.14);
  color: var(--cyan);
  font-size: 1.15rem;
}

.stat-card span,
.card-settings span {
  color: var(--muted);
  font-size: 0.9rem;
}

.stat-card strong,
.card-settings strong {
  display: block;
  margin-top: 6px;
  font-size: 1.02rem;
}

.card-preview {
  position: relative;
  display: flex;
  min-height: 184px;
  align-items: flex-end;
  justify-content: space-between;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 30px;
  padding: 24px;
  box-shadow: var(--shadow);
}

.card-preview::before {
  position: absolute;
  inset: -35%;
  content: "";
  background: conic-gradient(from 130deg, rgba(255, 255, 255, 0.48), transparent, rgba(114, 247, 255, 0.38), transparent);
  opacity: 0.55;
}

.card-preview > * {
  position: relative;
}

.card-preview span,
.card-preview small {
  display: block;
  color: rgba(255, 255, 255, 0.72);
}

.card-preview strong {
  display: block;
  margin: 8px 0;
  font-size: 1.45rem;
}

.card-preview i {
  font-size: 1.55rem;
}

.card-aurora {
  background: linear-gradient(135deg, #151a32, #2858ff 48%, #72f7ff);
}

.card-violet {
  background: linear-gradient(135deg, #14111e, #7d5cff 48%, #ff82cf);
}

.section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.section-head a {
  color: var(--cyan);
  font-weight: 760;
}

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

.transaction-row {
  display: grid;
  grid-template-columns: 48px 1fr auto;
  gap: 12px;
  align-items: center;
  border-radius: 22px;
  padding: 12px;
}

.transaction-icon {
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  border-radius: 50%;
}

.transaction-icon.in {
  background: rgba(125, 255, 178, 0.14);
  color: var(--green);
}

.transaction-icon.out {
  background: rgba(255, 111, 145, 0.14);
  color: var(--red);
}

.transaction-main strong,
.transaction-main span {
  display: block;
}

.transaction-main span {
  color: var(--muted);
  font-size: 0.86rem;
}

.transaction-amount {
  font-size: 0.9rem;
  white-space: nowrap;
}

.positive {
  color: var(--green);
}

.negative {
  color: var(--red);
}

.filter-pills {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding-bottom: 2px;
}

.filter-pills button {
  min-height: 42px;
  border-radius: 999px;
  color: var(--text);
  padding: 0 16px;
}

.filter-pills .active {
  background: rgba(114, 247, 255, 0.2);
  color: var(--cyan);
}

.form-panel {
  display: block;
}

.form-label {
  color: rgba(246, 248, 255, 0.78);
  font-weight: 700;
}

.liquid-input {
  min-height: 54px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.09);
  color: var(--text);
}

.liquid-input:focus {
  border-color: rgba(114, 247, 255, 0.72);
  background: rgba(255, 255, 255, 0.12);
  box-shadow: 0 0 0 0.24rem rgba(114, 247, 255, 0.12);
  color: var(--text);
}

.liquid-input::placeholder {
  color: rgba(246, 248, 255, 0.36);
}

.amount-field {
  position: relative;
}

.amount-field span {
  position: absolute;
  z-index: 2;
  top: 50%;
  left: 16px;
  color: var(--muted);
  font-weight: 800;
  transform: translateY(-50%);
}

.amount-field input {
  padding-left: 64px;
}

.liquid-btn {
  min-height: 54px;
  border: 0;
  border-radius: 18px;
  background: linear-gradient(135deg, var(--cyan), var(--blue));
  color: #05060d;
  font-weight: 850;
  box-shadow: 0 18px 48px rgba(114, 247, 255, 0.24);
}

.card-settings {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.card-settings i {
  color: var(--green);
  font-size: 1.3rem;
}

.bottom-nav {
  position: fixed;
  right: 16px;
  bottom: calc(14px + env(safe-area-inset-bottom));
  left: 16px;
  z-index: 10;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  max-width: 448px;
  margin: 0 auto;
  border-radius: 26px;
  padding: 8px;
}

.bottom-nav a {
  display: grid;
  min-height: 58px;
  place-items: center;
  border-radius: 20px;
  color: var(--muted);
  font-size: 0.74rem;
  font-weight: 760;
}

.bottom-nav i {
  font-size: 1.12rem;
}

.bottom-nav .active {
  background: rgba(255, 255, 255, 0.13);
  color: var(--text);
}

.splash-body .app-shell {
  display: grid;
  padding-bottom: env(safe-area-inset-bottom);
  place-items: center;
}

.splash-main {
  width: 100%;
}

.splash-screen {
  display: grid;
  min-height: 88vh;
  place-items: center;
  align-content: center;
  text-align: center;
}

.splash-logo {
  display: grid;
  width: 118px;
  height: 118px;
  place-items: center;
  border-radius: 34px;
  background: linear-gradient(145deg, #fff, var(--cyan) 28%, var(--blue) 74%);
  color: #05060d;
  font-size: 4rem;
  font-weight: 900;
  box-shadow: 0 28px 100px rgba(114, 247, 255, 0.35);
}

.splash-screen h1 {
  margin: 28px 0 6px;
  font-size: 3.2rem;
  font-weight: 900;
}

.splash-screen p {
  color: var(--muted);
}

.splash-loader {
  width: 148px;
  height: 5px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
}

.splash-loader span {
  display: block;
  width: 42%;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--cyan), var(--green));
  animation: load 1.4s ease-in-out infinite;
}

.splash-enter {
  min-width: 180px;
  margin-top: 26px;
  opacity: 0;
  transform: translateY(8px);
  transition: 0.45s ease;
}

.splash-enter.ready {
  opacity: 1;
  transform: translateY(0);
}

@keyframes load {
  0% {
    transform: translateX(-110%);
  }
  100% {
    transform: translateX(260%);
  }
}

@media (min-width: 760px) {
  .app-shell {
    padding-inline: 0;
  }

  .bottom-nav {
    right: 50%;
    left: 50%;
    transform: translateX(-50%);
  }
}
