/* =========================================================
   RobotTrade — Landing Page (full redesign)
   ========================================================= */

/* ─── Page shell ───────────────────────────────────────── */
/*
 * Use overflow-x: clip (not nested overflow-x: hidden) so we don't
 * create extra scroll containers that kill momentum scrolling on mobile.
 */
.lp-page {
  overflow-x: hidden;
  overflow-x: clip;
  max-width: 100%;
}

.lp-page main,
#main-content {
  max-width: 100%;
}

.lp-section {
  position: relative;
  padding: 5.5rem 0;
}

/* Scroll reveal — light, cheap, no blur (blur janks scroll) */
.lp-reveal {
  opacity: 0;
  transform: translateY(18px);
  transition:
    opacity 0.55s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.55s cubic-bezier(0.22, 1, 0.36, 1);
}

.lp-reveal.is-visible {
  opacity: 1;
  transform: none;
}

.lp-reveal-delay-1 { transition-delay: 0.06s; }
.lp-reveal-delay-2 { transition-delay: 0.12s; }
.lp-reveal-delay-3 { transition-delay: 0.18s; }

@media (max-width: 768px) {
  .lp-reveal {
    transform: translateY(12px);
    transition-duration: 0.4s;
  }

  .lp-reveal-delay-1,
  .lp-reveal-delay-2,
  .lp-reveal-delay-3 {
    transition-delay: 0s;
  }
}

@media (prefers-reduced-motion: reduce) {
  .lp-reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

.lp-section--dark {
  background: linear-gradient(180deg, var(--void) 0%, rgba(12, 16, 28, 1) 100%);
}

.lp-section--glow::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: min(900px, 90vw);
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(201, 162, 39, 0.35), transparent);
}

.lp-section-head {
  max-width: 640px;
  margin: 0 auto 3.5rem;
  text-align: center;
}

.lp-section-head h2,
.lp-section-head .display-lg {
  text-align: center;
  margin: 0.75rem 0 0;
}

.lp-section-head p {
  color: var(--slate);
  font-size: 1.05rem;
  line-height: 1.75;
  margin: 1rem 0 0;
}

.lp-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.35rem 0.85rem;
  border-radius: 999px;
  background: rgba(201, 162, 39, 0.08);
  border: 1px solid rgba(201, 162, 39, 0.2);
  color: var(--gold);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

/* ─── Mega Hero ────────────────────────────────────────── */
.mega-hero {
  position: relative;
  min-height: calc(100vh - 68px);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.mega-hero > .container {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: relative;
  z-index: 2;
}

.mega-hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
}

.mega-hero-bg img,
.mega-hero-bg .mega-hero-bg-slide {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  opacity: 0;
  transition: opacity 0.8s ease;
}

.mega-hero-bg img.active,
.mega-hero-bg .mega-hero-bg-slide.active {
  opacity: 0.92;
}

/* Single legacy img without .active still visible */
.mega-hero-bg > img:only-child {
  opacity: 0.92;
}

.mega-hero-bg::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(105deg, rgba(8, 12, 24, 0.55) 0%, rgba(8, 12, 24, 0.22) 45%, rgba(8, 12, 24, 0.12) 72%, rgba(8, 12, 24, 0.35) 100%),
    linear-gradient(180deg, rgba(8, 12, 24, 0.12) 0%, rgba(8, 12, 24, 0.35) 72%, var(--void) 100%);
  z-index: 1;
  pointer-events: none;
}

.mega-hero-grid {
  flex: 1;
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
  align-items: center;
  padding: 3rem 0 2rem;
}

.mega-hero-panels {
  display: grid;
  align-items: start;
  min-height: 0;
}

.mega-hero-panel {
  grid-area: 1 / 1;
  position: relative;
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
  transition: opacity 0.45s ease, transform 0.45s ease, visibility 0.45s ease;
  pointer-events: none;
  display: flex;
  flex-direction: column;
  justify-content: center;
  width: 100%;
  z-index: 0;
}

.mega-hero-panel.active {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  pointer-events: auto;
  z-index: 1;
}

.mega-hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.35rem 0.85rem;
  border-radius: 999px;
  background: rgba(201, 162, 39, 0.1);
  border: 1px solid rgba(201, 162, 39, 0.25);
  color: var(--gold);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 1.25rem;
  width: fit-content;
}

.mega-hero-eyebrow .pulse {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--gold);
  animation: lp-pulse 2s ease infinite;
}

@keyframes lp-pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(1.4); }
}

.mega-hero-title {
  font-family: var(--font-heading, 'Sora', sans-serif);
  font-weight: 800;
  font-size: clamp(2rem, 4.5vw, 3.25rem);
  line-height: 1.12;
  margin: 0 0 1rem;
  color: var(--ice);
}

.mega-hero-prize {
  font-size: clamp(2.8rem, 7vw, 5rem);
  font-weight: 800;
  line-height: 1;
  margin: 0 0 0.5rem;
  background: linear-gradient(135deg, #f5d76e, #c9a227, #a8871a);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.mega-hero-desc {
  color: var(--slate);
  font-size: 1.05rem;
  line-height: 1.75;
  max-width: 520px;
  margin: 0 0 1.5rem;
}

.mega-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 2rem;
}

.mega-hero-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  max-width: 420px;
}

.mega-hero-stat {
  padding: 0.85rem 1rem;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--glass-border);
  border-radius: 12px;
  backdrop-filter: blur(12px);
}

.mega-hero-stat .val {
  font-family: 'JetBrains Mono', monospace;
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--ice);
}

.mega-hero-stat .lbl {
  font-size: 0.72rem;
  color: var(--slate);
  margin-top: 0.2rem;
}

.mega-hero-controls {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-top: 1.5rem;
}

.mega-hero-dots { display: flex; gap: 0.45rem; }

.mega-hero-dots button {
  width: 32px;
  height: 4px;
  border-radius: 2px;
  border: none;
  background: rgba(255, 255, 255, 0.15);
  cursor: pointer;
  transition: 0.25s;
  padding: 0;
}

.mega-hero-dots button.active {
  background: var(--gold);
  width: 48px;
}

.mega-hero-visual,
.mega-hero-visual-frame,
.mega-hero-visual-glow,
.mega-hero-visual-frame img {
  display: none !important;
  visibility: hidden !important;
  width: 0 !important;
  height: 0 !important;
  max-width: 0 !important;
  max-height: 0 !important;
  overflow: hidden !important;
  pointer-events: none !important;
  opacity: 0 !important;
  position: absolute !important;
  left: -9999px !important;
}

.hero-ticker {
  position: relative;
  z-index: 2;
  margin-top: auto;
  margin-inline: 1.25rem;
  margin-bottom: 1rem;
  max-width: calc(100% - 2.5rem);
  border: 1px solid rgba(201, 162, 39, 0.18);
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(8, 12, 24, 0.55) 0%, rgba(8, 12, 24, 0.92) 100%);
  backdrop-filter: blur(14px);
  overflow: hidden;
  padding: 0.95rem 0;
  box-shadow: 0 10px 36px rgba(0, 0, 0, 0.28), inset 0 1px 0 rgba(255, 255, 255, 0.04);
  /* Isolate marquee from page RTL so the track always fills L→R without a dead gap */
  direction: ltr;
  unicode-bidi: isolate;
  min-height: 4.25rem;
}

.hero-ticker-fade {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 4.5rem;
  z-index: 3;
  pointer-events: none;
}

.hero-ticker-fade--start {
  left: 0;
  right: auto;
  background: linear-gradient(to right, rgba(8, 12, 24, 0.98) 0%, rgba(8, 12, 24, 0.55) 55%, transparent 100%);
}

.hero-ticker-fade--end {
  right: 0;
  left: auto;
  background: linear-gradient(to left, rgba(8, 12, 24, 0.98) 0%, rgba(8, 12, 24, 0.55) 55%, transparent 100%);
}

html[dir="rtl"] .hero-ticker-fade--start,
html[dir="rtl"] .hero-ticker-fade--end {
  /* no-op: ticker is LTR-isolated; physical left/right fades already apply */
}

.hero-ticker-shine {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: linear-gradient(
    105deg,
    transparent 35%,
    rgba(201, 162, 39, 0.07) 48%,
    rgba(255, 255, 255, 0.08) 50%,
    rgba(201, 162, 39, 0.07) 52%,
    transparent 65%
  );
  background-size: 220% 100%;
  animation: lp-ticker-shine 5.5s ease-in-out infinite;
  mix-blend-mode: soft-light;
}

@keyframes lp-ticker-shine {
  0% { background-position: 120% 0; opacity: 0.35; }
  40% { opacity: 0.85; }
  100% { background-position: -120% 0; opacity: 0.35; }
}

.hero-ticker-track {
  display: flex;
  align-items: center;
  width: max-content;
  white-space: nowrap;
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  z-index: 0;
  direction: ltr;
  animation: lp-ticker-seamless var(--ticker-duration, 36s) linear infinite;
}

.hero-ticker.is-paused .hero-ticker-track,
.hero-ticker.is-offscreen .hero-ticker-track {
  animation-play-state: paused;
}

.hero-ticker-group {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding-inline: 0.45rem;
  flex-shrink: 0;
  direction: ltr;
}

.hero-ticker:hover .hero-ticker-track {
  animation-play-state: paused;
}

.hero-ticker:hover .hero-ticker-shine {
  animation-play-state: paused;
}

