/* ==========================================================================
   JERS FINANCE ACADEMY — COMPONENTS (V4 "The Tape")
   ---------------------------------------------------------------------------
   Contains the fixed-ratio media system that gives every photograph on the
   site a locked height and width, the market tiles, the academy mosaic, and
   all responsive corrections.
   ========================================================================== */

/* ==========================================================================
   MEDIA SYSTEM
   Every photograph sits in a ratio-locked frame. The <img> fills it with
   object-fit:cover, so a section's image height never depends on which file
   happens to load — no layout shift, no mismatched rows.
   ========================================================================== */
.media {
  position: relative;
  display: block;
  width: 100%;
  overflow: hidden;
  border-radius: var(--radius);
  background: #0a0c11;
  isolation: isolate;
}

.media > img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.75s cubic-bezier(0.16, 1, 0.3, 1),
              filter 0.5s ease;
}

/* Ratio tokens — one per shape used on the site. */
.media-3x2  { aspect-ratio: 3 / 2; }
.media-4x3  { aspect-ratio: 4 / 3; }
.media-16x9 { aspect-ratio: 16 / 9; }
.media-21x9 { aspect-ratio: 21 / 9; }
.media-4x5  { aspect-ratio: 4 / 5; }
.media-1x1  { aspect-ratio: 1 / 1; }

/* Fill a grid cell of an arbitrary height instead of imposing a ratio. */
.media-fill { height: 100%; aspect-ratio: auto; }
.media-fill > img { position: absolute; inset: 0; }

/* Tone the photography into the brand: cooled, contrast-lifted, slightly
   crushed blacks so stock shots sit against the obsidian surfaces. */
.media-toned > img {
  filter: saturate(0.82) contrast(1.06) brightness(0.9);
}

.media:hover > img { transform: scale(1.045); }
.media-toned:hover > img { filter: saturate(1) contrast(1.06) brightness(0.98); }


/* --- Caption overlay --------------------------------------------------- */
.media-caption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 3;
  padding: 44px 22px 18px;
  background: linear-gradient(0deg, rgba(4, 5, 8, 0.95) 0%, rgba(4, 5, 8, 0.66) 55%, transparent 100%);
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 14px;
  pointer-events: none;
}

.media-caption-title {
  font-family: var(--font-display);
  font-size: 1.02rem;
  font-weight: 700;
  font-stretch: 104%;
  color: #ffffff;
  letter-spacing: -0.01em;
  line-height: 1.25;
}

.media-caption-sub {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: #9aa5b5;
  margin-top: 4px;
  letter-spacing: 0.05em;
}

.media-tag {
  font-family: var(--font-mono);
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--red-primary);
  background: rgba(255, 23, 61, 0.14);
  border: 1px solid rgba(255, 23, 61, 0.36);
  padding: 4px 8px;
  border-radius: 4px;
  white-space: nowrap;
  flex-shrink: 0;
}

.media-tag-green {
  color: var(--bull-green);
  background: rgba(0, 229, 153, 0.14);
  border-color: rgba(0, 229, 153, 0.36);
}

/* --- Framed variant used for feature photography ----------------------- */
.media-framed {
  border: 1px solid var(--red-border);
  border-radius: var(--radius-lg);
  box-shadow: 0 26px 60px rgba(0, 0, 0, 0.72), 0 0 34px rgba(255, 23, 61, 0.13);
}

.section-cream .media-framed {
  border-color: var(--cream-border);
  box-shadow: 0 20px 46px rgba(20, 15, 10, 0.12);
}

/* Legacy alias kept so existing markup keeps working. */
.stock-photo-frame {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--red-border);
  box-shadow: 0 26px 60px rgba(0, 0, 0, 0.72), 0 0 34px rgba(255, 23, 61, 0.13);
  background: #0a0c11;
  aspect-ratio: 3 / 2;
}

.stock-photo-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.75s cubic-bezier(0.16, 1, 0.3, 1);
}

.stock-photo-frame:hover img { transform: scale(1.04); }

.stock-photo-caption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 44px 24px 18px;
  background: linear-gradient(0deg, rgba(4, 5, 8, 0.95) 0%, rgba(4, 5, 8, 0.66) 55%, transparent 100%);
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 14px;
}

.stock-photo-caption-title {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 700;
  font-stretch: 104%;
  color: var(--text-white);
}

.stock-photo-caption-tag {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--red-primary);
  background: rgba(255, 23, 61, 0.14);
  border: 1px solid rgba(255, 23, 61, 0.36);
  padding: 4px 8px;
  border-radius: 4px;
  white-space: nowrap;
  flex-shrink: 0;
}

/* ==========================================================================
   SPLIT LAYOUT
   One class replaces the inline two-column grids that had no breakpoints.
   ========================================================================== */
.split-grid,
.split-feature-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 52px;
  align-items: center;
}

.split-grid-media-left  { grid-template-columns: 1fr 1.1fr; }
.split-grid-media-right { grid-template-columns: 1.1fr 1fr; }
.split-grid-tight { gap: 0; align-items: stretch; }

/* ==========================================================================
   HERO
   ========================================================================== */
.hero-section {
  padding: 76px 0 92px;
  position: relative;
  overflow: hidden;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.12fr 1fr;
  gap: 54px;
  align-items: center;
}

.hero-content { position: relative; z-index: 2; min-width: 0; }
.hero-badge-wrap { margin-bottom: 22px; }

.hero-title {
  margin-bottom: 22px;
  line-height: 1.08;
}

.hero-title-prefix {
  display: block;
}

/* Hero Typewriter Dynamic Effect */
.hero-typewriter-wrap {
  display: inline-block;
  position: relative;
  white-space: nowrap;
}

.hero-typewriter-text {
  display: inline;
}

.hero-typewriter-cursor {
  display: inline-block;
  margin-left: 2px;
  font-weight: 300;
  -webkit-text-fill-color: var(--accent-red, #ff2a4b) !important;
  color: var(--accent-red, #ff2a4b) !important;
  animation: heroCursorBlink 0.8s ease-in-out infinite;
  user-select: none;
}

@keyframes heroCursorBlink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0; }
}

.hero-description {
  font-size: 1.14rem;
  line-height: 1.66;
  color: var(--text-muted);
  margin-bottom: 34px;
  max-width: 550px;
}

.hero-cta-group {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 44px;
}

.hero-visual {
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: relative;
  width: 100%;
  min-width: 0;
}

/* 3D Global Earth Visualizer */
.hero-globe-visual {
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  width: 100%;
  min-height: 540px;
}

.hero-globe-wrapper {
  position: relative;
  width: 100%;
  max-width: 600px;
  aspect-ratio: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  user-select: none;
}

/* Atmospheric cosmic radial glow */
.hero-globe-glow {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 86%;
  height: 86%;
  border-radius: 50%;
  background: radial-gradient(circle at 60% 40%, rgba(20, 100, 255, 0.3) 0%, rgba(0, 200, 255, 0.12) 42%, rgba(7, 9, 14, 0) 74%);
  pointer-events: none;
  filter: blur(32px);
  z-index: 1;
}

.hero-globe-canvas {
  position: relative;
  z-index: 2;
  width: 100%;
  height: 100%;
  max-width: 580px;
  max-height: 580px;
  display: block;
  touch-action: pan-y;
  filter: drop-shadow(0 0 40px rgba(0, 160, 255, 0.28));
  transition: transform 0.2s ease-out;
}

/* Glassmorphism floating HUD badges */
.hero-globe-badge {
  position: absolute;
  z-index: 4;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 16px;
  border-radius: 30px;
  background: rgba(10, 16, 30, 0.82);
  border: 1px solid rgba(80, 170, 255, 0.28);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.55), 0 0 16px rgba(0, 170, 255, 0.15);
  pointer-events: none;
  font-family: var(--font-mono, monospace);
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  color: var(--text-primary, #ffffff);
  box-sizing: border-box;
}

.hero-globe-badge-top {
  top: 14px;
  right: 14px;
}

.hero-globe-badge-bottom {
  bottom: 16px;
  left: 14px;
  gap: 14px;
}

.hero-globe-badge .pulse-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #00e5ff;
  box-shadow: 0 0 10px #00e5ff;
  animation: pulseGlobeDot 2s infinite;
}

@keyframes pulseGlobeDot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.35; transform: scale(0.85); }
}

.globe-stat-mini {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}

.globe-stat-val {
  font-weight: 700;
  font-size: 0.95rem;
  color: #ffffff;
}

.globe-stat-lbl {
  font-size: 0.68rem;
  color: var(--text-muted, #8ea1bd);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.globe-badge-divider {
  width: 1px;
  height: 22px;
  background: rgba(255, 255, 255, 0.15);
}

@media (max-width: 991px) {
  .hero-globe-visual {
    min-height: auto;
    margin-top: 20px;
    margin-bottom: 24px;
  }
  .hero-globe-wrapper {
    max-width: 480px;
  }
}

@media (max-width: 768px) {
  .hero-globe-visual {
    min-height: auto;
    margin-top: 16px;
    margin-bottom: 24px;
  }
  .hero-globe-wrapper {
    max-width: min(100%, 390px);
  }
  .hero-globe-badge-top {
    top: 8px;
    left: 50%;
    right: auto;
    transform: translateX(-50%);
    font-size: 0.72rem;
    padding: 6px 14px;
    max-width: calc(100% - 24px);
    white-space: nowrap;
  }
  .hero-globe-badge-bottom {
    bottom: 8px;
    left: 50%;
    right: auto;
    transform: translateX(-50%);
    font-size: 0.74rem;
    padding: 6px 16px;
    gap: 12px;
    max-width: calc(100% - 24px);
    white-space: nowrap;
  }
}

@media (max-width: 576px) {
  .hero-title {
    font-size: clamp(2rem, 8.5vw, 2.75rem);
    line-height: 1.12;
  }
}

@media (max-width: 420px) {
  .hero-globe-wrapper {
    max-width: min(100%, 320px);
  }
  .hero-globe-badge {
    padding: 5px 12px;
    font-size: 0.68rem;
  }
  .hero-globe-badge-top {
    top: 6px;
  }
  .hero-globe-badge-bottom {
    bottom: 6px;
    gap: 10px;
  }
  .globe-stat-val {
    font-size: 0.88rem;
  }
  .globe-stat-lbl {
    font-size: 0.6rem;
  }
}

/* Stats read as a price ladder: hairline-separated, mono figures. */
.hero-stats-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  padding-top: 28px;
  border-top: 1px solid var(--border-glass);
}

.hero-stat-item { display: flex; flex-direction: column; min-width: 0; }

.hero-stat-number {
  font-family: var(--font-mono);
  font-size: clamp(1.45rem, 3vw, 1.85rem);
  font-weight: 700;
  color: var(--text-white);
  line-height: 1;
  margin-bottom: 8px;
  letter-spacing: -0.03em;
}

.hero-stat-label {
  font-size: 0.72rem;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-weight: 600;
  font-family: var(--font-mono);
  line-height: 1.35;
}

/* ==========================================================================
   MARKET TILES
   Four ratio-locked photographs, one per instrument class.
   ========================================================================== */
.market-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.market-tile {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border-glass);
  background: #0a0c11;
  transition: transform var(--tr-normal), border-color var(--tr-normal), box-shadow var(--tr-normal);
  display: block;
}

.market-tile .media { border-radius: 0; }

.market-tile > .media > img {
  filter: saturate(0.55) contrast(1.1) brightness(0.62);
  transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1), filter 0.55s ease;
}

.market-tile:hover {
  transform: translateY(-5px);
  border-color: var(--red-border);
  box-shadow: 0 18px 38px rgba(0, 0, 0, 0.6), 0 0 24px rgba(255, 23, 61, 0.14);
}

.market-tile:hover > .media > img {
  transform: scale(1.07);
  filter: saturate(1) contrast(1.06) brightness(0.86);
}

.market-tile-body {
  position: absolute;
  inset: auto 0 0 0;
  z-index: 3;
  padding: 40px 18px 16px;
  background: linear-gradient(0deg, rgba(5, 6, 10, 0.94) 10%, rgba(5, 6, 10, 0.55) 60%, transparent 100%);
  pointer-events: none;
}

