/* Base Variables & Theme */
:root {
  /* Colors */
  --bg-dark: #07090F;
  --bg-card: rgba(15, 20, 35, 0.6);
  --bg-card-hover: rgba(25, 30, 50, 0.8);
  --text-primary: #ffffff;
  --text-secondary: #94A3B8;
  --text-muted: #64748B;

  /* Gradients */
  --primary: #00F0FF;
  --secondary: #7000FF;
  --accent: #39FF14;
  --gradient-main: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
  --gradient-glow: linear-gradient(135deg, rgba(0, 240, 255, 0.4) 0%, rgba(112, 0, 255, 0.4) 100%);

  /* Glassmorphism */
  --glass-border: 1px solid rgba(255, 255, 255, 0.1);
  --glass-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
  --backdrop-blur: blur(12px);

  /* Typography */
  --font-heading: 'Outfit', sans-serif;
  --font-body: 'Inter', sans-serif;

  /* Spacing */
  --section-pd: 6rem 0;

  /* Transitions */
  --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
  --transition-slow: all 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  width: 100% !important;
  max-width: 100% !important;
  overflow-x: hidden !important;
  position: relative;
}

body {
  font-family: var(--font-body);
  background-color: var(--bg-dark);
  color: var(--text-primary);
  line-height: 1.6;
  cursor: none;
  /* Custom cursor */
  background-image: radial-gradient(circle at 15% 50%, rgba(112, 0, 255, 0.05), transparent 40%),
    radial-gradient(circle at 85% 30%, rgba(0, 240, 255, 0.05), transparent 40%);
}

/* Custom Cursor */
.cursor {
  width: 8px;
  height: 8px;
  background-color: var(--primary);
  border-radius: 50%;
  position: fixed;
  top: 0;
  left: 0;
  pointer-events: none;
  z-index: 9999;
  transform: translate(-50%, -50%);
  transition: width 0.2s, height 0.2s, background-color 0.2s;
}

.cursor-follower {
  width: 40px;
  height: 40px;
  border: 1px solid rgba(0, 240, 255, 0.4);
  background-color: rgba(0, 240, 255, 0.05);
  border-radius: 50%;
  position: fixed;
  top: 0;
  left: 0;
  pointer-events: none;
  z-index: 9998;
  transform: translate(-50%, -50%);
  transition: transform 0.1s ease-out, width 0.2s, height 0.2s, background-color 0.2s;
}

body:hover .cursor,
body:hover .cursor-follower {
  opacity: 1;
}

/* Typography Utility */
h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.2;
}

.gradient-text {
  background: var(--gradient-main);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.section-title {
  font-size: clamp(2rem, 4vw, 3.5rem);
  margin-bottom: 1rem;
}

.section-desc {
  font-size: 1.125rem;
  color: var(--text-secondary);
  max-width: 600px;
  margin: 0 auto 3rem;
}

.text-center {
  text-align: center;
}

/* Container & Layout */
.container {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.section {
  padding: var(--section-pd);
  position: relative;
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  font-family: var(--font-heading);
  font-weight: 600;
  text-decoration: none;
  border-radius: 50px;
  font-size: 1rem;
  transition: var(--transition);
  cursor: pointer;
  border: none;
  text-align: center;
}

.btn-primary {
  background: var(--gradient-main);
  color: #fff;
  box-shadow: 0 4px 15px rgba(112, 0, 255, 0.3);
}

.btn-primary:hover {
  box-shadow: 0 6px 25px rgba(0, 240, 255, 0.4);
  transform: translateY(-2px);
}

.btn-outline {
  background: transparent;
  color: white;
  border: 1px solid rgba(255, 255, 255, 0.3);
}

.btn-outline:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: var(--primary);
  transform: translateY(-2px);
}

.btn-ghost {
  background: transparent;
  color: white;
  padding-left: 0;
  padding-right: 0;
}

.btn-ghost:hover {
  color: var(--primary);
}

.btn-ghost .play-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  margin-right: 8px;
  font-size: 0.8rem;
  color: var(--primary);
  transition: var(--transition);
}

.btn-ghost:hover .play-icon {
  background: var(--primary);
  color: #000;
  box-shadow: 0 0 15px var(--primary);
}

.btn-lg {
  padding: 1rem 2rem;
  font-size: 1.1rem;
}

.btn-block {
  display: block;
  width: 100%;
}

/* Glass Card */
.glass-card {
  background: var(--bg-card);
  backdrop-filter: var(--backdrop-blur);
  -webkit-backdrop-filter: var(--backdrop-blur);
  border: var(--glass-border);
  border-radius: 20px;
  box-shadow: var(--glass-shadow);
  color: var(--text-primary);
}

/* Navigation */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  padding: 1rem 0;
  transition: var(--transition);
}

.navbar.scrolled {
  background: rgba(7, 9, 15, 0.8);
  backdrop-filter: var(--backdrop-blur);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  text-decoration: none;
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  gap: 8px;
  color: white;
}

.logo-icon {
  width: 30px;
  height: 30px;
  background: var(--gradient-main);
  border-radius: 8px;
  position: relative;
  overflow: hidden;
}

.logo-icon::after {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: linear-gradient(rgba(255, 255, 255, 0.2), transparent);
  transform: rotate(45deg);
}

.nav-links {
  display: flex;
  list-style: none;
  gap: 2rem;
}

.nav-links a {
  color: var(--text-primary);
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 500;
  transition: var(--transition);
  position: relative;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--gradient-main);
  transition: var(--transition);
}

.nav-links a:hover::after,
.nav-links a.active::after {
  width: 100%;
}

.nav-links a:hover {
  color: var(--primary);
}

.nav-actions {
  display: flex;
  gap: 1rem;
}

/* Base Mobile Menu Styling (Hidden on Desktop) */
.mobile-menu-btn {
  display: none;
  background: transparent;
  border: none;
  cursor: pointer;
  flex-direction: column;
  gap: 6px;
  z-index: 1001;
}

.mobile-menu-btn span {
  display: block;
  width: 25px;
  height: 2px;
  background-color: var(--text-primary);
  transition: var(--transition);
}

.mobile-actions {
  display: none;
  align-items: center;
  gap: 1rem;
}

