/* ============================================================
   MT5 Gold AI Neural Network Copy Trading System - Landing Page
   Dark Professional Trading Platform UI
   ============================================================ */

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

:root {
  --bg-primary: #131722;
  --bg-panel: #24262b;
  --bg-panel-hover: #2a2d33;
  --border-subtle: rgba(255, 255, 255, 0.06);
  --border-active: rgba(255, 255, 255, 0.12);
  --green: #1dbe70;
  --green-dim: rgba(29, 190, 112, 0.15);
  --red: #ff3b30;
  --red-dim: rgba(255, 59, 48, 0.15);
  --gold: #ffb800;
  --gold-dim: rgba(255, 184, 0, 0.12);
  --text-primary: #d1d4dc;
  --text-secondary: #787b86;
  --text-dim: #555860;
  --font-sans: 'Inter', -apple-system, 'PingFang SC', 'SF Pro Display', 'Helvetica Neue', sans-serif;
  --font-mono: 'JetBrains Mono', 'SF Mono', 'Menlo', 'Consolas', monospace;
  --radius: 6px;
  --radius-lg: 8px;
}

html {
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-sans);
  background-color: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
  min-height: 100vh;
  /* Grid texture overlay */
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.015) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.015) 1px, transparent 1px);
  background-size: 40px 40px;
}

a { color: var(--green); text-decoration: none; }

/* ===== SECTION COMMON ===== */
.section-container {
  max-width: 1080px;
  margin: 0 auto;
  padding: 80px 20px;
}

.section-header {
  text-align: center;
  margin-bottom: 48px;
}

.section-tag {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 2px;
  color: var(--gold);
  text-transform: uppercase;
  background: var(--gold-dim);
  padding: 4px 12px;
  border-radius: 3px;
  margin-bottom: 16px;
}

.section-title {
  font-size: 28px;
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: 0.5px;
  line-height: 1.3;
}

.section-desc {
  font-size: 14px;
  color: var(--text-secondary);
  margin-top: 10px;
}

.gold-text {
  color: var(--gold);
}

/* ===== HERO SECTION ===== */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.hero-bg-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 500px;
  background: url('/assets/hero-bg.webp') center top / cover no-repeat;
  opacity: 0.25;
  pointer-events: none;
  mask-image: linear-gradient(to bottom, rgba(0,0,0,0.6) 0%, transparent 100%);
  -webkit-mask-image: linear-gradient(to bottom, rgba(0,0,0,0.6) 0%, transparent 100%);
}

/* Status Bar */
.status-bar {
  position: relative;
  z-index: 10;
  border-bottom: 1px solid var(--border-subtle);
  background: rgba(19, 23, 34, 0.85);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
}

.status-bar-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 12px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
}

.price-ticker {
  display: flex;
  align-items: center;
  gap: 12px;
}

.price-label {
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 600;
  color: var(--text-secondary);
  letter-spacing: 1px;
}

.price-value {
  font-family: var(--font-mono);
  font-size: 22px;
  font-weight: 700;
  color: var(--text-primary);
  transition: color 0.3s;
}

.price-value.flash-up { color: var(--green); }
.price-value.flash-down { color: var(--red); }

.price-change {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  padding: 2px 8px;
  border-radius: 3px;
}
.price-change.positive { color: var(--green); background: var(--green-dim); }
.price-change.negative { color: var(--red); background: var(--red-dim); }

.status-tags {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.status-tag {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-secondary);
  padding: 4px 10px;
  border: 1px solid var(--border-subtle);
  border-radius: 4px;
  display: flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
}

.status-tag.active {
  color: var(--green);
  border-color: rgba(29, 190, 112, 0.3);
}

.status-tag.connected {
  color: var(--green);
  border-color: rgba(29, 190, 112, 0.2);
}

.status-tag strong {
  color: var(--text-primary);
  font-weight: 600;
}

/* Pulse dot */
.pulse-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--green);
  display: inline-block;
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(29, 190, 112, 0.5); }
  50% { box-shadow: 0 0 0 8px rgba(29, 190, 112, 0); }
}

/* Language Toggle */
.lang-toggle {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-left: 6px;
}

.lang-btn {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  padding: 3px 8px;
  border: 1px solid var(--border-subtle);
  border-radius: 3px;
  background: transparent;
  color: var(--text-dim);
  cursor: pointer;
  transition: all 0.2s;
  -webkit-tap-highlight-color: transparent;
  line-height: 1.2;
}

