/* ============================================
   USDTraDex — Premium Fintech
   Theme: Dark charcoal + yellow-orange/red accents
   ============================================ */

:root {
  /* Dark base */
  --bg-dark: #0a0a0c;
  --bg-charcoal: #111113;
  --bg-card: #16161a;
  --bg-card-hover: #1c1c21;
  /* Accent: yellow-orange */
  --accent: #f59e0b;
  --accent-light: #fbbf24;
  --accent-glow: rgba(245, 158, 11, 0.4);
  --accent-soft: rgba(245, 158, 11, 0.15);
  /* Red secondary */
  --red: #dc2626;
  --red-dark: #b91c1c;
  --red-soft: rgba(220, 38, 38, 0.2);
  /* Text */
  --white: #ffffff;
  --white-soft: rgba(248, 250, 252, 0.95);
  --gray: #94a3b8;
  --gray-dark: #64748b;
  /* Glass / borders */
  --glass: rgba(22, 22, 26, 0.85);
  --glass-border: rgba(245, 158, 11, 0.2);
  --border-subtle: rgba(255, 255, 255, 0.06);
  /* Legacy aliases */
  --gold: var(--accent);
  --gold-light: var(--accent-light);
  --cyan-accent: var(--accent);
  --navy: var(--bg-dark);
  --navy-light: var(--bg-card);
  --font-heading: 'Poppins', sans-serif;
  --font-body: 'Inter', sans-serif;
  --radius: 12px;
  --radius-lg: 20px;
  --shadow-glow: 0 0 40px var(--accent-soft);
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --positive: #16a34a;
  --positive-soft: rgba(22, 163, 74, 0.15);
}

/* Reset & Base */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  color: var(--white-soft);
  background: var(--bg-dark);
  overflow-x: hidden;
  position: relative;
}

/* Subtle gradient overlay */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(ellipse 80% 50% at 100% 0%, var(--accent-soft) 0%, transparent 50%),
              radial-gradient(ellipse 60% 60% at 0% 100%, var(--red-soft) 0%, transparent 50%);
  z-index: 0;
}

/* Geometric pattern overlay (top right) */
body::after {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 120 120' opacity='0.06'%3E%3Cpath d='M0 0h20v20H0z' fill='none' stroke='%23f59e0b' stroke-width='0.5'/%3E%3Cpath d='M40 0h20v20H40z' fill='none' stroke='%23f59e0b' stroke-width='0.5'/%3E%3Cpath d='M80 0h20v20H80z' fill='none' stroke='%23f59e0b' stroke-width='0.5'/%3E%3Cpath d='M20 20h20v20H20z' fill='none' stroke='%23f59e0b' stroke-width='0.5'/%3E%3Cpath d='M60 20h20v20H60z' fill='none' stroke='%23f59e0b' stroke-width='0.5'/%3E%3Cpath d='M0 40h20v20H0z' fill='none' stroke='%23f59e0b' stroke-width='0.5'/%3E%3Cpath d='M40 40h20v20H40z' fill='none' stroke='%23f59e0b' stroke-width='0.5'/%3E%3C/svg%3E");
  background-size: 180px 180px;
  background-position: 100% 0;
  z-index: 0;
}

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

a {
  color: var(--accent);
  text-decoration: none;
  transition: color var(--transition);
}

a:hover {
  color: var(--accent-light);
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.25rem;
  position: relative;
  z-index: 1;
}

main {
  position: relative;
  z-index: 1;
}

/* ========== NAV ========== */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 1rem 1.25rem;
  background: rgba(10, 10, 12, 0.9);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-subtle);
  transition: background var(--transition);
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 100%;
  animation: navSlideDown 0.6s ease-out;
}
@keyframes navSlideDown {
  from { opacity: 0; transform: translateY(-12px); }
  to { opacity: 1; transform: translateY(0); }
}

.nav .logo {
  flex-shrink: 0;
}

.logo {
  display: inline-block;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.5rem;
  color: var(--white) !important;
}

.logo img {
  display: block;
  height: 38px;
  width: auto;
  max-width: 180px;
  object-fit: contain;
  /* Remove black background: only gold/blue text shows on navy */
  mix-blend-mode: lighten;
  filter: drop-shadow(0 1px 2px rgba(0,0,0,0.3));
}

.logo:hover {
  color: var(--accent) !important;
}

.logo:hover img {
  opacity: 0.95;
}

.nav-links {
  display: flex;
  list-style: none;
  gap: 2rem;
}

.nav-links a {
  color: var(--white-soft);
  font-weight: 500;
  font-size: 0.95rem;
}

