/* Ensure hidden attribute always works (override any display rules) */
[hidden] { display: none !important; }

/* ============================================
   CoinAI Quant — Mobile-First Stylesheet
   ============================================ */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg-primary: #0a0a0f;
  --bg-secondary: #12121a;
  --bg-card: #181826;
  --bg-elevated: #1e1e2e;
  --accent: #2962ff;
  --accent-hover: #1e52e0;
  --accent-light: #5b8def;
  --mint: #00d4aa;
  --mint-dark: #00b894;
  --text: #ffffff;
  --text-secondary: #8a8a9a;
  --text-muted: #5a5a6a;
  --border: rgba(255,255,255,0.08);
  --border-hover: rgba(255,255,255,0.14);
  --danger: #ff4757;
  --warning: #ffa502;
  --success: #00d4aa;
  --gradient: linear-gradient(135deg, #2962ff, #00d4aa);
  --gradient-soft: linear-gradient(135deg, rgba(41,98,255,0.15), rgba(0,212,170,0.15));
  --shadow-glow: 0 0 40px rgba(41,98,255,0.25);
  --shadow-card: 0 4px 24px rgba(0,0,0,0.4);
  --radius: 12px;
  --radius-sm: 8px;
  --radius-lg: 16px;
  --safe-bottom: env(safe-area-inset-bottom, 0px);
  --safe-top: env(safe-area-inset-top, 0px);
}

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  font-family: 'Inter', -apple-system, "PingFang SC", "Microsoft YaHei", sans-serif;
  background: var(--bg-primary);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  padding-bottom: calc(76px + var(--safe-bottom));
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { border: none; background: none; cursor: pointer; font-family: inherit; color: inherit; }
ul { list-style: none; }

.mono { font-family: 'JetBrains Mono', monospace; }

.container { width: 100%; max-width: 480px; margin: 0 auto; padding: 0 16px; }

/* ============ GLASS CARD ============ */
.glass-card {
  background: linear-gradient(145deg, rgba(24,24,38,0.9), rgba(18,18,26,0.85));
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-card);
}

/* ============ BUTTONS (mobile touch-optimized) ============ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 22px;
  font-size: 15px;
  font-weight: 600;
  border-radius: var(--radius);
  transition: transform 0.15s, box-shadow 0.2s, background 0.2s;
  white-space: nowrap;
  min-height: 48px;
  -webkit-tap-highlight-color: transparent;
  user-select: none;
}
.btn:active { transform: scale(0.97); }

.btn-primary {
  background: var(--gradient);
  color: #fff;
  box-shadow: 0 4px 20px rgba(41,98,255,0.35);
}
.btn-primary:active { box-shadow: 0 2px 10px rgba(41,98,255,0.3); }

.btn-outline {
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--border-hover);
  color: var(--text);
}
.btn-outline:active { background: rgba(255,255,255,0.08); }

.btn-ghost { color: var(--text-secondary); padding: 10px 16px; min-height: 40px; }
.btn-ghost:active { color: var(--text); }

.btn-lg { padding: 16px 28px; font-size: 16px; min-height: 52px; width: 100%; }
.btn-block { width: 100%; }

/* ============ NAVBAR (mobile) ============ */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: rgba(10,10,15,0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s, background 0.3s;
  padding-top: var(--safe-top);
}
.navbar.scrolled {
  border-bottom-color: var(--border);
  background: rgba(10,10,15,0.95);
}
.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 56px;
  padding: 0 16px;
  max-width: 480px;
  margin: 0 auto;
}
.nav-logo {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 800;
  font-size: 17px;
  letter-spacing: -0.3px;
}
.nav-logo-img { width: 30px; height: 30px; border-radius: 6px; }
.logo-text span {
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.nav-right { display: flex; align-items: center; gap: 6px; }

/* Language selector (compact) */
.lang-select { position: relative; }
.lang-select-trigger {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  height: 34px;
  padding: 0 10px;
  background: rgba(255,255,255,0.06);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text-secondary);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.3px;
  -webkit-tap-highlight-color: transparent;
  transition: border-color 0.2s, color 0.2s, background 0.2s;
}
.lang-select-trigger:active { background: rgba(255,255,255,0.1); }
.lang-select-trigger svg { flex-shrink: 0; }
.lang-select-menu {
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  min-width: 150px;
  background: #181826;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  box-shadow: 0 16px 40px rgba(0,0,0,0.5);
  padding: 6px;
  list-style: none;
  margin: 0;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px);
  transition: opacity 0.18s, transform 0.18s, visibility 0.18s;
  z-index: 200;
  max-height: 60vh;
  overflow-y: auto;
}
.lang-select.open .lang-select-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.lang-select-menu li {
  padding: 10px 12px;
  font-size: 14px;
  color: var(--text-secondary);
  border-radius: 6px;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transition: background 0.15s, color 0.15s;
}
.lang-select-menu li:active { background: rgba(255,255,255,0.08); }
.lang-select-menu li.active {
  background: rgba(41,98,255,0.18);
  color: var(--text);
  font-weight: 600;
}
.lang-select-menu li.active::after {
  content: '✓';
  float: right;
  color: var(--accent-2);
  font-weight: 700;
}