.lang-btn.active {
  background: rgba(255, 255, 255, 0.08);
  color: var(--text-primary);
  border-color: var(--border-active);
}

.lang-divider {
  font-size: 10px;
  color: var(--text-dim);
}

/* TradingView Mini Widget */
.tv-mini-widget-wrap {
  display: flex;
  align-items: center;
  margin-left: 4px;
  opacity: 0.85;
  position: relative;
}

/* Disable pointer events on the TradingView widget itself */
#tvMiniWidget .tradingview-widget-container__widget {
  pointer-events: none;
}

/* Notification Pill Badge */
.notification-pill {
  position: relative;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin: 16px auto 0;
  padding: 8px 20px;
  max-width: fit-content;
  background: rgba(29, 190, 112, 0.06);
  border: 1px solid rgba(29, 190, 112, 0.25);
  border-radius: 20px;
  font-size: 13px;
  font-weight: 500;
  color: var(--green);
  box-shadow: 0 0 16px rgba(29, 190, 112, 0.08), inset 0 0 12px rgba(29, 190, 112, 0.04);
  animation: pillGlow 3s ease-in-out infinite;
}

@keyframes pillGlow {
  0%, 100% { box-shadow: 0 0 16px rgba(29, 190, 112, 0.08), inset 0 0 12px rgba(29, 190, 112, 0.04); }
  50% { box-shadow: 0 0 24px rgba(29, 190, 112, 0.15), inset 0 0 16px rgba(29, 190, 112, 0.06); }
}

.pill-icon {
  font-size: 15px;
  flex-shrink: 0;
}

/* Hero Content */
.hero-content {
  position: relative;
  z-index: 5;
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 60px 20px 30px;
  text-align: center;
}

.hero-title {
  font-size: 32px;
  font-weight: 800;
  line-height: 1.35;
  letter-spacing: 0.5px;
  color: var(--text-primary);
  margin-bottom: 14px;
}

.hero-subtitle {
  font-size: 15px;
  color: var(--text-secondary);
  margin-bottom: 36px;
  max-width: 500px;
}

/* TradingView Chart Container */
.chart-container {
  width: 100%;
  max-width: 900px;
  height: 380px;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--bg-panel);
  position: relative;
}

/* Transparent click blocker overlay for TradingView widgets */
.tv-click-blocker {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 99;
  background: transparent;
  cursor: default;
  pointer-events: auto;
}

/* Chart blocker only covers the top header area (title bar ~50px) */
.tv-click-blocker.chart-blocker {
  height: 50px;
}

.chart-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.chart-loading {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  color: var(--text-secondary);
  font-family: var(--font-mono);
  font-size: 12px;
}

.chart-loading-bar {
  width: 120px;
  height: 2px;
  background: var(--bg-panel);
  border-radius: 1px;
  overflow: hidden;
  position: relative;
}

.chart-loading-bar::after {
  content: '';
  position: absolute;
  left: -40px;
  top: 0;
  width: 40px;
  height: 100%;
  background: var(--green);
  animation: loadingSlide 1.2s ease-in-out infinite;
}

@keyframes loadingSlide {
  0% { left: -40px; }
  100% { left: 120px; }
}

/* Signal Ticker */
.signal-ticker {
  position: relative;
  z-index: 10;
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
  background: rgba(36, 38, 43, 0.7);
  overflow: hidden;
  padding: 10px 0;
}

.ticker-track {
  display: flex;
  gap: 40px;
  animation: tickerScroll 30s linear infinite;
  width: max-content;
}

@keyframes tickerScroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

.ticker-item {
  display: flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
  font-size: 12px;
  font-family: var(--font-mono);
}

.ticker-time {
  color: var(--text-dim);
  font-size: 11px;
}

.ticker-badge {
  font-size: 10px;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 3px;
  letter-spacing: 0.5px;
}

.ticker-badge.buy {
  background: var(--green-dim);
  color: var(--green);
}

.ticker-badge.sell {
  background: var(--red-dim);
  color: var(--red);
}

.ticker-text {
  color: var(--text-secondary);
}

/* ===== BACKTEST SECTION ===== */
.backtest-section {
  border-top: 1px solid var(--border-subtle);
}

/* Strategy Grid */
.strategy-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-bottom: 32px;
}

