/**
 * VantageProMarket reference clone — landing + mobile trading hub
 */

/* ─── Reference landing ─── */
.vpm-reference-landing {
  --vpm-ref-orange: #ff6b00;
  --vpm-ref-navy: #010121;
  --vpm-ref-teal: #0d3d3d;
  background: #000;
  color: #fff;
  font-family: var(--vpm-font-sans);
}

.vpm-ref-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 62;
  width: 100%;
  height: 56px;
  background: transparent;
  border-bottom: 1px solid transparent;
  transition: background 200ms ease, border-color 200ms ease, box-shadow 200ms ease;
}

.vpm-ref-header.vpm-ref-header--scrolled {
  background: #034854;
  border-bottom-color: rgba(255, 255, 255, 0.08);
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.2);
}

.vpm-ref-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  padding: 0 16px;
}

.vpm-ref-header__left,
.vpm-ref-header__right {
  display: flex;
  align-items: center;
}

.vpm-ref-header__left {
  gap: 10px;
}

.vpm-ref-header__right {
  gap: 10px;
}

@media (min-width: 640px) {
  .vpm-ref-header__right {
    gap: 32px;
  }
}

.vpm-ref-header__menu {
  width: 36px;
  height: 36px;
  justify-content: center;
  border-radius: 6px;
}

.vpm-ref-header__menu:hover {
  background: transparent;
}

.vpm-ref-header__lang-icon {
  font-size: 30px !important;
}

.vpm-ref-header__link--hide-tablet {
  display: inline;
}

@media (max-width: 639px) {
  .vpm-ref-header__link--hide-tablet {
    display: none;
  }
}

/* Marketing site slide-out menu */
.vpm-marketing-drawer__backdrop {
  position: fixed;
  inset: 0;
  z-index: 60;
  background: rgba(0, 0, 0, 0.8);
}

.vpm-marketing-drawer__backdrop[hidden],
.vpm-marketing-drawer[hidden] {
  display: none;
}

body.vpm-marketing-drawer--open {
  overflow: hidden;
  pointer-events: none;
}

body.vpm-marketing-drawer--open .vpm-ref-header,
body.vpm-marketing-drawer--open .vpm-marketing-drawer,
body.vpm-marketing-drawer--open .vpm-marketing-drawer__backdrop {
  pointer-events: auto;
}

body.vpm-marketing-drawer--open .vpm-ref-header__brand {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.vpm-marketing-drawer {
  position: fixed;
  inset: 0 auto 0 0;
  z-index: 61;
  display: flex;
  flex-direction: column;
  width: 300px;
  max-width: 88vw;
  height: 100%;
  overflow: auto;
  background: #fff;
  color: #034854;
  border-right: 1px solid #e5e7eb;
  box-shadow: 4px 0 32px rgba(0, 0, 0, 0.15);
}

.vpm-marketing-drawer__head {
  padding: 24px;
  background: #e8f4f3;
}

.vpm-marketing-drawer__nav {
  flex: 1;
}

.vpm-marketing-drawer__nav ul {
  list-style: none;
  margin: 0;
  padding: 4px 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.vpm-marketing-drawer__link {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 8px 32px;
  font-size: 14px;
  font-weight: 500;
  color: #034854;
  text-decoration: none;
  border-radius: 0;
  transition: background 150ms ease, color 150ms ease;
}

.vpm-marketing-drawer__link .material-icons {
  font-size: 20px;
  color: inherit;
}

.vpm-marketing-drawer__link:hover {
  background: #e8f4f3;
  color: var(--vpm-ref-orange);
}

.vpm-ref-header__menu,
.vpm-ref-header__lang {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 8px;
  border: 0;
  background: transparent;
  color: #fff;
  cursor: pointer;
  font: inherit;
}

.vpm-ref-header__menu:hover,
.vpm-ref-header__lang:hover,
.vpm-ref-header__link:hover,
.vpm-ref-header__dashboard:hover {
  color: var(--vpm-ref-orange);
}

.vpm-ref-header__menu .material-icons,
.vpm-ref-header__lang .material-icons {
  color: #fff;
}

.vpm-ref-header__menu:hover .material-icons,
.vpm-ref-header__lang:hover .material-icons {
  color: var(--vpm-ref-orange);
}

.vpm-ref-header__brand {
  transition: transform 150ms ease;
}

.vpm-ref-header__brand:hover {
  transform: translateY(-2px);
}

.vpm-ref-header__brand .vpm-logo__img {
  height: 23px;
}

.vpm-ref-header__dashboard {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: #fff;
  font-weight: 500;
  text-decoration: none;
}

.vpm-ref-header__dashboard-icon {
  font-size: 28px !important;
}

.vpm-ref-header__dashboard-label {
  display: none;
}

@media (min-width: 1024px) {
  .vpm-ref-header__dashboard-icon {
    display: none;
  }

  .vpm-ref-header__dashboard-label {
    display: inline;
  }
}

.vpm-ref-header__link {
  color: #fff;
  font-weight: 500;
  text-decoration: none;
}

.vpm-ref-header__link--hide-mobile {
  display: none;
}

@media (min-width: 1024px) {
  .vpm-ref-header__link--hide-mobile {
    display: inline;
  }
}


.vpm-ref-landing {
  padding-top: 0;
}

.vpm-ref-hero-wrap {
  position: relative;
}

.vpm-ref-hero {
  position: relative;
  display: flex;
  min-height: 100vh;
  min-height: 100dvh;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  text-align: center;
  padding: 56px 16px 48px;
  color: #fff;
}

.vpm-ref-hero__video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}

.vpm-ref-hero__overlay {
  display: none;
}

.vpm-ref-hero__cta-group {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  width: 100%;
  max-width: 18rem;
}

@media (min-width: 768px) {
  .vpm-ref-hero__cta-group {
    max-width: none;
  }
}

.vpm-ref-hero__content {
  position: relative;
  z-index: 3;
  max-width: 720px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  align-items: center;
}

.vpm-ref-hero h1 {
  font-size: clamp(2rem, 6vw, 3.5rem);
  font-weight: 700;
  line-height: 1.1;
}

.vpm-ref-hero__lead {
  font-size: clamp(1rem, 2.5vw, 1.25rem);
  opacity: 0.95;
}

.vpm-ref-hero__sub {
  font-size: 0.875rem;
  opacity: 0.85;
}

.vpm-ref-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 40px;
  border-radius: 6px;
  font-weight: 600;
  text-decoration: none;
  transition: opacity 150ms ease;
}

