/* ============================================================
   EasyTrade Learning Hub — Custom Stylesheet
   Premium Stock Market Training Institute
   Version: 1.0.0
   ============================================================
   This file handles custom animations, glassmorphism, 
   dark/light mode theming, and advanced effects. 
   Tailwind CSS v3 (CDN) provides utility classes.
   ============================================================ */

/* ──────────────────────────────────────────────
   1. CSS CUSTOM PROPERTIES (Design Tokens)
   ────────────────────────────────────────────── */

:root {
  /* ── Primary Palette ── */
  --color-navy-900: #0a0e27;
  --color-navy-800: #0d1137;
  --color-navy-700: #141852;
  --color-navy-600: #1a1f4e;

  /* ── Emerald ── */
  --color-emerald-500: #10b981;
  --color-emerald-400: #00d4aa;
  --color-emerald-600: #059669;

  /* ── Gold ── */
  --color-gold-500: #f59e0b;
  --color-gold-600: #d4a017;
  --color-gold-400: #fbbf24;

  /* ── Neutrals ── */
  --color-white: #ffffff;
  --color-slate-50: #f8fafc;
  --color-slate-100: #f1f5f9;
  --color-slate-200: #e2e8f0;
  --color-slate-700: #334155;
  --color-slate-800: #1e293b;

  /* ── Semantic (light-mode defaults) ── */
  --bg-body: var(--color-slate-50);
  --bg-surface: rgba(255, 255, 255, 0.8);
  --bg-surface-solid: var(--color-white);
  --bg-navbar: rgba(255, 255, 255, 0.72);
  --text-primary: var(--color-slate-800);
  --text-secondary: var(--color-slate-700);
  --text-muted: #64748b;
  --border-color: rgba(0, 0, 0, 0.08);
  --card-shadow: 0 4px 24px rgba(0, 0, 0, 0.06);
  --card-shadow-hover: 0 12px 40px rgba(0, 0, 0, 0.12);

  /* ── Gradients ── */
  --gradient-emerald: linear-gradient(135deg, #00d4aa, #059669);
  --gradient-gold: linear-gradient(135deg, #fbbf24, #d4a017);
  --gradient-navy: linear-gradient(135deg, #0d1137, #1a1f4e);
  --gradient-hero-overlay: linear-gradient(
    180deg,
    rgba(10, 14, 39, 0.82) 0%,
    rgba(13, 17, 55, 0.68) 50%,
    rgba(10, 14, 39, 0.88) 100%
  );

  /* ── Spacing / Radius / Motion ── */
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 22px;
  --radius-full: 9999px;
  --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-base: 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 0.6s cubic-bezier(0.22, 1, 0.36, 1);

  /* ── Glassmorphism ── */
  --glass-blur: 12px;
  --glass-bg: rgba(255, 255, 255, 0.55);
  --glass-border: rgba(255, 255, 255, 0.35);

  /* ── Z-Indexes ── */
  --z-preloader: 9999;
  --z-navbar: 1000;
  --z-modal: 2000;
  --z-floating: 900;
}

/* ── Dark-mode overrides ── */
:root.dark,
.dark {
  --bg-body: var(--color-navy-900);
  --bg-surface: rgba(13, 17, 55, 0.7);
  --bg-surface-solid: var(--color-navy-800);
  --bg-navbar: rgba(10, 14, 39, 0.78);
  --text-primary: var(--color-slate-200);
  --text-secondary: #cbd5e1;
  --text-muted: #94a3b8;
  --border-color: rgba(255, 255, 255, 0.08);
  --card-shadow: 0 4px 24px rgba(0, 0, 0, 0.3);
  --card-shadow-hover: 0 12px 40px rgba(0, 212, 170, 0.12);
  --glass-bg: rgba(13, 17, 55, 0.55);
  --glass-border: rgba(255, 255, 255, 0.1);
  --gradient-hero-overlay: linear-gradient(
    180deg,
    rgba(10, 14, 39, 0.92) 0%,
    rgba(13, 17, 55, 0.78) 50%,
    rgba(10, 14, 39, 0.95) 100%
  );
}


/* ──────────────────────────────────────────────
   2. BASE & RESET
   ────────────────────────────────────────────── */

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

body {
  margin: 0;
  padding: 0;
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  background-color: var(--bg-body);
  color: var(--text-primary);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  transition: background-color var(--transition-base),
              color var(--transition-base);
  overflow-x: hidden;
}

::selection {
  background: var(--color-emerald-400);
  color: var(--color-navy-900);
}

::-moz-selection {
  background: var(--color-emerald-400);
  color: var(--color-navy-900);
}

img {
  max-width: 100%;
  height: auto;
}


/* ──────────────────────────────────────────────
   3. PRELOADER
   ────────────────────────────────────────────── */

.preloader {
  position: fixed;
  inset: 0;
  z-index: var(--z-preloader);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: var(--color-navy-900);
  transition: opacity 0.6s ease, visibility 0.6s ease;
}

.preloader.loaded {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

/* Pulsing logo */
.preloader__logo {
  width: 80px;
  height: 80px;
  animation: preloaderPulse 1.6s ease-in-out infinite;
}

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

/* Candlestick bars animation */
.preloader__candles {
  display: flex;
  gap: 6px;
  margin-top: 28px;
}

.preloader__candle {
  width: 6px;
  border-radius: 3px;
  background: var(--color-emerald-400);
}

.preloader__candle:nth-child(1) { height: 28px; animation: candleBounce 1.2s ease-in-out 0s infinite; }
.preloader__candle:nth-child(2) { height: 38px; animation: candleBounce 1.2s ease-in-out 0.15s infinite; }
.preloader__candle:nth-child(3) { height: 20px; animation: candleBounce 1.2s ease-in-out 0.3s infinite; }
.preloader__candle:nth-child(4) { height: 44px; animation: candleBounce 1.2s ease-in-out 0.45s infinite; }
.preloader__candle:nth-child(5) { height: 32px; animation: candleBounce 1.2s ease-in-out 0.6s infinite; }

@keyframes candleBounce {
  0%, 100% { transform: scaleY(1); }
  50%      { transform: scaleY(0.5); }
}


/* ──────────────────────────────────────────────
   4. NAVBAR
   ────────────────────────────────────────────── */

.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: var(--z-navbar);
  height: 70px;
  display: flex;
  align-items: center;
  padding: 0 clamp(1rem, 4vw, 3rem);
  background: transparent;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  border-bottom: 1px solid transparent;
  transition: background var(--transition-base),
              backdrop-filter var(--transition-base),
              border-color var(--transition-base),
              box-shadow var(--transition-base);
}

.navbar.scrolled {
  background: var(--bg-navbar);
  backdrop-filter: blur(var(--glass-blur));
  -webkit-backdrop-filter: blur(var(--glass-blur));
  border-bottom: 1px solid var(--border-color);
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.08);
}

.dark .navbar.scrolled {
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.35);
}

.navbar__logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.navbar__logo img {
  height: 40px;
  width: auto;
}

.navbar__logo span {
  font-weight: 700;
  font-size: 1.25rem;
  background: var(--gradient-emerald);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.navbar__links {
  display: flex;
  align-items: center;
  gap: 2rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.navbar__links a {
  position: relative;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-secondary);
  text-decoration: none;
  padding: 6px 0;
  transition: color var(--transition-fast);
}

.navbar__links a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--gradient-emerald);
  border-radius: 2px;
  transition: width var(--transition-base);
}

