#site-header {
  position: relative;
  z-index: 50;
  width: 100%;
  display: block;
}
#hdr-container {
  width: 100%;
  background: linear-gradient(to bottom, #000000 0%, #0a0f0c 60%, #0d1610 100%);
  position: relative;
}

#hdr-container::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url("../pics/header-bg.jpg") repeat-x;
  opacity: 0.1;
  pointer-events: none;
}
#header-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px;
  position: relative;
  z-index: 1;
  gap: 1rem;
  flex-wrap: wrap;
}
#logo-box {
  display: flex;
  align-items: center;
}
#logo-box .logo {
  position: relative;
  display: block;
  z-index: 3;
  text-decoration: none;
  color: #ffffff;
  max-width: 190px;
}
.logo img {
  width: clamp(100px, 20vw, 190px);
}
#logo-box span {
  font-family: "Josefin Sans", sans-serif;
  color: #32d399;
  font-size: clamp(24px, 3.5vw, 42px);
  margin: -15px 0 0 20px;
  font-weight: 300;
}
#user-area {
  padding-right: 20px;
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}
.user-info {
  color: #fff;
  text-align: right;
  font-family: Arial, sans-serif;
  font-size: clamp(12px, 2.5vw, 14px);
}
.user-info span {
  color: #32d399;
}
.msg-discount {
  font-family: "Marck Script", cursive;
  color: #fff;
  font-size: clamp(18px, 2.5vw, 30px);
}
.join-now-btn {
  margin: 15px 0;
  text-align: right;
}
.join-now-btn a {
  display: inline-block;
  background: transparent;
  color: #ffffff;
  padding: 8px 12px;
  border-radius: 6px;
  text-decoration: underline;
  text-decoration-color: #32d399;
  text-underline-offset: 3px;
  font-family: Arial, sans-serif;
  font-weight: 700;
  font-size: clamp(12px, 2vw, 14px);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  transition: all 0.3s ease;
  min-width: clamp(80px, 20vw, 145px);
  text-align: center;
}
.join-now-btn a:hover,
.join-now-btn a:focus {
  background: #32d399;
  color: #000000;
  text-decoration-color: transparent;
  transform: translateY(-1px);
  box-shadow: 0 4px 15px rgba(50, 211, 153, 0.4);
}
.join-now-btn a img {
  display: none;
}

#header-nav {
  background: #000;
}
.top-nav {
  display: flex;
  justify-content: space-around;
  align-items: center;
  flex-wrap: wrap;
  list-style: none;
  margin: 0 auto;
  padding: 0;
  height: 100%;
}
.top-nav li {
  margin: 0;
  position: relative;
  height: 100%;
}
.top-nav li a {
  font-family: Arial, sans-serif;
  font-size: clamp(14px, 1.5vw, 17px);
  color: #fff;
  padding: 10px;
  display: block;
  transition: all 0.3s;
}
.top-nav li a:hover {
  color: #32d399;
}

/* Authentication Links */
.top-nav li.auth-section {
  margin-left: auto;
}

.top-nav li.auth-section:first-of-type {
  margin-left: auto;
  margin-right: 0;
}

.top-nav li.auth-section:last-of-type {
  margin-right: 0;
}

.top-nav .dashboard-link {
  background: linear-gradient(135deg, #32d399, #059669);
  color: #000 !important;
  border-radius: 6px;
  font-weight: 600;
  padding: 8px 16px !important;
  transition: all 0.3s ease;
}

.top-nav .dashboard-link:hover {
  background: linear-gradient(135deg, #4ade80, #32d399);
  color: #000 !important;
  transform: translateY(-1px);
}

.top-nav .login-link {
  /* background: rgba(255, 255, 255, 0.1); */
  text-decoration: underline;
  text-underline-offset: 3px;
  color: rgba(255, 255, 255, 0.9) !important;
  border-radius: 0;
  padding: 6px 10px !important;
  transition: all 0.3s ease;
  font-weight: 500;
  box-shadow: none;
  margin: 2px 0;
}

.top-nav .login-link:hover {
  color: #ffffff !important;
  background: rgba(255, 255, 255, 0.15);
  transform: none;
  box-shadow: none;
}

.top-nav .logout-link {
  color: #dc2626 !important;
  padding: 8px 16px !important;
  border-radius: 6px;
  transition: all 0.3s ease;
}

.top-nav .logout-link:hover {
  background: rgba(220, 38, 38, 0.1);
  color: #ef4444 !important;
}

/* RESPONSIVE CSS */
@media screen and (max-width: 430px) {
  .user-info,
  .join-now-btn,
  .msg-discount {
    text-align: center;
  }
  #logo-box {
    flex-direction: column;
  }
  .join-now-btn {
    margin: 15px 0 5px 0;
  }
  #logo-box span {
    margin: 0;
  }
  .top-nav {
    justify-content: center;
  }
}