.vpm-ref-btn--white {
  background: #fff;
  color: #000;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.25);
}

.vpm-ref-btn--white:hover {
  background: rgba(255, 255, 255, 0.9);
}

.vpm-ref-btn--block-sm {
  width: 100%;
  max-width: 20rem;
}

@media (min-width: 768px) {
  .vpm-ref-btn--block-sm {
    width: auto;
    min-width: 280px;
  }
}

.vpm-ref-btn--outline {
  border: 1px solid var(--vpm-ref-orange);
  color: #fff;
  background: transparent;
}

.vpm-ref-btn--outline:hover {
  background: rgba(255, 107, 0, 0.12);
}

.vpm-ref-btn--primary-text {
  color: var(--vpm-ref-orange);
}

.vpm-ref-section {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 48px;
  padding: 48px 16px;
  text-align: center;
}

@media (min-width: 768px) {
  .vpm-ref-section {
    padding: 56px 24px;
  }
}

.vpm-ref-section--dark {
  background: #000;
  color: #fff;
}

.vpm-ref-section--navy {
  background: var(--vpm-ref-navy);
  color: #fff;
}

.vpm-ref-section__head h2 {
  font-size: clamp(1.75rem, 4vw, 3rem);
  font-weight: 700;
  margin-bottom: 12px;
}

.vpm-ref-section__head p {
  font-size: clamp(1rem, 2vw, 1.25rem);
  opacity: 0.9;
  max-width: 720px;
  margin: 0 auto;
}

.vpm-ref-aurora {
  position: absolute;
  inset: 0;
  background: url('https://static.tradingview.com/static/bundles/aurora.d2a6947c3dcfb777c25f.webp') center top / cover no-repeat;
  opacity: 0.35;
  pointer-events: none;
}

.vpm-ref-investing > :not(.vpm-ref-aurora) {
  position: relative;
  z-index: 1;
}

.vpm-ref-platform-video {
  overflow: hidden;
  border-radius: 8px;
  border: 4px solid transparent;
  background: linear-gradient(190deg, #a7fff0 0%, #ce93d8 100%);
  padding: 4px;
}

.vpm-ref-platform-video video {
  display: block;
  width: min(876px, 92vw);
  height: auto;
  aspect-ratio: 16 / 9;
}

.vpm-ref-assets__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  width: 100%;
  max-width: 1100px;
}

@media (min-width: 768px) {
  .vpm-ref-assets__grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 48px;
  }
}

.vpm-ref-assets__grid img {
  width: 100%;
  max-width: 290px;
  margin: 0 auto;
  border-radius: 16px;
}

.vpm-ref-services {
  background: #f3f4f6;
  color: #111;
}

.vpm-ref-services__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
  width: 100%;
  max-width: 1200px;
}

@media (min-width: 640px) {
  .vpm-ref-services__grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .vpm-ref-services__grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.vpm-ref-service-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  text-align: center;
}

.vpm-ref-service-card__img {
  width: 100%;
  max-width: 316px;
  height: auto;
}

