
@import url('../shared/design/tokens.css');
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&family=JetBrains+Mono:wght@400;500;600;700&family=Space+Grotesk:wght@500;600;700;800&display=swap');

/* ==========================================================================
   UNIVERSAL THEMED SCROLLBARS — Consistent Cyan/Dark Glow across all components
   ========================================================================== */
* {
  scrollbar-width: thin;
  scrollbar-color: rgba(76, 245, 200, 0.28) rgba(10, 18, 30, 0.7);
}

*::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}

*::-webkit-scrollbar-track {
  background: rgba(10, 18, 30, 0.7);
  border-radius: 4px;
}

*::-webkit-scrollbar-thumb {
  background: rgba(76, 245, 200, 0.28);
  border-radius: 4px;
  border: 1px solid rgba(76, 245, 200, 0.12);
  transition: background 0.2s ease;
}

*::-webkit-scrollbar-thumb:hover {
  background: rgba(76, 245, 200, 0.55);
}

*::-webkit-scrollbar-corner {
  background: rgba(10, 18, 30, 0.7);
}

/* ==========================================================================
   BADROCK CAPITAL — ULTRA-PREMIUM QUANT ECOSYSTEM DESIGN SYSTEM
   Agency-grade visual quality, seamless physics-based animations,
   glassmorphic layering, high-contrast typography, zero-lag performance.
   ========================================================================== */

/* ==========================================================================
   RESET & FOUNDATIONS
   ========================================================================== */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 96px;
  background-color: var(--bg-darkest);
  color-scheme: dark;
}

[id] {
  scroll-margin-top: 96px;
}

body {
  font-family: var(--font-body);
  background-color: var(--bg-darkest);
  color: var(--text-high);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  position: relative;
  background-image:
    radial-gradient(ellipse 90% 50% at 50% -10%, rgba(76, 245, 200, 0.12) 0%, transparent 70%),
    radial-gradient(ellipse 60% 40% at 85% 20%, rgba(56, 189, 248, 0.08) 0%, transparent 60%),
    radial-gradient(ellipse 60% 40% at 15% 45%, rgba(255, 209, 102, 0.06) 0%, transparent 65%),
    radial-gradient(circle at 50% 100%, #0c121e 0%, var(--bg-darkest) 100%);
  background-attachment: fixed;
}

/* Subtle micro-grid overlay for true agency tech vibe */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  background-size: 48px 48px;
  background-image:
    linear-gradient(to right, rgba(255, 255, 255, 0.018) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.018) 1px, transparent 1px);
  pointer-events: none;
  z-index: 1;
}

.container {
  width: 100%;
  max-width: var(--container-max);
  margin-left: auto;
  margin-right: auto;
  padding-left: 24px;
  padding-right: 24px;
  position: relative;
  z-index: 2;
}

/* ==========================================================================
   TYPOGRAPHY
   ========================================================================== */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  color: var(--text-pure);
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.12;
}

p {
  color: var(--text-medium);
}

a {
  color: inherit;
  text-decoration: none;
  transition: all 0.2s var(--ease-spring);
}

.gradient-title {
  background: linear-gradient(180deg, #FFFFFF 20%, #E2E8F0 60%, rgba(255, 255, 255, 0.45) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.gradient-accent {
  background: linear-gradient(135deg, #4cf5c8 0%, #38bdf8 50%, #818cf8 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* ==========================================================================
   INTERACTIVE BUTTONS & BADGES
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 22px;
  border-radius: var(--radius-sm);
  font-family: var(--font-display);
  font-size: 13.5px;
  font-weight: 700;
  cursor: pointer;
  border: 1px solid transparent;
  transition: all 0.25s var(--ease-spring);
  text-decoration: none;
  white-space: nowrap;
  user-select: none;
  position: relative;
  overflow: hidden;
}

.btn-primary {
  background: linear-gradient(135deg, #4cf5c8 0%, #20d4a4 100%);
  color: #04090f;
  box-shadow: 0 4px 24px rgba(76, 245, 200, 0.3);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 34px rgba(76, 245, 200, 0.45);
  filter: brightness(1.06);
}

.btn-primary:active {
  transform: translateY(0);
}

.btn-vip {
  background: linear-gradient(135deg, #ffd166 0%, #fca311 100%);
  color: #06090e;
  box-shadow: 0 4px 24px rgba(255, 209, 102, 0.28);
}

.btn-vip:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 34px rgba(255, 209, 102, 0.45);
  filter: brightness(1.06);
}

.btn-ultimate {
  background: linear-gradient(135deg, #a855f7 0%, #ec4899 50%, #ffd166 100%);
  color: #06090e;
  font-weight: 800;
  box-shadow: 0 4px 24px rgba(168, 85, 247, 0.4);
}

.btn-ultimate:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 36px rgba(168, 85, 247, 0.65);
  filter: brightness(1.08);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-bright);
  color: var(--text-pure);
  backdrop-filter: blur(12px);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.09);
  border-color: rgba(255, 255, 255, 0.3);
  transform: translateY(-2px);
}

.btn-ghost {
  background: transparent;
  border: 1px solid var(--border-subtle);
  color: var(--text-medium);
}

.btn-ghost:hover {
  color: var(--text-pure);
  border-color: var(--border-bright);
  background: rgba(255, 255, 255, 0.04);
}

.btn-lg {
  padding: 14px 28px;
  font-size: 15px;
  border-radius: var(--radius-md);
}

.btn-sm {
  padding: 6px 14px;
  font-size: 12px;
  border-radius: var(--radius-xs);
}

/* Badges */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 9px;
  border-radius: var(--radius-pill);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  font-family: var(--font-mono);
}

.badge-cyan {
  background: var(--brand-cyan-dim);
  color: var(--brand-cyan);
  border: 1px solid rgba(76, 245, 200, 0.3);
}

.badge-gold {
  background: var(--brand-gold-dim);
  color: var(--brand-gold);
  border: 1px solid rgba(255, 209, 102, 0.3);
}

.badge-blue {
  background: rgba(56, 189, 248, 0.12);
  color: var(--brand-blue);
  border: 1px solid rgba(56, 189, 248, 0.3);
}

.badge-live-pulse {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 10px;
  border-radius: var(--radius-pill);
  background: rgba(76, 245, 200, 0.1);
  border: 1px solid rgba(76, 245, 200, 0.3);
  color: var(--brand-cyan);
  font-size: 11px;
  font-weight: 700;
  font-family: var(--font-mono);
}

.badge-live-pulse::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--brand-cyan);
  box-shadow: 0 0 10px var(--brand-cyan);
  animation: pulse-ring 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

@keyframes pulse-ring {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(1.4); }
}

/* Glowing Conic Badge (Inspired by LuxAlgo & Agency Agents) */
.glowing-hero-pill {
  position: relative;
  display: inline-flex;
  padding: 1px;
  border-radius: var(--radius-pill);
  overflow: hidden;
  margin-bottom: 24px;
}

.glowing-hero-pill::before {
  content: "";
  position: absolute;
  inset: -200%;
  background: conic-gradient(from 0deg, transparent 0deg, rgba(76, 245, 200, 0.8) 60deg, transparent 120deg);
  animation: spin-conic 4s linear infinite;
}

@keyframes spin-conic {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

.glowing-pill-inner {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  border-radius: var(--radius-pill);
  background: #090e17;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--text-pure);
}

/* Glass Card */
.glass-panel {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: var(--shadow-ambient);
  transition: all 0.3s var(--ease-spring);
  position: relative;
  overflow: hidden;
}

.glass-panel::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
  pointer-events: none;
}

.glass-panel:hover {
  border-color: var(--border-bright);
  transform: translateY(-2px);
  box-shadow: 0 35px 100px -15px rgba(0, 0, 0, 0.9), 0 0 30px -5px rgba(76, 245, 200, 0.15);
}

/* ==========================================================================
   FLOATING MODERN HEADER
   ========================================================================== */
.site-header {
  position: fixed;
  top: 14px;
  left: 0;
  right: 0;
  z-index: 1000;
  transition: all 0.3s var(--ease-spring);
  pointer-events: none;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 58px;
  padding: 0 20px;
  max-width: 1240px;
  margin: 0 auto;
  background: var(--bg-glass-nav);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-pill);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  box-shadow: 0 12px 35px rgba(0, 0, 0, 0.6);
  transition: all 0.3s var(--ease-spring);
  pointer-events: auto;
}

.site-header.scrolled .header-inner {
  background: rgba(6, 9, 15, 0.94);
  border-color: var(--border-bright);
  box-shadow: 0 16px 45px rgba(0, 0, 0, 0.85);
}

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

.brand-logo-img {
  height: 32px;
  width: auto;
  object-fit: contain;
  display: block;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 2px;
}

.nav-item {
  color: var(--text-medium);
  font-size: 13px;
  font-weight: 600;
  padding: 6px 11px;
  border-radius: var(--radius-pill);
  transition: all 0.2s var(--ease-spring);
  display: inline-flex;
  align-items: center;
  gap: 5px;
  white-space: nowrap;
}

.nav-item:hover {
  color: var(--text-pure);
  background: rgba(255, 255, 255, 0.05);
}

.nav-micro-badge {
  font-size: 8.5px;
  padding: 1px 5px;
  border-radius: 4px;
  background: var(--brand-cyan-dim);
  color: var(--brand-cyan);
  font-weight: 700;
  font-family: var(--font-mono);
}

.header-right {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

/* Language Selector Dropdown */
.lang-dropdown-wrapper {
  position: relative;
  display: inline-block;
}

.lang-toggle-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-subtle);
  color: var(--text-pure);
  padding: 6px 10px;
  border-radius: var(--radius-pill);
  font-size: 12px;
  font-weight: 700;
  font-family: var(--font-mono);
  cursor: pointer;
  transition: all 0.2s var(--ease-spring);
}

.lang-toggle-btn:hover {
  background: rgba(255, 255, 255, 0.09);
  border-color: var(--brand-cyan);
}

.lang-globe-icon {
  color: var(--brand-cyan);
}

.lang-arrow-glyph {
  font-size: 8px;
  opacity: 0.6;
  transition: transform 0.2s;
}

.lang-menu-popover {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  width: 175px;
  background: rgba(8, 12, 20, 0.97);
  border: 1px solid var(--border-bright);
  border-radius: var(--radius-md);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.85), 0 0 25px rgba(76, 245, 200, 0.15);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  transition: all 0.25s var(--ease-spring);
  z-index: 1001;
  overflow: hidden;
}

.lang-menu-popover.open {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.lang-menu-inner {
  padding: 6px;
  display: flex;
  flex-direction: column;
  gap: 2px;
  max-height: 290px;
  overflow-y: auto;
}

.lang-option-btn {
  display: flex;
  align-items: center;
  gap: 9px;
  width: 100%;
  padding: 7px 10px;
  background: transparent;
  border: none;
  border-radius: var(--radius-xs);
  color: var(--text-medium);
  font-size: 12.5px;
  font-family: var(--font-body);
  text-align: left;
  cursor: pointer;
  transition: all 0.15s;
}

.lang-option-btn:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
}

.lang-option-btn.active {
  background: var(--brand-cyan-dim);
  color: var(--brand-cyan);
  font-weight: 700;
}

.lang-flag-emoji {
  font-size: 14px;
}

.lang-opt-name {
  flex: 1;
}

.lang-opt-code {
  font-size: 10px;
  font-family: var(--font-mono);
  opacity: 0.6;
}

.mobile-toggle-btn {
  display: none;
  background: none;
  border: 1px solid var(--border-subtle);
  color: #fff;
  padding: 8px 10px;
  border-radius: var(--radius-sm);
  cursor: pointer;
}

/* ==========================================================================
   HERO SECTION
   ========================================================================== */
.hero-section {
  padding-top: 140px;
  padding-bottom: 80px;
  text-align: center;
  position: relative;
}

.hero-content {
  max-width: 980px;
  margin: 0 auto;
}

.hero-h1 {
  font-size: clamp(36px, 5.5vw, 66px);
  font-weight: 800;
  line-height: 1.06;
  margin-bottom: 24px;
  letter-spacing: -0.03em;
}

.hero-lead {
  font-size: clamp(16px, 1.8vw, 20px);
  color: var(--text-medium);
  max-width: 780px;
  margin: 0 auto 40px;
  line-height: 1.58;
}

.hero-actions-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 50px;
}

.hero-metrics-strip {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 40px;
  flex-wrap: wrap;
  margin-bottom: 60px;
}

.metric-card {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.metric-value {
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 800;
  color: var(--text-pure);
}

.metric-label {
  font-size: 11.5px;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 600;
  font-family: var(--font-mono);
}

/* ==========================================================================
   HERO INTERACTIVE STAGE & REAL TRADINGVIEW LIGHTWEIGHT CHARTS
   ========================================================================== */
.hero-stage-shell {
  max-width: 1180px;
  margin: 0 auto;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-bright);
  background: #080c14;
  box-shadow: 0 30px 100px -15px rgba(0, 0, 0, 0.9), 0 0 50px -10px var(--brand-cyan-glow);
  overflow: hidden;
  position: relative;
}

.stage-header-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 20px;
  background: rgba(6, 10, 17, 0.95);
  border-bottom: 1px solid var(--border-subtle);
  flex-wrap: wrap;
  gap: 12px;
}

.stage-mac-dots {
  display: flex;
  gap: 8px;
}

.stage-mac-dot {
  width: 11px;
  height: 11px;
  border-radius: 50%;
}
.stage-mac-dot.close { background: #ff5f56; }
.stage-mac-dot.min { background: #ffbd2e; }
.stage-mac-dot.max { background: #27c93f; }

/* Interactive Segmented Switcher */
.stage-nav-switcher {
  display: flex;
  gap: 4px;
  background: rgba(255, 255, 255, 0.04);
  padding: 3px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--border-subtle);
}

.stage-tab-btn {
  background: transparent;
  border: none;
  color: var(--text-medium);
  font-family: var(--font-display);
  font-size: 12.5px;
  font-weight: 600;
  padding: 6px 16px;
  border-radius: var(--radius-pill);
  cursor: pointer;
  transition: all 0.25s var(--ease-spring);
}

.stage-tab-btn.active {
  background: #152236;
  color: var(--brand-cyan);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.4), inset 0 0 0 1px rgba(76, 245, 200, 0.4);
}

.stage-body {
  padding: 24px;
  min-height: 520px;
}

.stage-view {
  display: none;
  animation: viewFadeIn 0.3s var(--ease-spring);
}
.stage-view.active {
  display: block;
}

@keyframes viewFadeIn {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Stage View 1: Real Chart & Live Signals Stack */
.stage-chart-layout {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 20px;
}

.chart-canvas-wrapper {
  background: #06090f;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 16px;
  display: flex;
  flex-direction: column;
}

.chart-meta-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid var(--border-subtle);
  padding-bottom: 12px;
  margin-bottom: 14px;
  flex-wrap: wrap;
  gap: 10px;
}

.chart-pair-title {
  display: flex;
  align-items: center;
  gap: 10px;
}

.chart-timeframe-group {
  display: flex;
  gap: 4px;
}

.tf-btn {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-subtle);
  color: var(--text-medium);
  font-size: 11px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.2s;
  font-family: var(--font-mono);
}

.tf-btn.active, .tf-btn:hover {
  background: var(--brand-cyan-dim);
  color: var(--brand-cyan);
  border-color: rgba(76, 245, 200, 0.4);
}

#tradingview-chart-container {
  width: 100%;
  height: 360px;
  position: relative;
  transition: opacity 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Signals Sidebar Stack */
.signals-sidebar-stack {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.signal-live-card {
  background: rgba(13, 19, 31, 0.85);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 16px;
  transition: all 0.2s var(--ease-spring);
}

.signal-live-card:hover {
  border-color: var(--brand-cyan);
  background: rgba(18, 26, 42, 0.95);
  transform: translateY(-2px);
}

.signal-card-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
}

.sig-symbol {
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 800;
  color: #fff;
}

.sig-badge-direction {
  font-size: 11px;
  font-weight: 800;
  padding: 2px 8px;
  border-radius: 4px;
  font-family: var(--font-mono);
}
.sig-badge-direction.long {
  background: rgba(76, 245, 200, 0.15);
  color: var(--brand-cyan);
  border: 1px solid rgba(76, 245, 200, 0.35);
}
.sig-badge-direction.short {
  background: rgba(255, 92, 119, 0.15);
  color: var(--brand-danger);
  border: 1px solid rgba(255, 92, 119, 0.35);
}

.sig-data-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  font-size: 12px;
  color: var(--text-medium);
  margin-bottom: 12px;
}

.sig-data-grid strong {
  color: var(--text-pure);
  font-family: var(--font-mono);
}

/* ==========================================================================
   STAGE VIEW 2: INTERACTIVE BADROCK ALGO TERMINAL & PRESET PIPELINE
   ========================================================================== */
.terminal-stage-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}

.terminal-stage-meta {
  max-width: 620px;
}