@media (prefers-reduced-motion: reduce) {
  .hero-ticker-track {
    animation-duration: var(--ticker-duration, 48s) !important;
    animation-iteration-count: infinite !important;
  }
  .hero-ticker:hover .hero-ticker-track,
  .hero-ticker:hover .hero-ticker-shine {
    animation-play-state: running;
  }
  .hero-ticker-shine {
    animation-duration: 8s;
  }
}

@keyframes lp-ticker-seamless {
  0% { transform: translate3d(0, 0, 0); }
  100% { transform: translate3d(var(--ticker-distance, -50%), 0, 0); }
}

.hero-ticker-item {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.55rem 1.05rem;
  border-radius: 14px;
  border: 1px solid rgba(201, 162, 39, 0.28);
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.07) 0%, rgba(255, 255, 255, 0.02) 100%),
    rgba(12, 18, 32, 0.55);
  box-shadow:
    0 0 0 1px rgba(201, 162, 39, 0.06),
    0 6px 18px rgba(0, 0, 0, 0.22),
    0 0 22px rgba(201, 162, 39, 0.08);
  color: rgba(226, 232, 240, 0.92);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  backdrop-filter: blur(10px);
  transition: border-color 0.25s ease, box-shadow 0.25s ease, transform 0.25s ease;
  animation: lp-ticker-item-glow 3.6s ease-in-out infinite;
  flex-shrink: 0;
}

html[dir="rtl"] .hero-ticker-item {
  flex-direction: row-reverse;
}
html[dir="rtl"] .hero-ticker-label {
  direction: rtl;
  unicode-bidi: plaintext;
}

.hero-ticker-item:nth-child(2n) { animation-delay: 0.6s; }
.hero-ticker-item:nth-child(3n) { animation-delay: 1.2s; }
.hero-ticker-item:nth-child(4n) { animation-delay: 1.8s; }

@keyframes lp-ticker-item-glow {
  0%, 100% {
    box-shadow:
      0 0 0 1px rgba(201, 162, 39, 0.06),
      0 6px 18px rgba(0, 0, 0, 0.22),
      0 0 16px rgba(201, 162, 39, 0.05);
  }
  50% {
    box-shadow:
      0 0 0 1px rgba(201, 162, 39, 0.14),
      0 8px 22px rgba(0, 0, 0, 0.28),
      0 0 28px rgba(201, 162, 39, 0.22);
    border-color: rgba(201, 162, 39, 0.45);
  }
}

.hero-ticker:hover .hero-ticker-item {
  animation-play-state: paused;
}

.hero-ticker-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.65rem;
  height: 1.65rem;
  border-radius: 10px;
  background: linear-gradient(145deg, rgba(201, 162, 39, 0.28), rgba(201, 162, 39, 0.1));
  border: 1px solid rgba(201, 162, 39, 0.35);
  color: var(--gold);
  flex-shrink: 0;
  box-shadow: 0 0 12px rgba(201, 162, 39, 0.2);
}

.hero-ticker-icon i {
  font-size: 0.72rem;
}

.hero-ticker-label {
  line-height: 1.2;
}

/* ─── Live stats strip ─────────────────────────────────── */
.lp-stats {
  padding: 3rem 0 0;
  margin-top: 0;
  position: relative;
  z-index: 1;
}

.lp-stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  padding: 0 0 3rem;
}

.lp-stat-card {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 1rem;
  padding: 1.35rem 1.5rem;
  background: rgba(15, 21, 32, 0.9);
  border: 1px solid var(--glass-border);
  border-radius: 16px;
  backdrop-filter: blur(16px);
  transition: transform 0.25s, border-color 0.25s, box-shadow 0.25s;
  text-align: start;
}

.lp-stat-card:hover {
  transform: translateY(-4px);
  border-color: rgba(201, 162, 39, 0.25);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.25);
}

.lp-stat-body {
  flex: 1;
  min-width: 0;
  text-align: start;
}

.lp-stat-icon {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 1.1rem;
  order: 0;
}

.lp-stat-icon.gold { background: rgba(201, 162, 39, 0.12); color: var(--gold); }
.lp-stat-icon.emerald { background: rgba(16, 185, 129, 0.12); color: #10b981; }
.lp-stat-icon.blue { background: rgba(59, 130, 246, 0.12); color: #60a5fa; }
.lp-stat-icon.purple { background: rgba(139, 92, 246, 0.12); color: #8b5cf6; }

.lp-stat-num {
  font-family: 'JetBrains Mono', monospace;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--ice);
  line-height: 1.1;
}

.lp-stat-num span { color: var(--gold); }

.lp-stat-label {
  font-size: 0.78rem;
  color: var(--slate);
  margin-top: 0.15rem;
}

/* ─── Plans showcase ───────────────────────────────────── */
.lp-plans {
  background:
    radial-gradient(ellipse 70% 50% at 50% 0%, rgba(201, 162, 39, 0.06) 0%, transparent 60%),
    var(--void);
  /* Do not clip carousel arrows — viewport handles card overflow */
  overflow-x: visible;
  max-width: 100%;
}

.lp-plans > .container {
  overflow: visible;
}

.lp-plans-showcase {
  position: relative;
  overflow: visible;
  max-width: 100%;
}

.lp-plans-showcase .rt-plans-grid {
  gap: 1.5rem;
}

.lp-plans-grid-static {
  justify-content: center;
  max-width: 920px;
  margin-inline: auto;
}

/* Plans carousel — finite snap, bounded navigation */
.lp-plans-orbit {
  position: relative;
  width: 100%;
  max-width: 100%;
  margin-inline: 0;
  padding: 0.5rem 0 0.25rem;
  --plans-card-w: 300px;
  --plans-gap: 1.35rem;
  --plans-arrow-size: 48px;
  overflow: visible;
}

.lp-plans-orbit-glow {
  position: absolute;
  left: 50%;
  top: 42%;
  width: min(70%, 720px);
  height: 55%;
  transform: translate(-50%, -50%);
  background:
    radial-gradient(ellipse at center, rgba(201, 162, 39, 0.14) 0%, transparent 68%),
    radial-gradient(ellipse at 30% 60%, rgba(16, 185, 129, 0.08) 0%, transparent 55%);
  pointer-events: none;
  z-index: 0;
  filter: blur(2px);
}

.lp-plans-orbit-row {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 0.85rem;
  width: 100%;
  max-width: 100%;
  /* Keep arrow order stable; track/viewport handle content direction */
  direction: ltr;
  unicode-bidi: isolate;
  overflow: visible;
  box-sizing: border-box;
}

.lp-plans-orbit-row .lp-carousel-nav {
  position: relative;
  top: auto;
  left: auto;
  right: auto;
  transform: none;
  flex: 0 0 var(--plans-arrow-size);
  width: var(--plans-arrow-size);
  height: var(--plans-arrow-size);
  min-width: var(--plans-arrow-size);
  border-radius: 50%;
  border: 1px solid rgba(201, 162, 39, 0.45);
  background: rgba(15, 21, 32, 0.94);
  color: var(--gold, #c9a227);
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.4);
  transition: border-color 0.2s, background 0.2s, color 0.2s;
  pointer-events: auto !important;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
  align-self: center;
  z-index: 12;
}

.lp-plans-orbit-row .lp-carousel-nav:hover,
.lp-plans-orbit-row .lp-carousel-nav:focus-visible {
  border-color: var(--gold);
  color: var(--gold);
  background: rgba(15, 21, 32, 0.98);
  outline: none;
}

.lp-plans-orbit-row .lp-carousel-prev,
.lp-plans-orbit-row .lp-carousel-next {
  left: auto;
  right: auto;
}

[data-theme="light"] .lp-plans-orbit-row .lp-carousel-nav {
  background: rgba(255, 255, 255, 0.96);
  color: #0f172a;
  border-color: rgba(15, 23, 42, 0.16);
  box-shadow: 0 8px 22px rgba(15, 23, 42, 0.14);
}

.lp-plans-orbit-viewport {
  position: relative;
  z-index: 1;
  flex: 1 1 auto;
  width: auto;
  min-width: 0;
  overflow-x: scroll;
  overflow-y: hidden;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  overscroll-behavior-x: contain;
  padding: 1.35rem 0 1.85rem;
  max-width: 100%;
  box-sizing: border-box;
  unicode-bidi: isolate;
  cursor: grab;
  touch-action: pan-x pan-y;
  scroll-snap-type: x mandatory;
  scroll-padding-inline: 0;
  --plans-edge: clamp(0.75rem, 3vw, 1.5rem);
}
.lp-plans-orbit-viewport::-webkit-scrollbar {
  display: none;
}
html[dir="rtl"] .lp-plans-orbit-viewport {
  direction: rtl;
}
html[dir="ltr"] .lp-plans-orbit-viewport,
html:not([dir]) .lp-plans-orbit-viewport {
  direction: ltr;
}
html[dir="rtl"] .lp-plans-orbit-row {
  direction: rtl;
}

.lp-plans-orbit-viewport.is-dragging {
  cursor: grabbing;
  scroll-behavior: auto;
  scroll-snap-type: none;
  touch-action: none;
  -webkit-user-select: none;
  user-select: none;
}

.lp-plans-orbit-viewport.is-dragging,
.lp-plans-orbit-viewport.is-dragging * {
  touch-action: none;
}

.lp-plans-orbit.is-orbiting .lp-plans-orbit-viewport {
  overflow-x: scroll;
  overflow-y: hidden;
}

.lp-plans-orbit-fade {
  position: absolute;
  top: 0;
  bottom: 0;
  width: var(--plans-edge);
  z-index: 3;
  pointer-events: none;
}

.lp-plans-orbit-fade--start {
  left: 0;
  background: linear-gradient(to right, var(--void) 0%, transparent 100%);
}

.lp-plans-orbit-fade--end {
  right: 0;
  background: linear-gradient(to left, var(--void) 0%, transparent 100%);
}

html[dir="rtl"] .lp-plans-orbit-fade--start {
  left: auto;
  right: 0;
  background: linear-gradient(to left, var(--void) 0%, transparent 100%);
}

html[dir="rtl"] .lp-plans-orbit-fade--end {
  right: auto;
  left: 0;
  background: linear-gradient(to right, var(--void) 0%, transparent 100%);
}

.lp-plans-orbit-group {
  display: flex;
  align-items: stretch;
  gap: var(--carousel-gap-active, var(--plans-gap, 1.35rem));
  padding-inline: 0;
  flex-shrink: 0;
  width: max-content;
  flex-wrap: nowrap;
}

.lp-plans-orbit-group > .rt-plan-card {
  flex-shrink: 0;
}

.lp-plans-orbit.is-carousel-static .lp-carousel-nav {
  opacity: 0.32;
  pointer-events: none;
  cursor: not-allowed;
}

.lp-plans-orbit-row .lp-carousel-nav.is-disabled,
.lp-plans-orbit-row .lp-carousel-nav:disabled {
  opacity: 0.32;
  pointer-events: none;
  cursor: not-allowed;
  box-shadow: none;
}

.lp-plans-orbit.is-at-start .lp-plans-orbit-fade--start,
.lp-plans-orbit.is-at-end .lp-plans-orbit-fade--end {
  opacity: 0;
}

.lp-plans-orbit .rt-plan-card {
  min-height: 100%;
  transform: translateZ(0);
  transition: box-shadow 0.35s ease, border-color 0.35s ease;
}

/* Keep slide width exact inside carousel (no scale overflow) */
.lp-plans-orbit .rt-plan-card.is-popular {
  transform: translateZ(0);
}

@media (hover: hover) and (pointer: fine) {
  .lp-plans-orbit .rt-plan-card:hover,
  .lp-plans-orbit .rt-plan-card:focus-within {
    transform: translateY(-6px);
    z-index: 2;
  }

  .lp-plans-orbit .rt-plan-card.is-popular:hover,
  .lp-plans-orbit .rt-plan-card.is-popular:focus-within {
    transform: translateY(-6px);
  }
}

.lp-plans-orbit-hint {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  margin: 0.15rem 0 0;
  color: var(--slate);
  font-size: 0.78rem;
  opacity: 0.55;
  transition: opacity 0.3s ease;
  direction: inherit;
}

.lp-plans-orbit-hint i {
  font-size: 0.7rem;
  color: var(--gold);
}

.lp-plans-orbit.is-orbiting.is-paused .lp-plans-orbit-hint {
  opacity: 0.9;
}

@media (max-width: 640px) {
  .lp-plans-orbit {
    --plans-arrow-size: 40px;
  }

  .lp-plans-showcase {
    width: 100vw;
    max-width: 100vw;
    margin-inline: calc(50% - 50vw);
    padding-left: max(0.65rem, env(safe-area-inset-left, 0px));
    padding-right: max(0.65rem, env(safe-area-inset-right, 0px));
    box-sizing: border-box;
  }

  .lp-plans-orbit-row {
    gap: 0.5rem;
  }

  .lp-plans-orbit-row .lp-carousel-nav {
    font-size: 0.78rem;
  }

  .lp-plans-orbit-viewport {
    padding: 1rem 0 1.35rem;
    --plans-edge: 0;
  }

  .lp-plans-orbit-fade {
    display: none;
  }

  .lp-plans-orbit-hint {
    font-size: 0.72rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .lp-carousel-viewport {
    scroll-behavior: auto;
  }

  .lp-plans-orbit-hint {
    display: none;
  }
}

.lp-plans-note {
  margin-top: 2.5rem;
  padding: 1.25rem 1.5rem;
  border-radius: 14px;
  background: rgba(16, 185, 129, 0.06);
  border: 1px solid rgba(16, 185, 129, 0.15);
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  justify-content: center;
  text-align: center;
  color: var(--slate);
  font-size: 0.88rem;
}

.lp-plans-note i { color: #10b981; font-size: 1.25rem; }

.lp-empty {
  text-align: center;
  padding: 4rem 1.5rem;
  color: var(--slate);
  border: 1px dashed var(--border);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.02);
}

/* ─── Bento features ───────────────────────────────────── */
.bento-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 1.25rem;
}

.bento-item {
  background: rgba(15, 21, 32, 0.6);
  border: 1px solid var(--glass-border);
  border-radius: 20px;
  padding: 1.75rem;
  backdrop-filter: blur(12px);
  transition: transform 0.3s, border-color 0.3s, box-shadow 0.3s;
  position: relative;
  overflow: hidden;
}

.bento-item::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 100% 0%, rgba(201, 162, 39, 0.06), transparent 50%);
  pointer-events: none;
}