.strategy-card {
  cursor: pointer;
  display: block;
}

.strategy-card-inner {
  background: var(--bg-panel);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius);
  padding: 18px;
  transition: border-color 0.2s, background 0.2s;
}

.strategy-card input[type="radio"] {
  display: none;
}

.strategy-card.selected .strategy-card-inner {
  border-color: var(--green);
  background: rgba(29, 190, 112, 0.05);
  box-shadow: 0 0 12px rgba(29, 190, 112, 0.08);
}

.strategy-header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 14px;
}

.strategy-icon {
  font-size: 14px;
  color: var(--gold);
}

.strategy-name {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-primary);
  flex: 1;
}

.strategy-badge {
  font-size: 10px;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 3px;
  letter-spacing: 0.5px;
}

.strategy-badge.conservative { background: var(--green-dim); color: var(--green); }
.strategy-badge.aggressive { background: var(--red-dim); color: var(--red); }
.strategy-badge.balanced { background: var(--gold-dim); color: var(--gold); }

.strategy-stats {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

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

.stat-label {
  font-size: 12px;
  color: var(--text-secondary);
}

.stat-value {
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 600;
  color: var(--text-primary);
}

.stat-value.green { color: var(--green); }

/* Capital Section */
.capital-section {
  margin-bottom: 28px;
}

.capital-label {
  display: block;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-secondary);
  margin-bottom: 10px;
}

/* Capital Slider */
.capital-slider-wrap {
  position: relative;
  padding: 10px 4px 0;
  margin-bottom: 8px;
}

.capital-slider-tooltip {
  position: absolute;
  top: -8px;
  left: 50%;
  transform: translateX(-50%);
  font-family: var(--font-mono);
  font-size: 16px;
  font-weight: 700;
  color: var(--green);
  background: rgba(29, 190, 112, 0.12);
  border: 1px solid rgba(29, 190, 112, 0.3);
  border-radius: 6px;
  padding: 4px 14px;
  white-space: nowrap;
  pointer-events: none;
  transition: left 0.05s ease;
  z-index: 5;
}

.capital-slider {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 6px;
  border-radius: 3px;
  background: var(--bg-panel);
  outline: none;
  cursor: pointer;
  --fill-pct: 4.9%;
}

.capital-slider::-webkit-slider-runnable-track {
  height: 6px;
  border-radius: 3px;
  background: linear-gradient(to right, var(--green) 0%, var(--green) var(--fill-pct, 5%), var(--bg-panel) var(--fill-pct, 5%), var(--bg-panel) 100%);
}

.capital-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--green);
  border: 3px solid var(--bg-dark);
  box-shadow: 0 0 10px rgba(29, 190, 112, 0.5), 0 0 0 2px rgba(29, 190, 112, 0.2);
  cursor: pointer;
  margin-top: -8px;
  transition: box-shadow 0.2s;
}

.capital-slider::-webkit-slider-thumb:active {
  box-shadow: 0 0 16px rgba(29, 190, 112, 0.7), 0 0 0 4px rgba(29, 190, 112, 0.3);
}

.capital-slider::-moz-range-track {
  height: 6px;
  border-radius: 3px;
  background: var(--bg-panel);
  border: none;
}

.capital-slider::-moz-range-progress {
  height: 6px;
  border-radius: 3px;
  background: var(--green);
}

.capital-slider::-moz-range-thumb {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--green);
  border: 3px solid var(--bg-dark);
  box-shadow: 0 0 10px rgba(29, 190, 112, 0.5);
  cursor: pointer;
}

.capital-slider-labels {
  display: flex;
  justify-content: space-between;
  margin-top: 8px;
  padding: 0 2px;
}

.capital-slider-labels span {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--text-secondary);
  opacity: 0.6;
}

.capital-detail {
  display: flex;
  gap: 20px;
  margin-top: 12px;
  padding: 10px 14px;
  background: rgba(29, 190, 112, 0.06);
  border: 1px solid rgba(29, 190, 112, 0.15);
  border-radius: 6px;
  flex-wrap: wrap;
}

.capital-detail-item {
  font-size: 12px;
  color: var(--text-secondary);
}

.capital-detail-item strong {
  font-family: var(--font-mono);
  color: var(--green);
  font-weight: 600;
}