.mobile-action-btn {
  background: transparent;
  border: none;
  font-size: 1.5rem;
  color: var(--text-primary);
  cursor: pointer;
  transition: var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
}

.mobile-action-btn:hover {
  color: var(--primary);
}

.mobile-start-btn {
  padding: 0.5rem 0.9rem !important;
  font-size: 0.8rem !important;
  margin-right: 5px;
}

.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: 6rem;
}

.hero-bg-glow {
  position: absolute;
  top: -10%;
  right: -10%;
  width: 50vw;
  height: 50vw;
  background: radial-gradient(circle, rgba(112, 0, 255, 0.15) 0%, transparent 70%);
  filter: blur(80px);
  z-index: -1;
  border-radius: 50%;
  pointer-events: none;
}

.hero-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.hero-content {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.badge {
  display: inline-block;
  padding: 0.5rem 1rem;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 30px;
  font-size: 0.85rem;
  color: var(--primary);
  width: fit-content;
}

.hero-title {
  font-size: clamp(2.5rem, 5vw, 4.5rem);
  letter-spacing: -1px;
}

.type-effect {
  display: inline-block;
  border-right: 2px solid var(--primary);
  padding-right: 5px;
  animation: blink 0.75s step-end infinite;
}

@keyframes blink {
  50% {
    border-color: transparent;
  }
}

.hero-subtitle {
  font-size: 1.1rem;
  color: var(--text-secondary);
  max-width: 90%;
  margin-bottom: 1rem;
}

.hero-cta {
  display: flex;
  gap: 1.5rem;
  align-items: center;
}

.hero-stats {
  display: flex;
  gap: 3rem;
  margin-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 2rem;
}

.stat-value {
  font-size: 1.8rem;
  font-family: var(--font-heading);
  background: var(--gradient-main);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.stat-label {
  font-size: 0.9rem;
  color: var(--text-muted);
}

.hero-visual {
  position: relative;
  height: 500px;
}

.main-chart-card {
  width: 100%;
  height: 350px;
  padding: 1.5rem;
  position: relative;
  z-index: 2;
  transform: perspective(1000px) rotateY(-5deg) rotateX(5deg);
  transition: transform 0.5s ease;
}

.main-chart-card:hover {
  transform: perspective(1000px) rotateY(0deg) rotateX(0deg);
}

.card-header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 2rem;
}

.dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
}

.dot.red {
  background: #FF5F56;
}

.dot.yellow {
  background: #FFBD2E;
}

.dot.green {
  background: #27C93F;
}

.card-title {
  margin-left: 10px;
  font-size: 0.9rem;
  color: var(--text-secondary);
  font-family: var(--font-heading);
}

.chart-container {
  height: 180px;
  width: 100%;
  position: relative;
}

.chart-svg {
  width: 100%;
  height: 100%;
  overflow: visible;
}

.chart-line {
  stroke-dasharray: 200;
  stroke-dashoffset: 200;
  animation: drawLine 3s ease forwards;
}

@keyframes drawLine {
  to {
    stroke-dashoffset: 0;
  }
}

.chart-area {
  opacity: 0;
  animation: fadeArea 1.5s ease forwards 1s;
}

@keyframes fadeArea {
  to {
    opacity: 1;
  }
}

.pulse-point {
  width: 10px;
  height: 10px;
  background: var(--primary);
  border-radius: 50%;
  position: absolute;
  right: 0;
  top: 10px;
  /* Aligned roughly with path end */
  box-shadow: 0 0 10px var(--primary);
  animation: pulsePoint 1.5s infinite;
  opacity: 0;
  animation: pulsePoint 1.5s infinite forwards 1.2s;
}

@keyframes pulsePoint {
  0% {
    box-shadow: 0 0 0 0 rgba(0, 240, 255, 0.7);
  }

  70% {
    box-shadow: 0 0 0 15px rgba(0, 240, 255, 0);
  }

  100% {
    box-shadow: 0 0 0 0 rgba(0, 240, 255, 0);
  }
}

.trade-stats {
  display: flex;
  justify-content: space-between;
  margin-top: 1.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.ts-item {
  font-family: var(--font-heading);
  font-size: 1.1rem;
}

.ts-item.profit {
  color: var(--accent);
  display: flex;
  align-items: center;
  gap: 5px;
}

/* Floating Cards */
.floating-card {
  position: absolute;
  padding: 1rem;
  display: flex;
  align-items: center;
  gap: 15px;
  z-index: 3;
  animation: float 6s ease-in-out infinite;
}

.card-1 {
  top: -20px;
  right: -20px;
}

.card-2 {
  bottom: 50px;
  left: -40px;
  animation-delay: -3s;
}

.icon-box {
  width: 40px;
  height: 40px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
}

.fc-info h4 {
  font-size: 0.9rem;
  margin-bottom: 2px;
}

.fc-info p {
  font-size: 0.8rem;
  color: var(--text-secondary);
}

@keyframes float {
  0% {
    transform: translateY(0px);
  }

  50% {
    transform: translateY(-15px);
  }

  100% {
    transform: translateY(0px);
  }
}

/* Markets TV Widget */
.tv-widget-container {
  height: 600px;
  width: 100%;
  margin-top: 3rem;
  padding: 1.5rem;
  border-radius: 20px;
  overflow: hidden;
}

@media (max-width: 768px) {
  .tv-widget-container {
    height: 450px;
    padding: 0.5rem;
  }
}

/* Features Sec */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  margin-top: 4rem;
}

.feature-card {
  background: var(--bg-card);
  border: var(--glass-border);
  border-radius: 20px;
  padding: 2.5rem 1.5rem;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
  text-align: center;
}

.feature-card:hover {
  transform: translateY(-10px);
  background: var(--bg-card-hover);
  border-color: rgba(0, 240, 255, 0.3);
}

.feature-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at center, rgba(112, 0, 255, 0.1) 0%, transparent 60%);
  opacity: 0;
  transition: var(--transition);
}

.feature-card:hover::before {
  opacity: 1;
}

.feature-icon-wrapper {
  width: 70px;
  height: 70px;
  margin: 0 auto 1.5rem;
  background: rgba(255, 255, 255, 0.03);
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  position: relative;
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: var(--transition);
}

.feature-card:hover .feature-icon-wrapper {
  background: rgba(0, 240, 255, 0.1);
  transform: scale(1.1) rotate(5deg);
}

