.header {
  max-width: 1000px;
  margin: auto auto auto;
  display: flex;
  padding: 15px;
  background: rgb(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  border: 1px solid rgb(0, 0, 0, 0.5);
  border-radius: 10px;
  box-sizing: border-box;
  position: relative;
  z-index: 2;
  transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}
.header:hover {
  background: rgb(0, 0, 0, 0.3);
  border-color: #00ff88;
}
.header:hover .header-divider {
  background: #00ff88;
  width: 60%;
}
.header-divider {
  width: 70%;
  height: 1px;
  background: rgb(0, 0, 0, 0.5);
  margin: 5px auto;
  transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.contract-address {
  font-family: 'FredokaOne', sans-serif;
  font-size: 12px;
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  letter-spacing: 2px;
  text-shadow: 0px 0px 3px rgba(0, 0, 0, 0.9);
}
.copy-icon {
  cursor: pointer;
  transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}
.copy-icon:hover {
  color: #00ff88;
}

.listed-section {
  font-family: 'FredokaOne', sans-serif;
  position: absolute;
  letter-spacing: 1px;
  right: 25px;
  top: 50%;
  transform: translateY(-50%);
}
.listed-text {
  color: #ffffff;
  font-family: 'FredokaOne', sans-serif;
  font-size: 20px;
  padding: 10px 20px;
  letter-spacing: 2px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 1px;
  border-radius: 10px;
  text-shadow: 0px 0px 3px rgba(0, 0, 0, 0.9);
  border: 1px solid rgb(0, 0, 0, 0.5);
  transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}
.listed-text::before {
  content: '';
  position: absolute;
  top: -2px;
  right: -2px;
  bottom: -2px;
  left: -2px;
  z-index: -1;
  border-radius: 10px;
  background-size: 300% 300%;
  background-image: linear-gradient(  
    45deg,  
    #9945FF,  /* Purple */
    #8752F3,  /* Dark Purple */
    #5497D5,  /* Blue */
    #19FB9B   /* Green */
  );
  animation: solanaGradient 4s linear infinite;
}
.listed-text:hover {
  transform: translateY(-2px) scale(1);
  border-color: #00ff88;
}
.listed-text:after {
  content: '▼';
  font-size: 10px;
  transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}
.listed-text.menu-open:after {
  transform: rotate(180deg);
}

.exchange-icons {
  position: absolute;
  top: calc(100% + 30px);
  right: -25px;
  backdrop-filter: blur(10px);
  background: rgb(0, 0, 0, 0.5);
  border-radius: 10px;
  flex-direction: column;
  min-width: auto;
  max-width: 200px;
  max-height: 400px;
  overflow-y: auto;
  z-index: 5;
  border: 1px solid rgb(0, 0, 0, 0.5);
  transform-origin: top center;
  transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
  transform: scaleY(0);
  opacity: 0;
  pointer-events: none;
  display: flex;
  scrollbar-width: thin;
  scrollbar-color: rgba(0, 255, 136, 0.3) rgba(255, 255, 255, 0.1);
}
.exchange-icons:hover {
  background: rgb(0, 0, 0, 0.5);
  border-color: #00ff88;
}
.exchange-icons.show {
  transform: scaleY(1);
  opacity: 1;
  pointer-events: all;
}
.exchange-icons a {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 8px;
  transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
  text-decoration: none;
  color: white;
}
.exchange-icons a:hover {
  background: rgba(255, 255, 255, 0.1);
}
.exchange-icons a:hover .exchange-logo {
  border-color: #00ff88;
}
.exchange-icons.show {
  display: flex;
}
.exchange-logo {
  width: 24px;
  height: 24px;
  border-radius: 10px;
  border: 2px solid rgb(0, 0, 0, 0.5);
  padding: 2px;
  background: rgba(255, 255, 255, 0.1);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: pointer;
  position: relative;
  pointer-events: all;
  display: inline-block;
  z-index: 2;
}

.logo-group {
  display: flex;
  color: #ffffff;
  font-family: 'FredokaOne', sans-serif;
  letter-spacing: 2px;
  flex-direction: column;
  align-items: center;
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
  text-shadow: 0px 0px 3px rgba(0, 0, 0, 0.9);
}
.logo-group:hover {
  filter: drop-shadow(0 0 10px rgba(0, 255, 136, 0.9));
}
.logo-text {
  font-size: 50px;
  animation: spin 3s infinite linear;
  line-height: 40px;
}
.logo-text-small {
  font-size: 15px;
}
.header-link {
  text-decoration: none;
  color: #ffffff;
  cursor: pointer;
  display: block;
}

.social-links {
  display: flex;
  gap: 10px;
}
.social-link {
  color: white;
  width: 15px;
  height: 15px; 
  font-size: 1rem;
  transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
  padding: 10px;
  border-radius: 10px;
  background: rgb(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  border: 1px solid rgb(0, 0, 0, 0.5);
  text-shadow: 0px 0px 3px rgba(0, 0, 0, 0.9);
}
.social-link:hover {
  background: rgb(0, 0, 0, 0.3);
  transform: translateY(-2px) scale(1);
  border-color: #00ff88;
}
.social-link i.fa-heart {
  color: red; 
}

.mobile-controls {
  display: none;
  position: absolute;
  left: 10px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 1000;
  gap: 5px;
  align-items: center;
}

.hamburger-menu {
  text-shadow: 0px 0px 3px rgba(0, 0, 0, 0.9);
  background: none;
  border: none;
  color: white;
  font-size: 20px;
  padding: 10px;
  cursor: pointer;
}

.mobile-heart-link {
  color: red;
  width: 10px;
  height: 10px; 
  font-size: 1rem;
  transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
  padding: 10px;
  border-radius: 10px;
  background: rgb(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  border: 1px solid rgb(0, 0, 0, 0.5);
  text-shadow: 0px 0px 3px rgba(0, 0, 0, 0.9);
}
.mobile-heart-link:hover {
  background: rgb(0, 0, 0, 0.3);
  transform: translateY(-2px) scale(1);
  border-color: #00ff88;
}
.hamburger-menu:hover {
  text-shadow: 0px 0px 3px rgba(0, 255, 136, 0.9);
}
.mobile-menu {
  position: fixed;
  top: 80px;
  left: 0;
  backdrop-filter: blur(10px);
  background: rgb(0, 0, 0, 0.5);
  border-radius: 10px;
  flex-direction: column;
  min-width: auto;
  max-width: 220px;
  max-height: 400px;
  overflow-y: auto;
  z-index: 998;
  border: 1px solid rgb(0, 255, 136, 0.9);
  transform-origin: top center;
  transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
  transform: scaleY(0);
  opacity: 0;
  pointer-events: none;
  display: flex;
}
.mobile-menu.show {
  transform: scaleY(1);
  opacity: 1;
  pointer-events: all;
}
.mobile-menu-content {
  padding: 5px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}

@media (max-width: 768px) {
  .mobile-controls {
    display: flex !important;
  }
  .mobile-menu.show {
    display: block;
  }
  .left-side {
    display: none;
  }
  .mobile-menu .social-links {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1px;
    padding: 15px;
  }
  .mobile-menu .social-links .social-row {
    display: flex;
    flex-direction: row;
    gap: 15px;
    justify-content: center;
  }
  .mobile-menu .social-links .contract-address {
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px solid rgba(0, 255, 136, 0.9);
    width: 100%;
    text-align: center;
  }
  .mobile-menu .contract-address {
    color: white;
    font-size: 14px;
  }
  .header {
    padding: 15px 10px;
    min-height: 70px;
  }
  .logo-text {
    font-size: 30px;
    line-height: 30px;
  }
  .logo-text-small {
    font-size: 12px;
  }
  .social-link {
    width: 12px;
    height: 12px;
    font-size: 0.8rem;
    padding: 8px;
  }
  .listed-section {
    right: 15px;
  }
  .listed-text {
    font-size: 13px;
    padding: 8px 15px;
  }
  .listed-text:after {
    font-size: 6px;
  }
  .exchange-logo {
    width: 20px;
    height: 20px;
  }
  .header-divider {
    display: none;
  }
  .exchange-icons {
    right: -15px;
    border: 1px solid rgb(0, 255, 136, 0.9);
  }
}

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