.site-header {
  background-color: #0e0f0fe3;
  box-shadow: 0 2px 8px rgba(0,0,0,0.4);
  position: sticky;
  top: 0;
  z-index: 50;
}
.header-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 1rem 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.logo-img {
  height: 48px;
  width: auto;
}
.nav-desktop {
  display: none;
  gap: 1.5rem;
  align-items: center;
}
.nav-desktop a {
  color: var(--muted);
  text-decoration: none;
  transition: color 0.2s;
}
.nav-desktop a:hover {
  color: var(--accent);
}
.dropdown {
  position: relative;
}
.dropdown-btn {
  background: none;
  border: none;
  color: var(--muted);
  cursor: pointer;
  font: inherit;
}
.dropdown-btn:hover {
  color: var(--accent);
}
.dropdown-menu {
  position: absolute;
  top: 100%;
  right: 0;                  /* align to the right of the button */
  min-width: 240px;
  max-width: 90vw;           /* never exceed viewport width */
  background: var(--bg-darker);
  margin-top: 0.25rem;
  padding: 0.5rem 0;
  border-radius: 0.375rem;
  box-shadow: 0 4px 12px rgba(0,0,0,0.4);
  display: none;
  z-index: 9999;
  overflow-wrap: break-word; /* wrap long text */
}
.dropdown:hover .dropdown-menu {
  display: block;
}
.dropdown-menu a {
  display: block;
  padding: 0.5rem 1rem;
  color: var(--text);
  text-decoration: none;
}
.dropdown-menu a:hover {
  color: var(--accent);
}
.nav-mobile-toggle {
  display: none;
}
.nav-desktop {
  display: flex;
}
@media (max-width: 880px) {
  .nav-desktop {
    display: none;
  }
  .nav-mobile-toggle {
    display: block;
  }
}
.nav-mobile-toggle button {
  background: none;
  border: none;
  color: var(--muted);
  cursor: pointer;
}
.nav-mobile-toggle button:hover {
  color: var(--accent);
}
.icon {
  width: 28px;
  height: 28px;
  stroke: currentColor;
}
.nav-mobile {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  width: 100%;
  background: var(--bg-darker);
  padding: 1rem 1.5rem 1.5rem;
  z-index: 9999;
}
.nav-mobile.show {
  display: block;
}
.nav-mobile a {
  display: block;
  color: var(--muted);
  padding: 0.75rem 0;
  text-decoration: none;
}
.nav-mobile a:hover {
  color: var(--accent);
}
.nav-desktop #sign-in {
  background-color: #facc15;
  color: #1e293b;
  padding: 0.5rem 1rem;
  border-radius: 0.375rem;
  font-weight: 600;
  text-decoration: none;
  transition: background-color 0.2s, color 0.2s;
}
.nav-desktop #sign-in:hover {
  background-color: #eab308;
  color: #1e293b;
}
.nav-desktop a:not(#sign-in) {
  color: var(--muted); 
}
.nav-desktop a#get-started {
  background-color: var(--accent);
  color: #fff !important;      
  font-weight: bold;
  padding: 0.5rem 1rem;
  border-radius: 0.375rem;
  text-decoration: none;  
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.nav-desktop a#get-started:hover {
  transform: scale(1.05);
  box-shadow: 0 4px 12px rgba(0,0,0,0.4);
}
.banner {
  width: 100%;
  padding: 15px 20px;
  text-align: center;
  font-weight: bold;
  position: fixed; 
  top: 90px;
  left: 0;
  z-index: 1; 
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 20px;
  transition: transform 0.3s ease, opacity 0.3s ease;
}
.banner.hidden {
  transform: translateY(-100%);
  opacity: 0;
}
.banner.success {
  background-color: #28a745;
  color: #fff;
}
.banner.error {
  background-color: #dc3545;
  color: #fff;
}
#banner-close {
  background: none;
  border: none;
  font-size: 1.5rem;
  color: inherit;
  cursor: pointer;
}