.market-tile-name {
  font-family: var(--font-display);
  font-size: 1.02rem;
  font-weight: 800;
  font-stretch: 108%;
  color: #ffffff;
  letter-spacing: -0.015em;
  line-height: 1.1;
}

.market-tile-meta {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  color: #94a1b3;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  margin-top: 6px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.market-tile-meta .dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--bull-green);
  box-shadow: 0 0 7px var(--bull-green-glow);
  flex-shrink: 0;
}

/* Corner index, drawn like a chart pane number. */
.market-tile-idx {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 3;
  font-family: var(--font-mono);
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: rgba(255, 255, 255, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(5, 6, 10, 0.55);
  backdrop-filter: blur(6px);
  padding: 3px 7px;
  border-radius: 3px;
}

/* ==========================================================================
   ACADEMY MOSAIC
   An asymmetric photo band — one tall frame, two stacked.
   ========================================================================== */
.mosaic-grid {
  display: grid;
  grid-template-columns: 1.35fr 1fr;
  grid-template-rows: repeat(2, 1fr);
  gap: 18px;
}

.mosaic-grid > .mosaic-lead { grid-row: span 2; }
.mosaic-grid .media { height: 100%; border-radius: var(--radius); }
.mosaic-lead .media { aspect-ratio: 4 / 5; }
.mosaic-grid .media-sm { aspect-ratio: 16 / 9; }

.mosaic-item {
  position: relative;
  border: 1px solid var(--border-glass);
  border-radius: var(--radius);
  overflow: hidden;
  transition: border-color var(--tr-normal), box-shadow var(--tr-normal);
}

.mosaic-item:hover {
  border-color: var(--red-border);
  box-shadow: 0 0 26px rgba(255, 23, 61, 0.14);
}

/* ==========================================================================
   INTERACTIVE CHART TERMINAL
   ========================================================================== */
.terminal-window {
  background: #090b10;
  border: 1px solid var(--red-border);
  border-radius: 18px;
  box-shadow: 0 26px 62px rgba(0, 0, 0, 0.75), 0 0 36px rgba(255, 23, 61, 0.14);
  overflow: hidden;
  position: relative;
  min-width: 0;
}

.terminal-header {
  background: #0e1118;
  padding: 12px 16px;
  border-bottom: 1px solid var(--border-glass);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-width: 0;
}

/* Tabs scroll sideways inside the terminal instead of widening the page. */
.terminal-tabs {
  display: flex;
  align-items: center;
  gap: 6px;
  overflow-x: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
  min-width: 0;
}

.terminal-tabs::-webkit-scrollbar { display: none; }

.terminal-tab-btn {
  background: transparent;
  border: 1px solid transparent;
  color: var(--text-dim);
  font-family: var(--font-mono);
  font-size: 0.73rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  padding: 5px 11px;
  border-radius: 6px;
  cursor: pointer;
  transition: color var(--tr-fast), background var(--tr-fast), border-color var(--tr-fast);
  white-space: nowrap;
  flex-shrink: 0;
}

.terminal-tab-btn:hover { color: var(--text-white); background: rgba(255, 255, 255, 0.05); }

.terminal-tab-btn.active {
  background: var(--red-subtle);
  border-color: rgba(255, 23, 61, 0.42);
  color: #fff;
}

.terminal-status-indicators {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  flex-shrink: 0;
}

.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 9px;
  border-radius: 4px;
  white-space: nowrap;
}

.status-badge.live {
  background: var(--bull-green-subtle);
  color: var(--bull-green);
  border: 1px solid rgba(0, 229, 153, 0.3);
}

.status-badge .pulse-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--bull-green);
  box-shadow: 0 0 7px var(--bull-green-glow);
  animation: zone-breathe 2.6s infinite ease-in-out;
  border: 0;
}

.terminal-body {
  padding: 20px;
  position: relative;
  background:
    linear-gradient(rgba(9, 11, 16, 0.95), rgba(9, 11, 16, 0.95)),
    linear-gradient(to right, rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: 100% 100%, 30px 30px, 30px 30px;
  min-height: 320px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.terminal-body.terminal-body-tall {
  padding: 0;
  min-height: auto;
  background: #080606;
  overflow: hidden;
}

.chart-canvas-container { width: 100%; height: 300px; position: relative; }
.chart-canvas-container canvas { width: 100%; height: 100%; display: block; }

/* Terminal Chart Slideshow */
.terminal-slideshow-container {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  max-height: 560px;
  min-height: 220px;
  overflow: hidden;
  background: #060404;
  border-radius: 0;
}

@media (max-width: 991px) {
  .terminal-slideshow-container {
    aspect-ratio: 16 / 9.5;
    max-height: 440px;
  }
}
@media (max-width: 640px) {
  .terminal-slideshow-container {
    aspect-ratio: 16 / 10;
    min-height: 200px;
  }
}

.terminal-slides-stage {
  position: relative;
  width: 100%;
  height: 100%;
}

.terminal-slide-item {
  position: absolute;
  inset: 0;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.35s ease, transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  transform: scale(0.99);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: zoom-in;
  background: #060404;
}

.terminal-slide-item.is-active {
  opacity: 1;
  visibility: visible;
  transform: scale(1);
  z-index: 2;
}

.terminal-slide-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  display: block;
}

.terminal-slide-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(15, 10, 10, 0.85);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 10;
  transition: all 0.2s ease;
}
.terminal-slide-arrow:hover {
  background: #ff173d;
  border-color: #ff173d;
  color: #fff;
  transform: translateY(-50%) scale(1.08);
}
.terminal-slide-prev { left: 12px; }
.terminal-slide-next { right: 12px; }

@media (max-width: 640px) {
  .terminal-slide-arrow {
    width: 32px;
    height: 32px;
  }
  .terminal-slide-prev { left: 6px; }
  .terminal-slide-next { right: 6px; }
}
.terminal-dot-btn {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.35);
  border: none;
  padding: 0;
  cursor: pointer;
  transition: all 0.25s ease;
}
.terminal-dot-btn.is-active {
  background: #ff173d;
  width: 22px;
  border-radius: 4px;
}

.terminal-footer {
  padding: 11px 16px;
  background: #0e1118;
  border-top: 1px solid var(--border-glass);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--text-dim);
}

.terminal-metric { color: var(--text-white); font-weight: 600; font-variant-numeric: tabular-nums; }

/* ==========================================================================
   INDICATOR SETUP MARQUEE
   ---------------------------------------------------------------------------
   An infinite, continuously-scrolling band of chart screenshots.

   The track holds the card set twice and slides from 0 to -50%. At -50% the
   second copy sits exactly where the first started, so restarting the
   animation is invisible. Everything runs on one composited transform —
   there is no JS loop and no per-frame layout.
   ========================================================================== */
.indicator-slider-section { position: relative; overflow: hidden; padding: 92px 0; }

.indicator-marquee {
  position: relative;
  width: 100%;
  margin-top: 30px;
  overflow: hidden;
  /* Fade both ends so cards enter and leave instead of being chopped off. */
  mask-image: linear-gradient(90deg, transparent, #000 5%, #000 95%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 5%, #000 95%, transparent);
}

.indicator-marquee-track {
  display: flex;
  align-items: stretch;
  gap: 20px;
  width: max-content;
  animation: none;
  will-change: transform;
}

/* Let people stop the band to actually read a card. `is-frozen` is set by
   the lightbox so the row isn't sliding behind the open modal. */
.indicator-marquee:hover .indicator-marquee-track,
.indicator-marquee:focus-within .indicator-marquee-track,
.indicator-marquee.is-frozen .indicator-marquee-track {
  animation-play-state: paused;
}

@keyframes indicator-marquee {
  from { transform: translate3d(0, 0, 0); }
  to   { transform: translate3d(-50%, 0, 0); }
}

/* Cards are sized in absolute terms, not as a percentage of the viewport,
   so the marquee shows roughly 3 at desktop and never fewer than 2. */
.indicator-slide-card {
  /* Width is stepped per breakpoint further down, not derived from vw — a
     vw clamp squeezed these to ~178px on a phone and wrecked the labels. */
  flex: 0 0 auto;
  background: #ffffff;
  border: 1px solid var(--cream-border);
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.06);
  transition: transform var(--tr-normal), border-color var(--tr-normal), box-shadow var(--tr-normal);
  cursor: zoom-in;
  display: flex;
  flex-direction: column;
}

.indicator-slide-card:hover {
  transform: translateY(-5px);
  border-color: var(--cream-border-hover);
  box-shadow: 0 18px 38px rgba(255, 23, 61, 0.14);
}

/* Ratio-locked to the 800x480 chart artwork, so nothing is cropped and every
   card in the band is exactly the same height. */
.indicator-slide-img-wrap {
  width: 100%;
  aspect-ratio: 800 / 480;
  background: #080a0f;
  position: relative;
  overflow: hidden;
}

.indicator-slide-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.indicator-slide-card:hover .indicator-slide-img { transform: scale(1.04); }

.indicator-slide-badge {
  position: absolute;
  bottom: 10px;
  left: 10px;
  background: rgba(0, 0, 0, 0.78);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 23, 61, 0.4);
  color: #fff;
  font-family: var(--font-mono);
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  padding: 3px 7px;
  border-radius: 4px;
  white-space: nowrap;
}

.indicator-slide-footer {
  padding: 13px 15px;
  background: #ffffff;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  border-top: 1px solid rgba(0, 0, 0, 0.06);
  flex-grow: 1;
}

.indicator-slide-copy { min-width: 0; }

.indicator-slide-title {
  font-family: var(--font-display);
  font-size: 0.84rem;
  font-weight: 700;
  font-stretch: 104%;
  color: var(--cream-text-dark);
  letter-spacing: -0.012em;
  line-height: 1.28;
}

.indicator-slide-desc {
  font-size: 0.66rem;
  color: var(--cream-text-muted);
  font-family: var(--font-mono);
  margin-top: 4px;
  line-height: 1.4;
}

.indicator-slide-zoom {
  flex-shrink: 0;
  color: var(--red-primary);
  transition: transform var(--tr-fast);
}

.indicator-slide-card:hover .indicator-slide-zoom { transform: scale(1.2); }

/* A band that scrolls forever is exactly what reduced-motion asks us not to
   do. Stop it and let the cards wrap onto a static grid instead. */
@media (prefers-reduced-motion: reduce) {
  .indicator-marquee {
    mask-image: none;
    -webkit-mask-image: none;
    overflow-x: auto;
  }
  .indicator-marquee-track { animation: none; }
}

/* ==========================================================================
   VERTICAL FEATURE SWITCHER
   ========================================================================== */
.vertical-feature-grid {
  display: grid;
  grid-template-columns: 1fr 1.12fr;
  gap: 48px;
  align-items: center;
}

.vertical-hover-list { display: flex; flex-direction: column; gap: 14px; }

.vertical-hover-card {
  padding: 22px 26px;
  background: rgba(16, 20, 29, 0.66);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius);
  cursor: pointer;
  transition: transform var(--tr-normal), background var(--tr-normal),
              border-color var(--tr-normal), box-shadow var(--tr-normal);
  position: relative;
  overflow: hidden;
}

.vertical-hover-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 3px;
  height: 100%;
  background: var(--red-gradient);
  transform: scaleY(0);
  transform-origin: top center;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.vertical-hover-card.active,
.vertical-hover-card:hover {
  background: rgba(22, 28, 40, 0.95);
  border-color: rgba(255, 23, 61, 0.4);
  transform: translateX(6px);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.45);
}

.vertical-hover-card.active::before,
.vertical-hover-card:hover::before { transform: scaleY(1); }

.vertical-card-title {
  font-family: var(--font-display);
  font-size: 1.06rem;
  font-weight: 700;
  font-stretch: 103%;
  letter-spacing: -0.015em;
  color: var(--text-white);
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 10px;
  line-height: 1.3;
}

.vertical-card-title svg { flex-shrink: 0; }
.vertical-card-desc { font-size: 0.9rem; color: var(--text-muted); line-height: 1.55; }

