/* SUNDEX Wallet v2 — product-first portfolio workspace. */
body:has(.wallet-premium) {
  background: #020407;
}

body:has(.wallet-premium) .platform-shell {
  background:
    radial-gradient(ellipse 70% 48% at 48% -8%, rgba(62, 85, 117, 0.14), transparent 72%),
    #020407;
}

body:has(.wallet-premium) .platform-main {
  padding: 30px 32px 54px;
  scrollbar-gutter: stable;
}

.wallet-premium {
  --sw-ink: #f2f5f9;
  --sw-muted: rgba(210, 220, 233, 0.62);
  --sw-dim: rgba(210, 220, 233, 0.4);
  --sw-surface: #070b11;
  --sw-surface-raised: #0b1018;
  --sw-ease: cubic-bezier(0.23, 1, 0.32, 1);
  display: grid;
  width: min(1360px, 100%);
  grid-template-columns: minmax(0, 1.55fr) minmax(300px, 0.65fr);
  gap: 20px !important;
}

.wallet-premium > * {
  min-width: 0;
  margin-top: 0 !important;
}

.wallet-premium .wallet-vault {
  position: relative;
  grid-column: 1 / -1;
  display: grid;
  min-height: 326px;
  grid-template-columns: minmax(0, 1.06fr) minmax(310px, 0.74fr);
  gap: clamp(36px, 6vw, 90px);
  padding: clamp(36px, 4vw, 52px);
  overflow: hidden;
  border: 6px solid transparent !important;
  border-radius: 42px;
  background:
    radial-gradient(ellipse 62% 92% at 14% 32%, rgba(73, 103, 144, 0.15), transparent 72%) padding-box,
    linear-gradient(155deg, #080d14, #03060a 72%) padding-box,
    linear-gradient(116deg, #e2e8f0 0%, #6e7a89 8%, #202833 21%, #919caa 43%, #272f3a 66%, #111720 85%, #a6b0bd 100%) border-box !important;
  box-shadow:
    0 44px 100px rgba(0, 0, 0, 0.48),
    inset 0 1px 0 rgba(255, 255, 255, 0.08),
    inset 0 -24px 60px rgba(0, 0, 0, 0.28) !important;
}

.wallet-premium .wallet-vault::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(108deg, rgba(255, 255, 255, 0.045), transparent 24%),
    radial-gradient(ellipse 34% 42% at 84% 20%, rgba(187, 210, 240, 0.055), transparent 74%);
}

.wallet-premium .wallet-vault::after {
  content: "";
  position: absolute;
  top: 5px;
  right: 6%;
  left: 6%;
  height: 1px;
  pointer-events: none;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.34), transparent);
}

.wallet-premium .wallet-vault-main {
  position: relative;
  z-index: 1;
  justify-content: center;
}

.wallet-premium .wallet-eyebrow {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--sw-muted);
  font-size: 0;
  font-weight: 620;
  letter-spacing: 0;
  text-transform: none;
}

.wallet-premium .wallet-eyebrow::after {
  content: "Portfolio";
  font-size: 15px;
  letter-spacing: -0.01em;
}

.wallet-premium .wallet-eyebrow i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #a6d2b5;
  box-shadow: 0 0 14px rgba(166, 210, 181, 0.38);
}

.wallet-premium .wallet-balance {
  margin-top: 24px;
  color: var(--sw-ink);
  font-size: clamp(58px, 6.4vw, 82px);
  font-weight: 520;
  line-height: 0.94;
  letter-spacing: -0.04em;
}

.wallet-premium .wallet-change-row {
  gap: 12px;
  margin-top: 22px;
}

.wallet-premium .wallet-change-chip {
  min-height: 32px;
  padding: 0 11px;
  border: 0;
  border-radius: 999px;
  color: #9fd5b4;
  background: rgba(116, 179, 139, 0.12);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
  font-size: 11px;
}

.wallet-premium .wallet-change-chip.is-negative {
  border: 0;
  color: #e59aa5;
  background: rgba(195, 96, 110, 0.12);
}

