/**
 * Almighty Fx - Ultra-Premium Fintech & AI Forex Trading Design System
 * Modern Glassmorphic, High-Contrast Dark Aesthetic
 */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Plus+Jakarta+Sans:wght@400;500;600;700;800;900&family=JetBrains+Mono:wght@400;500;600&display=swap');

:root {
  /* Color Palette */
  --afx-bg-root: #070a12;
  --afx-bg-primary: #0b0f19;
  --afx-bg-secondary: #111827;
  --afx-bg-tertiary: #1a2234;
  --afx-bg-elevated: rgba(17, 24, 39, 0.75);
  --afx-bg-glass: rgba(15, 23, 42, 0.65);
  --afx-bg-glass-hover: rgba(30, 41, 59, 0.85);

  /* Borders & Strokes */
  --afx-border-subtle: rgba(255, 255, 255, 0.08);
  --afx-border-light: rgba(255, 255, 255, 0.14);
  --afx-border-glow: rgba(99, 102, 241, 0.4);
  --afx-border-emerald: rgba(16, 185, 129, 0.35);

  /* Primary Brand Gradients */
  --afx-primary: #6366f1;
  --afx-primary-hover: #4f46e5;
  --afx-primary-light: #818cf8;
  --afx-gradient-primary: linear-gradient(135deg, #6366f1 0%, #8b5cf6 50%, #06b6d4 100%);
  --afx-gradient-secondary: linear-gradient(135deg, #00f5a0 0%, #00d2ff 100%);
  --afx-gradient-amber: linear-gradient(135deg, #f59e0b 0%, #f97316 100%);
  --afx-gradient-dark: linear-gradient(180deg, rgba(17, 24, 39, 0.9) 0%, rgba(11, 15, 25, 0.95) 100%);
  --afx-gradient-glow: radial-gradient(circle at 50% 0%, rgba(99, 102, 241, 0.22) 0%, rgba(7, 10, 18, 0) 70%);

  /* Accent Colors */
  --afx-emerald: #10b981;
  --afx-emerald-glow: #00f5a0;
  --afx-cyan: #06b6d4;
  --afx-amber: #f59e0b;
  --afx-rose: #f43f5e;
  --afx-purple: #a855f7;

  /* Typography Colors */
  --afx-text-pure: #ffffff;
  --afx-text-primary: #f8fafc;
  --afx-text-secondary: #94a3b8;
  --afx-text-muted: #64748b;
  --afx-text-dark: #0f172a;

  /* Typography Fonts */
  --afx-font-heading: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --afx-font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --afx-font-mono: 'JetBrains Mono', monospace;

  /* Shadows */
  --afx-shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.3);
  --afx-shadow-md: 0 8px 24px -4px rgba(0, 0, 0, 0.45);
  --afx-shadow-lg: 0 16px 40px -8px rgba(0, 0, 0, 0.6);
  --afx-shadow-glow: 0 0 35px rgba(99, 102, 241, 0.3);
  --afx-shadow-glow-emerald: 0 0 35px rgba(16, 185, 129, 0.25);

  /* Radius */
  --afx-radius-sm: 8px;
  --afx-radius-md: 14px;
  --afx-radius-lg: 20px;
  --afx-radius-xl: 28px;
  --afx-radius-full: 9999px;

  /* Transitions */
  --afx-transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  --afx-transition-slow: all 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Global Reset & Base */
*, *::before, *::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  color-scheme: dark;
}

body {
  margin: 0;
  padding: 0;
  background-color: var(--afx-bg-root) !important;
  color: var(--afx-text-primary) !important;
  font-family: var(--afx-font-body) !important;
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--afx-font-heading) !important;
  color: var(--afx-text-pure) !important;
  font-weight: 700;
  line-height: 1.25;
  margin-top: 0;
  letter-spacing: -0.02em;
}

p {
  color: var(--afx-text-secondary);
  margin-top: 0;
}

a {
  color: inherit;
  text-decoration: none;
  transition: var(--afx-transition);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}
::-webkit-scrollbar-track {
  background: var(--afx-bg-root);
}
::-webkit-scrollbar-thumb {
  background: #1e293b;
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--afx-primary);
}

/* Container */
.afx-container {
  width: 100%;
  max-width: 1280px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 20px;
  padding-right: 20px;
}

