
/* ============================================
   SolvMarkets — Global Styles
   Cyberpunk / Fintech Dark Theme
   ============================================ */

/* Native App Feel — View Transitions API */
@view-transition { navigation: auto; }

/* Page Transition Overlay */
.page-transition {
  position: fixed; top: 0; left: 0; width: 100%; height: 100%;
  background: #0c0f1a; z-index: 99999;
  opacity: 0; pointer-events: none;
  transition: opacity 0.2s ease;
}
.page-transition.active { opacity: 1; pointer-events: all; }

/* Smooth Page Entrance */
body {
  animation: pageEnter 0.35s ease-out;
}
@keyframes pageEnter {
  from { opacity: 0; transform: translateY(4px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* Smooth Scrolling */
html {
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
}

/* Tap Feedback */
a:active, button:active {
  opacity: 0.7;
  transform: scale(0.97);
  transition: all 0.1s ease;
}

/* Shimmer Loading Effect */
@keyframes shimmer {
  0% { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}
.skeleton {
  background: linear-gradient(90deg, rgba(255,255,255,0.03) 25%, rgba(255,255,255,0.06) 50%, rgba(255,255,255,0.03) 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s ease-in-out infinite;
  border-radius: 8px;
}

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

:root {
  --bg-primary: #06060d;
  --bg-secondary: #0b0b16;
  --bg-card: #0c0f1a;
  --bg-card-hover: #111628;
  --text-primary: #f0f0f5;
  --text-secondary: #a0a8c0;
  --text-muted: #5e6580;
  --accent-cyan: #f59e0b;
  --accent-purple: #14b8a6;
  --accent-magenta: #f43f7a;
  --accent-gold: #ffb800;
  --accent-emerald: #10b981;
  --glow-cyan: 0 0 20px rgba(245, 158, 11, 0.3), 0 0 40px rgba(245, 158, 11, 0.1);
  --glow-purple: 0 0 20px rgba(20, 184, 166, 0.3), 0 0 40px rgba(20, 184, 166, 0.1);
  --glow-mixed: 0 0 15px rgba(245, 158, 11, 0.2), 0 0 30px rgba(20, 184, 166, 0.15);
  --glow-pink: 0 0 20px rgba(244, 63, 122, 0.3), 0 0 40px rgba(244, 63, 122, 0.1);
  --border-glow: 1px solid rgba(245, 158, 11, 0.12);
  --gradient-border: linear-gradient(135deg, var(--accent-cyan), var(--accent-purple), var(--accent-magenta), var(--accent-gold));
  --gradient-hero: linear-gradient(135deg, #f59e0b 0%, #14b8a6 40%, #f43f7a 70%, #ffb800 100%);
  --font-heading: 'Chakra Petch', sans-serif;
  --font-body: 'Inter', system-ui, -apple-system, sans-serif;
  --font-alt: 'Chakra Petch', sans-serif;
  --container-max: 1300px;
  --nav-height: 68px;
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
  touch-action: manipulation;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  overflow-x: hidden;
  width: 100%;
  max-width: 100%;
  -webkit-tap-highlight-color: transparent;
}

/* ---------- Global Scrollbar ---------- */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}
::-webkit-scrollbar-track {
  background: var(--bg-primary);
}
::-webkit-scrollbar-thumb {
  background: rgba(245, 158, 11, 0.2);
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: rgba(245, 158, 11, 0.4);
}

body {
  font-family: var(--font-body);
  background: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
  overscroll-behavior-x: none;
  width: 100%;
  max-width: 100%;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  touch-action: manipulation;
  -webkit-user-select: none;
  user-select: none;
  -webkit-touch-callout: none;
  -webkit-tap-highlight-color: transparent;
}

a {
  text-decoration: none;
  color: inherit;
  -webkit-tap-highlight-color: transparent;
}

button {
  -webkit-tap-highlight-color: transparent;
  cursor: pointer;
}

/* Prevent iOS zoom on focus */
input, select, textarea {
  font-size: 16px !important;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
  pointer-events: none;
  user-select: none;
  -webkit-user-drag: none;
  -webkit-touch-callout: none;
}

/* ---------- NATIVE APP FEEL FAST-PRESS ENHANCEMENTS ---------- */
/* 1. Prevent unsightly blue highlighting/magnifier when tapping fast */
button, 
a, 
.nav-item, 
.sidebar-link, 
.dropdown-item,
.v3-btn-primary,
.glass-card-v3 {
  -webkit-user-select: none;
  user-select: none;
  -webkit-touch-callout: none;
}

/* 2. Physical 'squish' feedback when holding down buttons/links */
button:active, 
a:active, 
.nav-item:active, 
.sidebar-link:active, 
.dropdown-item:active,
.v3-btn-primary:active {
  transform: scale(0.96);
  filter: brightness(0.9);
  transition: transform 0.1s cubic-bezier(0.4, 0, 0.2, 1), filter 0.1s ease;
}

/* 3. Native-app feel: kill selection + callout everywhere. Selection is
   re-enabled ONLY for real form fields and explicitly opted-in content. */
* {
  -webkit-tap-highlight-color: transparent;
}

input, textarea, select, [contenteditable="true"],
.selectable, [data-selectable] {
  -webkit-user-select: text;
  user-select: text;
  -webkit-touch-callout: default;
}

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

/* ---------- Global Preloader Splash ---------- */
#global-preloader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: var(--bg-primary);
  z-index: 999999;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  transition: opacity 0.5s ease-out, visibility 0.5s ease-out;
}

#global-preloader.fade-out {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.preloader-spinner {
  width: 50px;
  height: 50px;
  border: 3px solid rgba(245, 158, 11, 0.1);
  border-top: 3px solid var(--accent-cyan);
  border-radius: 50%;
  animation: spin 1s linear infinite;
  box-shadow: 0 0 15px rgba(245, 158, 11, 0.3);
  margin-bottom: 20px;
}

.preloader-logo {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: 2px;
  background: var(--gradient-border);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: pulseLogo 2s ease-in-out infinite;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

@keyframes pulseLogo {
  0%, 100% { opacity: 0.7; filter: brightness(1); }
  50% { opacity: 1; filter: brightness(1.3); }
}

/* ---------- Animations ---------- */
.fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

@keyframes glowPulse {

  0%,
  100% {
    box-shadow: var(--glow-mixed);
  }

  50% {
    box-shadow: 0 0 25px rgba(245, 158, 11, 0.35), 0 0 50px rgba(20, 184, 166, 0.25);
  }
}

@keyframes float {

  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-12px);
  }
}

@keyframes shimmer {
  0% {
    background-position: -200% center;
  }

  100% {
    background-position: 200% center;
  }
}

/* ---------- NAVBAR ---------- */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(10, 10, 15, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  padding-top: env(safe-area-inset-top, 0px);
  height: calc(var(--nav-height) + env(safe-area-inset-top, 0px));
}

.navbar-inner {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.logo-text {
  font-family: var(--font-heading);
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--text-primary);
  letter-spacing: 2px;
  text-transform: uppercase;
}

.logo-highlight {
  background: linear-gradient(135deg, var(--accent-cyan), var(--accent-purple));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  color: transparent;
}

.gradient-text {
  background: linear-gradient(135deg, var(--accent-cyan), var(--accent-purple), var(--accent-cyan));
  background-size: 200% auto;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  color: transparent;
  display: inline-block;
  animation: shine 3s linear infinite;
}

@keyframes shine {
  to {
    background-position: 200% center;
  }
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 18px;
}

.nav-link {
  font-family: var(--font-alt);
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--text-secondary);
  transition: color var(--transition);
  white-space: nowrap;
  letter-spacing: 0.3px;
}

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

.nav-link-stake {
  background: rgba(245, 158, 11, 0.08);
  border: 1px solid rgba(245, 158, 11, 0.2);
  padding: 6px 14px;
  border-radius: 50px;
  color: var(--accent-cyan);
  transition: all var(--transition);
}

.nav-link-stake:hover {
  background: rgba(245, 158, 11, 0.15);
  border-color: var(--accent-cyan);
  color: #fff;
  box-shadow: 0 0 15px rgba(245, 158, 11, 0.15);
}

/* Nav Dropdown (Trade menu) */
.nav-dropdown {
  position: relative;
  display: flex;
  align-items: center;
}

.nav-dropdown .nav-link {
  display: flex;
  align-items: center;
  gap: 4px;
  cursor: pointer;
}

.nav-dropdown .nav-link svg {
  transition: transform 0.2s ease;
}

.nav-dropdown:hover .nav-link svg {
  transform: rotate(180deg);
}

.nav-dropdown-menu {
  position: absolute;
  top: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%) translateY(4px);
  min-width: 190px;
  background: rgba(12, 15, 26, 0.97);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 6px;
  opacity: 0;
  visibility: hidden;
  transition: all 0.2s ease;
  z-index: 9999;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.6), 0 0 0 1px rgba(245, 158, 11, 0.05);
}

