/* ─── Reset & Variables (Ethena-inspired) ─── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg: #000000;
  --bg-elevated: #080808;
  --bg-card: rgba(255, 255, 255, 0.03);
  --bg-card-hover: rgba(255, 255, 255, 0.06);
  --border: rgba(255, 255, 255, 0.08);
  --border-hover: rgba(255, 255, 255, 0.14);
  --text: #ffffff;
  --text-secondary: rgba(255, 255, 255, 0.5);
  --text-tertiary: rgba(255, 255, 255, 0.35);
  --accent: #ffffff;
  --green: #86efac;
  --radius: 16px;
  --radius-sm: 10px;
  --radius-pill: 100px;
  --nav-height: 56px;
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-serif: 'Instrument Serif', Georgia, serif;
  --transition: 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  --container: 1280px;
  --container-padding: 32px;
}

html {
  scroll-behavior: auto;
  -webkit-font-smoothing: antialiased;
}

html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }

body {
  font-family: var(--font-sans);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
}

body.preloader-active,
body.auth-gate-active {
  overflow: hidden;
}

/* ─── Auth gate ─── */
.auth-gate {
  position: fixed;
  inset: 0;
  z-index: 11000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.auth-gate.is-open {
  opacity: 1;
  pointer-events: auto;
}

.auth-gate[hidden] {
  display: none;
}

.auth-gate__backdrop {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 70% 55% at 50% 20%, rgba(255, 255, 255, 0.55) 0%, transparent 62%),
    rgba(246, 246, 248, 0.72);
  -webkit-backdrop-filter: blur(18px) saturate(1.15);
  backdrop-filter: blur(18px) saturate(1.15);
}

.auth-gate__panel {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 440px;
  max-height: min(92dvh, 900px);
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 36px 36px 32px;
  background: rgba(255, 255, 255, 0.78);
  -webkit-backdrop-filter: blur(28px) saturate(1.2);
  backdrop-filter: blur(28px) saturate(1.2);
  border: 1px solid rgba(255, 255, 255, 0.9);
  border-radius: 28px;
  box-shadow:
    0 30px 80px rgba(15, 15, 20, 0.12),
    0 2px 8px rgba(15, 15, 20, 0.04),
    inset 0 1px 0 rgba(255, 255, 255, 0.95);
  transform: translateY(14px) scale(0.98);
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  scrollbar-width: thin;
  scrollbar-color: rgba(10, 10, 10, 0.18) transparent;
}

.auth-gate__panel::-webkit-scrollbar {
  width: 6px;
}

.auth-gate__panel::-webkit-scrollbar-track {
  background: transparent;
  margin: 16px 0;
}

.auth-gate__panel::-webkit-scrollbar-thumb {
  background: rgba(10, 10, 10, 0.14);
  border-radius: 999px;
  border: 1px solid transparent;
  background-clip: padding-box;
}

.auth-gate__panel::-webkit-scrollbar-thumb:hover {
  background: rgba(10, 10, 10, 0.26);
  background-clip: padding-box;
}

.auth-gate__panel::-webkit-scrollbar-corner {
  background: transparent;
}

.auth-gate.is-open .auth-gate__panel {
  transform: translateY(0) scale(1);
}

.auth-gate__brand {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 28px;
  color: #0a0a0a;
  font-size: 0.92rem;
  font-weight: 500;
  letter-spacing: -0.01em;
}

.auth-gate__brand img {
  width: 18px;
  height: 14px;
  object-fit: contain;
}

.auth-gate__tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px;
  padding: 4px;
  margin-bottom: 28px;
  border-radius: var(--radius-pill);
  background: rgba(0, 0, 0, 0.05);
  border: 1px solid rgba(0, 0, 0, 0.04);
}

.auth-gate__tab {
  padding: 10px 14px;
  border-radius: var(--radius-pill);
  font-size: 0.82rem;
  font-weight: 500;
  color: rgba(10, 10, 10, 0.45);
  transition: color var(--transition), background var(--transition), box-shadow var(--transition);
}

.auth-gate__tab.is-active {
  color: #0a0a0a;
  background: #fff;
  box-shadow: 0 1px 4px rgba(15, 15, 20, 0.08);
}

.auth-gate__tab:hover:not(.is-active) {
  color: rgba(10, 10, 10, 0.72);
}

.auth-gate__form {
  display: none;
}

.auth-gate__form.is-active {
  display: block;
}

.auth-gate__title {
  font-family: var(--font-serif);
  font-size: clamp(1.85rem, 4vw, 2.35rem);
  font-weight: 400;
  letter-spacing: -0.02em;
  line-height: 1.15;
  color: #0a0a0a;
  margin-bottom: 8px;
}

.auth-gate__lead {
  font-size: 0.92rem;
  line-height: 1.55;
  color: rgba(10, 10, 10, 0.48);
  margin-bottom: 24px;
}

.auth-gate__field {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 14px;
}

.auth-gate__field span {
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: rgba(10, 10, 10, 0.42);
}

.auth-gate__field input {
  width: 100%;
  padding: 14px 16px;
  border-radius: 14px;
  border: 1px solid rgba(0, 0, 0, 0.08);
  background: rgba(255, 255, 255, 0.72);
  color: #0a0a0a;
  font-family: var(--font-sans);
  font-size: 0.95rem;
  outline: none;
  transition: border-color var(--transition), box-shadow var(--transition), background var(--transition);
}

.auth-gate__field input::placeholder {
  color: rgba(10, 10, 10, 0.28);
}

.auth-gate__field input:focus {
  border-color: rgba(0, 0, 0, 0.22);
  background: #fff;
  box-shadow: 0 0 0 4px rgba(0, 0, 0, 0.04);
}

.auth-gate__error {
  margin: 4px 0 12px;
  padding: 10px 12px;
  border-radius: 12px;
  background: rgba(220, 38, 38, 0.08);
  color: #b91c1c;
  font-size: 0.82rem;
  line-height: 1.4;
}

.auth-gate__error.is-success {
  background: rgba(5, 150, 105, 0.1);
  color: #047857;
}

.auth-gate__payment {
  margin: 8px 0 16px;
  padding: 16px 16px 14px;
  border-radius: 16px;
  border: 1px solid rgba(0, 0, 0, 0.07);
  background: rgba(255, 255, 255, 0.55);
}

.auth-gate__payment-head {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
  color: #0a0a0a;
}

.auth-gate__payment-head strong {
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.auth-gate__payment-icon {
  flex-shrink: 0;
  color: rgba(10, 10, 10, 0.72);
}

.auth-gate__payment-copy {
  font-size: 0.84rem;
  line-height: 1.5;
  color: rgba(10, 10, 10, 0.5);
  margin-bottom: 14px;
}

.auth-gate__payment-rows {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.auth-gate__payment-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font-size: 0.9rem;
  color: rgba(10, 10, 10, 0.72);
}

.auth-gate__payment-row--total {
  padding-top: 10px;
  border-top: 1px solid rgba(0, 0, 0, 0.08);
  color: #0a0a0a;
  font-weight: 500;
}

.auth-gate__payment-row--total strong {
  font-weight: 600;
  letter-spacing: -0.01em;
}

.auth-gate__payment-secure {
  display: flex;
  align-items: center;
  gap: 7px;
  margin-top: 14px;
  font-size: 0.78rem;
  font-style: italic;
  color: rgba(10, 10, 10, 0.45);
}

.auth-gate__payment-secure svg {
  flex-shrink: 0;
  color: #059669;
}

.auth-gate__footnote {
  margin-top: 14px;
  text-align: center;
  font-size: 0.75rem;
  line-height: 1.45;
  color: rgba(10, 10, 10, 0.4);
}

.auth-gate__footnote-link,
.auth-gate__footnote a {
  color: rgba(10, 10, 10, 0.72);
  text-decoration: underline;
  text-underline-offset: 2px;
  transition: color var(--transition);
  background: none;
  border: none;
  padding: 0;
  font: inherit;
  cursor: pointer;
}

.auth-gate__footnote-link:hover,
.auth-gate__footnote a:hover {
  color: #0a0a0a;
}

.auth-gate__submit {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  margin-top: 8px;
  padding: 14px 22px;
  border-radius: var(--radius-pill);
  background: #0a0a0a;
  color: #fff;
  font-size: 0.92rem;
  font-weight: 500;
  letter-spacing: -0.01em;
  transition: opacity var(--transition), transform var(--transition);
}

.auth-gate__submit:hover:not(:disabled) {
  opacity: 0.88;
  transform: translateY(-1px);
}

.auth-gate__submit:disabled,
.auth-gate__submit.is-busy {
  opacity: 0.55;
  cursor: wait;
  transform: none;
}

@media (max-width: 520px) {
  .auth-gate {
    padding: 16px;
    align-items: flex-end;
  }

  .auth-gate__panel {
    padding: 28px 22px 24px;
    border-radius: 24px 24px 18px 18px;
    max-width: none;
    max-height: min(92dvh, 900px);
    overflow-y: auto;
  }
}

/* ─── Site preloader ─── */
.site-preloader {
  position: fixed;
  inset: 0;
  z-index: 12000;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: all;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.45s ease, visibility 0.45s ease;
}

.site-preloader.is-visible {
  opacity: 1;
  visibility: visible;
}

.site-preloader__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.88);
}

.site-preloader__lottie {
  position: relative;
  z-index: 1;
  width: min(420px, 82vw);
  aspect-ratio: 1280 / 720;
  overflow: hidden;
  pointer-events: none;
}

.site-preloader__lottie svg {
  width: 100% !important;
  height: 100% !important;
  transform: scale(1.08);
  transform-origin: center center;
}

a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--container-padding, 32px);
}

/* Noise overlay */
.noise {
  position: fixed;
  inset: 0;
  z-index: 9999;
  pointer-events: none;
  opacity: 0.025;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ─── Typography ─── */
.display-heading {
  font-family: var(--font-serif);
  font-size: clamp(2.2rem, 5vw, 3.5rem);
  font-weight: 400;
  line-height: 1.1;
  letter-spacing: -0.02em;
}

.sub-heading {
  font-family: var(--font-serif);
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 400;
  line-height: 1.2;
  letter-spacing: -0.01em;
  margin: 16px 0 20px;
  color: var(--text-secondary);
}

.body-text {
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.7;
  max-width: 480px;
}

.eyebrow {
  font-size: 0.8rem;
  color: var(--text-tertiary);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin-bottom: 16px;
}

/* ─── Buttons ─── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 22px;
  border-radius: var(--radius-pill);
  font-size: 0.875rem;
  font-weight: 500;
  letter-spacing: -0.01em;
  transition: all var(--transition);
  white-space: nowrap;
}

.btn--primary {
  background: var(--text);
  color: var(--bg);
}

.btn--primary:hover {
  opacity: 0.85;
  transform: translateY(-1px);
}

.btn--outline {
  border: 1px solid var(--border);
  color: var(--text);
}

.btn--outline:hover {
  border-color: var(--border-hover);
  background: var(--bg-card);
}

.btn--lg {
  padding: 14px 28px;
  font-size: 0.95rem;
}

/* ─── Navigation (Ethena-style) ─── */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  height: var(--nav-height);
  transition: background var(--transition), border-color var(--transition);
}

.nav--scrolled {
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
}

.nav--light:not(.nav--scrolled) .nav__logo,
.nav--light:not(.nav--scrolled) .nav__logo-img {
  color: #0a0a0a;
}

.nav--light:not(.nav--scrolled) .nav__link {
  color: rgba(0, 0, 0, 0.55);
}

.nav--light:not(.nav--scrolled) .nav__link:hover,
.nav--light:not(.nav--scrolled) .nav__dropdown:hover > .nav__link {
  color: #0a0a0a;
}

.nav--light:not(.nav--scrolled) .nav__segment {
  background: rgba(0, 0, 0, 0.05);
  border-color: rgba(0, 0, 0, 0.1);
}

.nav--light:not(.nav--scrolled) .nav__segment-btn {
  color: rgba(0, 0, 0, 0.5);
}

.nav--light:not(.nav--scrolled) .nav__segment-btn.active {
  background: rgba(0, 0, 0, 0.08);
  color: #0a0a0a;
}

.nav--light:not(.nav--scrolled) .nav__launch {
  background: #0a0a0a;
  color: #fff;
}

.nav--light:not(.nav--scrolled) .nav__toggle span {
  background: #0a0a0a;
}

.nav--light:not(.nav--scrolled) .nav__toggle.active span,
.nav--menu-open .nav__toggle span {
  background: #fff;
}

.nav--light:not(.nav--scrolled) .nav__logo-img {
  filter: brightness(0);
}

.nav--menu-open .nav__logo,
.nav--light.nav--menu-open:not(.nav--scrolled) .nav__logo {
  color: #fff;
}

.nav--menu-open .nav__logo-img,
.nav--light.nav--menu-open:not(.nav--scrolled) .nav__logo-img {
  filter: brightness(0) invert(1);
}

.nav__bar {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  height: 100%;
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 24px;
}

.nav__logo {
  justify-self: start;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.875rem;
  font-weight: 500;
  letter-spacing: -0.02em;
  color: var(--text);
}

.nav__logo-img {
  display: block;
  width: 18px;
  height: 14px;
  object-fit: contain;
  object-position: center;
  flex-shrink: 0;
}

.nav__center {
  justify-self: center;
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav__link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 8px 12px;
  font-size: 0.8125rem;
  font-weight: 400;
  color: var(--text-secondary);
  border-radius: 8px;
  transition: color var(--transition), background var(--transition);
  white-space: nowrap;
}

.nav__link:hover,
.nav__dropdown:hover > .nav__link {
  color: var(--text);
}

.nav__chevron {
  opacity: 0.5;
  transition: transform var(--transition);
}

.nav__dropdown:hover .nav__chevron,
.nav__dropdown.open .nav__chevron {
  transform: rotate(180deg);
}

.nav__dropdown {
  position: relative;
}

.nav__dropdown-menu {
  position: absolute;
  top: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%) translateY(6px);
  min-width: 180px;
  padding: 6px;
  background: rgba(12, 12, 12, 0.95);
  border: 1px solid var(--border);
  border-radius: 12px;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity var(--transition), transform var(--transition), visibility var(--transition);
}

.nav__dropdown:hover .nav__dropdown-menu,
.nav__dropdown.open .nav__dropdown-menu {
  opacity: 1;
  visibility: visible;
  pointer-events: all;
  transform: translateX(-50%) translateY(0);
}

.nav__dropdown-menu a {
  display: block;
  padding: 10px 14px;
  font-size: 0.8125rem;
  color: var(--text-secondary);
  border-radius: 8px;
  transition: color var(--transition), background var(--transition);
}

.nav__dropdown-menu a:hover {
  color: var(--text);
  background: var(--bg-card-hover);
}

.nav__actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.nav__right {
  justify-self: end;
  display: flex;
  align-items: center;
  gap: 10px;
}

.nav__segment {
  display: flex;
  padding: 3px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
}

.nav__segment-btn {
  padding: 6px 14px;
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--text-secondary);
  border-radius: var(--radius-pill);
  transition: all var(--transition);
}

.nav__segment-btn:hover {
  color: var(--text);
}

.nav__segment-btn.active {
  background: rgba(255, 255, 255, 0.1);
  color: var(--text);
}

.nav__launch {
  display: inline-flex;
  align-items: center;
  padding: 8px 18px;
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--bg);
  background: var(--text);
  border-radius: var(--radius-pill);
  transition: opacity var(--transition);
  white-space: nowrap;
}

.nav__launch:hover {
  opacity: 0.88;
}

.nav__user {
  position: relative;
}

.nav__user[hidden] {
  display: none !important;
}

.nav__user-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  max-width: 220px;
  padding: 4px 10px 4px 4px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.06);
  color: var(--text);
  transition: background var(--transition), border-color var(--transition);
}

.nav__user-btn:hover,
.nav__user.is-open .nav__user-btn {
  border-color: var(--border-hover);
  background: rgba(255, 255, 255, 0.1);
}

.nav__user-avatar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #0a0a0a;
  color: #fff;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  flex-shrink: 0;
}

