.install-cta,
.primary-action,
.scan-action,
.secondary-action,
.link-action,
.balance-visibility,
.ghost-action {
  appearance: none;
  border: 0;
  cursor: pointer;
  transition:
    transform .18s var(--ease-out),
    box-shadow .18s var(--ease-out),
    background .18s ease,
    border-color .18s ease,
    color .18s ease,
    opacity .18s ease;
}

[hidden] {
  display: none !important;
}

.link-action,
.ghost-action {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 4px 0;
  background: transparent;
  color: var(--ink-900);
  font-size: .9rem;
  font-weight: 550;
  text-decoration: none;
}

.link-action i,
.ghost-action i,
.secondary-action i,
.install-cta i,
.scan-action i,
.secure-pill i {
  width: 16px;
  height: 16px;
  flex: 0 0 auto;
}

.link-action:hover,
.ghost-action:hover {
  color: var(--brand-navy);
}

.install-cta,
.secondary-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 40px;
  padding: 0 14px;
  border-radius: var(--r-pill);
  color: var(--ink-900);
  background: var(--surface-card);
  border: 1px solid var(--line-soft);
  box-shadow: none;
}

.install-cta:hover,
.secondary-action:hover {
  transform: translateY(-1px);
  border-color: var(--line-strong);
}

.install-cta--inline {
  width: 100%;
  min-height: 46px;
  border-style: dashed;
  border-color: rgba(31, 167, 224, 0.42);
  color: var(--brand-navy);
  font-size: .9rem;
  font-weight: 550;
}

.secondary-action--wide {
  width: 100%;
}

.secondary-action--refresh {
  min-height: 36px;
  padding: 0 12px;
  font-size: .82rem;
}

.balance-visibility {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  width: fit-content;
  padding: 0;
  background: transparent;
  color: var(--brand-navy);
  font-size: .82rem;
  font-weight: 550;
}

.balance-visibility:hover {
  color: var(--brand-navy-dark);
}

.primary-action {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  min-height: 52px;
  padding: 0 18px;
  border-radius: var(--r-md);
  background: linear-gradient(180deg, var(--brand-cyan) 0%, var(--brand-navy) 100%);
  color: #fff;
  font-weight: 650;
  box-shadow: var(--shadow-lift), inset 0 1px 0 rgba(255, 255, 255, 0.22);
}

.primary-action:hover {
  transform: translateY(-1px);
}

.primary-action:disabled {
  cursor: default;
  transform: none;
  background: #C7D3E1;
  color: rgba(255, 255, 255, 0.94);
  box-shadow: none;
}

.primary-action--standalone {
  width: 100%;
}

.primary-action__loader {
  display: none;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.28);
  border-top-color: #fff;
  animation: spin .85s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.balance-shell[data-state="loading"] .primary-action__loader {
  position: absolute;
  display: inline-flex;
}

.balance-shell[data-state="loading"] .primary-action__label {
  opacity: 0;
}

.balance-card {
  width: 100%;
  min-height: min(790px, calc(100dvh - 56px));
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border-radius: var(--r-xl);
  border: 1px solid rgba(255, 255, 255, 0.78);
  background: var(--surface-soft);
  box-shadow: var(--shadow-card);
}

.balance-card--logo {
  align-items: center;
  justify-content: center;
  overflow-y: auto;
  padding: 32px 24px;
}

.balance-card__head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 34px 20px 12px;
  background: transparent;
}

.brand-lockup {
  display: inline-flex;
  align-items: center;
  min-width: 0;
}

.brand-lockup__logo {
  display: block;
  width: auto;
  height: 24px;
  max-width: 172px;
  object-fit: contain;
}

.logo-home {
  display: grid;
  grid-template-rows: 1fr auto;
  justify-items: center;
  align-items: center;
  gap: 28px;
  width: 100%;
  min-height: min(540px, calc(100dvh - 120px));
  text-align: center;
}

.logo-home__center {
  display: grid;
  place-items: center;
  width: 100%;
  min-height: 0;
}