.navbar__links a:hover,
.navbar__links a.active {
  color: var(--color-emerald-400);
}

.navbar__links a:hover::after,
.navbar__links a.active::after {
  width: 100%;
}


/* ──────────────────────────────────────────────
   5. HERO SECTION
   ────────────────────────────────────────────── */

.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background-color: var(--color-navy-900);
}

.hero__bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.hero__overlay {
  position: absolute;
  inset: 0;
  background: var(--gradient-hero-overlay);
  z-index: 1;
}

.hero__content {
  position: relative;
  z-index: 3;
  text-align: center;
  max-width: 800px;
  padding: 2rem 1.5rem;
}

/* Floating particles */
.hero__particles {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  overflow: hidden;
}

.particle {
  position: absolute;
  border-radius: 50%;
  background: var(--color-emerald-400);
  opacity: 0.15;
  animation: float linear infinite;
}

.particle:nth-child(1) { width: 6px;  height: 6px;  left: 12%; animation-duration: 14s; animation-delay: 0s; }
.particle:nth-child(2) { width: 10px; height: 10px; left: 28%; animation-duration: 18s; animation-delay: 2s; }
.particle:nth-child(3) { width: 4px;  height: 4px;  left: 45%; animation-duration: 12s; animation-delay: 4s; }
.particle:nth-child(4) { width: 8px;  height: 8px;  left: 62%; animation-duration: 20s; animation-delay: 1s; }
.particle:nth-child(5) { width: 5px;  height: 5px;  left: 78%; animation-duration: 16s; animation-delay: 3s; }
.particle:nth-child(6) { width: 12px; height: 12px; left: 90%; animation-duration: 22s; animation-delay: 5s; }

@keyframes float {
  0%   { transform: translateY(100vh) rotate(0deg); opacity: 0; }
  10%  { opacity: 0.15; }
  90%  { opacity: 0.15; }
  100% { transform: translateY(-10vh) rotate(720deg); opacity: 0; }
}

/* Chart canvas container */
.hero__chart-canvas {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
}


/* ──────────────────────────────────────────────
   6. GLASSMORPHISM CARDS
   ────────────────────────────────────────────── */

.glass-card {
  background: var(--glass-bg);
  backdrop-filter: blur(var(--glass-blur));
  -webkit-backdrop-filter: blur(var(--glass-blur));
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-md);
  box-shadow: var(--card-shadow);
  transition: transform var(--transition-base),
              box-shadow var(--transition-base),
              border-color var(--transition-fast);
}

.glass-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--card-shadow-hover);
  border-color: rgba(0, 212, 170, 0.2);
}

/* Solid variant for light mode */
.glass-card--solid {
  background: var(--bg-surface-solid);
  backdrop-filter: none;
}

.dark .glass-card--solid {
  background: var(--bg-surface);
  backdrop-filter: blur(var(--glass-blur));
  -webkit-backdrop-filter: blur(var(--glass-blur));
}


/* ──────────────────────────────────────────────
   7. SECTION SCROLL ANIMATIONS
   ────────────────────────────────────────────── */

.fade-in-up,
.fade-in-left,
.fade-in-right,
.scale-in {
  opacity: 0;
  will-change: transform, opacity;
  transition: opacity var(--transition-slow),
              transform var(--transition-slow);
}

.fade-in-up {
  transform: translateY(40px);
}