.vertical-preview-pane {
  position: relative;
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid var(--red-border);
  box-shadow: 0 22px 52px rgba(0, 0, 0, 0.7), 0 0 36px rgba(255, 23, 61, 0.14);
  background: #090c12;
  /* Matches the 600x380 preview artwork, so the pane never letterboxes
     and never changes height as the three previews swap. */
  aspect-ratio: 600 / 380;
  display: flex;
  align-items: center;
  justify-content: center;
}

.vertical-preview-pane img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  transition: opacity 0.28s ease;
}

/* Dip while the src is swapped, so previews cross-fade instead of snapping. */
.vertical-preview-pane img.is-swapping { opacity: 0.3; }

/* ==========================================================================
   RISK:REWARD CALCULATOR
   ========================================================================== */
.rr-calc-card {
  background: #ffffff;
  border: 1px solid var(--cream-border);
  border-radius: var(--radius-lg);
  padding: 40px;
  box-shadow: 0 16px 42px rgba(20, 15, 10, 0.06);
}

.rr-calc-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 40px;
  align-items: center;
}

.rr-slider-group { margin-bottom: 26px; }

.rr-slider-label-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  margin-bottom: 10px;
  flex-wrap: wrap;
}

.rr-slider-label { font-size: 0.9rem; font-weight: 700; color: var(--cream-text-dark); }

.rr-slider-val {
  font-family: var(--font-mono);
  font-size: 1.08rem;
  font-weight: 700;
  color: var(--red-primary);
}

.rr-range-input {
  width: 100%;
  height: 6px;
  border-radius: 4px;
  background: #e3e6ec;
  outline: none;
  -webkit-appearance: none;
  appearance: none;
  cursor: pointer;
}

.rr-range-input::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--red-primary);
  border: 3px solid #fff;
  box-shadow: 0 0 0 1px rgba(255, 23, 61, 0.4), 0 2px 10px var(--red-glow);
  cursor: pointer;
  transition: transform var(--tr-fast);
}

.rr-range-input::-webkit-slider-thumb:hover { transform: scale(1.14); }

.rr-range-input::-moz-range-thumb {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--red-primary);
  border: 3px solid #fff;
  box-shadow: 0 2px 10px var(--red-glow);
  cursor: pointer;
}

.rr-result-box {
  background: #0c0f16;
  border: 1px solid var(--red-border);
  border-radius: 16px;
  padding: 30px 26px;
  color: #fff;
  text-align: center;
  box-shadow: 0 16px 38px rgba(0, 0, 0, 0.55);
}

.rr-result-title {
  font-size: 0.7rem;
  font-family: var(--font-mono);
  color: #94a3b8;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  margin-bottom: 10px;
}

.rr-result-val {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 5vw, 2.8rem);
  font-weight: 800;
  font-stretch: 108%;
  letter-spacing: -0.03em;
  color: var(--bull-green);
  line-height: 1.05;
  margin-bottom: 8px;
}

.rr-result-note { font-size: 0.84rem; color: #94a3b8; line-height: 1.55; }

/* ==========================================================================
   PRICING
   ========================================================================== */
.pricing-grid-2col {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px;
  max-width: 900px;
  margin: 40px auto 0;
  align-items: stretch;
}

.pricing-card {
  background: var(--bg-surface-2);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-lg);
  padding: 40px 32px;
  position: relative;
  display: flex;
  flex-direction: column;
  transition: transform var(--tr-normal), border-color var(--tr-normal), box-shadow var(--tr-normal);
}

.pricing-card:hover {
  transform: translateY(-5px);
  border-color: rgba(255, 23, 61, 0.4);
  box-shadow: 0 20px 44px rgba(0, 0, 0, 0.5);
}

.pricing-card.featured {
  background: linear-gradient(180deg, #141824 0%, #0c0f16 100%);
  border: 1px solid var(--red-primary);
  box-shadow: 0 0 38px rgba(255, 23, 61, 0.24);
}

.pricing-card.featured:hover { transform: translateY(-7px); }

.popular-badge {
  position: absolute;
  top: -13px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--red-gradient);
  color: #fff;
  font-family: var(--font-mono);
  font-size: 0.66rem;
  font-weight: 700;
  padding: 5px 14px;
  border-radius: 999px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  white-space: nowrap;
  box-shadow: 0 0 18px var(--red-glow);
}

.pricing-plan-name {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--text-white);
  margin-bottom: 8px;
}

.pricing-plan-desc { font-size: 0.88rem; color: var(--text-dim); margin-bottom: 24px; }

.pricing-amount-wrap {
  display: flex;
  align-items: baseline;
  gap: 6px;
  flex-wrap: wrap;
  margin-bottom: 26px;
}

.pricing-currency { font-size: 1.5rem; font-weight: 700; color: var(--text-white); font-family: var(--font-mono); }

.pricing-val {
  font-family: var(--font-display);
  font-size: clamp(2.8rem, 7vw, 3.4rem);
  font-weight: 800;
  font-stretch: 110%;
  letter-spacing: -0.04em;
  color: var(--text-white);
  line-height: 1;
}

.pricing-period { font-size: 0.82rem; color: var(--text-dim); font-family: var(--font-mono); }

.pricing-features-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 13px;
  margin-bottom: 32px;
  flex-grow: 1;
}

.pricing-features-list li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 0.91rem;
  color: var(--text-platinum);
  line-height: 1.45;
}

.pricing-features-list li svg { color: var(--red-primary); flex-shrink: 0; margin-top: 3px; }

/* ==========================================================================
   LIGHTBOX
   ========================================================================== */
.chart-lightbox {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.94);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  z-index: 999999;
  display: none;
  align-items: center;
  justify-content: center;
  padding: clamp(12px, 3vw, 24px);
}

.chart-lightbox.open { display: flex; animation: lb-in 0.25s ease-out; }

@keyframes lb-in { from { opacity: 0; } to { opacity: 1; } }

.chart-lightbox-inner {
  max-width: 960px;
  max-height: 90vh;
  width: auto;
  background: #090b10;
  border: 1px solid rgba(255, 23, 61, 0.4);
  border-radius: var(--radius, 8px);
  overflow: hidden;
  box-shadow: 0 25px 70px rgba(0, 0, 0, 0.95);
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: lb-pop 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes lb-pop { from { transform: scale(0.96); } to { transform: scale(1); } }

.chart-lightbox-img {
  max-width: 100%;
  max-height: 82vh;
  width: auto;
  height: auto;
  display: block;
  object-fit: contain;
}

.chart-lightbox-close {
  position: absolute;
  top: 12px;
  right: 12px;
  background: rgba(0, 0, 0, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.25);
  color: #fff;
  width: 36px;
  height: 36px;
  border-radius: 6px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background var(--tr-fast), transform var(--tr-fast);
  z-index: 10;
}

.chart-lightbox-close:hover { background: var(--red-primary); border-color: var(--red-primary); transform: rotate(90deg); }

/* ==========================================================================
   COURSES
   ========================================================================== */
.courses-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  align-items: stretch;
}

.course-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-lg);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transition: transform var(--tr-normal), border-color var(--tr-normal), box-shadow var(--tr-normal);
  position: relative;
}

.course-card:hover {
  transform: translateY(-6px);
  border-color: rgba(255, 23, 61, 0.4);
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.5), 0 0 22px rgba(255, 23, 61, 0.14);
}

/* Course cover art — ratio-locked so every card in a row lines up. */
.course-cover {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: #0a0c11;
  border-bottom: 1px solid var(--border-glass);
}

.course-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.6) contrast(1.08) brightness(0.68);
  transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1), filter 0.55s ease;
}

.course-card:hover .course-cover img {
  transform: scale(1.06);
  filter: saturate(1) contrast(1.05) brightness(0.88);
}

.course-cover::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(13, 16, 23, 0.85) 0%, transparent 62%);
  pointer-events: none;
}

.course-cover-tag {
  position: absolute;
  left: 14px;
  bottom: 12px;
  z-index: 2;
  font-family: var(--font-mono);
  font-size: 0.64rem;
  font-weight: 700;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: #fff;
  background: rgba(255, 23, 61, 0.9);
  padding: 4px 9px;
  border-radius: 4px;
}

.course-header { padding: 26px 26px 18px; border-bottom: 1px solid var(--border-glass); }

.course-tag {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  padding: 4px 9px;
  border-radius: 5px;
  background: rgba(255, 255, 255, 0.06);
  color: var(--text-dim);
  margin-bottom: 14px;
}

.course-title { font-size: 1.28rem; line-height: 1.24; margin-bottom: 14px; color: var(--text-white); }

.course-meta {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  font-size: 0.76rem;
  font-family: var(--font-mono);
  color: var(--text-dim);
}

.course-meta span { display: inline-flex; align-items: center; gap: 6px; }
.course-meta svg { flex-shrink: 0; }

.course-body { padding: 22px 26px; flex-grow: 1; }
.course-body p { font-size: 0.91rem; line-height: 1.62; color: var(--text-muted); margin-bottom: 20px; }

.course-summary-line {
  font-size: 0.88rem;
  line-height: 1.5;
  color: var(--text-muted);
  margin-bottom: 14px;
}

.course-highlights,
.course-modules-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin: 0 0 4px 0;
  padding: 0;
}

.course-highlights li,
.course-module-point {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  font-size: 0.85rem;
  color: var(--text-platinum);
  line-height: 1.4;
}

.course-highlights li svg,
.course-module-point svg {
  color: var(--red-primary);
  flex-shrink: 0;
  margin-top: 2px;
}

.course-module-num {
  font-family: var(--font-mono);
  font-size: 0.66rem;
  font-weight: 700;
  color: var(--red-primary);
  background: rgba(255, 23, 61, 0.1);
  padding: 1px 5px;
  border-radius: 3px;
  flex-shrink: 0;
  margin-top: 1px;
}

.course-modules-more {
  display: none;
  flex-direction: column;
  gap: 8px;
  margin-top: 8px;
}

.course-modules-more.is-expanded {
  display: flex;
}