.nav__user-label {
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: -0.01em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.nav__user-chevron {
  flex-shrink: 0;
  opacity: 0.55;
  transition: transform var(--transition);
}

.nav__user.is-open .nav__user-chevron {
  transform: rotate(180deg);
}

.nav__user-menu {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  z-index: 120;
  min-width: 220px;
  padding: 10px;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(12, 12, 12, 0.92);
  -webkit-backdrop-filter: blur(20px) saturate(1.2);
  backdrop-filter: blur(20px) saturate(1.2);
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.35);
}

.nav__user-menu[hidden] {
  display: none !important;
}

.nav__user-meta {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 8px 10px 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  margin-bottom: 8px;
}

.nav__user-meta strong {
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--text);
  letter-spacing: -0.01em;
}

.nav__user-meta span {
  font-size: 0.75rem;
  color: var(--text-secondary);
  word-break: break-all;
}

.nav__user-item {
  display: flex;
  width: 100%;
  align-items: center;
  padding: 10px 12px;
  border-radius: 12px;
  font-size: 0.84rem;
  font-weight: 500;
  color: var(--text);
  text-decoration: none;
  transition: background var(--transition);
}

.nav__user-item[hidden],
.mobile-menu__account-link[hidden],
[data-custody-link][hidden] {
  display: none !important;
}

.nav__user-item:hover {
  background: rgba(255, 255, 255, 0.08);
}

.nav--light:not(.nav--scrolled) .nav__user-btn {
  border-color: rgba(0, 0, 0, 0.1);
  background: rgba(255, 255, 255, 0.55);
  color: #0a0a0a;
  box-shadow: 0 1px 4px rgba(15, 15, 20, 0.06);
}

.nav--light:not(.nav--scrolled) .nav__user-btn:hover,
.nav--light:not(.nav--scrolled) .nav__user.is-open .nav__user-btn {
  border-color: rgba(0, 0, 0, 0.16);
  background: rgba(255, 255, 255, 0.82);
}

.nav--light:not(.nav--scrolled) .nav__user-menu {
  border-color: rgba(255, 255, 255, 0.85);
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 18px 50px rgba(15, 15, 20, 0.12);
}

.nav--light:not(.nav--scrolled) .nav__user-meta {
  border-bottom-color: rgba(0, 0, 0, 0.06);
}

.nav--light:not(.nav--scrolled) .nav__user-meta strong {
  color: #0a0a0a;
}

.nav--light:not(.nav--scrolled) .nav__user-meta span {
  color: rgba(10, 10, 10, 0.48);
}

.nav--light:not(.nav--scrolled) .nav__user-item {
  color: #0a0a0a;
}

.nav--light:not(.nav--scrolled) .nav__user-item:hover {
  background: rgba(0, 0, 0, 0.05);
}

.mobile-menu__account {
  margin-top: 18px;
  padding: 14px;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.04);
}

.mobile-menu__account[hidden] {
  display: none !important;
}

.mobile-menu__account-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}

.mobile-menu__account-meta strong {
  display: block;
  font-size: 0.92rem;
  font-weight: 500;
}

.mobile-menu__account-meta span {
  display: block;
  font-size: 0.75rem;
  color: var(--text-secondary);
  word-break: break-all;
}

.mobile-menu__account-avatar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #fff;
  color: #0a0a0a;
  font-size: 0.78rem;
  font-weight: 600;
  flex-shrink: 0;
}

.mobile-menu__account-link,
.mobile-menu__logout {
  display: flex;
  width: 100%;
  align-items: center;
  justify-content: center;
  padding: 12px 16px;
  border-radius: var(--radius-pill);
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.06);
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--text);
  text-decoration: none;
}

.mobile-menu__account-link {
  margin-bottom: 8px;
}

.mobile-menu__account-link:hover,
.mobile-menu__logout:hover {
  background: rgba(255, 255, 255, 0.1);
}

.nav__toggle {
  display: none;
  position: relative;
  width: 28px;
  height: 28px;
  padding: 0;
  justify-self: end;
  grid-column: 3;
}

.nav__toggle span {
  position: absolute;
  left: 4px;
  right: 4px;
  top: 50%;
  display: block;
  height: 1.5px;
  background: var(--text);
  transition: transform var(--transition), background var(--transition);
}

.nav__toggle span:first-child {
  transform: translateY(-4px);
}

.nav__toggle span:last-child {
  transform: translateY(4px);
}

.nav__toggle.active span,
.nav--menu-open .nav__toggle span {
  background: #fff;
}

.nav__toggle.active span:first-child {
  transform: translateY(0) rotate(45deg);
}

.nav__toggle.active span:last-child {
  transform: translateY(0) rotate(-45deg);
}

.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 99;
  background: rgba(0, 0, 0, 0.86);
  backdrop-filter: blur(36px) saturate(105%);
  -webkit-backdrop-filter: blur(36px) saturate(105%);
  display: flex;
  flex-direction: column;
  align-items: stretch;
  justify-content: flex-start;
  padding: calc(var(--nav-height) + 28px) var(--container-padding) 28px;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition);
  overflow-y: auto;
  overscroll-behavior: contain;
}

.mobile-menu.open { opacity: 1; pointer-events: all; }

.mobile-menu__inner {
  display: flex;
  flex-direction: column;
  gap: 32px;
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
}

.mobile-menu__nav {
  display: flex;
  flex-direction: row;
  align-items: center;
  flex-wrap: nowrap;
  gap: 12px 20px;
  width: 100%;
  min-width: 0;
}

.mobile-menu__title {
  font-family: var(--font-serif);
  font-size: clamp(1.5rem, 5vw, 1.85rem);
  font-weight: 400;
  line-height: 1.1;
  letter-spacing: -0.02em;
  flex-shrink: 0;
}

.mobile-menu__links {
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  align-items: center;
  gap: 0;
  flex: 1;
  min-width: 0;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior-x: contain;
  touch-action: manipulation;
  scrollbar-width: none;
}

.mobile-menu__links::-webkit-scrollbar {
  display: none;
}

.mobile-menu__links a + a::before {
  content: '|';
  margin: 0 14px;
  color: rgba(255, 255, 255, 0.22);
  font-weight: 300;
  pointer-events: none;
}

.mobile-menu__links a {
  font-size: 0.95rem;
  font-weight: 500;
  text-align: left;
  white-space: nowrap;
  flex-shrink: 0;
}

@media (max-width: 520px) {
  .mobile-menu__nav {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }

  .mobile-menu__links {
    width: 100%;
  }

  .mobile-menu__links a + a::before {
    margin: 0 10px;
  }

  .mobile-menu__links a {
    font-size: 0.88rem;
  }
}

.mobile-menu__video.wallet-buy-video {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 10;
  border-radius: var(--radius);
  overflow: hidden;
  background: #050505;
}

.mobile-menu__video .wallet-buy-video__media {
  object-fit: cover;
  object-position: center;
}

.mobile-menu__cards {
  display: flex;
  flex-direction: column;
  gap: 20px;
  width: 100%;
}

.mobile-menu__divider {
  width: 100%;
  height: 1px;
  background: var(--border);
}

.mobile-menu__cards-title {
  font-family: var(--font-serif);
  font-size: clamp(1.2rem, 4.5vw, 1.65rem);
  font-weight: 400;
  line-height: 1.2;
  letter-spacing: -0.02em;
  text-align: left;
  max-width: none;
}

.mobile-menu__cards-scroll {
  position: relative;
  width: 100%;
  max-width: 100%;
  overflow: hidden;
  touch-action: manipulation;
}

.mobile-menu__cards-track {
  display: flex;
  flex-direction: row;
  gap: 12px;
  width: 100%;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x mandatory;
  overscroll-behavior-x: contain;
  -webkit-overflow-scrolling: touch;
  touch-action: manipulation;
  scrollbar-width: none;
  padding: 4px 0 12px;
}

.mobile-menu__cards-track::-webkit-scrollbar {
  display: none;
}

.mobile-menu__card {
  flex: 0 0 min(72%, 220px);
  scroll-snap-align: start;
  display: flex;
  flex-direction: column;
  gap: 10px;
  background: none;
  border: none;
  border-radius: 0;
  overflow: visible;
}

.mobile-menu__card img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 12px;
}

.mobile-menu__card-label {
  font-size: 0.9rem;
  font-weight: 500;
  letter-spacing: -0.01em;
  text-align: left;
  color: var(--text);
}

/* ─── Hero ─── */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: calc(var(--nav-height) + 80px) 0 120px;
  overflow: hidden;
  background: #f8f7f4;
  color: #0a0a0a;
}

.hero__bg { position: absolute; inset: 0; z-index: 0; pointer-events: none; }

.hero__base {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    165deg,
    #ffffff 0%,
    #faf9f6 35%,
    #f3f1ec 65%,
    #ebe8e2 100%
  );
}

.hero__globe-wrap {
  position: absolute;
  top: 46%;
  left: 50%;
  width: min(960px, 115vw);
  height: min(960px, 115vw);
  z-index: 1;
  pointer-events: none;
  opacity: 0.92;
  will-change: transform, filter;
  mask-image: radial-gradient(circle, #000 38%, transparent 78%);
  -webkit-mask-image: radial-gradient(circle, #000 38%, transparent 78%);
}

.hero__globe {
  display: block;
  width: 100%;
  height: 100%;
}

.hero__mesh {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 90% 70% at 15% 10%, rgba(201, 168, 76, 0.14) 0%, transparent 55%),
    radial-gradient(ellipse 80% 60% at 85% 20%, rgba(134, 239, 172, 0.1) 0%, transparent 50%),
    radial-gradient(ellipse 70% 50% at 50% 100%, rgba(0, 0, 0, 0.04) 0%, transparent 60%);
}

.hero__grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(0, 0, 0, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 0, 0, 0.035) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: radial-gradient(ellipse 75% 65% at 50% 38%, #000 15%, transparent 72%);
  -webkit-mask-image: radial-gradient(ellipse 75% 65% at 50% 38%, #000 15%, transparent 72%);
}

.hero__glow {
  position: absolute;
  top: 8%;
  left: 50%;
  transform: translateX(-50%);
  width: min(900px, 85vw);
  height: 420px;
  background: radial-gradient(ellipse, rgba(255, 255, 255, 0.85) 0%, transparent 68%);
}

.hero__shimmer {
  display: none;
}

.hero__inner {
  position: relative; z-index: 2;
  display: flex; flex-direction: column; align-items: center;
}

.hero__title {
  font-family: var(--font-serif);
  font-size: clamp(3rem, 8vw, 6.5rem);
  font-weight: 400;
  line-height: 1.12;
  letter-spacing: -0.03em;
  margin-bottom: 72px;
  max-width: 900px;
  color: #0a0a0a;
}

.hero__title .line {
  display: block;
  overflow: hidden;
  line-height: 1;
}

.hero__title .line__inner {
  display: block;
  padding: 0.12em 0 0.28em;
  line-height: 1.15;
}

.hero__title em {
  font-style: italic;
  display: inline-block;
  padding-right: 0.1em;
  padding-bottom: 0.06em;
  background: linear-gradient(135deg, #0a0a0a 0%, rgba(255, 255, 255, 0.55) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}


.hero .btn--primary {
  background: #0a0a0a;
  color: #fff;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.12);
}

.hero .btn--primary:hover {
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.18);
}

.hero__stats-pill {
  display: inline-flex;
  align-items: center;
  gap: clamp(32px, 5vw, 56px);
  padding: 20px 40px;
  border-radius: var(--radius-pill);
  border: 1px solid rgba(255, 255, 255, 0.65);
  background: rgba(255, 255, 255, 0.42);
  backdrop-filter: blur(20px) saturate(1.2);
  -webkit-backdrop-filter: blur(20px) saturate(1.2);
  box-shadow:
    0 4px 24px rgba(0, 0, 0, 0.05),
    inset 0 1px 0 rgba(255, 255, 255, 0.75);
}

.hero .stat__value {
  color: #0a0a0a;
}

.hero .stat__label {
  color: rgba(0, 0, 0, 0.5);
}

.hero__token-bar {
  position: absolute;
  bottom: 28px;
  left: 0;
  right: 0;
  z-index: 2;
  padding: 0 32px;
  pointer-events: none;
}

.hero__token-bar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  max-width: var(--container);
  margin: 0 auto;
  padding: 14px 28px;
  border-radius: var(--radius-pill);
  border: 1px solid rgba(255, 255, 255, 0.65);
  background: rgba(255, 255, 255, 0.42);
  backdrop-filter: blur(20px) saturate(1.2);
  -webkit-backdrop-filter: blur(20px) saturate(1.2);
  box-shadow:
    0 4px 24px rgba(0, 0, 0, 0.05),
    inset 0 1px 0 rgba(255, 255, 255, 0.75);
}

.hero__token-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

.hero__token-ticker {
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: #0a0a0a;
}

.hero__token-badge {
  display: inline-block;
  padding: 5px 12px;
  border: 1px solid rgba(0, 0, 0, 0.1);
  border-radius: var(--radius-pill);
  font-size: 0.65rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(0, 0, 0, 0.5);
}

.hero__token-metrics {
  display: flex;
  align-items: center;
  gap: clamp(24px, 4vw, 48px);
}

.hero__token-metric {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 4px;
}

.hero__token-metric-label {
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(0, 0, 0, 0.45);
}

.hero__token-metric-value {
  font-size: 0.95rem;
  font-weight: 500;
  letter-spacing: -0.02em;
  color: #0a0a0a;
  font-variant-numeric: tabular-nums;
}

.stat { display: flex; flex-direction: column; align-items: center; gap: 8px; }

.stat__value {
  font-size: clamp(1.8rem, 3vw, 2.5rem);
  font-weight: 500; letter-spacing: -0.03em; line-height: 1;
  font-variant-numeric: tabular-nums;
}

.stat__label { font-size: 0.8rem; color: var(--text-secondary); }

/* ─── Partner Marquee ─── */
.partner-marquee {
  position: relative;
  width: 100vw;
  max-width: 100%;
  margin-left: calc(50% - 50vw);
  padding: 20px 0;
  border-top: 1px solid var(--border);
  background: var(--bg);
  overflow: hidden;
}

.partner-marquee::before,
.partner-marquee::after {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  width: min(160px, 15vw);
  z-index: 2;
  pointer-events: none;
}

.partner-marquee::before {
  left: 0;
  background: linear-gradient(90deg, var(--bg) 15%, transparent 100%);
}

.partner-marquee::after {
  right: 0;
  background: linear-gradient(270deg, var(--bg) 15%, transparent 100%);
}

.partner-marquee__viewport {
  width: 100%;
  overflow: hidden;
}

.partner-marquee__track {
  display: flex;
  width: max-content;
  will-change: transform;
  animation: partner-marquee 90s linear infinite;
}

.partner-marquee__group {
  display: flex;
  align-items: center;
  gap: 48px;
  padding-right: 48px;
}

.partner-marquee__item {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 28px;
}

.partner-marquee__logo {
  display: block;
  height: 28px;
  width: auto;
  max-width: none;
  object-fit: contain;
  object-position: center;
  filter: brightness(0) invert(1);
  opacity: 0.55;
  transition: opacity var(--transition);
}

.partner-marquee__item:hover .partner-marquee__logo {
  opacity: 0.9;
}

.partner-marquee__item--mono .partner-marquee__logo {
  filter: none;
}

@keyframes partner-marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

@media (prefers-reduced-motion: reduce) {
  .partner-marquee::before,
  .partner-marquee::after {
    display: none;
  }

  .partner-marquee__track {
    animation: none;
    flex-wrap: wrap;
    justify-content: flex-start;
    gap: 32px 48px;
    width: 100%;
    padding: 0 32px;
  }

  .partner-marquee__group:last-child {
    display: none;
  }
}

/* ─── Sections ─── */
.section {
  padding: 140px 0;
  border-top: 1px solid var(--border);
}

.section-intro {
  margin-bottom: 64px;
}

.section-intro__desc {
  margin-top: 16px;
}

/* ─── Intro ─── */
.intro-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
  min-width: 0;
}

.intro-text {
  grid-column: 1;
  grid-row: 1;
  display: flex;
  flex-direction: column;
  gap: 20px;
  min-width: 0;
}

.intro-text .eyebrow {
  margin-bottom: 4px;
}

.intro-text .body-text + .body-text {
  margin-top: -4px;
}

.intro-features {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding-top: 4px;
}

.intro-features-scroll {
  width: 100%;
}

.intro-text .display-heading,
.intro-text .sub-heading {
  text-wrap: balance;
}

.intro-features li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.55;
}

