/* One card system: shared surface, dimensions, type and interaction states. */
.hero .payment-card {
  --card-muted: #647f90;
  display: flex;
  flex-direction: column;
  width: 280px;
  height: 300px;
  padding: 20px;
  border: 1px solid #ffffffb3;
  border-radius: 20px;
  background: #fbfdff;
  color: #173b4c;
  font-family: var(--font-body);
  line-height: 1.4;
  box-shadow: 0 18px 45px -12px #065ba24d, 0 2px 5px #0746730a;
  transition: scale .25s, box-shadow .25s;
}
.hero .payment-card:hover,
.hero .payment-card:focus-visible {
  scale: 1.025;
  box-shadow: 0 22px 48px -10px #065ba259, 0 2px 5px #0746730a;
}
.hero .payment-card:focus-visible { outline: 3px solid #143e48; outline-offset: 5px; }
.hero .payment-card:active { scale: .99; }
.hero .received-card { left: 78px; top: 35px; transform: rotate(-9deg); }
.hero .transfer-card { left: calc(50% - 140px); top: 23px; transform: rotate(-2deg); }
.hero .balance-card { right: 78px; top: 35px; transform: rotate(9deg); }
.hero .payment-card .card-head {
  flex: 0 0 32px;
  min-height: 32px;
  gap: 12px;
}
.hero .payment-card .mini-brand,
.hero .payment-card .balance-title {
  font-size: 12px;
  font-weight: 500;
  line-height: 16px;
  color: #173b4c;
}
.hero .payment-card .icon-square { width: 32px; height: 32px; border-radius: 9px; }
.hero .payment-card .status { font-size: 11px; line-height: 16px; }
.hero .payment-card .card-label,
.hero .payment-card .amount-block > span,
.hero .payment-card .balance-sub {
  font-size: 12px;
  font-weight: 400;
  line-height: 16px;
  color: var(--card-muted);
}
.hero .payment-card .received-amount,
.hero .payment-card .amount-block strong,
.hero .payment-card .balance-amount {
  display: block;
  margin: 0;
  font-size: 32px;
  line-height: 40px;
  font-weight: 400;
  letter-spacing: -1.25px;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.hero .payment-card .received-amount > span,
.hero .payment-card .amount-block strong > span,
.hero .payment-card .balance-amount > span { color: #8198a6; }
.hero .payment-card .card-label { margin: 12px 0 4px; }
.hero .payment-card .card-separator { display: none; }
.hero .payment-card .company {
  margin-top: auto;
  padding-top: 16px;
  border-top: 1px solid #e5edf1;
  gap: 10px;
  font-size: 12px;
  line-height: 16px;
}
.hero .payment-card .company-icon { width: 32px; height: 32px; border-radius: 9px; }
.hero .payment-card .company small { margin-top: 3px; font-size: 10px; color: var(--card-muted); }
.hero .payment-card .amount-block { margin: 12px 0 0; }
.hero .payment-card .amount-block > span { margin-bottom: 4px; }
.hero .payment-card .currency-label { flex-shrink: 0; font-size: 10px; }
.hero .payment-card .transfer-divider { min-height: 16px; margin-top: 8px; font-size: 9px; color: var(--card-muted); }
.hero .payment-card .destination { margin-top: 8px; }
.hero .payment-card .card-cta {
  min-height: 36px;
  margin-top: auto;
  padding: 8px 12px;
  border-radius: 9px;
  font-size: 11px;
}
/* Keep all balance content in document flow so the chart can never cover text. */
.hero .payment-card .balance-amount { margin-top: 12px; }
.hero .payment-card .balance-sub { display: block; margin-top: 4px; }
.hero .payment-card .balance-symbol { width: 20px; height: 20px; color: #647f90; fill: none; }
.hero .payment-card .chart {
  position: static;
  flex: 0 0 76px;
  width: 100%;
  height: 76px;
  margin-top: 20px;
  overflow: visible;
}
.hero .payment-card .balance-bottom {
  position: static;
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 24px;
  margin-top: auto;
  color: var(--card-muted);
}
.hero .payment-card .balance-bottom > span {
  padding: 0;
  border: 0;
  border-radius: 0;
  color: inherit;
  font-size: 10px;
  line-height: 16px;
}
.hero .payment-card .balance-bottom .balance-plus { margin-left: auto; }
@media (min-width: 761px) and (max-width: 1100px) {
  .hero { --scene-width: 1100px; --scene-scale: .68; }
}
@media (max-width: 760px) {
  .hero { --scene-width: 800px; --scene-height: 680px; --scene-scale: .7; }
  .hero .transfer-card { top: 12px; }
  .hero .received-card { left: 100px; top: 335px; }
  .hero .balance-card { right: 100px; top: 335px; }
}
@media (max-width: 520px) { .hero { --scene-scale: .52; } }
@media (max-width: 374px) { .hero { --scene-scale: .46; } }
@media (max-width: 340px) { .hero { --scene-scale: .42; } }
@media (prefers-reduced-motion: reduce) {
  .hero .payment-card { transition: none; }
}
