/* ==========================================================================
   Responsive Font Scaling: clamp(12px, 0.833vw, 16px) -> 1rem = 16px @ 1920px
   ========================================================================== */

:root {
  --stonex-blue-bg: #12225c;
  --stonex-card-bg: #12225c;
  --stonex-card-border: rgba(255, 255, 255, 0.25);
  --stonex-green: #14964f;
  --stonex-green-hover: #12823c;
  --stonex-green-active: #0e6b30;
  --stonex-text-white: #ffffff;
  --stonex-text-dim: #94a3b8;
  --stonex-purple-start: #381d64;
  --stonex-purple-end: #7346b7;
  --stonex-container-max: 112.5rem; /* 1800px on 1920 base */
  --stonex-radius-sm: 0.625rem;
  --stonex-radius-md: 0.875rem;
  --stonex-radius-lg: 1.125rem; /* 18px */
  --stonex-radius-xl: 1.75rem; /* 28px */
  --stonex-radius-pill: 9999px;
  --stonex-font-body:
    "Poppins", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica,
    Arial, sans-serif;
  --stonex-font-heading:
    "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica,
    Arial, sans-serif;
}

/* Base Reset & Box Sizing & Tap Highlight Removal */
*,
*::before,
*::after {
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent !important;
  -webkit-touch-callout: none;
}

html,
body,
.stonex-homepage-wrap {
  margin: 0;
  padding: 0;
  -webkit-tap-highlight-color: transparent !important;
  -webkit-touch-callout: none;
}

body {
  /* color: var(--stonex-text-white); */
  font-family: var(--stonex-font-body);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: clip;
}

a,
button,
input,
select,
textarea,
[role="button"],
[tabindex] {
  -webkit-tap-highlight-color: transparent !important;
  -webkit-tap-highlight-color: rgba(0, 0, 0, 0) !important;
}

a:focus,
button:focus,
[role="button"]:focus {
  outline: none;
}

/* Global Interactive Cursor Pointer */
button,
a,
[role="button"],
input[type="button"],
input[type="submit"],
.stonex-btn-green-pill,
.stonex-btn-more-info,
.stonex-hero-info-close,
.stonex-floating-video-card,
.stonex-floating-video-close,
.stonex-video-card-btn,
.stonex-sticky-open-account,
.stonex-sticky-link,
.stonex-perf-white-card,
.stonex-asset-item,
.stonex-asset-shelf-card,
.stonex-market-card,
.stonex-hand-card,
.stonex-hand-palm-cta,
.stonex-toggle-option,
.stonex-toggle-btn,
.stonex-account-card,
.stonex-account-cta-btn,
.stonex-figma-arrow-btn,
.stonex-btn-prev,
.stonex-btn-next,
.stonex-news-card,
.stonex-step-card,
.stonex-video-popup__close,
.stonex-modal-close,
.stonex-footer-link,
.stonex-social-link {
  cursor: pointer !important;
}

html {
  font-size: clamp(12px, 0.833vw, 16px) !important;
}

/* Master Container */
.stonex-container {
  width: 100%;
  max-width: var(--stonex-container-max);
  margin-left: auto;
  margin-right: auto;
  padding-left: 3.5rem;
  padding-right: 3.5rem;
  position: relative;
  z-index: 2;
}

/* Shared Typography */
.stonex-section-title {
  text-align: center;
  margin-bottom: 3.5rem;
}

.stonex-title-bold {
  display: block;
  font-family: var(--stonex-font-heading);
  font-size: 2.25rem; /* 40px */
  font-weight: 700;
  line-height: 1.2;
  color: #ffffff;
  letter-spacing: -0.01em;
}

.stonex-title-light {
  display: block;
  font-family: var(--stonex-font-body);
  font-size: 1.5rem; /* 24px */
  font-weight: 400;
  color: #a0b2db;
  margin-top: 0.5rem;
}

.stonex-title-gradient {
  display: block;
  font-family: var(--stonex-font-heading);
  font-size: 2.5rem; /* 40px */
  font-weight: 700;
  line-height: 1.2;
  background: linear-gradient(90deg, #ffffff 0%, #a5ceff 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  text-transform: uppercase;
}

.stonex-title-normal {
  display: block;
  font-family: var(--stonex-font-heading);
  font-size: 2.5rem; /* 40px */
  font-weight: 400;
  color: #ffffff;
  line-height: 1.2;
}

.stonex-title-sub {
  display: block;
  font-family: var(--stonex-font-body);
  font-size: 1.25rem; /* 20px */
  font-weight: 500;
  color: #a0b2db;
  margin-top: 0.5rem;
}

/* Shared Buttons - Exact Figma Pill Button (245.96px x 51.31px, radius 59px, NO SHADOW) */
.stonex-btn-green-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 15.3725rem; /* 245.96px Figma */
  height: 3.206875rem; /* 51.31px Figma */
  background-color: var(--stonex-green);
  color: #ffffff !important;
  font-family: var(--stonex-font-body);
  font-size: 1rem; /* 16px Figma SemiBold */
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  text-decoration: none;
  border-radius: 3.6875rem; /* 59px Figma */
  padding: 0;
  border: none;
  cursor: pointer;
  box-shadow: none !important; /* EXACT FIGMA: NO SHADOW */
  transition: all 0.25s ease;
}

.stonex-btn-green-pill:hover {
  background-color: var(--stonex-green-hover);
  box-shadow: none !important;
  transform: translateY(-2px);
}

.stonex-center {
  text-align: center;
  margin-top: 4.1875rem; /* 67px below card in Figma (1133px - 1066px) */
  position: relative;
  z-index: 5;
}

/* ==========================================================================
   1. Module 1: Hero Masthead Banner (node-id=2208-1047 & 2218-1126)
   Background: hero-v2-bg.png CLEARLY VISIBLE!
   Central Card: CRISP WHITE with inner blue border glow!
   ========================================================================== */
.stonex-hero-masthead {
  position: relative;
  background:
    linear-gradient(rgba(18, 34, 92, 0.68), rgba(18, 34, 92, 1.68)),
    url("../images/hero-v2-bg.png") center top / cover no-repeat;
  background-color: #12225c;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center; /* Vertically centres the two-column row */
  padding: 0;
  padding-bottom: 10rem;
  padding-top: 14.9375rem; /* 239px on the 1920px canvas */
  overflow: visible;
}

/* --------------------------------------------------------------------------
   Module 1 - TWO COLUMN LAYOUT (1920px Figma reference)
   Left : headline 48px + subheadline 24px (24px apart) + OPEN ACCOUNT pill
   Right: white card 739px x 588px holding the 413px x 534px blue panel
   -------------------------------------------------------------------------- */
.stonex-hero-masthead .stonex-container {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 46.1875rem; /* 739px white card */
  grid-template-rows: auto 1fr; /* Copy row keeps its size, CTA sits right under it */
  align-items: start;
  column-gap: 3rem;
  max-width: none; /* Canvas gutters are driven by the paddings below */
  padding-left: 16.375rem; /* 262px from the canvas left edge */
  padding-right: 17.9375rem; /* 287px from the canvas right edge */
}

/* Dynamic Section Image / Video Background Support with Corporate Blue Filter */
.stonex-section-bg-media-wrap {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  z-index: 0;
  pointer-events: none;
}

.stonex-section-bg-media-wrap::after {
  content: "";
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    180deg,
    rgba(18, 34, 92, 0.68) 0%,
    rgba(18, 34, 92, 0.82) 50%,
    rgba(18, 34, 92, 0.96) 85%,
    #12225d 100%
  );
  pointer-events: none;
  z-index: 1;
}

.stonex-section-bg-video,
.stonex-section-bg-image {
  position: absolute;
  top: 50%;
  left: 50%;
  min-width: 100%;
  min-height: 100%;
  width: 100%;
  height: 100%;
  transform: translate(-50%, -50%);
  object-fit: cover;
  z-index: 0;
  pointer-events: none;
}

/* Module 1: Hero Custom Background */
.stonex-hero-masthead-v2.has-custom-bg {
  background-image: none !important;
}

/* Module 2: Performing Charts Custom Background Filter */
.stonex-performing-charts-section.has-custom-bg {
  background-image: none !important;
}
.stonex-performing-charts-section .stonex-section-bg-media-wrap::after {
  background: linear-gradient(
    180deg,
    rgba(18, 34, 93, 0.92) 0%,
    rgba(18, 34, 93, 0.78) 50%,
    rgba(18, 34, 93, 0.95) 100%
  );
}

/* Module 3: Markets Classification Custom Background Filter */
.stonex-market-classification-section.has-custom-bg .stonex-asset-stage-top {
  background: transparent !important;
}
.stonex-market-classification-section .stonex-section-bg-media-wrap::after {
  background: radial-gradient(
    ellipse 70% 60% at 50% 40%,
    rgba(24, 69, 148, 0.75) 0%,
    rgba(19, 53, 124, 0.85) 35%,
    rgba(18, 39, 101, 0.92) 65%,
    rgba(18, 34, 93, 0.98) 85%,
    #12225d 100%
  );
}

/* Module 4: Why Trade Custom Background Filter (Light Section) */
.stonex-why-sticky-wrap.has-custom-bg {
  background-image: none !important;
}
.stonex-why-sticky-wrap .stonex-section-bg-media-wrap::after {
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.75) 0%,
    rgba(255, 255, 255, 0.65) 50%,
    rgba(255, 255, 255, 0.75) 100%
  );
}

/* Module 5: Pricing Plans Custom Background Filter */
.stonex-pricing-section.has-custom-bg {
  background-image: none !important;
}
.stonex-pricing-section .stonex-section-bg-media-wrap::after {
  background: linear-gradient(
    180deg,
    rgba(18, 34, 92, 0.28) 0%,
    rgba(16, 47, 114, 0.32) 20%,
    rgba(9, 84, 181, 0.3) 48%,
    rgba(14, 59, 136, 0.38) 78%,
    rgba(18, 34, 92, 0.48) 100%
  );
}

/* Module 6: Simple Steps Custom Background Filter */
.stonex-steps-section.has-custom-bg {
  background: #12225c !important;
}
.stonex-steps-section .stonex-section-bg-media-wrap::after {
  background: linear-gradient(
    180deg,
    rgba(18, 34, 92, 0.88) 0%,
    rgba(18, 34, 92, 0.75) 50%,
    rgba(18, 34, 92, 0.92) 100%
  );
}

/* Subtle Gradient Overlays from Figma nodes 2218:1124 */
.stonex-hero-bottom-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 15.3125rem; /* 245px */
  background: linear-gradient(
    270deg,
    rgba(18, 34, 92, 0) 2%,
    rgba(18, 34, 92, 0.8) 100%
  );
  pointer-events: none;
  z-index: 2;
}

/* Top Left Brand Logo - Permanently Fixed on screen */
.stonex-hero-top-left-logo {
  position: fixed !important;
  top: 4.5rem !important; /* 72px on the 1920px canvas */
  left: 4.5rem !important; /* 72px on the 1920px canvas */
  z-index: 9990 !important;
  pointer-events: auto;
  opacity: 1 !important;
  transform: none !important;
  visibility: visible !important;
}

.stonex-hero-logo-img {
  height: 2.8125rem; /* 45px on the 1920px canvas */
  width: auto;
  display: block;
}

/* ==========================================================================
   POP-UP Open account (Figma node-id=2208:530)
   Dimensions: 180px × 250px (11.25rem × 15.6125rem), Fixed Right Edge
   Top: Exactly 365px from top in 1920px Figma Canvas (22.8125rem @ 16px base)
   ========================================================================== */
.stonex-hero-sticky-tab {
  position: fixed !important;
  top: 3.25rem !important;
  right: 0 !important;
  transform-origin: right center !important;
  z-index: 9999 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: flex-end !important;
  pointer-events: auto !important;
  transition:
    transform 0.3s cubic-bezier(0.16, 1, 0.3, 1),
    opacity 0.3s ease,
    visibility 0.3s ease;
}

.stonex-sticky-tab-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 10.875rem;
  height: 9.125rem;
  background: #12225c;
  border: 1.5px solid rgba(255, 255, 255, 0.4);
  border-right: none;
  border-radius: 2.5rem 0 0 2.5rem;
  padding: 1.5rem 1.45rem;
  box-sizing: border-box;
  text-decoration: none;
  box-shadow:
    -6px 12px 36px rgba(0, 0, 0, 0.45),
    inset 1px 0px 54.9px -21px rgba(255, 255, 255, 1);
  transition:
    transform 0.25s ease,
    background-color 0.25s ease,
    box-shadow 0.25s ease;
  overflow: hidden;
}

.stonex-sticky-tab-inner:hover {
  background: #172c78;
  transform: translateX(-6px);
  transform: scale(1.08) !important;
  box-shadow:
    -10px 16px 44px rgba(0, 0, 0, 0.55),
    inset 1px 0px 54.9px -21px rgba(255, 255, 255, 1);
}

.stonex-sticky-tab-logo-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 5.3125rem; /* 85px in Figma */
  height: 1.625rem; /* 26px in Figma */
  margin-bottom: 0.625rem; /* 10px in Figma */
  flex-shrink: 0;
}

.stonex-sticky-tab-logo {
  width: auto;
  max-width: 100%;
  height: auto;
  max-height: 100%;
  object-fit: contain;
  display: block;
}

.stonex-sticky-tab-icon-box {
  width: 5rem; /* 80px */
  height: 5rem; /* 80px */
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 0.875rem; /* Clear 14px distance between image and text */
  flex-shrink: 0;
}

.stonex-sticky-tab-icon {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.stonex-sticky-tab-text {
  font-family: var(--stonex-font-body, "Poppins", sans-serif);
  font-size: 0.8125rem;
  font-weight: 600; /* SemiBold in Figma */
  line-height: 1.35; /* 21px in Figma node 2208:537 */
  text-align: center;
  color: #ffffff;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  display: block;
  margin: 0;
}

/* Hero Intro Text - LEFT COLUMN of the two-column Module 1 layout */
.stonex-hero-intro {
  grid-column: 1;
  grid-row: 1;
  text-align: left;
  max-width: min(
    100%,
    36.5625rem
  ); /* fills the 584px left column on the 1920px canvas */
  margin: 0;
  position: relative;
  z-index: 3;
}

.stonex-hero-headline {
  font-family: var(--stonex-font-body);
  font-size: 3rem; /* 48px @ 1920px Figma base */
  font-weight: 600;
  line-height: 1.27; /* 61px line box on the 1920px canvas */
  color: #ffffff;
  margin: 0 0 1.5rem 0; /* 24px between headline and subheadline */
  text-shadow: none; /* EXACT FIGMA: NO SHADOW */
}

.stonex-hero-subheadline {
  font-size: 1.34rem; 
  font-family: var(--stonex-font-body);
  font-weight: 400;
  line-height: 1.5;
  color: #ffffff;
  max-width: 32.8125rem; /* 525px */
  margin: 0;
}

/* 'OPEN ACCOUNT' pill re-homed into the left column, 63px under the copy */
.stonex-hero-masthead .stonex-hero-main-cta,
.stonex-hero-masthead .stonex-center {
  grid-column: 1;
  grid-row: 2;
  align-self: start;
  text-align: left;
  margin-top: 3.9375rem; /* 63px gap on the 1920px canvas */
  position: relative;
  z-index: 5;
}

/* Editable free-text note rendered under the main 'OPEN ACCOUNT' button */
.stonex-hero-masthead .stonex-hero-cta-note {
  font-family: var(--stonex-font-body);
  font-size: 0.875rem; /* 14px */
  font-weight: 400;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.75);
  max-width: 28rem;
  margin: 1.875rem 0 0 0;
  text-align: inherit;
  position: relative;
  z-index: 6;
  pointer-events: auto;
}

/* Any anchor typed into the note stays clickable and reads clearly as a link */
.stonex-hero-masthead .stonex-hero-cta-note a {
  color: rgba(255, 255, 255, 0.75);
  text-decoration: underline;
  text-underline-offset: 0.15em;
  cursor: pointer;
  pointer-events: auto;
  transition: opacity 0.2s ease;
}

.stonex-hero-masthead .stonex-hero-cta-note a:hover,
.stonex-hero-masthead .stonex-hero-cta-note a:focus {
  opacity: 0.85;
}

/* Central Masterpiece Market Card - RIGHT COLUMN (CRISP WHITE in Figma!) */
.stonex-hero-card-outer {
  grid-column: 2;
  grid-row: 1 / span 2;
  align-self: start;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  width: 100%;
  margin: 0;
  position: relative;
  z-index: 5;
}

.stonex-hero-market-card {
  position: relative;
  width: 46.1875rem !important; /* 739px on the 1920px canvas */
  height: 36.75rem !important; /* 588px */
  background: #ffffff !important; /* EXACT FIGMA: PURE WHITE */
  border-radius: 3.1875rem !important; /* 51px in Figma! */
  box-shadow:
    0.875rem 1.0625rem 3.15rem -0.125rem rgba(0, 0, 0, 0.25),
    inset 0 0 2.95rem -0.375rem #ffffff !important; /* Figma: inner 0/0/47.2/-6 #FFFFFF */
  display: flex;
  overflow: hidden;
  touch-action: pan-y;
  transition: all 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.stonex-hero-card-main {
  flex: 1;
  position: relative;
  width: 100%;
  height: 100%;
  padding: 4.5rem 3.25rem 2.6875rem 3.25rem; /* 72px top, 52px left/right, 43px bottom */
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  z-index: 2;
  box-sizing: border-box;
  user-select: none;
  -webkit-user-select: none;
}

.stonex-hero-card-titles {
  display: flex;
  flex-direction: column;
  position: relative;
  z-index: 3;
}

.stonex-hero-market-name {
  font-family: var(--stonex-font-body);
  font-size: 3rem; /* 48px in Figma */
  font-weight: 400;
  color: #12225c;
  margin: 0;
  line-height: 1.1;
}

/* Twin Dark Blue Badges */
.stonex-hero-twin-badges {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-top: 1.75rem;
  position: relative;
  z-index: 3;
}

.stonex-pill-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 2.0225rem; /* 32.36px */
  min-width: 12.45625rem; /* 199.3px */
  border-radius: 3.5rem; /* 56px */
  padding: 0 1rem;
  font-size: 0.875rem; /* 14px */
  font-weight: 400;
  box-sizing: border-box;
}