.fade-in-left {
  transform: translateX(-40px);
}

.fade-in-right {
  transform: translateX(40px);
}

.scale-in {
  transform: scale(0.88);
}

/* Visible state — toggled by IntersectionObserver */
.fade-in-up.visible,
.fade-in-left.visible,
.fade-in-right.visible,
.scale-in.visible {
  opacity: 1;
  transform: translate(0) scale(1);
}

/* Staggered children helper */
.stagger > *:nth-child(1)  { transition-delay: 0s; }
.stagger > *:nth-child(2)  { transition-delay: 0.1s; }
.stagger > *:nth-child(3)  { transition-delay: 0.2s; }
.stagger > *:nth-child(4)  { transition-delay: 0.3s; }
.stagger > *:nth-child(5)  { transition-delay: 0.4s; }
.stagger > *:nth-child(6)  { transition-delay: 0.5s; }


/* ──────────────────────────────────────────────
   8. COURSE CARDS
   ────────────────────────────────────────────── */

.course-card {
  position: relative;
  background: var(--bg-surface-solid);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--card-shadow);
  transition: transform var(--transition-base),
              box-shadow var(--transition-base);
}

.dark .course-card {
  background: var(--bg-surface);
  backdrop-filter: blur(var(--glass-blur));
  -webkit-backdrop-filter: blur(var(--glass-blur));
}

/* Gradient border on hover */
.course-card::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 2px;
  background: linear-gradient(135deg, var(--color-emerald-400), var(--color-gold-500));
  -webkit-mask:
    linear-gradient(#fff 0 0) content-box,
    linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0;
  transition: opacity var(--transition-base);
}

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

.course-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 16px 48px rgba(0, 212, 170, 0.15);
}

.dark .course-card:hover {
  box-shadow: 0 16px 48px rgba(0, 212, 170, 0.2);
}

/* Price tag */
.course-card__price {
  display: inline-flex;
  align-items: baseline;
  gap: 4px;
  font-weight: 800;
  font-size: 1.5rem;
  background: var(--gradient-emerald);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.course-card__price-original {
  font-size: 0.875rem;
  font-weight: 400;
  text-decoration: line-through;
  color: var(--text-muted);
  -webkit-text-fill-color: var(--text-muted);
}

/* Feature list */
.course-card__features {
  list-style: none;
  margin: 0;
  padding: 0;
}

.course-card__features li {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 0;
  font-size: 0.9rem;
  color: var(--text-secondary);
}

.course-card__features li::before {
  content: '✓';
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: rgba(0, 212, 170, 0.12);
  color: var(--color-emerald-500);
  font-size: 0.7rem;
  font-weight: 700;
  flex-shrink: 0;
}

/* Popular badge */
.course-card__badge {
  position: absolute;
  top: 14px;
  right: 14px;
  padding: 4px 12px;
  border-radius: var(--radius-full);
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  background: var(--gradient-gold);
  color: var(--color-navy-900);
}


/* ──────────────────────────────────────────────
   9. TESTIMONIAL CAROUSEL
   ────────────────────────────────────────────── */

.testimonial-card {
  position: relative;
  padding: 2rem;
  background: var(--bg-surface-solid);
  border-radius: var(--radius-md);
  box-shadow: var(--card-shadow);
  transition: transform var(--transition-base),
              box-shadow var(--transition-base);
}

.dark .testimonial-card {
  background: var(--bg-surface);
  backdrop-filter: blur(var(--glass-blur));
  -webkit-backdrop-filter: blur(var(--glass-blur));
}

.testimonial-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--card-shadow-hover);
}

/* Opening quote */
.testimonial-card::before {
  content: '"';
  position: absolute;
  top: 12px;
  left: 20px;
  font-size: 4rem;
  line-height: 1;
  font-family: Georgia, serif;
  color: var(--color-emerald-400);
  opacity: 0.2;
  pointer-events: none;
}

.testimonial-card__text {
  font-style: italic;
  font-size: 1rem;
  line-height: 1.7;
  color: var(--text-secondary);
  margin-bottom: 1.5rem;
}

.testimonial-card__stars {
  display: flex;
  gap: 3px;
  margin-bottom: 1rem;
}

.testimonial-card__star {
  color: var(--color-gold-500);
  font-size: 1rem;
}

.testimonial-card__student {
  display: flex;
  align-items: center;
  gap: 12px;
}

.testimonial-card__avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--color-emerald-400);
}

.testimonial-card__name {
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--text-primary);
}

.testimonial-card__role {
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* Sliding animation for carousel wrapper */
.testimonial-slider {
  display: flex;
  transition: transform 0.55s cubic-bezier(0.22, 1, 0.36, 1);
}


/* ──────────────────────────────────────────────
   10. FAQ ACCORDION
   ────────────────────────────────────────────── */

.faq-item {
  border-radius: var(--radius-sm);
  overflow: hidden;
  margin-bottom: 12px;
  background: var(--bg-surface-solid);
  box-shadow: var(--card-shadow);
  border-left: 3px solid transparent;
  transition: border-color var(--transition-fast),
              box-shadow var(--transition-fast);
}

.dark .faq-item {
  background: var(--bg-surface);
}

.faq-item.active {
  border-left-color: var(--color-emerald-400);
  box-shadow: 0 4px 24px rgba(0, 212, 170, 0.08);
}

.faq-item__question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 1.1rem 1.25rem;
  border: none;
  background: none;
  cursor: pointer;
  font-family: inherit;
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-primary);
  text-align: left;
  gap: 1rem;
  transition: color var(--transition-fast);
}