.nav-links a:hover {
  color: var(--accent);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.nav-toggle span {
  width: 24px;
  height: 2px;
  background: var(--white);
  border-radius: 1px;
  transition: var(--transition);
}

/* ========== BUTTONS ========== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.875rem 1.75rem;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.95rem;
  border-radius: var(--radius);
  border: 2px solid transparent;
  cursor: pointer;
  transition: all var(--transition);
}

.btn-primary {
  background: var(--accent);
  color: #0a0a0c;
  border: 2px solid var(--accent);
  box-shadow: 0 0 24px var(--accent-soft);
  animation: btnPulse 2.5s ease-in-out infinite;
}

.btn-primary:hover {
  transform: translateY(-2px);
  background: var(--accent-light);
  border-color: var(--accent-light);
  box-shadow: 0 0 36px var(--accent-glow);
}

.btn-outline {
  background: transparent;
  color: var(--white);
  border: 2px solid rgba(255, 255, 255, 0.5);
}

.btn-outline:hover {
  background: var(--accent-soft);
  border-color: var(--accent);
  color: var(--accent-light);
  box-shadow: 0 0 24px var(--accent-soft);
}

@keyframes btnPulse {
  0%, 100% { box-shadow: 0 0 24px var(--accent-soft); }
  50% { box-shadow: 0 0 32px var(--accent-glow); }
}

.btn-block {
  width: 100%;
}

/* ========== HERO ========== */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  padding-top: 5rem;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background: var(--bg-charcoal);
  z-index: 0;
}

/* Animated chart line in background – yellow-orange */
.chart-line {
  position: absolute;
  bottom: 15%;
  left: -5%;
  right: -5%;
  height: 200px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1200 200'%3E%3Cpath d='M0,120 Q150,80 300,100 T600,60 T900,90 T1200,40' fill='none' stroke='%23f59e0b' stroke-width='1' stroke-opacity='0.35'/%3E%3C/svg%3E") no-repeat center bottom;
  background-size: 100% 100%;
  animation: chartFloat 8s ease-in-out infinite;
}

@keyframes chartFloat {
  0%, 100% { opacity: 0.4; transform: translateY(0); }
  50% { opacity: 0.7; transform: translateY(-10px); }
}

.gradient-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.25;
  animation: orbPulse 10s ease-in-out infinite;
}

.gradient-orb-1 {
  width: 400px;
  height: 400px;
  background: var(--red);
  top: -100px;
  right: -100px;
  opacity: 0.15;
}

.gradient-orb-2 {
  width: 300px;
  height: 300px;
  background: var(--accent);
  bottom: 20%;
  left: -80px;
  animation-delay: -4s;
  opacity: 0.12;
}

@keyframes orbPulse {
  0%, 100% { transform: scale(1); opacity: 0.2; }
  50% { transform: scale(1.1); opacity: 0.3; }
}

/* Floating crypto icons */
.floating-icons {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 1;
}

.float-icon {
  position: absolute;
  font-size: 1.5rem;
  color: var(--accent);
  opacity: 0.4;
  animation: float 6s ease-in-out infinite;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 0.25rem;
}

.float-price {
  font-size: 0.65rem;
  font-weight: 600;
  color: var(--accent-light);
  opacity: 0.9;
  white-space: nowrap;
  transition: opacity 0.3s ease;
}

.float-icon:hover .float-price {
  opacity: 1;
}

.float-btc { top: 25%; left: 12%; animation-delay: 0s; }
.float-eth { top: 60%; right: 15%; animation-delay: -2s; }
.float-usdt { bottom: 30%; left: 25%; animation-delay: -4s; }

@keyframes float {
  0%, 100% { transform: translate(0, 0); }
  25% { transform: translate(8px, -8px); }
  50% { transform: translate(-5px, 5px); }
  75% { transform: translate(5px, 8px); }
}

/* Floating particles / speckles */
.particles {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  overflow: hidden;
}
.particle {
  position: absolute;
  width: 3px;
  height: 3px;
  background: var(--accent);
  border-radius: 50%;
  opacity: 0.4;
  animation: particleFloat 12s ease-in-out infinite;
}
.particle:nth-child(1) { left: 10%; top: 20%; animation-delay: 0s; }
.particle:nth-child(2) { left: 25%; top: 60%; animation-delay: -2s; }
.particle:nth-child(3) { left: 45%; top: 35%; animation-delay: -4s; }
.particle:nth-child(4) { left: 60%; top: 70%; animation-delay: -1s; }
.particle:nth-child(5) { left: 75%; top: 25%; animation-delay: -3s; }
.particle:nth-child(6) { left: 85%; top: 55%; animation-delay: -5s; }
.particle:nth-child(7) { left: 15%; top: 80%; animation-delay: -2.5s; }
.particle:nth-child(8) { left: 35%; top: 15%; animation-delay: -1.5s; }
.particle:nth-child(9) { left: 55%; top: 50%; animation-delay: -3.5s; }
.particle:nth-child(10) { left: 90%; top: 40%; animation-delay: -0.5s; }
.particle:nth-child(11) { left: 5%; top: 45%; animation-delay: -4.5s; }
.particle:nth-child(12) { left: 70%; top: 85%; animation-delay: -2s; }
@keyframes particleFloat {
  0%, 100% { transform: translate(0, 0) scale(1); opacity: 0.3; }
  33% { transform: translate(10px, -15px) scale(1.2); opacity: 0.5; }
  66% { transform: translate(-8px, 10px) scale(0.9); opacity: 0.4; }
}