/* Construction Banner */
.construction-banner {
  background: linear-gradient(135deg, #f59e0b, #f97316);
  color: #ffffff;
  padding: 12px 0;
  position: relative;
  z-index: 49;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.construction-content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
  text-align: center;
}

.construction-icon {
  font-size: 1.5rem;
  animation: pulse 2s infinite;
  background: #000;
  padding: 4px;
  border-radius: 4px;
}

.construction-text {
  font-size: 1.1rem;
  line-height: 1.4;
}

.construction-text strong {
  font-size: 1.3rem;
  font-weight: 800;
  text-shadow: 0 3px 8px rgba(0, 0, 0, 0.6);
  letter-spacing: 0.5px;
}

.banner-button {
  background: #2563eb;
  color: #ffffff;
  text-decoration: none;
  font-weight: 700;
  padding: 8px 16px;
  border-radius: 6px;
  transition: all 0.2s ease;
  box-shadow: 0 2px 8px rgba(37, 99, 235, 0.4);
  display: inline-block;
  text-shadow: none;
}

.banner-button:hover {
  background: #1d4ed8;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.6);
}

/* Enhanced highlighting for important beta messages */
.highlight-text {
  background: rgba(0, 0, 0, 0.7);
  color: #ffffff;
  padding: 4px 10px;
  border-radius: 6px;
  font-weight: 700;
  text-shadow: none;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.4);
  animation: glow 3s ease-in-out infinite alternate;
}

.contact-text {
  background: rgba(0, 0, 0, 0.6);
  color: #ffffff;
  padding: 2px 6px;
  border-radius: 4px;
  font-weight: 600;
  text-shadow: none;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.3);
}

@keyframes pulse {
  0%,
  100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.1);
  }
}

@keyframes glow {
  0% {
    background: rgba(0, 0, 0, 0.6);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
  }
  100% {
    background: rgba(0, 0, 0, 0.8);
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.5);
  }
}

/* Enhanced Responsive Design */
@media (max-width: 1024px) {
  .construction-content {
    padding: 0 15px;
  }

  .construction-text {
    font-size: 1rem;
  }

  .construction-text strong {
    font-size: 1.2rem;
  }
}

@media (max-width: 768px) {
  .construction-banner {
    padding: 16px 0;
  }

  .construction-content {
    flex-direction: column;
    gap: 12px;
    text-align: center;
    padding: 0 10px;
  }

  .construction-text {
    font-size: 0.95rem;
    line-height: 1.5;
  }

  .construction-text strong {
    font-size: 1.1rem;
    display: block;
    margin-bottom: 8px;
  }

  .highlight-text,
  .contact-text {
    display: inline-block;
    margin: 4px 2px;
    font-size: 0.9rem;
  }

  .banner-button {
    margin: 8px 0;
    padding: 10px 20px;
    font-size: 0.95rem;
  }
}

@media (max-width: 480px) {
  .construction-banner {
    padding: 12px 0;
  }

  .construction-content {
    gap: 8px;
    padding: 0 8px;
  }

  .construction-icon {
    font-size: 1.2rem;
  }

  .construction-text {
    font-size: 0.85rem;
  }

  .construction-text strong {
    font-size: 1rem;
    margin-bottom: 6px;
  }

  .highlight-text,
  .contact-text {
    font-size: 0.8rem;
    padding: 3px 6px;
    margin: 2px 1px;
  }

  .banner-button {
    padding: 8px 16px;
    font-size: 0.9rem;
    margin: 6px 0;
  }

  /* Hide separators on mobile for cleaner look */
  .mobile-break {
    display: none;
  }
}

/* Light Theme Header Styles */
:root[data-theme="light"] #hdr-container {
  background: linear-gradient(to bottom, #ffffff 0%, #f8fafc 60%, #f1f5f9 100%);
  border-bottom: 2px solid var(--accent);
  box-shadow: 0 2px 12px rgba(0, 208, 132, 0.15);
}

:root[data-theme="light"] #hdr-container::before {
  opacity: 0.05;
}

:root[data-theme="light"] #logo-box .logo {
  color: var(--text);
}

:root[data-theme="light"] #logo-box span {
  color: var(--accent);
  text-shadow: 0 0 10px rgba(0, 208, 132, 0.3);
}

:root[data-theme="light"] .user-info {
  color: var(--text);
}

:root[data-theme="light"] .user-info span {
  color: var(--accent);
}

:root[data-theme="light"] .msg-discount {
  color: var(--text);
}

:root[data-theme="light"] .join-now-btn a {
  color: #1f2937;
  text-decoration-color: #2563eb;
}

:root[data-theme="light"] .join-now-btn a:hover,
:root[data-theme="light"] .join-now-btn a:focus {
  background: #2563eb;
  color: #ffffff;
  box-shadow: 0 4px 15px rgba(37, 99, 235, 0.4);
  color: #1e40af;
  border-color: #d1d5db;
}

:root[data-theme="light"] #header-nav {
  background: linear-gradient(135deg, #1e3a8a 0%, #1d4ed8 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

:root[data-theme="light"] .top-nav li a {
  color: #ffffff;
}

:root[data-theme="light"] .top-nav li a:hover {
  color: #fbbf24;
  text-shadow: 0 0 8px rgba(251, 191, 36, 0.5);
}

:root[data-theme="light"] .top-nav .dashboard-link {
  background: linear-gradient(135deg, var(--accent), #00b574);
  color: white !important;
}

:root[data-theme="light"] .top-nav .dashboard-link:hover {
  background: linear-gradient(135deg, #00ff9f, var(--accent));
  color: white !important;
}

:root[data-theme="light"] .top-nav .login-link {
  background: rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.9) !important;
  font-weight: 500;
  box-shadow: none;
  margin: 2px 0;
  padding: 8px 12px !important;
}

:root[data-theme="light"] .top-nav .login-link:hover {
  color: #ffffff !important;
  background: rgba(255, 255, 255, 0.15);
  box-shadow: none;
}

:root[data-theme="light"] .top-nav .logout-link {
  color: #dc2626 !important;
}

:root[data-theme="light"] .top-nav .logout-link:hover {
  background: rgba(220, 38, 38, 0.1);
  color: #ef4444 !important;
}