.faq-item__question:hover {
  color: var(--color-emerald-500);
}

.faq-item__chevron {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  transition: transform var(--transition-base);
}

.faq-item.active .faq-item__chevron {
  transform: rotate(180deg);
}

.faq-item__answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.45s cubic-bezier(0.22, 1, 0.36, 1),
              padding 0.45s cubic-bezier(0.22, 1, 0.36, 1);
  padding: 0 1.25rem;
}

.faq-item.active .faq-item__answer {
  max-height: 600px;
  padding: 0 1.25rem 1.25rem;
}

.faq-item__answer p {
  font-size: 0.925rem;
  line-height: 1.7;
  color: var(--text-secondary);
}


/* ──────────────────────────────────────────────
   11. STATISTICS / COUNTER SECTION
   ────────────────────────────────────────────── */

.counter-section {
  position: relative;
}

.counter-card {
  text-align: center;
  padding: 2rem 1.5rem;
}

.counter-card__number {
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 800;
  background: var(--gradient-emerald);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  line-height: 1.2;
  position: relative;
}

/* Pulsing glow behind the number */
.counter-card__number::after {
  content: '';
  position: absolute;
  inset: -8px -16px;
  border-radius: var(--radius-md);
  background: radial-gradient(circle, rgba(0, 212, 170, 0.12) 0%, transparent 70%);
  animation: counterGlow 3s ease-in-out infinite;
  z-index: -1;
}

@keyframes counterGlow {
  0%, 100% { opacity: 0.6; transform: scale(1); }
  50%      { opacity: 1;   transform: scale(1.1); }
}

.counter-card__label {
  margin-top: 8px;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-muted);
}


/* ──────────────────────────────────────────────
   12. CONTACT FORM
   ────────────────────────────────────────────── */

.form-group {
  position: relative;
  margin-bottom: 1.5rem;
}

.form-group__input,
.form-group__textarea {
  width: 100%;
  padding: 14px 16px;
  font-family: inherit;
  font-size: 0.95rem;
  color: var(--text-primary);
  background: var(--bg-surface-solid);
  border: 1.5px solid var(--border-color);
  border-radius: var(--radius-sm);
  outline: none;
  transition: border-color var(--transition-fast),
              box-shadow var(--transition-fast),
              background-color var(--transition-fast);
}

.dark .form-group__input,
.dark .form-group__textarea {
  background: rgba(13, 17, 55, 0.5);
}

.form-group__input:focus,
.form-group__textarea:focus {
  border-color: var(--color-emerald-400);
  box-shadow: 0 0 0 3px rgba(0, 212, 170, 0.15);
}

.form-group__textarea {
  resize: vertical;
  min-height: 120px;
}

/* Floating label */
.form-group__label {
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 0.95rem;
  color: var(--text-muted);
  pointer-events: none;
  transition: all var(--transition-fast);
  background: transparent;
  padding: 0 4px;
}

.form-group__textarea ~ .form-group__label {
  top: 16px;
  transform: none;
}

.form-group__input:focus ~ .form-group__label,
.form-group__input:not(:placeholder-shown) ~ .form-group__label {
  top: -1px;
  transform: translateY(-50%);
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--color-emerald-500);
  background: var(--bg-surface-solid);
}

.dark .form-group__input:focus ~ .form-group__label,
.dark .form-group__input:not(:placeholder-shown) ~ .form-group__label {
  background: var(--color-navy-800);
}

.form-group__textarea:focus ~ .form-group__label,
.form-group__textarea:not(:placeholder-shown) ~ .form-group__label {
  top: -1px;
  transform: translateY(-50%);
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--color-emerald-500);
  background: var(--bg-surface-solid);
}

.dark .form-group__textarea:focus ~ .form-group__label,
.dark .form-group__textarea:not(:placeholder-shown) ~ .form-group__label {
  background: var(--color-navy-800);
}


/* ──────────────────────────────────────────────
   13. FLOATING SOCIAL BUTTONS
   ────────────────────────────────────────────── */

.floating-buttons {
  position: fixed;
  bottom: 28px;
  right: 28px;
  z-index: var(--z-floating);
  display: flex;
  flex-direction: column;
  gap: 14px;
  align-items: flex-end;
}

.floating-whatsapp,
.floating-telegram {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  color: #fff;
  text-decoration: none;
  font-size: 1.5rem;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
  transition: transform var(--transition-fast),
              box-shadow var(--transition-fast);
  position: relative;
}

.floating-whatsapp {
  background: #25D366;
}

.floating-telegram {
  background: #0088cc;
}

/* Pulsing glow ring */
.floating-whatsapp::before,
.floating-telegram::before {
  content: '';
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  opacity: 0;
  animation: floatingPulse 2.5s ease-in-out infinite;
}

.floating-whatsapp::before {
  box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.5);
  animation-name: floatingPulseGreen;
}

.floating-telegram::before {
  box-shadow: 0 0 0 0 rgba(0, 136, 204, 0.5);
  animation-name: floatingPulseBlue;
}

@keyframes floatingPulseGreen {
  0%   { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.5); }
  70%  { box-shadow: 0 0 0 14px rgba(37, 211, 102, 0); }
  100% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0); }
}

