.header {
  display: flex;
  align-items: center;
  justify-content: center;
  position: fixed;
  top: 0;
  width: 100%; 
  padding: 5px;
  transform-style: preserve-3d;
  background:var(--main-container-bg);
  border-bottom: var(--main-border);
  z-index: 100;
  box-shadow: 
    inset 0 0 5px #000,
    0 2px 1px -1px #C1BEB5 inset,
    0 -2px 1px -1px #FCFCFA inset,
    1px 0 0.5px -0.5px #DFDFD7 inset,
    -2.5px 0 1px -1px #D4CDC5 inset;
}
.header::before {
  position: absolute;
  content: "";
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(to bottom, #5eb924, #3b7f18);
  border-radius: inherit;
  box-shadow:
    0 0 0 1px #164409,
    0 10px 10px rgba(0, 0, 0, 0.6), 
    inset 0 1px 2px rgba(255, 255, 255, 0.15),
    inset 0 -2px 6px rgba(0, 0, 0, 0.3);
  transform: translate3d(0, .55em, -1em);
}

.header-limit {
  width: 1200px;
  display: column;
  align-items: center;
  justify-content: space-between;
  position: relative;
  box-shadow: 0 2px 0.75px -0.8px #164409 inset, 0 -2.5px 0.75px -0.8px #164409 inset;
}
.header-main {
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
  padding: 10px;
}

.social-links {
  display: inline-flex;
  gap: 15px;
}
.socials-wrapper {
  width: 100%;
  overflow: hidden;
  max-height: 0;
  transition: all 0.1s ease;
  display: flex;
  justify-content: center;
  align-items: center;
  background: var(--controls-bg);
  box-shadow: var(--controls-shadow);                 
  border-radius: var(--mini-screen-border-radius);
}
.button3d.social-link {
  width: 45px;
  height: 45px;
  padding: 0;
  align-content: center;
  justify-content: center;
  display: flex;
  align-items: center;
  text-decoration: none;
  font-size: 1rem;
}
.social-link i.fa-heart {
  color: rgb(206, 44, 44);
} 

.logo-text {
  white-space: nowrap;
  font-family: "Montserrat", sans-serif;
  font-weight: 800;
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  color: var(--main-text-color);
  font-size: 50px;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  text-shadow: 0 0 1px #78d739, 0 0 2px #a4f67c;
}
.logo-text span {
  color: #d4ffc2;
  letter-spacing: 1px;
  text-shadow: 0px 0.5px 0.75px #164409,
      0.5px 0.5px 0.75px #164409,
      0.5px 0px 0.75px #164409,
      0.5px -0.5px 0.75px #164409,
      0 -0.5px 0.75px #164409,
      -0.5px -0.5px 0.75px #164409,
      -0.5px 0.5px 0.75px #164409,
      -0.5px 0 0.75px #164409;
}

.buy-button.buy-active {
  transform: translate(0em, 0.25em);
}
.buy-button.buy-active::before {
  box-shadow: 0 0 0 1px #164409, 0 0 #e2ffe3;
  transform: translate3d(0, 0, -1em);
}
.exchange-links {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 15px;
  flex-wrap: wrap;
}
.exchanges-wrapper {
  width: 100%;
  overflow: hidden;
  max-height: 0;
  transition: all 0.1s ease;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  background: var(--controls-bg);
  box-shadow: var(--controls-shadow);                 
  border-radius: var(--mini-screen-border-radius);
  gap: 15px;
}
.button3d.exchange-logo {
  width: 45px;
  height: 45px;
  padding: 0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: visible;
}
.exchange-name {
  margin-top: 5px;
  font-size: 0.6rem;
  text-align: center;
  text-transform: uppercase;
  font-family: sans-serif;
  padding: 0px 5px;
  color: var(--main-text-color);
  border-radius: var(--mini-screen-border-radius);
  border: var(--main-border);
}

.menu-contract-address {
  font-size: 1rem;
  color: var(--main-text-color);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  border: var(--main-border);
  font-family: sans-serif;
  padding: 0px 8px;
  border-radius: 2px;
}
.copy-icon {
  cursor: pointer;
  transition: all 0.3s ease;
}
.copy-icon:hover {
  color: #339c16;
}

.header.expanded .socials-wrapper,
.header.buy-expanded .exchanges-wrapper {
  max-height: 200px;
  padding-top: 20px;
  padding-bottom: 15px;
}

@media (max-width: 768px) {
  .header::before {
    transform: translate3d(0, .35em, -1em);
  }
  .header-limit {
    max-width: 99%;
  }
  .header-main {
    padding: 6px;
  }
  .social-links {
    gap: 10px;
  }
  .logo-text {
    font-size: 1.7rem;
  }
  .button3d.exchange-logo,
  .button3d.social-link {
    font-size: var(--mobile-font-size);
    width: 30px;
    height: 30px;
  }
  .exchange-links {
    gap: 10px;
  }
  .exchange-name {
    font-size: 0.5rem;
  }
  .header.expanded .socials-wrapper,
  .header.buy-expanded .exchanges-wrapper {
    padding-top: 15px;
    padding-bottom: 10px;
  }
}