.seg-signin-overlay {
  position: fixed;
  inset: 0;
  z-index: 20000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1.25rem;
  background: rgba(15, 23, 42, 0.45);
  box-sizing: border-box;
}

.seg-signin-overlay.is-open {
  display: flex;
}

.seg-signin-modal {
  position: relative;
  width: 100%;
  max-width: 420px;
  background: #fff;
  border-radius: 16px;
  padding: 1.75rem 1.5rem 1.35rem;
  box-shadow: 0 25px 50px -12px rgba(15, 23, 42, 0.25);
  font-family: Lato, system-ui, sans-serif;
  color: #111827;
}

.seg-signin-modal__accent {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, #3a863e, #5ba85f);
  border-radius: 16px 16px 0 0;
}

.seg-signin-modal__close {
  position: absolute;
  top: 0.65rem;
  right: 0.75rem;
  border: none;
  background: transparent;
  font-size: 1.5rem;
  line-height: 1;
  color: #9ca3af;
  cursor: pointer;
  border-radius: 6px;
  padding: 0.2rem 0.45rem;
}

.seg-signin-modal__close:hover {
  color: #374151;
  background: #f3f4f6;
}

.seg-signin-modal__eyebrow {
  margin: 0 0 0.35rem;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #3a863e;
}

.seg-signin-modal__title {
  margin: 0 0 0.5rem;
  font-family: Montserrat, sans-serif;
  font-size: 1.35rem;
  font-weight: 700;
}

.seg-signin-modal__body {
  margin: 0 0 1.15rem;
  color: #4b5563;
  font-size: 0.95rem;
  line-height: 1.45;
}

.seg-signin-modal__actions {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

.seg-signin-modal__btn {
  border: none;
  border-radius: 8px;
  padding: 0.75rem 1rem;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

.seg-signin-modal__btn--primary {
  background: #3a863e;
  color: #fff;
}

.seg-signin-modal__btn--primary:hover {
  background: #2d6b31;
}

.seg-signin-modal__btn--ghost {
  background: #f3f4f6;
  color: #374151;
}

.nav-actions {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  flex-shrink: 0;
}

.nav-link-signin {
  border: 1px solid #d1d5db !important;
  color: #374151 !important;
  background: #fff !important;
  padding: 0.45rem 0.85rem !important;
  border-radius: 0.375rem !important;
  font-weight: 600 !important;
  white-space: nowrap !important;
  flex-shrink: 0;
}

.nav-link-signin:hover {
  border-color: #3a863e !important;
  color: #3a863e !important;
  background: #f0f9f0 !important;
}

.nav-account-badge {
  appearance: none;
  border: 1px solid #3a863e;
  background: #f0f9f0;
  color: #1f4b2d;
  padding: 0.45rem 0.85rem;
  border-radius: 0.375rem;
  font: inherit;
  font-weight: 700;
  font-size: 0.875rem;
  cursor: pointer;
  line-height: 1.2;
  white-space: nowrap;
  flex-shrink: 0;
}

.nav-account-badge:hover {
  background: #3a863e;
  color: #fff;
}

@media (max-width: 768px) {
  .nav-links {
    flex-wrap: wrap;
    justify-content: center;
    row-gap: 0.65rem;
    column-gap: 0.75rem;
  }

  /* Sign in + Start stay as one pair (never leave Start alone on a row) */
  .nav-actions {
    flex-basis: 100%;
    justify-content: center;
  }

  .nav-link-signin {
    padding: 0.4rem 0.7rem !important;
    font-size: 0.9rem !important;
  }

  .nav-link-primary {
    white-space: nowrap;
    flex-shrink: 0;
  }

  .nav-account-badge {
    padding: 0.4rem 0.7rem;
    font-size: 0.8125rem;
  }
}