.logo-home__image {
  align-self: center;
  display: block;
  width: min(100%, 320px);
  height: auto;
  object-fit: contain;
  filter: drop-shadow(0 26px 32px rgba(21, 78, 138, 0.16));
}

.logo-home__footer {
  display: grid;
  justify-items: center;
  gap: 16px;
  width: min(100%, 34rem);
}

.logo-home__legend {
  align-self: end;
  max-width: 34rem;
  margin: 0;
  color: var(--ink-700);
  font-size: .96rem;
  font-weight: 550;
  line-height: 1.55;
}

.scan-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: min(100%, 280px);
  min-height: 50px;
  padding: 0 18px;
  border-radius: var(--r-pill);
  background: linear-gradient(180deg, var(--brand-cyan) 0%, var(--brand-navy) 100%);
  color: #FFFFFF;
  font-size: .94rem;
  font-weight: 680;
  box-shadow:
    0 16px 28px rgba(21, 78, 138, 0.18),
    inset 0 1px 0 rgba(255, 255, 255, 0.22);
}

.scan-action:hover {
  transform: translateY(-1px);
}

.scan-action:disabled {
  cursor: wait;
  transform: none;
  opacity: .72;
}

.qr-scanner-panel {
  display: grid;
  gap: 14px;
  width: min(100%, 390px);
  margin-top: 4px;
  padding: 16px;
  border-radius: var(--r-lg);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.94), rgba(255, 255, 255, 0.82)),
    var(--surface-card);
  border: 1px solid rgba(31, 167, 224, 0.22);
  box-shadow:
    0 18px 34px rgba(21, 78, 138, 0.14),
    inset 0 1px 0 rgba(255, 255, 255, 0.78);
  text-align: left;
}

.qr-scanner-panel__head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 14px;
}

.qr-scanner-panel__title {
  margin: 0;
  color: var(--ink-900);
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.25;
}

.qr-scanner-panel__copy {
  margin: 4px 0 0;
  color: var(--ink-500);
  font-size: .78rem;
  line-height: 1.45;
}

.qr-scanner-panel__close {
  width: 34px;
  height: 34px;
  justify-content: center;
  padding: 0;
  border-radius: 50%;
  background: var(--surface-card);
  border: 1px solid var(--line-soft);
}

.qr-scanner-preview {
  position: relative;
  overflow: hidden;
  aspect-ratio: 1 / 1;
  border-radius: var(--r-md);
  background:
    radial-gradient(circle at 50% 50%, rgba(31, 167, 224, 0.18), transparent 56%),
    #0B1B2D;
  border: 1px solid rgba(21, 78, 138, 0.16);
}

.qr-scanner-preview__video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.qr-scanner-preview__frame {
  position: absolute;
  inset: 16%;
  border: 2px solid rgba(255, 255, 255, 0.9);
  border-radius: 18px;
  box-shadow:
    0 0 0 999px rgba(11, 27, 45, 0.22),
    0 0 28px rgba(31, 167, 224, 0.35);
  pointer-events: none;
}

.qr-scanner-status {
  min-height: 2.4em;
  margin: 0;
  color: var(--ink-700);
  font-size: .84rem;
  line-height: 1.45;
  text-align: center;
}

.qr-scanner-file {
  position: relative;
  overflow: hidden;
  min-height: 44px;
  color: var(--brand-navy);
  font-size: .88rem;
  font-weight: 600;
}

.qr-scanner-file input {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: pointer;
}

.secure-pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 30px;
  padding: 0 10px;
  border-radius: var(--r-pill);
  background: var(--surface-card);
  border: 1px solid var(--line-soft);
  color: var(--success);
  font-size: .78rem;
  font-weight: 650;
  white-space: nowrap;
}

.secure-pill::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--success);
  box-shadow: 0 0 0 3px rgba(20, 154, 91, 0.16);
}

.secure-pill i {
  display: none;
}

.balance-form,
.balance-state {
  padding: 16px 20px 20px;
}