/* Start Backtest Button */
.start-backtest-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  max-width: 480px;
  margin: 0 auto 32px;
  padding: 16px 24px;
  font-family: var(--font-sans);
  font-size: 15px;
  font-weight: 700;
  color: #000;
  background: var(--green);
  border: none;
  border-radius: var(--radius);
  cursor: pointer;
  transition: all 0.2s;
  -webkit-tap-highlight-color: transparent;
  letter-spacing: 0.3px;
}

.start-backtest-btn:hover {
  background: #22d47e;
  box-shadow: 0 0 20px rgba(29, 190, 112, 0.3);
}

.start-backtest-btn.disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.btn-icon {
  font-size: 18px;
}

/* Backtest Console */
.backtest-console {
  max-width: 700px;
  margin: 0 auto 32px;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: #1a1d26;
}

.console-header {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 10px 14px;
  background: rgba(255, 255, 255, 0.03);
  border-bottom: 1px solid var(--border-subtle);
}

.console-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}
.console-dot.red { background: #ff5f57; }
.console-dot.yellow { background: #febc2e; }
.console-dot.green { background: #28c840; }

.console-title {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-dim);
  margin-left: 8px;
}

.console-body {
  padding: 14px;
  font-family: var(--font-mono);
  font-size: 12px;
  line-height: 1.8;
  color: var(--text-secondary);
  max-height: 200px;
  overflow-y: auto;
}

.console-line {
  opacity: 0;
  animation: fadeInLine 0.2s forwards;
}

@keyframes fadeInLine {
  to { opacity: 1; }
}

.console-cursor {
  color: var(--green);
  margin-right: 4px;
}

/* Progress */
.progress-section {
  padding: 14px;
  border-top: 1px solid var(--border-subtle);
}

.progress-label {
  display: flex;
  justify-content: space-between;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-secondary);
  margin-bottom: 8px;
}

.progress-bar {
  height: 4px;
  background: rgba(255, 255, 255, 0.06);
  border-radius: 2px;
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  background: var(--green);
  border-radius: 2px;
  width: 0%;
  transition: width 0.1s linear;
  box-shadow: 0 0 8px rgba(29, 190, 112, 0.4);
}

/* Canvas Chart */
.chart-canvas-wrap {
  padding: 14px;
}

.chart-canvas-wrap canvas {
  width: 100%;
  height: 200px;
  display: block;
}

/* Results Panel */
.results-panel {
  max-width: 700px;
  margin: 0 auto;
  border: 1px solid rgba(29, 190, 112, 0.2);
  border-radius: var(--radius-lg);
  background: rgba(29, 190, 112, 0.03);
  overflow: hidden;
  animation: fadeInUp 0.5s ease;
}

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

.results-header {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 14px 18px;
  background: rgba(29, 190, 112, 0.06);
  border-bottom: 1px solid rgba(29, 190, 112, 0.1);
  font-size: 13px;
  font-weight: 600;
  color: var(--green);
}

.results-icon {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--green);
  color: #000;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 700;
}

.results-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--border-subtle);
}