.stonex-badge-price {
  background: #004195;
  color: #ffffff;
  gap: 0.5rem;
}

.stonex-price-arrow {
  width: 0.875rem;
  height: 0.875rem;
  flex-shrink: 0;
}

.stonex-price-val {
  font-weight: 400;
  color: #ffffff;
}

.stonex-price-change {
  color: #ffffff;
  font-weight: 400;
}

.stonex-badge-time {
  background: #004195;
  color: #ffffff;
}

.stonex-time-val {
  color: #ffffff;
  font-weight: 400;
}

/* Hero Candlestick Chart (K-Line) */
.stonex-candlestick-chart-wrapper {
  position: relative;
  width: 100%;
  max-width: 100%;
  height: 17.5rem;
  margin-top: 0.25rem;
  overflow: hidden;
  box-sizing: border-box;
  touch-action: pan-y;
  z-index: 3;
}

.stonex-candlestick-chart-canvas {
  width: 100%;
  height: 100%;
  position: relative;
  will-change: transform, opacity;
  transition: transform 0.26s cubic-bezier(0.16, 1, 0.3, 1),
              opacity 0.22s ease,
              filter 0.22s ease;
}

.stonex-candlestick-surface {
  width: 100%;
  height: 100%;
}

.stonex-chart-y-axis {
  position: absolute;
  left: 0.25rem;
  top: 15px;
  bottom: 30px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  font-size: 0.75rem;
  color: #12225c;
  opacity: 0.6;
  font-weight: 600;
  pointer-events: none;
  z-index: 3;
  will-change: transform, opacity;
  transition: transform 0.26s cubic-bezier(0.16, 1, 0.3, 1),
              opacity 0.22s ease,
              filter 0.22s ease;
}

.stonex-hero-market-name,
.stonex-hero-twin-badges {
  will-change: transform, opacity;
  transition: transform 0.24s cubic-bezier(0.16, 1, 0.3, 1),
              opacity 0.2s ease;
}

/* ==========================================================================
   Hero Candlestick Carousel Transition Animations
   ========================================================================== */

/* Phase 1: Slide Out (Exit) */
.stonex-candlestick-chart-canvas.is-anim-exit-left,
.stonex-chart-y-axis.is-anim-exit-left {
  opacity: 0 !important;
  transform: translate3d(-24px, 0, 0) !important;
  filter: blur(1.5px);
  transition: transform 0.13s cubic-bezier(0.4, 0, 1, 1),
              opacity 0.13s ease,
              filter 0.13s ease !important;
}

.stonex-candlestick-chart-canvas.is-anim-exit-right,
.stonex-chart-y-axis.is-anim-exit-right {
  opacity: 0 !important;
  transform: translate3d(24px, 0, 0) !important;
  filter: blur(1.5px);
  transition: transform 0.13s cubic-bezier(0.4, 0, 1, 1),
              opacity 0.13s ease,
              filter 0.13s ease !important;
}

.stonex-hero-market-name.is-anim-fade-out,
.stonex-hero-twin-badges.is-anim-fade-out {
  opacity: 0.15 !important;
  transform: translateY(-4px) !important;
  transition: transform 0.13s ease, opacity 0.13s ease !important;
}

/* Phase 2: Preparation at opposite side (no transition) */
.stonex-candlestick-chart-canvas.is-anim-prep-right,
.stonex-chart-y-axis.is-anim-prep-right {
  transition: none !important;
  opacity: 0 !important;
  transform: translate3d(24px, 0, 0) !important;
  filter: blur(1.5px) !important;
}

.stonex-candlestick-chart-canvas.is-anim-prep-left,
.stonex-chart-y-axis.is-anim-prep-left {
  transition: none !important;
  opacity: 0 !important;
  transform: translate3d(-24px, 0, 0) !important;
  filter: blur(1.5px) !important;
}

.stonex-hero-market-name.is-anim-prep-fade,
.stonex-hero-twin-badges.is-anim-prep-fade {
  transition: none !important;
  opacity: 0 !important;
  transform: translateY(4px) !important;
}

/* Phase 3: Slide In (Enter) */
.stonex-candlestick-chart-canvas.is-anim-enter {
  opacity: 1 !important;
  transform: translate3d(0, 0, 0) !important;
  filter: blur(0px) !important;
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1),
              opacity 0.25s ease,
              filter 0.25s ease !important;
}

.stonex-chart-y-axis.is-anim-enter {
  opacity: 0.6 !important;
  transform: translate3d(0, 0, 0) !important;
  filter: blur(0px) !important;
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1),
              opacity 0.25s ease,
              filter 0.25s ease !important;
}

.stonex-hero-market-name.is-anim-enter,
.stonex-hero-twin-badges.is-anim-enter {
  opacity: 1 !important;
  transform: translateY(0) !important;
  transition: transform 0.24s cubic-bezier(0.16, 1, 0.3, 1),
              opacity 0.24s ease !important;
}

@media (prefers-reduced-motion: reduce) {
  .stonex-candlestick-chart-canvas,
  .stonex-chart-y-axis,
  .stonex-hero-market-name,
  .stonex-hero-twin-badges {
    transition: opacity 0.2s ease !important;
    transform: none !important;
    filter: none !important;
  }
}

/* Hero Candlestick Carousel Dots - Positioned Below Card */
.stonex-hero-chart-dots-wrap {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  margin-top: 1.25rem;
  position: relative;
  z-index: 10;
}

.stonex-hero-chart-dots {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  background: transparent !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  border: none !important;
  box-shadow: none !important;
  padding: 0.25rem 0 !important;
}

.stonex-hero-dot {
  width: 0.6875rem;
  height: 0.6875rem;
  border-radius: 50% !important;
  background: rgba(255, 255, 255, 0.45);
  border: none !important;
  padding: 0;
  cursor: pointer;
  outline: none;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  display: block;
}

.stonex-hero-dot:hover {
  background: rgba(255, 255, 255, 0.85);
  transform: scale(1.2);
}

.stonex-hero-dot.is-active {
  background: #ffffff;
  border: none !important;
  width: 0.6875rem;
  height: 0.6875rem;
  border-radius: 50% !important;
  transform: scale(1.3);
}

/* Currency Watermark Symbol - Exact Figma Node 2218:1225 Vector (656px x 586px) */
.stonex-hero-watermark {
  position: absolute;
  left: 2.59375rem; /* (739px card - 656px watermark) / 2 = 41.5px -> centred */
  top: 0.0625rem; /* (588px card - 586px watermark) / 2 = 1px -> centred */
  width: 41rem; /* 656px in Figma */
  height: 36.625rem; /* 586px in Figma */
  background: url("../images/vector.png") center/contain no-repeat;
  pointer-events: none;
  z-index: 1;
}

/* Hero Bottom Bar ('LOREM IPSUM' / Node 2218:1172 Pill Button) */
.stonex-hero-card-bottom-bar {
  position: absolute;
  right: 4.3125rem; /* 69px in Figma */
  bottom: 2.6875rem; /* 43px in Figma */
  z-index: 4;
}

.stonex-btn-more-info {
  width: 15.3725rem; /* 245.96px Figma */
  height: 3.206875rem; /* 51.31px Figma */
  background: #ffffff; /* White pill sitting on the white card */
  border: 1px solid #12225c; /* Figma stroke #12225C */
  border-radius: 3.6875rem; /* 59px Figma */
  color: #12225c !important;
  font-family: var(--stonex-font-body);
  font-size: 1rem; /* 16px */
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: none !important; /* EXACT FIGMA: NO SHADOW */
  transition: all 0.25s ease;
  padding: 0;
}

.stonex-btn-more-info:hover {
  background: #12225c;
  border-color: #12225c;
  color: #ffffff !important;
  box-shadow: none !important;
  transform: translateY(-2px);
}

/* Right Expandable Analysis Info Box (Exact Figma Node 2218:1171 / 2218:1148) */
.stonex-hero-info-box {
  position: absolute;
  top: 2.0625rem; /* 33px inset from the card top on the 1920px canvas */
  right: 2.1875rem; /* 35px inset from the card right edge */
  bottom: 1.3125rem; /* 21px - keeps the 413px x 534px panel geometry intact */
  width: 25.8125rem; /* 413px in Figma node 2218:1148 */
  height: 33.375rem; /* 534px in Figma node 2218:1148 */
  background: #12225c; /* Exact Figma solid fill rgb(18, 34, 92) */
  border-radius: 3.375rem; /* Exact Figma 54px corner radius on all 4 corners */
  padding: 3.8125rem 2.375rem 2.5rem 2.375rem; /* Exact Figma 61px top, 38px left/right, 40px bottom */
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  z-index: 10;
  box-shadow: 0 0.625rem 1.875rem rgba(0, 0, 0, 0.25);
  transition:
    transform 0.5s cubic-bezier(0.16, 1, 0.3, 1),
    opacity 0.4s ease;
}

.stonex-hero-market-card.is-collapsed .stonex-hero-info-box {
  transform: translateX(120%);
  opacity: 0;
  pointer-events: none;
}

.stonex-hero-market-card.is-expanded .stonex-hero-info-box {
  transform: translateX(0);
  opacity: 1;
  pointer-events: auto;
}

.stonex-hero-market-card.is-expanded .stonex-hero-card-bottom-bar {
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
}

.stonex-hero-info-close {
  position: absolute;
  top: 1.75rem; /* 28px in Figma node 2218:1166 */
  right: 1.625rem; /* 26px in Figma node 2218:1166 */
  width: 1.5rem; /* 24px (23.43px) in Figma */
  height: 1.5rem; /* 24px (23.43px) in Figma */
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 12;
  transition:
    transform 0.2s ease,
    opacity 0.2s ease;
}

.stonex-hero-info-close:hover {
  transform: scale(1.1);
  opacity: 1;
}

.stonex-hero-info-close img {
  width: 100%;
  height: 100%;
  display: block;
}

.stonex-info-box-inner {
  display: flex;
  flex-direction: column;
  height: 100%;
  box-sizing: border-box;
}

.stonex-info-box-tag {
  display: block;
  font-family: var(--stonex-font-body);
  font-size: 0.8125rem; /* 13px in Figma node 2218:1149 */
  font-weight: 400; /* Regular in Figma */
  line-height: 1.5; /* 19.5px in Figma */
  letter-spacing: 0;
  color: #ffffff; /* Solid White in Figma */
  text-transform: uppercase;
  margin: 0 0 0.5rem 0; /* 8px gap */
}

.stonex-info-box-title {
  font-family: var(--stonex-font-body);
  font-size: 1.25rem; /* 20px in Figma node 2218:1150 */
  font-weight: 600; /* SemiBold in Figma */
  line-height: 1.5; /* 30px in Figma */
  letter-spacing: 0;
  color: #ffffff; /* Solid White in Figma */
  margin: 0 0 0.875rem 0; /* 14px gap */
}

.stonex-info-box-desc {
  font-family: var(--stonex-font-body);
  font-size: 0.8125rem; /* 13px in Figma node 2218:1151 */
  font-weight: 400; /* Regular in Figma */
  line-height: 1.5; /* 19.5px in Figma */
  letter-spacing: 0;
  color: #ffffff; /* Solid White in Figma */
  margin: 0 0 1.25rem 0;
}

.stonex-info-box-divider {
  width: 100%;
  height: 1px;
  background: #ffffff; /* Exact Solid White 1px line in Figma node 2218:1153 */
  margin-top: auto; /* Pushes to bottom */
  margin-bottom: 0.9375rem; /* 15px in Figma */
}

.stonex-info-box-source {
  font-family: var(--stonex-font-body);
  font-size: 0.6875rem; /* 11px in Figma node 2218:1152 */
  font-weight: 400; /* Regular in Figma */
  line-height: 1.5; /* 16.5px in Figma */
  letter-spacing: 0;
  color: #ffffff; /* Solid White in Figma */
  font-style: normal; /* Regular (not italic) in Figma */
  display: block;
  margin: 0;
}

/* ==========================================================================
   Video pop-up (Figma node-id=2208:538 / 2218:1126)
   Dimensions: 367px × 394px (22.9375rem × 24.625rem)
   Top-left & Top-right border-radius: 50px (3.125rem)
   ========================================================================== */
.stonex-floating-video-card {
  position: fixed !important;
  bottom: 0 !important;
  right: 5.875rem !important; /* 94px in Figma */
  width: 22.9375rem !important; /* 367px in Figma */
  height: 24.625rem !important; /* 394px in Figma */
  background: #12225c !important;
  border-radius: 3.125rem 3.125rem 0 0 !important; /* 50px top corners in Figma */
  border: none !important;
  box-shadow:
    0 20px 50px rgba(0, 0, 0, 0.5),
    inset 0px 4px 56.1px 8px rgba(255, 255, 255, 0.25) !important;
  overflow: hidden !important;
  z-index: 9998 !important;
  cursor: pointer !important;
  display: flex !important;
  flex-direction: column !important;
  box-sizing: border-box !important;
  transition:
    transform 0.3s cubic-bezier(0.16, 1, 0.3, 1),
    box-shadow 0.3s ease,
    opacity 0.3s ease,
    visibility 0.3s ease;
  pointer-events: auto !important;
}

/* Figma Stroke: Top-right corner and right edge gradient border (node 2208:541) */
.stonex-floating-video-card::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 3.125rem 3.125rem 0 0;
  padding: 1.5px;
  background: linear-gradient(
    60deg,
    rgba(255, 255, 255, 0) 0%,
    rgba(255, 255, 255, 0) 45%,
    rgba(255, 255, 255, 0.4) 70%,
    rgba(255, 255, 255, 0.9) 90%,
    rgba(255, 255, 255, 1) 100%
  );
  -webkit-mask:
    linear-gradient(#fff 0 0) content-box,
    linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
  z-index: 10;
}

.stonex-floating-video-card:hover {
  transform: translateY(-6px);
  box-shadow:
    0 28px 60px rgba(0, 0, 0, 0.65),
    inset 0px 4px 56.1px 8px rgba(255, 255, 255, 0.35);
}

.stonex-floating-video-card.is-closed {
  display: none !important;
}

.stonex-floating-video-close {
  position: absolute;
  top: 1.4375rem; /* 23px in Figma */
  right: 1.4375rem; /* 23px in Figma */
  width: 2.4375rem; /* 39px in Figma */
  height: 2.4375rem; /* 39px in Figma */
  background: transparent;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
  padding: 0;
  transition:
    transform 0.2s ease,
    opacity 0.2s ease;
}

.stonex-floating-video-close:hover {
  transform: scale(1.1);
}

.stonex-floating-video-close img {
  width: 100%;
  height: 100%;
  display: block;
}

.stonex-video-card-inner {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  width: 100%;
  height: 100%;
  position: relative;
  overflow: hidden;
  border-radius: 3.125rem 3.125rem 0 0;
  background: #12225c;
}

.stonex-video-thumb-container {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 17.5rem; /* 280px in Figma (node 2208:540 rendered 278px) */
  overflow: hidden;
  border-radius: 3.125rem 3.125rem 0 0;
  z-index: 1;
}

.stonex-video-thumb-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Seamless Gradient Transition from transparent/dark overlay to deep #12225C (Figma Rectangle 24) */
.stonex-video-play-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding-top: 6.25rem; /* Centers play icon in visible thumbnail area (Figma y=125px) */
  box-sizing: border-box;
  background: linear-gradient(
    180deg,
    rgba(18, 34, 92, 0.05) 0%,
    rgba(18, 34, 92, 0.15) 30%,
    rgba(18, 34, 92, 0.72) 55%,
    rgba(18, 34, 92, 0.94) 75%,
    #12225c 100%
  );
  transition: background 0.3s ease;
}

.stonex-floating-video-card:hover .stonex-video-play-overlay {
  background: linear-gradient(
    180deg,
    rgba(18, 34, 92, 0) 0%,
    rgba(18, 34, 92, 0.1) 30%,
    rgba(18, 34, 92, 0.68) 55%,
    rgba(18, 34, 92, 0.9) 75%,
    #12225c 100%
  );
}

.stonex-video-play-icon {
  width: 3rem; /* 48px in Figma */
  height: 3.5rem; /* 56px in Figma */
  filter: drop-shadow(0 6px 16px rgba(0, 0, 0, 0.65));
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.stonex-floating-video-card:hover .stonex-video-play-icon {
  transform: scale(1.1);
}

.stonex-video-info-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  z-index: 3;
  width: 100%;
  padding: 0 2.125rem 1.875rem 2.125rem; /* 34px horizontal, 30px bottom in Figma */
  box-sizing: border-box;
}

.stonex-video-card-title {
  font-family: var(--stonex-font-body, "Poppins", sans-serif);
  font-size: 1.5625rem; /* 25px in Figma */
  font-weight: 600; /* SemiBold in Figma */
  line-height: 1.828rem; /* 29.25px in Figma */
  color: #ffffff;
  margin: 0 0 1.25rem 0;
  text-align: left;
  width: 100%;
  letter-spacing: 0;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
}

