/* ==========================================================================
   LiftSavings Universal Top Navigation Bar Stylesheet
   Guarantees 100% pixel-perfect consistency across all hosting pages.
   ========================================================================== */

html {
  overflow-y: scroll;
  scrollbar-gutter: stable both-edges;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-color, #e2e8f0);
  box-shadow: 0 1px 4px rgba(15, 23, 42, 0.04);
  width: 100%;
  box-sizing: border-box;
}

.site-nav-container {
  max-width: 1240px;
  width: 100%;
  margin: 0 auto;
  height: 64px;
  padding: 0 24px !important;
  box-sizing: border-box;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.site-logo {
  display: flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  font-family: var(--font-display, 'Outfit', -apple-system, sans-serif);
  font-weight: 800;
  font-size: 1.28rem;
  color: var(--text-main, #0f172a);
  letter-spacing: -0.02em;
  transition: opacity 0.2s;
  flex-shrink: 0;
}

.site-logo:hover {
  opacity: 0.85;
}

.site-logo-icon {
  font-size: 1.35rem;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}

.site-logo-img {
  width: 32px;
  height: 32px;
  object-fit: contain;
  display: block;
  border-radius: 8px;
  flex-shrink: 0;
}

.site-logo-text {
  font-size: 1.28rem;
  font-weight: 800;
  color: var(--text-main, #0f172a);
}

.site-logo-badge {
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  color: #ffffff;
  padding: 2px 7px;
  border-radius: 999px;
  letter-spacing: 0.05em;
  display: inline-block;
  line-height: 1.3;
}

.admin-badge {
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  background: linear-gradient(135deg, #7c3aed 0%, #4f46e5 100%);
  color: #ffffff;
  padding: 2px 7px;
  border-radius: 999px;
  letter-spacing: 0.05em;
  display: inline-block;
  line-height: 1.3;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 4px;
  flex-wrap: nowrap;
}

.nav-link {
  text-decoration: none;
  color: var(--text-muted, #64748b);
  font-weight: 600;
  font-size: 0.90rem;
  padding: 7px 12px;
  border-radius: 8px;
  transition: all 0.18s ease;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  white-space: nowrap;
  font-family: var(--font-body, 'Inter', -apple-system, sans-serif);
}

.nav-link:hover {
  color: var(--text-main, #0f172a);
  background: rgba(0, 0, 0, 0.04);
}

.nav-link.active {
  color: #2563eb;
  background: rgba(37, 99, 235, 0.09);
  font-weight: 600;
  box-shadow: inset 0 0 0 1px rgba(37, 99, 235, 0.2);
}

/* In hosting mode, hide personal Offers nav link unless user is logged in */
body.is-hosting:not(.user-logged-in) #navOffers,
html.is-hosting:not(.user-logged-in) #navOffers {
  display: none !important;
}


.site-nav-auth {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.btn-signin {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 36px;
  padding: 0 14px;
  background: #ffffff;
  border: 1px solid var(--border-color, #e2e8f0);
  border-radius: 10px;
  color: var(--text-main, #0f172a);
  font-size: 0.86rem;
  font-weight: 600;
  font-family: var(--font-body, 'Inter', -apple-system, sans-serif);
  cursor: pointer;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
  transition: all 0.2s ease;
  white-space: nowrap;
}

.btn-signin:hover {
  background: #f8fafc;
  border-color: #cbd5e1;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
}

.user-profile-menu {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 36px;
  padding: 2px 10px;
  background: #f8fafc;
  border: 1px solid var(--border-color, #e2e8f0);
  border-radius: 999px;
}

.user-avatar {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid rgba(0, 0, 0, 0.08);
}

.user-name {
  font-size: 0.84rem;
  font-weight: 600;
  color: var(--text-main, #0f172a);
  max-width: 120px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.btn-signout {
  background: none;
  border: none;
  color: var(--text-muted, #64748b);
  cursor: pointer;
  font-size: 0.9rem;
  padding: 2px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: color 0.15s;
}

.btn-signout:hover {
  color: #ef4444;
}

/* ==========================================================================
   Mobile Hamburger Toggle Button & Responsive Navbar
   ========================================================================== */
.nav-toggle-btn {
  display: none;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 8px;
  width: 40px;
  height: 40px;
  border-radius: 8px;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 4px;
  z-index: 1001;
  transition: background-color 0.18s ease;
  flex-shrink: 0;
}

.nav-toggle-btn:hover {
  background-color: rgba(0, 0, 0, 0.05);
}

.nav-toggle-btn:focus-visible {
  outline: 2px solid #2563eb;
  outline-offset: 2px;
}

.hamburger-bar {
  display: block;
  width: 20px;
  height: 2px;
  background-color: var(--text-main, #0f172a);
  border-radius: 2px;
  transition: transform 0.22s ease, opacity 0.22s ease, background-color 0.2s ease;
}

/* Transform hamburger into 'X' when open */
.nav-toggle-btn.is-active .hamburger-bar:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
}
.nav-toggle-btn.is-active .hamburger-bar:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}
.nav-toggle-btn.is-active .hamburger-bar:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg);
}

@media (max-width: 820px) {
  .nav-toggle-btn {
    display: flex;
  }

  .site-nav-container {
    width: 100%;
    height: 56px;
    padding: 0 16px !important;
    gap: 8px;
    position: relative;
  }

  .site-logo {
    font-size: 1.15rem;
    gap: 6px;
  }

  .site-logo-img {
    width: 28px;
    height: 28px;
  }

  .site-logo-text {
    font-size: 1.15rem;
  }

  .site-nav-auth {
    margin-left: auto;
    gap: 6px;
  }

  .btn-signin {
    height: 32px;
    padding: 0 10px;
    font-size: 0.80rem;
    gap: 5px;
  }

  .btn-signin svg {
    width: 14px;
    height: 14px;
  }

  .user-profile-menu {
    height: 32px;
    padding: 2px 8px;
    gap: 6px;
  }

  .user-avatar {
    width: 22px;
    height: 22px;
  }

  .user-name {
    font-size: 0.78rem;
    max-width: 85px;
  }

  /* Collapsible Mobile Dropdown Navigation Drawer */
  .site-nav {
    display: none;
    position: absolute;
    top: 56px;
    left: 0;
    right: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-color, #e2e8f0);
    box-shadow: 0 16px 36px rgba(15, 23, 42, 0.12);
    padding: 10px 14px 16px;
    box-sizing: border-box;
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    z-index: 9999;
  }

  .site-nav.mobile-open {
    display: flex;
    animation: mobileNavSlideDown 0.22s cubic-bezier(0.16, 1, 0.3, 1);
  }

  @keyframes mobileNavSlideDown {
    from {
      opacity: 0;
      transform: translateY(-8px);
    }
    to {
      opacity: 1;
      transform: translateY(0);
    }
  }

  .nav-link {
    width: 100%;
    box-sizing: border-box;
    padding: 11px 16px;
    font-size: 0.95rem;
    border-radius: 10px;
    min-height: 44px;
    justify-content: flex-start;
  }

  .nav-link:hover,
  .nav-link:active {
    background: rgba(0, 0, 0, 0.05);
  }

  .nav-link.active {
    background: rgba(37, 99, 235, 0.09);
    color: #2563eb;
    font-weight: 700;
  }
}

@media (max-width: 440px) {
  .site-logo-text {
    font-size: 1.05rem;
  }
  .user-name {
    display: none;
  }
}

/* Hide top navbar and footer in extension popup mode */
body.popup-mode .site-header,
html.popup-mode .site-header,
body.popup-mode .site-footer,
html.popup-mode .site-footer {
  display: none !important;
}

/* ==========================================================================
   Shared Site Footer Styles
   ========================================================================== */
.site-footer {
  background: #ffffff;
  border-top: 1px solid var(--border-color, #e2e8f0);
  padding: 36px 20px 28px;
  margin-top: auto;
  color: var(--text-muted, #64748b);
  font-size: 0.88rem;
  width: 100%;
  box-sizing: border-box;
}

@media (max-width: 640px) {
  .site-footer {
    padding: 24px 16px 20px;
  }
  .footer-links {
    gap: 10px 16px !important;
  }
  .footer-links a {
    font-size: 0.84rem !important;
  }
  .footer-disclaimer {
    font-size: 0.74rem !important;
    line-height: 1.5 !important;
  }
}

.footer-container {
  max-width: 1220px;
  width: 92%;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 16px;
  align-items: center;
  text-align: center;
}

.footer-links {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  justify-content: center;
}

.footer-links a {
  color: var(--text-muted, #64748b);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.88rem;
  transition: color 0.15s ease;
}

.footer-links a:hover,
.footer-links a.active {
  color: var(--text-main, #0f172a);
}

.footer-disclaimer {
  font-size: 0.78rem;
  color: var(--text-dim, #94a3b8);
  max-width: 820px;
  line-height: 1.5;
  margin: 0;
}

/* ==========================================================================
   New User Welcome & Lift Points Guide Modal
   ========================================================================== */
.lp-welcome-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.65);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  animation: lpModalFadeIn 0.22s ease-out;
  box-sizing: border-box;
}

@keyframes lpModalFadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes lpModalSlideUp {
  from { opacity: 0; transform: translateY(18px) scale(0.97); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.lp-welcome-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 20px;
  max-width: 580px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 24px 60px rgba(15, 23, 42, 0.22);
  display: flex;
  flex-direction: column;
  animation: lpModalSlideUp 0.24s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  font-family: var(--font-body, -apple-system, BlinkMacSystemFont, sans-serif);
  color: var(--text-main, #0f172a);
  box-sizing: border-box;
}

.lp-welcome-header {
  padding: 24px 26px 16px;
  background: linear-gradient(135deg, #f0fdf4 0%, #ffffff 60%, #faf5ff 100%);
  border-bottom: 1px solid #e2e8f0;
  position: relative;
  box-sizing: border-box;
}

.lp-welcome-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(241, 245, 249, 0.85);
  border: 1px solid #cbd5e1;
  color: #64748b;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  transition: all 0.15s;
}

.lp-welcome-close:hover {
  background: #e2e8f0;
  color: #0f172a;
}

.lp-welcome-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(16, 185, 129, 0.12);
  color: #059669;
  font-weight: 700;
  font-size: 0.82rem;
  padding: 4px 12px;
  border-radius: 20px;
  border: 1px solid rgba(16, 185, 129, 0.28);
  margin-bottom: 10px;
}

.lp-welcome-title {
  font-family: var(--font-display, 'Outfit', sans-serif);
  font-size: 1.42rem;
  font-weight: 800;
  color: #0f172a;
  line-height: 1.25;
  margin-bottom: 6px;
}

.lp-welcome-subtitle {
  font-size: 0.86rem;
  color: #64748b;
  line-height: 1.45;
}

.lp-welcome-body {
  padding: 20px 26px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  box-sizing: border-box;
}

.lp-feature-box {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  padding: 13px 15px;
  display: flex;
  gap: 13px;
  align-items: flex-start;
  box-sizing: border-box;
}

.lp-feature-icon {
  font-size: 1.4rem;
  line-height: 1;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  width: 38px;
  height: 38px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

.lp-feature-content h4 {
  font-size: 0.94rem;
  font-weight: 700;
  color: #0f172a;
  margin-bottom: 4px;
}

.lp-feature-content p {
  font-size: 0.84rem;
  color: #475569;
  line-height: 1.45;
  margin: 0;
}

.lp-feature-content strong {
  color: #0f172a;
}

.lp-welcome-footer {
  padding: 16px 26px 22px;
  background: #ffffff;
  border-top: 1px solid #f1f5f9;
  display: flex;
  flex-direction: column;
  gap: 10px;
  box-sizing: border-box;
}

.lp-btn-primary {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  color: #ffffff !important;
  text-decoration: none;
  font-weight: 700;
  font-size: 0.92rem;
  padding: 12px 20px;
  border-radius: 12px;
  border: none;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(16, 185, 129, 0.28);
  transition: all 0.18s;
  width: 100%;
  box-sizing: border-box;
}

.lp-btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(16, 185, 129, 0.36);
  color: #ffffff !important;
}

.lp-btn-secondary {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  background: #f1f5f9;
  color: #334155 !important;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.86rem;
  padding: 10px 18px;
  border-radius: 12px;
  border: 1px solid #cbd5e1;
  cursor: pointer;
  transition: all 0.15s;
  width: 100%;
  box-sizing: border-box;
}

.lp-btn-secondary:hover {
  background: #e2e8f0;
  color: #0f172a !important;
}

/* Navigation Bell Notification Component */
.nav-bell-wrapper {
  position: relative;
  display: inline-flex;
  align-items: center;
}

.btn-nav-bell {
  background: #f8fafc;
  border: 1px solid var(--border-color, #e2e8f0);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  position: relative;
  transition: all 0.2s ease;
  color: var(--text-main, #0f172a);
}

.btn-nav-bell:hover {
  background: #f1f5f9;
  border-color: #cbd5e1;
  transform: translateY(-1px);
}

.nav-bell-badge {
  position: absolute;
  top: -2px;
  right: -2px;
  background: #ef4444;
  color: #ffffff;
  font-size: 0.68rem;
  font-weight: 800;
  min-width: 17px;
  height: 17px;
  border-radius: 999px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 4px;
  border: 2px solid #ffffff;
  box-shadow: 0 1px 3px rgba(239, 68, 68, 0.4);
}

.nav-bell-dropdown {
  position: absolute;
  top: 44px;
  right: 0;
  width: 340px;
  max-width: 90vw;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.12);
  z-index: 999999;
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  animation: dropdownFadeIn 0.2s ease;
}

@keyframes dropdownFadeIn {
  from { opacity: 0; transform: translateY(-6px); }
  to { opacity: 1; transform: translateY(0); }
}

.nav-bell-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 8px;
  border-bottom: 1px solid #f1f5f9;
}

.nav-bell-title {
  font-size: 0.86rem;
  font-weight: 700;
  color: #0f172a;
}

.nav-bell-list {
  max-height: 320px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.nav-bell-item {
  background: #fffbeb;
  border: 1px solid #fef3c7;
  border-left: 3px solid #f59e0b;
  border-radius: 8px;
  padding: 10px;
  font-size: 0.8rem;
  color: #78350f;
  line-height: 1.4;
  position: relative;
}

.nav-bell-item-store {
  font-weight: 700;
  color: #92400e;
}

.nav-bell-item-actions {
  margin-top: 6px;
  display: flex;
  gap: 6px;
  align-items: center;
}

/* Navigation Bell Notification Component */
.nav-bell-wrapper {
  position: relative;
  display: inline-flex;
  align-items: center;
}

.btn-nav-bell {
  background: #f8fafc;
  border: 1px solid var(--border-color, #e2e8f0);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  position: relative;
  transition: all 0.2s ease;
  color: var(--text-main, #0f172a);
}

.btn-nav-bell:hover {
  background: #f1f5f9;
  border-color: #cbd5e1;
  transform: translateY(-1px);
}

.nav-bell-badge {
  position: absolute;
  top: -2px;
  right: -2px;
  background: #ef4444;
  color: #ffffff;
  font-size: 0.68rem;
  font-weight: 800;
  min-width: 17px;
  height: 17px;
  border-radius: 999px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 4px;
  border: 2px solid #ffffff;
  box-shadow: 0 1px 3px rgba(239, 68, 68, 0.4);
}

.nav-bell-dropdown {
  position: absolute;
  top: 44px;
  right: 0;
  width: 340px;
  max-width: 90vw;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.12);
  z-index: 999999;
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  animation: dropdownFadeIn 0.2s ease;
}

@keyframes dropdownFadeIn {
  from { opacity: 0; transform: translateY(-6px); }
  to { opacity: 1; transform: translateY(0); }
}

.nav-bell-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 8px;
  border-bottom: 1px solid #f1f5f9;
}

.nav-bell-title {
  font-size: 0.86rem;
  font-weight: 700;
  color: #0f172a;
}

.nav-bell-list {
  max-height: 320px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.nav-bell-item {
  background: #fffbeb;
  border: 1px solid #fef3c7;
  border-left: 3px solid #f59e0b;
  border-radius: 8px;
  padding: 10px;
  font-size: 0.8rem;
  color: #78350f;
  line-height: 1.4;
  position: relative;
}

.nav-bell-item-store {
  font-weight: 700;
  color: #92400e;
}

.nav-bell-item-actions {
  margin-top: 6px;
  display: flex;
  gap: 6px;
  align-items: center;
}