.bento-item:hover {
  transform: translateY(-3px);
  border-color: rgba(201, 162, 39, 0.25);
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.2);
}

.bento-item.span-4 { grid-column: span 4; }
.bento-item.span-6 { grid-column: span 6; }
.bento-item.span-8 { grid-column: span 8; }
.bento-item.span-12 { grid-column: span 12; }

.bento-icon {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
  position: relative;
  z-index: 1;
}

.bento-item h3 {
  font-family: var(--font-heading, 'Sora', sans-serif);
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--ice);
  margin: 0 0 0.5rem;
  position: relative;
  z-index: 1;
}

.bento-item p {
  color: var(--slate);
  font-size: 0.85rem;
  line-height: 1.65;
  margin: 0;
  position: relative;
  z-index: 1;
}

.bento-highlight {
  background: linear-gradient(135deg, rgba(201, 162, 39, 0.1) 0%, rgba(16, 185, 129, 0.06) 100%);
  border-color: rgba(201, 162, 39, 0.22);
}

.bento-stat-num {
  font-family: 'JetBrains Mono', monospace;
  font-size: 2rem;
  font-weight: 700;
  color: var(--gold);
  line-height: 1;
  position: relative;
  z-index: 1;
}

.bento-lottery {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1.5rem;
}

.bento-lottery-action { text-align: center; }

/* ─── Referral promo ───────────────────────────────────── */
.lp-referral {
  background: linear-gradient(135deg, rgba(139, 92, 246, 0.08) 0%, rgba(201, 162, 39, 0.06) 50%, rgba(16, 185, 129, 0.05) 100%);
}

.lp-referral-grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 3rem;
  align-items: center;
}

.lp-referral-levels {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

.lp-ref-level {
  text-align: center;
  padding: 1.5rem 1rem;
  border-radius: 16px;
  background: rgba(8, 12, 24, 0.5);
  border: 1px solid var(--glass-border);
  transition: transform 0.25s;
}

.lp-ref-level:hover { transform: translateY(-4px); }

.lp-ref-level .pct {
  font-family: 'JetBrains Mono', monospace;
  font-size: 2rem;
  font-weight: 800;
  color: var(--gold);
  line-height: 1;
}

.lp-ref-level .lvl {
  font-size: 0.72rem;
  color: var(--slate);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-top: 0.35rem;
}

.lp-ref-level .desc {
  font-size: 0.78rem;
  color: var(--slate);
  margin-top: 0.5rem;
  opacity: 0.85;
}

/* ─── Timeline (how it works) ──────────────────────────── */
.lp-timeline {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  position: relative;
}

.lp-timeline::before {
  content: '';
  position: absolute;
  top: 36px;
  left: 12.5%;
  right: 12.5%;
  height: 2px;
  background: linear-gradient(90deg, var(--gold), rgba(16, 185, 129, 0.6), var(--gold));
  opacity: 0.35;
}

.lp-step {
  text-align: center;
  padding: 0 1rem;
  position: relative;
}

.lp-step-num {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  margin: 0 auto 1.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'JetBrains Mono', monospace;
  font-weight: 800;
  font-size: 1.1rem;
  color: var(--gold);
  background: rgba(8, 12, 24, 0.95);
  border: 2px solid rgba(201, 162, 39, 0.35);
  box-shadow: 0 0 30px rgba(201, 162, 39, 0.12);
  position: relative;
  z-index: 1;
}

.lp-step-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 0.75rem;
}

.lp-step h3 {
  font-family: var(--font-heading, 'Sora', sans-serif);
  font-size: 1rem;
  font-weight: 600;
  color: var(--ice);
  margin: 0 0 0.5rem;
}

.lp-step p {
  font-size: 0.82rem;
  color: var(--slate);
  line-height: 1.6;
  margin: 0;
}

/* ─── Trust wall ───────────────────────────────────────── */
.lp-trust-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
}

.lp-trust-card {
  text-align: center;
  padding: 2rem 1.25rem;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--glass-border);
  backdrop-filter: blur(10px);
  transition: transform 0.25s, border-color 0.25s;
}

.lp-trust-card:hover {
  transform: translateY(-3px);
  border-color: rgba(201, 162, 39, 0.2);
}