.stonex-btn-video-watch {
  width: 15.375rem; /* 246px in Figma */
  height: 3.206rem; /* 51.3px in Figma */
  background: #14964f;
  color: #ffffff;
  border: none;
  border-radius: 3.6875rem; /* 59px pill in Figma */
  font-family: var(--stonex-font-body, "Poppins", sans-serif);
  font-size: 1rem; /* 16px in Figma */
  font-weight: 600; /* SemiBold in Figma */
  text-transform: uppercase;
  letter-spacing: 0;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 15px rgba(20, 150, 79, 0.4);
  transition:
    background-color 0.2s ease,
    transform 0.2s ease,
    box-shadow 0.2s ease;
  box-sizing: border-box;
}

.stonex-btn-video-watch:hover {
  background: #17b35e;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(20, 150, 79, 0.6);
}

/* ==========================================================================
   Video Popup Modal (Cinema Style Overlay - Hidden by default)
   ========================================================================== */
.stonex-video-popup-modal,
.stonex-video-popup {
  position: fixed !important;
  inset: 0 !important;
  width: 100vw !important;
  height: 100vh !important;
  z-index: 2147483647 !important; /* Absolute highest layer across the entire page */
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  opacity: 0 !important;
  visibility: hidden !important;
  pointer-events: none !important;
  transition:
    opacity 0.3s ease,
    visibility 0.3s ease !important;
}

.stonex-video-popup-modal.open,
.stonex-video-popup-modal.is-active,
.stonex-video-popup-modal[aria-hidden="false"],
.stonex-video-popup.open,
.stonex-video-popup.is-active,
.stonex-video-popup[aria-hidden="false"] {
  opacity: 1 !important;
  visibility: visible !important;
  pointer-events: auto !important;
}

/* Hide all background floating widgets (Open Account Sticky Tab & Floating Video Card) during video modal playback */
html.stonex-modal-open .stonex-hero-sticky-tab,
html.stonex-modal-open .stonex-floating-video-card,
body.stonex-modal-open .stonex-hero-sticky-tab,
body.stonex-modal-open .stonex-floating-video-card,
html.stonex-video-modal-open .stonex-hero-sticky-tab,
html.stonex-video-modal-open .stonex-floating-video-card,
body.stonex-video-modal-open .stonex-hero-sticky-tab,
body.stonex-video-modal-open .stonex-floating-video-card {
  opacity: 0 !important;
  visibility: hidden !important;
  pointer-events: none !important;
}

.stonex-video-popup__backdrop,
.stonex-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 1;
}

.stonex-video-popup__content,
.stonex-video-popup__frame {
  position: relative;
  z-index: 2;
  width: 90%;
  max-width: 56.25rem; /* 900px */
  aspect-ratio: 16 / 9;
  border-radius: 1rem;
  overflow: hidden;
  box-shadow: 0 1.5rem 3rem rgba(0, 0, 0, 0.8);
  background: #000;
  transform: scale(0.92);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.stonex-video-popup-modal.open .stonex-video-popup__content,
.stonex-video-popup-modal.is-active .stonex-video-popup__content,
.stonex-video-popup.open .stonex-video-popup__frame,
.stonex-video-popup.is-active .stonex-video-popup__frame {
  transform: scale(1);
}

.stonex-video-popup__aspect {
  position: relative;
  width: 100%;
  height: 100%;
}

.stonex-video-popup__aspect iframe,
.stonex-video-popup__frame iframe {
  width: 100%;
  height: 100%;
  border: none;
  display: block;
}

.stonex-video-popup__close,
.stonex-modal-close {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  width: 2.75rem;
  height: 2.75rem;
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 10;
  transition:
    background 0.2s ease,
    transform 0.2s ease;
  padding: 0;
}

.stonex-video-popup__close:hover,
.stonex-modal-close:hover {
  background: rgba(255, 255, 255, 0.3);
  transform: scale(1.1);
}

.stonex-video-popup__close img,
.stonex-modal-close img {
  width: 100%;
  height: 100%;
  display: block;
}

/* ==========================================================================
   2. Module 2: Performing Trade Charts & Awards Marquee (node-id=2208-23)
   Compact height with smooth bottom gradient transition to Module 3
   ========================================================================== */
.stonex-performing-charts-section {
  position: relative;
  margin-top: 0 !important;
  padding-top: 5.1875rem; /* Compact top padding */
  background-color: #12225d;
  background-image: none;
  overflow: hidden;
  z-index: 2;
}

.stonex-performing-charts-section .stonex-section-title {
  margin-bottom: 3.75rem; /* Clean, compact gap to cards */
}

.stonex-charts-bg-layer {
  display: none;
}

.stonex-charts-row-container {
  position: relative;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  width: 100%;
  max-width: 112.5625rem; /* 1801px in Figma */
  height: 31rem; /* 496px to contain center card & drops */
  margin: 0 auto 2.5rem auto; /* Compact gap from Cards to Button */
  perspective: 1000px;
  z-index: 2;
  overflow: visible;
}

.stonex-perf-white-card {
  position: absolute;
  top: 0;
  left: 50%;
  width: 26.0625rem; /* 417px base center card width */
  height: 29.1875rem; /* 467px base center card height */
  margin-left: -13.03125rem; /* -208.5px exact centering */
  background: #ffffff;
  border-radius: 3.1875rem; /* 51px in Figma */
  display: flex;
  flex-direction: column;
  align-items: stretch;
  justify-content: flex-start;
  padding: 2.5625rem 1.9375rem 1.5rem 1.9375rem; /* 41px top, 31px sides, 24px bottom */
  box-shadow: 0.875rem 1.0625rem 3.15rem -0.125rem rgba(0, 0, 0, 0.25); /* Figma: Drop shadow */
  transform-origin: top center;
  transition:
    transform 0.55s cubic-bezier(0.16, 1, 0.3, 1),
    filter 0.55s ease,
    opacity 0.4s ease;
  will-change: transform;
  flex-shrink: 0;
  overflow: hidden;
  cursor: pointer !important;
  user-select: none;
  -webkit-user-select: none;
}

/* Live Market Card Gradient Overlay (Figma Linear Gradient: #12225C 100% -> #12225C 0%)
   Protects the top title area against background images, fading out smoothly just below text */
.stonex-perf-white-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 8.75rem;
  background: linear-gradient(
    180deg,
    #12225c 0%,
    rgba(18, 34, 92, 0.95) 55%,
    rgba(18, 34, 92, 0.45) 80%,
    rgba(18, 34, 92, 0) 100%
  );
  pointer-events: none;
  z-index: 1;
  border-top-left-radius: inherit;
  border-top-right-radius: inherit;
}

/* 4-Edge White Inner Glow (Figma Inner Shadow: 0 0 47.2 -6 #ffffff)
   Renders on top of the blue gradient (z-index: 2) so all 4 edges retain the white inner glow */
.stonex-perf-white-card::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  border-radius: inherit;
  box-shadow: inset 0 0 2.95rem -0.375rem #ffffff;
  pointer-events: none;
  z-index: 2;
}

/* Optional per-card background image (set per card in the block editor) */
.stonex-perf-white-card.has-bg-image {
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
}

/* 5 Fixed Arc Slot Positions (100% GPU Accelerated Transitions matching Module 4) */
.stonex-perf-pos-far-left {
  transform: translate3d(-88rem, 9.5rem, 0) scale(0.4);
  z-index: 0;
  opacity: 0;
  pointer-events: none;
}

.stonex-perf-pos--3 {
  transform: translate3d(-65rem, 7rem, 0) scale(0.5);
  z-index: 0;
  opacity: 0;
  pointer-events: none;
}

.stonex-perf-pos--2 {
  transform: translate3d(-48.0625rem, 5.375rem, 0) scale(0.6307);
  z-index: 1;
  opacity: 1;
  pointer-events: auto;
}

.stonex-perf-pos--1 {
  transform: translate3d(-26.4375rem, 2.9375rem, 0) scale(0.7986);
  z-index: 3;
  opacity: 1;
  pointer-events: auto;
}

.stonex-perf-pos-0 {
  transform: translate3d(0, 0, 0) scale(1);
  z-index: 5;
  opacity: 1;
  pointer-events: auto;
}

.stonex-perf-pos-1 {
  transform: translate3d(26.4375rem, 2.9375rem, 0) scale(0.7986);
  z-index: 3;
  opacity: 1;
  pointer-events: auto;
}

.stonex-perf-pos-2 {
  transform: translate3d(48.0625rem, 5.375rem, 0) scale(0.6307);
  z-index: 1;
  opacity: 1;
  pointer-events: auto;
}

.stonex-perf-pos-3 {
  transform: translate3d(65rem, 7rem, 0) scale(0.5);
  z-index: 0;
  opacity: 0;
  pointer-events: none;
}

.stonex-perf-pos-far-right {
  transform: translate3d(88rem, 9.5rem, 0) scale(0.4);
  z-index: 0;
  opacity: 0;
  pointer-events: none;
}

/* Entrance slot: side cards wait stacked right behind the center card (slightly
   smaller & invisible) and are then fanned out to their left/right slots by JS */
.stonex-perf-pos-hidden {
  transform: translate3d(0, 0, 0) scale(0.86);
  z-index: 4;
  opacity: 0;
  pointer-events: none;
}

/* Entrance arming: the center card waits slightly smaller & transparent until
   the section scrolls into view, then settles in before the side cards fan out */
.stonex-charts-row-container.stonex-entrance-armed .stonex-perf-pos-0 {
  opacity: 0;
  transform: translate3d(0, 0, 0) scale(0.94);
}

/* Hover effects for visible cards */
.stonex-perf-pos--2:hover,
.stonex-perf-pos-2:hover {
  filter: drop-shadow(0 18px 36px rgba(0, 0, 0, 0.3));
}
.stonex-perf-pos--1:hover,
.stonex-perf-pos-1:hover {
  filter: drop-shadow(0 20px 40px rgba(0, 0, 0, 0.32));
}
.stonex-perf-pos-0:hover {
  filter: drop-shadow(0 24px 48px rgba(0, 0, 0, 0.35));
}

.stonex-perf-card-header {
  position: relative;
  z-index: 3;
  margin-bottom: 0;
}

.stonex-perf-card-title {
  font-family: var(--stonex-font-body);
  font-weight: 600; /* 600 in Figma */
  color: #ffffff;
  line-height: 1.2;
  margin: 0;
  font-size: 2.5rem; /* 40px in Figma = 2.5rem @ 16px base */
  margin-bottom: 0.5rem;
}

/* ==========================================================================
   Dual-Pill Capsule Badge (Figma "Live Chart results" Double Capsule)
   Price  : plain white text sitting on the navy capsule
   Change : solid green/red capsule holding value + percentage on one line
   ========================================================================== */
.stonex-perf-dual-pill {
  position: relative;
  z-index: 3;
  background: #12225c;
  border-radius: 9999px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  height: 3.875rem; /* 62px base center */
  padding: 0.4375rem 0.51rem; /* 7px 8.16px */
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
  overflow: hidden;
  flex-shrink: 0;
  margin-top: auto;
}

/* Price - no capsule background, white text centred in the remaining space */
.stonex-perf-pill-inner-badge {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 1; /* fills the space left of the change capsule so the price centres */
  min-width: 0;
  height: 3rem; /* 48px */
  padding: 0 0.75rem;
  font-size: 1rem; /* 16px */
  color: #ffffff;
  font-family: var(--stonex-font-body);
  font-weight: 600;
  white-space: nowrap;
  transition: color 0.25s ease;
}

/* Change - solid capsule, value and percentage side by side */
.stonex-perf-pill-change {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  height: 3rem; /* 48px */
  padding: 0 1.25rem;
  border-radius: 1.5625rem; /* 25px */
  background: #14964f; /* default up-tick colour, swapped by view.js */
  color: #ffffff;
  font-family: var(--stonex-font-body);
  font-weight: 600;
  font-size: 1rem; /* 16px */
  line-height: 1.15;
  white-space: nowrap;
  flex-shrink: 0;
  transition: background-color 0.25s ease;
}

.stonex-change-val {
  display: block;
}

.stonex-change-pct {
  display: block;
}

/* Capsule colour follows the direction of the move */
.stonex-perf-pill-change.stonex-pill-change-green {
  background: #14964f;
}

.stonex-perf-pill-change.stonex-pill-change-red {
  background: #d23838;
}

.stonex-carousel-cta-wrap {
  text-align: center;
  margin-bottom: 3.5rem; /* Clean, compact gap to Awards ticker */
}

/* Optional disclaimer shown under the market cards (11px white in the 1920px design) */
.stonex-perf-disclaimer {
  font-family: var(--stonex-font-body);
  font-size: 0.6875rem; /* 11px in Figma */
  font-weight: 400;
  line-height: 1.5;
  color: #ffffff;
  text-align: center;
  max-width: 90%;
  margin: 0 auto 2.5rem auto;
  padding: 0rem;
  box-sizing: border-box;
}

.stonex-perf-disclaimer a {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 0.15em;
  cursor: pointer;
}

/* Awards Ticker Marquee (Figma height 233px = 14.5625rem) - 100% Seamless Infinite Loop */
.stonex-awards-ticker-wrap,
.stonex-awards-section,
.stonex-marquee-container {
  width: 100%;
  overflow: hidden;
  position: relative;
  min-height: 14.5625rem; /* 233px in Figma */
  height: 14.5625rem;
  display: flex;
  align-items: center;
  user-select: none;
}

.stonex-awards-ticker-inner,
.stonex-awards-ticker-track,
.stonex-marquee-track {
  display: flex;
  align-items: center;
  gap: 3.815625rem; /* 61.05px gap in Figma */
  width: max-content;
  animation: stonexTickerLoop 32s linear infinite;
  will-change: transform;
}

.stonex-awards-ticker-inner:hover,
.stonex-awards-ticker-track:hover,
.stonex-marquee-track:hover {
  animation-play-state: paused;
}

.stonex-awards-group,
.stonex-marquee-group {
  display: flex;
  align-items: center;
  gap: 3.815625rem; /* 61.05px gap in Figma */
  flex-shrink: 0;
}

.stonex-award-item {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 16.01625rem; /* 256.26px in Figma */
  height: 10.306875rem; /* 164.91px in Figma */
  flex-shrink: 0;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

/* .stonex-award-item.stonex-award-badge {
 width: 9.889375rem;
  height: 9.889375rem; 
} */

.stonex-award-item:hover {
  transform: scale(1.08);
}

.stonex-award-item img,
.stonex-award-img {
  width: 100%;
  height: 100%;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.25));
}

@keyframes stonexTickerLoop {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(
      calc(-50% - 1.9078125rem)
    ); /* Exact -(Group Width + gap) = -50% - (gap / 2) */
  }
}

/* ==========================================================================
   3. Module 3: Asset Class Dynamic Grid (Exact Match with Figma node-id=2208-3)
   Top light stage with 180° dome glow & solid #12225D text shelf
   ========================================================================== */
.stonex-market-classification-section {
  position: relative;
  width: 100%;
  /* min-height: 65.6875rem;  */
  padding: 0;
  background-color: #12225d;
  overflow: hidden;
  border: none !important;
  display: flex;
  flex-direction: column;
}

/* Master Stage Container */
.stonex-asset-stage-box {
  position: relative;
  width: 100%;
  margin: 0 auto;
  border: none !important;
  box-shadow: none !important;
  border-radius: 0;
  background: transparent;
  display: flex;
  flex-direction: column;
}

/* Full-width Upper Half: Radial Royal Blue Ambient fading to 100% #12225D across the entire top edge & sides */
.stonex-asset-stage-top {
  position: relative;
  width: 100%;
  background: radial-gradient(
    ellipse 70% 60% at 50% 80%,
    #184594 0%,
    #13357c 35%,
    #122765 65%,
    #12225d 85%,
    #12225d 100%
  );
  padding: 13.5rem 0 0 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  overflow: hidden;
  z-index: 2;
}

/* Luminous 180° Semicircle Glow radiating upwards from the #12225D baseline */
.stonex-asset-stage-glow {
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 96rem; /* 1536px wide */
  height: 22rem; /* 352px tall upward dome perfectly covering 256px icons without clipping at top */
  background: radial-gradient(
    ellipse 55% 100% at 50% 100%,
    rgba(235, 248, 255, 0.98) 0%,
    rgba(175, 215, 255, 0.88) 28%,
    rgba(100, 165, 245, 0.58) 55%,
    rgba(30, 80, 190, 0.25) 78%,
    transparent 100%
  );
  filter: blur(28px);
  pointer-events: none;
  z-index: 1;
}

/* Top Section Title (Figma style_060f4af8: Poppins 40px SemiBold) */
.stonex-asset-stage-title {
  font-family: var(--stonex-font-heading);
  font-size: 2.25rem;
  font-weight: 700;
  color: #ffffff;
  text-align: center;
  margin: 0 0 5.4375rem 0;
  letter-spacing: -0.01em;
  position: relative;
  z-index: 3;
}

/* 6 3D Glass Icons Row resting directly on the #12225D baseline */
.stonex-asset-icons-row {
  width: 100%;
  max-width: 105rem; /* 1680px, shared by the 6 icon columns */
  margin: 0 auto;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  position: relative;
  z-index: 3;
}

.stonex-asset-icon-cell {
  flex: 1;
  text-align: center;
  display: flex;
  justify-content: center;
  align-items: flex-end;
  height: 16rem; /* 256px */
  cursor: pointer;
}

.stonex-asset-3d-icon {
  width: 12.0625rem; /* 193px in Figma */
  height: 13.75rem; /* 220px in Figma */
  max-width: none;
  max-height: none;
  object-fit: contain;
  transition:
    transform 0.4s cubic-bezier(0.16, 1, 0.3, 1),
    filter 0.4s ease;
  filter: drop-shadow(0 14px 24px rgba(0, 15, 50, 0.45));
}

