/* LOGO */
.logo {
  display: flex;
  align-items: center;
  text-decoration: none;
  color: white;
}

/* NAV LIST */
nav ul {
  display: flex;
  list-style: none;
  gap: 25px;
}

nav ul li a {
  text-decoration: none;
  color: white;
  font-weight: 500;
}

/* HAMBURGER */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
}

.hamburger span {
  width: 28px;
  height: 3px;
  background: white;
}

/* MOBILE MENU */
#nav-menu {
  display: flex;
}

.close-nav {
  display: none;
}

.header-container {
  display: flex;
  align-items: center;
  justify-content: space-between; /* keep items far apart */
  position: relative; /* allows absolute positioning if needed */
}
.show {
  display: none;
}

/* MOBILE STYLES */
@media (max-width: 850px) {
  nav {
    position: fixed;
    top: 0;
    left: -100%;
    width: 260px;
    height: 100vh;
    background: #15151f;
    padding: 80px 25px;
    transition: 0.4s ease;
    flex-direction: column;
    overflow-y: auto;
    z-index: 1000; /* below hamburger */

    display: flex;
    align-items: flex-start;
  }

  .buy-sell-widget1{
      overflow: auto;
      margin-right: 2rem;
    }

  nav.open {
    left: 0; /* slide in from the left */
  }
  .show {
    display: block;
  }

  .close-nav {
    display: block;
    position: absolute;
    top: 20px;
    right: 20px; /* keep close button on right for convenience */
    background: none;
    color: white;
    border: none;
    font-size: 28px;
    cursor: pointer;
  }

  .hamburger {
    display: flex;
    margin-left: auto; /* pushes it all the way to the right */
    z-index: 1001; /* stays above sidebar */
  }

  nav ul {
    flex-direction: column;
    gap: 20px;
  }
  nav ul li a {
    display: block;
    text-align: left; /* left-align link text */
    width: 100%;
  }

  .submenu {
    display: none;
    flex-direction: column;
    margin-top: 10px;
    padding-left: 15px;
  }

  .submenu li a {
    text-align: left; /* submenu items also left-aligned */
  }
  .submenu li a {
    text-align: left;
  }

  .has-submenu.open .submenu {
    display: flex;
  }

  .hamburger {
    display: flex;
  }

  .mobile-login {
    margin-top: 30px;
  }

  .desktop-login {
    display: none;
  }
  .about1 {
    max-width: 100%;
  }
}

/* DESKTOP DROPDOWN */
@media (min-width: 851px) {
  .has-submenu {
    position: relative;
  }

  .submenu {
    position: absolute;
    background: #1f1f2e;
    top: 30px;
    padding: 12px 0;
    width: 180px;
    display: none;
    flex-direction: column;
    gap: 10px;
    text-align: start;
  }

  .has-submenu:hover .submenu {
    display: flex;
  }
}

/* LOGIN BUTTON */
.download-btn {
  background: #0059f7;
  padding: 8px 15px;
  border-radius: 5px;
  text-decoration: none;
  color: white;
  font-weight: 600;
}

.terms-wrapper {
  width: 100%;
  display: flex;
  gap: 2rem;
  padding: 2rem;
  color: rgba(255, 255, 255, 0.85);
}

.terms-left, .terms-right {
  flex: 1;
  min-width: 0;
}

/* .terms-left{
  width: 50%;
}

.terms-right{
  width: 50%;
} */

/* optional: stack on mobile */
@media (max-width: 900px) {
  .terms-wrapper {
    flex-direction: column;
  }
}