.balance-form {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.balance-form > .primary-action {
  margin-top: auto;
}

.balance-form__hero {
  display: grid;
  gap: 6px;
  padding-top: 4px;
}

.card-kicker {
  margin: 0;
  color: var(--ink-500);
  font-size: .72rem;
  font-weight: 700;
  text-transform: uppercase;
}

.balance-title {
  margin: 0;
  color: var(--ink-900);
  font-size: 2rem;
  font-weight: 700;
  line-height: 1.1;
}

.balance-intro {
  margin: 0;
  color: var(--ink-500);
  font-size: .92rem;
  line-height: 1.5;
}

.request-context {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  padding: 10px 12px;
  border-radius: var(--r-sm);
  background: var(--surface-card);
  border: 1px solid var(--line-soft);
  color: var(--ink-700);
  font-size: .84rem;
  line-height: 1.45;
}

.request-context i {
  flex: 0 0 auto;
  width: 16px;
  height: 16px;
  color: var(--brand-navy);
}

.request-context--warning {
  background: var(--warning-soft);
  border-color: var(--warning-line);
  color: var(--warning);
}

.request-context--warning i {
  color: var(--warning);
}

.form-notice {
  margin: 0;
  padding: 11px 12px;
  border-radius: var(--r-sm);
  background: var(--danger-soft);
  border: 1px solid var(--danger-line);
  color: var(--danger);
  font-size: .86rem;
  line-height: 1.5;
}

.balance-form__grid {
  display: grid;
  gap: 18px;
  grid-template-columns: 1fr;
}

.input-frame {
  display: grid;
  gap: 9px;
}

.input-frame__label {
  color: var(--ink-900);
  font-size: .86rem;
  font-weight: 600;
}

.input-frame__control {
  position: relative;
  display: flex;
  align-items: center;
  min-width: 0;
}

.input-frame__control--slots {
  min-height: 54px;
}

.card-slots {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 8px;
  width: 100%;
}

.card-slot {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 54px;
  border-radius: var(--r-sm);
  border: 1.5px solid var(--line-soft);
  background: var(--surface-card);
  color: #101F33;
  font-family: var(--font-mono);
  font-size: 1.3rem;
  font-weight: 550;
  line-height: 1;
  transition:
    border-color .16s ease,
    box-shadow .16s ease,
    background .16s ease;
}

.card-slot--filled {
  border-color: rgba(21, 78, 138, 0.18);
}

.input-frame:focus-within .card-slot--active {
  border-color: var(--brand-navy);
  box-shadow: 0 0 0 4px rgba(21, 78, 138, 0.12);
}

.input-frame--invalid .card-slot,
.input-frame--invalid .card-input {
  border-color: var(--danger);
}

.input-frame--invalid:focus-within .card-slot--active,
.input-frame--invalid .card-input:focus {
  border-color: var(--danger);
  box-shadow: 0 0 0 4px rgba(200, 65, 44, 0.12);
}

.input-frame:focus-within .card-slot--active:not(.card-slot--filled)::after {
  content: "";
  width: 2px;
  height: 22px;
  border-radius: 2px;
  background: var(--brand-navy);
  animation: caret 1s steps(1) infinite;
}

@keyframes caret {
  0%,
  49% {
    opacity: 1;
  }

  50%,
  100% {
    opacity: 0;
  }
}

.card-input {
  width: 100%;
  min-width: 0;
  height: 54px;
  border: 1.5px solid var(--line-soft);
  border-radius: var(--r-sm);
  outline: none;
  background: var(--surface-card);
  color: var(--ink-900);
  font-family: var(--font-mono);
  font-size: 1.22rem;
  font-weight: 550;
  text-align: center;
  transition:
    border-color .16s ease,
    box-shadow .16s ease;
}

.card-input:focus {
  border-color: var(--brand-navy);
  box-shadow: 0 0 0 4px rgba(21, 78, 138, 0.12);
}

.card-input--slot-source {
  position: absolute;
  inset: 0;
  z-index: 1;
  height: 100%;
  border: 0;
  border-radius: 0;
  opacity: .01;
  color: transparent;
  caret-color: transparent;
  background: transparent;
  box-shadow: none;
}

.card-input--slot-source:focus {
  box-shadow: none;
}

.card-input::placeholder {
  color: var(--ink-300);
}

.input-frame__meta {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  color: var(--ink-500);
  font-size: .76rem;
}

.field-feedback {
  min-height: 1.1rem;
  text-align: right;
}

.field-feedback--error {
  color: var(--danger);
}

.field-feedback--ok {
  color: var(--success);
}

.balance-form__helper {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  min-height: 26px;
  color: var(--ink-500);
  font-size: .78rem;
}

.balance-form__helper span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.balance-form__helper i {
  width: 14px;
  height: 14px;
  color: var(--brand-navy);
}

.card-utilities {
  display: grid;
  justify-items: center;
  gap: 12px;
  padding: 0 20px 20px;
}

.balance-shell[data-state="idle"] .card-utilities,
.balance-shell[data-state="loading"] .card-utilities {
  display: none;
}

.captcha-note {
  margin: 0;
  color: var(--ink-500);
  font-size: .7rem;
  line-height: 1.5;
  text-align: center;
}

.captcha-note a {
  color: var(--brand-navy);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.balance-state {
  display: none;
  flex: 1;
  min-height: 0;
}

.balance-shell[data-state="loading"] [data-state-panel="loading"],
.balance-shell[data-state="success"] [data-state-panel="success"],
.balance-shell[data-state="error"] [data-state-panel="error"] {
  display: block;
}

.balance-shell[data-state="loading"] .balance-form,
.balance-shell[data-state="success"] .balance-form,
.balance-shell[data-state="error"] .balance-form {
  display: none;
}

.loading-view,
.error-state {
  display: grid;
  justify-items: center;
  text-align: center;
}

.loading-view {
  gap: 12px;
  min-height: 540px;
  align-content: center;
}

.loading-badge,
.status-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 76px;
  height: 76px;
  border-radius: 22px;
  background: var(--surface-card);
  border: 1px solid var(--line-soft);
  box-shadow: var(--shadow-soft);
}

.loading-spinner {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 2.5px solid rgba(21, 78, 138, 0.16);
  border-top-color: var(--brand-navy);
  animation: spin .85s linear infinite;
}

.status-title {
  margin: 0;
  color: var(--ink-900);
  font-size: 1.6rem;
  font-weight: 700;
  line-height: 1.14;
}

.status-copy {
  margin: 0;
  max-width: 18rem;
  color: var(--ink-500);
  font-size: .92rem;
  line-height: 1.55;
}

.loading-skeletons {
  display: grid;
  gap: 10px;
  width: min(100%, 280px);
  margin-top: 16px;
}

.loading-skeleton {
  position: relative;
  overflow: hidden;
  border-radius: var(--r-pill);
  background: #DDE9F3;
}

.loading-skeleton::after {
  content: "";
  position: absolute;
  inset: 0;
  transform: translateX(-100%);
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.8), transparent);
  animation: shimmer 1.2s infinite;
}