.terminal-stage-controls {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

/* Terminal Download Dropdown */
.terminal-download-dropdown {
  position: relative;
  display: inline-block;
}

.term-download-trigger {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  cursor: pointer;
}

.term-dl-caret {
  font-size: 11px;
  opacity: 0.7;
  transition: transform 0.2s var(--ease-spring);
}

.terminal-download-dropdown.open .term-dl-caret {
  transform: rotate(180deg);
}

.term-download-menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  background: rgba(10, 16, 28, 0.97);
  border: 1px solid var(--border-bright);
  border-radius: var(--radius-sm);
  padding: 6px;
  min-width: 220px;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.8), 0 0 24px rgba(76, 245, 200, 0.15);
  backdrop-filter: blur(14px);
  z-index: 100;
  display: none;
  flex-direction: column;
  gap: 4px;
}

.terminal-download-dropdown.open .term-download-menu {
  display: flex;
  animation: fadeInMenu 0.18s var(--ease-spring);
}

@keyframes fadeInMenu {
  from { opacity: 0; transform: translateY(-4px); }
  to { opacity: 1; transform: translateY(0); }
}

.term-dl-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  border-radius: 6px;
  color: #fff;
  text-decoration: none;
  transition: all 0.2s;
}

.term-dl-item:hover {
  background: rgba(76, 245, 200, 0.12);
  color: var(--brand-cyan);
}

.term-dl-item svg {
  flex-shrink: 0;
  opacity: 0.85;
}

.term-dl-item:hover svg {
  opacity: 1;
  color: var(--brand-cyan);
}

.term-dl-item strong {
  display: block;
  font-size: 13px;
  font-family: var(--font-display);
}

.term-dl-sub {
  display: block;
  font-size: 11px;
  color: var(--text-dim);
  font-family: var(--font-mono);
  margin-top: 2px;
}

/* Stepper Pills */
.terminal-stepper-pills {
  display: flex;
  gap: 4px;
  background: rgba(255, 255, 255, 0.04);
  padding: 4px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--border-subtle);
}

.term-step-btn {
  background: transparent;
  border: none;
  color: var(--text-medium);
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 700;
  padding: 6px 14px;
  border-radius: var(--radius-pill);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  transition: all 0.25s var(--ease-spring);
}

.term-step-btn .step-num {
  width: 17px;
  height: 17px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  font-family: var(--font-mono);
  color: var(--text-pure);
}

.term-step-btn.active {
  background: #132238;
  color: var(--brand-cyan);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.4), inset 0 0 0 1px rgba(76, 245, 200, 0.35);
}

.term-step-btn.active .step-num {
  background: var(--brand-cyan);
  color: #050b14;
  font-weight: 800;
}

/* Main Display Frame */
.terminal-display-frame {
  background: #070b13;
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: var(--radius-md);
  padding: 18px 22px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.7), inset 0 1px 0 rgba(255, 255, 255, 0.05);
  position: relative;
  min-height: 440px;
}

.term-view-screen {
  display: none;
  animation: termFadeIn 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.term-view-screen.active {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

@keyframes termFadeIn {
  from { opacity: 0; transform: translateY(5px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Screen Head Bar */
.term-screen-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--border-subtle);
  padding-bottom: 12px;
  flex-wrap: wrap;
  gap: 10px;
}

.term-title-bold {
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 800;
  color: #fff;
  letter-spacing: -0.01em;
}

.term-chip {
  font-size: 11px;
  font-family: var(--font-mono);
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.06);
  color: var(--text-medium);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.term-chip.green-pulse {
  background: rgba(76, 245, 200, 0.1);
  color: var(--brand-cyan);
  border-color: rgba(76, 245, 200, 0.3);
}

/* Config Grid */
.term-cfg-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 10px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 8px;
  padding: 12px 14px;
}

.term-cfg-cell {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.term-cfg-label {
  font-size: 10.5px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--text-dim);
  font-family: var(--font-mono);
}

.term-cfg-val {
  font-size: 12px;
  font-weight: 700;
  color: #fff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.term-cfg-val.highlight-blue {
  color: var(--brand-blue);
}

/* Progress Panel */
.term-progress-panel {
  background: rgba(13, 19, 31, 0.7);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 18px 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.term-prog-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.term-sub-meta {
  font-size: 11.5px;
  color: var(--text-medium);
  font-family: var(--font-mono);
  margin-top: 3px;
}

.term-pct-large {
  font-family: var(--font-mono);
  font-weight: 800;
  font-size: 26px;
  color: var(--brand-cyan);
  letter-spacing: -0.02em;
}

.term-prog-track {
  width: 100%;
  height: 9px;
  background: rgba(255, 255, 255, 0.07);
  border-radius: var(--radius-pill);
  overflow: hidden;
  position: relative;
  box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.5);
}

.term-prog-fill {
  height: 100%;
  background: linear-gradient(90deg, #38bdf8 0%, #4cf5c8 100%);
  border-radius: var(--radius-pill);
  position: relative;
  box-shadow: 0 0 16px rgba(76, 245, 200, 0.5);
  transition: width 0.08s linear;
}

.term-prog-glow-head {
  position: absolute;
  right: 0;
  top: 0;
  bottom: 0;
  width: 14px;
  background: #fff;
  border-radius: 50%;
  filter: blur(2px);
  opacity: 0.8;
}

.term-prog-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* Filters Strip */
.term-filters-strip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 8px;
  padding: 10px 14px;
  flex-wrap: wrap;
  gap: 12px;
}

.term-toggle {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--text-medium);
  font-family: var(--font-mono);
}

.term-toggle.active {
  color: #fff;
}

.term-toggle-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--text-dim);
}

.term-toggle.active .term-toggle-dot {
  background: var(--brand-cyan);
  box-shadow: 0 0 8px var(--brand-cyan);
}

/* Step 2: Presets Metrics Row */
.term-metrics-row {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 10px;
}

.term-m-tile {
  background: rgba(13, 19, 31, 0.85);
  border: 1px solid var(--border-subtle);
  border-radius: 8px;
  padding: 10px 12px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.term-m-label {
  font-size: 10.5px;
  color: var(--text-dim);
  font-family: var(--font-mono);
  text-transform: uppercase;
}

.term-m-val {
  font-family: var(--font-mono);
  font-size: 16px;
  font-weight: 800;
  color: #fff;
}

.term-m-val.text-cyan { color: var(--brand-cyan); }
.term-m-val.text-pure { color: #fff; }
.term-m-val.text-danger { color: var(--brand-danger); }

/* Equity Canvas Box */
.term-equity-canvas-box {
  background: #040810;
  border: 1px solid var(--border-subtle);
  border-radius: 10px;
  padding: 14px 18px 10px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  position: relative;
}

.term-equity-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12.5px;
  color: #fff;
}

#term-equity-canvas {
  width: 100%;
  height: 170px;
  display: block;
}

.term-equity-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  padding-top: 8px;
}

.term-open-btn {
  box-shadow: 0 0 16px rgba(255, 209, 102, 0.35);
  animation: pulse-border 2s infinite;
}

@keyframes pulse-border {
  0%, 100% { transform: scale(1); filter: brightness(1); }
  50% { transform: scale(1.02); filter: brightness(1.15); box-shadow: 0 0 24px rgba(255, 209, 102, 0.55); }
}

/* Step 3: Trade Execution Chart Box (Real TradingView Lightweight Chart) */
.term-trade-chart-box,
.term-trade-canvas-box {
  background: #040810;
  border: 1px solid var(--border-subtle);
  border-radius: 10px;
  padding: 8px 10px;
  position: relative;
  overflow: hidden;
  min-height: 250px;
}

#term-trade-tv-chart {
  width: 100%;
  height: 250px;
  display: block;
  border-radius: 8px;
  overflow: hidden;
}

#term-trade-canvas {
  width: 100%;
  height: 200px;
  display: block;
}

.term-trade-status-overlay {
  position: absolute;
  bottom: 16px;
  left: 18px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(8, 14, 24, 0.94);
  border: 1px solid var(--brand-cyan);
  padding: 6px 14px;
  border-radius: var(--radius-pill);
  font-size: 12px;
  color: var(--brand-cyan);
  font-weight: 700;
  font-family: var(--font-mono);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(8px);
  z-index: 5;
  pointer-events: none;
}

.trade-dot-live {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--brand-cyan);
  box-shadow: 0 0 8px var(--brand-cyan);
  animation: pulse-ring 1.5s infinite;
}

/* Orders Telemetry Table */
.term-orders-table-strip {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 8px;
}

.term-order-item {
  background: rgba(13, 19, 31, 0.7);
  border: 1px solid var(--border-subtle);
  border-radius: 8px;
  padding: 8px 12px;
  display: flex;
  flex-direction: column;
  gap: 3px;
  transition: all 0.3s;
}

.term-order-item.highlight-hit {
  border-color: var(--brand-cyan);
  background: rgba(76, 245, 200, 0.1);
}

.term-order-item.highlight-be {
  border-color: var(--brand-gold);
  background: rgba(255, 209, 102, 0.1);
}

.term-ord-type {
  font-size: 10px;
  font-family: var(--font-mono);
  font-weight: 800;
  text-transform: uppercase;
}
.term-ord-type.blue { color: var(--brand-blue); }
.term-ord-type.cyan { color: var(--brand-cyan); }
.term-ord-type.gold { color: var(--brand-gold); }
.term-ord-type.danger { color: var(--brand-danger); }

.term-ord-price {
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 700;
  color: #fff;
}

.term-ord-status {
  font-size: 10.5px;
  font-family: var(--font-mono);
  color: var(--text-dim);
}
.term-ord-status.ok {
  color: var(--brand-cyan);
  font-weight: 700;
}

@media (max-width: 960px) {
  .term-cfg-grid { grid-template-columns: repeat(3, 1fr); }
  .term-metrics-row { grid-template-columns: repeat(3, 1fr); }
  .term-orders-table-strip { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 640px) {
  .term-cfg-grid { grid-template-columns: 1fr 1fr; }
  .term-metrics-row { grid-template-columns: 1fr 1fr; }
  .term-orders-table-strip { grid-template-columns: 1fr; }
}

/* ==========================================================================
   INSTITUTIONAL TIER-1 PARTNERS TRUST STRIP
   ========================================================================== */
.trust-partners-strip {
  padding: 40px 0 65px;
  position: relative;
  text-align: center;
}

.trust-title {
  font-size: 11.5px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-family: var(--font-mono);
  color: var(--text-dim);
  margin-bottom: 24px;
}

.trust-logos-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 46px;
  flex-wrap: wrap;
}

.trust-logo-item {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  opacity: 0.55;
  transition: all 0.3s var(--ease-spring);
  color: var(--text-pure);
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 15px;
  letter-spacing: 0.04em;
  text-decoration: none;
}

.trust-logo-item svg {
  width: 20px;
  height: 20px;
  opacity: 0.8;
  transition: transform 0.3s var(--ease-spring);
}

.trust-logo-item:hover {
  opacity: 1;
  transform: translateY(-2px);
  color: var(--brand-cyan);
  filter: drop-shadow(0 0 16px rgba(76, 245, 200, 0.4));
}

.trust-logo-item:hover svg {
  transform: scale(1.15);
}

/* ==========================================================================
   SPOTLIGHT EFFECT ON INTERACTIVE CARDS
   ========================================================================== */
.spotlight-card {
  position: relative;
}

.spotlight-card::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: radial-gradient(450px circle at var(--mouse-x, -500px) var(--mouse-y, -500px), rgba(76, 245, 200, 0.08), transparent 40%);
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.3s var(--ease-spring);
  z-index: 1;
}

.spotlight-card:hover::before {
  opacity: 1;
}

/* ==========================================================================
   BENTO MATRIX / THE 6 PILLARS OF BADROCK
   ========================================================================== */
.section-wrapper {
  padding: 100px 0;
  position: relative;
}

.section-headline-box {
  text-align: center;
  max-width: 760px;
  margin: 0 auto 55px;
}

.section-kicker {
  font-size: 12px;
  font-weight: 700;
  color: var(--brand-cyan);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-family: var(--font-mono);
  margin-bottom: 12px;
}

.section-main-h2 {
  font-size: clamp(30px, 4.2vw, 46px);
  margin-bottom: 16px;
  letter-spacing: -0.025em;
}

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

.bento-card {
  padding: 28px 24px;
  display: flex;
  flex-direction: column;
}

/* High-tech visual header inside each Bento card */
.bento-visual-header {
  height: 84px;
  border-radius: var(--radius-sm);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.04) 0%, rgba(255, 255, 255, 0.01) 100%);
  border: 1px solid rgba(255, 255, 255, 0.06);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 18px;
  margin-bottom: 20px;
  position: relative;
  overflow: hidden;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.bento-visual-header::before {
  content: "";
  position: absolute;
  inset: 0;
  background-size: 14px 14px;
  background-image:
    linear-gradient(to right, rgba(255, 255, 255, 0.02) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
  pointer-events: none;
}

.bento-tech-icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  background: var(--brand-cyan-dim);
  border: 1px solid rgba(76, 245, 200, 0.3);
  color: var(--brand-cyan);
  box-shadow: 0 0 20px rgba(76, 245, 200, 0.2);
  z-index: 2;
  position: relative;
}

.bento-tech-icon.gold {
  background: var(--brand-gold-dim);
  border-color: rgba(255, 209, 102, 0.3);
  color: var(--brand-gold);
  box-shadow: 0 0 20px rgba(255, 209, 102, 0.2);
}

.bento-tech-icon.blue {
  background: rgba(56, 189, 248, 0.12);
  border-color: rgba(56, 189, 248, 0.3);
  color: var(--brand-blue);
  box-shadow: 0 0 20px rgba(56, 189, 248, 0.2);
}

.bento-mini-viz {
  z-index: 2;
  opacity: 0.85;
}

.bento-title {
  font-size: 20px;
  margin-bottom: 10px;
}

.bento-p {
  font-size: 14px;
  color: var(--text-medium);
  line-height: 1.6;
  margin-bottom: 20px;
  flex: 1;
}

.bento-checklist {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 9px;
  margin-bottom: 24px;
}

.bento-checklist li {
  font-size: 13px;
  color: var(--text-high);
  display: flex;
  align-items: center;
  gap: 8px;
}

.bento-checklist li svg {
  color: var(--brand-cyan);
  flex-shrink: 0;
}

/* ==========================================================================
   FEATURE IN-DEPTH SPLITS (With Real Generated 8K Graphics)
   ========================================================================== */
.feature-showcase-split {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 50px;
  align-items: center;
  margin-bottom: 90px;
}

.feature-showcase-split.reverse {
  grid-template-columns: 1.2fr 1fr;
}
.feature-showcase-split.reverse .split-text-col { order: 2; }
.feature-showcase-split.reverse .split-media-col { order: 1; }

.split-media-img {
  width: 100%;
  height: auto;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-bright);
  box-shadow: 0 25px 70px -15px rgba(0, 0, 0, 0.85);
  display: block;
}

.specs-2col-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin: 28px 0;
}

.spec-tile {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 14px 18px;
}

.spec-tile-title {
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 700;
  color: #fff;
}

.spec-tile-desc {
  font-size: 12px;
  color: var(--text-low);
  margin-top: 2px;
}


/* ==========================================================================
   PRICING PLANS (3-Day Trial / Referral Lite / Pro $11 / VIP $22)
   ========================================================================== */
.pricing-interval-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-bottom: 50px;
}

.interval-segmented-control {
  display: inline-flex;
  background: rgba(255, 255, 255, 0.04);
  padding: 4px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--border-subtle);
}

.interval-btn {
  padding: 8px 20px;
  border-radius: var(--radius-pill);
  font-size: 13px;
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--text-medium);
  cursor: pointer;
  background: transparent;
  border: none;
  transition: all 0.2s;
}

.interval-btn.active {
  background: #ffffff;
  color: #000000;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.3);
}

.discount-tag {
  font-size: 11px;
  padding: 2px 8px;
  border-radius: var(--radius-pill);
  background: rgba(76, 245, 200, 0.15);
  color: var(--brand-cyan);
  font-weight: 700;
}

.pricing-grid-4cols {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
  align-items: stretch;
}

.tier-card {
  padding: 34px 26px;
  display: flex;
  flex-direction: column;
  position: relative;
  transition: transform 0.25s var(--ease-spring), box-shadow 0.25s var(--ease-spring);
}

.tier-card.featured-edu {
  border-color: rgba(56, 189, 248, 0.4);
  background: linear-gradient(180deg, rgba(56, 189, 248, 0.08) 0%, rgba(12, 18, 30, 0.92) 100%);
  box-shadow: 0 20px 50px rgba(56, 189, 248, 0.12);
}

.tier-card.featured-pro {
  border-color: rgba(76, 245, 200, 0.45);
  background: linear-gradient(180deg, rgba(76, 245, 200, 0.08) 0%, rgba(12, 18, 30, 0.9) 100%);
  transform: translateY(-4px);
  box-shadow: 0 24px 70px rgba(76, 245, 200, 0.18);
}

.tier-card.featured-vip {
  border-color: rgba(255, 209, 102, 0.45);
  background: linear-gradient(180deg, rgba(255, 209, 102, 0.08) 0%, rgba(12, 18, 30, 0.9) 100%);
  box-shadow: 0 24px 70px rgba(255, 209, 102, 0.18);
}

.tier-card.featured-ultimate {
  border-color: rgba(168, 85, 247, 0.6);
  background: linear-gradient(180deg, rgba(168, 85, 247, 0.12) 0%, rgba(20, 15, 36, 0.95) 100%);
  transform: translateY(-4px);
  box-shadow: 0 24px 70px rgba(168, 85, 247, 0.25), 0 0 35px rgba(236, 72, 153, 0.12);
}