.vpm-ref-service-card__copy {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.vpm-ref-service-card__icon {
  font-size: 48px !important;
  color: var(--vpm-ref-orange);
}

.vpm-ref-service-card h3 {
  font-size: 1.5rem;
  font-weight: 600;
}

.vpm-ref-service-card p {
  font-size: 0.95rem;
  line-height: 1.6;
  color: #444;
}

.vpm-ref-split {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
  text-align: left;
  max-width: 1200px;
  margin: 0 auto;
  width: 100%;
}

@media (min-width: 768px) {
  .vpm-ref-split {
    grid-template-columns: 1fr 1fr;
    align-items: center;
  }
}

.vpm-ref-split__media {
  width: 100%;
  border-radius: 8px;
  object-fit: cover;
  min-height: 240px;
}

.vpm-ref-split__copy {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.vpm-ref-split__copy h2 {
  font-size: clamp(1.75rem, 3vw, 2.25rem);
  font-weight: 700;
}

.vpm-ref-split__copy p {
  font-size: clamp(1rem, 2vw, 1.25rem);
  line-height: 1.6;
  opacity: 0.92;
}

.vpm-ref-trust__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  width: 100%;
  max-width: 1100px;
}

@media (min-width: 640px) {
  .vpm-ref-trust__grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .vpm-ref-trust__grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.vpm-ref-trust-card {
  border: 1px solid #e5e7eb;
  border-radius: 16px;
  padding: 24px;
  text-align: left;
  background: #fff;
  color: #111;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.vpm-ref-trust-card__img {
  width: 100%;
  max-width: 135px;
  height: auto;
}

.vpm-ref-trust-card__copy h3 {
  font-size: 1.5rem;
  margin-bottom: 8px;
}

.vpm-ref-trust-card__copy p {
  font-size: 0.875rem;
  color: #555;
}

.vpm-ref-traders__title {
  font-size: 2rem;
  font-weight: 700;
  text-align: center;
}

.vpm-ref-traders__grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 16px;
  width: 100%;
  max-width: 1100px;
}

.vpm-ref-trader-card {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  padding: 16px;
  text-align: left;
}

.vpm-ref-trader-card__star {
  color: #fbbf24 !important;
  font-size: 20px !important;
}

.vpm-ref-trader-card h3 {
  font-size: 1rem;
  margin: 8px 0 4px;
}

.vpm-ref-trader-card p {
  font-size: 0.75rem;
  opacity: 0.8;
}

.vpm-ref-news__widget {
  width: 100%;
  max-width: 1100px;
  height: 400px;
}

.vpm-ref-news__widget iframe {
  width: 100%;
  height: 100%;
  border: 0;
}

.vpm-ref-mining {
  background: #f3f4f6;
  color: #111;
}

.vpm-ref-mining__intro {
  max-width: 900px;
  text-align: center;
}

.vpm-ref-mining__intro h2 {
  font-size: 1.75rem;
  margin-bottom: 16px;
}

.vpm-ref-mining__intro p {
  text-align: justify;
  margin-bottom: 12px;
  line-height: 1.7;
}

.vpm-ref-mining__coins {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  width: 100%;
  max-width: 900px;
}

@media (min-width: 768px) {
  .vpm-ref-mining__coins {
    grid-template-columns: repeat(4, 1fr);
  }
}

.vpm-ref-coin-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  padding: 24px;
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 4px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.vpm-ref-enigma__lead {
  max-width: 900px;
  line-height: 1.7;
  opacity: 0.9;
}

.vpm-ref-enigma__carousel {
  position: relative;
  width: 100%;
  max-width: 1100px;
  overflow: hidden;
}

.vpm-ref-enigma__track {
  display: flex;
  transition: transform 400ms cubic-bezier(0.16, 1, 0.3, 1);
}

.vpm-ref-enigma__slide {
  flex: 0 0 100%;
  display: grid;
  grid-template-columns: 1fr;
  background: #f3f4f6;
  color: #111;
  overflow: hidden;
}

@media (min-width: 1024px) {
  .vpm-ref-enigma__slide {
    grid-template-columns: 1fr 1fr;
  }
}

.vpm-ref-enigma__slide img {
  width: 100%;
  height: 100%;
  min-height: 220px;
  object-fit: cover;
}

.vpm-ref-enigma__slide-copy {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  padding: 24px 32px;
  text-align: center;
}

.vpm-ref-enigma__num {
  font-size: 2.5rem;
  font-weight: 700;
}

.vpm-ref-enigma__slide-copy h3 {
  font-size: 1.5rem;
  font-weight: 700;
}

.vpm-ref-enigma__slide-copy p {
  max-width: 55ch;
  line-height: 1.6;
}

.vpm-ref-enigma__dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 16px;
}

.vpm-ref-enigma__dots button {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: 0;
  background: #666;
  cursor: pointer;
  padding: 0;
}

.vpm-ref-enigma__dots button[aria-current='true'] {
  background: #111;
  transform: scale(1.15);
}

.vpm-ref-faq {
  background: #f3f4f6;
  color: #111;
}

.vpm-ref-faq > h2 {
  font-size: 2rem;
  font-weight: 700;
}

.vpm-ref-faq__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  width: 100%;
  max-width: 1100px;
}