.btn-syllabus-toggle {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: transparent;
  border: none;
  color: var(--red-primary);
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  padding: 8px 0 0 0;
  cursor: pointer;
  transition: color var(--tr-fast), transform var(--tr-fast);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.btn-syllabus-toggle:hover {
  color: var(--red-hover);
  transform: translateX(2px);
}

.section-cream .course-module-point { color: #232a35; }
.section-cream .course-summary-line { color: var(--cream-text-muted); }

.course-footer {
  padding: 18px 26px;
  background: rgba(0, 0, 0, 0.25);
  border-top: 1px solid var(--border-glass);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
}

.course-price-wrap { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.course-price-orig { font-size: 0.9rem; color: var(--text-dim); text-decoration: line-through; font-family: var(--font-mono); }

.course-price-now {
  font-family: var(--font-display);
  font-size: 1.55rem;
  font-weight: 800;
  font-stretch: 108%;
  letter-spacing: -0.03em;
  color: var(--text-white);
  display: inline-flex;
  align-items: baseline;
  gap: 5px;
  flex-wrap: wrap;
}

.course-price-usd {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-dim);
  font-family: var(--font-mono);
  letter-spacing: 0;
}

.section-cream .course-price-usd {
  color: var(--cream-text-dim);
}

.bundle-price-usd {
  font-size: 1.12rem !important;
  font-weight: 600 !important;
  color: #94a3b8 !important;
  font-family: var(--font-mono);
  letter-spacing: 0;
  margin-left: 6px;
  vertical-align: baseline;
}

/* Paper-section variants */
.section-cream .course-card {
  background: #ffffff;
  border-color: var(--cream-border);
  box-shadow: 0 10px 30px rgba(20, 15, 10, 0.05);
}

.section-cream .course-card:hover {
  border-color: var(--cream-border-hover);
  box-shadow: 0 18px 40px rgba(255, 23, 61, 0.12);
}

.section-cream .course-cover { border-bottom-color: var(--cream-border); }

/* On paper cards the dark scrim would read as a grey band, and the tag
   already carries its own background — so keep this barely there. */
.section-cream .course-cover::after {
  background: linear-gradient(0deg, rgba(12, 15, 22, 0.35) 0%, transparent 45%);
}

.section-cream .course-cover img { filter: saturate(0.72) contrast(1.05) brightness(0.8); }
.section-cream .course-card:hover .course-cover img { filter: saturate(1) contrast(1.02) brightness(0.96); }
.section-cream .course-header { border-bottom: 1px solid var(--cream-border); }
.section-cream .course-title { color: var(--cream-text-dark); }
.section-cream .course-meta { color: var(--cream-text-dim); }
.section-cream .course-tag { background: rgba(16, 20, 28, 0.06); color: var(--cream-text-muted); }
.section-cream .course-body p { color: var(--cream-text-muted); }
.section-cream .course-highlights li { color: #232a35; }
.section-cream .course-footer { background: #faf8f4; border-top: 1px solid var(--cream-border); }
.section-cream .course-price-now { color: var(--cream-text-dark); }
.section-cream .course-price-orig { color: var(--cream-text-dim); }

/* ==========================================================================
   CURRICULUM ACCORDION
   ========================================================================== */
.curriculum-accordion { display: flex; flex-direction: column; gap: 12px; }

.accordion-item {
  background: var(--bg-surface-2);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius);
  overflow: hidden;
  transition: border-color var(--tr-fast), background var(--tr-fast);
}

.accordion-item.active { border-color: rgba(255, 23, 61, 0.4); background: #0d1017; }

.accordion-header {
  width: 100%;
  padding: 17px 20px;
  background: transparent;
  border: none;
  color: var(--text-white);
  font-family: var(--font-body);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  cursor: pointer;
  text-align: left;
}

.accordion-title-wrap { display: flex; align-items: center; gap: 13px; min-width: 0; flex-wrap: wrap; }

.module-number {
  font-family: var(--font-mono);
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  padding: 4px 8px;
  background: rgba(255, 23, 61, 0.12);
  border: 1px solid rgba(255, 23, 61, 0.3);
  color: var(--red-primary);
  border-radius: 4px;
  flex-shrink: 0;
}

.accordion-title { font-size: 1rem; font-weight: 600; color: var(--text-platinum); line-height: 1.35; }
.accordion-icon { color: var(--text-dim); transition: transform var(--tr-normal), color var(--tr-normal); flex-shrink: 0; }
.accordion-item.active .accordion-icon { transform: rotate(180deg); color: var(--red-primary); }

.accordion-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  background: rgba(0, 0, 0, 0.2);
}

.lesson-list { list-style: none; padding: 8px 20px 18px; display: flex; flex-direction: column; gap: 9px; }

.lesson-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 13px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.04);
  border-radius: var(--radius-sm);
  font-size: 0.87rem;
  color: var(--text-muted);
  transition: background var(--tr-fast), color var(--tr-fast), border-color var(--tr-fast);
}

.lesson-item:hover {
  background: rgba(255, 255, 255, 0.045);
  border-color: rgba(255, 23, 61, 0.22);
  color: var(--text-white);
}

.lesson-item span:first-child { display: inline-flex; align-items: center; gap: 10px; min-width: 0; }
.lesson-item span:first-child svg { color: var(--red-primary); flex-shrink: 0; }

.lesson-duration {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--text-dim);
  background: rgba(255, 255, 255, 0.05);
  padding: 2px 8px;
  border-radius: 4px;
  flex-shrink: 0;
}

/* ==========================================================================
   FEATURES
   ========================================================================== */
.features-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }

.feature-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-lg);
  padding: 32px 26px;
  transition: transform var(--tr-normal), border-color var(--tr-normal), box-shadow var(--tr-normal);
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
}

.feature-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--red-gradient);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.feature-card:hover::before { transform: scaleX(1); }

.feature-card:hover {
  transform: translateY(-6px);
  border-color: rgba(255, 23, 61, 0.4);
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.5), 0 0 24px rgba(255, 23, 61, 0.14);
}

.feature-icon-box {
  width: 54px;
  height: 54px;
  border-radius: 13px;
  background: rgba(255, 23, 61, 0.1);
  border: 1px solid rgba(255, 23, 61, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--red-primary);
  margin-bottom: 22px;
  flex-shrink: 0;
  transition: background var(--tr-normal), color var(--tr-normal),
              box-shadow var(--tr-normal), transform var(--tr-normal);
}

.feature-card:hover .feature-icon-box {
  background: var(--red-primary);
  color: #fff;
  transform: translateY(-2px) rotate(-4deg);
  box-shadow: 0 0 22px rgba(255, 23, 61, 0.45);
}

.feature-title { font-size: 1.18rem; font-weight: 700; line-height: 1.32; margin-bottom: 12px; color: var(--text-white); }
.feature-desc { font-size: 0.91rem; line-height: 1.62; color: var(--text-muted); flex-grow: 1; }

.section-cream .feature-card {
  background: #ffffff;
  border-color: var(--cream-border);
  box-shadow: 0 10px 30px rgba(20, 15, 10, 0.05);
}

.section-cream .feature-card:hover {
  border-color: var(--cream-border-hover);
  box-shadow: 0 18px 40px rgba(255, 23, 61, 0.12);
}

.section-cream .feature-title { color: var(--cream-text-dark); }
.section-cream .feature-desc { color: var(--cream-text-muted); }

/* ==========================================================================
   PROOF GRID
   ========================================================================== */
.proof-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }

/* Testimonial avatar initials — mono, like an account ticker. */
.proof-avatar {
  width: 42px;
  height: 42px;
  border-radius: 10px;
  background: #0c0f16;
  color: var(--red-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 0.82rem;
  letter-spacing: 0.04em;
  flex-shrink: 0;
}

/* ==========================================================================
   CTA BANNER
   ========================================================================== */
.cta-banner {
  background: radial-gradient(ellipse 80% 120% at 50% 0%, rgba(255, 23, 61, 0.24) 0%, rgba(11, 14, 20, 0.96) 62%);
  border: 1px solid rgba(255, 23, 61, 0.35);
  border-radius: 24px;
  padding: 64px 40px;
  text-align: center;
  box-shadow: 0 22px 54px rgba(0, 0, 0, 0.6), 0 0 38px rgba(255, 23, 61, 0.14);
  max-width: 920px;
  margin: 0 auto;
  position: relative;
  overflow: hidden;
}

/* Faint candlestick grid inside the banner. */
.cta-banner::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(to right, rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: 34px 34px;
  mask-image: radial-gradient(ellipse 70% 70% at 50% 40%, #000, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 70% 70% at 50% 40%, #000, transparent 75%);
  pointer-events: none;
}

.cta-banner > * { position: relative; z-index: 1; }
.cta-banner .badge-pill { justify-content: center; }
.cta-banner h2 { font-size: clamp(1.85rem, 4vw, 2.6rem); margin-bottom: 16px; color: var(--text-white); }
.cta-banner p { font-size: 1.08rem; color: var(--text-muted); max-width: 620px; margin: 0 auto 32px; line-height: 1.66; }

.cta-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
}

/* ==========================================================================
   CONTACT
   ========================================================================== */
.contact-grid { display: grid; grid-template-columns: 1fr 1.12fr; gap: 48px; align-items: start; }
.contact-info-col { display: flex; flex-direction: column; gap: 16px; }

.contact-channel-card {
  display: flex;
  align-items: flex-start;
  gap: 18px;
  padding: 20px 22px;
  background: var(--bg-surface);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius);
  transition: transform var(--tr-fast), border-color var(--tr-fast), box-shadow var(--tr-fast);
  min-width: 0;
}

.contact-channel-card:hover {
  border-color: rgba(255, 23, 61, 0.4);
  transform: translateX(4px);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.32);
}

.contact-channel-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: rgba(255, 23, 61, 0.1);
  border: 1px solid rgba(255, 23, 61, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--red-primary);
  flex-shrink: 0;
}

.contact-channel-content { min-width: 0; }
.contact-channel-content h4 { font-size: 1.02rem; margin-bottom: 5px; color: var(--text-white); }
.contact-channel-content p { font-size: 0.85rem; color: var(--text-dim); margin-bottom: 7px; line-height: 1.45; }

.contact-channel-content a {
  font-size: 0.9rem;
  color: var(--red-primary);
  font-weight: 600;
  overflow-wrap: anywhere;
  transition: color var(--tr-fast);
}

.contact-channel-content a:hover { color: #ff7289; text-decoration: underline; }

.contact-form-box {
  background: var(--bg-surface);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-lg);
  padding: 36px;
  box-shadow: 0 22px 52px rgba(0, 0, 0, 0.5);
}

.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin-bottom: 18px; }
.form-group { display: flex; flex-direction: column; gap: 8px; margin-bottom: 18px; }

.form-label {
  font-size: 0.72rem;
  font-weight: 700;
  font-family: var(--font-mono);
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.13em;
}

