.wallet-statement {
  --wallet-bg: none;
  position: fixed;
  inset: 0;
  z-index: 170;
  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);
  overflow: hidden;
  background: #09060a;
}

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

.wallet-statement__backdrop {
  position: absolute;
  inset: 0;
  background-image: var(--wallet-bg);
  background-size: cover;
  background-position: center top;
  background-repeat: no-repeat;
  transform: scale(1.04);
  filter: saturate(1.1) contrast(1.05);
  pointer-events: none;
}

.wallet-statement__veil {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(180deg, rgba(8, 4, 10, 0.45) 0%, rgba(8, 4, 10, 0.7) 38%, rgba(8, 4, 10, 0.94) 100%),
    radial-gradient(ellipse 70% 40% at 50% 0%, rgba(255, 77, 148, 0.24), transparent 62%);
}

.wallet-statement-panel {
  position: relative;
  z-index: 1;
  display: flex;
  height: 100%;
  width: 100%;
  max-width: none;
  flex-direction: column;
  margin: 0;
  padding: 0;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  border: 0 !important;
}

.wallet-statement-brand {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-shrink: 0;
  max-width: min(100%, 36rem);
  width: 100%;
  margin: 0.35rem auto 0.15rem;
  padding: 0.35rem 1.25rem 0.15rem;
  filter: drop-shadow(0 0.45rem 1.2rem rgba(0, 0, 0, 0.45));
}

.wallet-statement-header {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  flex-shrink: 0;
  max-width: min(100%, 36rem);
  width: 100%;
  margin: 0 auto;
  padding: 0.35rem 1.25rem 0.7rem;
  border: 0;
  background: none;
}

.wallet-statement-back {
  display: grid;
  width: 2.4rem;
  height: 2.4rem;
  flex-shrink: 0;
  place-items: center;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 77, 148, 0.18);
  color: #fff;
  box-shadow: 0 0.4rem 1rem rgba(0, 0, 0, 0.28);
  transition: background 0.16s ease, transform 0.16s ease;
}

.wallet-statement-back:hover {
  background: rgba(255, 77, 148, 0.32);
}

.wallet-statement-back:active {
  transform: scale(0.96);
}

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

.wallet-statement-title {
  margin: 0;
  font-size: 1.28rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.15;
  text-shadow: 0 2px 16px rgba(0, 0, 0, 0.45);
}

/* Tabs: underline, sem caixa */
.wallet-statement-tabs {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0;
  flex-shrink: 0;
  max-width: min(100%, 36rem);
  width: 100%;
  margin: 0 auto;
  padding: 0 1.25rem;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.wallet-statement-tab {
  position: relative;
  min-height: 2.55rem;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: rgba(255, 220, 232, 0.48);
  font-size: 0.92rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  line-height: 1;
  cursor: pointer;
  transition: color 0.18s ease;
}

.wallet-statement-tab::after {
  content: "";
  position: absolute;
  left: 12%;
  right: 12%;
  bottom: 0;
  height: 2px;
  border-radius: 999px;
  background: transparent;
  transition: background 0.18s ease, box-shadow 0.18s ease;
}

.wallet-statement-tab.is-active {
  color: #fff;
  background: transparent;
  box-shadow: none;
}

.wallet-statement-tab.is-active::after {
  background: linear-gradient(90deg, transparent, #ff4d94, transparent);
  box-shadow: 0 0 0.7rem rgba(255, 77, 148, 0.55);
}

.wallet-statement-body {
  flex: 1;
  min-height: 0;
  max-width: min(100%, 36rem);
  width: 100%;
  margin: 0 auto;
  padding: 1.15rem 1.25rem 1.5rem;
  overflow-y: auto;
}

.wallet-statement-content {
  height: 100%;
  min-height: 0;
}

/* Empty state — sem card */
.wallet-statement-card {
  display: flex;
  min-height: min(18rem, calc(100dvh - 14rem));
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 2rem 0.5rem;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  text-align: center;
}

.wallet-statement-card__icon {
  margin-bottom: 0.85rem;
  color: #ff8fb8;
  font-size: 2.4rem;
  line-height: 1;
  opacity: 0.9;
  filter: drop-shadow(0 0 0.7rem rgba(255, 77, 148, 0.4));
}

.wallet-statement-card__text {
  margin: 0;
  max-width: 20rem;
  color: rgba(255, 220, 232, 0.68);
  font-size: 0.96rem;
  font-weight: 500;
  line-height: 1.5;
}

.wallet-statement-card__cta {
  margin-top: 1.2rem;
  min-height: 2.6rem;
  padding: 0 1.4rem;
  border: 0;
  border-radius: 999px;
  background: linear-gradient(135deg, #ff7ab0, #e61e6e);
  color: #12060e;
  font-size: 0.9rem;
  font-weight: 800;
  line-height: 1.2;
  cursor: pointer;
  box-shadow: 0 0.45rem 1.2rem rgba(255, 77, 148, 0.35);
}

.wallet-statement-card__cta:active {
  transform: scale(0.98);
}

/* Timeline — sem caixas */
.wallet-statement-list {
  display: flex;
  flex-direction: column;
  gap: 0;
  margin: 0;
  padding: 0.25rem 0 1.5rem;
  list-style: none;
}

.wallet-statement-entry {
  position: relative;
  display: grid;
  grid-template-columns: 1.1rem minmax(0, 1fr) auto;
  gap: 0.85rem;
  align-items: start;
  padding: 0.95rem 0 1.05rem;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

.wallet-statement-entry:not(:last-child)::after {
  content: "";
  position: absolute;
  left: 0.42rem;
  top: 1.85rem;
  bottom: 0;
  width: 2px;
  background: linear-gradient(180deg, rgba(255, 77, 148, 0.55), rgba(255, 140, 180, 0.08));
  border-radius: 999px;
}

.wallet-statement-entry__dot {
  display: block;
  width: 0.72rem;
  height: 0.72rem;
  margin-top: 0.35rem;
  border-radius: 999px;
  background: linear-gradient(135deg, #ff8fb8, #ff4d94);
  box-shadow: 0 0 0.55rem rgba(255, 77, 148, 0.55);
  flex-shrink: 0;
}

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

.wallet-statement-entry__label {
  margin: 0;
  color: #fff;
  font-size: 0.94rem;
  font-weight: 700;
  line-height: 1.35;
}

.wallet-statement-entry__date {
  margin: 0.35rem 0 0;
  color: rgba(255, 210, 225, 0.48);
  font-size: 0.76rem;
  font-weight: 500;
  line-height: 1.3;
}

.wallet-statement-entry__coins {
  flex-shrink: 0;
  margin-top: 0.2rem;
  font-size: 1.05rem;
  font-weight: 800;
  line-height: 1;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.02em;
}

.wallet-statement-entry__coins--positive {
  color: #ff9ec0;
  text-shadow: 0 0 0.6rem rgba(255, 77, 148, 0.4);
}

.wallet-statement-entry__coins--negative {
  color: rgba(255, 240, 245, 0.9);
}

.wallet-statement-entry__coins-unit {
  display: block;
  margin-top: 0.2rem;
  color: rgba(255, 210, 225, 0.4);
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-align: right;
}

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

@media (prefers-reduced-motion: reduce) {
  .wallet-statement-tab::after {
    transition: none;
  }
}