.result-card {
  background: var(--bg-panel);
  padding: 18px 14px;
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.result-label {
  font-size: 11px;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.result-value {
  font-family: var(--font-mono);
  font-size: 20px;
  font-weight: 700;
  color: var(--text-primary);
}

.result-value.green { color: var(--green); }
.result-value.gold { color: var(--gold); }

.result-unit {
  font-size: 11px;
  color: var(--text-dim);
}

/* ===== BROKERS SECTION ===== */
.brokers-section {
  border-top: 1px solid var(--border-subtle);
  background: rgba(36, 38, 43, 0.3);
}

.brokers-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 14px;
  margin-bottom: 28px;
}

.broker-card {
  background: var(--bg-panel);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius);
  padding: 24px 14px;
  text-align: center;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.broker-card:hover {
  border-color: var(--border-active);
  box-shadow: 0 0 12px rgba(255, 255, 255, 0.03);
}

.broker-logo-img {
  width: 120px;
  height: 48px;
  object-fit: contain;
  margin-bottom: 8px;
  opacity: 0.85;
  transition: opacity 0.3s;
}

.broker-card:hover .broker-logo-img {
  opacity: 1;
}

.broker-type {
  font-size: 11px;
  color: var(--text-dim);
}

.brokers-footer {
  text-align: center;
  font-size: 13px;
  color: var(--text-secondary);
}

/* ===== PERFORMANCE SECTION ===== */
.performance-section {
  border-top: 1px solid var(--border-subtle);
}

/* Stats Dashboard */
.stats-dashboard {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-bottom: 48px;
}

.stat-dashboard-card {
  background: var(--bg-panel);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 24px 18px;
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.stat-big-label {
  font-size: 12px;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.stat-big-value {
  font-family: var(--font-mono);
  font-size: 28px;
  font-weight: 700;
  color: var(--text-primary);
}

.stat-big-value.green { color: var(--green); }
.stat-big-value.gold { color: var(--gold); }

.stat-big-sub {
  font-size: 11px;
  color: var(--text-dim);
}

/* Heatmap */
.heatmap-section {
  margin-bottom: 48px;
}

.subsection-title {
  font-size: 16px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.heatmap-year {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-dim);
  font-weight: 400;
}

.heatmap-table-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.heatmap-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 3px;
  font-family: var(--font-mono);
  font-size: 12px;
}

.heatmap-table th {
  font-size: 11px;
  font-weight: 500;
  color: var(--text-dim);
  padding: 6px 4px;
  text-align: center;
  white-space: nowrap;
}

.heatmap-table td {
  padding: 10px 4px;
  text-align: center;
  border-radius: 3px;
  font-weight: 600;
  min-width: 56px;
}

.heatmap-year-cell {
  font-weight: 700;
  color: var(--text-secondary) !important;
  background: transparent !important;
  text-align: left !important;
}

.heatmap-cell.empty {
  color: var(--text-dim);
  background: rgba(255, 255, 255, 0.02) !important;
}

/* Trade Feed */
.trade-feed-section {
  margin-bottom: 20px;
}

.live-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--red);
  display: inline-block;
  animation: livePulse 1.5s ease-in-out infinite;
}

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

.live-text {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  color: var(--red);
  letter-spacing: 1px;
}

.trade-feed {
  display: flex;
  flex-direction: column;
  gap: 2px;
  max-height: 360px;
  overflow: hidden;
}

.trade-item {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-secondary);
  padding: 10px 14px;
  background: var(--bg-panel);
  border-radius: 4px;
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
  animation: slideInUp 0.3s ease;
}

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

.trade-tag {
  font-size: 10px;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 3px;
}

.trade-tag.close {
  background: rgba(255, 255, 255, 0.06);
  color: var(--text-secondary);
}

.trade-symbol {
  font-weight: 600;
  color: var(--text-primary);
}

.trade-dir {
  font-weight: 700;
  font-size: 11px;
  padding: 1px 6px;
  border-radius: 3px;
}

.trade-dir.buy {
  background: var(--green-dim);
  color: var(--green);
}

.trade-dir.sell {
  background: var(--red-dim);
  color: var(--red);
}

.trade-lots {
  color: var(--text-primary);
}

.trade-label {
  color: var(--text-dim);
}

.trade-val {
  color: var(--text-primary);
  font-weight: 500;
}

.trade-profit {
  color: var(--green);
  font-weight: 700;
}

/* ===== PROOF GALLERY ===== */
.proof-gallery-section {
  margin-top: 20px;
}

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

.proof-card {
  background: var(--bg-panel);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: border-color 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
  cursor: pointer;
}

.proof-card:hover {
  border-color: rgba(29, 190, 112, 0.3);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.proof-card img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: contain;
  background: #1a1d23;
  border-radius: 0;
}

/* ===== LIGHTBOX ===== */
.lightbox-overlay {
  display: none;
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: rgba(0, 0, 0, 0.92);
  z-index: 10000;
  justify-content: center;
  align-items: center;
  cursor: zoom-out;
}

.lightbox-overlay.active {
  display: flex;
}

.lightbox-overlay img {
  max-width: 92vw;
  max-height: 90vh;
  object-fit: contain;
  border-radius: 8px;
  box-shadow: 0 0 40px rgba(0, 0, 0, 0.8);
}

.lightbox-close {
  position: fixed;
  top: 16px; right: 20px;
  font-size: 28px;
  color: #fff;
  cursor: pointer;
  z-index: 10001;
  width: 40px; height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  border: none;
  transition: background 0.2s;
}

.lightbox-close:hover {
  background: rgba(255, 255, 255, 0.2);
}

/* ===== FLOATING COUNTDOWN TIMER ===== */
.float-timer {
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 999;
  max-width: calc(100vw - 40px);
  animation: floatTimerIn 0.6s ease-out;
}

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