.corner-ribbon {
  position: absolute;
  top: 16px;
  right: 18px;
  font-size: 10.5px;
  font-weight: 800;
  padding: 3px 10px;
  border-radius: var(--radius-pill);
  text-transform: uppercase;
  font-family: var(--font-mono);
}
.corner-ribbon.edu { background: var(--brand-blue); color: #04080e; }
.corner-ribbon.popular { background: var(--brand-cyan); color: #04080e; }
.corner-ribbon.vip { background: var(--brand-gold); color: #04080e; }
.corner-ribbon.ultimate {
  background: linear-gradient(135deg, #a855f7 0%, #ec4899 50%, #ffd166 100%);
  color: #06090e;
  font-weight: 900;
  box-shadow: 0 2px 10px rgba(168, 85, 247, 0.4);
}

.tier-name {
  font-size: 20px;
  margin-bottom: 6px;
}

.tier-desc {
  font-size: 13px;
  color: var(--text-medium);
  margin-bottom: 20px;
  min-height: 40px;
}

.tier-price-row {
  display: flex;
  align-items: baseline;
  gap: 6px;
  margin-bottom: 24px;
}

.tier-price-val {
  font-family: var(--font-display);
  font-size: 44px;
  font-weight: 800;
  color: #ffffff;
  line-height: 1;
}

.tier-price-period {
  font-size: 13px;
  color: var(--text-dim);
}

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

.tier-perks-list li {
  font-size: 13px;
  color: var(--text-medium);
  display: flex;
  align-items: flex-start;
  gap: 8px;
  line-height: 1.45;
}

.tier-perks-list li strong {
  color: #ffffff;
}

.tier-perks-list li svg {
  color: var(--brand-cyan);
  flex-shrink: 0;
  margin-top: 3px;
}

.tier-perks-list li.dimmed {
  opacity: 0.4;
  text-decoration: line-through;
}

/* ==========================================================================
   CUSTOM DEVELOPMENT & CALCULATOR
   ========================================================================== */
.calculator-2col-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 36px;
  align-items: stretch;
}

.calc-box-padding {
  padding: 36px;
}

.input-field-group {
  margin-bottom: 22px;
}

.field-label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: #fff;
  margin-bottom: 8px;
}

.field-select, .field-textarea {
  width: 100%;
  background: rgba(6, 10, 16, 0.85);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  color: var(--text-pure);
  padding: 12px 14px;
  font-family: var(--font-body);
  font-size: 14px;
  transition: all 0.2s;
  outline: none;
}

.field-select:focus, .field-textarea:focus {
  border-color: var(--brand-cyan);
  box-shadow: 0 0 0 2px var(--brand-cyan-dim);
}

.calc-price-callout {
  background: rgba(76, 245, 200, 0.05);
  border: 1px solid rgba(76, 245, 200, 0.25);
  border-radius: var(--radius-md);
  padding: 26px;
  text-align: center;
  margin: 24px 0;
}

.calc-big-number {
  font-family: var(--font-display);
  font-size: 46px;
  font-weight: 800;
  color: var(--brand-cyan);
}

/* ==========================================================================
   FAQ ACCORDION
   ========================================================================== */
.faq-accordion-stack {
  max-width: 840px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.faq-row {
  border: 1px solid var(--border-subtle);
  background: var(--bg-card);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: border-color 0.25s var(--ease-spring);
}

.faq-row.open {
  border-color: var(--border-accent);
}

.faq-trigger {
  padding: 22px 26px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  user-select: none;
  font-family: var(--font-display);
  font-size: 16.5px;
  font-weight: 600;
  color: #ffffff;
}

.faq-icon-glyph {
  font-size: 20px;
  color: var(--brand-cyan);
  transition: transform 0.3s var(--ease-spring);
}

.faq-row.open .faq-icon-glyph {
  transform: rotate(45deg);
}

.faq-collapsible-body {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s var(--ease-spring), padding 0.35s var(--ease-spring);
  padding: 0 26px;
  font-size: 14.5px;
  color: var(--text-medium);
  line-height: 1.68;
}

.faq-row.open .faq-collapsible-body {
  max-height: 400px;
  padding: 0 26px 24px;
}

/* ==========================================================================
   SITE FOOTER
   ========================================================================== */
.site-footer {
  border-top: 1px solid var(--border-subtle);
  background: #04060a;
  padding: 90px 0 45px;
  position: relative;
  z-index: 2;
}

.footer-4col-grid,
.footer-5col-grid {
  display: grid;
  grid-template-columns: 1.3fr repeat(4, 1fr);
  gap: 36px;
  margin-bottom: 70px;
}

.footer-meta-p {
  font-size: 13.5px;
  color: var(--text-low);
  max-width: 320px;
  margin-top: 16px;
  line-height: 1.65;
}

.footer-heading {
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 20px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.footer-menu {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 11px;
}

.footer-menu a {
  font-size: 13.5px;
  color: var(--text-medium);
}

.footer-menu a:hover {
  color: var(--brand-cyan);
}

.footer-disclaimer-card {
  background: rgba(255, 92, 119, 0.04);
  border: 1px solid rgba(255, 92, 119, 0.15);
  border-radius: var(--radius-sm);
  padding: 18px;
  margin-bottom: 36px;
  font-size: 12px;
  color: #a58f96;
  line-height: 1.62;
}

.footer-copyright-bar {
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  padding-top: 30px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  font-size: 12.5px;
  color: var(--text-dim);
}

/* ==========================================================================
   RESPONSIVE LAYOUTS
   ========================================================================== */
@media (max-width: 1180px) {
  .nav-micro-badge { display: none; }
  .header-right .btn-secondary { display: none; }
  .nav-item { font-size: 12px; padding: 5px 8px; }
  .pricing-grid-4cols { grid-template-columns: repeat(2, 1fr); }
  .bento-grid-3 { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 960px) {
  .main-nav { display: none; }
  .mobile-toggle-btn { display: block; }
  .main-nav.mobile-active {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: calc(100% + 12px);
    left: 20px;
    right: 20px;
    background: rgba(8, 12, 20, 0.98);
    border: 1px solid var(--border-bright);
    border-radius: var(--radius-lg);
    padding: 22px;
    backdrop-filter: blur(28px);
    -webkit-backdrop-filter: blur(28px);
    box-shadow: 0 25px 70px rgba(0, 0, 0, 0.95), 0 0 30px rgba(76, 245, 200, 0.15);
    z-index: 1002;
    gap: 8px;
  }
  .feature-showcase-split, .feature-showcase-split.reverse { grid-template-columns: 1fr; gap: 36px; }
  .feature-showcase-split.reverse .split-text-col { order: 1; }
  .feature-showcase-split.reverse .split-media-col { order: 2; }
  .calculator-2col-layout { grid-template-columns: 1fr; }
  .stage-chart-layout { grid-template-columns: 1fr; }
  .footer-4col-grid,
  .footer-5col-grid { grid-template-columns: repeat(2, 1fr); gap: 28px; }
}

@media (max-width: 640px) {
  .hero-section { padding-top: 115px; }
  .pricing-grid-4cols { grid-template-columns: 1fr; }
  .bento-grid-3 { grid-template-columns: 1fr; }
  .hero-h1 { font-size: 32px; }
  .hero-lead { font-size: 14.5px; }
  .hero-metrics-strip { gap: 20px; }
  .trust-logos-row { gap: 28px; }
  .footer-4col-grid,
  .footer-5col-grid { grid-template-columns: 1fr; gap: 24px; }
}

/* ==========================================================================
   SMOOTH SCROLL & ANCHOR NAVIGATION ALIGNMENT
   ========================================================================== */
html {
  scroll-behavior: smooth;
}

[id] {
  scroll-margin-top: 100px;
}

/* ==========================================================================
   10-LANGUAGE SELECTOR POPOVER & SVG FLAGS
   ========================================================================== */
.lang-dropdown-wrapper {
  position: relative;
  display: inline-block;
}

.lang-toggle-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 9999px;
  padding: 5px 12px;
  font-size: 12px;
  font-weight: 700;
  font-family: var(--font-mono);
  color: var(--text-pure);
  cursor: pointer;
  transition: all 0.25s var(--ease-spring);
}

.lang-toggle-btn:hover,
.lang-toggle-btn[aria-expanded="true"] {
  background: rgba(76, 245, 200, 0.1);
  border-color: rgba(76, 245, 200, 0.4);
  color: var(--brand-cyan);
}

.lang-flag-current,
.lang-flag-item {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}

.lang-flag-svg {
  width: 18px;
  height: 12px;
  border-radius: 2px;
  box-shadow: 0 0 3px rgba(0, 0, 0, 0.5);
  display: block;
}

.lang-arrow-glyph {
  font-size: 10px;
  opacity: 0.6;
  transition: transform 0.25s ease;
}

.lang-toggle-btn[aria-expanded="true"] .lang-arrow-glyph {
  transform: rotate(180deg);
}

.lang-menu-popover {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  min-width: 200px;
  max-height: 360px;
  overflow-y: auto;
  background: rgba(8, 13, 22, 0.96);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: var(--radius-md);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.9), 0 0 25px rgba(76, 245, 200, 0.1);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  padding: 6px;
  display: none;
  z-index: 1100;
}

.lang-menu-popover.open {
  display: block;
  animation: popoverFadeIn 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes popoverFadeIn {
  from { opacity: 0; transform: translateY(-6px) scale(0.97); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.lang-menu-inner {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.lang-option-btn {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 8px 12px;
  border-radius: 6px;
  background: transparent;
  border: none;
  color: var(--text-medium);
  font-size: 13px;
  font-weight: 500;
  text-align: left;
  cursor: pointer;
  transition: all 0.18s ease;
}

.lang-option-btn:hover {
  background: rgba(255, 255, 255, 0.06);
  color: var(--text-pure);
}

.lang-option-btn.active {
  background: rgba(76, 245, 200, 0.12);
  color: var(--brand-cyan);
  font-weight: 700;
}

.lang-opt-name {
  flex: 1;
}

.lang-opt-code {
  font-family: var(--font-mono);
  font-size: 11px;
  opacity: 0.5;
}

/* ==========================================================================
   COMPACT & ELEGANT CTA BUTTONS
   ========================================================================== */
.btn-compact-submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  height: 46px;
  padding: 0 24px;
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  background: linear-gradient(135deg, var(--brand-cyan) 0%, #2dd4bf 100%);
  color: #020617;
  box-shadow: 0 4px 18px rgba(76, 245, 200, 0.25);
  transition: all 0.25s var(--ease-spring);
  border: none;
  cursor: pointer;
  width: auto;
  max-width: 360px;
  margin-top: 18px;
}

.btn-compact-submit:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(76, 245, 200, 0.45);
}

.btn-compact-submit svg {
  width: 17px;
  height: 17px;
}

/* ==========================================================================
   FOOTER SOCIALS & COMPLIANCE
   ========================================================================== */
.footer-socials-strip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 22px 0;
  margin: 32px 0 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  flex-wrap: wrap;
  gap: 16px;
}

.footer-socials-title {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-dim);
  font-family: var(--font-mono);
}

.footer-social-icons-row {
  display: flex;
  align-items: center;
  gap: 12px;
}

.footer-social-btn {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-medium);
  transition: all 0.25s var(--ease-spring);
  text-decoration: none;
}

.footer-social-btn:hover {
  background: rgba(76, 245, 200, 0.1);
  border-color: var(--brand-cyan);
  color: var(--brand-cyan);
  transform: translateY(-2px);
  box-shadow: 0 0 16px rgba(76, 245, 200, 0.3);
}

.footer-social-btn svg {
  width: 17px;
  height: 17px;
}

/* Partner Exchange Cards Grid */
.partner-cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(270px, 1fr));
  gap: 18px;
  margin-top: 20px;
}

.partner-card-box {
  background: rgba(14, 21, 33, 0.65);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-md);
  padding: 22px 20px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 16px;
  box-sizing: border-box;
  transition: all 0.25s var(--ease-spring);
}

.partner-card-box:hover {
  border-color: rgba(76, 245, 200, 0.35);
  transform: translateY(-2px);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.5);
}

.partner-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.partner-card-actions {
  display: flex;
  flex-direction: column;
  gap: 9px;
  width: 100%;
  margin-top: auto;
}

.btn-partner-action {
  width: 100%;
  padding: 9px 12px;
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
  box-sizing: border-box;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  border-radius: var(--radius-sm);
  transition: all 0.2s ease;
}

.btn-copy-ref {
  border-color: rgba(255, 255, 255, 0.12);
  color: var(--text-dim);
}

.btn-copy-ref:hover {
  border-color: rgba(76, 245, 200, 0.4);
  color: var(--text-pure);
  background: rgba(76, 245, 200, 0.05);
}

.btn-copy-ref.is-copied {
  color: #4cf5c8 !important;
  border-color: rgba(76, 245, 200, 0.6) !important;
  background: rgba(76, 245, 200, 0.12) !important;
  box-shadow: 0 0 16px rgba(76, 245, 200, 0.2);
}


/* ==========================================================================
   3D DRUM CAROUSEL: INSTITUTIONAL TRADINGVIEW SUITE (11 SCRIPTS)
   ========================================================================== */

.drum-carousel-container {
  position: relative;
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 20px;
  user-select: none;
}

/* Header & Categories Bar */
.drum-header-bar {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 24px;
  padding: 4px 6px 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  flex-wrap: wrap;
}

.drum-title-wrap {
  display: flex;
  flex-direction: column;
  gap: 6px;
  max-width: 600px;
}

.drum-main-title {
  font-size: 22px;
  font-weight: 700;
  color: #fff;
  letter-spacing: -0.02em;
  margin: 0;
}

.drum-subtitle {
  font-size: 13.5px;
  color: var(--text-medium);
  line-height: 1.55;
  margin: 0;
}

.drum-filter-tabs {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(9, 14, 26, 0.7);
  padding: 4px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(12px);
  flex-wrap: wrap;
}

.drum-filter-btn {
  background: transparent;
  border: 1px solid transparent;
  color: var(--text-medium);
  font-size: 12.5px;
  font-weight: 600;
  padding: 6px 14px;
  border-radius: 999px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  font-family: inherit;
}

.drum-filter-btn:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.04);
}

.drum-filter-btn.active {
  color: #040810;
  background: #4cf5c8;
  border-color: #4cf5c8;
  box-shadow: 0 0 16px rgba(76, 245, 200, 0.35);
}

.drum-filter-count {
  font-size: 11px;
  opacity: 0.8;
  padding: 1px 6px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.18);
}

.drum-filter-btn:not(.active) .drum-filter-count {
  background: rgba(255, 255, 255, 0.08);
}

/* 3D Drum Viewport */
.drum-viewport {
  position: relative;
  width: 100%;
  height: 560px;
  perspective: 1300px;
  perspective-origin: 50% 48%;
  overflow: hidden;
  padding: 10px 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Neon Navigation Arrows */
.drum-nav-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: rgba(9, 14, 26, 0.88);
  border: 1.5px solid rgba(76, 245, 200, 0.45);
  color: #4cf5c8;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 30;
  backdrop-filter: blur(16px);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.6), 0 0 24px rgba(76, 245, 200, 0.25);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.drum-nav-btn:hover {
  background: #4cf5c8;
  color: #040810;
  border-color: #4cf5c8;
  transform: translateY(-50%) scale(1.1);
  box-shadow: 0 0 32px rgba(76, 245, 200, 0.6), 0 8px 24px rgba(0, 0, 0, 0.7);
}

.drum-nav-btn:active {
  transform: translateY(-50%) scale(0.96);
}

.drum-btn-prev {
  left: 16px;
}

.drum-btn-next {
  right: 16px;
}

/* 3D Drum Track */
.drum-track {
  position: relative;
  width: 100%;
  height: 100%;
  transform-style: preserve-3d;
}

/* Drum Card */
.drum-card {
  position: absolute;
  top: 0;
  left: 50%;
  width: min(840px, 94%);
  margin-left: max(-420px, -47%);
  height: 100%;
  background: rgba(11, 16, 30, 0.96);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 18px;
  padding: 20px 24px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.75);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transform-style: preserve-3d;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.6s ease, filter 0.6s ease, border-color 0.4s ease, box-shadow 0.4s ease;
  pointer-events: none;
  visibility: hidden;
  box-sizing: border-box;
}

.drum-card.is-visible {
  visibility: visible;
}

.drum-card.is-active {
  pointer-events: auto;
  border-color: rgba(76, 245, 200, 0.5);
  box-shadow: 0 0 45px rgba(76, 245, 200, 0.14), 0 24px 60px rgba(0, 0, 0, 0.85);
  filter: none;
}

.drum-card.is-adjacent {
  pointer-events: auto;
  cursor: pointer;
}

.drum-card.is-adjacent:hover {
  border-color: rgba(76, 245, 200, 0.3);
  filter: brightness(0.9) !important;
}