.form-control {
  width: 100%;
  max-width: 100%;
  padding: 13px 15px;
  background: rgba(5, 7, 12, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 10px;
  color: var(--text-white);
  font-family: var(--font-body);
  font-size: 0.94rem;
  transition: border-color var(--tr-fast), box-shadow var(--tr-fast), background var(--tr-fast);
  outline: none;
}

.form-control::placeholder { color: var(--text-dim); }

.form-control:focus {
  border-color: var(--red-primary);
  box-shadow: 0 0 0 3px rgba(255, 23, 61, 0.14);
  background: rgba(10, 13, 20, 0.92);
}

.form-control option { background: #090b10; color: #fff; }
textarea.form-control { min-height: 124px; resize: vertical; }

.alert-box {
  padding: 14px 18px;
  border-radius: 10px;
  font-size: 0.91rem;
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 22px;
  font-weight: 500;
}

.alert-success { background: rgba(0, 229, 153, 0.12); border: 1px solid rgba(0, 229, 153, 0.35); color: #00e599; }
.alert-error { background: rgba(255, 23, 61, 0.12); border: 1px solid rgba(255, 23, 61, 0.35); color: #ff7289; }

/* ==========================================================================
   LEGAL PAGES
   ========================================================================== */
.legal-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-lg);
  padding: 48px;
  max-width: 860px;
  margin: 0 auto;
  box-shadow: 0 22px 52px rgba(0, 0, 0, 0.5);
}

.legal-card h2 {
  font-size: 1.28rem;
  margin-top: 34px;
  margin-bottom: 12px;
  color: var(--text-white);
  padding-bottom: 9px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.legal-card h2:first-of-type { margin-top: 0; }
.legal-card p { font-size: 0.95rem; color: var(--text-muted); line-height: 1.78; margin-bottom: 16px; }

/* ==========================================================================
   STAT STRIP — small mono data cards used across sections
   ========================================================================== */
.stat-strip { display: flex; gap: 18px; flex-wrap: wrap; }

.stat-chip {
  padding: 16px 20px;
  background: var(--bg-surface-2);
  border: 1px solid var(--border-glass);
  border-radius: 12px;
  flex: 1 1 150px;
  min-width: 0;
  transition: border-color var(--tr-normal), transform var(--tr-normal);
}

.stat-chip:hover { border-color: var(--red-border); transform: translateY(-3px); }

.stat-chip-val {
  font-family: var(--font-mono);
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1;
  color: var(--red-primary);
}

.stat-chip-val.green { color: var(--bull-green); }

.stat-chip-label {
  font-size: 0.7rem;
  font-family: var(--font-mono);
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-top: 8px;
  line-height: 1.35;
}

.section-cream .stat-chip { background: #ffffff; border-color: var(--cream-border); }
.section-cream .stat-chip-label { color: var(--cream-text-dim); }

/* Three-up card row. Replaces the hard-coded inline `repeat(3, 1fr)` grids
   that had no breakpoints and overflowed narrow screens. */
.trio-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }

/* Square icon tile used at the head of a card. */
.icon-tile {
  width: 52px;
  height: 52px;
  border-radius: 13px;
  background: rgba(255, 23, 61, 0.1);
  border: 1px solid rgba(255, 23, 61, 0.22);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  color: var(--red-primary);
  flex-shrink: 0;
  transition: background var(--tr-normal), color var(--tr-normal),
              transform var(--tr-normal), box-shadow var(--tr-normal);
}

.cream-card:hover .icon-tile,
.card-glass:hover .icon-tile {
  background: var(--red-primary);
  color: #fff;
  transform: translateY(-2px) rotate(-4deg);
  box-shadow: 0 8px 20px rgba(255, 23, 61, 0.32);
}

/* Checklist rows */
.check-list { display: flex; flex-direction: column; gap: 12px; }

.check-list li,
.check-row {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 0.95rem;
  line-height: 1.5;
  list-style: none;
}

.check-list svg, .check-row svg { flex-shrink: 0; margin-top: 3px; }

/* ==========================================================================
   RESPONSIVE
   ========================================================================== */
@media (max-width: 1100px) {
  .market-grid { grid-template-columns: repeat(2, 1fr); }
  .trio-grid { grid-template-columns: repeat(2, 1fr); gap: 22px; }
}

@media (max-width: 1024px) {
  .hero-grid { grid-template-columns: 1fr; gap: 42px; }
  .hero-section { padding: 52px 0 70px; }
  .vertical-feature-grid { grid-template-columns: 1fr; gap: 34px; }
  .rr-calc-grid { grid-template-columns: 1fr; gap: 32px; }
  .pricing-grid-2col { grid-template-columns: 1fr; max-width: 460px; }
  .courses-grid { grid-template-columns: 1fr; max-width: 520px; margin-inline: auto; }
  .features-grid { grid-template-columns: repeat(2, 1fr); }
  .proof-grid { grid-template-columns: 1fr; max-width: 520px; margin-inline: auto; }
  .contact-grid { grid-template-columns: 1fr; gap: 34px; }

  /* Every two-column split collapses to one column. */
  .split-grid,
  .split-feature-grid,
  .split-grid-media-left,
  .split-grid-media-right { grid-template-columns: 1fr; gap: 34px; }

  /* Media always leads on narrow screens, whatever the source order. */
  .split-grid-media-right > *:first-child { order: 2; }
  .split-grid-media-right > *:last-child { order: 1; }

  .indicator-slider-section { padding: 70px 0; }
  .indicator-marquee-track { gap: 16px; }

  .mosaic-grid { grid-template-columns: 1fr 1fr; grid-template-rows: auto; }
  .mosaic-grid > .mosaic-lead { grid-row: auto; grid-column: 1 / -1; }
  .mosaic-lead .media { aspect-ratio: 16 / 9; }
}

@media (max-width: 768px) {
  .features-grid { grid-template-columns: 1fr; }
  .trio-grid { grid-template-columns: 1fr; max-width: 520px; margin-inline: auto; }
  .form-row { grid-template-columns: 1fr; gap: 0; }
  .contact-form-box { padding: 24px; }
  .legal-card { padding: 28px 20px; }
  .cta-banner { padding: 44px 22px; }
  .rr-calc-card { padding: 26px 20px; }
  .market-tile-body { padding: 30px 14px 13px; }
}

@media (max-width: 720px) {
  .hero-stats-row { grid-template-columns: repeat(3, 1fr); gap: 12px; padding-top: 22px; }
  .hero-stat-label { font-size: 0.6rem; letter-spacing: 0.06em; }
  .hero-description { font-size: 1.04rem; }
  .hero-cta-group { gap: 10px; margin-bottom: 34px; }
  .hero-cta-group .btn { flex: 1 1 100%; }

  /* Terminal chrome must not widen the viewport. */
  .terminal-header { padding: 10px 12px; }
  .terminal-status-indicators { display: none; }
  .terminal-body { padding: 14px; min-height: 260px; }
  .chart-canvas-container { height: 230px; }
  .terminal-footer { padding: 10px 12px; font-size: 0.66rem; }

  .mosaic-grid { grid-template-columns: 1fr; }
  .mosaic-grid > .mosaic-lead { grid-column: auto; }

  .course-header, .course-body { padding-inline: 20px; }
  .course-footer { padding: 16px 20px; }
  .accordion-header { padding: 15px 16px; }
  .accordion-title { font-size: 0.94rem; }
  .lesson-list { padding: 8px 14px 16px; }
  .lesson-item { font-size: 0.82rem; padding: 9px 11px; }
  .pricing-card { padding: 32px 24px; }
  .stat-strip { gap: 12px; }
  .indicator-slider-section { padding: 56px 0; }
  .media-caption { padding: 36px 16px 14px; }
  .media-caption-title { font-size: 0.94rem; }
}

@media (max-width: 480px) {
  .market-grid { grid-template-columns: 1fr 1fr; gap: 12px; }
  .market-tile-name { font-size: 0.9rem; }
  .market-tile-meta { font-size: 0.6rem; }
  .media-caption { flex-direction: column; align-items: flex-start; gap: 8px; }
  .indicator-marquee-track { gap: 12px; }
  .contact-channel-card { padding: 16px; gap: 14px; }
  .contact-channel-icon { width: 42px; height: 42px; }
}

/* ==========================================================================
   EXTRACTED STYLES
   ---------------------------------------------------------------------------
   Everything below replaces a style="" attribute that used to sit in the
   markup. Recurring patterns became named components; genuinely one-off
   spacing became a small fixed scale (u-*) rather than arbitrary pixel
   values, which also snapped a lot of near-duplicate numbers (18/20/22px,
   25/26/28px) onto consistent steps.
   ========================================================================== */

/* --- Spacing scale ----------------------------------------------------- */
.u-mb-xxs { margin-bottom: 6px; }
.u-mb-xs  { margin-bottom: 10px; }
.u-mb-md  { margin-bottom: 20px; }
.u-mb-lg  { margin-bottom: 26px; }
.u-mb-xl  { margin-bottom: 44px; }

.u-mt-xxs { margin-top: 6px; }
.u-mt-sm  { margin-top: 18px; }

.u-my-md  { margin: 16px 0 20px; }

/* --- Section rhythm ---------------------------------------------------- */
.section-pt-0  { padding-top: 0; }
.section-pt-sm { padding-top: 24px; }
.section-pt-md { padding-top: 40px; }
.section-pt-lg { padding-top: 70px; }
.section-pb-md { padding-bottom: 44px; }
.section-pb-lg { padding-bottom: 60px; }

.hero-section-compact { padding-bottom: 40px; }
.container-narrow { max-width: 900px; }

/* --- Small text helpers ------------------------------------------------ */
.u-dim      { color: var(--text-dim); }
.u-red      { color: var(--red-primary); }
.u-platinum { color: var(--text-platinum); }
.u-mono     { font-family: var(--font-mono); }
.u-text-sm  { font-size: 0.9rem; }
.u-clickable { cursor: pointer; }
.u-img-fluid { width: 100%; height: auto; }

.stack-sm { display: flex; flex-direction: column; gap: 12px; }
.stack-md { display: flex; flex-direction: column; gap: 20px; }

/* --- Centered page intro (hero copy block) ----------------------------- */
.page-intro {
  text-align: center;
  max-width: 820px;
  margin: 0 auto 46px;
}

.page-intro-narrow { max-width: 700px; margin-bottom: 40px; }

.page-intro-lead {
  font-size: clamp(1.05rem, 2vw, 1.18rem);
  color: var(--text-muted);
  line-height: 1.68;
}

.section-cream .page-intro-lead { color: var(--cream-text-muted); }

.intro-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-top: 30px;
  flex-wrap: wrap;
}

/* --- Column headings / copy -------------------------------------------- */
.col-heading { font-size: 1.8rem; margin-bottom: 10px; }
.col-heading-sm { font-size: 1.5rem; margin-bottom: 8px; }

.col-copy {
  font-size: 0.95rem;
  color: var(--text-muted);
  margin-bottom: 22px;
}

.col-copy-dim { color: var(--text-dim); }

.card-heading { font-size: 1.22rem; margin-bottom: 12px; }

.card-copy {
  font-size: 0.95rem;
  line-height: 1.62;
  color: var(--cream-text-muted);
}

.card-copy-sm {
  font-size: 0.9rem;
  color: var(--cream-text-muted);
  margin-bottom: 14px;
}

/* --- Coverage section head (label left, meta right) -------------------- */
.coverage-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  margin-bottom: 26px;
}

.coverage-head-meta { padding-bottom: 6px; }

/* --- Numbered workflow steps ------------------------------------------- */
.cream-card-compact { padding: 24px; }

.step-head {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 8px;
  flex-wrap: wrap;
}

.step-num {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  color: var(--red-primary);
  background: rgba(255, 23, 61, 0.1);
  padding: 4px 10px;
  border-radius: 6px;
  flex-shrink: 0;
}

.step-num-green {
  color: var(--bull-green);
  background: rgba(0, 229, 153, 0.1);
}

.step-title { font-size: 1.08rem; margin-bottom: 0; }
.step-copy  { font-size: 0.9rem; margin-bottom: 0; }

/* --- Centered icon card ------------------------------------------------ */
.cream-card-center { text-align: center; padding: 36px 28px; }
.icon-tile-center { margin-left: auto; margin-right: auto; width: 56px; height: 56px; }

/* --- Status dots ------------------------------------------------------- */
.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--bull-green);
  box-shadow: 0 0 8px var(--bull-green);
  flex-shrink: 0;
  display: inline-block;
}

.status-dot-lg { width: 10px; height: 10px; }
.status-dot-red { background: var(--bear-red); box-shadow: 0 0 8px var(--bear-red); }

/* --- Callout boxes ----------------------------------------------------- */
.note-box {
  padding: 18px 20px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  gap: 14px;
}

.note-box-green {
  background: rgba(0, 229, 153, 0.06);
  border: 1px solid rgba(0, 229, 153, 0.25);
}

.note-box-red {
  display: block;
  padding: 16px 20px;
  background: rgba(255, 42, 75, 0.08);
  border: 1px solid rgba(255, 42, 75, 0.35);
  border-radius: 12px;
  margin-bottom: 28px;
}

.note-box-title {
  color: #ff526e;
  font-size: 1.08rem;
  margin-bottom: 6px;
}

.note-box-text {
  font-size: 0.92rem;
  color: #ff99aa;
  line-height: 1.6;
  margin-bottom: 0;
}

.section-note {
  margin-top: 40px;
  padding-top: 20px;
  border-top: 1px solid var(--border-glass);
}

/* --- Terminal chrome --------------------------------------------------- */
.simulator-frame { max-width: 1040px; margin: 0 auto; }
.terminal-header-wrap { flex-wrap: wrap; gap: 12px; }
.terminal-footer-wrap { flex-wrap: wrap; gap: 14px; }
.terminal-body-tall { min-height: 360px; }

.terminal-group { display: flex; align-items: center; gap: 6px; }

.terminal-group-label {
  font-size: 0.75rem;
  color: var(--text-dim);
  font-family: var(--font-mono);
  margin-right: 4px;
}

