/* ==========================================================================
   CSS VARIABLES & DESIGN TOKENS
   ========================================================================== */
:root {
  /* Colors */
  --color-primary: #F5A623; /* CoinSpent Gold/Yellow */
  --color-primary-hover: #E09419;
  --color-secondary: #2563EB; /* Blue accent */
  --color-secondary-hover: #1D4ED8;
  
  --color-bg-main: #FFFFFF;
  --color-bg-alt: #F8FAFC; /* Very light blue/gray */
  --color-bg-dark: #0F172A; /* Dark navy for footer/banners */
  
  --color-text-main: #1E293B; /* Dark navy */
  --color-text-muted: #64748B;
  --color-text-light: #FFFFFF;
  
  --color-border: #E2E8F0;
  
  /* Crypto Brands */
  --color-btc: #F7931A;
  --color-eth: #627EEA;
  --color-usdt: #26A17B;
  --color-bnb: #F3BA2F;
  --color-sol: #9945FF;
  
  /* Status Colors */
  --color-success: #10B981;
  --color-success-bg: #D1FAE5;
  --color-error: #EF4444;
  --color-warning: #F59E0B;
  
  /* Typography */
  --font-family-sans: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --font-family-display: 'Plus Jakarta Sans', var(--font-family-sans);
  
  /* Layout */
  --container-width: 1200px;
  --container-padding: 1.5rem;
  
  /* Shadows */
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
  --shadow-widget: 0 25px 50px -12px rgba(0, 0, 0, 0.15);
  
  /* Radii */
  --radius-sm: 0.25rem;
  --radius-md: 0.5rem;
  --radius-lg: 1rem;
  --radius-xl: 1.5rem;
  --radius-full: 9999px;
  
  /* Transitions */
  --transition-fast: 0.15s ease-in-out;
  --transition-normal: 0.3s ease-in-out;
}

/* ==========================================================================
   RESET & BASE STYLES
   ========================================================================== */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-family-sans);
  color: var(--color-text-main);
  background-color: var(--color-bg-main);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-family-display);
  font-weight: 700;
  line-height: 1.2;
  color: var(--color-text-main);
}

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

a:hover {
  color: var(--color-secondary-hover);
}

button {
  cursor: pointer;
  font-family: inherit;
  border: none;
  background: none;
}

ul {
  list-style: none;
}

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

.container {
  width: 100%;
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 var(--container-padding);
}

.hidden {
  display: none !important;
}

/* ==========================================================================
   HEADER
   ========================================================================== */
.site-header {
  position: sticky;
  top: 0;
  left: 0;
  width: 100%;
  background-color: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(8px);
  z-index: 100;
  border-bottom: 1px solid var(--color-border);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  flex-wrap: nowrap;
  gap: 2rem;
  height: 70px;
}

/* Logo */
.logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.logo-text {
  display: flex;
  flex-direction: column;
}

.logo-name {
  font-family: var(--font-family-display);
  font-weight: 800;
  font-size: 1.25rem;
  line-height: 1;
}

.logo-tagline {
  font-size: 0.65rem;
  color: var(--color-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-top: 0.25rem;
}

/* Nav */
.main-nav ul {
  display: flex;
  gap: 0.25rem;
  list-style: none;
  margin: 0;
  padding: 0;
  flex-wrap: nowrap;
}

.nav-link {
  color: var(--color-text-muted);
  font-weight: 500;
  font-size: 0.875rem;
  position: relative;
  white-space: nowrap;
  text-decoration: none;
  padding: 6px 10px;
  border-radius: 6px;
  transition: color 0.15s, background 0.15s;
}

.nav-link:hover, .nav-link.active {
  color: var(--color-text-main);
}

.nav-link.active::after {
  content: '';
  position: absolute;
  bottom: -6px;
  left: 0;
  width: 100%;
  height: 2px;
  background-color: var(--color-primary);
  border-radius: 2px;
}

/* Header Right */
.header-right {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  margin-left: auto;
}

.lang-btn, .country-btn {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--color-text-main);
  padding: 0.5rem;
  border-radius: var(--radius-md);
}

.lang-btn:hover, .country-btn:hover {
  background-color: var(--color-bg-alt);
}

.flag {
  font-size: 1.1rem;
}

/* Dropdowns */
.country-selector {
  position: relative;
}

