/* ========== CSS VARIABLES ========== */
:root {
  /* Brand Colors */
  --rebel-red: #D74D4D;
  --rebel-gold: #D4A76A;
  --rebel-dark: #0A0A0A;
  
  /* Spacing Scale */
  --spacing-xs: 4px;
  --spacing-sm: 8px;
  --spacing-md: 16px;
  --spacing-lg: 24px;
  --spacing-xl: 32px;
  --spacing-2xl: 48px;
  --spacing-3xl: 64px;
  
  /* Border Radius Scale */
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --radius-full: 9999px;
  
  /* Z-index Scale */
  --z-dropdown: 1000;
  --z-modal: 2000;
  --z-tooltip: 3000;
  --z-max: 9999;
  
  /* Animation Durations */
  --transition-fast: 150ms;
  --transition-base: 300ms;
  --transition-slow: 500ms;
}

/* ========== PREMIUM ANIMATIONS ========== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(212, 167, 106, 0.4);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(212, 167, 106, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(212, 167, 106, 0);
    }
}

@keyframes shimmer {
    0% {
        background-position: -1000px 0;
    }
    100% {
        background-position: 1000px 0;
    }
}

@keyframes activePulse {
    0%, 100% { 
        opacity: 1;
        transform: translateY(-50%) scale(1);
    }
    50% { 
        opacity: 0.8;
        transform: translateY(-50%) scale(1.3);
        box-shadow: 0 0 15px var(--rebel-gold);
    }
}

@keyframes menuAppear {
    0% {
        opacity: 0;
        transform: translateY(-30px) scale(0.98);
    }
    50% {
        transform: translateY(-10px) scale(1);
    }
    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@keyframes gradientShift {
    0% { background-position: 0% center; }
    50% { background-position: 100% center; }
    100% { background-position: 0% center; }
}

@keyframes logoPulse {
    0%, 100% { 
        transform: scale(1);
    }
    70% { 
        transform: scale(1.05);
    }
}

@keyframes cryptoReveal {
    0% {
        opacity: 0;
        transform: translate(-50%, -50%) scale(0);
        filter: hue-rotate(0deg);
    }
    60% {
        opacity: 0.8;
        transform: translate(-50%, -50%) scale(1.5);
        filter: hue-rotate(20deg) blur(3px);
    }
    100% {
        opacity: 0;
        transform: translate(-50%, -50%) scale(2);
        filter: hue-rotate(0deg) blur(5px);
    }
}

@keyframes particleExplode {
    0% {
        transform: translate(-50%, -50%) scale(0);
        opacity: 1;
    }
    50% {
        opacity: 0.7;
    }
    100% {
        transform: translate(-50%, -50%) scale(3);
        opacity: 0;
    }
}

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

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

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

/* ========== SMOOTH TRANSITIONS ========== */
#nav-desktop a,
.dropbtn,
.dropdown-content a,
.buy-toggle,
.mobile-nav-toggle {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

/* ========== REDUCED MOTION PREFERENCES ========== */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* ========== PRINT STYLES ========== */
@media print {
  header,
  footer,
  .back-to-top,
  .mobile-nav-toggle,
  .buy-dropdown {
    display: none !important;
  }
  
  * {
    color: #000 !important;
    background: #fff !important;
    box-shadow: none !important;
    text-shadow: none !important;
  }
}

/* ========== PROFESSIONAL HEADER STYLES ========== */
header {
  background: rgba(10, 10, 10, 0.95);
  padding: var(--spacing-sm) var(--spacing-md);
  position: sticky;
  top: 0;
  z-index: var(--z-dropdown);
  backdrop-filter: blur(20px) saturate(200%);
  -webkit-backdrop-filter: blur(20px) saturate(200%);
  border-bottom: 1px solid rgba(212, 167, 106, 0.2);
  background-image: 
    linear-gradient(rgba(10, 10, 10, 0.95), rgba(10, 10, 10, 0.95)),
    linear-gradient(90deg, 
      rgba(215, 77, 77, 0.25) 0%, 
      rgba(212, 167, 106, 0.25) 50%, 
      rgba(215, 77, 77, 0.25) 100%);
  background-origin: border-box;
  background-clip: padding-box, border-box;
  transition: all var(--transition-base) cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
}

/* Header scroll effect */
header.scrolled {
  background: rgba(5, 5, 5, 0.98);
  backdrop-filter: blur(30px) saturate(200%);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
  border-bottom-color: rgba(212, 167, 106, 0.3);
}

.header-container {
  max-width: 1400px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: relative;
  gap: var(--spacing-md);
}

/* ========== ENHANCED BRAND LOGO ========== */
.brand-link {
  display: flex;
  align-items: center;
  text-decoration: none;
  color: inherit;
  transition: all var(--transition-base) cubic-bezier(0.4, 0, 0.2, 1);
  min-height: 44px;
  min-width: 44px;
  position: relative;
  flex-shrink: 0;
}

.brand-link:hover {
  transform: translateY(-2px);
}

.brand-link:hover .brand-logo {
  filter: drop-shadow(0 0 12px rgba(212, 167, 106, 0.4));
  border-color: var(--rebel-gold);
}

.brand-content {
  display: flex;
  align-items: center;
  gap: 12px;
  position: relative;
}

.brand-logo {
  height: 48px;
  width: 48px;
  border-radius: var(--radius-lg);
  object-fit: contain;
  display: block;
  border: 2px solid rgba(212, 167, 106, 0.3);
  padding: 4px;
  background: rgba(0, 0, 0, 0.6);
  transition: all var(--transition-base) ease;
  flex-shrink: 0;
  will-change: transform;
}

.brand-logo:hover {
  animation: logoPulse 2s infinite;
  border-color: var(--rebel-gold);
}

.brand-text {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
}

.brand-title {
  font-size: 1.8rem;
  font-weight: 900;
  background: linear-gradient(90deg, 
    var(--rebel-red) 0%, 
    var(--rebel-gold) 50%, 
    var(--rebel-red) 100%);
  background-size: 200% auto;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
  animation: shimmer 4s ease-in-out infinite;
  line-height: 1.1;
  white-space: nowrap;
}

.brand-subtitle {
  font-size: 0.8rem;
  color: var(--rebel-gold);
  font-weight: 600;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  background: rgba(212, 167, 106, 0.15);
  padding: 3px 10px;
  border-radius: var(--radius-full);
  border: 1px solid rgba(212, 167, 106, 0.25);
  margin-top: 2px;
  white-space: nowrap;
}

/* ========== DESKTOP NAVIGATION ========== */
/* Desktop: Show desktop nav, hide mobile toggle */
@media (min-width: 769px) {
  .mobile-nav-toggle {
    display: none !important;
  }
  
  .buy-dropdown.desktop-primary-action {
    display: block !important;
  }
  
  /* Hide mobile buy single link on desktop */
  .mobile-direct-buy {
    display: none !important;
  }
  
  #nav-desktop {
    display: flex !important;
    gap: var(--spacing-sm);
    align-items: center;
    flex: 1;
    justify-content: center;
    margin: 0 var(--spacing-md);
  }
}