.terminal-metrics { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.terminal-sep { color: var(--text-dim); margin: 0 6px; }

.status-badge-alert {
  background: rgba(255, 23, 61, 0.15);
  color: #ff526e;
  border: 1px solid rgba(255, 23, 61, 0.3);
}

/* --- Course card: featured variant -------------------------------------
   Doubled up on .course-card so this beats `.section-cream .course-card`,
   which would otherwise reset border-color back to the paper hairline. */
.course-card.course-card-featured {
  border: 2px solid var(--red-primary);
  box-shadow: 0 16px 40px rgba(255, 23, 61, 0.16);
}
.course-header-featured { background: linear-gradient(180deg, rgba(255, 23, 61, 0.08) 0%, transparent 100%); }
.course-tag-featured { background: var(--red-primary); color: #fff; }
.course-price-featured { color: var(--red-primary); }

/* --- Stat chip size variants ------------------------------------------- */
.stat-chip-lg { padding: 20px 24px; }
.stat-chip-val-lg { font-size: 1.9rem; }
.stat-chip-val-ink-green { color: #00a86b; }

/* --- Media size variants ----------------------------------------------- */
.media-fill-tall { min-height: 320px; }
.split-grid-stretch { align-items: stretch; }

/* --- Footer bits ------------------------------------------------------- */
.footer-contact-link {
  font-weight: 600;
  font-family: var(--font-mono);
  font-size: 0.88rem;
}

.footer-status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--bull-green);
}

.footer-bottom-meta {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

/* Telegram button inside the dark mobile drawer needs a crisp high-contrast face */
.btn-telegram-cta,
.btn-telegram-light {
  width: 100%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: #ffffff;
  color: #0b121e;
  border: 1px solid rgba(255, 255, 255, 0.95);
  font-weight: 700;
  text-decoration: none;
}

/* --- Contact form status ----------------------------------------------- */
/* Visibility is a state, so it is a class the server toggles, not a style. */
.alert-box { display: none; }
.alert-box.is-visible { display: flex; }

@media (max-width: 720px) {
  .col-heading { font-size: 1.55rem; }
  .cream-card-center { padding: 28px 22px; }
  .page-intro { margin-bottom: 36px; }
}

/* Level marker in a warning register, used on the risk disclosure page. */
.badge-pill-warn { color: #ff6b80; }
.badge-pill-warn .pulse-dot {
  background: rgba(255, 42, 75, 0.14);
  border-color: var(--bear-red);
  box-shadow: 0 0 10px var(--bear-red-glow);
}
.badge-pill-warn::after { background: linear-gradient(90deg, var(--bear-red), transparent); }

/* ==========================================================================
   RESPONSIVE MEDIA SIZING
   ---------------------------------------------------------------------------
   A fixed aspect ratio that reads well in a two-column split becomes far too
   tall once that split collapses to one column: a 4:5 frame at full container
   width is over 1000px high on a tablet, so the image alone fills the screen.

   Two things happen below the split breakpoint:
     1. tall ratios flip to landscape, and
     2. every frame gets a hard viewport-relative ceiling, so no single image
        can ever dominate the screen regardless of which ratio it was given.

   object-fit: cover on the <img> means clamping the frame crops the picture
   rather than squashing it, so the subject still reads.
   ========================================================================== */
@media (max-width: 1024px) {
  /* Once a split is one column, every frame goes 16:9 — the shortest ratio
     in the set. A 3:2 frame at full tablet width is already ~510px tall, and
     these sections stack two of them, so the reader met a wall of pictures
     before any copy. */
  .media-3x2,
  .media-4x3,
  .media-4x5 { aspect-ratio: 16 / 9; }

  /* media-fill has no ratio of its own — it stretches to a grid cell. Once
     the grid is one column there is no cell to fill, so give it a ratio. */
  .media-fill { aspect-ratio: 16 / 9; height: auto; }
  .media-fill > img { position: static; }
  .media-fill-tall { min-height: 0; }

  .media { max-height: 48vh; }
}

@media (max-width: 720px) {
  .media-3x2,
  .media-4x3,
  .media-4x5,
  .media-fill { aspect-ratio: 16 / 10; }

  .media-21x9 { aspect-ratio: 2 / 1; }
  .media { max-height: 40vh; }

  /* The caption sits over a much shorter frame now. */
  .media-caption { padding: 30px 14px 12px; }
  .media-caption-title { font-size: 0.92rem; }
  .media-caption-sub { font-size: 0.66rem; }
}

@media (max-width: 480px) {
  .media { max-height: 34vh; }
}

/* ==========================================================================
   MARQUEE CARDS ON SMALL SCREENS
   Card width is stepped down deliberately rather than left to a vw clamp,
   which had squeezed the cards to ~178px and wrapped every title onto three
   lines. Below 520px the mono description is dropped and the title is capped
   at two lines, so a narrower card still reads cleanly.
   ========================================================================== */
.indicator-slide-card { width: 320px; }

@media (max-width: 1100px) {
  .indicator-slide-card { width: 288px; }
}

@media (max-width: 820px) {
  .indicator-slide-card { width: 252px; }
  .indicator-slide-title { font-size: 0.8rem; }
}

@media (max-width: 640px) {
  .indicator-slider-section .container,
  #tool .container {
    padding-left: 8px !important;
    padding-right: 8px !important;
  }

  .indicator-slider-container {
    position: relative;
    width: 100%;
    margin-top: 14px;
    padding: 0;
  }

  .indicator-marquee {
    width: 100% !important;
    margin-top: 8px !important;
    margin-left: 0 !important;
    transform: none !important;
    mask-image: none !important;
    -webkit-mask-image: none !important;
  }

  .indicator-marquee-track {
    gap: 8px !important;
  }

  /* Exactly two full cards clearly visible side-by-side on mobile devices */
  .indicator-slide-card {
    width: calc((100vw - 24px) / 2) !important;
    min-width: calc((100vw - 24px) / 2) !important;
    max-width: calc((100vw - 24px) / 2) !important;
    border-radius: 10px !important;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.06);
  }

  .indicator-slide-footer {
    padding: 8px 9px !important;
    gap: 4px !important;
  }

  .indicator-slide-title {
    font-size: 0.72rem !important;
    line-height: 1.25 !important;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }

  .indicator-slide-desc {
    display: none !important;
  }

  .indicator-slide-badge {
    font-size: 0.52rem !important;
    padding: 2px 4px !important;
    bottom: 6px !important;
    left: 6px !important;
  }

  .indicator-slide-zoom {
    width: 13px !important;
    height: 13px !important;
  }

  .indicator-arrow-btn {
    width: 32px !important;
    height: 32px !important;
    background: #ffffff !important;
    color: #11141d !important;
    border: 1px solid rgba(0, 0, 0, 0.15) !important;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.18) !important;
  }

  .indicator-arrow-btn:active {
    background: #ff173d !important;
    color: #ffffff !important;
    border-color: #ff173d !important;
  }

  .indicator-arrow-btn svg {
    width: 14px !important;
    height: 14px !important;
    stroke: currentColor !important;
  }

  .indicator-arrow-btn:active svg {
    stroke: #ffffff !important;
  }

  .indicator-arrow-btn.indicator-prev {
    left: 2px !important;
  }

  .indicator-arrow-btn.indicator-next {
    right: 2px !important;
  }
}

/* ==========================================================================
   MENTORSHIP BUNDLE & SYLLABUS SYSTEM - FULLY RESPONSIVE & HIGH CONTRAST
   ========================================================================== */
.bundle-highlight-card,
.section-cream .bundle-highlight-card {
  background: radial-gradient(circle at 20% 20%, #171c28 0%, #0b0e15 100%) !important;
  border: 1px solid rgba(255, 255, 255, 0.12) !important;
  border-radius: var(--radius-lg);
  padding: 40px 44px;
  position: relative;
  overflow: hidden;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.45), 0 0 35px rgba(255, 23, 61, 0.12) !important;
  margin-top: 40px;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}

.bundle-highlight-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, #ff173d 0%, #ff5e7e 50%, #f59e0b 100%);
}

.bundle-grid {
  display: grid;
  grid-template-columns: 1.35fr 1fr;
  gap: 36px;
  align-items: center;
  width: 100%;
  box-sizing: border-box;
}

.bundle-badge,
.section-cream .bundle-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 23, 61, 0.16) !important;
  border: 1px solid rgba(255, 23, 61, 0.4) !important;
  padding: 6px 14px;
  border-radius: 999px;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #ff3b5c !important;
  margin-bottom: 16px;
  max-width: 100%;
}

.bundle-title,
.section-cream .bundle-title,
.section-cream h3.bundle-title {
  font-size: clamp(1.35rem, 3.8vw, 1.85rem) !important;
  font-weight: 800 !important;
  color: #ffffff !important;
  margin-bottom: 12px;
  line-height: 1.25;
  letter-spacing: -0.02em;
  word-break: break-word;
  overflow-wrap: break-word;
}

.bundle-desc,
.section-cream .bundle-desc,
.section-cream p.bundle-desc {
  font-size: clamp(0.86rem, 2.2vw, 0.95rem) !important;
  line-height: 1.65 !important;
  color: rgba(226, 232, 240, 0.85) !important;
  margin-bottom: 22px;
  word-break: break-word;
  overflow-wrap: break-word;
}

.bundle-perks-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px 20px;
  width: 100%;
  box-sizing: border-box;
}

.bundle-perk-item,
.section-cream .bundle-perk-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: clamp(0.82rem, 2.2vw, 0.9rem) !important;
  color: #f8fafc !important;
  font-weight: 500;
  word-break: break-word;
  overflow-wrap: break-word;
}

.bundle-perk-item span,
.section-cream .bundle-perk-item span {
  color: #f8fafc !important;
}

.bundle-perk-item svg {
  color: #ff173d !important;
  flex-shrink: 0;
}

.bundle-pricing-box,
.section-cream .bundle-pricing-box {
  background: rgba(8, 10, 16, 0.85) !important;
  border: 1px solid rgba(255, 255, 255, 0.1) !important;
  border-radius: var(--radius);
  padding: 30px 24px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}

.bundle-savings-tag,
.section-cream .bundle-savings-tag {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.74rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  background: rgba(16, 185, 129, 0.16) !important;
  border: 1px solid rgba(16, 185, 129, 0.45) !important;
  color: #10b981 !important;
  padding: 5px 14px;
  border-radius: 999px;
  margin-bottom: 12px;
}

.bundle-price-row {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 12px;
  margin-bottom: 8px;
  flex-wrap: wrap;
}

.bundle-price-orig,
.section-cream .bundle-price-orig {
  font-size: 1.25rem !important;
  color: #94a3b8 !important;
  text-decoration: line-through;
  font-family: var(--font-mono);
}

.bundle-price-current,
.section-cream .bundle-price-current {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 6vw, 3rem) !important;
  font-weight: 800 !important;
  letter-spacing: -0.03em;
  color: #ffffff !important;
}

.bundle-price-sub,
.section-cream .bundle-price-sub,
.section-cream p.bundle-price-sub {
  font-size: 0.82rem !important;
  color: #94a3b8 !important;
  font-family: var(--font-mono);
  margin-bottom: 20px;
}

.bundle-pricing-box .btn-primary {
  width: 100%;
  max-width: 100%;
  background: linear-gradient(135deg, #ff173d 0%, #d80027 100%) !important;
  color: #ffffff !important;
  border: none !important;
  box-shadow: 0 4px 20px rgba(255, 23, 61, 0.45) !important;
  padding: 13px 18px;
  box-sizing: border-box;
  font-size: 0.92rem;
  justify-content: center;
  text-align: center;
}

.bundle-pricing-box .btn-primary:hover {
  background: linear-gradient(135deg, #ff2d50 0%, #eb002c 100%) !important;
  box-shadow: 0 6px 26px rgba(255, 23, 61, 0.6) !important;
  transform: translateY(-2px);
}

/* Syllabus Interactive Tab Switcher */
.syllabus-tabs-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-bottom: 32px;
  flex-wrap: wrap;
  width: 100%;
}

.syllabus-tab-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: var(--bg-surface-2);
  border: 1px solid var(--border-glass);
  color: var(--text-dim);
  padding: 12px 24px;
  border-radius: 999px;
  font-family: var(--font-mono);
  font-size: 0.84rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  cursor: pointer;
  transition: all var(--tr-fast);
  box-sizing: border-box;
}

.syllabus-tab-btn:hover {
  border-color: rgba(255, 23, 61, 0.35);
  color: var(--text-white);
  background: #121620;
}

.syllabus-tab-btn.active {
  background: var(--red-primary);
  border-color: var(--red-primary);
  color: #ffffff;
  box-shadow: 0 4px 18px rgba(255, 23, 61, 0.35);
}

.syllabus-tab-count {
  font-size: 0.72rem;
  background: rgba(0, 0, 0, 0.25);
  padding: 2px 8px;
  border-radius: 999px;
}

.syllabus-tab-btn.active .syllabus-tab-count {
  background: rgba(255, 255, 255, 0.25);
  color: #ffffff;
}

.syllabus-panel {
  display: none;
  width: 100%;
}

.syllabus-panel.is-active {
  display: block;
}

/* Sub-topics list inside module accordion */
.subtopics-list {
  list-style: none;
  padding: 10px 0 6px 14px;
  margin: 10px 0 4px 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
  border-left: 2px solid rgba(255, 23, 61, 0.25);
  width: 100%;
  box-sizing: border-box;
}

.subtopic-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.45;
  word-break: break-word;
  overflow-wrap: break-word;
}

.subtopic-bullet {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--red-primary);
  background: rgba(255, 23, 61, 0.1);
  padding: 2px 6px;
  border-radius: 3px;
  flex-shrink: 0;
}

.subtopic-text {
  flex: 1;
  min-width: 0;
}