@media (min-width: 1400px) {
  .afx-container {
    max-width: 1320px;
  }
}

/* Background Gradients & Effects */
.afx-bg-glow {
  position: relative;
}
.afx-bg-glow::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 1200px;
  height: 600px;
  background: radial-gradient(ellipse at 50% 0%, rgba(99, 102, 241, 0.18) 0%, rgba(6, 182, 212, 0.08) 40%, rgba(7, 10, 18, 0) 70%);
  pointer-events: none;
  z-index: 0;
}

.afx-gradient-text {
  background: var(--afx-gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
}

.afx-gradient-text-emerald {
  background: var(--afx-gradient-secondary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
}

.afx-gradient-text-amber {
  background: var(--afx-gradient-amber);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
}

/* Glassmorphic Cards & Surfaces */
.afx-glass-card {
  background: var(--afx-bg-glass);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--afx-border-subtle);
  border-radius: var(--afx-radius-lg);
  padding: 32px;
  box-shadow: var(--afx-shadow-md);
  transition: var(--afx-transition);
  position: relative;
  overflow: hidden;
}

.afx-glass-card:hover {
  background: var(--afx-bg-glass-hover);
  border-color: var(--afx-border-glow);
  transform: translateY(-4px);
  box-shadow: var(--afx-shadow-glow);
}

.afx-glass-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, rgba(99, 102, 241, 0.6), transparent);
  opacity: 0;
  transition: var(--afx-transition);
}

.afx-glass-card:hover::before {
  opacity: 1;
}

/* Buttons */
.afx-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-family: var(--afx-font-heading);
  font-weight: 600;
  font-size: 15px;
  padding: 13px 28px;
  border-radius: var(--afx-radius-full);
  cursor: pointer;
  transition: var(--afx-transition);
  text-decoration: none !important;
  border: none;
  outline: none;
  position: relative;
  overflow: hidden;
  line-height: 1.3;
}

.afx-btn-primary {
  background: var(--afx-gradient-primary);
  color: #ffffff !important;
  box-shadow: 0 4px 20px rgba(99, 102, 241, 0.4);
}

.afx-btn-primary:hover {
  background: linear-gradient(135deg, #4f46e5 0%, #7c3aed 50%, #0891b2 100%);
  box-shadow: 0 6px 28px rgba(99, 102, 241, 0.6);
  transform: translateY(-2px);
  color: #ffffff !important;
}

.afx-btn-secondary {
  background: rgba(255, 255, 255, 0.05);
  color: var(--afx-text-pure) !important;
  border: 1px solid var(--afx-border-light);
  backdrop-filter: blur(10px);
}

.afx-btn-secondary:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.3);
  transform: translateY(-2px);
  color: var(--afx-text-pure) !important;
}

.afx-btn-emerald {
  background: var(--afx-gradient-secondary);
  color: #080c14 !important;
  font-weight: 700;
  box-shadow: 0 4px 20px rgba(0, 245, 160, 0.35);
}

.afx-btn-emerald:hover {
  box-shadow: 0 6px 28px rgba(0, 245, 160, 0.55);
  transform: translateY(-2px);
}

.afx-btn-sm {
  padding: 8px 18px;
  font-size: 13px;
}

.afx-btn-lg {
  padding: 16px 36px;
  font-size: 17px;
}

/* Badges & Tags */
.afx-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  border-radius: var(--afx-radius-full);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.02em;
  background: rgba(99, 102, 241, 0.12);
  color: var(--afx-primary-light);
  border: 1px solid rgba(99, 102, 241, 0.3);
}

.afx-badge-emerald {
  background: rgba(16, 185, 129, 0.12);
  color: var(--afx-emerald-glow);
  border-color: rgba(16, 185, 129, 0.3);
}

.afx-badge-amber {
  background: rgba(245, 158, 11, 0.12);
  color: var(--afx-amber);
  border-color: rgba(245, 158, 11, 0.3);
}

/* Pulse Dot */
.afx-pulse-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: var(--afx-emerald-glow);
  box-shadow: 0 0 10px var(--afx-emerald-glow);
  animation: afxPulse 2s infinite;
}

@keyframes afxPulse {
  0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(0, 245, 160, 0.7); }
  70% { transform: scale(1.1); box-shadow: 0 0 0 8px rgba(0, 245, 160, 0); }
  100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(0, 245, 160, 0); }
}