/* ========== FIX: ALWAYS SHOW NAV ON DESKTOP WHEN SCROLLED ========== */
@media (min-width: 769px) {
  /* Ensure navigation is always visible on desktop, even when scrolled */
  header.scrolled #nav-desktop {
    display: flex !important;
    opacity: 1 !important;
    visibility: visible !important;
    transform: none !important;
  }
  
  /* Ensure individual nav links are visible */
  header.scrolled #nav-desktop a,
  header.scrolled .dropbtn,
  header.scrolled .dropdown {
    display: inline-flex !important;
    opacity: 1 !important;
    visibility: visible !important;
    transform: none !important;
  }
  
  /* Ensure dropdown content shows when active */
  header.scrolled .dropdown.active .dropdown-content {
    display: block !important;
    opacity: 1 !important;
    visibility: visible !important;
    transform: translateY(0) !important;
  }
  
  /* Ensure buy dropdown is visible */
  header.scrolled .buy-dropdown.desktop-primary-action {
    display: block !important;
    opacity: 1 !important;
    visibility: visible !important;
  }
}

/* Base nav link styles */
#nav-desktop a {
  padding: 10px 20px;
  border-radius: var(--radius-full);
  font-weight: 600;
  position: relative;
  transition: all var(--transition-base) cubic-bezier(0.4, 0, 0.2, 1);
  min-height: 44px;
  min-width: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  font-size: 0.95rem;
  letter-spacing: 0.3px;
  overflow: hidden;
  border: 1px solid transparent;
  background: rgba(255, 255, 255, 0.05);
  color: rgba(255, 255, 255, 0.9);
}

/* Add subtle gradient border effect */
#nav-desktop a::before {
  content: '';
  position: absolute;
  top: -1px;
  left: -1px;
  right: -1px;
  bottom: -1px;
  background: linear-gradient(90deg, 
    var(--rebel-red), 
    var(--rebel-gold), 
    var(--rebel-red));
  border-radius: var(--radius-full);
  z-index: -1;
  opacity: 0;
  transition: opacity var(--transition-base) ease;
}

#nav-desktop a:hover::before {
  opacity: 1;
}

/* Icon spacing with animation */
#nav-desktop a i {
  margin-right: 8px;
  transition: transform var(--transition-base) ease;
  font-size: 0.9rem;
}

#nav-desktop a:hover i {
  transform: scale(1.15);
}

/* Enhanced Color-coded navigation with gradients */
.nav-trade {
  color: #FF6B35 !important;
  border-color: rgba(255, 107, 53, 0.4) !important;
  background: linear-gradient(135deg, 
    rgba(255, 107, 53, 0.08), 
    rgba(255, 107, 53, 0.03)) !important;
}

.nav-rewards {
  color: #9C27B0 !important;
  border-color: rgba(156, 39, 176, 0.4) !important;
  background: linear-gradient(135deg, 
    rgba(156, 39, 176, 0.08), 
    rgba(156, 39, 176, 0.03)) !important;
}

.nav-tokenomics {
  color: #00BCD4 !important;
  border-color: rgba(0, 188, 212, 0.4) !important;
  background: linear-gradient(135deg, 
    rgba(0, 188, 212, 0.08), 
    rgba(0, 188, 212, 0.03)) !important;
}

/* Enhanced hover effects with glow */
.nav-trade:hover {
  background: linear-gradient(135deg, 
    rgba(255, 107, 53, 0.2), 
    rgba(255, 107, 53, 0.1)) !important;
  box-shadow: 0 4px 15px rgba(255, 107, 53, 0.25);
  transform: translateY(-2px);
}

.nav-rewards:hover {
  background: linear-gradient(135deg, 
    rgba(156, 39, 176, 0.2), 
    rgba(156, 39, 176, 0.1)) !important;
  box-shadow: 0 4px 15px rgba(156, 39, 176, 0.25);
  transform: translateY(-2px);
}

.nav-tokenomics:hover {
  background: linear-gradient(135deg, 
    rgba(0, 188, 212, 0.2), 
    rgba(0, 188, 212, 0.1)) !important;
  box-shadow: 0 4px 15px rgba(0, 188, 212, 0.25);
  transform: translateY(-2px);
}

/* Active state with glow */
#nav-desktop a.active {
  background: linear-gradient(135deg, 
    rgba(212, 167, 106, 0.25), 
    rgba(215, 77, 77, 0.15)) !important;
  color: white !important;
  box-shadow: 0 4px 20px rgba(212, 167, 106, 0.25);
  border-color: var(--rebel-gold) !important;
  transform: translateY(-1px);
}

/* ========== DROPDOWN STYLES ========== */
.dropdown {
  position: relative;
  display: inline-block;
  z-index: var(--z-dropdown);
}

.dropbtn {
  background: linear-gradient(135deg, 
    rgba(255, 215, 0, 0.1), 
    rgba(255, 152, 0, 0.05));
  color: #FFD700 !important;
  padding: 10px 20px;
  border: 1px solid rgba(255, 215, 0, 0.4);
  cursor: pointer;
  font-family: inherit;
  font-size: 0.95rem;
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  min-width: 44px;
  text-decoration: none;
  border-radius: var(--radius-full);
  font-weight: 600;
  transition: all var(--transition-base) cubic-bezier(0.4, 0, 0.2, 1);
  letter-spacing: 0.3px;
  background-color: transparent;
}

.dropbtn i {
  margin-right: 6px;
  transition: transform var(--transition-base) ease;
}

.dropbtn:hover i {
  transform: rotate(15deg);
}

/* Dropdown Arrow with animation */
.dropbtn .dropdown-arrow {
  display: inline-block;
  margin-left: 4px;
  font-size: 0.7em;
  transition: transform var(--transition-slow) cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.dropdown.active .dropbtn .dropdown-arrow,
.dropbtn.active .dropdown-arrow {
  transform: rotate(180deg);
}

.dropbtn:hover {
  background: linear-gradient(135deg, 
    rgba(255, 215, 0, 0.2), 
    rgba(255, 215, 0, 0.1)) !important;
  box-shadow: 0 4px 15px rgba(255, 215, 0, 0.25);
  transform: translateY(-2px);
  border-color: var(--rebel-gold) !important;
}

.dropdown.active .dropbtn,
.dropbtn.active {
  background: linear-gradient(135deg, 
    rgba(255, 215, 0, 0.25), 
    rgba(255, 215, 0, 0.15)) !important;
  box-shadow: 0 4px 20px rgba(255, 215, 0, 0.3);
}

/* Professional dropdown content */
.dropdown-content {
  display: none;
  position: absolute;
  right: 0;
  background: rgba(15, 15, 15, 0.98);
  min-width: 240px;
  border: 1px solid rgba(212, 167, 106, 0.3);
  border-radius: var(--radius-xl);
  z-index: calc(var(--z-dropdown) + 1);
  padding: 8px 0;
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  box-shadow: 
    0 10px 40px rgba(0, 0, 0, 0.6),
    0 0 0 1px rgba(255, 255, 255, 0.05) inset;
  overflow: hidden;
  margin-top: 8px;
  transition: all var(--transition-base) cubic-bezier(0.4, 0, 0.2, 1);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
}

/* Add subtle gradient border */
.dropdown-content::before {
  content: '';
  position: absolute;
  top: -1px;
  left: -1px;
  right: -1px;
  bottom: -1px;
  background: linear-gradient(135deg, 
    rgba(212, 167, 106, 0.3), 
    rgba(215, 77, 77, 0.3));
  border-radius: calc(var(--radius-xl) + 1px);
  z-index: -1;
  opacity: 0.5;
}

.dropdown-content a {
  color: rgba(255, 255, 255, 0.9) !important;
  padding: 14px 24px;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  min-height: 52px;
  font-size: 0.95rem;
  transition: all var(--transition-fast) ease;
  position: relative;
  overflow: hidden;
  margin: 0 8px;
  border-radius: var(--radius-md);
  background: transparent !important;
  border: none !important;
}

.dropdown-content a:last-child {
  border-bottom: none;
}

/* Add color accent on hover */
.dropdown-content a::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 4px;
  background: currentColor;
  opacity: 0;
  transition: opacity var(--transition-base) ease;
  border-radius: var(--radius-sm);
}