/* Card Head */
.drum-card-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding-bottom: 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.drum-card-title-group {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.drum-card-badges {
  display: flex;
  align-items: center;
  gap: 8px;
}

.drum-card-title {
  font-size: 17px;
  font-weight: 700;
  color: #fff;
  margin: 0;
  letter-spacing: -0.01em;
}

/* Story Progress Stepper (Automated Dynamic Flow: Live -> Report -> Pro Chart) */
.drum-story-stepper {
  display: flex;
  align-items: center;
  gap: 6px;
  width: 130px;
  flex-shrink: 0;
  user-select: none;
}

.drum-story-seg {
  display: flex;
  flex-direction: column;
  gap: 0;
  flex: 1;
  min-width: 0;
  cursor: pointer;
  opacity: 0.45;
  transition: opacity 0.3s ease, transform 0.2s ease;
}

.drum-story-seg:hover {
  opacity: 0.9;
}

.drum-story-seg.active {
  opacity: 1;
}

.drum-story-seg.completed {
  opacity: 0.88;
}

.drum-story-bar {
  width: 100%;
  height: 3.5px;
  background: rgba(255, 255, 255, 0.15);
  border-radius: 999px;
  overflow: hidden;
  position: relative;
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.6);
}

.drum-story-fill {
  height: 100%;
  width: 0%;
  border-radius: 999px;
  background: linear-gradient(90deg, #4cf5c8 0%, #38bdf8 100%);
  transition: width 0.08s linear;
}

.drum-story-seg.active .drum-story-fill {
  box-shadow: 0 0 12px rgba(76, 245, 200, 0.9);
}

.drum-story-seg.completed .drum-story-fill {
  width: 100% !important;
  background: #4cf5c8;
  box-shadow: 0 0 8px rgba(76, 245, 200, 0.5);
}

.drum-story-lbl {
  display: none !important;
}

.drum-story-seg.active .drum-story-lbl {
  color: #ffffff;
  text-shadow: 0 0 10px rgba(255, 255, 255, 0.4);
}

.drum-story-seg.completed .drum-story-lbl {
  color: #4cf5c8;
}

.story-dot {
  width: 5.5px;
  height: 5.5px;
  border-radius: 50%;
  display: inline-block;
  flex-shrink: 0;
}

.story-dot.live {
  background: #4cf5c8;
  box-shadow: 0 0 6px #4cf5c8;
  animation: pulseStoryDot 1.4s ease-in-out infinite;
}

.story-dot.stats {
  background: #38bdf8;
  box-shadow: 0 0 6px #38bdf8;
}

.story-dot.chart {
  background: #ffd166;
  box-shadow: 0 0 6px #ffd166;
}

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

/* Story Stage Deck (Absolute Layer Stacking for Seamless GPU Crossfade) */
.drum-story-deck {
  position: relative;
  width: 100%;
  height: 295px;
  margin: 14px 0;
  border-radius: 12px;
  overflow: hidden;
  background: #030712;
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: inset 0 0 35px rgba(0, 0, 0, 0.65);
}

.drum-pane {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  padding: 0;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(6px) scale(0.99);
  transition: opacity 0.45s cubic-bezier(0.16, 1, 0.3, 1), transform 0.45s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.45s;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.drum-pane.active {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateY(0) scale(1);
  z-index: 5;
}

/* TradingView Chart Scan Beam */
.drum-chart-scan-beam {
  position: absolute;
  top: 0;
  left: 0;
  width: 35%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(76, 245, 200, 0.08), rgba(76, 245, 200, 0.28), rgba(76, 245, 200, 0.08), transparent);
  pointer-events: none;
  z-index: 6;
  transform: skewX(-20deg) translateX(-160%);
  animation: tvScanBeam 3.6s cubic-bezier(0.4, 0, 0.2, 1) infinite;
}

@keyframes tvScanBeam {
  0% { transform: skewX(-20deg) translateX(-160%); }
  45%, 100% { transform: skewX(-20deg) translateX(460%); }
}

/* Metrics Reveal Micro-animation on Phase 2 */
.drum-pane-stats.active .drum-stat-box {
  animation: statBoxReveal 0.45s cubic-bezier(0.16, 1, 0.3, 1) backwards;
}

.drum-pane-stats.active .drum-stat-box:nth-child(1) { animation-delay: 0.04s; }
.drum-pane-stats.active .drum-stat-box:nth-child(2) { animation-delay: 0.09s; }
.drum-pane-stats.active .drum-stat-box:nth-child(3) { animation-delay: 0.14s; }
.drum-pane-stats.active .drum-stat-box:nth-child(4) { animation-delay: 0.19s; }

@keyframes statBoxReveal {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Chart Media */
.drum-chart-media {
  position: relative;
  width: 100%;
  height: 100%;
  border-radius: 12px;
  overflow: hidden;
  background: #040810;
  border: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
}

.drum-script-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transition: transform 0.4s ease;
}

.drum-card.is-active .drum-chart-media:hover .drum-script-img {
  transform: scale(1.02);
}

.drum-chart-overlay {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 5;
}

.drum-overlay-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(9, 14, 26, 0.85);
  border: 1px solid rgba(76, 245, 200, 0.4);
  color: #4cf5c8;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
  padding: 4px 10px;
  border-radius: 999px;
  backdrop-filter: blur(12px);
}

/* Strategy Stats Report */
.drum-stats-report {
  display: flex;
  flex-direction: column;
  gap: 12px;
  height: 100%;
  padding: 12px;
  box-sizing: border-box;
  justify-content: space-between;
}

.drum-stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
}

.drum-stat-box {
  background: linear-gradient(145deg, rgba(14, 21, 37, 0.85) 0%, rgba(8, 12, 22, 0.95) 100%);
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 10px;
  padding: 11px 15px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.45);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.drum-stat-box:hover {
  transform: translateY(-2px);
  border-color: rgba(255, 255, 255, 0.2);
}

.drum-stat-box.highlight {
  border-color: rgba(76, 245, 200, 0.45);
  background: linear-gradient(145deg, rgba(76, 245, 200, 0.12) 0%, rgba(8, 16, 28, 0.95) 100%);
  box-shadow: 0 0 24px rgba(76, 245, 200, 0.15), 0 4px 18px rgba(0, 0, 0, 0.5);
}

.drum-stat-box.highlight .drum-stat-value {
  color: #4cf5c8;
  text-shadow: 0 0 16px rgba(76, 245, 200, 0.6);
}

.drum-stat-label {
  font-size: 11px;
  color: var(--text-medium);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-weight: 600;
}

.drum-stat-value {
  font-size: 16px;
  font-weight: 700;
  color: #fff;
  font-family: var(--font-mono, monospace);
}

.drum-stat-value.green {
  color: #4cf5c8;
}

.drum-stat-value.cyan {
  color: #38bdf8;
}

.drum-stat-sub {
  font-size: 11px;
  font-weight: 600;
  font-family: var(--font-mono, monospace);
}

.drum-stat-sub.green {
  color: #4cf5c8;
}

.drum-stat-sub.red {
  color: #ff5c77;
}

/* Equity Canvas */
.drum-equity-box {
  background: linear-gradient(180deg, #050914 0%, #03060d 100%);
  border: 1px solid rgba(76, 245, 200, 0.25);
  border-radius: 10px;
  padding: 10px 14px 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  box-shadow: 0 0 30px rgba(0, 0, 0, 0.8), inset 0 0 20px rgba(76, 245, 200, 0.04);
}

.drum-equity-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.drum-equity-title {
  font-size: 12px;
  font-weight: 600;
  color: #fff;
}

.drum-equity-tag {
  font-size: 10.5px;
  color: #4cf5c8;
  background: rgba(76, 245, 200, 0.1);
  padding: 2px 8px;
  border-radius: 4px;
  border: 1px solid rgba(76, 245, 200, 0.25);
  font-family: var(--font-mono, monospace);
}

.drum-canvas-wrap {
  width: 100%;
  height: 120px;
  position: relative;
}

.drum-equity-canvas {
  width: 100% !important;
  height: 100% !important;
  display: block;
}

/* Specs Report for Indicators & Screeners */
.drum-specs-report {
  display: flex;
  flex-direction: column;
  gap: 12px;
  height: 100%;
  padding: 12px;
  box-sizing: border-box;
  justify-content: center;
}

.drum-specs-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

.drum-spec-box {
  background: rgba(9, 14, 26, 0.75);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 10px;
  padding: 14px 18px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.drum-spec-k {
  font-size: 11.5px;
  color: var(--text-medium);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-weight: 600;
}

.drum-spec-v {
  font-size: 14.5px;
  font-weight: 700;
  color: #fff;
}

.drum-spec-extra {
  background: rgba(76, 245, 200, 0.04);
  border: 1px solid rgba(76, 245, 200, 0.2);
  border-radius: 10px;
  padding: 12px 16px;
}

.drum-spec-tagline {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: #e2e8f0;
  font-weight: 500;
}

/* Card Footer */
.drum-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding-top: 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.drum-card-desc {
  font-size: 12.5px;
  color: var(--text-medium);
  line-height: 1.5;
  margin: 0;
  flex: 1;
  max-width: 500px;
}

.drum-card-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

/* Bottom Controls Bar */
.drum-bottom-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 8px 0;
  flex-wrap: wrap;
  gap: 16px;
}

.drum-counter-box {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono, monospace);
  font-size: 13px;
}

.drum-current-num {
  font-size: 16px;
  font-weight: 700;
  color: #4cf5c8;
}

.drum-counter-sep {
  color: var(--text-muted);
}

.drum-total-num {
  color: var(--text-medium);
  font-weight: 600;
}

.drum-active-title {
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  margin-left: 8px;
  padding-left: 10px;
  border-left: 1px solid rgba(255, 255, 255, 0.15);
  font-family: inherit;
}

.drum-dots-container {
  display: flex;
  align-items: center;
  gap: 7px;
}

.drum-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.drum-dot:hover {
  background: rgba(76, 245, 200, 0.5);
  transform: scale(1.2);
}

.drum-dot.active {
  width: 22px;
  border-radius: 999px;
  background: #4cf5c8;
  box-shadow: 0 0 10px rgba(76, 245, 200, 0.5);
}

.drum-tv-profile-btn {
  font-size: 12.5px;
  font-weight: 600;
  color: #4cf5c8;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  transition: color 0.2s ease;
}

.drum-tv-profile-btn:hover {
  color: #fff;
  text-decoration: underline;
}

/* Responsive adjustments */
@media (max-width: 960px) {
  .drum-viewport {
    height: 620px;
  }
  .drum-stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .drum-card {
    padding: 16px;
  }
}

@media (max-width: 768px) {
  .drum-viewport {
    height: 640px;
    perspective: 900px;
  }
  .drum-card {
    width: 96%;
    margin-left: -48%;
  }
  .drum-nav-btn {
    width: 44px;
    height: 44px;
  }
  .drum-btn-prev { left: 4px; }
  .drum-btn-next { right: 4px; }
  .drum-card-footer {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
  }
  .drum-card-actions {
    justify-content: stretch;
  }
  .drum-card-actions .btn {
    flex: 1;
    text-align: center;
  }
  .drum-specs-grid {
    grid-template-columns: 1fr;
  }
  .drum-bottom-bar {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
  .drum-active-title {
    display: none;
  }
}



/* ==========================================================================
   DRUM LIVE INTERACTIVE DEMO DISPLAYS (Zero Server Load, 60fps GPU Canvas)
   ========================================================================== */

/* .drum-pane-live is handled by .drum-pane in story deck */

.drum-live-display-box {
  width: 100%;
  height: 100%;
  background: #030712;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  position: relative;
  box-shadow: inset 0 0 30px rgba(0, 0, 0, 0.6);
}

.drum-live-top-telemetry {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 14px;
  background: rgba(9, 14, 26, 0.85);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  z-index: 5;
}

.drum-live-ticker {
  display: flex;
  align-items: center;
  gap: 8px;
}

.drum-ticker-symbol {
  font-size: 12px;
  font-weight: 700;
  color: #fff;
  font-family: var(--font-mono, monospace);
  letter-spacing: 0.04em;
}

.drum-ticker-timeframe {
  font-size: 10.5px;
  color: var(--text-medium);
  font-family: var(--font-mono, monospace);
  padding: 1px 6px;
  background: rgba(255, 255, 255, 0.06);
  border-radius: 4px;
}

.drum-live-status-pill {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 3px 8px;
  border-radius: 999px;
  background: rgba(76, 245, 200, 0.08);
  border: 1px solid rgba(76, 245, 200, 0.25);
}

.drum-live-status-text {
  font-size: 10.5px;
  font-weight: 700;
  color: #4cf5c8;
  letter-spacing: 0.04em;
  font-family: var(--font-mono, monospace);
}

.drum-live-canvas-wrap {
  position: relative;
  width: 100%;
  flex: 1;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.drum-interactive-canvas {
  width: 100% !important;
  height: 100% !important;
  display: block;
}


/* ==========================================================================
   INSTITUTIONAL CINEMATIC SHOWREEL (MINI-CLIP) & 3D DRUM ENGINE
   ========================================================================== */

/* 1. Cinematic Showreel Container */
.drum-clip-container {
  position: relative;
  width: 100%;
  height: 270px;
  background: radial-gradient(circle at center, #070e1c 0%, #03060c 100%);
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  overflow: hidden;
  box-shadow: 0 16px 36px -8px rgba(0, 0, 0, 0.75), inset 0 0 24px rgba(0, 240, 255, 0.04);
  perspective: 1200px;
  user-select: none;
}

/* 2. Media Layer with Smooth Camera Pan & Ken Burns Micro-Zoom */
.drum-clip-media {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  z-index: 1;
}

.drum-clip-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
  transform: scale(1.02);
  filter: saturate(1.1) contrast(1.08) brightness(0.96);
  will-change: transform, filter;
  transition: filter 0.5s ease;
}

/* Dynamic Camera Motion when card is active */
.drum-card.is-active .drum-pane.active .clip-animating .drum-clip-img,
.drum-card.is-active .drum-pane.active .drum-clip-img {
  animation: clipPanZoom 5.2s cubic-bezier(0.25, 1, 0.5, 1) infinite alternate;
}

@keyframes clipPanZoom {
  0% {
    transform: scale(1.06) translate3d(-1.2%, -0.8%, 0);
    filter: saturate(1.18) contrast(1.12) brightness(1.02);
  }
  50% {
    transform: scale(1.02) translate3d(0%, 0%, 0);
    filter: saturate(1.24) contrast(1.16) brightness(1.06);
  }
  100% {
    transform: scale(1.07) translate3d(1.2%, 0.8%, 0);
    filter: saturate(1.16) contrast(1.1) brightness(1.0);
  }
}

/* 3. Cinematic Vignette & Tactical Cyber Grid Overlay */
.drum-clip-vignette {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  background: 
    radial-gradient(ellipse at center, transparent 40%, rgba(3, 7, 18, 0.5) 75%, rgba(1, 3, 8, 0.88) 100%),
    linear-gradient(180deg, rgba(2, 6, 14, 0.7) 0%, transparent 22%, transparent 72%, rgba(2, 5, 12, 0.9) 100%);
}

.drum-clip-vignette::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: 
    linear-gradient(to right, rgba(0, 240, 255, 0.02) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(0, 240, 255, 0.02) 1px, transparent 1px);
  background-size: 32px 32px;
  pointer-events: none;
}

/* 4. High-Frequency Quantum Laser Sweep */
.drum-clip-laser-sweep {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 3px;
  z-index: 3;
  pointer-events: none;
  background: linear-gradient(180deg, 
    transparent 0%, 
    rgba(0, 240, 255, 0.8) 20%, 
    #00f0ff 45%, 
    #4cf5c8 60%, 
    rgba(168, 85, 247, 0.7) 80%, 
    transparent 100%
  );
  box-shadow: 
    0 0 16px 2px rgba(0, 240, 255, 0.9),
    0 0 32px 6px rgba(76, 245, 200, 0.4),
    -4px 0 12px 1px rgba(0, 240, 255, 0.3);
  opacity: 0;
  will-change: left, opacity;
}

.drum-card.is-active .drum-pane.active .clip-animating .drum-clip-laser-sweep,
.drum-card.is-active .drum-pane.active .drum-clip-laser-sweep {
  animation: clipLaserSweep 4.2s cubic-bezier(0.4, 0, 0.2, 1) infinite;
}

@keyframes clipLaserSweep {
  0% {
    left: -4%;
    opacity: 0;
  }
  6% {
    opacity: 1;
  }
  88% {
    opacity: 1;
  }
  100% {
    left: 104%;
    opacity: 0;
  }
}

/* 5. Institutional HUD Top Bar */
.drum-clip-top-telemetry {
  position: absolute;
  top: 10px;
  left: 12px;
  right: 12px;
  z-index: 10;
  display: flex;
  justify-content: space-between;
  align-items: center;
  pointer-events: none;
  gap: 10px;
}

.drum-clip-ticker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 12px;
  background: rgba(4, 9, 20, 0.82);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.5);
}

.drum-clip-symbol {
  font-family: var(--font-mono, monospace);
  font-size: 11.5px;
  font-weight: 700;
  color: #ffffff;
  letter-spacing: 0.04em;
}

.drum-clip-badge-time {
  font-family: var(--font-mono, monospace);
  font-size: 10px;
  color: #94a3b8;
  background: rgba(255, 255, 255, 0.08);
  padding: 2px 6px;
  border-radius: 4px;
}

.drum-clip-pnl-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  background: rgba(6, 26, 22, 0.86);
  border: 1px solid rgba(76, 245, 200, 0.45);
  border-radius: 8px;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 0 20px rgba(76, 245, 200, 0.22);
}