.lp-trust-card .icon-wrap {
  width: 56px;
  height: 56px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1rem;
}

.lp-trust-card span {
  color: var(--ice);
  font-size: 0.88rem;
  font-weight: 600;
}

/* ─── Testimonials ─────────────────────────────────────── */
.lp-testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}

.lp-testimonial-carousel,
.lp-cert-carousel,
.lp-vault-carousel {
  position: relative;
  display: flex;
  align-items: center;
  gap: 0.65rem;
  max-width: 100%;
  overflow: visible;
}

.lp-testimonial-carousel.is-carousel-static .lp-carousel-nav,
.lp-cert-carousel.is-carousel-static .lp-carousel-nav,
.lp-vault-carousel.is-carousel-static .lp-carousel-nav {
  opacity: 0.32;
  pointer-events: none;
  cursor: not-allowed;
}

.lp-testimonial-viewport,
.lp-cert-viewport,
.lp-vault-viewport,
.lp-carousel-viewport {
  overflow-x: scroll;
  overflow-y: hidden;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  overscroll-behavior-x: contain;
  flex: 1;
  min-width: 0;
  max-width: 100%;
  padding-inline: 0;
  cursor: grab;
  touch-action: pan-x pan-y;
  scroll-snap-type: x mandatory;
  scroll-padding-inline: 0;
  unicode-bidi: isolate;
}
.lp-testimonial-viewport::-webkit-scrollbar,
.lp-cert-viewport::-webkit-scrollbar,
.lp-vault-viewport::-webkit-scrollbar,
.lp-carousel-viewport::-webkit-scrollbar {
  display: none;
}
/* RTL: scroll starts from the right; LTR: from the left */
html[dir="rtl"] .lp-testimonial-viewport,
html[dir="rtl"] .lp-cert-viewport,
html[dir="rtl"] .lp-vault-viewport,
html[dir="rtl"] .lp-carousel-viewport,
html[dir="rtl"] .lp-plans-orbit-viewport {
  direction: rtl;
}
html[dir="ltr"] .lp-testimonial-viewport,
html[dir="ltr"] .lp-cert-viewport,
html[dir="ltr"] .lp-vault-viewport,
html[dir="ltr"] .lp-carousel-viewport,
html[dir="ltr"] .lp-plans-orbit-viewport,
html:not([dir]) .lp-testimonial-viewport,
html:not([dir]) .lp-cert-viewport,
html:not([dir]) .lp-vault-viewport,
html:not([dir]) .lp-carousel-viewport,
html:not([dir]) .lp-plans-orbit-viewport {
  direction: ltr;
}

.lp-vault-viewport {
  overflow-y: visible;
}

.lp-testimonial-viewport.is-dragging,
.lp-cert-viewport.is-dragging,
.lp-vault-viewport.is-dragging,
.lp-carousel-viewport.is-dragging,
.lp-plans-orbit-viewport.is-dragging,
.lp-testimonial-viewport.is-animating,
.lp-cert-viewport.is-animating,
.lp-vault-viewport.is-animating,
.lp-carousel-viewport.is-animating,
.lp-plans-orbit-viewport.is-animating {
  cursor: grabbing;
  scroll-behavior: auto;
  scroll-snap-type: none;
  touch-action: none;
  -webkit-user-select: none;
  user-select: none;
}

.lp-testimonial-viewport.is-dragging,
.lp-testimonial-viewport.is-dragging *,
.lp-cert-viewport.is-dragging,
.lp-cert-viewport.is-dragging *,
.lp-vault-viewport.is-dragging,
.lp-vault-viewport.is-dragging *,
.lp-carousel-viewport.is-dragging,
.lp-carousel-viewport.is-dragging * {
  touch-action: none;
}

.lp-testimonials-track,
.lp-cert-track,
.lp-vaults-track,
.lp-carousel-track {
  display: flex;
  gap: var(--carousel-gap-active, 1.15rem);
  width: max-content;
  max-width: none;
  flex-wrap: nowrap;
  padding-top: 6px;
  padding-bottom: 4px;
}

/* Shared slide sizing — JS sets --carousel-slide-size + inline flex-basis per breakpoint */
.lp-carousel-track > .rt-plan-card,
.lp-plans-orbit-group > .rt-plan-card,
.lp-carousel-track > .lp-vault-card,
.lp-carousel-track > .lp-testimonial,
.lp-carousel-track > .lp-cert-slide {
  flex: 0 0 var(--carousel-slide-size, 300px);
  width: var(--carousel-slide-size, 300px);
  min-width: var(--carousel-slide-size, 300px);
  max-width: var(--carousel-slide-size, 300px);
  box-sizing: border-box;
  scroll-snap-align: start;
  scroll-snap-stop: always;
}

.lp-carousel-track > * {
  flex-shrink: 0;
}

.lp-carousel-nav {
  flex-shrink: 0;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.04);
  color: var(--ice);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: 0.2s;
}

.lp-carousel-nav:hover {
  border-color: var(--gold);
  color: var(--gold);
  background: rgba(201, 162, 39, 0.1);
}

.lp-carousel-nav.is-disabled,
.lp-carousel-nav:disabled {
  opacity: 0.32;
  pointer-events: none;
  cursor: not-allowed;
  box-shadow: none;
}

@media (max-width: 768px) {
  .lp-vault-carousel,
  .lp-testimonial-carousel,
  .lp-cert-carousel {
    gap: 0.45rem;
  }

  .lp-vault-viewport,
  .lp-testimonial-viewport,
  .lp-cert-viewport,
  .lp-carousel-viewport,
  .lp-plans-orbit-viewport {
    scroll-padding-inline: 0;
  }
}

.lp-carousel-viewport:focus-visible {
  outline: 2px solid var(--gold, #c9a227);
  outline-offset: 2px;
}

.lp-cert-slide {
  margin: 0;
  text-align: center;
}

.lp-cert-frame {
  height: 140px;
  width: 100%;
  border-radius: 14px;
  border: 1px solid var(--glass-border);
  background: rgba(15, 21, 32, 0.65);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.85rem;
  overflow: hidden;
}

button.lp-cert-zoom {
  appearance: none;
  -webkit-appearance: none;
  margin: 0;
  font: inherit;
  color: inherit;
  cursor: zoom-in;
  transition: border-color 0.2s, box-shadow 0.2s;
}

button.lp-cert-zoom:hover,
button.lp-cert-zoom:focus-visible {
  border-color: rgba(201, 162, 39, 0.55);
  box-shadow: 0 0 0 1px rgba(201, 162, 39, 0.25);
  outline: none;
}

.lp-cert-frame img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 6px 18px rgba(0, 0, 0, 0.25));
  pointer-events: none;
}

.lp-cert-slide figcaption {
  margin-top: 0.65rem;
  color: var(--slate);
  font-size: 0.8rem;
  font-weight: 560;
}

[data-theme="light"] .lp-cert-frame {
  background: var(--surface);
  border-color: var(--border);
}

/* Certificate lightbox */
.lp-lightbox {
  position: fixed;
  inset: 0;
  z-index: 10050;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.25rem;
  background: rgba(4, 8, 16, 0.82);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.2s ease, visibility 0.2s ease;
}
.lp-lightbox.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}
.lp-lightbox-dialog {
  position: relative;
  max-width: min(960px, 100%);
  max-height: min(88vh, 100%);
  margin: 0;
  padding: 0;
  border: none;
  background: transparent;
}
.lp-lightbox-img {
  display: block;
  max-width: 100%;
  max-height: min(84vh, 900px);
  width: auto;
  height: auto;
  margin: 0 auto;
  border-radius: 12px;
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.45);
  background: rgba(15, 21, 32, 0.9);
}
.lp-lightbox-close {
  position: absolute;
  top: -0.35rem;
  inset-inline-end: -0.35rem;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(15, 21, 32, 0.92);
  color: #fff;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
}
.lp-lightbox-close:hover {
  border-color: var(--gold, #c9a227);
  color: var(--gold, #c9a227);
}
.lp-lightbox-caption {
  margin: 0.75rem 0 0;
  text-align: center;
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.9rem;
}

.lp-testimonial {
  padding: 1.75rem;
  border-radius: 18px;
  background: rgba(15, 21, 32, 0.7);
  border: 1px solid var(--glass-border);
  position: relative;
}

.lp-testimonial::before {
  content: '"';
  position: absolute;
  top: 0.75rem;
  inset-inline-end: 1.25rem;
  font-size: 3rem;
  line-height: 1;
  color: rgba(201, 162, 39, 0.15);
  font-family: Georgia, serif;
}

.lp-testimonial p {
  color: var(--slate);
  font-size: 0.88rem;
  line-height: 1.7;
  margin: 0 0 1.25rem;
  position: relative;
  z-index: 1;
}

.lp-testimonial-author {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.lp-testimonial-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(201, 162, 39, 0.2), rgba(16, 185, 129, 0.15));
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.85rem;
  color: var(--gold);
}

.lp-testimonial-name {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--ice);
}

.lp-testimonial-role {
  font-size: 0.72rem;
  color: var(--slate);
}

.lp-stars {
  color: var(--gold);
  font-size: 0.75rem;
  margin-bottom: 0.75rem;
  letter-spacing: 0.1em;
}

/* ─── FAQ split ────────────────────────────────────────── */
.lp-faq-wrap {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 3rem;
  align-items: start;
}