.feature-title {
  font-size: 1.25rem;
  margin-bottom: 1rem;
}

.feature-text {
  color: var(--text-secondary);
  font-size: 0.95rem;
}

/* Journey Sec */
.journey-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
  margin-top: 4rem;
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
  position: relative;
}

/* Futuristic Animated Line (Desktop only) */
@media (min-width: 1025px) {
  .journey-grid::before {
    content: '';
    position: absolute;
    top: 45px;
    left: 80px;
    right: 80px;
    height: 2px;
    background: rgba(255, 255, 255, 0.05);
    z-index: 0;
  }

  /* Animated Light Particle */
  .journey-grid::after {
    content: '';
    position: absolute;
    top: 45px;
    left: 80px;
    width: 100px;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--primary), transparent);
    z-index: 1;
    animation: flowLight 5s infinite linear;
    filter: blur(1px);
  }
}

@keyframes flowLight {
  0% {
    left: 80px;
    width: 0;
    opacity: 0;
  }

  10% {
    opacity: 1;
    width: 100px;
  }

  90% {
    opacity: 1;
    width: 100px;
  }

  100% {
    left: calc(100% - 180px);
    opacity: 0;
  }
}

.journey-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 1.5rem;
  background: var(--bg-card);
  border: var(--glass-border);
  border-radius: 20px;
  padding: 2rem 1.5rem;
  transition: var(--transition);
  position: relative;
  z-index: 2;
}

.journey-step:hover {
  transform: translateY(-10px);
  border-color: var(--primary);
  box-shadow: 0 10px 30px rgba(0, 240, 255, 0.1);
}

.step-number {
  width: 50px;
  height: 50px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--gradient-main);
  border-radius: 50%;
  font-family: var(--font-heading);
  font-size: 1.2rem;
  font-weight: 800;
  color: white;
  box-shadow: 0 0 20px rgba(0, 240, 255, 0.3);
  position: relative;
  border: 4px solid var(--bg-dark);
  animation: stepGlow 5s infinite ease-in-out;
}

/* Staggered glow animations for steps 1-5 */
.journey-step:nth-child(1) .step-number {
  animation-delay: 0s;
}

.journey-step:nth-child(2) .step-number {
  animation-delay: 1s;
}

.journey-step:nth-child(3) .step-number {
  animation-delay: 2s;
}

.journey-step:nth-child(4) .step-number {
  animation-delay: 3s;
}

.journey-step:nth-child(5) .step-number {
  animation-delay: 4s;
}

@keyframes stepGlow {

  0%,
  15%,
  100% {
    box-shadow: 0 0 20px rgba(0, 240, 255, 0.3);
    scale: 1;
    border-color: var(--bg-dark);
  }

  5%,
  10% {
    box-shadow: 0 0 40px var(--primary);
    scale: 1.1;
    border-color: var(--primary);
  }
}

.step-content h3 {
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
  color: #fff;
}

.step-content p {
  color: var(--text-secondary);
  font-size: 0.85rem;
  line-height: 1.4;
}

@media (max-width: 1024px) {
  .journey-grid {
    grid-template-columns: 1fr;
    max-width: 600px;
    padding-left: 40px;
    /* Space for the vertical line */
  }

  /* Vertical Animated Line for Mobile */
  .journey-grid::before {
    content: '';
    position: absolute;
    top: 20px;
    bottom: 20px;
    left: 44px;
    width: 2px;
    background: rgba(255, 255, 255, 0.05);
    z-index: 0;
    display: block;
  }

  .journey-grid::after {
    content: '';
    position: absolute;
    top: 20px;
    left: 44px;
    width: 2px;
    height: 100px;
    background: linear-gradient(180deg, transparent, var(--primary), transparent);
    z-index: 1;
    animation: flowLightMobile 5s infinite linear;
    filter: blur(1px);
    display: block;
  }

  .journey-step {
    flex-direction: row;
    text-align: left;
    padding: 1.5rem;
    margin-left: 20px;
  }

  .journey-step:hover {
    transform: translateX(10px);
  }

  .step-number {
    z-index: 2;
    /* Re-enable glow and adjust size for mobile */
    width: 40px;
    height: 40px;
    font-size: 1rem;
    border-width: 3px;
  }
}

@keyframes flowLightMobile {
  0% {
    top: 20px;
    height: 0;
    opacity: 0;
  }

  10% {
    opacity: 1;
    height: 100px;
  }

  90% {
    opacity: 1;
    height: 100px;
  }

  100% {
    top: calc(100% - 120px);
    opacity: 0;
  }
}

/* FAQ Sec */
.faq-container {
  max-width: 800px;
  margin: 4rem auto 0;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.faq-item {
  background: var(--bg-card);
  border: var(--glass-border);
  border-radius: 12px;
  overflow: hidden;
  transition: var(--transition);
}

.faq-item:hover {
  border-color: rgba(0, 240, 255, 0.3);
}

.faq-item[open] {
  background: var(--bg-card-hover);
  border-color: var(--primary);
}

.faq-question {
  padding: 1.5rem;
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  list-style: none;
}

.faq-question::-webkit-details-marker {
  display: none;
}

.faq-icon {
  font-size: 1.5rem;
  color: var(--primary);
  transition: transform 0.3s ease;
}

.faq-item[open] .faq-icon {
  transform: rotate(45deg);
}

.faq-answer {
  padding: 0 1.5rem 1.5rem;
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.6;
}

/* About Section */
.about-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: center;
}

.about-visual {
  position: relative;
}