.subtopic-text strong {
  color: var(--text-platinum);
}

.syllabus-notice-box {
  background: rgba(18, 22, 31, 0.75);
  border: 1px solid rgba(245, 158, 11, 0.28);
  border-radius: var(--radius);
  padding: 22px 26px;
  display: flex;
  align-items: center;
  gap: 18px;
  margin-top: 36px;
  width: 100%;
  box-sizing: border-box;
}

.syllabus-notice-icon {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-sm);
  background: rgba(245, 158, 11, 0.12);
  border: 1px solid rgba(245, 158, 11, 0.3);
  color: #f59e0b;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.syllabus-notice-title {
  font-size: 0.96rem;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 4px;
}

.syllabus-notice-text {
  font-size: 0.86rem;
  color: var(--text-muted);
  line-height: 1.5;
  margin: 0;
}

/* ==========================================================================
   RESPONSIVE OVERRIDES FOR BUNDLE & SYLLABUS
   ========================================================================== */
@media (max-width: 1024px) {
  .bundle-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }
}

@media (max-width: 768px) {
  .bundle-highlight-card,
  .section-cream .bundle-highlight-card {
    padding: 24px 18px !important;
    margin-top: 28px;
    border-radius: 16px;
  }
  .bundle-grid {
    gap: 22px;
  }
  .bundle-perks-grid {
    grid-template-columns: 1fr;
    gap: 10px;
  }
  .bundle-pricing-box,
  .section-cream .bundle-pricing-box {
    padding: 22px 16px !important;
  }
  .syllabus-tabs-nav {
    flex-direction: column;
    gap: 10px;
  }
  .syllabus-tab-btn {
    width: 100%;
    padding: 11px 18px;
  }
  .syllabus-notice-box {
    flex-direction: column;
    align-items: flex-start;
    padding: 20px 18px;
    gap: 14px;
  }
}

@media (max-width: 480px) {
  .bundle-highlight-card,
  .section-cream .bundle-highlight-card {
    padding: 20px 14px !important;
    margin-top: 22px;
    border-radius: 14px;
  }
  .bundle-badge,
  .section-cream .bundle-badge {
    font-size: 0.66rem;
    padding: 5px 10px;
    margin-bottom: 12px;
  }
  .bundle-pricing-box,
  .section-cream .bundle-pricing-box {
    padding: 18px 12px !important;
    border-radius: 12px;
  }
  .bundle-pricing-box .btn-primary {
    padding: 12px 12px;
    font-size: 0.86rem;
  }
  .accordion-header {
    padding: 13px 12px;
  }
  .lesson-list {
    padding: 6px 10px 12px;
  }
  .lesson-item {
    padding: 8px 8px;
    font-size: 0.8rem;
  }
}

/* ==========================================================================
   JERS CHECKOUT & PAYMENT MODAL STYLES
   ========================================================================== */
.jers-checkout-modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 99999;
  background: rgba(8, 6, 6, 0.88);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(8px, 3vw, 24px);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.25s ease, visibility 0.25s ease;
  overflow-y: auto;
}