.intro-feature__content {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}

.intro-feature__title {
  display: block;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text);
  line-height: 1.35;
}

.intro-feature__copy {
  display: block;
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.55;
}

.intro-features li::before {
  display: none;
}

.intro-actions {
  grid-column: 1;
  grid-row: 2;
  display: flex;
  flex-wrap: wrap;
  gap: 28px;
  padding-top: 8px;
}

.intro-visual {
  grid-column: 2;
  grid-row: 1 / -1;
  align-self: center;
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  min-width: 0;
}

.intro-visual__frame {
  width: 100%;
  max-width: 100%;
  aspect-ratio: 4 / 5;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.45);
  cursor: default;
}

.intro-visual__frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 62%;
  transform: scale(1);
  transition: transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: transform;
}

.intro-visual__frame:hover img {
  transform: scale(1.08);
}

/* ─── Pillars (3 columns like Ethena) ─── */
.cards-mobile-scroll,
.pillars-scroll,
.cards-row-scroll {
  width: 100%;
}

.pillars {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-bottom: 80px;
}

.pillar {
  padding: 32px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg-card);
  transition: border-color var(--transition);
}

.pillar:hover { border-color: var(--border-hover); }

.pillar h3 {
  font-size: 1.1rem;
  font-weight: 500;
  margin-bottom: 12px;
  letter-spacing: -0.01em;
}

.pillar p {
  font-size: 0.875rem;
  color: var(--text-secondary);
  line-height: 1.65;
}

/* ─── Card Products ─── */
.cards-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.card-product {
  display: flex;
  flex-direction: column;
}

.card-product__frame {
  border-radius: 14px;
  overflow: hidden;
  margin-bottom: 20px;
  border: 1px solid var(--border);
  transition: transform var(--transition), box-shadow var(--transition);
  line-height: 0;
}

.card-product__frame img {
  width: 100%;
  height: auto;
  display: block;
}

.card-product:hover .card-product__frame {
  transform: translateY(-6px);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.card-product__info {
  text-align: left;
}

.section-intro .soon-badge {
  margin-bottom: 16px;
}

.section-intro .body-text {
  margin-top: 12px;
  max-width: 560px;
}

.card-product h4 {
  font-size: 1rem;
  font-weight: 500;
  margin-bottom: 6px;
  letter-spacing: -0.01em;
}

.card-product p {
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* ─── Tabs ─── */
.services-toolbar {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 32px;
}

.tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin-bottom: 0;
}

.tab {
  padding: 8px 18px;
  border-radius: var(--radius-pill);
  font-size: 0.8rem;
  color: var(--text-secondary);
  border: 1px solid transparent;
  transition: all var(--transition);
  touch-action: manipulation;
}

.tab:hover { color: var(--text); }

.tab.active {
  background: var(--bg-card-hover);
  border-color: var(--border);
  color: var(--text);
}

/* ─── Services Section (Light) ─── */
.services-section {
  position: relative;
  overflow: hidden;
  background: #ffffff;
  color: #0a0a0a;
  border-top-color: rgba(0, 0, 0, 0.06);
}

.services-section .container {
  position: relative;
  z-index: 1;
}

.services-section__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
}

.services-section__video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 72%;
  filter: brightness(1.22) saturate(0.28) contrast(1.04);
}

.services-section__overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(
      180deg,
      rgba(255, 255, 255, 0.82) 0%,
      rgba(255, 255, 255, 0.68) 45%,
      rgba(255, 255, 255, 0.82) 100%
    );
}

/* ─── Services Horizontal Scroll ─── */
.services-scroll {
  position: relative;
  width: 100%;
}

.services-scroll > .scroll-hint {
  display: flex;
  justify-content: flex-end;
  margin-bottom: 16px;
}

.scroll-hint {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-left: auto;
  flex-shrink: 0;
  color: var(--text-secondary);
  pointer-events: none;
  opacity: 1;
  transition: opacity 0.45s cubic-bezier(0.16, 1, 0.3, 1);
}

.scroll-hint.is-hidden {
  opacity: 0;
}

.scroll-hint__label {
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  white-space: nowrap;
}

.scroll-hint__arrow {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.06);
  color: var(--text);
  animation: scroll-hint-nudge 1.6s cubic-bezier(0.16, 1, 0.3, 1) infinite;
}

@keyframes scroll-hint-nudge {
  0%, 100% { transform: translateX(0); }
  50% { transform: translateX(6px); }
}

@media (prefers-reduced-motion: reduce) {
  .scroll-hint__arrow { animation: none; }
}

@media (max-width: 640px) {
  .services-toolbar {
    flex-wrap: wrap;
    gap: 12px;
  }
}

.scroll-track {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x proximity;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior-x: contain;
  touch-action: manipulation;
  padding: 4px 0 12px;
  margin: 0;
  scrollbar-width: none;
  cursor: grab;
  user-select: none;
}

.scroll-track.is-dragging {
  cursor: grabbing;
  scroll-snap-type: none;
  scroll-behavior: auto;
}

.scroll-track::-webkit-scrollbar { display: none; }

.scroll-progress {
  margin-top: 20px;
  width: 100%;
  height: 2px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 2px;
  overflow: hidden;
}

.scroll-progress__bar {
  display: block;
  height: 100%;
  width: 100%;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.45) 0%, #fff 100%);
  border-radius: 2px;
  transform: scaleX(0);
  transform-origin: left center;
  will-change: transform;
}

.scroll-progress__bar.is-smooth {
  transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.scroll-card {
  flex: 0 0 min(400px, calc(100% - 16px));
  scroll-snap-align: start;
  padding: 32px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: border-color var(--transition), max-height 0.45s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  flex-direction: column;
}

.scroll-card:hover { border-color: var(--border-hover); }

.scroll-card.hidden { display: none; }

.scroll-card__logo {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-sm);
  background: var(--bg-card-hover);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 20px;
}

.scroll-card h3 {
  font-size: 1.05rem;
  font-weight: 500;
  margin-bottom: 10px;
  letter-spacing: -0.01em;
}

.scroll-card__body {
  position: relative;
  overflow: hidden;
  max-height: 4.8rem;
  transition: max-height 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.scroll-card__body::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2.5rem;
  background: linear-gradient(180deg, transparent 0%, rgba(8, 8, 8, 0.92) 85%);
  pointer-events: none;
  opacity: 1;
  transition: opacity 0.35s ease;
}

.scroll-card.is-expanded .scroll-card__body {
  max-height: var(--card-body-height, 1200px);
}

.scroll-card.is-expanded .scroll-card__body::after {
  opacity: 0;
}

.scroll-card__body.is-no-clamp {
  max-height: none;
}

.scroll-card__body.is-no-clamp::after {
  display: none;
}

.scroll-card p {
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.65;
  margin-bottom: 0;
}

.scroll-card__toggle {
  align-self: flex-start;
  margin-top: 16px;
  padding: 0;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-secondary);
  background: none;
  border: none;
  cursor: pointer;
  transition: color var(--transition);
}

.scroll-card__toggle:hover {
  color: var(--text);
}

.scroll-card__toggle.is-hidden {
  display: none;
}

/* Services section — light theme (after base scroll styles) */
.services-section .eyebrow {
  color: rgba(0, 0, 0, 0.42);
}

.services-section .display-heading {
  color: #0a0a0a;
}

.services-section .body-text,
.services-section .section-intro__desc {
  color: rgba(0, 0, 0, 0.55);
}

.services-section .tab {
  color: rgba(0, 0, 0, 0.5);
}

.services-section .tab:hover {
  color: #0a0a0a;
}

.services-section .tab.active {
  background: rgba(0, 0, 0, 0.05);
  border-color: rgba(0, 0, 0, 0.1);
  color: #0a0a0a;
}

.services-section .scroll-hint {
  color: rgba(0, 0, 0, 0.45);
}

.services-section .scroll-hint__arrow {
  border-color: rgba(0, 0, 0, 0.1);
  background: rgba(255, 255, 255, 0.65);
  color: #0a0a0a;
  box-shadow: 0 1px 8px rgba(0, 0, 0, 0.04);
}

.services-section .scroll-progress {
  background: rgba(0, 0, 0, 0.08);
}

.services-section .scroll-progress__bar {
  background: linear-gradient(90deg, rgba(0, 0, 0, 0.25) 0%, #0a0a0a 100%);
}

.services-section .scroll-card {
  display: grid;
  grid-template-columns: 1fr;
  grid-template-rows: auto auto auto;
  align-items: start;
  background: rgba(255, 255, 255, 0.82);
  border-color: rgba(0, 0, 0, 0.08);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: none;
}

.services-section .scroll-card:not(.is-expanded) {
  height: 262px;
}

.services-section .scroll-card:hover {
  border-color: rgba(0, 0, 0, 0.14);
  box-shadow: none;
}

.services-section .scroll-card.hidden {
  display: none;
}

.services-section .scroll-card__head {
  grid-row: 1;
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.services-section .scroll-card__num {
  flex-shrink: 0;
  min-width: 1.6rem;
  font-family: var(--font-serif);
  font-size: 1.05rem;
  font-weight: 400;
  line-height: 1.3;
  color: rgba(0, 0, 0, 0.28);
}

.services-section .scroll-card__head h3 {
  flex: 1;
  margin: 0;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
  min-height: 2.75em;
  font-size: 1.05rem;
  font-weight: 500;
  line-height: 1.3;
  letter-spacing: -0.01em;
  color: #0a0a0a;
}

.services-section .scroll-card__body {
  grid-row: 2;
  margin-top: 14px;
}

.services-section .scroll-card:not(.is-expanded) .scroll-card__body {
  height: 4.8rem;
  min-height: 4.8rem;
  max-height: 4.8rem;
}

.services-section .scroll-card__body::after {
  display: none;
}

.services-section .scroll-card__toggle {
  grid-row: 3;
  min-height: 1.35rem;
  color: rgba(0, 0, 0, 0.5);
}

.services-section .scroll-card__toggle.is-hidden {
  visibility: hidden;
  pointer-events: none;
}

.services-section .scroll-card p {
  color: rgba(0, 0, 0, 0.55);
}

.services-section .scroll-card__toggle:hover {
  color: #0a0a0a;
}

/* ─── Metrics (Transparency style) ─── */
.metrics-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-bottom: 48px;
}

.metric-card {
  padding: 40px 32px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  text-align: center;
}

.metric-card__value {
  display: block;
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 500;
  letter-spacing: -0.03em;
  margin-bottom: 8px;
}

.metric-card__label {
  font-size: 0.8rem;
  color: var(--text-secondary);
}

.transparency-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.transparency-card {
  padding: 32px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: border-color var(--transition);
}

.transparency-card:hover { border-color: var(--border-hover); }

.transparency-card h3 {
  font-size: 1rem;
  font-weight: 500;
  margin-bottom: 10px;
}

.transparency-card p {
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.65;
  margin-bottom: 16px;
}

.link-arrow {
  font-size: 0.85rem;
  color: var(--text-secondary);
  transition: color var(--transition);
}

.link-arrow:hover { color: var(--text); }

.link-arrow::after {
  content: ' →';
}

.link-line {
  position: relative;
  display: inline-flex;
  align-self: flex-start;
}

.link-line::before {
  content: '';
  position: absolute;
  left: 0;
  bottom: -3px;
  width: 100%;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform var(--transition);
}

.link-line:hover::before {
  transform: scaleX(1);
}

/* ─── Partners ─── */
.partners-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
}

.partners-intro {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.partners-intro .eyebrow {
  margin-bottom: 4px;
}

.partners-intro .display-heading {
  text-wrap: balance;
}

.partners-logos {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.partners-logos__item {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 88px;
  padding: 20px 24px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  transition: border-color var(--transition);
}

.partners-logos__item:hover {
  border-color: var(--border-hover);
}

.partners-logos__logo {
  display: block;
  width: 112px;
  height: 28px;
  object-fit: contain;
  object-position: center;
  filter: brightness(0) invert(1);
  opacity: 0.65;
  transition: opacity var(--transition);
}

.partners-logos__item:hover .partners-logos__logo {
  opacity: 0.95;
}

.partner-marquee__item--euroclear .partner-marquee__logo {
  height: 26px;
  max-width: 130px;
}

@media (max-width: 900px) {
  .partners-layout {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .partners-logos {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 600px) {
  .partners-logos {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* ─── Crypto ─── */
.crypto-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}

.crypto-card-wrap {
  display: flex;
  justify-content: center;
  width: 100%;
  max-width: 480px;
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 32px 100px rgba(0, 0, 0, 0.6);
}

.crypto-card-img {
  display: block;
  width: 100%;
  height: auto;
  transform: scale(1.18);
  transform-origin: center center;
  transition: transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: transform;
}

.crypto-card-wrap:hover .crypto-card-img {
  transform: scale(1.24);
}

.crypto-content {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.crypto-content .body-text {
  margin: 16px 0 0;
}

.crypto-content .body-text:first-of-type {
  margin-top: 16px;
}

.crypto-content__extra {
  color: var(--text-secondary);
  font-size: 0.92rem;
  line-height: 1.65;
}

.crypto-content .crypto-tokens {
  justify-content: flex-start;
  margin-top: 24px;
}

.crypto-beta-link {
  align-self: flex-start;
  margin-top: 24px;
  font-size: 0.9rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  color: var(--text);
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  font-family: inherit;
  text-align: left;
}

.crypto-beta-link:hover {
  color: var(--text);
  opacity: 0.85;
}

.crypto-stores {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.crypto-store-badge {
  position: relative;
  display: block;
  opacity: 0.45;
  cursor: not-allowed;
  transition: opacity var(--transition);
}

.crypto-store-badge.is-disabled {
  pointer-events: auto;
}

.crypto-store-badge:hover,
.crypto-store-badge:focus-visible {
  opacity: 0.65;
}

.crypto-store-badge img {
  display: block;
  height: 40px;
  width: auto;
  transition: opacity var(--transition);
}

.crypto-store-badge__soon {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
  background: rgba(0, 0, 0, 0.72);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text);
  opacity: 0;
  transition: opacity var(--transition);
}

.crypto-store-badge:hover .crypto-store-badge__soon,
.crypto-store-badge:focus-visible .crypto-store-badge__soon {
  opacity: 1;
}

.crypto-store-badge:hover img,
.crypto-store-badge:focus-visible img {
  opacity: 0.35;
}

.beta-modal {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition);
}

.beta-modal.is-open {
  opacity: 1;
  pointer-events: auto;
}

.beta-modal[hidden] {
  display: none;
}

.beta-modal__backdrop {
  position: absolute;
  inset: 0;
  z-index: 0;
  background: rgba(0, 0, 0, 0.55);
}

.beta-modal__panel {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 400px;
  padding: 32px;
  background: rgba(12, 12, 12, 0.55);
  -webkit-backdrop-filter: blur(28px) saturate(1.25);
  backdrop-filter: blur(28px) saturate(1.25);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius);
  box-shadow: 0 32px 100px rgba(0, 0, 0, 0.45);
  transform: translateY(12px) scale(0.98);
  transition: transform var(--transition);
  overflow: hidden;
}

.beta-modal.is-open .beta-modal__panel {
  transform: translateY(0) scale(1);
}

.beta-modal__close {
  position: absolute;
  top: 16px;
  right: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  color: var(--text-secondary);
  transition: color var(--transition), background var(--transition);
}

.beta-modal__close:hover {
  color: var(--text);
  background: var(--bg-card);
}

.beta-modal__eyebrow {
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-secondary);
  margin-bottom: 10px;
}

.beta-modal__title {
  font-size: 1.5rem;
  font-weight: 500;
  letter-spacing: -0.02em;
  margin-bottom: 24px;
}

.beta-modal__actions {
  display: flex;
  flex-direction: row;
  gap: 10px;
}

.beta-modal__btn {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 1;
  padding: 14px 20px;
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text);
  background: var(--bg-card);
  transition: border-color var(--transition), background var(--transition), transform var(--transition);
}

.beta-modal__btn:hover {
  border-color: var(--border-hover);
  background: var(--bg-card-hover);
  transform: translateY(-1px);
}

.beta-modal__notice {
  margin-top: 16px;
  font-size: 0.82rem;
  line-height: 1.55;
  color: var(--text-secondary);
  text-align: center;
}

.beta-modal__notice[hidden] {
  display: none;
}

/* ─── Security FAB & Modal ─── */
.security-fab {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 150;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 50%;
  color: #fff;
  background: rgba(8, 8, 8, 0.72);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.45);
  cursor: pointer;
  transition: border-color var(--transition), background var(--transition), transform var(--transition);
}

.security-fab:hover {
  border-color: rgba(255, 255, 255, 0.28);
  background: rgba(14, 14, 14, 0.88);
  transform: translateY(-2px);
}

.security-modal {
  position: fixed;
  inset: 0;
  z-index: 210;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition);
}