.drum-clip-pnl-label {
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: #4cf5c8;
}

.drum-clip-pnl-val {
  font-family: var(--font-mono, monospace);
  font-size: 12px;
  font-weight: 800;
  color: #ffffff;
  text-shadow: 0 0 10px rgba(76, 245, 200, 0.55);
}

/* 6. Staggered Institutional Trade Badges with Spring Pop-In */
.drum-clip-badges-layer {
  position: absolute;
  left: 12px;
  bottom: 36px;
  display: flex;
  flex-direction: column;
  gap: 7px;
  z-index: 10;
  pointer-events: none;
  max-width: 90%;
}

.drum-clip-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  border-radius: 6px;
  font-family: var(--font-mono, monospace);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.03em;
  opacity: 0;
  transform: translateY(12px) scale(0.92);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  will-change: transform, opacity;
}

.clip-badge-dot {
  font-size: 10px;
  line-height: 1;
}

/* Badge 1: Long Entry / Signal */
.clip-badge-1 {
  background: rgba(10, 32, 64, 0.88);
  border: 1px solid rgba(0, 240, 255, 0.5);
  color: #00f0ff;
  box-shadow: 0 0 16px rgba(0, 240, 255, 0.25);
}

/* Badge 2: TP1 & Trailing Lock */
.clip-badge-2 {
  background: rgba(6, 42, 28, 0.9);
  border: 1px solid rgba(76, 245, 200, 0.55);
  color: #4cf5c8;
  box-shadow: 0 0 16px rgba(76, 245, 200, 0.25);
}

/* Badge 3: Target Hit / Net Profit */
.clip-badge-3 {
  background: rgba(50, 32, 8, 0.92);
  border: 1px solid rgba(255, 195, 0, 0.65);
  color: #ffd15c;
  box-shadow: 0 0 22px rgba(255, 195, 0, 0.35);
}

/* Trigger Pop-Ins with Staggered Delays when card is active */
.drum-card.is-active .drum-pane.active .clip-animating .clip-badge-1,
.drum-card.is-active .drum-pane.active .clip-badge-1 {
  animation: badgePopIn 0.45s cubic-bezier(0.175, 0.885, 0.32, 1.275) 0.35s forwards;
}

.drum-card.is-active .drum-pane.active .clip-animating .clip-badge-2,
.drum-card.is-active .drum-pane.active .clip-badge-2 {
  animation: badgePopIn 0.45s cubic-bezier(0.175, 0.885, 0.32, 1.275) 1.55s forwards;
}

.drum-card.is-active .drum-pane.active .clip-animating .clip-badge-3,
.drum-card.is-active .drum-pane.active .clip-badge-3 {
  animation: badgePopIn 0.45s cubic-bezier(0.175, 0.885, 0.32, 1.275) 2.75s forwards;
}

@keyframes badgePopIn {
  0% {
    opacity: 0;
    transform: translateY(14px) scale(0.9);
  }
  75% {
    opacity: 1;
    transform: translateY(-2px) scale(1.02);
  }
  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

/* 7. Live Orderflow Running Tape at Bottom */
.drum-clip-tape-bar {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 24px;
  background: rgba(2, 5, 12, 0.94);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  overflow: hidden;
  z-index: 10;
  pointer-events: none;
}

.drum-clip-tape-track {
  display: inline-flex;
  white-space: nowrap;
  font-family: var(--font-mono, monospace);
  font-size: 10px;
  font-weight: 600;
  color: #7e8ea6;
  will-change: transform;
  animation: tapeMarquee 18s linear infinite;
}

.drum-clip-tape-track span {
  padding-right: 32px;
}

@keyframes tapeMarquee {
  0% {
    transform: translate3d(0, 0, 0);
  }
  100% {
    transform: translate3d(-50%, 0, 0);
  }
}

/* 8. Verified Pro Chart Pane (Phase 3) */
.drum-pane-chart {
  position: relative;
  width: 100%;
  height: 270px;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 16px 36px -8px rgba(0, 0, 0, 0.75);
}

.drum-chart-wrap {
  width: 100%;
  height: 100%;
  position: relative;
}

.drum-script-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
}

.drum-chart-stamp {
  position: absolute;
  top: 12px;
  right: 12px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  background: rgba(6, 26, 22, 0.9);
  border: 1px solid rgba(76, 245, 200, 0.5);
  border-radius: 6px;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  font-family: var(--font-mono, monospace);
  font-size: 10.5px;
  font-weight: 700;
  color: #4cf5c8;
  box-shadow: 0 0 20px rgba(76, 245, 200, 0.25);
  z-index: 5;
}


/* Clean Institutional Minimal Story Stepper (Hide bulky text buttons, show glowing progress bars) */
.drum-story-lbl {
  display: none !important;
}

.drum-story-seg {
  min-width: 46px !important;
  width: 46px !important;
  gap: 0 !important;
  cursor: pointer;
}

.drum-story-bar {
  height: 3px !important;
  border-radius: 999px !important;
  background: rgba(255, 255, 255, 0.12) !important;
}

.drum-story-fill {
  background: linear-gradient(90deg, #4cf5c8 0%, #00f0ff 100%) !important;
  border-radius: 999px !important;
}


/* ==========================================================================
   BADROCK INSTITUTIONAL 60FPS QUANT SHOWREEL (Pure Retina Dark Vectors)
   ========================================================================== */

.drum-quant-display-box {
  position: relative;
  width: 100%;
  height: 270px;
  border-radius: 12px;
  overflow: hidden;
  background: #040711;
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: inset 0 0 30px rgba(0, 0, 0, 0.8), 0 16px 36px -8px rgba(0, 0, 0, 0.75);
  display: flex;
  flex-direction: column;
}

.drum-quant-hud-top {
  position: absolute;
  top: 10px;
  left: 12px;
  right: 12px;
  z-index: 10;
  display: flex;
  justify-content: space-between;
  align-items: center;
  pointer-events: none;
  gap: 10px;
}

.drum-quant-ticker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 4px 10px;
  background: rgba(4, 9, 20, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 6px;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
}

.drum-quant-symbol {
  font-family: var(--font-mono, monospace);
  font-size: 11px;
  font-weight: 700;
  color: #ffffff;
  letter-spacing: 0.04em;
}

.drum-quant-tf {
  font-family: var(--font-mono, monospace);
  font-size: 9.5px;
  color: #94a3b8;
  background: rgba(255, 255, 255, 0.08);
  padding: 1px 5px;
  border-radius: 3px;
}

.drum-quant-pnl-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  background: rgba(6, 26, 22, 0.88);
  border: 1px solid rgba(76, 245, 200, 0.45);
  border-radius: 6px;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 0 16px rgba(76, 245, 200, 0.2);
}

.drum-quant-pnl-tag {
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: #4cf5c8;
}

.drum-quant-pnl-num {
  font-family: var(--font-mono, monospace);
  font-size: 11.5px;
  font-weight: 800;
  color: #ffffff;
  text-shadow: 0 0 8px rgba(76, 245, 200, 0.6);
}

.drum-quant-canvas-wrap {
  position: relative;
  width: 100%;
  flex: 1;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #03060c;
}

.drum-quant-canvas {
  width: 100% !important;
  height: 100% !important;
  display: block;
}

.drum-quant-tape-bar {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 22px;
  background: rgba(2, 4, 10, 0.95);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  overflow: hidden;
  z-index: 10;
  pointer-events: none;
}

.drum-quant-tape-track {
  display: inline-flex;
  white-space: nowrap;
  font-family: var(--font-mono, monospace);
  font-size: 9.5px;
  font-weight: 600;
  color: #64748b;
  animation: tapeMarquee 18s linear infinite;
  will-change: transform;
}

.drum-quant-tape-track span {
  padding-right: 32px;
}


/* ==========================================================================
   BADROCK 3-EPISODE ANIMATED STORY DECK STYLES
   ========================================================================== */

.drum-story-slide-box {
  position: relative;
  width: 100%;
  height: 100%;
  border-radius: 12px;
  overflow: hidden;
  background: #040711;
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: inset 0 0 30px rgba(0, 0, 0, 0.8), 0 16px 36px -8px rgba(0, 0, 0, 0.75);
  display: flex;
  flex-direction: column;
}

.drum-slide-hud {
  position: absolute;
  top: 10px;
  left: 12px;
  right: 12px;
  z-index: 10;
  display: flex;
  justify-content: space-between;
  align-items: center;
  pointer-events: none;
  gap: 10px;
}

.drum-hud-left {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 4px 10px;
  background: rgba(4, 9, 20, 0.88);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 6px;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
}

.drum-slide-phase-title {
  font-family: var(--font-mono, monospace);
  font-size: 10px;
  font-weight: 700;
  color: #ffffff;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.drum-slide-tag {
  font-family: var(--font-mono, monospace);
  font-size: 10px;
  font-weight: 800;
  padding: 3px 9px;
  border-radius: 5px;
  letter-spacing: 0.04em;
}

.drum-slide-tag.cyan {
  background: rgba(6, 26, 22, 0.9);
  border: 1px solid rgba(76, 245, 200, 0.5);
  color: #4cf5c8;
  box-shadow: 0 0 12px rgba(76, 245, 200, 0.25);
}

.drum-slide-tag.gold {
  background: rgba(35, 24, 6, 0.92);
  border: 1px solid rgba(255, 209, 102, 0.55);
  color: #ffd166;
  box-shadow: 0 0 12px rgba(255, 209, 102, 0.3);
}

.drum-slide-tag.green {
  background: rgba(6, 32, 18, 0.92);
  border: 1px solid rgba(34, 197, 94, 0.55);
  color: #22c55e;
  box-shadow: 0 0 12px rgba(34, 197, 94, 0.3);
}

/* 3-SLIDE STORY PRESENTATION DECK (COMPACT INSTITUTIONAL HUD) */
.drum-card-canvas-wrap {
  position: relative;
  width: 100%;
  height: 260px;
  margin: 12px 0;
  border-radius: 10px;
  overflow: hidden;
  background: #03060f;
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: inset 0 0 30px rgba(0, 0, 0, 0.65);
}

.drum-card-canvas {
  position: absolute;
  inset: 0;
  width: 100% !important;
  height: 100% !important;
  display: block;
  z-index: 1;
}

.drum-story-slides-deck {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 5;
}

.drum-slide-layer {
  position: absolute;
  inset: 0;
  opacity: 0;
  visibility: hidden;
  transform: translateY(4px);
  transition: opacity 0.35s cubic-bezier(0.16, 1, 0.3, 1), transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.35s;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 10px 14px;
  box-sizing: border-box;
}

.drum-slide-layer.active {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.drum-slide-glass-panel {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 100%;
  width: 100%;
}

.drum-slide-hud-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
}

.drum-slide-phase-title {
  font-family: var(--font-mono, monospace);
  font-size: 9px;
  font-weight: 800;
  color: #ffffff;
  letter-spacing: 0.05em;
  background: rgba(5, 10, 24, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.12);
  padding: 3px 8px;
  border-radius: 4px;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
}

.drum-slide-asset-pill {
  font-family: var(--font-mono, monospace);
  font-size: 8.5px;
  font-weight: 700;
  color: #00f0ff;
  background: rgba(0, 240, 255, 0.12);
  border: 1px solid rgba(0, 240, 255, 0.4);
  padding: 2px 7px;
  border-radius: 4px;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  letter-spacing: 0.03em;
}

.drum-slide-tag {
  font-family: var(--font-mono, monospace);
  font-size: 8.5px;
  font-weight: 800;
  color: #ffd166;
  background: rgba(255, 209, 102, 0.14);
  border: 1px solid rgba(255, 209, 102, 0.45);
  padding: 2px 7px;
  border-radius: 4px;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  letter-spacing: 0.04em;
}

.drum-slide-main-stage {
  flex: 1;
  display: flex;
  align-items: flex-start;
  justify-content: flex-end;
  pointer-events: none;
}

/* Hide bulky center target box so candles remain clear and unblocked */
.drum-slide-target-box {
  display: none;
}

.drum-slide-desc-bar {
  width: 100%;
  padding: 5px 10px;
  background: rgba(3, 7, 16, 0.92);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 5px;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  box-sizing: border-box;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.5);
}

.drum-slide-desc-text {
  font-family: var(--font-mono, monospace);
  font-size: 9px;
  font-weight: 600;
  color: #94a3b8;
  line-height: 1.35;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  display: block;
}



/* ==========================================================================
   BADROCK TRADINGVIEW INSTITUTIONAL SHOWCASE & 4K LIGHTBOX
   ========================================================================== */

.drum-tv-showcase {
  position: relative;
  border-radius: 14px;
  background: linear-gradient(180deg, rgba(10, 16, 30, 0.95) 0%, rgba(4, 7, 15, 0.98) 100%);
  border: 1px solid rgba(56, 189, 248, 0.2);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.6), 0 0 24px rgba(56, 189, 248, 0.08);
  overflow: hidden;
  margin: 12px 0 16px 0;
  display: flex;
  flex-direction: column;
}

/* Topbar Window Header */
.drum-tv-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 14px;
  background: rgba(6, 11, 22, 0.85);
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
  font-size: 11.5px;
  user-select: none;
}

.drum-tv-topbar-left {
  display: flex;
  align-items: center;
  gap: 9px;
}

.drum-tv-icon {
  color: #2962ff;
  flex-shrink: 0;
}

.drum-tv-ticker {
  font-family: 'JetBrains Mono', 'Fira Code', monospace;
  font-weight: 700;
  color: #f1f5f9;
  letter-spacing: 0.04em;
  font-size: 11px;
}

.drum-tv-live-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #22c55e;
  box-shadow: 0 0 8px #22c55e;
  animation: liveDotPulse 2s infinite ease-in-out;
}

@keyframes liveDotPulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(0.8); }
}

.drum-tv-status {
  font-family: 'JetBrains Mono', monospace;
  font-size: 9.5px;
  color: #38bdf8;
  letter-spacing: 0.08em;
  background: rgba(56, 189, 248, 0.12);
  padding: 2px 7px;
  border-radius: 4px;
  border: 1px solid rgba(56, 189, 248, 0.25);
}

.drum-tv-topbar-right {
  display: flex;
  align-items: center;
  gap: 8px;
}

.drum-zoom-trigger {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #94a3b8;
  font-size: 11px;
  font-weight: 600;
  padding: 3px 9px;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.drum-zoom-trigger:hover {
  background: rgba(56, 189, 248, 0.2);
  border-color: rgba(56, 189, 248, 0.45);
  color: #38bdf8;
  transform: translateY(-1px);
}

/* TV Image Screen Viewport */
.drum-tv-screen {
  position: relative;
  width: 100%;
  height: 270px;
  background: #03060c;
  overflow: hidden;
  cursor: pointer;
}

.drum-tv-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  display: block;
  transition: transform 0.7s cubic-bezier(0.16, 1, 0.3, 1), filter 0.5s ease;
}

.drum-tv-screen:hover .drum-tv-image {
  transform: scale(1.03);
}

/* Quantum Laser Scanline */
.drum-scanline {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, 
    transparent 0%, 
    rgba(56, 189, 248, 0.2) 15%, 
    #38bdf8 50%, 
    rgba(56, 189, 248, 0.2) 85%, 
    transparent 100%
  );
  box-shadow: 0 0 12px 2px rgba(56, 189, 248, 0.75), 0 0 24px 6px rgba(56, 189, 248, 0.3);
  pointer-events: none;
  z-index: 5;
  animation: quantumScanLoop 4.8s cubic-bezier(0.45, 0.05, 0.55, 0.95) infinite;
}

.drum-scanline::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 24px;
  background: linear-gradient(180deg, rgba(56, 189, 248, 0.15) 0%, transparent 100%);
  pointer-events: none;
}

@keyframes quantumScanLoop {
  0% {
    top: -5%;
    opacity: 0;
  }
  10% {
    opacity: 1;
  }
  90% {
    opacity: 1;
  }
  100% {
    top: 105%;
    opacity: 0;
  }
}

/* Smart Hotspots Layer */
.drum-hotspots-layer {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 10;
}

.drum-hotspot-item {
  position: absolute;
  transform: translate(-50%, -50%);
  pointer-events: auto;
  cursor: pointer;
}