/* ----------------------------------------------------
 * NAVIGATION BAR
 * ---------------------------------------------------- */
.afx-navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background: rgba(8, 12, 20, 0.65);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--afx-border-subtle);
  transition: var(--afx-transition);
}

.afx-navbar.scrolled {
  background: rgba(8, 12, 20, 0.92);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  border-bottom-color: rgba(255, 255, 255, 0.1);
}

.afx-nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 84px;
  transition: var(--afx-transition);
}

.afx-navbar.scrolled .afx-nav-container {
  height: 72px;
}

.afx-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.afx-brand-logo-icon {
  width: 40px;
  height: 40px;
  background: var(--afx-gradient-primary);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-weight: 900;
  font-size: 20px;
  box-shadow: 0 0 15px rgba(99, 102, 241, 0.5);
}

.afx-brand-name {
  font-size: 22px;
  font-weight: 800;
  color: #ffffff;
  letter-spacing: -0.03em;
  font-family: var(--afx-font-heading);
}

.afx-nav-menu {
  display: flex;
  align-items: center;
  gap: 32px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.afx-nav-link {
  font-size: 15px;
  font-weight: 500;
  color: var(--afx-text-secondary);
  transition: var(--afx-transition);
  position: relative;
  padding: 6px 0;
}

.afx-nav-link:hover,
.afx-nav-link.active {
  color: #ffffff;
}

.afx-nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--afx-gradient-primary);
  transition: var(--afx-transition);
  border-radius: 2px;
}

.afx-nav-link:hover::after,
.afx-nav-link.active::after {
  width: 100%;
}

.afx-nav-actions {
  display: flex;
  align-items: center;
  gap: 16px;
}

.afx-mobile-toggle {
  display: none;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--afx-border-light);
  border-radius: var(--afx-radius-sm);
  padding: 8px;
  color: var(--afx-text-pure);
  cursor: pointer;
  font-size: 24px;
}

/* Mobile Drawer — drops down from the top of the viewport */
.afx-mobile-drawer {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  max-height: 100vh;
  overflow-y: auto;
  background: rgba(8, 11, 20, 0.98);
  backdrop-filter: blur(25px);
  -webkit-backdrop-filter: blur(25px);
  border-bottom: 1px solid var(--afx-border-light);
  border-radius: 0 0 var(--afx-radius-xl) var(--afx-radius-xl);
  z-index: 1050;
  padding: 24px 24px 36px 24px;
  display: flex;
  flex-direction: column;
  transform: translateY(-100%);
  opacity: 0;
  visibility: hidden;
  transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1),
              opacity 0.4s ease,
              visibility 0s linear 0.5s;
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.6);
}

.afx-mobile-drawer.open {
  transform: translateY(0);
  opacity: 1;
  visibility: visible;
  transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1),
              opacity 0.4s ease,
              visibility 0s linear 0s;
}

.afx-mobile-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(4px);
  z-index: 1040;
  opacity: 0;
  visibility: hidden;
  transition: var(--afx-transition);
}

.afx-mobile-overlay.open {
  opacity: 1;
  visibility: visible;
}

/* Header row inside drawer: logo + close */
.afx-mobile-drawer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--afx-border-subtle);
}

/* Sign In / Start Learning action row */
.afx-mobile-drawer-actions {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 22px;
  opacity: 0;
  transform: translateY(-14px);
  transition: opacity 0.4s ease, transform 0.4s ease;
  transition-delay: 0.05s;
}

.afx-mobile-drawer.open .afx-mobile-drawer-actions {
  opacity: 1;
  transform: translateY(0);
}

.afx-mobile-nav-list {
  list-style: none;
  margin: 26px 0 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
}

.afx-mobile-nav-list li {
  opacity: 0;
  transform: translateY(-14px);
  transition: opacity 0.4s ease, transform 0.4s ease;
}

.afx-mobile-drawer.open .afx-mobile-nav-list li {
  opacity: 1;
  transform: translateY(0);
}