.security-modal.is-open {
  opacity: 1;
  pointer-events: auto;
}

.security-modal[hidden] {
  display: none;
}

.security-modal__backdrop {
  position: absolute;
  inset: 0;
  z-index: 0;
  background: rgba(0, 0, 0, 0.6);
}

.security-modal__panel {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  width: 100%;
  max-width: 680px;
  max-height: min(88dvh, 820px);
  padding: 28px 28px 24px;
  background: rgba(12, 12, 12, 0.72);
  -webkit-backdrop-filter: blur(28px) saturate(1.25);
  backdrop-filter: blur(28px) saturate(1.25);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius);
  box-shadow: 0 32px 100px rgba(0, 0, 0, 0.5);
  transform: translateY(12px) scale(0.98);
  transition: transform var(--transition);
  overflow: hidden;
}

.security-modal.is-open .security-modal__panel {
  transform: translateY(0) scale(1);
}

.security-modal__close {
  position: absolute;
  top: 16px;
  right: 16px;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  color: var(--text-secondary);
  transition: color var(--transition), background var(--transition);
}

.security-modal__close:hover {
  color: var(--text);
  background: var(--bg-card);
}

.security-modal__content {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
  touch-action: pan-y;
  padding-right: 8px;
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, 0.2) transparent;
}

.security-modal__content::-webkit-scrollbar {
  width: 6px;
}

.security-modal__content::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.18);
  border-radius: 999px;
}

.security-modal__eyebrow {
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-secondary);
  margin-bottom: 10px;
}

.security-modal__title {
  font-size: 1.5rem;
  font-weight: 500;
  letter-spacing: -0.02em;
  margin-bottom: 24px;
  padding-right: 32px;
}

.security-modal__section + .security-modal__section {
  margin-top: 24px;
}

.security-modal__section h3 {
  font-size: 0.95rem;
  font-weight: 600;
  margin-bottom: 10px;
  letter-spacing: -0.01em;
}

.security-modal__section p,
.security-modal__section li {
  font-size: 0.84rem;
  line-height: 1.65;
  color: var(--text-secondary);
}

.security-modal__section p + p {
  margin-top: 10px;
}

.security-modal__section ul {
  display: grid;
  gap: 10px;
  padding-left: 18px;
}

.security-modal__section li strong {
  color: var(--text);
  font-weight: 500;
}

@media (max-width: 768px) {
  .security-fab {
    right: 16px;
    bottom: 16px;
    width: 48px;
    height: 48px;
  }

  .security-modal {
    padding: 16px;
  }

  .security-modal__panel {
    max-height: min(92dvh, 820px);
    padding: 22px 18px 18px;
  }
}

.soon-badge {
  display: inline-block;
  padding: 6px 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  color: var(--text-secondary);
  margin-bottom: 20px;
}

.crypto-tokens {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.crypto-tokens span {
  padding: 8px 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
  font-size: 0.8rem;
  color: var(--text-secondary);
}

/* ─── Wallet Buy ─── */
.wallet-buy-section .section-intro {
  margin-bottom: 48px;
}

.wallet-buy-scroll {
  overflow: hidden;
  margin: 0 calc(-1 * var(--container-padding));
  padding: 0 var(--container-padding);
}

.wallet-buy-track {
  display: flex;
  gap: 20px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior-x: contain;
  touch-action: manipulation;
  padding: 4px 0 16px;
  scrollbar-width: none;
}

.wallet-buy-track::-webkit-scrollbar {
  display: none;
}

.wallet-buy-slide {
  flex: 0 0 min(720px, calc(100vw - var(--container-padding) * 2));
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
  gap: 16px;
  align-items: stretch;
  scroll-snap-align: start;
}

.wallet-buy-card {
  display: flex;
  flex-direction: column;
  min-height: 440px;
  padding: 28px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: border-color var(--transition);
}

.wallet-buy-card:hover {
  border-color: var(--border-hover);
}

.wallet-buy-card__head {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
  overflow: visible;
}

.wallet-buy-card__logo {
  display: block;
  width: 24px;
  height: 24px;
  flex-shrink: 0;
  object-fit: contain;
  object-position: center;
}

.wallet-buy-card__logo--more {
  width: 28px;
  height: 21px;
}

.wallet-buy-card h3 {
  font-size: 1.35rem;
  font-weight: 500;
  letter-spacing: -0.02em;
}

.wallet-buy-card__text {
  flex: 1;
  font-size: 0.9rem;
  line-height: 1.65;
  color: var(--text-secondary);
}

.wallet-buy-card__cta {
  align-self: flex-start;
  margin-top: 24px;
  padding: 10px 18px;
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--text);
  background: transparent;
  cursor: pointer;
  font-family: inherit;
  transition: border-color var(--transition), background var(--transition);
}

.wallet-buy-card__cta::after {
  content: ' →';
}

.wallet-buy-card__cta:hover {
  border-color: var(--border-hover);
  background: var(--bg-card-hover);
}

.wallet-buy-visual {
  position: relative;
  min-height: 440px;
  aspect-ratio: 4 / 5;
  border-radius: var(--radius);
  overflow: hidden;
}

.wallet-buy-visual img,
.wallet-buy-visual video,
.wallet-buy-video__media {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.wallet-buy-visual img {
  transition: transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}

.wallet-buy-slide:hover .wallet-buy-visual img {
  transform: scale(1.06);
}

.wallet-buy-video {
  position: absolute;
  inset: 0;
}

.wallet-buy-video__media {
  filter: blur(28px) saturate(0.85);
  transition: filter 0.65s cubic-bezier(0.16, 1, 0.3, 1);
}

.wallet-buy-video.is-revealed .wallet-buy-video__media {
  filter: none;
}

.wallet-buy-video__shield {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 28px;
  background: rgba(5, 8, 14, 0.42);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  transition: opacity 0.55s ease, visibility 0.55s ease;
}

.wallet-buy-video.is-revealed .wallet-buy-video__shield {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.wallet-buy-video__shield-panel {
  max-width: 260px;
  text-align: center;
}

.wallet-buy-video__warning-label {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #fff;
  margin-bottom: 10px;
}

.wallet-buy-video__warning-text {
  font-size: 0.82rem;
  line-height: 1.55;
  color: #fff;
  margin-bottom: 18px;
}

.wallet-buy-video__view-btn {
  padding: 10px 18px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: var(--radius-pill);
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--text);
  background: rgba(255, 255, 255, 0.08);
  cursor: pointer;
  font-family: inherit;
  transition: border-color var(--transition), background var(--transition), color var(--transition);
}

.wallet-buy-video__view-btn:hover {
  border-color: rgba(255, 255, 255, 0.38);
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
}

.wallet-buy-video__mute-btn {
  position: absolute;
  right: 14px;
  bottom: 14px;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 50%;
  color: #fff;
  background: rgba(5, 8, 14, 0.55);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition:
    opacity 0.4s ease,
    visibility 0.4s ease,
    border-color var(--transition),
    background var(--transition);
}

.wallet-buy-video.is-revealed .wallet-buy-video__mute-btn {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.wallet-buy-video__mute-btn:hover {
  border-color: rgba(255, 255, 255, 0.32);
  background: rgba(5, 8, 14, 0.72);
}

.wallet-buy-video__mute-icon,
.wallet-buy-video__unmute-icon {
  display: none;
}

.wallet-buy-video__mute-btn.is-muted .wallet-buy-video__mute-icon {
  display: block;
}

.wallet-buy-video__mute-btn:not(.is-muted) .wallet-buy-video__unmute-icon {
  display: block;
}

.wallet-buy-visual--sol {
  background:
    radial-gradient(circle at 30% 25%, rgba(20, 241, 149, 0.28) 0%, transparent 55%),
    radial-gradient(circle at 75% 80%, rgba(153, 69, 255, 0.35) 0%, transparent 58%),
    linear-gradient(145deg, #12081f 0%, #07131a 100%);
}

.wallet-buy-visual--eth {
  background:
    radial-gradient(circle at 50% 40%, rgba(138, 86, 255, 0.35) 0%, transparent 60%),
    linear-gradient(145deg, #1a0f2e 0%, #0d0818 100%);
}

.wallet-buy-visual--btc {
  background:
    radial-gradient(circle at 45% 35%, rgba(247, 147, 26, 0.38) 0%, transparent 58%),
    linear-gradient(145deg, #2a1408 0%, #120a04 100%);
}

.wallet-buy-visual--xrp {
  background:
    radial-gradient(circle at 50% 45%, rgba(255, 255, 255, 0.08) 0%, transparent 55%),
    linear-gradient(145deg, #1a1c20 0%, #090a0c 100%);
}

.wallet-buy-visual--more {
  background:
    radial-gradient(circle at 35% 30%, rgba(20, 241, 149, 0.22) 0%, transparent 55%),
    radial-gradient(circle at 70% 75%, rgba(153, 69, 255, 0.28) 0%, transparent 58%),
    linear-gradient(145deg, #0f0a1a 0%, #050810 100%);
}

.wallet-buy-nav {
  display: flex;
  gap: 10px;
  margin-top: 8px;
}

.wallet-buy-nav__btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border: 1px solid var(--border);
  border-radius: 50%;
  color: var(--text-secondary);
  background: var(--bg-card);
  transition: color var(--transition), border-color var(--transition), background var(--transition);
}

.wallet-buy-nav__btn:hover:not(:disabled) {
  color: var(--text);
  border-color: var(--border-hover);
  background: var(--bg-card-hover);
}

.wallet-buy-nav__btn:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}

@media (max-width: 768px) {
  .wallet-buy-slide {
    position: relative;
    flex: 0 0 min(82%, 300px);
    display: flex;
    flex-direction: column;
    gap: 0;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    scroll-snap-align: start;
    transition: border-color var(--transition);
  }

  .wallet-buy-slide:hover {
    border-color: var(--border-hover);
  }

  .wallet-buy-card {
    min-height: 0;
    padding: 20px 20px 16px;
    background: transparent;
    border: none;
    border-radius: 0;
  }

  .wallet-buy-card:hover {
    border-color: transparent;
  }

  .wallet-buy-card__head {
    margin-bottom: 14px;
  }

  .wallet-buy-card__cta {
    position: absolute;
    bottom: 16px;
    left: 16px;
    z-index: 4;
    margin-top: 0;
    align-self: auto;
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    background: rgba(0, 0, 0, 0.42);
    border-color: rgba(255, 255, 255, 0.18);
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.22);
  }

  .wallet-buy-card__cta:hover {
    background: rgba(0, 0, 0, 0.55);
    border-color: rgba(255, 255, 255, 0.28);
  }

  .wallet-buy-visual {
    min-height: 200px;
    aspect-ratio: 16 / 10;
    border-radius: 0;
    margin-top: auto;
  }

  .wallet-buy-slide:hover .wallet-buy-visual img {
    transform: none;
  }
}

/* ─── FAQ Videos ─── */
.faq-videos-section {
  padding: 24px 0 0;
}

.faq-videos {
  display: flex;
  width: 100%;
  gap: 6px;
}

.faq-videos__item {
  position: relative;
  flex: 1 1 0;
  min-width: 0;
  min-height: clamp(300px, 56vh, 620px);
  overflow: hidden;
  cursor: pointer;
  transition: flex 0.75s cubic-bezier(0.16, 1, 0.3, 1);
}

.faq-videos__item.is-active {
  flex: 4.2 1 0;
}

.faq-videos__item video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transform: scale(1.2);
  transform-origin: center center;
  display: block;
  background: #050505;
}

.faq-videos__item::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(
    180deg,
    rgba(0, 0, 0, 0.14) 0%,
    rgba(0, 0, 0, 0.04) 16%,
    rgba(0, 0, 0, 0.04) 78%,
    rgba(0, 0, 0, 0.42) 100%
  );
  transition: opacity 0.45s ease;
  pointer-events: none;
}

.faq-videos__item.is-active::before {
  opacity: 0.35;
}

.faq-videos__item:not(.is-active) video {
  transform: scale(1.24);
}

@media (max-width: 768px) {
  .faq-videos-section {
    padding: 0;
  }

  .faq-videos {
    flex-direction: column;
    min-height: auto;
    gap: 0;
  }

  .faq-videos__item:not(:last-child) {
    display: none;
  }

  .faq-videos__item {
    flex: none;
    min-height: 72px;
    transition: min-height 0.65s cubic-bezier(0.16, 1, 0.3, 1);
  }

  .faq-videos__item:last-child {
    min-height: clamp(240px, 52vh, 440px);
  }

  .faq-videos__item.is-active {
    min-height: clamp(200px, 38vw, 300px);
  }

  .faq-videos__item:last-child.is-active,
  .faq-videos__item:last-child {
    min-height: clamp(240px, 52vh, 440px);
  }
}

/* ─── Footer ─── */
.footer {
  padding: 64px 0 32px;
  border-top: 1px solid var(--border);
}

.footer__top {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) auto auto;
  gap: 48px 64px;
  margin-bottom: 48px;
}

.footer__logo {
  font-size: 0.9rem;
  font-weight: 500;
  display: block;
  margin-bottom: 8px;
}

.footer__brand p {
  max-width: 440px;
  font-size: 0.84rem;
  line-height: 1.7;
  color: var(--text-secondary);
}

.footer__cols {
  display: flex;
  gap: 48px;
}

.footer__col h4,
.footer__offices h4 {
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--text-tertiary);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 16px;
}

.footer__col a {
  display: block;
  font-size: 0.85rem;
  color: var(--text-secondary);
  margin-bottom: 10px;
  transition: color var(--transition);
}

.footer__col a:hover { color: var(--text); }

.footer__text-btn {
  display: block;
  width: 100%;
  text-align: left;
  font-size: 0.85rem;
  color: var(--text-secondary);
  margin-bottom: 10px;
  padding: 0;
  background: none;
  border: none;
  font-family: inherit;
  cursor: pointer;
  transition: color var(--transition);
}

.footer__text-btn:hover {
  color: var(--text);
}

/* ─── Policies modal ─── */
.policies-modal {
  position: fixed;
  inset: 0;
  z-index: 11500;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition);
}

.policies-modal.is-open {
  opacity: 1;
  pointer-events: auto;
}

.policies-modal[hidden] {
  display: none;
}

.policies-modal__backdrop {
  position: absolute;
  inset: 0;
  z-index: 0;
  background: rgba(20, 20, 24, 0.42);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}

.policies-modal__panel {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  width: min(980px, 100%);
  max-height: min(88dvh, 860px);
  padding: 0;
  border-radius: 28px;
  border: 1px solid rgba(255, 255, 255, 0.92);
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 30px 90px rgba(15, 15, 20, 0.18);
  color: #0a0a0a;
  transform: translateY(14px) scale(0.98);
  transition: transform var(--transition);
  overflow: hidden;
}