@keyframes floatingPulseBlue {
  0%   { box-shadow: 0 0 0 0 rgba(0, 136, 204, 0.5); }
  70%  { box-shadow: 0 0 0 14px rgba(0, 136, 204, 0); }
  100% { box-shadow: 0 0 0 0 rgba(0, 136, 204, 0); }
}

.floating-whatsapp:hover,
.floating-telegram:hover {
  transform: scale(1.12);
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.3);
}


/* ──────────────────────────────────────────────
   14. FOOTER
   ────────────────────────────────────────────── */

.footer {
  background: linear-gradient(180deg, var(--color-navy-800), var(--color-navy-900));
  color: var(--color-slate-200);
  padding: 4rem 0 1.5rem;
}

.footer a {
  color: #94a3b8;
  text-decoration: none;
  font-size: 0.9rem;
  transition: color var(--transition-fast);
}

.footer a:hover {
  color: var(--color-emerald-400);
}

.footer__social {
  display: flex;
  gap: 12px;
}

.footer__social-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #94a3b8;
  font-size: 1rem;
  transition: background var(--transition-fast),
              color var(--transition-fast),
              border-color var(--transition-fast);
}

.footer__social-link:hover {
  background: var(--color-emerald-400);
  color: var(--color-navy-900);
  border-color: var(--color-emerald-400);
}

.footer__divider {
  border: none;
  height: 1px;
  background: rgba(255, 255, 255, 0.08);
  margin: 2rem 0;
}

.footer__bottom {
  font-size: 0.82rem;
  color: #64748b;
  text-align: center;
}


/* ──────────────────────────────────────────────
   15. THEME TOGGLE
   ────────────────────────────────────────────── */

.theme-toggle {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border: 1.5px solid var(--border-color);
  border-radius: 50%;
  background: var(--bg-surface-solid);
  cursor: pointer;
  overflow: hidden;
  transition: background var(--transition-fast),
              border-color var(--transition-fast);
}

.dark .theme-toggle {
  background: rgba(13, 17, 55, 0.6);
}

.theme-toggle:hover {
  border-color: var(--color-emerald-400);
}

.theme-toggle__icon {
  font-size: 1.15rem;
  transition: transform 0.5s cubic-bezier(0.22, 1, 0.36, 1),
              opacity 0.3s ease;
}

/* Sun icon (light mode visible) */
.theme-toggle__sun {
  position: absolute;
  opacity: 1;
  transform: rotate(0deg) scale(1);
}

.dark .theme-toggle__sun {
  opacity: 0;
  transform: rotate(180deg) scale(0.5);
}

/* Moon icon (dark mode visible) */
.theme-toggle__moon {
  position: absolute;
  opacity: 0;
  transform: rotate(-180deg) scale(0.5);
}

.dark .theme-toggle__moon {
  opacity: 1;
  transform: rotate(0deg) scale(1);
}


/* ──────────────────────────────────────────────
   16. LOGIN / REGISTER MODAL
   ────────────────────────────────────────────── */

.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: var(--z-modal);
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(10, 14, 39, 0.65);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--transition-base),
              visibility var(--transition-base);
}

.modal-overlay.open {
  opacity: 1;
  visibility: visible;
}

.modal-content {
  position: relative;
  width: 90%;
  max-width: 440px;
  padding: 2.5rem 2rem;
  border-radius: var(--radius-lg);
  background: var(--glass-bg);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--glass-border);
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.3);
  transform: translateY(24px) scale(0.96);
  transition: transform 0.45s cubic-bezier(0.22, 1, 0.36, 1);
}

.modal-overlay.open .modal-content {
  transform: translateY(0) scale(1);
}

.modal-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 32px;
  height: 32px;
  border: none;
  background: none;
  cursor: pointer;
  font-size: 1.25rem;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: background var(--transition-fast),
              color var(--transition-fast);
}

.modal-close:hover {
  background: rgba(0, 0, 0, 0.08);
  color: var(--text-primary);
}

.dark .modal-close:hover {
  background: rgba(255, 255, 255, 0.08);
}

/* Tab switching */
.modal-tabs {
  display: flex;
  gap: 0;
  margin-bottom: 1.5rem;
  border-radius: var(--radius-sm);
  overflow: hidden;
  border: 1px solid var(--border-color);
}

.modal-tab {
  flex: 1;
  padding: 10px;
  border: none;
  background: transparent;
  cursor: pointer;
  font-family: inherit;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-muted);
  transition: background var(--transition-fast),
              color var(--transition-fast);
}

.modal-tab.active {
  background: var(--gradient-emerald);
  color: #fff;
}


/* ──────────────────────────────────────────────
   17. TRUST BADGES
   ────────────────────────────────────────────── */

.trust-badge {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding: 1.5rem 1rem;
  text-align: center;
  background: var(--glass-bg);
  backdrop-filter: blur(var(--glass-blur));
  -webkit-backdrop-filter: blur(var(--glass-blur));
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-md);
  transition: transform var(--transition-base);
}

.trust-badge:hover {
  animation: trustBounce 0.5s ease;
}

@keyframes trustBounce {
  0%   { transform: translateY(0); }
  30%  { transform: translateY(-8px); }
  50%  { transform: translateY(-3px); }
  70%  { transform: translateY(-6px); }
  100% { transform: translateY(0); }
}

.trust-badge__icon {
  font-size: 2rem;
  color: var(--color-emerald-400);
}

.trust-badge__text {
  font-weight: 600;
  font-size: 0.85rem;
  color: var(--text-primary);
}