.stonex-asset-icon-cell:hover .stonex-asset-3d-icon,
.stonex-asset-icon-cell.is-hovered .stonex-asset-3d-icon {
  transform: translateY(-0.625rem) scale(1.08);
  filter: drop-shadow(0 20px 32px rgba(0, 50, 160, 0.65));
}

/* Full-width Lower Half: Solid #12225D Background */
.stonex-asset-shelf-bottom {
  position: relative;
  width: 100%;
  background: #12225d;
  padding: 3.125rem 0 5.5rem 0;
  z-index: 3;
}

.stonex-asset-shelf-row {
  display: flex;
  align-items: stretch;
  justify-content: space-between;
  width: 100%;
  max-width: 105rem;
  margin: 0 auto;
}

.stonex-asset-shelf-col {
  flex: 1;
  padding: 0 1rem;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  cursor: pointer;
  background: transparent;
  box-shadow: none;
}

.stonex-asset-card-icon-wrap {
  display: none;
}

/* 166px Vertical Line with bright center gradient fading at top and bottom */
.stonex-asset-shelf-divider {
  width: 1px;
  height: 10.375rem; /* 166px in Figma */
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0) 0%,
    rgba(255, 255, 255, 0.2) 20%,
    rgba(255, 255, 255, 0.85) 50%,
    rgba(255, 255, 255, 0.2) 80%,
    rgba(255, 255, 255, 0) 100%
  );
  flex-shrink: 0;
  align-self: center;
}

/* Figma style_b0deb1cb: Poppins 20px SemiBold UPPER */
.stonex-asset-name {
  font-family: var(--stonex-font-heading);
  font-size: 1.25rem !important; /* 20px */
  font-weight: 600 !important;
  color: #ffffff !important;
  margin: 0 0 1.25rem 0 !important;
  line-height: 1.25 !important;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  transition:
    transform 0.35s cubic-bezier(0.16, 1, 0.3, 1),
    text-shadow 0.35s ease,
    color 0.35s ease;
  transform-origin: center center;
  display: inline-block;
  will-change: transform;
}

/* Figma EL-f7656aa6: Poppins 13px Regular - Always visible across all devices */
.stonex-asset-desc {
  font-family: var(--stonex-font-body);
  font-size: 0.8125rem !important; /* 13px */
  color: rgba(255, 255, 255, 1) !important;
  line-height: 1.55 !important;
  margin: 0 !important;
  padding: 0px 1.25rem;
  transition:
    transform 0.35s cubic-bezier(0.16, 1, 0.3, 1),
    color 0.35s ease,
    opacity 0.35s ease;
  transform-origin: center top;
  display: block !important;
  opacity: 1 !important;
  visibility: visible !important;
  pointer-events: auto !important;
  will-change: transform;
}

/* Hover: Enlarge Title & Description Text (Clean, No Card Background) */
.stonex-asset-shelf-col:hover,
.stonex-asset-shelf-col.is-hovered {
  background: transparent !important;
  box-shadow: none !important;
  transform: none !important;
}

.stonex-asset-shelf-col:hover .stonex-asset-name,
.stonex-asset-shelf-col.is-hovered .stonex-asset-name {
  transform: scale(1.15);
  text-shadow: 0 0 20px rgba(99, 192, 235, 0.85);
  color: #ffffff !important;
}

.stonex-asset-shelf-col:hover .stonex-asset-desc,
.stonex-asset-shelf-col.is-hovered .stonex-asset-desc {
  transform: scale(1.08);
  color: #ffffff !important;
}

/* Module 3 Centered OPEN ACCOUNT CTA Button */
.stonex-market-classification-cta-wrap {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-top: 3.75rem;
  position: relative;
  z-index: 5;
}

/* --------------------------------------------------------------------------
   Section entrance: fade-in + float-up reveal (staggered per item).
   The hidden state is only applied once the script is ready, so the section
   still renders normally if JavaScript never runs.
   -------------------------------------------------------------------------- */
.stonex-market-classification-section.stonex-reveal-init
  .stonex-asset-stage-title,
.stonex-market-classification-section.stonex-reveal-init
  .stonex-asset-icon-cell,
.stonex-market-classification-section.stonex-reveal-init
  .stonex-asset-shelf-col,
.stonex-market-classification-section.stonex-reveal-init
  .stonex-market-classification-cta-wrap {
  opacity: 0;
  transform: translateY(2.25rem);
  transition:
    opacity 0.45s ease,
    transform 0.5s ease;
}

.stonex-market-classification-section.stonex-reveal-init.is-inview
  .stonex-asset-stage-title,
.stonex-market-classification-section.stonex-reveal-init.is-inview
  .stonex-asset-icon-cell,
.stonex-market-classification-section.stonex-reveal-init.is-inview
  .stonex-asset-shelf-col {
  opacity: 1;
  transform: translateY(0);
  transition:
    opacity 0.85s ease var(--stonex-reveal-delay, 0ms),
    transform 0.95s cubic-bezier(0.16, 1, 0.3, 1)
      var(--stonex-reveal-delay, 0ms);
}

.stonex-market-classification-section.stonex-reveal-init.is-inview
  .stonex-market-classification-cta-wrap {
  opacity: 1;
  transform: translateY(0);
  transition:
    opacity 0.85s cubic-bezier(0.16, 1, 0.3, 1) 0.55s,
    transform 0.95s cubic-bezier(0.16, 1, 0.3, 1) 0.55s;
}

/* ==========================================================================
   Page-wide Premium Entrance & Scroll Reveal System
   ========================================================================== */

/* ==========================================================================
   Page-wide Premium Dynamic Motion & Micro-interaction Engine
   ========================================================================== */

/* 1. Module 1: Hero Masthead Staggered Sequence (Logo is permanently fixed) */
.stonex-hero-masthead.stonex-reveal-init .stonex-hero-headline,
.stonex-hero-masthead.stonex-reveal-init .stonex-hero-subheadline {
  opacity: 0;
  transform: translateY(2.25rem);
  transition:
    opacity 0.45s ease,
    transform 0.5s ease;
}

.stonex-hero-masthead.stonex-reveal-init .stonex-hero-card-outer {
  opacity: 0;
  transform: translateY(3.5rem) scale(0.95);
  transition:
    opacity 0.45s ease,
    transform 0.5s ease;
}

.stonex-hero-masthead.stonex-reveal-init.is-inview .stonex-hero-headline {
  opacity: 1;
  transform: translateY(0);
  transition:
    opacity 0.9s cubic-bezier(0.16, 1, 0.3, 1) 0.08s,
    transform 1s cubic-bezier(0.16, 1, 0.3, 1) 0.08s;
}

.stonex-hero-masthead.stonex-reveal-init.is-inview .stonex-hero-subheadline {
  opacity: 1;
  transform: translateY(0);
  transition:
    opacity 0.9s cubic-bezier(0.16, 1, 0.3, 1) 0.2s,
    transform 1s cubic-bezier(0.16, 1, 0.3, 1) 0.2s;
}

.stonex-hero-masthead.stonex-reveal-init.is-inview .stonex-hero-card-outer {
  opacity: 1;
  transform: translateY(0) scale(1);
  transition:
    opacity 1.1s cubic-bezier(0.16, 1, 0.3, 1) 0.28s,
    transform 1.15s cubic-bezier(0.16, 1, 0.3, 1) 0.28s;
}

/* 2. Global CTA Button Luxury Shimmer Sweep (Apple/Revolut High-end Sheen) */
.stonex-btn-green-pill,
.stonex-pricing-step-btn {
  position: relative !important;
  overflow: hidden !important;
}
.stonex-btn-green-pill::before,
.stonex-pricing-step-btn::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 60%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(255, 255, 255, 0.28) 50%,
    transparent 100%
  );
  transform: translateX(-160%) skewX(-25deg);
  animation: stonexBtnShimmer 4.8s cubic-bezier(0.4, 0, 0.2, 1) infinite;
  pointer-events: none;
  z-index: 3;
}
@keyframes stonexBtnShimmer {
  0%,
  75% {
    transform: translateX(-160%) skewX(-25deg);
  }
  100% {
    transform: translateX(280%) skewX(-25deg);
  }
}

/* 3. Module 2: Trading Platforms Title Entrance */
.stonex-performing-charts-section.stonex-reveal-init .stonex-section-title {
  opacity: 0;
  transform: translateY(2rem);
  transition:
    opacity 0.45s ease,
    transform 0.5s ease;
}

.stonex-performing-charts-section.stonex-reveal-init.is-inview
  .stonex-section-title {
  opacity: 1;
  transform: translateY(0);
  transition:
    opacity 0.85s cubic-bezier(0.16, 1, 0.3, 1),
    transform 0.95s cubic-bezier(0.16, 1, 0.3, 1);
}

/* 4. Module 3: 3D Glass Icons Zero-G Floating (3D Levitation in Space) */
@keyframes stonexFloatA {
  0%,
  100% {
    transform: translateY(0) rotate(0deg);
  }
  50% {
    transform: translateY(-8px) rotate(1deg);
  }
}
@keyframes stonexFloatB {
  0%,
  100% {
    transform: translateY(0) rotate(0deg);
  }
  50% {
    transform: translateY(-10px) rotate(-1.2deg);
  }
}
.stonex-market-classification-section.is-inview
  .stonex-asset-icon-cell:nth-child(odd)
  .stonex-asset-3d-icon {
  animation: stonexFloatA 5.2s ease-in-out infinite;
}
.stonex-market-classification-section.is-inview
  .stonex-asset-icon-cell:nth-child(even)
  .stonex-asset-3d-icon {
  animation: stonexFloatB 6.4s ease-in-out infinite 0.9s;
}
.stonex-asset-icon-cell:hover .stonex-asset-3d-icon,
.stonex-asset-icon-cell.is-hovered .stonex-asset-3d-icon {
  animation-play-state: paused !important;
  transform: translateY(-0.85rem) scale(1.1) !important;
  filter: drop-shadow(0 22px 36px rgba(0, 80, 220, 0.75)) !important;
}

/* 5. Module 4: Why Trade Title Entrance, Active Hand Card Glow & Subtitle Crossfade */
.stonex-why-trade-v2-section.stonex-reveal-init .stonex-why-title,
.stonex-why-trade-v2-section.stonex-reveal-init .stonex-why-subtitle {
  opacity: 0;
  transform: translateY(2rem);
  transition:
    opacity 0.45s ease,
    transform 0.5s ease;
}

.stonex-why-trade-v2-section.stonex-reveal-init.is-inview .stonex-why-title {
  opacity: 1;
  transform: translateY(0);
  transition:
    opacity 0.85s cubic-bezier(0.16, 1, 0.3, 1) 0.05s,
    transform 0.95s cubic-bezier(0.16, 1, 0.3, 1) 0.05s;
}

.stonex-why-trade-v2-section.stonex-reveal-init.is-inview .stonex-why-subtitle {
  opacity: 1;
  transform: translateY(0);
  transition:
    opacity 0.85s cubic-bezier(0.16, 1, 0.3, 1) 0.18s,
    transform 0.95s cubic-bezier(0.16, 1, 0.3, 1) 0.18s;
}

.stonex-why-subtitle {
  transition:
    opacity 0.22s ease,
    transform 0.22s cubic-bezier(0.16, 1, 0.3, 1);
}

.stonex-why-subtitle.is-crossfading {
  opacity: 0 !important;
  transform: translateY(-6px) !important;
}

/* 6. Module 5: Pricing Section Waterfall Entrance, Card Auras & Energy Flow Beam */
.stonex-pricing-section.stonex-reveal-init .stonex-section-title {
  opacity: 0 !important;
  transform: translateY(2rem) !important;
  transition:
    opacity 0.45s ease,
    transform 0.5s ease !important;
}

.stonex-pricing-section.stonex-reveal-init .stonex-account-card,
.stonex-pricing-section.stonex-reveal-init
  .stonex-account-card.is-featured-pro {
  opacity: 0 !important;
  transform: translateY(3.25rem) scale(0.93) !important;
  transition:
    opacity 0.45s ease,
    transform 0.5s ease !important;
}

.stonex-pricing-section.stonex-reveal-init .stonex-pricing-steps-bar,
.stonex-pricing-section.stonex-reveal-init .stonex-pricing-step-item,
.stonex-pricing-section.stonex-reveal-init .stonex-pricing-step-divider,
.stonex-pricing-section.stonex-reveal-init .stonex-pricing-step-cta {
  opacity: 0 !important;
  transform: translateY(2rem) !important;
  transition:
    opacity 0.45s ease,
    transform 0.5s ease !important;
}

.stonex-pricing-section.stonex-reveal-init.is-inview .stonex-section-title {
  opacity: 1 !important;
  transform: translateY(0) !important;
  transition:
    opacity 0.85s ease,
    transform 0.95s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

.stonex-pricing-section.stonex-reveal-init.is-inview .stonex-account-card,
.stonex-pricing-section.stonex-reveal-init.is-inview
  .stonex-account-card.is-featured-pro {
  opacity: 1 !important;
  transform: translateY(0) scale(1) !important;
  transition:
    opacity 0.9s ease var(--stonex-card-delay, 0ms),
    transform 1s cubic-bezier(0.16, 1, 0.3, 1) var(--stonex-card-delay, 0ms),
    box-shadow 0.35s ease !important;
}

.stonex-pricing-section.stonex-reveal-init.is-inview .stonex-account-card:hover,
.stonex-pricing-section.stonex-reveal-init.is-inview
  .stonex-account-card.is-featured-pro:hover {
  transform: translateY(-0.5rem) scale(1.04) !important;
}

.stonex-pricing-section.stonex-reveal-init.is-inview.has-entered
  .stonex-account-card,
.stonex-pricing-section.stonex-reveal-init.is-inview.has-entered
  .stonex-account-card.is-featured-pro {
  transition:
    transform 0.35s cubic-bezier(0.16, 1, 0.3, 1),
    box-shadow 0.35s cubic-bezier(0.16, 1, 0.3, 1),
    opacity 0.35s ease !important;
}

/* Purple Pro Card Ambient Breathing Glow */
@keyframes stonexProPulse {
  0% {
    box-shadow: 0 0 16px rgba(115, 70, 183, 0.22);
  }
  100% {
    box-shadow: 0 0 32px rgba(115, 70, 183, 0.38);
  }
}
.stonex-pricing-section.is-inview .stonex-account-card.is-featured-pro {
  animation: stonexProPulse 4.2s ease-in-out infinite alternate;
}
.stonex-pricing-section.is-inview .stonex-account-card.is-featured-pro:hover {
  animation-play-state: paused !important;
}

/* Steps Bar Entrance & Traveling Energy Beam */
.stonex-pricing-section.stonex-reveal-init.is-inview .stonex-pricing-steps-bar {
  opacity: 1 !important;
  transform: translateY(0) !important;
  animation: none !important;
  transition:
    opacity 0.85s ease 0.35s,
    transform 0.95s cubic-bezier(0.16, 1, 0.3, 1) 0.35s !important;
}

.stonex-pricing-section.stonex-reveal-init.is-inview .stonex-pricing-step-item,
.stonex-pricing-section.stonex-reveal-init.is-inview
  .stonex-pricing-step-divider,
.stonex-pricing-section.stonex-reveal-init.is-inview .stonex-pricing-step-cta {
  opacity: 1 !important;
  transform: translateY(0) !important;
  transition:
    opacity 0.75s ease calc(0.48s + var(--stonex-step-delay, 0ms)),
    transform 0.85s cubic-bezier(0.16, 1, 0.3, 1)
      calc(0.48s + var(--stonex-step-delay, 0ms)) !important;
}

/* Step Process Bar Connecting Energy Flow Beam */
.stonex-pricing-step-divider {
  position: relative !important;
  overflow: hidden !important;
}
.stonex-pricing-step-divider::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(26, 187, 99, 0.85) 50%,
    rgba(255, 255, 255, 0.95) 75%,
    transparent 100%
  );
  transform: translateX(-100%);
  animation: stonexFlowBeam 3.2s cubic-bezier(0.4, 0, 0.2, 1) infinite;
}
@keyframes stonexFlowBeam {
  0% {
    transform: translateX(-100%);
  }
  50%,
  100% {
    transform: translateX(100%);
  }
}

/* Step Number Badge Hover Feedback */
.stonex-pricing-step-num {
  transition:
    transform 0.3s cubic-bezier(0.16, 1, 0.3, 1),
    box-shadow 0.3s ease !important;
}
.stonex-pricing-step-item:hover .stonex-pricing-step-num {
  transform: scale(1.1) !important;
  box-shadow: 0 0 1.25rem rgba(26, 187, 99, 0.75) !important;
}