.loading-skeleton--short {
  width: 40%;
  height: 12px;
  justify-self: center;
}

.loading-skeleton--balance {
  width: 70%;
  height: 36px;
  justify-self: center;
  border-radius: var(--r-xs);
}

.loading-skeleton--wide {
  width: 30%;
  height: 12px;
  justify-self: center;
}

@keyframes shimmer {
  to {
    transform: translateX(100%);
  }
}

.success-view {
  display: grid;
  gap: 18px;
  padding-bottom: 4px;
}

.success-view__top {
  min-height: 28px;
}

.wallet-card {
  position: relative;
  overflow: hidden;
  aspect-ratio: 5 / 3;
  border-radius: var(--r-sm);
  background: var(--surface-card);
  border: 1px solid var(--line-soft);
  box-shadow: 0 16px 24px rgba(21, 78, 138, 0.12);
}

.wallet-card__image {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.card-number-panel {
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr);
  align-items: center;
  gap: 14px;
  padding: 16px;
  border-radius: var(--r-lg);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(255, 255, 255, 0.86)),
    var(--surface-card);
  border: 1px solid rgba(31, 167, 224, 0.18);
  box-shadow:
    0 14px 26px rgba(21, 78, 138, 0.12),
    inset 0 1px 0 rgba(255, 255, 255, 0.82);
}