.btn-nav-cta {
  padding: 0.5rem 1rem !important;
  background: var(--accent) !important;
  color: #0a0a0c !important;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 0.9rem !important;
}
.btn-nav-cta:hover {
  background: var(--accent-light) !important;
  color: #0a0a0c !important;
}

.hero-inner {
  position: relative;
  z-index: 2;
  flex: 1;
  display: flex;
  align-items: center;
  gap: 3rem;
  padding: 2rem 1.25rem 4rem;
}

.hero-content {
  flex: 1;
  max-width: 580px;
}

.hero-title {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: clamp(2rem, 4vw, 3.25rem);
  line-height: 1.2;
  color: var(--white);
  margin-bottom: 0.5rem;
  letter-spacing: -0.02em;
  animation: fadeInUp 0.8s ease-out;
}

.hero-title-accent {
  display: block;
  color: var(--accent);
  text-shadow: 0 0 40px var(--accent-soft);
  animation: fadeInUp 0.8s ease-out 0.15s both;
}

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

.hero-subtitle {
  font-size: 1.15rem;
  color: var(--gray);
  margin-bottom: 2rem;
  max-width: 420px;
  opacity: 0.95;
  animation: fadeInUp 0.8s ease-out 0.25s both;
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  animation: fadeInUp 0.8s ease-out 0.35s both;
}

/* Dashboard mockup */
.hero-visual {
  flex: 1;
  max-width: 420px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.dashboard-mockup {
  width: 100%;
  max-width: 380px;
  background: var(--glass);
  backdrop-filter: blur(16px);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  padding: 1.25rem;
  box-shadow: var(--shadow-glow);
  animation: cardFloat 5s ease-in-out infinite, fadeInUp 0.9s ease-out 0.2s both;
}

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

.mockup-header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 1rem;
}

.mockup-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--gray-dark);
}

.mockup-dot:nth-child(1) { background: #ef4444; }
.mockup-dot:nth-child(2) { background: #eab308; }
.mockup-dot:nth-child(3) { background: var(--positive); }

.mockup-label {
  margin-left: auto;
  font-size: 0.75rem;
  color: var(--gray);
}

.mockup-live {
  margin-left: 0.5rem;
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--positive);
  padding: 0.2rem 0.45rem;
  border-radius: 4px;
  background: rgba(34, 197, 94, 0.2);
  animation: livePulse 2s ease-in-out infinite;
}

@keyframes livePulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.75; }
}

.mockup-chart {
  height: 100px;
  margin-bottom: 1rem;
  position: relative;
  width: 100%;
}

#hero-chart-canvas {
  width: 100% !important;
  height: 100% !important;
  display: block;
  border-radius: var(--radius);
}

.mockup-svg {
  width: 100%;
  height: 100%;
}

.mockup-line {
  stroke-dasharray: 600;
  stroke-dashoffset: 600;
  animation: drawLine 2s ease-out forwards;
}

@keyframes drawLine {
  to { stroke-dashoffset: 0; }
}

.mockup-stats {
  display: flex;
  gap: 1.5rem;
}

.mockup-stat {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.mockup-stat .label {
  font-size: 0.7rem;
  color: var(--gray);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.mockup-stat .value {
  font-family: var(--font-heading);
  font-weight: 600;
  color: var(--white);
}

.mockup-stat .value.positive {
  color: var(--positive);
}

.mockup-stat .value.negative {
  color: #ef4444;
}

/* ========== SECTIONS COMMON ========== */
.section {
  padding: 5rem 0;
  position: relative;
}

.section-title {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: clamp(1.75rem, 3vw, 2.25rem);
  color: var(--white);
  text-align: center;
  margin-bottom: 0.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  flex-wrap: wrap;
  width: 100%;
}

.section-title-icon {
  display: inline-flex;
  color: var(--accent);
  flex-shrink: 0;
}

.section-title-icon svg {
  width: 1.5em;
  height: 1.5em;
}

.section-intro {
  text-align: center;
  color: var(--white-soft);
  max-width: 560px;
  margin: 0 auto 3rem;
  opacity: 0.9;
}

/* Glass cards (dark panels) */
.glass-card {
  background: var(--glass);
  backdrop-filter: blur(16px);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  transition: all var(--transition);
}

.glass-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-glow);
  border-color: rgba(245, 158, 11, 0.4);
}

