.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(7, 10, 26, 0.92);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  padding: 0 20px;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 0;
}

.logo {
  display: flex;
  align-items: center;
  gap: 8px;
}

.logo-mark {
  width: 32px;
  height: 32px;
  border-radius: 10px;
  background: linear-gradient(135deg, #ff8c3a, #ff5a00);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  font-weight: 700;
  font-size: 14px;
}

.logo-text {
  color: #ffffff;
  font-weight: 600;
  letter-spacing: 0.04em;
  font-size: 15px;
}

.main-nav ul {
  display: flex;
  align-items: center;
  gap: 20px;
  font-size: 14px;
}

.main-nav a {
  color: #d9dff7;
  position: relative;
  padding-bottom: 2px;
}

.main-nav a::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -4px;
  width: 0;
  height: 2px;
  background: linear-gradient(135deg, #ff8c3a, #ff5a00);
  transform: translateX(-50%);
  transition: width 0.18s ease;
}

.main-nav a:hover::after,
.main-nav a.active::after {
  width: 18px;
}

.header-cta {
  margin-left: 20px;
}

.btn-accent {
    background-color: #0b1020;
    color: #ffffff;
}
.btn-sm {
    padding: 8px 18px;
    font-size: 13px;
}
/* Mobile toggle */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 4px;
  width: 22px;
  height: 18px;
  background: none;
  border: none;
  padding: 0;
}

.nav-toggle span {
  height: 2px;
  width: 100%;
  border-radius: 999px;
  background-color: #ffffff;
}

/* Header Responsive (from style.css) */
@media (max-width: 768px) {
  .header-inner {
    gap: 10px;
  }

  .main-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: rgba(7, 10, 26, 0.98);
    max-height: 0;
    overflow: auto;
    transition: max-height 0.2s ease;
  }

  .main-nav.open {
    max-height: 260px;
  }

  .main-nav ul {
    flex-direction: column;
    padding: 10px 20px 14px 20px;
    align-items: flex-start;
  }

  .header-cta {
    display: none;
  }

  .nav-toggle {
    display: flex;
  }
}

/* =========================
   HEADER LOGO (LIGHT/DARK)
   ========================= */

.logo{ display:flex; align-items:center; gap:10px; }

.site-logo{
  height: 40px;
  width: auto;
  max-width: 170px;
  object-fit: contain;
}

/* Default: show light logo, hide dark */
.site-logo--dark{ display:none; }

/* When dark theme: switch */
html[data-theme="dark"] .site-logo--light{ display:none; }
html[data-theme="dark"] .site-logo--dark{ display:block; }



.has-dropdown {
  position: relative;
}

.main-nav ul li ul.dropdown {
  position: absolute;
  top: calc(100% + 10px);
  left: 0;

  display: grid;
  grid-template-columns: repeat(1, 1fr);
  gap: 4px;

  min-width: 260px;
  background: rgba(12, 16, 38, 0.98);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 12px;
  box-shadow: 0 18px 40px rgba(0,0,0,0.35);
  padding: 10px;

  opacity: 0;
  visibility: hidden;
  transform: translateY(6px);
  transition: all 0.2s ease;
  z-index: 999;
}

.main-nav ul li:hover > ul.dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.main-nav ul li ul.dropdown li {
  width: 100%;
}

.main-nav ul li ul.dropdown li a {
  display: flex;
  align-items: center;
  padding: 10px 14px;
  color: #d9dff7;
  font-size: 13px;
  border-radius: 8px;
}

.main-nav ul li ul.dropdown li a:hover {
  background: rgba(255,255,255,0.08);
}

@media (max-width: 768px) { 
  .main-nav ul li ul.dropdown { 
    position: static;
    transform: none;
    box-shadow: none; 
    background: transparent; 
    border: 0; 
    padding-left: 12px; 
    display: none; 
    opacity: 1; 
    visibility: visible; 
  } 
  .main-nav ul li.open > ul.dropdown { 
    display: block; 
  } 
}

/* Popup */

.popup-overlay{
  position:fixed;
  inset:0;
  background:rgba(11,18,32,.55);
  display:flex;
  align-items:center;
  justify-content:center;
  z-index:9999;
  padding:16px;
}

.popup-card{
  width:min(420px, 92vw);
  background:#fff;
  border-radius:18px;
  border:1px solid rgba(16,56,128,.14);
  box-shadow:0 22px 70px rgba(11,18,32,.18);
  padding:18px;
  text-align:center;
}

.popup-icon{
  width:46px;
  height:46px;
  border-radius:16px;
  margin:0 auto 10px;
  display:flex;
  align-items:center;
  justify-content:center;
  font-weight:1000;
  background:rgba(80,176,208,.18);
  border:1px solid rgba(80,176,208,.35);
  color:#103880;
}

.popup-card h3{
  margin:0 0 6px;
  font-size:18px;
  color:#0b1220;
}

.popup-card p{
  margin:0 0 14px;
  color:rgba(11,18,32,.72);
}

.popup-btn{
  border:0;
  cursor:pointer;
  padding:10px 14px;
  border-radius:14px;
  font-weight:900;
  color:#0b1220;
  background:linear-gradient(135deg, #F88000, #FFA22E);
  box-shadow:0 14px 35px rgba(248,128,0,.22);
}
.popup-btn:hover{ transform: translateY(-1px); }

.popup-error .popup-icon{
  background:rgba(248,128,0,.12);
  border-color:rgba(248,128,0,.35);
  color:#F88000;
}