.wallet-premium .wallet-change-copy {
  color: var(--sw-dim);
  font-size: 12px;
}

.wallet-premium .wallet-vault-meta {
  gap: 8px;
  margin-top: 25px;
}

.wallet-premium .wallet-meta-link {
  min-height: 34px;
  padding: 0 11px;
  border: 0;
  border-radius: 10px;
  color: rgba(224, 232, 242, 0.72);
  background: rgba(229, 236, 245, 0.055);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.055);
  transition: color 160ms ease, background-color 170ms ease, transform 150ms var(--sw-ease);
}

.wallet-premium .wallet-allocation-card {
  position: relative;
  z-index: 1;
  align-self: stretch;
  padding: 24px;
  border: 0;
  border-radius: 26px;
  background:
    radial-gradient(circle at 84% 16%, rgba(73, 104, 146, 0.11), transparent 32%),
    #05080d;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.055),
    inset 0 0 0 1px rgba(255, 255, 255, 0.025),
    inset 0 18px 44px rgba(0, 0, 0, 0.25),
    0 18px 42px rgba(0, 0, 0, 0.28);
}

.wallet-premium .wallet-allocation-head {
  padding-bottom: 18px;
  border-bottom: 0;
}

.wallet-premium .wallet-allocation-head span {
  color: var(--sw-muted);
  font-size: 12px;
  font-weight: 590;
  letter-spacing: -0.01em;
  text-transform: none;
}

.wallet-premium .wallet-allocation-head strong {
  color: rgba(239, 244, 250, 0.84);
  font-size: 11px;
  font-weight: 610;
}

.wallet-premium .wallet-composition-bar {
  height: 6px;
  margin: 6px 0 18px;
  background: rgba(255, 255, 255, 0.055);
}

.wallet-premium .wallet-holding-list {
  gap: 3px;
}

.wallet-premium .wallet-holding-row {
  min-height: 50px;
  padding: 7px 8px;
  border: 0;
  border-radius: 13px;
  transition: background-color 160ms ease;
}

.wallet-premium .wallet-holding-asset img {
  width: 30px;
  height: 30px;
}

.wallet-premium .wallet-holding-asset strong,
.wallet-premium .wallet-holding-value strong {
  font-size: 12px;
  font-weight: 620;
}

.wallet-premium .wallet-holding-asset span,
.wallet-premium .wallet-holding-value span {
  color: var(--sw-dim);
  font-size: 10px;
}

.wallet-premium .wallet-chart-panel {
  position: relative;
  grid-column: 1;
  min-height: 328px;
  padding: 26px 28px !important;
  border: 0 !important;
  border-radius: 28px !important;
  background:
    radial-gradient(ellipse 54% 70% at 14% 84%, rgba(57, 83, 118, 0.1), transparent 72%),
    var(--sw-surface) !important;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.045),
    inset 0 0 0 1px rgba(255, 255, 255, 0.025),
    0 28px 64px rgba(0, 0, 0, 0.28) !important;
}

.wallet-premium .wallet-chart-panel:not(:has(.recharts-area))::after {
  content: "Performance will appear as your portfolio moves";
  position: absolute;
  right: 28px;
  bottom: 27px;
  left: 28px;
  display: grid;
  height: 136px;
  place-items: center;
  border-radius: 21px;
  color: rgba(210, 220, 233, 0.42);
  background:
    radial-gradient(ellipse 42% 90% at 50% 110%, rgba(98, 132, 176, 0.1), transparent 74%),
    rgba(255, 255, 255, 0.012);
  font-size: 12px;
  font-weight: 520;
  letter-spacing: -0.01em;
  pointer-events: none;
}

.wallet-premium .wallet-panel-head {
  margin-bottom: 20px;
}

.wallet-premium .wallet-panel-kicker {
  display: none;
}

.wallet-premium .wallet-panel-title {
  margin-top: 0;
  color: var(--sw-ink);
  font-size: 18px;
  font-weight: 630;
  letter-spacing: -0.02em;
}