.nav-dropdown:hover .nav-dropdown-menu,
.nav-dropdown-menu.mobile-show {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}

.nav-dropdown-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  font-size: 0.82rem;
  font-family: var(--font-alt);
  font-weight: 500;
  color: var(--text-secondary);
  border-radius: 8px;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.nav-dropdown-item:hover {
  background: rgba(245, 158, 11, 0.08);
  color: var(--text-primary);
}

.nav-dropdown-item.active {
  color: var(--accent-cyan);
  background: rgba(245, 158, 11, 0.06);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-shrink: 0;
}

.btn-login {
  font-size: 0.875rem;
  color: var(--text-secondary);
  transition: color var(--transition);
}

.btn-login:hover {
  color: var(--text-primary);
}

.btn-signup {
  font-family: var(--font-alt);
  font-size: 0.875rem;
  font-weight: 600;
  padding: 9px 26px;
  border-radius: 50px;
  background: linear-gradient(135deg, var(--accent-cyan), var(--accent-purple));
  background-size: 200% 200%;
  animation: shimmer 4s linear infinite;
  color: var(--bg-primary);
  transition: all var(--transition);
  border: none;
}

.btn-signup:hover {
  box-shadow: var(--glow-cyan), var(--glow-purple);
  filter: brightness(1.15);
}

.btn-withdraw-nav {
  font-family: var(--font-alt);
  font-size: 0.8rem;
  font-weight: 700;
  padding: 8px 20px;
  border-radius: 50px;
  border: 1px solid var(--accent-cyan);
  color: var(--accent-cyan);
  text-decoration: none;
  transition: all var(--transition);
  letter-spacing: 0.5px;
}

.btn-withdraw-nav:hover {
  background: var(--accent-cyan);
  color: var(--bg-primary);
  box-shadow: var(--glow-cyan);
}

/* ---------- NAVBAR BALANCE BADGE ---------- */
.nav-balance-badge {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(245, 158, 11, 0.04);
  border: 1px solid rgba(245, 158, 11, 0.12);
  padding: 6px 14px;
  border-radius: 50px;
  font-family: var(--font-alt);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--accent-cyan);
  transition: all var(--transition);
  cursor: default;
}

.nav-balance-badge:hover {
  background: rgba(245, 158, 11, 0.08);
  border-color: rgba(245, 158, 11, 0.25);
  box-shadow: 0 0 15px rgba(245, 158, 11, 0.1);
}

.nav-balance-label {
  color: var(--text-muted);
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.nav-balance-value {
  font-family: var(--font-heading);
  letter-spacing: -0.5px;
}

@media (max-width: 600px) {
  .nav-balance-badge {
    padding: 4px 10px;
    font-size: 0.75rem;
  }
  .nav-balance-badge .nav-balance-value { order: 1; }
  .nav-balance-badge .nav-balance-label {
    display: inline;
    order: 2;
    font-size: 0.7rem;
  }
}

/* ---------- ACTIVE STAKES DASHBOARD LIST ---------- */
.active-stakes-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
  max-height: 520px;
  overflow-y: auto;
  padding-right: 8px;
  margin-top: 10px;
}

.active-stake-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 16px;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.active-stake-card:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(245, 158, 11, 0.2);
  transform: translateY(-2px);
}

.stake-header-v3 {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
}

.stake-coin {
  display: flex;
  align-items: center;
  gap: 12px;
}

.stake-coin img {
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.stake-coin-info strong {
  display: block;
  font-size: 0.9rem;
  color: #fff;
  font-family: var(--font-heading);
}

.stake-coin-info span {
  font-size: 0.75rem;
  color: var(--text-muted);
}

.stake-apy-tag {
  background: rgba(245, 158, 11, 0.08);
  color: #f59e0b;
  padding: 4px 10px;
  border-radius: 6px;
  font-size: 0.75rem;
  font-weight: 700;
  border: 1px solid rgba(245, 158, 11, 0.15);
  font-family: var(--font-alt);
}

.stake-stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-bottom: 16px;
  background: rgba(0, 0, 0, 0.2);
  padding: 12px;
  border-radius: 10px;
}

.stake-stat label {
  display: block;
  font-size: 0.6rem;
  color: var(--text-muted);
  margin-bottom: 4px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.stake-stat .stat-val {
  font-size: 0.85rem;
  font-weight: 700;
  color: #fff;
  font-family: var(--font-alt);
}

.stake-stat .stat-val span {
  font-size: 0.65rem;
  opacity: 0.6;
}

.accent-text { color: #f59e0b !important; }

.stake-progress-row {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.progress-info {
  display: flex;
  justify-content: space-between;
  font-size: 0.7rem;
  color: var(--text-muted);
  font-weight: 500;
}

.s-loading {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  padding: 50px 20px;
  color: var(--text-muted);
  font-size: 0.85rem;
}

.s-spinner {
  width: 28px;
  height: 28px;
  border: 2px solid rgba(245, 158, 11, 0.1);
  border-top-color: #f59e0b;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin { to { transform: rotate(360deg); } }

.active-stakes-list::-webkit-scrollbar {
  width: 4px;
}
.active-stakes-list::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.02);
}
.active-stakes-list::-webkit-scrollbar-thumb {
  background: rgba(245, 158, 11, 0.1);
  border-radius: 10px;
}


.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  z-index: 1001;
}

.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text-primary);
  border-radius: 2px;
  transition: all var(--transition);
}

.hamburger.active span:nth-child(1) {
  transform: rotate(45deg) translate(6px, 6px);
  background: var(--accent-cyan);
}

.hamburger.active span:nth-child(2) {
  opacity: 0;
  transform: translateX(10px);
}

.hamburger.active span:nth-child(3) {
  transform: rotate(-45deg) translate(6px, -6px);
  background: var(--accent-cyan);
}

/* ---------- HERO ---------- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding-top: calc(var(--nav-height) + env(safe-area-inset-top, 0px));
}

/* Animated aurora orbs behind the hero content */
.hero-orb {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  filter: blur(60px);
  opacity: 0.55;
  z-index: 0;
  will-change: transform;
}

.hero-orb-1 {
  width: 480px;
  height: 480px;
  left: 8%;
  top: 12%;
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.5), rgba(244, 63, 122, 0.25));
  animation: orbFloat 9s ease-in-out infinite, orbPulse 6s ease-in-out infinite;
}

.hero-orb-2 {
  width: 380px;
  height: 380px;
  right: 6%;
  top: 30%;
  background: linear-gradient(135deg, rgba(20, 184, 166, 0.4), rgba(245, 158, 11, 0.2));
  animation: orbFloat 11s ease-in-out 1.5s infinite reverse, orbPulse 7s ease-in-out infinite;
}

.hero-orb-3 {
  width: 300px;
  height: 300px;
  left: 42%;
  bottom: 5%;
  background: linear-gradient(135deg, rgba(244, 63, 122, 0.3), rgba(20, 184, 166, 0.3));
  animation: orbFloat 13s ease-in-out 0.8s infinite, orbPulse 8s ease-in-out 1s infinite;
}

@keyframes orbFloat {
  0%, 100% { transform: translate(0, 0); }
  50% { transform: translate(20px, -24px); }
}

@keyframes orbPulse {
  0%, 100% { opacity: 0.4; }
  50% { opacity: 0.7; }
}

.hero-canvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  opacity: 0.35;
}