.dropdown-content a:hover::before {
  opacity: 0.7;
}

.dropdown-content a:hover {
  background: rgba(255, 255, 255, 0.08) !important;
  padding-left: 28px;
  transform: translateX(4px);
  color: white !important;
}

.dropdown-content a i {
  width: 20px;
  text-align: center;
  font-size: 1.1rem;
  transition: transform var(--transition-base) ease;
}

.dropdown-content a:hover i {
  transform: scale(1.2);
}

/* Dropdown item colors */
.dropdown-content a.nav-community { 
  color: #2196F3 !important;
}

.dropdown-content a.nav-security { 
  color: #4CAF50 !important;
}

.dropdown-content a.nav-whitepaper { 
  color: #9C27B0 !important;
}
.dropdown-content a.nav-calculator { 
  color: #2ECC71 !important;
}
.dropdown-content a.nav-governance { 
  color: #FF9800 !important;
}

.dropdown-content a.nav-roadmap { 
  color: #FF5722 !important;
}

.dropdown-content a.nav-integrity { 
  color: #D4A76A !important;
}

.dropdown-content a.nav-artwork { 
  color: #E91E63 !important;
}

.dropdown-divider {
  height: 1px;
  background: linear-gradient(90deg, 
    transparent, 
    rgba(255, 255, 255, 0.1), 
    transparent);
  margin: 8px 20px;
}

/* Desktop dropdown visibility */
@media (min-width: 769px) {
  .dropdown.active .dropdown-content {
    display: block !important;
    opacity: 1 !important;
    visibility: visible !important;
    transform: translateY(0);
  }
}

/* ========== ENHANCED BUY BUTTON & DROPDOWN ========== */
.buy-dropdown {
  position: relative;
  display: inline-block;
  margin-left: auto;
}

/* Loading state for buttons */
.buy-toggle.loading {
  position: relative;
  color: transparent !important;
  pointer-events: none;
}

.buy-toggle.loading::after {
  content: '';
  position: absolute;
  width: 20px;
  height: 20px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-top-color: white;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
}

/* Enhanced Buy Toggle Button */
.buy-toggle {
  background: linear-gradient(135deg, 
    var(--rebel-red), 
    var(--rebel-gold), 
    var(--rebel-red));
  background-size: 200% auto;
  color: white !important;
  padding: 14px 28px;
  border-radius: var(--radius-full);
  font-weight: 800;
  font-size: 1.1rem;
  letter-spacing: 0.8px;
  border: none;
  cursor: pointer;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 180px;
  justify-content: center;
  text-transform: uppercase;
  animation: gradientShift 3s ease infinite;
  box-shadow: 
    0 6px 25px rgba(215, 77, 77, 0.4),
    0 0 40px rgba(215, 77, 77, 0.2);
  position: relative;
  z-index: 100;
  text-decoration: none !important;
  overflow: hidden;
  border: 2px solid rgba(212, 167, 106, 0.3);
}

.buy-toggle::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, 
    transparent, 
    rgba(255, 255, 255, 0.2), 
    transparent);
  transition: left 0.6s ease;
}

.buy-toggle:hover::before {
  left: 100%;
}

.buy-toggle:hover:not(.loading) {
  transform: translateY(-3px) scale(1.02);
  box-shadow: 
    0 10px 35px rgba(215, 77, 77, 0.6),
    0 0 60px rgba(215, 77, 77, 0.3);
  animation: none;
  border-color: rgba(212, 167, 106, 0.5);
}

.buy-toggle.active {
  background: linear-gradient(135deg, 
    var(--rebel-gold), 
    var(--rebel-red), 
    var(--rebel-gold));
  border-bottom-left-radius: 20px;
  border-bottom-right-radius: 20px;
  box-shadow: 
    0 6px 25px rgba(215, 77, 77, 0.5),
    0 0 40px rgba(215, 77, 77, 0.3);
}

.buy-toggle i.fa-rocket {
  animation: bounce 2s infinite;
}

.buy-toggle .dropdown-arrow {
  font-size: 0.8rem;
  margin-left: 5px;
  transition: transform var(--transition-base) ease;
}

.buy-toggle.active .dropdown-arrow {
  transform: rotate(180deg);
}

/* Enhanced Buy Options Dropdown */
.buy-options {
  display: none;
  position: absolute;
  top: 100%;
  right: 0;
  background: rgba(10, 10, 10, 0.98);
  backdrop-filter: blur(30px) saturate(180%);
  -webkit-backdrop-filter: blur(30px) saturate(180%);
  border: 1px solid rgba(212, 167, 106, 0.4);
  border-top: none;
  border-radius: 0 0 var(--radius-xl) var(--radius-xl);
  padding: 25px;
  width: 400px;
  max-width: 90vw;
  box-shadow: 
    0 30px 60px rgba(0, 0, 0, 0.8),
    0 0 0 1px rgba(255, 255, 255, 0.05) inset,
    0 0 100px rgba(215, 77, 77, 0.1);
  z-index: 99;
  transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-15px) scale(0.98);
  margin-top: 0;
}

.buy-dropdown.active .buy-options {
  display: block;
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
}

/* Action Groups Enhancement */
.action-group {
  margin-bottom: 25px;
  animation: fadeInUp 0.5s ease-out backwards;
}

.action-group:nth-child(1) { animation-delay: 0.1s; }
.action-group:nth-child(2) { animation-delay: 0.2s; }
.action-group:nth-child(3) { animation-delay: 0.3s; }
.action-group:nth-child(4) { animation-delay: 0.4s; }
.action-group:nth-child(5) { animation-delay: 0.5s; }

.group-title {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.9rem;
  font-weight: 800;
  color: var(--rebel-gold);
  margin-bottom: 15px;
  text-transform: uppercase;
  letter-spacing: 1px;
  padding-bottom: 8px;
  border-bottom: 2px solid rgba(212, 167, 106, 0.3);
}

.group-title i {
  font-size: 0.9rem;
  color: var(--rebel-gold);
  background: rgba(212, 167, 106, 0.1);
  padding: 6px;
  border-radius: 8px;
}

/* Enhanced Buy Option Cards */
.buy-option {
  display: flex;
  align-items: center;
  gap: 15px;
  padding: 18px 20px;
  border-radius: var(--radius-lg);
  text-decoration: none !important;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  margin-bottom: 10px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: white !important;
  position: relative;
  overflow: hidden;
}

.buy-option::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  height: 100%;
  width: 4px;
  background: currentColor;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.buy-option:hover {
  background: rgba(255, 255, 255, 0.1);
  transform: translateX(8px) translateY(-2px);
  border-color: rgba(255, 255, 255, 0.15);
  box-shadow: 
    0 8px 25px rgba(0, 0, 0, 0.3),
    0 0 0 1px rgba(255, 255, 255, 0.05);
}

.buy-option:hover::before {
  opacity: 0.8;
}