@media (min-width: 1024px) {
  .vpm-ref-faq__grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.vpm-ref-faq__list {
  list-style: none;
  margin: 0;
  padding: 0;
  background: #fff;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.vpm-ref-faq__trigger {
  display: flex;
  width: 100%;
  align-items: center;
  gap: 8px;
  padding: 16px;
  border: 0;
  background: transparent;
  font-size: 1.125rem;
  text-align: left;
  cursor: pointer;
  color: inherit;
}

.vpm-ref-faq__trigger[aria-expanded='true'] .material-icons {
  transform: rotate(90deg);
}

.vpm-ref-faq__panel {
  padding: 0 16px 16px 48px;
  color: #444;
  line-height: 1.6;
}

.vpm-user-shell {
  --vpm-sidebar-w: 240px;
  flex: 1;
  width: 100%;
  min-height: 100dvh;
  background: var(--vpm-hub-bg);
}

.vpm-user-shell__main {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  min-height: 100dvh;
}

.vpm-mobile-app .vpm-dash-sidebar {
  background: hsl(0 0% 7%);
  border-right-color: var(--vpm-hub-border);
}

[data-theme='light'] .vpm-mobile-app .vpm-dash-sidebar {
  background: #fafafa;
}

.vpm-mobile-app .vpm-dash-sidebar__link--active {
  color: var(--vpm-primary);
  background: rgba(249, 115, 22, 0.12);
  box-shadow: inset 0 0 0 1px rgba(249, 115, 22, 0.35);
}

.vpm-mobile-app .vpm-dash-sidebar__link:hover {
  color: inherit;
  background: rgba(255, 255, 255, 0.06);
}

[data-theme='light'] .vpm-mobile-app .vpm-dash-sidebar__link:hover {
  background: rgba(0, 0, 0, 0.04);
}

@media (min-width: 1024px) {
  .vpm-mobile-nav__list {
    width: 50%;
    max-width: 50%;
  }
}

@media (max-width: 1023px) {
  .vpm-user-shell .vpm-dash-sidebar {
    z-index: 60;
  }

  .vpm-dashboard--sidebar-open .vpm-mobile-header,
  .vpm-dashboard--sidebar-open .vpm-app-bottom-nav {
    pointer-events: none;
  }
}

/* ─── Mobile app shell (user dashboard) ─── */
.vpm-mobile-app {
  --vpm-primary: #f97316;
  --vpm-hub-teal: #034854;
  --vpm-hub-border: hsl(0 0% 20%);
  --vpm-hub-bg: hsl(0 0% 4%);
  --vpm-hub-surface: hsl(0 0% 9%);
  --vpm-hub-text: #fff;
  --vpm-hub-text-muted: rgba(255, 255, 255, 0.65);
  display: flex;
  min-height: 100vh;
  max-width: 100vw;
  flex-direction: column;
  overflow-x: hidden;
  background: var(--vpm-hub-bg);
  color: #fff;
  font-family: var(--vpm-font-sans);
  -webkit-font-smoothing: antialiased;
}

[data-theme='light'] .vpm-mobile-app {
  --vpm-hub-bg: #fff;
  --vpm-hub-surface: #f8f8f8;
  --vpm-hub-border: #e5e5e5;
  --vpm-hub-text: #111;
  --vpm-hub-text-muted: rgba(17, 17, 17, 0.65);
  color: #111;
}

.vpm-mobile-header {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  height: 56px;
  padding: 0 16px;
  background: var(--vpm-hub-bg);
  border-bottom: 1px solid var(--vpm-hub-border);
  flex-shrink: 0;
}

.vpm-mobile-header__left,
.vpm-mobile-header__right {
  display: flex;
  align-items: center;
}

.vpm-mobile-header__left {
  gap: 10px;
}

.vpm-mobile-header__right {
  gap: 16px;
}

.vpm-mobile-header__menu {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  min-height: 44px;
  width: 44px;
  height: 44px;
  border: 0;
  background: transparent;
  color: inherit;
  cursor: pointer;
  border-radius: 6px;
}

.vpm-mobile-header__menu:hover {
  background: var(--vpm-hub-surface);
}

.vpm-mobile-header__brand {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  transition: opacity 150ms ease;
}

.vpm-mobile-header__brand:hover {
  opacity: 0.85;
}

.vpm-mobile-header__logo .vpm-logo__img,
.vpm-mobile-header__brand .vpm-logo__img {
  height: 23px;
  width: auto;
}

.vpm-mobile-header__user {
  font-size: 14px;
  font-weight: 500;
  margin: 0;
  max-width: 180px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

@media (max-width: 639px) {
  .vpm-mobile-header__user {
    display: none;
  }
}

.vpm-mobile-header__theme {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  min-height: 44px;
  width: 44px;
  height: 44px;
  border: 1px solid var(--vpm-hub-border);
  border-radius: 6px;
  background: var(--vpm-hub-bg);
  color: inherit;
  cursor: pointer;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.06);
}

.vpm-mobile-header__theme:hover {
  background: var(--vpm-hub-surface);
}

.vpm-theme-icon {
  position: absolute;
  transition: transform 200ms ease, opacity 200ms ease;
}

.vpm-theme-icon--sun {
  opacity: 1;
  transform: rotate(0) scale(1);
}

.vpm-theme-icon--moon {
  opacity: 0;
  transform: rotate(90deg) scale(0);
}

[data-theme='dark'] .vpm-theme-icon--sun {
  opacity: 0;
  transform: rotate(-90deg) scale(0);
}

[data-theme='dark'] .vpm-theme-icon--moon {
  opacity: 1;
  transform: rotate(0) scale(1);
}

.vpm-mobile-header__icon-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  min-height: 44px;
  width: 44px;
  height: 44px;
  border: 1px solid var(--vpm-hub-border);
  border-radius: 6px;
  background: var(--vpm-hub-bg);
  color: inherit;
  text-decoration: none;
  cursor: pointer;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.06);
}