.float-timer-inner {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  border-radius: 100px;
  background: rgba(22, 19, 36, 0.85);
  -webkit-backdrop-filter: blur(15px);
  backdrop-filter: blur(15px);
  border: 1px solid rgba(230, 176, 80, 0.45);
  box-shadow: 0 0 18px rgba(230, 176, 80, 0.18), 0 8px 32px rgba(0, 0, 0, 0.5);
  cursor: default;
  transition: all 0.35s ease;
  white-space: nowrap;
}

.float-timer-icon {
  font-size: 15px;
  line-height: 1;
  animation: timerBreathe 1s ease-in-out infinite;
}

@keyframes timerBreathe {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.55; transform: scale(0.88); }
}

.float-timer-text {
  font-size: 12px;
  color: var(--text-secondary);
  letter-spacing: 0.01em;
}

.float-timer-count {
  font-family: var(--font-mono);
  font-size: 15px;
  font-weight: 700;
  color: #E6B050;
  letter-spacing: 0.05em;
  min-width: 44px;
  text-align: center;
  animation: timerBreathe 1s ease-in-out infinite;
}

/* Done state: becomes gold CTA button */
.float-timer.done .float-timer-inner {
  background: linear-gradient(135deg, rgba(230, 176, 80, 0.95), rgba(200, 140, 40, 0.95));
  border-color: #E6B050;
  cursor: pointer;
  box-shadow: 0 0 28px rgba(230, 176, 80, 0.45), 0 8px 32px rgba(0, 0, 0, 0.5);
  animation: goldPulse 1.6s ease-in-out infinite;
}

@keyframes goldPulse {
  0%, 100% { box-shadow: 0 0 28px rgba(230, 176, 80, 0.45), 0 8px 32px rgba(0, 0, 0, 0.5); }
  50% { box-shadow: 0 0 44px rgba(230, 176, 80, 0.75), 0 8px 32px rgba(0, 0, 0, 0.5); }
}

.float-timer.done .float-timer-icon {
  animation: none;
}

.float-timer.done .float-timer-text {
  color: #1a1206;
  font-weight: 700;
  font-size: 13px;
}

.float-timer.done .float-timer-count {
  display: none;
}

/* ===== UNLOCK MODAL ===== */
.modal-content-unlock {
  max-width: 460px;
  text-align: center;
  border-color: rgba(230, 176, 80, 0.4);
  box-shadow: 0 0 60px rgba(230, 176, 80, 0.15);
}