/* Light content panels (off-white, like reference) */
.card-light {
  background: var(--card-bg);
  border: 1px solid rgba(30, 58, 95, 0.15);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  color: var(--text-on-light);
  transition: all var(--transition);
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.12);
}

.card-light:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
  border-color: rgba(212, 175, 55, 0.25);
}

.card-light .card-header-dark {
  background: var(--card-header);
  color: var(--white);
  margin: -1.75rem -1.75rem 1.25rem -1.75rem;
  padding: 1rem 1.75rem;
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 1rem;
}

/* ========== HOW IT WORKS ========== */
.steps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}

.step-card {
  text-align: center;
  opacity: 0;
  transform: translateY(24px);
}

.step-card.visible {
  opacity: 1;
  transform: translateY(0);
}

.step-icon {
  width: 56px;
  height: 56px;
  margin: 0 auto 1.25rem;
  color: var(--gold);
}

.step-icon svg {
  width: 100%;
  height: 100%;
}

.step-card h3 {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 1.15rem;
  color: var(--white);
  margin-bottom: 0.5rem;
}

.step-card p {
  font-size: 0.95rem;
  color: var(--gray);
  line-height: 1.6;
}

/* ========== LIVE MARKETS ========== */
.markets-section {
  background: linear-gradient(180deg, rgba(15, 40, 64, 0.3) 0%, transparent 50%);
}

.markets-tabs {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  margin-bottom: 2rem;
}

.markets-tab {
  padding: 0.6rem 1.5rem;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--gray);
  background: var(--glass);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius);
  cursor: pointer;
  transition: all var(--transition);
}

.markets-tab:hover {
  color: var(--white);
  border-color: rgba(212, 175, 55, 0.3);
}

.markets-tab.active {
  color: var(--navy);
  background: var(--gradient-gold);
  border-color: var(--gold);
}

.markets-panel {
  display: none;
}

.markets-panel.active {
  display: block;
  animation: fadeIn 0.35s ease-out;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.markets-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
}

.market-card {
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.market-card:hover {
  border-color: rgba(212, 175, 55, 0.3);
}

.market-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.35rem;
}

.market-pair {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--white);
}

.market-change {
  font-size: 0.85rem;
  font-weight: 600;
  padding: 0.2rem 0.5rem;
  border-radius: 6px;
}

.market-change.positive {
  color: var(--positive);
  background: var(--positive-soft);
}

.market-change.negative {
  color: #ef4444;
  background: rgba(239, 68, 68, 0.15);
}

.market-change.neutral {
  color: var(--gray);
}

.market-price {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.5rem;
  color: var(--gold);
  margin-bottom: 1rem;
}

.market-chart {
  height: 200px;
  width: 100%;
  min-height: 200px;
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.chart-loading {
  font-size: 0.85rem;
  color: var(--gray-dark);
}

.markets-note {
  text-align: center;
  font-size: 0.8rem;
  color: var(--gray-dark);
  margin-top: 1.5rem;
}

/* Lightweight Charts overrides for dark theme */
.market-card .tv-lightweight-charts {
  border-radius: var(--radius);
}

/* ========== INVESTMENT PLANS ========== */
.plans-section {
  background: linear-gradient(180deg, transparent 0%, rgba(15, 40, 64, 0.4) 50%, transparent 100%);
}

.plans-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2rem;
  max-width: 900px;
  margin: 0 auto;
}

.plan-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  background: var(--card-bg) !important;
  color: var(--text-on-light);
  border: 1px solid rgba(30, 58, 95, 0.2) !important;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.1);
}

.plan-card:hover {
  border-color: rgba(212, 175, 55, 0.4) !important;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12), var(--shadow-glow);
}

.plan-badge {
  position: absolute;
  top: -10px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--card-header);
  color: var(--white);
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  padding: 0.35rem 0.75rem;
  border-radius: 20px;
  border: 1px solid rgba(212, 175, 55, 0.3);
}

.plan-badge-gold {
  background: linear-gradient(135deg, var(--gold-dark), var(--gold));
  color: var(--indigo-deep);
  border-color: var(--gold-light);
}

.plan-name {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.35rem;
  color: var(--card-header);
  margin-top: 0.5rem;
}

.plan-duration {
  font-size: 0.95rem;
  color: var(--gold);
  font-weight: 600;
}

