/* Shared navigation - identical on all pages */
#gt-shared-nav {
  background: transparent !important;
  border: none !important;
  padding: 0 !important;
  margin: 0 !important;
}
.gt-header, .gt-header *, .gt-header *::before, .gt-header *::after {
  box-sizing: border-box;
}
.gt-header {
  position: sticky !important;
  top: 0 !important;
  z-index: 10000 !important;
  background: rgba(15,15,26,0.92) !important;
  backdrop-filter: blur(14px) !important;
  -webkit-backdrop-filter: blur(14px) !important;
  border-bottom: 1px solid #2a2a40 !important;
  font-family: 'Manrope', 'Segoe UI', system-ui, -apple-system, sans-serif !important;
}
.gt-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0.7rem 1.5rem;
}
.gt-logo {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-size: 1.5rem;
  font-weight: 800;
  background: linear-gradient(135deg, #6c5ce7, #00cec9);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-decoration: none;
  letter-spacing: -0.5px;
  flex-shrink: 0;
}
.gt-logo::before {
  content: '';
  display: inline-block;
  width: 34px;
  height: 34px;
  background: url('/favicon.svg') no-repeat center/contain;
  flex-shrink: 0;
}
.gt-nav-links {
  display: flex;
  gap: 1.1rem;
  list-style: none;
  margin: 0;
  padding: 0;
}
.gt-nav-links a {
  color: #8a8da0 !important;
  text-decoration: none !important;
  font-weight: 500 !important;
  font-size: 0.9rem !important;
  transition: color 0.2s !important;
  white-space: nowrap;
  -webkit-text-fill-color: #8a8da0 !important;
}
.gt-nav-links a:hover {
  color: #eef0f6 !important;
  -webkit-text-fill-color: #eef0f6 !important;
}

/* Search */
.gt-search-wrapper {
  position: relative;
  margin-left: 1.2rem;
  flex-shrink: 0;
}
.gt-nav-search-btn {
  background: none;
  border: none;
  color: #8a8da0;
  width: 40px;
  height: 40px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  transition: color 0.2s;
}
.gt-nav-search-btn:hover { color: #eef0f6; }
.gt-nav-search-btn svg {
  width: 20px;
  height: 20px;
  stroke: currentColor;
  fill: none;
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.gt-search-inline {
  position: absolute;
  top: 100%;
  right: 0;
  margin-top: 0.5rem;
  width: 240px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px);
  transition: opacity 0.2s, visibility 0.2s, transform 0.2s cubic-bezier(.16,1,.3,1);
  pointer-events: none;
  z-index: 100001;
}
.gt-search-inline.open {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  pointer-events: auto;
}
.gt-search-inline input {
  width: 100%;
  padding: 0.6rem 0.85rem;
  background: rgba(18,18,36,0.97);
  border: 1.5px solid rgba(108,92,231,0.3);
  border-radius: 12px;
  color: #eef0f6;
  font-size: 0.9rem;
  font-family: inherit;
  outline: none;
  box-shadow: 0 8px 24px rgba(0,0,0,0.4);
}
.gt-search-inline input:focus { border-color: rgba(108,92,231,0.5); }
.gt-search-inline input::placeholder { color: #8a8da0; }

/* Hamburger */
.gt-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 10px;
  min-width: 44px;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  -webkit-tap-highlight-color: transparent;
}
.gt-hamburger span {
  display: block;
  width: 24px;
  height: 2.5px;
  background: #eef0f6;
  border-radius: 2px;
  transition: transform 0.3s ease, opacity 0.3s ease;
}
.gt-hamburger.open span:nth-child(1) { transform: rotate(45deg) translate(5px, 6px); }
.gt-hamburger.open span:nth-child(2) { opacity: 0; }
.gt-hamburger.open span:nth-child(3) { transform: rotate(-45deg) translate(5px, -6px); }

/* Drawer */
.gt-nav-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.5);
  z-index: 9998;
  opacity: 0;
  transition: opacity 0.3s ease;
}
.gt-nav-overlay.visible { display: block; opacity: 1; }
.gt-nav-drawer {
  display: flex;
  flex-direction: column;
  position: fixed;
  top: 0; right: 0;
  width: 280px;
  height: 100vh; height: 100dvh;
  background: #0f0f1a;
  border-left: 1px solid #2a2a40;
  padding: 4.5rem 0 2rem;
  box-shadow: -4px 0 24px rgba(0,0,0,0.5);
  z-index: 9999;
  transform: translateX(100%);
  transition: transform 0.3s cubic-bezier(0.4,0,0.2,1);
  overflow-y: auto;
  list-style: none;
  visibility: hidden;
  margin: 0;
}
.gt-nav-drawer.open { transform: translateX(0); visibility: visible; }
.gt-nav-drawer-close {
  position: absolute;
  top: 0.75rem; right: 0.75rem;
  width: 44px; height: 44px;
  display: flex; align-items: center; justify-content: center;
  background: rgba(255,255,255,0.06);
  border: 1px solid #2a2a40;
  border-radius: 12px;
  color: #eef0f6;
  font-size: 1.3rem;
  cursor: pointer;
  transition: background 0.2s;
  z-index: 1;
}
.gt-nav-drawer-close:hover { background: rgba(255,255,255,0.12); }
.gt-nav-drawer li { width: 100%; list-style: none; }
.gt-nav-drawer a {
  display: flex;
  align-items: center;
  padding: 0.85rem 1.5rem;
  font-size: 1rem;
  font-weight: 500;
  min-height: 48px;
  border-bottom: 1px solid #2a2a40;
  transition: background 0.2s, color 0.2s;
  color: #eef0f6 !important;
  text-decoration: none !important;
  -webkit-text-fill-color: #eef0f6 !important;
}
.gt-nav-drawer li:last-child a { border-bottom: none; }
.gt-nav-drawer a:hover { background: rgba(108,92,231,0.2); color: #fff !important; -webkit-text-fill-color: #fff !important; }

/* Mobile */
@media (max-width: 768px) {
  .gt-hamburger { display: flex; }
  .gt-nav-links { display: none !important; }
  .gt-nav-search-btn { display: none; }
  .gt-search-inline { display: none !important; }
}