.lp-faq-side h2 {
  font-family: var(--font-heading, 'Sora', sans-serif);
  font-size: clamp(1.75rem, 3vw, 2.25rem);
  color: var(--ice);
  margin: 0.75rem 0 1rem;
  line-height: 1.2;
}

.lp-faq-side p {
  color: var(--slate);
  line-height: 1.7;
  margin-bottom: 1.5rem;
}

.lp-faq-contact {
  padding: 1.25rem;
  border-radius: 14px;
  background: rgba(201, 162, 39, 0.06);
  border: 1px solid rgba(201, 162, 39, 0.15);
  font-size: 0.85rem;
  color: var(--slate);
}

.lp-faq-contact strong { color: var(--gold); display: block; margin-bottom: 0.35rem; }

.faq-item {
  background: rgba(15, 21, 32, 0.6);
  border: 1px solid var(--glass-border);
  border-radius: 14px;
  margin-bottom: 0.65rem;
  overflow: hidden;
  transition: border-color 0.2s;
}

.faq-item.open {
  border-color: rgba(201, 162, 39, 0.25);
}

.faq-question {
  width: 100%;
  padding: 1.1rem 1.35rem;
  background: none;
  border: none;
  color: var(--ice);
  font-size: 0.92rem;
  font-weight: 500;
  cursor: pointer;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  text-align: start;
  font-family: inherit;
  -webkit-tap-highlight-color: transparent;
}

.faq-question-text {
  flex: 1;
  min-width: 0;
  text-align: start;
  line-height: 1.45;
}

.faq-question i {
  transition: transform 0.25s ease;
  font-size: 0.75rem;
  color: var(--gold);
  flex-shrink: 0;
  margin-top: 0.2rem;
}

.faq-item.open .faq-question i { transform: rotate(180deg); }

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease, padding 0.3s ease;
  padding: 0 1.35rem;
  color: var(--slate);
  font-size: 0.85rem;
  line-height: 1.7;
}

.faq-answer-inner {
  padding-bottom: 0.25rem;
  white-space: pre-line;
}

/* ─── CTA banner ───────────────────────────────────────── */
.lp-cta {
  padding: 0 0 5.5rem;
}

.lp-cta-inner {
  position: relative;
  border-radius: 28px;
  overflow: hidden;
  padding: 4rem 2rem;
  text-align: center;
  border: 1px solid rgba(201, 162, 39, 0.2);
  background:
    radial-gradient(ellipse 80% 60% at 50% 0%, rgba(201, 162, 39, 0.12) 0%, transparent 55%),
    linear-gradient(135deg, rgba(16, 185, 129, 0.08) 0%, rgba(139, 92, 246, 0.06) 100%);
}

.lp-cta-inner::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23c9a227' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  opacity: 0.5;
}

.lp-cta-content {
  position: relative;
  z-index: 1;
  max-width: 560px;
  margin: 0 auto;
}

.lp-cta-icon {
  width: 72px;
  height: 72px;
  border-radius: 20px;
  background: rgba(201, 162, 39, 0.12);
  border: 1px solid rgba(201, 162, 39, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem;
  font-size: 1.75rem;
  color: var(--gold);
}

.lp-cta h2 {
  font-family: var(--font-heading, 'Sora', sans-serif);
  font-weight: 700;
  font-size: clamp(1.75rem, 3.5vw, 2.25rem);
  color: var(--ice);
  margin: 0 0 0.75rem;
  text-align: center;
}

.lp-cta p {
  color: var(--slate);
  font-size: 1rem;
  line-height: 1.7;
  margin: 0 0 2rem;
}

.lp-cta-actions {
  display: flex;
  gap: 0.75rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* ─── Footer redesign ──────────────────────────────────── */
.lp-footer {
  background: var(--void);
  border-top: 1px solid var(--border);
}

.lp-footer-trust {
  border-bottom: 1px solid var(--border);
  padding: 2rem 0;
  background:
    radial-gradient(ellipse 60% 80% at 50% 0%, rgba(201, 162, 39, 0.08) 0%, transparent 55%),
    rgba(15, 21, 32, 0.5);
}

.lp-footer-trust-inner {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}

.lp-footer-trust-item {
  display: flex;
  align-items: flex-start;
  gap: 0.9rem;
  padding: 1.15rem 1.25rem;
  border-radius: 16px;
  border: 1px solid rgba(201, 162, 39, 0.12);
  background: rgba(8, 12, 24, 0.55);
  transition: border-color 0.25s, transform 0.25s;
}

.lp-footer-trust-item:hover {
  border-color: rgba(201, 162, 39, 0.3);
  transform: translateY(-2px);
}

.lp-footer-trust-item strong {
  display: block;
  color: var(--ice);
  font-size: 0.88rem;
  font-weight: 600;
  margin-bottom: 0.25rem;
}

.lp-footer-trust-item span {
  display: block;
  color: var(--slate);
  font-size: 0.75rem;
  line-height: 1.5;
}

.lp-footer-trust-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 1.1rem;
}

.lp-footer-trust-icon.emerald {
  background: rgba(16, 185, 129, 0.12);
  color: #10b981;
  border: 1px solid rgba(16, 185, 129, 0.2);
}

.lp-footer-trust-icon.gold {
  background: rgba(201, 162, 39, 0.12);
  color: var(--gold);
  border: 1px solid rgba(201, 162, 39, 0.2);
}

.lp-footer-trust-icon.blue {
  background: rgba(96, 165, 250, 0.12);
  color: #60a5fa;
  border: 1px solid rgba(96, 165, 250, 0.2);
}

.lp-footer-trust-divider { display: none; }

.lp-footer-main {
  padding: 3.5rem 0 2rem;
}

.lp-footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr 1fr;
  gap: 2.5rem;
}

.lp-footer-grid--3 {
  grid-template-columns: 1.6fr 1fr 1fr 1fr;
}

.lp-footer-brand p {
  color: var(--slate);
  font-size: 0.82rem;
  line-height: 1.7;
  margin: 1rem 0 1.25rem;
  max-width: 280px;
}

.lp-footer-brand-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
  font-family: var(--font-heading, 'Sora', sans-serif);
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--ice);
}

.lp-footer-brand-link .dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--gold);
}

.lp-footer-brand-logo {
  width: 32px;
  height: 32px;
  object-fit: contain;
  flex-shrink: 0;
}

.lp-social {
  display: flex;
  gap: 0.5rem;
}

.lp-social a {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--slate);
  text-decoration: none;
  transition: 0.2s;
}

.lp-social a:hover {
  border-color: var(--gold);
  color: var(--gold);
}

.lp-footer-col h4 {
  color: var(--ice);
  font-size: 0.82rem;
  font-weight: 600;
  margin: 0 0 1rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.lp-footer-col ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.lp-footer-col li { margin-bottom: 0.55rem; }

.lp-footer-col a {
  color: var(--slate);
  text-decoration: none;
  font-size: 0.82rem;
  transition: color 0.2s;
}

.lp-footer-col a:hover { color: var(--gold); }

.lp-footer-bottom {
  border-top: 1px solid var(--border);
  padding: 1.25rem 0;
}

.lp-footer-bottom-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}

.lp-footer-copy {
  color: var(--slate);
  font-size: 0.78rem;
}

.lp-footer-disclaimer {
  color: var(--slate);
  font-size: 0.72rem;
  opacity: 0.7;
  max-width: 480px;
  margin: 0;
}

/* ─── Lang / theme (landing nav extras) ────────────────── */
.lang-dropdown-wrap { position: relative; }

.lang-dropdown-btn {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 1.05rem 0.4rem 0.85rem;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border);
  color: var(--slate);
  font-size: 0.82rem;
  font-weight: 500;
  cursor: pointer;
  transition: var(--transition);
}

.lang-dropdown-btn .fa-chevron-down {
  margin-inline-start: 0.15rem;
  font-size: 0.55rem;
  opacity: 0.55;
  flex-shrink: 0;
}

.lang-dropdown-btn:hover { border-color: var(--gold); color: var(--gold); }

.lang-dropdown-menu {
  display: none;
  position: absolute;
  top: calc(100% + 6px);
  inset-inline-end: 0;
  inset-inline-start: auto;
  min-width: 200px;
  max-width: min(260px, calc(100vw - 1.25rem));
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 0.5rem;
  z-index: 200;
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(20px);
}

.lang-dropdown-wrap.open .lang-dropdown-menu { display: block; }

.lang-dropdown-item {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.6rem 0.75rem;
  border-radius: 8px;
  color: var(--slate);
  text-decoration: none;
  font-size: 0.85rem;
  transition: var(--transition);
}

.lang-dropdown-item:hover { background: rgba(255, 255, 255, 0.04); color: var(--ice); }
.lang-dropdown-item.active { color: var(--gold); background: rgba(201, 162, 39, 0.08); font-weight: 600; }
.lang-dropdown-item .flag { font-size: 1.1rem; width: 24px; text-align: center; }
.lang-flag {
  display: inline-block;
  width: 20px;
  height: 15px;
  object-fit: cover;
  border-radius: 2px;
  vertical-align: middle;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.12);
}
.lang-dropdown-item .name { flex: 1; }
.lang-dropdown-item .check { font-size: 0.7rem; opacity: 0; }
.lang-dropdown-item.active .check { opacity: 1; color: var(--gold); }

.theme-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border);
  color: var(--slate);
  cursor: pointer;
  transition: var(--transition);
  font-size: 0.9rem;
}