/* ──────────────────────────────────────────────
   18. BLOG CARDS
   ────────────────────────────────────────────── */

.blog-card {
  border-radius: var(--radius-md);
  overflow: hidden;
  background: var(--bg-surface-solid);
  box-shadow: var(--card-shadow);
  transition: transform var(--transition-base),
              box-shadow var(--transition-base);
}

.dark .blog-card {
  background: var(--bg-surface);
}

.blog-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--card-shadow-hover);
}

.blog-card__image {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 9;
}

.blog-card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.55s cubic-bezier(0.22, 1, 0.36, 1);
}

.blog-card:hover .blog-card__image img {
  transform: scale(1.08);
}

.blog-card__category {
  position: absolute;
  top: 12px;
  left: 12px;
  padding: 4px 12px;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  border-radius: var(--radius-full);
  background: var(--gradient-emerald);
  color: #fff;
}

.blog-card__content {
  padding: 1.25rem;
}

.blog-card__title {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  color: var(--text-primary);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.blog-card__excerpt {
  font-size: 0.875rem;
  color: var(--text-muted);
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-bottom: 1rem;
}

.blog-card__meta {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.78rem;
  color: var(--text-muted);
}


/* ──────────────────────────────────────────────
   19. LIVE TRADING SECTION
   ────────────────────────────────────────────── */

.live-dashboard {
  background: var(--bg-surface-solid);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--card-shadow);
  border: 1px solid var(--border-color);
}

.dark .live-dashboard {
  background: var(--bg-surface);
  backdrop-filter: blur(var(--glass-blur));
  -webkit-backdrop-filter: blur(var(--glass-blur));
}

.live-dashboard__header {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 1rem 1.25rem;
  border-bottom: 1px solid var(--border-color);
}

/* Blinking live dot */
.live-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #ef4444;
  animation: liveBlink 1.4s ease-in-out infinite;
}

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

.live-label {
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: #ef4444;
}

/* Data table */
.live-dashboard__table {
  width: 100%;
  border-collapse: collapse;
}

.live-dashboard__table th,
.live-dashboard__table td {
  padding: 12px 16px;
  text-align: left;
  font-size: 0.875rem;
}

.live-dashboard__table th {
  font-weight: 600;
  color: var(--text-muted);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  border-bottom: 1px solid var(--border-color);
}

.live-dashboard__table tr:not(:last-child) td {
  border-bottom: 1px solid var(--border-color);
}

.live-dashboard__table tr:hover td {
  background: rgba(0, 212, 170, 0.04);
}

.dark .live-dashboard__table tr:hover td {
  background: rgba(0, 212, 170, 0.06);
}

/* Green / red price change */
.price-up {
  color: var(--color-emerald-500);
  font-weight: 600;
}

.price-down {
  color: #ef4444;
  font-weight: 600;
}


/* ──────────────────────────────────────────────
   20. RESPONSIVE OVERRIDES
   ────────────────────────────────────────────── */

/* Mobile menu */
.mobile-menu {
  position: fixed;
  top: 0;
  right: 0;
  width: 80%;
  max-width: 320px;
  height: 100vh;
  z-index: calc(var(--z-navbar) + 10);
  background: var(--bg-surface-solid);
  box-shadow: -4px 0 24px rgba(0, 0, 0, 0.15);
  padding: 5rem 2rem 2rem;
  transform: translateX(100%);
  transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}

.dark .mobile-menu {
  background: var(--color-navy-800);
  box-shadow: -4px 0 24px rgba(0, 0, 0, 0.5);
}

.mobile-menu.open {
  transform: translateX(0);
}

.mobile-menu__backdrop {
  position: fixed;
  inset: 0;
  z-index: calc(var(--z-navbar) + 5);
  background: rgba(0, 0, 0, 0.45);
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--transition-base),
              visibility var(--transition-base);
}

.mobile-menu__backdrop.open {
  opacity: 1;
  visibility: visible;
}

.mobile-menu__links {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.mobile-menu__links a {
  display: block;
  padding: 12px 0;
  font-size: 1.05rem;
  font-weight: 500;
  color: var(--text-secondary);
  text-decoration: none;
  border-bottom: 1px solid var(--border-color);
  transition: color var(--transition-fast),
              padding-left var(--transition-fast);
}

.mobile-menu__links a:hover {
  color: var(--color-emerald-400);
  padding-left: 8px;
}

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 4px;
  border: none;
  background: none;
}

.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text-primary);
  border-radius: 2px;
  transition: transform var(--transition-base),
              opacity var(--transition-fast);
}

.hamburger.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}
.hamburger.active span:nth-child(2) {
  opacity: 0;
}
.hamburger.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

@media (max-width: 1024px) {
  .navbar__links {
    display: none;
  }
  .hamburger {
    display: flex;
  }
}

@media (max-width: 768px) {
  .hero__content {
    padding: 2rem 1rem;
  }

  .counter-card__number {
    font-size: 2rem;
  }

  .floating-buttons {
    bottom: 16px;
    right: 16px;
  }

  .floating-whatsapp,
  .floating-telegram {
    width: 48px;
    height: 48px;
    font-size: 1.25rem;
  }

  .modal-content {
    padding: 2rem 1.5rem;
    width: 94%;
  }
}