.policies-modal.is-open .policies-modal__panel {
  transform: translateY(0) scale(1);
}

.policies-modal__close {
  position: absolute;
  top: 16px;
  right: 16px;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  color: rgba(10, 10, 10, 0.5);
  background: rgba(0, 0, 0, 0.04);
  transition: color var(--transition), background var(--transition);
}

.policies-modal__close:hover {
  color: #0a0a0a;
  background: rgba(0, 0, 0, 0.08);
}

.policies-modal__layout {
  display: grid;
  grid-template-columns: 210px minmax(0, 1fr);
  min-height: 0;
  height: 100%;
  max-height: min(88dvh, 860px);
}

.policies-modal__nav {
  padding: 28px 16px 24px;
  border-right: 1px solid rgba(0, 0, 0, 0.06);
  background: rgba(246, 246, 248, 0.7);
  overflow-y: auto;
}

.policies-modal__nav-eyebrow {
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(10, 10, 10, 0.38);
  margin-bottom: 14px;
  padding: 0 10px;
}

.policies-modal__nav-list {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.policies-modal__nav-list a {
  display: block;
  text-decoration: none;
  padding: 10px 12px;
  border-radius: 12px;
  font-size: 0.86rem;
  font-weight: 500;
  color: rgba(10, 10, 10, 0.48);
  transition: color var(--transition), background var(--transition), box-shadow var(--transition);
}

.policies-modal__nav-list a:hover {
  color: #0a0a0a;
  background: rgba(255, 255, 255, 0.7);
}

.policies-modal__nav-list a.is-active {
  color: #0a0a0a;
  background: #fff;
  box-shadow: 0 1px 4px rgba(15, 15, 20, 0.06);
}

.policies-modal__content {
  min-height: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 28px 32px 36px;
  scrollbar-width: thin;
  scrollbar-color: rgba(10, 10, 10, 0.18) transparent;
}

.policies-modal__content::-webkit-scrollbar {
  width: 6px;
}

.policies-modal__content::-webkit-scrollbar-track {
  background: transparent;
  margin: 12px 0;
}

.policies-modal__content::-webkit-scrollbar-thumb {
  background: rgba(10, 10, 10, 0.14);
  border-radius: 999px;
}

.policies-modal__content::-webkit-scrollbar-thumb:hover {
  background: rgba(10, 10, 10, 0.26);
}

.policies-modal__hero {
  margin-bottom: 28px;
  padding-right: 36px;
}

.policies-modal__eyebrow {
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(10, 10, 10, 0.4);
  margin-bottom: 10px;
}

.policies-modal__title {
  font-family: var(--font-serif);
  font-size: clamp(1.9rem, 3vw, 2.4rem);
  font-weight: 400;
  letter-spacing: -0.02em;
  margin-bottom: 10px;
}

.policies-modal__lead {
  font-size: 0.95rem;
  line-height: 1.55;
  color: rgba(10, 10, 10, 0.52);
  max-width: 58ch;
  margin-bottom: 12px;
}

.policies-modal__updated {
  font-size: 0.78rem;
  color: rgba(10, 10, 10, 0.38);
}

.policies-modal__section {
  scroll-margin-top: 16px;
  padding: 20px 0;
  border-top: 1px solid rgba(0, 0, 0, 0.06);
}

.policies-modal__section h3 {
  font-family: var(--font-serif);
  font-size: 1.45rem;
  font-weight: 400;
  letter-spacing: -0.02em;
  margin-bottom: 10px;
}

.policies-modal__section h4 {
  font-size: 0.9rem;
  font-weight: 600;
  margin: 16px 0 8px;
}

.policies-modal__section p,
.policies-modal__section li {
  font-size: 0.92rem;
  line-height: 1.6;
  color: rgba(10, 10, 10, 0.55);
}

.policies-modal__section p + p {
  margin-top: 10px;
}

.policies-modal__section ul {
  margin: 10px 0 0 1.15rem;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.policies-modal__section strong {
  color: rgba(10, 10, 10, 0.78);
  font-weight: 600;
}

@media (max-width: 760px) {
  .policies-modal {
    padding: 12px;
    align-items: flex-end;
  }

  .policies-modal__panel {
    max-height: min(92dvh, 900px);
    border-radius: 24px 24px 16px 16px;
  }

  .policies-modal__layout {
    grid-template-columns: 1fr;
    max-height: min(92dvh, 900px);
  }

  .policies-modal__nav {
    border-right: none;
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
    padding: 18px 14px 12px;
  }

  .policies-modal__nav-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 6px;
  }

  .policies-modal__content {
    padding: 20px 18px 28px;
  }
}

@media (max-width: 480px) {
  .policies-modal__nav-list {
    grid-template-columns: 1fr;
  }
}

.password-modal {
  position: fixed;
  inset: 0;
  z-index: 11600;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition);
}

.password-modal.is-open {
  opacity: 1;
  pointer-events: auto;
}

.password-modal[hidden] {
  display: none;
}

.password-modal__backdrop {
  position: absolute;
  inset: 0;
  z-index: 0;
  background: rgba(20, 20, 24, 0.42);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}

.password-modal__panel {
  position: relative;
  z-index: 1;
  width: min(420px, 100%);
  padding: 32px 28px 28px;
  border-radius: 24px;
  border: 1px solid rgba(255, 255, 255, 0.92);
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 30px 90px rgba(15, 15, 20, 0.18);
  color: #0a0a0a;
  transform: translateY(14px) scale(0.98);
  transition: transform var(--transition);
}

.password-modal.is-open .password-modal__panel {
  transform: translateY(0) scale(1);
}

.password-modal__close {
  position: absolute;
  top: 14px;
  right: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  color: rgba(10, 10, 10, 0.5);
  background: rgba(0, 0, 0, 0.04);
  transition: color var(--transition), background var(--transition);
}

.password-modal__close:hover {
  color: #0a0a0a;
  background: rgba(0, 0, 0, 0.08);
}

.password-modal__title {
  margin: 0 0 8px;
  font-family: var(--font-display, Georgia, serif);
  font-size: 1.55rem;
  font-weight: 400;
  letter-spacing: -0.02em;
}

.password-modal__lead {
  margin: 0 0 22px;
  font-size: 0.9rem;
  line-height: 1.5;
  color: rgba(10, 10, 10, 0.55);
}

.password-modal__field {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 14px;
  font-size: 0.82rem;
  font-weight: 500;
  color: rgba(10, 10, 10, 0.62);
}

.password-modal__field input {
  width: 100%;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid rgba(0, 0, 0, 0.1);
  background: #fff;
  color: #0a0a0a;
  font: inherit;
  font-size: 0.95rem;
  font-weight: 400;
}

.password-modal__field input:focus {
  outline: none;
  border-color: rgba(10, 10, 10, 0.35);
  box-shadow: 0 0 0 3px rgba(10, 10, 10, 0.06);
}

.password-modal__error {
  margin: 0 0 12px;
  font-size: 0.85rem;
  color: #b42318;
}

.password-modal__error.is-success {
  color: #067647;
}

.password-modal__submit {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  margin-top: 4px;
  padding: 13px 20px;
  border-radius: var(--radius-pill);
  background: #0a0a0a;
  color: #fff;
  font-size: 0.92rem;
  font-weight: 500;
  transition: opacity var(--transition), transform var(--transition);
}

.password-modal__submit:hover:not(:disabled) {
  opacity: 0.88;
  transform: translateY(-1px);
}

.password-modal__submit:disabled,
.password-modal__submit.is-busy {
  opacity: 0.55;
  cursor: wait;
  transform: none;
}

.footer__offices-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.footer__office {
  font-style: normal;
}

.footer__office strong {
  display: block;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text);
  margin-bottom: 6px;
}

.footer__office p {
  font-size: 0.8rem;
  line-height: 1.65;
  color: var(--text-secondary);
}

.footer__bottom {
  padding-top: 32px;
  border-top: 1px solid var(--border);
  display: flex;
  flex-wrap: wrap;
  gap: 12px 24px;
  align-items: center;
  justify-content: space-between;
}

.footer__bottom p {
  font-size: 0.75rem;
  color: var(--text-tertiary);
}

.footer__legal-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 10px;
}

.footer__legal-links a,
.footer__legal-links .footer__text-btn {
  font-size: 0.75rem;
  color: var(--text-tertiary);
}

.footer__legal-links a:hover,
.footer__legal-links .footer__text-btn:hover {
  color: var(--text);
}

.cookie-notice {
  position: fixed;
  left: 16px;
  right: 16px;
  bottom: 16px;
  z-index: 12000;
  opacity: 0;
  transform: translateY(12px);
  pointer-events: none;
  transition: opacity var(--transition), transform var(--transition);
}

.cookie-notice.is-visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.cookie-notice[hidden] {
  display: none !important;
}

.cookie-notice__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px 18px;
  max-width: 920px;
  margin: 0 auto;
  padding: 16px 18px;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(12, 12, 14, 0.92);
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.35);
  color: #f4f4f6;
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
}

.cookie-notice__text {
  flex: 1 1 280px;
  margin: 0;
  font-size: 0.84rem;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.78);
}

.cookie-notice__link {
  border: none;
  padding: 0;
  background: none;
  color: #fff;
  font: inherit;
  text-decoration: underline;
  cursor: pointer;
}

.cookie-notice__accept {
  flex: 0 0 auto;
  padding: 10px 16px;
  border-radius: 999px;
  border: none;
  background: #fff;
  color: #0a0a0a;
  font-size: 0.84rem;
  font-weight: 600;
  cursor: pointer;
}

.cookie-notice__accept:hover {
  opacity: 0.9;
}

@media (max-width: 560px) {
  .cookie-notice {
    left: 10px;
    right: 10px;
    bottom: 10px;
  }

  .cookie-notice__accept {
    width: 100%;
  }
}

/* ─── Reveal ─── */
.reveal,
.reveal-stagger > * {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  .hero__title .line {
    overflow: visible;
  }

  .hero__globe-wrap {
    opacity: 0.75;
    will-change: auto;
  }
}

@media (prefers-reduced-motion: no-preference) {
  .reveal {
    opacity: 0;
    transform: translateY(32px);
  }

  .reveal-stagger > * {
    opacity: 0;
    transform: translateY(24px);
  }

  .services-section .reveal,
  .services-section .reveal-stagger > * {
    opacity: 1;
    transform: none;
  }
}

/* ─── Responsive ─── */
@media (max-width: 1024px) {
  .intro-layout { grid-template-columns: 1fr; gap: 40px; min-width: 0; }
  .intro-text { grid-column: auto; grid-row: auto; }
  .intro-visual { grid-column: auto; grid-row: auto; align-self: auto; }
  .intro-actions { grid-column: auto; grid-row: auto; }
  .intro-visual__frame { aspect-ratio: 3 / 4; max-width: 480px; margin: 0 auto; }
  .pillars { grid-template-columns: 1fr; }
  .cards-row { grid-template-columns: 1fr; max-width: 400px; margin: 0 auto; }
  .crypto-layout { grid-template-columns: 1fr; gap: 40px; }
  .crypto-card-wrap { max-width: min(82vw, 420px); }
  .crypto-card-img { transform: scale(1.14); }
  .crypto-card-wrap:hover .crypto-card-img { transform: scale(1.2); }
  .crypto-content { text-align: center; align-items: center; }
  .crypto-content .crypto-tokens { justify-content: center; }
  .crypto-stores { justify-content: center; }
  .metrics-row { grid-template-columns: 1fr; }
  .transparency-grid { grid-template-columns: 1fr; }
  .footer__top {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .footer__cols { flex-wrap: wrap; gap: 32px; }
}

@media (max-width: 1100px) {
  .nav__center,
  .nav__actions { display: none; }
  .nav__toggle { display: flex; }
  .nav__bar { grid-template-columns: 1fr auto; }
  .nav__user-label,
  .nav__user-chevron { display: none; }
  .nav__user-btn {
    padding: 3px;
    max-width: none;
  }
  .nav__user-menu {
    right: 0;
  }
}

@media (max-width: 768px) {
  .hero__stats-pill {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    padding: 16px 18px;
    border-radius: 28px;
    gap: 10px;
  }

  .hero__stats-pill .stat {
    flex: 1 1 0;
    min-width: 0;
    gap: 6px;
  }

  .hero__stats-pill .stat__value {
    font-size: clamp(1.35rem, 5.5vw, 1.75rem);
  }

  .hero__stats-pill .stat__label {
    font-size: 0.62rem;
    line-height: 1.25;
    text-align: center;
  }

  .hero__token-bar {
    bottom: 20px;
    padding: 0 20px;
  }

  .hero__token-bar-inner {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 12px 16px;
    border-radius: 20px;
  }

  .hero__token-brand {
    flex-direction: row;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
  }

  .hero__token-ticker {
    font-size: 0.88rem;
  }

  .hero__token-badge {
    padding: 4px 8px;
    font-size: 0.55rem;
  }

  .hero__token-metrics {
    justify-content: flex-end;
    gap: 12px;
    flex-shrink: 1;
    min-width: 0;
  }

  .hero__token-metric {
    align-items: flex-end;
    min-width: 0;
    gap: 2px;
  }

  .hero__token-metric-label {
    font-size: 0.58rem;
  }

  .hero__token-metric-value {
    font-size: clamp(0.68rem, 2.8vw, 0.82rem);
    white-space: nowrap;
  }

  .intro-features-scroll {
    position: relative;
    margin: 0;
    width: 100%;
    max-width: 100%;
    overflow: hidden;
    touch-action: manipulation;
    isolation: isolate;
  }

  .intro-features-scroll::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    bottom: 12px;
    width: 56px;
    background: linear-gradient(90deg, transparent 0%, var(--bg) 88%);
    pointer-events: none;
    z-index: 1;
    transition: opacity 0.35s ease;
  }

  .intro-features-scroll.is-at-end::after {
    opacity: 0;
  }

  .intro-features {
    flex-direction: row;
    gap: 12px;
    width: 100%;
    max-width: 100%;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-snap-type: x mandatory;
    overscroll-behavior-x: contain;
    -webkit-overflow-scrolling: touch;
    touch-action: manipulation;
    scrollbar-width: none;
    padding: 4px 0 12px;
  }

  .intro-features::-webkit-scrollbar {
    display: none;
  }

  .intro-features li {
    flex: 0 0 min(78%, 260px);
    scroll-snap-align: start;
    padding: 20px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: var(--bg-card);
  }

  .intro-section {
    overflow-x: clip;
  }

  .intro-section .container {
    overflow-x: clip;
  }

  .intro-layout {
    gap: 20px;
  }

  .intro-text {
    overflow-x: clip;
    gap: 14px;
  }

  .intro-text .eyebrow {
    margin-bottom: 0;
  }

  .intro-actions {
    padding-top: 0;
    justify-content: flex-start;
  }

  .intro-visual {
    overflow: hidden;
    margin-top: 0;
  }

  .intro-visual__frame {
    width: 100%;
    max-width: min(100%, 360px);
    margin: 0 auto;
  }

  .intro-visual__frame img {
    transform: none;
    will-change: auto;
  }

  .intro-visual__frame:hover img {
    transform: none;
  }

  #cards {
    overflow-x: clip;
    padding-top: 36px;
  }

  #cards .section-intro {
    margin-bottom: 40px;
  }

  #services {
    padding-top: 40px;
    padding-bottom: 56px;
  }

  #services .section-intro {
    margin-bottom: 24px;
  }

  #services .eyebrow {
    margin-bottom: 10px;
  }

  #services .section-intro__desc {
    margin-top: 10px;
  }

  #services .services-toolbar {
    margin-bottom: 16px;
    gap: 10px;
  }

  #services .scroll-track {
    gap: 12px;
    padding: 0 0 8px;
    scroll-behavior: auto;
    scroll-snap-type: x mandatory;
    touch-action: manipulation;
    overscroll-behavior-x: contain;
    cursor: default;
    user-select: auto;
  }

  #services .scroll-card {
    padding: 20px;
  }

  #services .scroll-card:not(.is-expanded) {
    height: 220px;
  }

  #services .scroll-card__head {
    gap: 8px;
  }

  #services .scroll-card__head h3 {
    min-height: 2.5em;
    font-size: 0.98rem;
  }

  #services .scroll-card__body {
    margin-top: 10px;
  }

  #services .scroll-progress {
    margin-top: 12px;
  }

  #services .services-scroll {
    overflow: hidden;
    isolation: isolate;
  }

  #services .services-scroll > .scroll-hint {
    position: absolute;
    top: 0;
    right: 10px;
    height: 220px;
    margin: 0;
    align-items: center;
    z-index: 3;
    pointer-events: none;
  }

  #services .services-scroll::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    height: 220px;
    width: 56px;
    background: linear-gradient(90deg, transparent 0%, rgba(255, 255, 255, 0.95) 88%);
    pointer-events: none;
    z-index: 2;
    transition: opacity 0.35s ease;
  }

  #services .services-scroll.is-at-end::after {
    opacity: 0;
  }

  #services .scroll-hint__label {
    display: none;
  }

  #partners {
    padding-top: 36px;
    padding-bottom: 56px;
  }

  #partners .partners-layout {
    gap: 32px;
  }

  #partners .partners-intro {
    gap: 14px;
  }

  #partners .partners-intro .eyebrow {
    margin-bottom: 0;
  }

  #cards .container {
    overflow-x: clip;
  }

  .cards-mobile-scroll {
    position: relative;
    overflow: hidden;
    touch-action: manipulation;
    isolation: isolate;
  }

  .cards-mobile-scroll::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    bottom: 12px;
    width: 56px;
    background: linear-gradient(90deg, transparent 0%, var(--bg) 88%);
    pointer-events: none;
    z-index: 1;
    transition: opacity 0.35s ease;
  }

  .cards-mobile-scroll.is-at-end::after {
    opacity: 0;
  }

  .pillars-scroll,
  .cards-row-scroll {
    overflow: hidden;
    touch-action: manipulation;
  }

  .pillars {
    display: flex;
    flex-direction: row;
    gap: 12px;
    margin-bottom: 16px;
    width: 100%;
    max-width: 100%;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-snap-type: x mandatory;
    overscroll-behavior-x: contain;
    -webkit-overflow-scrolling: touch;
    touch-action: manipulation;
    scrollbar-width: none;
    padding: 4px 0 0;
  }

  .pillars::-webkit-scrollbar {
    display: none;
  }

  .pillar {
    flex: 0 0 min(82%, 300px);
    scroll-snap-align: start;
    padding: 24px;
  }

  .cards-row {
    display: flex;
    flex-direction: row;
    gap: 12px;
    max-width: none;
    margin: 0;
    width: 100%;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-snap-type: x mandatory;
    overscroll-behavior-x: contain;
    -webkit-overflow-scrolling: touch;
    touch-action: manipulation;
    scrollbar-width: none;
    padding: 0 0 12px;
  }

  .cards-row::-webkit-scrollbar {
    display: none;
  }

  .card-product {
    flex: 0 0 min(82%, 300px);
    scroll-snap-align: start;
  }

  .card-product:hover .card-product__frame {
    transform: none;
    box-shadow: none;
  }

  #crypto {
    padding-top: 36px;
    padding-bottom: 56px;
  }

  #crypto .crypto-layout {
    gap: 28px;
  }

  #crypto .crypto-card-wrap {
    max-width: min(94vw, 520px);
    margin: 0 auto;
  }

  #crypto .crypto-card-img {
    transform: scale(1.28);
    will-change: auto;
  }

  #crypto .crypto-card-wrap:hover .crypto-card-img {
    transform: scale(1.28);
  }

  #crypto .crypto-content {
    text-align: left;
    align-items: flex-start;
  }

  #crypto .crypto-content .soon-badge,
  #crypto .crypto-content .display-heading,
  #crypto .crypto-content .body-text {
    text-align: left;
    align-self: flex-start;
    max-width: none;
  }

  #crypto .crypto-beta-link {
    align-self: flex-start;
  }

  #crypto .crypto-stores {
    justify-content: flex-start;
  }

  #wallet-buy {
    padding-top: 36px;
    padding-bottom: 32px;
  }

  #wallet-buy .section-intro {
    margin-bottom: 32px;
  }

  #wallet-buy .eyebrow {
    margin-bottom: 10px;
  }

  #faq {
    padding-top: 0;
    padding-bottom: 0;
  }

  .footer {
    padding-top: 40px;
  }

  .section { padding: 100px 0; }

  .intro-section {
    padding: 35px 0 32px;
  }

  .partner-marquee {
    padding: 10px 0;
  }

  :root { --container-padding: 20px; }
  .container { padding: 0 var(--container-padding); }
  .nav__bar { padding: 0 20px; }
  .scroll-card { flex: 0 0 min(300px, calc(100% - 16px)); }
}
/* ─── Seven Wallet App — GFT-style trading dashboard ─── */
body.wallet-app-open {
  overflow: hidden;
}