/* 7. Floating Video Card Radar Pulse */
.stonex-video-play-overlay {
  position: relative;
}
.stonex-video-play-overlay::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 56px;
  height: 56px;
  margin-top: -28px;
  margin-left: -28px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.75);
  animation: stonexPlayPulse 2.6s cubic-bezier(0.16, 1, 0.3, 1) infinite;
  pointer-events: none;
}
@keyframes stonexPlayPulse {
  0% {
    transform: scale(0.8);
    opacity: 1;
  }
  100% {
    transform: scale(1.65);
    opacity: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  .stonex-hero-masthead.stonex-reveal-init .stonex-hero-headline,
  .stonex-hero-masthead.stonex-reveal-init .stonex-hero-subheadline,
  .stonex-hero-masthead.stonex-reveal-init .stonex-hero-card-outer,
  .stonex-performing-charts-section.stonex-reveal-init .stonex-section-title,
  .stonex-market-classification-section.stonex-reveal-init
    .stonex-asset-stage-title,
  .stonex-market-classification-section.stonex-reveal-init
    .stonex-asset-icon-cell,
  .stonex-market-classification-section.stonex-reveal-init
    .stonex-asset-shelf-col,
  .stonex-market-classification-section.stonex-reveal-init
    .stonex-market-classification-cta-wrap,
  .stonex-why-trade-v2-section.stonex-reveal-init .stonex-why-title,
  .stonex-why-trade-v2-section.stonex-reveal-init .stonex-why-subtitle,
  .stonex-pricing-section.stonex-reveal-init .stonex-section-title,
  .stonex-pricing-section.stonex-reveal-init .stonex-account-card,
  .stonex-pricing-section.stonex-reveal-init .stonex-pricing-steps-bar,
  .stonex-pricing-section.stonex-reveal-init .stonex-pricing-step-item,
  .stonex-pricing-section.stonex-reveal-init .stonex-pricing-step-divider,
  .stonex-pricing-section.stonex-reveal-init .stonex-pricing-step-cta {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
}

/* ==========================================================================
   4. Module 4: Why Trade & 3D Hand Gripping System (node-id=2424-2)
   Background on sticky-wrap: why-trade-v2-bg.jpg CLEARLY VISIBLE & NOT DISTORTED!
   ========================================================================== */
.stonex-why-trade-section,
.stonex-why-trade-v2-section {
  position: relative;
  /* Fallback runway for the default 4 cards. view.js overrides this inline based on the
     real card count: (1 + 0.45 * cards) * 100vh — identical to 280vh when there are 4. */
  height: 280vh;
  min-height: 150rem;
  background-color: #ffffff;
  overflow: visible !important;
  z-index: 20;
}

.stonex-why-sticky-wrap {
  position: sticky;
  top: 0;
  width: 100%;
  height: 100vh;
  overflow: hidden;
  background-color: #ffffff;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.68), rgba(255, 255, 255, 0.68)),
    url("../images/why-trade-v2-bg.jpg");
  background-position: center top;
  background-size: cover;
  background-repeat: no-repeat;
  padding-top: 9.6875rem; /* 155px in Figma node 2424:2 */
  padding-bottom: 0;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
}

.stonex-why-sticky-wrap .stonex-container {
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
}

.stonex-why-title {
  font-family: var(--stonex-font-heading);
  font-size: 2.25rem; /* 48px in Figma node 2424:7 */
  font-weight: 600;
  /* Text gradient #12225C -> #0954B5 */
  background-image: linear-gradient(90deg, #12225c 0%, #0954b5 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
  margin: 0 0 1rem 0;
  text-align: center;
  line-height: 1.25;
}

.stonex-why-title .stonex-brand-highlight {
  font-weight: 700;
  background: #0954b5;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.stonex-why-subtitle {
  font-family: var(--stonex-font-body);
  font-size: 1.5rem; /* 28px - 32px in Figma node 2424:8 */
  font-weight: 400;
  color: #12225c;
  max-width: 63rem; /* 1113px in Figma */
  margin: 0 auto 1.6rem auto;
  line-height: 1.45;
  text-align: center;
  min-height: 4.8rem;
}

/* Footnote markers (e.g. the † symbol) rendered smaller & raised via [sup]/<sup> */
.stonex-section-subtitle sup,
.stonex-why-subtitle sup {
  font-size: 0.55em;
  line-height: 0;
  vertical-align: super;
}

.stonex-section-subtitle sub,
.stonex-why-subtitle sub {
  font-size: 0.55em;
  line-height: 0;
  vertical-align: sub;
}

/* Hand Gripping Stage: frames cards, palm, and button at the bottom flush with the section border (95% size) */
.stonex-hand-stage-v2 {
  position: relative;
  width: 100%;
  height: 38.5rem;
  margin-top: auto;
  margin-bottom: 0;
  overflow: visible !important;
  flex-shrink: 0;
}

/* Hand Back Layer (behind cards, z-index: 10) */
.stonex-hand-back-wrap {
  position: absolute;
  left: calc(50% - 13.36rem);
  top: 14.5rem;
  width: 30.1rem;
  height: 24rem; /* 14.5rem + 24rem = 38.5rem aligns hand bottom flush with stage & section bottom */
  overflow: hidden;
  z-index: 10;
  pointer-events: none;
}

.stonex-hand-back-img {
  width: 30.1rem;
  height: 43.8rem;
  max-width: none;
  object-fit: fill;
  display: block;
}

/* Cards Track Row (middle layer, z-index: 20) with Vibrant 3D Royal Blue Cards */
.stonex-hand-cards-track {
  position: absolute;
  left: 50%;
  top: 0;
  height: 24.5rem;
  display: flex;
  align-items: center;
  gap: 7.48rem;
  z-index: 20;
  width: max-content;
  transition: transform 0.55s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: transform;
}

/* 3D Royal Blue Cards matching exact Figma Design (Pure GPU Transform & Scale) */
.stonex-hand-card {
  position: relative;
  width: 13.4rem;
  height: 15.27rem;
  padding: 1.97rem 1.09rem 0.87rem 1.09rem;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: center;
  gap: 1.31rem;
  cursor: pointer;
  border: none !important; /* Eliminate extra CSS border */
  outline: none;
  flex-shrink: 0;
  user-select: none;
  opacity: 1 !important; /* Fully solid, NO opacity 0.85! */
  background: url("../images/why-card-side-bg.png") center / 100% 100% no-repeat;
  filter: drop-shadow(0 16px 32px rgba(0, 48, 114, 0.4));
  transform-origin: center center;
  transform: scale(1);
  transition:
    transform 0.55s cubic-bezier(0.16, 1, 0.3, 1),
    filter 0.55s ease,
    background-image 0.55s ease;
  will-change: transform;
  z-index: 5;
}

.stonex-hand-card.stonex-hand-card-side:hover {
  filter: drop-shadow(0 22px 42px rgba(0, 48, 114, 0.55));
}

/* Center Card Dimensions: Active in Grip */
.stonex-hand-card.stonex-hand-card-center,
.stonex-hand-card.is-active {
  transform: scale(1.4735, 1.4766);
  background: url("../images/why-card-center-bg.png") center / 100% 100%
    no-repeat;
  filter: drop-shadow(0 25px 50px rgba(0, 48, 114, 0.55));
  z-index: 25;
  cursor: pointer !important;
}

.stonex-hand-card-title {
  font-family: var(--stonex-font-body);
  font-size: 0.87rem;
  font-weight: 600;
  text-align: center;
  color: #ffffff;
  margin: 0;
  line-height: 1.35;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  width: 100%;
  word-break: normal;
  overflow-wrap: break-word;
}

.stonex-card-title-line {
  display: block;
  white-space: normal;
  word-break: normal;
  overflow-wrap: break-word;
}

.stonex-hand-card-icon-wrap {
  width: 100%;
  height: 6.12rem;
  max-height: 6.12rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.stonex-hand-card-icon-wrap img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

/* Hand Front Layer (thumb gripping left edge in front of center card, z-index: 30) */
.stonex-hand-front-wrap {
  position: absolute;
  left: calc(50% - 13.36rem);
  top: 14.5rem;
  width: 30.1rem;
  height: 24rem; /* 14.5rem + 24rem = 38.5rem aligns hand bottom flush with stage & section bottom */
  overflow: hidden;
  z-index: 30;
  pointer-events: none;
}

.stonex-hand-front-img {
  width: 30.1rem;
  height: 43.8rem;
  max-width: none;
  object-fit: fill;
  display: block;
}

/* Action Button in Palm (z-index: 40) */
.stonex-hand-cta-wrap {
  position: absolute;
  left: 50%;
  top: 30.65rem;
  transform: translateX(-50%);
  z-index: 40;
}

/* ==========================================================================
   Module 4 - Proportional Scaling on Large Screens (>= 1920px)
   Instead of dragging elements down with an artificial void gap, scale the
   entire module composition proportionally to naturally ground the hand at the bottom.
   ========================================================================== */
:root {
  --stonex-why-scale: 1;
}

@media (min-width: 1920px) {
  :root {
    --stonex-why-scale: 1.14;
  }

  .stonex-why-sticky-wrap {
    padding-top: 9.6875rem !important; /* Exactly 155px in Figma node 2424:2 */
    padding-bottom: 0 !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: flex-start !important;
  }

  .stonex-why-sticky-wrap .stonex-container {
    height: auto !important;
    display: block !important;
    max-width: calc(100vw / var(--stonex-why-scale, 1.14)) !important;
    transform-origin: center top !important;
    transform: scale(var(--stonex-why-scale, 1.14)) !important;
    margin-left: auto !important;
    margin-right: auto !important;
  }

  .stonex-hand-stage-v2 {
    margin-top: 0 !important;
    margin-bottom: 0 !important;
  }

  /* Module 5: Diffuse Hand Shadow scaled proportionally with Module 4 hand */
  .stonex-pricing-hand-shadow {
    left: calc(50% + 5rem * var(--stonex-why-scale, 1.14)) !important;
    transform: translateX(-50%) scale(var(--stonex-why-scale, 1.14)) !important;
    transform-origin: center center !important;
  }
}

@media (min-width: 2560px) {
  :root {
    --stonex-why-scale: 1.58;
  }
}

@media (min-width: 3840px) {
  :root {
    --stonex-why-scale: 2.47;
  }
}

/* ==========================================================================
   5. Module 5: Account Types & Active Trader VIP (node-id=2208-204)
   Background: plans-backdrop.png CLEARLY VISIBLE!
   VIP Banner: sydney-sunset.jpg CLEARLY VISIBLE!
   Higher z-index: 35 naturally covers/masks the wrist and forearm of the hand!
   ========================================================================== */
.stonex-pricing-section {
  background-color: var(--stonex-blue-bg) !important;
  position: relative;
  z-index: 35;
  margin-top: 0;
  padding-top: 8.875rem; /* 142px */
  padding-bottom: 5.625rem; /* 90px in Figma */
  background:
    linear-gradient(
      180deg,
      rgba(18, 34, 92, 0.18) 0%,
      rgba(16, 47, 114, 0.22) 20%,
      rgba(9, 84, 181, 0.2) 48%,
      rgba(14, 59, 136, 0.25) 78%,
      rgba(18, 34, 92, 0.35) 100%
    ),
    url("../images/plans-backdrop.png") center/cover no-repeat;
  box-shadow:
    inset 0px -155px 250px 168px rgba(0, 65, 149, 1),
    inset 0px 4px 249px -114px rgba(255, 255, 255, 1);
  overflow: hidden;
}

/* Diffuse Blurred 3D Hand Silhouette Shadow lurking behind Module 5 title */
.stonex-pricing-hand-shadow {
  position: absolute;
  top: -27rem;
  left: calc(50% + 5rem * var(--stonex-why-scale, 1));
  transform: translateX(-50%) scale(var(--stonex-why-scale, 1));
  transform-origin: center center;
  width: 29rem;
  height: 54rem;
  pointer-events: none;
  z-index: 1;
  opacity: 0.85;
  filter: blur(24px) brightness(0.2) contrast(1.4);
  mix-blend-mode: multiply;
  mask-image: radial-gradient(
    ellipse 66% 60% at 50% 42%,
    rgba(0, 0, 0, 1) 0%,
    rgba(0, 0, 0, 0.85) 40%,
    rgba(0, 0, 0, 0.45) 62%,
    rgba(0, 0, 0, 0) 75%
  );
  -webkit-mask-image: radial-gradient(
    ellipse 66% 60% at 50% 42%,
    rgba(0, 0, 0, 1) 0%,
    rgba(0, 0, 0, 0.85) 40%,
    rgba(0, 0, 0, 0.45) 62%,
    rgba(0, 0, 0, 0) 75%
  );
}

.stonex-pricing-shadow-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.stonex-pricing-section .stonex-container {
  position: relative;
  z-index: 10;
  max-width: 118rem; /* 1888px in Figma */
  padding-left: 1.75rem;
  padding-right: 1.75rem;
}

.stonex-pricing-section .stonex-section-title {
  font-family: var(--stonex-font-heading);
  font-size: 2.5rem; /* 40px in Figma */
  font-weight: 600; /* SemiBold in Figma */
  line-height: 1.18;
  color: #ffffff;
  text-align: center;
  margin-top: 0;
  margin-bottom: 4.875rem; /* 78px gap to the account cards */
}

.stonex-accounts-grid {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: 2.1875rem; /* 35px at 1920 base */
  width: 100%;
  max-width: 112.615rem; /* 1801.84px = 6 × 271.14px cards + 5 × 35px gaps at 1920 base */
  margin: 0 auto 6.125rem auto; /* 98px gap to step process bar in Figma! */
}

/* Mobile-only account cards carousel arrows (shown in the max-width:768px block) */
.stonex-accounts-nav {
  display: none;
}

/* 6 Frosted Blue Cards with Cyan Neon Inset Glow */
.stonex-account-card {
  position: relative;
  width: 16.94625rem; /* 271.14px at 1920 base */
  height: 26.0625rem; /* 417px at 1920 base */
  margin-top: 2.9375rem; /* 47px offset in Figma */
  background: rgba(18, 34, 92, 0.75);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: none;
  border-radius: 1.125rem; /* 18px in Figma */
  padding: 1.25rem 1.125rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow:
    inset 0px 0px 107px 28px rgba(99, 192, 235, 0.52),
    inset 0px 0px 45.9px -8px rgba(255, 255, 255, 0.64);
  overflow: hidden;
  transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  flex-shrink: 0;
}

/* Blue→Green gradient card (Standard account variant, left of Professional):
   bg linear-gradient #0954B5 → #14964F, 2px white gradient border (shared ::after)
   and the standard inner shadows inset 0/0/107/28 #63C0EB 52% + 0/0/45.9/-8 #FFF 64% */
.stonex-account-card.is-gradient-blue-green {
  background: linear-gradient(180deg, #0954b5 0%, #14964f 100%);
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

.stonex-account-card.is-gradient-blue-green:hover {
  transform: translateY(-0.5rem) scale(1.04);
  box-shadow:
    0 0 1.25rem rgba(99, 192, 235, 0.28),
    0 0 2.5rem rgba(20, 150, 79, 0.16),
    inset 0px 0px 107px 28px rgba(99, 192, 235, 0.52),
    inset 0px 0px 45.9px -8px rgba(255, 255, 255, 0.64) !important;
}

/* Directional Top-Left & Bottom-Right White Border Highlight (Figma 137deg gradient stroke fill_5a90ff32) */
.stonex-account-card::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 2px;
  pointer-events: none;
  z-index: 5;
  background: linear-gradient(
    137deg,
    #ffffff 0%,
    rgba(255, 255, 255, 0) 52%,
    #ffffff 100%
  );
  -webkit-mask:
    linear-gradient(#fff 0 0) content-box,
    linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  transition: opacity 0.35s ease;
}

.stonex-account-card:hover {
  transform: translateY(-0.5rem) scale(1.04);
  box-shadow:
    0 0 1.25rem rgba(99, 192, 235, 0.28),
    0 0 2.5rem rgba(99, 192, 235, 0.12),
    inset 0px 0px 107px 28px rgba(99, 192, 235, 0.52),
    inset 0px 0px 45.9px -8px rgba(255, 255, 255, 0.64) !important;
}

.stonex-account-name {
  font-family: var(--stonex-font-heading);
  font-size: 1.5rem !important; /* 24px in Figma! */
  font-weight: 700 !important;
  line-height: 1.25 !important;
  color: #ffffff !important;
  margin: 0 0 0.5rem 0 !important;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.stonex-account-subtitle {
  font-size: 0.8125rem !important;
  color: #ffffff !important;
  line-height: 1.45 !important;
  margin: 0 0 1rem 0 !important;
}

.stonex-account-features {
  list-style: none !important;
  padding: 0 !important;
  margin: 0 0 1.25rem 0 !important;
  display: flex !important;
  flex-direction: column !important;
  gap: 0.65rem !important;
}

.stonex-account-feature-item {
  font-size: 0.8125rem !important;
  color: #ffffff !important;
  line-height: 1.4 !important;
  margin-bottom: 0 !important;
  display: flex !important;
  align-items: flex-start !important;
  gap: 0.625rem !important;
}

/* Links typed into a feature bullet point stay clickable */
.stonex-feature-text a {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 0.15em;
  cursor: pointer;
  transition: opacity 0.2s ease;
}

.stonex-feature-text a:hover,
.stonex-feature-text a:focus {
  opacity: 0.85;
}

.stonex-account-card-inner {
  display: flex;
  flex-direction: column;
  /* Content stays top-aligned; the footer is pinned to the bottom via margin-top:auto. */
  height: 100%;
  width: 100%;
}

/* Pin the account button to the bottom of every card regardless of feature-list length */
.stonex-account-card-footer {
  margin-top: auto;
}

/* White Circle with Dark Checkmark matching Figma */
.stonex-feature-check-circle,
.stonex-feature-check {
  width: 1.125rem;
  height: 1.125rem;
  background: #ffffff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #12225c;
  font-size: 0.6875rem;
  font-weight: 900;
  flex-shrink: 0;
  margin-top: 0.125rem;
}

.stonex-feature-check svg {
  width: 0.75rem;
  height: 0.75rem;
  color: #12225c;
}

.stonex-btn-account {
  width: 100%;
  height: 2.75rem; /* 44px in Figma */
  white-space: nowrap; /* long labels are auto-shrunk by view.js instead of wrapping */
  background-color: var(--stonex-green);
  color: #ffffff !important;
  font-family: var(--stonex-font-body);
  font-size: 0.875rem; /* 14px in Figma */
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  text-decoration: none;
  border-radius: var(--stonex-radius-pill);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.25s ease;
  border: none;
  cursor: pointer;
}

.stonex-btn-account:hover {
  background-color: var(--stonex-green-hover);
  transform: translateY(-2px);
}

.stonex-account-card.is-featured-pro {
  width: 16.94625rem; /* 271.14px, same as other cards */
  height: 26.0625rem; /* 417px, same as other cards */
  margin-top: 2.9375rem; /* Same offset as other cards */
  background: linear-gradient(180deg, #381d64 0%, #7346b7 100%) !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  border: none !important;
  border-radius: 1.125rem !important; /* 18px in Figma */
  box-shadow: none !important; /* Figma: No shadow in static state */
  padding: 1.25rem 1.125rem !important; /* Same as other cards */
  z-index: 5;
  transition:
    transform 0.35s cubic-bezier(0.16, 1, 0.3, 1),
    box-shadow 0.35s cubic-bezier(0.16, 1, 0.3, 1),
    opacity 0.35s ease;
}

.stonex-account-card.is-featured-pro:hover {
  transform: translateY(-0.5rem) scale(1.04) !important;
  box-shadow:
    0 0 1.25rem rgba(147, 95, 219, 0.35),
    0 0 2.5rem rgba(115, 70, 183, 0.2) !important; /* Soft purple aura on hover */
}

.stonex-account-card.is-featured-pro .stonex-account-name {
  font-size: 1.5rem !important; /* Same as other cards */
  line-height: 1.25 !important;
  margin: 0 0 0.2rem 0 !important; /* Same as other cards */
  letter-spacing: 0.02em !important; /* Same as other cards */
}

.stonex-account-card.is-featured-pro .stonex-account-subtitle {
  font-size: 0.8125rem !important; /* Same as other cards */
  color: #ffffff !important;
  line-height: 1.45 !important;
  margin: 0 0 0.5rem 0 !important; /* Same as other cards */
  min-height: 2.2rem !important; /* Same as other cards */
}

.stonex-account-card.is-featured-pro .stonex-account-features {
    gap: 0.45rem !important;
  margin: 0 0 0.55rem 0 !important; /* Same as other cards */
}

.stonex-account-card.is-featured-pro .stonex-account-feature-item {
  font-size: 0.8125rem !important; /* Same as other cards */
  line-height: 1.4 !important; /* Same as other cards */
  margin-bottom: 0 !important;
  gap: 0.625rem !important; /* Same as other cards */
}

.stonex-btn-account-white {
  background-color: #ffffff !important;
  color: #12225c !important;
  height: 2.75rem; /* 44px in Figma */
  font-size: 0.875rem; /* 14px in Figma */
  font-weight: 700;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.stonex-btn-account-white:hover {
  background-color: #f8fafc !important;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
}

/* ==========================================================================
   Module 5: 1:1 Step Process Bar (Figma FA V3 node-id=2830-250)
   1920px base: 1rem = 16px
   Outer container: 1493px × 137px (93.3125rem × 8.5625rem)
   Corner radius: 68.5px (4.28125rem)
   Fill: Linear 180deg 51% opacity (#0954B5 0% -> #19215B 100%)
   Circle: 58px × 58px (3.625rem), Linear 180deg (#1ABB63 0% -> #076933 100%)
   ========================================================================== */
.stonex-pricing-steps-bar {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  width: 100%;
  max-width: 93.3125rem; /* 1493px in Figma */
  height: 8.5625rem; /* 137px in Figma */
  min-height: 8.5625rem;
  margin: 0 auto;
  padding: 0 4.5rem 0 5.25rem; /* 117px left, 113px right in Figma */
  box-sizing: border-box;
  background: linear-gradient(
    180deg,
    rgba(9, 84, 181, 0.51) 0%,
    rgba(25, 33, 91, 0.51) 100%
  );
  border-radius: 4.28125rem; /* 68.5px in Figma */
  z-index: 10;

  /* Fade-in entrance handled via .stonex-reveal-init / .is-inview */
  opacity: 1;
  transform: none;
}

/* Gradient border stroke: Left side prominent (0.85 opacity), Right side faint/transparent (fading to 0) */
.stonex-pricing-steps-bar::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 0.0625rem; /* 1px stroke (1 / 16rem) */
  background: linear-gradient(
    90deg,
    rgba(255, 255, 255, 0.85) 0%,
    rgba(255, 255, 255, 0.55) 30%,
    rgba(255, 255, 255, 0.22) 65%,
    rgba(255, 255, 255, 0.04) 92%,
    rgba(255, 255, 255, 0) 100%
  );
  -webkit-mask:
    linear-gradient(#fff 0 0) content-box,
    linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
  z-index: 2;
}

.stonex-pricing-steps-bar.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@keyframes stonexStepBarFadeIn {
  from {
    opacity: 0;
    transform: translateY(1.75rem);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Individual Step Item (Circle Badge + Label) */
.stonex-pricing-step-item {
  display: flex;
  align-items: center;
  gap: 1.125rem; /* 18px in Figma */
  flex-shrink: 0;
  cursor: pointer;
}

/* Green Step Badge (58px × 58px in Figma: Linear 180deg #1ABB63 -> #076933) */
.stonex-pricing-step-num {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 3.625rem; /* 58px in Figma */
  height: 3.625rem; /* 58px in Figma */
  border-radius: 50%;
  background: linear-gradient(180deg, #1abb63 0%, #076933 100%);
  color: #ffffff;
  font-family: var(--stonex-font-body);
  font-size: 2rem; /* 32px in Figma (32 / 16 = 2rem) */
  font-weight: 700;
  line-height: 1;
  flex-shrink: 0;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Step Label Text - with Hover Zoom / Scale Effect */
.stonex-pricing-step-text {
  display: inline-block;
  font-family: var(--stonex-font-body);
  font-size: 1.5rem; /* 24px in Figma (24 / 16 = 1.5rem) */
  font-weight: 600;
  line-height: 1.2;
  color: #ffffff;
  white-space: nowrap;
  transform-origin: left center;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Step Hover Effects: Text Magnification */
.stonex-pricing-step-item:hover .stonex-pricing-step-text {
  transform: scale(1.12);
  color: #ffffff;
}

.stonex-pricing-step-item:hover .stonex-pricing-step-num {
  transform: scale(1.08);
}

/* Connecting Divider Line between Steps (80px × 2px) */
.stonex-pricing-step-divider {
  width: 5rem; /* 80px in Figma */
  height: 0.125rem; /* 2px in Figma */
  background-color: rgba(255, 255, 255, 0.35);
  margin: 0 2.25rem; /* 36px in Figma */
  flex-shrink: 0;
  border-radius: 0.0625rem;
}

/* Right-aligned CTA button wrap */
.stonex-pricing-step-cta {
  margin-left: auto;
  flex-shrink: 0;
}

/* OPEN ACCOUNT Pill Button (320px × 74px) */
.stonex-pricing-step-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20rem; /* 320px in Figma */
  height: 4.625rem; /* 74px in Figma */
  background-color: var(--stonex-green, #14964f);
  color: #ffffff !important;
  font-family: var(--stonex-font-body);
  font-size: 1.25rem; /* 20px in Figma */
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  text-decoration: none !important;
  border-radius: 9999px;
  box-sizing: border-box;
  box-shadow: 0 0.375rem 1.25rem rgba(20, 150, 79, 0.4);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  cursor: pointer;
}

.stonex-pricing-step-btn:hover {
  background-color: var(--stonex-green-hover, #12823c);
  transform: translateY(-0.125rem) scale(1.02);
  box-shadow: 0 0.625rem 1.75rem rgba(20, 150, 79, 0.55);
}

.stonex-pricing-step-btn:active {
  background-color: var(--stonex-green-active, #0e6b30);
  transform: translateY(0) scale(0.99);
}

/* ==========================================================================
   VIP Banner Across the Bottom (Figma node-id=2477:24)
   Dimensions: 1920px × 287px, Background: Sydney skyline
   Left: 579px × 89px Logo, Right: 499px Text + 246px × 51.3px Pill Button
   ========================================================================== */
.stonex-vip-banner,
.stonex-vip-sg-banner {
  position: relative;
  width: 100%;
  min-height: 17.9375rem; /* 287px in Figma */
  background: url("../images/sydney-sunset.jpg") center 44% / cover no-repeat;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  box-sizing: border-box;
  overflow: hidden;
}

.stonex-vip-banner-content,
.stonex-vip-sg-banner-content {
  display: flex;
  align-items: flex-start; /* top-aligned by default (no custom logo image) */
  justify-content: space-between;
  width: 100%;
  max-width: 67.6875rem;
  padding: 0 1rem;
  box-sizing: border-box;
}

/* When a Custom Logo Image is configured, centre both columns vertically */
.stonex-vip-banner-content.has-custom-logo,
.stonex-vip-sg-banner-content.has-custom-logo {
  align-items: center;
}

.stonex-vip-logo-col {
  display: flex;
  flex-direction: column;
  align-items: flex-end; /* icon + logo/title hug the right edge */
  justify-content: center;
  flex-shrink: 0;
}

.stonex-vip-title {
  font-family: var(--stonex-font-heading, "Inter", sans-serif);
  font-size: clamp(2.25rem, 3.2vw, 3.75rem);
  font-weight: 800;
  color: #ffffff;
  text-align: right;
  line-height: 0.5;
  letter-spacing: -0.02em;
  text-transform: uppercase;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
  margin: 0;
  white-space: pre-line;
  word-break: break-word;
}

.stonex-vip-logo-img {
  width: 31.125rem; 
  object-fit: contain;
  display: block;
}

/* Optional icon shown above the VIP title / logo (99×71px in the 1920px design) */
.stonex-vip-icon {
  width: 6.1875rem; /* 99px in Figma */
  height: 4.4375rem; /* 71px in Figma */
  object-fit: contain;
  display: block;
  margin: 0 0 0.75rem 0;
}

/* Optional note shown under the VIP button (default 11px / 0.6875rem in Figma, or configured in WP Admin) */
.stonex-vip-btn-note {
  font-family: var(--stonex-font-body, "Poppins", sans-serif);
  font-size: var(--stonex-vip-note-size, 0.6875rem);
  font-weight: 400;
  line-height: 1.5;
  color: #ffffff;
  margin: 0.75rem 0 0 0;
  text-align: left;
}

.stonex-vip-btn-note,
.stonex-vip-btn-note a,
.stonex-vip-btn-note a:link,
.stonex-vip-btn-note a:visited,
.stonex-vip-btn-note a:active {
  color: #ffffff !important;
  font-size: var(--stonex-vip-note-size, inherit);
}

.stonex-vip-btn-note a {
  text-decoration: underline;
  text-underline-offset: 0.15em;
  transition: opacity 0.2s ease;
}

.stonex-vip-btn-note a:hover {
  color: #ffffff !important;
  opacity: 0.85;
}

.stonex-vip-action-col {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  width: 31.1875rem; /* 499px in Figma */
  flex-shrink: 0;
}

.stonex-vip-desc {
  font-family: var(--stonex-font-body, "Poppins", sans-serif);
  font-size: 1.5rem; /* 24px in Figma */
  font-weight: 400; /* Regular in Figma */
  line-height: 2.25rem; /* 36px in Figma */
  color: #ffffff;
  margin: 0 0 0.8125rem 0; /* 13px gap in Figma */
  letter-spacing: 0;
  text-align: left;
}

.stonex-btn-vip-white,
.stonex-btn-vip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 15.372rem; /* 245.96px in Figma */
  height: 3.206rem; /* 51.3px in Figma */
  background-color: #ffffff;
  color: #3e1f6e !important;
  border-radius: 3.6875rem; /* 59px pill in Figma */
  font-family: var(--stonex-font-body, "Poppins", sans-serif);
  font-size: 1.25rem; /* 20px in Figma */
  font-weight: 400; /* Regular in Figma */
  line-height: 1.875rem; /* 30px in Figma */
  text-transform: none; /* Title case "Start Trading" */
  text-decoration: none;
  border: none;
  box-sizing: border-box;
  box-shadow: none;
  transition:
    background-color 0.2s ease,
    transform 0.2s ease,
    box-shadow 0.2s ease;
  white-space: nowrap;
}

.stonex-btn-vip-white:hover,
.stonex-btn-vip:hover {
  background-color: #f3eff9;
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
}

/* ==========================================================================
   6. Module 6: Simple steps to start trading (Liquid Glass Number Plates)
   Figma 1920px specs: Section 1478px × 821px (node-id=2208:478)
   ========================================================================== */
.stonex-steps-section {
  background: #12225c;
  min-height: 51.3125rem; /* 821px in Figma */
  padding-top: 5rem; /* 80px */
  padding-bottom: 6rem; /* 96px */
  position: relative;
  overflow: visible;
}

.stonex-steps-bg-glow {
  display: none;
}

.stonex-steps-section .stonex-section-header {
  margin-bottom: 3.5rem; /* 56px */
  text-align: center;
  opacity: 0;
  transform: translateY(2rem);
  transition:
    opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1),
    transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: opacity, transform;
}

.stonex-steps-section .stonex-section-title {
  font-family: var(--stonex-font-heading);
  font-size: 2.5rem; /* 40px in Figma node 2208:479 */
  font-weight: 700;
  color: #ffffff;
  line-height: 1.2;
  text-align: center;
  margin: 0;
}

.stonex-steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2.5rem; /* 40px */
  width: 100%;
  max-width: 92.375rem; /* 1478px in Figma node 2208:478 */
  margin: 0 auto;
  overflow: visible;
}

.stonex-step-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  overflow: visible;
  opacity: 0;
  transform: translateY(2.5rem);
  transition:
    opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1),
    transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: opacity, transform;
}

/* Staggered entrance fade-in when section is inview */
.stonex-steps-section.is-inview .stonex-section-header {
  opacity: 1;
  transform: translateY(0);
}

.stonex-steps-section.is-inview .stonex-step-item:nth-child(1) {
  opacity: 1;
  transform: translateY(0);
  transition-delay: 0.12s;
}

.stonex-steps-section.is-inview .stonex-step-item:nth-child(2) {
  opacity: 1;
  transform: translateY(0);
  transition-delay: 0.26s;
}

.stonex-steps-section.is-inview .stonex-step-item:nth-child(3) {
  opacity: 1;
  transform: translateY(0);
  transition-delay: 0.4s;
}

.stonex-step-text-wrap {
  min-height: 5.5rem;
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.stonex-step-title {
  font-family: var(--stonex-font-heading);
  font-size: 1.5rem; /* 24px in Figma node 2208:494 */
  font-weight: 600;
  color: #ffffff;
  margin: 0 0 0.5rem 0;
  line-height: 1.3;
  text-transform: none;
  transition:
    color 0.35s ease,
    text-shadow 0.35s ease;
}

.stonex-step-desc {
  font-size: 1.25rem; /* 20px in Figma node 2208:493 */
  color: #ffffff;
  font-weight: 400;
  line-height: 1.5;
  margin: 0;
  transition: color 0.35s ease;
}

.stonex-step-item:hover .stonex-step-desc {
  color: #ffffff;
}

/* Card Plate Container & Hover Floating Effect */
.stonex-step-plate-container {
  position: relative;
  width: 100%;
  max-width: 26rem; /* Scaled from 464px (29rem) to fit 1478px 3-column layout */
  height: 22rem; /* 352px height for glass plates */
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: visible;
  cursor: pointer;
}

.stonex-plate-reflection {
  position: absolute;
  bottom: 0.5rem;
  left: 20%;
  right: 20%;
  height: 1.5rem;
  background: radial-gradient(
    ellipse at center,
    rgba(0, 0, 0, 0.4) 0%,
    transparent 70%
  );
  filter: blur(0.85rem);
  pointer-events: none;
  opacity: 0.6;
  transform: scale(1);
  transition:
    opacity 0.6s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.6s cubic-bezier(0.22, 1, 0.36, 1),
    filter 0.6s ease;
}

.stonex-step-plate-object {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  will-change: transform;
  transform: translateY(0);
  position: relative;
  top: -0.625rem; /* Move plate 10px upward */
  transition: transform 0.65s cubic-bezier(0.38, 0.05, 0.22, 1);
}

.stonex-step-plate-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 1.25rem 2rem rgba(0, 0, 0, 0.45));
  transition:
    filter 0.65s cubic-bezier(0.38, 0.05, 0.22, 1),
    transform 0.65s cubic-bezier(0.38, 0.05, 0.22, 1);
}

/* Card Plate Hover: Silky Smooth Fluid Floating Lift */
.stonex-step-item:hover .stonex-step-plate-object {
  transform: translateY(-1.125rem); /* -18px smooth floating lift */
}

.stonex-step-item:hover .stonex-step-plate-img {
  filter: drop-shadow(0 2.25rem 3.5rem rgba(0, 0, 0, 0.65));
}

.stonex-step-item:hover .stonex-plate-reflection {
  opacity: 0.25;
  transform: scale(0.9);
  filter: blur(1.15rem);
}

/* ==========================================================================
   7. Module 7: Footer (Earth Lights Horizon)
   Background: earth-lights-footer.jpg CLEARLY VISIBLE!
   ========================================================================== */
.stonex-footer-section {
  position: relative;
  min-height: 103.875rem; /* 1662px @ 1920px Figma base */
  background: url("../images/earth-lights-footer.jpg") center bottom / cover
    no-repeat;
  padding-top: 6rem;
  padding-bottom: 4rem;
  overflow: hidden;
}

.stonex-footer-top-brand {
  text-align: center;
  margin-bottom: 4rem;
}

.stonex-footer-brand-logo {
  height: 6.1875rem; /* 99px in Figma */
  width: auto;
  max-width: 21.5625rem; /* 345px in Figma */
  margin-bottom: 1.5rem;
}

.stonex-footer-heading {
  font-family: var(--stonex-font-heading);
  font-size: 4rem; /* 64px in Figma! */
  font-weight: 700;
  color: #ffffff;
  margin: 0;
}

.stonex-footer-nav-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 3rem;
  margin-bottom: 4rem;
}

.stonex-footer-col-title {
  font-family: var(--stonex-font-heading);
  font-size: 1.5rem; /* 24px in Figma! */
  font-weight: 700;
  color: #ffffff;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin: 0 0 1.5rem 0;
}

.stonex-footer-contact-title {
  font-size: 2rem; /* 32px in Figma! */
}

.stonex-footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
}

.stonex-footer-links li {
  margin-bottom: 1rem;
}

.stonex-footer-link {
  color: #a0b2db;
  text-decoration: none;
  font-size: 1.5rem; /* 24px in Figma! */
  line-height: 1.5;
  transition: color 0.2s ease;
}

.stonex-footer-link:hover {
  color: #38bdf8;
}

.stonex-footer-social-row {
  display: flex;
  gap: 1rem;
  margin-bottom: 2rem;
}

.stonex-social-link img {
  width: 5.625rem; /* 90px in Figma! */
  height: 5.375rem; /* 86px in Figma! */
  transition: transform 0.2s ease;
  object-fit: contain;
}

.stonex-social-link:hover img {
  transform: scale(1.1);
}

.stonex-parent-company img {
  height: 4.357rem; /* 69.7px in Figma! */
  width: auto;
  max-width: 26.656rem; /* 426.5px in Figma! */
}

.stonex-footer-disclaimer-text {
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  padding-top: 2.5rem;
  font-size: 1.25rem; /* 20px in Figma! */
  color: #a0b2db;
  line-height: 1.49;
  text-align: justify;
}

.stonex-footer-disclaimer-text a {
  color: #ffffff;
  text-decoration: underline;
}

/* ==========================================================================
   Responsive Breakpoints
   ========================================================================== */
@media (max-width: 1200px) {
  /* Module 1 folds from two columns back into a single stacked column */
  .stonex-hero-masthead .stonex-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    max-width: none;
    padding-left: 3.5rem;
    padding-right: 3.5rem;
  }
  .stonex-hero-intro {
    grid-column: auto;
    grid-row: auto;
    text-align: center;
    margin: 0 auto;
  }
  .stonex-hero-masthead .stonex-hero-main-cta,
  .stonex-hero-masthead .stonex-center {
    grid-column: auto;
    grid-row: auto;
    align-self: auto;
    text-align: center;
    margin-top: 2.5rem;
  }
  .stonex-hero-card-outer {
    grid-column: auto;
    grid-row: auto;
    justify-content: center;
    margin-top: 3.5rem;
  }
  .stonex-charts-row-container {
    flex-wrap: wrap;
  }
  .stonex-accounts-grid {
    flex-wrap: wrap;
  }
  .stonex-pricing-steps-bar {
    padding: 0 2.5rem !important;
    max-width: calc(100% - 6.5rem) !important;
  }
  .stonex-pricing-step-divider {
    width: 3rem !important;
    margin: 0 1.25rem !important;
  }
  .stonex-pricing-step-btn {
    width: 16rem !important;
    height: 4rem !important;
    font-size: 1.1rem !important;
  }
  .stonex-asset-icons-row {
    flex-wrap: wrap;
    gap: 2rem;
  }
  .stonex-asset-shelf-row {
    flex-direction: column;
  }
  .stonex-asset-shelf-divider {
    display: none;
  }
  .stonex-footer-nav-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  /* Disable mobile tap blue highlight & active tint globally */
  *,
  *::before,
  *::after,
  a,
  button,
  div,
  span,
  img,
  svg,
  [role="button"],
  .stonex-homepage-wrap * {
    -webkit-tap-highlight-color: transparent !important;
    -webkit-tap-highlight-color: rgba(0, 0, 0, 0) !important;
    -webkit-touch-callout: none !important;
    outline: none !important;
  }

  /* Global Container & Typography */
  .stonex-container {
    padding-left: 3.25rem !important;
    padding-right: 3.25rem !important;
  }
  .stonex-section-title {
    margin-bottom: 2rem !important;
  }
  .stonex-title-bold,
  .stonex-title-gradient,
  .stonex-title-normal {
    font-size: 1.85rem !important;
  }
  .stonex-title-light {
    font-size: 1.15rem !important;
  }
  .stonex-center {
    margin-top: 2.25rem !important;
  }
  .stonex-btn-green-pill {
    width: auto !important;
    min-width: 14.5rem !important;
    max-width: 18rem !important;
    height: 3.2rem !important;
    padding: 0 1.75rem !important;
    font-size: 0.95rem !important;
    box-sizing: border-box !important;
  }

  /* Module 1: Hero Masthead (stacked on small screens) */
  .stonex-hero-masthead {
    min-height: auto !important;
    padding: 1.5rem 0 3.5rem 0 !important;
  }
  .stonex-hero-masthead .stonex-container {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    max-width: none !important;
  }
  .stonex-hero-masthead .stonex-hero-main-cta,
  .stonex-hero-masthead .stonex-center {
    text-align: center !important;
    margin-top: 2.25rem !important;
  }
  .stonex-hero-masthead .stonex-hero-cta-note {
    max-width: 100% !important;
    margin-left: auto !important;
    margin-right: auto !important;
  }
  .stonex-hero-top-left-logo {
    position: relative !important;
    top: auto !important;
    left: auto !important;
    display: flex !important;
    justify-content: flex-start !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 3.25rem !important;
    padding-right: 3.25rem !important;
    margin-bottom: 1.5rem !important;
  }
  .stonex-hero-logo-img {
    height: 2.25rem !important;
    width: auto !important;
  }
  .stonex-hero-intro {
    margin: 1rem auto 0 auto !important;
    text-align: center !important;
  }
  .stonex-hero-headline {
    font-size: 1.85rem !important;
    line-height: 1.25 !important;
    margin-bottom: 0.85rem !important;
    text-align: center !important;
    letter-spacing: -0.01em !important;
  }
  .stonex-hero-subheadline {
    font-size: 0.92rem !important;
    line-height: 1.5 !important;
    max-width: 100% !important;
    margin: 0 auto 1.75rem auto !important;
    text-align: center !important;
    color: #cbd5e1 !important;
  }
  .stonex-hero-card-outer {
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 auto !important;
  }
  .stonex-hero-market-card {
    width: 100% !important;
    max-width: 100% !important;
    height: auto !important;
    min-height: auto !important;
    border-radius: 1.25rem !important;
    padding: 0 !important;
    position: relative !important;
    overflow: hidden !important;
    display: block !important;
    box-shadow:
      0 8px 24px rgba(0, 0, 0, 0.25),
      inset 0 0 1.8rem -0.25rem #ffffff !important; /* Figma inner shadow, scaled for mobile */
  }
  .stonex-hero-card-main {
    width: 100% !important;
    padding: 1.5rem 1.25rem 1.25rem 1.25rem !important;
    box-sizing: border-box !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: stretch !important;
  }
  .stonex-hero-market-name {
    font-size: 2rem !important;
    margin-bottom: 0.65rem !important;
  }
  .stonex-hero-twin-badges {
    margin-top: 0.75rem !important;
    margin-bottom: 0.75rem !important;
    flex-wrap: wrap !important;
    gap: 0.5rem !important;
  }
  .stonex-candlestick-chart-wrapper {
    position: relative !important;
    top: 0 !important;
    left: 0 !important;
    right: auto !important;
    bottom: auto !important;
    height: 15rem !important;
    width: 100% !important;
    margin: 0.5rem 0 !important;
    overflow: hidden !important;
  }
  .stonex-candlestick-surface {
    height: 100% !important;
    width: 100% !important;
  }
  .stonex-hero-watermark {
    width: 11rem !important;
    height: 11rem !important;
    left: auto !important; /* let the bottom-right anchor below take effect */
    top: auto !important;
    right: -1rem !important;
    bottom: -1rem !important;
    opacity: 0.12 !important;
    pointer-events: none !important;
  }
  .stonex-hero-chart-dots-wrap {
    margin-top: 0.5rem !important;
    margin-bottom: 0.25rem !important;
  }
  /* Bottom button positioned below chart so it NEVER blocks K-lines */
  .stonex-hero-card-bottom-bar {
    position: static !important;
    display: flex !important;
    justify-content: center !important;
    width: 100% !important;
    margin-top: 0.85rem !important;
    margin-bottom: 0.25rem !important;
  }
  .stonex-btn-more-info {
    width: 100% !important;
    max-width: 15rem !important;
    height: 2.75rem !important;
    font-size: 0.85rem !important;
  }
  .stonex-hero-info-box {
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    transform: translateY(100%) !important;
    opacity: 0 !important;
    pointer-events: none !important;
    transition:
      transform 0.35s cubic-bezier(0.16, 1, 0.3, 1),
      opacity 0.35s ease !important;
    z-index: 20 !important;
    background: #12225c !important;
    padding: 1.5rem 1.25rem !important;
    box-sizing: border-box !important;
    overflow-y: auto !important;
    border-radius: 0rem !important;
  }
  .stonex-hero-market-card.is-expanded .stonex-hero-info-box {
    transform: translateY(0) !important;
    opacity: 1 !important;
    pointer-events: auto !important;
  }
  .stonex-hero-info-close {
    top: 1rem !important;
    right: 1rem !important;
  }
  .stonex-info-box-tag {
    font-size: 0.75rem !important;
  }
  .stonex-info-box-title {
    font-size: 1.15rem !important;
    line-height: 1.35 !important;
  }
  .stonex-info-box-desc {
    font-size: 0.85rem !important;
    line-height: 1.5 !important;
  }
  .stonex-info-box-source {
    font-size: 0.75rem !important;
  }

  /* Floating Video Widget on Mobile (Clean, Legible Vertical Card) */
  .stonex-floating-video-card {
    position: fixed !important;
    width: 14rem !important;
    height: auto !important;
    bottom: 0 !important;
    right: 1rem !important;
    border-radius: 1.5rem 1.5rem 0 0 !important;
    z-index: 9998 !important;
    display: flex !important;
    flex-direction: column !important;
    pointer-events: auto !important;
    opacity: 1 !important;
    visibility: visible !important;
    overflow: hidden !important;
    box-shadow:
      0 -4px 24px rgba(0, 0, 0, 0.5),
      inset 0px 2px 24px rgba(255, 255, 255, 0.2) !important;
  }
  .stonex-floating-video-card::before {
    border-radius: 1.5rem 1.5rem 0 0 !important;
  }
  .stonex-video-card-inner {
    position: relative !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: flex-start !important;
    width: 100% !important;
    height: auto !important;
    border-radius: 1.5rem 1.5rem 0 0 !important;
    overflow: hidden !important;
  }
  .stonex-video-thumb-container {
    position: relative !important;
    top: auto !important;
    left: auto !important;
    width: 100% !important;
    height: 7rem !important;
    border-radius: 1.5rem 1.5rem 0 0 !important;
    overflow: hidden !important;
    flex-shrink: 0 !important;
  }
  .stonex-video-thumb-img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    display: block !important;
  }
  .stonex-video-play-overlay {
    position: absolute !important;
    inset: 0 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 0 !important;
    background: linear-gradient(
      180deg,
      rgba(18, 34, 92, 0.15) 0%,
      rgba(18, 34, 92, 0.65) 100%
    ) !important;
  }
  .stonex-video-play-icon {
    width: 2rem !important;
    height: 2.35rem !important;
  }
  .stonex-floating-video-close {
    top: 0.5rem !important;
    right: 0.5rem !important;
    width: 1.65rem !important;
    height: 1.65rem !important;
    z-index: 15 !important;
  }
  .stonex-video-info-container {
    position: relative !important;
    width: 100% !important;
    padding: 0.65rem 0.85rem 0.85rem 0.85rem !important;
    box-sizing: border-box !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    background: #12225c !important;
  }
  .stonex-video-card-title {
    font-size: 0.76rem !important;
    line-height: 1.3 !important;
    margin: 0 0 0.55rem 0 !important;
    display: -webkit-box !important;
    -webkit-line-clamp: 2 !important;
    -webkit-box-orient: vertical !important;
    overflow: hidden !important;
    text-align: left !important;
    width: 100% !important;
  }
  .stonex-btn-video-watch {
    width: 100% !important;
    height: 2.15rem !important;
    font-size: 0.75rem !important;
    border-radius: 2rem !important;
    font-weight: 600 !important;
  }

  /* Sticky Tab Floating on Middle Right Edge of Screen */
  .stonex-hero-sticky-tab {
    position: fixed !important;
    top: 16% !important;
    bottom: auto !important;
    right: 0 !important;
    transform: translateY(-50%) scale(0.92) !important;
    transform-origin: right center !important;
    z-index: 9999 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: flex-end !important;
    pointer-events: auto !important;
  }
  .stonex-sticky-tab-inner {
    width: 5.6rem !important;
    height: auto !important;
    padding: 1rem 1.45rem !important;
    min-height: 5.9rem !important;
    border-radius: 1.5rem 0 0 1.5rem !important;
    box-shadow:
      -4px 8px 24px rgba(0, 0, 0, 0.45),
      inset 1px 0px 30px -10px rgba(255, 255, 255, 0.9) !important;
  }
  .stonex-sticky-tab-logo-wrap {
    width: 100% !important;
    max-width: 3.5rem !important;
    height: 1rem !important;
    margin-bottom: 0.25rem !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    overflow: hidden !important;
  }
  .stonex-sticky-tab-logo {
    width: 100% !important;
    max-width: 100% !important;
    height: auto !important;
    max-height: 100% !important;
    object-fit: contain !important;
    display: block !important;
  }
  .stonex-sticky-tab-icon-box {
    width: 2.5rem !important;
    height: 2.5rem !important;
    margin-bottom: 0.35rem !important;
  }
  .stonex-sticky-tab-icon {
    width: 100% !important;
    height: 100% !important;
    object-fit: contain !important;
    display: block !important;
  }
  .stonex-sticky-tab-text {
    font-size: 0.75rem !important;
    line-height: 1.2 !important;
    text-align: center !important;
  }

  /* Fullscreen Video Modal on Mobile */
  .stonex-video-popup__content,
  .stonex-video-popup__frame {
    width: 92% !important;
    max-width: 95vw !important;
  }
  .stonex-video-popup__close,
  .stonex-modal-close {
    top: 1rem !important;
    right: 1rem !important;
    width: 2.5rem !important;
    height: 2.5rem !important;
  }

  /* Module 2: Performing Charts (Centered active card with visible flanking peeking cards) */
  .stonex-performing-charts-section {
    min-height: auto !important;
    padding-top: 3.5rem !important;
    padding-bottom: 3.5rem !important;
    overflow: hidden !important;
  }
  .stonex-performing-charts-section .stonex-container {
    padding: 1.25rem !important;
  }
  .stonex-charts-row-container {
    height: 23rem !important;
    perspective: none !important;
    margin: 0 auto 2rem auto !important;
    width: 100% !important;
    position: relative !important;
  }
  .stonex-perf-white-card {
    width: 74vw !important;
    max-width: 19.5rem !important;
    height: 21.5rem !important;
    left: 50% !important;
    margin-left: 0 !important;
    transform: translateX(-50%) !important;
    padding: 1.5rem 1.15rem 1.15rem 1.15rem !important;
    border-radius: 1.5rem !important;
    box-shadow: 0.875rem 1.0625rem 3.15rem -0.125rem rgba(0, 0, 0, 0.25) !important; /* Figma: Drop shadow */
  }
  .stonex-perf-white-card::before {
    height: 6.25rem !important;
  }
  .stonex-perf-white-card::after {
    box-shadow: inset 0 0 2.95rem -0.375rem #ffffff !important;
  }
  .stonex-perf-pos--2,
  .stonex-perf-pos-2,
  .stonex-perf-pos--3,
  .stonex-perf-pos-3,
  .stonex-perf-pos-far-left,
  .stonex-perf-pos-far-right {
    opacity: 0 !important;
    pointer-events: none !important;
    transform: translateX(-50%) scale(0.5) !important;
  }
  /* Visible Left Peeking Card (Tightly coupled: -50% - (1 + 0.85)/2 * 100% - 0.85rem gap) */
  .stonex-perf-pos--1 {
    transform: translate3d(calc(-142.5% - 0.85rem), 0.85rem, 0) scale(0.85) !important;
    opacity: 0.65 !important;
    z-index: 2 !important;
    pointer-events: auto !important;
  }
  /* Visible Right Peeking Card (Tightly coupled: -50% + (1 + 0.85)/2 * 100% + 0.85rem gap) */
  .stonex-perf-pos-1 {
    transform: translate3d(calc(42.5% + 0.85rem), 0.85rem, 0) scale(0.85) !important;
    opacity: 0.65 !important;
    z-index: 2 !important;
    pointer-events: auto !important;
  }
  /* Active Center Card */
  .stonex-perf-pos-0 {
    transform: translateX(-50%) scale(1) !important;
    opacity: 1 !important;
    z-index: 5 !important;
    pointer-events: auto !important;
  }
  /* Entrance slot: waiting stacked behind the center card */
  .stonex-perf-pos-hidden {
    transform: translateX(-50%) scale(0.85) !important;
    opacity: 0 !important;
    z-index: 4 !important;
    pointer-events: none !important;
  }
  /* Entrance arming: center card waits transparent until the section is in view */
  .stonex-charts-row-container.stonex-entrance-armed .stonex-perf-pos-0 {
    transform: translateX(-50%) scale(0.94) !important;
    opacity: 0 !important;
  }
  .stonex-perf-card-title {
    font-size: 1.65rem !important;
    margin-bottom: 0.35rem !important;
  }
  .stonex-perf-dual-pill {
    height: 3rem !important;
    padding: 0.3rem 0.4rem !important;
  }
  .stonex-perf-pill-inner-badge {
    height: 2.4rem !important;
    font-size: 0.8rem !important;
  }
  .stonex-perf-pill-change {
    height: 2.4rem !important;
    padding: 0 0.75rem !important;
    font-size: 0.75rem !important;
  }

  /* Awards Marquee Ticker on Mobile */
  .stonex-awards-ticker-wrap,
  .stonex-awards-section,
  .stonex-marquee-container {
    min-height: auto !important;
    height: auto !important;
    padding: 0.75rem 0 !important;
  }
  .stonex-awards-group,
  .stonex-marquee-group {
    gap: 2rem !important;
  }
  .stonex-award-item {
    width: 9.5rem !important;
    height: 6.125rem !important;
  }

  /* Module 3: Markets Classification (Each card pairs image, title & description) */
  .stonex-market-classification-section {
    min-height: auto !important;
    padding-top: 3rem !important;
    padding-bottom: 3.5rem !important;
    display: block !important;
  }
  .stonex-asset-stage-top {
    padding: 0 !important;
    background: none !important;
  }
  .stonex-asset-stage-top .stonex-asset-icons-row,
  .stonex-asset-stage-top .stonex-asset-stage-glow {
    display: none !important;
  }
  .stonex-asset-stage-title {
    font-size: 1.75rem !important;
    line-height: 1.25 !important;
    margin: 0 0 1.75rem 0 !important;
  }
  .stonex-asset-shelf-bottom {
    padding: 0 !important;
    background: transparent !important;
  }
  .stonex-asset-shelf-row {
    display: flex !important;
    flex-direction: column !important;
    gap: 1rem !important;
    width: 100% !important;
    max-width: 100% !important;
  }
  .stonex-asset-shelf-col {
    width: 100% !important;
    padding: 1.25rem !important;
    box-sizing: border-box !important;
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    justify-content: flex-start !important;
    gap: 1.25rem !important;
    background: rgba(255, 255, 255, 0.05) !important;
    border: 1px solid rgba(255, 255, 255, 0.12) !important;
    border-radius: 1.25rem !important;
    backdrop-filter: blur(12px) !important;
    -webkit-backdrop-filter: blur(12px) !important;
    text-align: left !important;
  }
  .stonex-asset-shelf-divider {
    display: none !important;
  }
  .stonex-asset-card-icon-wrap {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 4.5rem !important;
    height: 4.5rem !important;
    flex-shrink: 0 !important;
  }
  .stonex-asset-card-icon {
    max-width: 100% !important;
    max-height: 100% !important;
    object-fit: contain !important;
    filter: drop-shadow(0 8px 16px rgba(0, 15, 50, 0.5)) !important;
  }
  .stonex-asset-card-text {
    display: flex !important;
    flex-direction: column !important;
    align-items: flex-start !important;
    text-align: left !important;
    flex: 1 !important;
  }
  .stonex-asset-name {
    font-size: 1.25rem !important; /* 20px */
    margin: 0 0 0.35rem 0 !important;
    text-align: left !important;
  }
  .stonex-asset-desc {
    font-size: 0.8125rem !important; /* 13px */
    line-height: 1.45 !important;
    margin: 0 !important;
    text-align: left !important;
    color: #cbd5e1 !important;
    max-width: 100% !important;
    padding: 0px;
  }
  .stonex-market-classification-cta-wrap {
    margin-top: 2rem !important;
    display: flex !important;
    justify-content: center !important;
    width: 100% !important;
  }

  /* Module 4: Hand & Cards Mobile Responsive (95% size) */
  .stonex-why-subtitle {
    font-family: var(--stonex-font-body);
    font-size: 1.25rem !important;
    font-weight: 400;
    color: #12225c;
    max-width: 63rem;
    margin: 0 auto 1.6rem auto;
    line-height: 1.45;
    text-align: center;
    min-height: 12.7rem !important;
  }
  .stonex-hand-stage-v2 {
    height: 30.4rem !important;
    margin-top: 0 !important;
  }
  .stonex-hand-back-wrap,
  .stonex-hand-front-wrap {
    width: 23.75rem !important;
    height: 34.5rem !important;
    top: 8.55rem !important;
    left: calc(50% - 8.34rem) !important;
    overflow: visible !important;
  }
  .stonex-hand-back-img,
  .stonex-hand-front-img {
    width: 100% !important;
    height: 100% !important;
    max-width: 100% !important;
    object-fit: fill !important;
    display: block !important;
  }
  .stonex-hand-cards-track {
    top: 0.95rem !important;
    height: 15.2rem !important;
    gap: 3.32rem !important;
  }
  .stonex-hand-card {
    width: 9.98rem !important;
    height: 11.4rem !important;
    padding: 1.9rem 0.7rem !important;
    transform: scale(1) !important;
  }
  .stonex-hand-card.stonex-hand-card-center,
  .stonex-hand-card.is-active {
    transform: scale(1.333) !important;
    z-index: 25 !important;
  }
  .stonex-hand-card-title {
    font-size: 0.71rem !important;
  }
  .stonex-hand-card-icon-wrap {
    width: 3.8rem !important;
    height: 3.8rem !important;
  }
  .stonex-hand-cta-wrap {
    top: 20.9rem !important;
    left: 50% !important;
    transform: translateX(-50%) !important;
    width: 100% !important;
    display: flex !important;
    justify-content: center !important;
    padding: 0 1.25rem !important;
    box-sizing: border-box !important;
  }
  .stonex-hand-cta-wrap .stonex-btn-green-pill,
  .stonex-why-trade-v2-section .stonex-btn-green-pill {
    width: auto !important;
    min-width: 13.8rem !important;
    max-width: 17.1rem !important;
    height: 3.05rem !important;
    padding: 0 1.65rem !important;
    font-size: 0.9rem !important;
  }

  /* Module 5: Account Types & Active Trader VIP (Centered purple card + left/right peeking cards + no shadow overflow) */
  .stonex-pricing-section {
    min-height: auto !important;
    padding-top: 5.5rem !important;
    padding-bottom: 3.5rem !important;
    box-shadow: none !important;
    overflow: hidden !important;
  }
  .stonex-pricing-section .stonex-container {
    padding-left: 0 !important;
    padding-right: 0 !important;
    max-width: 100% !important;
  }
  .stonex-pricing-section .stonex-section-title {
    font-size: 1.75rem !important;
    line-height: 1.25 !important;
    margin-bottom: 1rem !important;
    padding-left: 1.25rem !important;
    padding-right: 1.25rem !important;
  }
  .stonex-pricing-hand-shadow {
    display: none !important;
  }
  .stonex-accounts-grid {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    justify-content: flex-start !important;
    align-items: stretch !important;
    overflow-x: auto !important;
    scroll-snap-type: x mandatory !important;
    -webkit-overflow-scrolling: touch !important;
    gap: 0.85rem !important;
    padding: 1.5rem 3.25rem 1.5rem 3.25rem !important;
    margin: 0 !important;
    width: 100% !important;
    box-sizing: border-box !important;
    scrollbar-width: none !important;
  }
  .stonex-accounts-grid::-webkit-scrollbar {
    display: none !important;
  }
  /* Mobile-only carousel arrows below the account cards.
     Each arrow sits inside its own circular border. */
  .stonex-accounts-nav {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1.25rem;
    margin: 0.25rem 0 1.5rem 0;
  }
  .stonex-accounts-nav-btn {
    width: 3rem;
    height: 3rem;
    padding: 0;
    border: 1.5px solid rgba(255, 255, 255, 0.72);
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.08);
    color: #ffffff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition:
      background 0.25s ease,
      opacity 0.25s ease,
      transform 0.2s ease;
    -webkit-tap-highlight-color: transparent;
  }
  .stonex-accounts-nav-btn:hover,
  .stonex-accounts-nav-btn:focus-visible {
    background: rgba(255, 255, 255, 0.2);
  }
  .stonex-accounts-nav-btn:active {
    transform: scale(0.94);
  }
  .stonex-accounts-nav-btn[disabled] {
    opacity: 0.35;
    cursor: default;
  }
  /* Uniform size & tight box-shadows without overflow */
  .stonex-account-card,
  .stonex-account-card.is-featured-pro {
    width: 76vw !important;
    max-width: 18rem !important;
    height: 27rem !important;
    min-height: 25rem !important;
    margin-top: 0 !important;
    flex-shrink: 0 !important;
    scroll-snap-align: center !important;
    padding: 1.5rem 1.25rem 1.35rem 1.25rem !important;
    box-sizing: border-box !important;
    border-radius: 1.25rem !important;
    box-shadow:
      inset 0px 0px 32px 6px rgba(99, 192, 235, 0.35),
      inset 0px 0px 16px -4px rgba(255, 255, 255, 0.4) !important;
  }
  .stonex-account-card.is-featured-pro {
    background: linear-gradient(180deg, #381d64 0%, #7346b7 100%) !important;
    box-shadow: none !important;
  }
  .stonex-account-name,
  .stonex-account-card.is-featured-pro .stonex-account-name {
    font-size: 1.25rem !important;
    line-height: 1.25 !important;
    margin: 0 0 0.35rem 0 !important;
    letter-spacing: 0.02em !important;
  }
  .stonex-account-subtitle,
  .stonex-account-card.is-featured-pro .stonex-account-subtitle {
    font-size: 0.8rem !important;
    margin: 0 0 0.75rem 0 !important;
    line-height: 1.4 !important;
  }
  .stonex-account-features,
  .stonex-account-card.is-featured-pro .stonex-account-features {
    gap: 0.55rem !important;
    margin: 0 0 1.25rem 0 !important;
  }
  .stonex-account-feature-item,
  .stonex-account-card.is-featured-pro .stonex-account-feature-item {
    font-size: 0.8rem !important;
    line-height: 1.35 !important;
  }
  .stonex-btn-account,
  .stonex-account-card.is-featured-pro .stonex-btn-account {
    height: 2.75rem !important;
    font-size: 0.85rem !important;
  }

  /* VIP Banner with NO border-radius */
  .stonex-vip-sg-banner {
    min-height: auto !important;
    padding: 2.25rem 1.25rem !important;
    margin: 0 !important;
    width: 100% !important;
    border-radius: 0 !important;
    box-sizing: border-box !important;
  }
  .stonex-vip-sg-banner-content {
    flex-direction: column !important;
    align-items: center !important;
    text-align: center !important;
    gap: 1.25rem !important;
    padding: 0 !important;
    max-width: 100% !important;
  }
  .stonex-vip-logo-col {
    width: 100% !important;
    align-items: center !important;
    justify-content: center !important;
    text-align: center !important;
  }
  .stonex-vip-icon {
    width: auto !important;
    height: 3rem !important;
    margin: 0 0 0.6rem 0 !important;
  }
  .stonex-vip-btn-note {
    text-align: center !important;
    margin: 0.6rem 0 0 0 !important;
  }
  .stonex-vip-title {
    font-size: 1.875rem !important;
    text-align: center;
    line-height: 0.5 !important;
    text-align: center !important;
    white-space: pre-line !important;
    word-break: break-word !important;
  }
  .stonex-vip-logo-img {
    width: 100% !important;
    max-width: 15rem !important;
    height: auto !important;
  }
  .stonex-vip-action-col {
    width: 100% !important;
    align-items: center !important;
    text-align: center !important;
  }
  .stonex-vip-desc {
    font-size: 0.95rem !important;
    line-height: 1.5 !important;
    text-align: center !important;
    margin: 0 0 1.25rem 0 !important;
  }
  .stonex-btn-vip-white {
    width: 100% !important;
    max-width: 15rem !important;
    height: 2.85rem !important;
    font-size: 0.95rem !important;
  }

  /* Module 5 Step Process Bar (Mobile: Clean 2-Row Balanced Layout with 3.25rem side margins) */
  .stonex-pricing-steps-bar {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: wrap !important;
    align-items: flex-start !important;
    justify-content: space-between !important;
    height: auto !important;
    min-height: auto !important;
    border-radius: 1.25rem !important;
    padding: 1.25rem 0.75rem 1.15rem 0.75rem !important;
    gap: 0 !important;
    width: calc(100% - 6.5rem) !important;
    max-width: calc(100% - 6.5rem) !important;
    margin: 0 3.25rem !important;
    box-sizing: border-box !important;
  }
  .stonex-pricing-step-item {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: flex-start !important;
    text-align: center !important;
    width: auto !important;
    flex: 0 0 auto !important;
    gap: 0.35rem !important;
    z-index: 3;
  }
  .stonex-pricing-step-num {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 1.85rem !important;
    height: 1.85rem !important;
    border-radius: 50% !important;
    font-size: 0.95rem !important;
    font-weight: 700 !important;
    background: linear-gradient(180deg, #1abb63 0%, #076933 100%) !important;
    color: #ffffff !important;
    flex-shrink: 0 !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25) !important;
  }
  .stonex-pricing-step-text {
    font-size: 1rem !important;
    font-weight: 600 !important;
    line-height: 1.2 !important;
    color: #ffffff !important;
    white-space: nowrap !important;
    text-align: center !important;
    transform-origin: center top !important;
  }
  .stonex-pricing-step-divider {
    flex: 1 1 0 !important;
    width: auto !important;
    min-width: 0.5rem !important;
    height: 1px !important;
    background: rgba(255, 255, 255, 0.35) !important;
    margin: 0.925rem 0.35rem 0 0.35rem !important;
    align-self: flex-start !important;
    border-radius: 0.5px !important;
    z-index: 2;
  }
  .stonex-pricing-step-cta {
    width: 100% !important;
    flex-basis: 100% !important;
    margin-left: 0 !important;
    margin-top: 1rem !important;
    z-index: 3;
  }
  .stonex-pricing-step-btn {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 100% !important;
    max-width: 28rem !important;
    margin: 0 auto !important;
    height: 2.75rem !important;
    font-size: 0.85rem !important;
    font-weight: 700 !important;
    letter-spacing: 0.04em !important;
    border-radius: 9999px !important;
    background: linear-gradient(180deg, #1abb63 0%, #076933 100%) !important;
    color: #ffffff !important;
    box-shadow: 0 4px 16px rgba(26, 187, 99, 0.35) !important;
  }

  @media (max-width: 360px) {
    .stonex-pricing-steps-bar {
      padding: 1rem 0.5rem 0.95rem 0.5rem !important;
    }
    .stonex-pricing-step-num {
      width: 1.65rem !important;
      height: 1.65rem !important;
      font-size: 0.85rem !important;
    }
    .stonex-pricing-step-text {
      font-size: 0.64rem !important;
    }
    .stonex-pricing-step-divider {
      margin: 0.825rem 0.2rem 0 0.2rem !important;
    }
  }

  /* Module 6: Simple Steps */
  .stonex-steps-section {
    min-height: auto !important;
    padding-top: 3.5rem !important;
    padding-bottom: 3.5rem !important;
  }
  .stonex-steps-grid {
    grid-template-columns: 1fr !important;
    gap: 1.75rem !important;
  }
  .stonex-step-item {
    width: 100% !important;
    max-width: 22rem !important;
    margin: 0 auto !important;
  }
  .stonex-footer-nav-grid {
    grid-template-columns: 1fr !important;
  }
  .stonex-footer-disclaimer-text {
    font-size: 0.85rem !important;
    line-height: 1.5 !important;
    text-align: left !important;
  }
  .stonex-vip-banner {
    min-height: auto !important;
    padding: 2.25rem 1.25rem !important;
    margin: 0 !important;
    width: 100% !important;
    border-radius: 0 !important;
    box-sizing: border-box !important;
  }
  .stonex-vip-banner-content {
    flex-direction: column !important;
    align-items: center !important;
    text-align: center !important;
    gap: 1.25rem !important;
    padding: 0 !important;
    max-width: 100% !important;
  }
  .stonex-vip-logo-col {
    width: 100% !important;
    align-items: center !important;
    justify-content: center !important;
    text-align: center !important;
  }
  .stonex-vip-icon {
    width: auto !important;
    height: 3rem !important;
    margin: 0 0 0.6rem 0 !important;
  }
  .stonex-vip-btn-note {
    text-align: center !important;
    margin: 0.6rem 0 0 0 !important;
  }
  .stonex-vip-title {
    font-size: 1.875rem !important;
    line-height: 0.5 !important;
    text-align: center !important;
    white-space: pre-line !important;
    word-break: break-word !important;
  }
  .stonex-vip-logo-img {
    width: 100% !important;
    max-width: 15rem !important;
    height: auto !important;
  }
  .stonex-vip-action-col {
    width: 100% !important;
    align-items: center !important;
    text-align: center !important;
  }
  .stonex-vip-desc {
    font-size: 0.95rem !important;
    line-height: 1.5 !important;
    text-align: center !important;
    margin: 0 0 1.25rem 0 !important;
  }
  .stonex-btn-vip-white {
    width: 100% !important;
    max-width: 15rem !important;
    height: 2.85rem !important;
    font-size: 0.95rem !important;
  }
}

/* --------------------------------------------------------------------------
   Ultra-wide screens (2K / 2560px and above)
   1rem is frozen at 16px past 1920px, so every extra pixel of viewport width
   used to pile up as dead space between the Module 1 copy column and the white
   card. Cap the container at the 1920px composition and centre it instead.
   -------------------------------------------------------------------------- */
@media (min-width: 1921px) {
  .stonex-hero-masthead .stonex-container {
    max-width: 120rem; /* 1920px reference canvas */
    margin-left: auto;
    margin-right: auto;
  }
  /* Keep the floating logo aligned with the centred canvas rather than the viewport edge */
  .stonex-hero-top-left-logo {
    left: calc((100vw - 120rem) / 2 + 4.5rem) !important;
  }
}