.unlock-badge {
  font-size: 52px;
  line-height: 1;
  margin-bottom: 16px;
  animation: unlockPop 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes unlockPop {
  0% { opacity: 0; transform: scale(0.3); }
  100% { opacity: 1; transform: scale(1); }
}

.unlock-title {
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 16px;
  line-height: 1.5;
}

.unlock-title-highlight {
  background: linear-gradient(135deg, #E6B050, #ffd97a);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.unlock-desc {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 24px;
}

.unlock-input-wrap {
  margin-bottom: 16px;
}

.unlock-input {
  width: 100%;
  padding: 14px 16px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  color: var(--text-primary);
  font-size: 15px;
  font-family: var(--font-mono);
  text-align: center;
  outline: none;
  transition: border-color 0.2s;
  box-sizing: border-box;
  -webkit-appearance: none;
}

.unlock-input:focus {
  border-color: #E6B050;
  box-shadow: 0 0 0 3px rgba(230, 176, 80, 0.15);
}

.unlock-input::placeholder {
  color: var(--text-dim);
  font-family: var(--font-sans);
}

.btn-unlock {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 16px;
  background: linear-gradient(135deg, #E6B050, #c88c28);
  color: #1a1206;
  font-weight: 700;
  font-size: 15px;
  border: none;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all 0.2s;
  -webkit-tap-highlight-color: transparent;
}

.btn-unlock:active {
  transform: scale(0.97);
}

.btn-unlock .btn-icon {
  font-size: 16px;
}

.unlock-note {
  font-size: 12px;
  color: var(--text-dim);
  margin-top: 16px;
}

@media (max-width: 768px) {
  .float-timer {
    top: 12px;
    right: 12px;
    max-width: calc(100vw - 24px);
  }

  .float-timer-inner {
    padding: 8px 12px;
    gap: 6px;
  }

  .float-timer-text {
    font-size: 10px;
    max-width: 150px;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .float-timer-count {
    font-size: 13px;
    min-width: 38px;
  }

  .float-timer.done .float-timer-text {
    font-size: 11px;
    max-width: 200px;
  }

  .unlock-title {
    font-size: 19px;
  }
}

/* ===== CTA SECTION ===== */
.cta-section {
  border-top: 1px solid var(--border-subtle);
}

.cta-card {
  max-width: 600px;
  margin: 0 auto;
  text-align: center;
  background: var(--bg-panel);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 48px 32px;
}

.cta-title {
  font-size: 24px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 12px;
}

.cta-desc {
  font-size: 14px;
  color: var(--text-secondary);
  margin-bottom: 28px;
}

.cta-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 16px 36px;
  font-family: var(--font-sans);
  font-size: 15px;
  font-weight: 700;
  color: #000;
  background: var(--gold);
  border: none;
  border-radius: var(--radius);
  cursor: pointer;
  transition: all 0.2s;
  -webkit-tap-highlight-color: transparent;
  letter-spacing: 0.3px;
}

.cta-btn:hover {
  background: #ffc61a;
  box-shadow: 0 0 24px rgba(255, 184, 0, 0.3);
}

.cta-btn-icon {
  font-size: 18px;
}

/* ===== FOOTER ===== */
.site-footer {
  border-top: 1px solid var(--border-subtle);
  padding: 28px 20px;
  text-align: center;
}

.footer-inner p {
  font-size: 12px;
  color: var(--text-dim);
  margin-bottom: 8px;
}

.footer-disclaimer {
  font-size: 11px;
  color: var(--text-dim);
  max-width: 600px;
  margin: 0 auto;
  line-height: 1.5;
  opacity: 0.7;
}

/* ===== FLOATING CTA ===== */
.floating-cta {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 100;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 12px 20px;
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 700;
  color: #000;
  background: var(--gold);
  border: none;
  border-radius: var(--radius);
  cursor: pointer;
  box-shadow: 0 4px 20px rgba(255, 184, 0, 0.25);
  transition: opacity 0.3s, transform 0.2s;
  -webkit-tap-highlight-color: transparent;
}

.floating-cta:hover {
  transform: translateY(-2px);
}

/* ===== MODALS ===== */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.8);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  padding: 20px;
}

/* Loading Modal */
.modal-loading-content {
  text-align: center;
  width: 100%;
  max-width: 400px;
}

.loading-scanner {
  width: 200px;
  height: 200px;
  margin: 0 auto 28px;
  border: 1px solid rgba(29, 190, 112, 0.2);
  border-radius: var(--radius-lg);
  position: relative;
  overflow: hidden;
  background: rgba(29, 190, 112, 0.03);
}

.scanner-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(29, 190, 112, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(29, 190, 112, 0.08) 1px, transparent 1px);
  background-size: 20px 20px;
}

.scanner-beam {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, transparent, var(--green), transparent);
  animation: scanBeam 2s ease-in-out infinite;
  box-shadow: 0 0 20px rgba(29, 190, 112, 0.5);
}

@keyframes scanBeam {
  0% { top: 0; }
  50% { top: calc(100% - 3px); }
  100% { top: 0; }
}

.loading-text {
  margin-bottom: 20px;
}

.loading-title {
  display: block;
  font-size: 14px;
  color: var(--text-primary);
  margin-bottom: 8px;
}

.loading-countdown {
  font-family: var(--font-mono);
  font-size: 28px;
  font-weight: 700;
  color: var(--green);
}

.loading-progress {
  height: 3px;
  background: rgba(255, 255, 255, 0.06);
  border-radius: 2px;
  overflow: hidden;
}

.loading-progress-bar {
  height: 100%;
  background: var(--green);
  border-radius: 2px;
  width: 0%;
  transition: width 0.3s ease;
  box-shadow: 0 0 8px rgba(29, 190, 112, 0.4);
}

/* Register Modal */
.modal-register-content {
  background: var(--bg-panel);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 36px 28px;
  width: 100%;
  max-width: 440px;
  position: relative;
  animation: fadeInUp 0.4s ease;
}

.modal-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  color: var(--text-dim);
  background: transparent;
  border: 1px solid var(--border-subtle);
  border-radius: 4px;
  cursor: pointer;
  transition: color 0.2s;
  -webkit-tap-highlight-color: transparent;
}

