/*
Theme Name: SAP-Algo Trading EA
Theme URI: https://sapalgo.com
Author: SAP-Algo Technologies
Author URI: https://sapalgo.com
Description: Professional algorithmic trading EA landing page theme with cyberpunk design, live charts, profit calculator, and full feature showcase. Elementor compatible.
Version: 5.07
License: GPL v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: sapalgo
*/

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&family=JetBrains+Mono:wght@400;500;600;700&family=Orbitron:wght@400;500;600;700;800;900&family=Rajdhani:wght@400;500;600;700&display=swap');

/* ========================================
   CSS VARIABLES - THEME SYSTEM
   ======================================== */

:root {
  /* Font Families */
  --font-primary: 'Inter', system-ui, -apple-system, sans-serif;
  --font-mono: 'JetBrains Mono', 'Courier New', monospace;
  --font-display: 'Orbitron', 'Rajdhani', sans-serif;
  --font-heading: 'Rajdhani', 'Orbitron', sans-serif;
  
  /* Cyberpunk Theme (Default) */
  --cyber-bg-primary: #030508;
  --cyber-bg-secondary: #0a0f1a;
  --cyber-text-primary: #ffffff;
  --cyber-text-secondary: #e2e8f0;
  --cyber-text-muted: #9ca3af;
  --cyber-accent-cyan: #00f2ff;
  --cyber-accent-purple: #7000ff;
  --cyber-accent-pink: #ff00a0;
  --cyber-accent-green: #00ff88;
  --cyber-accent-yellow: #ffcc00;
  --cyber-accent-red: #ff3366;
  --cyber-bull: #26a69a;
  --cyber-bear: #ef5350;
  
  /* Dark Theme */
  --dark-bg-primary: #0a0f1a;
  --dark-bg-secondary: #111827;
  --dark-text-primary: #f1f5f9;
  --dark-text-secondary: #cbd5e1;
  --dark-text-muted: #94a3b8;
  
  /* Light Theme */
  --light-bg-primary: #f8fafc;
  --light-bg-secondary: #ffffff;
  --light-text-primary: #0f172a;
  --light-text-secondary: #1e293b;
  --light-text-muted: #64748b;
}

/* ========================================
   TAILWIND FALLBACK - BASE STYLES
   ======================================== */

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

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

body {
  font-family: var(--font-primary);
  line-height: 1.6;
  overflow-x: hidden;
  min-height: 100vh;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Enhanced Typography */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: 0.02em;
}

h1 { font-size: clamp(2rem, 5vw, 4.5rem); }
h2 { font-size: clamp(1.75rem, 4vw, 3.5rem); }
h3 { font-size: clamp(1.5rem, 3vw, 2.5rem); }
h4 { font-size: clamp(1.25rem, 2vw, 1.75rem); }
h5 { font-size: clamp(1.1rem, 1.5vw, 1.25rem); }
h6 { font-size: clamp(1rem, 1vw, 1.1rem); }

p {
  font-family: var(--font-primary);
  line-height: 1.7;
}

.font-display {
  font-family: var(--font-display) !important;
}

.font-mono {
  font-family: var(--font-mono) !important;
}

.font-heading {
  font-family: var(--font-heading) !important;
}

/* Container */
.container {
  width: 100%;
  max-width: 1280px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 1rem;
  padding-right: 1rem;
}

@media (min-width: 640px) {
  .container {
    padding-left: 1.5rem;
    padding-right: 1.5rem;
  }
}

@media (min-width: 1024px) {
  .container {
    padding-left: 2rem;
    padding-right: 2rem;
  }
}

/* Grid Utilities */
.grid { display: grid; }
.grid-cols-1 { grid-template-columns: repeat(1, minmax(0, 1fr)); }
.grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }

@media (min-width: 768px) {
  .md\:grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .md\:grid-cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

@media (min-width: 1024px) {
  .lg\:flex { display: flex; }
  .lg\:hidden { display: none; }
  .lg\:grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .lg\:grid-cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

.gap-4 { gap: 1rem; }
.gap-6 { gap: 1.5rem; }
.gap-8 { gap: 2rem; }
.gap-12 { gap: 3rem; }
.gap-16 { gap: 4rem; }

/* Flex Utilities */
.flex { display: flex; }
.inline-flex { display: inline-flex; }
.hidden { display: none; }

.flex-col { flex-direction: column; }
.flex-wrap { flex-wrap: wrap; }
.items-start { align-items: flex-start; }
.items-center { align-items: center; }
.items-end { align-items: flex-end; }
.justify-start { justify-content: flex-start; }
.justify-center { justify-content: center; }
.justify-between { justify-content: space-between; }
.justify-around { justify-content: space-around; }

.flex-1 { flex: 1 1 0%; }
.flex-shrink-0 { flex-shrink: 0; }

/* Spacing */
.space-y-3 > * + * { margin-top: 0.75rem; }
.space-y-4 > * + * { margin-top: 1rem; }
.space-y-6 > * + * { margin-top: 1.5rem; }
.space-y-8 > * + * { margin-top: 2rem; }

/* Text Utilities */
.text-left { text-align: left; }
.text-center { text-align: center; }
.text-right { text-align: right; }

.text-xs { font-size: 0.75rem; }
.text-sm { font-size: 0.875rem; }
.text-base { font-size: 1rem; }
.text-lg { font-size: 1.125rem; }
.text-xl { font-size: 1.25rem; }
.text-2xl { font-size: 1.5rem; }
.text-3xl { font-size: 1.875rem; }
.text-4xl { font-size: 2.25rem; }
.text-5xl { font-size: 3rem; }
.text-6xl { font-size: 3.75rem; }
.text-7xl { font-size: 4.5rem; }

.font-light { font-weight: 300; }
.font-normal { font-weight: 400; }
.font-medium { font-weight: 500; }
.font-semibold { font-weight: 600; }
.font-bold { font-weight: 700; }
.font-black { font-weight: 900; }

.leading-relaxed { line-height: 1.625; }

.tracking-wide { letter-spacing: 0.025em; }
.tracking-wider { letter-spacing: 0.05em; }
.tracking-widest { letter-spacing: 0.1em; }

.uppercase { text-transform: uppercase; }

/* Colors */
.text-white { color: #ffffff; }
.text-black { color: #000000; }
.text-gray-300 { color: #d1d5db; }
.text-gray-400 { color: #9ca3af; }
.text-gray-500 { color: #6b7280; }

/* Background Colors */
.bg-black { background-color: #000000; }
.bg-white { background-color: #ffffff; }

/* Width & Height */
.w-full { width: 100%; }
.w-3 { width: 0.75rem; }
.w-4 { width: 1rem; }
.w-5 { width: 1.25rem; }
.w-6 { width: 1.5rem; }
.w-8 { width: 2rem; }
.w-10 { width: 2.5rem; }
.w-12 { width: 3rem; }
.w-16 { width: 4rem; }
.w-32 { width: 8rem; }

.h-full { height: 100%; }
.h-2 { height: 0.5rem; }
.h-3 { height: 0.75rem; }
.h-4 { height: 1rem; }
.h-5 { height: 1.25rem; }
.h-6 { height: 1.5rem; }
.h-8 { height: 2rem; }
.h-10 { height: 2.5rem; }
.h-12 { height: 3rem; }
.h-16 { height: 4rem; }
.h-20 { height: 5rem; }
.h-32 { height: 8rem; }
.h-64 { height: 16rem; }

.min-h-screen { min-height: 100vh; }

/* Position */
.relative { position: relative; }
.absolute { position: absolute; }
.fixed { position: fixed; }

.inset-0 { top: 0; right: 0; bottom: 0; left: 0; }

.top-0 { top: 0; }
.right-0 { right: 0; }
.bottom-0 { bottom: 0; }
.left-0 { left: 0; }

/* Z-Index */
.z-10 { z-index: 10; }
.z-50 { z-index: 50; }
.z-40 { z-index: 40; }

/* Overflow */
.overflow-hidden { overflow: hidden; }
.overflow-x-hidden { overflow-x: hidden; }

/* Border Radius */
.rounded { border-radius: 0.25rem; }
.rounded-lg { border-radius: 0.5rem; }
.rounded-xl { border-radius: 0.75rem; }
.rounded-2xl { border-radius: 1rem; }
.rounded-3xl { border-radius: 1.5rem; }
.rounded-full { border-radius: 9999px; }

/* Borders */
.border { border-width: 1px; }
.border-2 { border-width: 2px; }

.border-t { border-top-width: 1px; }
.border-b { border-bottom-width: 1px; }

/* Padding */
.p-2 { padding: 0.5rem; }
.p-3 { padding: 0.75rem; }
.p-4 { padding: 1rem; }
.p-6 { padding: 1.5rem; }
.p-8 { padding: 2rem; }

.px-3 { padding-left: 0.75rem; padding-right: 0.75rem; }
.px-4 { padding-left: 1rem; padding-right: 1rem; }
.px-8 { padding-left: 2rem; padding-right: 2rem; }

.py-2 { padding-top: 0.5rem; padding-bottom: 0.5rem; }
.py-3 { padding-top: 0.75rem; padding-bottom: 0.75rem; }
.py-4 { padding-top: 1rem; padding-bottom: 1rem; }
.py-16 { padding-top: 4rem; padding-bottom: 4rem; }
.py-24 { padding-top: 6rem; padding-bottom: 6rem; }

.pt-8 { padding-top: 2rem; }
.pt-20 { padding-top: 5rem; }

.pb-8 { padding-bottom: 2rem; }

/* Margin */
.mb-2 { margin-bottom: 0.5rem; }
.mb-3 { margin-bottom: 0.75rem; }
.mb-4 { margin-bottom: 1rem; }
.mb-6 { margin-bottom: 1.5rem; }
.mb-8 { margin-bottom: 2rem; }
.mb-12 { margin-bottom: 3rem; }
.mb-16 { margin-bottom: 4rem; }

.mt-1 { margin-top: 0.25rem; }
.mt-2 { margin-top: 0.5rem; }
.mt-4 { margin-top: 1rem; }
.mt-8 { margin-top: 2rem; }

.ml-1 { margin-left: 0.25rem; }
.ml-auto { margin-left: auto; }

.mr-auto { margin-right: auto; }

.mx-auto { margin-left: auto; margin-right: auto; }

/* Display */
.block { display: block; }
.inline-block { display: inline-block; }

/* Cursor */
.cursor-pointer { cursor: pointer; }

/* Transition */
.transition-all { transition-property: all; transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1); transition-duration: 150ms; }
.transition-transform { transition-property: transform; transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1); transition-duration: 150ms; }
.transition-colors { transition-property: color, background-color, border-color; transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1); transition-duration: 150ms; }

/* Transform */
.hover\:scale-105:hover { transform: scale(1.05); }
.hover\:scale-\[1\.02\]:hover { transform: scale(1.02); }
.group:hover .group-hover\:translate-x-1 { transform: translateX(0.25rem); }

/* Backdrop Filter */
.backdrop-filter { -webkit-backdrop-filter: blur(20px); backdrop-filter: blur(20px); }

/* ========================================
   THEME STYLES - CYBERPUNK DEFAULT
   ======================================== */

.theme-cyber {
  background: var(--cyber-bg-primary);
  color: var(--cyber-text-secondary);
  background-image: 
    radial-gradient(circle at 20% 50%, rgba(0, 242, 255, 0.08) 0%, transparent 50%),
    radial-gradient(circle at 80% 80%, rgba(112, 0, 255, 0.08) 0%, transparent 50%),
    linear-gradient(rgba(0, 242, 255, 0.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 242, 255, 0.02) 1px, transparent 1px);
  background-size: 100% 100%, 100% 100%, 40px 40px, 40px 40px;
}

.theme-cyber .text-primary { color: var(--cyber-text-primary); }
.theme-cyber .text-secondary { color: var(--cyber-text-secondary); }
.theme-cyber .text-muted { color: var(--cyber-text-muted); }

.theme-dark {
  background: var(--dark-bg-primary);
  color: var(--dark-text-secondary);
}

.theme-dark .text-primary { color: var(--dark-text-primary); }
.theme-dark .text-secondary { color: var(--dark-text-secondary); }
.theme-dark .text-muted { color: var(--dark-text-muted); }

/* ========================================
   LIGHT MODE - ENHANCED WITH PROPER CONTRAST
   ======================================== */

.theme-light {
  background: var(--light-bg-primary);
  color: var(--light-text-secondary);
}

.theme-light .text-primary { color: var(--light-text-primary); }
.theme-light .text-secondary { color: var(--light-text-secondary); }
.theme-light .text-muted { color: var(--light-text-muted); }

.theme-light .glass-panel {
  background: rgba(255, 255, 255, 0.95);
  border-color: rgba(0, 242, 255, 0.3);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1), inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

.theme-light .nav-bg {
  background: rgba(248, 250, 252, 0.98);
  border-bottom-color: rgba(0, 242, 255, 0.3);
}

.theme-light .nav-link {
  color: rgba(15, 23, 42, 0.8);
}

.theme-light .nav-link:hover {
  color: #0080ff;
  background: rgba(0, 242, 255, 0.1);
}

.theme-light .faq-item {
  background: rgba(255, 255, 255, 0.95);
  border-color: rgba(0, 242, 255, 0.3);
}

.theme-light .faq-button {
  color: #0f172a;
}

.theme-light .faq-content {
  color: rgba(15, 23, 42, 0.8);
}

.theme-light .pricing-card {
  background: rgba(255, 255, 255, 0.95);
}

.theme-light .footer-link {
  color: rgba(15, 23, 42, 0.7);
}

.theme-light .footer-link:hover {
  color: #0080ff;
}

.theme-light .text-gray-400 {
  color: #475569;
}

.theme-light .text-gray-500 {
  color: #64748b;
}

.theme-light .calculator-input {
  background: rgba(255, 255, 255, 0.9);
  border-color: rgba(0, 0, 0, 0.1);
  color: #0f172a;
}

.theme-light .calculator-label {
  color: rgba(15, 23, 42, 0.7);
}

.theme-light .dropdown-menu {
  background: #ffffff;
  border-color: rgba(0, 242, 255, 0.3);
}

.theme-light .dropdown-item .text-white {
  color: #0f172a;
}

.theme-light .hero-title .text-white {
  color: #0f172a;
}

/* ── SCALPER PRO — paksa warna hitam di light theme ── */
/* Hapus gradient dan set solid hitam agar teks terlihat jelas */
.theme-light .hero-title .gradient-text,
.theme-light .hero-title [data-i18n="heroTitle2"],
.theme-light .hero-title span.gradient-text {
  background: none !important;
  background-image: none !important;
  -webkit-background-clip: unset !important;
  background-clip: unset !important;
  -webkit-text-fill-color: #000000 !important;
  color: #000000 !important;
  text-shadow: none !important;
  animation: none !important;
}

/* SMART MONEY dan semua teks hero title → hitam di light theme */
.theme-light .hero-title .text-white,
.theme-light .hero-title span.text-white,
.theme-light .hero-title [data-i18n="heroTitle1"],
.theme-light .hero-title [data-i18n] {
  color: #000000 !important;
  -webkit-text-fill-color: #000000 !important;
  text-shadow: none !important;
}

.theme-light .animated-bg .glow-1,
.theme-light .animated-bg .glow-2 {
  opacity: 0.3;
}

/* Light mode specific text fixes */
.theme-light h1,
.theme-light h2,
.theme-light h3,
.theme-light h4,
.theme-light h5,
.theme-light h6 {
  color: #0f172a;
}

.theme-light p {
  color: #334155;
}

.theme-light .step-number {
  color: #000000;
}

.theme-light .tv-chart-container {
  border-color: #e2e8f0;
}

.theme-light .candlestick.bullish .candlestick-body {
  box-shadow: 0 0 8px rgba(38, 166, 154, 0.4);
}

.theme-light .candlestick.bearish .candlestick-body {
  box-shadow: 0 0 8px rgba(239, 83, 80, 0.4);
}

/* ========================================
   DARK/CYBERPUNK MODE TEXT FIXES
   ======================================== */

.theme-cyber .hero-title .text-white,
.theme-dark .hero-title .text-white {
  color: #ffffff;
}

.theme-cyber h1, .theme-cyber h2, .theme-cyber h3, 
.theme-cyber h4, .theme-cyber h5, .theme-cyber h6,
.theme-dark h1, .theme-dark h2, .theme-dark h3,
.theme-dark h4, .theme-dark h5, .theme-dark h6 {
  color: #ffffff;
}

.theme-cyber p, .theme-dark p {
  color: #e2e8f0;
}

/* ========================================
   ANIMATED BACKGROUND LIGHT EFFECTS
   ======================================== */

.animated-bg {
  position: fixed;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  pointer-events: none;
}

.animated-bg .glow-1 {
  position: absolute;
  top: 20%;
  right: 0;
  width: 800px;
  height: 800px;
  background: rgba(0, 242, 255, 0.1);
  border-radius: 50%;
  filter: blur(150px);
  animation: pulse-glow 4s ease-in-out infinite;
}

.animated-bg .glow-2 {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 600px;
  height: 600px;
  background: rgba(112, 0, 255, 0.1);
  border-radius: 50%;
  filter: blur(120px);
  animation: pulse-glow 5s ease-in-out infinite reverse;
}

.animated-bg .glow-3 {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 1000px;
  height: 1000px;
  border: 1px solid rgba(0, 242, 255, 0.05);
  border-radius: 50%;
  animation: rotate-slow 30s linear infinite;
}

.animated-bg .glow-4 {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 800px;
  height: 800px;
  border: 1px solid rgba(0, 242, 255, 0.1);
  border-radius: 50%;
  animation: rotate-slow 25s linear infinite reverse;
}

.animated-bg .glow-5 {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 600px;
  height: 600px;
  border: 1px solid rgba(0, 242, 255, 0.15);
  border-radius: 50%;
  animation: rotate-slow 20s linear infinite;
}

@keyframes pulse-glow {
  0%, 100% {
    opacity: 0.5;
    transform: scale(1);
  }
  50% {
    opacity: 1;
    transform: scale(1.1);
  }
}

@keyframes rotate-slow {
  0% {
    transform: translate(-50%, -50%) rotate(0deg);
  }
  100% {
    transform: translate(-50%, -50%) rotate(360deg);
  }
}

/* ========================================
   EA VERSION BADGE ANIMATION
   ======================================== */

.ea-version-badge {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 10px 20px;
  border-radius: 9999px;
  border: 1px solid rgba(0, 242, 255, 0.3);
  background: rgba(0, 242, 255, 0.05);
  backdrop-filter: blur(10px);
  animation: badge-glow 2s ease-in-out infinite;
}

.ea-version-badge .pulse-dot {
  position: relative;
  width: 12px;
  height: 12px;
}

.ea-version-badge .pulse-dot::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: #00f2ff;
  animation: ping 1.5s cubic-bezier(0, 0, 0.2, 1) infinite;
}

.ea-version-badge .pulse-dot::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: #00f2ff;
}

@keyframes badge-glow {
  0%, 100% {
    box-shadow: 0 0 20px rgba(0, 242, 255, 0.2);
  }
  50% {
    box-shadow: 0 0 40px rgba(0, 242, 255, 0.4);
  }
}

@keyframes ping {
  75%, 100% {
    transform: scale(2);
    opacity: 0;
  }
}

/* ========================================
   SMART MONEY SCALPER PRO TEXT
   ======================================== */

.hero-title {
  font-family: var(--font-display);
  font-weight: 900;
  line-height: 1;
  letter-spacing: 0.05em;
}

.hero-title .gradient-text {
  background: linear-gradient(90deg, #00f2ff, #7000ff, #ff00a0, #00f2ff);
  background-size: 300% auto;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: gradient-shift 4s ease infinite;
}

@keyframes gradient-shift {
  0% { background-position: 0% center; }
  50% { background-position: 100% center; }
  100% { background-position: 0% center; }
}

/* ========================================
   GLASS PANEL
   ======================================== */

.glass-panel {
  background: rgba(10, 15, 30, 0.7);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(0, 242, 255, 0.15);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

/* ========================================
   INSTALLATION GUIDE NUMBER BACKGROUND
   ======================================== */

.step-number {
  position: relative;
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  font-weight: 700;
  font-family: var(--font-display);
  border-radius: 1rem;
  flex-shrink: 0;
  z-index: 1;
}

.step-number::before {
  content: '';
  position: absolute;
  inset: -4px;
  border-radius: inherit;
  background: linear-gradient(135deg, rgba(0, 242, 255, 0.3), rgba(112, 0, 255, 0.3));
  z-index: -1;
  opacity: 0.5;
}

.step-number::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: inherit;
  z-index: -1;
}

/* ========================================
   GET STARTED BUTTON - FIXED
   ======================================== */

.btn-get-started {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 16px 32px;
  border-radius: 1rem;
  font-weight: 700;
  font-size: 1.125rem;
  font-family: var(--font-display);
  color: #000000;
  background: linear-gradient(135deg, #00f2ff, #0080ff);
  border: none;
  cursor: pointer;
  overflow: hidden;
  transition: all 0.3s ease;
  box-shadow: 0 0 30px rgba(0, 242, 255, 0.4), 0 4px 15px rgba(0, 0, 0, 0.3);
  text-decoration: none;
}

.btn-get-started::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
  transition: left 0.5s ease;
}

.btn-get-started:hover::before {
  left: 100%;
}

.btn-get-started:hover {
  transform: scale(1.05) translateY(-2px);
  box-shadow: 0 0 50px rgba(0, 242, 255, 0.6), 0 8px 25px rgba(0, 0, 0, 0.4);
}

.btn-get-started:active {
  transform: scale(0.98);
}

.btn-get-started svg {
  transition: transform 0.3s ease;
}

.btn-get-started:hover svg {
  transform: translateX(4px);
}

/* ========================================
   WATCH DEMO BUTTON - FIXED
   ======================================== */

.btn-watch-demo {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 16px 32px;
  border-radius: 1rem;
  font-weight: 700;
  font-size: 1.125rem;
  font-family: var(--font-display);
  color: #00f2ff;
  background: transparent;
  border: 2px solid rgba(0, 242, 255, 0.4);
  cursor: pointer;
  overflow: hidden;
  transition: all 0.3s ease;
  text-decoration: none;
}

.btn-watch-demo::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(0, 242, 255, 0.1), rgba(0, 128, 255, 0.1));
  opacity: 0;
  transition: opacity 0.3s ease;
}

.btn-watch-demo:hover::before {
  opacity: 1;
}

.btn-watch-demo:hover {
  border-color: #00f2ff;
  box-shadow: 0 0 30px rgba(0, 242, 255, 0.3);
  transform: translateY(-2px);
}

.btn-watch-demo svg {
  transition: transform 0.3s ease;
}

.btn-watch-demo:hover svg {
  transform: scale(1.1);
}

/* ========================================
   CHOOSE PLAN BUTTON - ANIMATED
   ======================================== */

.btn-choose-plan {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 14px 24px;
  border-radius: 0.75rem;
  font-weight: 700;
  font-size: 1rem;
  font-family: var(--font-display);
  cursor: pointer;
  overflow: hidden;
  transition: all 0.3s ease;
  text-decoration: none;
  border: 2px solid rgba(0, 242, 255, 0.4);
  color: #00f2ff;
  background: transparent;
}

.btn-choose-plan::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, #00f2ff, #0080ff);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s ease;
  z-index: -1;
}

.btn-choose-plan:hover::before {
  transform: scaleX(1);
}

.btn-choose-plan:hover {
  color: #000000;
  border-color: transparent;
  transform: translateY(-2px);
  box-shadow: 0 10px 30px rgba(0, 242, 255, 0.4);
}

.btn-choose-plan-featured {
  background: linear-gradient(135deg, #00f2ff, #0080ff);
  color: #000000;
  border: none;
  animation: plan-pulse 2s ease-in-out infinite;
}

.btn-choose-plan-featured:hover {
  box-shadow: 0 10px 40px rgba(0, 242, 255, 0.6);
  transform: translateY(-3px) scale(1.02);
}

@keyframes plan-pulse {
  0%, 100% {
    box-shadow: 0 0 20px rgba(0, 242, 255, 0.4);
  }
  50% {
    box-shadow: 0 0 40px rgba(0, 242, 255, 0.7);
  }
}

/* ========================================
   TRIAL BUTTON ANIMATION
   ======================================== */

.trial-button {
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, #00f2ff, #0080ff);
  color: #000;
  font-weight: 700;
  font-family: var(--font-display);
  padding: 14px 36px;
  border-radius: 12px;
  transition: all 0.3s ease;
  animation: button-pulse 2s ease-in-out infinite;
  border: none;
  cursor: pointer;
  font-size: 1rem;
}

.trial-button::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
  transition: left 0.5s ease;
}

.trial-button:hover::before {
  left: 100%;
}

.trial-button:hover {
  transform: translateY(-3px) scale(1.05);
  box-shadow: 0 15px 40px rgba(0, 242, 255, 0.5);
}

.trial-button:active {
  transform: translateY(-1px) scale(1.02);
}

@keyframes button-pulse {
  0%, 100% {
    box-shadow: 0 0 20px rgba(0, 242, 255, 0.4);
  }
  50% {
    box-shadow: 0 0 40px rgba(0, 242, 255, 0.7);
  }
}

/* ========================================
   NAVIGATION
   ======================================== */

.nav-bg {
  background: rgba(3, 5, 8, 0.9);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(0, 242, 255, 0.2);
}

.nav-link {
  position: relative;
  padding: 8px 16px;
  border-radius: 8px;
  font-size: 0.875rem;
  font-weight: 600;
  font-family: var(--font-display);
  color: rgba(255, 255, 255, 0.7);
  transition: all 0.3s ease;
  text-decoration: none;
  display: inline-block;
  letter-spacing: 0.05em;
}

.nav-link:hover {
  color: #00f2ff;
  background: rgba(0, 242, 255, 0.1);
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 0;
  height: 2px;
  background: #00f2ff;
  transition: all 0.3s ease;
  transform: translateX(-50%);
}

.nav-link:hover::after {
  width: 60%;
}

/* ========================================
   LOGO STYLES
   ======================================== */

.logo-container {
  position: relative;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.logo-crosshair {
  width: 100%;
  height: 100%;
  animation: logo-rotate 20s linear infinite;
}

.logo-crosshair svg {
  width: 100%;
  height: 100%;
  animation: logo-pulse 3s ease-in-out infinite;
}

@keyframes logo-rotate {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

@keyframes logo-pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.05); }
}

/* ========================================
   SOCIAL ICONS - ANIMATED
   ======================================== */

.social-icon {
  position: relative;
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.05);
  transition: all 0.3s ease;
  overflow: hidden;
}