.wallet-app {
  --wa-bg: #0a0a0a;
  --wa-surface: #111111;
  --wa-card: #161616;
  --wa-card-2: #1a1a1a;
  --wa-border: #262626;
  --wa-border-2: #333333;
  --wa-text: #ffffff;
  --wa-muted: #808080;
  --wa-muted-2: #5a5a5a;
  --wa-green: #ffffff;
  --wa-green-dim: rgba(255, 255, 255, 0.12);
  --wa-red: #ff4d6d;
  --wa-sidebar: 248px;
  --wa-radius: 12px;
  --wa-radius-sm: 8px;
  --wa-font: "Inter", -apple-system, BlinkMacSystemFont, sans-serif;
  --wa-font-serif: "Instrument Serif", Georgia, serif;
  --wa-glass-bg: rgba(22, 22, 22, 0.52);
  --wa-glass-bg-strong: rgba(14, 14, 14, 0.62);
  --wa-glass-blur: 22px;

  position: fixed;
  inset: 0;
  z-index: 250;
  background: var(--wa-bg);
  color: var(--wa-text);
  font-family: var(--wa-font);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.wallet-app.is-open {
  opacity: 1;
  pointer-events: auto;
}

.wallet-app[hidden] {
  display: none;
}

.wallet-app__shell,
.wallet-app__stage {
  height: 100%;
}

.wallet-app__stage {
  position: relative;
  overflow: hidden;
}

.wallet-app__panel {
  position: absolute;
  inset: 0;
  overflow: auto;
}

.wallet-app__panel[hidden] {
  display: none !important;
}

/* ─── Auth panels ─── */
.wallet-app__panel--connect,
.wallet-app__panel--auth {
  display: flex;
  flex-direction: column;
  background:
    radial-gradient(ellipse 80% 50% at 50% -20%, rgba(255, 255, 255, 0.06), transparent),
    var(--wa-bg);
}

.wallet-app__auth-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 28px;
  border-bottom: 1px solid var(--wa-border);
}

.wallet-app__connect-layout,
.wallet-app__auth-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 420px);
  gap: 56px;
  width: 100%;
  max-width: 1040px;
  margin: auto;
  padding: 48px 28px 64px;
  align-items: center;
}

.wallet-app__brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--wa-text);
}

.wallet-app__brand img {
  filter: brightness(0) invert(1);
}

.wallet-app__brand-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
  line-height: 1.1;
}

.wallet-app__brand-text strong {
  font-size: 0.92rem;
  font-weight: 700;
  letter-spacing: 0.06em;
}

.wallet-app__brand-text small {
  font-size: 0.72rem;
  color: var(--wa-muted);
}

.wallet-app__eyebrow {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--wa-green);
  margin-bottom: 12px;
}

.wallet-app__title {
  font-family: var(--wa-font-serif);
  font-size: clamp(2.2rem, 4vw, 3.25rem);
  font-weight: 400;
  line-height: 1.08;
  letter-spacing: -0.02em;
  margin-bottom: 16px;
}

.wallet-app__heading,
.wallet-app__page-title,
.wallet-app__crypto-carousel-title,
.wallet-app__holdings-list-title,
.wallet-app__app-promo-title,
.wallet-app__coin-name,
.wallet-app__metric-card-head > span:first-child {
  font-family: var(--wa-font-serif);
  font-weight: 400;
  letter-spacing: -0.02em;
}

.wallet-app__lead {
  font-size: 0.95rem;
  color: var(--wa-muted);
  line-height: 1.7;
  max-width: 440px;
}

.wallet-app__connect-card {
  padding: 28px;
  border-radius: var(--wa-radius);
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: var(--wa-glass-bg);
  backdrop-filter: blur(var(--wa-glass-blur)) saturate(1.1);
  -webkit-backdrop-filter: blur(var(--wa-glass-blur)) saturate(1.1);
}

.wallet-app__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  min-height: 46px;
  padding: 0 18px;
  border-radius: 999px;
  font-size: 0.88rem;
  font-weight: 600;
  transition: opacity 0.2s, background 0.2s, border-color 0.2s;
}

.wallet-app__btn--primary {
  color: #0a0a0a;
  background: #fff;
}

.wallet-app__btn--primary:hover {
  opacity: 0.92;
}

.wallet-app__btn--secondary {
  color: var(--wa-text);
  background: var(--wa-card-2);
  border: 1px solid var(--wa-border);
}

.wallet-app__btn--secondary:hover {
  border-color: var(--wa-border-2);
}

.wallet-app__btn--ghost {
  color: var(--wa-muted);
  border: 1px dashed var(--wa-border);
}

.wallet-app__btn--ghost:hover {
  color: var(--wa-text);
  border-color: var(--wa-border-2);
}

.wallet-app__btn--sm {
  width: auto;
  min-height: 38px;
  padding: 0 22px;
}

.wallet-app__icon-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  color: var(--wa-muted);
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: var(--wa-glass-bg);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition: color 0.2s, border-color 0.2s;
}

.wallet-app__icon-btn:hover {
  color: var(--wa-text);
  border-color: var(--wa-border-2);
}

.wallet-app__divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 18px 0;
  color: var(--wa-muted-2);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.wallet-app__divider::before,
.wallet-app__divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--wa-border);
}

.wallet-app__field {
  display: block;
  margin-bottom: 12px;
}

.wallet-app__field-label {
  display: block;
  margin-bottom: 8px;
  font-size: 0.76rem;
  color: var(--wa-muted);
}

.wallet-app__privacy-note {
  margin-top: 10px;
  margin-bottom: 18px;
  font-size: 0.78rem;
  line-height: 1.6;
  color: var(--wa-muted);
}

.wallet-app__textarea,
.wallet-app__input {
  width: 100%;
  padding: 14px 16px;
  border-radius: var(--wa-radius-sm);
  border: 1px solid var(--wa-border);
  background: #0d0d0d;
  color: var(--wa-text);
  font-family: var(--wa-font);
  font-size: 0.88rem;
  transition: border-color 0.2s;
}

.wallet-app__textarea {
  min-height: 96px;
  line-height: 1.5;
  resize: vertical;
}

.wallet-app__input {
  min-height: 46px;
}

.wallet-app__textarea:focus,
.wallet-app__input:focus {
  outline: none;
  border-color: var(--wa-green);
}

.wallet-app__auth-address {
  margin-bottom: 18px;
  padding: 10px 14px;
  border-radius: var(--wa-radius-sm);
  background: #0d0d0d;
  border: 1px solid var(--wa-border);
  font-size: 0.85rem;
  color: var(--wa-muted);
  word-break: break-all;
}

.wallet-app__connect-card .wallet-app__btn + .wallet-app__btn {
  margin-top: 10px;
}

.wallet-app__error {
  margin: 0 0 12px;
  font-size: 0.82rem;
  color: var(--wa-red);
}

.wallet-app__error[hidden] {
  display: none;
}

/* ─── Dashboard layout ─── */
.wallet-app__panel--dashboard {
  display: grid;
  grid-template-columns: var(--wa-sidebar) minmax(0, 1fr);
  overflow: hidden;
  background:
    radial-gradient(ellipse 70% 50% at 100% 0%, rgba(255, 255, 255, 0.05), transparent 55%),
    radial-gradient(ellipse 60% 45% at 0% 100%, rgba(200, 155, 60, 0.07), transparent 50%),
    var(--wa-bg);
}

.wallet-app__sidebar {
  display: flex;
  flex-direction: column;
  min-height: 0;
  border-right: 1px solid rgba(255, 255, 255, 0.08);
  background: var(--wa-glass-bg-strong);
  backdrop-filter: blur(var(--wa-glass-blur)) saturate(1.15);
  -webkit-backdrop-filter: blur(var(--wa-glass-blur)) saturate(1.15);
  overflow: hidden;
}

.wallet-app__sidebar-top {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-height: 0;
  padding: 20px 16px 12px;
  overflow: hidden;
}

.wallet-app__brand--sidebar {
  margin-bottom: 18px;
}

.wallet-app__search-wrap {
  position: relative;
  margin-bottom: 22px;
}

.wallet-app__search {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 0;
  padding: 0 14px;
  min-height: 40px;
  border-radius: var(--wa-radius-sm);
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: var(--wa-glass-bg);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  color: var(--wa-muted);
}

.wallet-app__search-results {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  right: 0;
  z-index: 30;
  display: flex;
  flex-direction: column;
  gap: 2px;
  max-height: 280px;
  overflow-y: auto;
  padding: 6px;
  border-radius: var(--wa-radius-sm);
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(14, 14, 14, 0.96);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.45);
}

.wallet-app__search-results[hidden] {
  display: none !important;
}

.wallet-app__search-result {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
  align-items: center;
  width: 100%;
  padding: 10px 12px;
  border-radius: 8px;
  text-align: left;
  color: var(--wa-text);
  transition: background 0.15s ease;
}

.wallet-app__search-result:hover,
.wallet-app__search-result.is-active {
  background: rgba(255, 255, 255, 0.06);
}

.wallet-app__search-result strong {
  display: block;
  font-size: 0.84rem;
  font-weight: 600;
}

.wallet-app__search-result small {
  display: block;
  margin-top: 2px;
  font-size: 0.72rem;
  color: var(--wa-muted);
}

.wallet-app__search-result em {
  font-style: normal;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--wa-muted-2);
}

.wallet-app__search-empty {
  padding: 12px;
  font-size: 0.8rem;
  color: var(--wa-muted);
  text-align: center;
}

.wallet-app__sidebar-coin.is-search-hidden,
.wallet-app__crypto-card.is-search-hidden,
.wallet-app__holdings-row.is-search-hidden {
  display: none !important;
}

.wallet-app__search input {
  flex: 1;
  border: none;
  background: transparent;
  color: var(--wa-text);
  font-size: 0.82rem;
  outline: none;
}

.wallet-app__search input::placeholder {
  color: var(--wa-muted-2);
}

.wallet-app__sidebar-group {
  margin-bottom: 8px;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--wa-muted-2);
}

.wallet-app__sidebar-nav {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-bottom: 24px;
}

.wallet-app__sidebar-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 11px 14px;
  border-radius: var(--wa-radius-sm);
  text-align: left;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: var(--wa-muted);
  transition: background 0.2s, color 0.2s;
}

.wallet-app__sidebar-link:hover,
.wallet-app__sidebar-link.is-active {
  color: var(--wa-text);
  background: var(--wa-glass-bg);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.wallet-app__nav-badge {
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 0.68rem;
  font-style: normal;
  font-weight: 700;
  background: var(--wa-green-dim);
  color: var(--wa-green);
}

.wallet-app__nav-badge[hidden] {
  display: none;
}

.wallet-app__networks {
  margin-bottom: 22px;
}

.wallet-app__network {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: var(--wa-radius-sm);
  font-size: 0.84rem;
  color: var(--wa-muted);
}

.wallet-app__network.is-active {
  background: var(--wa-glass-bg);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  color: var(--wa-text);
}

.wallet-app__network img {
  border-radius: 50%;
}

.wallet-app__network-check {
  margin-left: auto;
  color: var(--wa-green);
}

.wallet-app__watchlist-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
}

.wallet-app__watchlist-head span {
  font-size: 0.72rem;
  color: var(--wa-muted-2);
}