.card-number-panel__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 14px;
  color: #FFFFFF;
  background: linear-gradient(180deg, var(--brand-cyan) 0%, var(--brand-navy) 100%);
  box-shadow: 0 12px 18px rgba(21, 78, 138, 0.22);
}

.card-number-panel__icon i {
  width: 25px;
  height: 25px;
}

.card-number-panel__copy {
  display: grid;
  gap: 5px;
  min-width: 0;
}

.card-number-panel__label {
  margin: 0;
  color: #596F8B;
  font-size: .72rem;
  font-weight: 750;
  letter-spacing: .08em;
  line-height: 1;
  text-transform: uppercase;
}

.card-number-panel__value {
  min-width: 0;
  color: var(--ink-900);
  font-family: var(--font-mono);
  font-size: 1.32rem;
  font-weight: 760;
  line-height: 1.2;
  overflow-wrap: anywhere;
}

.balance-summary {
  display: grid;
  gap: 8px;
}

.balance-summary__head,
.movement-panel__head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
}

.balance-summary__head {
  align-items: center;
}

.movement-panel__head {
  align-items: baseline;
}

.balance-summary__body {
  display: grid;
  gap: 8px;
  justify-items: start;
}

.balance-display {
  display: flex;
  align-items: baseline;
  gap: 6px;
  max-width: 100%;
  flex-wrap: wrap;
}

.balance-display__currency {
  color: var(--ink-500);
  font-size: .95rem;
  font-weight: 550;
}

.balance-display__value {
  max-width: 100%;
  color: var(--ink-900);
  font-size: 2.75rem;
  font-weight: 750;
  line-height: 1;
  overflow-wrap: anywhere;
}

.balance-display__code {
  color: var(--ink-500);
  font-size: .86rem;
  font-weight: 550;
  text-transform: uppercase;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 36px;
  padding: 0 12px;
  border-radius: var(--r-pill);
  background: var(--surface-card);
  border: 1px solid var(--line-soft);
  color: var(--ink-700);
  font-size: .84rem;
  line-height: 1.4;
}

.movement-panel {
  display: grid;
  gap: 10px;
}

.movement-panel__count {
  color: var(--ink-500);
  font-size: .82rem;
}

.movement-list {
  display: grid;
  list-style: none;
  margin: 0;
  padding: 0;
  overflow: hidden;
  border-radius: var(--r-lg);
  background: var(--surface-card);
  border: 1px solid var(--line-soft);
}

.movement-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  padding: 13px 14px;
  border-top: 1px solid var(--line-soft);
}

.movement-item:first-child {
  border-top: 0;
}

.movement-item__leading {
  display: flex;
  gap: 12px;
  min-width: 0;
  align-items: center;
}

.movement-item__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 10px;
  color: var(--brand-navy);
  background: var(--surface-muted);
  font-size: .9rem;
  font-weight: 700;
  flex: 0 0 auto;
}

.movement-item__icon--positive {
  color: var(--success);
  background: var(--success-soft);
}