.afx-mobile-nav-list li:nth-child(1) { transition-delay: 0.10s; }
.afx-mobile-nav-list li:nth-child(2) { transition-delay: 0.14s; }
.afx-mobile-nav-list li:nth-child(3) { transition-delay: 0.18s; }
.afx-mobile-nav-list li:nth-child(4) { transition-delay: 0.22s; }
.afx-mobile-nav-list li:nth-child(5) { transition-delay: 0.26s; }
.afx-mobile-nav-list li:nth-child(6) { transition-delay: 0.30s; }
.afx-mobile-nav-list li:nth-child(7) { transition-delay: 0.34s; }

.afx-mobile-nav-link {
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 16px 18px;
  border-bottom: 1px solid var(--afx-border-subtle);
  font-size: 16px;
  font-weight: 600;
  color: var(--afx-text-secondary);
  transition: var(--afx-transition);
}

.afx-mobile-nav-list li:last-child .afx-mobile-nav-link {
  border-bottom: none;
}

.afx-mobile-nav-link:hover,
.afx-mobile-nav-link.active {
  color: #ffffff;
  background: rgba(99, 102, 241, 0.08);
}

/* ----------------------------------------------------
 * LIVE MARKET TICKER STRIP
 * ---------------------------------------------------- */
.afx-ticker-bar {
  background: rgba(11, 15, 25, 0.95);
  border-bottom: 1px solid var(--afx-border-subtle);
  border-top: 1px solid var(--afx-border-subtle);
  padding: 10px 0;
  overflow: hidden;
  position: relative;
  z-index: 10;
  margin-top: 84px;
}

.afx-ticker-track {
  display: flex;
  align-items: center;
  gap: 40px;
  width: max-content;
  animation: afxTickerSlide 35s linear infinite;
}

.afx-ticker-track:hover {
  animation-play-state: paused;
}

@keyframes afxTickerSlide {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

.afx-ticker-item {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
}

.afx-ticker-symbol {
  color: var(--afx-text-pure);
  font-family: var(--afx-font-heading);
}

.afx-ticker-price {
  font-family: var(--afx-font-mono);
  color: var(--afx-text-primary);
}

.afx-ticker-change {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 11px;
  font-family: var(--afx-font-mono);
}

.afx-ticker-change.up {
  background: rgba(16, 185, 129, 0.15);
  color: var(--afx-emerald-glow);
}

.afx-ticker-change.down {
  background: rgba(244, 63, 94, 0.15);
  color: var(--afx-rose);
}

/* ----------------------------------------------------
 * HERO SECTION
 * ---------------------------------------------------- */
.afx-hero {
  position: relative;
  padding: 80px 0 100px 0;
  overflow: hidden;
}

.afx-hero-glow-1 {
  position: absolute;
  top: 10%;
  left: 15%;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(99, 102, 241, 0.25) 0%, transparent 70%);
  filter: blur(80px);
  pointer-events: none;
  z-index: 0;
}

.afx-hero-glow-2 {
  position: absolute;
  top: 30%;
  right: 10%;
  width: 450px;
  height: 450px;
  background: radial-gradient(circle, rgba(6, 182, 212, 0.2) 0%, transparent 70%);
  filter: blur(80px);
  pointer-events: none;
  z-index: 0;
}

.afx-hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 60px;
  align-items: center;
  position: relative;
  z-index: 1;
}

.afx-hero-title {
  font-size: 56px;
  font-weight: 800;
  line-height: 1.1;
  margin: 20px 0 24px 0;
  letter-spacing: -0.03em;
}

.afx-hero-subtitle {
  font-size: 18px;
  line-height: 1.6;
  color: var(--afx-text-secondary);
  max-width: 560px;
  margin-bottom: 36px;
}

.afx-hero-btns {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
  margin-bottom: 48px;
}

.afx-hero-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  padding-top: 36px;
  border-top: 1px solid var(--afx-border-subtle);
}

.afx-stat-num {
  font-size: 32px;
  font-weight: 800;
  font-family: var(--afx-font-heading);
  color: #ffffff;
  line-height: 1.1;
  margin-bottom: 6px;
}

.afx-stat-label {
  font-size: 13px;
  color: var(--afx-text-muted);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* Trading Glass Card Graphic in Hero */
.afx-hero-card-preview {
  position: relative;
}

.afx-hero-trading-box {
  background: var(--afx-bg-glass);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--afx-radius-xl);
  padding: 36px;
  box-shadow: 0 25px 60px -15px rgba(0, 0, 0, 0.7), var(--afx-shadow-glow);
  position: relative;
}

