/* ============================================================
 * forex.css — Forex Trading Coming Soon — Premium UI
 * Binovax Trading Platform
 * ============================================================ */

/* ── Forex Tab Button (Desktop Toolbar) ── */
.forex-tab-btn {
  display: flex;
  align-items: center;
  gap: 0;
  padding: 5px 11px;
  background: linear-gradient(135deg, rgba(37,99,235,0.18) 0%, rgba(6,182,212,0.14) 100%);
  border: 1px solid rgba(56,189,248,0.35);
  border-radius: 8px;
  color: #7dd3fc;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.25s ease;
  white-space: nowrap;
  letter-spacing: 0.3px;
  position: relative;
  overflow: hidden;
}
.forex-tab-btn::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(56,189,248,0.12), rgba(37,99,235,0.08));
  opacity: 0;
  transition: opacity 0.25s;
}
.forex-tab-btn:hover {
  background: linear-gradient(135deg, rgba(37,99,235,0.32) 0%, rgba(6,182,212,0.26) 100%);
  border-color: rgba(56,189,248,0.65);
  color: #e0f2fe;
  transform: translateY(-1px);
  box-shadow: 0 4px 18px rgba(37,99,235,0.28);
}
.forex-tab-btn:hover::before { opacity: 1; }
.forex-tab-btn:active { transform: translateY(0); }

.forex-soon-badge {
  display: inline-flex;
  align-items: center;
  margin-left: 6px;
  padding: 1px 5px;
  background: linear-gradient(90deg, #f59e0b, #ef4444);
  color: #fff;
  font-size: 9px;
  font-weight: 800;
  border-radius: 4px;
  letter-spacing: 0.5px;
  animation: fxBadgePulse 2.5s ease-in-out infinite;
}
@keyframes fxBadgePulse {
  0%, 100% { opacity: 1; box-shadow: 0 0 0 0 rgba(245,158,11,0.5); }
  50%       { opacity: 0.85; box-shadow: 0 0 0 4px rgba(245,158,11,0); }
}

/* ── Mobile Forex Button (Chart Toolbar) ── */
.m-forex-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  padding: 4px 7px;
  background: linear-gradient(135deg, rgba(37,99,235,0.25), rgba(6,182,212,0.2));
  border: 1px solid rgba(56,189,248,0.4);
  border-radius: 6px;
  color: #7dd3fc;
  cursor: pointer;
  transition: all 0.2s ease;
  font-size: 9px;
  font-weight: 700;
}
.m-forex-btn:active {
  background: linear-gradient(135deg, rgba(37,99,235,0.45), rgba(6,182,212,0.38));
  transform: scale(0.94);
}

