/* scoped vars (optional but helps avoid conflicts) */
:root{
  --navBg:#000028;
  --panelBg:#000028;
  --line:rgba(255,255,255,.15);
  --muted:rgba(255,255,255,.7);
  --text:rgba(255,255,255,.92);
  --accent:#00e6b8;
  --max:1200px;
  --topH:72px;
  --navH:60px;
  --headerH:calc(var(--topH) + var(--navH));
}

*{box-sizing:border-box}

/* If embedding into another page, consider removing these 2 rules */
body{
  margin:0;
  font-family:system-ui,-apple-system,Segoe UI,Roboto,Helvetica,Arial;
  background:#fafafa;
  color:var(--text);
}

a-darkmode{ text-decoration:none; color:inherit; }
button-darkmode{ font:inherit; }

/* HEADER */
.header-darkmode{
  background:var(--navBg);
  border-bottom:1px solid var(--line);
  position:relative;
  z-index:50;
}
.container-darkmode{
  max-width:var(--max);
  margin:0 auto;
  padding:0 18px;
}

/* ===== TOP ROW ===== */
.topbar-darkmode{ height:var(--topH); }
.top-flex-darkmode{
  height:100%;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:18px;
}
.left-wrap-darkmode{
  display:flex;
  align-items:center;
  gap:12px;
  min-width: 0;
}
.logo-darkmode{
  font-weight:800;
  letter-spacing:.10em;
  font-size:26px;
  color:white;
  user-select:none;
  white-space:nowrap;
}

/* make all links inside the header inherit color and remove underline */
.header-darkmode a{
  color:inherit;
  text-decoration:none;
}

/* secondary menu (desktop) */

.secondary-menu-darkmode{
  display:flex;
  align-items:center;
  gap:18px;
  flex-wrap:wrap;
  justify-content:flex-end;
  color:#fff;
}
.secondary-menu-darkmode a{
  font-size:16px;
  font-weight:400;
  opacity:.9;
  white-space:nowrap;
  color:#fff;
    text-decoration:none!important;;
}
.secondary-menu-darkmode a:hover{
color:white !important;
    text-decoration:none!important;;
}

/* drawer secondary links (mobile) */
.drawer-secondary-darkmode a{
  font-size:14px;
  font-weight:650;
  opacity:.9;
  text-decoration:none;
  color:inherit;
}
.drawer-secondary-darkmode a:hover{ opacity:1; }