.country-dropdown {
  position: absolute;
  top: 100%;
  right: 0;
  margin-top: 0.5rem;
  background: white;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  min-width: 220px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: all var(--transition-fast);
  z-index: 1000;
}

.country-dropdown.show {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.country-option {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 1rem;
  font-size: 0.9rem;
  cursor: pointer;
  transition: background var(--transition-fast);
}

.country-option:hover {
  background-color: var(--color-bg-alt);
}

.country-option.active {
  background-color: rgba(37, 99, 235, 0.05);
  color: var(--color-secondary);
  font-weight: 600;
}

/* Buttons */
.btn-login {
  font-weight: 600;
  font-size: 0.95rem;
  padding: 0.5rem 1rem;
  color: var(--color-text-main);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
}

.btn-login:hover {
  background-color: var(--color-bg-alt);
}

.btn-signup, .btn-primary-outline, .btn-cta-primary {
  background-color: var(--color-primary);
  color: var(--color-text-main);
  font-weight: 700;
  font-size: 0.95rem;
  padding: 0.6rem 1.25rem;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.btn-signup:hover, .btn-primary-outline:hover, .btn-cta-primary:hover {
  background-color: var(--color-primary-hover);
  color: var(--color-text-main);
}

/* Mobile Nav */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 0.5rem;
}

.hamburger span {
  width: 24px;
  height: 2px;
  background-color: var(--color-text-main);
  transition: var(--transition-fast);
}

.mobile-nav-overlay {
  position: fixed;
  top: 80px;
  left: 0;
  width: 100%;
  height: calc(100vh - 80px);
  background: white;
  z-index: 99;
  display: none;
  flex-direction: column;
  padding: 2rem;
}

.mobile-nav-overlay.open {
  display: flex;
}

.mobile-nav ul {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.mobile-nav a {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--color-text-main);
}

.mobile-nav-ctas {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.mobile-nav-ctas .btn-login, .mobile-nav-ctas .btn-signup {
  text-align: center;
  padding: 1rem;
}

/* ==========================================================================
   HERO SECTION
   ========================================================================== */
.hero {
  padding: 4rem 0 6rem;
  background: radial-gradient(circle at 70% 30%, rgba(245,166,35,0.05) 0%, rgba(255,255,255,0) 50%),
              radial-gradient(circle at 30% 70%, rgba(37,99,235,0.05) 0%, rgba(255,255,255,0) 50%);
  overflow: hidden;
}

.hero-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 1px;
  color: var(--color-text-muted);
  margin-bottom: 1.5rem;
}

.badge-dot {
  width: 6px;
  height: 6px;
  background-color: var(--color-success);
  border-radius: 50%;
}

.hero-title {
  font-size: 3.5rem;
  margin-bottom: 1.5rem;
  letter-spacing: -0.02em;
}

.highlight {
  color: var(--color-primary);
}

.hero-subtitle {
  font-size: 1.125rem;
  color: var(--color-text-muted);
  margin-bottom: 2.5rem;
  max-width: 90%;
}

/* Trust Badges in Hero */
.hero-trust-badges {
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
  margin-bottom: 3rem;
}

.trust-badge {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.85rem;
  font-weight: 600;
  line-height: 1.2;
}

.trust-icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.trust-yellow { background: rgba(245,166,35,0.1); color: var(--color-primary); }
.trust-blue { background: rgba(37,99,235,0.1); color: var(--color-secondary); }
.trust-green { background: rgba(16,185,129,0.1); color: var(--color-success); }
.trust-purple { background: rgba(139,92,246,0.1); color: #8B5CF6; }

/* Floating Illustration */
.hero-illustration {
  position: relative;
  height: 150px;
}

.crypto-float {
  position: absolute;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  animation: float 6s ease-in-out infinite;
}

.btc-float { top: 0; left: 10%; animation-delay: 0s; }
.usdt-float { top: 20px; left: 45%; animation-delay: 1.5s; z-index: 2; }
.eth-float { top: 10px; left: 80%; animation-delay: 3s; }

.coin-label {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--color-text-muted);
  background: white;
  padding: 0.15rem 0.5rem;
  border-radius: var(--radius-full);
  box-shadow: var(--shadow-sm);
}

.hero-tagline-badge {
  position: absolute;
  top: 100px;
  left: 20%;
  transform: rotate(-10deg);
  background: white;
  padding: 1rem;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  display: flex;
  flex-direction: column;
  line-height: 1.1;
  font-family: var(--font-family-display);
  font-weight: 800;
  font-size: 1.1rem;
}

.tag-line-accent {
  color: var(--color-secondary);
}

@keyframes float {
  0% { transform: translateY(0px); }
  50% { transform: translateY(-15px); }
  100% { transform: translateY(0px); }
}

/* ==========================================================================
   CONVERSION WIDGET
   ========================================================================== */
.hero-widget-wrap {
  perspective: 1000px;
}

.conversion-widget {
  background: white;
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-widget);
  border: 1px solid var(--color-border);
  overflow: hidden;
  max-width: 480px;
  margin: 0 auto;
}