/* Hamburger */
.nav-toggle {
  display: flex;
  flex-direction: column;
  gap: 5px;
  width: 40px; height: 40px;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-sm);
  -webkit-tap-highlight-color: transparent;
}
.nav-toggle span {
  display: block;
  width: 22px; height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: transform 0.3s, opacity 0.3s;
}
.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Slide-down mobile menu */
.nav-menu {
  position: fixed;
  top: calc(56px + var(--safe-top));
  left: 0; right: 0;
  background: rgba(10,10,15,0.98);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  padding: 16px;
  transform: translateY(-110%);
  opacity: 0;
  transition: transform 0.3s ease, opacity 0.3s;
  z-index: 99;
  max-width: 480px;
  margin: 0 auto;
}
.nav-menu.open { transform: translateY(0); opacity: 1; }
.nav-menu-link {
  display: block;
  padding: 14px 8px;
  font-size: 16px;
  font-weight: 500;
  color: var(--text-secondary);
  border-bottom: 1px solid var(--border);
  -webkit-tap-highlight-color: transparent;
}
.nav-menu-link:last-of-type { border-bottom: none; }
.nav-menu-link:active { color: var(--text); }
.nav-menu-lang {
  padding: 14px 8px 6px;
  border-bottom: 1px solid var(--border);
}
.nav-menu-lang-label {
  display: block;
  font-size: 12px;
  color: var(--text-muted);
  margin-bottom: 10px;
  text-transform: uppercase;
  letter-spacing: 0.8px;
}
.lang-switcher {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.lang-btn {
  padding: 7px 11px;
  background: rgba(255,255,255,0.05);
  border: 1px solid var(--border);
  border-radius: 6px;
  color: var(--text-secondary);
  font-size: 12px;
  font-weight: 600;
  -webkit-tap-highlight-color: transparent;
  transition: background 0.15s, border-color 0.15s, color 0.15s;
}
.lang-btn:active { background: rgba(255,255,255,0.1); }
.lang-btn.active {
  background: rgba(41,98,255,0.18);
  border-color: var(--accent);
  color: var(--text);
}
.nav-menu-actions { display: flex; flex-direction: column; gap: 10px; margin-top: 16px; }
.nav-backdrop {
  position: fixed; inset: 0;
  background: rgba(0,0,0,0.5);
  z-index: 98;
  opacity: 0; pointer-events: none;
  transition: opacity 0.3s;
}
.nav-backdrop.open { opacity: 1; pointer-events: auto; }

/* ============ HERO ============ */
.hero {
  position: relative;
  padding: calc(72px + var(--safe-top)) 0 32px;
  overflow: hidden;
  min-height: auto;
}
.hero-bg { position: absolute; inset: 0; z-index: 0; }
.hero-bg-img {
  width: 100%; height: 100%;
  object-fit: cover;
  opacity: 0.25;
}
.hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(10,10,15,0.3) 0%, rgba(10,10,15,0.7) 60%, var(--bg-primary) 100%);
}
.hero-inner { position: relative; z-index: 1; display: flex; flex-direction: column; gap: 20px; }