.wallet-premium .wallet-range-control {
  gap: 3px;
  padding: 4px;
  border: 0;
  border-radius: 13px;
  background: #0d131c;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.045);
}

.wallet-premium .wallet-range-control button {
  min-width: 44px;
  min-height: 34px;
  border-radius: 10px;
  color: rgba(217, 226, 237, 0.48);
  font-size: 11px;
  font-weight: 620;
  transition: color 160ms ease, background-color 170ms ease, box-shadow 180ms ease, transform 140ms var(--sw-ease);
}

.wallet-premium .wallet-range-control button.is-active {
  color: #10161f;
  background: linear-gradient(180deg, #e5eaf0, #98a3b1);
  box-shadow: inset 0 1px 0 #fff, 0 6px 15px rgba(0, 0, 0, 0.32);
}

.wallet-premium .wallet-action-grid {
  grid-column: 2;
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
}

.wallet-premium .wallet-action {
  min-height: 96px;
  padding: 0 22px;
  border: 1px solid rgba(190, 205, 224, 0.1);
  border-radius: 23px;
  color: var(--sw-ink);
  background: linear-gradient(145deg, #222b36, #0b1017 24%, #05080d 72%, #18212c);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.11),
    inset 0 -1px 0 rgba(0, 0, 0, 0.72),
    0 16px 36px rgba(0, 0, 0, 0.26);
  transition: border-color 170ms ease, filter 170ms ease, transform 150ms var(--sw-ease), box-shadow 190ms ease;
}

.wallet-premium .wallet-action:first-child {
  border-color: rgba(255, 255, 255, 0.46);
  color: #10161e;
  background: linear-gradient(145deg, #f0f3f7, #9ba7b5 58%, #d9dfe6);
  box-shadow:
    inset 0 1px 0 #fff,
    inset 0 -1px 0 rgba(26, 34, 44, 0.3),
    0 18px 42px rgba(0, 0, 0, 0.34);
}

.wallet-premium .wallet-action::before {
  display: none;
}

.wallet-premium .wallet-action-copy small {
  display: none;
}

.wallet-premium .wallet-action-copy strong {
  margin-top: 0;
  color: currentColor;
  font-size: 15px;
  font-weight: 650;
}

.wallet-premium .wallet-action-icon {
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 14px;
  color: rgba(229, 237, 247, 0.78);
  background: rgba(255, 255, 255, 0.07);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.07);
}

.wallet-premium .wallet-action:first-child .wallet-action-icon {
  color: #111821;
  background: rgba(14, 20, 28, 0.1);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.32);
}

.wallet-premium > div:last-child {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(320px, 0.65fr) !important;
  gap: 20px !important;
}

.wallet-premium .wallet-panel:not(.wallet-chart-panel) {
  border: 0 !important;
  border-radius: 26px !important;
  background: var(--sw-surface) !important;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.045),
    inset 0 0 0 1px rgba(255, 255, 255, 0.025),
    0 24px 58px rgba(0, 0, 0, 0.24) !important;
}

.wallet-premium .wallet-table-head {
  min-height: 68px;
  padding: 0 22px;
  border-bottom-color: rgba(202, 216, 234, 0.08);
}

.wallet-premium .wallet-table-count {
  color: var(--sw-dim);
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 10px;
  font-weight: 570;
  letter-spacing: 0.02em;
}

.wallet-premium .wallet-asset-row {
  min-height: 64px;
  border-bottom-color: rgba(202, 216, 234, 0.07) !important;
  transition: background-color 160ms ease;
}

.wallet-premium .wallet-asset-icon {
  width: 36px;
  height: 36px;
  padding: 4px;
  border: 0;
  background: #f0f3f6;
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.32);
}

.wallet-premium .wallet-allocation-mini {
  height: 3px;
  background: rgba(255, 255, 255, 0.07);
}