.plan-return, .plan-range, .plan-risk {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.5rem 0;
  border-bottom: 1px solid rgba(30, 58, 95, 0.12);
}

.plan-return .return-value,
.plan-risk .risk-value {
  font-weight: 700;
  color: var(--gold);
}

.plan-range span {
  color: var(--text-on-light-soft);
  font-size: 0.9rem;
}

.risk-moderate { color: #eab308 !important; }
.risk-elevated { color: #f59e0b !important; }

.plan-card .btn {
  margin-top: auto;
  padding-top: 1rem;
}

.plans-grid-three {
  max-width: 1100px;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.plan-tiers {
  list-style: none;
  margin: 0;
  padding: 0;
  font-size: 0.9rem;
  border-bottom: 1px solid rgba(30, 58, 95, 0.12);
  padding-bottom: 0.5rem;
}

.plan-tiers li {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.25rem;
  padding: 0.35rem 0;
  color: var(--text-on-light);
}

.plan-tiers .tier-daily {
  font-size: 0.8rem;
  color: var(--gold);
  font-weight: 600;
}

.plan-badge-legend {
  background: linear-gradient(135deg, #1e3a5f, #2d4a6f);
  color: var(--gold-light);
  border-color: var(--gold);
}

.plan-legend:hover {
  border-color: rgba(212, 175, 55, 0.5) !important;
}

/* Plans intro with calendar icon */
.plans-intro {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.5rem 1rem;
}
.plans-intro-note {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.9rem;
  color: var(--text-on-light-soft);
}
.plans-intro-icon {
  display: inline-flex;
  width: 18px;
  height: 18px;
  color: var(--gold);
  animation: plansCalendarPulse 2.5s ease-in-out infinite;
}
.plans-intro-icon svg {
  width: 100%;
  height: 100%;
}
@keyframes plansCalendarPulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.85; transform: scale(1.05); }
}

/* Plan card entrance animation */
.plan-card-animate {
  opacity: 0;
  transform: translateY(24px);
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.3s ease, border-color 0.3s ease;
}
.plans-grid.visible .plan-card-animate { opacity: 1; transform: translateY(0); }
.plans-grid.visible .plan-card-1 { transition-delay: 0.08s; }
.plans-grid.visible .plan-card-2 { transition-delay: 0.18s; }
.plans-grid.visible .plan-card-3 { transition-delay: 0.28s; }

.plan-card:hover {
  transform: translateY(-6px);
  border-color: rgba(212, 175, 55, 0.4) !important;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15), 0 0 0 1px rgba(212, 175, 55, 0.15);
}

/* Plan badge icon */
.plan-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
}
.plan-badge-icon {
  display: inline-flex;
  width: 16px;
  height: 16px;
  opacity: 0.95;
}
.plan-badge-icon svg {
  width: 100%;
  height: 100%;
}

/* Duration with clock icon */
.plan-duration {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}
.plan-duration-icon {
  display: inline-flex;
  width: 20px;
  height: 20px;
  color: var(--gold);
  flex-shrink: 0;
}
.plan-duration-icon svg {
  width: 100%;
  height: 100%;
}

/* Daily ROI with dollar icon */
.return-icon {
  display: inline-flex;
  width: 18px;
  height: 18px;
  margin-right: 0.25rem;
  vertical-align: middle;
  color: var(--gold);
}
.return-icon svg {
  width: 100%;
  height: 100%;
}