.hero-content {
  position: relative;
  z-index: 1;
  text-align: center;
  max-width: 850px;
  padding: 60px 24px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 24px;
  padding: 8px 18px;
  border-radius: 999px;
  font-family: var(--font-alt);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: rgba(245, 158, 11, 0.95);
  background: rgba(245, 158, 11, 0.08);
  border: 1px solid rgba(245, 158, 11, 0.35);
  backdrop-filter: blur(8px);
  box-shadow: 0 0 24px rgba(245, 158, 11, 0.15), inset 0 0 12px rgba(245, 158, 11, 0.06);
  opacity: 0;
  animation: fadeUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.1s forwards;
}

.hero-badge-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #f59e0b;
  box-shadow: 0 0 10px rgba(245, 158, 11, 0.9);
  animation: latency-blink 1.6s ease-in-out infinite;
}

.hero-title {
  font-family: var(--font-heading);
  font-size: clamp(2rem, 5vw, 3.5rem);
  line-height: 1.2;
  margin-bottom: 20px;
  font-weight: 800;
  color: #ffffff;
  background: linear-gradient(120deg, #ffffff 0%, #f59e0b 45%, #14b8a6 70%, #ffffff 100%);
  background-size: 250% auto;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  display: inline-block;
  opacity: 0;
  animation: fadeUp 1s cubic-bezier(0.16, 1, 0.3, 1) 0.3s forwards, heroShine 6s linear infinite;
}

@keyframes heroShine {
  to { background-position: 250% center; }
}

.hero-subtitle {
  font-size: clamp(0.95rem, 2vw, 1.15rem);
  color: var(--text-secondary);
  max-width: 700px;
  margin: 0 auto 32px;
  line-height: 1.7;
  opacity: 0;
  animation: fadeUp 1s cubic-bezier(0.16, 1, 0.3, 1) 0.55s forwards;
}

.hero-stats {
  display: flex;
  justify-content: center;
  gap: 30px;
  margin-bottom: 36px;
  opacity: 0;
  animation: fadeUp 1s cubic-bezier(0.16, 1, 0.3, 1) 0.7s forwards;
}

.hero-stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}

.hero-stat-num {
  font-family: var(--font-heading);
  font-size: 1.4rem;
  font-weight: 800;
  background: linear-gradient(135deg, #f59e0b, #ffb800);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-shadow: 0 0 24px rgba(245, 158, 11, 0.25);
}

.hero-stat-label {
  font-family: var(--font-alt);
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--text-secondary);
}

@keyframes fadeUp {
  0% {
    opacity: 0;
    transform: translateY(30px);
  }

  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

.btn-cta {
  display: inline-block;
  font-family: var(--font-alt);
  font-size: 0.95rem;
  font-weight: 600;
  padding: 14px 40px;
  border-radius: 50px;
  background: linear-gradient(135deg, var(--accent-cyan), #ffb800);
  background-size: 200% 200%;
  animation: shimmer 5s linear infinite, ctaPulse 2.6s ease-in-out infinite;
  color: var(--bg-primary);
  transition: all var(--transition);
  border: 2px solid transparent;
  letter-spacing: 0.5px;
  box-shadow: 0 0 22px rgba(245, 158, 11, 0.4);
}

@keyframes ctaPulse {
  0%, 100% { box-shadow: 0 0 18px rgba(245, 158, 11, 0.3), 0 0 40px rgba(245, 158, 11, 0.1); }
  50% { box-shadow: 0 0 30px rgba(245, 158, 11, 0.55), 0 0 70px rgba(245, 158, 11, 0.22); }
}

.btn-cta:hover {
  box-shadow: var(--glow-cyan), var(--glow-pink), 0 0 40px rgba(245, 158, 11, 0.45);
  filter: brightness(1.2);
  transform: translateY(-2px);
}

/* ---------- SECTION HEADERS ---------- */
.section-header {
  text-align: center;
  margin-bottom: 60px;
}

.section-title {
  font-family: var(--font-heading);
  font-size: clamp(1.5rem, 3.5vw, 2.2rem);
  margin-bottom: 12px;
}

.section-subtitle {
  font-size: 1rem;
  color: var(--text-secondary);
}

/* ---------- AI FEATURES SECTION ---------- */
.ai-features {
  padding: 100px 0;
  position: relative;
}

.ai-features-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
}

.features-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.feature-card {
  background: var(--bg-card);
  border: 1px solid rgba(245, 158, 11, 0.12);
  border-radius: 12px;
  padding: 20px;
  display: flex;
  align-items: flex-start;
  gap: 14px;
  transition: all var(--transition);
  position: relative;
  overflow: hidden;
}

.feature-card::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 12px;
  padding: 1px;
  background: var(--gradient-border);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0;
  transition: opacity var(--transition);
}

.feature-card:hover::before {
  opacity: 1;
}

.feature-card:hover {
  background: var(--bg-card-hover);
  transform: translateY(-2px);
  box-shadow: var(--glow-mixed);
}

.feature-card-center {
  grid-column: 1 / -1;
  max-width: 420px;
  margin: 0 auto;
}

.feature-icon {
  flex-shrink: 0;
  width: 52px;
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(245, 158, 11, 0.06);
  border: 1px solid rgba(245, 158, 11, 0.18);
  border-radius: 10px;
}

.feature-text h3 {
  font-size: 0.95rem;
  font-weight: 600;
  margin-bottom: 4px;
}

.feature-text p {
  font-size: 0.8rem;
  color: var(--text-secondary);
  line-height: 1.5;
}

.features-robot {
  display: flex;
  justify-content: center;
  align-items: center;
}

.robot-image {
  max-width: 500px;
  width: 100%;
  animation: float 6s ease-in-out infinite;
  filter: drop-shadow(0 0 30px rgba(245, 158, 11, 0.25));
}

/* ---------- ABOUT SECTION ---------- */
.about-section {
  padding: 100px 0;
}

.about-box {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 64px;
  padding: 50px;
  border-radius: 20px;
  position: relative;
  background: rgba(14, 17, 23, 0.6);
  overflow: hidden;
}

.about-box::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 20px;
  padding: 1.5px;
  background: linear-gradient(135deg, var(--accent-cyan), var(--accent-purple), var(--accent-magenta), var(--accent-cyan));
  background-size: 300% 300%;
  animation: shimmer 6s linear infinite;
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
}

.about-visual {
  position: relative;
  flex-shrink: 0;
  width: 300px;
}

.phone-frame {
  position: relative;
  border-radius: 44px;
  padding: 3px;
  background: linear-gradient(140deg, rgba(245, 158, 11, 0.55), rgba(20, 184, 166, 0.35) 35%, rgba(244, 63, 122, 0.4) 65%, rgba(255, 184, 0, 0.5));
  box-shadow: 0 40px 80px rgba(0, 0, 0, 0.55), 0 0 60px rgba(245, 158, 11, 0.15), 0 0 120px rgba(20, 184, 166, 0.08);
}