.buy-option.primary-action {
  background: linear-gradient(135deg, 
    rgba(255, 107, 53, 0.12), 
    rgba(255, 107, 53, 0.06));
  border: 1px solid rgba(255, 107, 53, 0.3);
  box-shadow: 
    0 8px 30px rgba(255, 107, 53, 0.15),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.buy-option.primary-action:hover {
  background: linear-gradient(135deg, 
    rgba(255, 107, 53, 0.2), 
    rgba(255, 107, 53, 0.1));
  border-color: #FF6B35;
  box-shadow: 
    0 12px 35px rgba(255, 107, 53, 0.25),
    inset 0 1px 0 rgba(255, 255, 255, 0.15);
}

/* ========== PLATFORM IMAGE ICONS WITH LOCAL FILES ========== */
.platform-img {
  width: 24px;
  height: 24px;
  object-fit: contain;
  border-radius: 6px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  display: block;
  filter: brightness(0.95);
}

/* SVG specific styling - BETTER FOR VECTOR FILES */
.platform-img[src*=".svg"] {
  width: 22px;
  height: 22px;
  padding: 3px;
  filter: brightness(1.1) saturate(1.1);
  background: transparent !important;
}

/* ICO specific styling */
.platform-img[src*=".ico"] {
  width: 22px;
  height: 22px;
  padding: 2px;
  filter: brightness(1.05);
  background: rgba(255, 255, 255, 0.05);
  border-radius: 8px;
}

/* PNG specific styling */
.platform-img[src*=".png"] {
  width: 24px;
  height: 24px;
  padding: 3px;
  filter: brightness(1);
  background: rgba(255, 255, 255, 0.05);
  border-radius: 8px;
}

/* Special styling for SVG icons that need color preservation */
.platform-img[src*="Pump.Fun-favicon.svg"] {
  filter: brightness(1.2) saturate(1.3);
}

.platform-img[src*="dextools-favicon.svg"] {
  filter: brightness(1.1) saturate(1.2);
}

.platform-img[src*="Gmgn.ai-favicon.svg"] {
  filter: brightness(1.15) saturate(1.25);
}

/* Icon container optimization */
.option-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.03);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: all 0.3s ease;
  border: 1px solid rgba(255, 255, 255, 0.05);
  overflow: hidden;
}

/* Special pump icon treatment */
.pump-icon {
  background: linear-gradient(135deg, 
    rgba(255, 107, 53, 0.1), 
    rgba(255, 107, 53, 0.05));
  border-color: rgba(255, 107, 53, 0.2);
  box-shadow: 0 2px 8px rgba(255, 107, 53, 0.1);
}

/* Hover effects */
.buy-option:hover .option-icon {
  transform: scale(1.08);
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.1);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.buy-option:hover .platform-img {
  transform: scale(1.2);
  filter: brightness(1.3) saturate(1.4) drop-shadow(0 2px 4px rgba(0, 0, 0, 0.2));
}

/* Enhanced Option Content */
.option-content {
  flex: 1;
  text-align: left;
}

.option-title {
  font-weight: 800;
  font-size: 1.05rem;
  color: white;
  margin-bottom: 6px;
  letter-spacing: 0.3px;
}

.option-desc {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.7);
  line-height: 1.4;
}

