/* ===== STAGE 9 — FINAL CTA ===== */

.btrade-cta {
  position: relative;
  width: 100%;
  padding: 100px 0;
  overflow: hidden;
}

.cta-final {
  position: relative;
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 40px;
  padding: 0 40px;
}

/* ── Ambient glow ── */
.cta-glow {
  position: absolute;
  top: 50%;
  right: 15%;
  transform: translateY(-50%);
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(0, 188, 212, 0.08) 0%, transparent 70%);
  pointer-events: none;
  z-index: 0;
}

/* ===== LEFT: Content ===== */
.cta-content {
  flex: 1;
  position: relative;
  z-index: 2;
}

.cta-label {
  display: inline-block;
  font-family: "Inter", monospace;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.3em;
  color: var(--btrade-accent, #00BCD4);
  margin-bottom: 20px;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.cta-label.visible {
  opacity: 1;
  transform: translateY(0);
}

.cta-title {
  font-family: "Poppins", "Cairo", sans-serif;
  font-size: clamp(32px, 4vw, 52px);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -1.5px;
  color: var(--btrade-text-primary, #ffffff);
  margin-bottom: 20px;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease 0.1s, transform 0.6s ease 0.1s;
}

.cta-title.visible {
  opacity: 1;
  transform: translateY(0);
}

.cta-title-accent {
  background: linear-gradient(135deg, var(--btrade-primary, #2196F3), var(--btrade-accent, #00BCD4));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.cta-desc {
  font-family: "Inter", "IBM Plex Sans Arabic", sans-serif;
  font-size: 17px;
  line-height: 1.7;
  color: var(--btrade-text-secondary, #8b8b9e);
  margin-bottom: 32px;
  max-width: 440px;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease 0.2s, transform 0.6s ease 0.2s;
}

.cta-desc.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ── CTA Button ── */
.cta-actions {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-bottom: 40px;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease 0.3s, transform 0.6s ease 0.3s;
}

.cta-actions.visible {
  opacity: 1;
  transform: translateY(0);
}

.cta-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 16px 36px;
  background: linear-gradient(135deg, var(--btrade-primary, #2196F3), var(--btrade-primary-dark, #1976D2));
  border: none;
  border-radius: 14px;
  color: white;
  font-family: "Inter", sans-serif;
  font-size: 16px;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  box-shadow: 0 4px 20px rgba(33, 150, 243, 0.35);
  transition: all 0.3s ease;
  width: fit-content;
}

.cta-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 30px rgba(33, 150, 243, 0.5);
}

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

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

.cta-note {
  font-family: "Inter", sans-serif;
  font-size: 13px;
  color: var(--btrade-text-muted, #5a5a6e);
}

/* ── Trust Badges ── */
.cta-trust {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease 0.4s, transform 0.6s ease 0.4s;
}

.cta-trust.visible {
  opacity: 1;
  transform: translateY(0);
}

.cta-trust-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: "Inter", sans-serif;
  font-size: 13px;
  color: var(--btrade-text-muted, #5a5a6e);
}

.cta-trust-item svg {
  color: var(--btrade-accent, #00BCD4);
  opacity: 0.6;
}

/* ===== RIGHT: Image — Blended into background ===== */
.cta-image {
  flex: 1.2;
  position: relative;
  z-index: 1;
  opacity: 0;
  transform: translateX(30px);
  transition: opacity 0.8s ease 0.2s, transform 0.8s ease 0.2s;
}

.cta-image.visible {
  opacity: 1;
  transform: translateX(0);
}

.cta-image img {
  width: 100%;
  max-width: 620px;
  height: auto;
  display: block;
  position: relative;
  z-index: 2;
  /* NO border-radius — blends with bg */
  /* Fade edges into background */
  mask-image: radial-gradient(ellipse 85% 80% at 50% 50%, rgba(0,0,0,1) 40%, rgba(0,0,0,0) 100%);
  -webkit-mask-image: radial-gradient(ellipse 85% 80% at 50% 50%, rgba(0,0,0,1) 40%, rgba(0,0,0,0) 100%);
}

/* Cyan glow behind image — feels integrated */
.cta-image-glow {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at 55% 45%, rgba(0, 188, 212, 0.12) 0%, rgba(33, 150, 243, 0.05) 40%, transparent 65%);
  border-radius: 50%;
  z-index: 1;
  animation: cta-glow-pulse 4s ease-in-out infinite alternate;
  pointer-events: none;
}

@keyframes cta-glow-pulse {
  0% {
    opacity: 0.6;
    transform: translate(-50%, -50%) scale(1);
  }
  100% {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1.08);
  }
}

/* Subtle scan line over image */
.cta-image::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(180deg, transparent 0%, rgba(0, 188, 212, 0.03) 50%, transparent 100%);
  animation: cta-scanline 6s ease-in-out infinite;
  pointer-events: none;
  z-index: 3;
}

@keyframes cta-scanline {
  0%, 100% { transform: translateY(-30%); opacity: 0; }
  50%      { transform: translateY(30%); opacity: 1; }
}

/* ── Divider line top ── */
.btrade-cta::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 200px;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(33, 150, 243, 0.3), transparent);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
  .cta-final {
    gap: 30px;
    padding: 0 30px;
  }

  .cta-image img {
    max-width: 480px;
  }
}

@media (max-width: 768px) {
  .btrade-cta {
    padding: 80px 0;
  }

  .cta-final {
    flex-direction: column-reverse;
    text-align: center;
    gap: 20px;
    padding: 0 24px;
  }

  .cta-image {
    transform: translateY(20px);
  }

  .cta-image.visible {
    transform: translateY(0);
  }

  .cta-image img {
    max-width: 340px;
    margin: 0 auto;
  }

  .cta-desc {
    max-width: none;
  }

  .cta-actions {
    align-items: center;
  }

  .cta-trust {
    justify-content: center;
  }

  .cta-glow {
    right: 50%;
    transform: translate(50%, -50%);
  }
}

@media (max-width: 480px) {
  .btrade-cta {
    padding: 60px 0;
  }

  .cta-btn {
    padding: 14px 28px;
    font-size: 15px;
    width: 100%;
    justify-content: center;
  }

  .cta-trust {
    flex-direction: column;
    align-items: center;
    gap: 12px;
  }
}