.about-image-wrapper {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.about-video-embed {
  width: 100%;
  aspect-ratio: 16 / 9;
  border: none;
  display: block;
  position: relative;
  z-index: 50 !important;
  pointer-events: auto !important;
}

/* Fallback for old browsers not supporting aspect-ratio */
@supports not (aspect-ratio: 16 / 9) {
  .about-video-embed {
    height: 400px;
    /* Fallback height */
  }
}

.abstract-shape {
  position: absolute;
  background: var(--gradient-main);
  filter: blur(40px);
  z-index: -1;
  border-radius: 50%;
  opacity: 0.5;
}

.shape-1 {
  width: 200px;
  height: 200px;
  top: -30px;
  left: -30px;
}

.shape-2 {
  width: 150px;
  height: 150px;
  bottom: -20px;
  right: -20px;
  background: var(--primary);
  opacity: 0.4;
}

.experience-badge {
  position: absolute;
  bottom: -20px;
  right: -20px;
  padding: 1.5rem;
  text-align: center;
  border-radius: 20px;
  background: rgba(7, 9, 15, 0.8);
  pointer-events: auto;
  z-index: 60;
  text-decoration: none;
  transition: var(--transition);
}

.experience-badge .years {
  display: block;
  font-size: 2.5rem;
  font-family: var(--font-heading);
  font-weight: 800;
  background: var(--gradient-main);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.experience-badge .text {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.about-content {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.about-text {
  color: var(--text-secondary);
  font-size: 1.05rem;
}

.about-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-top: 1rem;
}

.about-list li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-heading);
  font-weight: 500;
}

.check {
  display: inline-flex;
  width: 24px;
  height: 24px;
  background: rgba(0, 240, 255, 0.1);
  color: var(--primary);
  border-radius: 50%;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
}

/* Services */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2rem;
  margin-top: 4rem;
}

.pricing-card {
  background: var(--bg-card);
  border: var(--glass-border);
  border-radius: 20px;
  padding: 2.5rem;
  position: relative;
  transition: var(--transition);
  display: flex;
  flex-direction: column;
}

.pricing-card:hover {
  transform: translateY(-10px);
  border-color: rgba(112, 0, 255, 0.3);
}

.pricing-card.popular {
  border-color: var(--primary);
  background: rgba(15, 20, 35, 0.8);
  transform: scale(1.05);
}

.pricing-card.popular:hover {
  transform: scale(1.05) translateY(-5px);
  box-shadow: 0 10px 40px rgba(0, 240, 255, 0.15);
}

.card-glow {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at top right, rgba(112, 0, 255, 0.1) 0%, transparent 60%);
  pointer-events: none;
}

.popular-badge {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translate(-50%, -50%);
  background: var(--gradient-main);
  color: white;
  padding: 0.4rem 1.2rem;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 600;
  font-family: var(--font-heading);
  box-shadow: 0 5px 15px rgba(0, 240, 255, 0.3);
}

.pricing-header {
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  padding-bottom: 2rem;
  margin-bottom: 2rem;
}

.price {
  font-size: 3rem;
  font-family: var(--font-heading);
  font-weight: 800;
  margin: 1rem 0;
  display: flex;
  align-items: flex-start;
}

.price span:first-child {
  font-size: 1.5rem;
  margin-top: 0.5rem;
}

.price span:last-child {
  font-size: 1rem;
  color: var(--text-muted);
  align-self: flex-end;
  margin-bottom: 0.8rem;
  font-weight: 400;
}

.pricing-header p {
  color: var(--text-secondary);
  font-size: 0.9rem;
}

.pricing-features {
  flex-grow: 1;
  margin-bottom: 2rem;
}

.pricing-features ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.pricing-features li {
  position: relative;
  padding-left: 25px;
  font-size: 0.95rem;
}

.pricing-features li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--primary);
  font-weight: bold;
}

.pricing-features li.disabled {
  color: var(--text-muted);
  text-decoration: line-through;
}

.pricing-features li.disabled::before {
  content: '✕';
  color: var(--text-muted);
  text-decoration: none;
  display: inline-block;
}

/* Divider Ticker Tape */
.section-divider.ticker-divider {
  padding: 0;
  background: rgba(7, 9, 15, 0.9);
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  overflow: hidden;
  height: 72px;
  /* Adjust height specifically for the ticker */
}

.marquee-wrapper {
  width: 100%;
}

.tradingview-widget-container {
  height: 100%;
  width: 100%;
}

/* Testimonials */
.testimonials {
  overflow: hidden;
  padding: 80px 0;
}

.testimonials-slider {
  width: 100%;
  overflow: hidden;
  padding: 2rem 0;
  position: relative;
}

/* Gradient fades for the edges */
.testimonials-slider::before,
.testimonials-slider::after {
  content: "";
  position: absolute;
  top: 0;
  width: 200px;
  height: 100%;
  z-index: 2;
  pointer-events: none;
}

.testimonials-slider::before {
  left: 0;
  background: linear-gradient(to right, var(--bg-dark), transparent);
}

.testimonials-slider::after {
  right: 0;
  background: linear-gradient(to left, var(--bg-dark), transparent);
}

.testimonial-track {
  display: flex;
  gap: 2rem;
  width: max-content;
  animation: ticker 30s linear infinite;
}

.testimonial-track:hover {
  animation-play-state: paused;
}

@keyframes ticker {
  0% {
    transform: translateX(0);
  }

  100% {
    transform: translateX(calc(-50% - 1rem));
  }
}

.testimonial-card {
  min-width: 350px;
  max-width: 400px;
  background: var(--bg-card);
  border: var(--glass-border);
  border-radius: 20px;
  padding: 2.5rem;
  position: relative;
}

.quote-icon {
  font-size: 5rem;
  font-family: serif;
  color: rgba(0, 240, 255, 0.1);
  position: absolute;
  top: 10px;
  left: 20px;
  line-height: 1;
}

.testimonial-text {
  font-size: 1rem;
  margin-bottom: 2rem;
  position: relative;
  z-index: 1;
  font-style: italic;
  color: #E2E8F0;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 15px;
}

.author-avatar {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background-size: cover;
  background-position: center;
  border: 2px solid var(--primary);
}

.author-info h4 {
  font-size: 1rem;
  margin-bottom: 2px;
}

.author-info p {
  font-size: 0.8rem;
  color: var(--text-secondary);
}

.slider-controls {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-top: 3rem;
}

.slider-btn {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: white;
  font-size: 1.2rem;
  cursor: pointer;
  transition: var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
}

.slider-btn:hover {
  background: var(--primary);
  color: #000;
  border-color: var(--primary);
}

/* Proofs Section */
.proofs {
  padding: 80px 0;
  overflow: hidden;
  background: relative;
}

.proofs-slider {
  width: 100%;
  overflow: hidden;
  padding: 2rem 0;
  position: relative;
}