.vpm-mobile-header__badge {
  position: absolute;
  top: 6px;
  right: 8px;
  width: 8px;
  height: 8px;
  border-radius: 9999px;
  background: var(--vpm-ds-destructive, #ef4444);
  animation: vpm-notification-pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
  pointer-events: none;
}

.vpm-mobile-header__icon-btn:hover {
  background: var(--vpm-hub-surface);
}

.vpm-mobile-header__menu .material-icons,
.vpm-mobile-header__icon-btn .material-icons {
  font-size: 22px;
}

/* User menu drawer (reference slide-out panel) */
.vpm-menu-drawer__backdrop {
  position: fixed;
  inset: 0;
  z-index: 50;
  background: rgba(0, 0, 0, 0.8);
}

.vpm-menu-drawer__backdrop[hidden],
.vpm-menu-drawer[hidden] {
  display: none;
}

body.vpm-menu-drawer--open {
  overflow: hidden;
}

.vpm-menu-drawer {
  position: fixed;
  inset: 0 auto 0 0;
  z-index: 51;
  display: flex;
  flex-direction: column;
  width: 300px;
  max-width: 85vw;
  height: 100%;
  overflow: auto;
  padding: 0;
  background: var(--vpm-hub-bg);
  border-right: 1px solid var(--vpm-hub-border);
  box-shadow: 4px 0 24px rgba(0, 0, 0, 0.25);
}

.vpm-menu-drawer__profile {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-height: 20vh;
  padding: 24px;
  background: url('/pages/office.webp') center / cover no-repeat;
}

.vpm-menu-drawer__avatar {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  object-fit: cover;
}

.vpm-menu-drawer__name {
  margin: 0;
  font-size: 18px;
  font-weight: 600;
  text-align: start;
  color: #fff;
}

.vpm-menu-drawer__nav {
  flex: 1;
}

.vpm-menu-drawer__nav ul {
  list-style: none;
  margin: 0;
  padding: 4px 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.vpm-menu-drawer__link {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  min-height: 44px;
  padding: 10px 32px;
  border: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  text-align: left;
  cursor: pointer;
  transition: background 150ms ease, color 150ms ease;
}

.vpm-menu-drawer__link:hover,
.vpm-menu-drawer__link--active {
  background: var(--vpm-hub-surface);
  color: var(--vpm-primary);
}

.vpm-menu-drawer__link .material-icons {
  font-size: 20px;
}

.vpm-menu-drawer__logout {
  margin: 0;
}

.vpm-mobile-drawer {
  position: absolute;
  top: 56px;
  left: 0;
  right: 0;
  z-index: 45;
  display: flex;
  flex-direction: column;
  background: var(--vpm-hub-surface);
  border-bottom: 1px solid var(--vpm-hub-border);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
}

.vpm-mobile-drawer[hidden] {
  display: none;
}

.vpm-mobile-drawer a,
.vpm-mobile-drawer button {
  padding: 14px 20px;
  color: inherit;
  text-decoration: none;
  background: none;
  border: 0;
  font: inherit;
  text-align: left;
  cursor: pointer;
}

.vpm-mobile-drawer a:hover,
.vpm-mobile-drawer button:hover {
  background: var(--vpm-hub-bg);
  color: var(--vpm-primary);
}

.vpm-mobile-app__main {
  flex: 1;
  margin-bottom: 56px;
  padding: 32px 24px;
}

@media (min-width: 768px) {
  .vpm-mobile-app__main {
    padding: 32px 80px;
  }
}

.vpm-mobile-app .vpm-flash-stack {
  margin-bottom: 16px;
}

/* App shell bottom navigation (distinct from marketing .vpm-mobile-nav overlay) */
.vpm-app-bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 50;
  display: block;
  height: calc(56px + env(safe-area-inset-bottom, 0px));
  width: 100%;
  background: #034854;
  color: #fff;
  isolation: isolate;
  padding-bottom: env(safe-area-inset-bottom, 0px);
}

.vpm-app-bottom-nav__list {
  display: flex;
  align-items: stretch;
  justify-content: space-around;
  height: 56px;
  width: 100%;
  max-width: 100%;
  margin: 0 auto;
  padding: 0;
  list-style: none;
}

.vpm-app-bottom-nav__item {
  flex: 1;
  min-width: 0;
}

.vpm-app-bottom-nav__link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  height: 100%;
  padding: 14px 16px;
  color: #fff;
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  line-height: 1;
  white-space: nowrap;
  border-radius: 0;
  transition: background-color 300ms ease, color 300ms ease;
}

.vpm-app-bottom-nav__link:hover {
  background: var(--vpm-primary);
  color: #fff;
}

.vpm-app-bottom-nav__link:focus-visible {
  outline: 2px solid var(--vpm-primary);
  outline-offset: -2px;
}

.vpm-app-bottom-nav__link .material-icons {
  font-size: 22px;
  width: 22px;
  height: 22px;
}

.vpm-app-bottom-nav__link--active {
  color: var(--vpm-primary);
  font-weight: 700;
  background: rgba(0, 0, 0, 0.18);
}

.vpm-app-bottom-nav__link--active .material-icons {
  color: var(--vpm-primary);
}

.vpm-app-bottom-nav__label {
  display: none;
}

@media (min-width: 640px) {
  .vpm-app-bottom-nav__label {
    display: inline;
  }
}

@media (min-width: 1024px) {
  .vpm-app-bottom-nav__list {
    width: 50%;
    max-width: 50%;
  }
}

.vpm-mobile-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 50;
  height: 56px;
  width: 100%;
  background: var(--vpm-hub-teal);
  color: #fff;
  isolation: isolate;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.vpm-mobile-nav__list {
  display: flex;
  align-items: stretch;
  justify-content: space-around;
  height: 100%;
  width: 100%;
  margin: 0 auto;
  padding: 0;
  list-style: none;
}

