niue-wallet {
  --nw-out: cubic-bezier(0.22, 1, 0.36, 1);
  --nw-in-out: cubic-bezier(0.65, 0, 0.35, 1);
  --nw-glass: rgba(255, 255, 255, 0.2);
  --nw-border: rgba(255, 255, 255, 0.3);
  --nw-strong: rgb(255 255 255 / .30);
  --nw-purple: #940085;
  position: relative;
  display: block;
  width: min(100%, var(--wallet-width, 326px));
  margin-inline: auto;
  color: #fff;
  font:
    400 13px/1.4 Sora,
    sans-serif;
  text-align: left;
  letter-spacing: normal;
  isolation: isolate;
}
niue-wallet *,
niue-wallet *::before,
niue-wallet *::after {
  box-sizing: border-box;
}
niue-wallet :is(h3, h4, p, ul, dl, dt, dd) {
  margin: 0;
  padding: 0;
  font: inherit;
  color: inherit;
  letter-spacing: normal;
  text-transform: none;
}
niue-wallet img {
  display: block;
  max-width: 100%;
  height: auto;
}
niue-wallet button {
  appearance: none;
  margin: 0;
  padding: 0;
  min-width: 0;
  cursor: pointer;
  color: inherit;
  font: inherit;
  letter-spacing: normal;
  text-align: center;
  text-transform: none;
  background: transparent;
  border: 0;
}
niue-wallet [hidden] {
  display: none;
}
niue-wallet :focus-visible {
  outline: 2px solid #fff;
  outline-offset: -4px;
}
niue-wallet [tabindex='-1']:focus {
  outline: none;
}
.nw-frame {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 2.035;
  min-height: 614px;
  padding: 7px;
  border-radius: 45px;
  background: linear-gradient(112deg, white, var(--nw-glass) 25%, var(--nw-strong) 64%, white);
  box-shadow: inset 0 0 0 1px white, 0 4px 4px rgba(0, 0, 0, .04);
}
.nw-frame::before,
.nw-frame::after {
  content: '';
  position: absolute;
  z-index: -1;
  width: 3px;
  border-radius: 2px;
  background: var(--nw-strong);
}
.nw-frame::before {
  left: -2px;
  top: 24%;
  height: 6%;
  box-shadow: 0 45px var(--nw-strong);
}
.nw-frame::after {
  right: -2px;
  top: 29%;
  height: 10%;
}
.nw-display {
  position: relative;
  height: 100%;
  overflow: hidden;
  isolation: isolate;
  border: 3px solid var(--nw-border);
  border-radius: 38px;
  background: linear-gradient(135.3deg, #6bd1d4 0%, #6bd1d4 43%, #f6ac00 100%);
}
.nw-wash,
.nw-wave {
  pointer-events: none;
  position: absolute;
  z-index: -1;
}
.nw-wash {
  z-index: -3;
  inset: -24px;
  background:
    radial-gradient(ellipse at 110% 11%, rgb(255 255 255 / .30) 0%, transparent 37%),
    radial-gradient(ellipse at 1% 102%, #6bd1d4 2%, transparent 46%),
    linear-gradient(150deg, transparent 32%, #f6ac0055 70%, transparent 91%);
  animation: nw-drift 18s var(--nw-in-out) alternate infinite;
}
.nw-wave {
  z-index: -2;
  width: 160%;
  height: 52%;
  border-radius: 0 0 54% 16%;
  top: -41%;
  left: -28%;
  rotate: -14deg;
  background: var(--nw-glass);
  border: 1px solid var(--nw-border);
  backdrop-filter: blur(20px);
  box-shadow: 0 12px 0 #fff2;
  animation: nw-drift 14s var(--nw-in-out) alternate infinite;
}
/* Soft purple shadow lifts white type on the bright stops (no glyph outlines). */
.nw-page, .nw-status {
  text-shadow: 0 1px 2px rgb(148 0 133 / .38), 0 0 14px rgb(148 0 133 / .18);
}
.nw-status {
  height: 43px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 19px;
  position: relative;
  font-size: 11px;
  line-height: 1;
  font-weight: 600;
}
.nw-status svg {
  display: block;
  width: 48px;
  height: 12px;
}
.nw-camera {
  position: absolute;
  top: 8px;
  left: 50%;
  transform: translateX(-50%);
  width: 68px;
  height: 18px;
  background: var(--nw-strong);
  border-radius: 50px;
  box-shadow: inset 0 -1px 0 #ffffff24;
}
.nw-pages {
  position: absolute;
  inset: 43px 0 0;
}
.nw-page {
  position: absolute;
  inset: 0 0 67px;
  overflow: auto;
  overscroll-behavior: contain;
  scrollbar-width: thin;
  scrollbar-color: #ffffff77 transparent;
  padding: 0 13px 12px;
  animation: nw-enter 280ms var(--nw-out) both;
}
.nw-page.nw-leaving {
  pointer-events: none;
  animation: nw-exit 150ms ease both;
}
.nw-page > * + * {
  margin-top: 12px;
}
niue-wallet .nw-user {
  display: flex;
  align-items: center;
  gap: 11px;
  min-height: 48px;
  font-size: 18px;
  line-height: 1.25;
  font-weight: 600;
}
.nw-avatar {
  display: grid;
  place-items: center;
  width: 33px;
  height: 33px;
  flex-shrink: 0;
  border-radius: 50%;
  border: 1px solid #ffffff66;
  background: var(--nw-purple);
  box-shadow: 0 0 0 4px #ffffff24;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.05em;
}
.nw-page .nw-heading {
  font-size: 22px;
  line-height: 1.25;
  font-weight: 600;
  padding: 12px 3px 5px;
}
.nw-card,
niue-wallet .nw-pill,
.nw-filters {
  background: var(--nw-glass);
  border: 1px solid var(--nw-border);
  border-radius: 20px;
  box-shadow: 0 4px 4px rgba(0, 0, 0, 0.04);
  backdrop-filter: blur(40px);
}
.nw-card {
  padding: 13px 15px;
}
niue-wallet .nw-card h4 {
  font-size: 14px;
  line-height: 1.4;
  font-weight: 600;
}
.nw-balance {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 61px;
  padding-inline: 18px;
  font-size: 18px;
  font-weight: 600;
}
.nw-balance > span {
  animation: nw-fade 280ms ease both;
}
.nw-balance strong,
.nw-row strong,
.nw-amount strong {
  font-variant-numeric: tabular-nums;
}
.nw-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
niue-wallet .nw-pill {
  position: relative;
  overflow: hidden;
  display: grid;
  place-items: center;
  width: 100%;
  height: 46px;
  padding: 0 10px;
  border-radius: 50px;
  border-width: 1.5px;
  --nw-glass: rgba(255, 255, 255, 0.3);
  font-size: 16px;
  font-weight: 600;
  line-height: 1.15;
  transition: transform 280ms cubic-bezier(0.2, 1.33, 0.4, 1);
}
niue-wallet:lang(niu) .nw-pill {
  height: auto;
  min-height: 46px;
  flex-shrink: 0;
  padding-block: 7px;
  overflow-wrap: anywhere;
}
niue-wallet:lang(niu) .nw-detail dt {
  flex-shrink: 1;
  max-width: 50%;
}
niue-wallet:lang(niu) .nw-detail dd {
  min-width: 0;
  overflow-wrap: anywhere;
}
niue-wallet .nw-pill::before {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  transform: translateX(-110%);
  background: linear-gradient(110deg, transparent 30%, #ffffff40, transparent 70%);
}
@media (hover: hover) {
  niue-wallet .nw-pill:hover::before {
    transform: translateX(110%);
    transition: transform 700ms var(--nw-out);
  }
}
niue-wallet .nw-pill:active,
niue-wallet .nw-nav button:active {
  transform: scale(0.96);
}
.nw-group {
  background: url('wallet/tx-7.svg') top / 100% 7px no-repeat;
  padding-top: 9px;
  margin-top: 8px;
}
niue-wallet .nw-group > p {
  margin-bottom: 4px;
  font-size: 12px;
  line-height: 1.35;
}
.nw-group ul {
  list-style: none;
}
.nw-row {
  display: grid;
  align-items: center;
  grid-template-columns: 18px minmax(0, 1fr) auto;
  gap: 7px;
  min-height: 24px;
  margin: 0;
  padding: 0;
  font-size: 13px;
  line-height: 1.35;
  font-weight: 300;
  animation: nw-row 280ms var(--nw-out) both;
  animation-delay: calc(var(--nw-sequence) * 40ms);
}
.nw-row > span:nth-child(2) {
  overflow-wrap: anywhere;
}
.nw-row strong {
  font-weight: 600;
  white-space: nowrap;
}
.nw-icon {
  flex: none;
  display: inline-grid;
  place-items: center;
  width: 18px;
  height: 18px;
}
.nw-icon img {
  grid-area: 1/1;
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.nw-icon img + img {
  width: 11px;
  height: 11px;
}
.nw-icon img[src$='tx-6.svg'] {
  transform: rotate(180deg);
}
.nw-nav {
  position: absolute;
  inset: auto 0 0;
  width: 100%;
  aspect-ratio: 367/87;
  display: grid;
  grid-template-columns: 1fr 1fr 1.04fr 1fr 1fr;
  align-items: end;
}
.nw-bar-art {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}
.nw-arrows {
  transform-origin: 182.5px 31.5px;
}
niue-wallet .nw-nav button {
  position: relative;
  width: 86%;
  height: 67%;
  justify-self: center;
  margin-bottom: 3px;
  border-radius: 15px;
  transition:
    opacity 150ms ease,
    transform 280ms var(--nw-out);
}
niue-wallet .nw-nav button:nth-of-type(3) {
  height: 74%;
  width: 90%;
  align-self: start;
  border-radius: 50%;
}
niue-wallet .nw-nav button[aria-current]::after {
  content: '';
  position: absolute;
  width: 12px;
  height: 2px;
  border-radius: 2px;
  background: #fff;
  left: calc(50% - 6px);
  bottom: 6px;
  animation: nw-fade 150ms ease;
}
.nw-detail {
  padding-block: 9px;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 7px;
}
.nw-detail + .nw-detail {
  border-top: 1px solid var(--nw-border);
}
niue-wallet .nw-detail dt {
  flex-shrink: 0;
  font-size: 12px;
}
niue-wallet .nw-detail dd {
  font-weight: 600;
  text-align: right;
}
.nw-amount,
.nw-identity,
.nw-qr {
  display: grid;
  justify-items: center;
  text-align: center;
  gap: 10px;
  padding: 24px 16px;
}
.nw-amount > .nw-icon {
  width: 42px;
  height: 42px;
}
.nw-amount > .nw-icon img + img {
  width: 23px;
  height: 23px;
}
.nw-amount > strong {
  font-size: 26px;
  font-weight: 600;
  letter-spacing: -0.05em;
}
.nw-identity > .nw-avatar {
  width: 45px;
  height: 45px;
  margin-bottom: 4px;
  font-size: 14px;
}
.nw-identity > strong,
.nw-qr > strong {
  font-size: 17px;
  font-weight: 600;
}
.nw-code {
  position: relative;
  overflow: hidden;
  width: 145px;
  aspect-ratio: 1;
  border-radius: 10px;
  margin-block: 4px;
  background: var(--nw-glass);
}
.nw-code img {
  position: relative;
  width: 100%;
  height: 100%;
}
.nw-loading::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(105deg, transparent 10%, #ffffff50 50%, transparent 90%);
  animation: nw-shimmer 1.2s linear infinite;
}
@keyframes nw-shimmer {
  from {
    transform: translateX(-100%);
  }
  to {
    transform: translateX(100%);
  }
}
.nw-filters {
  display: flex;
  padding: 4px;
  border-radius: 50px;
  gap: 2px;
}
niue-wallet .nw-filters button {
  flex: 1;
  min-height: 36px;
  border-radius: 50px;
  font-size: 12px;
}
niue-wallet .nw-filters button[aria-pressed='true'] {
  background: var(--nw-purple);
  font-weight: 600;
}
niue-wallet :is(.nw-options, .nw-qr) p {
  font-size: 13px;
  line-height: 1.65;
}
niue-wallet .nw-options p {
  margin-top: 4px;
}
niue-wallet .nw-options h4:not(:first-child) {
  padding-top: 16px;
  margin-top: 14px;
  border-top: 1px solid var(--nw-border);
}
.nw-page:has(.nw-maker) {
  bottom: 0;
}
.nw-page:has(.nw-maker):not(.nw-leaving) {
  animation: none;
}
niue-wallet[data-screen='splash'] .nw-wave {
  top: -22%;
  rotate: -18deg;
}
.nw-page:has(.nw-options) {
  display: flex;
  flex-direction: column;
}
.nw-page:has(.nw-options) .nw-maker {
  margin-top: auto;
  padding-top: 16px;
}
.nw-welcome {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-height: 100%;
  gap: 10px;
  padding: 12px 11px 0;
}
niue-wallet .nw-splash-logo {
  width: 44%;
  margin: auto 0;
}
.nw-splash-logo .npg-logo {
  display: block;
  width: 100%;
  height: auto;
}
.nw-maker {
  display: grid;
  justify-items: center;
  margin: 32px auto 12px;
  gap: 4px;
  animation: nw-fade 800ms var(--nw-out) 1.1s both;
}
.nw-maker span {
  font-size: 9px;
  font-weight: 600;
  line-height: 1.5;
}
.nw-maker img {
  width: 119px;
}
.nw-welcome .nw-maker {
  margin-top: auto;
}
.nw-check {
  width: 47px;
  height: 47px;
  display: grid;
  place-items: center;
  position: relative;
  border: 1px solid var(--nw-border);
  border-radius: 50%;
  background: var(--nw-purple);
}
.nw-check::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: #6bd1d4;
  animation: nw-ripple 500ms var(--nw-out) forwards;
}
.nw-check i {
  position: absolute;
  height: 2.5px;
  border-radius: 2px;
  transform-origin: 0 50%;
  background: white;
}
.nw-tick-short {
  left: 12px;
  top: 23px;
  width: 9px;
  rotate: 45deg;
  animation: nw-draw 160ms ease-out both;
}
.nw-tick-long {
  left: 18px;
  top: 29px;
  width: 20px;
  rotate: -48deg;
  animation: nw-draw 340ms 160ms var(--nw-out) both;
}
.nw-sr {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
niue-wallet:not([data-visible='true']) :is(.nw-wash, .nw-wave, .npg-logo, .npg-wave, .npg-rings, .nw-row) {
  animation-play-state: paused;
}
@keyframes nw-drift {
  from {
    transform: translate(-20px, -12px);
  }
  to {
    transform: translate(24px, 18px);
  }
}
@keyframes nw-enter {
  from {
    opacity: 0;
    transform: translateY(24px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}
@keyframes nw-exit {
  from {
    opacity: 1;
  }
  to {
    opacity: 0;
  }
}
@keyframes nw-row {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}
@keyframes nw-fade {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}
@keyframes nw-ripple {
  from {
    opacity: 0.65;
    transform: scale(0.7);
  }
  to {
    opacity: 0;
    transform: scale(1.45);
  }
}
@keyframes nw-draw {
  from {
    transform: scaleX(0);
  }
  to {
    transform: scaleX(1);
  }
}
@media (max-width: 360px) {
  .nw-frame {
    aspect-ratio: auto;
    height: 614px;
  }
  .nw-page {
    padding-inline: 9px;
  }
  .nw-card {
    padding-inline: 11px;
  }
  .nw-row {
    gap: 4px;
  }
}
@media (prefers-reduced-motion: reduce) {
  niue-wallet :not(.npg-logo, .npg-logo *),
  niue-wallet *::before,
  niue-wallet *::after {
    animation: none !important;
    transition: none !important;
  }
  niue-wallet .nw-page:not(:has(.nw-maker)),
  niue-wallet .nw-row {
    animation: nw-fade 150ms ease both !important;
  }
  niue-wallet .nw-page.nw-leaving {
    animation: nw-exit 150ms ease both !important;
  }
  niue-wallet .nw-check::before {
    opacity: 0;
  }
  niue-wallet .nw-pill:active,
  niue-wallet .nw-nav button:active {
    transform: none;
  }
  niue-wallet .nw-pill::before {
    display: none;
  }
}
