/**
 * Wallet hub — ember/wisp identity, pack shop, dual send.
 */

body.hw-wallet-page {
  overflow-x: clip;
  background:
    radial-gradient(ellipse 70% 45% at 12% 0%, rgba(184, 92, 58, 0.12), transparent 55%),
    radial-gradient(ellipse 55% 40% at 90% 8%, rgba(90, 120, 140, 0.08), transparent 50%),
    var(--hw-fe-canvas, var(--hw-fe-bg, #f7f3ed));
  color: var(--hw-fe-text, #211b16);
}

body.hw-wallet-page .site,
body.hw-wallet-page #wrapper,
body.hw-wallet-page .site-content,
body.hw-wallet-page #content,
body.hw-wallet-page .content-bg,
body.hw-wallet-page .entry-content,
body.hw-wallet-page .entry-content-wrap,
body.hw-wallet-page article.page {
  background: transparent !important;
  box-shadow: none !important;
}

.hw-wallet {
  --hw-wallet-ink: var(--hw-fe-text, #211b16);
  --hw-wallet-soft: var(--hw-fe-text-soft, #5c564e);
  --hw-wallet-muted: var(--hw-fe-muted, #8a8379);
  --hw-wallet-line: var(--hw-fe-border, #e4ded4);
  --hw-wallet-panel: var(--hw-fe-elevated, #fcfaf7);
  --hw-wallet-flame: var(--hw-fe-accent, #b85c3a);
  --hw-wallet-ember-deep: #6e2f1c;
  --hw-wallet-wisp: #5a7a8c;
  box-sizing: border-box;
  width: min(1120px, calc(100% - 2rem));
  max-width: 100%;
  min-width: 0;
  margin: 0 auto;
  padding: calc(var(--hw-global-nav-h, 68px) + 1.75rem) 0 3.5rem;
  color: var(--hw-wallet-ink);
  font-family: var(--hw-fe-font-ui, "DM Sans", system-ui, sans-serif);
}

.hw-wallet__eyebrow {
  margin: 0 0 0.35rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--hw-wallet-flame);
}

.hw-wallet__title {
  margin: 0 0 0.4rem;
  font-family: var(--hw-fe-font-display, "Playfair Display", Georgia, serif);
  font-size: clamp(2rem, 4vw, 2.75rem);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.1;
}

.hw-wallet__lead,
.hw-wallet__hint,
.hw-wallet__panel-head p {
  margin: 0;
  color: var(--hw-wallet-soft);
  line-height: 1.55;
  max-width: 40rem;
}

.hw-wallet__banner {
  margin: 1rem 0 0;
  padding: 0.8rem 1rem;
  border-radius: 12px;
  border: 1px solid var(--hw-wallet-line);
  background: var(--hw-wallet-panel);
}

.hw-wallet__banner--ok {
  border-color: color-mix(in srgb, var(--hw-wallet-flame) 40%, var(--hw-wallet-line));
  background: color-mix(in srgb, var(--hw-wallet-flame) 8%, var(--hw-wallet-panel));
}

.hw-wallet__layout {
  display: grid;
  grid-template-columns: minmax(180px, 220px) minmax(0, 1fr);
  gap: 1.35rem;
  align-items: start;
  margin-top: 1.75rem;
}

.hw-wallet__rail {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  position: sticky;
  top: calc(var(--hw-global-nav-h, 68px) + 1rem);
}

.hw-wallet__rail-link {
  display: block;
  padding: 0.6rem 0.85rem;
  border-radius: 12px;
  color: var(--hw-wallet-soft);
  text-decoration: none;
  border: 1px solid transparent;
  font-size: 0.92rem;
  transition: background 0.18s ease, border-color 0.18s ease, color 0.18s ease;
}

.hw-wallet__rail-link:hover,
.hw-wallet__rail-link.is-active {
  color: var(--hw-wallet-ink);
  background: var(--hw-wallet-panel);
  border-color: var(--hw-wallet-line);
}

.hw-wallet__panel-head {
  margin-bottom: 1.15rem;
}

.hw-wallet__panel-head h2 {
  margin: 0 0 0.35rem;
  font-family: var(--hw-fe-font-display, "Playfair Display", Georgia, serif);
  font-size: clamp(1.35rem, 2.2vw, 1.65rem);
  font-weight: 600;
}

/* —— Coin balances —— */
.hw-wallet__balance-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.hw-wallet__coin {
  position: relative;
  overflow: hidden;
  padding: 1.5rem 1.45rem 1.4rem;
  border-radius: 22px;
  border: 1px solid transparent;
  min-height: 17.5rem;
  display: flex;
  flex-direction: column;
  isolation: isolate;
  box-shadow: 0 18px 40px rgba(33, 27, 22, 0.12);
  transform: translateZ(0);
  transition: transform 0.28s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.28s ease;
}

.hw-wallet__coin:hover {
  transform: translateY(-4px);
  box-shadow: 0 24px 48px rgba(33, 27, 22, 0.16);
}

.hw-wallet__coin-wash {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  opacity: 1;
}

.hw-wallet__coin--embers {
  border-color: color-mix(in srgb, #5a2414 55%, #b85c3a);
  background:
    linear-gradient(155deg, #5f2716 0%, #8f3d24 34%, #b85c3a 68%, #d08a5a 100%);
  color: #fff6ee;
}

.hw-wallet__coin--embers .hw-wallet__coin-wash {
  background:
    radial-gradient(120% 80% at 88% -10%, rgba(255, 214, 170, 0.38), transparent 48%),
    radial-gradient(90% 70% at -5% 100%, rgba(80, 28, 14, 0.55), transparent 55%),
    repeating-linear-gradient(
      -18deg,
      transparent 0 10px,
      rgba(255, 248, 240, 0.03) 10px 11px
    );
  animation: hw-wallet-coin-shift 7s ease-in-out infinite alternate;
}

.hw-wallet__coin--wisps {
  border-color: color-mix(in srgb, #243944 50%, #5a7a8c);
  background:
    linear-gradient(155deg, #1d2f38 0%, #355564 38%, #5a7a8c 72%, #7f9eae 100%);
  color: #f2f7f9;
}

.hw-wallet__coin--wisps .hw-wallet__coin-wash {
  background:
    radial-gradient(110% 75% at 12% -8%, rgba(210, 232, 242, 0.32), transparent 50%),
    radial-gradient(80% 60% at 100% 100%, rgba(18, 36, 46, 0.5), transparent 55%),
    repeating-linear-gradient(
      22deg,
      transparent 0 11px,
      rgba(255, 255, 255, 0.03) 11px 12px
    );
  animation: hw-wallet-coin-shift 8s ease-in-out infinite alternate-reverse;
}

@keyframes hw-wallet-coin-shift {
  from {
    transform: scale(1) translate3d(0, 0, 0);
  }
  to {
    transform: scale(1.04) translate3d(-1.5%, 1%, 0);
  }
}

.hw-wallet__coin-top {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 0.75rem;
  position: relative;
  z-index: 1;
}

.hw-wallet__coin-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 3.35rem;
  height: 3.35rem;
  border-radius: 16px;
  border: 1px solid rgba(255, 248, 240, 0.28);
  background: rgba(255, 248, 240, 0.14);
  backdrop-filter: blur(6px);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.22);
}

.hw-wallet__glyph-svg,
.hw-wallet__coin-icon svg,
.hw-wallet__pack-icon svg,
.hw-wallet__currency-card-icon svg {
  width: 1.55rem;
  height: 1.55rem;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.hw-wallet__coin--embers .hw-wallet__coin-icon,
.hw-wallet__coin--wisps .hw-wallet__coin-icon {
  color: #fff8f2;
}

.hw-wallet__coin-label {
  position: relative;
  z-index: 1;
  margin: 1.15rem 0 0.2rem;
  font-family: var(--hw-fe-font-display, "Playfair Display", Georgia, serif);
  font-size: clamp(1.85rem, 3.4vw, 2.45rem);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.05;
  color: inherit;
  text-shadow: 0 1px 0 rgba(0, 0, 0, 0.12);
}

.hw-wallet__coin-value {
  position: relative;
  z-index: 1;
  margin: 0;
  font-family: var(--hw-fe-font-display, "Playfair Display", Georgia, serif);
  font-size: clamp(2.8rem, 5.2vw, 3.6rem);
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.03em;
  line-height: 1;
  color: #fff;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.18);
}

.hw-wallet__coin-blurb {
  position: relative;
  z-index: 1;
  margin: 0.85rem 0 1.1rem;
  font-size: 0.9rem;
  line-height: 1.45;
  color: rgba(255, 248, 240, 0.86);
  max-width: 28ch;
}

.hw-wallet__coin .hw-wallet__btn {
  position: relative;
  z-index: 1;
  margin-top: auto;
  align-self: flex-start;
}

.hw-wallet__coin--embers .hw-wallet__btn--ember {
  background: #fff6ee;
  color: #6e2f1c;
  box-shadow: 0 10px 22px rgba(48, 20, 10, 0.22);
}

.hw-wallet__coin--embers .hw-wallet__btn--ember:hover {
  filter: brightness(1.04);
  color: #5a2414;
}

.hw-wallet__coin--wisps .hw-wallet__btn--wisp {
  background: #f2f7f9;
  color: #243944;
  box-shadow: 0 10px 22px rgba(16, 28, 36, 0.22);
}

.hw-wallet__coin--wisps .hw-wallet__btn--wisp:hover {
  filter: brightness(1.04);
  color: #1a2b34;
}

.hw-wallet__hint {
  margin: 0 0 1rem;
  padding: 0.75rem 0.95rem;
  border-radius: 12px;
  border: 1px solid var(--hw-wallet-line);
  background: color-mix(in srgb, var(--hw-wallet-flame) 6%, var(--hw-wallet-panel));
  color: var(--hw-wallet-soft);
  line-height: 1.45;
  max-width: 40rem;
}

.hw-wallet__hint--ok {
  color: #2f6b46;
  border-color: color-mix(in srgb, #2f6b46 28%, var(--hw-wallet-line));
  background: color-mix(in srgb, #2f6b46 8%, var(--hw-wallet-panel));
}

.hw-wallet__btn,
.hw-wallet__cta {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  padding: 0.62rem 1.15rem;
  border-radius: 999px;
  border: 1px solid transparent;
  font: inherit;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.15s ease, box-shadow 0.15s ease, opacity 0.15s ease;
}

.hw-wallet__btn:hover:not(:disabled),
.hw-wallet__cta:hover {
  transform: translateY(-1px);
}

.hw-wallet__btn--primary,
.hw-wallet__cta,
.hw-wallet__btn--ember {
  background: linear-gradient(135deg, var(--hw-wallet-ember-deep), var(--hw-wallet-flame));
  color: #fff8f2;
  box-shadow: 0 8px 20px rgba(184, 92, 58, 0.28);
}

.hw-wallet__btn--wisp {
  background: linear-gradient(135deg, #3d5a68, var(--hw-wallet-wisp));
  color: #f4f8fa;
  box-shadow: 0 8px 20px rgba(90, 122, 140, 0.28);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.hw-wallet__btn--wisp:hover,
.hw-wallet__btn--wisp:focus-visible {
  filter: brightness(1.06);
  color: #f4f8fa;
}

.hw-wallet__btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
}

/* —— Packs —— */
.hw-wallet__pack-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
}

.hw-wallet__pack {
  --hw-pack-i: 1;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.35rem;
  padding: 1.35rem 1.25rem 1.35rem;
  border-radius: 18px;
  border: 1px solid var(--hw-wallet-line);
  background:
    radial-gradient(120% 80% at 12% -10%, color-mix(in srgb, var(--hw-wallet-flame) 18%, transparent), transparent 55%),
    linear-gradient(165deg, color-mix(in srgb, var(--hw-wallet-flame) 7%, #fff) 0%, var(--hw-wallet-panel) 42%),
    var(--hw-wallet-panel);
  box-shadow: 0 10px 28px rgba(33, 27, 22, 0.05);
  overflow: hidden;
  isolation: isolate;
  transform: translateY(0) scale(1);
  transition:
    transform 0.28s cubic-bezier(0.22, 1, 0.36, 1),
    box-shadow 0.28s ease,
    border-color 0.2s ease;
  animation: hw-wallet-pack-in 0.55s cubic-bezier(0.22, 1, 0.36, 1) both;
  animation-delay: calc(var(--hw-pack-i) * 70ms);
}

.hw-wallet__pack:hover {
  transform: translateY(-6px) scale(1.015);
  border-color: color-mix(in srgb, var(--hw-wallet-flame) 42%, var(--hw-wallet-line));
  box-shadow: 0 18px 40px rgba(184, 92, 58, 0.18);
}

.hw-wallet__pack--featured {
  border-color: color-mix(in srgb, var(--hw-wallet-flame) 45%, var(--hw-wallet-line));
  box-shadow: 0 14px 36px rgba(184, 92, 58, 0.16);
}

.hw-wallet__pack--featured::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(
    110deg,
    transparent 35%,
    color-mix(in srgb, #fff 35%, transparent) 48%,
    transparent 62%
  );
  transform: translateX(-120%);
  animation: hw-wallet-pack-sheen 4.8s ease-in-out infinite;
}

.hw-wallet__pack-badge {
  position: absolute;
  top: 0.85rem;
  right: 0.85rem;
  z-index: 2;
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #fff;
  background: var(--hw-wallet-flame);
}

.hw-wallet__pack-icon {
  position: relative;
  color: var(--hw-wallet-flame);
  margin-bottom: 0.45rem;
  width: 2.5rem;
  height: 2.5rem;
  display: grid;
  place-items: center;
}

.hw-wallet__pack-embers-burst {
  position: absolute;
  inset: -0.35rem;
  border-radius: 50%;
  background: radial-gradient(circle, color-mix(in srgb, var(--hw-wallet-flame) 42%, transparent), transparent 70%);
  opacity: 0.55;
  animation: hw-wallet-ember-pulse 2.4s ease-in-out infinite;
}

.hw-wallet__pack:hover .hw-wallet__pack-icon {
  animation: hw-wallet-ember-flicker 0.9s ease-in-out infinite;
}

.hw-wallet__pack-tier {
  margin: 0;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--hw-wallet-muted);
}

.hw-wallet__pack-embers {
  margin: 0.1rem 0 0;
  font-family: var(--hw-fe-font-display, "Playfair Display", Georgia, serif);
  font-size: 2.15rem;
  font-weight: 600;
  line-height: 1;
  color: var(--hw-wallet-ember-deep);
}

.hw-wallet__pack-embers small {
  display: inline;
  margin-left: 0.35rem;
  font-family: var(--hw-fe-font-ui, "DM Sans", system-ui, sans-serif);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--hw-wallet-soft);
  vertical-align: 0.35em;
}

.hw-wallet__pack-price {
  margin: 0.2rem 0 0.85rem;
  font-size: 1rem;
  font-weight: 600;
  color: var(--hw-wallet-soft);
}

.hw-wallet__pack .hw-wallet__btn {
  margin-top: auto;
  width: 100%;
  transition: transform 0.18s ease, filter 0.18s ease;
}

.hw-wallet__pack .hw-wallet__btn:hover:not(:disabled) {
  transform: translateY(-1px);
  filter: brightness(1.05);
}

@keyframes hw-wallet-pack-in {
  from {
    opacity: 0;
    transform: translateY(14px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes hw-wallet-pack-sheen {
  0%,
  55% {
    transform: translateX(-120%);
  }
  75%,
  100% {
    transform: translateX(120%);
  }
}

@keyframes hw-wallet-ember-pulse {
  0%,
  100% {
    opacity: 0.35;
    transform: scale(0.92);
  }
  50% {
    opacity: 0.75;
    transform: scale(1.08);
  }
}

@keyframes hw-wallet-ember-flicker {
  0%,
  100% {
    transform: translateY(0) scale(1);
    filter: brightness(1);
  }
  40% {
    transform: translateY(-1px) scale(1.04);
    filter: brightness(1.12);
  }
  70% {
    transform: translateY(0.5px) scale(0.98);
    filter: brightness(0.96);
  }
}

/* —— Transfer —— */
.hw-wallet__transfer {
  max-width: 34rem;
  padding: 1.35rem 1.3rem 1.4rem;
  border-radius: 18px;
  border: 1px solid var(--hw-wallet-line);
  background:
    radial-gradient(90% 60% at 0% 0%, color-mix(in srgb, var(--hw-wallet-flame) 12%, transparent), transparent 55%),
    var(--hw-wallet-panel);
  box-shadow: 0 14px 36px rgba(33, 27, 22, 0.06);
  transition: background 0.35s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.hw-wallet__transfer[data-currency="wisps"] {
  background:
    radial-gradient(90% 60% at 100% 0%, color-mix(in srgb, var(--hw-wallet-wisp) 16%, transparent), transparent 55%),
    var(--hw-wallet-panel);
  border-color: color-mix(in srgb, var(--hw-wallet-wisp) 28%, var(--hw-wallet-line));
}

.hw-wallet__transfer[data-currency="embers"] {
  border-color: color-mix(in srgb, var(--hw-wallet-flame) 28%, var(--hw-wallet-line));
}

.hw-wallet__label {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  margin-bottom: 0.85rem;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--hw-wallet-soft);
}

.hw-wallet__label input {
  padding: 0.65rem 0.8rem;
  border-radius: 12px;
  border: 1px solid var(--hw-wallet-line);
  background: #fff;
  font: inherit;
  font-weight: 500;
  color: var(--hw-wallet-ink);
}

.hw-wallet__lookup {
  margin-bottom: 1rem;
}

.hw-wallet__lookup .hw-embers-wallet__recipient {
  border-color: color-mix(in srgb, var(--hw-wallet-flame) 25%, var(--hw-wallet-line));
  background: color-mix(in srgb, var(--hw-wallet-flame) 6%, #fff);
}

.hw-wallet__lookup .hw-embers-wallet__recipient-meta strong {
  color: var(--hw-wallet-ink);
}

.hw-wallet__lookup .hw-embers-wallet__recipient-meta span,
.hw-wallet__lookup .hw-embers-wallet__recipient-meta small {
  color: var(--hw-wallet-muted);
}

.hw-wallet__currency-pick {
  border: 0;
  margin: 0 0 1rem;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.65rem;
}

.hw-wallet__currency-pick legend {
  margin-bottom: 0.5rem;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--hw-wallet-soft);
}

.hw-wallet__currency-opt {
  cursor: pointer;
}

.hw-wallet__currency-opt input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.hw-wallet__currency-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  padding: 0.95rem 0.95rem 1rem;
  border-radius: 14px;
  border: 1px solid var(--hw-wallet-line);
  background: #fff;
  overflow: hidden;
  transition:
    border-color 0.2s ease,
    box-shadow 0.25s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.25s cubic-bezier(0.22, 1, 0.36, 1),
    background 0.25s ease;
}

.hw-wallet__currency-card-glow {
  position: absolute;
  inset: auto -20% -40% -20%;
  height: 70%;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.25s ease;
}

.hw-wallet__currency-opt--embers .hw-wallet__currency-card-glow {
  background: radial-gradient(circle at 50% 100%, color-mix(in srgb, var(--hw-wallet-flame) 45%, transparent), transparent 70%);
}

.hw-wallet__currency-opt--wisps .hw-wallet__currency-card-glow {
  background: radial-gradient(circle at 50% 100%, color-mix(in srgb, var(--hw-wallet-wisp) 45%, transparent), transparent 70%);
}

.hw-wallet__currency-opt input:checked + .hw-wallet__currency-card {
  transform: translateY(-2px);
}

.hw-wallet__currency-opt--embers input:checked + .hw-wallet__currency-card {
  border-color: color-mix(in srgb, var(--hw-wallet-flame) 55%, var(--hw-wallet-line));
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--hw-wallet-flame) 18%, transparent);
  background: color-mix(in srgb, var(--hw-wallet-flame) 6%, #fff);
}

.hw-wallet__currency-opt--wisps input:checked + .hw-wallet__currency-card {
  border-color: color-mix(in srgb, var(--hw-wallet-wisp) 55%, var(--hw-wallet-line));
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--hw-wallet-wisp) 18%, transparent);
  background: color-mix(in srgb, var(--hw-wallet-wisp) 7%, #fff);
}

.hw-wallet__currency-opt input:checked + .hw-wallet__currency-card .hw-wallet__currency-card-glow {
  opacity: 1;
  animation: hw-wallet-currency-glow 2.2s ease-in-out infinite;
}

.hw-wallet__currency-card-icon {
  color: var(--hw-wallet-flame);
  margin-bottom: 0.25rem;
  width: 1.65rem;
  height: 1.65rem;
  transition: transform 0.25s ease;
}

.hw-wallet__currency-opt--wisps .hw-wallet__currency-card-icon {
  color: var(--hw-wallet-wisp);
}

.hw-wallet__currency-opt input:checked + .hw-wallet__currency-card .hw-wallet__currency-card-icon {
  transform: scale(1.08);
}

.hw-wallet__currency-card strong {
  font-size: 0.95rem;
  color: var(--hw-wallet-ink);
}

.hw-wallet__currency-card small {
  color: var(--hw-wallet-muted);
  font-size: 0.75rem;
}

@keyframes hw-wallet-currency-glow {
  0%,
  100% {
    opacity: 0.55;
  }
  50% {
    opacity: 1;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hw-wallet__pack,
  .hw-wallet__pack--featured::after,
  .hw-wallet__pack-embers-burst,
  .hw-wallet__pack:hover .hw-wallet__pack-icon,
  .hw-wallet__currency-opt input:checked + .hw-wallet__currency-card .hw-wallet__currency-card-glow,
  .hw-wallet__coin-wash {
    animation: none !important;
  }

  .hw-wallet__pack,
  .hw-wallet__currency-card,
  .hw-wallet__pack .hw-wallet__btn,
  .hw-wallet__coin {
    transition: none !important;
  }

  .hw-wallet__pack:hover,
  .hw-wallet__coin:hover {
    transform: none;
  }
}

.hw-wallet__fee-hint {
  margin: -0.35rem 0 0.85rem;
  font-size: 0.82rem;
  color: var(--hw-wallet-muted);
}

.hw-wallet__confirm {
  display: flex;
  gap: 0.55rem;
  align-items: flex-start;
  margin: 0.35rem 0 1rem;
  color: var(--hw-wallet-soft);
  font-size: 0.88rem;
  line-height: 1.4;
}

.hw-wallet__msg {
  margin: 0.85rem 0 0;
  color: var(--hw-wallet-flame);
  font-size: 0.9rem;
}

.hw-wallet__msg.is-ok {
  color: #2f6b46;
}

.hw-wallet__activity {
  list-style: none;
  margin: 0;
  padding: 0;
  border: 1px solid var(--hw-wallet-line);
  border-radius: 14px;
  overflow: hidden;
  background: var(--hw-wallet-panel);
}

.hw-wallet__activity li {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.8rem 1rem;
  border-bottom: 1px solid var(--hw-wallet-line);
}

.hw-wallet__activity li:last-child {
  border-bottom: 0;
}

.hw-wallet__activity .is-earn {
  color: #2f6b46;
  font-weight: 600;
}

.hw-wallet__activity .is-spend {
  color: var(--hw-wallet-flame);
  font-weight: 600;
}

.hw-wallet__guest-card {
  max-width: 28rem;
  margin: 2rem auto;
  padding: 2rem 1.5rem;
  text-align: center;
  border-radius: 20px;
  border: 1px solid var(--hw-wallet-line);
  background: var(--hw-wallet-panel);
}

.hw-wallet__guest-mark {
  color: var(--hw-wallet-flame);
  margin-bottom: 0.75rem;
}

.hw-wallet__guest-mark svg {
  width: 2.25rem;
  height: 2.25rem;
}

@media (max-width: 860px) {
  .hw-wallet__layout {
    grid-template-columns: 1fr;
  }

  .hw-wallet__rail {
    position: static;
    flex-direction: row;
    flex-wrap: wrap;
  }

  .hw-wallet__balance-grid {
    grid-template-columns: 1fr;
  }

  .hw-wallet__currency-pick {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  .hw-wallet {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    padding-inline: max(0.75rem, env(safe-area-inset-left));
    padding-bottom: calc(2.5rem + env(safe-area-inset-bottom));
  }

  .hw-wallet__balance-card,
  .hw-wallet__pack {
    padding: 1.1rem 1rem 1.05rem;
  }

  .hw-wallet__packs {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .hw-wallet {
    width: 100%;
  }

  .hw-wallet__rail-link {
    flex: 1 1 auto;
    min-height: 2.75rem;
  }
}