.vpm-mobile-nav__list > li {
  flex: 1;
  min-width: 0;
}

.vpm-mobile-nav__link {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  height: 100%;
  padding: 8px 4px;
  color: #fff;
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  border-radius: 0;
  transition: background 200ms ease, color 200ms ease;
}

.vpm-mobile-nav__link:hover {
  background: rgba(249, 115, 22, 0.25);
  color: #fff;
}

.vpm-mobile-nav__link .material-icons {
  font-size: 22px;
  width: 22px;
  height: 22px;
}

.vpm-mobile-nav__link--active {
  color: var(--vpm-primary);
  font-weight: 700;
  background: rgba(0, 0, 0, 0.2);
}

.vpm-mobile-nav__link--active .material-icons {
  color: var(--vpm-primary);
}

.vpm-mobile-nav__label {
  display: none;
}

@media (min-width: 640px) {
  .vpm-mobile-nav__label {
    display: inline;
  }
}

/* ─── User dashboard (/app home) ─── */
.vpm-user-dashboard__grid {
  display: grid;
  grid-template-areas:
    "balance"
    "actions"
    "trades"
    "widgets";
  gap: 32px;
}

.vpm-user-dashboard__balance {
  grid-area: balance;
}

.vpm-user-dashboard__actions {
  grid-area: actions;
}

.vpm-user-dashboard__right {
  grid-area: widgets;
  min-height: 320px;
}

.vpm-user-dashboard__widgets {
  grid-area: trades;
}

@media (min-width: 1024px) {
  .vpm-user-dashboard__grid {
    grid-template-areas:
      "balance trades"
      "actions trades"
      "widgets trades";
    grid-template-columns: 1fr 1fr;
    gap: 64px;
    align-items: start;
  }
}

.vpm-user-dashboard__left {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.vpm-balance-card--ref {
  position: relative;
  border-radius: 8px;
  background: url('/pages/balance-card-bg.png') center center / cover no-repeat;
  color: #fff;
  text-align: center;
  overflow: hidden;
}

.vpm-balance-card--ref::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(2, 18, 26, 0.55) 0%, rgba(2, 18, 26, 0.78) 100%);
  z-index: 0;
}

.vpm-balance-card--ref .vpm-balance-card__inner {
  position: relative;
  z-index: 1;
}

/* The card always sits on a dark image + gradient, so its text stays white in
   both themes. Needed because [data-theme='light'] .vpm-mobile-app sets a dark
   inherited color that would otherwise win over .vpm-balance-card--ref. */
[data-theme='light'] .vpm-balance-card--ref,
[data-theme='light'] .vpm-balance-card--ref .vpm-balance-card__amount,
[data-theme='light'] .vpm-balance-card--ref .vpm-balance-card__label,
[data-theme='light'] .vpm-balance-card--ref .vpm-balance-card__locked,
[data-theme='light'] .vpm-balance-card--ref .vpm-balance-card__signal-label {
  color: #fff;
}

.vpm-balance-card__inner {
  padding: 32px 16px;
  display: flex;
  flex-direction: column;
  gap: 40px;
}

.vpm-balance-card__top {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.vpm-balance-card__amount {
  font-family: var(--vpm-font-sans);
  font-size: 1.25rem;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  line-height: 1.2;
  margin: 0;
}

.vpm-balance-card__amount--total {
  font-size: 1.75rem;
  font-weight: 700;
  margin-bottom: 4px;
}

.vpm-balance-card__amount--available {
  font-size: 1.125rem;
  font-weight: 600;
  opacity: 0.92;
}

.vpm-balance-card__label--total {
  margin-bottom: 2px;
}

.vpm-balance-card__label,
.vpm-balance-card__signal-label {
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin: 0;
  opacity: 0.95;
}

.vpm-balance-card__locked {
  margin: 4px 0 0;
  font-size: 12px;
  opacity: 0.85;
}

.vpm-balance-card__stats {
  display: flex;
  flex-direction: column;
  gap: 16px;
  width: 100%;
}

.vpm-balance-card__signal {
  display: flex;
  flex-direction: column;
  gap: 8px;
  width: 100%;
}

.vpm-progress__track {
  position: relative;
  height: 8px;
  width: 100%;
  overflow: hidden;
  border-radius: 999px;
  background: #fff;
}

.vpm-progress__fill {
  height: 100%;
  width: 0%;
  background: var(--vpm-primary);
  border-radius: 999px;
  transition: width 500ms ease;
}

.vpm-user-dashboard__actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.vpm-user-dashboard__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 1;
  min-height: 48px;
  padding: 12px 16px;
  border: 1px solid var(--vpm-primary);
  border-radius: 6px;
  background: transparent;
  color: var(--vpm-primary);
  font-size: 14px;
  font-weight: 500;
  text-transform: uppercase;
  text-decoration: none;
  text-align: center;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.06);
  transition: background 150ms ease;
}

.vpm-user-dashboard__btn:hover {
  background: rgba(249, 115, 22, 0.08);
}

.vpm-user-dashboard__widgets {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.vpm-tv-widget-link {
  display: block;
  text-decoration: none;
  color: inherit;
  min-height: 220px;
}

.vpm-tv-widget {
  width: 100%;
  height: 220px;
  min-height: 220px;
}

.vpm-tv-widget iframe {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
}

.vpm-user-dashboard__right {
  min-height: 320px;
}

.vpm-trades-panel {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--vpm-hub-border);
  border-radius: 8px;
  overflow: hidden;
  background: var(--vpm-hub-surface);
}