/* ── Mobile More Menu Card: Forex ── */
.m-more-card--forex {
  background: linear-gradient(135deg, rgba(30,58,138,0.55) 0%, rgba(8,145,178,0.4) 100%) !important;
  border: 1px solid rgba(56,189,248,0.25) !important;
}
.m-more-card--forex .m-more-card-glow {
  background: radial-gradient(circle at 30% 30%, rgba(56,189,248,0.35), transparent 60%) !important;
}
.m-more-card--forex .m-more-card-icon {
  background: rgba(37,99,235,0.3) !important;
  color: #7dd3fc !important;
}
.m-more-card--forex .m-more-card-label { color: #e0f2fe !important; }
.m-more-card--forex .m-more-card-sub { color: #7dd3fc !important; }


/* ── Forex Coming Soon Overlay ── */
.forex-overlay {
  position: fixed;
  inset: 0;
  z-index: 9500;
  background: linear-gradient(145deg, #020817 0%, #0a1628 35%, #050d1e 70%, #030b18 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;

  opacity: 0;
  visibility: hidden;
  transform: scale(1.03);
  transition: opacity 0.45s cubic-bezier(0.22, 1, 0.36, 1),
              visibility 0.45s,
              transform 0.45s cubic-bezier(0.22, 1, 0.36, 1);
}
.forex-overlay.fx-open {
  opacity: 1;
  visibility: visible;
  transform: scale(1);
}

/* ── Background Particle Dots ── */
.forex-particles {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}
.fx-particle {
  position: absolute;
  border-radius: 50%;
  animation: fxParticleFloat linear infinite;
  opacity: 0;
}
@keyframes fxParticleFloat {
  0%   { transform: translateY(100vh) rotate(0deg); opacity: 0; }
  10%  { opacity: var(--op, 0.6); }
  90%  { opacity: var(--op, 0.6); }
  100% { transform: translateY(-20vh) rotate(720deg); opacity: 0; }
}

/* ── Floating Orbs ── */
.forex-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  pointer-events: none;
  animation: fxOrbDrift ease-in-out infinite;
}
.forex-orb-1 {
  width: 420px; height: 420px;
  background: radial-gradient(circle, rgba(37,99,235,0.22), transparent 70%);
  top: -120px; left: -100px;
  animation-duration: 14s;
}
.forex-orb-2 {
  width: 340px; height: 340px;
  background: radial-gradient(circle, rgba(6,182,212,0.2), transparent 70%);
  bottom: -80px; right: -60px;
  animation-duration: 11s;
  animation-delay: -4s;
}
.forex-orb-3 {
  width: 280px; height: 280px;
  background: radial-gradient(circle, rgba(139,92,246,0.15), transparent 70%);
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  animation-duration: 18s;
  animation-delay: -8s;
}
@keyframes fxOrbDrift {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33%       { transform: translate(30px, -25px) scale(1.08); }
  66%       { transform: translate(-20px, 20px) scale(0.94); }
}

/* ── Content Layout ── */
.forex-content {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 64px;
  padding: 40px 32px;
  max-width: 1100px;
  width: 100%;
  animation: fxContentIn 0.6s cubic-bezier(0.22, 1, 0.36, 1) 0.15s both;
}
@keyframes fxContentIn {
  from { opacity: 0; transform: translateY(28px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ── Illustration Side ── */
.forex-illustration {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}
.forex-globe-wrap {
  position: relative;
  width: 300px;
  height: 300px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.forex-globe-svg {
  width: 220px;
  height: 220px;
  animation: fxGlobeFloat 6s ease-in-out infinite;
  filter: drop-shadow(0 0 40px rgba(37,99,235,0.5)) drop-shadow(0 0 80px rgba(6,182,212,0.2));
}
@keyframes fxGlobeFloat {
  0%, 100% { transform: translateY(0) rotateY(0deg); }
  50%       { transform: translateY(-12px) rotateY(8deg); }
}
.forex-lat-line {
  animation: fxLatWave 4s ease-in-out infinite;
}
@keyframes fxLatWave {
  0%, 100% { rx: 72; ry: 24; }
  50%       { rx: 72; ry: 28; }
}
.forex-lon-spin {
  animation: fxLonRotate 8s linear infinite;
  transform-origin: 100px 100px;
}
@keyframes fxLonRotate {
  from { transform: rotateY(0deg); }
  to   { transform: rotateY(360deg); }
}
.forex-city-dot {
  animation: fxCityPulse 2s ease-in-out infinite;
}
@keyframes fxCityPulse {
  0%, 100% { r: 3; opacity: 1; }
  50%       { r: 5; opacity: 0.6; }
}

/* ── Orbiting Currency Badges ── */
.forex-orbit {
  position: absolute;
  width: 280px;
  height: 280px;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  animation: fxOrbitSpin 20s linear infinite;
  pointer-events: none;
}
@keyframes fxOrbitSpin {
  from { transform: translate(-50%,-50%) rotate(0deg); }
  to   { transform: translate(-50%,-50%) rotate(360deg); }
}
.forex-orbit-badge {
  position: absolute;
  width: 100%;
  height: 100%;
  top: 0; left: 0;
  transform: rotate(var(--deg));
}
.forex-orbit-badge span {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%) rotate(calc(-1 * var(--deg)));
  background: linear-gradient(135deg, rgba(15,25,50,0.92), rgba(30,58,138,0.8));
  border: 1px solid rgba(56,189,248,0.4);
  border-radius: 20px;
  padding: 4px 10px;
  font-size: 10px;
  font-weight: 700;
  color: #7dd3fc;
  white-space: nowrap;
  backdrop-filter: blur(8px);
  box-shadow: 0 2px 12px rgba(37,99,235,0.3);
  letter-spacing: 0.5px;
}

/* ── Mini Chart ── */
.forex-mini-chart {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(8,15,35,0.85);
  border: 1px solid rgba(52,211,153,0.3);
  border-radius: 10px;
  padding: 8px 14px;
  backdrop-filter: blur(8px);
  box-shadow: 0 4px 20px rgba(52,211,153,0.15);
  animation: fxMiniChartIn 0.8s 0.5s ease both;
}
.forex-mini-chart svg { width: 90px; height: 38px; display: block; }
@keyframes fxMiniChartIn {
  from { opacity: 0; transform: translateX(-50%) translateY(12px); }
  to   { opacity: 1; transform: translateX(-50%) translateY(0); }
}

/* ── Text Block ── */
.forex-text-block {
  flex: 1;
  max-width: 480px;
}

/* Eyebrow */
.forex-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #38bdf8;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  margin-bottom: 16px;
  background: rgba(56,189,248,0.1);
  border: 1px solid rgba(56,189,248,0.25);
  border-radius: 20px;
  padding: 5px 14px;
  animation: fxFadeUp 0.5s 0.3s ease both;
}
.forex-eyebrow-dot {
  width: 5px; height: 5px;
  border-radius: 50%;
  background: #38bdf8;
  animation: fxDotBlink 1.8s ease-in-out infinite;
}
@keyframes fxDotBlink {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0.3; }
}

/* Title */
.forex-title {
  font-family: 'Inter', sans-serif;
  font-size: clamp(34px, 5vw, 52px);
  font-weight: 900;
  line-height: 1.12;
  color: #f0f9ff;
  margin: 0 0 20px 0;
  letter-spacing: -1px;
  animation: fxFadeUp 0.5s 0.4s ease both;
}
.forex-title-fx {
  background: linear-gradient(135deg, #38bdf8 0%, #818cf8 50%, #06b6d4 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  background-size: 200% auto;
  animation: fxFadeUp 0.5s 0.4s ease both, fxGradientShift 4s ease-in-out infinite;
}
@keyframes fxGradientShift {
  0%, 100% { background-position: 0% 50%; }
  50%       { background-position: 100% 50%; }
}

/* Description */
.forex-desc {
  font-size: 15px;
  color: #94a3b8;
  line-height: 1.75;
  margin: 0 0 28px 0;
  animation: fxFadeUp 0.5s 0.5s ease both;
}

/* Feature Pills */
.forex-features {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 36px;
  animation: fxFadeUp 0.5s 0.6s ease both;
}
.forex-feature-pill {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 8px 14px;
  background: linear-gradient(135deg, rgba(15,25,50,0.8), rgba(30,41,59,0.6));
  border: 1px solid rgba(148,163,184,0.15);
  border-radius: 24px;
  color: #cbd5e1;
  font-size: 12px;
  font-weight: 600;
  transition: all 0.2s ease;
  cursor: default;
}
.forex-feature-pill:hover {
  border-color: rgba(56,189,248,0.4);
  color: #e2e8f0;
  background: linear-gradient(135deg, rgba(37,99,235,0.2), rgba(6,182,212,0.15));
  transform: translateY(-2px);
  box-shadow: 0 4px 14px rgba(37,99,235,0.2);
}
.forex-feature-pill svg { flex-shrink: 0; color: #38bdf8; }

/* CTA Buttons */
.forex-cta-row {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  animation: fxFadeUp 0.5s 0.7s ease both;
}

.forex-back-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 13px 26px;
  background: #fff;
  color: #0f172a;
  border: none;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.25s ease;
  box-shadow: 0 4px 20px rgba(0,0,0,0.3);
  letter-spacing: 0.2px;
}
.forex-back-btn:hover {
  background: #f0f9ff;
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(0,0,0,0.4);
}
.forex-back-btn:active { transform: translateY(0); }

.forex-notify-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 13px 26px;
  background: linear-gradient(135deg, #2563eb, #0891b2);
  color: #fff;
  border: none;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.25s ease;
  box-shadow: 0 4px 20px rgba(37,99,235,0.4);
  letter-spacing: 0.2px;
  position: relative;
  overflow: hidden;
}
.forex-notify-btn::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255,255,255,0.15), transparent);
  opacity: 0;
  transition: opacity 0.25s;
}
.forex-notify-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(37,99,235,0.6);
}
.forex-notify-btn:hover::after { opacity: 1; }
.forex-notify-btn:active { transform: translateY(0); }

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