/* Tier list with check icon */
.plan-tiers li {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.tier-check {
  display: inline-flex;
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  color: var(--gold);
  transition: transform 0.2s ease;
}
.plan-tiers li:hover .tier-check {
  transform: scale(1.15);
}
.tier-check svg {
  width: 100%;
  height: 100%;
}

/* Invest button with arrow */
.btn-invest {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.btn-invest:hover {
  transform: scale(1.02);
  box-shadow: 0 6px 24px rgba(212, 175, 55, 0.35);
}
.btn-arrow {
  display: inline-flex;
  width: 18px;
  height: 18px;
  transition: transform 0.25s ease;
}
.btn-invest:hover .btn-arrow {
  transform: translateX(4px);
}
.btn-arrow svg {
  width: 100%;
  height: 100%;
}

/* Show plan cards animated on load (no observer) as fallback */
.plans-grid-three .plan-card-1 { transition-delay: 0.1s; }
.plans-grid-three .plan-card-2 { transition-delay: 0.2s; }
.plans-grid-three .plan-card-3 { transition-delay: 0.3s; }
@keyframes planCardReveal {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}
.plans-grid-three .plan-card-animate {
  animation: planCardReveal 0.55s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}
.plans-grid-three .plan-card-animate.plan-card-1 { animation-delay: 0.05s; }
.plans-grid-three .plan-card-animate.plan-card-2 { animation-delay: 0.15s; }
.plans-grid-three .plan-card-animate.plan-card-3 { animation-delay: 0.25s; }

/* ========== PERFORMANCE ========== */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.25rem;
  margin-bottom: 2.5rem;
}

.stat-card {
  text-align: center;
  padding: 1.5rem 1rem;
  opacity: 0;
  transform: translateY(20px);
  position: relative;
}

.stat-icon {
  display: inline-flex;
  color: var(--accent);
  margin-bottom: 0.5rem;
}

.stat-icon svg {
  width: 2rem;
  height: 2rem;
}

.stat-card.visible {
  opacity: 1;
  transform: translateY(0);
}

.stat-value {
  display: inline;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: clamp(1.5rem, 2.5vw, 2rem);
  color: var(--gold);
}

.stat-prefix, .stat-suffix {
  font-size: 1rem;
  margin-right: 2px;
}

.stat-label {
  display: block;
  font-size: 0.85rem;
  color: var(--gray);
  margin-top: 0.25rem;
}

.chart-container {
  padding: 1.75rem;
  overflow: hidden;
}

.chart-title {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 1rem;
  color: var(--white);
  margin-bottom: 1rem;
}

.chart-wrapper {
  width: 100%;
  height: 280px;
  position: relative;
}

#perfChart {
  width: 100% !important;
  height: 100% !important;
}

.affiliate-chart-wrap {
  margin-bottom: 2rem;
  max-width: 640px;
  margin-left: auto;
  margin-right: auto;
}

#referralChart {
  width: 100% !important;
  height: 100% !important;
  display: block;
}

/* ========== REFERRAL COMMISSION STRUCTURE ========== */
.affiliate-section {
  position: relative;
  background: linear-gradient(180deg, #0b0f1a 0%, #0f172a 50%, #0b0f1a 100%);
  overflow: hidden;
}

.affiliate-section-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 40% at 50% 20%, rgba(251, 191, 36, 0.08) 0%, transparent 50%),
    radial-gradient(ellipse 60% 50% at 80% 80%, rgba(59, 130, 246, 0.06) 0%, transparent 50%);
  pointer-events: none;
}

.affiliate-section-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
  background-size: 48px 48px;
  pointer-events: none;
}

.affiliate-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  margin-bottom: 2.5rem;
}

.affiliate-badge {
  display: inline-block;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.7rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #0f172a;
  background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%);
  padding: 0.45rem 1.25rem;
  border-radius: 999px;
  margin-bottom: 1rem;
  box-shadow: 0 0 24px rgba(251, 191, 36, 0.35), 0 2px 8px rgba(0, 0, 0, 0.2);
  transition: all 0.3s ease;
}

.affiliate-badge:hover {
  box-shadow: 0 0 32px rgba(251, 191, 36, 0.45), 0 4px 12px rgba(0, 0, 0, 0.25);
}

.affiliate-section-title {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: clamp(1.75rem, 3vw, 2.25rem);
  color: #f8fafc;
  margin: 0 0 0.5rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.affiliate-section-title .section-title-icon {
  color: var(--accent-light);
}
  letter-spacing: -0.02em;
}

.affiliate-intro {
  color: rgba(248, 250, 252, 0.75);
  font-size: 1rem;
  max-width: 520px;
  margin: 0;
  line-height: 1.5;
}

.affiliate-levels {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  max-width: 560px;
  margin: 0 auto;
}

.affiliate-level-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 16px 20px;
  transition: all 0.3s ease;
}

.affiliate-level-card:hover {
  transform: translateY(-3px);
  border-color: rgba(251, 191, 36, 0.25);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2), 0 0 0 1px rgba(251, 191, 36, 0.1);
}

.affiliate-level-card-special:hover {
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.25), 0 0 24px rgba(251, 191, 36, 0.15);
}

.affiliate-level-left {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.affiliate-level-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  min-width: 32px;
  color: #fbbf24;
  transition: transform 0.3s ease;
}

.affiliate-level-icon svg {
  width: 20px;
  height: 20px;
}

.affiliate-level-card:hover .affiliate-level-icon {
  transform: scale(1.1) rotate(8deg);
  filter: drop-shadow(0 0 8px rgba(251, 191, 36, 0.5));
}

.affiliate-level-label {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 1rem;
  color: #f1f5f9;
}

.affiliate-commission-badge {
  display: inline-block;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1rem;
  color: #0f172a;
  background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%);
  padding: 0.4rem 1rem;
  border-radius: 999px;
  box-shadow: 0 0 16px rgba(251, 191, 36, 0.3), 0 2px 6px rgba(0, 0, 0, 0.2);
  transition: all 0.3s ease;
  flex-shrink: 0;
}

