/* MOBILE NAVBAR FIX - Critical Overrides */

/* Force navbar visibility on all screen sizes */
.nav-premium {
  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
  right: 0 !important;
  z-index: 10000 !important;
  background: rgba(0, 0, 0, 0.95) !important;
  backdrop-filter: blur(16px) !important;
  -webkit-backdrop-filter: blur(16px) !important;
  border-bottom: 1px solid #2a2a2a !important;
  display: block !important;
}

.nav-container {
  max-width: 1400px !important;
  margin: 0 auto !important;
  padding: 1rem 1.5rem !important;
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
}

.nav-logo {
  font-family: 'Space Grotesk', sans-serif !important;
  font-size: 1.5rem !important;
  font-weight: 800 !important;
  color: #ffffff !important;
  text-decoration: none !important;
  display: block !important;
  z-index: 10001 !important;
}

/* Desktop Nav Links */
@media (min-width: 969px) {
  .nav-links {
    display: flex !important;
    align-items: center !important;
    gap: 2rem !important;
    list-style: none !important;
  }

  .nav-toggle {
    display: none !important;
  }
}

/* Mobile Nav Links */
@media (max-width: 968px) {
  .nav-logo {
    font-size: 1.25rem !important;
    display: flex !important;
    align-items: center !important;
    gap: 0.4rem !important;
  }

  .nav-toggle {
    display: block !important;
    background: none !important;
    border: none !important;
    color: #ffffff !important;
    font-size: 2rem !important;
    cursor: pointer !important;
    padding: 0.5rem !important;
    line-height: 1 !important;
    z-index: 10001 !important;
    -webkit-tap-highlight-color: transparent !important;
  }

  .nav-links {
    position: fixed !important;
    top: 73px !important;
    left: 0 !important;
    right: 0 !important;
    background: rgba(0, 0, 0, 0.98) !important;
    backdrop-filter: blur(20px) !important;
    -webkit-backdrop-filter: blur(20px) !important;
    flex-direction: column !important;
    padding: 2rem 1.5rem !important;
    gap: 1.5rem !important;
    list-style: none !important;
    transform: translateY(-150%) !important;
    opacity: 0 !important;
    visibility: hidden !important;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1) !important;
    border-bottom: 1px solid #2a2a2a !important;
    z-index: 9999 !important;
    max-height: calc(100vh - 73px) !important;
    overflow-y: auto !important;
  }

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

  .nav-link {
    color: #a0a0a0 !important;
    text-decoration: none !important;
    font-weight: 500 !important;
    font-size: 1.125rem !important;
    display: block !important;
    padding: 0.5rem 0 !important;
    transition: color 0.2s !important;
  }

  .nav-link:hover {
    color: #ffffff !important;
  }

  .nav-btn {
    width: 100% !important;
    padding: 1rem 1.5rem !important;
    background: #00ff88 !important;
    color: #000000 !important;
    font-weight: 700 !important;
    border-radius: 8px !important;
    text-decoration: none !important;
    font-size: 1rem !important;
    text-align: center !important;
    display: block !important;
    border: none !important;
  }
}

/* Ensure body has top padding for fixed navbar */
body {
  padding-top: 73px !important;
}

.hero-money,
.section {
  padding-top: 2rem !important;
}

/* Modern Footer Styles */
footer a:hover {
  color: #ffffff !important;
}

footer a[href^="mailto"]:hover {
  color: #00ff88 !important;
}

/* Hide old flash messages styling if present */
.flash-messages {
  position: fixed;
  top: 90px;
  right: 1.5rem;
  z-index: 9998;
  max-width: 400px;
}

.flash-message {
  background: rgba(0, 0, 0, 0.95);
  backdrop-filter: blur(12px);
  border: 1px solid #2a2a2a;
  border-left: 3px solid #00ff88;
  border-radius: 8px;
  padding: 1rem 1.5rem;
  margin-bottom: 1rem;
  color: #ffffff;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
}

.flash-message.flash-error {
  border-left-color: #ff4444;
}

.flash-close {
  background: none;
  border: none;
  color: #a0a0a0;
  font-size: 1.5rem;
  cursor: pointer;
  float: right;
  line-height: 1;
  margin-left: 1rem;
}

/* Mobile Footer Optimization */
@media (max-width: 768px) {
  footer {
    padding: 3rem 1rem 2rem !important;
  }

  footer a[href*="x.com"] img,
  footer a[href*="discord"] img {
    height: 0.875rem !important;
  }

  footer>div>div:last-child {
    flex-wrap: wrap;
    gap: 1.5rem !important;
  }
}