:root {
  --vestti-header-offset: 112px;
  --vestti-motion-dur: 0.32s;
  --vestti-motion-ease: cubic-bezier(0.22, 1, 0.36, 1);
  --primary-color: #F85A5A;
}

body.vestti-app.vestti-base-theme {
  background: #f5f5f7;
  color: #1d1d1f;
}

html.dark body.vestti-app.vestti-base-theme {
  background: #000000;
  color: #f5f5f7;
}

.vestti-splash-screen {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: grid;
  place-items: center;
  overflow: hidden;
  background: rgba(3, 11, 31, 0.22);
  backdrop-filter: blur(30px) saturate(140%);
  -webkit-backdrop-filter: blur(30px) saturate(140%);
  opacity: 1;
  visibility: visible;
  will-change: opacity;
  transition: opacity 0.42s var(--vestti-motion-ease), visibility 0.42s step-end;
}

.vestti-splash-screen.is-hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.vestti-splash-screen img {
  width: auto;
  height: 64px;
  max-width: 70vw;
  object-fit: contain;
  filter: none;
  animation: none;
  position: relative;
  z-index: 2;
}

.vestti-splash-screen[data-splash-context="store"] {
  background: rgba(8, 15, 30, 0.28);
}

.vestti-splash-screen[data-splash-context="store"]::before {
  content: "";
  position: absolute;
  inset: -16%;
  background-image: var(--vestti-splash-bg-image, none);
  background-size: cover;
  background-position: center;
  filter: blur(42px) saturate(1.08);
  transform: scale(1.25);
  opacity: 0.92;
}

.vestti-splash-screen[data-splash-context="store"]::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at center, rgba(15, 23, 42, 0.08) 0%, rgba(15, 23, 42, 0.44) 100%);
}

.vestti-splash-screen[data-splash-context="store"] img {
  width: 98px;
  height: 98px;
  max-width: 30vw;
  border-radius: 999px;
  border: 2px solid rgba(255, 255, 255, 0.86);
  box-shadow: 0 16px 36px -22px rgba(2, 6, 23, 0.9);
}

#vestti-fixed-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 110;
  width: 100%;
  background: #ffffff;
  border-bottom: 1px solid #d4deeb;
  box-shadow: none;
}

#vestti-fixed-header .vh-container {
  width: min(1240px, 100%);
  height: 74px;
  margin: 0 auto;
  padding: 0 22px;
  display: flex;
  align-items: center;
  gap: 14px;
}

#vestti-fixed-header .vh-logo-link {
  flex: 0 0 auto;
  height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

#vestti-fixed-header .vh-logo-link img {
  display: block;
  width: auto;
  height: 30px;
  max-width: none;
}

#vestti-fixed-header .vh-search-slot {
  flex: 1 1 auto;
  min-width: 0;
  display: flex;
  align-items: center;
}

#vestti-fixed-header .vh-search-form {
  width: 100%;
  margin: 0;
}

#vestti-fixed-header .vh-search-shell {
  width: 100%;
  height: 44px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 14px;
  border: 1px solid #d5deea;
  border-radius: 999px;
  background: #f8fafc;
  margin-top: 2px;
}

#vestti-fixed-header .vh-search-shell i {
  flex: 0 0 auto;
  font-size: 18px;
  color: #7b8798;
}

#vestti-fixed-header .vh-search-input {
  width: 100%;
  min-width: 0;
  height: 100%;
  border: 0;
  background: transparent;
  box-shadow: none;
  outline: none;
  padding: 0;
  color: #1f2937;
  font-size: 15px;
  line-height: 1.2;
}

#vestti-fixed-header .vh-search-input::placeholder {
  color: #7d8899;
}

#vestti-fixed-header .vh-search-input:focus {
  border: 0;
  background: transparent;
  box-shadow: none;
  outline: none;
}

#vestti-fixed-header .vh-actions {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  gap: 8px;
  height: 44px;
}

#vestti-fixed-header .vh-mobile-only {
  display: none !important;
}

#vestti-fixed-header .vh-announce-btn {
  height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 0 18px;
  border-radius: 999px;
  border: 0;
  background: #ff8f7f;
  color: #2b1712;
  font-size: 14px;
  font-weight: 600;
  white-space: nowrap;
  box-shadow: 0 12px 26px -22px rgba(243, 111, 90, 0.92);
  transition: background-color var(--vestti-motion-dur) var(--vestti-motion-ease), color var(--vestti-motion-dur) var(--vestti-motion-ease), transform var(--vestti-motion-dur) var(--vestti-motion-ease), box-shadow var(--vestti-motion-dur) var(--vestti-motion-ease);
}

#vestti-fixed-header .vh-announce-btn:hover {
  color: #2b1712;
  background: #ff7d6a;
  transform: translateY(-1px);
  box-shadow: 0 15px 30px -22px rgba(243, 111, 90, 1);
}

#vestti-fixed-header .vh-icon-link {
  position: relative;
  width: 40px;
  height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #1f2937;
  border-radius: 12px;
  transition: background-color var(--vestti-motion-dur) var(--vestti-motion-ease), color var(--vestti-motion-dur) var(--vestti-motion-ease), transform var(--vestti-motion-dur) var(--vestti-motion-ease);
}