.phone-frame-body {
  position: relative;
  border-radius: 41px;
  padding: 12px;
  background: linear-gradient(160deg, #23262e, #0e1117 40%, #1a1d26);
}

.phone-side-btn {
  position: absolute;
  width: 3px;
  border-radius: 2px;
  background: linear-gradient(180deg, #3a3f4a, #1c1f28);
  box-shadow: 0 0 4px rgba(0, 0, 0, 0.6);
  z-index: 1;
}

.phone-side-btn.top {
  top: 130px;
  height: 26px;
  right: -3px;
}

.phone-side-btn.bottom {
  top: 180px;
  height: 46px;
  right: -3px;
}

.phone-side-btn.left {
  top: 160px;
  height: 30px;
  left: -3px;
}

.phone-screen {
  border-radius: 34px;
  overflow: hidden;
  position: relative;
  background: #0a0e15;
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: inset 0 0 30px rgba(0, 0, 0, 0.6), inset 0 0 2px rgba(255, 255, 255, 0.08);
}

.phone-image {
  width: 100%;
  height: 580px;
  object-fit: cover;
  object-position: center top;
  display: block;
}

.phone-notch {
  display: none;
}

.about-float-chip {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border-radius: 14px;
  background: rgba(16, 19, 27, 0.92);
  border: 1px solid rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(8px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.45);
  animation: floatChip 5s ease-in-out infinite;
}

.chip-profit {
  top: 96px;
  right: -46px;
  border-color: rgba(245, 158, 11, 0.35);
}

.chip-bot {
  bottom: 76px;
  left: -52px;
  border-color: rgba(20, 184, 166, 0.35);
  animation-delay: 1.2s;
}

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

.chip-icon {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: rgba(245, 158, 11, 0.12);
  border: 1px solid rgba(245, 158, 11, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
}

.chip-bot .chip-icon {
  background: rgba(20, 184, 166, 0.12);
  border-color: rgba(20, 184, 166, 0.25);
}

.bot-pulse {
  position: relative;
}

.bot-pulse::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 100%;
  height: 100%;
  border-radius: 8px;
  border: 1px solid rgba(20, 184, 166, 0.6);
  transform: translate(-50%, -50%);
  animation: chipPulse 2s ease-out infinite;
}

@keyframes chipPulse {
  0% { transform: translate(-50%, -50%) scale(0.8); opacity: 1; }
  100% { transform: translate(-50%, -50%) scale(2); opacity: 0; }
}

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

.chip-label {
  font-size: 0.62rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.chip-value {
  font-family: var(--font-heading);
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-top: 2px;
}

.about-content {
  flex: 0 1 auto;
  max-width: 640px;
}

.about-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-heading);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: #fbbf24;
  padding: 6px 14px;
  border-radius: 999px;
  border: 1px solid rgba(245, 158, 11, 0.3);
  background: rgba(245, 158, 11, 0.08);
  margin-bottom: 16px;
}

.about-title {
  font-family: var(--font-heading);
  font-size: clamp(1.5rem, 3vw, 2.1rem);
  font-weight: 800;
  letter-spacing: 1px;
  line-height: 1.25;
  margin-bottom: 16px;
  background: linear-gradient(120deg, #f59e0b, #fbbf24, #14b8a6);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.about-heading {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 18px;
  font-weight: 400;
  letter-spacing: 2px;
  text-transform: uppercase;
}

.about-content p {
  font-size: 0.95rem;
  color: var(--text-secondary);
  margin-bottom: 16px;
  line-height: 1.75;
}

.about-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin: 8px 0 18px;
}

.about-stat {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 12px;
  padding: 12px 10px;
  text-align: center;
  transition: all var(--transition);
}

.about-stat:hover {
  border-color: rgba(245, 158, 11, 0.4);
  background: rgba(245, 158, 11, 0.06);
}

.about-stat-num {
  display: block;
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--accent-cyan);
}

.about-stat-label {
  display: block;
  font-size: 0.68rem;
  color: var(--text-muted);
  margin-top: 4px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.about-points {
  display: grid;
  gap: 10px;
  margin-bottom: 20px;
}

.about-point {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.88rem;
  color: var(--text-secondary);
}

.about-point svg {
  flex-shrink: 0;
}

.crypto-icons {
  display: flex;
  gap: 14px;
  margin-top: 26px;
  flex-wrap: wrap;
}

.crypto-icon {
  width: 48px;
  height: 48px;
  border-radius: 15px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  color: var(--accent-cyan);
  transition: all 0.25s ease;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.25), inset 0 1px 0 rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(4px);
}

.crypto-icon img {
  width: 26px;
  height: 26px;
  object-fit: contain;
}

.crypto-icon:hover {
  background: rgba(20, 184, 166, 0.12);
  border-color: rgba(20, 184, 166, 0.5);
  box-shadow: var(--glow-cyan), 0 8px 24px rgba(0, 0, 0, 0.3);
  transform: translateY(-3px) scale(1.08);
}

/* ---------- SECURITY SECTION ---------- */
.security-section {
  padding: 120px 0;
  position: relative;
  overflow: hidden;
}

.security-canvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  opacity: 0.5;
}

.security-section .container {
  position: relative;
  z-index: 1;
}

.sec-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-heading);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: #fbbf24;
  padding: 6px 14px;
  border-radius: 999px;
  border: 1px solid rgba(245, 158, 11, 0.3);
  background: rgba(245, 158, 11, 0.08);
  margin-bottom: 18px;
}

.security-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-bottom: 28px;
}

.sec-card {
  position: relative;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 18px;
  padding: 28px 24px 26px;
  transition: all 0.3s ease;
  overflow: hidden;
}

.sec-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, #f59e0b, #14b8a6, transparent);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.sec-card:hover {
  transform: translateY(-6px);
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(245, 158, 11, 0.35);
  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.4), 0 0 30px rgba(245, 158, 11, 0.1);
}

.sec-card:hover::before {
  opacity: 1;
}

.sec-icon {
  width: 54px;
  height: 54px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #f59e0b;
  background: rgba(245, 158, 11, 0.1);
  border: 1px solid rgba(245, 158, 11, 0.25);
  margin-bottom: 18px;
  transition: all 0.3s ease;
}

.sec-card:hover .sec-icon {
  background: rgba(245, 158, 11, 0.16);
  border-color: rgba(245, 158, 11, 0.5);
  box-shadow: var(--glow-cyan);
  color: #fbbf24;
}

.sec-card h3 {
  font-family: var(--font-heading);
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 10px;
  color: var(--text-primary);
}

.sec-card p {
  font-size: 0.86rem;
  color: var(--text-secondary);
  line-height: 1.7;
  margin: 0;
}

.security-trustbar {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  padding: 24px 30px;
  border-radius: 18px;
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.07), rgba(20, 184, 166, 0.05));
  border: 1px solid rgba(255, 255, 255, 0.09);
  backdrop-filter: blur(10px);
}

.trust-item {
  text-align: center;
  position: relative;
}

.trust-item + .trust-item::before {
  content: '';
  position: absolute;
  left: -10px;
  top: 12%;
  height: 76%;
  width: 1px;
  background: linear-gradient(180deg, transparent, rgba(255, 255, 255, 0.12), transparent);
}

.trust-num {
  display: block;
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 800;
  letter-spacing: 0.5px;
  background: linear-gradient(120deg, #f59e0b, #fbbf24, #14b8a6);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.trust-label {
  display: block;
  font-size: 0.72rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-top: 5px;
}

/* ---------- BOT GALLERY ---------- */
.bots-section {
  padding: 100px 0;
}

.bots-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 20px;
}

.bot-card {
  border-radius: 16px;
  overflow: hidden;
  background: var(--bg-card);
  text-align: center;
  transition: all var(--transition);
  cursor: pointer;
}

.bot-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--glow-mixed);
}

.bot-image-wrap {
  width: 100%;
  aspect-ratio: 3/4;
  overflow: hidden;
  background: #000;
}

.bot-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.bot-card:hover .bot-image {
  transform: scale(1.05);
}

.bot-name {
  font-family: var(--font-heading);
  font-size: 0.95rem;
  padding: 16px 12px 4px;
  color: var(--accent-cyan);
}

.bot-desc {
  font-size: 0.8rem;
  color: var(--text-secondary);
  padding: 0 12px 20px;
  line-height: 1.5;
}

/* ---------- BUILT FOR TRADERS (TABS) ---------- */
.traders-section {
  padding: 100px 0;
}

.traders-box {
  border-radius: 20px;
  overflow: hidden;
  position: relative;
  background: rgba(14, 17, 23, 0.6);
}

.traders-box::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 20px;
  padding: 1.5px;
  background: linear-gradient(135deg, var(--accent-cyan), var(--accent-purple), var(--accent-magenta), var(--accent-cyan));
  background-size: 300% 300%;
  animation: shimmer 6s linear infinite;
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
}

.tabs-nav {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  padding: 16px 16px 0;
  position: relative;
  z-index: 1;
}

.tab-btn {
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 500;
  padding: 14px 20px;
  border: 1px solid rgba(20, 184, 166, 0.15);
  border-radius: 50px;
  background: transparent;
  color: var(--text-secondary);
  cursor: pointer;
  transition: all var(--transition);
  white-space: nowrap;
}

.tab-btn:hover {
  color: var(--text-primary);
  border-color: rgba(20, 184, 166, 0.3);
}

.tab-btn.active {
  background: rgba(20, 184, 166, 0.1);
  color: var(--accent-cyan);
  border-color: var(--accent-cyan);
  box-shadow: 0 0 15px rgba(20, 184, 166, 0.15);
}