/* Hero video - FIRST visual element */
.hero-video-card {
  padding: 10px;
  position: relative;
  overflow: hidden;
}
.hero-video-card::before {
  content: '';
  position: absolute; inset: -1px;
  background: var(--gradient);
  border-radius: var(--radius);
  z-index: -1;
  opacity: 0.5;
}
.hero-video-frame {
  position: relative;
  border-radius: var(--radius-sm);
  overflow: hidden;
  aspect-ratio: 16/9;
  background: #000;
}
.hero-video { width: 100%; height: 100%; object-fit: cover; display: block; }
.hero-video-scanline {
  position: absolute; inset: 0;
  background: repeating-linear-gradient(0deg, transparent, transparent 2px, rgba(0,212,170,0.02) 2px, rgba(0,212,170,0.02) 4px);
  pointer-events: none;
}
.hero-video-badge {
  position: absolute;
  top: 10px; left: 10px;
  display: flex; align-items: center; gap: 6px;
  padding: 5px 10px;
  background: rgba(0,0,0,0.6);
  backdrop-filter: blur(8px);
  border-radius: 20px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.3px;
  border: 1px solid var(--border);
}
.hero-video-badge img { width: 14px; height: 14px; }
.hero-video-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 6px 4px;
}
.hero-video-meta-left { display: flex; align-items: center; gap: 10px; }
.hero-video-live {
  display: inline-flex; align-items: center; gap: 5px;
  font-size: 11px; font-weight: 700;
  color: var(--danger);
  letter-spacing: 0.5px;
}
.hero-video-label { font-size: 13px; font-weight: 600; }

.live-dot {
  width: 7px; height: 7px;
  background: var(--danger);
  border-radius: 50%;
  display: inline-block;
  animation: pulse 1.5s infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; box-shadow: 0 0 0 0 rgba(255,71,87,0.5); }
  50% { opacity: 0.7; box-shadow: 0 0 0 5px rgba(255,71,87,0); }
}

.hero-content { display: flex; flex-direction: column; gap: 14px; }
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  background: var(--gradient-soft);
  border: 1px solid rgba(41,98,255,0.3);
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
  color: var(--accent-light);
  align-self: flex-start;
}
.hero-title {
  font-size: 28px;
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -0.5px;
}
.hero-subtitle { font-size: 14px; color: var(--text-secondary); line-height: 1.65; }
.hero-cta { display: flex; flex-direction: column; gap: 10px; width: 100%; }
.hero-note { font-size: 12px; color: var(--text-muted); text-align: center; }

/* Chart card */
.hero-chart-container { padding: 14px; }
.chart-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
  flex-wrap: wrap;
  gap: 6px;
}
.chart-toolbar-left { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.chart-pair { font-size: 12px; font-weight: 700; display: flex; align-items: center; gap: 5px; }
.chart-price { font-size: 16px; font-weight: 700; }
.chart-change { font-size: 12px; font-weight: 600; padding: 2px 7px; border-radius: 4px; }
.chart-change.positive { color: var(--mint); background: rgba(0,212,170,0.12); }
.chart-change.negative { color: var(--danger); background: rgba(255,71,87,0.12); }
.chart-toolbar-right { display: flex; gap: 4px; }
.chart-tf {
  padding: 3px 9px;
  font-size: 11px;
  font-weight: 600;
  color: var(--text-muted);
  border-radius: 4px;
  cursor: pointer;
}
.chart-tf.active { color: var(--text); background: rgba(255,255,255,0.08); }
.live-chart-canvas { width: 100%; height: 140px; display: block; }
.chart-status {
  display: flex; align-items: center; gap: 6px;
  margin-top: 8px;
  font-size: 11px; color: var(--text-muted);
}
.status-dot {
  width: 6px; height: 6px;
  background: var(--mint);
  border-radius: 50%;
  animation: pulse 2s infinite;
}

/* ============ TICKER ============ */
.ticker-section {
  background: var(--bg-secondary);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  overflow: hidden;
  padding: 10px 0;
}
.ticker-bar {
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
}
.ticker-label {
  position: relative;
  z-index: 3;
  flex-shrink: 0;
  padding: 5px 12px 5px 16px;
  margin-right: 14px;
  background: var(--danger);
  color: #fff;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.8px;
  border-radius: 0 4px 4px 0;
  display: flex;
  align-items: center;
  gap: 5px;
  box-shadow: 6px 0 12px 6px var(--bg-secondary);
}
/* Fade mask to the right of LIVE so items disappear before reaching it */
.ticker-label::after {
  content: '';
  position: absolute;
  top: 0;
  right: -28px;
  width: 28px;
  height: 100%;
  background: linear-gradient(90deg, var(--bg-secondary) 0%, rgba(18,18,26,0) 100%);
  pointer-events: none;
}
.ticker-track {
  display: flex;
  gap: 24px;
  animation: ticker-scroll 30s linear infinite;
  white-space: nowrap;
  position: relative;
  z-index: 1;
  padding-right: 24px;
}
.ticker-track:hover { animation-play-state: paused; }
@keyframes ticker-scroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}
.ticker-item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
}
.ticker-symbol { font-weight: 700; color: var(--text); }
.ticker-price { color: var(--text-secondary); font-family: 'JetBrains Mono', monospace; }
.ticker-change { font-weight: 600; font-family: 'JetBrains Mono', monospace; }
.ticker-change.up { color: var(--mint); }
.ticker-change.down { color: var(--danger); }