.afx-floating-badge {
  position: absolute;
  background: rgba(17, 24, 39, 0.9);
  backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: var(--afx-radius-md);
  padding: 14px 20px;
  display: flex;
  align-items: center;
  gap: 14px;
  box-shadow: var(--afx-shadow-lg);
  animation: afxFloat 4s ease-in-out infinite;
}

.afx-floating-badge.badge-top {
  top: -25px;
  right: -20px;
}

.afx-floating-badge.badge-bottom {
  bottom: -25px;
  left: -20px;
  animation-delay: 2s;
}

@keyframes afxFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

/* ----------------------------------------------------
 * SECTION HEADERS & GENERAL GRIDS
 * ---------------------------------------------------- */
.afx-section {
  padding: 90px 0;
  position: relative;
}

.afx-section-header {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 60px auto;
}

.afx-section-title {
  font-size: 38px;
  font-weight: 800;
  margin: 16px 0;
  letter-spacing: -0.02em;
}

.afx-section-subtitle {
  font-size: 17px;
  color: var(--afx-text-secondary);
}

.afx-grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

.afx-grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.afx-grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 40px;
  align-items: center;
}

/* Feature Icon Box */
.afx-feature-icon {
  width: 64px;
  height: 64px;
  border-radius: var(--afx-radius-md);
  background: rgba(99, 102, 241, 0.12);
  border: 1px solid rgba(99, 102, 241, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  color: var(--afx-primary-light);
  margin-bottom: 24px;
  transition: var(--afx-transition);
}

.afx-glass-card:hover .afx-feature-icon {
  background: var(--afx-gradient-primary);
  color: #ffffff;
  transform: scale(1.05);
  box-shadow: 0 0 20px rgba(99, 102, 241, 0.5);
}

.afx-feature-icon.emerald {
  background: rgba(16, 185, 129, 0.12);
  border-color: rgba(16, 185, 129, 0.25);
  color: var(--afx-emerald-glow);
}

.afx-glass-card:hover .afx-feature-icon.emerald {
  background: var(--afx-gradient-secondary);
  color: #080c14;
  box-shadow: 0 0 20px rgba(16, 185, 129, 0.5);
}

/* ----------------------------------------------------
 * TRADING ACCOUNTS & PACKAGES
 * ---------------------------------------------------- */
.afx-pricing-card {
  background: var(--afx-bg-glass);
  border: 1px solid var(--afx-border-subtle);
  border-radius: var(--afx-radius-xl);
  padding: 40px 32px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  transition: var(--afx-transition);
}

.afx-pricing-card.featured {
  background: rgba(26, 34, 52, 0.85);
  border-color: var(--afx-primary);
  box-shadow: 0 0 40px rgba(99, 102, 241, 0.35);
  transform: scale(1.04);
}

.afx-pricing-card.featured:hover {
  transform: scale(1.06) translateY(-4px);
}

.afx-pricing-badge {
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--afx-gradient-primary);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 4px 16px;
  border-radius: var(--afx-radius-full);
}

.afx-pricing-features {
  list-style: none;
  padding: 0;
  margin: 30px 0;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.afx-pricing-feature-item {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 15px;
  color: var(--afx-text-secondary);
}

.afx-pricing-feature-item i {
  color: var(--afx-emerald-glow);
  font-size: 18px;
}

/* ----------------------------------------------------
 * INTERACTIVE FAQ ACCORDION
 * ---------------------------------------------------- */
.afx-accordion {
  display: flex;
  flex-direction: column;
  gap: 16px;
  max-width: 860px;
  margin: 0 auto;
}

.afx-accordion-item {
  background: var(--afx-bg-glass);
  border: 1px solid var(--afx-border-subtle);
  border-radius: var(--afx-radius-md);
  overflow: hidden;
  transition: var(--afx-transition);
}

.afx-accordion-item.active {
  border-color: var(--afx-border-glow);
  background: rgba(26, 34, 52, 0.6);
}

.afx-accordion-header {
  padding: 22px 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  user-select: none;
  font-family: var(--afx-font-heading);
  font-size: 18px;
  font-weight: 600;
  color: var(--afx-text-pure);
}

.afx-accordion-header i {
  font-size: 20px;
  color: var(--afx-primary-light);
  transition: transform 0.3s ease;
}

.afx-accordion-item.active .afx-accordion-header i {
  transform: rotate(180deg);
  color: var(--afx-emerald-glow);
}

.afx-accordion-body {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease-out, padding 0.35s ease;
  padding: 0 28px;
  color: var(--afx-text-secondary);
  line-height: 1.7;
}

.afx-accordion-item.active .afx-accordion-body {
  padding-bottom: 24px;
}

/* ----------------------------------------------------
 * AUTH PAGES (LOGIN / SIGNUP / FORGOT PASSWORD)
 * ---------------------------------------------------- */
.afx-auth-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 120px 20px 60px 20px;
  position: relative;
  background: radial-gradient(circle at 50% 10%, rgba(99, 102, 241, 0.15) 0%, rgba(7, 10, 18, 0) 70%);
}

