.wallet-statement {
  position: fixed;
  inset: 0;
  z-index: 170;
  display: flex;
  align-items: center;
  justify-content: center;
  padding:
    calc(env(safe-area-inset-top, 0px) + 2.1rem)
    0.85rem
    calc(env(safe-area-inset-bottom, 0px) + 0.85rem);
  color: #fff;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.26s ease, visibility 0.26s ease;
  overflow: hidden;
  background: #09060a;
}

.wallet-statement.is-open {
  opacity: 1;
  visibility: visible;
}

.wallet-statement__backdrop {
  position: absolute;
  inset: 0;
  overflow: hidden;
  background: #0c0c0e;
  pointer-events: none;
}

.wallet-statement__video {
  position: absolute;
  inset: -2%;
  width: 104%;
  height: 104%;
  object-fit: cover;
  object-position: center;
  filter: blur(6px) saturate(1.1) brightness(0.55);
}

.wallet-statement__veil {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse 80% 45% at 50% 0%, rgba(255, 122, 26, 0.28), transparent 65%),
    radial-gradient(ellipse 70% 40% at 50% 100%, rgba(255, 122, 26, 0.14), transparent 70%),
    linear-gradient(180deg, rgba(8, 5, 4, 0.55), rgba(8, 5, 4, 0.82));
}

/* Cartão furry */
.wallet-statement-bunny {
  position: relative;
  z-index: 1;
  display: flex;
  width: min(100%, 30rem);
  height: min(100%, 46rem);
  transform: translateY(1.4rem) scale(0.97);
  transition: transform 0.34s cubic-bezier(0.32, 0.72, 0, 1);
}

.wallet-statement.is-open .wallet-statement-bunny {
  transform: none;
}

