.wallet-statement {
  --wallet-red: #dc1426;
  --wallet-red-hot: #ff1f33;
  --wallet-ink: #f0eeec;
  position: fixed;
  inset: 0;
  z-index: 170;
  overflow: hidden;
  color: var(--wallet-ink);
  background:
    radial-gradient(ellipse 70% 42% at 50% -10%, rgba(220, 20, 38, 0.32), transparent 58%),
    radial-gradient(ellipse 40% 34% at 8% 90%, rgba(90, 0, 10, 0.35), transparent 60%),
    linear-gradient(165deg, #100c0e 0%, #070708 48%, #040404 100%);
  transform: translateX(100%);
  visibility: hidden;
  transition: transform 0.32s cubic-bezier(0.32, 0.72, 0, 1), visibility 0.32s ease;
  padding-top: env(safe-area-inset-top, 0px);
  padding-bottom: env(safe-area-inset-bottom, 0px);
}

.wallet-statement.is-open {
  transform: translateX(0);
  visibility: visible;
}

.wallet-statement__glow {
  position: absolute;
  inset: -15%;
  pointer-events: none;
  background:
    repeating-linear-gradient(
      -28deg,
      transparent 0 18px,
      rgba(220, 20, 38, 0.04) 18px 20px
    );
  opacity: 0.75;
}

.wallet-statement__tape {
  position: absolute;
  z-index: 0;
  pointer-events: none;
  height: 1.15rem;
  background:
    repeating-linear-gradient(
      -35deg,
      #dc1426 0 11px,
      #111 11px 22px
    );
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.4);
  opacity: 0.88;
}

.wallet-statement__tape--a {
  top: 4.2rem;
  left: -1.5rem;
  width: 9rem;
  transform: rotate(-16deg);
}

.wallet-statement__tape--b {
  right: -1.2rem;
  bottom: 5.5rem;
  width: 7.5rem;
  transform: rotate(21deg);
}

.wallet-statement-panel {
  position: relative;
  z-index: 1;
  display: flex;
  height: 100%;
  width: min(100%, 40rem);
  flex-direction: column;
  gap: 0.85rem;
  margin: 0 auto;
  padding: 0.85rem 1rem 1.15rem;
}

.wallet-statement-header {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 0.75rem;
  padding: 0.7rem 0.8rem;
  border: 2px solid rgba(220, 20, 38, 0.55);
  background: rgba(12, 10, 12, 0.9);
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.04),
    4px 4px 0 rgba(90, 0, 10, 0.45);
  transform: rotate(-0.6deg);
}

.wallet-statement-back {
  display: grid;
  width: 2.45rem;
  height: 2.45rem;
  flex-shrink: 0;
  place-items: center;
  border: 2px solid rgba(240, 238, 236, 0.2);
  border-radius: 0.1rem;
  background: #1a1418;
  color: #fff;
  box-shadow: 2px 2px 0 rgba(90, 0, 10, 0.4);
  transition: background 0.15s ease, border-color 0.15s ease, transform 0.12s ease;
}

.wallet-statement-back:hover {
  border-color: var(--wallet-red-hot);
  background: #22181c;
}

.wallet-statement-back:active {
  transform: translate(1px, 1px);
}

.wallet-statement-back .material-symbols-outlined {
  font-size: 1.45rem;
  line-height: 1;
}

.wallet-statement-header__copy {
  min-width: 0;
}

.wallet-statement-kicker {
  margin: 0 0 0.12rem;
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.wallet-statement-title {
  margin: 0;
  font-size: clamp(1.05rem, 3.2vw, 1.35rem);
  font-weight: 900;
  letter-spacing: -0.02em;
  line-height: 1.1;
  color: #fff;
}

.wallet-statement-stamp {
  display: grid;
  place-items: center;
  width: 2.35rem;
  height: 2.35rem;
  border: 2px solid var(--wallet-red-hot);
  background: var(--wallet-red);
  color: #fff;
  font-size: 0.68rem;
  font-weight: 900;
  box-shadow: 2px 2px 0 rgba(90, 0, 10, 0.5);
  transform: rotate(9deg);
}

.wallet-statement-hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 1.1rem;
  border: 2px solid rgba(220, 20, 38, 0.65);
  background:
    radial-gradient(ellipse 70% 90% at 0% 50%, rgba(220, 20, 38, 0.28), transparent 60%),
    linear-gradient(135deg, rgba(22, 14, 16, 0.98), rgba(8, 8, 10, 0.96));
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.05),
    5px 5px 0 rgba(90, 0, 10, 0.5);
  transform: rotate(0.5deg);
}