.tabs-content {
  padding: 30px 40px 40px;
  position: relative;
  z-index: 1;
}

.tab-panel {
  display: none;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
  animation: fadeIn 0.4s ease;
}

.tab-panel.active {
  display: grid;
}

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

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.tab-image img {
  width: 100%;
  border-radius: 12px;
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.4);
}

.tab-text h3 {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 16px;
}

.tab-text p {
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.7;
}

/* ---------- CTA SECTION ---------- */
.cta-section {
  padding: 120px 0;
}

.cta-content {
  text-align: center;
}

.cta-title {
  font-family: var(--font-heading);
  font-size: clamp(1.5rem, 3.5vw, 2.2rem);
  margin-bottom: 12px;
}

.cta-subtitle {
  font-size: 1rem;
  color: var(--text-secondary);
  margin-bottom: 36px;
}

.cta-integrations {
  margin-bottom: 40px;
  position: relative;
}

.cta-int-heading {
  font-family: var(--font-heading);
  font-size: clamp(1.05rem, 2.2vw, 1.45rem);
  font-weight: 800;
  letter-spacing: 4px;
  text-transform: uppercase;
  margin-bottom: 24px;
  background: linear-gradient(120deg, #f59e0b, #fbbf24, #14b8a6);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.user-avatar-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  background: transparent;
  border: none;
  color: var(--text-primary);
  cursor: pointer;
  font-family: var(--font-alt);
  font-weight: 500;
  padding: 6px 12px;
  border-radius: 50px;
  transition: all var(--transition);
}

.user-avatar-btn .avatar-img {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.user-avatar-btn:hover,
.user-avatar-btn.active {
  background: rgba(255, 255, 255, 0.05);
}

/* Dropdown Menu Styles */
.dropdown-menu {
  position: absolute;
  top: calc(100% + 12px);
  right: 0;
  width: 220px;
  background: rgba(12, 12, 20, 0.95);
  backdrop-filter: blur(25px);
  -webkit-backdrop-filter: blur(25px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  padding: 10px;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.6);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  z-index: 1000;
}

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

.dropdown-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  border-radius: 8px;
  font-size: 0.9rem;
  color: var(--text-secondary);
  transition: all 0.2s ease;
  cursor: pointer;
}

.dropdown-item:hover {
  background: rgba(255, 255, 255, 0.06);
  color: var(--text-primary);
}

.dropdown-item.logout {
  color: var(--accent-magenta);
}

.dropdown-divider {
  height: 1px;
  background: rgba(255, 255, 255, 0.06);
  margin: 6px 0;
}

.cta-brands {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 16px;
}

.cta-buttons {
  display: flex;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}

.btn-outline {
  display: inline-block;
  font-size: 0.95rem;
  font-weight: 500;
  padding: 14px 36px;
  border-radius: 50px;
  border: 1.5px solid rgba(255, 255, 255, 0.3);
  color: var(--text-primary);
  transition: all var(--transition);
}

.btn-outline:hover {
  border-color: var(--accent-cyan);
  box-shadow: var(--glow-cyan);
  color: var(--accent-cyan);
}

/* ---------- FOOTER ---------- */
.footer {
  text-align: center;
  padding: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer p {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 12px 22px 12px 12px;
  border-radius: 999px;
  font-family: var(--font-alt);
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.3px;
  color: rgba(255, 255, 255, 0.85);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.footer-brand-logo {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: #ffffff;
  object-fit: contain;
  padding: 6px;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.15), 0 6px 18px rgba(0, 0, 0, 0.35);
}

.footer-brand:hover {
  border-color: rgba(245, 158, 11, 0.55);
  background: rgba(245, 158, 11, 0.1);
  box-shadow: 0 4px 30px rgba(245, 158, 11, 0.12);
  color: #ffffff;
  transform: translateY(-3px);
}

/* ============================================
   RESPONSIVE
   ============================================ */

@media (max-width: 1100px) {
  .ai-features-grid {
    grid-template-columns: 1fr;
    gap: 50px;
  }

  .features-robot {
    order: -1;
  }

  .robot-image {
    max-width: 350px;
  }

  .bots-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 900px) {
  .tabs-nav {
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
  }

  .tab-panel {
    grid-template-columns: 1fr;
  }

  .about-box {
    flex-direction: column;
    text-align: center;
    padding: 40px 30px;
  }

  .about-visual {
    width: 240px;
  }

  .phone-image {
    height: 420px;
  }

  .chip-profit {
    top: 60px;
    right: -24px;
  }

  .chip-bot {
    bottom: 70px;
    left: -28px;
  }

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

  .about-points {
    text-align: left;
    justify-content: center;
  }

  .crypto-icons {
    justify-content: center;
  }

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

  .security-trustbar {
    grid-template-columns: repeat(2, 1fr);
    gap: 24px 20px;
  }

  .trust-item:nth-child(3)::before {
    display: none;
  }
}

@media (max-width: 768px) {
  .nav-links {
    display: flex; /* Always display for the transition to work with opacity/transform */
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100dvh;
    background: #0c0f1a !important;
    background-color: #0c0f1a !important;
    backdrop-filter: blur(40px) !important;
    -webkit-backdrop-filter: blur(40px) !important;
    flex-direction: column;
    align-items: center;
    justify-content: center !important;
    gap: 16px;
    z-index: 2000 !important;
    padding: 80px 20px 40px !important;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-20px);
    transition: opacity 0.4s ease, transform 0.4s ease, visibility 0.4s;
    overflow-y: auto;
    display: grid !important;
    grid-template-columns: 1fr 1fr;
    align-content: center;
    justify-items: center;
    gap: 20px 10px;
  }

  .nav-links .nav-link-stake {
    grid-column: 1 / -1;
    width: 100%;
    max-width: 280px;
    text-align: center;
    font-size: 1.05rem !important;
    padding: 14px !important;
    margin-top: 15px;
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.15), rgba(20, 184, 166, 0.15)) !important;
    border: 1px solid rgba(245, 158, 11, 0.4) !important;
    box-shadow: 0 0 15px rgba(245, 158, 11, 0.1) !important;
  }

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

  .nav-link {
    font-size: 0.95rem;
    font-family: var(--font-heading);
    letter-spacing: 1.5px;
    opacity: 0;
    transform: scale(0.9);
    transition: all 0.3s ease;
  }

  .nav-links.open .nav-link, 
  .nav-links.open .nav-dropdown {
    opacity: 1;
    transform: scale(1);
  }

  /* Nav Dropdown on Mobile */
  .nav-dropdown {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    opacity: 0;
    transform: scale(0.9);
    transition: all 0.3s ease;
    grid-column: 1 / -1;
  }
  
  .nav-dropdown-menu {
    position: static;
    transform: none;
    opacity: 1;
    visibility: visible;
    background: transparent;
    border: none;
    box-shadow: none;
    min-width: unset;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 6px;
    align-items: center;
  }
  
  .nav-dropdown .nav-link svg {
    display: none;
  }
  
  .nav-dropdown-item {
    font-size: 0.85rem;
    padding: 3px;
  }

  /* Staggered link animation */
  .nav-links.open > :nth-child(1) { transition-delay: 0.05s; }
  .nav-links.open > :nth-child(2) { transition-delay: 0.1s; }
  .nav-links.open > :nth-child(3) { transition-delay: 0.15s; }
  .nav-links.open > :nth-child(4) { transition-delay: 0.2s; }
  .nav-links.open > :nth-child(5) { transition-delay: 0.25s; }
  .nav-links.open > :nth-child(6) { transition-delay: 0.3s; }
  .nav-links.open > :nth-child(7) { transition-delay: 0.35s; }
  .nav-links.open > :nth-child(8) { transition-delay: 0.4s; }
  .nav-links.open > :nth-child(9) { transition-delay: 0.45s; }
  .nav-links.open > :nth-child(10) { transition-delay: 0.5s; }

  .nav-actions {
    display: flex;
    gap: 8px;
    align-items: center;
  }

  .nav-actions .btn-login,
  .nav-actions .btn-signup {
    display: none; /* Hide login/signup buttons in the header on mobile */
  }

  /* When JS moves .nav-actions into .nav-links on mobile */
  .mobile-nav-actions-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    margin-top: 8px;
    padding-bottom: 10px;
    gap: 12px;
    background: transparent;
    grid-column: 1 / -1;
  }

  .mobile-nav-actions-container .btn-login,
  .mobile-nav-actions-container .btn-signup {
    display: block;
    width: 100%; 
    max-width: 280px;
    text-align: center;
    padding: 14px 0;
    font-size: 0.95rem;
    border-radius: 50px;
  }

  .nav-links .nav-balance-badge {
    grid-column: 1 / -1;
    margin: 10px 0;
    padding: 8px 16px;
    background: rgba(245, 158, 11, 0.05);
    border: 1px solid rgba(245, 158, 11, 0.15);
    border-radius: 50px;
    display: flex;
    align-items: center;
    gap: 8px;
  }

  .nav-links .nav-balance-label {
    font-size: 0.7rem;
    color: var(--text-muted);
    letter-spacing: 1px;
  }

  .nav-links .nav-balance-value {
    font-family: var(--font-alt);
    color: var(--accent-cyan);
    font-size: 1.1rem;
    font-weight: 700;
  }

  .mobile-nav-actions-container .btn-login {
    background-color: var(--bg-card);
    border: 1px solid rgba(255, 255, 255, 0.1);
  }
  
  .mobile-nav-actions-container .btn-signup {
    background: linear-gradient(135deg, var(--accent-cyan), var(--accent-purple));
    border: none;
    color: var(--bg-primary);
  }

  /* User dropdown stays visible in header */
  .user-dropdown {
    position: relative;
    z-index: 1001;
  }

  .username-top {
    display: none; /* Hide name on small screens in header */
  }

  .logo-text {
    font-size: 0.9rem;
  }

  @media (max-width: 380px) {
    .logo-text span:first-child {
      display: none; /* Hide "SolvMarkets" but keep "AI" if too narrow */
    }
  }

  .hamburger {
    display: flex;
    z-index: 2002 !important;
    position: relative;
  }

  .hamburger.active {
    position: fixed;
    top: max(22px, env(safe-area-inset-top, 0) + 10px);
    right: max(24px, env(safe-area-inset-right, 0) + 10px);
    padding: 10px;
    z-index: 2100 !important;
    background: #0c0f1a;
    border: 1px solid rgba(245, 158, 11, 0.25);
    border-radius: 12px;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.5);
  }

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

  .features-cards {
    grid-template-columns: 1fr;
  }

  .feature-card-center {
    max-width: 100%;
  }
}

