/* ===== DevToolsDesk Global Premium Header (M2) ===== */
body {
  padding-top: 96px;
}
@media (max-width: 900px) {
  body { padding-top: 72px; }
}

.dth-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 10px 20px;
  background: linear-gradient(135deg, #0f172a, #1e293b, #020617);
  color: #e2e8f0;
  border-bottom: 1px solid rgba(148,163,184,0.45);
  box-shadow: 0 18px 40px rgba(15,23,42,0.9);
  backdrop-filter: blur(18px);
}
body.light .dth-header {
  background: linear-gradient(135deg, #ffffff, #e5f0ff, #ffffff);
  color: #0f172a;
  border-bottom: 1px solid #cbd5e1;
  box-shadow: 0 14px 32px rgba(15,23,42,0.15);
}

.dth-left {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}
.dth-logo-icon {
  font-size: 22px;
}
.dth-logo-text {
  font-weight: 650;
  font-size: 19px;
  letter-spacing: 0.02em;
  cursor: pointer;
  white-space: nowrap;
}

.dth-hamburger {
  display: none;
  font-size: 22px;
  cursor: pointer;
}

/* CENTER – popular tools (chips) */
.dth-popular {
  flex: 1;
  display: flex;
  justify-content: center;
  gap: 8px;
  padding: 4px 8px;
  position: relative;
  overflow: hidden;
  white-space: nowrap;
}
.dth-popular::after {
  content: "";
  position: absolute;
  right: 0;
  top: 0;
  width: 60px;
  height: 100%;
  pointer-events: none;
  background: linear-gradient(to right, transparent, rgba(15,23,42,0.96));
}
body.light .dth-popular::after {
  background: linear-gradient(to right, transparent, rgba(248,250,252,0.98));
}

.dth-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 13px;
  text-decoration: none;
  background: #0ea5e9;
  color: #f9fafb;
  border: 1px solid rgba(15,23,42,0.25);
  box-shadow: 0 3px 8px rgba(15,23,42,0.75);
  flex-shrink: 0;
  transition: transform 0.08s ease, box-shadow 0.08s ease, background 0.12s ease;
}
.dth-chip:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(15,23,42,0.9);
  background: #0284c7;
}
body.light .dth-chip {
  background: #2563eb;
  border-color: rgba(37,99,235,0.6);
  color: #eff6ff;
}
body.light .dth-chip:hover {
  background: #1d4ed8;
}

/* RIGHT – menus + theme */
.dth-menu {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-shrink: 0;
  font-size: 14px;
}
.dth-dropdown { position: relative; }
.dth-dropbtn {
  border: none;
  background: none;
  color: inherit;
  cursor: pointer;
  padding: 4px 2px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  white-space: nowrap;
}
.dth-dropbtn span.icon { font-size: 15px; }
.dth-dropbtn:hover { color: #38bdf8; }

.dth-dropdown-content {
  display: none;
  position: absolute;
  top: 28px;
  right: 0;
  background: #020617;
  border-radius: 12px;
  border: 1px solid rgba(148,163,184,0.6);
  min-width: 220px;
  padding: 8px 0;
  box-shadow: 0 18px 40px rgba(15,23,42,0.95);
  z-index: 1200;
}
body.light .dth-dropdown-content {
  background: #ffffff;
  border-color: #cbd5e1;
  box-shadow: 0 16px 32px rgba(15,23,42,0.18);
}
.dth-dropdown-content a {
  display: block;
  padding: 8px 14px;
  text-decoration: none;
  color: inherit;
  font-size: 13px;
  white-space: nowrap;
}
.dth-dropdown-content a:hover {
  background: rgba(56,189,248,0.18);
}
.dth-dropdown:hover .dth-dropdown-content { display: block; }

.dth-theme-btn {
  padding: 5px 8px;
  border-radius: 999px;
  border: 1px solid rgba(148,163,184,0.6);
  background: rgba(15,23,42,0.3);
  cursor: pointer;
  font-size: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 28px;
}
body.light .dth-theme-btn {
  background: rgba(148,163,184,0.12);
}

/* MOBILE */
@media (max-width: 900px) {
  .dth-hamburger { display: block; }
  .dth-popular { display: none; }
  .dth-menu {
    display: none;
    position: fixed;
    top: 54px;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: flex-start;
    padding: 10px 16px 14px;
    background: rgba(15,23,42,0.98);
    border-bottom: 1px solid rgba(148,163,184,0.6);
    gap: 8px;
  }
  body.light .dth-menu {
    background: #ffffff;
    border-color: #cbd5e1;
  }
  .dth-menu.open { display: flex; }
  .dth-dropdown-content {
    position: static;
    box-shadow: none;
    border: none;
    padding-left: 10px;
  }
}