.vpm-trades-panel__tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  background: transparent;
}

.vpm-trades-panel__tab {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 12px;
  border: 0;
  border-bottom: 2px solid transparent;
  background: transparent;
  color: inherit;
  opacity: 0.7;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: color 500ms ease, border-color 500ms ease;
}

.vpm-trades-panel__tab:first-child {
  border-top-left-radius: 8px;
}

.vpm-trades-panel__tab:last-child {
  border-top-right-radius: 8px;
}

.vpm-trades-panel__tab--active {
  opacity: 1;
  color: var(--vpm-primary);
  font-weight: 700;
  border-bottom-color: var(--vpm-primary);
  background: var(--vpm-hub-bg);
}

.vpm-trades-panel__tab .material-icons {
  font-size: 20px !important;
}

.vpm-trades-panel__scroll {
  position: relative;
  overflow: hidden;
  max-height: 33rem;
}

.vpm-trades-panel__panel {
  overflow-y: auto;
  max-height: 33rem;
}

.vpm-trades-panel__panel[hidden] {
  display: none !important;
}

.vpm-trades-panel__panel--cards {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 12px;
}

.vpm-user-trade-card__link {
  display: block;
  text-decoration: none;
  color: inherit;
}

.vpm-user-trade-card__link:hover .vpm-admin-trade-card,
.vpm-user-trade-card__link:focus-visible .vpm-admin-trade-card {
  border-color: var(--vpm-primary);
  box-shadow: 0 0 0 1px var(--vpm-primary);
}

.vpm-user-trade-card__link:focus-visible {
  outline: none;
}

.vpm-user-trade-card__reason {
  margin: 0;
  text-align: center;
  font-size: 13px;
  opacity: 0.75;
}

.vpm-trades-panel__empty {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 36px;
  margin: 0;
  font-size: 14px;
  font-weight: 500;
  text-transform: uppercase;
  opacity: 0.65;
  min-height: 200px;
}

.vpm-positive {
  color: #4ade80 !important;
}

.vpm-negative {
  color: #f87171 !important;
}

.vpm-trade-row {
  padding: 14px 16px;
  border-bottom: 1px solid var(--vpm-hub-border);
}

.vpm-trade-row:last-child {
  border-bottom: 0;
}

.vpm-trade-row__main {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 6px;
}

.vpm-trade-row__pair {
  font-weight: 600;
  color: #fafafa;
}

[data-theme='light'] .vpm-trade-row__pair {
  color: #111827;
}

.vpm-trade-row__side {
  font-size: 11px;
  font-weight: 700;
}

.vpm-trade-row__side--buy {
  color: #4ade80;
}

.vpm-trade-row__side--sell {
  color: #f87171;
}

.vpm-trade-row__meta {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  opacity: 0.65;
  margin-bottom: 8px;
}

.vpm-trade-row__actions {
  display: flex;
  gap: 16px;
  font-size: 13px;
}

.vpm-trade-row__actions a,
.vpm-trade-row__actions button {
  color: var(--vpm-primary);
  background: none;
  border: 0;
  padding: 0;
  cursor: pointer;
  font: inherit;
}

/* Mobile shell — inner pages */
.vpm-mobile-page {
  padding: 16px;
  max-width: 900px;
  margin: 0 auto;
}

.vpm-mobile-app .vpm-panel,
.vpm-mobile-app .vpm-card,
.vpm-mobile-app .vpm-metric-card,
.vpm-mobile-app .vpm-action-page .vpm-panel {
  background: var(--vpm-hub-surface);
  border-color: var(--vpm-hub-border);
}

.vpm-mobile-app .vpm-panel__title,
.vpm-mobile-app .vpm-card__value,
.vpm-mobile-app .vpm-metric-card__value,
.vpm-mobile-app h1,
.vpm-mobile-app h2,
.vpm-mobile-app h3 {
  color: var(--vpm-hub-text);
}

.vpm-mobile-app .vpm-card__label,
.vpm-mobile-app .vpm-metric-card__label,
.vpm-mobile-app .vpm-panel__subtitle,
.vpm-mobile-app .vpm-i-lead {
  color: var(--vpm-hub-text-muted);
}

.vpm-mobile-app .vpm-kyc-alert {
  margin: 12px;
  border-color: var(--vpm-hub-border);
  background: #1a1208;
}

.vpm-ref-footer {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 56px;
  padding: 40px 16px;
  border-top: 1px solid #e5e7eb;
  background: #fff;
  color: #111;
}

@media (min-width: 1024px) {
  .vpm-ref-footer {
    flex-direction: row;
    align-items: flex-start;
    justify-content: center;
    gap: 112px;
    padding: 40px;
  }
}