@media (max-width: 480px) {
  .security-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .sec-card {
    padding: 22px 20px;
  }

  .trust-item + .trust-item::before {
    display: none;
  }

  .security-trustbar {
    padding: 20px 16px;
  }

  .hero-content {
    padding: 40px 16px;
  }

  .hero-stats {
    gap: 20px;
    flex-wrap: wrap;
  }

  .hero-orb-1 { width: 300px; height: 300px; }
  .hero-orb-2 { width: 250px; height: 250px; }
  .hero-orb-3 { width: 200px; height: 200px; }

  .bots-grid {
    grid-template-columns: 1fr 1fr;
    gap: 12px;
  }

  .tabs-nav {
    grid-template-columns: 1fr;
  }

  .tabs-content {
    padding: 20px;
  }

  .about-box {
    padding: 30px 20px;
  }

  .about-visual {
    width: 264px;
  }

  .phone-image {
    height: 572px;
  }

  .about-title {
    font-size: 1.4rem;
  }

  .about-heading {
    font-size: 0.75rem;
  }

  .cta-brands {
    gap: 12px;
  }

  .footer-brand {
    padding: 10px 16px 10px 10px;
    gap: 10px;
    font-size: 0.85rem;
  }

  .footer-brand-logo {
    width: 38px;
    height: 38px;
    padding: 5px;
  }
}

/* ============================================
   GLOBAL MOBILE BOTTOM NAVIGATION
   ============================================ */
.global-bottom-nav {
    display: none;
}

@media (max-width: 992px) {
    .global-bottom-nav {
        display: flex;
        width: 100%;
        height: 74px;
        padding-top: 6px;
        position: fixed;
        bottom: 0; 
        left: 0; 
        right: 0; 
        z-index: 999999;
        background: rgba(10, 14, 23, 0.98);
        backdrop-filter: blur(25px);
        border-top: 1px solid rgba(255, 255, 255, 0.1);
        justify-content: space-around;
        align-items: flex-start;
        padding-bottom: env(safe-area-inset-bottom, 4px);
        box-shadow: 0 -8px 30px rgba(0, 0, 0, 0.8);
    }
    
    .global-bottom-nav a {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 3px;
        width: 56px;
        height: 58px;
        color: rgba(255, 255, 255, 0.45);
        border-radius: 12px;
        text-decoration: none;
        transition: all 0.3s ease;
        position: relative;
    }
    
    .global-bottom-nav a svg { 
        width: 22px; 
        height: 22px; 
        transition: color 0.3s ease, transform 0.3s ease;
    }

    .global-bottom-nav a .nav-label {
        font-size: 10px;
        line-height: 1;
        font-family: var(--font-alt);
        font-weight: 500;
        letter-spacing: 0.4px;
        text-transform: uppercase;
        color: rgba(255, 255, 255, 0.45);
        transition: color 0.3s ease;
    }

    .global-bottom-nav a:hover,
    .global-bottom-nav a.active {
        color: var(--accent-cyan);
    }

    .global-bottom-nav a:hover svg,
    .global-bottom-nav a.active svg {
        color: var(--accent-cyan);
        filter: drop-shadow(0 0 6px rgba(20, 184, 166, 0.6));
    }

    .global-bottom-nav a:hover .nav-label,
    .global-bottom-nav a.active .nav-label {
        color: var(--accent-cyan);
    }

    .global-bottom-nav a.active::before {
        content: '';
        position: absolute;
        top: 4px;
        left: 50%;
        transform: translateX(-50%);
        width: 22px;
        height: 3px;
        border-radius: 3px;
        background: var(--accent-cyan);
        box-shadow: 0 0 8px rgba(20, 184, 166, 0.7);
    }
    
    /* Ensure content is not hidden behind the bottom bar */
    body {
        padding-bottom: calc(74px + env(safe-area-inset-bottom, 8px)) !important;
    }
}.v3-topbar #navLinks:not(.active) { display: none !important; }

/* Performance Optimizations - Smooth Data Transitions */
.pair-price-tag, .pair-item-price, .coin-cell, .mover-price {
    transition: color 0.3s ease, background-color 0.3s ease;
}

/* Skeleton Loading State (Optional class for very slow loads) */
.loading-skeleton {
    color: transparent !important;
    background: linear-gradient(90deg, var(--bg-secondary) 25%, var(--accent-color-transparent) 50%, var(--bg-secondary) 75%);
    background-size: 200% 100%;
    animation: skeleton-loading 1.5s infinite;
    border-radius: 4px;
}