.affiliate-level-card:hover .affiliate-commission-badge {
  box-shadow: 0 0 24px rgba(251, 191, 36, 0.4), 0 4px 12px rgba(0, 0, 0, 0.25);
}

.affiliate-commission-badge-special {
  background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%);
  box-shadow: 0 0 20px rgba(251, 191, 36, 0.4), 0 0 0 1px rgba(59, 130, 246, 0.2), 0 2px 8px rgba(0, 0, 0, 0.2);
  animation: affiliateBadgePulse 2s ease-in-out infinite;
}

@keyframes affiliateBadgePulse {
  0%, 100% { box-shadow: 0 0 20px rgba(251, 191, 36, 0.4), 0 0 0 1px rgba(59, 130, 246, 0.2), 0 2px 8px rgba(0, 0, 0, 0.2); }
  50% { box-shadow: 0 0 28px rgba(251, 191, 36, 0.5), 0 0 0 2px rgba(59, 130, 246, 0.3), 0 4px 12px rgba(0, 0, 0, 0.25); }
}

.affiliate-level-card-special .affiliate-level-icon {
  color: #fbbf24;
  filter: drop-shadow(0 0 6px rgba(251, 191, 36, 0.5));
}

@media (max-width: 480px) {
  .affiliate-level-card {
    flex-wrap: wrap;
    padding: 14px 16px;
  }
  .affiliate-level-left {
    flex: 1;
    min-width: 0;
  }
  .affiliate-commission-badge {
    margin-left: auto;
    align-self: center;
  }
  .affiliate-badge {
    font-size: 0.65rem;
    letter-spacing: 0.12em;
    padding: 0.4rem 1rem;
  }
}

/* ========== BONUS ========== */
.bonus-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.25rem;
}

.bonus-card {
  text-align: center;
  padding: 1.5rem;
  opacity: 0;
  transform: translateY(16px);
  background: var(--card-bg) !important;
  border: 2px solid rgba(212, 175, 55, 0.4) !important;
  color: var(--text-on-light);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.bonus-icon {
  display: inline-flex;
  color: var(--gold);
  margin-bottom: 0.5rem;
}

.bonus-icon svg {
  width: 2rem;
  height: 2rem;
}

.bonus-card.visible {
  opacity: 1;
  transform: translateY(0);
}

.bonus-gold:hover {
  border-color: var(--gold) !important;
  box-shadow: 0 0 30px rgba(212, 175, 55, 0.25);
}

.bonus-milestone {
  display: block;
  font-size: 0.9rem;
  color: var(--text-on-light-soft);
  margin-bottom: 0.5rem;
}

.bonus-amount {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.35rem;
  color: var(--gold);
}

/* ========== WITHDRAWAL ========== */
.withdrawal-content {
  max-width: 560px;
  margin: 0 auto;
  background: var(--card-bg) !important;
  border: 1px solid rgba(30, 58, 95, 0.2) !important;
  color: var(--text-on-light);
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.1);
}

.withdrawal-list {
  list-style: none;
  margin-bottom: 1.5rem;
}

.withdrawal-list li {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.5rem 0;
  color: var(--text-on-light);
  font-size: 0.95rem;
}

.withdrawal-icon {
  width: 24px;
  height: 24px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--positive-soft);
  color: var(--positive);
  border-radius: 50%;
  flex-shrink: 0;
}

.withdrawal-icon svg {
  width: 14px;
  height: 14px;
}

.security-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
  padding-top: 1rem;
  border-top: 1px solid rgba(30, 58, 95, 0.12);
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.85rem;
  color: var(--text-on-light-soft);
}

.badge-icon {
  display: inline-flex;
  margin-right: 0.35rem;
  vertical-align: middle;
}

.badge-icon svg {
  width: 1.1em;
  height: 1.1em;
  color: var(--accent);
}

/* ========== DISCLAIMER ========== */
.disclaimer-box {
  max-width: 720px;
  margin: 0 auto;
  border-left: 4px solid var(--gold);
  background: var(--card-bg) !important;
  border: 1px solid rgba(30, 58, 95, 0.15) !important;
  color: var(--text-on-light);
}

.disclaimer-box h3 {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 1rem;
  color: var(--gold);
  margin-bottom: 0.5rem;
}

.disclaimer-box p {
  font-size: 0.9rem;
  color: var(--text-on-light-soft);
  line-height: 1.7;
}