.vpm-ref-footer__brand-col {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

@media (min-width: 1024px) {
  .vpm-ref-footer__brand-col {
    align-items: flex-start;
  }
}

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

@media (min-width: 1024px) {
  .vpm-ref-footer__meta {
    align-items: flex-start;
  }
}

.vpm-ref-footer__meta-row {
  display: flex;
  align-items: center;
  gap: 4px;
  margin: 0;
}

.vpm-ref-footer__meta-row p {
  margin: 0;
  font-size: 14px;
}

.vpm-ref-footer__nav {
  display: grid;
  grid-template-columns: 1fr;
  gap: 56px;
  text-align: center;
}

@media (min-width: 768px) {
  .vpm-ref-footer__nav {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 56px;
  }
}

@media (min-width: 1024px) {
  .vpm-ref-footer__nav {
    gap: 96px;
    text-align: left;
  }
}

.vpm-ref-footer__col h3 {
  margin: 0 0 12px;
  font-size: 1rem;
  font-weight: 600;
}

.vpm-ref-footer__col ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

@media (min-width: 1024px) {
  .vpm-ref-footer__col ul {
    align-items: flex-start;
  }
}

.vpm-ref-footer__col a {
  color: inherit;
  font-weight: 500;
  text-decoration: none;
}

.vpm-ref-footer__col a:hover {
  color: var(--vpm-ref-orange);
}

/* ─── Contact page ─── */
.vpm-ref-header--solid {
  position: sticky;
  background: #034854;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  color: #fff;
}

.vpm-ref-header--guest .vpm-ref-header__menu--right {
  color: #fff;
}

.vpm-ref-header--guest .vpm-ref-header__menu--right:hover .material-icons {
  color: var(--vpm-ref-orange);
}

.vpm-contact-page {
  display: flex;
  flex: 1;
  flex-direction: column;
  min-height: calc(100vh - 56px);
  background: #fff;
  color: #111;
}

.vpm-contact-hero {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 96px 24px;
  color: #fff;
  background: #111 url('/pages/numbers.webp') center / cover no-repeat;
}

.vpm-contact-hero__overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  opacity: 0.7;
}

.vpm-contact-hero__title {
  position: relative;
  z-index: 1;
  margin: 0;
  font-size: clamp(2.25rem, 5vw, 3rem);
  font-weight: 600;
  line-height: 1.15;
  text-align: center;
}

.vpm-contact-form-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 24px;
  width: 100%;
  max-width: 64rem;
  margin: 0 auto;
  padding: 48px 16px;
}

@media (min-width: 768px) {
  .vpm-contact-form-section {
    padding: 48px;
  }
}

.vpm-contact-form {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 32px;
  padding: 48px 24px;
  border: 1px solid #e5e7eb;
  border-radius: 16px;
  background: #fff;
}

.vpm-contact-form .vpm-field-box__input {
  min-height: 48px;
  border-radius: 8px;
  background: transparent;
}

.vpm-contact-form .vpm-field-box__input--textarea {
  min-height: 256px;
  resize: vertical;
}

.vpm-contact-form__submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 36px;
  padding: 8px 16px;
  border: none;
  border-radius: 6px;
  background: var(--vpm-ref-orange, #ff6b00);
  color: #fff;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.08);
  transition: background-color 200ms ease;
}

.vpm-contact-form__submit:hover {
  background: #e86200;
}

.vpm-contact-form-section .vpm-flash-stack {
  width: 100%;
}

/* ─── Marketing content pages (crypto mining, trading, about, legal) ─── */
.vpm-mcontent-page {
  display: flex;
  flex: 1;
  flex-direction: column;
  min-height: calc(100vh - 56px);
  background: #fff;
  color: #111;
}

.vpm-mcontent-hero {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 96px 24px;
  color: #fff;
  background: #111 var(--vpm-mcontent-hero-image, url('/pages/office.webp')) center / cover no-repeat;
}

.vpm-mcontent-hero__overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  opacity: 0.7;
}

.vpm-mcontent-hero__title {
  position: relative;
  z-index: 1;
  margin: 0;
  font-size: clamp(2.25rem, 5vw, 3rem);
  font-weight: 600;
  line-height: 1.15;
  text-align: center;
}

.vpm-mcontent-wrap {
  padding: 48px 16px;
}

@media (min-width: 768px) {
  .vpm-mcontent-wrap {
    padding: 48px;
  }
}

.vpm-mcontent-card {
  display: flex;
  flex-direction: column;
  gap: 24px;
  width: 100%;
  max-width: 64rem;
  margin: 0 auto;
  padding: 32px 40px;
  background: #f4f4f5;
  color: #18181b;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.08), 0 2px 4px -2px rgba(0, 0, 0, 0.06);
}

@media (min-width: 768px) {
  .vpm-mcontent-card {
    padding: 32px 80px;
  }
}

.vpm-mcontent-section {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.vpm-mcontent-section + .vpm-mcontent-section {
  margin-top: 8px;
}

.vpm-mcontent-section__heading {
  margin: 0;
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.4;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.vpm-mcontent-section p {
  margin: 0;
  font-size: 1rem;
  line-height: 1.7;
  color: #3f3f46;
}

.vpm-mcontent-section h3 {
  margin: 0;
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.5;
  color: #18181b;
}

.vpm-mcontent-section ul,
.vpm-mcontent-section ol {
  margin: 0;
  padding-left: 1.25rem;
  color: #3f3f46;
  line-height: 1.7;
}

.vpm-mcontent-section li + li {
  margin-top: 8px;
}

.vpm-mcontent-section a {
  color: var(--vpm-ref-orange, #ff6b00);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.vpm-mcontent-section a:hover {
  color: #e86200;
}