.theme-toggle:hover { border-color: var(--gold); color: var(--gold); }

/* ─── Responsive ───────────────────────────────────────── */
@media (max-width: 992px) {
  .mega-hero-grid { grid-template-columns: 1fr; text-align: center; }
  .mega-hero-eyebrow { margin-inline: auto; }
  .mega-hero-desc { margin-inline: auto; }
  .mega-hero-actions { justify-content: center; }
  .mega-hero-stats { margin-inline: auto; }
  .mega-hero-controls { justify-content: center; }
  .float-badge { display: none; }
  .lp-stats-grid { grid-template-columns: repeat(2, 1fr); }
  .bento-item.span-4, .bento-item.span-6, .bento-item.span-8 { grid-column: span 12; }
  .lp-referral-grid { grid-template-columns: 1fr; }
  .lp-timeline { grid-template-columns: 1fr 1fr; gap: 2rem; }
  .lp-timeline::before { display: none; }
  .lp-trust-grid { grid-template-columns: repeat(2, 1fr); }
  .lp-testimonials-grid { grid-template-columns: 1fr; }
  .lp-faq-wrap { grid-template-columns: 1fr; }
  .lp-footer-grid { grid-template-columns: 1fr 1fr; }
  .lp-footer-grid--3 { grid-template-columns: 1fr 1fr; }
  .lp-footer-trust-inner { grid-template-columns: 1fr; }
}

@media (max-width: 576px) {
  .lp-section { padding: 4rem 0; }
  .mega-hero-stats { grid-template-columns: 1fr; }
  .lp-stats-grid { grid-template-columns: 1fr; }
  .lp-stat-card {
    padding: 1.1rem 1.15rem;
    gap: 0.85rem;
  }
  .lp-stat-num { font-size: 1.35rem; }
  .lp-referral-levels { grid-template-columns: 1fr; }
  .lp-timeline { grid-template-columns: 1fr; }
  .lp-trust-grid { grid-template-columns: 1fr; }
  .lp-footer-grid { grid-template-columns: 1fr; }
  .lp-footer-grid--3 { grid-template-columns: 1fr; }
  .lp-footer-trust-divider { display: none; }
}

/* ─── Light mode (landing page) ─────────────────────────── */
/* No floating content card — text sits on the hero image like dark mode */
[data-theme="light"] .mega-hero {
  background: transparent;
}

[data-theme="light"] .mega-hero-bg::before {
  background:
    linear-gradient(
      105deg,
      rgba(248, 249, 251, 0.88) 0%,
      rgba(248, 249, 251, 0.62) 32%,
      rgba(248, 249, 251, 0.28) 58%,
      rgba(15, 23, 42, 0.22) 100%
    ),
    linear-gradient(
      180deg,
      rgba(248, 249, 251, 0.15) 0%,
      rgba(248, 249, 251, 0.45) 72%,
      var(--void) 100%
    );
}

[data-theme="light"] .mega-hero-bg img.active,
[data-theme="light"] .mega-hero-bg > img:only-child {
  opacity: 0.9;
  filter: none;
}

[data-theme="light"] .mega-hero-panels {
  padding: 0;
  border-radius: 0;
  background: transparent;
  border: none;
  box-shadow: none;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  max-width: none;
}

[data-theme="light"] .mega-hero-title,
[data-theme="light"] .mega-hero.has-custom-prize-color .mega-hero-title {
  color: #0f172a !important;
  -webkit-text-fill-color: #0f172a !important;
  background: none !important;
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.35);
}

[data-theme="light"] .mega-hero-desc,
[data-theme="light"] .mega-hero [data-hero-desc] {
  color: #334155 !important;
}

[data-theme="light"] .mega-hero-eyebrow {
  background: rgba(201, 162, 39, 0.14);
  border-color: rgba(201, 162, 39, 0.32);
  color: #92670a;
}

[data-theme="light"] .mega-hero .btn-ghost {
  color: #0f172a;
  border-color: rgba(15, 23, 42, 0.22);
  background: rgba(255, 255, 255, 0.45);
}

[data-theme="light"] .mega-hero .btn-ghost:hover {
  border-color: var(--gold);
  color: var(--gold);
  background: rgba(255, 255, 255, 0.7);
}

[data-theme="light"] .mega-hero-stat {
  background: rgba(255, 255, 255, 0.78);
  border-color: rgba(15, 23, 42, 0.08);
  box-shadow: 0 8px 22px rgba(15, 23, 42, 0.05);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

[data-theme="light"] .mega-hero-stat.mega-hero-countdown {
  background: linear-gradient(135deg, rgba(201, 162, 39, 0.14) 0%, rgba(255, 255, 255, 0.78) 55%, rgba(99, 102, 241, 0.06) 100%);
  border-color: rgba(201, 162, 39, 0.28);
}

[data-theme="light"] .mega-hero-countdown .cd-ring-bg {
  stroke: rgba(15, 23, 42, 0.12);
}

[data-theme="light"] .mega-hero-countdown .cd-unit small {
  color: var(--slate);
}

[data-theme="light"] .mega-hero-countdown .cd-num {
  color: var(--ice);
}

[data-theme="light"] .mega-hero-visual-frame {
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid rgba(15, 23, 42, 0.08);
  box-shadow: 0 24px 60px rgba(15, 23, 42, 0.1);
}

[data-theme="light"] .hero-ticker {
  background: rgba(255, 255, 255, 0.82);
  border-color: rgba(15, 23, 42, 0.08);
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.06);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

[data-theme="light"] .hero-ticker-shine {
  mix-blend-mode: multiply;
  background: linear-gradient(
    105deg,
    transparent 35%,
    rgba(201, 162, 39, 0.1) 48%,
    rgba(255, 255, 255, 0.55) 50%,
    rgba(201, 162, 39, 0.1) 52%,
    transparent 65%
  );
  background-size: 220% 100%;
}


[data-theme="light"] .hero-ticker-fade--start {
  background: linear-gradient(to right, rgba(255, 255, 255, 0.98) 0%, rgba(255, 255, 255, 0.75) 45%, transparent 100%);
}
[data-theme="light"] .hero-ticker-fade--end {
  background: linear-gradient(to left, rgba(255, 255, 255, 0.98) 0%, rgba(255, 255, 255, 0.75) 45%, transparent 100%);
}

[data-theme="light"] .hero-ticker-item {
  color: var(--ice);
  background: var(--surface);
  border-color: rgba(201, 162, 39, 0.28);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.05), 0 0 16px rgba(201, 162, 39, 0.08);
}

[data-theme="light"] .lp-stat-card {
  background: var(--surface);
  border-color: var(--border);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
}

[data-theme="light"] .lp-stat-card:hover {
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.08);
}

[data-theme="light"] .bento-card,
[data-theme="light"] .bento-highlight,
[data-theme="light"] .lp-plan-card,
[data-theme="light"] .lp-trust-card,
[data-theme="light"] .lp-timeline-item,
[data-theme="light"] .lp-faq-item {
  background: var(--surface);
  border-color: var(--border);
}

[data-theme="light"] .lp-nav {
  background: rgba(255, 255, 255, 0.92);
  border-bottom-color: var(--border);
}

[data-theme="light"] .lp-nav .nav-links a {
  color: var(--slate);
}

[data-theme="light"] .lp-nav .nav-links a:hover {
  color: var(--ice);
  background: rgba(0, 0, 0, 0.04);
}

[data-theme="light"] .lp-footer {
  background: var(--surface);
  border-top-color: var(--border);
}

[data-theme="light"] .lp-footer-col a,
[data-theme="light"] .lp-footer-copy,
[data-theme="light"] .lp-footer-disclaimer {
  color: var(--slate);
}

[data-theme="light"] .lang-dropdown-btn,
[data-theme="light"] .theme-toggle {
  background: rgba(0, 0, 0, 0.03);
  border-color: var(--border);
  color: var(--slate);
}

[data-theme="light"] .lang-dropdown-menu {
  background: var(--surface);
  border-color: var(--border);
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.1);
}

[data-theme="light"] .lang-dropdown-item:hover {
  background: rgba(0, 0, 0, 0.04);
  color: var(--ice);
}

[data-theme="light"] .mega-hero-dots button {
  background: rgba(0, 0, 0, 0.12);
}

[data-theme="light"] .mega-hero-banner-dots button {
  background: rgba(0, 0, 0, 0.15);
}

[data-theme="light"] .btn-ghost {
  background: rgba(0, 0, 0, 0.03);
  border-color: var(--border);
  color: var(--ice);
}

[data-theme="light"] .btn-ghost:hover {
  background: rgba(201, 162, 39, 0.08);
  color: var(--gold);
}

[data-theme="light"] .lp-cta-banner {
  background: linear-gradient(135deg, rgba(201,162,39,0.08), rgba(5,150,105,0.06));
  border-color: var(--border);
}

[data-theme="light"] .lp-plans-note {
  background: rgba(16, 185, 129, 0.06);
  border-color: rgba(16, 185, 129, 0.15);
  color: var(--ice);
}