.widget-tabs {
  display: flex;
  border-bottom: 1px solid var(--color-border);
  background: var(--color-bg-alt);
}

.widget-tab {
  flex: 1;
  padding: 1.25rem;
  font-size: 1rem;
  font-weight: 700;
  color: var(--color-text-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  transition: all var(--transition-fast);
}

.widget-tab.active {
  background: white;
  color: var(--color-text-main);
  border-bottom: 2px solid var(--color-primary);
}

.widget-panel {
  padding: 2rem;
}

.widget-step {
  background: var(--color-bg-alt);
  border-radius: var(--radius-lg);
  padding: 1.25rem;
  position: relative;
  border: 1px solid transparent;
  transition: border var(--transition-fast);
}

.widget-step:focus-within {
  border-color: var(--color-primary);
  background: white;
  box-shadow: 0 0 0 4px rgba(245, 166, 35, 0.1);
}

.step-label {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--color-text-muted);
  margin-bottom: 0.75rem;
}

.step-num {
  width: 20px;
  height: 20px;
  background: var(--color-primary);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.7rem;
}

.est-label {
  font-weight: 400;
  opacity: 0.7;
}

.widget-input-row, .widget-receive-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.widget-amount-input {
  font-family: var(--font-family-display);
  font-size: 2rem;
  font-weight: 700;
  color: var(--color-text-main);
  background: transparent;
  border: none;
  width: 60%;
  outline: none;
}

.receive-amount-big {
  font-family: var(--font-family-display);
  font-size: 2rem;
  font-weight: 700;
  color: var(--color-text-main);
}

/* Selectors inside widget */
.coin-select-group {
  position: relative;
}

.coin-select-btn, .currency-select-btn {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: white;
  border: 1px solid var(--color-border);
  padding: 0.5rem 0.75rem;
  border-radius: var(--radius-full);
  font-weight: 600;
  box-shadow: var(--shadow-sm);
}

.coin-icon-sm, .flag-icon-sm {
  width: 24px;
  height: 24px;
  border-radius: 50%;
}

.coin-dropdown {
  position: absolute;
  top: 100%;
  right: 0;
  margin-top: 0.5rem;
  background: white;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  min-width: 200px;
  z-index: 10;
  display: none; /* toggled via JS */
}

.coin-dropdown.show {
  display: block;
}

.coin-option {
  padding: 0.75rem 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 500;
  cursor: pointer;
}

.coin-option:hover {
  background: var(--color-bg-alt);
}

.coin-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

/* Network Pills */
.network-selector, .payment-method-row {
  margin-top: 1rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.network-label {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--color-text-muted);
}

.network-pills {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.network-pill {
  padding: 0.25rem 0.75rem;
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  font-weight: 600;
  background: white;
  border: 1px solid var(--color-border);
  color: var(--color-text-muted);
}

.network-pill.active {
  background: rgba(37, 99, 235, 0.1);
  color: var(--color-secondary);
  border-color: rgba(37, 99, 235, 0.3);
}

/* Swap Arrow */
.swap-arrow {
  width: 32px;
  height: 32px;
  background: white;
  border: 1px solid var(--color-border);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: -16px auto;
  position: relative;
  z-index: 2;
  box-shadow: var(--shadow-sm);
}

/* Rate Info */
.rate-info-row {
  margin-top: 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.8rem;
}

.rate-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  background: rgba(245, 166, 35, 0.1);
  color: #B47206;
  padding: 0.25rem 0.5rem;
  border-radius: var(--radius-sm);
  font-weight: 600;
}

.rate-countdown {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  color: var(--color-text-muted);
}

