/* Header — glass morphism */
    .site-header {
      position: fixed;
      inset: 0 0 auto;
      z-index: 50;
      width: 100%;
      max-width: 100%;
      height: var(--header-h);
      padding-left: env(safe-area-inset-left);
      padding-right: env(safe-area-inset-right);
      overflow: visible;
      background: rgba(255, 255, 255, 0.03);
      backdrop-filter: blur(18px) saturate(160%);
      -webkit-backdrop-filter: blur(18px) saturate(160%);
      box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
    }

    .header-inner {
      height: 100%;
      width: 100%;
      max-width: 100%;
      min-width: 0;
      display: flex;
      align-items: stretch;
      gap: 8px;
    }

    .brand {
      display: flex;
      align-items: center;
      padding: 0 48px;
      flex-shrink: 0;
    }

    .brand img {
      display: block;
      height: 58px;
      width: auto;
      max-width: 220px;
      object-fit: contain;
    }

    .nav {
      display: flex;
      align-items: center;
      margin-left: auto;
      flex-shrink: 0;
      padding-right: 48px;
      font-size: 15px;
      font-weight: 500;
      letter-spacing: 0.02em;
      overflow: visible;
    }

    .nav-link {
      display: flex;
      align-items: center;
      height: 18px;
      padding: 0 16px;
      color: #fff;
      white-space: nowrap;
      border-right: 1px solid rgba(255, 255, 255, 0.28);
    }

    .nav > .nav-link:first-child,
    .nav > .nav-item:first-child .nav-link {
      font-weight: 600;
    }

    .nav-link--last,
    .nav-item--last .nav-link {
      border-right: 0;
    }

    .nav-link.is-accent { color: var(--lavender); }

    .nav-link:hover { color: var(--gold); opacity: 1; }

    .nav-item {
      position: relative;
      display: flex;
      align-items: center;
      height: 100%;
    }

    .nav-item--has-submenu {
      position: relative;
    }

    /* Invisible bridge so the pointer can reach the dropdown without closing it */
    .nav-item--has-submenu::after {
      content: '';
      position: absolute;
      left: 0;
      right: 0;
      top: 100%;
      height: 8px;
    }

    .nav-item--has-submenu .nav-link {
      gap: 8px;
      padding-right: 16px;
    }

    .nav-submenu-chevron {
      display: inline-flex;
      align-items: center;
      justify-content: center;
      width: 16px;
      height: 16px;
      flex-shrink: 0;
      color: #fff;
      opacity: 1;
      transition: transform .15s ease, color .15s ease;
    }

    .nav-submenu-chevron svg {
      width: 16px;
      height: 16px;
    }

    .nav-item--has-submenu:hover .nav-link,
    .nav-item--has-submenu:focus-within .nav-link {
      color: var(--gold);
    }

    .nav-item--has-submenu:hover .nav-submenu-chevron,
    .nav-item--has-submenu:focus-within .nav-submenu-chevron {
      color: var(--gold);
      transform: rotate(180deg);
    }

    .nav-submenu {
      position: absolute;
      top: calc(100% + 8px);
      left: 0;
      z-index: 60;
      list-style: none;
      min-width: 280px;
      width: max-content;
      max-width: calc(100vw - 24px);
      margin: 0;
      padding: 8px 0;
      border: 1px solid var(--line);
      border-color: var(--line);
      background: rgba(33, 11, 44, 0.72);
      backdrop-filter: blur(18px) saturate(160%);
      -webkit-backdrop-filter: blur(18px) saturate(160%);
      box-shadow: 0 16px 40px rgba(0, 0, 0, 0.35);
      opacity: 0;
      visibility: hidden;
      pointer-events: none;
      transform: translateY(4px);
      transition: opacity .15s ease, transform .15s ease, visibility .15s ease;
      overflow: visible;
    }

    .nav-item--last .nav-submenu {
      left: auto;
      right: 0;
    }

    .nav-item--has-submenu:hover .nav-submenu,
    .nav-item--has-submenu:focus-within .nav-submenu {
      opacity: 1;
      visibility: visible;
      pointer-events: auto;
      transform: translateY(0);
    }

    .nav-submenu-link {
      display: block;
      padding: 10px 16px;
      color: #d7e6ea;
      font-size: 14px;
      font-weight: 400;
      line-height: 1.35;
      white-space: nowrap;
    }

    .nav-submenu-link:hover {
      color: var(--gold);
      background: rgba(188, 150, 230, 0.1);
    }

    .header-actions {
      display: flex;
      align-items: stretch;
      flex-shrink: 0;
    }

    .menu-btn {
      display: none;
      width: 56px;
      padding: 0;
      border: 0 !important;
      background: transparent !important;
      box-shadow: none !important;
      outline: none;
      color: #fff;
      -webkit-appearance: none;
      appearance: none;
    }

    .menu-btn:hover,
    .menu-btn:focus,
    .menu-btn:focus-visible,
    .menu-btn:active {
      border: 0 !important;
      background: transparent !important;
      box-shadow: none !important;
      outline: none;
      color: #fff;
    }

    .menu-btn svg {
      stroke: currentColor;
    }