.wallet-statement-hero__main {
  min-width: 0;
}

.wallet-statement-hero__label {
  margin: 0 0 0.35rem;
  color: rgba(255, 255, 255, 0.58);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.wallet-statement-hero__balance {
  display: flex;
  align-items: baseline;
  gap: 0.45rem;
  margin: 0;
  color: #fff;
}

.wallet-statement-hero__coin {
  width: 1.15rem;
  height: 1.15rem;
  align-self: center;
  flex-shrink: 0;
}

.wallet-statement-hero__balance strong {
  font-size: clamp(1.7rem, 5vw, 2.25rem);
  font-weight: 900;
  letter-spacing: -0.04em;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}

.wallet-statement-hero__unit {
  color: rgba(255, 255, 255, 0.55);
  font-size: 0.82rem;
  font-weight: 700;
}

.wallet-statement-hero__cta {
  flex-shrink: 0;
  min-height: 2.55rem;
  padding: 0.55rem 0.95rem;
  border: 2px solid #ff1f33;
  background: #dc1426;
  color: #fff;
  font-size: 0.82rem;
  font-weight: 900;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  box-shadow: 3px 3px 0 rgba(90, 0, 10, 0.5);
  cursor: pointer;
  transition: filter 0.15s ease, transform 0.12s ease;
}

.wallet-statement-hero__cta:hover {
  filter: brightness(1.08);
}

.wallet-statement-hero__cta:active {
  transform: translate(1px, 1px);
}

.wallet-statement-tabs {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.45rem;
  padding: 0;
  border: 0;
  background: transparent;
}

.wallet-statement-tab {
  position: relative;
  min-height: 2.65rem;
  padding: 0.55rem 0.7rem;
  border: 2px solid rgba(240, 238, 236, 0.16);
  border-radius: 0.1rem;
  background: rgba(18, 14, 16, 0.88);
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.88rem;
  font-weight: 850;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  box-shadow: 3px 3px 0 rgba(40, 0, 6, 0.35);
  cursor: pointer;
  transition:
    color 0.15s ease,
    background 0.15s ease,
    border-color 0.15s ease,
    transform 0.12s ease,
    box-shadow 0.15s ease;
}

.wallet-statement-tab:nth-child(1) {
  transform: rotate(-1.2deg);
}

.wallet-statement-tab:nth-child(2) {
  transform: rotate(1deg);
}

.wallet-statement-tab:hover {
  border-color: rgba(220, 20, 38, 0.55);
  color: #fff;
}

.wallet-statement-tab.is-active {
  border-color: #ff1f33;
  background: linear-gradient(135deg, #ef1a30, #9a0012);
  color: #fff;
  box-shadow: 4px 4px 0 rgba(90, 0, 10, 0.55);
}

.wallet-statement-tab.is-active:nth-child(1),
.wallet-statement-tab.is-active:nth-child(2) {
  transform: rotate(0deg) translateY(-1px);
}

.wallet-statement-body {
  flex: 1;
  min-height: 0;
  overflow: auto;
  padding-right: 0.1rem;
  -webkit-overflow-scrolling: touch;
}

.wallet-statement-content {
  height: auto;
  min-height: 0;
  animation: wallet-panel-in 0.28s ease both;
}

@keyframes wallet-panel-in {
  from {
    opacity: 0;
    transform: translateY(0.45rem);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.wallet-statement-card {
  display: flex;
  min-height: min(22rem, calc(100dvh - 18rem));
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  padding: 2rem 1.35rem;
  border: 2px dashed rgba(220, 20, 38, 0.35);
  border-radius: 0.12rem;
  background:
    radial-gradient(ellipse 60% 50% at 50% 30%, rgba(220, 20, 38, 0.12), transparent 70%),
    rgba(12, 10, 12, 0.72);
  text-align: center;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.03);
}

.wallet-statement-card__icon {
  margin-bottom: 0.55rem;
  color: rgba(255, 31, 51, 0.72);
  font-size: 2.55rem;
  line-height: 1;
}

.wallet-statement-card__text {
  margin: 0;
  max-width: 16rem;
  color: rgba(255, 255, 255, 0.62);
  font-size: 0.95rem;
  font-weight: 650;
  line-height: 1.4;
}

.wallet-statement-card__cta {
  margin-top: 0.85rem;
  min-height: 2.4rem;
  padding: 0.45rem 1rem;
  border: 2px solid #ff1f33;
  background: #dc1426;
  color: #fff;
  font-size: 0.82rem;
  font-weight: 900;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  box-shadow: 3px 3px 0 rgba(90, 0, 10, 0.45);
  cursor: pointer;
}

.wallet-statement-card__cta:active {
  transform: translate(1px, 1px);
}

.wallet-statement-list {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  margin: 0;
  padding: 0 0 0.5rem;
  list-style: none;
}

.wallet-statement-entry {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 0.75rem;
  padding: 0.85rem 0.95rem;
  border: 2px solid rgba(255, 255, 255, 0.1);
  border-radius: 0.1rem;
  background:
    linear-gradient(135deg, rgba(22, 16, 18, 0.96), rgba(10, 10, 12, 0.94));
  box-shadow: 3px 3px 0 rgba(40, 0, 6, 0.35);
  transition: border-color 0.15s ease, transform 0.15s ease, box-shadow 0.15s ease;
}

.wallet-statement-entry:nth-child(odd) {
  transform: rotate(-0.35deg);
}

.wallet-statement-entry:nth-child(even) {
  transform: rotate(0.35deg);
}

.wallet-statement-entry:hover {
  border-color: rgba(220, 20, 38, 0.55);
  transform: rotate(0deg) translateY(-1px);
  box-shadow: 4px 4px 0 rgba(90, 0, 10, 0.45);
}

.wallet-statement-entry__mark {
  display: grid;
  place-items: center;
  width: 2.35rem;
  height: 2.35rem;
  flex-shrink: 0;
  border: 1.5px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.04);
  color: rgba(255, 255, 255, 0.72);
}

.wallet-statement-entry__mark .material-symbols-outlined {
  font-size: 1.2rem;
  line-height: 1;
}

.wallet-statement-entry--in .wallet-statement-entry__mark {
  border-color: rgba(80, 200, 120, 0.35);
  background: rgba(40, 140, 80, 0.14);
  color: #7dffb0;
}

.wallet-statement-entry--out .wallet-statement-entry__mark {
  border-color: rgba(220, 20, 38, 0.45);
  background: rgba(220, 20, 38, 0.14);
  color: #ff6b78;
}

.wallet-statement-entry__main {
  min-width: 0;
  text-align: left;
}

.wallet-statement-entry__label {
  margin: 0;
  color: #fff;
  font-size: 0.9rem;
  font-weight: 750;
  line-height: 1.3;
}

.wallet-statement-entry__date {
  margin: 0.28rem 0 0;
  color: rgba(255, 255, 255, 0.45);
  font-size: 0.74rem;
  font-weight: 550;
  line-height: 1.3;
  font-variant-numeric: tabular-nums;
}

.wallet-statement-entry__coins {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 3rem;
  padding: 0.35rem 0.55rem;
  border: 1.5px solid rgba(255, 255, 255, 0.12);
  background: rgba(0, 0, 0, 0.35);
  font-size: 0.92rem;
  font-weight: 900;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}

.wallet-statement-entry__coins--positive {
  border-color: rgba(80, 200, 120, 0.4);
  color: #7dffb0;
}

.wallet-statement-entry__coins--negative {
  border-color: rgba(220, 20, 38, 0.45);
  color: #ff6b78;
}

body.wallet-statement-open {
  overflow: hidden;
}

@media (max-width: 560px) {
  .wallet-statement-hero {
    flex-direction: column;
    align-items: stretch;
    transform: none;
  }

  .wallet-statement-hero__cta {
    width: 100%;
  }

  .wallet-statement__tape--a {
    top: 3.4rem;
    width: 6.5rem;
  }
}

@media (min-width: 900px) {
  .wallet-statement-panel {
    width: min(100%, 44rem);
    padding: 1.1rem 1.25rem 1.35rem;
  }

  .wallet-statement-entry {
    padding: 1rem 1.1rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .wallet-statement,
  .wallet-statement-content,
  .wallet-statement-entry {
    transition: none !important;
    animation: none !important;
  }
}