/* ========== FOOTER ========== */
.footer {
  background: linear-gradient(180deg, var(--indigo-vivid) 0%, #0a0015 100%);
  padding: 4rem 0 2rem;
  border-top: 1px solid rgba(135, 206, 235, 0.15);
  position: relative;
  z-index: 1;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr repeat(5, 1fr);
  gap: 2rem;
  margin-bottom: 2.5rem;
}

.footer-brand .logo {
  display: inline-block;
  margin-bottom: 0.5rem;
  color: var(--white) !important;
}

.footer-brand .logo img {
  height: 36px;
  width: auto;
  max-width: 160px;
  object-fit: contain;
  mix-blend-mode: lighten;
  filter: drop-shadow(0 1px 2px rgba(0,0,0,0.3));
}

.footer-brand .footer-tagline {
  font-size: 0.95rem;
  color: var(--white-soft);
  opacity: 0.9;
  margin-bottom: 0.5rem;
}

.footer-brand .footer-desc {
  font-size: 0.875rem;
  color: var(--gray);
  line-height: 1.55;
  max-width: 280px;
  margin: 0;
  opacity: 0.9;
}

.footer-col h4 {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--white);
  margin-bottom: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.footer-col ul {
  list-style: none;
}

.footer-col ul li {
  margin-bottom: 0.5rem;
}

.footer-col a {
  color: var(--white-soft);
  font-size: 0.9rem;
  opacity: 0.9;
}

.footer-col a:hover {
  color: var(--cyan-accent);
  opacity: 1;
}

.footer-contact-list li {
  margin-bottom: 0.75rem;
}

.footer-label {
  display: block;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--cyan-accent);
  margin-bottom: 0.2rem;
}

#footer-address, #footer-phone {
  word-break: break-word;
}

.social-links {
  display: flex;
  gap: 0.75rem;
}

.social-links a {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--glass);
  border: 1px solid var(--glass-border);
  border-radius: 10px;
  color: var(--gray);
  transition: all var(--transition);
}

.social-links a svg {
  display: block;
  flex-shrink: 0;
}

.social-links a:hover {
  color: var(--accent);
  border-color: rgba(245, 158, 11, 0.5);
  background: rgba(245, 158, 11, 0.08);
}

.footer-map-wrap {
  margin-bottom: 2.5rem;
}

.footer-map-title {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--white);
  margin: 0 0 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.footer-map-inner {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: var(--bg-card);
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.3);
}

.footer-map-iframe {
  display: block;
  width: 100%;
  height: 220px;
  border: none;
  background: var(--bg-card);
  filter: brightness(0.72) contrast(1.12) saturate(0.85);
}

.footer-map-link {
  display: inline-block;
  margin-top: 0.5rem;
  font-size: 0.85rem;
  color: var(--accent-light);
  text-decoration: none;
  transition: color var(--transition);
}

.footer-map-link:hover {
  color: var(--white);
}

.footer-trust {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.5rem;
  padding: 1.5rem 0;
  border-top: 1px solid rgba(255,255,255,0.06);
  border-bottom: 1px solid rgba(255,255,255,0.06);
  margin-bottom: 1.5rem;
}

.trust-badge {
  font-size: 0.8rem;
  color: var(--gray);
}

.footer-bottom {
  text-align: center;
}

.footer-bottom p {
  font-size: 0.85rem;
  color: var(--gray-dark);
}

/* ========== RESPONSIVE ========== */
@media (max-width: 1024px) {
  .hero-inner {
    flex-direction: column;
    text-align: center;
  }

  .hero-content {
    max-width: 100%;
  }

  .hero-subtitle {
    margin-left: auto;
    margin-right: auto;
  }

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

  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 768px) {
  .nav-links {
    position: fixed;
    top: 57px;
    left: 0;
    right: 0;
    background: rgba(10, 10, 12, 0.98);
    backdrop-filter: blur(16px);
    flex-direction: column;
    padding: 1.5rem;
    gap: 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    transform: translateY(-100%);
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition);
  }

  .nav-links.is-open {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
  }

  .nav-toggle {
    display: flex;
  }

  .section {
    padding: 3.5rem 0;
  }

  .container {
    padding-left: 1rem;
    padding-right: 1rem;
  }

  .plans-grid {
    grid-template-columns: 1fr;
  }

  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer-grid {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .social-links {
    justify-content: center;
  }

  .markets-grid,
  .chart-container {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
}

@media (max-width: 480px) {
  .hero-inner {
    padding: 1.5rem 0.75rem 3rem;
  }

  .hero-cta {
    flex-direction: column;
  }

  .hero-cta .btn {
    width: 100%;
  }

  .stats-grid {
    grid-template-columns: 1fr;
  }

  .bonus-grid {
    grid-template-columns: 1fr;
  }

  .section {
    padding: 2.5rem 0;
  }

  .section-title {
    font-size: 1.5rem;
  }
}