.try-btn-darkmode{
  background: linear-gradient(
    90deg,
    #00FEBA 0%,
    #00E7DB 100%);
  color:#000028 !important;
  padding:8px 16px;
  border-radius:0px;
  font-weight:600!important;
  transition:.2s;
}
.try-btn-darkmode:hover{ background:#fff; }

/* ===== NAV ROW (desktop) ===== */
.navrow-darkmode{
  height:var(--navH);
  border-bottom:1px solid var(--line);
}
.nav-flex-darkmode{
  height:100%;
  display:flex;
  align-items:center;
}
.primary-darkmode{
  display:flex;
  gap:30px;
}
.primary-darkmode button{
  background:none;
  border:none;
  color:white;
  font-size:18px;
  font-weight:450;
  cursor:pointer;
  position:relative;
  padding:0;
  white-space:nowrap;
}
.primary-darkmode .active-darkmode::after{
  content:"";
  position:absolute;
  left:0;
  right:0;
  bottom:-10px;
  height:2px;
  background:var(--accent);
}

/* ===== DROPDOWN (desktop) ===== */
.dropdown-darkmode{
  position:absolute;
  left:0;
  right:0;
  top:var(--headerH);
  background:var(--panelBg);
  border-top:1px solid var(--line);
  opacity:0;
  transform: translateY(-8px);
  transition: opacity 0.5s ease, transform 0.5s ease;
  z-index:10000 !important;
  height:600px !important
  pointer-events:none;
}
.dropdown-darkmode.is-open-darkmode{
  opacity:1;
  transform: translateY(0);
  pointer-events:auto;
}

.drop-inner-darkmode{
  max-width:var(--max);
  margin:0 auto;
  padding:24px 18px 30px;
  position:relative;
  z-index:10000 !important;
  height: 600px !important;
}
.drop-title-darkmode{
  font-size:12px;
  text-transform:uppercase;
  letter-spacing:.12em;
  opacity:.6;
  margin:0 0 14px;
}
.drop-list-darkmode{
  list-style:none;
  padding:0;
  margin:0;
  max-width:520px;
}

/* Optional: tiny soft appearance for items */
.drop-item-darkmode{
  opacity:0;
  transform: translateY(4px);
  transition: opacity .2s ease, transform .2s ease;
  font-size: 16px;
}
.dropdown-darkmode.is-open-darkmode .drop-item-darkmode{
  opacity:1;
  transform: translateY(0);
}

/* Dropdown item link */
.drop-item-darkmode a{
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:12px;

  padding:12px 8px;
  padding-left:20px; /* room for left bar */
  border-radius:6px;

  color:var(--muted);
  text-decoration:none !important;

  position:relative;
  transition: background .2s ease, color .2s ease;
}

/* Green left bar (hidden by default) */
.drop-item-darkmode a::before{
  content:"";
  position:absolute;
  left:0;
  top:8px;
  bottom:8px;
  width:3px;
  background:var(--accent);
  opacity:0;
  transform: scaleY(0.6);
  transition: opacity .2s ease, transform .2s ease;
  border-radius:2px;
}

/* Hover state (no underline) */
.drop-item-darkmode a:hover{
  background:rgba(255,255,255,.06);
  color:white;
  text-decoration:none !important;
}

/* Show left bar on hover */
.drop-item-darkmode a:hover::before{
  opacity:1;
  transform: scaleY(1);
}

/* Arrow uses currentColor; default + hover colors */
.chev-darkmode{
  width:18px;
  height:18px;
  opacity:.9;
  color: rgba(255,255,255,.6);
  transition: color .2s ease;
}
.drop-item-darkmode a:hover .chev-darkmode{
  color: var(--accent);
}

/* NEW badge */
.badge-new-darkmode{
  background-color:#B40056;
  color:#fff !important;
  text-decoration:none;
  font-size:11px;
  padding:1px 4px;
  border-radius:3px;
  margin-left:8px;
  font-weight:700;
  letter-spacing:.04em;
  display:inline-block;
  line-height:1.2;
  vertical-align:middle;
}

/* Close X (reliable click area + hand cursor) */
.drop-close-darkmode{
  position:absolute;
  right:18px;
  top:18px;
  width:32px;
  height:32px;
  display:grid;
  place-items:center;
  border:none;
  background:transparent;
  padding:0;
  z-index:5;
  cursor:pointer;
}
.drop-close-darkmode:hover{ opacity:.75; }
.drop-close-darkmode svg{
  width:24px;
  height:24px;
  stroke:white;
  stroke-width:2.5;
  pointer-events:none;
}

/* ===== MOBILE / RESPONSIVE ===== */
.burger-darkmode{
  display:none;
  width:36px;
  height:28px;
  border:none;
  background:transparent;
  padding:0;
  cursor:pointer;
}
.burger-darkmode span{
  display:block;
  height:2px;
  background:white;
  border-radius:2px;
  margin:6px 0;
}

/* Mobile drawer overlay */
.drawer-darkmode{
  position:fixed;
  inset:0;
  background:rgba(0,0,0,.45);
  opacity:0;
  pointer-events:none;
  transition: opacity .18s ease;
  z-index:80;
}
.drawer-darkmode.is-open-darkmode{
  opacity:1;
  pointer-events:auto;
}
.drawer-panel-darkmode{
  position:absolute;
  top:0; bottom:0; left:0;
  width:min(420px, 90vw);
  background:var(--navBg);
  border-right:1px solid var(--line);
  transform: translateX(-102%);
  transition: transform .22s ease;
  overflow:auto;
}
.drawer-darkmode.is-open-darkmode .drawer-panel-darkmode{
  transform: translateX(0);
}
.drawer-top-darkmode{
  height:var(--topH);
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding:0 16px;
  border-bottom:1px solid var(--line);
}
.drawer-top-darkmode .logo-darkmode{ font-size:22px; }

.drawer-close-darkmode{
  width:34px;
  height:34px;
  display:grid;
  place-items:center;
  border:none;
  background:transparent;
  cursor:pointer;
  padding:0;
}
.drawer-close-darkmode:hover{ opacity:.75; }
.drawer-close-darkmode svg{
  width:24px; height:24px;
  stroke:white; stroke-width:2.5;
  pointer-events:none;
}
.drawer-content-darkmode{
  padding:14px 16px 18px;
}
.drawer-secondary-darkmode{
  display:flex;
  flex-wrap:wrap;
  gap:12px 16px;
  padding:8px 0 14px;
  border-bottom:1px solid rgba(255,255,255,.10);
}
.drawer-secondary-darkmode a{
  font-size:14px;
  font-weight:650;
  opacity:.9;
}
.drawer-secondary-darkmode .try-btn-darkmode{ display:inline-block; }

.drawer-nav-darkmode{
  padding:14px 0;
}
.acc-btn-darkmode{
  width:100%;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  background:none;
  border:none;
  color:white;
  font-size:15px;
  font-weight:750;
  padding:12px 0;
  cursor:pointer;
}
.acc-btn-darkmode .chev-darkmode{
  width:18px; height:18px;
  transform: rotate(0deg);
  transition: transform .16s ease;
}
.acc-btn-darkmode[aria-expanded="true"] .chev-darkmode{
  transform: rotate(90deg);
}
.acc-panel-darkmode{
  display:none;
  padding: 0 0 10px 0;
}
.acc-panel-darkmode.is-open-darkmode{ display:block; }
.acc-panel-darkmode a{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  padding:10px 0;
  color:var(--muted);
  font-weight:600;
}
.acc-panel-darkmode a:hover{ color:white; }

@media (max-width: 980px){
  /* show burger, hide desktop nav row */
  .burger-darkmode{ display:inline-block; }
  .navrow-darkmode{ display:none; }

  /* tighten top bar */
  .topbar-darkmode{ height:64px; }
  .logo-darkmode{ font-size:22px; }
  .secondary-menu-darkmode{ display:none; } /* moves into drawer */

  :root{ --topH:64px; --headerH:64px; } /* keep dropdown top consistent if needed */
  .dropdown-darkmode{ display:none !important; }  /* use drawer instead */
}