.wallet-app__watchlist-list {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.wallet-app__watch-item {
  display: grid;
  grid-template-columns: 28px 1fr auto;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  border-radius: var(--wa-radius-sm);
  font-size: 0.8rem;
}

.wallet-app__watch-item:hover {
  background: var(--wa-glass-bg);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.wallet-app__watch-item img {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  object-fit: cover;
}

.wallet-app__watch-item strong {
  display: block;
  font-size: 0.82rem;
}

.wallet-app__watch-item small {
  color: var(--wa-muted);
  font-size: 0.72rem;
}

.wallet-app__watch-item em {
  font-style: normal;
  font-size: 0.78rem;
  font-weight: 600;
}

.wallet-app__watch-item em.is-up { color: var(--wa-green); }
.wallet-app__watch-item em.is-down { color: var(--wa-red); }

.wallet-app__sidebar-markets-body {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  padding-right: 2px;
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, 0.14) transparent;
}

.wallet-app__sidebar-markets-body::-webkit-scrollbar {
  width: 3px;
}

.wallet-app__sidebar-markets-body::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.14);
  border-radius: 4px;
}

.wallet-app__sidebar-markets {
  margin-top: 12px;
  flex: 0 0 auto;
}

.wallet-app__sidebar-markets .wallet-app__sidebar-group {
  margin-bottom: 6px;
}

.wallet-app__sidebar-markets--etfs {
  margin-top: 12px;
}

.wallet-app__sidebar-markets--etfs .wallet-app__sidebar-markets-scroll {
  max-height: 180px;
}

.wallet-app__sidebar-markets--stocks {
  margin-top: 10px;
}

.wallet-app__sidebar-markets--stocks .wallet-app__sidebar-markets-scroll {
  max-height: 200px;
}

.wallet-app__sidebar-markets-panel {
  padding: 8px;
  border-radius: var(--wa-radius-sm);
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: var(--wa-glass-bg);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.wallet-app__sidebar-markets-scroll {
  overflow-y: auto;
  max-height: 190px;
  padding-right: 2px;
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, 0.14) transparent;
  -webkit-mask-image: linear-gradient(to bottom, #000 0%, #000 75%, transparent 100%);
  mask-image: linear-gradient(to bottom, #000 0%, #000 75%, transparent 100%);
}

.wallet-app__sidebar-markets-scroll::-webkit-scrollbar {
  width: 2px;
}

.wallet-app__sidebar-markets-scroll::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.14);
  border-radius: 4px;
}

.wallet-app__sidebar-coin {
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr);
  align-items: center;
  gap: 8px;
  width: 100%;
  padding: 5px 4px;
  border: none;
  background: transparent;
  text-align: left;
  cursor: pointer;
  font: inherit;
  color: inherit;
  border-radius: 8px;
}

.wallet-app__sidebar-coin:hover {
  background: rgba(255, 255, 255, 0.05);
}

.wallet-app__sidebar-coin-icon {
  width: 30px;
  height: 30px;
  border-radius: 8px;
  object-fit: cover;
  background: rgba(255, 255, 255, 0.06);
}

.wallet-app__sidebar-coin-copy {
  display: flex;
  flex-direction: column;
  gap: 1px;
  min-width: 0;
}

.wallet-app__sidebar-coin-label {
  font-size: 0.64rem;
  color: #9b93b8;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.wallet-app__sidebar-coin-price {
  font-size: 0.76rem;
  font-weight: 600;
  color: #fff;
}

.wallet-app__sidebar-coins-loading {
  padding: 6px 4px;
  font-size: 0.68rem;
  color: var(--wa-muted);
}

.wallet-app__sidebar-foot {
  flex-shrink: 0;
  padding: 16px;
  border-top: 1px solid var(--wa-border);
  background: var(--wa-glass-bg-strong);
}

.wallet-app__sidebar-disconnect {
  font-size: 0.8rem;
  color: var(--wa-muted);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.wallet-app__sidebar-disconnect:hover {
  color: var(--wa-text);
}

/* ─── Workspace ─── */
.wallet-app__workspace {
  display: flex;
  flex-direction: column;
  min-width: 0;
  min-height: 0;
  position: relative;
  overflow: hidden;
}

.wallet-app__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 24px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  background: var(--wa-glass-bg-strong);
  backdrop-filter: blur(var(--wa-glass-blur)) saturate(1.15);
  -webkit-backdrop-filter: blur(var(--wa-glass-blur)) saturate(1.15);
  flex-shrink: 0;
}

.wallet-app__header-pills {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.wallet-app__pill {
  padding: 6px 14px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 0.78rem;
  color: var(--wa-muted);
  background: var(--wa-glass-bg);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.wallet-app__pill.is-live {
  border-color: rgba(255, 255, 255, 0.35);
  color: var(--wa-green);
}

.wallet-app__pill--value {
  color: var(--wa-text);
  font-weight: 600;
}

.wallet-app__header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.wallet-app__profile {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-left: 12px;
  border-left: 1px solid var(--wa-border);
}

.wallet-app__profile-name {
  font-size: 0.88rem;
  font-weight: 600;
}

.wallet-app__profile-sub {
  font-size: 0.72rem;
  color: var(--wa-muted);
}

.wallet-app__avatar {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: linear-gradient(135deg, #ffffff, #d4d4d4);
  color: #0a0a0a;
  font-weight: 800;
  font-size: 0.9rem;
}

.wallet-app__main {
  flex: 1;
  min-height: 0;
  overflow: auto;
  padding: 22px 24px 88px;
  position: relative;
}

.wallet-app__loading {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  min-height: 280px;
  color: var(--wa-muted);
  font-size: 0.92rem;
}

.wallet-app__loading[hidden],
.wallet-app__dashboard-error[hidden] {
  display: none !important;
}

.wallet-app__loading-spinner {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 2px solid var(--wa-border);
  border-top-color: var(--wa-green);
  animation: wallet-app-spin 0.8s linear infinite;
}

@keyframes wallet-app-spin {
  to { transform: rotate(360deg); }
}

.wallet-app__dashboard-error {
  margin-bottom: 20px;
  padding: 14px 16px;
  border-radius: var(--wa-radius-sm);
  border: 1px solid rgba(255, 77, 109, 0.3);
  background: rgba(255, 77, 109, 0.08);
  color: var(--wa-red);
  font-size: 0.88rem;
}

.wallet-app__dashboard-content.is-loading {
  opacity: 0.35;
  pointer-events: none;
}

.wallet-app__page-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 18px;
}

/* ─── Crypto carousel ─── */
.wallet-app__crypto-carousel-wrap {
  margin-bottom: 22px;
}

.wallet-app__crypto-carousel-head {
  margin-bottom: 14px;
}

.wallet-app__crypto-carousel-title {
  font-size: clamp(1.35rem, 2vw, 1.65rem);
  line-height: 1.1;
  margin-bottom: 6px;
}

.wallet-app__crypto-carousel-sub {
  font-size: 0.82rem;
  color: var(--wa-muted);
  line-height: 1.5;
  max-width: 640px;
}

.wallet-app__crypto-carousel {
  overflow-x: auto;
  overflow-y: hidden;
  padding-bottom: 6px;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  cursor: grab;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

.wallet-app__crypto-carousel::-webkit-scrollbar {
  display: none;
}

.wallet-app__crypto-carousel.is-dragging {
  cursor: grabbing;
  scroll-behavior: auto;
  user-select: none;
}

.wallet-app__crypto-carousel-track {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(190px, calc((100% - 36px) / 4));
  gap: 12px;
  width: max-content;
  min-width: 100%;
  min-height: 196px;
}

.wallet-app__crypto-carousel-loading {
  display: flex;
  align-items: center;
  min-height: 196px;
  padding: 0 4px;
  font-size: 0.82rem;
  color: var(--wa-muted);
  grid-column: 1 / -1;
}

.wallet-app__crypto-card {
  min-height: 196px;
  padding: 14px 14px 10px;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.09);
  background: var(--wa-glass-bg);
  backdrop-filter: blur(var(--wa-glass-blur)) saturate(1.12);
  -webkit-backdrop-filter: blur(var(--wa-glass-blur)) saturate(1.12);
  scroll-snap-align: start;
  display: flex;
  flex-direction: column;
  gap: 10px;
  cursor: pointer;
  transition: border-color 0.2s, transform 0.2s, background 0.2s;
  font: inherit;
  text-align: left;
  color: inherit;
  appearance: none;
  -webkit-appearance: none;
  width: 100%;
}

.wallet-app__crypto-card:hover,
.wallet-app__crypto-card:focus-visible {
  border-color: rgba(255, 255, 255, 0.18);
  background: rgba(28, 28, 28, 0.62);
  outline: none;
  transform: translateY(-1px);
}

.wallet-app__crypto-card-head {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr) 24px;
  align-items: start;
  gap: 10px;
}

.wallet-app__crypto-icon {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  object-fit: cover;
  background: rgba(255, 255, 255, 0.06);
}

.wallet-app__crypto-meta {
  min-width: 0;
}

.wallet-app__crypto-tag {
  display: block;
  margin-bottom: 2px;
  font-size: 0.62rem;
  color: var(--wa-muted-2);
}

.wallet-app__crypto-meta strong {
  display: block;
  font-size: 0.76rem;
  font-weight: 600;
  line-height: 1.25;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.wallet-app__crypto-link {
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  color: var(--wa-muted);
  background: rgba(255, 255, 255, 0.04);
}

.wallet-app__crypto-card-body {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.wallet-app__crypto-label {
  font-size: 0.64rem;
  color: var(--wa-muted-2);
}

.wallet-app__crypto-price {
  font-size: 1.28rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.1;
}

.wallet-app__crypto-change {
  align-self: flex-start;
  margin-top: 4px;
  padding: 3px 8px;
  border-radius: 999px;
  font-size: 0.68rem;
  font-weight: 600;
}

.wallet-app__crypto-change.is-up {
  color: #8dffb1;
  background: rgba(72, 196, 120, 0.16);
}

.wallet-app__crypto-change.is-down {
  color: #ff8da0;
  background: rgba(255, 92, 122, 0.16);
}

.wallet-app__crypto-card-chart {
  margin-top: auto;
  height: 72px;
  overflow: hidden;
}

.wallet-app__crypto-card-svg {
  display: block;
  width: 100%;
  height: 100%;
}

/* ─── Coin modal ─── */
.wallet-app__coin-modal {
  position: fixed;
  inset: 0;
  z-index: 400;
  display: grid;
  place-items: center;
  padding: 24px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.28s ease;
}

.wallet-app__coin-modal.is-open {
  opacity: 1;
  pointer-events: auto;
}

.wallet-app__coin-modal[hidden] {
  display: none !important;
}

.wallet-app__coin-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(6, 6, 6, 0.45);
  backdrop-filter: blur(28px) saturate(1.15);
  -webkit-backdrop-filter: blur(28px) saturate(1.15);
}

.wallet-app__coin-modal-panel {
  position: relative;
  z-index: 1;
  width: min(100%, 520px);
  max-height: min(88vh, 720px);
  overflow: auto;
  padding: 22px 22px 18px;
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(18, 18, 18, 0.55);
  backdrop-filter: blur(32px) saturate(1.2);
  -webkit-backdrop-filter: blur(32px) saturate(1.2);
  box-shadow:
    0 24px 80px rgba(0, 0, 0, 0.55),
    inset 0 1px 0 rgba(255, 255, 255, 0.06);
  transform: translateY(12px) scale(0.98);
  transition: transform 0.28s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.wallet-app__coin-modal.is-open .wallet-app__coin-modal-panel {
  transform: translateY(0) scale(1);
}

.wallet-app__coin-modal-close {
  position: absolute;
  top: 14px;
  right: 14px;
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  color: var(--wa-muted);
  transition: color 0.2s, border-color 0.2s;
}

.wallet-app__coin-modal-close:hover {
  color: var(--wa-text);
  border-color: rgba(255, 255, 255, 0.16);
}

.wallet-app__coin-page,
.wallet-app__coin-back {
  display: none;
}

.wallet-app__coin-hero {
  display: flex;
  align-items: center;
  gap: 14px;
  padding-right: 36px;
}

.wallet-app__coin-hero-icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  object-fit: cover;
  background: rgba(255, 255, 255, 0.06);
}

.wallet-app__coin-name {
  font-size: clamp(1.35rem, 2.4vw, 1.65rem);
  line-height: 1.08;
}

.wallet-app__coin-symbol {
  margin-top: 2px;
  font-size: 0.84rem;
  color: var(--wa-muted);
}

.wallet-app__coin-price-row {
  display: flex;
  align-items: baseline;
  gap: 12px;
  flex-wrap: wrap;
}

.wallet-app__coin-price {
  font-size: 2rem;
  font-weight: 700;
  letter-spacing: -0.03em;
}

.wallet-app__coin-change {
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 600;
}

.wallet-app__coin-change.is-up {
  color: #8dffb1;
  background: rgba(72, 196, 120, 0.16);
}

.wallet-app__coin-change.is-down {
  color: #ff8da0;
  background: rgba(255, 92, 122, 0.16);
}

.wallet-app__coin-chart-section {
  margin: 0;
}

.wallet-app__chart-head--coin {
  padding: 0;
  margin-bottom: 8px;
}

.wallet-app__coin-chart {
  height: 180px;
  overflow: hidden;
}

.wallet-app__coin-chart .wallet-app__chart-svg,
.wallet-app__coin-chart .wallet-app__chart-empty,
.wallet-app__coin-chart .wallet-app__chart-loading {
  width: 100%;
  height: 100%;
}

.wallet-app__coin-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.wallet-app__coin-stat {
  padding: 14px 16px;
  border-radius: var(--wa-radius-sm);
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: var(--wa-glass-bg);
  backdrop-filter: blur(var(--wa-glass-blur)) saturate(1.1);
  -webkit-backdrop-filter: blur(var(--wa-glass-blur)) saturate(1.1);
}

.wallet-app__coin-stat--wide {
  grid-column: 1 / -1;
}

.wallet-app__coin-stat span {
  display: block;
  margin-bottom: 6px;
  font-size: 0.72rem;
  color: var(--wa-muted);
}

.wallet-app__coin-stat strong {
  font-size: 0.92rem;
  font-weight: 600;
  word-break: break-all;
}

.wallet-app__coin-stat strong.is-up {
  color: #8dffb1;
}

.wallet-app__coin-stat strong.is-down {
  color: #ff8da0;
}

.wallet-app__page-title {
  font-size: clamp(1.45rem, 2.2vw, 1.85rem);
  line-height: 1.08;
}

.wallet-app__page-sub {
  margin-top: 6px;
  font-size: 0.84rem;
  color: var(--wa-muted);
}

.wallet-app__page-actions {
  display: flex;
  gap: 6px;
}

.wallet-app__chip {
  padding: 8px 16px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--wa-muted);
  background: var(--wa-glass-bg);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.wallet-app__chip.is-active {
  color: var(--wa-text);
  border-color: rgba(255, 255, 255, 0.14);
  background: rgba(30, 30, 30, 0.55);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.wallet-app__account-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
  padding: 12px 16px;
  border-radius: var(--wa-radius-sm);
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: var(--wa-glass-bg);
  backdrop-filter: blur(var(--wa-glass-blur)) saturate(1.1);
  -webkit-backdrop-filter: blur(var(--wa-glass-blur)) saturate(1.1);
}

.wallet-app__account-bar-main {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  font-size: 0.84rem;
}

.wallet-app__account-label {
  color: var(--wa-muted);
}

.wallet-app__status-badge {
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 0.7rem;
  font-weight: 600;
  border: 1px solid var(--wa-border);
  color: var(--wa-muted);
}

.wallet-app__status-badge.is-active {
  border-color: rgba(255, 255, 255, 0.35);
  color: var(--wa-green);
  background: var(--wa-green-dim);
}

/* ─── Metric cards ─── */
.wallet-app__metrics-grid {
  display: grid;
  grid-template-columns: 1.05fr 1.55fr 0.82fr;
  gap: 14px;
  margin-bottom: 18px;
  align-items: stretch;
}

.wallet-app__metric-card {
  padding: 18px;
  border-radius: var(--wa-radius);
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: var(--wa-glass-bg);
  backdrop-filter: blur(var(--wa-glass-blur)) saturate(1.1);
  -webkit-backdrop-filter: blur(var(--wa-glass-blur)) saturate(1.1);
}

.wallet-app__metric-card--portfolio {
  display: flex;
  flex-direction: column;
}

.wallet-app__metric-chart-wrap {
  margin-top: 14px;
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
}

.wallet-app__chart-head--embedded {
  display: flex;
  justify-content: flex-end;
  margin-bottom: 6px;
  padding: 0;
}

.wallet-app__chart--embedded {
  height: 148px;
  flex: 1;
  min-height: 148px;
}

.wallet-app__metric-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
  font-size: 0.78rem;
  color: var(--wa-muted);
}

.wallet-app__risk-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  font-size: 0.7rem;
  color: var(--wa-green);
}