/* Gradient fades for the edges */
.proofs-slider::before,
.proofs-slider::after {
  content: "";
  position: absolute;
  top: 0;
  width: 150px;
  height: 100%;
  z-index: 2;
  pointer-events: none;
}

.proofs-slider::before {
  left: 0;
  background: linear-gradient(to right, var(--bg-dark), transparent);
}

.proofs-slider::after {
  right: 0;
  background: linear-gradient(to left, var(--bg-dark), transparent);
}

.proof-track {
  display: flex;
  gap: 1.5rem;
  width: max-content;
  animation: ticker-proof 40s linear infinite;
}

.proof-track:hover {
  animation-play-state: paused;
}

@keyframes ticker-proof {
  0% {
    transform: translateX(0);
  }

  100% {
    transform: translateX(calc(-50% - 0.75rem));
  }
}

.proof-card {
  min-width: 250px;
  max-width: 300px;
  border-radius: 15px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
  position: relative;
  transition: var(--transition);
}

.proof-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 40px rgba(0, 240, 255, 0.2);
  border-color: rgba(0, 240, 255, 0.3);
}

.proof-card img {
  width: 100%;
  height: auto;
  display: block;
}

.proof-cta {
  margin-top: 3rem;
  text-align: center;
}

/* Contact */
.contact-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: center;
}

.contact-desc {
  color: var(--text-secondary);
  font-size: 1.1rem;
  margin-bottom: 3rem;
}

.contact-methods {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.contact-method {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.cm-icon {
  width: 60px;
  height: 60px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 15px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: var(--transition);
}

.contact-method:hover .cm-icon {
  background: rgba(112, 0, 255, 0.2);
  border-color: var(--secondary);
}

.cm-details h4 {
  font-size: 1.1rem;
  margin-bottom: 4px;
}

.cm-details p {
  color: var(--text-secondary);
  font-size: 0.95rem;
}

.form-card {
  padding: 3rem;
}

.form-card h3 {
  font-size: 1.8rem;
  margin-bottom: 2rem;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.input-group {
  position: relative;
}

.contact-form input,
.contact-form select,
.contact-form textarea {
  width: 100%;
  padding: 1rem 1.5rem;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  color: white;
  font-family: var(--font-body);
  font-size: 1rem;
  transition: var(--transition);
}

.contact-form select {
  appearance: none;
  cursor: pointer;
}

.contact-form select option {
  background: var(--bg-dark);
  color: white;
}

.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--primary);
  background: rgba(0, 240, 255, 0.05);
}

/* Footer */
.footer {
  background: #040509;
  padding: 5rem 0 2rem;
  position: relative;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-glow {
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 60%;
  height: 200px;
  background: radial-gradient(ellipse, rgba(112, 0, 255, 0.15) 0%, transparent 70%);
  pointer-events: none;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 4rem;
  margin-bottom: 4rem;
  position: relative;
  z-index: 2;
}

.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.footer-bio {
  color: var(--text-secondary);
  font-size: 0.9rem;
  max-width: 300px;
}

.social-links {
  display: flex;
  gap: 1rem;
}

.social-link {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.05);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  text-decoration: none;
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 600;
  transition: var(--transition);
}

.social-link:hover {
  background: var(--primary);
  color: #000;
  transform: translateY(-3px);
}

.footer-links h4,
.footer-newsletter h4 {
  font-size: 1.1rem;
  margin-bottom: 1.5rem;
  font-family: var(--font-heading);
}

.footer-links ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}

.footer-links a {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.9rem;
  transition: var(--transition);
}

.footer-links a:hover {
  color: var(--primary);
  padding-left: 5px;
}

.footer-newsletter p {
  color: var(--text-secondary);
  font-size: 0.9rem;
  margin-bottom: 1rem;
}

.newsletter-form {
  display: flex;
  gap: 0.5rem;
}

.newsletter-form input {
  flex-grow: 1;
  padding: 0.8rem 1rem;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 30px;
  color: white;
  outline: none;
}

.newsletter-form input:focus {
  border-color: var(--primary);
}

.newsletter-form .btn {
  padding: 0.8rem 1.5rem;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  color: var(--text-muted);
  font-size: 0.8rem;
  position: relative;
  z-index: 2;
  flex-wrap: wrap;
  gap: 1rem;
}

.disclaimer {
  max-width: 600px;
  text-align: right;
  font-size: 0.75rem;
}

/* Animations */
.reveal-up {
  opacity: 0;
  transform: translateY(30px);
  transition: var(--transition-slow);
}

.reveal-up.active {
  opacity: 1;
  transform: translateY(0);
}

.reveal-left {
  opacity: 0;
  transform: translateX(-50px);
  transition: var(--transition-slow);
}

.reveal-left.active {
  opacity: 1;
  transform: translateX(0);
}

.reveal-right {
  opacity: 0;
  transform: translateX(50px);
  transition: var(--transition-slow);
}

.reveal-right.active {
  opacity: 1;
  transform: translateX(0);
}

@media (max-width: 768px) {
  .reveal-left {
    transform: translateX(-20px);
  }

  .reveal-right {
    transform: translateX(20px);
  }

  .reveal-up {
    transform: translateY(20px);
  }
}

/* Responsive */
@media (max-width: 1024px) {

  .hero-container,
  .about-container,
  .contact-container {
    gap: 3rem;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
  }
}