/* ============ SECTION COMMON ============ */
section { padding: 40px 0; }
.section-head { text-align: center; margin-bottom: 24px; }
.section-title {
  font-size: 24px;
  font-weight: 800;
  line-height: 1.25;
  letter-spacing: -0.3px;
  margin-bottom: 10px;
}
.section-subtitle { font-size: 14px; color: var(--text-secondary); line-height: 1.6; }
.feature-tag {
  display: inline-block;
  padding: 4px 12px;
  background: var(--gradient-soft);
  border: 1px solid rgba(41,98,255,0.25);
  border-radius: 20px;
  font-size: 11px;
  font-weight: 700;
  color: var(--accent-light);
  letter-spacing: 0.5px;
  text-transform: uppercase;
  margin-bottom: 12px;
}

/* ============ AI APPLICATIONS (vertical list) ============ */
.applications-section { background: var(--bg-primary); }
.apps-list { display: flex; flex-direction: column; gap: 12px; }
.app-card {
  display: flex;
  gap: 14px;
  padding: 18px;
  align-items: flex-start;
  transition: transform 0.2s, border-color 0.2s;
}
.app-card:active { transform: scale(0.985); border-color: var(--border-hover); }
.app-icon {
  flex-shrink: 0;
  width: 44px; height: 44px;
  display: flex; align-items: center; justify-content: center;
  background: var(--gradient-soft);
  border: 1px solid rgba(41,98,255,0.2);
  border-radius: var(--radius-sm);
  color: var(--accent-light);
}
.app-icon svg { width: 22px; height: 22px; }
.app-body { flex: 1; min-width: 0; }
.app-title { font-size: 15px; font-weight: 700; margin-bottom: 5px; }
.app-desc { font-size: 13px; color: var(--text-secondary); line-height: 1.6; }

/* ============ FEATURES (single column, visual first) ============ */
.features { background: var(--bg-secondary); }
.feature-block {
  max-width: 480px;
  margin: 0 auto;
  padding: 0 16px 40px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.feature-block:last-child { padding-bottom: 0; }
.feature-visual { width: 100%; }
.feature-img {
  width: 100%;
  border-radius: var(--radius);
  border: 1px solid var(--border);
}
.feature-text { display: flex; flex-direction: column; gap: 12px; }
.feature-title { font-size: 22px; font-weight: 800; line-height: 1.25; letter-spacing: -0.3px; }
.feature-desc { font-size: 14px; color: var(--text-secondary); line-height: 1.65; }
.feature-list { display: flex; flex-direction: column; gap: 8px; }
.feature-list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 14px;
  color: var(--text);
  padding: 8px 0;
  border-bottom: 1px solid var(--border);
}
.feature-list li:last-child { border-bottom: none; }
.feature-list li::before {
  content: '✓';
  flex-shrink: 0;
  width: 20px; height: 20px;
  display: flex; align-items: center; justify-content: center;
  background: var(--gradient);
  border-radius: 50%;
  font-size: 11px;
  font-weight: 800;
  margin-top: 1px;
}