@keyframes skeleton-loading {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

/* Reduced Motion Utility */
@media (prefers-reduced-motion: reduce) {
    *, ::before, ::after {
        animation-delay: -1ms !important;
        animation-duration: 1ms !important;
        animation-iteration-count: 1 !important;
        background-attachment: scroll !important;
        transition-duration: 0s !important;
        transition-delay: 0s !important;
    }
}

/* Phase 3 - Loading Pulse Utility */
.loading-pulse {
  animation: loading-pulse 1.5s ease-in-out infinite;
  opacity: 0.6;
}

@keyframes loading-pulse {
  0%, 100% { opacity: 0.4; transform: scale(0.98); }
  50% { opacity: 0.8; transform: scale(1); }
}

/* Accessibility - Keyboard focus indicators */
:focus {
  outline: none;
}

:focus-visible {
  outline: 2px solid #f0b90b;
  outline-offset: 2px;
  border-radius: 4px;
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
[tabindex]:focus-visible {
  outline: 2px solid #f0b90b;
  outline-offset: 2px;
  box-shadow: 0 0 0 4px rgba(240, 185, 11, 0.25);
}

input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline-offset: 0;
  border-color: #f0b90b;
}

/* ============================================
   MOBILE NAVIGATION DRAWER — REDESIGN
   Professional right-side slide-in panel.
   Hidden on desktop; active <= 768px.
   ============================================ */
.nav-drawer-backdrop,
.nav-drawer-head,
.nav-drawer-label,
.nav-drawer-ctas,
.nav-link-icon,
.nav-link-chev { display: none; }

@media (max-width: 768px) {
  /* ---- Backdrop ---- */
  .nav-drawer-backdrop {
    display: block;
    position: fixed;
    inset: 0;
    background: rgba(4, 6, 12, 0.64);
    -webkit-backdrop-filter: blur(3px);
    backdrop-filter: blur(3px);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s;
    z-index: 1000000;
  }
  body.mobile-menu-open .nav-drawer-backdrop { opacity: 1; visibility: visible; }
  body.mobile-menu-open .global-bottom-nav { opacity: 0; visibility: hidden; pointer-events: none; }

  /* The topbar is position:fixed + backdrop-filter, so it creates its own
     stacking context. Lift it above the backdrop while open, otherwise the
     backdrop (a body child) paints over the drawer and blurs it. */
  body.mobile-menu-open .navbar,
  body.mobile-menu-open .v3-topbar {
    z-index: 1000002 !important;
  }

  /* ---- Drawer panel ---- */
  .nav-links {
    display: flex !important;
    flex-direction: column !important;
    align-items: stretch !important;
    justify-content: flex-start !important;
    gap: 3px !important;
    position: fixed !important;
    top: 0 !important;
    left: auto !important;
    right: 0 !important;
    width: min(88vw, 380px) !important;
    height: 100dvh !important;
    padding: calc(env(safe-area-inset-top, 0px) + 18px) 14px calc(env(safe-area-inset-bottom, 0px) + 20px) !important;
    background: linear-gradient(180deg, #0d1120 0%, #0a0d17 100%) !important;
    background-color: #0a0d17 !important;
    border-left: 1px solid rgba(255, 255, 255, 0.07);
    box-shadow: -24px 0 60px rgba(0, 0, 0, 0.55);
    opacity: 1 !important;
    visibility: hidden;
    transform: translateX(102%);
    transition: transform 0.34s cubic-bezier(0.22, 1, 0.36, 1), visibility 0.34s;
    overflow-y: auto;
    overflow-x: hidden;
    -webkit-overflow-scrolling: touch;
    grid-template-columns: none !important;
    z-index: 1000001 !important;
  }
  .nav-links.open {
    visibility: visible !important;
    transform: translateX(0) !important;
  }

  /* ---- Head ---- */
  .nav-drawer-head {
    display: flex;
    order: -1;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 2px 6px 16px;
    margin-bottom: 8px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.07);
    flex-shrink: 0;
  }
  .nav-drawer-brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1rem;
    letter-spacing: 0.4px;
    color: var(--text-primary);
  }
  .nav-drawer-brand svg { display: block; }
  .nav-drawer-brand .logo-highlight { color: var(--accent-cyan); }
  .nav-drawer-close {
    width: 44px;
    height: 44px;
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.09);
    border-radius: 12px;
    color: var(--text-secondary);
    cursor: pointer;
    transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
  }
  .nav-drawer-close:active {
    background: rgba(245, 158, 11, 0.16);
    color: var(--accent-cyan);
    border-color: rgba(245, 158, 11, 0.35);
  }

  /* ---- Section labels ---- */
  .nav-drawer-label {
    display: block;
    margin: 12px 12px 4px;
    font-family: var(--font-alt);
    font-size: 0.64rem;
    font-weight: 600;
    letter-spacing: 1.8px;
    text-transform: uppercase;
    color: var(--text-muted);
    flex-shrink: 0;
  }
  .nav-drawer-label--wallet { order: 2; }
  .nav-drawer-label--menu { order: 0; }

  /* ---- Rows ---- */
  .nav-links > .nav-link,
  .nav-links > .nav-dropdown { order: 1; width: 100%; }

  .nav-links .nav-link {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
    padding: 13px 14px;
    border-radius: 12px;
    font-family: var(--font-body);
    font-size: 0.94rem;
    font-weight: 500;
    letter-spacing: 0;
    color: var(--text-secondary);
    background: transparent;
    opacity: 1;
    transform: none;
    transition: background 0.2s ease, color 0.2s ease;
  }
  .nav-links .nav-link:hover,
  .nav-links .nav-link:active { background: rgba(255, 255, 255, 0.05); color: var(--text-primary); }
  .nav-links > .nav-link.active { background: rgba(245, 158, 11, 0.10); color: var(--accent-cyan); }

  .nav-link-icon { display: inline-flex; width: 20px; height: 20px; flex-shrink: 0; color: inherit; }
  .nav-link-icon svg { width: 20px; height: 20px; display: block; }
  .nav-link-chev { display: inline-flex; margin-left: auto; opacity: 0.55; transition: transform 0.25s ease; }
  .nav-link-chev svg { width: 16px; height: 16px; display: block; }

  /* Stake keeps a subtle emphasis */
  .nav-links .nav-link-stake {
    grid-column: auto;
    width: 100%;
    max-width: none;
    margin-top: 2px;
    padding: 13px 14px !important;
    font-size: 0.94rem !important;
    text-align: left;
    background: rgba(245, 158, 11, 0.07) !important;
    border: 1px solid rgba(245, 158, 11, 0.18) !important;
    border-radius: 12px !important;
    box-shadow: none !important;
  }

  /* ---- Trade dropdown ---- */
  .nav-links .nav-dropdown {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
    width: 100%;
    opacity: 1;
    transform: none;
    grid-column: auto;
  }
  .nav-links .nav-dropdown > .nav-link { cursor: pointer; }
  .nav-links .nav-dropdown .nav-link .nav-link-icon svg,
  .nav-links .nav-dropdown .nav-link .nav-link-chev svg { display: block; }
  .nav-links .nav-dropdown-menu {
    display: none;
    position: static;
    left: auto;
    transform: none !important;
    opacity: 1;
    visibility: visible;
    background: transparent;
    border: none;
    box-shadow: none;
    min-width: 0;
    padding: 0 0 4px 0;
    flex-direction: column;
    gap: 2px;
    align-items: stretch;
    transition: none;
  }
  .nav-links .nav-dropdown-menu.mobile-show { display: flex; }
  .nav-links .nav-dropdown > .nav-link.mobile-open .nav-link-chev { transform: rotate(180deg); }
  .nav-links .nav-dropdown-item {
    display: flex;
    align-items: center;
    padding: 11px 14px 11px 46px;
    margin-left: 10px;
    border-left: 1px solid rgba(255, 255, 255, 0.10);
    border-radius: 0 12px 12px 0;
    font-size: 0.88rem;
    font-weight: 500;
    color: var(--text-muted);
  }
  .nav-links .nav-dropdown-item:hover,
  .nav-links .nav-dropdown-item:active { color: var(--text-primary); background: rgba(255, 255, 255, 0.04); }
  .nav-links .nav-dropdown-item.active { color: var(--accent-cyan); background: rgba(245, 158, 11, 0.07); }

  /* ---- Deposit / Withdraw CTAs ---- */
  .nav-drawer-ctas {
    display: grid;
    order: 4;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    width: 100%;
    margin-top: 10px;
    flex-shrink: 0;
  }
  .nav-drawer-cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    height: 50px;
    border-radius: 13px;
    font-family: var(--font-alt);
    font-weight: 700;
    font-size: 0.82rem;
    letter-spacing: 0.8px;
    text-transform: uppercase;
    cursor: pointer;
  }
  .nav-drawer-cta svg { width: 17px; height: 17px; }
  .nav-drawer-cta.deposit {
    background: linear-gradient(135deg, #f59e0b, #14b8a6);
    color: #06060d;
    box-shadow: 0 8px 20px rgba(245, 158, 11, 0.22);
  }
  .nav-drawer-cta.withdraw {
    background: rgba(255, 255, 255, 0.045);
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: var(--text-primary);
  }

  /* ---- Balance + auth block ---- */
  .mobile-nav-actions-container {
    display: flex;
    order: 5;
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    width: 100%;
    margin-top: auto;
    padding-top: 16px;
    gap: 10px;
    background: transparent;
    border-top: 1px solid rgba(255, 255, 255, 0.07);
    flex-shrink: 0;
  }
  .mobile-nav-actions-container .btn-login,
  .mobile-nav-actions-container .btn-signup {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    width: 100%;
    max-width: none;
    height: 50px;
    padding: 0;
    border-radius: 13px;
    font-family: var(--font-alt);
    font-weight: 700;
    font-size: 0.85rem;
    letter-spacing: 0.8px;
    text-transform: uppercase;
  }
  .mobile-nav-actions-container .btn-login {
    background: rgba(255, 255, 255, 0.045);
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: var(--text-primary);
  }
  .mobile-nav-actions-container .btn-signup {
    background: linear-gradient(135deg, #f59e0b, #14b8a6);
    border: none;
    color: #06060d;
  }

  .nav-links .nav-balance-badge,
  .mobile-nav-actions-container .nav-balance-badge {
    order: 3;
    display: grid;
    grid-template-columns: 1fr auto;
    grid-template-areas:
      "head head"
      "value label";
    align-items: end;
    gap: 2px 10px;
    width: 100%;
    margin: 0;
    padding: 14px 16px;
    border-radius: 15px;
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.14), rgba(20, 184, 166, 0.10));
    border: 1px solid rgba(245, 158, 11, 0.26);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06), 0 12px 28px rgba(0, 0, 0, 0.35);
    cursor: default;
  }
  .nav-links .nav-balance-badge::before {
    content: 'Wallet Balance';
    grid-area: head;
    font-family: var(--font-alt);
    font-size: 0.64rem;
    font-weight: 600;
    letter-spacing: 1.6px;
    text-transform: uppercase;
    color: var(--text-muted);
  }
  .nav-links .nav-balance-label {
    grid-area: label;
    align-self: end;
    padding-bottom: 3px;
    font-family: var(--font-alt);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 1px;
    color: var(--accent-cyan);
  }
  .nav-links .nav-balance-value {
    grid-area: value;
    font-family: var(--font-heading);
    font-size: 1.7rem;
    font-weight: 800;
    letter-spacing: -0.6px;
    line-height: 1;
    color: #ffffff;
  }

  /* ---- Hamburger ---- */
  .hamburger { display: flex; }
  .hamburger.active {
    position: static;
    top: auto;
    right: auto;
    padding: 4px;
    background: none;
    border: none;
    box-shadow: none;
  }
  body.mobile-menu-open .hamburger { opacity: 0; visibility: hidden; pointer-events: none; }
}