/* Enhanced Badges */
.option-badge {
  font-size: 0.75rem;
  font-weight: 900;
  padding: 6px 12px;
  border-radius: var(--radius-full);
  color: white !important;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  white-space: nowrap;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.option-badge.main-pool {
  background: linear-gradient(135deg, var(--rebel-red), var(--rebel-gold));
}

.option-badge.smart {
  background: linear-gradient(135deg, #9B59B6, #8E44AD);
}

.option-badge.essential {
  background: linear-gradient(135deg, #3498DB, #2980B9);
}

.option-badge.yield {
  background: linear-gradient(135deg, #27AE60, #229954);
}

.option-badge.popular {
  background: linear-gradient(135deg, #F39C12, #D68910);
}

/* ========== FIXED CONTRACT ADDRESS WRAPPING ========== */
.contract-quick {
  margin-top: 25px;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  animation: fadeInUp 0.5s ease-out 0.6s backwards;
  width: 100%;
  box-sizing: border-box;
}

.contract-value-wrapper {
  position: relative;
  width: 100%;
  margin-bottom: 12px;
}

.contract-value-quick {
  font-family: 'Courier New', 'Monaco', 'Consolas', monospace;
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.9);
  background: rgba(255, 255, 255, 0.04);
  padding: 14px 16px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-weight: 500;
  width: 100%;
  box-sizing: border-box;
  min-height: 58px;
  word-break: break-all;
  overflow-wrap: break-word;
  white-space: normal;
  line-height: 1.5;
  gap: 12px;
  position: relative;
  overflow: hidden;
}

.contract-value-quick::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, 
    transparent, 
    rgba(212, 167, 106, 0.3), 
    transparent);
}

.contract-text {
  flex: 1;
  word-break: break-all;
  overflow-wrap: break-word;
  white-space: normal;
  min-width: 0;
  display: block;
  hyphens: auto;
  -webkit-hyphens: auto;
  -ms-hyphens: auto;
  font-weight: 400;
  letter-spacing: 0.02em;
}

.contract-value-quick:hover {
  background: rgba(255, 255, 255, 0.07);
  border-color: rgba(212, 167, 106, 0.25);
  transform: translateY(-2px);
  box-shadow: 
    0 4px 12px rgba(0, 0, 0, 0.15),
    0 0 0 1px rgba(212, 167, 106, 0.1) inset;
}

.contract-value-quick i.copy-icon {
  color: var(--rebel-gold);
  font-size: 1.1rem;
  flex-shrink: 0;
  transition: all 0.3s ease;
  min-width: 24px;
  text-align: center;
}

.contract-value-quick:hover i.copy-icon {
  transform: scale(1.15) rotate(5deg);
  color: var(--rebel-red);
  text-shadow: 0 0 8px rgba(212, 167, 106, 0.3);
}

/* Copy success message with animation */
.contract-copied-message {
  position: absolute;
  top: -45px;
  left: 50%;
  transform: translateX(-50%) translateY(10px);
  background: linear-gradient(135deg, 
    rgba(39, 174, 96, 0.95), 
    rgba(46, 204, 113, 0.95));
  color: white;
  padding: 10px 16px;
  border-radius: 8px;
  font-size: 0.8rem;
  font-weight: 600;
  text-align: center;
  opacity: 0;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 10;
  pointer-events: none;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: 
    0 6px 20px rgba(39, 174, 96, 0.3),
    0 0 0 1px rgba(255, 255, 255, 0.05) inset;
  white-space: nowrap;
  max-width: 90%;
}

.contract-copied-message::before {
  content: '';
  position: absolute;
  bottom: -6px;
  left: 50%;
  transform: translateX(-50%) rotate(45deg);
  width: 12px;
  height: 12px;
  background: linear-gradient(135deg, 
    rgba(39, 174, 96, 0.95), 
    rgba(46, 204, 113, 0.95));
  border-right: 1px solid rgba(255, 255, 255, 0.2);
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.contract-copied-message.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

.contract-copied-message i {
  margin-right: 6px;
  animation: bounce 0.5s ease 2;
}

.contract-verify {
  margin-top: 12px;
  text-align: center;
}

.contract-link {
  color: var(--rebel-gold);
  font-size: 0.85rem;
  text-decoration: none;
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 15px;
  border-radius: var(--radius-md);
  background: rgba(212, 167, 106, 0.08);
  border: 1px solid rgba(212, 167, 106, 0.2);
}

.contract-link:hover {
  color: white;
  background: rgba(212, 167, 106, 0.15);
  border-color: var(--rebel-gold);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(212, 167, 106, 0.2);
}

.contract-link i {
  font-size: 0.9rem;
}

/* ========== ENHANCED MOBILE DIRECT BUY BUTTON ========== */
.mobile-direct-buy {
  width: 100%;
  max-width: 100%;
  margin: 20px 0 0 0;
  padding: 22px 32px;
  font-size: 1.2rem;
  min-height: 70px;
  display: flex;
  justify-content: center;
  align-items: center;
  border-radius: 20px;
  background: linear-gradient(135deg, 
    var(--rebel-red), 
    var(--rebel-gold), 
    var(--rebel-red));
  background-size: 200% auto;
  animation: gradientShift 3s ease infinite;
  box-shadow: 
    0 10px 40px rgba(215, 77, 77, 0.6),
    0 0 50px rgba(215, 77, 77, 0.4),
    inset 0 1px 0 rgba(255, 255, 255, 0.2);
  border: 2px solid rgba(212, 167, 106, 0.4);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
  font-weight: 800;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.mobile-direct-buy::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, 
    transparent, 
    rgba(255, 255, 255, 0.3), 
    transparent);
  transition: left 0.7s ease;
}

.mobile-direct-buy:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow: 
    0 15px 50px rgba(215, 77, 77, 0.8),
    0 0 70px rgba(215, 77, 77, 0.5),
    inset 0 1px 0 rgba(255, 255, 255, 0.3);
  animation: none;
}

.mobile-direct-buy:hover::before {
  left: 100%;
}

.mobile-direct-buy i {
  font-size: 1.3rem;
  margin-right: 12px;
  animation: bounce 2s infinite;
}

/* ========== PREMIUM MOBILE HAMBURGER MENU ========== */
@media (max-width: 768px) {
  /* Premium Mobile Toggle Button */
  .mobile-nav-toggle {
    display: flex !important;
    background: linear-gradient(135deg, 
        rgba(212, 167, 106, 0.1), 
        rgba(215, 77, 77, 0.05));
    border: 2px solid rgba(212, 167, 106, 0.4);
    border-radius: 12px;
    width: 52px;
    height: 52px;
    padding: 14px;
    cursor: pointer;
    z-index: 1002;
    align-items: center;
    justify-content: center;
    transition: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    flex-shrink: 0;
    position: relative;
    overflow: hidden;
    margin-left: auto;
  }
  
  .mobile-nav-toggle:hover {
    background: linear-gradient(135deg, 
        rgba(212, 167, 106, 0.2), 
        rgba(215, 77, 77, 0.1));
    transform: scale(1.05);
    border-color: var(--rebel-gold);
    box-shadow: 0 4px 20px rgba(212, 167, 106, 0.3);
  }
  
  /* Professional Hamburger Icon */
  .mobile-nav-toggle .hamburger {
    width: 24px;
    height: 18px;
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: transform 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
  }
  
  .mobile-nav-toggle:hover .hamburger {
    transform: scale(1.1);
  }
  
  .mobile-nav-toggle .hamburger span {
    display: block;
    height: 2px;
    width: 100%;
    background: var(--rebel-gold);
    border-radius: 2px;
    transition: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    transform-origin: center;
    position: relative;
  }
  
  /* Add subtle glow effect */
  .mobile-nav-toggle .hamburger span::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--rebel-gold);
    border-radius: 2px;
    filter: blur(1px);
    opacity: 0.5;
    transition: opacity 0.3s ease;
  }
  
  /* Hamburger line positioning */
  .mobile-nav-toggle .hamburger span:nth-child(1) {
    transform-origin: top left;
  }
  
  .mobile-nav-toggle .hamburger span:nth-child(2) {
    opacity: 1;
    transform-origin: center;
  }
  
  .mobile-nav-toggle .hamburger span:nth-child(3) {
    transform-origin: bottom left;
  }
  
  /* Hamburger to X Transformation */
  .mobile-nav-toggle.active .hamburger span:nth-child(1) {
    transform: translateY(7.5px) rotate(45deg) scaleX(1.1);
    background: var(--rebel-red);
  }
  
  .mobile-nav-toggle.active .hamburger span:nth-child(2) {
    opacity: 0;
    transform: scaleX(0);
  }
  
  .mobile-nav-toggle.active .hamburger span:nth-child(3) {
    transform: translateY(-7.5px) rotate(-45deg) scaleX(1.1);
    background: var(--rebel-red);
  }
  
  /* Active State Enhancement */
  .mobile-nav-toggle.active {
    border-color: var(--rebel-red);
    background: linear-gradient(135deg, 
        rgba(215, 77, 77, 0.15), 
        rgba(212, 167, 106, 0.1));
    box-shadow: 
        0 0 20px rgba(215, 77, 77, 0.3),
        0 0 40px rgba(212, 167, 106, 0.2);
  }
  
  .mobile-nav-toggle.active::after {
    animation: particleExplode 0.6s ease-out forwards;
  }
  
  /* Hide desktop buy button on mobile */
  .header-container > .buy-dropdown.desktop-primary-action {
    display: none !important;
  }
  
  /* Enhanced Mobile Buy Button in Menu */
  .mobile-direct-buy {
    width: 100%;
    max-width: 100%;
    margin: 20px 0 0 0;
    padding: 22px 32px;
    font-size: 1.2rem;
    min-height: 70px;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 20px;
    background: linear-gradient(135deg, 
      var(--rebel-red), 
      var(--rebel-gold), 
      var(--rebel-red));
    background-size: 200% auto;
    animation: gradientShift 3s ease infinite;
    box-shadow: 
      0 10px 40px rgba(215, 77, 77, 0.6),
      0 0 50px rgba(215, 77, 77, 0.4),
      inset 0 1px 0 rgba(255, 255, 255, 0.2);
    border: 2px solid rgba(212, 167, 106, 0.4);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    font-weight: 800;
    letter-spacing: 1px;
    text-transform: uppercase;
  }
  
  /* Mobile Navigation Menu */
  #nav-desktop {
    display: none !important; /* Hidden by default on mobile */
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: rgba(8, 8, 8, 0.98);
    backdrop-filter: blur(25px) saturate(180%);
    -webkit-backdrop-filter: blur(25px) saturate(180%);
    padding: 120px 20px 150px;
    z-index: 1001;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    flex-direction: column;
    align-items: stretch;
    margin: 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-30px) scale(0.98);
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    justify-content: flex-start;
    box-shadow: inset 0 0 100px rgba(0, 0, 0, 0.5);
  }
  
  /* Show menu when active */
  #nav-desktop.active {
    display: flex !important;
    opacity: 1 !important;
    visibility: visible !important;
    transform: translateY(0) scale(1) !important;
    animation: menuAppear 0.6s cubic-bezier(0.4, 0, 0.2, 1) forwards !important;
  }
  
  /* Premium Menu Items */
  #nav-desktop a:not(.mobile-direct-buy) {
    padding: 20px 24px;
    border-radius: 16px;
    margin-bottom: 12px;
    font-size: 1.1rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    text-decoration: none;
    color: rgba(255, 255, 255, 0.9) !important;
    min-height: 64px;
  }
  
  /* Mobile Dropdown Styling */
  .dropdown {
    width: 100%;
    margin-bottom: 12px;
  }
  
  .dropbtn {
    width: 100%;
    text-align: left;
    padding: 20px 24px;
    border-radius: 16px;
    font-size: 1.1rem;
    min-height: 64px;
    background: linear-gradient(135deg, 
        rgba(255, 215, 0, 0.08), 
        rgba(255, 152, 0, 0.04));
    border: 1px solid rgba(255, 215, 0, 0.2);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    color: #FFD700 !important;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: space-between;
  }
  
  /* Mobile Dropdown Content */
  .dropdown-content {
    display: block !important;
    position: relative !important;
    background: rgba(12, 12, 12, 0.95);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-top: none;
    border-radius: 0 0 16px 16px;
    margin: 0 0 20px 0 !important;
    padding: 0 !important;
    width: 100% !important;
    max-height: 0;
    opacity: 0;
    visibility: hidden;
    overflow: hidden;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: 
        inset 0 1px 0 rgba(255, 255, 255, 0.05),
        0 20px 40px rgba(0, 0, 0, 0.3);
  }
  
  .dropdown.active .dropdown-content {
    max-height: none !important;
    opacity: 1 !important;
    visibility: visible !important;
    padding: 15px 0 !important;
    transform: translateY(0) !important;
  }
}
  
  /* Dropdown Items */
  .dropdown-content a {
    padding: 18px 24px !important;
    margin: 6px 15px !important;
    border-radius: 12px !important;
    background: rgba(255, 255, 255, 0.03) !important;
    border-left: 3px solid transparent !important;
    font-size: 1.05rem !important;
    min-height: 60px !important;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    text-decoration: none;
    color: rgba(255, 255, 255, 0.9) !important;
  }
  
  .dropdown-content a i {
    width: 20px;
    text-align: center;
    font-size: 1rem;
    margin-right: 12px;
    transition: transform 0.3s ease;
  }
  
  .dropdown-content a:hover,
  .dropdown-content a:active {
    background: rgba(255, 255, 255, 0.08) !important;
    transform: translateX(8px);
    border-left-color: currentColor !important;
  }
  
  .dropdown-content a:hover i {
    transform: scale(1.2);
  }
  
  /* Dropdown link colors */
  .dropdown-content a.nav-community { 
    color: #2196F3 !important;
  }
  .dropdown-content a.nav-security { 
    color: #4CAF50 !important;
  }
  .dropdown-content a.nav-whitepaper { 
    color: #9C27B0 !important;
  }
  .dropdown-content a.nav-calculator { 
    color: #2ECC71 !important;
  }
  .dropdown-content a.nav-governance { 
    color: #FF9800 !important;
  }
  .dropdown-content a.nav-roadmap { 
    color: #FF5722 !important;
  }
  .dropdown-content a.nav-integrity { 
    color: #D4A76A !important;
  }
  .dropdown-content a.nav-artwork { 
    color: #E91E63 !important;
  }
  
  /* Scrollbar styling */
  #nav-desktop::-webkit-scrollbar {
    width: 6px;
  }
  
  #nav-desktop::-webkit-scrollbar-track {
    background: transparent;
  }
  
  #nav-desktop::-webkit-scrollbar-thumb {
    background: linear-gradient(to bottom, 
        var(--rebel-red), 
        var(--rebel-gold));
    border-radius: 3px;
  }
  
  #nav-desktop::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(to bottom, 
        var(--rebel-gold), 
        var(--rebel-red));
  }
}