#vestti-fixed-header .vh-icon-link:hover {
  color: #1f2937;
  background: #f3f6fb;
  transform: translateY(-1px);
}

#vestti-fixed-header .vh-icon-link i {
  font-size: 23px;
  line-height: 1;
}

#vestti-fixed-header .vh-profile-avatar {
  width: 30px;
  height: 30px;
  border-radius: 999px;
  object-fit: cover;
  border: 1px solid rgba(190, 203, 221, 0.88);
  display: block;
}

#vestti-fixed-header .vh-unread-badge {
  position: absolute;
  top: 3px;
  right: 1px;
  min-width: 16px;
  height: 16px;
  border-radius: 999px;
  padding: 0 4px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #ef4444;
  border: 1px solid #ffffff;
  color: #ffffff;
  font-size: 9px;
  font-weight: 700;
  line-height: 1;
}

#vestti-fixed-header .vh-unread-badge.is-hidden {
  display: none;
}

#vestti-fixed-header .vh-secondary {
  border-top: 1px solid rgba(212, 222, 235, 0.8);
}

#vestti-fixed-header .vh-secondary-scroll {
  width: min(1240px, 100%);
  margin: 0 auto;
  min-height: 38px;
  padding: 3px 22px;
  display: flex;
  align-items: center;
  gap: 8px;
  overflow-x: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

#vestti-fixed-header .vh-secondary-scroll::-webkit-scrollbar {
  display: none;
}

@media (min-width: 761px) {
  #vestti-fixed-header {
    background: rgba(255, 255, 255, 0.78);
    border-bottom: 1px solid rgba(212, 222, 235, 0.78);
    box-shadow: 0 12px 26px -24px rgba(15, 23, 42, 0.5);
    backdrop-filter: saturate(180%) blur(14px);
    -webkit-backdrop-filter: saturate(180%) blur(14px);
  }

  #vestti-fixed-header .vh-container {
    align-items: center;
  }

  #vestti-fixed-header .vh-search-shell {
    margin-top: 1px;
    border-color: rgba(190, 203, 221, 0.88);
    background: rgba(248, 250, 252, 0.9);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.84);
  }

  #vestti-fixed-header .vh-actions {
    align-items: center;
  }

  #vestti-fixed-header .vh-secondary {
    background: rgba(255, 255, 255, 0.58);
    border-top: 1px solid rgba(212, 222, 235, 0.72);
  }

  #vestti-fixed-header .vh-secondary-scroll {
    min-height: 39px;
    gap: 10px;
  }

  #vestti-fixed-header .vh-nav-link {
    min-height: 31px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 0 12px;
    border-radius: 999px;
    border: 1px solid #E5E7EB;
    color: #333333;
    background: #ffffff;
    transition: background-color 0.25s var(--vestti-motion-ease), border-color 0.25s var(--vestti-motion-ease), color 0.25s var(--vestti-motion-ease), transform 0.25s var(--vestti-motion-ease), box-shadow 0.25s var(--vestti-motion-ease);
  }

  #vestti-fixed-header .vh-nav-link i,
  #vestti-fixed-header .vh-nav-link svg {
    color: currentColor;
    stroke: currentColor;
  }

  #vestti-fixed-header .vh-nav-link:not(.is-active):hover {
    color: #1f2937;
    background: #ffffff;
    border-color: var(--primary-color);
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.12);
    transform: translateY(-1px);
  }

  #vestti-fixed-header .vh-nav-link.is-active {
    color: #ffffff;
    background: var(--primary-color);
    border-color: transparent;
    box-shadow: none;
  }
}

@media (max-width: 760px) {
  :root {
    --vestti-header-offset: 56px;
  }

  #vestti-fixed-header {
    background: rgba(255, 255, 255, 0.78);
    border-bottom: 1px solid rgba(212, 222, 235, 0.78);
    box-shadow: 0 12px 26px -24px rgba(15, 23, 42, 0.5);
    backdrop-filter: saturate(180%) blur(14px);
    -webkit-backdrop-filter: saturate(180%) blur(14px);
  }

  #vestti-fixed-header .vh-container {
    height: 56px;
    padding: 0 12px;
    gap: 8px;
    align-items: center;
  }

  #vestti-fixed-header .vh-logo-link {
    height: 36px;
  }

  #vestti-fixed-header .vh-logo-link img {
    height: 24px;
  }

  #vestti-fixed-header .vh-search-shell {
    height: 38px;
    padding: 0 11px;
    margin-top: 1px;
    border-color: rgba(190, 203, 221, 0.88);
    background: rgba(248, 250, 252, 0.9);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.84);
  }

  #vestti-fixed-header .vh-search-shell i {
    font-size: 16px;
  }

  #vestti-fixed-header .vh-search-input {
    font-size: 14px;
  }

  #vestti-fixed-header .vh-actions {
    gap: 2px;
    height: 40px;
    align-items: center;
    margin-left: auto;
  }

  #vestti-fixed-header .vh-icon-link {
    width: 40px;
    height: 40px;
  }

  #vestti-fixed-header .vh-desktop-only {
    display: none !important;
  }

  #vestti-fixed-header .vh-mobile-only {
    display: inline-flex !important;
  }

  #vestti-fixed-header .vh-secondary {
    display: none !important;
  }
}