/* ============================================================
   Landing scroll experience — reveal variants, section dividers,
   hero scroll cue (added for premium scroll animations)
   ============================================================ */

/* ---- Reveal variants (IntersectionObserver adds .is-visible) ---- */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.9s cubic-bezier(0.22, 0.7, 0.24, 1),
              transform 0.9s cubic-bezier(0.22, 0.7, 0.24, 1);
  will-change: opacity, transform;
}
.reveal.from-left  { transform: translateX(-48px); }
.reveal.from-right { transform: translateX(48px); }
.reveal.zoom       { transform: scale(0.92); }
.reveal.is-visible { opacity: 1; transform: none; }

/* Nicer easing for the legacy fade-in used across the landing page */
.fade-in {
  transform: translateY(40px);
  transition: opacity 0.9s cubic-bezier(0.22, 0.7, 0.24, 1),
              transform 0.9s cubic-bezier(0.22, 0.7, 0.24, 1);
}

/* ---- Section divider: glowing line + "next section" cue ---- */
.section-divider {
  position: relative;
  height: 96px;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}
.section-divider .sd-line {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  width: min(760px, 84vw);
  height: 1px;
  background: linear-gradient(90deg,
    transparent 0%,
    rgba(245, 158, 11, 0.35) 30%,
    rgba(20, 184, 166, 0.35) 70%,
    transparent 100%);
}
.section-divider .sd-line::after {
  content: '';
  position: absolute;
  inset: -1px 0;
  background: inherit;
  filter: blur(6px);
  opacity: 0.6;
}
.section-divider .sd-cue {
  position: relative;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  background: radial-gradient(120% 120% at 50% 0%, rgba(12, 15, 26, 0.9), rgba(12, 15, 26, 0.6));
  color: var(--text-secondary, #a0a8c0);
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  text-align: center;
}
.section-divider .sd-cue b {
  color: #fff;
  font-weight: 800;
  letter-spacing: 1.5px;
}
.section-divider .sd-chev {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  border: 1px solid rgba(245, 158, 11, 0.4);
  background: rgba(10, 12, 20, 0.8);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-cyan, #f59e0b);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.4);
  animation: sdBob 1.9s ease-in-out infinite;
}
.section-divider .sd-chev svg { width: 14px; height: 14px; }
@keyframes sdBob {
  0%, 100% { transform: translateY(0); opacity: 0.75; }
  50%      { transform: translateY(7px); opacity: 1; }
}

/* ---- Hero scroll cue ---- */
.scroll-cue {
  position: absolute;
  left: 50%;
  bottom: calc(env(safe-area-inset-bottom, 0px) + 26px);
  transform: translateX(-50%);
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  color: var(--text-secondary, #a0a8c0);
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 3px;
  text-transform: uppercase;
  transition: opacity 0.3s ease;
}
.scroll-cue .cue-mouse {
  position: relative;
  width: 26px;
  height: 42px;
  border: 2px solid rgba(245, 158, 11, 0.45);
  border-radius: 14px;
  background: rgba(10, 12, 20, 0.4);
}
.scroll-cue .cue-wheel {
  position: absolute;
  left: 50%;
  top: 8px;
  width: 4px;
  height: 8px;
  margin-left: -2px;
  border-radius: 3px;
  background: var(--accent-cyan, #f59e0b);
  animation: cueWheel 1.6s ease-in-out infinite;
}
@keyframes cueWheel {
  0%   { transform: translateY(0); opacity: 1; }
  70%  { transform: translateY(12px); opacity: 0; }
  100% { transform: translateY(0); opacity: 0; }
}
.scroll-cue .cue-arrow {
  width: 16px;
  height: 16px;
  border-right: 2px solid rgba(20, 184, 166, 0.7);
  border-bottom: 2px solid rgba(20, 184, 166, 0.7);
  transform: rotate(45deg);
  animation: cueArrow 1.9s ease-in-out infinite;
}
@keyframes cueArrow {
  0%, 100% { transform: rotate(45deg) translate(0, 0); opacity: 0.5; }
  50%      { transform: rotate(45deg) translate(3px, 3px); opacity: 1; }
}

/* ---- Per-section entrance accent ---- */
section { scroll-margin-top: calc(var(--nav-height) + 16px); }

@media (max-width: 768px) {
  .section-divider { height: 72px; }
  .section-divider .sd-cue { font-size: 0.56rem; letter-spacing: 1.4px; }
  .scroll-cue { bottom: calc(env(safe-area-inset-bottom, 0px) + 18px); }
}

@media (prefers-reduced-motion: reduce) {
  .reveal, .fade-in { opacity: 1 !important; transform: none !important; transition: none !important; }
  .section-divider .sd-chev, .scroll-cue .cue-wheel, .scroll-cue .cue-arrow { animation: none !important; }
}


/* Make Combo Bot centered on mobile (only) */
@media (max-width: 480px) {
  .bots-grid .bot-card:nth-child(5) {
    grid-column: 1 / -1;
    justify-self: center;
    max-width: 56%;
  }
}


/* Center nav item (Login/Dashboard) */
@media (max-width: 992px) {
  .global-bottom-nav .nav-center {
    margin-top: -10px;
    padding: 6px 8px 4px;
    height: auto;
  }
  .nav-center-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 46px;
    height: 46px;
    border-radius: 14px;
    background: linear-gradient(135deg, #f59e0b 0%, #ffb800 70%);
    color: #0d1220;
    box-shadow: 0 6px 18px rgba(245, 158, 11, 0.35);
  }
  .global-bottom-nav .nav-center svg {
    width: 20px;
    height: 20px;
    color: #0d1220;
    filter: none;
  }
  .global-bottom-nav .nav-center .nav-label {
    margin-top: 4px;
    color: var(--accent-cyan);
    font-weight: 600;
  }
}
