.hello-offer {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 650;
  background: var(--color-primary);
  color: #fff;
  transform: translateY(-110%);
  opacity: 0;
  transition: transform 0.35s ease, opacity 0.35s ease;
}
.hello-offer.is-visible {
  transform: translateY(0);
  opacity: 1;
}
.hello-offer-inner {
  max-width: 100%;
  margin: 0 auto;
  min-height: 50px;
  padding: 0.55rem clamp(1rem, 5vw, 5%);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.9rem;
  position: relative;
}
.hello-offer-main {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2rem;
  text-align: center;
  flex-wrap: wrap;
}
.hello-offer-text {
  font-size: 17px;
  font-weight: 400;
  letter-spacing: 0.01em;
  line-height: 1.25;
  margin: 0;
}
.hello-offer-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: none;
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  font-family: inherit;
  text-decoration: none;
  border-radius: 999px;
  background: #fff;
  color: var(--color-primary);
  font-size: 0.78rem;
  font-weight: 800;
  padding: 0.45rem 0.82rem;
  white-space: nowrap;
}
.hello-offer-btn:hover {
  background: var(--color-surface-subtle, #f1f5f9);
}
.hello-offer-close {
  position: absolute;
  right: 20px;
  top: 50%;
  transform: translateY(-50%);
  width: 28px;
  height: 28px;
  border: none;
  border-radius: 999px;
  background: rgb(255 255 255 / 0.16);
  color: #fff;
  font-size: 16px;
  line-height: 1;
  cursor: pointer;
  opacity: 0.78;
}
.hello-offer-close:hover {
  opacity: 1;
  background: rgb(255 255 255 / 0.24);
}

.offer-toast {
  position: fixed;
  top: calc(env(safe-area-inset-top, 0px) + 80px);
  right: 1rem;
  z-index: 900;
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  min-width: 220px;
  max-width: min(24rem, calc(100vw - 1.5rem));
  padding: 0.7rem 0.78rem;
  border-radius: 12px;
  border: 1px solid rgb(34 197 94 / 0.38);
  background: linear-gradient(135deg, rgb(236 253 245 / 0.96), rgb(220 252 231 / 0.96));
  box-shadow: 0 16px 30px rgb(15 23 42 / 0.18);
  color: #14532d;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  opacity: 0;
  transform: translateX(calc(100% + 1rem));
  pointer-events: none;
  overflow: visible;
  isolation: isolate;
  transition: opacity 0.42s cubic-bezier(.22,.61,.36,1), transform 0.42s cubic-bezier(.22,.61,.36,1);
}
.offer-toast.is-visible {
  opacity: 1;
  transform: translateX(0);
  pointer-events: auto;
}
.offer-toast-confetti {
  position: absolute;
  inset: -16px;
  pointer-events: none;
  z-index: -1;
}
.offer-toast-confetti span {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 4px;
  height: 4px;
  border-radius: 999px;
  opacity: 0;
  background: var(--confetti-color, #16a34a);
  transform: translate(-50%, -50%) rotate(0deg) scale(0.4);
}
.offer-toast.is-burst .offer-toast-confetti span {
  animation: toast-confetti-burst 2.35s cubic-bezier(.16,.84,.22,1) forwards;
  animation-delay: var(--confetti-delay, 0ms);
}
.offer-toast-icon {
  width: 22px;
  height: 22px;
  flex-shrink: 0;
  border-radius: 999px;
  background: #16a34a;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  box-shadow: 0 6px 14px rgb(22 163 74 / 0.35);
}
.offer-toast-icon svg {
  width: 12px;
  height: 12px;
  stroke: currentColor;
  fill: none;
  stroke-width: 3;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.offer-toast-text {
  position: relative;
  z-index: 1;
  line-height: 1.25;
}
.offer-toast-close {
  position: relative;
  z-index: 1;
  margin-left: 0.2rem;
  border: none;
  background: transparent;
  color: #166534;
  font-size: 0.95rem;
  line-height: 1;
  width: 22px;
  height: 22px;
  border-radius: 999px;
  opacity: 0.72;
  cursor: pointer;
}
.offer-toast-close:hover {
  opacity: 1;
  background: rgb(20 83 45 / 0.12);
}
@keyframes toast-confetti-burst {
  0% {
    opacity: 0;
    transform: translate(-50%, -50%) rotate(0deg) scale(0.45);
  }
  10% {
    opacity: 1;
  }
  40% {
    opacity: 1;
  }
  100% {
    opacity: 0;
    transform: translate(calc(-50% + var(--confetti-x, 0px)), calc(-50% + var(--confetti-y, 0px))) rotate(var(--confetti-r, 180deg)) scale(1);
  }
}

body.hello-offer-visible {
  padding-top: 0;
}

nav {
  transition: top 0.35s ease;
}
body.hello-offer-visible nav {
  top: 50px;
}

.logo {
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: clamp(1.5rem, 2.8vw, 1.35rem);
  font-weight: 800;
  color: var(--color-heading);
  text-decoration: none;
  letter-spacing: -0.5px;
  display: flex;
  align-items: center;
  gap: 0.2rem;
  min-width: 0;
  position: relative;
  z-index: 201;
}
.logo span {
  color: var(--color-primary);
}
.logo-icon {
  height: 28px;
  aspect-ratio: 134 / 77;
  flex-shrink: 0;
  display: block;
}
.logo-icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: left center;
  display: block;
}

.nav-links {
  display: flex;
  align-items: center;
  align-self: stretch;
  gap: 1.75rem;
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav-links li {
  display: flex;
  align-items: stretch;
}
.nav-links a {
  color: var(--color-muted);
  text-decoration: none;
  font-size: 0.88rem;
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  position: relative;
}
.nav-links a::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 3px;
  background: var(--color-primary);
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 0.2s ease;
  top: 41px;
}
.nav-links a:hover::after {
  transform: scaleX(1);
}
.nav-links a:focus-visible::after {
  transform: scaleX(1);
}
.nav-links a:hover {
  color: var(--color-heading);
}

.btn-primary {
  background: var(--color-primary);
  color: #fff !important;
  padding: 0.55rem 1.15rem;
  border-radius: 6px;
  font-weight: 700;
  font-size: 0.82rem;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: background 0.2s, transform 0.15s;
  display: inline-block;
  touch-action: manipulation;
  white-space: nowrap;
}
.btn-primary:hover {
  background: var(--color-primary-hover);
  transform: translateY(-1px);
}

.nav-right {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  flex-shrink: 0;
  position: relative;
  z-index: 201;
}
.nav-cta-short {
  display: none;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 0;
  margin: 0 -0.35rem 0 0;
  border: none;
  border-radius: 8px;
  background: transparent;
  cursor: pointer;
  flex-shrink: 0;
  touch-action: manipulation;
  color: var(--color-heading);
  position: relative;
  z-index: 201;
}
.nav-toggle:focus-visible {
  outline: 2px solid var(--color-primary);
  outline-offset: 2px;
}
.nav-toggle-bar {
  display: block;
  width: 22px;
  height: 2px;
  background: currentColor;
  border-radius: 1px;
  transition: transform 0.2s ease, opacity 0.2s ease;
}
.nav-is-open .nav-toggle-bar:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.nav-is-open .nav-toggle-bar:nth-child(2) {
  opacity: 0;
}
.nav-is-open .nav-toggle-bar:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}
.nav-backdrop {
  display: none;
  position: fixed;
  inset: 0;
  background: var(--color-overlay-scrim, rgb(15 23 42 / 0.45));
  z-index: 198;
  opacity: 0;
  transition: opacity 0.25s ease;
  pointer-events: none;
}
.nav-is-open .nav-backdrop {
  display: block;
  opacity: 1;
  pointer-events: auto;
}
body.nav-drawer-open {
  overflow: hidden;
}

@media (max-width: 992px) {
  .logo {
    font-size: clamp(1.2rem, 2.8vw, 1.35rem);
  }
  nav {
    position: fixed !important;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    z-index: 350;
  }
  body.hello-offer-visible nav {
    top: 70px;
  }
  .nav-toggle {
    display: flex;
    position: relative;
    z-index: 530;
  }
  .nav-right {
    margin-left: auto;
    margin-right: 0.2rem;
  }
  .nav-links {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    width: min(84vw, 320px);
    max-width: 320px;
    margin: 0;
    padding: calc(64px + env(safe-area-inset-top, 0px) + 0.6rem) 0 1rem;
    background: #fff;
    border-left: 1px solid var(--color-border, #e2e8f0);
    box-shadow: -8px 0 24px rgb(0 0 0 / 0.12);
    display: flex !important;
    flex-direction: column;
    gap: 0;
    z-index: 520;
    transform: translateX(100%);
    visibility: hidden;
    transition: transform 0.25s ease, visibility 0.25s;
  }
  .nav-is-open .nav-links {
    transform: translateX(0);
    visibility: visible;
  }
  body.hello-offer-visible .nav-links {
    top: 50px;
  }
  .nav-links li {
    border-bottom: 1px solid var(--color-border, #e2e8f0);
  }
  .nav-links a {
    display: block;
    padding: 1rem 1.25rem;
    font-size: 1rem;
    color: var(--color-heading);
  }
  .nav-links a::after {
    display: none;
  }
  .nav-links a:hover {
    color: var(--color-primary);
    background: var(--color-surface-muted, #f8fafc);
  }
  .nav-backdrop {
    z-index: 500;
  }
}

@media (min-width: 993px) {
  nav {
    position: sticky !important;
    top: 0;
    z-index: 600;
  }
  body.hello-offer-visible nav {
    top: 50px;
  }
}

@media (max-width: 640px) {
  .hello-offer-inner {
    min-height: 56px;
    padding-top: 0.5rem;
    padding-bottom: 0.5rem;
    padding-right: 2.4rem;
    gap: 0.65rem;
  }
  .hello-offer-main {
    gap: 0.5rem;
  }
  .hello-offer-text {
    font-size: 0.9rem;
  }
  .hello-offer-btn {
    padding: 0.42rem 0.72rem;
  }
}

@media (max-width: 380px) {
  .nav-cta-full {
    display: none;
  }
  .nav-cta-short {
    display: inline;
  }
  .btn-primary {
    padding: 0.55rem 0.85rem;
    font-size: 0.78rem;
  }
  .hello-offer-text {
    font-size: 0.82rem;
  }
}