@media (max-width: 768px) {
  .proof-card {
    min-width: 200px;
    max-width: 240px;
  }

  .proofs-slider::before,
  .proofs-slider::after {
    width: 80px;
  }

  .mobile-actions {
    display: flex;
  }

  .mobile-menu-btn {
    display: flex;
  }

  .nav-links {
    position: fixed;
    top: 70px;
    left: -100%;
    width: 100%;
    height: calc(100vh - 70px);
    background: rgba(7, 9, 15, 0.95);
    backdrop-filter: blur(15px);
    flex-direction: column;
    justify-content: flex-start;
    padding: 2rem;
    transition: var(--transition);
    border-bottom: none;
    z-index: 999;
  }

  .nav-actions {
    position: fixed;
    bottom: 2rem;
    left: -100%;
    width: 100%;
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    gap: 1rem;
    padding: 0 2rem;
    background: transparent;
    border: none;
    z-index: 1000;
  }

  /* When Menu Open */
  .navbar.menu-open .nav-links,
  .navbar.menu-open .nav-actions {
    left: 0;
  }

  .navbar.menu-open .mobile-menu-btn span:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
  }

  .navbar.menu-open .mobile-menu-btn span:nth-child(2) {
    transform: translateY(-8px) rotate(-45deg);
  }

  .hero-container {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .hero-title {
    font-size: 2.2rem;
  }

  .hero-subtitle {
    font-size: 1rem;
    margin-left: auto;
    margin-right: auto;
  }

  .hero-visual {
    height: auto;
    margin-top: 2rem;
  }

  .main-chart-card {
    height: auto;
    transform: none;
  }

  .main-chart-card:hover {
    transform: none;
  }

  .floating-card {
    display: none;
    /* Hide floating cards on mobile to avoid clutter and overflow */
  }

  .hero-cta {
    justify-content: center;
    flex-wrap: wrap;
  }

  .hero-stats {
    justify-content: center;
    flex-wrap: wrap;
    gap: 1.5rem;
  }

  /* Dashboard mobile adjustments */
  .main-content {
    margin-left: 0;
    padding: 1rem;
    padding-top: 5rem;
  }

  .dash-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .dash-card {
    padding: 1.5rem;
  }

  .section-heading {
    font-size: 1.8rem;
  }

  .about-container,
  .contact-container {
    grid-template-columns: 1fr;
  }

  .about-visual {
    order: -1;
  }

  .pricing-card.popular {
    transform: scale(1);
  }

  .pricing-card.popular:hover {
    transform: translateY(-5px);
  }

  .footer-grid {
    grid-template-columns: 1fr;
  }

  .disclaimer {
    text-align: left;
  }

  .cursor,
  .cursor-follower {
    display: none;
    /* Disable custom cursor on mobile */
  }

  /* AI Assistant Mobile Polish */
  .ai-assistant-container {
    height: calc(100vh - 120px);
    border-radius: 15px;
    margin-bottom: 1rem;
  }

  #aiResponseArea {
    padding: 1.25rem 1rem;
    gap: 1.5rem;
  }

  .ai-msg-row {
    max-width: 92%;
    gap: 10px;
  }

  .ai-bubble {
    padding: 0.8rem 1rem;
    font-size: 0.9rem;
  }

  .ai-avatar {
    width: 32px;
    height: 32px;
  }

  .ai-terminal-header {
    padding: 1rem !important;
  }

  .ai-input-container {
    padding: 1rem !important;
    gap: 10px;
  }

  #aiInput {
    padding: 0.8rem 1rem !important;
    font-size: 0.9rem !important;
  }

  #sendAiBtn {
    padding: 0.8rem 1.2rem !important;
  }

  #sendAiBtn span {
    display: none;
  }

  .quick-prompts {
    margin-top: 1rem !important;
    gap: 8px !important;
  }

  .prompt-chip {
    padding: 0.5rem 0.8rem !important;
    font-size: 0.75rem !important;
  }
}

/* --- Auth Modal Styling --- */
.modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: var(--transition-slow);
  overflow-y: auto;
  padding: 40px 15px;
}

.modal.active {
  opacity: 1;
  pointer-events: auto;
}

.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(5px);
}

.modal-content {
  position: relative;
  width: 100%;
  max-width: 480px;
  padding: 3rem;
  margin: auto;
  transform: translateY(30px) scale(0.95);
  transition: var(--transition-slow);
  z-index: 2;
}

.modal.active .modal-content {
  transform: translateY(0) scale(1);
}

.modal-close {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  background: none;
  border: none;
  color: var(--text-secondary);
  font-size: 2rem;
  cursor: pointer;
  transition: var(--transition);
  line-height: 1;
}

.modal-close:hover {
  color: var(--primary);
  transform: rotate(90deg);
}

/* Tabs */
.modal-tabs {
  display: flex;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 12px;
  padding: 4px;
  margin-bottom: 2rem;
}

.tab-btn {
  flex: 1;
  padding: 0.8rem;
  background: none;
  border: none;
  color: var(--text-secondary);
  font-family: var(--font-heading);
  font-weight: 600;
  cursor: pointer;
  border-radius: 8px;
  transition: var(--transition);
}

.tab-btn.active {
  background: var(--gradient-main);
  color: white;
}

/* Forms */
.auth-form-container {
  display: none;
  animation: fadeIn 0.4s ease forwards;
}

.auth-form-container.active {
  display: block;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.modal-title {
  font-size: 1.8rem;
  margin-bottom: 0.5rem;
  text-align: center;
}

.modal-subtitle {
  color: var(--text-secondary);
  font-size: 0.95rem;
  text-align: center;
  margin-bottom: 2rem;
}

.btn-google {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 0.8rem;
  background: white;
  color: #333;
  border: none;
  border-radius: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  margin-bottom: 1.5rem;
}

.btn-google:hover {
  background: #f1f1f1;
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(255, 255, 255, 0.1);
}

.btn-google img {
  width: 20px;
  height: 20px;
}

.divider {
  display: flex;
  align-items: center;
  margin: 1.5rem 0;
  color: var(--text-muted);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.divider::before,
.divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: rgba(255, 255, 255, 0.1);
}

.divider span {
  padding: 0 1rem;
}

.auth-box-form {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.form-group label {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-secondary);
}

.form-group input {
  padding: 0.9rem 1.2rem;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  color: white;
  font-family: inherit;
  transition: var(--transition);
}

.form-group input:focus {
  outline: none;
  border-color: var(--primary);
  background: rgba(0, 240, 255, 0.05);
}

/* Password Input Toggle */
.password-input-wrapper {
  position: relative;
  display: flex;
  align-items: center;
  width: 100%;
}

.password-input-wrapper input {
  padding-right: 40px !important;
  width: 100%;
}

.toggle-password {
  position: absolute;
  right: 15px;
  cursor: pointer;
  color: var(--text-secondary);
  font-size: 1.1rem;
  transition: var(--transition);
  z-index: 10;
}

.toggle-password:hover {
  color: white;
}

.form-options {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.85rem;
}

.remember-me {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  color: var(--text-secondary);
}

.forgot-pass,
.back-to-login {
  color: var(--primary);
  text-decoration: none;
  font-weight: 500;
}

.forgot-pass:hover,
.back-to-login:hover {
  text-decoration: underline;
}

.terms-text {
  font-size: 0.8rem;
  color: var(--text-muted);
  text-align: center;
  line-height: 1.4;
}

.terms-text a {
  color: var(--primary);
  text-decoration: none;
}

@media (max-width: 480px) {
  .modal-content {
    padding: 2rem 1.5rem;
    margin: 1rem;
  }

  .proof-card {
    min-width: 160px;
    max-width: 200px;
  }

  .proofs-slider::before,
  .proofs-slider::after {
    width: 40px;
  }
}

/* Notification Popup */
.notification-popup {
  position: fixed;
  bottom: -100px;
  right: 30px;
  width: 380px;
  max-width: calc(100% - 60px);
  padding: 1.5rem;
  background: rgba(15, 20, 35, 0.9);
  backdrop-filter: blur(15px);
  border: 1px solid rgba(0, 240, 255, 0.2);
  border-radius: 20px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
  z-index: 9999;
  transition: all 0.6s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  flex-direction: column;
  gap: 1rem;
  opacity: 0;
  visibility: hidden;
}

.notification-popup.active {
  bottom: 30px;
  opacity: 1;
  visibility: visible;
}

.notification-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.notification-title {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--primary);
  display: flex;
  align-items: center;
  gap: 8px;
}