.hotspot-beacon {
  position: relative;
  width: 26px;
  height: 26px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.beacon-point {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: linear-gradient(135deg, #0284c7 0%, #0369a1 100%);
  border: 2px solid #ffffff;
  color: #ffffff;
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 12px rgba(14, 165, 233, 0.85);
  transition: all 0.25s ease;
  z-index: 2;
}

.drum-hotspot-item.active .beacon-point,
.drum-hotspot-item:hover .beacon-point {
  background: linear-gradient(135deg, #22c55e 0%, #16a34a 100%);
  border-color: #ffffff;
  box-shadow: 0 0 16px rgba(34, 197, 94, 0.95);
  transform: scale(1.18);
}

.beacon-ripple {
  position: absolute;
  inset: -6px;
  border-radius: 50%;
  border: 2px solid rgba(56, 189, 248, 0.6);
  animation: beaconRippleAnim 2.2s infinite cubic-bezier(0.1, 0.8, 0.3, 1);
  pointer-events: none;
}

@keyframes beaconRippleAnim {
  0% { transform: scale(0.6); opacity: 1; }
  100% { transform: scale(2.2); opacity: 0; }
}

/* Hotspot Floating Tooltip Card */
.hotspot-card {
  position: absolute;
  bottom: calc(100% + 10px);
  left: 50%;
  transform: translateX(-50%) translateY(8px) scale(0.96);
  width: 240px;
  padding: 10px 12px;
  background: rgba(6, 12, 24, 0.94);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(56, 189, 248, 0.35);
  border-radius: 8px;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.7), 0 0 16px rgba(56, 189, 248, 0.15);
  opacity: 0;
  pointer-events: none;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  z-index: 20;
}

.drum-hotspot-item.active .hotspot-card,
.drum-hotspot-item:hover .hotspot-card {
  opacity: 1;
  pointer-events: auto;
  transform: translateX(-50%) translateY(0) scale(1);
}

/* Arrow pointer */
.hotspot-card::after {
  content: '';
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  border-width: 6px 6px 0 6px;
  border-style: solid;
  border-color: rgba(6, 12, 24, 0.94) transparent transparent transparent;
}

.hotspot-card-header {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 4px;
}

.hotspot-idx-badge {
  font-family: 'JetBrains Mono', monospace;
  font-size: 8.5px;
  font-weight: 700;
  color: #38bdf8;
  background: rgba(56, 189, 248, 0.15);
  padding: 1px 5px;
  border-radius: 3px;
  border: 1px solid rgba(56, 189, 248, 0.3);
}

.hotspot-card-title {
  font-size: 11.5px;
  font-weight: 700;
  color: #ffffff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.hotspot-card-desc {
  font-size: 10.5px;
  line-height: 1.45;
  color: #cbd5e1;
  margin: 0;
}

/* Click to Zoom Hint Overlay */
.drum-zoom-hint {
  position: absolute;
  bottom: 8px;
  right: 8px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: rgba(4, 8, 16, 0.78);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #94a3b8;
  font-size: 10.5px;
  padding: 4px 9px;
  border-radius: 6px;
  opacity: 0.85;
  transition: all 0.2s ease;
  pointer-events: none;
  z-index: 6;
}

.drum-tv-screen:hover .drum-zoom-hint {
  opacity: 1;
  background: rgba(56, 189, 248, 0.25);
  border-color: rgba(56, 189, 248, 0.5);
  color: #ffffff;
}

/* Hotspot Tabs in Card Head */
.drum-hotspot-tabs {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-left: auto;
}

.drum-hotspot-hint {
  font-family: 'JetBrains Mono', monospace;
  font-size: 9px;
  color: #64748b;
  letter-spacing: 0.08em;
}

.drum-hs-tab {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #94a3b8;
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 5px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.drum-hs-tab:hover {
  background: rgba(56, 189, 248, 0.15);
  border-color: rgba(56, 189, 248, 0.4);
  color: #38bdf8;
}

.drum-hs-tab.active {
  background: rgba(56, 189, 248, 0.25);
  border-color: #38bdf8;
  color: #ffffff;
  box-shadow: 0 0 10px rgba(56, 189, 248, 0.35);
}

/* Technical Specifications HUD (4-Column Matrix) */
.drum-specs-hud {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: rgba(255, 255, 255, 0.08);
  border-top: 1px solid rgba(56, 189, 248, 0.16);
}

.drum-spec-pill {
  display: flex;
  flex-direction: column;
  padding: 8px 10px;
  background: rgba(8, 14, 26, 0.92);
  min-width: 0;
}

.drum-spec-label {
  font-family: 'JetBrains Mono', monospace;
  font-size: 8.5px;
  font-weight: 600;
  color: #64748b;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.drum-spec-val {
  font-size: 11px;
  font-weight: 700;
  color: #f1f5f9;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* 4K Lightbox Modal */
.drum-lightbox {
  position: fixed;
  inset: 0;
  z-index: 100000;
  background: rgba(2, 4, 10, 0.92);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 24px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.drum-lightbox.open {
  opacity: 1;
  pointer-events: auto;
}

.drum-lightbox-content {
  position: relative;
  max-width: 1280px;
  width: 100%;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  background: #060a14;
  border-radius: 16px;
  border: 1px solid rgba(56, 189, 248, 0.35);
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.8), 0 0 35px rgba(56, 189, 248, 0.2);
  overflow: hidden;
  transform: scale(0.95);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.drum-lightbox.open .drum-lightbox-content {
  transform: scale(1);
}

.drum-lightbox-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 10px 18px;
  background: rgba(10, 18, 34, 0.95);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  flex-wrap: wrap;
}

.drum-lightbox-header-left {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.drum-lightbox-badge {
  font-family: var(--font-mono, monospace);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.08em;
  color: #38bdf8;
  background: rgba(56, 189, 248, 0.12);
  border: 1px solid rgba(56, 189, 248, 0.3);
  padding: 3px 8px;
  border-radius: 4px;
}

.drum-lightbox-title-wrap {
  display: flex;
  align-items: center;
  gap: 12px;
}

.drum-lightbox-title {
  font-size: 14px;
  font-weight: 700;
  color: #ffffff;
  margin: 0;
}

.drum-lightbox-ticker {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  color: #38bdf8;
  background: rgba(56, 189, 248, 0.12);
  padding: 2px 8px;
  border-radius: 4px;
}

.tv-lightbox-subscreen-bar {
  position: static !important;
  top: auto !important;
  left: auto !important;
  margin: 0 !important;
  box-shadow: none !important;
  background: rgba(15, 23, 42, 0.85) !important;
  border: 1px solid rgba(56, 189, 248, 0.35) !important;
}

.drum-lightbox-close {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #cbd5e1;
  width: 32px;
  height: 32px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
}

.drum-lightbox-close:hover {
  background: rgba(239, 68, 68, 0.25);
  border-color: rgba(239, 68, 68, 0.5);
  color: #f87171;
}

.drum-lightbox-body {
  position: relative;
  flex: 1;
  overflow: auto;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #020408;
  padding: 8px;
}

.drum-lightbox-img {
  max-width: 100%;
  max-height: calc(88vh - 70px);
  object-fit: contain;
  border-radius: 6px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.tv-lightbox-scanline {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent 0%, rgba(56, 189, 248, 0.2) 20%, #38bdf8 50%, rgba(56, 189, 248, 0.2) 80%, transparent 100%);
  box-shadow: 0 0 16px 3px rgba(56, 189, 248, 0.9), 0 0 32px 8px rgba(56, 189, 248, 0.4);
  pointer-events: none;
  animation: quantumScanLoop 4.5s cubic-bezier(0.45, 0.05, 0.55, 0.95) infinite;
  z-index: 10;
}

@media (max-width: 768px) {
  .drum-tv-screen {
    height: 200px;
  }
  .drum-specs-hud {
    grid-template-columns: repeat(2, 1fr);
  }
  .hotspot-card {
    width: 200px;
  }
}


/* ==========================================================================
   BADROCK TRADINGVIEW INTELLIGENCE TERMINAL (FULL-WIDTH WORKSPACE)
   ========================================================================== */

.tv-workspace-terminal {
  position: relative;
  background: linear-gradient(180deg, rgba(8, 14, 26, 0.96) 0%, rgba(4, 7, 15, 0.99) 100%);
  border: 1px solid rgba(56, 189, 248, 0.22);
  border-radius: 18px;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.75), 0 0 35px rgba(56, 189, 248, 0.09);
  overflow: hidden;
  margin: 16px 0 32px 0;
  display: flex;
  flex-direction: column;
}

/* Terminal Header */
.tv-terminal-header {
  padding: 24px 28px 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(6, 10, 20, 0.6);
}

.tv-kicker-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
  flex-wrap: wrap;
}

.tv-terminal-main-title {
  font-size: 26px;
  font-weight: 800;
  color: #ffffff;
  letter-spacing: -0.02em;
  margin: 0 0 6px 0;
}

.tv-terminal-subtitle {
  font-size: 14.5px;
  color: var(--text-medium, #94a3b8);
  line-height: 1.55;
  margin: 0;
  max-width: 860px;
}

/* 2-Column Layout */
.tv-workspace-layout {
  display: grid;
  grid-template-columns: 345px 1fr;
  min-height: 720px;
}

/* Sidebar: Scripts Watchlist */
.tv-scripts-sidebar {
  border-right: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(4, 8, 16, 0.85);
  display: flex;
  flex-direction: column;
}

.tv-sidebar-filter-bar {
  display: flex;
  align-items: center;
  gap: 3px;
  padding: 8px 6px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  background: rgba(2, 4, 10, 0.5);
  overflow-x: hidden;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.tv-sidebar-filter-bar::-webkit-scrollbar {
  display: none;
}

.tv-filter-btn {
  background: transparent;
  border: 1px solid transparent;
  color: #94a3b8;
  font-size: 10.5px;
  font-weight: 600;
  padding: 4px 5px;
  border-radius: 6px;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.2s ease;
  flex: 1 1 auto;
  text-align: center;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  letter-spacing: -0.01em;
}

.tv-filter-btn:hover {
  background: rgba(255, 255, 255, 0.05);
  color: #e2e8f0;
}

.tv-filter-btn.active {
  background: rgba(56, 189, 248, 0.16);
  border-color: rgba(56, 189, 248, 0.35);
  color: #38bdf8;
}

.tv-scripts-list {
  flex: 1;
  overflow-y: auto;
  max-height: 740px;
  display: flex;
  flex-direction: column;
}

/* Custom Scrollbar for Sidebar */
.tv-scripts-list::-webkit-scrollbar {
  width: 5px;
}
.tv-scripts-list::-webkit-scrollbar-track {
  background: rgba(0, 0, 0, 0.2);
}
.tv-scripts-list::-webkit-scrollbar-thumb {
  background: rgba(56, 189, 248, 0.25);
  border-radius: 4px;
}

/* Script Tab in Sidebar */
.tv-script-tab {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 13px 16px;
  background: transparent;
  border: none;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  border-left: 3px solid transparent;
  text-align: left;
  cursor: pointer;
  width: 100%;
  transition: all 0.22s cubic-bezier(0.16, 1, 0.3, 1);
  user-select: none;
}

.tv-script-tab:hover {
  background: rgba(56, 189, 248, 0.06);
}

.tv-script-tab.active {
  background: linear-gradient(90deg, rgba(14, 165, 233, 0.16) 0%, rgba(14, 165, 233, 0.02) 100%);
  border-left-color: #38bdf8;
}

.tv-tab-index {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  font-weight: 700;
  color: #64748b;
  min-width: 20px;
}

.tv-script-tab.active .tv-tab-index {
  color: #38bdf8;
}

.tv-tab-info {
  flex: 1;
  min-width: 0;
}

.tv-tab-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 3px;
}

.tv-tab-cat {
  font-family: 'JetBrains Mono', monospace;
  font-size: 9px;
  color: #94a3b8;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.tv-tab-badge {
  font-size: 8.5px;
  font-weight: 700;
  color: #38bdf8;
  background: rgba(56, 189, 248, 0.12);
  padding: 1px 5px;
  border-radius: 3px;
}

.tv-tab-title {
  font-size: 13px;
  font-weight: 700;
  color: #f1f5f9;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-bottom: 3px;
}

.tv-script-tab.active .tv-tab-title {
  color: #ffffff;
}

.tv-tab-meta {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 10px;
  color: #64748b;
}

.tv-tab-status-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #22c55e;
  box-shadow: 0 0 6px #22c55e;
}

.tv-tab-arrow {
  color: #475569;
  transition: transform 0.2s ease, color 0.2s ease;
}

.tv-script-tab.active .tv-tab-arrow {
  color: #38bdf8;
  transform: translateX(2px);
}

/* Right Main Stage */
.tv-main-stage {
  display: flex;
  flex-direction: column;
  background: #03060c;
  min-width: 0;
}

/* Stage Window Topbar */
.tv-stage-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 20px;
  background: rgba(6, 11, 22, 0.95);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  flex-wrap: wrap;
  gap: 12px;
}

.tv-stage-topbar-left {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.tv-brand-icon {
  color: #2962ff;
  flex-shrink: 0;
}

.tv-stage-title-wrap {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.tv-stage-script-title {
  font-size: 15px;
  font-weight: 800;
  color: #ffffff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.tv-stage-submeta {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 2px;
}

.tv-stage-ticker {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  color: #38bdf8;
  letter-spacing: 0.04em;
}

.tv-live-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 9px;
  color: #22c55e;
  background: rgba(34, 197, 94, 0.1);
  padding: 1px 6px;
  border-radius: 4px;
  border: 1px solid rgba(34, 197, 94, 0.25);
}

.tv-pulse-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #22c55e;
  box-shadow: 0 0 6px #22c55e;
  animation: liveDotPulse 2s infinite ease-in-out;
}

.tv-stage-topbar-right {
  display: flex;
  align-items: center;
  gap: 12px;
}

/* Mode Switcher */
.tv-mode-switcher {
  display: none !important;
}

.tv-mode-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: transparent;
  border: none;
  color: #94a3b8;
  font-size: 11.5px;
  font-weight: 600;
  padding: 5px 11px;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.tv-mode-btn:hover {
  color: #f1f5f9;
}

.tv-mode-btn.active {
  background: rgba(56, 189, 248, 0.22);
  color: #38bdf8;
  box-shadow: 0 0 10px rgba(56, 189, 248, 0.25);
}

.tv-stage-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

/* Screen Viewport */
.tv-screen-viewport {
  position: relative;
  width: 100%;
  height: 500px;
  background: #02050b;
  overflow: hidden;
}

.tv-view-layer {
  position: absolute;
  inset: 0;
  display: none;
}

.tv-view-layer.active {
  display: block;
}

/* Canvas View Layer */
.tv-workspace-canvas {
  width: 100%;
  height: 100%;
  display: block;
}

.tv-sim-telemetry-hud {
  position: absolute;
  top: 14px;
  left: 16px;
  right: 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  pointer-events: none;
  z-index: 10;
}

.tv-sim-status-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(6, 12, 24, 0.88);
  border: 1px solid rgba(56, 189, 248, 0.35);
  padding: 4px 10px;
  border-radius: 6px;
  backdrop-filter: blur(8px);
}

.tv-sim-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #38bdf8;
  box-shadow: 0 0 8px #38bdf8;
}

.tv-sim-status-text {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  font-weight: 700;
  color: #f1f5f9;
  letter-spacing: 0.06em;
}

.tv-sim-ohlc {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10.5px;
  color: #94a3b8;
  background: rgba(6, 12, 24, 0.88);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 4px 10px;
  border-radius: 6px;
  backdrop-filter: blur(8px);
}

/* Screenshot View Layer */
.tv-original-screenshot {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  display: block;
}

.tv-quantum-scanline {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent 0%, rgba(56, 189, 248, 0.2) 20%, #38bdf8 50%, rgba(56, 189, 248, 0.2) 80%, transparent 100%);
  box-shadow: 0 0 14px 2px rgba(56, 189, 248, 0.8), 0 0 28px 6px rgba(56, 189, 248, 0.3);
  pointer-events: none;
  animation: quantumScanLoop 4.5s cubic-bezier(0.45, 0.05, 0.55, 0.95) infinite;
}

/* Strategy Sub-screen switcher: Chart vs Strategy Tester Stats */
.tv-strategy-subscreen-bar {
  position: absolute;
  bottom: 14px;
  left: 16px;
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(6, 12, 24, 0.88);
  border: 1px solid rgba(56, 189, 248, 0.35);
  border-radius: 8px;
  padding: 4px 6px;
  backdrop-filter: blur(12px);
  z-index: 10;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.45);
}

.tv-subscreen-pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: transparent;
  border: 1px solid transparent;
  color: #94a3b8;
  font-family: var(--font-mono, -apple-system, monospace);
  font-size: 11px;
  font-weight: 700;
  padding: 5px 10px;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.25s ease;
}

.tv-subscreen-pill:hover {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.06);
}

.tv-subscreen-pill.active {
  background: rgba(8, 153, 129, 0.22);
  border-color: rgba(8, 153, 129, 0.6);
  color: #00e5ff;
  box-shadow: 0 0 12px rgba(8, 153, 129, 0.3);
}

.tv-subscreen-pulse {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #64748b;
  transition: all 0.2s ease;
}

.tv-subscreen-pill.active .tv-subscreen-pulse {
  background: #00e5ff;
  box-shadow: 0 0 8px #00e5ff;
  animation: tvDotPulse 1.6s infinite ease-in-out;
}

@keyframes tvDotPulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(0.8); }
}