/* Mockups */
.feature-mockup { overflow: hidden; }
.mockup-header {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  background: rgba(0,0,0,0.3);
  border-bottom: 1px solid var(--border);
}
.mockup-dot { width: 9px; height: 9px; border-radius: 50%; }
.mockup-dot.red { background: #ff5f57; }
.mockup-dot.yellow { background: #febc2e; }
.mockup-dot.green { background: #28c840; }
.mockup-title { font-size: 11px; color: var(--text-muted); margin-left: 6px; }
.mockup-body { padding: 12px; }
.chart-svg { width: 100%; height: auto; }
.mockup-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-top: 10px;
}
.mockup-stats > div {
  background: rgba(255,255,255,0.03);
  padding: 8px 10px;
  border-radius: var(--radius-sm);
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.stat-label { font-size: 10px; color: var(--text-muted); }
.stat-value { font-size: 14px; font-weight: 700; }
.stat-value.up { color: var(--mint); }
.stat-value.down { color: var(--danger); }

.screener-body { padding: 0; }
.screener-row {
  display: grid;
  grid-template-columns: 1.2fr 1.4fr 1fr 1fr;
  gap: 6px;
  padding: 10px 14px;
  font-size: 12px;
  border-bottom: 1px solid var(--border);
  align-items: center;
}
.screener-row:last-child { border-bottom: none; }
.screener-header-row {
  font-size: 10px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  background: rgba(0,0,0,0.2);
}
.screener-row .up { color: var(--mint); font-weight: 600; }
.screener-row .down { color: var(--danger); font-weight: 600; }
.signal-buy, .signal-sell, .signal-hold {
  padding: 3px 8px;
  border-radius: 4px;
  font-size: 10px;
  font-weight: 700;
  text-align: center;
}
.signal-buy { color: var(--mint); background: rgba(0,212,170,0.12); }
.signal-sell { color: var(--danger); background: rgba(255,71,87,0.12); }
.signal-hold { color: var(--warning); background: rgba(255,165,2,0.12); }

/* ============ CASES (vertical list) ============ */
.cases-section { background: var(--bg-primary); }
.cases-list { display: flex; flex-direction: column; gap: 14px; }
.case-card { padding: 20px; position: relative; }
.case-rating { color: #ffc107; font-size: 14px; margin-bottom: 10px; letter-spacing: 2px; }
.case-text { font-size: 14px; line-height: 1.7; color: var(--text); margin-bottom: 16px; font-style: italic; }
.case-footer { display: flex; align-items: center; gap: 12px; }
.case-avatar {
  width: 42px; height: 42px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 14px; font-weight: 800; color: #fff;
  flex-shrink: 0;
}
.case-meta { flex: 1; min-width: 0; }
.case-name { font-size: 14px; font-weight: 700; }
.case-role { font-size: 12px; color: var(--text-muted); }
.case-stat {
  margin-top: 12px;
  padding: 10px 14px;
  background: var(--gradient-soft);
  border: 1px solid rgba(0,212,170,0.2);
  border-radius: var(--radius-sm);
  font-size: 13px;
  font-weight: 700;
  color: var(--mint);
  text-align: center;
}
.cases-disclaimer {
  margin-top: 16px;
  font-size: 11px;
  color: var(--text-muted);
  line-height: 1.6;
  text-align: center;
}

/* ============ VIDEO SECTION ============ */
.video-section { background: var(--bg-secondary); }
.video-section-head { text-align: center; margin-bottom: 20px; }
.video-card {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
  padding: 10px;
}
.video-frame {
  position: relative;
  border-radius: var(--radius-sm);
  overflow: hidden;
  aspect-ratio: 16/9;
  background: #000;
}
.demo-video { width: 100%; height: 100%; object-fit: cover; display: block; border: 0; }
iframe.demo-video { object-fit: initial; }
.video-scanline {
  position: absolute; inset: 0;
  background: repeating-linear-gradient(0deg, transparent, transparent 2px, rgba(0,212,170,0.02) 2px, rgba(0,212,170,0.02) 4px);
  pointer-events: none;
}
.video-live-badge {
  position: absolute;
  top: 10px; left: 10px;
  display: flex; align-items: center; gap: 6px;
  padding: 5px 10px;
  background: rgba(0,0,0,0.6);
  backdrop-filter: blur(8px);
  border-radius: 20px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.3px;
  border: 1px solid var(--border);
  color: var(--text);
}
.video-info {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 6px 2px;
  gap: 10px;
}
.video-info-title { font-size: 14px; font-weight: 700; }
.video-info-meta { display: flex; gap: 6px; font-size: 11px; color: var(--text-muted); flex-shrink: 0; }

/* ============ STATS ============ */
.stats-section { background: var(--bg-primary); text-align: center; }
.stats-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 20px;
}
.stat-card { padding: 18px 12px; text-align: center; }
.stat-number {
  font-size: 26px;
  font-weight: 800;
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 4px;
}
.stat-label { font-size: 12px; color: var(--text-secondary); line-height: 1.4; }

/* ============ PRICING ============ */
.pricing-section { background: var(--bg-secondary); }
.pricing-list { display: flex; flex-direction: column; gap: 14px; margin-top: 20px; }
.pricing-card {
  padding: 22px 20px;
  position: relative;
  display: flex;
  flex-direction: column;
}
.pricing-popular {
  border-color: rgba(41,98,255,0.4);
  box-shadow: 0 0 30px rgba(41,98,255,0.15), var(--shadow-card);
}
.pricing-badge {
  position: absolute;
  top: -1px; right: 16px;
  padding: 5px 12px;
  background: var(--gradient);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.5px;
  border-radius: 0 0 8px 8px;
}
.pricing-header { margin-bottom: 16px; }
.pricing-name { font-size: 16px; font-weight: 700; margin-bottom: 8px; }
.pricing-price { display: flex; align-items: baseline; gap: 2px; }
.pricing-currency { font-size: 18px; font-weight: 600; color: var(--text-secondary); }
.pricing-amount { font-size: 36px; font-weight: 800; letter-spacing: -1px; }
.pricing-period { font-size: 14px; color: var(--text-muted); }
.pricing-desc { font-size: 13px; color: var(--text-secondary); margin-top: 6px; }
.pricing-features { display: flex; flex-direction: column; gap: 8px; margin-bottom: 20px; flex: 1; }
.pricing-features li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 13px;
  color: var(--text-secondary);
}
.pricing-features .check {
  color: var(--mint);
  font-weight: 800;
  flex-shrink: 0;
}
.pricing-billing {
  text-align: center;
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 16px;
}

/* ============ CTA ============ */
.cta-section {
  background: var(--gradient-soft);
  text-align: center;
  padding: 40px 0;
}
.cta-title { font-size: 24px; font-weight: 800; margin-bottom: 10px; line-height: 1.25; }
.cta-desc { font-size: 14px; color: var(--text-secondary); margin-bottom: 20px; }

/* ============ FOOTER ============ */
.footer {
  background: var(--bg-secondary);
  border-top: 1px solid var(--border);
  padding: 32px 0 24px;
}
.footer-brand-row { margin-bottom: 20px; }
.footer-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 16px;
  margin-bottom: 20px;
}
.footer-heading {
  font-size: 12px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 10px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.footer-links { display: flex; flex-direction: column; gap: 7px; }
.footer-links a {
  font-size: 12px;
  color: var(--text-muted);
  transition: color 0.2s;
}
.footer-links a:active { color: var(--text); }
.footer-social {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin: 16px 0;
}
.social-link {
  width: 38px; height: 38px;
  display: flex; align-items: center; justify-content: center;
  background: rgba(255,255,255,0.05);
  border: 1px solid var(--border);
  border-radius: 50%;
  font-size: 12px;
  font-weight: 700;
  color: var(--text-secondary);
  transition: all 0.2s;
}
.social-link:active { background: var(--accent); color: #fff; border-color: var(--accent); }
.footer-disclaimer {
  font-size: 11px;
  color: var(--text-muted);
  line-height: 1.6;
  text-align: center;
  padding: 14px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  margin-bottom: 14px;
}
.footer-bottom {
  text-align: center;
  font-size: 11px;
  color: var(--text-muted);
}

/* ============ MOBILE STICKY CTA ============ */
.mobile-cta-bar {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  padding: 10px 16px calc(10px + var(--safe-bottom));
  background: rgba(10,10,15,0.95);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-top: 1px solid var(--border);
  z-index: 90;
  transform: translateY(100%);
  transition: transform 0.3s;
}
.mobile-cta-bar.visible { transform: translateY(0); }
.mobile-cta-bar .btn { margin: 0; }

/* ============ ANIMATIONS ============ */
.fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ============ SMALL PHONE ADJUSTMENTS (<=380px) ============ */
@media (max-width: 380px) {
  .hero-title { font-size: 24px; }
  .section-title { font-size: 21px; }
  .pricing-amount { font-size: 30px; }
  .stat-number { font-size: 22px; }
  .container { padding: 0 12px; }
  .app-card { padding: 14px; gap: 12px; }
  .case-card { padding: 16px; }
}

/* ============ LANDSCAPE / WIDER (still mobile-ish, up to 768) ============ */
@media (min-width: 481px) and (max-width: 768px) {
  .container, .nav-container, .feature-block, .nav-menu { max-width: 480px; }
}

/* ============ PROMO BANNER ============ */
.promo-banner {
  position: fixed;
  top: calc(56px + var(--safe-top));
  left: 0; right: 0;
  z-index: 99;
  background: linear-gradient(90deg, rgba(41,98,255,0.95), rgba(0,212,170,0.95));
  padding: 8px 12px;
  font-size: 12px;
}
.promo-banner-inner {
  max-width: 480px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 8px;
  color: #fff;
  font-weight: 500;
}
.promo-icon { font-size: 14px; flex-shrink: 0; }
.promo-text { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 11.5px; }
.promo-cta {
  flex-shrink: 0;
  background: rgba(255,255,255,0.2);
  padding: 4px 10px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 700;
  white-space: nowrap;
}
.promo-cta:active { background: rgba(255,255,255,0.3); }
/* Push hero down below promo banner */
.hero { padding-top: calc(112px + var(--safe-top)); }

/* ============ TRADER ANALYTICS PANEL ============ */
.trader-analytics {
  padding: 18px;
  margin-bottom: 20px;
}
.analytics-header { margin-bottom: 16px; }
.analytics-title { font-size: 16px; font-weight: 800; margin-bottom: 4px; }
.analytics-range { font-size: 11px; color: var(--text-muted); }

.analytics-kpis {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 18px;
}
.kpi-item {
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 12px;
}
.kpi-value {
  font-size: 22px;
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 4px;
}
.kpi-value.up { color: var(--mint); }
.kpi-value.down { color: var(--danger); }
.kpi-label { font-size: 11px; color: var(--text-secondary); }

.analytics-chart-block { margin-bottom: 18px; }
.analytics-chart-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
  gap: 8px;
}
.analytics-chart-title { font-size: 13px; font-weight: 700; }
.analytics-legend { display: flex; gap: 10px; font-size: 10px; color: var(--text-muted); }
.legend-item { display: inline-flex; align-items: center; gap: 4px; }
.legend-dot { width: 8px; height: 8px; border-radius: 2px; display: inline-block; }
.legend-dot.up { background: var(--mint); }
.legend-dot.down { background: var(--danger); }

.bar-chart {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 4px;
  height: 120px;
  padding: 0 4px;
  border-bottom: 1px solid var(--border);
}
.bar-col {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  height: 100%;
  justify-content: flex-end;
  min-width: 0;
}
.bar {
  width: 100%;
  max-width: 18px;
  border-radius: 3px 3px 0 0;
  min-height: 4px;
  animation: barGrow 1s ease-out;
}
.bar.up { background: linear-gradient(180deg, #00d4aa, rgba(0,212,170,0.4)); }
.bar.down { background: linear-gradient(180deg, #ff4757, rgba(255,71,87,0.4)); }
.bar-label { font-size: 9px; color: var(--text-muted); font-family: 'JetBrains Mono', monospace; }
@keyframes barGrow {
  from { transform: scaleY(0); transform-origin: bottom; }
  to { transform: scaleY(1); transform-origin: bottom; }
}

.analytics-breakdown { display: flex; flex-direction: column; gap: 12px; }
.breakdown-row {
  display: grid;
  grid-template-columns: 90px 1fr 42px;
  align-items: center;
  gap: 10px;
  font-size: 12px;
}
.breakdown-label { color: var(--text-secondary); }
.breakdown-bar {
  height: 6px;
  background: rgba(255,255,255,0.06);
  border-radius: 3px;
  overflow: hidden;
}
.breakdown-fill {
  height: 100%;
  border-radius: 3px;
  transition: width 1.2s ease;
}
.breakdown-fill.up { background: linear-gradient(90deg, #2962ff, #00d4aa); }
.breakdown-fill.mint { background: var(--mint); }
.breakdown-fill.down { background: var(--danger); }
.breakdown-value { font-size: 12px; color: var(--text); text-align: right; font-weight: 600; }

/* ============ CTA PROMO TAG ============ */
.cta-promo-tag {
  display: inline-block;
  padding: 6px 14px;
  background: rgba(0,212,170,0.15);
  border: 1px solid rgba(0,212,170,0.3);
  border-radius: 20px;
  font-size: 12px;
  font-weight: 700;
  color: var(--mint);
  margin-bottom: 14px;
}

/* ============ SIGNUP MODAL ============ */
.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: rgba(0,0,0,0.7);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: flex;
  align-items: flex-end;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
  padding: 0;
}
.modal-backdrop.open {
  opacity: 1;
  pointer-events: auto;
}
.modal {
  width: 100%;
  max-width: 480px;
  max-height: 92vh;
  overflow-y: auto;
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  padding: 24px 20px calc(24px + var(--safe-bottom));
  transform: translateY(100%);
  transition: transform 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
  position: relative;
  -webkit-overflow-scrolling: touch;
}
.modal-backdrop.open .modal { transform: translateY(0); }
@media (min-width: 600px) {
  .modal-backdrop { align-items: center; padding: 20px; }
  .modal { border-radius: var(--radius-lg); max-height: 88vh; }
}
.modal-close {
  position: absolute;
  top: 12px; right: 14px;
  width: 32px; height: 32px;
  display: flex; align-items: center; justify-content: center;
  font-size: 24px;
  line-height: 1;
  color: var(--text-muted);
  border-radius: 50%;
  z-index: 2;
}
.modal-close:active { color: var(--text); background: rgba(255,255,255,0.06); }

.modal-badge {
  display: inline-block;
  padding: 5px 12px;
  background: var(--gradient-soft);
  border: 1px solid rgba(0,212,170,0.3);
  border-radius: 20px;
  font-size: 11px;
  font-weight: 700;
  color: var(--mint);
  margin-bottom: 12px;
}
.modal-title { font-size: 22px; font-weight: 800; margin-bottom: 6px; line-height: 1.25; }
.modal-subtitle { font-size: 13px; color: var(--text-secondary); line-height: 1.6; margin-bottom: 20px; }

.form-field { margin-bottom: 14px; }
.form-label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 6px;
}
.form-input {
  width: 100%;
  padding: 13px 14px;
  font-size: 15px;
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text);
  font-family: inherit;
  transition: border-color 0.2s, background 0.2s;
  -webkit-appearance: none;
  appearance: none;
}
.form-input::placeholder { color: var(--text-muted); }
.form-input:focus {
  outline: none;
  border-color: var(--accent);
  background: rgba(41,98,255,0.06);
}
.form-input.invalid {
  border-color: var(--danger);
  background: rgba(255,71,87,0.06);
}
.form-error {
  display: none;
  font-size: 11px;
  color: var(--danger);
  margin-top: 5px;
}
.form-field.has-error .form-error { display: block; }

.form-check {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 12px;
  color: var(--text-secondary);
  line-height: 1.5;
  margin-bottom: 18px;
  cursor: pointer;
}
.form-check input {
  margin-top: 3px;
  width: 16px; height: 16px;
  flex-shrink: 0;
  accent-color: var(--accent);
}
.form-check.has-error { color: var(--danger); }

.modal-foot {
  text-align: center;
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 16px;
}
.modal-link { color: var(--accent-light); font-weight: 600; }

.btn.loading .btn-text { opacity: 0.6; }
.btn.loading::after {
  content: '';
  position: absolute;
  width: 18px; height: 18px;
  border: 2px solid rgba(255,255,255,0.3);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}
.btn { position: relative; }
@keyframes spin { to { transform: rotate(360deg); } }

/* Success step */
.modal-success { text-align: center; padding-top: 10px; }
.success-check {
  width: 80px; height: 80px;
  margin: 0 auto 16px;
  display: flex; align-items: center; justify-content: center;
  background: rgba(0,212,170,0.1);
  border-radius: 50%;
  animation: successPop 0.5s cubic-bezier(0.2, 1.5, 0.4, 1);
}
.success-check svg circle { stroke-dasharray: 151; stroke-dashoffset: 151; animation: drawCircle 0.6s ease forwards; }
.success-check svg path { stroke-dasharray: 48; stroke-dashoffset: 48; animation: drawCheck 0.4s ease 0.5s forwards; }
@keyframes successPop { 0% { transform: scale(0); } 100% { transform: scale(1); } }
@keyframes drawCircle { to { stroke-dashoffset: 0; } }
@keyframes drawCheck { to { stroke-dashoffset: 0; } }

.success-benefits {
  text-align: left;
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 14px 16px;
  margin: 18px 0;
}
.benefit-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  color: var(--text);
  padding: 6px 0;
}
.benefit-item span:first-child {
  color: var(--mint);
  font-weight: 800;
  flex-shrink: 0;
}