.notification-close {
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-size: 1.5rem;
  cursor: pointer;
  line-height: 1;
  transition: var(--transition);
}

.notification-close:hover {
  color: white;
  transform: rotate(90deg);
}

.notification-body p {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.5;
}

.notification-code {
  background: rgba(57, 255, 20, 0.05);
  border: 1px dashed var(--accent);
  padding: 0.8rem;
  border-radius: 10px;
  text-align: center;
  font-family: monospace;
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--accent);
  margin: 0.5rem 0;
}

/* AI Assistant Premium Styles */
.ai-assistant-container {
  background: rgba(10, 15, 28, 0.4);
  border: 1px solid rgba(0, 240, 255, 0.1);
  border-radius: 24px;
  overflow: hidden;
  height: 750px;
  display: flex;
  flex-direction: column;
  backdrop-filter: blur(20px);
}

.ai-chat-layout {
  display: flex;
  flex: 1;
  overflow: hidden;
}

.ai-insight-sidebar {
  width: 280px;
  background: rgba(0, 0, 0, 0.2);
  border-right: 1px solid rgba(255, 255, 255, 0.05);
  padding: 2rem;
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
}

.ai-main-chat {
  flex: 1;
  display: flex;
  flex-direction: column;
  background: radial-gradient(circle at top right, rgba(0, 240, 255, 0.03), transparent);
  position: relative;
  overflow: hidden;
}

#aiResponseArea {
  flex: 1;
  overflow-y: auto;
  padding: 2.5rem;
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

/* Scrollbar Style */
#aiResponseArea::-webkit-scrollbar {
  width: 6px;
}

#aiResponseArea::-webkit-scrollbar-track {
  background: transparent;
}

#aiResponseArea::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.05);
  border-radius: 10px;
}

.ai-msg-row {
  display: flex;
  gap: 15px;
  max-width: 85%;
  animation: msgAppear 0.4s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes msgAppear {
  from {
    opacity: 0;
    transform: translateY(15px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.user-row {
  align-self: flex-end;
  flex-direction: row-reverse;
}

.assistant-row {
  align-self: flex-start;
}

.ai-avatar {
  width: 38px;
  height: 38px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  flex-shrink: 0;
}

.bot-avatar {
  background: var(--gradient-main);
  padding: 2px;
}

.bot-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 10px;
}

.user-avatar {
  background: rgba(255, 255, 255, 0.1);
  color: white;
}

.ai-bubble {
  padding: 1rem 1.4rem;
  border-radius: 18px;
  font-size: 0.95rem;
  line-height: 1.6;
  position: relative;
}

.ai-msg {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--text-primary);
  border-top-left-radius: 2px;
}

.user-msg {
  background: var(--primary);
  color: black;
  border-top-right-radius: 2px;
  font-weight: 500;
}

.ai-msg p:last-child {
  margin-bottom: 0;
}

.quick-prompts button {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 0.6rem 1.2rem;
  border-radius: 50px;
  color: var(--text-secondary);
  font-size: 0.8rem;
  cursor: pointer;
  transition: all 0.3s;
}

.quick-prompts button:hover {
  background: rgba(0, 240, 255, 0.1);
  border-color: var(--primary);
  color: white;
  transform: translateY(-2px);
}

/* Multimodal Image Preview */
.image-preview-container {
  display: none;
  padding: 1rem 2rem;
  background: rgba(0, 0, 0, 0.3);
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  align-items: center;
  gap: 15px;
}

.image-preview-container.active {
  display: flex;
}

.img-preview-wrapper {
  position: relative;
  width: 60px;
  height: 60px;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid var(--primary);
}

.img-preview-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.remove-img-btn {
  position: absolute;
  top: 2px;
  right: 2px;
  width: 18px;
  height: 18px;
  background: rgba(255, 71, 87, 0.9);
  color: white;
  border: none;
  border-radius: 50%;
  font-size: 12px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.ai-input-container {
  display: flex;
  align-items: center;
  gap: 15px;
  background: rgba(0, 0, 0, 0.2);
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  padding: 1.2rem 2rem;
}

.attach-btn {
  background: none;
  border: none;
  color: var(--text-secondary);
  cursor: pointer;
  padding: 5px;
  transition: var(--transition);
}

.attach-btn:hover {
  color: var(--primary);
  transform: scale(1.1);
}

.sent-image {
  max-width: 300px;
  border-radius: 12px;
  margin-top: 10px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  display: block;
}

/* Typing animation */
.dots {
  animation: blink 1.5s infinite;
}

@keyframes blink {
  0% {
    opacity: 0;
  }

  50% {
    opacity: 1;
  }

  100% {
    opacity: 0;
  }
}

@media (max-width: 900px) {
  .ai-insight-sidebar {
    display: none;
  }

  .ai-assistant-container {
    height: 700px;
  }
}

@media (max-width: 600px) {
  .ai-assistant-container {
    height: 80vh;
    border-radius: 15px;
  }

  #aiResponseArea {
    padding: 1.2rem;
    gap: 1.2rem;
  }

  .ai-input-container {
    padding: 0.8rem 1rem !important;
    gap: 8px !important;
  }

  .attach-btn, #sendAiBtn {
    flex-shrink: 0 !important;
  }

  #aiInput {
    flex: 1 !important;
    min-width: 50px !important;
  }

  .ai-msg-row {
    max-width: 92%;
  }

  .ai-bubble {
    padding: 0.8rem 1rem;
    font-size: 0.85rem;
  }

  #sendAiBtn span {
    display: none;
  }

  /* Show only icon on small mobile */
  #sendAiBtn {
    padding: 0 !important;
    width: 45px !important;
    height: 45px !important;
    border-radius: 50% !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    min-width: 45px !important;
  }
}

