html,
body {
  margin: 0;
  min-width: 320px;
  min-height: 100%;
  background: #e2dffe;
  color: #eeeeee;
  font-family: Inter, Roboto, Arial, sans-serif;
}

button,
input,
textarea,
select {
  font: inherit;
}

#app {
  width: 100%;
  min-height: 100vh;
}

.app-loading {
  min-height: 100vh;
  display: grid;
  place-items: center;
  color: #b4b4b4;
}

.app-loading-error {
  color: #ffb7c5;
}

.spa-view {
  width: 100%;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Onboarding layout and component styling come from the original extension stylesheets. */

.runtime-terms-row {
  cursor: pointer;
}

.runtime-terms-row > p {
  user-select: none;
}

.runtime-terms-row [data-reach-custom-checkbox-container] {
  flex: 0 0 22px;
}

.runtime-terms-row [data-reach-custom-checkbox-container][data-state="checked"] {
  border-color: #ab9ff2 !important;
  background: #ab9ff2 !important;
}

.spa-view[data-route="create/2"] [data-testid="onboarding-form-submit-button"]:not(:disabled) {
  color: #000000 !important;
  background: #ab9ff2 !important;
}

.spa-view[data-route="create/3-1"] .runtime-recovery-wrap {
  position: relative;
  cursor: default;
}

.spa-view[data-route="create/3-1"] .runtime-recovery-eye {
  display: none !important;
}

.spa-view[data-route="create/3-1"] .runtime-recovery-phrase {
  filter: blur(4px);
  transition: filter 180ms cubic-bezier(0.16, 1, 0.3, 1);
}

.spa-view[data-route="create/3-1"] .runtime-recovery-phrase input {
  cursor: text !important;
  user-select: text !important;
  -webkit-user-select: text !important;
}

.spa-view[data-route="create/3-1"] .runtime-recovery-wrap:hover .runtime-recovery-phrase,
.spa-view[data-route="create/3-1"] .runtime-recovery-wrap:focus-within .runtime-recovery-phrase {
  filter: blur(0);
}

.spa-view[data-route="create/3-1"] .runtime-copy-recovery-phrase {
  display: block;
  margin: 12px auto 0;
  padding: 7px 14px;
  border: 0;
  border-radius: 10px;
  color: #ab9ff2;
  background: #2b2b2b;
  cursor: pointer;
  font-size: 14px;
  font-weight: 600;
}

.spa-view[data-route="create/3-1"] .runtime-copy-recovery-phrase:hover {
  color: #000000 !important;
  background: #ab9ff2;
}

.spa-view[data-route="create/3-1"] .runtime-recovery-confirm {
  width: 100%;
  min-height: 36px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 4px 0;
  cursor: pointer;
  user-select: none;
}

.spa-view[data-route="create/3-1"] .runtime-recovery-confirm > div:last-child {
  padding-top: 0;
  line-height: 18px;
}

.spa-view[data-route="create/3-1"] .runtime-recovery-confirm > input + div {
  position: relative;
  box-sizing: border-box;
  width: 20px;
  height: 20px;
  flex: 0 0 20px;
  overflow: hidden;
  border: 1px solid #3b3b3b;
  border-radius: 6px;
  background: #202020;
}

.spa-view[data-route="create/3-1"] .runtime-recovery-confirm > input + div > * {
  display: none;
}

.spa-view[data-route="create/3-1"] .runtime-recovery-confirm > input:checked + div {
  border-color: #ab9ff2;
  background: #ab9ff2;
}

.spa-view[data-route="create/3-1"] .runtime-recovery-confirm > input:checked + div::after {
  content: "";
  position: absolute;
  left: 7px;
  top: 3px;
  width: 5px;
  height: 9px;
  border-right: 2px solid #000000;
  border-bottom: 2px solid #000000;
  transform: rotate(45deg);
}

.spa-view[data-route="create/3-1"] [data-testid="onboarding-form-submit-button"] {
  width: 100% !important;
  height: 47px !important;
  min-height: 47px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 16px !important;
  border: 0 !important;
  border-radius: 16px !important;
  color: #000000 !important;
  background: #ab9ff2 !important;
  cursor: pointer !important;
  font-size: 16px !important;
  font-weight: 600 !important;
  line-height: 19px !important;
}

.spa-view[data-route="create/3-1"] [data-testid="onboarding-form-submit-button"]:hover:not(:disabled) {
  background: #e2dffe !important;
}

.spa-view[data-route="create/3-1"] [data-testid="onboarding-form-submit-button"]:disabled {
  color: #7b7b7b !important;
  background: #202020 !important;
  cursor: default !important;
  opacity: 1 !important;
}

.spa-view[data-route="success"] main.ewlwQM {
  min-height: 532px;
  background: #31284f;
}

.runtime-success {
  position: relative;
  width: 100%;
  min-height: 532px;
  display: grid;
  grid-template-rows: 48px minmax(0, 1fr) auto auto;
  overflow: hidden;
  border-radius: 15px;
  color: #eeeeee;
  background: linear-gradient(165deg, #514579 0%, #3a305c 52%, #2d2549 100%);
}

.runtime-success-progress {
  position: relative;
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: #000000;
}

.runtime-success-progress i {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #ab9ff2;
}

.runtime-success-scene {
  position: relative;
  min-height: 332px;
  overflow: hidden;
  isolation: isolate;
  background:
    radial-gradient(circle at 54% 42%, rgba(171, 159, 242, 0.28), transparent 35%),
    linear-gradient(155deg, #4c79e7 0 17%, transparent 17%),
    linear-gradient(24deg, transparent 0 83%, #ffffc9 83% 91%, transparent 91%);
}

.success-orbit {
  position: absolute;
  z-index: -1;
  border-radius: 50%;
  background: rgba(24, 20, 45, 0.22);
}

.success-orbit-one { width: 420px; height: 300px; left: 34px; top: 62px; transform: rotate(-8deg); }
.success-orbit-two { width: 260px; height: 240px; left: -92px; bottom: -96px; background: rgba(25, 21, 47, 0.18); }

.success-ray {
  position: absolute;
  right: -22px;
  top: 28px;
  width: 120px;
  height: 26px;
  border-radius: 999px;
  background: #ffffc9;
  transform: rotate(-52deg);
  animation: success-ray-pulse 3.2s ease-in-out infinite;
}

.success-hi {
  position: absolute;
  left: 50%;
  top: 42px;
  min-width: 126px;
  padding: 5px 16px 8px;
  border-radius: 50%;
  transform: translateX(-50%) rotate(-2deg);
  color: #a397e9;
  background: #ffc7cf;
  font-size: 56px;
  font-weight: 500;
  line-height: 62px;
  text-align: center;
  animation: success-hi-float 3.6s ease-in-out infinite;
}

.success-username {
  position: absolute;
  z-index: 2;
  left: 20px;
  right: 20px;
  top: 142px;
  overflow: hidden;
  color: #eeeeee;
  font-size: 29px;
  font-weight: 500;
  line-height: 36px;
  text-align: center;
  text-overflow: ellipsis;
  white-space: nowrap;
  text-shadow: 0 2px 5px rgba(0, 0, 0, 0.25);
}

.success-ghost {
  position: absolute;
  left: 50%;
  bottom: 25px;
  width: 132px;
  height: 132px;
  transform: translateX(-50%) rotate(-7deg);
  color: #ab9ff2;
  filter: drop-shadow(0 14px 22px rgba(16, 10, 38, 0.25));
  animation: success-ghost-float 2.8s ease-in-out infinite;
}

.success-sparkle {
  position: absolute;
  right: 92px;
  bottom: 78px;
  color: #ffffc9;
  font-size: 24px;
  animation: success-sparkle 1.8s ease-in-out infinite;
}

.success-confetti {
  position: absolute;
  width: 8px;
  height: 20px;
  border-radius: 5px;
  opacity: 0.75;
  animation: success-confetti 4s ease-in-out infinite;
}

.success-confetti-one { left: 48px; top: 104px; background: #ffffc9; transform: rotate(28deg); }
.success-confetti-two { right: 52px; top: 158px; background: #ffc7cf; animation-delay: -1s; }
.success-confetti-three { left: 92px; bottom: 60px; background: #6cb6ff; animation-delay: -2s; }
.success-confetti-four { right: 110px; top: 82px; background: #ab9ff2; animation-delay: -3s; }

.runtime-success-copy {
  position: relative;
  z-index: 3;
  padding: 0 20px 14px;
  text-align: center;
}

.runtime-success-copy h1 {
  margin: 0 0 6px;
  color: #ffffff;
  font-size: 36px;
  font-weight: 600;
  line-height: 40px;
  letter-spacing: -0.02em;
}

.runtime-success-copy p {
  margin: 0;
  color: #d0c9df;
  font-size: 14px;
  line-height: 18px;
}

.runtime-success-start {
  position: relative;
  z-index: 3;
  min-height: 48px;
  margin: 0 24px 24px;
  border: 0;
  border-radius: 24px;
  color: #000000;
  background: #ab9ff2;
  cursor: pointer;
  font-size: 15px;
  font-weight: 600;
  transition: background 160ms ease, transform 160ms ease;
}

.runtime-success-start:hover { background: #e2dffe; transform: translateY(-1px); }
.runtime-success-start:active { transform: translateY(0); }

@keyframes success-ghost-float {
  0%, 100% { transform: translateX(-50%) translateY(0) rotate(-7deg); }
  50% { transform: translateX(-50%) translateY(-10px) rotate(-3deg); }
}

@keyframes success-hi-float {
  0%, 100% { transform: translateX(-50%) translateY(0) rotate(-2deg); }
  50% { transform: translateX(-50%) translateY(7px) rotate(2deg); }
}

@keyframes success-ray-pulse {
  0%, 100% { opacity: 0.75; transform: rotate(-52deg) scaleX(1); }
  50% { opacity: 1; transform: rotate(-52deg) scaleX(1.12); }
}

@keyframes success-sparkle {
  0%, 100% { opacity: 0.4; transform: scale(0.75) rotate(0); }
  50% { opacity: 1; transform: scale(1.2) rotate(90deg); }
}

@keyframes success-confetti {
  0%, 100% { translate: 0 0; rotate: 0deg; }
  50% { translate: 0 12px; rotate: 24deg; }
}

@media (prefers-reduced-motion: reduce) {
  .runtime-success-scene * { animation: none !important; }
}

.runtime-error,
.runtime-notice {
  box-sizing: border-box;
  width: 100%;
  margin: 12px 0;
  padding: 10px 12px;
  border-radius: 12px;
  font-size: 13px;
  line-height: 18px;
}

.runtime-error {
  color: #ffb7c5;
  background: rgba(255, 0, 55, 0.12);
  border: 1px solid rgba(255, 0, 55, 0.35);
}

.runtime-notice {
  color: #d9d4ff;
  background: rgba(171, 159, 242, 0.12);
  border: 1px solid rgba(171, 159, 242, 0.28);
}

.runtime-status {
  position: fixed;
  z-index: 20;
  left: 12px;
  right: 12px;
  bottom: 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 9px 12px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 14px;
  background: rgba(28, 28, 28, 0.92);
  color: #b4b4b4;
  font-size: 11px;
  line-height: 15px;
  backdrop-filter: blur(12px);
}

.runtime-status strong {
  color: #eeeeee;
  font-weight: 600;
}

.runtime-status button,
.runtime-panel button {
  border: 0;
  border-radius: 10px;
  padding: 8px 11px;
  color: #1c1c1c;
  background: #ab9ff2;
  cursor: pointer;
  font-size: 12px;
  font-weight: 600;
}

.runtime-panel-backdrop {
  position: fixed;
  z-index: 30;
  inset: 0;
  display: grid;
  align-items: end;
  background: rgba(0, 0, 0, 0.45);
}

.runtime-panel {
  box-sizing: border-box;
  width: min(100%, 480px);
  max-height: min(760px, 92vh);
  overflow: auto;
  margin: 0 auto;
  padding: 20px;
  border-radius: 24px 24px 0 0;
  background: #292929;
  color: #eeeeee;
  box-shadow: 0 -12px 50px rgba(0, 0, 0, 0.3);
}

.runtime-panel header,
.runtime-panel .panel-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.runtime-panel h2 {
  margin: 0 0 6px;
  font-size: 20px;
}

.runtime-panel p {
  margin: 6px 0 14px;
  color: #b4b4b4;
  font-size: 13px;
  line-height: 18px;
}

.runtime-panel .close-button {
  padding: 5px 9px;
  color: #eeeeee;
  background: #3b3b3b;
}

.runtime-panel form {
  display: grid;
  gap: 10px;
}

.runtime-panel label {
  display: grid;
  gap: 5px;
  color: #b4b4b4;
  font-size: 12px;
}

.runtime-panel [hidden] {
  display: none !important;
}

.runtime-panel input,
.runtime-panel textarea,
.runtime-panel select {
  box-sizing: border-box;
  width: 100%;
  border: 1px solid #4b4b4b;
  border-radius: 11px;
  padding: 11px;
  outline: 0;
  color: #eeeeee;
  background: #1f1f1f;
}

.runtime-panel input:focus,
.runtime-panel textarea:focus,
.runtime-panel select:focus {
  border-color: #ab9ff2;
}

.runtime-panel .address {
  word-break: break-all;
  padding: 12px;
  border-radius: 12px;
  color: #eeeeee;
  background: #1f1f1f;
  font-size: 12px;
  line-height: 17px;
}

.runtime-panel .runtime-qr {
  width: 184px;
  height: 184px;
  margin: 4px auto 16px;
  padding: 8px;
  border-radius: 16px;
  background: #ffffff;
}

.runtime-panel .runtime-qr canvas {
  display: block;
  width: 184px;
  height: 184px;
}

.runtime-panel .panel-list {
  display: grid;
  gap: 8px;
  margin: 12px 0;
}

.runtime-panel .panel-list > div {
  padding: 11px 12px;
  border-radius: 12px;
  background: #1f1f1f;
  font-size: 13px;
}

.runtime-toast {
  position: fixed;
  z-index: 50;
  left: 50%;
  bottom: 72px;
  transform: translateX(-50%);
  max-width: min(90vw, 420px);
  padding: 10px 14px;
  border-radius: 12px;
  color: #eeeeee;
  background: #454545;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.28);
  font-size: 13px;
}

.hardware-wallet-loading {
  cursor: wait !important;
}

.hardware-wallet-loading svg {
  visibility: hidden;
}

.hardware-wallet-spinner {
  position: absolute;
  width: 18px;
  height: 18px;
  box-sizing: border-box;
  border: 2px solid rgba(238, 238, 238, 0.28);
  border-top-color: #eeeeee;
  border-radius: 50%;
  animation: hardware-wallet-spin 700ms linear infinite;
}

@keyframes hardware-wallet-spin {
  to { transform: rotate(360deg); }
}

.runtime-unlock {
  box-sizing: border-box;
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 24px;
}

.runtime-unlock-card {
  width: min(100%, 360px);
  padding: 24px;
  border-radius: 24px;
  background: #292929;
}

.runtime-unlock-card h1 {
  margin: 0 0 8px;
  font-size: 22px;
}

.runtime-unlock-card p {
  margin: 0 0 18px;
  color: #b4b4b4;
  font-size: 14px;
  line-height: 20px;
}

.runtime-unlock-card form {
  display: grid;
  gap: 12px;
}

.runtime-unlock-card input {
  box-sizing: border-box;
  width: 100%;
  border: 1px solid #4b4b4b;
  border-radius: 12px;
  padding: 13px;
  color: #eeeeee;
  background: #1f1f1f;
}

.runtime-unlock-card button {
  border: 0;
  border-radius: 12px;
  padding: 13px;
  color: #1c1c1c;
  background: #ab9ff2;
  cursor: pointer;
  font-weight: 600;
}

/* Compact Solana wallet shell. Onboarding remains governed by the original Phantom CSS. */
.spa-view[data-route^="wallet"] {
  box-sizing: border-box;
  padding: 24px;
  overflow: hidden;
  background: #e2dffe;
}

.wallet-shell {
  position: relative;
  box-sizing: border-box;
  width: min(100%, 420px);
  height: min(625px, calc(100vh - 48px));
  min-height: 0;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 16px;
  color: #eeeeee;
  background: #1c1c1c;
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.32);
}

.wallet-shell button {
  color: inherit;
  font: inherit;
}

.wallet-topbar {
  min-height: 58px;
  display: grid;
  grid-template-columns: 1fr auto auto;
  align-items: center;
  gap: 8px;
  padding: 0 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.wallet-profile,
.wallet-address-button,
.wallet-icon-button,
.wallet-actions button,
.wallet-token-row,
.wallet-bottom-nav button,
.wallet-assets-card header button,
.wallet-address-chip,
.wallet-connection-status button {
  border: 0;
  cursor: pointer;
  background: none;
}

.wallet-profile {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 0;
  text-align: left;
}

.wallet-avatar {
  position: relative;
  width: 32px;
  height: 32px;
  flex: 0 0 auto;
  overflow: hidden;
  border-radius: 50%;
  background: #ab9ff2;
}

.wallet-avatar img { width: 100%; height: 100%; display: block; object-fit: cover; }

.wallet-identity {
  min-width: 0;
  display: grid;
  gap: 0;
}

.wallet-identity strong {
  overflow: hidden;
  color: #ffffff;
  font-size: 13px;
  font-weight: 600;
  line-height: 16px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.wallet-identity small {
  overflow: hidden;
  color: #b4b4b4;
  font-size: 12px;
  line-height: 15px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.wallet-network {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 7px 10px;
  border: 1px solid rgba(101, 226, 187, 0.14);
  border-radius: 999px;
  color: #9aeece;
  background: rgba(58, 148, 120, 0.09);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.wallet-network i,
.wallet-connection-status i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #65e2bb;
  box-shadow: 0 0 0 3px rgba(101, 226, 187, 0.12);
}

.wallet-icon-button {
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  padding: 0;
  border-radius: 10px;
  color: #b4b4b4;
  background: transparent;
}

.wallet-icon-button svg { width: 18px; height: 18px; }

.wallet-address-button {
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  padding: 0;
  color: #b4b4b4;
}

.wallet-address-button svg { width: 17px; height: 17px; }

.wallet-content {
  overflow: auto;
  padding: 14px 16px 12px;
  scrollbar-width: none;
}

.wallet-content::-webkit-scrollbar { display: none; }

.wallet-welcome {
  display: grid;
  justify-items: center;
  text-align: center;
}

.wallet-welcome > img {
  width: 166px;
  height: 64px;
  display: block;
  object-fit: contain;
}

.wallet-welcome h1 {
  margin: 6px 0 2px;
  color: #eeeeee;
  font-size: 19px;
  font-weight: 600;
  line-height: 24px;
}

.wallet-welcome > p {
  margin: 0;
  color: #b4b4b4;
  font-size: 12px;
  line-height: 17px;
}

.wallet-onramp-actions {
  width: 100%;
  display: grid;
  gap: 8px;
  margin-top: 12px;
}

.wallet-onramp-actions button {
  min-height: 38px;
  border: 0;
  border-radius: 18px;
  color: #000000;
  background: #ab9ff2;
  cursor: pointer;
  font-size: 12px;
  font-weight: 600;
}

.wallet-onramp-actions button:last-child {
  color: #eeeeee;
  background: #292929;
}

.wallet-balance-card {
  position: relative;
  isolation: isolate;
  min-height: 224px;
  box-sizing: border-box;
  overflow: hidden;
  padding: 27px 26px 24px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 27px;
  background:
    radial-gradient(circle at 80% 5%, rgba(255, 255, 255, 0.2), transparent 26%),
    linear-gradient(145deg, #836bdc 0%, #5f49bb 52%, #45348f 100%);
  box-shadow: 0 24px 55px rgba(77, 56, 156, 0.28);
}

.wallet-balance-card::after {
  content: "";
  position: absolute;
  z-index: -1;
  right: -42px;
  bottom: -76px;
  width: 210px;
  height: 210px;
  border: 30px solid rgba(255, 255, 255, 0.06);
  border-radius: 50%;
}

.wallet-balance-card > p {
  margin: 0 0 11px;
  color: rgba(255, 255, 255, 0.67);
  font-size: 12px;
  font-weight: 550;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.wallet-balance-card h1 {
  margin: 0;
  color: #ffffff;
  font-size: clamp(36px, 9vw, 46px);
  font-weight: 650;
  line-height: 1.05;
  letter-spacing: -0.045em;
}

.wallet-balance-card h1 small {
  color: rgba(255, 255, 255, 0.62);
  font-size: 16px;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.wallet-balance-caption {
  display: block;
  margin-top: 8px;
  color: rgba(255, 255, 255, 0.58);
  font-size: 12px;
}

.wallet-address-chip {
  max-width: 100%;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 22px;
  padding: 9px 12px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 12px;
  color: rgba(255, 255, 255, 0.82);
  background: rgba(20, 14, 45, 0.2);
  font-size: 11px;
  font-weight: 550;
}

.wallet-address-chip svg { width: 14px; height: 14px; }

.wallet-actions {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  margin-top: 14px;
}

.wallet-actions button {
  min-width: 0;
  display: grid;
  justify-items: center;
  gap: 5px;
  padding: 9px 4px;
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 14px;
  color: #b4b4b4;
  background: #232323;
  transition: transform 150ms ease, border-color 150ms ease, background 150ms ease;
}

.wallet-actions button:hover,
.wallet-token-row:hover,
.wallet-icon-button:hover {
  border-color: rgba(177, 157, 255, 0.28);
  background: rgba(177, 157, 255, 0.08);
}

.wallet-actions button:hover { transform: translateY(-1px); }

.wallet-actions button span {
  width: 26px;
  height: 26px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  color: #ab9ff2;
  background: transparent;
}

.wallet-actions svg { width: 21px; height: 21px; }
.wallet-actions strong { font-size: 10px; font-weight: 600; }

.wallet-assets-card {
  margin-top: 14px;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
}

.wallet-assets-card > header {
  display: flex;
  align-items: center;
  margin-bottom: 8px;
}

.wallet-assets-card header p {
  margin: 0 0 2px;
  color: #716d7b;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.wallet-assets-card h2 {
  margin: 0;
  color: #eeeeee;
  font-size: 15px;
  font-weight: 600;
}

.wallet-asset-tabs {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 14px;
  overflow: hidden;
}

.wallet-asset-tabs button {
  flex: 0 0 auto;
  padding: 0;
  color: #b4b4b4 !important;
  font-size: 13px !important;
  font-weight: 600 !important;
}

.wallet-assets-card header button {
  display: flex;
  align-items: center;
  gap: 3px;
  padding: 5px 0;
  color: #9c90ce;
  font-size: 11px;
  font-weight: 600;
}

.wallet-assets-card header button svg { width: 13px; height: 13px; }

.wallet-token-row {
  width: 100%;
  min-width: 0;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 12px;
  padding: 10px 8px;
  border: 0;
  border-radius: 12px;
  text-align: left;
  background: #232323;
}

.solana-mark,
.qr-solana-badge {
  width: 34px;
  height: 34px;
  display: grid;
  place-content: center;
  gap: 3px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: #050507;
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.24);
}

.solana-mark i,
.qr-solana-badge i {
  width: 19px;
  height: 3px;
  display: block;
  border-radius: 3px;
  transform: skew(-24deg);
  background: linear-gradient(90deg, #8b5cf6, #4ee1b2);
}

.solana-mark i:nth-child(2),
.qr-solana-badge i:nth-child(2) { background: linear-gradient(90deg, #4ee1b2, #6c70f5); }

.wallet-token-name,
.wallet-token-balance {
  min-width: 0;
  display: grid;
  gap: 3px;
}

.wallet-token-name strong,
.wallet-token-balance strong {
  overflow: hidden;
  color: #f2effa;
  font-size: 13px;
  font-weight: 630;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.wallet-token-name small,
.wallet-token-balance small {
  overflow: hidden;
  color: #77727f;
  font-size: 10px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.wallet-token-balance { text-align: right; }
.wallet-token-row > svg { width: 15px; height: 15px; color: #5e5a65; }

.wallet-connection-status {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 8px;
  padding: 5px 8px;
  border-radius: 12px;
  color: #77727f;
  background: #202020;
  font-size: 9px;
}

.wallet-connection-status span {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 8px;
}

.wallet-connection-status strong {
  overflow: hidden;
  font-weight: 550;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.wallet-connection-status button {
  padding: 4px 6px;
  color: #9f94cb;
  font-size: 9px;
}

.wallet-connection-status.is-loading i { animation: wallet-pulse 1s ease infinite; }
.wallet-connection-status.is-error i { background: #ff8c9d; box-shadow: 0 0 0 3px rgba(255, 140, 157, 0.1); }
.wallet-greeting { margin: 12px 0 0; color: #4f4b56; font-size: 10px; text-align: center; }

.wallet-bottom-nav {
  min-height: 56px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  padding: 3px 8px max(3px, env(safe-area-inset-bottom));
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  background: #181818;
}

.wallet-bottom-nav button {
  display: grid;
  place-items: center;
  align-content: center;
  gap: 2px;
  padding: 3px;
  border-radius: 13px;
  color: #66616e;
  font-size: 8px;
  font-weight: 600;
}

.wallet-bottom-nav button.is-active { color: #b5a2ff; }
.wallet-bottom-nav svg { width: 18px; height: 18px; }
.nav-wallet-icon { width: 18px; height: 15px; border: 1.7px solid currentColor; border-radius: 5px; }

.runtime-panel-backdrop {
  position: absolute;
  align-items: center;
  padding: 0;
  background: #1c1c1c;
  backdrop-filter: none;
}

.runtime-panel {
  width: 100%;
  height: 100%;
  max-height: none;
  padding: 20px;
  border: 0;
  border-radius: 0;
  background: #1c1c1c;
  box-shadow: none;
}

.runtime-panel > header { align-items: flex-start; margin-bottom: 14px; }
.runtime-panel h2 { margin: 3px 0 0; color: #eeeeee; font-size: 24px; letter-spacing: -0.025em; }
.runtime-panel p { color: #817c8a; }
.runtime-panel .panel-kicker { color: #9a86ed; font-size: 9px; font-weight: 700; letter-spacing: 0.12em; }

.runtime-panel .close-button {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 50%;
  color: #928d9a;
  background: #292929;
}

.runtime-panel .close-button svg { width: 17px; height: 17px; }

.runtime-panel .runtime-qr {
  position: relative;
  width: 184px;
  height: 184px;
  margin: 2px auto 14px;
  padding: 9px;
  border: 1px solid rgba(255, 255, 255, 0.7);
  border-radius: 22px;
  background: #ffffff;
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.28);
}

.runtime-panel .qr-solana-badge {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 38px;
  height: 38px;
  gap: 2px;
  transform: translate(-50%, -50%);
  border: 4px solid #ffffff;
  border-radius: 13px;
}

.runtime-panel .qr-solana-badge i { width: 19px; height: 3px; }

.runtime-panel .address {
  padding: 13px 14px;
  border: 1px solid rgba(255, 255, 255, 0.065);
  border-radius: 14px;
  color: #d8d3df;
  background: rgba(5, 5, 8, 0.42);
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
  font-size: 11px;
  line-height: 17px;
  text-align: center;
}

.runtime-panel .panel-primary-button,
.runtime-panel .panel-danger-button {
  width: 100%;
  min-height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  margin-top: 14px;
  border-radius: 22px;
  color: #000000;
  background: #ab9ff2;
  box-shadow: none;
  font-size: 13px;
}

.runtime-panel .panel-primary-button svg { width: 17px; height: 17px; }
.runtime-panel .panel-danger-button { color: #ffb9c3; background: rgba(255, 91, 116, 0.1); box-shadow: none; }
.runtime-panel .panel-hint { margin: 12px 24px 0; font-size: 10px; line-height: 15px; text-align: center; }

.runtime-panel .panel-list { gap: 8px; margin: 0 0 14px; }
.runtime-panel .panel-list > div { border: 1px solid rgba(255, 255, 255, 0.05); background: rgba(5, 5, 8, 0.35); }
.runtime-panel .panel-settings-list > div { display: flex; justify-content: space-between; gap: 14px; }
.runtime-panel .panel-settings-list span { color: #77727f; }

.runtime-panel input,
.runtime-panel textarea,
.runtime-panel select {
  min-height: 48px;
  border-color: rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  background: rgba(5, 5, 8, 0.46);
}

.runtime-panel input:focus,
.runtime-panel textarea:focus,
.runtime-panel select:focus { border-color: #947bea; box-shadow: 0 0 0 3px rgba(148, 123, 234, 0.09); }

.runtime-unlock {
  background: #e2dffe;
}

.runtime-unlock-card {
  box-sizing: border-box;
  width: min(100%, 420px);
  padding: 30px;
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 16px;
  background: #1c1c1c;
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.32);
}

.runtime-unlock-card h1 { color: #faf8ff; font-size: 25px; letter-spacing: -0.025em; }
.runtime-unlock-card input { min-height: 50px; border-color: rgba(255, 255, 255, 0.09); background: #0e0d12; outline: none; }
.runtime-unlock-card input:focus { border-color: #947bea; box-shadow: 0 0 0 3px rgba(148, 123, 234, 0.09); }
.runtime-unlock-card button { min-height: 48px; background: linear-gradient(135deg, #b8a5ff, #9279ee); }

@keyframes wallet-pulse {
  50% { opacity: 0.4; transform: scale(0.78); }
}

@media (max-width: 560px) {
  .spa-view[data-route^="wallet"] { padding: 0; }
  .wallet-shell { height: 100vh; height: 100dvh; min-height: 0; border: 0; border-radius: 0; }
  .wallet-content { padding: 12px 16px 10px; }
  .wallet-balance-card { min-height: 210px; padding: 24px 22px; }
  .wallet-topbar { grid-template-columns: 1fr auto; padding: 0 16px; }
  .wallet-address-button { display: none; }
  .runtime-panel-backdrop { align-items: stretch; padding: 0; }
  .runtime-panel { max-height: none; border-radius: 0; }
}

@media (min-width: 640px) {
  .runtime-panel-backdrop {
    align-items: stretch;
    padding: 0;
  }

  .runtime-panel {
    border-radius: 0;
  }
}

/* Wallet shell aligned to the installed Phantom extension reference. */
.app-loading {
  box-sizing: border-box;
  min-height: 100vh;
  padding: 24px;
  background: #e2dffe;
}

.app-loading-shell {
  box-sizing: border-box;
  width: min(420px, calc(100vw - 48px));
  height: min(625px, calc(100vh - 48px));
  min-height: 360px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  color: #eeeeee;
  background: #1c1c1c;
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.32);
}

.app-loading-brand {
  width: 54px;
  height: 54px;
  display: grid;
  place-items: center;
  margin-bottom: 26px;
  border-radius: 17px;
  color: #1c1c1c;
  background: #ab9ff2;
  box-shadow: 0 12px 32px rgba(171, 159, 242, 0.24);
}

.app-loading-brand svg { width: 34px; height: 34px; }

.app-loading-spinner {
  width: 28px;
  height: 28px;
  box-sizing: border-box;
  margin-bottom: 18px;
  border: 3px solid rgba(171, 159, 242, 0.2);
  border-top-color: #ab9ff2;
  border-radius: 50%;
  animation: wallet-loader-spin 800ms linear infinite;
}

.app-loading-shell strong { font-size: 15px; font-weight: 600; }
.app-loading-shell span { margin-top: 7px; color: #777777; font-size: 12px; }
.app-loading-failed { height: auto; min-height: 180px; padding: 32px; text-align: center; }
.app-loading-error { color: #eeeeee; }

.spa-view[data-route^="wallet"] {
  box-sizing: border-box;
  padding: 24px;
  overflow: hidden;
  background: #e2dffe;
}

.wallet-shell {
  width: min(420px, calc(100vw - 48px));
  height: min(625px, calc(100vh - 48px));
  min-height: 420px;
  grid-template-rows: 64px minmax(0, 1fr) 64px;
  border-radius: 16px;
  background: #1c1c1c;
}

.wallet-topbar {
  min-height: 64px;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  padding: 0 16px;
  border-bottom: 0;
}

.wallet-profile { gap: 10px; }
.wallet-avatar { width: 32px; height: 32px; }
.wallet-identity { gap: 1px; }
.wallet-identity strong { color: #eeeeee; font-size: 13px; line-height: 17px; }
.wallet-identity > span { display: flex; align-items: center; gap: 5px; }
.wallet-account-copy { cursor: pointer; }
.wallet-account-copy:hover small, .wallet-account-copy:hover svg { color: #c4b8ff; }
.wallet-identity small { color: #eeeeee; font-size: 13px; font-weight: 600; line-height: 17px; }
.wallet-identity svg { width: 13px; height: 13px; color: #b4b4b4; }

.wallet-header-actions { display: flex; align-items: center; gap: 2px; }
.wallet-icon-button {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  color: #b4b4b4;
}
.wallet-icon-button svg { width: 18px; height: 18px; }

.wallet-content {
  padding: 0 0 24px;
  scrollbar-width: none;
}

.wallet-welcome { padding: 4px 20px 0; }
.wallet-welcome > img { width: 249px; height: 96px; }
.wallet-welcome h1 {
  margin: 14px 0 5px;
  color: #eeeeee;
  font-size: 20px;
  font-weight: 600;
  line-height: 26px;
}
.wallet-welcome > p { color: #b4b4b4; font-size: 14px; line-height: 20px; }

.wallet-onramp-actions { gap: 12px; margin-top: 18px; }
.wallet-onramp-actions button {
  min-height: 48px;
  border-radius: 24px;
  font-size: 14px;
  font-weight: 600;
}
.wallet-onramp-actions button:last-child { background: #222222; }

.wallet-actions {
  grid-template-columns: repeat(4, minmax(88px, 1fr));
  gap: 8px;
  margin: 40px 20px 0;
  overflow: visible;
}
.wallet-actions button {
  min-height: 82px;
  gap: 8px;
  padding: 12px 4px 10px;
  border: 0;
  border-radius: 20px;
  color: #b4b4b4;
  background: #232323;
}
.wallet-actions button:hover { transform: none; background: #292929; }
.wallet-actions button span { width: 30px; height: 30px; color: #ab9ff2; }
.wallet-actions svg { width: 24px; height: 24px; }
.wallet-actions strong { font-size: 13px; font-weight: 500; }

.wallet-assets-card { margin-top: 28px; }
.wallet-assets-card > header {
  justify-content: space-between;
  min-height: 42px;
  margin: 0;
  padding: 0 20px;
}
.wallet-asset-tabs { gap: 24px; }
.wallet-asset-tabs button { color: #b4b4b4 !important; font-size: 15px !important; font-weight: 500 !important; }
.wallet-asset-tabs button.is-active { color: #eeeeee !important; }
.wallet-token-list { display: grid; }
.wallet-portfolio-empty {
  min-height: 250px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 30px 28px 42px;
  box-sizing: border-box;
  text-align: center;
}
.wallet-portfolio-empty img { width: 91px; height: 91px; display: block; margin-bottom: 20px; border-radius: 14px; }
.wallet-portfolio-empty strong { color: #eeeeee; font-size: 15px; font-weight: 600; line-height: 20px; }
.wallet-portfolio-empty p { max-width: 260px; margin: 7px 0 0; color: #777777; font-size: 13px; line-height: 18px; }
.wallet-token-row {
  min-height: 74px;
  grid-template-columns: 40px minmax(0, 1fr) auto;
  gap: 12px;
  padding: 10px 20px;
  border-radius: 0;
  background: transparent;
}
.wallet-token-row:hover { border-color: transparent; background: #222222; }
.wallet-token-icon {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  overflow: hidden;
  border-radius: 50%;
  color: #ffffff;
  background: #353535;
  font-size: 14px;
}
.wallet-token-icon img { width: 100%; height: 100%; display: block; object-fit: cover; }
.wallet-token-icon-hyperevm { background: linear-gradient(145deg, #2ad7ba, #174c50); }
.wallet-token-copy,
.wallet-token-value { min-width: 0; display: grid; gap: 5px; }
.wallet-token-copy > span { min-width: 0; display: flex; align-items: center; gap: 5px; }
.wallet-token-copy strong,
.wallet-token-value strong { overflow: hidden; color: #eeeeee; font-size: 14px; font-weight: 600; text-overflow: ellipsis; white-space: nowrap; }
.wallet-token-copy small,
.wallet-token-value small { color: #777777; font-size: 13px; line-height: 16px; }
.wallet-token-value { text-align: right; }
.wallet-verified {
  width: 15px;
  height: 15px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  border-radius: 50%;
  color: #1c1c1c;
  background: #ab9ff2;
  font-size: 9px;
  font-style: normal;
  font-weight: 800;
}

.wallet-bottom-nav {
  min-height: 64px;
  padding: 5px 28px max(5px, env(safe-area-inset-bottom));
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  background: #1c1c1c;
}
.wallet-bottom-nav button {
  display: grid;
  place-items: center;
  padding: 0;
  border-radius: 50%;
  color: #777777;
}
.wallet-bottom-nav button.is-active { color: #ab9ff2; }
.wallet-bottom-nav svg { width: 24px; height: 24px; }

.runtime-panel-backdrop {
  position: absolute;
  z-index: 30;
  inset: 0;
  display: block;
  padding: 0;
  background: #1c1c1c;
}
.runtime-panel {
  width: 100%;
  height: 100%;
  max-height: none;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  margin: 0;
  padding: 0 16px 16px;
  border: 0;
  border-radius: 0;
  background: #1c1c1c;
}
.runtime-panel > .wallet-page-header {
  min-height: 54px;
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr) 40px;
  align-items: center;
  gap: 8px;
  margin: 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}
.runtime-panel .wallet-page-header h2 { margin: 0; font-size: 17px; font-weight: 600; text-align: center; }
.wallet-page-back {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  padding: 0 !important;
  border-radius: 50% !important;
  color: #eeeeee !important;
  background: transparent !important;
}
.wallet-page-back:hover { background: #292929 !important; }
.wallet-page-back svg { width: 21px; height: 21px; }
.receive-content { flex: 1; overflow: auto; padding: 18px 0 10px; }
.receive-asset-selector {
  width: 100%;
  min-height: 62px;
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr) 20px;
  align-items: center;
  gap: 12px;
  margin: 0 0 22px;
  padding: 10px 14px;
  border: 1px solid #343434 !important;
  border-radius: 14px;
  color: #eeeeee !important;
  text-align: left;
  background: #242424 !important;
  cursor: pointer;
}
.receive-asset-selector:hover { background: #292929 !important; }
.receive-asset-selector > span:nth-child(2) { min-width: 0; display: grid; gap: 3px; }
.receive-asset-selector strong { font-size: 14px; font-weight: 600; }
.receive-asset-selector small { color: #888888; font-size: 12px; }
.receive-asset-selector > svg { width: 18px; height: 18px; color: #777777; }
.receive-asset-icon {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  overflow: hidden;
  border-radius: 50%;
  color: #ffffff;
  background: #383838;
  font-size: 14px;
  font-weight: 700;
}
.receive-asset-icon img { width: 100%; height: 100%; display: block; object-fit: cover; }
.runtime-panel .runtime-qr {
  box-sizing: content-box;
  width: 160px;
  height: 160px;
  position: relative;
  margin: 0 auto;
  padding: 8px;
  border: 0;
  border-radius: 6px;
  background: #ffffff;
  box-shadow: none;
}
.runtime-panel .runtime-qr canvas { width: 160px; height: 160px; }
.runtime-panel .runtime-qr > small { display: none; }
.runtime-panel .runtime-qr.is-unavailable { display: grid; place-items: center; color: #555555; background: #eeeeee; }
.runtime-panel .runtime-qr.is-unavailable > small { display: block; }
.runtime-panel .qr-solana-badge {
  width: 48px;
  height: 48px;
  gap: 3px;
  border: 4px solid #1c1c1c;
  border-radius: 50%;
  background: #050507;
}
.runtime-panel .qr-solana-badge i { width: 24px; height: 4px; }
.receive-content h3 { margin: 20px 0 10px; color: #eeeeee; font-size: 16px; font-weight: 600; text-align: center; }
.receive-address-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  border: 1px solid #3a3a3a;
  border-radius: 6px;
  overflow: hidden;
  background: #292929;
}
.runtime-panel .receive-address-card .address {
  min-height: 48px;
  display: grid;
  place-items: center;
  padding: 14px 22px;
  border: 0;
  border-radius: 0;
  color: #eeeeee;
  background: transparent;
  font-family: Inter, Roboto, Arial, sans-serif;
  font-size: 14px;
  font-weight: 500;
  line-height: 20px;
  text-align: center;
}
.receive-address-card > button {
  width: 100%;
  min-height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 8px 12px;
  border-top: 1px solid #3a3a3a;
  border-left: 0;
  border-radius: 0;
  color: #eeeeee;
  background: #292929;
}
.receive-address-card > button:hover { background: #333333; }
.receive-address-card svg { width: 16px; height: 16px; }
.receive-address-card strong { font-size: 12px; }
.runtime-panel .panel-hint { margin: 16px 2px 0; color: #777777; font-size: 14px; line-height: 20px; text-align: left; }
.runtime-panel > footer { margin-top: auto; padding-top: 12px; }
.runtime-panel footer .panel-primary-button {
  min-height: 48px;
  margin: 0;
  border-radius: 24px;
  color: #000000;
  background: #ab9ff2;
  font-size: 14px;
  font-weight: 600;
}

.asset-modal-backdrop {
  position: absolute;
  z-index: 38;
  inset: 0;
  display: grid;
  align-items: end;
  padding: 20px;
  background: rgba(0, 0, 0, 0.68);
  backdrop-filter: blur(3px);
}
.asset-modal {
  width: 100%;
  max-height: calc(100% - 36px);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  box-sizing: border-box;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 22px;
  color: #eeeeee;
  background: #242424;
  box-shadow: 0 26px 70px rgba(0, 0, 0, 0.52);
}
.asset-modal > header {
  min-height: 62px;
  display: grid;
  grid-template-columns: 1fr 36px;
  align-items: center;
  padding: 0 16px 0 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}
.asset-modal h2 { margin: 0; font-size: 17px; font-weight: 600; }
.asset-modal header button {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  padding: 0;
  border: 0;
  border-radius: 50%;
  color: #b4b4b4;
  background: transparent;
  cursor: pointer;
}
.asset-modal header button:hover { background: #303030; }
.asset-modal header svg { width: 19px; height: 19px; }
.asset-modal-search {
  min-height: 44px;
  display: grid;
  grid-template-columns: 20px minmax(0, 1fr);
  align-items: center;
  gap: 9px;
  margin: 14px 16px 8px;
  padding: 0 13px;
  border: 1px solid #3a3a3a;
  border-radius: 12px;
  color: #777777;
  background: #1c1c1c;
}
.asset-modal-search:focus-within { border-color: #756aa9; box-shadow: 0 0 0 2px rgba(171, 159, 242, 0.1); }
.asset-modal-search svg { width: 18px; height: 18px; }
.asset-modal-search input {
  min-width: 0;
  padding: 0;
  border: 0;
  outline: 0;
  color: #eeeeee;
  background: transparent;
  font: inherit;
  font-size: 14px;
}
.asset-modal-search input::placeholder { color: #777777; }
.asset-modal-list { min-height: 120px; overflow: auto; padding: 4px 8px 14px; scrollbar-width: thin; scrollbar-color: #4a4a4a transparent; }
.asset-modal-row {
  width: 100%;
  min-height: 66px;
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border: 0;
  border-radius: 13px;
  color: #eeeeee;
  text-align: left;
  background: transparent;
  cursor: pointer;
}
.asset-modal-row:hover { background: #2d2d2d; }
.asset-modal-row.is-selected { background: rgba(171, 159, 242, 0.1); }
.asset-modal-row[aria-disabled="true"] { opacity: 0.72; }
.asset-modal-copy { min-width: 0; display: grid; gap: 4px; }
.asset-modal-copy strong { overflow: hidden; font-size: 14px; font-weight: 600; text-overflow: ellipsis; white-space: nowrap; }
.asset-modal-copy small { color: #888888; font-size: 12px; }
.asset-modal-row > svg { width: 17px; height: 17px; color: #777777; }
.asset-modal-check {
  width: 21px;
  height: 21px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #171717;
  background: #ab9ff2;
  font-size: 12px;
  font-weight: 800;
}
.asset-modal-soon { color: #777777; font-size: 11px; font-weight: 600; }
.asset-modal-empty { padding: 34px 16px; color: #888888; font-size: 14px; text-align: center; }

.wallet-modal-backdrop {
  position: absolute;
  z-index: 40;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 22px;
  background: rgba(5, 3, 10, 0.76);
  backdrop-filter: blur(6px);
}
.wallet-modal {
  position: relative;
  isolation: isolate;
  box-sizing: border-box;
  width: 100%;
  max-width: 336px;
  overflow: hidden;
  padding: 0 22px 22px;
  border: 1px solid rgba(199, 187, 255, 0.2);
  border-radius: 22px;
  text-align: center;
  background: linear-gradient(180deg, #292532 0%, #202023 68%);
  box-shadow: 0 26px 72px rgba(0, 0, 0, 0.58), 0 0 38px rgba(171, 159, 242, 0.08);
}
.wallet-modal-close { position: absolute; z-index: 8; top: 12px; right: 12px; width: 34px; height: 34px; display: grid; place-items: center; padding: 0; border: 1px solid rgba(255,255,255,.08); border-radius: 50%; color: rgba(255,255,255,.74); background: rgba(18,14,27,.32); cursor: pointer; backdrop-filter: blur(8px); }
.wallet-modal-close:hover { color: #fff; background: rgba(255,255,255,.1); }
.wallet-modal-close svg { width: 17px; height: 17px; }
.wallet-modal-scene { position: relative; height: 148px; margin: 0 -22px 20px; overflow: hidden; border-bottom: 1px solid rgba(255,255,255,.06); border-radius: 21px 21px 0 0; background: radial-gradient(circle at 50% 48%, rgba(211,202,255,.2), transparent 34%), linear-gradient(145deg, #493d68 0%, #332c48 52%, #272331 100%); }
.wallet-modal-scene::after { content: ""; position: absolute; left: 50%; bottom: -68px; width: 270px; height: 108px; border: 1px solid rgba(255,255,255,.06); border-radius: 50%; transform: translateX(-50%); }
.wallet-modal-orbit { position: absolute; border-radius: 999px; background: rgba(255,255,255,.08); transform: rotate(-28deg); }
.wallet-modal-orbit-one { width: 160px; height: 12px; left: -48px; top: 36px; }
.wallet-modal-orbit-two { width: 130px; height: 9px; right: -42px; bottom: 35px; background: rgba(255,255,201,.18); }
.wallet-modal-mascot {
  position: relative;
  width: 108px;
  height: 108px;
  display: grid;
  place-items: center;
  margin: 18px auto 0;
  color: #c5baff;
}
.wallet-modal-mascot svg { position: relative; z-index: 2; width: 82px; height: 82px; filter: drop-shadow(0 14px 18px rgba(9,5,22,.4)); animation: wallet-mascot-float 3s ease-in-out infinite; }
.wallet-modal-glow { position: absolute; inset: 3px; border-radius: 50%; background: radial-gradient(circle, rgba(202,190,255,.38), rgba(171,159,242,0) 68%); filter: blur(5px); }
.wallet-modal-star { position: absolute; z-index: 4; color: #ffffc9; line-height: 1; animation: wallet-star-pulse 2.2s ease-in-out infinite; }
.wallet-modal-star-one { left: 58px; top: 36px; font-size: 14px; }
.wallet-modal-star-two { right: 62px; top: 55px; color: #ffc7cf; font-size: 10px; animation-delay: -.8s; }
.wallet-modal-star-three { right: 47px; bottom: 25px; color: #b8ddff; font-size: 9px; animation-delay: -1.4s; }
.wallet-modal-copy { padding: 0 8px; }
.wallet-modal-kicker { display: inline-flex; align-items: center; min-height: 24px; padding: 0 10px; border: 1px solid rgba(171,159,242,.2); border-radius: 999px; color: #b9acf8; background: rgba(171,159,242,.08); font-size: 9px; font-weight: 700; letter-spacing: .16em; }
.wallet-modal h2 { margin: 12px 0 0; color: #fff; font-size: 20px; font-weight: 650; line-height: 26px; letter-spacing: -.02em; }
.wallet-modal p { max-width: 275px; margin: 9px auto 22px; color: #aaa5b3; font-size: 13px; line-height: 19px; }
.wallet-modal-primary {
  width: 100%;
  min-height: 48px;
  border: 0;
  border-radius: 24px;
  color: #111014 !important;
  background: linear-gradient(135deg, #c7bdff, #a99af3);
  cursor: pointer;
  font-size: 14px;
  font-weight: 650;
  box-shadow: 0 10px 28px rgba(113,91,204,.24);
  transition: filter 160ms ease, transform 160ms ease;
}
.wallet-modal-primary:hover { filter: brightness(1.08); transform: translateY(-1px); }
.wallet-modal-primary:active { transform: translateY(0); }

@keyframes wallet-mascot-float {
  0%, 100% { transform: translateY(0) rotate(-5deg); }
  50% { transform: translateY(-6px) rotate(-1deg); }
}
@keyframes wallet-star-pulse {
  0%, 100% { opacity: .45; transform: scale(.8) rotate(0); }
  50% { opacity: 1; transform: scale(1.15) rotate(45deg); }
}

@keyframes wallet-loader-spin { to { transform: rotate(360deg); } }

@media (max-width: 560px) {
  .spa-view[data-route^="wallet"],
  .app-loading { padding: 12px; }
  .wallet-shell,
  .app-loading-shell {
    width: min(420px, calc(100vw - 24px));
    height: min(625px, calc(100vh - 24px));
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
  }
  .wallet-topbar { grid-template-columns: minmax(0, 1fr) auto; padding: 0 12px; }
  .wallet-address-button { display: none; }
  .wallet-actions { grid-template-columns: repeat(4, minmax(0, 1fr)); margin-inline: 12px; }
  .wallet-assets-card > header,
  .wallet-token-row { padding-inline: 14px; }
}

@media (prefers-reduced-motion: reduce) {
  .app-loading-spinner { animation-duration: 1.8s; }
}
