.site-header.teknobu-masthead {
  --masthead-edge: color-mix(in srgb, var(--border) 76%, var(--icon-violet));
  --masthead-control: color-mix(in srgb, var(--card-bg) 70%, var(--bg-alt));
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  border-bottom: 1px solid var(--border);
  background:
    radial-gradient(ellipse at 14% -35%, color-mix(in srgb, var(--icon-violet) 18%, transparent), transparent 61%),
    var(--card-bg);
  box-shadow: 0 8px 24px #10061d16;
}

.teknobu-masthead::before {
  content: "";
  display: block;
  height: 3px;
  background: linear-gradient(90deg, #9655ed, #da69b0 48%, #64d6dd 84%, #b3e776);
}

.teknobu-masthead .header-inner {
  grid-template-columns: minmax(0, 1fr) minmax(230px, 1.15fr) minmax(0, 1fr);
  gap: 0 24px;
  padding-inline: clamp(17px, 3vw, 38px);
}
.teknobu-masthead .premium-header-brand { min-width: 0; gap: 14px; min-height: 88px; }
.teknobu-masthead .brand { gap: 11px; font-size: clamp(22px, 2.4vw, 34px); }
.teknobu-masthead .brand-mark {
  width: max(51px, var(--brand-mark-size));
  height: max(51px, var(--brand-mark-size));
  border-radius: 13px;
  box-shadow: 0 5px 15px #7532c92c;
}
.teknobu-masthead .premium-brand-copy strong {
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}
.teknobu-masthead .premium-brand-copy small { font-size: 10px; }
.teknobu-masthead .header-actions { grid-column: 3; gap: 9px; }
.teknobu-masthead .header-actions #themeToggle,
.teknobu-masthead .header-actions .profile-btn,
.teknobu-masthead .header-actions .premium-mobile-search,
.teknobu-masthead .mobile-toggle {
  width: 46px;
  height: 46px;
  min-width: 46px;
  padding: 0 !important;
  border-radius: 12px;
  background: var(--masthead-control);
  border: 1px solid var(--border);
  color: var(--text);
}
.teknobu-masthead .mobile-toggle { flex-basis: 46px; }
.teknobu-masthead .header-actions .profile-btn { border-radius: 50%; border-color: var(--masthead-edge); }
.teknobu-masthead .header-actions #themeToggle { display: grid; place-items: center; }
.teknobu-masthead #themeToggle .premium-theme-track { display: none; }
.teknobu-masthead #themeToggle svg { display: none; width: 21px; height: 21px; }
html[data-theme="dark"] .teknobu-masthead #themeToggle svg:last-child,
html[data-theme="light"] .teknobu-masthead #themeToggle svg:first-child { display: block; }
.teknobu-masthead :is(.mobile-toggle,.premium-mobile-search) svg { width: 21px; height: 21px; }
.teknobu-masthead .header-actions button:hover, .teknobu-masthead .mobile-toggle:hover { border-color: var(--masthead-edge); }

.teknobu-masthead .premium-wide-search {
  height: 53px;
  padding-inline: 7px 12px;
  border-radius: 12px;
  background: var(--masthead-control);
}
.teknobu-masthead .premium-wide-search:hover { border-color: var(--masthead-edge); }
.teknobu-masthead .premium-search-icon { width: 36px; height: 36px; }
.teknobu-masthead .premium-search-copy strong { font-size: 14px; }

.teknobu-masthead .main-nav {
  gap: 10px;
  min-height: 58px;
  padding: 0;
  border-top: 1px solid var(--border);
  scrollbar-width: none;
}
.teknobu-masthead .main-nav a {
  position: relative;
  align-self: stretch;
  gap: 8px;
  padding: 8px 9px;
  border: 0;
  border-radius: 0;
  font-size: 14px;
}
.teknobu-masthead .main-nav a:is(:hover,.active) { background: transparent; color: var(--icon-violet); }
.teknobu-masthead .main-nav a.active::after {
  content: "";
  position: absolute;
  height: 3px;
  inset-inline: 10px;
  bottom: 0;
  border-radius: 3px 3px 0 0;
  background: linear-gradient(90deg, #9c61eb, #d962b4);
}
.teknobu-masthead .main-nav a:focus-visible { outline-offset: -3px; }
.teknobu-masthead .main-nav .teknobu-premium-icon { width: 28px; height: 28px; }

@media (max-width: 1024px) {
  .teknobu-masthead .header-inner { grid-template-columns: minmax(0,1fr) auto; gap: 0 8px; padding-inline: 14px; }
  .teknobu-masthead .header-actions { grid-column: 2; }
  .teknobu-masthead .premium-header-brand { min-height: 76px; gap: 9px; }
  .teknobu-masthead .main-nav { min-height: 55px; }
  .teknobu-masthead .header-actions .premium-mobile-search { display: inline-grid; }
}

@media (max-width: 480px) {
  .teknobu-masthead .header-inner { padding-inline: 10px; gap: 0 5px; }
  .teknobu-masthead .premium-header-brand { min-height: 72px; gap: 7px; }
  .teknobu-masthead .brand { gap: 7px; font-size: clamp(16px, 4.85vw, 22px); }
  .teknobu-masthead .brand-mark { width: 40px; height: 40px; border-radius: 10px; }
  .teknobu-masthead .brand-logo { max-width: 100%; object-position: left; }
  .teknobu-masthead .header-actions { gap: 4px; }
  .teknobu-masthead .header-actions #themeToggle,
  .teknobu-masthead .header-actions .profile-btn,
  .teknobu-masthead .header-actions .premium-mobile-search,
  .teknobu-masthead .mobile-toggle { width: 42px; height: 44px; min-width: 42px; }
  .teknobu-masthead .mobile-toggle { flex-basis: 42px; }
  .teknobu-masthead .main-nav { min-height: 51px; gap: 6px; }
  .teknobu-masthead .main-nav a { font-size: 13px; gap: 6px; padding-inline: 5px 8px; }
}

@media (min-width: 1025px) {
  .teknobu-masthead .brand { font-size: clamp(22px, 2.15vw, 30px); }
  .teknobu-masthead .brand-mark {
    width: max(46px, var(--brand-mark-size));
    height: max(46px, var(--brand-mark-size));
  }
}

.teknobu-drawer {
  position: fixed;
  inset: 0 auto 0 0;
  margin: 0;
  width: min(416px, 100%);
  height: 100dvh;
  max-width: 100%;
  max-height: none;
  padding: 0;
  border: 0;
  border-inline-end: 1px solid var(--border);
  background: var(--card-bg);
  color: var(--text);
}
.teknobu-drawer[open] { display: flex; flex-direction: column; }
.teknobu-drawer::backdrop { background: #0b071cb0; backdrop-filter: blur(5px); }
body:has(.teknobu-drawer[open]) { overflow: hidden; }

.teknobu-drawer-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: max(17px, env(safe-area-inset-top)) 12px 16px 20px;
  border-bottom: 1px solid var(--border);
}
.teknobu-drawer-brand { min-width: 0; display: flex; align-items: center; gap: 12px; }
.teknobu-drawer-brand img { width: 60px; height: 60px; flex: 0 0 auto; }
.teknobu-drawer-brand > span { min-width: 0; display: grid; gap: 4px; }
.teknobu-drawer-brand strong { font-size: 23px; line-height: 1.08; letter-spacing: -.045em; text-transform: uppercase; }
.teknobu-drawer-brand small { color: var(--text-muted); font-size: 10px; font-weight: 750; text-transform: uppercase; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.teknobu-drawer #closeDrawer {
  display: grid;
  place-items: center;
  width: 49px;
  height: 49px;
  flex: 0 0 auto;
  border: 1px solid var(--border);
  border-radius: 17px;
  background: var(--bg-alt);
  color: var(--text-muted);
}
.teknobu-drawer #closeDrawer svg { width: 20px; height: 20px; }

.teknobu-drawer-links {
  flex: 1 1 auto;
  min-height: 0;
  padding: 9px 12px 14px;
  display: flex;
  flex-direction: column;
  gap: 9px;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-width: thin;
}
.teknobu-drawer-links a {
  display: grid;
  grid-template-columns: 44px minmax(0,1fr) 15px;
  align-items: center;
  min-height: 65px;
  gap: 12px;
  padding: 8px 11px;
  border: 1px solid var(--border);
  border-radius: 17px;
  background: color-mix(in srgb, var(--bg-alt) 64%, var(--card-bg));
  color: var(--text);
}
.teknobu-drawer-links .teknobu-premium-icon { width: 44px; height: 44px; border-radius: 13px; }
.teknobu-drawer-links .teknobu-premium-icon svg { width: 19px; height: 19px; }
.teknobu-drawer-label { font-size: 14px; font-weight: 800; overflow-wrap: anywhere; }
.teknobu-drawer-chevron { display: grid; place-items: center; color: var(--text-muted); opacity: .7; }
.teknobu-drawer-chevron svg { width: 15px; height: 15px; }
.teknobu-drawer-links a:is(:hover,[aria-current="page"]) {
  background: color-mix(in srgb, var(--icon-violet) 13%, var(--card-bg));
  border-color: color-mix(in srgb, var(--icon-violet) 42%, var(--border));
  color: var(--icon-violet);
}
.teknobu-drawer-links a[aria-current="page"] .teknobu-premium-icon { color: #fff; background: linear-gradient(140deg,#9061d4,#b63993); }
.teknobu-drawer-footer {
  padding: 13px 14px max(9px, env(safe-area-inset-bottom));
  border-top: 1px solid var(--border);
  color: var(--text-muted);
}
.teknobu-drawer-theme-row { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-bottom: 8px; }
.teknobu-drawer-theme-row :is(span,button) { display: inline-flex; align-items: center; gap: 7px; font-size: 12px; font-weight: 750; }
.teknobu-drawer-theme-row button { min-height: 44px; padding: 0 12px; border: 1px solid var(--border); border-radius: 13px; color: var(--text); }
.teknobu-drawer-theme-row svg { width: 18px; height: 18px; }
.teknobu-drawer-footer small { font-size: 10px; }