.notification-footer {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}

@media (max-width: 500px) {
  .notification-popup {
    width: 92% !important;
    left: 4% !important;
    right: 4% !important;
    bottom: 20px;
    padding: 1.25rem;
  }

  .notification-title {
    font-size: 0.95rem;
  }

  .notification-body p {
    font-size: 0.85rem;
  }
}

/* TradingView Ticker Responsiveness */
.ticker-divider {
  width: 100%;
  overflow: hidden;
  background: rgba(0, 0, 0, 0.3);
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.tradingview-widget-container {
  width: 100% !important;
}

/* VIP Rewards & Points Styles */
.vip-badge {
  padding: 4px 12px;
  background: linear-gradient(90deg, #FFD700, #FFA500);
  color: black;
  font-weight: 800;
  font-size: 0.75rem;
  border-radius: 20px;
  text-transform: uppercase;
  box-shadow: 0 0 10px rgba(255, 215, 0, 0.3);
}

.btn-disabled {
  opacity: 0.5;
  cursor: not-allowed;
  background: rgba(255, 255, 255, 0.05) !important;
  border-color: rgba(255, 255, 255, 0.1) !important;
  color: var(--text-muted) !important;
}

.task-item {
  transition: var(--transition);
}

.task-item:hover {
  background: rgba(255, 215, 0, 0.03) !important;
  border-color: rgba(255, 215, 0, 0.1) !important;
}

#referralLink {
  text-overflow: ellipsis;
}

@keyframes gold-glow {
  0% {
    filter: drop-shadow(0 0 2px gold);
  }

  50% {
    filter: drop-shadow(0 0 8px gold);
  }

  100% {
    filter: drop-shadow(0 0 2px gold);
  }
}

.gold-star {
  animation: gold-glow 2s infinite;
}

/* Attention Animations */
.pulse-attention {
  cursor: pointer;
  animation: attentionPulse 2.5s infinite;
  border: 1px solid var(--primary);
  text-decoration: none !important;
}

.pulse-attention:hover {
  transform: scale(1.05) !important;
  box-shadow: 0 0 25px var(--primary);
}

@keyframes attentionPulse {
  0% {
    box-shadow: 0 0 0 0 rgba(0, 240, 255, 0.7);
  }

  70% {
    box-shadow: 0 0 0 15px rgba(0, 240, 255, 0);
  }

  100% {
    box-shadow: 0 0 0 0 rgba(0, 240, 255, 0);
  }
}

a.floating-card {
  text-decoration: none;
  color: inherit;
}

@keyframes floatAndPulse {
  0% {
    transform: translateY(0px);
    box-shadow: 0 0 0 0 rgba(0, 240, 255, 0.7);
  }

  50% {
    transform: translateY(-15px);
    box-shadow: 0 0 0 15px rgba(0, 240, 255, 0);
  }

  100% {
    transform: translateY(0px);
    box-shadow: 0 0 0 0 rgba(0, 240, 255, 0);
  }
}

.floating-card.pulse-attention {
  animation: floatAndPulse 4s ease-in-out infinite;
}

.floating-card.pulse-attention:hover {
  animation-play-state: paused;
  transform: translateY(-5px) scale(1.05);
  box-shadow: 0 0 25px var(--primary);
}

/* Global Responsive Fixes for slmforex.com */
@media (max-width: 768px) {
  .hero-container {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 3rem;
  }

  .hero-content {
    align-items: center;
  }

  .hero-title {
    font-size: 2.8rem;
  }

  .hero-cta {
    flex-direction: column;
    width: 100%;
    align-items: center;
  }

  .hero-cta .btn {
    width: 100%;
    margin-bottom: 0.5rem;
  }

  .hero-stats {
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
    width: 100%;
  }

  .hero-visual {
    height: auto;
    min-height: 250px;
    margin-top: 2rem;
  }

  .main-chart-card {
    transform: none !important;
    max-width: 100%;
    height: auto !important;
    padding: 1rem;
  }

  .floating-card {
    display: none !important;
    /* Empeche le glissement horizontal */
  }

  .about-container {
    grid-template-columns: 1fr;
    gap: 3rem;
  }

  .experience-badge {
    right: 10px;
    bottom: 10px;
    padding: 1rem;
  }

  .experience-badge .years {
    font-size: 1.8rem;
  }

  .pricing-grid {
    grid-template-columns: 1fr;
  }

  .pricing-card.popular {
    transform: none;
  }

  .section-title {
    font-size: 2.2rem;
  }
}

@media (max-width: 480px) {

  .hero-title {
    font-size: 2rem;
  }

  .stat-item {
    flex: 1;
    min-width: 80px;
  }

  .section-pd {
    padding: 4rem 1.5rem;
  }
}

/* --- Scroll Reveal Animations --- */
.reveal-up,
.reveal-left,
.reveal-right {
  opacity: 0;
  transition: transform 1s cubic-bezier(0.16, 1, 0.3, 1), opacity 1s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: transform, opacity;
}

.reveal-up {
  transform: translateY(50px);
}

.reveal-left {
  transform: translateX(-50px);
}

.reveal-right {
  transform: translateX(50px);
}

.reveal-up.active,
.reveal-left.active,
.reveal-right.active {
  opacity: 1;
  transform: translate(0, 0);
}

/* Hide Google Auth on Mobile */
@media (max-width: 768px) {
  .google-btn,
  .btn-google,
  .auth-separator,
  .divider {
    display: none !important;
  }
}