.tv-original-screenshot {
  transition: opacity 0.35s cubic-bezier(0.4, 0, 0.2, 1), transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.tv-expand-4k-btn {
  position: absolute;
  bottom: 14px;
  right: 16px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(6, 12, 24, 0.88);
  border: 1px solid rgba(56, 189, 248, 0.4);
  color: #38bdf8;
  font-size: 11px;
  font-weight: 700;
  padding: 6px 12px;
  border-radius: 8px;
  cursor: pointer;
  backdrop-filter: blur(10px);
  transition: all 0.2s ease;
  z-index: 10;
}

.tv-expand-4k-btn:hover {
  background: rgba(14, 165, 233, 0.3);
  transform: translateY(-1px);
}

/* ==========================================================================
   ANIMATED STRATEGY CONTAINER (Dark Mode Trades Chart & Backtest Report)
   ========================================================================== */
.tv-strategy-animated-container {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: #060913;
  overflow: hidden;
  z-index: 5;
}

.tv-lightbox-strat-container {
  position: absolute;
  top: 8px;
  left: 8px;
  right: 8px;
  bottom: 8px;
  width: auto;
  height: auto;
  border-radius: 6px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.tv-strat-view-panel {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  background: #060913;
}

.tv-strat-canvas {
  width: 100%;
  height: 100%;
  display: block;
}

.tv-strat-trades-panel {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
}

.tv-strat-trades-panel canvas.tv-strat-canvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: block;
}

/* Strategy Backtest Report Panel */
.tv-strat-report-panel {
  background: #060913;
  color: #e2e8f0;
  display: flex;
  flex-direction: column;
}

.tv-report-hud-topbar {
  padding: 10px 18px 8px;
  background: rgba(10, 15, 28, 0.96);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  flex-direction: column;
  gap: 7px;
  flex-shrink: 0;
}

.tv-report-title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.tv-report-title-text {
  font-size: 13.5px;
  font-weight: 800;
  color: #ffffff;
  display: flex;
  align-items: center;
  gap: 8px;
  letter-spacing: -0.01em;
}

.tv-report-title-badge {
  font-size: 8.5px;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 4px;
  background: rgba(0, 229, 255, 0.12);
  color: #00e5ff;
  border: 1px solid rgba(0, 229, 255, 0.25);
  font-family: var(--font-mono, monospace);
  text-transform: uppercase;
}

.tv-report-subtabs-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.tv-report-tabs-group {
  display: flex;
  align-items: center;
  gap: 6px;
}

.tv-rep-tab-btn {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: #94a3b8;
  font-size: 10.5px;
  font-weight: 600;
  padding: 3.5px 10px;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.tv-rep-tab-btn:hover {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.08);
}

.tv-rep-tab-btn.active {
  background: rgba(8, 153, 129, 0.22);
  border-color: rgba(8, 153, 129, 0.6);
  color: #ffffff;
  font-weight: 700;
}

.tv-report-metrics-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  padding: 8px 18px;
  background: rgba(6, 11, 22, 0.90);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  flex-shrink: 0;
}

.tv-rep-metric-card {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.tv-rep-metric-lbl {
  font-size: 9.5px;
  color: #64748b;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.tv-rep-metric-val {
  font-size: 14.5px;
  font-weight: 800;
  font-family: var(--font-mono, monospace);
  color: #f1f5f9;
  letter-spacing: -0.02em;
}

.tv-rep-metric-val.profit {
  color: #22c55e;
  text-shadow: 0 0 10px rgba(34, 197, 94, 0.3);
}

.tv-rep-metric-val.loss {
  color: #f23645;
}

.tv-rep-metric-val.accent {
  color: #00e5ff;
}

.tv-report-canvas-wrap {
  flex: 1 1 auto;
  position: relative;
  width: 100%;
  min-height: 240px;
  overflow: hidden;
}

.tv-report-canvas-wrap canvas.tv-strat-canvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: block;
}

.tv-report-tooltip {
  position: absolute;
  pointer-events: none;
  background: rgba(8, 13, 25, 0.94);
  border: 1px solid rgba(0, 229, 255, 0.4);
  border-radius: 6px;
  padding: 6px 10px;
  font-size: 10.5px;
  font-family: var(--font-mono, monospace);
  color: #f8fafc;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(8px);
  z-index: 20;
  line-height: 1.4;
  white-space: nowrap;
}

/* Bottom HUD */
.tv-stage-bottom-hud {
  display: flex;
  flex-direction: column;
  background: rgba(4, 8, 16, 0.96);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.tv-specs-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: rgba(255, 255, 255, 0.08);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.tv-spec-item {
  display: flex;
  flex-direction: column;
  padding: 10px 16px;
  background: rgba(6, 11, 22, 0.95);
  min-width: 0;
}

.tv-spec-lbl {
  font-family: 'JetBrains Mono', monospace;
  font-size: 9px;
  color: #64748b;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 2px;
}

.tv-spec-val {
  font-size: 12px;
  font-weight: 700;
  color: #f1f5f9;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.tv-features-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  padding: 14px 18px;
}

.tv-feature-pill {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  background: rgba(255, 255, 255, 0.025);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 8px;
  padding: 10px 12px;
}

.tv-feature-icon {
  width: 22px;
  height: 22px;
  border-radius: 6px;
  background: rgba(56, 189, 248, 0.15);
  border: 1px solid rgba(56, 189, 248, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.tv-feature-num {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  font-weight: 800;
  color: #38bdf8;
}

.tv-feature-body {
  min-width: 0;
}

.tv-feature-title {
  font-size: 12px;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 2px;
}

.tv-feature-desc {
  font-size: 11px;
  line-height: 1.4;
  color: #94a3b8;
  margin: 0;
}

/* Responsive */
@media (max-width: 1024px) {
  .tv-workspace-layout {
    grid-template-columns: 1fr;
  }
  .tv-scripts-sidebar {
    border-right: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  }
  .tv-scripts-list {
    max-height: 220px;
  }
  .tv-features-list {
    grid-template-columns: 1fr;
  }
  .tv-specs-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}


/* ==========================================================================
   BADROCK REAL TRADINGVIEW LIGHTWEIGHT CHARTS & GLASSMORPHISM HUD STYLES
   ========================================================================== */

.tv-lightweight-chart-container {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  background: #04070d;
}

/* Dynamic Glassmorphism HUD Overlays */
.tv-dynamic-overlay-box {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 12;
}

.tv-glass-hud {
  position: absolute;
  padding: 12px 16px;
  background: rgba(6, 12, 24, 0.88);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(56, 189, 248, 0.35);
  border-radius: 10px;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.7), 0 0 20px rgba(56, 189, 248, 0.12);
  pointer-events: auto;
  font-family: 'JetBrains Mono', -apple-system, monospace;
}

.tv-glass-hud.top-right {
  top: 14px;
  right: 80px;
  width: 270px;
}

.tv-glass-hud.bottom-left {
  bottom: 16px;
  left: 16px;
  width: 290px;
}

.tv-glass-hud.top-left {
  top: 14px;
  left: 16px;
}

.tv-hud-badge {
  font-size: 9.5px;
  font-weight: 800;
  color: #38bdf8;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 8px;
  display: inline-block;
  background: rgba(56, 189, 248, 0.12);
  padding: 2px 8px;
  border-radius: 4px;
  border: 1px solid rgba(56, 189, 248, 0.3);
}

.tv-hud-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 11px;
  margin-bottom: 5px;
  color: #94a3b8;
}

.tv-hud-row strong {
  color: #ffffff;
  font-weight: 700;
}

/* Screener matrix HUD */
.screener-matrix-hud {
  width: 250px;
}

.tv-matrix-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 10px;
  margin-bottom: 4px;
  padding-bottom: 3px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  color: #94a3b8;
}

/* Radar Table HUD */
.radar-table-hud {
  padding: 10px 14px;
}

.tv-radar-mini-row {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 10px;
  margin-bottom: 5px;
}

.tv-radar-mini-row .sym {
  min-width: 55px;
  color: #f1f5f9;
  font-weight: 700;
}

.tv-radar-mini-row .bar {
  flex: 1;
  height: 6px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 3px;
  overflow: hidden;
}

.tv-radar-mini-row .fill {
  height: 100%;
  background: #38bdf8;
  border-radius: 3px;
}

.tv-radar-mini-row .stat {
  font-weight: 800;
  font-size: 9px;
  min-width: 48px;
  text-align: right;
  color: #94a3b8;
}

.tv-radar-mini-row .stat.radar-plus {
  color: #22c55e;
}

/* Regime Switcher Pills */
.tv-regime-pills {
  display: flex;
  align-items: center;
  gap: 6px;
}

.tv-regime-pill {
  font-size: 9.5px;
  font-weight: 700;
  color: #64748b;
  background: rgba(255, 255, 255, 0.04);
  padding: 4px 8px;
  border-radius: 5px;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.tv-regime-pill.active {
  color: #22c55e;
  background: rgba(34, 197, 94, 0.15);
  border-color: rgba(34, 197, 94, 0.4);
  box-shadow: 0 0 10px rgba(34, 197, 94, 0.3);
}

@media (max-width: 768px) {
  .tv-glass-hud.top-right {
    top: 50px;
    right: 10px;
    width: 220px;
  }
  .tv-glass-hud.bottom-left {
    bottom: 8px;
    left: 8px;
    width: 240px;
  }
}

/* ==========================================================================
   PRO-GRADE TRADINGVIEW OVERLAY CANVAS & PINE SCRIPT HUD STYLES
   ========================================================================== */

.tv-chart-overlay-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 5;
}

.tv-pine-status-card {
  position: absolute;
  top: 8px;
  right: 76px;
  width: 185px;
  max-width: calc(100% - 70px);
  padding: 4px 7px;
  background: rgba(5, 8, 14, 0.82);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(56, 189, 248, 0.25);
  border-radius: 6px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.65), 0 0 10px rgba(56, 189, 248, 0.05);
  pointer-events: auto;
  font-family: 'JetBrains Mono', -apple-system, monospace;
  z-index: 15;
}

.tv-pine-header {
  font-size: 7.5px;
  font-weight: 800;
  color: #38bdf8;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  padding-bottom: 3px;
  margin-bottom: 4px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.tv-pine-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2px 6px;
  font-size: 7.5px;
}

.tv-pine-grid .lbl {
  color: #848e9c;
  font-weight: 500;
}

.tv-pine-grid .val {
  color: #f8fafc;
  font-weight: 700;
}

.tv-pine-footer {
  margin-top: 4px;
  padding-top: 3px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  font-size: 6.5px;
  font-weight: 700;
  color: #089981;
  text-align: center;
  letter-spacing: 0.03em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.tv-pine-status-card.radar-style {
  width: 195px;
}

.tv-radar-matrix .r-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 4px;
  font-size: 9px;
}

.tv-radar-matrix .sym {
  color: #f1f5f9;
  font-weight: 700;
  width: 62px;
}

.tv-radar-matrix .bar {
  flex: 1;
  height: 4px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 2px;
  overflow: hidden;
}

.tv-radar-matrix .fill {
  height: 100%;
  background: linear-gradient(90deg, #38bdf8, #089981);
}

.tv-radar-matrix .tag {
  font-size: 8px;
  font-weight: 700;
  padding: 1px 4px;
  border-radius: 3px;
  background: rgba(255, 255, 255, 0.06);
  color: #94a3b8;
}

.tv-radar-matrix .tag.plus {
  background: rgba(8, 153, 129, 0.25);
  color: #34d399;
  border: 1px solid rgba(8, 153, 129, 0.5);
}

.tv-screener-items .s-item {
  display: flex;
  justify-content: space-between;
  font-size: 9px;
  margin-bottom: 3px;
  color: #94a3b8;
}

.tv-screener-consensus {
  margin-top: 6px;
  padding-top: 5px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 9px;
  font-weight: 800;
  color: #089981;
  text-align: center;
}

@media (max-width: 768px) {
  .tv-pine-status-card {
    top: 48px;
    right: 10px;
    width: 220px;
    padding: 8px 10px;
  }
}

/* ==========================================================================
   ABSORPTION FOOTPRINT ENGINE — SUB-CHART OSCILLATOR TABLE (vKb9UYv2.png)
   ========================================================================== */

.tv-footprint-hud {
  position: absolute;
  top: 8px;
  right: 58px;
  width: 125px;
  max-width: calc(100% - 68px);
  padding: 4px 7px;
  background: rgba(6, 10, 18, 0.88);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(0, 229, 255, 0.28);
  border-radius: 6px;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.65), 0 0 10px rgba(0, 229, 255, 0.08);
  font-family: 'JetBrains Mono', -apple-system, monospace;
  pointer-events: auto;
  z-index: 15;
}

.tv-fp-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  padding-bottom: 2px;
  margin-bottom: 3px;
}

.tv-fp-brand {
  font-size: 7.5px;
  font-weight: 800;
  color: #38bdf8;
  letter-spacing: 0.06em;
}

.tv-fp-title {
  font-size: 7px;
  font-weight: 700;
  color: #00e5ff;
}

.tv-fp-body {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.tv-fp-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 7px;
  color: #848e9c;
}

.tv-fp-row .val {
  font-weight: 700;
  color: #f1f5f9;
}

@media (max-width: 768px) {
  .tv-footprint-hud {
    top: 48px;
    right: 10px;
    width: 130px;
    padding: 4px 6px;
    font-size: 7px;
  }
}


/* ==========================================================================
   PRO TRADINGVIEW TERMINAL HUD & OVERLAYS v2.9.0
   ========================================================================== */

/* Strategy Builder Overlay */
.tv-pine-status-card.builder-style {
  width: 205px;
  border-color: rgba(56, 189, 248, 0.35);
}

.tv-builder-grid {
  display: flex;
  flex-direction: column;
  gap: 2px;
  margin-bottom: 3px;
}

.b-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 7px;
  color: #94a3b8;
  padding: 1px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.03);
}

.b-row strong {
  font-weight: 700;
}

/* Regime Trinity Overlay */
.tv-pine-status-card.trinity-style {
  width: 205px;
  border-color: rgba(168, 85, 247, 0.35);
}

.tv-trinity-modes {
  display: flex;
  gap: 2px;
  margin-bottom: 3px;
  padding-bottom: 3px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.m-pill {
  flex: 1;
  text-align: center;
  font-size: 6.5px;
  font-weight: 700;
  padding: 1.5px 2px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.04);
  color: #64748b;
  border: 1px solid rgba(255, 255, 255, 0.06);
  transition: all 0.2s ease;
}

.m-pill.active {
  background: rgba(8, 153, 129, 0.22);
  color: #089981;
  border-color: rgba(8, 153, 129, 0.5);
  box-shadow: 0 0 8px rgba(8, 153, 129, 0.25);
}

/* Market Radar Pro HUD (Bottom-Left Scanner) */
.tv-radar-scanner-hud {
  position: absolute;
  bottom: 8px;
  left: 8px;
  width: 275px;
  max-width: calc(100% - 16px);
  padding: 5px 7px;
  background: rgba(5, 8, 14, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(0, 229, 255, 0.30);
  border-radius: 6px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.75), 0 0 12px rgba(0, 229, 255, 0.08);
  pointer-events: auto;
  font-family: 'JetBrains Mono', -apple-system, monospace;
  z-index: 15;
}

.tv-radar-sc-header {
  font-size: 7.5px;
  font-weight: 800;
  color: #00e5ff;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  padding-bottom: 3px;
  margin-bottom: 4px;
}

.tv-radar-sc-grid {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.sc-row {
  display: grid;
  grid-template-columns: 12px 46px 60px 46px 28px 28px 1fr;
  align-items: center;
  font-size: 6.8px;
  color: #94a3b8;
  padding: 1.5px 3px;
  border-radius: 3px;
  background: rgba(255, 255, 255, 0.02);
}

.sc-row.header {
  font-weight: 700;
  color: #64748b;
  background: transparent;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  padding-bottom: 2px;
}

.sc-row.highlight {
  background: rgba(0, 229, 255, 0.08);
  border: 1px solid rgba(0, 229, 255, 0.25);
  color: #f1f5f9;
}

.sc-row .tag-w {
  display: inline-block;
  font-size: 6.5px;
  font-weight: 700;
  color: #22c55e;
  background: rgba(34, 197, 94, 0.15);
  padding: 1px 3px;
  border-radius: 2px;
  text-align: center;
}

.sc-row .score {
  font-weight: 700;
  color: #00e5ff;
}

.sc-row .bull {
  font-weight: 700;
  color: #22c55e;
}

.sc-row .mix {
  font-weight: 600;
  color: #f59e0b;
}

.tv-radar-sc-footer {
  margin-top: 4px;
  padding-top: 3px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  font-size: 6.8px;
  font-weight: 700;
  color: #00e5ff;
  letter-spacing: 0.03em;
}

/* Screener Status Card */
.tv-pine-status-card.screener-style {
  width: 195px;
}

@media (max-width: 768px) {
  .tv-radar-scanner-hud {
    bottom: 12px;
    left: 8px;
    width: calc(100% - 16px);
    padding: 8px 10px;
  }
  .sc-row {
    grid-template-columns: 14px 46px 62px 50px 32px 36px 1fr;
    font-size: 7px;
  }
  .tv-pine-status-card.builder-style,
  .tv-pine-status-card.trinity-style,
  .tv-pine-status-card.screener-style {
    top: 48px;
    right: 8px;
    width: calc(100% - 16px);
  }
}

/* Universal Screener Quick Guide HUD */
.tv-screener-guide-hud {
  position: absolute;
  bottom: 24px;
  right: 16px;
  width: 290px;
  max-width: calc(100% - 32px);
  padding: 8px 12px;
  background: rgba(5, 8, 14, 0.92);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(0, 229, 255, 0.25);
  border-radius: 6px;
  font-family: 'JetBrains Mono', -apple-system, monospace;
  font-size: 7.5px;
  color: #94a3b8;
  z-index: 15;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.7);
}

.tv-screener-guide-hud .guide-title {
  color: #00e5ff;
  font-weight: 800;
  letter-spacing: 0.05em;
  padding-bottom: 4px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  margin-bottom: 4px;
}

