.site-header {
  max-width: 1180px;
  min-height: 82px;
  padding: 0 24px;
  border: 1px solid rgba(240, 207, 221, .92);
  border-top: 0;
  border-radius: 0 0 20px 20px;
  background: rgba(255, 250, 252, .94);
  box-shadow: 0 5px 18px rgba(129, 60, 94, .06);
}

.site-header .brand { color: #6f294a; }
.site-header .brand-mark { width: 48px; height: 48px; border: 1px solid #f3c9da; border-radius: 16px; background: linear-gradient(135deg, #fff, #ffe8f1); box-shadow: 0 7px 16px rgba(189, 66, 123, .12); }

.site-navigation { display: flex; align-items: center; gap: 10px; margin-left: auto; }
.site-header .site-navigation > .site-nav-link {
  display: inline-flex;
  min-height: 40px;
  align-items: center;
  padding: 8px 13px;
  border: 1px solid transparent;
  border-radius: 999px;
  color: #765d69;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  transition: background .2s, border-color .2s, color .2s;
}

.site-header .site-navigation > .site-nav-link:hover,
.site-header .site-navigation > .site-nav-link.is-active {
  border-color: #eda9c5;
  background: #ffe8f1;
  color: #ad3769;
}

.header-actions { display: flex; align-items: center; gap: 10px; margin-left: 20px; }
.header-avatar {
  display: grid;
  width: 40px;
  height: 40px;
  place-items: center;
  border: 2px solid #fff1f6;
  border-radius: 50%;
  background: linear-gradient(135deg, #ee5b91, #a860da);
  box-shadow: 0 4px 12px rgba(179, 61, 128, .2);
  color: #fff;
  font-size: 14px;
  font-weight: 800;
  text-decoration: none;
  transition: transform .2s, box-shadow .2s;
}

.header-avatar:hover,
.header-avatar.is-active { transform: translateY(-1px); box-shadow: 0 7px 16px rgba(179, 61, 128, .28); }
.login-button { min-height: 40px; padding: 9px 15px; }

.header-actions .install-app-button:not([hidden]) {
  display: inline-flex;
  min-height: 40px;
  padding: 8px 13px;
  font-size: 12px;
}

.mobile-bottom-navigation { display: none; }

@media (max-width: 820px) {
  .site-header .site-navigation > .orders-navigation-link { display: none; }
}

@media (max-width: 640px) {
  .site-header {
    position: sticky;
    z-index: 30;
    top: 0;
    width: 100%;
    min-height: 66px;
    padding: 10px 16px;
    background: rgba(255, 250, 252, .97);
    border-right: 0;
    border-left: 0;
    border-radius: 0;
    box-shadow: 0 4px 14px rgba(129, 60, 94, .08);
  }

  .site-header .brand { flex: 1 1 auto; min-width: 0; }
  .site-header .brand-mark { width: 36px; height: 36px; border-radius: 12px; }
  .site-navigation { flex: 0 0 auto; gap: 0; margin-left: 8px; }
  .site-header .site-navigation > .site-nav-link { min-height: 38px; padding: 8px 10px; font-size: 12px; }
  .header-actions { flex: 0 0 auto; gap: 8px; margin-left: 8px; }
  .header-actions .install-app-button:not([hidden]) { padding: 8px 10px; font-size: 11px; }
  .header-avatar { width: 38px; height: 38px; font-size: 13px; }
  .login-button { min-height: 38px; padding: 8px 12px; font-size: 12px; }

  main { padding-bottom: 78px; }
  .site-footer { margin-bottom: 68px; }

  .mobile-bottom-navigation {
    position: fixed;
    z-index: 40;
    right: 0;
    bottom: 0;
    left: 0;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    min-height: 65px;
    padding: 6px max(12px, env(safe-area-inset-right)) calc(6px + env(safe-area-inset-bottom)) max(12px, env(safe-area-inset-left));
    border-top: 1px solid #efd4df;
    background: rgba(255, 255, 255, .97);
    box-shadow: 0 -6px 20px rgba(126, 57, 91, .1);
  }

  .mobile-bottom-navigation a {
    display: grid;
    justify-items: center;
    gap: 2px;
    padding: 3px 2px;
    color: #88717d;
    font-size: 10px;
    font-weight: 700;
    line-height: 1.25;
    text-align: center;
    text-decoration: none;
  }

  .mobile-bottom-navigation svg {
    width: 22px;
    height: 22px;
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 1.8;
  }

  .mobile-bottom-navigation a.is-active { color: #d3427c; }
  .mobile-bottom-navigation a.is-active svg { stroke-width: 2.25; }
}

@media (max-width: 360px) {
  .site-header { padding-right: 11px; padding-left: 11px; }
  .header-actions { gap: 5px; }
  .header-actions .install-app-button:not([hidden]) { padding: 8px 8px; }
}

.site-header .brand-mark img { transform: scale(1.06); }

.header-actions .install-app-button:not([hidden]) {
  border-color: #e99fbd;
  background: linear-gradient(115deg, #fff0f6, #fff 48%, #f3e7ff);
  color: #aa3768;
  box-shadow: 0 7px 16px rgba(190, 66, 126, .15);
  animation: shortcut-pink-pulse 2.4s ease-in-out infinite;
}

@keyframes shortcut-pink-pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(220, 74, 137, .22), 0 7px 16px rgba(190, 66, 126, .15); transform: translateY(0); }
  50% { box-shadow: 0 0 0 7px rgba(220, 74, 137, 0), 0 10px 20px rgba(190, 66, 126, .22); transform: translateY(-1px); }
}

@media (prefers-reduced-motion: reduce) {
  .header-actions .install-app-button:not([hidden]) { animation: none; }
}