.afx-auth-wrapper {
  width: 100%;
  max-width: 1100px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  background: rgba(15, 23, 42, 0.8);
  backdrop-filter: blur(25px);
  -webkit-backdrop-filter: blur(25px);
  border: 1px solid var(--afx-border-light);
  border-radius: var(--afx-radius-xl);
  box-shadow: var(--afx-shadow-lg), 0 0 50px rgba(99, 102, 241, 0.2);
  overflow: hidden;
}

.afx-auth-banner {
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.2) 0%, rgba(6, 182, 212, 0.1) 100%), #0d1322;
  padding: 50px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  border-right: 1px solid var(--afx-border-subtle);
}

.afx-auth-form-container {
  padding: 50px 45px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

/* Modern Form Inputs */
.afx-form-group {
  margin-bottom: 20px;
  position: relative;
}

.afx-form-label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--afx-text-secondary);
  margin-bottom: 8px;
}

.afx-input-wrapper {
  position: relative;
  display: flex;
  align-items: center;
}

.afx-input-icon {
  position: absolute;
  left: 16px;
  color: var(--afx-text-muted);
  font-size: 18px;
  pointer-events: none;
  transition: var(--afx-transition);
}

.afx-input {
  width: 100%;
  background: rgba(11, 15, 25, 0.8) !important;
  border: 1px solid var(--afx-border-light) !important;
  border-radius: var(--afx-radius-md) !important;
  padding: 14px 16px 14px 46px !important;
  color: var(--afx-text-pure) !important;
  font-family: var(--afx-font-body);
  font-size: 15px;
  outline: none !important;
  transition: var(--afx-transition);
}

.afx-input.no-icon {
  padding-left: 16px !important;
}

.afx-input:focus {
  border-color: var(--afx-primary-light) !important;
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.25) !important;
  background: rgba(15, 23, 42, 0.95) !important;
}

.afx-input:focus + .afx-input-icon,
.afx-input-wrapper:focus-within .afx-input-icon {
  color: var(--afx-primary-light);
}

.afx-input-action-btn {
  position: absolute;
  right: 12px;
  background: var(--afx-gradient-primary);
  border: none;
  border-radius: var(--afx-radius-sm);
  color: #fff;
  font-weight: 600;
  font-size: 13px;
  padding: 8px 16px;
  cursor: pointer;
  transition: var(--afx-transition);
}

.afx-input-action-btn:hover {
  filter: brightness(1.15);
}

.afx-password-toggle {
  position: absolute;
  right: 16px;
  color: var(--afx-text-muted);
  cursor: pointer;
  font-size: 18px;
  transition: var(--afx-transition);
}

.afx-password-toggle:hover {
  color: var(--afx-text-primary);
}

select.afx-input {
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%2394a3b8' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
}

select.afx-input option {
  background: #0f172a;
  color: #fff;
}

/* Alert Notifications */
.afx-alert {
  padding: 14px 18px;
  border-radius: var(--afx-radius-md);
  margin-bottom: 20px;
  font-size: 14px;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 12px;
}

.afx-alert-success {
  background: rgba(16, 185, 129, 0.15);
  border: 1px solid rgba(16, 185, 129, 0.35);
  color: var(--afx-emerald-glow);
}

.afx-alert-error {
  background: rgba(244, 63, 94, 0.15);
  border: 1px solid rgba(244, 63, 94, 0.35);
  color: #fda4af;
}

/* ----------------------------------------------------
 * INNER PAGE HERO BREADCRUMB
 * ---------------------------------------------------- */