/* Small Mobile Optimization */
@media (max-width: 480px) {
  .mobile-nav-toggle {
    width: 48px;
    height: 48px;
    padding: 12px;
  }
  
  #nav-desktop {
    padding: 100px 15px 130px;
  }
  
  #nav-desktop a:not(.mobile-direct-buy) {
    padding: 18px 20px;
    font-size: 1rem;
    min-height: 60px;
  }
  
  .mobile-direct-buy {
    padding: 18px 24px;
    font-size: 1.1rem;
    min-height: 64px;
  }
  
  /* Responsive Buy Toggle */
  .buy-toggle {
    padding: 12px 20px;
    font-size: 1rem;
    min-width: 160px;
  }
  
  .buy-options {
    width: 95vw;
    max-width: 95vw;
    right: 50%;
    transform: translateX(50%) translateY(-15px) scale(0.98);
  }
  
  .buy-dropdown.active .buy-options {
    transform: translateX(50%) translateY(0) scale(1);
  }
  
  .buy-option {
    padding: 16px 18px;
  }
  
  .option-icon {
    width: 44px;
    height: 44px;
    font-size: 1.2rem;
  }
  
  .contract-value-quick {
    font-size: 0.75rem;
    padding: 12px 14px;
    min-height: 52px;
  }
  
  .contract-text {
    font-size: 0.7rem;
    line-height: 1.4;
  }
  
  .contract-copied-message {
    font-size: 0.75rem;
    padding: 8px 12px;
    top: -40px;
  }
  
  .platform-img {
    width: 20px;
    height: 20px;
  }
  
  .option-icon {
    width: 44px;
    height: 44px;
  }
}

/* ========== TOUCH OPTIMIZATIONS ========== */
@media (max-width: 768px) and (hover: none) and (pointer: coarse) {
  #nav-desktop a,
  .dropbtn {
    min-height: 68px;
    padding-top: 22px;
    padding-bottom: 22px;
  }
  
  /* Active state feedback */
  #nav-desktop a:active,
  .dropbtn:active,
  .dropdown-content a:active {
    transform: scale(0.98) !important;
    transition: transform 0.1s ease !important;
  }
  
  /* Better tap targets */
  #nav-desktop a,
  .dropbtn {
    margin-bottom: 10px;
  }
  
  /* Prevent text selection */
  #nav-desktop,
  #nav-desktop * {
    -webkit-tap-highlight-color: transparent;
    user-select: none;
  }
  
  /* Improved scrolling */
  #nav-desktop {
    scroll-behavior: smooth;
    overscroll-behavior: contain;
  }
}

/* ========== ACCESSIBILITY IMPROVEMENTS ========== */
.dropbtn:focus-visible,
.dropdown-content a:focus-visible,
#nav-desktop a:focus-visible,
.buy-toggle:focus-visible,
.mobile-nav-toggle:focus-visible,
.brand-link:focus-visible,
.mobile-direct-buy:focus-visible {
  outline: 3px solid var(--rebel-gold);
  outline-offset: 2px;
}

/* ========== ENHANCED FOOTER STYLES ========== */
footer {
  background: rgba(5, 5, 5, 0.98);
  padding: var(--spacing-xl) var(--spacing-md) var(--spacing-lg);
  border-top: 1px solid rgba(212, 167, 106, 0.2);
  background-image: 
      linear-gradient(rgba(5, 5, 5, 0.98), rgba(5, 5, 5, 0.98)),
      linear-gradient(90deg, 
          rgba(215, 77, 77, 0.15) 0%, 
          rgba(212, 167, 106, 0.15) 50%, 
          rgba(215, 77, 77, 0.15) 100%);
  background-origin: border-box;
  background-clip: padding-box, border-box;
  position: relative;
  margin-top: auto;
}

.footer-container {
  max-width: 1400px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: var(--spacing-xl);
}

/* Footer Logo Section */
.footer-logo {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  margin-bottom: var(--spacing-lg);
}