.wallet-premium .wallet-allocation-mini i {
  background: linear-gradient(90deg, #6f8eb9, #d1dfef);
}

.wallet-premium :where(button, a):focus-visible {
  outline: 2px solid rgba(225, 235, 248, 0.9);
  outline-offset: 3px;
}

@media (hover: hover) and (pointer: fine) {
  .wallet-premium .wallet-meta-link:hover {
    color: #f2f6fb;
    background: rgba(225, 234, 245, 0.09);
    transform: translateY(-1px);
  }

  .wallet-premium .wallet-holding-row:hover,
  .wallet-premium .wallet-asset-row:hover {
    background-color: rgba(113, 142, 182, 0.065) !important;
  }

  .wallet-premium .wallet-range-control button:hover {
    color: rgba(245, 248, 252, 0.92);
  }

  .wallet-premium .wallet-action:hover {
    border-color: rgba(200, 215, 234, 0.2);
    filter: brightness(1.08);
    transform: translateY(-1px);
    box-shadow:
      inset 0 1px 0 rgba(255, 255, 255, 0.13),
      0 20px 42px rgba(0, 0, 0, 0.32);
  }

  .wallet-premium .wallet-action:first-child:hover {
    border-color: rgba(255, 255, 255, 0.66);
  }
}

.wallet-premium .wallet-action:active,
.wallet-premium .wallet-range-control button:active,
.wallet-premium .wallet-meta-link:active {
  transform: scale(0.97);
}

@media (max-width: 900px) {
  body:has(.wallet-premium) .platform-main {
    padding: 24px 20px 46px;
  }

  .wallet-premium {
    grid-template-columns: minmax(0, 1fr);
  }

  .wallet-premium .wallet-vault {
    grid-template-columns: minmax(0, 1fr);
    gap: 28px;
  }

  .wallet-premium .wallet-chart-panel,
  .wallet-premium .wallet-action-grid {
    grid-column: 1;
  }

  .wallet-premium .wallet-action-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .wallet-premium .wallet-action {
    min-height: 84px;
    padding: 0 16px;
  }

  .wallet-premium > div:last-child {
    grid-template-columns: minmax(0, 1fr) !important;
  }
}

@media (max-width: 600px) {
  body:has(.wallet-premium) .platform-main {
    padding: 14px 12px 38px;
  }

  .wallet-premium {
    gap: 13px !important;
  }

  .wallet-premium .wallet-vault {
    min-height: 0;
    gap: 24px;
    padding: 28px 20px 20px;
    border-width: 4px !important;
    border-radius: 31px;
  }

  .wallet-premium .wallet-balance {
    margin-top: 20px;
    font-size: 48px;
  }

  .wallet-premium .wallet-change-row {
    flex-wrap: wrap;
    margin-top: 18px;
  }

  .wallet-premium .wallet-allocation-card {
    padding: 18px;
    border-radius: 21px;
  }

  .wallet-premium .wallet-chart-panel {
    min-height: 310px;
    padding: 21px 17px !important;
    border-radius: 23px !important;
  }

  .wallet-premium .wallet-panel-head {
    align-items: flex-start;
    flex-direction: column;
  }

  .wallet-premium .wallet-range-control {
    width: 100%;
  }

  .wallet-premium .wallet-range-control button {
    flex: 1;
    min-height: 38px;
  }

  .wallet-premium .wallet-action-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 7px;
  }

  .wallet-premium .wallet-action {
    min-height: 108px;
    padding: 13px 11px;
    align-items: flex-start;
    flex-direction: column-reverse;
    border-radius: 19px;
  }

  .wallet-premium .wallet-action-copy strong {
    font-size: 13px;
  }

  .wallet-premium .wallet-action-icon {
    width: 36px;
    height: 36px;
    border-radius: 12px;
  }

  .wallet-premium .wallet-panel:not(.wallet-chart-panel) {
    border-radius: 22px !important;
  }

  .wallet-premium .wallet-table-head {
    min-height: 62px;
    padding-inline: 18px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .wallet-premium :where(.wallet-meta-link, .wallet-holding-row, .wallet-range-control button, .wallet-action, .wallet-asset-row) {
    transition-duration: 0.01ms !important;
  }
}