.afx-page-hero {
  position: relative;
  padding: 140px 0 60px 0;
  background: linear-gradient(180deg, rgba(17, 24, 39, 0.8) 0%, rgba(7, 10, 18, 1) 100%);
  border-bottom: 1px solid var(--afx-border-subtle);
  overflow: hidden;
}

.afx-page-hero-glow {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 1000px;
  height: 350px;
  background: radial-gradient(ellipse at 50% 0%, rgba(99, 102, 241, 0.22) 0%, transparent 70%);
  pointer-events: none;
}

.afx-breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  color: var(--afx-text-muted);
  margin-top: 12px;
}

.afx-breadcrumb a {
  color: var(--afx-text-secondary);
}

.afx-breadcrumb a:hover {
  color: var(--afx-primary-light);
}

.afx-breadcrumb i {
  font-size: 14px;
}

.afx-breadcrumb span {
  color: var(--afx-emerald-glow);
}

/* ----------------------------------------------------
 * FOOTER
 * ---------------------------------------------------- */
.afx-footer {
  background: #060910;
  border-top: 1px solid var(--afx-border-subtle);
  padding: 70px 0 30px 0;
  position: relative;
  overflow: hidden;
  width: 100%;
}

.afx-footer-grid {
  display: grid;
  grid-template-columns: 1.3fr 0.9fr 0.9fr 1.2fr;
  gap: 40px;
  align-items: start;
  margin-bottom: 50px;
}

.afx-footer-brand-col {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.afx-footer-nav-col {
  display: flex;
  flex-direction: column;
}

.afx-footer-info-col {
  display: flex;
  flex-direction: column;
}

.afx-footer-title {
  font-size: 16px;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 20px;
  letter-spacing: -0.01em;
}

.afx-footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.afx-footer-links a {
  color: var(--afx-text-secondary);
  font-size: 14px;
  transition: var(--afx-transition);
}

.afx-footer-links a:hover {
  color: #ffffff;
  padding-left: 4px;
}

.afx-newsletter-box {
  background: rgba(17, 24, 39, 0.7);
  border: 1px solid var(--afx-border-light);
  border-radius: var(--afx-radius-md);
  padding: 6px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.afx-newsletter-input {
  background: transparent;
  border: none;
  outline: none;
  color: #fff;
  padding: 10px 14px;
  font-size: 14px;
  width: 100%;
}

.afx-footer-bottom {
  padding-top: 30px;
  border-top: 1px solid var(--afx-border-subtle);
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 13px;
  color: var(--afx-text-muted);
  flex-wrap: wrap;
  gap: 20px;
}

.afx-social-links {
  display: flex;
  align-items: center;
  gap: 12px;
}

.afx-social-icon {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--afx-border-subtle);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--afx-text-secondary);
  font-size: 16px;
  transition: var(--afx-transition);
}

.afx-social-icon:hover {
  background: var(--afx-gradient-primary);
  color: #fff;
  border-color: transparent;
  transform: translateY(-2px);
}

/* ----------------------------------------------------
 * RESPONSIVE BREAKPOINTS
 * ---------------------------------------------------- */
@media (max-width: 1100px) {
  .afx-hero-grid {
    grid-template-columns: 1fr;
    gap: 50px;
  }
  .afx-hero-card-preview {
    max-width: 540px;
    margin: 0 auto;
  }
  .afx-grid-3 {
    grid-template-columns: repeat(2, 1fr);
  }
  .afx-grid-4 {
    grid-template-columns: repeat(2, 1fr);
  }
  .afx-footer-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 36px;
  }
  .afx-auth-wrapper {
    grid-template-columns: 1fr;
  }
  .afx-auth-banner {
    display: none;
  }
}

