/* Saga Member V88 — Home Points Pocket */
.v88-wallet-balance {
  box-sizing: border-box;
  width: fit-content;
  min-width: 138px;
  min-height: 88px;
  padding: 4px 36px 4px 0;
  border: 0;
  border-radius: 15px;
  background: transparent;
  color: inherit;
  font: inherit;
  text-align: left;
  cursor: pointer;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
  transition: opacity 120ms ease-out, transform 120ms ease-out;
}

.v88-wallet-balance small {
  display: inline-flex;
  align-items: center;
  gap: 3px;
}

.v88-wallet-balance small i,
.v88-wallet-balance small .feather-icon { display: inline-grid; flex: 0 0 auto; }
.v88-wallet-balance:hover { opacity: 0.88; }
.v88-wallet-balance:active { transform: translateY(1px); }
.v88-wallet-balance:focus-visible { outline: 3px solid #bff45f; outline-offset: 4px; }

.v88-points-pocket-dialog {
  width: min(420px, calc(100% - 16px));
  max-width: none;
  max-height: calc(100dvh - max(16px, env(safe-area-inset-top)) - max(8px, env(safe-area-inset-bottom)));
  margin: auto auto max(8px, env(safe-area-inset-bottom));
  padding: 0;
  overflow: visible;
  border: 0;
  border-radius: 28px;
  background: transparent;
  color: #211915;
}

.v88-points-pocket-dialog::backdrop { background: rgb(27 20 17 / 68%); }

.v88-points-pocket-panel {
  position: relative;
  box-sizing: border-box;
  display: grid;
  max-height: inherit;
  padding: 16px 18px calc(18px + env(safe-area-inset-bottom));
  overflow: auto;
  gap: 14px;
  border: 1px solid rgb(104 70 50 / 15%);
  border-radius: inherit;
  background:
    radial-gradient(circle at 91% 13%, rgb(194 239 96 / 32%) 0 54px, transparent 55px),
    #fffaf1;
  box-shadow: 0 28px 72px rgb(26 18 15 / 34%);
  overscroll-behavior: contain;
}

.v88-points-pocket-panel::before {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background-image: radial-gradient(rgb(93 61 45 / 10%) 0.7px, transparent 0.8px);
  background-size: 9px 9px;
  content: "";
  opacity: 0.22;
  pointer-events: none;
}

.v88-points-pocket-panel > * { position: relative; }
.v88-points-pocket-handle { width: 42px; height: 4px; margin: 0 auto 1px; border-radius: 999px; background: rgb(33 25 21 / 19%); }
.v88-points-pocket-close { position: absolute; top: 13px; right: 13px; width: 44px; height: 44px; }
.v88-points-pocket-heading { display: grid; gap: 6px; padding-right: 50px; }
.v88-points-pocket-heading .eyebrow { margin: 0; color: #8d482c; }
.v88-points-pocket-heading h2 { max-width: 13ch; margin: 0; font-size: clamp(1.65rem, 8vw, 2.05rem); line-height: 1.04; text-wrap: balance; }
.v88-points-pocket-heading h2:focus { outline: none; }
.v88-points-pocket-heading p { margin: 0; color: #6d5f57; font-size: 0.82rem; line-height: 1.5; text-wrap: pretty; }

.v88-points-pocket-balance {
  display: grid;
  min-height: 112px;
  align-content: center;
  padding: 16px;
  overflow: hidden;
  border-radius: 21px;
  background: #2c1c17;
  color: #fffaf1;
  box-shadow: 0 14px 30px rgb(44 28 23 / 18%);
}

.v88-points-pocket-balance::after {
  position: absolute;
  width: 82px;
  height: 82px;
  right: -25px;
  bottom: -30px;
  border: 1px solid rgb(194 239 96 / 42%);
  border-radius: 50%;
  box-shadow: 0 0 0 18px rgb(194 239 96 / 7%), 0 0 0 36px rgb(194 239 96 / 5%);
  content: "";
}

.v88-points-pocket-balance span { color: rgb(255 250 241 / 66%); font-size: 0.72rem; font-weight: 650; }
.v88-points-pocket-balance strong { margin: 2px 0; color: #c2ef60; font-size: clamp(2.65rem, 13vw, 3.35rem); line-height: 0.96; }
.v88-points-pocket-balance small { color: rgb(255 250 241 / 78%); font-size: 0.75rem; }

.v88-points-pocket-facts { display: grid; margin: 0; gap: 8px; }
.v88-points-pocket-facts > div {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  padding: 13px 14px;
  gap: 5px 12px;
  border: 1px solid rgb(104 70 50 / 13%);
  border-radius: 17px;
  background: rgb(255 255 255 / 58%);
}

.v88-points-pocket-facts dt { grid-column: 1 / -1; display: flex; align-items: center; gap: 7px; color: #745c50; font-size: 0.7rem; font-weight: 700; }
.v88-points-pocket-facts dd { display: grid; min-width: 0; margin: 0; gap: 3px; }
.v88-points-pocket-facts dd strong { font-size: 0.88rem; line-height: 1.28; overflow-wrap: anywhere; }
.v88-points-pocket-facts dd span { color: #6d5f57; font-size: 0.72rem; line-height: 1.4; overflow-wrap: anywhere; }
.v88-points-pocket-facts dd em { grid-column: 2; grid-row: 1 / span 2; align-self: center; color: #2d5a35; font-size: 1rem; font-style: normal; font-weight: 800; white-space: nowrap; }

.v88-points-pocket-demo { display: flex; margin: 0; align-items: flex-start; gap: 8px; color: #6d5f57; font-size: 0.71rem; line-height: 1.45; }
.v88-points-pocket-demo span { flex: 0 0 auto; padding: 3px 6px; border: 1px solid #9f5c3d; border-radius: 6px; color: #8d482c; font-size: 0.58rem; font-weight: 850; line-height: 1; }
.v88-points-pocket-actions { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 0.8fr); gap: 8px; }
.v88-points-pocket-actions .button { min-width: 0; min-height: 48px; padding-inline: 10px; white-space: normal; }

@media (max-width: 340px), (max-height: 650px) {
  .v88-points-pocket-panel { padding-inline: 15px; gap: 11px; }
  .v88-points-pocket-balance { min-height: 92px; }
  .v88-points-pocket-actions { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  .v88-wallet-balance { transition: none; }
}

@media (forced-colors: active) {
  .v88-wallet-balance,
  .v88-points-pocket-panel,
  .v88-points-pocket-balance,
  .v88-points-pocket-facts > div,
  .v88-points-pocket-demo span {
    border: 1px solid CanvasText;
    background: Canvas;
    color: CanvasText;
    box-shadow: none;
  }
  .v88-points-pocket-dialog::backdrop { background: rgb(0 0 0 / 70%); }
}
