:root {
  --msw-navy: #071525;
  --msw-navy-2: #0d2b4a;
  --msw-accent: #e63946;
  --msw-gold: #f0b547;
  --msw-ink: #0d1b2f;
  --msw-line: #dbe5ef;
}

/* Hello bar: separat, nu atinge meniul */
.msw-hello-bar {
  position: relative;
  z-index: 999;
  overflow: hidden;
  background:
    radial-gradient(circle at 12% 10%, rgba(230,57,70,.20), transparent 18rem),
    radial-gradient(circle at 88% 50%, rgba(240,181,71,.16), transparent 14rem),
    linear-gradient(135deg, var(--msw-navy), var(--msw-navy-2));
  color: #fff;
  box-shadow: 0 10px 24px rgba(8,24,45,.16);
}
.msw-hello-bar::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.045) 1px, transparent 1px);
  background-size: 32px 32px;
  opacity: .45;
  pointer-events: none;
}
.msw-hello-inner {
  position: relative;
  z-index: 2;
  max-width: 1440px;
  margin: 0 auto;
  padding: 10px 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}
.msw-hello-text {
  display: flex;
  align-items: center;
  gap: .7rem;
  font-size: .92rem;
  line-height: 1.45;
  color: #eef5fd;
}
.msw-hello-text::before {
  content: "";
  width: 9px;
  height: 9px;
  border-radius: 999px;
  background: var(--msw-accent);
  box-shadow: 0 0 0 7px rgba(230,57,70,.16);
}
.msw-hello-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 0 17px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--msw-accent), #b51e2e);
  color: #fff !important;
  font-weight: 800;
  text-decoration: none !important;
  box-shadow: 0 12px 24px rgba(230,57,70,.22);
  transition: transform .18s ease, box-shadow .18s ease;
}
.msw-hello-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 30px rgba(230,57,70,.30);
}

/* Search bar only */
body.msw-ready #search_widget {
  position: relative;
}

body.msw-ready #search_widget form {
  position: relative;
  overflow: hidden;
  border-radius: 18px !important;
  border: 1px solid #d7e2ed !important;
  background: linear-gradient(180deg, #ffffff, #f7fbff) !important;
  box-shadow: 0 10px 24px rgba(8,24,45,.07) !important;
  transition: box-shadow .22s ease, transform .22s ease, border-color .22s ease;
}

body.msw-ready #search_widget form:hover {
  transform: translateY(-1px);
  box-shadow: 0 14px 30px rgba(8,24,45,.11) !important;
}

body.msw-ready #search_widget form:focus-within {
  border-color: #b9d3f0 !important;
  box-shadow: 0 0 0 5px rgba(68,130,215,.10), 0 18px 36px rgba(8,24,45,.10) !important;
}

body.msw-ready #search_widget form::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(120deg, rgba(230,57,70,.45), rgba(240,181,71,.55), rgba(68,130,215,.42));
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0;
  pointer-events: none;
  transition: opacity .22s ease;
}

body.msw-ready #search_widget form:focus-within::before {
  opacity: 1;
}

body.msw-ready #search_widget input[type="text"],
body.msw-ready #search_widget input[type="search"] {
  background: transparent !important;
  color: var(--msw-ink) !important;
  box-shadow: none !important;
}

body.msw-ready #search_widget input[type="text"]::placeholder,
body.msw-ready #search_widget input[type="search"]::placeholder {
  color: #98a8ba !important;
  opacity: 1;
}

body.msw-ready #search_widget.msw-typing-active form::after {
  content: "";
  position: absolute;
  right: 16px;
  top: 50%;
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: var(--msw-accent);
  box-shadow: 0 0 0 6px rgba(230,57,70,.10);
  animation: mswPulse 1.7s infinite;
  pointer-events: none;
}

@keyframes mswPulse {
  0%, 100% { transform: translateY(-50%) scale(1); opacity: .65; }
  50% { transform: translateY(-50%) scale(1.25); opacity: 1; }
}

@media (max-width: 991px) {
  .msw-hello-inner {
    flex-direction: column;
    align-items: flex-start;
    padding: 10px 16px;
  }
}
@media (max-width: 767px) {
  .msw-hello-text {
    font-size: .86rem;
  }
}