.social-icon::before {
  content: '';
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.social-icon svg {
  position: relative;
  z-index: 1;
  transition: transform 0.3s ease;
}

.social-icon:hover {
  transform: translateY(-4px) scale(1.1);
}

.social-icon:hover svg {
  transform: scale(1.15);
}

.social-icon.telegram::before {
  background: linear-gradient(135deg, rgba(0, 242, 255, 0.2), rgba(0, 128, 255, 0.2));
}

.social-icon.discord::before {
  background: linear-gradient(135deg, rgba(112, 0, 255, 0.2), rgba(88, 101, 242, 0.2));
}

.social-icon.youtube::before {
  background: linear-gradient(135deg, rgba(255, 51, 102, 0.2), rgba(255, 0, 0, 0.2));
}

.social-icon.twitter::before {
  background: linear-gradient(135deg, rgba(0, 242, 255, 0.2), rgba(29, 161, 242, 0.2));
}

.social-icon.email::before {
  background: linear-gradient(135deg, rgba(0, 255, 136, 0.2), rgba(0, 200, 100, 0.2));
}

.social-icon:hover::before {
  opacity: 1;
}

/* ========================================
   PRICING CARDS
   ======================================== */

.pricing-card {
  position: relative;
  overflow: hidden;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.pricing-card:hover {
  transform: translateY(-12px);
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.3);
}

.pricing-card.featured {
  border: 2px solid #00f2ff;
  transform: scale(1.03);
  animation: featured-glow 3s ease-in-out infinite;
}

.pricing-card.featured:hover {
  transform: scale(1.03) translateY(-12px);
}

@keyframes featured-glow {
  0%, 100% {
    box-shadow: 0 0 30px rgba(0, 242, 255, 0.3);
  }
  50% {
    box-shadow: 0 0 50px rgba(0, 242, 255, 0.5);
  }
}

.popular-badge {
  position: absolute;
  top: 12px;
  left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(135deg, #00f2ff, #0080ff);
  color: #000;
  padding: 6px 20px;
  font-size: 11px;
  font-weight: 700;
  font-family: var(--font-display);
  border-radius: 20px;
  box-shadow: 0 4px 15px rgba(0, 242, 255, 0.4);
  white-space: nowrap;
  z-index: 10;
  animation: badge-bounce 2s ease-in-out infinite;
}

@keyframes badge-bounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(-3px); }
}