.tv-screener-guide-hud .g-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 2px 0;
}

@media (max-width: 768px) {
  .tv-screener-guide-hud {
    bottom: 8px;
    right: 8px;
    width: calc(100% - 16px);
  }
}

/* Accent styling for strategy backtest metrics (Win Rate, Profit Factor, Net ROI) */
.tv-spec-item.accent {
  border-color: rgba(34, 197, 94, 0.35);
  background: rgba(34, 197, 94, 0.07);
}

.tv-spec-item.accent .tv-spec-lbl {
  color: #38bdf8;
  font-weight: 700;
}

.tv-spec-item.accent .tv-spec-val {
  color: #22c55e !important;
  font-weight: 800;
  text-shadow: 0 0 10px rgba(34, 197, 94, 0.35);
}

/* ==========================================================================
   FLOATING TELEGRAM SUPPORT WIDGET BUTTON (MATCHING TERMINAL UX)
   ========================================================================== */
.floating-support-container {
  position: fixed;
  bottom: 28px;
  right: 28px;
  z-index: 9990;
  display: flex;
  align-items: center;
  gap: 10px;
}

.floating-support-btn {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--brand-cyan) 0%, #20d4a4 100%);
  color: #04080e;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 26px rgba(76, 245, 200, 0.45);
  transition: all 0.3s var(--ease-spring);
  position: relative;
  text-decoration: none;
}

.floating-support-btn:hover {
  transform: translateY(-3px) scale(1.06);
  box-shadow: 0 10px 34px rgba(76, 245, 200, 0.65);
}

.floating-support-btn .support-icon {
  width: 24px;
  height: 24px;
}

.support-badge-pulse {
  position: absolute;
  top: 2px;
  right: 2px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #10b981;
  border: 2px solid #070b12;
  box-shadow: 0 0 8px #10b981;
  animation: pulseBadge 2.2s infinite;
}

@keyframes pulseBadge {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.2); opacity: 0.8; }
}

.floating-support-tooltip {
  display: flex;
  align-items: center;
  gap: 7px;
  background: rgba(12, 18, 30, 0.94);
  border: 1px solid rgba(76, 245, 200, 0.35);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  padding: 8px 14px;
  border-radius: var(--radius-pill);
  font-size: 12.5px;
  font-weight: 700;
  color: #ffffff;
  font-family: var(--font-display);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.6);
  pointer-events: none;
  opacity: 0;
  transform: translateX(8px);
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.floating-support-container:hover .floating-support-tooltip {
  opacity: 1;
  transform: translateX(0);
}

.support-dot-online {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--brand-cyan);
  box-shadow: 0 0 6px var(--brand-cyan);
}

@media (max-width: 640px) {
  .floating-support-container {
    bottom: 20px;
    right: 20px;
  }
  .floating-support-tooltip {
    display: none;
  }
}

/* ==========================================================================
   PARTNER, INVESTOR & SPONSOR INQUIRY MODAL
   ========================================================================== */
.inquiry-modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 100000;
  background: rgba(4, 8, 16, 0.85);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.28s cubic-bezier(0.16, 1, 0.3, 1);
}

.inquiry-modal-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.inquiry-modal-card {
  position: relative;
  width: 100%;
  max-width: 580px;
  max-height: 92vh;
  overflow-y: auto;
  background: #090e1a;
  border: 1px solid rgba(76, 245, 200, 0.25);
  border-radius: 20px;
  padding: 28px 32px;
  box-shadow: 0 28px 70px rgba(0, 0, 0, 0.85), 0 0 45px rgba(76, 245, 200, 0.12);
  transform: translateY(16px) scale(0.98);
  transition: transform 0.28s cubic-bezier(0.16, 1, 0.3, 1);
  box-sizing: border-box;
}

.inquiry-modal-overlay.active .inquiry-modal-card {
  transform: translateY(0) scale(1);
}

.inquiry-modal-close {
  position: absolute;
  top: 20px;
  right: 20px;
  width: 34px;
  height: 34px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  color: #94a3b8;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
}

.inquiry-modal-close:hover {
  background: rgba(239, 68, 68, 0.18);
  border-color: rgba(239, 68, 68, 0.4);
  color: #f87171;
  transform: rotate(90deg);
}

.inquiry-modal-header {
  margin-bottom: 20px;
  padding-right: 36px;
}

.inquiry-modal-badge {
  display: inline-block;
  font-size: 10.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #4cf5c8;
  background: rgba(76, 245, 200, 0.1);
  border: 1px solid rgba(76, 245, 200, 0.25);
  padding: 3px 10px;
  border-radius: 999px;
  margin-bottom: 8px;
}

.inquiry-modal-title {
  font-size: 22px;
  font-weight: 700;
  color: #ffffff;
  margin: 0 0 6px;
  letter-spacing: -0.01em;
}

.inquiry-modal-subtitle {
  font-size: 13px;
  color: #94a3b8;
  margin: 0;
  line-height: 1.5;
}

/* Tab Switcher */
.inquiry-type-nav {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 6px;
  background: rgba(13, 20, 36, 0.7);
  padding: 4px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  margin-bottom: 22px;
}

.inquiry-tab-btn {
  background: transparent;
  border: 1px solid transparent;
  color: #94a3b8;
  font-size: 12.5px;
  font-weight: 600;
  padding: 8px 10px;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s ease;
  font-family: inherit;
  text-align: center;
  white-space: nowrap;
}

.inquiry-tab-btn:hover {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.04);
}

.inquiry-tab-btn.active {
  background: #4cf5c8;
  color: #040810;
  font-weight: 700;
  border-color: #4cf5c8;
  box-shadow: 0 2px 12px rgba(76, 245, 200, 0.35);
}

/* Sections & Form Fields */
.inquiry-section-label {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #4cf5c8;
  margin: 18px 0 10px;
  padding-bottom: 4px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.inquiry-grid-2col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.inquiry-field {
  margin-bottom: 14px;
}

.inquiry-field label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  color: #cbd5e1;
  margin-bottom: 6px;
}

.inquiry-field input[type="text"],
.inquiry-field input[type="email"],
.inquiry-field select,
.inquiry-field textarea {
  width: 100%;
  padding: 10px 14px;
  background: rgba(13, 20, 36, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 10px;
  color: #ffffff;
  font-size: 13.5px;
  font-family: inherit;
  transition: border-color 0.2s, box-shadow 0.2s, background-color 0.2s;
  box-sizing: border-box;
}

.inquiry-field select {
  cursor: pointer;
}

.inquiry-field select option {
  background: #090e1a;
  color: #ffffff;
}

.inquiry-field input::placeholder,
.inquiry-field textarea::placeholder {
  color: #475569;
}

.inquiry-field input:focus,
.inquiry-field select:focus,
.inquiry-field textarea:focus {
  outline: none;
  border-color: #4cf5c8;
  background: rgba(16, 26, 48, 0.95);
  box-shadow: 0 0 14px rgba(76, 245, 200, 0.25);
}

.inquiry-survey-block {
  display: none;
}

.inquiry-survey-block.active {
  display: block;
  animation: inqFadeIn 0.25s ease-out;
}

@keyframes inqFadeIn {
  from { opacity: 0; transform: translateY(4px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Status Message */
.inquiry-status {
  padding: 10px 14px;
  border-radius: 10px;
  font-size: 13px;
  line-height: 1.45;
  margin: 12px 0;
}

.inquiry-status.error {
  background: rgba(239, 68, 68, 0.15);
  border: 1px solid rgba(239, 68, 68, 0.4);
  color: #fca5a5;
}

.inquiry-status.success {
  background: rgba(16, 185, 129, 0.15);
  border: 1px solid rgba(16, 185, 129, 0.4);
  color: #6ee7b7;
}

/* Submit row */
.inquiry-submit-row {
  margin-top: 20px;
}

.inq-btn-submit {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 20px;
  font-size: 14px;
  font-weight: 700;
  width: 100%;
}

/* Success View */
.inquiry-success-view {
  text-align: center;
  padding: 24px 8px 12px;
  animation: inqFadeIn 0.3s ease-out;
}

.inquiry-success-icon {
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: rgba(76, 245, 200, 0.15);
  border: 2px solid #4cf5c8;
  color: #4cf5c8;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
  font-weight: 800;
  margin: 0 auto 16px;
  box-shadow: 0 0 28px rgba(76, 245, 200, 0.35);
}

.inquiry-success-title {
  font-size: 22px;
  font-weight: 700;
  color: #ffffff;
  margin: 0 0 8px;
}

.inquiry-success-desc {
  font-size: 13.5px;
  color: #94a3b8;
  line-height: 1.55;
  margin: 0 0 24px;
  max-width: 440px;
  margin-left: auto;
  margin-right: auto;
}

.inquiry-success-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.inquiry-success-actions a.btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  text-decoration: none;
  font-weight: 600;
}

.inquiry-success-actions a.btn svg {
  width: 16px;
  height: 16px;
}

@media (max-width: 640px) {
  .inquiry-modal-card {
    padding: 22px 18px;
    border-radius: 16px;
  }
  .inquiry-grid-2col {
    grid-template-columns: 1fr;
  }
  .inquiry-type-nav {
    grid-template-columns: repeat(2, 1fr);
    gap: 6px;
  }
  .inquiry-tab-btn {
    padding: 9px;
  }
}

/* ==========================================================================
   3-DAY TRIAL MODAL & AUTO-FUNNEL STYLES (F02)
   ========================================================================== */
.trial-modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 100000;
  background: rgba(4, 8, 16, 0.88);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.28s cubic-bezier(0.16, 1, 0.3, 1);
}

.trial-modal-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.trial-modal-card {
  position: relative;
  width: 100%;
  max-width: 540px;
  max-height: 92vh;
  overflow-y: auto;
  background: #090e1a;
  border: 1px solid rgba(76, 245, 200, 0.3);
  border-radius: 20px;
  padding: 28px 32px;
  box-shadow: 0 28px 70px rgba(0, 0, 0, 0.9), 0 0 50px rgba(76, 245, 200, 0.15);
  transform: translateY(16px) scale(0.98);
  transition: transform 0.28s cubic-bezier(0.16, 1, 0.3, 1);
  box-sizing: border-box;
}

.trial-modal-overlay.active .trial-modal-card {
  transform: translateY(0) scale(1);
}

.trial-modal-close {
  position: absolute;
  top: 20px;
  right: 20px;
  width: 34px;
  height: 34px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 50%;
  color: #94a3b8;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 20px;
  line-height: 1;
  transition: all 0.2s ease;
}

.trial-modal-close:hover {
  background: rgba(239, 68, 68, 0.18);
  border-color: rgba(239, 68, 68, 0.4);
  color: #f87171;
  transform: rotate(90deg);
}

.trial-modal-header {
  margin-bottom: 20px;
  padding-right: 36px;
}

.trial-modal-badge {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #4cf5c8;
  background: rgba(76, 245, 200, 0.12);
  border: 1px solid rgba(76, 245, 200, 0.3);
  padding: 4px 12px;
  border-radius: 999px;
  margin-bottom: 8px;
}

.trial-modal-title {
  font-size: 22px;
  font-weight: 700;
  color: #ffffff;
  margin: 0 0 6px;
  letter-spacing: -0.01em;
}

.trial-modal-subtitle {
  font-size: 13.5px;
  color: #94a3b8;
  margin: 0;
  line-height: 1.5;
}

/* Quick Social Auth Buttons */
.trial-social-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 18px;
  margin-bottom: 16px;
}

.trial-social-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 12px 14px;
  border-radius: 12px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  border: 1px solid transparent;
  text-decoration: none;
}

.trial-social-tg {
  background: rgba(0, 136, 204, 0.15);
  border-color: rgba(0, 136, 204, 0.38);
  color: #38bdf8;
}

.trial-social-tg:hover {
  background: rgba(0, 136, 204, 0.25);
  border-color: #38bdf8;
  color: #ffffff;
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(0, 136, 204, 0.25);
}

.trial-social-google {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.15);
  color: #f1f5f9;
}

.trial-social-google:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.3);
  color: #ffffff;
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(255, 255, 255, 0.08);
}

.trial-social-icon {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

/* Divider */
.trial-divider {
  position: relative;
  text-align: center;
  margin: 16px 0 18px;
}

.trial-divider::before {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  top: 50%;
  height: 1px;
  background: rgba(255, 255, 255, 0.1);
}

.trial-divider span {
  position: relative;
  background: #090e1a;
  padding: 0 12px;
  font-size: 11.5px;
  color: #64748b;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-weight: 600;
}

/* Form Layout */
.trial-form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.trial-field {
  margin-bottom: 12px;
}

.trial-field label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  color: #cbd5e1;
  margin-bottom: 5px;
}

.trial-field input {
  width: 100%;
  box-sizing: border-box;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 10px;
  padding: 10px 14px;
  font-size: 13.5px;
  color: #ffffff;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.trial-field input:focus {
  border-color: #4cf5c8;
  box-shadow: 0 0 0 3px rgba(76, 245, 200, 0.15);
}

.trial-field input::placeholder {
  color: #64748b;
}

/* Consents */
.trial-consents-group {
  margin: 14px 0 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.trial-checkbox-row {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  cursor: pointer;
  user-select: none;
}

.trial-checkbox-row input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.trial-checkbox-custom {
  width: 16px;
  height: 16px;
  min-width: 16px;
  margin-top: 2px;
  border: 1.5px solid rgba(255, 255, 255, 0.3);
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.04);
  transition: all 0.15s ease;
  position: relative;
}

.trial-checkbox-row input:checked + .trial-checkbox-custom {
  background: #4cf5c8;
  border-color: #4cf5c8;
}

.trial-checkbox-row input:checked + .trial-checkbox-custom::after {
  content: '';
  position: absolute;
  left: 4px;
  top: 1px;
  width: 4px;
  height: 8px;
  border: solid #090e1a;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

.trial-consent-text {
  font-size: 12px;
  color: #94a3b8;
  line-height: 1.45;
}

/* Status Banner */
.trial-status {
  padding: 10px 14px;
  border-radius: 8px;
  font-size: 12.5px;
  margin-bottom: 12px;
}

.trial-status.error {
  background: rgba(239, 68, 68, 0.15);
  border: 1px solid rgba(239, 68, 68, 0.35);
  color: #fca5a5;
}

.trial-status.success {
  background: rgba(76, 245, 200, 0.15);
  border: 1px solid rgba(76, 245, 200, 0.35);
  color: #4cf5c8;
}

/* Submit Row */
.trial-submit-row {
  margin-top: 14px;
}

.trial-btn-submit {
  width: 100%;
  padding: 13px;
  font-size: 14px;
  font-weight: 700;
  border-radius: 12px;
  background: linear-gradient(135deg, #4cf5c8, #00b4d8);
  color: #040810;
  border: none;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 8px 24px rgba(76, 245, 200, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
}

.trial-btn-submit:hover {
  box-shadow: 0 10px 30px rgba(76, 245, 200, 0.4);
  transform: translateY(-1px);
}

/* Success View */
.trial-success-view {
  text-align: center;
  padding: 14px 4px;
}

.trial-success-icon {
  width: 60px;
  height: 60px;
  line-height: 60px;
  margin: 0 auto 14px;
  background: rgba(76, 245, 200, 0.15);
  border: 2px solid #4cf5c8;
  border-radius: 50%;
  color: #4cf5c8;
  font-size: 28px;
  box-shadow: 0 0 30px rgba(76, 245, 200, 0.3);
  animation: trialGlowPulse 2.4s infinite ease-in-out;
}

@keyframes trialGlowPulse {
  0%, 100% {
    box-shadow: 0 0 20px rgba(76, 245, 200, 0.25);
    transform: scale(1);
  }
  50% {
    box-shadow: 0 0 35px rgba(76, 245, 200, 0.5);
    transform: scale(1.04);
  }
}

.trial-success-title {
  font-size: 22px;
  font-weight: 700;
  color: #ffffff;
  margin: 0 0 8px;
}

.trial-success-timer-badge {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  color: #38bdf8;
  background: rgba(56, 189, 248, 0.12);
  border: 1px solid rgba(56, 189, 248, 0.3);
  padding: 5px 14px;
  border-radius: 999px;
  margin-bottom: 14px;
}

.trial-success-desc {
  font-size: 13.5px;
  color: #94a3b8;
  line-height: 1.55;
  margin: 0 0 20px;
}

.trial-success-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

@media (max-width: 640px) {
  .trial-modal-card {
    padding: 22px 18px;
    border-radius: 16px;
  }
  .trial-form-grid {
    grid-template-columns: 1fr;
    gap: 0;
  }
  .trial-social-row {
    grid-template-columns: 1fr;
    gap: 8px;
  }
}

@media (max-width: 640px) {
  .stage-header-bar { min-width: 0; }
  .stage-nav-switcher {
    order: 3;
    flex: 1 1 100%;
    min-width: 0;
    max-width: 100%;
    flex-wrap: wrap;
  }
  .stage-tab-btn {
    flex: 1 1 calc(50% - 4px);
    min-width: 0;
    white-space: normal;
  }
  .footer-social-icons-row {
    max-width: 100%;
    flex-wrap: wrap;
    justify-content: center;
  }
  .footer-social-btn { flex: 0 0 38px; }
}