.wallet-statement-ear {
  position: absolute;
  top: -1.35rem;
  z-index: 0;
  width: 1.55rem;
  height: 2.75rem;
  border-radius: 999px 999px 0.6rem 0.6rem;
  background: linear-gradient(180deg, #ff9a4a, #ff7a1a 55%, #e85f0a);
  box-shadow: 0 0 1.1rem rgba(255, 122, 26, 0.45);
}

.wallet-statement-ear::after {
  content: "";
  position: absolute;
  inset: 0.38rem 0.38rem 0.55rem;
  border-radius: 999px;
  background: #ffe0c2;
  opacity: 0.85;
}

.wallet-statement-ear--left {
  left: 22%;
  transform: rotate(-14deg);
  transform-origin: bottom center;
}

.wallet-statement-ear--right {
  right: 22%;
  transform: rotate(14deg);
  transform-origin: bottom center;
}

.wallet-statement.is-open .wallet-statement-ear--left {
  animation: wallet-ear-wiggle 3.8s ease-in-out infinite;
}

.wallet-statement.is-open .wallet-statement-ear--right {
  animation: wallet-ear-wiggle-r 3.8s ease-in-out 0.4s infinite;
}

@keyframes wallet-ear-wiggle {
  0%, 82%, 100% { transform: rotate(-14deg); }
  88% { transform: rotate(-22deg); }
  94% { transform: rotate(-10deg); }
}

@keyframes wallet-ear-wiggle-r {
  0%, 82%, 100% { transform: rotate(14deg); }
  88% { transform: rotate(22deg); }
  94% { transform: rotate(10deg); }
}

.wallet-statement-paw {
  position: absolute;
  z-index: 3;
  color: #ff7a1a;
  pointer-events: none;
  filter: drop-shadow(0 0 0.5rem rgba(255, 122, 26, 0.45));
}

.wallet-statement-paw--a {
  right: -0.45rem;
  bottom: 22%;
  font-size: 1.6rem;
  opacity: 0.8;
  transform: rotate(-24deg);
}

.wallet-statement-paw--b {
  left: -0.4rem;
  top: 30%;
  font-size: 1.15rem;
  opacity: 0.55;
  transform: rotate(18deg);
}

.wallet-statement-panel {
  position: relative;
  z-index: 1;
  display: flex;
  width: 100%;
  min-height: 0;
  flex-direction: column;
  gap: 0.85rem;
  padding: 0.95rem 1rem 0;
  border: 1.5px solid rgba(255, 138, 48, 0.55);
  border-radius: 1.75rem 1.75rem 1.35rem 1.35rem;
  background: linear-gradient(165deg, #1c1410, #120e0c 55%, #0c0a09);
  box-shadow:
    0 1.4rem 3rem rgba(0, 0, 0, 0.6),
    0 0 2.2rem rgba(255, 122, 26, 0.16),
    inset 0 1px 0 rgba(255, 190, 130, 0.12);
  overflow: hidden;
}

/* Header */
.wallet-statement-header {
  display: grid;
  grid-template-columns: 2.4rem minmax(0, 1fr) 2.4rem;
  align-items: center;
  gap: 0.5rem;
  flex-shrink: 0;
}

.wallet-statement-header__spacer {
  width: 2.4rem;
  height: 2.4rem;
}

.wallet-statement-brand {
  display: flex;
  justify-content: center;
  align-items: center;
  min-width: 0;
  filter: drop-shadow(0 0.35rem 1rem rgba(0, 0, 0, 0.45));
}

.wallet-statement-brand .site-brand-logo__img {
  width: 3.4rem;
  height: 3.4rem;
}

.wallet-statement-back {
  display: grid;
  width: 2.4rem;
  height: 2.4rem;
  place-items: center;
  border: 1px solid rgba(255, 138, 48, 0.4);
  border-radius: 999px;
  background: rgba(255, 122, 26, 0.12);
  color: #ffb070;
  cursor: pointer;
  transition: background 0.16s ease, transform 0.16s ease;
}

.wallet-statement-back:hover {
  background: rgba(255, 122, 26, 0.26);
  color: #fff;
}

.wallet-statement-back:active {
  transform: scale(0.94);
}

.wallet-statement-back .material-symbols-outlined {
  font-size: 1.4rem;
  line-height: 1;
}

.wallet-statement-heading {
  flex-shrink: 0;
  text-align: center;
}

.wallet-statement-kicker {
  display: inline-flex;
  margin: 0 0 0.3rem;
  padding: 0.22rem 0.7rem;
  border-radius: 999px;
  background: rgba(255, 122, 26, 0.14);
  color: #ffac5c;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.wallet-statement-title {
  margin: 0;
  color: #fff4ea;
  font-size: 1.35rem;
  font-weight: 900;
  letter-spacing: -0.02em;
  line-height: 1.15;
}

/* Saldo */
.wallet-statement-balance {
  position: relative;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 0.75rem;
  flex-shrink: 0;
  padding: 0.8rem 0.8rem 0.8rem 0.85rem;
  border: 1px solid rgba(255, 138, 48, 0.35);
  border-radius: 1.2rem;
  background:
    radial-gradient(circle at 12% 50%, rgba(255, 122, 26, 0.28), transparent 55%),
    linear-gradient(135deg, rgba(255, 122, 26, 0.14), rgba(255, 122, 26, 0.04));
  overflow: hidden;
}

.wallet-statement-balance::after {
  content: "pets";
  position: absolute;
  right: 6.5rem;
  bottom: -0.9rem;
  font-family: "Material Symbols Outlined";
  font-size: 3.6rem;
  line-height: 1;
  color: rgba(255, 122, 26, 0.08);
  transform: rotate(-18deg);
  pointer-events: none;
}

.wallet-statement-balance__coin {
  display: grid;
  width: 2.8rem;
  height: 2.8rem;
  place-items: center;
  border-radius: 999px;
  background: radial-gradient(circle at 35% 30%, #ffd9a8, #ff9a3a 45%, #e85f0a);
  color: #1a0e08;
  box-shadow:
    0 0 1rem rgba(255, 122, 26, 0.5),
    inset 0 -2px 0 rgba(0, 0, 0, 0.18);
}

.wallet-statement-balance__coin .material-symbols-outlined {
  font-size: 1.45rem;
  font-variation-settings: "FILL" 1;
}

.wallet-statement-balance__info {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 0.15rem;
}

.wallet-statement-balance__label {
  color: rgba(255, 214, 180, 0.7);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.wallet-statement-balance__value {
  display: flex;
  align-items: baseline;
  gap: 0.35rem;
  min-width: 0;
}

.wallet-statement-balance__value strong {
  color: #fff;
  font-size: 1.6rem;
  font-weight: 900;
  line-height: 1;
  letter-spacing: -0.03em;
  font-variant-numeric: tabular-nums;
}

.wallet-statement-balance__value small {
  color: #ffac5c;
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.wallet-statement-balance__cta {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  gap: 0.2rem;
  min-height: 2.4rem;
  padding: 0 0.95rem 0 0.7rem;
  border: 0;
  border-radius: 999px;
  background: linear-gradient(135deg, #ff9a3a, #ff7a1a 55%, #e85f0a);
  color: #1a0e08;
  font-size: 0.82rem;
  font-weight: 900;
  cursor: pointer;
  box-shadow: 0 0.4rem 1rem rgba(255, 122, 26, 0.4);
  transition: transform 0.14s ease, filter 0.14s ease;
}

.wallet-statement-balance__cta:hover {
  filter: brightness(1.07);
}

.wallet-statement-balance__cta:active {
  transform: scale(0.96);
}

.wallet-statement-balance__cta .material-symbols-outlined {
  font-size: 1.15rem;
}

/* Tabs em pílula */
.wallet-statement-tabs {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.3rem;
  flex-shrink: 0;
  padding: 0.3rem;
  border: 1px solid rgba(255, 138, 48, 0.25);
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.35);
}

.wallet-statement-tab {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  min-height: 2.4rem;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: rgba(255, 214, 180, 0.6);
  font-size: 0.88rem;
  font-weight: 800;
  line-height: 1;
  cursor: pointer;
  transition: background 0.18s ease, color 0.18s ease, box-shadow 0.18s ease;
}

.wallet-statement-tab .material-symbols-outlined {
  font-size: 1.1rem;
}

.wallet-statement-tab:hover:not(.is-active) {
  color: #fff;
  background: rgba(255, 122, 26, 0.1);
}

.wallet-statement-tab.is-active {
  background: linear-gradient(135deg, #ff9a3a, #ff7a1a 55%, #e85f0a);
  color: #1a0e08;
  box-shadow: 0 0.35rem 0.9rem rgba(255, 122, 26, 0.35);
}

.wallet-statement-tab.is-active .material-symbols-outlined {
  font-variation-settings: "FILL" 1;
}

/* Conteúdo */
.wallet-statement-body {
  flex: 1;
  min-height: 0;
  margin: 0 -1rem;
  padding: 0.1rem 1rem 1.1rem;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 122, 26, 0.45) transparent;
  -webkit-mask-image: linear-gradient(180deg, transparent 0, #000 0.6rem, #000 calc(100% - 1.2rem), transparent 100%);
  mask-image: linear-gradient(180deg, transparent 0, #000 0.6rem, #000 calc(100% - 1.2rem), transparent 100%);
}

.wallet-statement-content {
  min-height: 100%;
}

.wallet-statement-content[hidden] {
  display: none !important;
}

/* Estado vazio */
.wallet-statement-card {
  display: flex;
  min-height: 15rem;
  height: 100%;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 1.5rem 0.75rem;
  text-align: center;
}

.wallet-statement-card__icon {
  position: relative;
  display: grid;
  width: 4.4rem;
  height: 4.4rem;
  margin-bottom: 1rem;
  place-items: center;
  border: 1.5px dashed rgba(255, 138, 48, 0.5);
  border-radius: 999px;
  background: radial-gradient(circle, rgba(255, 122, 26, 0.2), rgba(255, 122, 26, 0.04) 70%);
  color: #ff9a4a;
  animation: wallet-empty-bob 2.8s ease-in-out infinite;
}

.wallet-statement-card__icon .material-symbols-outlined {
  font-size: 2.1rem;
  font-variation-settings: "FILL" 1;
}

@keyframes wallet-empty-bob {
  0%, 100% { transform: translateY(0) rotate(-6deg); }
  50% { transform: translateY(-0.3rem) rotate(6deg); }
}

.wallet-statement-card__text {
  margin: 0;
  max-width: 18rem;
  color: rgba(255, 224, 200, 0.72);
  font-size: 0.92rem;
  font-weight: 600;
  line-height: 1.5;
}

.wallet-statement-card__cta {
  margin-top: 1.1rem;
  min-height: 2.6rem;
  padding: 0 1.5rem;
  border: 0;
  border-radius: 999px;
  background: linear-gradient(135deg, #ff9a3a, #ff7a1a 55%, #e85f0a);
  color: #1a0e08;
  font-size: 0.9rem;
  font-weight: 900;
  cursor: pointer;
  box-shadow: 0 0.45rem 1.2rem rgba(255, 122, 26, 0.38);
}

.wallet-statement-card__cta:active {
  transform: scale(0.97);
}

/* Lista */
.wallet-statement-list {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  margin: 0;
  padding: 0.35rem 0 0;
  list-style: none;
}

.wallet-statement-entry {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 0.75rem;
  padding: 0.7rem 0.85rem 0.7rem 0.7rem;
  border: 1px solid rgba(255, 138, 48, 0.16);
  border-radius: 1.1rem;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.045), rgba(255, 255, 255, 0.015));
  opacity: 0;
  transform: translateY(0.4rem);
  transition: border-color 0.16s ease, background 0.16s ease;
}

.wallet-statement.is-open .wallet-statement-entry {
  animation: wallet-entry-in 0.32s ease forwards;
  animation-delay: var(--wallet-entry-delay, 0ms);
}

@keyframes wallet-entry-in {
  to {
    opacity: 1;
    transform: none;
  }
}

.wallet-statement-entry:hover {
  border-color: rgba(255, 138, 48, 0.4);
  background: linear-gradient(135deg, rgba(255, 122, 26, 0.1), rgba(255, 255, 255, 0.02));
}

.wallet-statement-entry__badge {
  display: grid;
  width: 2.5rem;
  height: 2.5rem;
  place-items: center;
  border-radius: 0.85rem;
  background: rgba(255, 255, 255, 0.06);
  color: rgba(255, 230, 210, 0.85);
}

.wallet-statement-entry__badge .material-symbols-outlined {
  font-size: 1.3rem;
  font-variation-settings: "FILL" 1;
}

.wallet-statement-entry.is-positive .wallet-statement-entry__badge {
  background: linear-gradient(135deg, #ff9a3a, #e85f0a);
  color: #1a0e08;
  box-shadow: 0 0 0.8rem rgba(255, 122, 26, 0.35);
}

.wallet-statement-entry__main {
  min-width: 0;
  text-align: left;
}

.wallet-statement-entry__label {
  margin: 0;
  overflow: hidden;
  color: #fff4ea;
  font-size: 0.9rem;
  font-weight: 800;
  line-height: 1.3;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.wallet-statement-entry__date {
  margin: 0.25rem 0 0;
  color: rgba(255, 214, 180, 0.48);
  font-size: 0.72rem;
  font-weight: 600;
  line-height: 1.3;
}

.wallet-statement-entry__amount {
  text-align: right;
}

.wallet-statement-entry__coins {
  display: inline-block;
  padding: 0.28rem 0.55rem;
  border-radius: 999px;
  font-size: 0.95rem;
  font-weight: 900;
  line-height: 1;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.02em;
}

.wallet-statement-entry__coins--positive {
  background: rgba(255, 122, 26, 0.16);
  color: #ffb86c;
}

.wallet-statement-entry__coins--negative {
  background: rgba(255, 255, 255, 0.06);
  color: rgba(255, 240, 230, 0.88);
}

.wallet-statement-entry__coins-unit {
  display: block;
  margin-top: 0.25rem;
  color: rgba(255, 214, 180, 0.4);
  font-size: 0.6rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

body.wallet-statement-open {
  overflow: hidden;
}

@media (max-width: 380px) {
  .wallet-statement-balance {
    grid-template-columns: auto minmax(0, 1fr);
  }

  .wallet-statement-balance__cta {
    grid-column: 1 / -1;
    justify-content: center;
  }

  .wallet-statement-balance::after {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .wallet-statement-bunny,
  .wallet-statement-ear,
  .wallet-statement-card__icon,
  .wallet-statement-entry {
    animation: none !important;
    transition: none !important;
  }

  .wallet-statement-entry {
    opacity: 1;
    transform: none;
  }
}
