.wallet-statement {
  position: fixed;
  inset: 0;
  z-index: 170;
  background:
    radial-gradient(ellipse 55% 35% at 50% 0%, rgba(232, 37, 58, 0.12), transparent 55%),
    #000;
  color: #fff;
  transform: translateX(100%);
  visibility: hidden;
  transition: transform 0.28s cubic-bezier(0.32, 0.72, 0, 1), visibility 0.28s 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-panel {
  display: flex;
  height: 100%;
  width: 100%;
  max-width: min(100%, 48rem);
  flex-direction: column;
  margin: 0 auto;
  padding: 0 1.15rem;
}

.wallet-statement-header {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  padding: 0.9rem 0.1rem 0.95rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  margin-bottom: 0.85rem;
}

.wallet-statement-back {
  display: grid;
  width: 2.35rem;
  height: 2.35rem;
  flex-shrink: 0;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 0.35rem;
  background: #0a0a0a;
  color: #fff;
  transition: background 0.16s ease, border-color 0.16s ease, transform 0.16s ease;
}

.wallet-statement-back:hover {
  border-color: rgba(232, 37, 58, 0.45);
  background: rgba(232, 37, 58, 0.12);
}

.wallet-statement-back:active {
  transform: scale(0.96);
}

.wallet-statement-back .material-symbols-outlined {
  font-size: 1.4rem;
  line-height: 1;
}

.wallet-statement-title {
  margin: 0;
  font-size: 1.2rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.15;
}

.wallet-statement-tabs {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.35rem;
  max-width: 22rem;
  padding: 0.28rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 0.4rem;
  background: #0a0a0a;
}

.wallet-statement-tab {
  min-height: 2.35rem;
  border: 0;
  border-radius: 0.3rem;
  background: transparent;
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.88rem;
  font-weight: 700;
  line-height: 1;
  transition: color 0.18s ease, background 0.18s ease;
}

.wallet-statement-tab.is-active {
  background: #e8253a;
  color: #fff;
  box-shadow: none;
}

.wallet-statement-body {
  flex: 1;
  min-height: 0;
  padding-top: 0.95rem;
  overflow-y: auto;
}

.wallet-statement-content {
  height: 100%;
  min-height: 0;
}

.wallet-statement-card {
  display: flex;
  min-height: min(20rem, calc(100dvh - 12rem));
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 2rem 1.25rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-left: 3px solid #e8253a;
  border-radius: 0.45rem;
  background: #0a0a0a;
  text-align: center;
}

.wallet-statement-card__icon {
  margin-bottom: 0.75rem;
  color: #e8253a;
  font-size: 2.1rem;
  line-height: 1;
}

.wallet-statement-card__text {
  margin: 0;
  max-width: 22rem;
  color: rgba(255, 255, 255, 0.55);
  font-size: 0.92rem;
  font-weight: 500;
  line-height: 1.45;
}

.wallet-statement-card__cta {
  margin-top: 1rem;
  min-height: 2.45rem;
  padding: 0 1.2rem;
  border: 0;
  border-radius: 0.35rem;
  background: #e8253a;
  color: #fff;
  font-size: 0.88rem;
  font-weight: 800;
  line-height: 1.2;
}

.wallet-statement-card__cta:active {
  filter: brightness(1.06);
}

.wallet-statement-list {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  margin: 0;
  padding: 0 0 1.25rem;
  list-style: none;
}

.wallet-statement-entry {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.85rem;
  padding: 0.95rem 1rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 0.4rem;
  background: #0a0a0a;
}

.wallet-statement-entry__main {
  min-width: 0;
  text-align: left;
}

.wallet-statement-entry__label {
  margin: 0;
  color: #fff;
  font-size: 0.9rem;
  font-weight: 700;
  line-height: 1.3;
}

.wallet-statement-entry__date {
  margin: 0.28rem 0 0;
  color: rgba(255, 255, 255, 0.42);
  font-size: 0.76rem;
  font-weight: 500;
  line-height: 1.3;
}

.wallet-statement-entry__coins {
  flex-shrink: 0;
  font-size: 0.95rem;
  font-weight: 800;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}

.wallet-statement-entry__coins--positive {
  color: #ff9aa4;
}

.wallet-statement-entry__coins--negative {
  color: rgba(255, 255, 255, 0.85);
}

body.wallet-statement-open {
  overflow: hidden;
}

@media (min-width: 720px) {
  .wallet-statement-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.55rem;
  }
}