.footer-brand-link {
  text-decoration: none;
  color: inherit;
  transition: all var(--transition-base) ease;
}

.footer-brand-link:hover {
  transform: translateY(-2px);
}

.footer-brand-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--spacing-sm);
}

.footer-brand-logo {
  height: 60px;
  width: 60px;
  border-radius: var(--radius-lg);
  object-fit: contain;
  border: 2px solid rgba(212, 167, 106, 0.3);
  padding: 4px;
  background: rgba(0, 0, 0, 0.6);
  transition: all var(--transition-base) ease;
}

.footer-brand-link:hover .footer-brand-logo {
  border-color: var(--rebel-gold);
  filter: drop-shadow(0 0 10px rgba(212, 167, 106, 0.3));
}

.footer-brand-text {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}

.footer-brand-title {
  font-size: 2rem;
  font-weight: 900;
  background: linear-gradient(90deg, 
      var(--rebel-red) 0%, 
      var(--rebel-gold) 50%, 
      var(--rebel-red) 100%);
  background-size: 200% auto;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: shimmer 4s ease-in-out infinite;
}

.footer-brand-subtitle {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.9);
  font-weight: 500;
  max-width: 500px;
  line-height: 1.4;
  text-align: center;
}

/* Enhanced Footer CTA Button */
.footer-cta {
  display: flex;
  justify-content: center;
  margin: var(--spacing-lg) 0;
}

.footer-buy-button {
  background: linear-gradient(135deg, 
    var(--rebel-red), 
    var(--rebel-gold), 
    var(--rebel-red));
  background-size: 200% auto;
  color: white !important;
  padding: 18px 36px;
  border-radius: var(--radius-full);
  font-weight: 800;
  font-size: 1.2rem;
  letter-spacing: 1px;
  border: 2px solid rgba(212, 167, 106, 0.4);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 15px;
  min-width: 250px;
  justify-content: center;
  text-transform: uppercase;
  animation: gradientShift 3s ease infinite;
  box-shadow: 
    0 8px 30px rgba(215, 77, 77, 0.5),
    0 0 50px rgba(215, 77, 77, 0.3);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

.footer-buy-button::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, 
    transparent, 
    rgba(255, 255, 255, 0.2), 
    transparent);
  transition: left 0.7s ease;
}

.footer-buy-button:hover {
  transform: translateY(-4px) scale(1.03);
  box-shadow: 
    0 15px 40px rgba(215, 77, 77, 0.7),
    0 0 70px rgba(215, 77, 77, 0.4);
  animation: none;
}

.footer-buy-button:hover::before {
  left: 100%;
}

.footer-buy-button i {
  font-size: 1.4rem;
  animation: bounce 2s infinite;
}

/* Responsive Footer Button */
@media (max-width: 768px) {
  .footer-buy-button {
    padding: 16px 28px;
    font-size: 1.1rem;
    min-width: 200px;
    width: 90%;
    max-width: 90%;
  }
}

/* Footer Grid - 4 Columns */
.footer-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--spacing-xl);
  margin: var(--spacing-xl) 0;
}

.footer-column {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-md);
}

.footer-column-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--rebel-gold);
  margin-bottom: var(--spacing-sm);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  position: relative;
  padding-bottom: 8px;
}

.footer-column-title::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 40px;
  height: 2px;
  background: linear-gradient(90deg, var(--rebel-red), var(--rebel-gold));
  border-radius: var(--radius-sm);
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-link {
  color: rgba(255, 255, 255, 0.9);
  text-decoration: none;
  font-size: 0.95rem;
  transition: all var(--transition-base) ease;
  display: flex;
  align-items: center;
  gap: 8px;
}

.footer-link:hover {
  color: var(--rebel-gold);
  transform: translateX(5px);
}

.footer-icon {
  width: 20px;
  text-align: center;
  font-size: 0.9rem;
  color: var(--rebel-gold);
}

/* Footer Bottom Section */
.footer-bottom {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--spacing-xl);
  margin: var(--spacing-xl) 0;
  padding: var(--spacing-lg) 0;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-bottom-column {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-sm);
}

.footer-bottom-title {
  font-size: 1rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: var(--spacing-sm);
}

.footer-contact {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.footer-contact-link {
  color: rgba(255, 255, 255, 0.9);
  text-decoration: none;
  font-size: 0.9rem;
  transition: all var(--transition-base) ease;
  display: flex;
  align-items: center;
  gap: 8px;
}

.footer-contact-link:hover {
  color: var(--rebel-gold);
}

.footer-contact-icon {
  color: var(--rebel-gold);
  font-size: 0.9rem;
}

/* Contract Info */
.contract-info {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.contract-address {
  font-family: 'Courier New', monospace;
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.9);
  background: rgba(255, 255, 255, 0.05);
  padding: 8px 12px;
  border-radius: var(--radius-md);
  border: 1px solid rgba(255, 255, 255, 0.1);
  word-break: break-all;
}

.contract-verify {
  margin-top: 4px;
}

/* Footer Disclaimer */
.footer-disclaimer {
  margin-top: var(--spacing-xl);
  padding-top: var(--spacing-lg);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  text-align: center;
}

.disclaimer-text {
  color: rgba(255, 255, 255, 0.9);
  font-size: 0.9rem;
  margin-bottom: var(--spacing-sm);
  line-height: 1.5;
}

.disclaimer-text strong {
  color: white;
}

.disclaimer-link {
  color: var(--rebel-gold);
  text-decoration: none;
  transition: all var(--transition-base) ease;
}

.disclaimer-link:hover {
  color: var(--rebel-red);
  text-decoration: underline;
}

.disclaimer-warning {
  color: #FF6B35;
  font-size: 0.85rem;
  margin: var(--spacing-md) 0;
  padding: 10px 15px;
  background: rgba(255, 107, 53, 0.1);
  border-radius: var(--radius-md);
  border: 1px solid rgba(255, 107, 53, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.disclaimer-icon {
  font-size: 0.9rem;
}

.copyright {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.9rem;
  margin-top: var(--spacing-lg);
}

/* ========== BACK TO TOP BUTTON ========== */
.back-to-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 50px;
  height: 50px;
  border-radius: var(--radius-full);
  background: linear-gradient(135deg, var(--rebel-red), var(--rebel-gold));
  color: white;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
  transition: all var(--transition-base) ease;
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px);
  z-index: var(--z-max);
  -webkit-tap-highlight-color: transparent;
}

.back-to-top.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.back-to-top:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 25px rgba(215, 77, 77, 0.4);
}

/* ========== FOOTER RESPONSIVENESS ========== */
@media (max-width: 1024px) {
  .footer-grid {
      grid-template-columns: repeat(2, 1fr);
      gap: var(--spacing-lg);
  }
  
  .footer-bottom {
      grid-template-columns: 1fr;
      gap: var(--spacing-lg);
  }
}