[data-theme="light"] .lp-plans-orbit-fade--start {
  background: linear-gradient(to right, var(--void, #f4f6fb) 0%, transparent 100%);
}

[data-theme="light"] .lp-plans-orbit-fade--end {
  background: linear-gradient(to left, var(--void, #f4f6fb) 0%, transparent 100%);
}

[data-theme="light"] .lp-plans-orbit-glow {
  opacity: 0.55;
}

[data-theme="light"] .bento-item,
[data-theme="light"] .lp-stat-card,
[data-theme="light"] .mega-hero-visual-frame,
[data-theme="light"] .lp-how-card,
[data-theme="light"] .lp-referral-card,
[data-theme="light"] .lp-security-card,
[data-theme="light"] .lp-faq-item,
[data-theme="light"] .rt-plan-card {
  background: var(--surface) !important;
  border-color: var(--border);
  color: var(--ice);
}

[data-theme="light"] .rt-plan-card.is-popular {
  border-color: color-mix(in srgb, var(--plan-accent) 55%, #c9a227);
  box-shadow: 0 10px 32px rgba(0, 0, 0, 0.08), 0 0 28px var(--plan-glow);
}

[data-theme="light"] .rt-plan-featured-badge {
  box-shadow: 0 4px 14px rgba(201, 162, 39, 0.28);
}

[data-theme="light"] .bento-item h3,
[data-theme="light"] .bento-item p,
[data-theme="light"] .lp-stat-num,
[data-theme="light"] .mega-hero-title,
[data-theme="light"] .mega-hero-desc,
[data-theme="light"] .section-title,
[data-theme="light"] .lp-section-title {
  color: var(--ice);
}

[data-theme="light"] .bento-item p,
[data-theme="light"] .mega-hero-desc,
[data-theme="light"] .lp-stat-label {
  color: var(--slate);
}

[data-theme="light"] .lp-empty {
  background: rgba(0, 0, 0, 0.02);
  color: var(--slate);
}

[data-theme="light"] .lp-how-step,
[data-theme="light"] .lp-timeline-card {
  background: var(--surface);
  border-color: var(--border);
  color: var(--ice);
}

[data-theme="light"] .lp-nav .brand,
[data-theme="light"] .lp-nav .brand-text,
[data-theme="light"] .rt-nav .brand {
  color: var(--ice);
}

[data-theme="light"] .lp-footer h4,
[data-theme="light"] .lp-footer .brand {
  color: var(--ice);
}

/* Cards that kept dark glass backgrounds — force light surfaces + readable text */
[data-theme="light"] .lp-section--dark {
  background: linear-gradient(180deg, var(--void) 0%, #eef1f5 100%);
}

[data-theme="light"] .lp-testimonial,
[data-theme="light"] .lp-ref-level,
[data-theme="light"] .faq-item,
[data-theme="light"] .lp-trust-card,
[data-theme="light"] .lp-faq-item {
  background: var(--surface) !important;
  border-color: var(--border);
  color: var(--ice);
  box-shadow: 0 4px 20px rgba(15, 23, 42, 0.05);
}

[data-theme="light"] .lp-testimonial p,
[data-theme="light"] .lp-testimonial-role,
[data-theme="light"] .lp-ref-level .lvl,
[data-theme="light"] .lp-ref-level .desc,
[data-theme="light"] .lp-step p,
[data-theme="light"] .lp-section-head p,
[data-theme="light"] .lp-faq-side p,
[data-theme="light"] .lp-faq-contact,
[data-theme="light"] .lp-plans-note,
[data-theme="light"] .faq-answer,
[data-theme="light"] .bento-item p,
[data-theme="light"] .mega-hero-desc,
[data-theme="light"] .lp-stat-label,
[data-theme="light"] .lp-eyebrow,
[data-theme="light"] .hero-ticker-item {
  color: #334155;
  opacity: 1;
}

[data-theme="light"] .lp-testimonial-name,
[data-theme="light"] .lp-step h3,
[data-theme="light"] .faq-question,
[data-theme="light"] .bento-item h3,
[data-theme="light"] .display-lg,
[data-theme="light"] .lp-section-head h2 {
  color: var(--ice);
}

[data-theme="light"] .lp-ref-level .pct {
  color: var(--gold);
}

[data-theme="light"] .lp-step-num {
  background: var(--surface);
  border-color: rgba(201, 162, 39, 0.45);
  box-shadow: 0 4px 16px rgba(15, 23, 42, 0.08);
  color: var(--gold);
}

[data-theme="light"] .lp-referral {
  background: linear-gradient(135deg, rgba(139, 92, 246, 0.06) 0%, rgba(201, 162, 39, 0.05) 50%, rgba(16, 185, 129, 0.04) 100%);
}

[data-theme="light"] .lp-ref-level .desc {
  opacity: 1;
}

[data-theme="light"] .faq-answer {
  background: var(--surface-2);
}

[data-theme="light"] .bento-item:hover,
[data-theme="light"] .lp-testimonial:hover,
[data-theme="light"] .lp-ref-level:hover {
  box-shadow: 0 12px 32px rgba(15, 23, 42, 0.1);
}

[data-theme="light"] .lp-footer-trust {
  background:
    radial-gradient(ellipse 60% 80% at 50% 0%, rgba(201, 162, 39, 0.08) 0%, transparent 55%),
    rgba(248, 250, 252, 0.95);
}

[data-theme="light"] .lp-footer-trust-item {
  background: var(--surface);
  border-color: var(--border);
}

[data-theme="light"] .lp-footer-trust-item strong {
  color: var(--ice);
}

[data-theme="light"] .lp-footer-trust-item span {
  color: var(--slate);
}

[data-theme="light"] .lp-cta h2 {
  color: var(--ice);
}

[data-theme="light"] .lp-cta p {
  color: var(--slate);
}


/* ===== Hyperliquid vaults (homepage transparency) ===== */
.lp-vault-card {
  position: relative;
  border: 1px solid var(--border);
  border-radius: 18px;
  background: linear-gradient(160deg, rgba(255,255,255,0.04), rgba(255,255,255,0.015));
  padding: 1.15rem 1.2rem 1rem;
  cursor: pointer;
  transition: border-color .22s ease, transform .22s ease, box-shadow .22s ease;
  overflow: hidden;
}
.lp-vault-card::before {
  content: '';
  position: absolute;
  inset: 0 0 auto 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
  opacity: 0.55;
}
.lp-vault-card:hover,
.lp-vault-card:focus-visible {
  border-color: rgba(201,162,39,0.45);
  transform: translateY(-3px);
  box-shadow: 0 16px 40px rgba(0,0,0,0.28);
  outline: none;
}
.lp-vault-card.is-stale { opacity: 0.92; }
.lp-vault-card-head {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  margin-bottom: 0.85rem;
}
.lp-vault-icon {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(201,162,39,0.12);
  color: var(--gold);
  flex-shrink: 0;
}
.lp-vault-icon.lg { width: 52px; height: 52px; border-radius: 14px; font-size: 1.15rem; }
.lp-vault-head-text { flex: 1; min-width: 0; }
.lp-vault-head-text h3 {
  margin: 0;
  color: var(--ice);
  font-size: 1.05rem;
  line-height: 1.35;
}
.lp-vault-api-name {
  display: block;
  margin-top: 0.2rem;
  color: var(--slate);
  font-size: 0.72rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.lp-vault-badge {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 0.22rem 0.55rem;
  border-radius: 999px;
  flex-shrink: 0;
}
.lp-vault-badge.live {
  color: #10b981;
  background: rgba(16,185,129,0.12);
  border: 1px solid rgba(16,185,129,0.28);
}
.lp-vault-badge.closed {
  color: #f59e0b;
  background: rgba(245,158,11,0.12);
  border: 1px solid rgba(245,158,11,0.28);
}
.lp-vault-stale {
  margin: 0 0 0.75rem;
  color: var(--slate);
  font-size: 0.78rem;
}
.lp-vault-metrics {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.65rem;
  margin-bottom: 0.85rem;
}
.lp-vault-metrics span {
  display: block;
  color: var(--slate);
  font-size: 0.7rem;
  margin-bottom: 0.2rem;
}
.lp-vault-metrics strong {
  color: var(--ice);
  font-size: 0.98rem;
}
.lp-vault-metrics strong.pos,
.lp-vault-stat strong.pos { color: #10b981; }
.lp-vault-metrics strong.neg,
.lp-vault-stat strong.neg { color: #ef4444; }
.lp-vault-spark {
  height: 52px;
  margin-bottom: 0.75rem;
  border-radius: 10px;
  background: rgba(0,0,0,0.18);
  overflow: hidden;
}
.lp-vault-spark svg { width: 100%; height: 100%; display: block; }
.lp-vault-spark-empty { height: 100%; background: linear-gradient(90deg, transparent, rgba(255,255,255,0.04), transparent); }
.lp-vault-card-foot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.75rem;
  color: var(--slate);
  font-size: 0.74rem;
}
.lp-vault-more { color: var(--gold); font-weight: 600; }

body.lp-vault-modal-open,
html.lp-vault-modal-open {
  overflow: hidden;
  overscroll-behavior: none;
}
body.lp-vault-modal-open {
  position: fixed;
  width: 100%;
  left: 0;
  right: 0;
}
.lp-vault-modal {
  position: fixed;
  inset: 0;
  z-index: 1200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  overflow: hidden;
  overscroll-behavior: contain;
}
.lp-vault-modal[hidden] { display: none !important; }
.lp-vault-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.65);
  backdrop-filter: blur(4px);
}
.lp-vault-modal-dialog {
  position: relative;
  width: min(820px, 100%);
  max-height: min(92vh, 900px);
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  touch-action: pan-y;
  border-radius: 20px;
  border: 1px solid var(--border);
  background: var(--surface, #0f1419);
  box-shadow: 0 24px 80px rgba(0,0,0,0.45);
  z-index: 1;
}
.lp-vault-modal-close {
  position: absolute;
  top: 0.85rem;
  inset-inline-end: 0.85rem;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: rgba(255,255,255,0.04);
  color: var(--slate);
  cursor: pointer;
  z-index: 2;
}
.lp-vault-modal-close:hover { color: var(--ice); border-color: var(--gold); }
.lp-vault-modal-body { padding: 1.35rem 1.4rem 1.5rem; }
.lp-vault-modal-head {
  display: flex;
  align-items: flex-start;
  gap: 0.85rem;
  margin-bottom: 0.85rem;
  padding-inline-end: 2.5rem;
}
.lp-vault-modal-head h3 {
  margin: 0;
  color: var(--ice);
  font-size: 1.25rem;
}
.lp-vault-modal-api {
  margin: 0.25rem 0 0;
  color: var(--slate);
  font-size: 0.78rem;
}
.lp-vault-modal-desc {
  color: var(--slate);
  line-height: 1.7;
  font-size: 0.9rem;
  margin: 0 0 1rem;
}
.lp-vault-modal-addrs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.85rem;
  margin-bottom: 1rem;
}
.lp-vault-modal-addrs > div {
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 0.75rem 0.85rem;
  background: rgba(255,255,255,0.02);
}
.lp-vault-modal-addrs span {
  display: block;
  color: var(--slate);
  font-size: 0.72rem;
  margin-bottom: 0.35rem;
}
.lp-vault-copy-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
}
.lp-vault-copy-row code {
  color: var(--ice);
  font-size: 0.85rem;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}
.lp-vault-copy {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: transparent;
  color: var(--slate);
  cursor: pointer;
}
.lp-vault-copy.copied,
.lp-vault-copy:hover { color: var(--gold); border-color: var(--gold); }
.lp-vault-stat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 0.65rem;
  margin-bottom: 1.15rem;
}
.lp-vault-modal-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-bottom: 0.85rem;
}
.lp-vault-chip {
  font-size: 0.68rem;
  font-weight: 600;
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
  border: 1px solid var(--border);
  color: var(--slate);
  background: rgba(255,255,255,0.03);
}
.lp-vault-chip.ok { color: #10b981; border-color: rgba(16,185,129,0.35); background: rgba(16,185,129,0.1); }
.lp-vault-chip.warn { color: #f59e0b; border-color: rgba(245,158,11,0.35); background: rgba(245,158,11,0.1); }
.lp-vault-chart-controls {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
  justify-content: flex-end;
}
.lp-vault-chart-modes {
  display: inline-flex;
  gap: 0.3rem;
  flex-wrap: wrap;
}
.lp-vault-chart-modes button {
  border: 1px solid var(--border);
  background: transparent;
  color: var(--slate);
  border-radius: 999px;
  padding: 0.28rem 0.7rem;
  font-size: 0.72rem;
  cursor: pointer;
}
.lp-vault-chart-modes button.is-active,
.lp-vault-chart-modes button:hover {
  color: var(--gold);
  border-color: var(--gold);
  background: rgba(201,162,39,0.1);
}
.lp-vault-child-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}
.lp-vault-child-link {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.35rem 0.6rem;
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--gold);
  font-size: 0.78rem;
  text-decoration: none;
}
.lp-vault-child-link:hover { border-color: var(--gold); background: rgba(201,162,39,0.08); }
.lp-vault-child-link code { color: inherit; font-size: 0.76rem; }
.lp-vault-stat {
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 0.75rem 0.7rem;
  background: rgba(255,255,255,0.02);
}
.lp-vault-stat span {
  display: block;
  color: var(--slate);
  font-size: 0.7rem;
  margin-bottom: 0.3rem;
}
.lp-vault-stat strong {
  color: var(--ice);
  font-size: 0.95rem;
}
.lp-vault-chart-wrap {
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 0.9rem 1rem 1rem;
  background: rgba(0,0,0,0.18);
}
.lp-vault-chart-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-bottom: 0.75rem;
}
.lp-vault-chart-head h4 {
  margin: 0;
  color: var(--ice);
  font-size: 0.92rem;
}
.lp-vault-periods {
  display: inline-flex;
  gap: 0.3rem;
  flex-wrap: wrap;
}
.lp-vault-periods button {
  border: 1px solid var(--border);
  background: transparent;
  color: var(--slate);
  border-radius: 999px;
  padding: 0.28rem 0.7rem;
  font-size: 0.72rem;
  cursor: pointer;
}
.lp-vault-periods button.is-active,
.lp-vault-periods button:hover {
  color: var(--gold);
  border-color: var(--gold);
  background: rgba(201,162,39,0.1);
}
.lp-vault-chart-canvas {
  position: relative;
  height: 220px;
}
.lp-vault-chart-canvas svg {
  width: 100%;
  height: 100%;
  display: block;
}
.lp-vault-chart-empty {
  position: absolute;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  margin: 0;
  padding: 1rem;
  text-align: center;
  color: var(--slate);
  font-size: 0.85rem;
  pointer-events: none;
  background: rgba(0,0,0,0.15);
  border-radius: 10px;
}
.lp-vault-chart-empty.is-visible { display: flex; }
.lp-vault-table-wrap {
  margin-bottom: 1rem;
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 0.85rem 1rem;
  background: rgba(0,0,0,0.12);
}
.lp-vault-table-wrap h4 {
  margin: 0 0 0.65rem;
  color: var(--ice);
  font-size: 0.9rem;
}
.lp-vault-table-scroll {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-gutter: stable;
}
.lp-vault-table {
  width: 100%;
  min-width: 100%;
  table-layout: fixed;
  border-collapse: collapse;
  font-size: 0.78rem;
}
.lp-vault-table--period col.col-period { width: 16%; }
.lp-vault-table--period col.col-num { width: 21%; }
.lp-vault-table--followers col.col-user { width: 17%; }
.lp-vault-table--followers col.col-num { width: 15%; }
.lp-vault-table--followers col.col-date { width: 23%; }
.lp-vault-table th,
.lp-vault-table td {
  padding: 0.55rem 0.65rem;
  border-bottom: 1px solid var(--border);
  vertical-align: middle;
  overflow: hidden;
  text-overflow: ellipsis;
  box-sizing: border-box;
}
.lp-vault-table th.col-text,
.lp-vault-table td.col-text {
  text-align: start !important;
  white-space: normal;
}
.lp-vault-table th.col-num,
.lp-vault-table td.col-num,
.lp-vault-table th.col-date,
.lp-vault-table td.col-date {
  direction: ltr;
  unicode-bidi: isolate;
  text-align: right !important;
  white-space: nowrap;
}
.lp-vault-table td.col-text code {
  direction: ltr;
  unicode-bidi: isolate;
  display: inline-block;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  vertical-align: middle;
}
.lp-vault-table th {
  color: var(--slate);
  font-weight: 600;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}
.lp-vault-table td { color: var(--ice); }
.lp-vault-table td.pos { color: #10b981; }
.lp-vault-table td.neg { color: #ef4444; }
.lp-vault-table tbody tr:last-child td { border-bottom: none; }
.lp-vault-table code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.76rem;
}
.lp-vault-pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  margin-top: 0.75rem;
  padding-top: 0.5rem;
  border-top: 1px solid var(--border);
}
.lp-vault-page-info {
  color: var(--slate);
  font-size: 0.78rem;
  min-width: 4rem;
  text-align: center;
}
.lp-vault-page-btn {
  width: 34px;
  height: 34px;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: rgba(255,255,255,0.04);
  color: var(--slate);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
}
.lp-vault-page-btn:hover:not(:disabled) { color: var(--gold); border-color: var(--gold); }
.lp-vault-page-btn:disabled { opacity: 0.35; cursor: not-allowed; }
.lp-vault-modal-foot {
  margin-top: 1rem;
  padding-top: 0.85rem;
  border-top: 1px solid var(--border);
}
.lp-vault-hl-link {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  color: var(--gold);
  font-size: 0.85rem;
  font-weight: 600;
  text-decoration: none;
}
.lp-vault-hl-link:hover { text-decoration: underline; }
@media (max-width: 760px) {
  .lp-vault-metrics { grid-template-columns: 1fr 1fr; }
  .lp-vault-modal-addrs,
  .lp-vault-stat-grid { grid-template-columns: 1fr 1fr; }
  .lp-vault-chart-canvas { height: 180px; }
  .lp-vault-chart-controls { width: 100%; justify-content: flex-start; }
}
[data-theme="light"] .lp-vault-card,
[data-theme="light"] .lp-vault-modal-dialog,
[data-theme="light"] .lp-vault-stat,
[data-theme="light"] .lp-vault-modal-addrs > div,
[data-theme="light"] .lp-vault-chart-wrap {
  background: var(--surface);
}
[data-theme="light"] .lp-vault-spark,
[data-theme="light"] .lp-vault-chart-wrap,
[data-theme="light"] .lp-vault-table-wrap {
  background: rgba(15,23,42,0.04);
}

/* Performance: defer off-screen section layout/paint until near viewport */
@media (min-width: 768px) {
  .lp-section:not(.mega-hero) {
    content-visibility: auto;
    contain-intrinsic-size: auto 520px;
  }
}
