/* ================= WELCOME POPUP ================= */
#welcome-popup {
  position: fixed;
  bottom: 28px;
  right: 28px;
  display: flex;
  align-items: center;
  gap: 14px;
  background: #fff;
  border: 1.5px solid #e8e8e8;
  border-radius: 16px;
  padding: 16px 22px;
  box-shadow: 0 12px 40px rgba(0,0,0,0.12);
  z-index: 99999;
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.35s ease, transform 0.35s ease;
  max-width: 280px;
}

#welcome-popup.welcome-show {
  opacity: 1;
  transform: translateY(0);
}

.welcome-icon {
  font-size: 1.6rem;
  flex-shrink: 0;
}

.welcome-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.welcome-text strong {
  font-size: 0.95rem;
  font-weight: 700;
  color: #111;
}

.welcome-text span {
  font-size: 0.78rem;
  color: #888;
}

@media (max-width: 480px) {
  #welcome-popup {
    bottom: 16px;
    right: 16px;
    left: 16px;
    max-width: none;
  }
}

/* ================= NAVBAR ENHANCEMENTS ================= */

header nav {
  margin-left: auto;
}

nav a.authButton {
  background: #000;
  color: #fff !important;
  padding: 8px 20px;
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 600;
  transition: background 0.2s ease;
}

nav a.authButton:hover {
  background: #333 !important;
  color: #fff !important;
  opacity: 1;
}

nav a:not(.authButton) {
  position: relative;
}

nav a:not(.authButton)::after {
  content: '';
  position: absolute;
  bottom: -3px;
  left: 0;
  width: 0;
  height: 1.5px;
  background: #000;
  transition: width 0.2s ease;
}

nav a:not(.authButton):hover::after {
  width: 100%;
}

@media (max-width: 768px) {
  nav a:not(.authButton)::after {
    display: none;
  }

  nav.open a.authButton {
    background: #000;
    color: #fff !important;
    text-align: center;
    border-radius: 8px;
    padding: 10px 18px;
    margin-top: 4px;
  }
}

/* ================= HAMBURGER MENU ================= */

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
  z-index: 1001;
}

.hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: #000;
  border-radius: 2px;
  transition: transform 0.25s ease, opacity 0.25s ease;
}

@media (max-width: 768px) {
  .hamburger {
    display: flex;
  }

  nav.open {
    display: flex !important;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #fff;
    border-bottom: 1px solid #e5e5e5;
    padding: 16px 24px;
    gap: 4px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
    z-index: 1000;
  }

  nav.open a {
    margin-left: 0 !important;
    font-size: 0.95rem;
    padding: 10px 0;
    border-bottom: 1px solid #f2f2f2;
    color: #333;
  }

  nav.open a:last-child {
    border-bottom: none;
  }

  .hamburger.open span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
  }

  .hamburger.open span:nth-child(2) {
    opacity: 0;
    transform: scaleX(0);
  }

  .hamburger.open span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
  }
}