.countdown-dot {
  width: 6px;
  height: 6px;
  background: var(--color-success);
  border-radius: 50%;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(1.5); }
  100% { opacity: 1; transform: scale(1); }
}

.fee-info-row {
  margin-top: 0.75rem;
  padding-top: 0.75rem;
  border-top: 1px dashed var(--color-border);
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8rem;
}

.fee-label { color: var(--color-text-muted); }
.fee-value { font-weight: 600; color: var(--color-text-main); }
.fee-sep { color: var(--color-border); }
.fee-final { font-weight: 700; color: var(--color-success); font-size: 0.9rem;}

/* Buy Wallet input */
.wallet-address-row {
  margin: 1.5rem 0;
}

.wallet-label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: var(--color-text-main);
}

.wallet-input {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  font-size: 0.9rem;
  outline: none;
  transition: border var(--transition-fast);
}

.wallet-input:focus {
  border-color: var(--color-secondary);
}

/* Widget CTA */
.widget-cta-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  width: 100%;
  padding: 1rem;
  background: var(--color-primary);
  color: var(--color-text-main);
  font-family: var(--font-family-display);
  font-size: 1.1rem;
  font-weight: 800;
  border-radius: var(--radius-md);
  margin-top: 1.5rem;
  box-shadow: 0 4px 14px rgba(245, 166, 35, 0.4);
}

.widget-cta-btn:hover {
  background: var(--color-primary-hover);
  transform: translateY(-1px);
}

.widget-cta-btn.buy-btn {
  background: var(--color-secondary);
  color: white;
  box-shadow: 0 4px 14px rgba(37, 99, 235, 0.4);
}

.widget-cta-btn.buy-btn:hover {
  background: var(--color-secondary-hover);
  color: white;
}

.widget-note {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  margin-top: 1rem;
  font-size: 0.75rem;
  color: var(--color-text-muted);
  line-height: 1.4;
  background: rgba(37, 99, 235, 0.05);
  padding: 0.75rem;
  border-radius: var(--radius-sm);
}

/* ==========================================================================
   RATES TICKER
   ========================================================================== */
.rates-ticker {
  background: white;
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
  padding: 1rem 0;
  overflow: hidden;
  white-space: nowrap;
}

.ticker-inner {
  display: flex;
}

.ticker-track {
  display: inline-flex;
  animation: ticker 30s linear infinite;
}

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

.ticker-item {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0 2rem;
  border-right: 1px solid var(--color-border);
}

.ticker-icon {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 0.7rem;
  font-weight: bold;
}

.ticker-name { font-weight: 700; }
.ticker-price { font-weight: 600; color: var(--color-text-muted); }
.ticker-change { font-size: 0.8rem; font-weight: 600; }
.change-up { color: var(--color-success); }
.change-down { color: var(--color-error); }

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

/* ==========================================================================
   SECTION GLOBALS
   ========================================================================== */
section {
  padding: 5rem 0;
}

.section-eyebrow {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--color-text-muted);
  letter-spacing: 1.5px;
  text-transform: uppercase;
  margin-bottom: 0.75rem;
}

.section-title {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.section-body {
  font-size: 1.1rem;
  color: var(--color-text-muted);
  max-width: 600px;
  margin-bottom: 2rem;
}

.section-header-center {
  text-align: center;
  margin-bottom: 3rem;
}
.section-header-center .section-body-center {
  font-size: 1.1rem;
  color: var(--color-text-muted);
  max-width: 600px;
  margin: 0 auto;
}

.section-header-row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 3rem;
}

.view-all-link {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 600;
}

/* ==========================================================================
   WHY CoinSpent
   ========================================================================== */
.why-grid {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 4rem;
  align-items: center;
}

.user-count {
  margin-top: 2rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--color-text-muted);
}

.user-avatars {
  display: flex;
}

.avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 2px solid white;
  margin-left: -10px;
  background: var(--color-primary);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: bold;
}
.avatar:first-child { margin-left: 0; background: #2563EB; }
.avatar.av2 { background: #10B981; }
.avatar.av3 { background: #8B5CF6; }
.avatar.av4 { background: #F59E0B; }

.why-features-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}

.why-card {
  padding: 1.5rem;
  border-radius: var(--radius-lg);
  background: var(--color-bg-alt);
  display: flex;
  gap: 1rem;
  transition: transform var(--transition-fast), box-shadow var(--transition-fast);
}

.why-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  background: white;
}

.why-card-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.blue-icon { background: rgba(37,99,235,0.1); color: var(--color-secondary); }
.pink-icon { background: rgba(236,72,153,0.1); color: #EC4899; }
.green-icon { background: rgba(16,185,129,0.1); color: var(--color-success); }
.yellow-icon { background: rgba(245,166,35,0.1); color: var(--color-primary); }
.purple-icon { background: rgba(139,92,246,0.1); color: #8B5CF6; }
.teal-icon { background: rgba(20,184,166,0.1); color: #14B8A6; }

.why-card-title {
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
}

.why-card-body {
  font-size: 0.85rem;
  color: var(--color-text-muted);
}

/* ==========================================================================
   HOW IT WORKS
   ========================================================================== */
.how-section {
  background: var(--color-bg-alt);
}

.how-tabs {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 4rem;
}

.how-tab {
  padding: 1rem 2rem;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--color-text-muted);
  background: white;
  border-radius: var(--radius-full);
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-fast);
}

.how-tab.active {
  background: var(--color-primary);
  color: var(--color-text-main);
  box-shadow: 0 4px 14px rgba(245, 166, 35, 0.3);
}

#how-tab-buy.active {
  background: var(--color-secondary);
  color: white;
  box-shadow: 0 4px 14px rgba(37, 99, 235, 0.3);
}

.how-content {
  display: none;
}

.how-content.active {
  display: block;
  animation: fadeIn 0.3s ease-in;
}

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

.how-steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  position: relative;
}

.how-step {
  text-align: center;
  position: relative;
}

.step-circle {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  margin: 0 auto 1.5rem;
  position: relative;
  z-index: 2;
  font-family: var(--font-family-display);
}

.sell-circle {
  background: var(--color-primary);
  color: var(--color-text-main);
  box-shadow: 0 0 0 8px rgba(245, 166, 35, 0.2);
}

.buy-circle {
  background: var(--color-secondary);
  color: white;
  box-shadow: 0 0 0 8px rgba(37, 99, 235, 0.2);
}

.step-connector {
  position: absolute;
  top: 20px;
  left: 50%;
  width: 100%;
  height: 2px;
  background: var(--color-border);
  z-index: 1;
}

.how-step:last-child .step-connector {
  display: none;
}

.step-card {
  background: white;
  padding: 2rem 1.5rem;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  height: 100%;
}

.step-icon {
  margin-bottom: 1rem;
}

.sell-icon { color: var(--color-primary); }
.buy-icon { color: var(--color-secondary); }

.step-card h3 {
  font-size: 1.1rem;
  margin-bottom: 0.75rem;
}

.step-card p {
  font-size: 0.85rem;
  color: var(--color-text-muted);
}

/* ==========================================================================
   ASSETS & PAYMENTS
   ========================================================================== */
.assets-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 1.5rem;
}

.asset-card {
  background: white;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  text-align: center;
  transition: transform var(--transition-fast), box-shadow var(--transition-fast);
}

.asset-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: var(--color-primary);
}

.asset-icon-wrap {
  width: 48px;
  height: 48px;
  margin: 0 auto 1rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: bold;
}

.asset-name { font-weight: 700; margin-bottom: 0.25rem; }
.asset-sub { font-size: 0.8rem; color: var(--color-text-muted); }

/* Payments */
.payments-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 1.5rem;
}

.payment-card {
  text-align: center;
  padding: 1.5rem;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  transition: all var(--transition-fast);
}

.payment-card:hover {
  border-color: var(--color-secondary);
  box-shadow: var(--shadow-md);
}

.payment-icon {
  margin: 0 auto 1rem;
  display: flex;
  justify-content: center;
}