@media (max-width: 480px) {
  .navbar {
    padding: 0 1rem;
  }

  .hero {
    min-height: 90vh;
  }

  .testimonial-card {
    padding: 1.5rem;
  }

  .footer {
    padding: 3rem 0 1.5rem;
  }
}


/* ──────────────────────────────────────────────
   21. CUSTOM SCROLLBAR
   ────────────────────────────────────────────── */

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

::-webkit-scrollbar-track {
  background: var(--color-slate-100);
}

.dark ::-webkit-scrollbar-track,
:root.dark ::-webkit-scrollbar-track {
  background: var(--color-navy-900);
}

::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, var(--color-emerald-400), var(--color-emerald-600));
  border-radius: var(--radius-full);
}

::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(180deg, var(--color-emerald-500), var(--color-emerald-600));
}

/* Firefox scrollbar */
html {
  scrollbar-width: thin;
  scrollbar-color: var(--color-emerald-500) transparent;
}


/* ──────────────────────────────────────────────
   22. GRADIENT TEXT
   ────────────────────────────────────────────── */

.gradient-text {
  background: linear-gradient(135deg, var(--color-emerald-400), var(--color-gold-500));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.gradient-text--emerald {
  background: var(--gradient-emerald);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.gradient-text--gold {
  background: var(--gradient-gold);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}


/* ──────────────────────────────────────────────
   23. BUTTON STYLES
   ────────────────────────────────────────────── */

.btn-primary,
.btn-secondary,
.btn-gold {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 28px;
  font-family: inherit;
  font-size: 0.95rem;
  font-weight: 600;
  border-radius: var(--radius-sm);
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition: transform var(--transition-fast),
              box-shadow var(--transition-base),
              background var(--transition-fast),
              opacity var(--transition-fast);
}

/* Primary – emerald gradient with glow */
.btn-primary {
  background: var(--gradient-emerald);
  color: #fff;
  box-shadow: 0 4px 16px rgba(0, 212, 170, 0.3);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(0, 212, 170, 0.45);
}

.btn-primary:active {
  transform: translateY(0);
  box-shadow: 0 2px 8px rgba(0, 212, 170, 0.3);
}

/* Secondary – outlined */
.btn-secondary {
  background: transparent;
  color: var(--color-emerald-500);
  border: 1.5px solid var(--color-emerald-500);
}

.btn-secondary:hover {
  background: rgba(0, 212, 170, 0.08);
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(0, 212, 170, 0.12);
}

.dark .btn-secondary {
  color: var(--color-emerald-400);
  border-color: var(--color-emerald-400);
}

/* Gold gradient */
.btn-gold {
  background: var(--gradient-gold);
  color: var(--color-navy-900);
  box-shadow: 0 4px 16px rgba(245, 158, 11, 0.3);
}

.btn-gold:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(245, 158, 11, 0.45);
}

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

/* Small variant */
.btn-sm {
  padding: 8px 18px;
  font-size: 0.82rem;
}


/* ──────────────────────────────────────────────
   24. ANIMATED CHART BACKGROUND
   ────────────────────────────────────────────── */

.chart-bg {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: 0;
  opacity: 0.08;
}

.dark .chart-bg {
  opacity: 0.12;
}

.chart-bg__line {
  position: absolute;
  bottom: 0;
  width: 2px;
  background: var(--color-emerald-400);
  border-radius: 1px;
  animation: chartRise linear infinite;
}

.chart-bg__line:nth-child(1)  { left: 5%;  height: 30%;  animation-duration: 8s;  animation-delay: 0s; }
.chart-bg__line:nth-child(2)  { left: 10%; height: 50%;  animation-duration: 12s; animation-delay: 1s; }
.chart-bg__line:nth-child(3)  { left: 15%; height: 25%;  animation-duration: 10s; animation-delay: 2s; }
.chart-bg__line:nth-child(4)  { left: 20%; height: 60%;  animation-duration: 14s; animation-delay: 0.5s; }
.chart-bg__line:nth-child(5)  { left: 28%; height: 35%;  animation-duration: 9s;  animation-delay: 3s; }
.chart-bg__line:nth-child(6)  { left: 35%; height: 45%;  animation-duration: 11s; animation-delay: 1.5s; }
.chart-bg__line:nth-child(7)  { left: 42%; height: 55%;  animation-duration: 13s; animation-delay: 0.8s; }
.chart-bg__line:nth-child(8)  { left: 50%; height: 40%;  animation-duration: 10s; animation-delay: 2.5s; }
.chart-bg__line:nth-child(9)  { left: 58%; height: 65%;  animation-duration: 15s; animation-delay: 1.2s; }
.chart-bg__line:nth-child(10) { left: 65%; height: 30%;  animation-duration: 8s;  animation-delay: 3.5s; }
.chart-bg__line:nth-child(11) { left: 72%; height: 50%;  animation-duration: 12s; animation-delay: 0.3s; }
.chart-bg__line:nth-child(12) { left: 80%; height: 20%;  animation-duration: 9s;  animation-delay: 2.2s; }
.chart-bg__line:nth-child(13) { left: 88%; height: 45%;  animation-duration: 11s; animation-delay: 1.8s; }
.chart-bg__line:nth-child(14) { left: 95%; height: 35%;  animation-duration: 10s; animation-delay: 4s; }

/* Candlestick body */
.chart-bg__candle {
  position: absolute;
  bottom: 0;
  width: 8px;
  border-radius: 2px;
  animation: chartRise linear infinite;
}

.chart-bg__candle--green {
  background: var(--color-emerald-400);
}

.chart-bg__candle--red {
  background: #ef4444;
}

.chart-bg__candle:nth-child(15) { left: 8%;  height: 22%; animation-duration: 10s; animation-delay: 0.5s; }
.chart-bg__candle:nth-child(16) { left: 18%; height: 18%; animation-duration: 12s; animation-delay: 2s; }
.chart-bg__candle:nth-child(17) { left: 32%; height: 28%; animation-duration: 9s;  animation-delay: 1s; }
.chart-bg__candle:nth-child(18) { left: 48%; height: 15%; animation-duration: 14s; animation-delay: 3s; }
.chart-bg__candle:nth-child(19) { left: 62%; height: 20%; animation-duration: 11s; animation-delay: 0.8s; }
.chart-bg__candle:nth-child(20) { left: 78%; height: 25%; animation-duration: 13s; animation-delay: 2.5s; }
.chart-bg__candle:nth-child(21) { left: 92%; height: 18%; animation-duration: 10s; animation-delay: 1.5s; }

@keyframes chartRise {
  0%   { transform: translateY(100vh); opacity: 0; }
  10%  { opacity: 1; }
  90%  { opacity: 1; }
  100% { transform: translateY(-20vh); opacity: 0; }
}


/* ──────────────────────────────────────────────
   25. TICKER TAPE
   ────────────────────────────────────────────── */

.ticker {
  width: 100%;
  overflow: hidden;
  background: var(--color-navy-800);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  padding: 8px 0;
  white-space: nowrap;
}

.ticker__wrap {
  display: inline-flex;
  animation: tickerScroll 40s linear infinite;
}

.ticker__wrap:hover {
  animation-play-state: paused;
}

.ticker__item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 0 2rem;
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--color-slate-200);
}

