/* Final shared-header refinement; presentation only, no route or role changes. */
.header {
  height: 88px;
  border-bottom: 1px solid rgba(100, 202, 246, .17);
  background: linear-gradient(110deg, rgba(11, 20, 31, .97), rgba(8, 15, 24, .94) 65%, rgba(13, 27, 39, .97));
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: 0 8px 30px rgba(0, 0, 0, .22), inset 0 1px rgba(206, 239, 255, .04);
}
.header .header-in { gap: 22px; }
.header .brand { gap: 12px; text-decoration: none; }
.header .brand-mark {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 58px;
  height: 46px;
  flex: 0 0 58px;
  border: 1px solid rgba(79, 197, 255, .32);
  border-radius: 12px;
  background: linear-gradient(140deg, rgba(23, 55, 76, .75), rgba(10, 21, 33, .8));
  box-shadow: inset 0 1px rgba(183, 232, 255, .08), 0 0 20px rgba(0, 168, 255, .09);
}
.header .brand-mark img { width: 46px; height: 30px; object-fit: contain; }
.header .brand-copy { font-size: 10px; line-height: 1.25; letter-spacing: .045em; color: #edf7ff; }
.header .brand-copy i { color: #57c9fa; font-size: 8px; letter-spacing: .14em; }
.header .brand:hover .brand-mark { border-color: #68c9ef; }
.header .brand:focus-visible { outline: 3px solid #8ee1ff; outline-offset: 5px; border-radius: 8px; }
.header #site-navigation {
  flex: 0 1 auto;
  align-items: center;
  justify-content: center;
  gap: 4px;
  margin-left: auto;
  padding: 5px;
  border: 1px solid rgba(138, 183, 218, .15);
  border-radius: 15px;
  background: rgba(2, 9, 16, .46);
  box-shadow: inset 0 1px rgba(196, 222, 247, .035);
}
.header #site-navigation > a,
.header #site-navigation .nav-dropdown-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 14px;
  border: 1px solid transparent;
  border-radius: 10px;
  color: #b7c6d5;
  font: 600 12px/1.3 Inter, Arial, sans-serif;
  letter-spacing: .01em;
  text-transform: none;
  white-space: nowrap;
  transition: color .16s ease, background .16s ease, border-color .16s ease;
}
.header #site-navigation > a::after { display: none; }
.header #site-navigation .ccc-primary-icon {
  width: 16px;
  height: 16px;
  flex: 0 0 16px;
  color: #91adbf;
}
.header #site-navigation > a:hover,
.header #site-navigation .nav-dropdown-toggle:hover {
  background: rgba(133, 186, 220, .08);
  border-color: rgba(152, 208, 244, .12);
  color: #f3f9ff;
}
.header #site-navigation > a.active,
.header #site-navigation .nav-dropdown-toggle.active {
  color: #dff7ff;
  border-color: rgba(84, 196, 247, .34);
  background: linear-gradient(135deg, rgba(18, 111, 157, .36), rgba(26, 72, 100, .28));
  box-shadow: inset 0 1px rgba(177, 230, 255, .08), 0 2px 10px rgba(0, 143, 220, .09);
}
.header #site-navigation > a.active .ccc-primary-icon { color: #69d5ff; }
.header #site-navigation .nav-dropdown-toggle > span:last-child { font-size: 12px; color: #77d3f9; }
.header #site-navigation > a:focus-visible,
.header #site-navigation .nav-dropdown-toggle:focus-visible { outline: 2px solid #9ce7ff; outline-offset: 2px; }
.header #site-navigation .nav-dropdown-menu {
  top: calc(100% + 15px);
  left: auto;
  right: 0;
  min-width: 222px;
  padding: 8px;
  border-radius: 14px;
  border-color: rgba(77, 188, 239, .28);
  background: #0d1823;
  box-shadow: 0 20px 48px rgba(0, 0, 0, .48);
}
.header #site-navigation .nav-dropdown-menu a {
  min-height: 44px;
  padding: 10px 12px;
  color: #c8d7e5;
  font: 500 13px/1.35 Inter, Arial, sans-serif;
  border-radius: 8px;
  letter-spacing: 0;
  text-transform: none;
}
.header #site-navigation .nav-dropdown-menu a:focus-visible { outline: 2px solid #9ce7ff; outline-offset: -2px; }
.header .header-actions { margin-left: 0; gap: 10px; }
.header .header-actions > .admin-edit-toggle {
  border: 1px solid rgba(153, 194, 222, .25);
  border-radius: 11px;
  background: rgba(122, 164, 198, .06);
  color: #bacfdf;
  box-shadow: none;
}
.header .header-actions > .admin-edit-toggle:hover { border-color: #71bee3; background: rgba(101, 177, 218, .12); }
.header .ccc-account-trigger {
  border-radius: 28px;
  padding: 5px 12px 5px 6px;
  border-color: rgba(77, 196, 246, .52);
  background: linear-gradient(130deg, #183749, #102430);
  box-shadow: inset 0 1px rgba(175, 232, 255, .1), 0 4px 18px rgba(0, 126, 180, .12);
}
.header .ccc-account-avatar { border-color: rgba(106, 219, 255, .62); background: #16445a; }
.header .ccc-account-panel { border-radius: 16px; border-color: rgba(101, 196, 237, .31); background: #0d1823; }
.header .ccc-account-menu[open] > .ccc-account-trigger { border-color: #8bdfff; }
.header .mobile-nav-toggle { border-radius: 11px; background: #102130; }
.header .ccc-account-trigger:focus:not(:focus-visible),
.header .mobile-nav-toggle:focus:not(:focus-visible),
.header .admin-edit-toggle:focus:not(:focus-visible) { outline: none; }
@media (max-width: 1180px) {
  .header { height: auto; }
  .header .header-in { min-height: 80px; height: auto; gap: 14px; padding-block: 10px; }
  .header .mobile-nav-toggle { display: inline-flex; align-items: center; justify-content: center; margin-left: auto; }
  .header #site-navigation {
    display: none;
    position: absolute;
    top: calc(100% + 8px);
    left: 18px;
    right: 18px;
    margin: 0;
    padding: 10px;
    border-radius: 16px;
    flex-wrap: wrap;
    justify-content: flex-start;
    gap: 6px;
    background: #0d1823;
    box-shadow: 0 18px 40px rgba(0, 0, 0, .42);
  }
  .header #site-navigation.open { display: flex; }
  .header #site-navigation .nav-dropdown { flex-wrap: wrap; }
  .header #site-navigation .nav-dropdown-menu {
    position: static;
    flex: 1 0 100%;
    min-width: 0;
    margin: 6px 0 0;
    padding: 6px;
    background: #101f2c;
    box-shadow: none;
  }
}
@media (max-width: 820px) {
  .header .header-actions > .admin-edit-toggle { width: 44px; padding: 0; }
  .header .header-actions > .admin-edit-toggle b { display: none; }
}
@media (max-width: 600px) {
  .header .header-in { min-height: 70px; gap: 8px; padding: 8px 12px; }
  .header .brand { gap: 8px; }
  .header .brand-mark { width: 48px; height: 42px; flex-basis: 48px; border-radius: 10px; }
  .header .brand-mark img { width: 38px; height: 26px; }
  .header .brand-copy { font-size: 8px; }
  .header .brand-copy i { font-size: 7px; }
  .header .header-actions { gap: 6px; }
  .header .ccc-account-trigger { gap: 5px; padding: 5px 8px 5px 5px; }
  .header #site-navigation { left: 12px; right: 12px; }
}
@media (max-width: 430px) {
  .header .brand-copy { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .header #site-navigation > a,
  .header #site-navigation .nav-dropdown-toggle { transition: none; }
}