.modal-close:hover { color: var(--text-primary); }

.register-header {
  text-align: center;
  margin-bottom: 20px;
}

.register-emoji {
  font-size: 36px;
  display: block;
  margin-bottom: 12px;
}

.register-title {
  font-size: 18px;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.4;
}

.register-benefit {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  background: var(--gold-dim);
  border: 1px solid rgba(255, 184, 0, 0.15);
  border-radius: var(--radius);
  margin-bottom: 24px;
  font-size: 13px;
  color: var(--text-primary);
}

.benefit-badge {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 700;
  padding: 3px 8px;
  background: var(--gold);
  color: #000;
  border-radius: 3px;
  letter-spacing: 1px;
  flex-shrink: 0;
}

.register-form {
  margin-bottom: 16px;
}

.form-group {
  margin-bottom: 16px;
}

.form-label {
  display: block;
  font-size: 12px;
  font-weight: 500;
  color: var(--text-secondary);
  margin-bottom: 8px;
}

.form-input {
  width: 100%;
  padding: 12px 14px;
  font-family: var(--font-sans);
  font-size: 14px;
  color: var(--text-primary);
  background: var(--bg-primary);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius);
  outline: none;
  transition: border-color 0.2s;
  -webkit-appearance: none;
}

.form-input:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 2px rgba(255, 184, 0, 0.1);
}

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

.register-submit-btn {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 20px;
  font-family: var(--font-sans);
  font-size: 14px;
  font-weight: 700;
  color: #000;
  background: var(--green);
  border: none;
  border-radius: var(--radius);
  cursor: pointer;
  transition: all 0.2s;
  -webkit-tap-highlight-color: transparent;
}

.register-submit-btn:hover {
  background: #22d47e;
  box-shadow: 0 0 16px rgba(29, 190, 112, 0.3);
}

.register-note {
  text-align: center;
  font-size: 11px;
  color: var(--text-dim);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
  .section-container {
    padding: 56px 16px;
  }

  .section-title {
    font-size: 22px;
  }

  .hero-title {
    font-size: 24px;
  }

  .hero-content {
    padding: 40px 16px 20px;
  }

  .chart-container {
    height: 280px;
  }

  .status-bar-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }

  .notification-pill {
    font-size: 11px;
    padding: 6px 14px;
    margin-top: 12px;
  }

  .tv-mini-widget-wrap {
    margin-left: 0;
  }

  .lang-toggle {
    margin-left: 0;
  }

  .strategy-grid {
    grid-template-columns: 1fr;
  }

  .results-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .brokers-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .stats-dashboard {
    grid-template-columns: 1fr;
  }

  .stat-big-value {
    font-size: 24px;
  }

  .cta-card {
    padding: 32px 20px;
  }

  .cta-title {
    font-size: 20px;
  }

  .floating-cta {
    bottom: 16px;
    right: 16px;
    padding: 10px 16px;
    font-size: 12px;
  }

  .modal-register-content {
    padding: 28px 20px;
  }

  .trade-item {
    font-size: 11px;
    padding: 8px 10px;
  }
}

@media (max-width: 480px) {
  .hero-title {
    font-size: 20px;
  }

  .brokers-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .results-grid {
    grid-template-columns: 1fr 1fr;
  }

  .price-value {
    font-size: 18px;
  }

  .status-tags {
    gap: 6px;
  }

  .status-tag {
    font-size: 10px;
    padding: 3px 6px;
  }

  .proof-gallery {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .proof-card img {
    height: auto;
  }
}

/* ===== SCROLLBAR ===== */
::-webkit-scrollbar {
  width: 4px;
}
::-webkit-scrollbar-track {
  background: transparent;
}
::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 2px;
}

/* ===== iOS TOUCH OPTIMIZATIONS ===== */
@media (hover: none) and (pointer: coarse) {
  .strategy-card-inner {
    min-height: 44px;
  }
  .capital-slider::-webkit-slider-thumb {
    width: 28px;
    height: 28px;
    margin-top: -11px;
  }
  .capital-slider::-moz-range-thumb {
    width: 28px;
    height: 28px;
  }
  .start-backtest-btn {
    min-height: 50px;
  }
  .cta-btn {
    min-height: 50px;
  }
  .broker-card {
    min-height: 80px;
  }
}