.ticker__symbol {
  font-weight: 700;
  color: #fff;
}

.ticker__price {
  font-weight: 600;
}

.ticker__change--up {
  color: var(--color-emerald-400);
}

.ticker__change--down {
  color: #ef4444;
}

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


/* ──────────────────────────────────────────────
   UTILITIES & EXTRAS
   ────────────────────────────────────────────── */

/* Section divider */
.section-divider {
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent 0%,
    var(--color-emerald-400) 50%,
    transparent 100%
  );
  opacity: 0.2;
}

/* Back-to-top button */
.back-to-top {
  position: fixed;
  bottom: 100px;
  right: 28px;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: none;
  background: var(--gradient-emerald);
  color: #fff;
  font-size: 1.1rem;
  cursor: pointer;
  z-index: var(--z-floating);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: opacity var(--transition-base),
              visibility var(--transition-base),
              transform var(--transition-base);
  box-shadow: 0 4px 12px rgba(0, 212, 170, 0.3);
}

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

.back-to-top:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(0, 212, 170, 0.45);
}

@media (max-width: 768px) {
  .back-to-top {
    bottom: 80px;
    right: 16px;
    width: 38px;
    height: 38px;
  }
}

/* Skeleton loading placeholder */
.skeleton {
  position: relative;
  overflow: hidden;
  background: var(--border-color);
  border-radius: var(--radius-sm);
}

.skeleton::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(255, 255, 255, 0.15) 50%,
    transparent 100%
  );
  animation: shimmer 1.8s ease-in-out infinite;
}

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

/* Tooltip */
.tooltip {
  position: relative;
}

.tooltip::after {
  content: attr(data-tooltip);
  position: absolute;
  bottom: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%) translateY(4px);
  padding: 6px 12px;
  font-size: 0.75rem;
  font-weight: 500;
  white-space: nowrap;
  color: #fff;
  background: var(--color-navy-800);
  border-radius: 6px;
  pointer-events: none;
  opacity: 0;
  transition: opacity var(--transition-fast),
              transform var(--transition-fast);
  z-index: 50;
}

.tooltip:hover::after {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* ──────────────────────────────────────────────
   ADDITIONAL ANIMATIONS
   ────────────────────────────────────────────── */

/* Preloader candlestick bars (used in HTML) */
.animate-bar {
  animation: animateBar 1.2s ease-in-out infinite;
}

@keyframes animateBar {
  0%, 100% { transform: scaleY(1); }
  50%      { transform: scaleY(0.4); }
}

/* Floating cards animation (used on hero stat cards) */
.animate-float {
  animation: animateFloat 6s ease-in-out infinite;
}

@keyframes animateFloat {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-12px); }
}

/* Ticker content scroll animation */
.ticker-content {
  animation: tickerScroll 30s linear infinite;
}

.ticker:hover .ticker-content {
  animation-play-state: paused;
}

/* Back to top button visibility */
#back-to-top.visible {
  opacity: 1 !important;
  visibility: visible !important;
}

/* Typing cursor blink */
.typing-text {
  border-right: 2px solid currentColor;
  animation: blink 0.7s step-end infinite;
}

@keyframes blink {
  0%, 100% { border-color: currentColor; }
  50%      { border-color: transparent; }
}

/* Active nav link */
.nav-link.active {
  color: #00d4aa !important;
}

/* Accessible reduced motion */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }

  .ticker__wrap {
    animation: none;
  }
}

/* Print styles */
@media print {
  .navbar,
  .preloader,
  .floating-buttons,
  .back-to-top,
  .ticker,
  .modal-overlay {
    display: none !important;
  }

  body {
    color: #000;
    background: #fff;
  }
}