.blue-pay { color: #3B82F6; }
.green-pay { color: #10B981; }
.purple-pay { color: #8B5CF6; }
.teal-pay { color: #14B8A6; }
.yellow-pay { color: #F59E0B; }
.orange-pay { color: #F97316; }
.grey-pay { color: #94A3B8; }

.payment-card h3 {
  font-size: 0.95rem;
  margin-bottom: 0.25rem;
}

.pay-sub {
  font-size: 0.75rem;
  color: var(--color-text-muted);
}

.payment-card-more {
  background: var(--color-bg-alt);
  cursor: pointer;
}

/* ==========================================================================
   GLOBAL BANNER
   ========================================================================== */
.global-banner {
  padding: 0;
  margin: 4rem 0;
}

.banner-content {
  background: var(--color-bg-dark);
  color: white;
  border-radius: var(--radius-xl);
  padding: 4rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
  overflow: hidden;
  max-width: var(--container-width);
  margin: 0 auto;
}

.banner-left {
  position: relative;
  z-index: 2;
  max-width: 400px;
}

.banner-title {
  color: white;
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.banner-accent {
  color: var(--color-primary);
}

.banner-subtitle {
  color: #94A3B8;
  font-size: 1.1rem;
  margin-bottom: 2rem;
}

.banner-tagline {
  font-family: 'Handwriting', cursive; /* Optional fallback if not loaded */
  font-size: 2rem;
  color: var(--color-primary);
  transform: rotate(-5deg);
}

.banner-stats {
  display: flex;
  gap: 3rem;
  position: relative;
  z-index: 2;
}

.stat-item {
  text-align: center;
}

.stat-item .stat-icon {
  color: var(--color-primary);
  margin-bottom: 1rem;
}

.stat-val {
  font-family: var(--font-family-display);
  font-size: 2rem;
  font-weight: 800;
  margin-bottom: 0.25rem;
}

.stat-label {
  font-size: 0.85rem;
  color: #94A3B8;
}

/* Abstract Globe styling */
.banner-globe {
  position: absolute;
  right: -10%;
  top: -50%;
  width: 600px;
  height: 600px;
  opacity: 0.3;
}

.globe-ring {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 50%;
}
.globe-ring-1 { width: 100%; height: 100%; }
.globe-ring-2 { width: 70%; height: 100%; }
.globe-ring-3 { width: 40%; height: 100%; }

/* ==========================================================================
   TESTIMONIALS
   ========================================================================== */
.testimonials-section {
  background: var(--color-bg-alt);
}

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.testimonial-card {
  background: white;
  padding: 2rem;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
}

.stars {
  color: var(--color-primary);
  letter-spacing: 2px;
  margin-bottom: 1rem;
}

.testimonial-card p {
  font-size: 0.95rem;
  font-style: italic;
  color: var(--color-text-main);
  margin-bottom: 1.5rem;
  line-height: 1.6;
}

.testi-author {
  display: flex;
  align-items: center;
  gap: 1rem;
  border-top: 1px solid var(--color-border);
  padding-top: 1rem;
}

.testi-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
}

.testi-author strong { display: block; font-size: 0.95rem; }
.testi-author span { font-size: 0.75rem; color: var(--color-text-muted); }

/* ==========================================================================
   CTA SECTION
   ========================================================================== */
.cta-inner {
  background: white;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  padding: 4rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
  box-shadow: var(--shadow-lg);
}

.cta-title { font-size: 2.5rem; margin-bottom: 1rem; }
.cta-body { font-size: 1.1rem; color: var(--color-text-muted); margin-bottom: 2rem; }

.cta-actions {
  display: flex;
  gap: 1rem;
}

.btn-cta-secondary {
  background: white;
  color: var(--color-text-main);
  border: 1px solid var(--color-border);
  font-weight: 700;
  padding: 0.6rem 1.25rem;
  border-radius: var(--radius-md);
  transition: background var(--transition-fast);
}

.btn-cta-secondary:hover {
  background: var(--color-bg-alt);
}

.cta-steps {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.cta-step {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.cta-step-icon {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(37, 99, 235, 0.1);
  color: var(--color-secondary);
  display: flex;
  align-items: center;
  justify-content: center;
}

.cta-step-arrow {
  color: var(--color-border);
}

.cta-step strong { display: block; font-size: 1.1rem; }
.cta-step span { font-size: 0.85rem; color: var(--color-text-muted); }

/* ==========================================================================
   FOOTER
   ========================================================================== */
.site-footer {
  border-top: 1px solid var(--color-border);
  padding: 4rem 0 2rem;
  background: white;
}

.footer-top {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 4rem;
  margin-bottom: 4rem;
}

.footer-logo { margin-bottom: 1rem; }
.footer-desc {
  font-size: 0.9rem;
  color: var(--color-text-muted);
  margin-bottom: 1.5rem;
  line-height: 1.6;
}

.footer-socials {
  display: flex;
  gap: 1rem;
}

.social-link {
  color: var(--color-text-muted);
  transition: color var(--transition-fast);
}

.social-link:hover { color: var(--color-primary); }

.footer-links {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
}

.footer-col h4 {
  font-size: 0.95rem;
  margin-bottom: 1.5rem;
}

.footer-col ul {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.footer-col a {
  color: var(--color-text-muted);
  font-size: 0.9rem;
}

.footer-col a:hover {
  color: var(--color-secondary);
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 2rem;
  border-top: 1px solid var(--color-border);
  font-size: 0.85rem;
  color: var(--color-text-muted);
}

.footer-bottom-links {
  display: flex;
  gap: 1.5rem;
}

.footer-bottom-links a { color: var(--color-text-muted); }

/* ==========================================================================
   RESPONSIVE DESIGN
   ========================================================================== */
@media (max-width: 1024px) {
  .hero-inner {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .hero-badge, .hero-trust-badges {
    justify-content: center;
  }
  .hero-subtitle {
    margin: 0 auto 2.5rem;
  }
  .hero-illustration {
    display: none;
  }
  
  .why-grid, .cta-inner {
    grid-template-columns: 1fr;
  }
  
  .banner-content {
    flex-direction: column;
    text-align: center;
    padding: 3rem 1.5rem;
  }
  .banner-stats {
    margin-top: 3rem;
    flex-wrap: wrap;
    justify-content: center;
  }
  
  .footer-top {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .main-nav, .btn-login, .btn-signup {
    display: none;
  }
  
  .hamburger {
    display: flex;
  }
  
  .hero-title {
    font-size: 2.5rem;
  }
  
  .widget-amount-input, .receive-amount-big {
    font-size: 1.5rem;
  }
  
  .why-features-grid {
    grid-template-columns: 1fr;
  }
  
  .how-steps, .testimonials-grid, .footer-links {
    grid-template-columns: 1fr;
  }
  
  .step-connector {
    display: none;
  }
  
  .footer-bottom {
    flex-direction: column;
    gap: 1rem;
    text-align: center;
  }
}




/* USER DROPDOWN (Global) */
.tb-user-wrap{position:relative}
.tb-user{display:flex;align-items:center;gap:9px;cursor:pointer;padding:4px 8px;border-radius:10px;user-select:none;transition:background .15s}
.tb-user:hover,.tb-user-wrap.open .tb-user{background:#f3f4f8}
.tb-caret{color:#9ca3af;font-size:.65rem;transition:transform .2s}
.tb-user-wrap.open .tb-caret{transform:rotate(180deg)}
.user-menu{display:none;position:absolute;right:0;top:calc(100% + 8px);width:230px;background:#fff;border:1px solid var(--color-border);border-radius:12px;box-shadow:0 10px 30px rgba(17,25,40,.14);padding:6px;z-index:9999;animation:menuIn .15s ease;text-align:left}
.tb-user-wrap.open .user-menu{display:block}
@keyframes menuIn{from{opacity:0;transform:translateY(-6px)}to{opacity:1;transform:none}}
.um-head{display:flex;align-items:center;gap:10px;padding:10px 10px 12px;border-bottom:1px solid var(--color-border);margin-bottom:6px}
.um-name{font-size:.84rem;font-weight:700;line-height:1.2;color:#000}
.um-email{font-size:.7rem;color:var(--color-text-muted);word-break:break-all;margin-top:1px}
.um-status{display:inline-block;margin-top:4px;font-size:.62rem;font-weight:700;color:var(--color-secondary);background:#eff6ff;padding:2px 8px;border-radius:20px}
.um-item{display:flex;align-items:center;gap:10px;padding:9px 10px;border-radius:8px;font-size:.82rem;font-weight:500;color:var(--color-text-main);text-decoration:none;cursor:pointer;text-align:left}
.um-item:hover{background:#f3f4f8}
.um-item svg{width:16px;height:16px;color:var(--color-text-muted);flex-shrink:0}
.um-item.logout{color:var(--color-danger, #e02424);margin-top:4px;border-top:1px solid var(--color-border);border-radius:0 0 8px 8px;padding-top:11px}
.um-item.logout svg{color:var(--color-danger, #e02424)}
.um-item.logout:hover{background:#fef2f2}
.tb-avatar{width:34px;height:34px;border-radius:50%;background:linear-gradient(135deg,#1a56db,#7c3aed);display:flex;align-items:center;justify-content:center;color:#fff;font-size:.78rem;font-weight:700;flex-shrink:0}