/* ================================================= */
/* CLEAN HEADER REFRESH                              */
/* ================================================= */

:root {
  --vestti-header-offset: 104px;
}

#vestti-fixed-header {
  background: #ffffff;
  border-bottom: 1px solid #dee4ed;
  box-shadow: 0 10px 18px -22px rgba(15, 23, 42, 0.4);
}

#vestti-fixed-header .vh-container {
  width: min(1220px, 100%);
  height: 68px;
  padding: 0 18px;
  gap: 12px;
}

#vestti-fixed-header .vh-logo-link {
  height: 38px;
}

#vestti-fixed-header .vh-logo-link img {
  height: 28px;
}

#vestti-fixed-header .vh-search-shell {
  height: 40px;
  margin-top: 0;
  border-color: #d7e0ec;
  background: #f7f8fa;
  box-shadow: none;
}

#vestti-fixed-header .vh-search-shell i {
  font-size: 16px;
  color: #748196;
}

#vestti-fixed-header .vh-search-input {
  font-size: 14px;
}

#vestti-fixed-header .vh-actions {
  height: 40px;
  gap: 6px;
}

#vestti-fixed-header .vh-announce-btn {
  height: 40px;
  padding: 0 14px;
  border: 1px solid rgba(239, 138, 116, 0.48);
  background: #fff5f2;
  color: #000000;
  box-shadow: none;
}

#vestti-fixed-header .vh-announce-btn:hover {
  background: #ffece6;
  color: #000000;
  transform: none;
  box-shadow: none;
}

#vestti-fixed-header .vh-icon-link {
  width: 38px;
  height: 40px;
  border-radius: 10px;
  color: #334155;
}

#vestti-fixed-header .vh-icon-link:hover {
  color: #1f2937;
  background: #f3f5f8;
  transform: none;
}

#vestti-fixed-header .vh-icon-link i {
  font-size: 21px;
}

#vestti-fixed-header .vh-secondary {
  border-top: 1px solid rgba(222, 228, 237, 0.85);
}

#vestti-fixed-header .vh-secondary-scroll {
  width: min(1220px, 100%);
  min-height: 36px;
  padding: 3px 18px;
  gap: 8px;
}

#vestti-fixed-header .vh-nav-link {
  min-height: 30px;
  padding: 0 11px;
  border: 1px solid #e1e7f0;
  background: #ffffff;
  color: #4b5563;
  font-size: 12px;
  box-shadow: none;
  transform: none;
}

#vestti-fixed-header .vh-nav-link:not(.is-active):hover {
  background: #f7f8fa;
  border-color: #d3dbe8;
  color: #1f2937;
  box-shadow: none;
  transform: none;
}

#vestti-fixed-header .vh-nav-link.is-active {
  color: #ffffff;
  background: #111827;
  border-color: #111827;
}

@media (min-width: 761px) {
  #vestti-fixed-header {
    background: #ffffff;
    border-bottom: 1px solid #dee4ed;
    box-shadow: 0 10px 18px -22px rgba(15, 23, 42, 0.4);
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }

  #vestti-fixed-header .vh-secondary {
    background: #ffffff;
    border-top: 1px solid rgba(222, 228, 237, 0.85);
  }
}

@media (max-width: 760px) {
  :root {
    --vestti-header-offset: 56px;
  }

  #vestti-fixed-header {
    background: #ffffff;
    border-bottom: 1px solid #dee4ed;
    box-shadow: 0 8px 16px -20px rgba(15, 23, 42, 0.5);
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }

  #vestti-fixed-header .vh-container {
    height: 56px;
    padding: 0 10px;
    gap: 6px;
  }

  #vestti-fixed-header .vh-logo-link {
    height: 34px;
  }

  #vestti-fixed-header .vh-logo-link img {
    height: 23px;
  }

  #vestti-fixed-header .vh-search-shell {
    height: 36px;
    padding: 0 10px;
  }

  #vestti-fixed-header .vh-actions {
    height: 38px;
    gap: 2px;
  }

  #vestti-fixed-header .vh-icon-link {
    width: 38px;
    height: 38px;
  }
}

/* ================================================= */
/* GLASS HEADER OVERRIDE                             */
/* ================================================= */

#vestti-fixed-header {
  background: rgba(255, 255, 255, 0.72) !important;
  border-bottom: 1px solid rgba(212, 222, 235, 0.78) !important;
  box-shadow: 0 12px 24px -24px rgba(15, 23, 42, 0.5) !important;
  backdrop-filter: blur(18px) saturate(1.18) !important;
  -webkit-backdrop-filter: blur(18px) saturate(1.18) !important;
}

#vestti-fixed-header .vh-secondary {
  background: rgba(255, 255, 255, 0.56);
}

@media (max-width: 760px) {
  #vestti-fixed-header {
    background: rgba(255, 255, 255, 0.74) !important;
  }
}