.jers-checkout-modal-backdrop.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.jers-checkout-modal {
  background: var(--bg-surface-1, #10131a);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius, 8px);
  width: 100%;
  max-width: 560px;
  max-height: min(88vh, calc(100dvh - 32px));
  display: flex;
  flex-direction: column;
  box-shadow: 0 25px 70px rgba(0, 0, 0, 0.9), 0 0 0 1px rgba(255, 23, 61, 0.12);
  transform: scale(0.97) translateY(8px);
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  overflow: hidden;
  margin: auto;
}

.jers-checkout-modal-backdrop.is-open .jers-checkout-modal {
  transform: scale(1) translateY(0);
}

.checkout-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  background: var(--bg-surface-2, #161b26);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  flex-shrink: 0;
}

.checkout-header-info {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.checkout-pill {
  align-self: flex-start;
  font-family: var(--font-mono);
  font-size: 0.65rem;
  padding: 2px 8px;
  border-radius: 3px;
  font-weight: 700;
  letter-spacing: 0.05em;
  background: rgba(255, 23, 61, 0.12);
  color: var(--red-primary, #ff173d);
  border: 1px solid rgba(255, 23, 61, 0.28);
}

.checkout-title {
  font-size: 1.15rem;
  color: var(--text-white, #fff);
  margin: 0;
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: -0.01em;
}

.checkout-close-btn {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: var(--text-muted, #96a1b2);
  width: 32px;
  height: 32px;
  border-radius: 4px;
  font-size: 1.25rem;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
  flex-shrink: 0;
}

.checkout-close-btn:hover {
  background: rgba(255, 23, 61, 0.2);
  border-color: var(--red-primary);
  color: #fff;
}

.checkout-modal-body {
  padding: 18px 20px;
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  display: flex;
  flex-direction: column;
  gap: 16px;
  flex: 1;
  min-height: 0;
}

/* Plan summary banner */
.checkout-plan-summary {
  background: var(--bg-surface-2, #161b26);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-sm, 4px);
  padding: 14px 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}

.summary-plan-name {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-white, #fff);
}

.summary-plan-sub {
  font-size: 0.75rem;
  color: var(--text-muted, #96a1b2);
  margin-top: 2px;
}

.summary-price-box {
  text-align: right;
  flex-shrink: 0;
}

.summary-price-usd {
  font-family: var(--font-mono);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text-white, #fff);
}

.summary-price-inr {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--bull-green, #00e599);
  margin-top: 1px;
}

/* Tabs */
.checkout-tabs-nav {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  background: var(--bg-pitch, #06070a);
  padding: 4px;
  border-radius: var(--radius-sm, 4px);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.checkout-tab-btn {
  background: transparent;
  border: none;
  border-radius: 4px;
  padding: 10px 14px;
  color: var(--text-muted, #96a1b2);
  font-family: var(--font-body);
  font-size: 0.84rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.checkout-tab-btn svg {
  stroke: var(--text-muted, #96a1b2);
  transition: stroke 0.2s ease;
}

.checkout-tab-btn:hover {
  color: var(--text-white, #fff);
  background: rgba(255, 255, 255, 0.05);
}

.checkout-tab-btn.active {
  background: var(--bg-surface-elevated, #1b212f);
  color: var(--text-white, #fff);
  border: 1px solid rgba(255, 255, 255, 0.16);
}

.checkout-tab-btn.active svg {
  stroke: var(--red-primary, #ff173d);
}

/* Tab Panels */
.checkout-tab-panel {
  display: none;
}

.checkout-tab-panel.is-active {
  display: block;
}

/* Payment Method Box */
.payment-method-box {
  background: var(--bg-surface-2, #161b26);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-sm, 4px);
  padding: 16px 18px;
}

.payment-box-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 14px;
}

.payment-box-title {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-white, #fff);
  margin: 0 0 3px;
}

.payment-box-desc {
  font-size: 0.78rem;
  color: var(--text-muted, #96a1b2);
  margin: 0;
}

.currency-tag {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  font-weight: 700;
  color: var(--bull-green, #00e599);
  background: rgba(0, 229, 153, 0.1);
  border: 1px solid rgba(0, 229, 153, 0.25);
  padding: 2px 7px;
  border-radius: 3px;
  flex-shrink: 0;
}

/* Conversion Calculator */
.price-conversion-calc {
  background: var(--bg-pitch, #06070a);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 4px;
  padding: 12px 14px;
  margin-bottom: 16px;
}

.calc-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.8rem;
  color: var(--text-muted, #96a1b2);
  padding: 3px 0;
}

.calc-val {
  color: var(--text-white, #fff);
  font-weight: 600;
}

.calc-divider {
  height: 1px;
  background: rgba(255, 255, 255, 0.08);
  margin: 6px 0;
}

.calc-total-row {
  font-size: 0.92rem;
  color: var(--text-white, #fff);
  font-weight: 700;
}

.calc-total-row .total-inr {
  color: var(--bull-green, #00e599);
  font-size: 1.05rem;
}

.checkout-alert {
  padding: 11px 13px;
  border-radius: 4px;
  font-size: 0.8rem;
  margin-bottom: 14px;
  line-height: 1.45;
}

.checkout-alert.error {
  background: rgba(255, 42, 75, 0.12);
  border: 1px solid rgba(255, 42, 75, 0.35);
  color: #ff8598;
}

.checkout-alert.success {
  background: rgba(0, 229, 153, 0.12);
  border: 1px solid rgba(0, 229, 153, 0.35);
  color: #00e599;
}

/* Crypto Payment Styles */
.crypto-network-alert {
  background: rgba(255, 42, 75, 0.08);
  border: 1px solid rgba(255, 42, 75, 0.25);
  border-radius: var(--radius-sm, 4px);
  padding: 11px 14px;
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 14px;
}

.crypto-network-alert .alert-heading {
  font-family: var(--font-mono);
  font-size: 0.76rem;
  font-weight: 800;
  color: #ff4d6a;
  letter-spacing: 0.04em;
  margin-bottom: 2px;
}

.crypto-network-alert .alert-body {
  font-size: 0.75rem;
  color: var(--text-muted, #96a1b2);
  line-height: 1.4;
}

.crypto-grid-layout {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 16px;
  align-items: start;
}

.crypto-qr-card {
  background: var(--bg-surface-2, #161b26);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-sm, 4px);
  padding: 10px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.crypto-qr-wrapper {
  background: #fff;
  padding: 6px;
  border-radius: 4px;
  width: 100%;
  max-width: 120px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.crypto-qr-image {
  width: 100%;
  height: auto;
  display: block;
  object-fit: contain;
}

.crypto-amount-badge {
  font-size: 0.72rem;
  color: var(--text-muted, #96a1b2);
  text-align: center;
}

.crypto-amount-badge strong {
  color: var(--bull-green, #00e599);
  display: block;
  font-size: 0.82rem;
  margin-top: 1px;
}

.crypto-details-col {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.crypto-field-label {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-dim, #5f6b7d);
  display: block;
  margin-bottom: 4px;
}

.crypto-address-input-group {
  display: flex;
  gap: 6px;
}

.crypto-address-field {
  background: var(--bg-pitch, #06070a);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 4px;
  padding: 9px 11px;
  color: var(--text-white, #fff);
  font-size: 0.78rem;
  flex: 1;
  outline: none;
  min-width: 0;
}

.btn-copy-address {
  background: var(--bg-surface-elevated, #1b212f);
  border: 1px solid rgba(255, 255, 255, 0.16);
  color: var(--text-white, #fff);
  padding: 0 13px;
  border-radius: 4px;
  font-size: 0.78rem;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 5px;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.btn-copy-address:hover {
  background: var(--red-primary);
  border-color: var(--red-primary);
}

.btn-copy-address.copied {
  background: rgba(0, 229, 153, 0.2);
  border-color: rgba(0, 229, 153, 0.5);
  color: #00e599;
}

.crypto-instructions-notice {
  background: var(--bg-surface-2, #161b26);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 4px;
  padding: 10px 12px;
}

/* ==========================================================================
   ORDER CONFIRMATION & ACTIVATION HUB STYLES (order-success.php)
   ========================================================================== */
.order-status-banner {
  display: flex;
  align-items: flex-start;
  gap: 20px;
  background: var(--bg-surface-2, #161b26);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius, 8px);
  padding: clamp(20px, 4vw, 32px);
}

.order-status-icon {
  width: 56px;
  height: 56px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.status-icon-success {
  background: rgba(0, 229, 153, 0.12);
  border: 1px solid rgba(0, 229, 153, 0.35);
}

.status-icon-pending {
  background: rgba(240, 166, 60, 0.12);
  border: 1px solid rgba(240, 166, 60, 0.35);
}

.order-status-text {
  flex: 1;
}

.order-status-badge-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 12px;
}

.order-status-chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 4px 10px;
  border-radius: 4px;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}
.order-status-chip::after,
.order-status-chip::before {
  display: none !important;
}

.order-status-chip.chip-gold {
  background: rgba(240, 166, 60, 0.14);
  border: 1px solid rgba(240, 166, 60, 0.4);
  color: #f0a63c;
}
.order-status-chip.chip-gold .pulse-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #f0a63c;
  box-shadow: 0 0 8px rgba(240, 166, 60, 0.6);
}

.order-status-chip.chip-green {
  background: rgba(0, 229, 153, 0.14);
  border: 1px solid rgba(0, 229, 153, 0.4);
  color: #00e599;
}
.order-status-chip.chip-green .pulse-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #00e599;
  box-shadow: 0 0 8px rgba(0, 229, 153, 0.6);
}

.order-ref-chip {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: #9aa5b5;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 4px 8px;
  border-radius: 4px;
}

.order-headline {
  font-size: clamp(1.4rem, 3.5vw, 2.1rem);
  font-weight: 700;
  color: var(--text-white, #fff);
  margin: 0 0 8px;
  line-height: 1.2;
}

.order-subtitle {
  font-size: 0.95rem;
  color: var(--text-muted, #96a1b2);
  margin: 0;
  line-height: 1.55;
}

.order-summary-card {
  padding: 22px 26px;
  background: var(--bg-surface-1, #10131a);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.order-summary-grid {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
}

.summary-plan-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-white, #fff);
  font-family: var(--font-display);
}

.summary-plan-meta {
  font-size: 0.84rem;
  color: var(--text-muted, #96a1b2);
  margin-top: 3px;
}

.order-summary-pricing {
  text-align: right;
}

.summary-price-primary {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--bull-green, #00e599);
}

.summary-guarantee-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-platinum, #eef2f7);
  background: rgba(255, 23, 61, 0.08);
  border: 1px solid rgba(255, 23, 61, 0.2);
  padding: 3px 8px;
  border-radius: 4px;
  margin-top: 6px;
}

/* Activation Hub 2-Column Grid */
.activation-grid-layout {
  display: grid;
  grid-template-columns: 1.08fr 0.92fr;
  gap: 24px;
  align-items: start;
}

.activation-form-card {
  background: var(--bg-surface-2, #161b26);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius, 8px);
  padding: 24px 26px;
}

.activation-card-header {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  margin-bottom: 20px;
  padding-bottom: 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.step-circle {
  width: 32px;
  height: 32px;
  border-radius: 4px;
  background: var(--red-primary, #ff173d);
  color: #fff;
  font-family: var(--font-mono);
  font-weight: 800;
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.activation-step-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-white, #fff);
  margin: 0 0 3px;
}

.activation-step-sub {
  font-size: 0.8rem;
  color: var(--text-muted, #96a1b2);
  margin: 0;
}

.activation-form {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.form-group-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.field-hint {
  display: block;
  font-size: 0.72rem;
  color: var(--text-dim, #5f6b7d);
  margin-top: 4px;
}

.direct-email-fallback {
  text-align: center;
  padding-top: 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.direct-email-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.8rem;
  color: var(--red-hover, #ff3355);
  font-weight: 600;
  text-decoration: underline;
  margin-top: 4px;
  transition: color 0.2s ease;
}

.direct-email-btn:hover {
  color: #fff;
}

.instructions-card {
  padding: 22px 24px;
  background: var(--bg-surface-2, #161b26);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.instructions-card-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-white, #fff);
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 18px;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.steps-timeline {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.timeline-step {
  display: flex;
  gap: 14px;
  align-items: flex-start;
}

.timeline-step-num {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  font-weight: 800;
  color: var(--bull-green, #00e599);
  background: rgba(0, 229, 153, 0.1);
  border: 1px solid rgba(0, 229, 153, 0.25);
  padding: 3px 7px;
  border-radius: 4px;
  flex-shrink: 0;
  margin-top: 2px;
}

.timeline-step-body h4 {
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--text-white, #fff);
  margin: 0 0 4px;
}

.timeline-step-body p {
  font-size: 0.8rem;
  color: var(--text-muted, #96a1b2);
  margin: 0;
  line-height: 1.48;
}

.community-buttons-row {
  display: flex;
  gap: 10px;
  margin-top: 10px;
}

.community-btn {
  flex: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 8px 14px;
  font-size: 0.8rem;
  font-weight: 600;
  border-radius: var(--radius-sm, 6px);
  text-decoration: none;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  white-space: nowrap;
  letter-spacing: 0.01em;
}

.community-btn-telegram {
  background: rgba(36, 161, 222, 0.1);
  color: #38bdf8;
  border: 1px solid rgba(56, 189, 248, 0.3);
}
.community-btn-telegram:hover {
  background: rgba(36, 161, 222, 0.22);
  color: #ffffff;
  border-color: #38bdf8;
  box-shadow: 0 0 16px rgba(56, 189, 248, 0.25);
  transform: translateY(-1px);
}

.community-btn-discord {
  background: rgba(88, 101, 242, 0.1);
  color: #818cf8;
  border: 1px solid rgba(129, 140, 248, 0.3);
}
.community-btn-discord:hover {
  background: rgba(88, 101, 242, 0.22);
  color: #ffffff;
  border-color: #818cf8;
  box-shadow: 0 0 16px rgba(129, 140, 248, 0.25);
  transform: translateY(-1px);
}

.desk-help-box {
  background: var(--bg-surface-1, #10131a);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-sm, 4px);
  padding: 14px 16px;
}

.desk-help-head {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.86rem;
  color: var(--text-white, #fff);
  margin-bottom: 4px;
}

.desk-contacts-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 8px;
}

.desk-contact-chip {
  font-family: var(--font-mono);
  font-size: 0.74rem;
  background: var(--bg-surface-elevated, #1b212f);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: var(--text-platinum, #eef2f7);
  padding: 5px 10px;
  border-radius: 4px;
  text-decoration: none;
  transition: all 0.2s ease;
}

.desk-contact-chip:hover {
  border-color: var(--red-primary);
  color: #fff;
}

/* ==========================================================================
   RESPONSIVE MEDIA QUERIES (Mobile & Laptop UX Optimization)
   ========================================================================== */
@media (max-width: 860px) {
  .activation-grid-layout {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .jers-checkout-modal-backdrop {
    align-items: center !important;
    justify-content: center !important;
    padding: 10px 8px !important;
    overflow-y: auto !important;
  }
  .jers-checkout-modal {
    max-height: min(92vh, calc(100dvh - 16px)) !important;
    width: 100% !important;
    max-width: 480px !important;
    margin: auto !important;
    border-radius: 6px !important;
  }
  .checkout-modal-header {
    padding: 12px 14px !important;
  }
  .checkout-title {
    font-size: 1rem !important;
  }
  .checkout-pill {
    display: none !important;
  }
  .checkout-close-btn {
    width: 30px !important;
    height: 30px !important;
    font-size: 1.15rem !important;
  }
  .checkout-modal-body {
    padding: 12px 14px !important;
    gap: 12px !important;
    overflow-y: auto !important;
    overscroll-behavior: contain !important;
    -webkit-overflow-scrolling: touch !important;
    flex: 1 1 auto !important;
  }
  .checkout-plan-summary {
    padding: 10px 12px !important;
    gap: 8px !important;
    flex-direction: row !important;
    justify-content: space-between !important;
    align-items: flex-start !important;
  }
  .summary-plan-name {
    font-size: 0.92rem !important;
  }
  .summary-plan-sub {
    display: block !important;
    font-size: 0.72rem !important;
    color: var(--text-muted, #96a1b2) !important;
    margin-top: 2px !important;
    line-height: 1.35 !important;
  }
  .summary-price-box {
    text-align: right !important;
    flex-shrink: 0 !important;
  }
  .summary-price-usd {
    font-size: 1rem !important;
  }
  .summary-price-inr {
    font-size: 0.74rem !important;
  }
  .checkout-tabs-nav {
    gap: 6px !important;
    padding: 4px !important;
  }
  .checkout-tab-btn {
    padding: 8px 10px !important;
    font-size: 0.78rem !important;
    gap: 6px !important;
  }
  .checkout-tab-btn svg {
    width: 15px !important;
    height: 15px !important;
  }
  .payment-method-box {
    padding: 12px 12px !important;
  }
  .payment-box-head {
    margin-bottom: 10px !important;
  }
  .payment-box-title {
    font-size: 0.88rem !important;
  }
  .payment-box-desc {
    font-size: 0.74rem !important;
  }
  .currency-tag {
    font-size: 0.62rem !important;
    padding: 1px 6px !important;
  }
  .price-conversion-calc {
    padding: 8px 10px !important;
    margin-bottom: 10px !important;
  }
  .calc-row {
    font-size: 0.76rem !important;
    padding: 2px 0 !important;
  }
  .calc-total-row .total-inr {
    font-size: 0.96rem !important;
  }
  #btnInitiateRazorpay {
    padding: 11px 14px !important;
    font-size: 0.88rem !important;
    min-height: 44px !important;
  }
  .crypto-network-alert {
    padding: 8px 10px !important;
    margin-bottom: 10px !important;
    gap: 8px !important;
  }
  .crypto-network-alert svg {
    width: 18px !important;
    height: 18px !important;
  }
  .crypto-network-alert .alert-heading {
    font-size: 0.72rem !important;
  }
  .crypto-network-alert .alert-body {
    font-size: 0.72rem !important;
    line-height: 1.4 !important;
  }
  .crypto-grid-layout {
    grid-template-columns: 1fr !important;
    gap: 12px !important;
  }
  .crypto-qr-card {
    padding: 10px !important;
    flex-direction: column !important;
    justify-content: center !important;
    align-items: center !important;
    gap: 6px !important;
  }
  .crypto-qr-wrapper {
    max-width: 110px !important;
    padding: 4px !important;
    margin: 0 auto !important;
    cursor: zoom-in !important;
  }
  .crypto-amount-badge {
    font-size: 0.72rem !important;
    text-align: center !important;
  }
  .crypto-amount-badge strong {
    font-size: 0.86rem !important;
  }
  .crypto-details-col {
    gap: 8px !important;
  }
  .crypto-field-label {
    font-size: 0.7rem !important;
    margin-bottom: 3px !important;
  }
  .crypto-address-input-group {
    display: flex !important;
    gap: 6px !important;
  }
  .crypto-address-field {
    font-size: 0.68rem !important;
    padding: 7px 8px !important;
    height: 36px !important;
  }
  .btn-copy-address {
    padding: 6px 10px !important;
    font-size: 0.74rem !important;
    height: 36px !important;
  }
  .crypto-instructions-notice {
    display: block !important;
    font-size: 0.72rem !important;
    color: var(--text-muted, #96a1b2) !important;
    background: rgba(255, 255, 255, 0.03) !important;
    border: 1px solid rgba(255, 255, 255, 0.06) !important;
    padding: 8px 10px !important;
    border-radius: 4px !important;
    line-height: 1.45 !important;
  }
  #cryptoProceedBtn {
    padding: 11px 14px !important;
    font-size: 0.86rem !important;
    min-height: 44px !important;
  }
  .form-group-row {
    grid-template-columns: 1fr;
  }
  .order-status-banner {
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
    padding: 18px;
  }
  .order-summary-grid {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }
  .order-summary-pricing {
    text-align: left;
  }
  .order-bottom-actions {
    display: flex !important;
    flex-direction: column !important;
    gap: 10px !important;
    width: 100% !important;
  }
  .order-bottom-actions .btn {
    width: 100% !important;
    justify-content: center !important;
  }
  .community-buttons-row {
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 8px !important;
    width: 100% !important;
  }
  .community-buttons-row .community-btn {
    flex: 1 1 120px !important;
    justify-content: center !important;
  }
}

@media (max-height: 720px) {
  .jers-checkout-modal-backdrop {
    align-items: center !important;
    padding: 6px !important;
  }
  .jers-checkout-modal {
    max-height: calc(100dvh - 12px) !important;
    margin: auto !important;
  }
  .checkout-modal-header {
    padding: 8px 14px !important;
  }
  .checkout-modal-body {
    padding: 8px 12px !important;
    gap: 8px !important;
  }
  .checkout-plan-summary {
    padding: 6px 10px !important;
  }
  .payment-method-box {
    padding: 8px 10px !important;
  }
  .price-conversion-calc {
    padding: 6px 8px !important;
    margin-bottom: 6px !important;
  }
  .crypto-network-alert {
    padding: 6px 8px !important;
    margin-bottom: 6px !important;
  }
}