.wallet-app__risk-badge i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--wa-green);
  box-shadow: 0 0 8px var(--wa-green);
}

.wallet-app__metric-value {
  font-size: 1.75rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.wallet-app__metric-change {
  margin-top: 4px;
  font-size: 0.84rem;
  color: var(--wa-muted);
}

.wallet-app__metric-change.is-up { color: var(--wa-green); }
.wallet-app__metric-change.is-down { color: var(--wa-red); }

.wallet-app__pl-bars {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-top: 18px;
  font-size: 0.72rem;
  color: var(--wa-muted);
}

.wallet-app__pl-bars > div {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.wallet-app__bar {
  height: 72px;
  border-radius: 6px;
  background: rgba(10, 10, 10, 0.35);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.wallet-app__bar i {
  display: block;
  width: 100%;
  background: linear-gradient(180deg, #ffffff, #d4d4d4);
  border-radius: 4px 4px 0 0;
  transition: height 0.4s ease;
}

.wallet-app__bar--loss i {
  background: linear-gradient(180deg, var(--wa-red), #cc3355);
}

.wallet-app__pl-bars em {
  font-style: normal;
  font-weight: 600;
  color: var(--wa-text);
}

.wallet-app__metric-card-title {
  margin-bottom: 14px;
  font-size: 0.78rem;
  color: var(--wa-muted);
}

.wallet-app__metric-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.wallet-app__metric-list li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font-size: 0.84rem;
}

.wallet-app__metric-list span {
  color: var(--wa-muted);
}

/* ─── Holdings card (reference layout, white theme) ─── */
.wallet-app__metric-card--holdings {
  padding: 14px;
}

.wallet-app__holdings-layout {
  display: grid;
  grid-template-columns: minmax(210px, 0.92fr) minmax(0, 1.35fr);
  gap: 16px;
  min-height: 100%;
}

.wallet-app__holdings-chart-col {
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-width: 0;
  justify-content: center;
}

.wallet-app__holdings-tabs {
  display: flex;
  gap: 8px;
}

.wallet-app__holdings-tabs button {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 10px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.03);
  font-size: 0.68rem;
  font-weight: 600;
  color: var(--wa-muted);
  cursor: pointer;
  font-family: inherit;
}

.wallet-app__holdings-tabs button i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.28);
  font-style: normal;
}

.wallet-app__holdings-tabs button.is-active {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.24);
  background: rgba(255, 255, 255, 0.08);
}

.wallet-app__holdings-tabs button.is-active i {
  background: #fff;
  box-shadow: 0 0 8px rgba(255, 255, 255, 0.45);
}

.wallet-app__holdings-donut-wrap {
  position: relative;
  width: 100%;
  max-width: 400px;
  min-height: 200px;
  margin: 0 auto;
  aspect-ratio: 1;
}

.wallet-app__holdings-donut {
  display: block;
  width: 100%;
  height: 100%;
}

.wallet-app__holdings-donut-track {
  fill: none;
  stroke: rgba(255, 255, 255, 0.1);
  stroke-width: 16;
}

.wallet-app__holdings-donut-segment {
  transition: stroke-dashoffset 0.45s ease, stroke-dasharray 0.45s ease;
}

.wallet-app__holdings-donut-center {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 0 12px;
}

.wallet-app__holdings-donut-center strong {
  font-size: 1.75rem;
  font-weight: 700;
  color: #fff;
  letter-spacing: -0.03em;
  line-height: 1;
}

.wallet-app__holdings-donut-center span {
  margin-top: 5px;
  font-size: 0.68rem;
  color: var(--wa-muted);
}

.wallet-app__holdings-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 10px;
  justify-content: center;
}

.wallet-app__holdings-legend-item {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 0.62rem;
  color: var(--wa-muted);
}

.wallet-app__holdings-legend-item i {
  width: 14px;
  height: 4px;
  border-radius: 999px;
  font-style: normal;
  flex-shrink: 0;
}

.wallet-app__holdings-legend-item span {
  color: rgba(255, 255, 255, 0.82);
}

.wallet-app__holdings-legend-item em {
  font-style: normal;
  font-weight: 600;
  color: #fff;
}

.wallet-app__holdings-legend-empty {
  font-size: 0.68rem;
  color: var(--wa-muted);
}

.wallet-app__holdings-list-panel {
  display: flex;
  flex-direction: column;
  min-width: 0;
  min-height: 248px;
  padding: 16px 18px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.04);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.wallet-app__holdings-list-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 14px;
}

.wallet-app__holdings-list-title {
  font-size: 1.12rem;
  line-height: 1.1;
  color: #fff;
}

.wallet-app__holdings-list-link {
  font-size: 0.74rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.72);
  white-space: nowrap;
}

.wallet-app__holdings-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin: 0;
  padding: 0;
  overflow: hidden;
  flex: 1;
}

.wallet-app__holdings-row {
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
}

.wallet-app__holdings-row img {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  object-fit: cover;
}

.wallet-app__holdings-row-meta {
  min-width: 0;
}

.wallet-app__holdings-row-meta strong {
  display: block;
  font-size: 0.88rem;
  color: #fff;
  line-height: 1.2;
}

.wallet-app__holdings-row-meta small.wallet-app__holdings-row-price {
  display: block;
  margin-top: 3px;
  font-size: 0.72rem;
  color: var(--wa-muted);
}

.wallet-app__holdings-row-values {
  text-align: right;
}

.wallet-app__holdings-row-amount {
  display: block;
  font-size: 0.84rem;
  font-weight: 700;
  color: #fff;
  line-height: 1.2;
}

.wallet-app__holdings-row-price {
  display: block;
  font-size: 0.72rem;
  color: var(--wa-muted);
  line-height: 1.2;
}

.wallet-app__holdings-row-values span {
  display: block;
  margin-top: 3px;
  font-size: 0.74rem;
  font-weight: 600;
  line-height: 1.2;
}

.wallet-app__holdings-row-values span.is-up {
  color: #86efac;
}

.wallet-app__holdings-row-values span.is-down {
  color: var(--wa-red);
}

.wallet-app__holdings-row--empty {
  grid-template-columns: 1fr;
  font-size: 0.72rem;
  color: var(--wa-muted);
}

/* ─── App promo card ─── */
.wallet-app__metric-card--app-promo {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-height: 300px;
  padding: 16px;
  overflow: hidden;
  background: #0a0a0a;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

.wallet-app__metric-card--app-promo::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 0;
  background: url('/images/wallet-phone.png') center center / cover no-repeat;
}

.wallet-app__metric-card--app-promo::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background: linear-gradient(
    180deg,
    rgba(10, 10, 10, 0.05) 0%,
    rgba(10, 10, 10, 0.18) 38%,
    rgba(10, 10, 10, 0.72) 68%,
    rgba(10, 10, 10, 0.97) 100%
  );
}

.wallet-app__app-promo-copy {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.wallet-app__app-promo-title {
  font-size: clamp(1.2rem, 2vw, 1.45rem);
  line-height: 1.12;
  color: #fff;
}

.wallet-app__app-promo-text {
  font-size: 0.86rem;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.78);
  max-width: 92%;
}

.wallet-app__app-promo-cta {
  margin-top: 4px;
  align-self: flex-start;
  width: auto;
  min-height: 30px;
  padding: 0 14px;
  font-size: 0.7rem;
  font-weight: 600;
  color: #fff;
  text-decoration: none;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(16px) saturate(1.2);
  -webkit-backdrop-filter: blur(16px) saturate(1.2);
  border: 1px solid rgba(255, 255, 255, 0.22);
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.28);
}

.wallet-app__app-promo-cta:hover {
  opacity: 1;
  background: rgba(255, 255, 255, 0.16);
  border-color: rgba(255, 255, 255, 0.32);
}

.wallet-app__chart-section {
  margin: 4px -24px 22px;
}

.wallet-app__chart-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
  padding: 0 24px;
}

.wallet-app__chart-change {
  font-size: 0.88rem;
  font-weight: 600;
  color: rgba(200, 155, 60, 0.95);
}

.wallet-app__chart-change.is-up {
  color: rgba(200, 155, 60, 0.95);
}

.wallet-app__chart-change.is-down {
  color: var(--wa-red);
}

.wallet-app__chart-tabs {
  display: flex;
  gap: 4px;
}

.wallet-app__chart-tabs button {
  padding: 4px 8px;
  border-radius: 6px;
  font-size: 0.7rem;
  color: var(--wa-muted);
  background: transparent;
  border: none;
  cursor: pointer;
  font-family: inherit;
}

.wallet-app__chart-tabs button.is-active {
  background: var(--wa-glass-bg);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  color: var(--wa-text);
}

.wallet-app__chart-empty,
.wallet-app__chart-loading {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
  font-size: 0.8rem;
  color: var(--wa-muted);
}

.wallet-app__chart {
  width: 100%;
  height: 200px;
  margin: 0;
  border-radius: 0;
  overflow: hidden;
  background: transparent;
  border: none;
}

.wallet-app__chart svg,
.wallet-app__chart-svg {
  display: block;
  width: 100%;
  height: 100%;
}

.wallet-app__chart-volume rect {
  shape-rendering: crispEdges;
}

/* ─── Stats row ─── */
.wallet-app__stats-row {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 22px;
}

.wallet-app__stat {
  padding: 14px 16px;
  border-radius: var(--wa-radius-sm);
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: var(--wa-glass-bg);
  backdrop-filter: blur(var(--wa-glass-blur)) saturate(1.1);
  -webkit-backdrop-filter: blur(var(--wa-glass-blur)) saturate(1.1);
}

.wallet-app__stat-label {
  font-size: 0.72rem;
  color: var(--wa-muted);
  margin-bottom: 6px;
}

.wallet-app__stat-value {
  font-size: 1rem;
  font-weight: 700;
}

.wallet-app__stat-sub {
  margin-top: 4px;
  font-size: 0.72rem;
  color: var(--wa-green);
}

.wallet-app__stat-sub.is-down {
  color: var(--wa-red);
}

/* ─── Sections & tables ─── */
.wallet-app__section {
  margin-bottom: 24px;
}

.wallet-app__section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.wallet-app__section-head h3 {
  font-size: 0.95rem;
  font-weight: 600;
}

.wallet-app__badge {
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid var(--wa-border);
  font-size: 0.7rem;
  color: var(--wa-muted);
}

.wallet-app__table-wrap {
  border-radius: var(--wa-radius);
  border: 1px solid rgba(255, 255, 255, 0.08);
  overflow: auto;
  background: var(--wa-glass-bg);
  backdrop-filter: blur(var(--wa-glass-blur)) saturate(1.1);
  -webkit-backdrop-filter: blur(var(--wa-glass-blur)) saturate(1.1);
}

.wallet-app__table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.82rem;
}

.wallet-app__table th {
  padding: 12px 16px;
  text-align: left;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--wa-muted);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(10, 10, 10, 0.35);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  white-space: nowrap;
}

.wallet-app__table td {
  padding: 14px 16px;
  border-bottom: 1px solid var(--wa-border);
  vertical-align: middle;
}

.wallet-app__table tr:last-child td {
  border-bottom: none;
}

.wallet-app__table tr:hover td {
  background: rgba(255, 255, 255, 0.02);
}

.wallet-app__table-asset {
  display: flex;
  align-items: center;
  gap: 12px;
}

.wallet-app__table-asset img {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  object-fit: cover;
  background: #222;
}

.wallet-app__table-asset strong {
  display: block;
  font-size: 0.86rem;
}

.wallet-app__table-asset small {
  color: var(--wa-muted);
  font-size: 0.74rem;
}

.wallet-app__side-badge {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 6px;
  font-size: 0.72rem;
  font-weight: 700;
}

.wallet-app__side-badge.is-buy {
  background: var(--wa-green-dim);
  color: var(--wa-green);
}

.wallet-app__holdings-more {
  margin-top: 10px;
  font-size: 0.8rem;
  color: var(--wa-muted);
  text-align: center;
}

.wallet-app__holdings-more[hidden] {
  display: none;
}

.is-up { color: var(--wa-green); }
.is-down { color: var(--wa-red); }

/* ─── Asset grids ─── */
.wallet-app__asset-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.wallet-app__asset-card,
.wallet-app__stock-card {
  padding: 16px;
  border-radius: var(--wa-radius);
  border: 1px solid var(--wa-border);
  background: var(--wa-card);
}

.wallet-app__asset-card-top {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
}

.wallet-app__asset-card img,
.wallet-app__stock-card img {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  object-fit: cover;
}

.wallet-app__asset-name {
  font-size: 0.88rem;
  font-weight: 600;
}

.wallet-app__asset-symbol {
  font-size: 0.74rem;
  color: var(--wa-muted);
}

.wallet-app__asset-price {
  font-size: 1rem;
  font-weight: 600;
}

.wallet-app__asset-change {
  margin-top: 4px;
  font-size: 0.78rem;
}

.wallet-app__stock-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.wallet-app__stock-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.wallet-app__stock-card-main {
  display: flex;
  align-items: center;
  gap: 12px;
}

.wallet-app__stock-meta {
  text-align: right;
}

/* ─── Floating dock ─── */
.wallet-app__dock {
  position: absolute;
  left: 50%;
  bottom: 18px;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 10px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: var(--wa-glass-bg-strong);
  backdrop-filter: blur(var(--wa-glass-blur)) saturate(1.2);
  -webkit-backdrop-filter: blur(var(--wa-glass-blur)) saturate(1.2);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.35);
}

.wallet-app__dock button {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  color: var(--wa-muted);
  transition: background 0.2s, color 0.2s;
}

.wallet-app__dock button:hover,
.wallet-app__dock button.is-active {
  color: var(--wa-text);
  background: var(--wa-glass-bg);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.wallet-app__dock button.is-active {
  color: var(--wa-green);
}

@media (max-height: 860px) {
  .wallet-app__sidebar-markets--etfs .wallet-app__sidebar-markets-scroll,
  .wallet-app__sidebar-markets--stocks .wallet-app__sidebar-markets-scroll,
  .wallet-app__sidebar-markets-scroll {
    max-height: 140px;
  }
}

@media (max-width: 1100px) {
  .wallet-app {
    display: none !important;
  }
}

@media (max-width: 1280px) {
  .wallet-app__panel--dashboard {
    --wa-sidebar: 220px;
  }

  .wallet-app__metrics-grid {
    grid-template-columns: 1fr 1fr;
  }

  .wallet-app__metric-card--holdings {
    grid-column: 1 / -1;
  }

  .wallet-app__metric-card--app-promo {
    grid-column: 1 / -1;
    min-height: 240px;
  }

  .wallet-app__crypto-carousel-track {
    grid-auto-columns: minmax(180px, calc((100% - 24px) / 3));
  }

  .wallet-app__coin-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .wallet-app__stats-row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .wallet-app__asset-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 900px) {
  .wallet-app__connect-layout,
  .wallet-app__auth-layout {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .wallet-app__metrics-grid {
    grid-template-columns: 1fr;
  }

  .wallet-app__holdings-layout {
    grid-template-columns: 1fr;
  }

  .wallet-app__metric-card--app-promo {
    grid-column: auto;
    min-height: 280px;
  }

  .wallet-app__app-promo-cta {
    align-self: flex-start;
    width: auto;
  }
}