/* ── Responsive: Tablet ── */
@media (max-width: 900px) {
  .forex-content {
    flex-direction: column;
    gap: 32px;
    padding: 30px 24px;
    text-align: center;
  }
  .forex-globe-wrap {
    width: 220px;
    height: 220px;
  }
  .forex-globe-svg { width: 170px; height: 170px; }
  .forex-orbit   { width: 210px; height: 210px; }
  .forex-mini-chart { bottom: 6px; }
  .forex-text-block { max-width: 100%; }
  .forex-features { justify-content: center; }
  .forex-cta-row  { justify-content: center; }
  .forex-eyebrow  { justify-content: center; }
}

/* ── Responsive: Mobile ── */
@media (max-width: 600px) {
  .forex-content {
    padding: 24px 18px;
    gap: 24px;
  }
  .forex-globe-wrap {
    width: 180px;
    height: 180px;
  }
  .forex-globe-svg { width: 140px; height: 140px; }
  .forex-orbit { width: 170px; height: 170px; }
  .forex-orbit-badge span { font-size: 9px; padding: 3px 7px; }
  .forex-mini-chart { display: none; }

  .forex-title {
    font-size: 28px;
    letter-spacing: -0.5px;
  }
  .forex-desc { font-size: 13.5px; }
  .forex-features { gap: 8px; }
  .forex-feature-pill { font-size: 11px; padding: 6px 12px; }

  .forex-back-btn,
  .forex-notify-btn {
    padding: 12px 20px;
    font-size: 13px;
    flex: 1;
    justify-content: center;
  }
  .forex-cta-row { gap: 10px; }

  .forex-orb-1 { width: 240px; height: 240px; }
  .forex-orb-2 { width: 200px; height: 200px; }
  .forex-orb-3 { width: 160px; height: 160px; filter: blur(50px); }
}