@media (max-width: 900px) {
  .afx-nav-menu,
  .afx-nav-actions .afx-btn-primary,
  .afx-nav-actions .afx-btn-secondary {
    display: none;
  }
  .afx-mobile-toggle {
    display: block;
  }
  .afx-hero-title {
    font-size: 42px;
  }
  .afx-section-title {
    font-size: 32px;
  }
  .afx-grid-2 {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .afx-hero {
    padding: 50px 0 70px 0;
  }
  .afx-hero-title {
    font-size: 32px;
  }
  .afx-hero-subtitle {
    font-size: 15px;
  }
  .afx-hero-stats {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .afx-grid-3,
  .afx-grid-4 {
    grid-template-columns: 1fr;
  }
  .afx-footer-grid {
    grid-template-columns: 1fr;
  }
  .afx-pricing-card.featured {
    transform: none;
  }
  .afx-pricing-card.featured:hover {
    transform: translateY(-4px);
  }
  .afx-auth-form-container {
    padding: 30px 20px;
  }
  .afx-footer-bottom {
    flex-direction: column;
    text-align: center;
  }
}

/* ----------------------------------------------------
 * NEW: TRUST / REGULATION BAR (below hero)
 * ---------------------------------------------------- */
.afx-trust-bar {
  padding: 36px 0;
  border-top: 1px solid var(--afx-border-subtle);
  border-bottom: 1px solid var(--afx-border-subtle);
  background: rgba(17, 24, 39, 0.4);
}

.afx-trust-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 24px;
}

.afx-trust-label {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--afx-text-muted);
  white-space: nowrap;
}

.afx-trust-items {
  display: flex;
  align-items: center;
  gap: 40px;
  flex-wrap: wrap;
}

.afx-trust-item {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--afx-text-secondary);
  font-weight: 600;
  font-size: 14px;
  white-space: nowrap;
}

.afx-trust-item i {
  font-size: 20px;
  color: var(--afx-emerald-glow);
}

@media (max-width: 900px) {
  .afx-trust-row { justify-content: center; text-align: center; }
  .afx-trust-items { justify-content: center; gap: 24px; }
}

/* ----------------------------------------------------
 * NEW: HOW IT WORKS — step process
 * ---------------------------------------------------- */
.afx-steps-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  position: relative;
}

.afx-step-card {
  background: var(--afx-bg-glass);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--afx-border-subtle);
  border-radius: var(--afx-radius-lg);
  padding: 32px 26px;
  position: relative;
  transition: var(--afx-transition);
}

.afx-step-card:hover {
  border-color: var(--afx-border-glow);
  transform: translateY(-6px);
  box-shadow: var(--afx-shadow-glow);
}

.afx-step-number {
  width: 46px;
  height: 46px;
  border-radius: var(--afx-radius-md);
  background: var(--afx-gradient-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--afx-font-heading);
  font-weight: 800;
  font-size: 18px;
  color: #fff;
  margin-bottom: 20px;
  box-shadow: var(--afx-shadow-glow);
}

.afx-step-title {
  font-size: 18px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 10px;
  font-family: var(--afx-font-heading);
}

.afx-step-desc {
  font-size: 14px;
  color: var(--afx-text-secondary);
  line-height: 1.6;
}

.afx-step-connector {
  position: absolute;
  top: 46px;
  left: calc(100% + 12px);
  width: 24px;
  height: 2px;
  background: linear-gradient(90deg, var(--afx-primary), transparent);
  display: none;
}

@media (min-width: 901px) {
  .afx-step-connector { display: block; }
}

@media (max-width: 900px) {
  .afx-steps-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 560px) {
  .afx-steps-grid {
    grid-template-columns: 1fr;
  }
}

/* ----------------------------------------------------
 * NEW: TESTIMONIALS
 * ---------------------------------------------------- */
.afx-testimonial-card {
  background: var(--afx-bg-glass);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--afx-border-subtle);
  border-radius: var(--afx-radius-lg);
  padding: 32px;
  transition: var(--afx-transition);
}

.afx-testimonial-card:hover {
  border-color: var(--afx-border-glow);
  transform: translateY(-4px);
}

.afx-testimonial-stars {
  color: var(--afx-amber);
  font-size: 14px;
  margin-bottom: 18px;
  letter-spacing: 2px;
}

.afx-testimonial-text {
  font-size: 15px;
  color: var(--afx-text-primary);
  line-height: 1.7;
  margin-bottom: 24px;
}

.afx-testimonial-author {
  display: flex;
  align-items: center;
  gap: 14px;
}

.afx-testimonial-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--afx-gradient-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  color: #fff;
  font-family: var(--afx-font-heading);
  font-size: 15px;
  flex-shrink: 0;
}

.afx-testimonial-name {
  font-size: 14px;
  font-weight: 700;
  color: #fff;
}

.afx-testimonial-role {
  font-size: 12px;
  color: var(--afx-text-muted);
}