.discount-badge {
  position: absolute;
  top: 12px;
  right: -30px;
  background: linear-gradient(135deg, #ff3366, #ff00a0);
  color: white;
  padding: 4px 40px;
  font-size: 11px;
  font-weight: 700;
  font-family: var(--font-display);
  transform: rotate(45deg);
  box-shadow: 0 2px 10px rgba(255, 51, 102, 0.5);
  animation: discount-pulse 2s ease-in-out infinite;
}

@keyframes discount-pulse {
  0%, 100% { box-shadow: 0 2px 10px rgba(255, 51, 102, 0.5); }
  50% { box-shadow: 0 4px 20px rgba(255, 51, 102, 0.8); }
}

/* ========================================
   TRADING CHART WITH CANDLESTICKS - ENHANCED
   ======================================== */

.tv-chart-container {
  position: relative;
  width: 100%;
  max-width: 650px;
  height: 450px;
  background: #131722;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid #2a2e39;
  font-family: var(--font-mono);
  margin: 0 auto;
}

.tv-header {
  height: 38px;
  background: #131722;
  border-bottom: 1px solid #2a2e39;
  display: flex;
  align-items: center;
  padding: 0 12px;
  gap: 8px;
  flex-wrap: wrap;
}

.tv-live-price {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: #00f2ff;
  font-weight: 600;
}

.tv-price-range {
  color: #787b86;
  font-size: 11px;
  font-weight: normal;
}

.tv-symbol {
  color: #d1d4dc;
  font-weight: 600;
  font-size: 13px;
}

.tv-ohlc {
  color: #787b86;
  font-size: 11px;
}

.tv-change {
  color: #26a69a;
  font-size: 11px;
}

.tv-timeframe {
  background: #2a2e39;
  color: #d1d4dc;
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 11px;
}

.tv-chart-area {
  position: relative;
  height: calc(100% - 38px - 30px);
  background: #131722;
}

.tv-grid {
  background-image: 
    linear-gradient(rgba(42, 46, 57, 0.5) 1px, transparent 1px),
    linear-gradient(90deg, rgba(42, 46, 57, 0.5) 1px, transparent 1px);
  background-size: 60px 40px;
}

.tv-price-scale {
  position: absolute;
  right: 0;
  top: 38px;
  width: 70px;
  height: calc(100% - 38px - 30px);
  background: #131722;
  border-left: 1px solid #2a2e39;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 8px 4px;
  font-size: 10px;
  color: #787b86;
  text-align: right;
}

.tv-time-scale {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 70px;
  height: 30px;
  background: #131722;
  border-top: 1px solid #2a2e39;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 12px;
  font-size: 10px;
  color: #787b86;
}

/* Candlestick Container - Improved spacing */
.candlestick-container {
  position: absolute;
  bottom: 35px;
  left: 15px;
  right: 75px;
  height: calc(100% - 45px);
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  padding: 0 15px;
  gap: 8px;
}

/* Individual Candlestick - More realistic */
.candlestick {
  position: relative;
  flex: 1;
  max-width: 40px;
  min-width: 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  transition: all 0.3s ease;
}

.candlestick:hover {
  transform: scale(1.05);
  z-index: 10;
}

.candlestick-wick {
  width: 2px;
  background: currentColor;
  transition: all 0.3s ease;
}

.candlestick-body {
  width: 100%;
  border-radius: 2px;
  position: relative;
  transition: all 0.3s ease;
}

/* Bullish candle - Green */
.candlestick.bullish {
  color: #26a69a;
}

.candlestick.bullish .candlestick-body {
  background: linear-gradient(180deg, #26a69a 0%, #1e8e7e 100%);
  box-shadow: 0 0 15px rgba(38, 166, 154, 0.6), inset 0 1px 0 rgba(255,255,255,0.2);
}

/* Bearish candle - Red */
.candlestick.bearish {
  color: #ef5350;
}

.candlestick.bearish .candlestick-body {
  background: linear-gradient(180deg, #ef5350 0%, #d32f2f 100%);
  box-shadow: 0 0 15px rgba(239, 83, 80, 0.6), inset 0 1px 0 rgba(255,255,255,0.2);
}

/* Doji candle (small body) */
.candlestick.doji .candlestick-body {
  height: 4px !important;
  background: #787b86;
  box-shadow: 0 0 8px rgba(120, 123, 134, 0.5);
}

/* Hammer candlestick pattern */
.candlestick.hammer.bullish .candlestick-wick:first-child {
  height: 45px !important;
}

.candlestick.hammer.bullish .candlestick-body {
  height: 18px !important;
}

.candlestick.hammer.bullish .candlestick-wick:last-child {
  height: 3px !important;
}

/* Shooting star pattern */
.candlestick.shooting-star.bearish .candlestick-wick:first-child {
  height: 3px !important;
}

.candlestick.shooting-star.bearish .candlestick-body {
  height: 15px !important;
}

.candlestick.shooting-star.bearish .candlestick-wick:last-child {
  height: 40px !important;
}

/* Marubozu (no wick) */
.candlestick.marubozu .candlestick-wick {
  display: none;
}

.candlestick.marubozu.bullish .candlestick-body {
  height: 55px !important;
  background: linear-gradient(180deg, #00c853 0%, #26a69a 100%);
  box-shadow: 0 0 20px rgba(0, 200, 83, 0.7);
}

.candlestick.marubozu.bearish .candlestick-body {
  height: 55px !important;
  background: linear-gradient(180deg, #ff1744 0%, #ef5350 100%);
  box-shadow: 0 0 20px rgba(255, 23, 68, 0.7);
}

/* Spinning top */
.candlestick.spinning-top .candlestick-body {
  height: 20px !important;
}

.candlestick.spinning-top .candlestick-wick:first-child,
.candlestick.spinning-top .candlestick-wick:last-child {
  height: 20px !important;
}

/* Candlestick Animations - Looping up/down with varied timing */
@keyframes candle-bob-1 {
  0%   { transform: translateY(0px) scaleY(1); }
  20%  { transform: translateY(-18px) scaleY(1.08); }
  50%  { transform: translateY(12px) scaleY(0.92); }
  75%  { transform: translateY(-8px) scaleY(1.04); }
  100% { transform: translateY(0px) scaleY(1); }
}

@keyframes candle-bob-2 {
  0%   { transform: translateY(0px) scaleY(1); }
  15%  { transform: translateY(14px) scaleY(0.88); }
  45%  { transform: translateY(-22px) scaleY(1.12); }
  70%  { transform: translateY(6px) scaleY(0.95); }
  100% { transform: translateY(0px) scaleY(1); }
}

@keyframes candle-bob-3 {
  0%   { transform: translateY(0px) scaleY(1); }
  25%  { transform: translateY(-25px) scaleY(1.15); }
  55%  { transform: translateY(10px) scaleY(0.9); }
  80%  { transform: translateY(-5px) scaleY(1.02); }
  100% { transform: translateY(0px) scaleY(1); }
}

@keyframes candle-bob-4 {
  0%   { transform: translateY(0px) scaleY(1); }
  30%  { transform: translateY(20px) scaleY(0.85); }
  60%  { transform: translateY(-15px) scaleY(1.1); }
  85%  { transform: translateY(8px) scaleY(0.97); }
  100% { transform: translateY(0px) scaleY(1); }
}

@keyframes candle-bob-5 {
  0%   { transform: translateY(0px) scaleY(1); }
  20%  { transform: translateY(-10px) scaleY(1.06); }
  40%  { transform: translateY(18px) scaleY(0.87); }
  65%  { transform: translateY(-20px) scaleY(1.13); }
  85%  { transform: translateY(5px) scaleY(0.98); }
  100% { transform: translateY(0px) scaleY(1); }
}

.candlestick {
  transform-origin: bottom;
}

.candlestick:nth-child(1)  { animation: candle-bob-1 3.2s ease-in-out infinite; animation-delay: -0.8s; }
.candlestick:nth-child(2)  { animation: candle-bob-3 2.8s ease-in-out infinite; animation-delay: -1.4s; }
.candlestick:nth-child(3)  { animation: candle-bob-5 3.6s ease-in-out infinite; animation-delay: -2.1s; }
.candlestick:nth-child(4)  { animation: candle-bob-2 3.0s ease-in-out infinite; animation-delay: -0.6s; }
.candlestick:nth-child(5)  { animation: candle-bob-4 2.6s ease-in-out infinite; animation-delay: -1.9s; }
.candlestick:nth-child(6)  { animation: candle-bob-1 3.4s ease-in-out infinite; animation-delay: -2.7s; }
.candlestick:nth-child(7)  { animation: candle-bob-3 2.9s ease-in-out infinite; animation-delay: -0.4s; }
.candlestick:nth-child(8)  { animation: candle-bob-5 3.1s ease-in-out infinite; animation-delay: -1.2s; }
.candlestick:nth-child(9)  { animation: candle-bob-2 2.7s ease-in-out infinite; animation-delay: -2.3s; }
.candlestick:nth-child(10) { animation: candle-bob-4 3.3s ease-in-out infinite; animation-delay: -3.0s; }

/* Buy/Sell Signals */
.signal-label {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 10px;
  font-weight: 700;
  font-family: var(--font-display);
  padding: 3px 8px;
  border-radius: 4px;
  animation: signal-pulse 1.5s ease-in-out infinite;
  z-index: 50;
  white-space: nowrap;
}

.signal-buy {
  background: rgba(38, 166, 154, 0.95);
  color: white;
  border: 1px solid #26a69a;
  box-shadow: 0 0 15px rgba(38, 166, 154, 0.5);
}

.signal-sell {
  background: rgba(239, 83, 80, 0.95);
  color: white;
  border: 1px solid #ef5350;
  box-shadow: 0 0 15px rgba(239, 83, 80, 0.5);
}

@keyframes signal-pulse {
  0%, 100% {
    box-shadow: 0 0 5px currentColor;
  }
  50% {
    box-shadow: 0 0 20px currentColor;
  }
}

/* Chart Labels */
.chart-labels {
  position: absolute;
  top: 50px;
  right: 80px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  z-index: 25;
}

.chart-label {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  font-weight: 600;
  font-family: var(--font-mono);
  padding: 4px 10px;
  border-radius: 4px;
  background: rgba(19, 23, 34, 0.9);
  border: 1px solid #2a2e39;
}

.chart-label.buy {
  color: #26a69a;
  border-color: #26a69a;
}

.chart-label.sell {
  color: #ef5350;
  border-color: #ef5350;
}

/* ========================================
   AUTO TRADE OVERLAY
   ======================================== */

.auto-trade-overlay {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
  z-index: 30;
  pointer-events: none;
  background: rgba(0, 0, 0, 0.28);
  padding: 25px 50px;
  border-radius: 20px;
  border: 1px solid rgba(0, 242, 255, 0.2);
  backdrop-filter: blur(3px);
}

.auto-trade-title {
  font-family: var(--font-display);
  font-size: 1.75rem;
  font-weight: 900;
  letter-spacing: 5px;
  margin-bottom: 10px;
  background: linear-gradient(90deg, #00f2ff, #0080ff, #00f2ff, #0080ff);
  background-size: 300% auto;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: gradient-shift 4s ease infinite, glow-pulse 2s ease-in-out infinite;
}

@keyframes glow-pulse {
  0%, 100% {
    filter: drop-shadow(0 0 20px rgba(0, 242, 255, 0.4));
  }
  50% {
    filter: drop-shadow(0 0 40px rgba(0, 242, 255, 0.7));
  }
}

.auto-trade-subtitle {
  font-family: var(--font-mono);
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.6);
  letter-spacing: 8px;
  animation: subtitle-fade 3s ease-in-out infinite;
}

@keyframes subtitle-fade {
  0%, 100% { opacity: 0.6; }
  50% { opacity: 1; }
}

/* ========================================
   STATUS PANEL
   ======================================== */

.status-panel {
  position: absolute;
  bottom: 40px;
  left: 12px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  z-index: 20;
}

.status-row {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 10px;
  font-family: var(--font-mono);
  padding: 6px 12px;
  background: rgba(19, 23, 34, 0.9);
  border-radius: 6px;
  border: 1px solid #2a2e39;
}

.status-indicator {
  width: 8px;
  height: 8px;
  border-radius: 50%;
}

.status-active {
  background: #26a69a;
  box-shadow: 0 0 10px #26a69a;
  animation: pulse-active 1.5s infinite;
}

.status-waiting {
  background: #ffcc00;
  box-shadow: 0 0 10px #ffcc00;
  animation: pulse-waiting 1.5s infinite;
}

@keyframes pulse-active {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.6; transform: scale(0.8); }
}

@keyframes pulse-waiting {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}

/* ========================================
   FAQ
   ======================================== */

.faq-item {
  border-radius: 16px;
  overflow: hidden;
  background: rgba(10, 15, 30, 0.7);
  border: 1px solid rgba(0, 242, 255, 0.15);
  transition: all 0.3s ease;
}

.faq-item:hover {
  border-color: rgba(0, 242, 255, 0.3);
}

.faq-button {
  width: 100%;
  padding: 24px 32px;
  text-align: left;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: transparent;
  border: none;
  color: white;
  font-size: 1.125rem;
  font-weight: 700;
  font-family: var(--font-display);
  cursor: pointer;
  transition: all 0.3s ease;
}

.faq-button:hover {
  background: rgba(255, 255, 255, 0.05);
}

.faq-content {
  padding: 0 32px 24px;
  color: rgba(255, 255, 255, 0.7);
  line-height: 1.6;
  font-family: var(--font-primary);
}

.faq-icon {
  width: 20px;
  height: 20px;
  color: #00f2ff;
  transition: transform 0.3s ease;
  flex-shrink: 0;
}

.faq-icon.open {
  transform: rotate(180deg);
}

/* ========================================
   CALCULATOR STYLES - ENHANCED WITH SPIN BUTTONS
   ======================================== */

.calculator-input-wrapper {
  position: relative;
  display: flex;
  align-items: center;
}

.calculator-input {
  width: 100%;
  background: rgba(0, 0, 0, 0.4);
  border: 2px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  padding: 16px 50px 16px 20px;
  font-size: 16px;
  font-family: var(--font-mono);
  color: white;
  transition: all 0.3s ease;
}

.calculator-input:focus {
  outline: none;
  border-color: #00f2ff;
  box-shadow: 0 0 20px rgba(0, 242, 255, 0.2);
}

.calculator-input:hover {
  border-color: rgba(0, 242, 255, 0.4);
}

/* Number input spin buttons */
.calculator-input::-webkit-outer-spin-button,
.calculator-input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.calculator-input[type=number] {
  -moz-appearance: textfield;
}

/* Custom spin buttons */
.input-spin-buttons {
  position: absolute;
  right: 8px;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.spin-btn {
  width: 28px;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 242, 255, 0.15);
  border: 1px solid rgba(0, 242, 255, 0.3);
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.2s ease;
  color: #00f2ff;
}

.spin-btn:hover {
  background: rgba(0, 242, 255, 0.3);
  border-color: #00f2ff;
  transform: scale(1.05);
}

.spin-btn:active {
  transform: scale(0.95);
}

.spin-btn svg {
  width: 12px;
  height: 12px;
}

.calculator-label {
  display: block;
  font-size: 14px;
  font-weight: 600;
  font-family: var(--font-display);
  margin-bottom: 8px;
  color: rgba(255, 255, 255, 0.7);
}

.calculator-result {
  font-family: var(--font-display);
  font-size: 3rem;
  font-weight: 900;
  background: linear-gradient(90deg, #00f2ff, #00ff88);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Enhanced Calculate Button */
.btn-calculate {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 18px 32px;
  border-radius: 12px;
  font-weight: 700;
  font-size: 1.125rem;
  font-family: var(--font-display);
  color: #000;
  background: linear-gradient(135deg, #00f2ff, #0080ff);
  border: none;
  cursor: pointer;
  overflow: hidden;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(0, 242, 255, 0.3);
}

.btn-calculate::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
  transition: left 0.6s ease;
}

.btn-calculate:hover::before {
  left: 100%;
}

.btn-calculate:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 30px rgba(0, 242, 255, 0.5);
}

.btn-calculate:active {
  transform: translateY(-1px);
}

.btn-calculate::after {
  content: '';
  position: absolute;
  inset: -2px;
  background: linear-gradient(135deg, #00f2ff, #0080ff, #00f2ff);
  border-radius: 14px;
  z-index: -1;
  opacity: 0;
  transition: opacity 0.3s ease;
  animation: calculate-glow 2s ease-in-out infinite;
}

.btn-calculate:hover::after {
  opacity: 1;
}

@keyframes calculate-glow {
  0%, 100% {
    filter: blur(10px);
    opacity: 0.5;
  }
  50% {
    filter: blur(15px);
    opacity: 0.8;
  }
}

@media (max-width: 768px) {
  .calculator-result {
    font-size: 2rem;
  }
}

/* ========================================
   DROPDOWN STYLES
   ======================================== */

.dropdown-menu {
  position: absolute;
  top: 100%;
  right: 0;
  margin-top: 12px;
  min-width: 200px;
  border-radius: 16px;
  padding: 12px;
  background: #0a1525;
  border: 1px solid rgba(0, 242, 255, 0.3);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
  z-index: 100;
  display: none;
  opacity: 0;
  transform: translateY(-10px);
  transition: all 0.2s ease;
}

.dropdown-menu.active {
  display: block;
  opacity: 1;
  transform: translateY(0);
}

.dropdown-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px;
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.3s ease;
  width: 100%;
  border: none;
  background: transparent;
  text-align: left;
}

.dropdown-item:hover {
  background: rgba(255, 255, 255, 0.05);
}

.dropdown-item.active {
  background: rgba(0, 242, 255, 0.2);
  border: 1px solid rgba(0, 242, 255, 0.3);
}

.dropdown-icon {
  width: 40px;
  height: 40px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
}

/* Chevron rotation */
.chevron-icon {
  transition: transform 0.3s ease;
}

.chevron-icon.rotate-180 {
  transform: rotate(180deg);
}

/* ========================================
   MOBILE MENU - FIXED
   ======================================== */

.mobile-menu {
  display: none;
  opacity: 0;
  transform: translateY(-10px);
  transition: all 0.3s ease;
}

.mobile-menu.active {
  display: block;
  opacity: 1;
  transform: translateY(0);
}

/* ========================================
   SCROLL TO TOP BUTTON
   ======================================== */

.scroll-to-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: linear-gradient(135deg, #00f2ff, #0080ff);
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px);
  transition: all 0.3s ease;
  box-shadow: 0 4px 20px rgba(0, 242, 255, 0.4);
  z-index: 1000;
}

.scroll-to-top.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.scroll-to-top:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 30px rgba(0, 242, 255, 0.6);
}

.scroll-to-top svg {
  color: #000;
  width: 24px;
  height: 24px;
}

/* ========================================
   FOOTER
   ======================================== */

.footer-link {
  color: rgba(255, 255, 255, 0.6);
  transition: color 0.3s ease;
  text-decoration: none;
  font-family: var(--font-primary);
}

.footer-link:hover {
  color: #00f2ff;
}

/* ========================================
   ICON FALLBACK SVG
   ======================================== */

.icon-svg {
  display: inline-block;
  width: 1em;
  height: 1em;
  vertical-align: middle;
  fill: currentColor;
}

/* ========================================
   SCROLLBAR
   ======================================== */

::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: transparent;
}

::-webkit-scrollbar-thumb {
  background: #334155;
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: #00f2ff;
}

/* ========================================
   RESPONSIVE
   ======================================== */

@media (max-width: 1024px) {
  .pricing-card.featured {
    transform: scale(1);
  }
  
  .pricing-card.featured:hover {
    transform: translateY(-12px);
  }
}

@media (max-width: 768px) {
  .hero-title {
    font-size: 2.5rem;
  }
  
  .auto-trade-title {
    font-size: 1.25rem;
  }
  
  .auto-trade-subtitle {
    font-size: 0.7rem;
    letter-spacing: 4px;
  }
  
  .tv-chart-container {
    height: 350px;
  }
  
  .candlestick-container {
    padding: 0 8px;
    gap: 4px;
  }
  
  .candlestick {
    min-width: 15px;
  }
  
  .popular-badge {
    top: 8px;
    padding: 4px 12px;
    font-size: 10px;
  }
  
  .chart-labels {
    right: 75px;
    top: 45px;
  }
  
  .chart-label {
    font-size: 9px;
    padding: 2px 6px;
  }
  
  .dropdown-menu {
    right: -50px;
  }
  
  .faq-button {
    padding: 16px 20px;
    font-size: 1rem;
  }
  
  .faq-content {
    padding: 0 20px 16px;
  }
  
  .btn-get-started,
  .btn-watch-demo {
    padding: 14px 24px;
    font-size: 1rem;
  }
  
  .scroll-to-top {
    width: 45px;
    height: 45px;
    bottom: 20px;
    right: 20px;
  }
}

/* Order for responsive */
.order-1 { order: 1; }
.order-2 { order: 2; }

@media (min-width: 1024px) {
  .lg\:order-1 { order: 1; }
  .lg\:order-2 { order: 2; }
}

/* ========================================
   UTILITY CLASSES
   ======================================== */

.text-gradient {
  background: linear-gradient(90deg, #00f2ff, #7000ff);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.bg-cyber {
  background: linear-gradient(135deg, #00f2ff, #0080ff);
}

/* Animation utilities */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

.animate-fade-in {
  animation: fadeIn 0.6s ease-out forwards;
}

/* Language content visibility */
.lang-content {
  display: none;
}

.lang-content.active {
  display: block;
}

/* ========================================
   ELEMENTOR COMPATIBILITY
   ======================================== */

.elementor-widget-container {
  font-family: var(--font-primary);
}

.elementor-heading-title {
  font-family: var(--font-display) !important;
}

/* Ensure Elementor sections inherit theme fonts */
.elementor-element .elementor-widget-text-editor {
  font-family: var(--font-primary);
}

.elementor-element .elementor-widget-heading .elementor-heading-title {
  font-family: var(--font-display);
}

/* Fix Elementor button styling */
.elementor-button {
  font-family: var(--font-display) !important;
}

/* ========================================
   PAGE LAYER COMPATIBILITY
   ======================================== */

.pagelayer-row {
  font-family: var(--font-primary);
}

.pagelayer-col {
  font-family: var(--font-primary);
}

.pagelayer-wp_title,
.pagelayer-heading {
  font-family: var(--font-display) !important;
}

/* ========================================
   WORDPRESS MENU COMPATIBILITY
   ======================================== */

.wp-nav-menu {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.wp-nav-menu li {
  position: relative;
}

.wp-nav-menu li a {
  position: relative;
  padding: 8px 16px;
  border-radius: 8px;
  font-size: 0.875rem;
  font-weight: 600;
  font-family: var(--font-display);
  color: rgba(255, 255, 255, 0.7);
  transition: all 0.3s ease;
  text-decoration: none;
  display: inline-block;
  letter-spacing: 0.05em;
}

.wp-nav-menu li a:hover {
  color: #00f2ff;
  background: rgba(0, 242, 255, 0.1);
}

.wp-nav-menu .current-menu-item a,
.wp-nav-menu .current_page_item a {
  color: #00f2ff;
}

/* Submenu */
.wp-nav-menu .sub-menu {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 200px;
  background: #0a1525;
  border: 1px solid rgba(0, 242, 255, 0.3);
  border-radius: 12px;
  padding: 8px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: all 0.2s ease;
  z-index: 100;
  list-style: none;
}

.wp-nav-menu li:hover .sub-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.wp-nav-menu .sub-menu li a {
  display: block;
  padding: 10px 16px;
  border-radius: 8px;
}

/* ========================================
   PAYMENT BADGES - Enhanced with Crypto & QRIS
   ======================================== */

.payment-badge {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 12px 16px;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,0.1);
  color: #94a3b8;
  transition: all 0.3s ease;
  cursor: default;
  min-width: 70px;
  background: rgba(255,255,255,0.03);
}

.payment-badge:hover {
  color: #fff;
  border-color: rgba(255,255,255,0.3);
  transform: translateY(-4px);
  background: rgba(255,255,255,0.07);
}

.payment-badge span {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.payment-qris { border-color: rgba(255, 51, 102, 0.3); }
.payment-qris:hover { color: #ff3366; border-color: rgba(255,51,102,0.6); box-shadow: 0 0 16px rgba(255,51,102,0.2); }

.payment-btc { border-color: rgba(247, 147, 26, 0.3); }
.payment-btc:hover { color: #f7931a; border-color: rgba(247,147,26,0.6); box-shadow: 0 0 16px rgba(247,147,26,0.2); }

.payment-eth { border-color: rgba(98, 126, 234, 0.3); }
.payment-eth:hover { color: #627EEA; border-color: rgba(98,126,234,0.6); box-shadow: 0 0 16px rgba(98,126,234,0.2); }

.payment-sol { border-color: rgba(20, 241, 149, 0.3); }
.payment-sol:hover { color: #14F195; border-color: rgba(20,241,149,0.6); box-shadow: 0 0 16px rgba(20,241,149,0.2); }

@keyframes payment-float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-5px); }
}

.payment-anim { animation: payment-float 3s ease-in-out infinite; }
.payment-anim:nth-child(2) { animation-delay: 0.3s; }
.payment-anim:nth-child(3) { animation-delay: 0.6s; }
.payment-anim:nth-child(4) { animation-delay: 0.9s; }
.payment-anim:nth-child(5) { animation-delay: 1.2s; }
.payment-anim:nth-child(6) { animation-delay: 1.5s; }
.payment-anim:hover { animation: none; transform: translateY(-4px); }

/* Light mode payment badges */
.theme-light .payment-badge {
  background: rgba(0,0,0,0.04);
  border-color: rgba(0,0,0,0.1);
  color: #475569;
}
.theme-light .payment-badge:hover { color: #0f172a; background: rgba(0,0,0,0.08); }

/* ========================================
   SOCIAL ICONS - Enhanced
   ======================================== */
.social-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255,255,255,0.1);
  background: rgba(255,255,255,0.05);
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.social-icon:hover {
  transform: translateY(-4px) scale(1.1);
  border-color: rgba(255,255,255,0.3);
}

.social-icon.instagram:hover { background: rgba(255,0,160,0.15); border-color: rgba(255,0,160,0.4); box-shadow: 0 6px 20px rgba(255,0,160,0.25); }
.social-icon.facebook:hover { background: rgba(0,128,255,0.15); border-color: rgba(0,128,255,0.4); box-shadow: 0 6px 20px rgba(0,128,255,0.25); }
.social-icon.tiktok:hover { background: rgba(0,255,136,0.15); border-color: rgba(0,255,136,0.4); box-shadow: 0 6px 20px rgba(0,255,136,0.25); }
.social-icon.telegram:hover { background: rgba(0,242,255,0.15); border-color: rgba(0,242,255,0.4); box-shadow: 0 6px 20px rgba(0,242,255,0.25); }
.social-icon.youtube:hover { background: rgba(255,51,102,0.15); border-color: rgba(255,51,102,0.4); box-shadow: 0 6px 20px rgba(255,51,102,0.25); }
.social-icon.twitter:hover { background: rgba(0,242,255,0.15); border-color: rgba(0,242,255,0.4); box-shadow: 0 6px 20px rgba(0,242,255,0.25); }
.social-icon.discord:hover { background: rgba(112,0,255,0.15); border-color: rgba(112,0,255,0.4); box-shadow: 0 6px 20px rgba(112,0,255,0.25); }
.social-icon.email:hover { background: rgba(0,255,136,0.15); border-color: rgba(0,255,136,0.4); box-shadow: 0 6px 20px rgba(0,255,136,0.25); }

/* ========================================
   LIGHT MODE - COMPREHENSIVE FIXES
   ======================================== */

.theme-light {
  background: #f1f5f9;
  color: #334155;
}

.theme-light body,
.theme-light main,
.theme-light section {
  color: #334155;
}

/* Nav in light mode */
.theme-light .nav-bg {
  background: rgba(255,255,255,0.98);
  box-shadow: 0 2px 20px rgba(0,0,0,0.08);
  border-bottom: 1px solid rgba(0,0,0,0.08);
}

.theme-light .nav-link {
  color: #334155 !important;
  font-weight: 500;
}

.theme-light .nav-link:hover {
  color: #0080ff !important;
  background: rgba(0,128,255,0.08);
}

/* Logo text in light mode */
.theme-light .font-display.font-bold.text-2xl { color: #0f172a !important; }

/* Theme/lang toggles in light mode */
.theme-light .theme-toggle,
.theme-light .lang-toggle {
  color: #334155;
  border-color: rgba(0,0,0,0.15);
}

.theme-light .theme-toggle:hover,
.theme-light .lang-toggle:hover {
  border-color: rgba(0,128,255,0.4);
  color: #0080ff;
}

/* Dropdown in light mode */
.theme-light .dropdown-menu {
  background: #fff;
  border: 1px solid rgba(0,0,0,0.1);
  box-shadow: 0 8px 32px rgba(0,0,0,0.12);
}

.theme-light .dropdown-item {
  color: #334155;
}

.theme-light .dropdown-item:hover {
  background: rgba(0,128,255,0.07);
}

.theme-light .dropdown-item .font-bold.text-sm {
  color: #0f172a !important;
}

.theme-light .dropdown-item .text-xs { color: #64748b !important; }
.theme-light .dropdown-item .text-white { color: #0f172a !important; }
.theme-light .dropdown-item .text-white\/50 { color: #64748b !important; }

/* Glass panels in light mode */
.theme-light .glass-panel {
  background: rgba(255,255,255,0.95) !important;
  border-color: rgba(0,0,0,0.08) !important;
  box-shadow: 0 4px 24px rgba(0,0,0,0.06) !important;
}

/* Hero section light mode */
.theme-light .hero-title .text-white { color: #0f172a !important; }
.theme-light .hero-title .gradient-text { background: linear-gradient(135deg, #0080ff, #7000ff) !important; -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }

/* Stats in light mode */
.theme-light .text-gray-400,
.theme-light .text-gray-500 { color: #64748b !important; }

/* Pricing in light mode */
.theme-light .pricing-card {
  background: rgba(255,255,255,0.95) !important;
  border: 1px solid rgba(0,0,0,0.06) !important;
  box-shadow: 0 4px 20px rgba(0,0,0,0.06) !important;
}

.theme-light .pricing-card h3.text-white { color: #0f172a !important; }
.theme-light .pricing-card .text-gray-300 { color: #475569 !important; }
.theme-light .pricing-card .text-gray-500 { color: #64748b !important; }

/* Features section light mode */
.theme-light .feature-card,
.theme-light .glass-panel h3,
.theme-light .glass-panel h2 { color: #0f172a !important; }

.theme-light .glass-panel p,
.theme-light .glass-panel li { color: #475569 !important; }

/* Calculator in light mode */
.theme-light .calculator-input {
  background: rgba(255,255,255,0.9) !important;
  border-color: rgba(0,0,0,0.15) !important;
  color: #0f172a !important;
}

.theme-light .result-card {
  background: rgba(255,255,255,0.9) !important;
  border-color: rgba(0,0,0,0.08) !important;
}

/* Footer in light mode */
.theme-light footer {
  background: rgba(255,255,255,0.95) !important;
  border-top-color: rgba(0,0,0,0.08) !important;
}

.theme-light .footer-link { color: #475569 !important; }
.theme-light .footer-link:hover { color: #0080ff !important; }
.theme-light footer .text-gray-400 { color: #64748b !important; }
.theme-light footer .text-gray-500 { color: #94a3b8 !important; }
.theme-light footer .text-white { color: #0f172a !important; }

/* Payment badges in light mode - handled above */

/* ========================================
   SCROLL ANIMATIONS
   ======================================== */

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

@keyframes fadeInLeft {
  from { opacity: 0; transform: translateX(-30px); }
  to { opacity: 1; transform: translateX(0); }
}

@keyframes fadeInRight {
  from { opacity: 0; transform: translateX(30px); }
  to { opacity: 1; transform: translateX(0); }
}

@keyframes scaleIn {
  from { opacity: 0; transform: scale(0.85); }
  to { opacity: 1; transform: scale(1); }
}

@keyframes glowPulse {
  0%, 100% { box-shadow: 0 0 20px rgba(0,242,255,0.2); }
  50% { box-shadow: 0 0 40px rgba(0,242,255,0.5), 0 0 60px rgba(0,242,255,0.2); }
}

@keyframes float-slow {
  0%, 100% { transform: translateY(0px) rotate(0deg); }
  33% { transform: translateY(-8px) rotate(1deg); }
  66% { transform: translateY(4px) rotate(-1deg); }
}

.animate-on-scroll {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.animate-on-scroll.visible {
  opacity: 1;
  transform: translateY(0);
}

.animate-on-scroll.delay-1 { transition-delay: 0.1s; }
.animate-on-scroll.delay-2 { transition-delay: 0.2s; }
.animate-on-scroll.delay-3 { transition-delay: 0.3s; }
.animate-on-scroll.delay-4 { transition-delay: 0.4s; }

/* Pulsing border on hero section */
@keyframes border-dance {
  0% { border-image-source: linear-gradient(0deg, #00f2ff, #7000ff, #ff00a0, #00f2ff); }
  25% { border-image-source: linear-gradient(90deg, #00f2ff, #7000ff, #ff00a0, #00f2ff); }
  50% { border-image-source: linear-gradient(180deg, #00f2ff, #7000ff, #ff00a0, #00f2ff); }
  75% { border-image-source: linear-gradient(270deg, #00f2ff, #7000ff, #ff00a0, #00f2ff); }
  100% { border-image-source: linear-gradient(360deg, #00f2ff, #7000ff, #ff00a0, #00f2ff); }
}

/* Trial button as anchor */
a.trial-button {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
}

/* Choose plan as anchor */
a.btn-choose-plan {
  display: block !important;
  text-align: center;
  text-decoration: none !important;
}

/**
 * SAP-Algo Theme Improvements Patch v1.0
 * Fixes: Light theme text, Auto-trade animation, Live chart, SMC Architect dropdown
 */

/* ============================================================
   1. LIGHT THEME — PRICING/FEATURE LIST TEXT FIX
   ============================================================ */

/* Force all list item text to dark on light theme */
.theme-light .pricing-card ul li,
.theme-light .pricing-card ul li span,
.theme-light .pricing-card ul li .text-gray-300,
.theme-light ul.space-y-3 li,
.theme-light ul.space-y-3 li span {
  color: #0f172a !important;
}

/* Menu / nav text when scrolled */
.theme-light .nav-bg .nav-link,
.theme-light .nav-bg a,
.theme-light nav a {
  color: #0f172a !important;
}

.theme-light .nav-bg .nav-link:hover,
.theme-light .nav-bg a:hover {
  color: #0080ff !important;
}

/* Fix any remaining text-white inside light theme */
.theme-light span.text-white,
.theme-light div.text-white,
.theme-light p.text-white,
.theme-light li.text-white {
  color: #0f172a !important;
}

/* Feature cards and glass panels in light theme */
.theme-light .glass-panel .text-gray-300,
.theme-light .glass-panel .text-gray-400 {
  color: #334155 !important;
}

/* Fix badge/label readability */
.theme-light .ea-version-badge {
  background: rgba(0, 128, 255, 0.1) !important;
  border-color: rgba(0, 128, 255, 0.3) !important;
}

/* Status panel in light mode */
.theme-light .status-row {
  background: rgba(255, 255, 255, 0.95) !important;
  border-color: rgba(0, 0, 0, 0.1) !important;
  color: #0f172a !important;
}

/* ============================================================
   2. AUTO-TRADE OVERLAY — ZOOM-IN THEN SHRINK TO TOP-LEFT
   ============================================================ */

/* ── AUTO TRADE OVERLAY — Smooth Entrance Animation ── */
@keyframes autotrade-entrance {
  0% {
    opacity: 0;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(1.5);
    padding: 30px 60px;
  }
  20% {
    opacity: 1;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(1.02);
    padding: 25px 50px;
  }
  50% {
    opacity: 1;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(1);
    padding: 25px 50px;
  }
  75% {
    opacity: 0.98;
    top: 28%;
    left: 20%;
    transform: translate(-40%, -50%) scale(0.85);
    padding: 15px 30px;
  }
  100% {
    opacity: 0.95;
    top: 12px;
    left: 12px;
    transform: translate(0, 0) scale(0.7);
    padding: 8px 16px;
    transform-origin: top left;
  }
}

@keyframes autotrade-idle {
  0%, 100% { opacity: 0.88; filter: brightness(0.95); }
  50% { opacity: 1; filter: brightness(1.05); }
}

.auto-trade-overlay {
  will-change: transform, opacity, top, left, padding;
  animation: autotrade-entrance 5s cubic-bezier(0.25, 0.46, 0.45, 0.94) 0.6s forwards !important;
  transform-origin: top left;
  transition: none;
}

/* After animation settles at top-left, keep it small */
.auto-trade-overlay.settled {
  top: 12px !important;
  left: 12px !important;
  transform: translate(0,0) scale(0.7) !important;
  transform-origin: top left !important;
  padding: 8px 16px !important;
  animation: autotrade-idle 4s ease-in-out infinite !important;
}

.auto-trade-overlay.settled .auto-trade-title {
  font-size: 1rem !important;
  letter-spacing: 2px !important;
  margin-bottom: 2px !important;
}

.auto-trade-overlay.settled .auto-trade-subtitle {
  font-size: 0.6rem !important;
  letter-spacing: 4px !important;
}

/* ============================================================
   3. LIVE CHART — CANVAS-BASED ANIMATED CHART STYLES
   ============================================================ */

/* Replace old static candlestick container with canvas chart */
.tv-chart-area .candlestick-container {
  display: none !important;
}

.tv-live-canvas-wrapper {
  position: absolute;
  inset: 0;
  z-index: 5;
}

#liveChartCanvas {
  width: 100%;
  height: 100%;
  display: block;
}

/* Animated signal bubbles (injected via JS) */
.signal-bubble {
  position: absolute;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  pointer-events: none;
  z-index: 30;
  animation: signal-pop 0.4s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

@keyframes signal-pop {
  0% { transform: translateX(-50%) scale(0); opacity: 0; }
  60% { transform: translateX(-50%) scale(1.2); opacity: 1; }
  100% { transform: translateX(-50%) scale(1); opacity: 1; }
}

.signal-bubble.buy-signal {
  animation: signal-pop-up 0.5s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

.signal-bubble.sell-signal {
  animation: signal-pop-down 0.5s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

@keyframes signal-pop-up {
  0% { transform: translateX(-50%) translateY(20px) scale(0); opacity: 0; }
  70% { transform: translateX(-50%) translateY(-5px) scale(1.15); opacity: 1; }
  100% { transform: translateX(-50%) translateY(0) scale(1); opacity: 1; }
}

@keyframes signal-pop-down {
  0% { transform: translateX(-50%) translateY(-20px) scale(0); opacity: 0; }
  70% { transform: translateX(-50%) translateY(5px) scale(1.15); opacity: 1; }
  100% { transform: translateX(-50%) translateY(0) scale(1); opacity: 1; }
}

.signal-bubble.fade-out {
  animation: signal-fade 1s ease forwards;
}

@keyframes signal-fade {
  0% { opacity: 1; transform: scale(1) translateY(0); }
  100% { opacity: 0; transform: scale(0.8) translateY(-10px); }
}

.signal-bubble .signal-arrow {
  width: 0;
  height: 0;
}

.signal-bubble.buy-signal .signal-arrow {
  border-left: 6px solid transparent;
  border-right: 6px solid transparent;
  border-top: 8px solid #26a69a;
  order: 2;
}

.signal-bubble.sell-signal .signal-arrow {
  border-left: 6px solid transparent;
  border-right: 6px solid transparent;
  border-bottom: 8px solid #ef5350;
  order: 1;
}

.signal-bubble .signal-tag {
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 2px;
  padding: 4px 12px;
  border-radius: 4px;
  white-space: nowrap;
}

.signal-bubble.buy-signal .signal-tag {
  background: rgba(38,166,154,0.95);
  color: #fff;
  border: 1px solid #26a69a;
  box-shadow: 0 0 12px rgba(38,166,154,0.6);
  order: 1;
  animation: signal-glow-buy 1.5s ease-in-out infinite;
}

.signal-bubble.sell-signal .signal-tag {
  background: rgba(239,83,80,0.95);
  color: #fff;
  border: 1px solid #ef5350;
  box-shadow: 0 0 12px rgba(239,83,80,0.6);
  order: 2;
  animation: signal-glow-sell 1.5s ease-in-out infinite;
}

@keyframes signal-glow-buy {
  0%, 100% { box-shadow: 0 0 8px rgba(38,166,154,0.5); }
  50% { box-shadow: 0 0 20px rgba(38,166,154,0.9), 0 0 30px rgba(38,166,154,0.4); }
}

@keyframes signal-glow-sell {
  0%, 100% { box-shadow: 0 0 8px rgba(239,83,80,0.5); }
  50% { box-shadow: 0 0 20px rgba(239,83,80,0.9), 0 0 30px rgba(239,83,80,0.4); }
}

/* Live price ticker animation */
@keyframes price-tick {
  0% { transform: translateY(100%); opacity: 0; }
  30% { transform: translateY(0); opacity: 1; }
  70% { transform: translateY(0); opacity: 1; }
  100% { transform: translateY(-100%); opacity: 0; }
}

.live-price-value.ticking {
  display: inline-block;
  animation: price-tick 0.4s ease;
}

/* ============================================================
   4. SMC ARCHITECT — IMPROVED DROPDOWN UI/UX
   ============================================================ */

/* Custom select wrapper */
.smc-select-wrapper {
  position: relative;
  width: 100%;
}

.smc-select-wrapper::after {
  content: '';
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%) rotate(45deg);
  width: 8px;
  height: 8px;
  border-right: 2px solid var(--smc-primary);
  border-bottom: 2px solid var(--smc-primary);
  pointer-events: none;
  transition: transform 0.2s ease;
}

.smc-select-wrapper:focus-within::after {
  transform: translateY(-50%) rotate(-135deg);
}

.smc-select {
  appearance: none !important;
  -webkit-appearance: none !important;
  -moz-appearance: none !important;
  width: 100% !important;
  background: rgba(0, 0, 0, 0.5) !important;
  border: 1.5px solid rgba(0, 242, 255, 0.2) !important;
  border-radius: 0.625rem !important;
  padding: 0.65rem 2.5rem 0.65rem 1rem !important;
  color: #e2e8f0 !important;
  font-size: 0.875rem !important;
  font-family: var(--smc-font-sans) !important;
  outline: none !important;
  cursor: pointer !important;
  transition: border-color 0.25s ease, box-shadow 0.25s ease, background 0.25s ease !important;
  line-height: 1.5 !important;
}

.smc-select:hover {
  border-color: rgba(0, 242, 255, 0.5) !important;
  background: rgba(0, 10, 20, 0.7) !important;
}

.smc-select:focus {
  border-color: var(--smc-primary) !important;
  box-shadow: 0 0 0 3px rgba(0, 242, 255, 0.15), 0 0 20px rgba(0, 242, 255, 0.1) !important;
  background: rgba(0, 15, 30, 0.85) !important;
}

.smc-select option {
  background: #0a0f1a !important;
  color: #e2e8f0 !important;
  padding: 8px 12px !important;
}

/* Styled label above selects */
.smc-form-label {
  display: block;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--smc-primary);
  margin-bottom: 6px;
  font-family: var(--smc-font-sans);
}

/* Group wrapper for form field + label */
.smc-field-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 1rem;
}

/* Option card improvements */
.smc-option-card {
  position: relative;
  background: rgba(0, 0, 0, 0.4) !important;
  border: 1.5px solid rgba(0, 242, 255, 0.12) !important;
  border-radius: 1rem !important;
  padding: 1.25rem 1rem !important;
  cursor: pointer !important;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1) !important;
  text-align: center !important;
  overflow: hidden !important;
}

.smc-option-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(0,242,255,0.05), transparent);
  opacity: 0;
  transition: opacity 0.25s ease;
}

.smc-option-card:hover {
  border-color: rgba(0, 242, 255, 0.5) !important;
  transform: translateY(-2px) !important;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3), 0 0 20px rgba(0, 242, 255, 0.1) !important;
}

.smc-option-card:hover::before {
  opacity: 1;
}

.smc-option-card.selected-option {
  border-color: var(--smc-primary) !important;
  background: rgba(0, 242, 255, 0.08) !important;
  box-shadow: 0 0 0 2px rgba(0, 242, 255, 0.2), 0 0 30px rgba(0, 242, 255, 0.15) !important;
}

.smc-option-card.selected-option::after {
  content: '✓';
  position: absolute;
  top: 6px;
  right: 10px;
  font-size: 10px;
  color: var(--smc-primary);
  font-weight: 900;
}

/* Button-style options */
.smc-option-btn {
  display: flex !important;
  align-items: center !important;
  gap: 0.5rem !important;
  background: rgba(0, 0, 0, 0.4) !important;
  border: 1.5px solid rgba(0, 242, 255, 0.12) !important;
  border-radius: 0.75rem !important;
  padding: 0.75rem 1rem !important;
  cursor: pointer !important;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1) !important;
  color: #e2e8f0 !important;
  font-size: 0.875rem !important;
  font-family: var(--smc-font-sans) !important;
  width: 100% !important;
}

.smc-option-btn:hover {
  border-color: rgba(0, 242, 255, 0.5) !important;
  background: rgba(0, 242, 255, 0.06) !important;
  transform: translateX(3px) !important;
}

.smc-option-btn.selected-option {
  border-color: var(--smc-primary) !important;
  background: rgba(0, 242, 255, 0.1) !important;
  color: var(--smc-primary) !important;
  box-shadow: 0 0 15px rgba(0, 242, 255, 0.1) !important;
}

.smc-option-btn i {
  font-size: 1.1rem !important;
  transition: color 0.2s ease !important;
  color: var(--smc-text-muted) !important;
}

.smc-option-btn.selected-option i,
.smc-option-btn:hover i {
  color: var(--smc-primary) !important;
}

/* Notification dropdown */
.smc-notif-dropdown {
  background: rgba(10, 15, 30, 0.98) !important;
  border: 1.5px solid rgba(0, 242, 255, 0.2) !important;
  border-radius: 1rem !important;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5), 0 0 40px rgba(0, 242, 255, 0.08) !important;
  backdrop-filter: blur(20px) !important;
  overflow: hidden !important;
  animation: dropdown-slide-in 0.2s cubic-bezier(0.34, 1.56, 0.64, 1) !important;
}

@keyframes dropdown-slide-in {
  from {
    opacity: 0;
    transform: translateY(-8px) scale(0.96);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

/* Multi-select style dropdown */
.smc-custom-dropdown {
  position: relative;
  width: 100%;
}

.smc-dropdown-trigger {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  background: rgba(0, 0, 0, 0.5);
  border: 1.5px solid rgba(0, 242, 255, 0.2);
  border-radius: 0.625rem;
  padding: 0.65rem 1rem;
  color: #e2e8f0;
  font-size: 0.875rem;
  cursor: pointer;
  transition: all 0.2s ease;
  font-family: var(--smc-font-sans);
}

.smc-dropdown-trigger:hover {
  border-color: rgba(0, 242, 255, 0.5);
  background: rgba(0, 10, 20, 0.7);
}

.smc-dropdown-trigger.open {
  border-color: var(--smc-primary);
  border-radius: 0.625rem 0.625rem 0 0;
  box-shadow: 0 0 0 3px rgba(0, 242, 255, 0.12);
}

.smc-dropdown-trigger .chevron {
  width: 16px;
  height: 16px;
  border-right: 2px solid var(--smc-primary);
  border-bottom: 2px solid var(--smc-primary);
  transform: rotate(45deg);
  transition: transform 0.2s ease;
  flex-shrink: 0;
}

.smc-dropdown-trigger.open .chevron {
  transform: rotate(-135deg);
}

.smc-dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: rgba(6, 10, 20, 0.98);
  border: 1.5px solid var(--smc-primary);
  border-top: none;
  border-radius: 0 0 0.625rem 0.625rem;
  z-index: 1000;
  max-height: 220px;
  overflow-y: auto;
  box-shadow: 0 16px 40px rgba(0,0,0,0.5), 0 0 30px rgba(0,242,255,0.08);
  display: none;
  scrollbar-width: thin;
  scrollbar-color: rgba(0,242,255,0.3) transparent;
}

.smc-dropdown-menu.open {
  display: block;
  animation: dropdown-slide-in 0.18s ease;
}

.smc-dropdown-menu::-webkit-scrollbar {
  width: 4px;
}

.smc-dropdown-menu::-webkit-scrollbar-track {
  background: transparent;
}

.smc-dropdown-menu::-webkit-scrollbar-thumb {
  background: rgba(0,242,255,0.3);
  border-radius: 2px;
}

.smc-dropdown-option {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.6rem 1rem;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease;
  color: #cbd5e1;
  font-size: 0.875rem;
  font-family: var(--smc-font-sans);
  border-bottom: 1px solid rgba(0,242,255,0.05);
}

.smc-dropdown-option:last-child {
  border-bottom: none;
}

.smc-dropdown-option:hover {
  background: rgba(0,242,255,0.08);
  color: #e2e8f0;
}

.smc-dropdown-option.selected {
  background: rgba(0,242,255,0.12);
  color: var(--smc-primary);
}

.smc-dropdown-option .option-check {
  width: 16px;
  height: 16px;
  border: 1.5px solid rgba(0,242,255,0.3);
  border-radius: 4px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.15s ease;
}

.smc-dropdown-option.selected .option-check {
  background: var(--smc-primary);
  border-color: var(--smc-primary);
}

.smc-dropdown-option.selected .option-check::after {
  content: '';
  width: 8px;
  height: 6px;
  border-left: 2px solid #000;
  border-bottom: 2px solid #000;
  transform: rotate(-45deg) translateY(-1px);
}

/* ============================================================
   5. LIVE CHART — NEW ANIMATED CANVAS CHART
      (Used by JavaScript chart engine)
   ============================================================ */

.tv-chart-area {
  position: relative;
  overflow: hidden;
}

.chart-crosshair {
  position: absolute;
  pointer-events: none;
  z-index: 20;
}

.chart-crosshair-x {
  position: absolute;
  left: 0;
  right: 0;
  height: 1px;
  background: rgba(255,255,255,0.15);
  pointer-events: none;
}

.chart-crosshair-y {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 1px;
  background: rgba(255,255,255,0.15);
  pointer-events: none;
}

/* Price tooltip */
.chart-price-tooltip {
  position: absolute;
  background: rgba(19,23,34,0.95);
  border: 1px solid rgba(0,242,255,0.3);
  border-radius: 4px;
  padding: 4px 8px;
  font-family: var(--font-mono);
  font-size: 10px;
  color: #00f2ff;
  pointer-events: none;
  z-index: 30;
  white-space: nowrap;
}

/* New live candle glow */
@keyframes live-candle-glow {
  0%, 100% { filter: brightness(1); }
  50% { filter: brightness(1.3); }
}

.live-candle {
  animation: live-candle-glow 1.2s ease-in-out infinite;
}

/* Pulse ring on signal */
@keyframes signal-ring {
  0% { transform: scale(1); opacity: 0.8; }
  100% { transform: scale(2.5); opacity: 0; }
}

.signal-ring {
  position: absolute;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  border: 2px solid currentColor;
  animation: signal-ring 1.2s ease-out infinite;
}

/* ============================================================
   ADDITIONAL LIGHT THEME CRITICAL TEXT FIXES
   ============================================================ */

/* Pricing card list items — make fully black */
.theme-light .pricing-card ul li,
.theme-light .pricing-card ul li span[data-i18n],
.theme-light .pricing-card .space-y-3 li span {
  color: #111827 !important;
}

/* Feature cards */
.theme-light .glass-panel li span,
.theme-light .glass-panel li .text-gray-300 {
  color: #1e293b !important;
}

/* Nav scroll fix — always dark text on white nav in light mode */
.theme-light .nav-bg,
.theme-light nav.nav-bg {
  background: rgba(255, 255, 255, 1) !important;
  border-bottom: 1px solid rgba(0, 0, 0, 0.08) !important;
}

.theme-light nav .nav-link,
.theme-light nav a.nav-link {
  color: #1e293b !important;
  font-weight: 500 !important;
}

.theme-light nav .nav-link:hover {
  color: #0080ff !important;
}

/* Theme toggle button text fix */
.theme-light .theme-toggle-btn,
.theme-light [class*="theme-toggle"] {
  color: #0f172a !important;
}

/* ============================================================
   AUTO-TRADE OVERLAY — SETTLE FIX
   ============================================================ */

/* Ensure the settled class overrides everything */
.auto-trade-overlay.settled {
  position: absolute !important;
  top: 12px !important;
  left: 12px !important;
  transform: scale(0.65) !important;
  transform-origin: top left !important;
  padding: 8px 14px !important;
  animation: autotrade-idle 4s ease-in-out infinite !important;
}