@media (max-width: 768px) {
  footer {
      padding: var(--spacing-lg) var(--spacing-sm) var(--spacing-md);
  }
  
  .footer-grid {
      grid-template-columns: 1fr;
      gap: var(--spacing-xl);
  }
  
  .footer-buy-button {
      padding: 14px 24px;
      font-size: 1rem;
      min-width: auto;
      width: 100%;
      max-width: 300px;
  }
  
  .footer-brand-title {
      font-size: 1.8rem;
  }
  
  .footer-brand-subtitle {
      font-size: 0.85rem;
      padding: 0 var(--spacing-sm);
  }
  
  .footer-column {
      text-align: center;
  }
  
  .footer-column-title::after {
      left: 50%;
      transform: translateX(-50%);
  }
  
  .footer-link {
      justify-content: center;
  }
  
  .footer-contact-link {
      justify-content: center;
  }
  
  .contract-info {
      text-align: center;
  }
  
  .contract-link {
      justify-content: center;
  }
  
  .disclaimer-warning {
      flex-direction: column;
      text-align: center;
      gap: 5px;
      padding: 12px;
  }
  
  .back-to-top {
      bottom: 20px;
      right: 20px;
      width: 45px;
      height: 45px;
      font-size: 1.1rem;
  }
}

@media (max-width: 480px) {
  .footer-brand-title {
    font-size: 1.6rem;
  }
  
  .footer-brand-logo {
    height: 50px;
    width: 50px;
  }
  
  .footer-column-title {
    font-size: 1rem;
  }
  
  .footer-link {
    font-size: 0.9rem;
  }
}

/* ========== SEPARATE DESKTOP/MOBILE BUY BUTTONS ========== */
/* Desktop: Show desktop button, hide mobile button */
@media (min-width: 769px) {
  .buy-dropdown.desktop-only {
    display: block !important;
  }
  
  .mobile-direct-buy {
    display: none !important;
  }
}

/* Mobile: Show mobile button (in menu), hide desktop button */
@media (max-width: 768px) {
  /* Hide desktop buy button in header */
  .header-container > .buy-dropdown.desktop-only {
    display: none !important;
  }
  
  /* Show mobile buy button inside menu */
  .mobile-direct-buy {
    display: flex !important;
  }
  
  /* Fix clickability */
  #nav-desktop a,
  #nav-desktop .dropbtn,
  .dropdown-content a {
    pointer-events: auto !important;
    cursor: pointer !important;
  }
}
/* ========== DYNAMIC SUBTITLE STYLES ========== */
.brand-subtitle {
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

/* Subtle background shimmer effect */
.brand-subtitle::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(
        to bottom right,
        rgba(255, 255, 255, 0.1) 0%,
        rgba(255, 255, 255, 0) 50%,
        rgba(255, 255, 255, 0.1) 100%
    );
    transform: rotate(30deg);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.brand-subtitle:hover::after {
    opacity: 0.3;
    animation: shimmer 2s ease infinite;
}

/* Page-specific color variations */
.brand-subtitle[data-page="index"] {
    color: var(--rebel-gold);
    border-color: rgba(212, 167, 106, 0.4);
    background: linear-gradient(135deg, 
        rgba(212, 167, 106, 0.15), 
        rgba(212, 167, 106, 0.08));
}

.brand-subtitle[data-page="trade"] {
    color: #FF6B35;
    border-color: rgba(255, 107, 53, 0.4);
    background: linear-gradient(135deg, 
        rgba(255, 107, 53, 0.15), 
        rgba(255, 107, 53, 0.08));
}

.brand-subtitle[data-page="epoch-rewards"] {
    color: #9C27B0;
    border-color: rgba(156, 39, 176, 0.4);
    background: linear-gradient(135deg, 
        rgba(156, 39, 176, 0.15), 
        rgba(156, 39, 176, 0.08));
}

.brand-subtitle[data-page="tokenomics"] {
    color: #00BCD4;
    border-color: rgba(0, 188, 212, 0.4);
    background: linear-gradient(135deg, 
        rgba(0, 188, 212, 0.15), 
        rgba(0, 188, 212, 0.08));
}

.brand-subtitle[data-page="community"] {
    color: #2196F3;
    border-color: rgba(33, 150, 243, 0.4);
    background: linear-gradient(135deg, 
        rgba(33, 150, 243, 0.15), 
        rgba(33, 150, 243, 0.08));
}

.brand-subtitle[data-page="security"] {
    color: #4CAF50;
    border-color: rgba(76, 175, 80, 0.4);
    background: linear-gradient(135deg, 
        rgba(76, 175, 80, 0.15), 
        rgba(76, 175, 80, 0.08));
}

.brand-subtitle[data-page="whitepaper"] {
    color: #9C27B0;
    border-color: rgba(156, 39, 176, 0.4);
    background: linear-gradient(135deg, 
        rgba(156, 39, 176, 0.15), 
        rgba(156, 39, 176, 0.08));
}

.brand-subtitle[data-page="calculator"] {
    color: #2ECC71;
    border-color: rgba(46, 204, 113, 0.4);
    background: linear-gradient(135deg, 
        rgba(46, 204, 113, 0.15), 
        rgba(46, 204, 113, 0.08));
}

.brand-subtitle[data-page="governance"] {
    color: #FF9800;
    border-color: rgba(255, 152, 0, 0.4);
    background: linear-gradient(135deg, 
        rgba(255, 152, 0, 0.15), 
        rgba(255, 152, 0, 0.08));
}

.brand-subtitle[data-page="roadmap"] {
    color: #FF5722;
    border-color: rgba(255, 87, 34, 0.4);
    background: linear-gradient(135deg, 
        rgba(255, 87, 34, 0.15), 
        rgba(255, 87, 34, 0.08));
}

.brand-subtitle[data-page="integrity"] {
    color: #D4A76A;
    border-color: rgba(212, 167, 106, 0.4);
    background: linear-gradient(135deg, 
        rgba(212, 167, 106, 0.15), 
        rgba(212, 167, 106, 0.08));
}

.brand-subtitle[data-page="artwork"] {
    color: #E91E63;
    border-color: rgba(233, 30, 99, 0.4);
    background: linear-gradient(135deg, 
        rgba(233, 30, 99, 0.15), 
        rgba(233, 30, 99, 0.08));
}

/* Hover effects for each page type */
.brand-subtitle[data-page="index"]:hover {
    color: #FFD700;
    border-color: rgba(255, 215, 0, 0.6);
    box-shadow: 0 4px 15px rgba(212, 167, 106, 0.25);
    transform: translateY(-1px);
}

.brand-subtitle[data-page="trade"]:hover {
    color: #FF4500;
    border-color: rgba(255, 69, 0, 0.6);
    box-shadow: 0 4px 15px rgba(255, 107, 53, 0.25);
    transform: translateY(-1px);
}

.brand-subtitle[data-page="epoch-rewards"]:hover {
    color: #8A2BE2;
    border-color: rgba(138, 43, 226, 0.6);
    box-shadow: 0 4px 15px rgba(156, 39, 176, 0.25);
    transform: translateY(-1px);
}

.brand-subtitle[data-page="tokenomics"]:hover {
    color: #00CED1;
    border-color: rgba(0, 206, 209, 0.6);
    box-shadow: 0 4px 15px rgba(0, 188, 212, 0.25);
    transform: translateY(-1px);
}

/* Animation for subtitle changes */
@keyframes subtitleChange {
    0% {
        opacity: 0;
        transform: translateY(5px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

.brand-subtitle.changing {
    animation: subtitleChange 0.3s ease forwards;
}

/* Enhanced subtitle for mobile */
@media (max-width: 768px) {
    .brand-subtitle {
        font-size: 0.7rem;
        padding: 2px 8px;
        margin-top: 1px;
    }
}

/* Large desktop enhancement */
@media (min-width: 1400px) {
    .brand-subtitle {
        font-size: 0.85rem;
        padding: 4px 12px;
    }
}