.movement-item__copy {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.movement-item__concept {
  margin: 0;
  color: var(--ink-900);
  font-size: .9rem;
  font-weight: 550;
  line-height: 1.35;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.movement-item__time {
  color: var(--ink-500);
  font-size: .78rem;
}

.movement-item__amount {
  font-family: var(--font-mono);
  font-size: .86rem;
  font-weight: 550;
  white-space: nowrap;
}

.movement-item__amount--positive {
  color: var(--success);
}

.movement-item__amount--negative {
  color: var(--ink-900);
}

.balance-shell[data-state="success"] .balance-card,
.balance-shell[data-state="error"] .balance-card {
  animation: cardReveal .38s var(--ease-out);
}

@keyframes cardReveal {
  from {
    opacity: .92;
    transform: translateY(8px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.balance-state--error {
  min-height: 540px;
}

.error-state {
  gap: 14px;
  min-height: 100%;
  align-content: center;
  padding: 12px 0;
}

.error-state > .link-action {
  justify-self: start;
  margin-bottom: 8px;
}

.status-icon {
  color: var(--brand-navy);
}

.status-icon i {
  width: 28px;
  height: 28px;
}

.error-state[data-tone="warning"] .status-icon {
  background: var(--warning-soft);
  border-color: var(--warning-line);
  color: var(--warning);
}

.error-state[data-tone="danger"] .status-icon {
  background: var(--danger-soft);
  border-color: var(--danger-line);
  color: var(--danger);
}

.error-state[data-tone="neutral"] .status-icon {
  background: var(--surface-card);
}

.status-actions {
  display: grid;
  gap: 10px;
  width: min(100%, 300px);
  margin-top: 8px;
}

.ghost-action--solid {
  width: fit-content;
  margin-top: 20px;
}

@media (min-width: 760px) {
  .balance-title {
    font-size: 2.15rem;
  }
}

@media (max-width: 560px) {
  .balance-card {
    min-height: 100dvh;
    border-radius: 0;
    border: 0;
    box-shadow: none;
  }

  .balance-card__head {
    padding:
      calc(28px + env(safe-area-inset-top))
      max(18px, env(safe-area-inset-right))
      12px
      max(18px, env(safe-area-inset-left));
  }

  .balance-form,
  .balance-state {
    padding:
      14px
      max(18px, env(safe-area-inset-right))
      calc(18px + env(safe-area-inset-bottom))
      max(18px, env(safe-area-inset-left));
  }

  .card-utilities {
    padding:
      0
      max(18px, env(safe-area-inset-right))
      calc(18px + env(safe-area-inset-bottom))
      max(18px, env(safe-area-inset-left));
  }

  .brand-lockup__logo {
    height: 22px;
    max-width: 154px;
  }

  .balance-card--logo {
    padding:
      calc(28px + env(safe-area-inset-top))
      max(18px, env(safe-area-inset-right))
      calc(28px + env(safe-area-inset-bottom))
      max(18px, env(safe-area-inset-left));
  }

  .logo-home {
    min-height: calc(100dvh - 56px - env(safe-area-inset-top) - env(safe-area-inset-bottom));
    gap: 22px;
  }

  .logo-home__image {
    width: min(100%, 280px);
  }

  .logo-home__footer {
    gap: 14px;
  }

  .logo-home__legend {
    max-width: 19rem;
    font-size: .9rem;
  }

  .scan-action {
    width: min(100%, 260px);
    min-height: 48px;
  }

  .qr-scanner-panel {
    width: 100%;
    padding: 14px;
  }

  .qr-scanner-preview {
    aspect-ratio: 4 / 3;
  }

  .card-number-panel {
    grid-template-columns: 46px minmax(0, 1fr);
    gap: 12px;
    padding: 14px;
  }

  .card-number-panel__icon {
    width: 44px;
    height: 44px;
    border-radius: 13px;
  }

  .card-number-panel__value {
    font-size: 1.1rem;
  }

  .secure-pill {
    min-height: 28px;
    padding: 0 9px;
    font-size: .74rem;
  }

  .card-slots {
    gap: 6px;
  }

  .card-slot {
    height: 52px;
    font-size: 1.18rem;
  }

  .card-input {
    height: 52px;
    font-size: 1.12rem;
  }

  .balance-display__value {
    font-size: 2.45rem;
  }

  .movement-panel__head {
    align-items: flex-start;
  }
}
