header.header {
  min-height: 70px;
  height: auto;
  padding: 12px 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
  z-index: 1000;
  background: white;
}

.logo a {
  display: block;
  text-decoration: none;
}

.logo img {
  height: 72px;
  width: auto;
  display: block;
}

.header-left {
  display: flex;
  align-items: center;
  gap: 40px;
}

.header-nav {
  display: flex;
  align-items: center;
  gap: 0;
  list-style: none;
  margin: 0;
  padding: 0;
}

.header-nav > li {
  position: relative;
  margin: 0;
}

.nav-trigger {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 10px 16px;
  font-size: 14px;
  font-weight: 600;
  color: #1a2a44;
  background: none;
  border: none;
  cursor: pointer;
  white-space: nowrap;
  transition: color 0.2s;
  font-family: -apple-system, BlinkMacSystemFont, "Inter", "Segoe UI", Roboto, sans-serif;
}

.nav-trigger:hover {
  color: #76bc21;
}

.nav-trigger.active {
  color: #76bc21;
}

.nav-trigger .chevron {
  width: 10px;
  height: 10px;
  transition: transform 0.2s;
}

.nav-trigger.active .chevron {
  transform: rotate(180deg);
}

.nav-dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  background: white;
  min-width: 280px;
  border-radius: 0 0 12px 12px;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
  padding: 16px 0;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-4px);
  transition: opacity 0.2s, transform 0.2s, visibility 0.2s;
  z-index: 1001;
}

.nav-dropdown.open {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.nav-dropdown a {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 12px 24px;
  text-decoration: none;
  color: #1a2a44;
  transition: background 0.15s;
}

.nav-dropdown a:hover {
  background: #f5f9f0;
}

.nav-dropdown .dropdown-icon {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  margin-top: 2px;
  color: #76bc21;
}

.nav-dropdown .dropdown-label {
  font-size: 14px;
  font-weight: 600;
  color: #1a2a44;
  line-height: 1.4;
}

.nav-dropdown .dropdown-desc {
  font-size: 12px;
  color: #666;
  line-height: 1.4;
  margin-top: 2px;
}

.nav-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.15);
  z-index: -1;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  touch-action: none;
  transition: opacity 0.2s, visibility 0.2s;
}

.nav-overlay.active {
  z-index: 999;
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.login-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-decoration: none;
  gap: 4px;
}

.user-area {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  cursor: pointer;
}

.user-area .login-icon {
  pointer-events: none;
}

.login-icon {
  width: 44px;
  height: 44px;
  background-color: #76bc21;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.2s, box-shadow 0.2s;
}

.login-icon:hover {
  transform: scale(1.05);
  box-shadow: 0 4px 12px rgba(118, 188, 33, 0.4);
}

.login-text {
  font-size: 11px;
  font-weight: 600;
  color: #76bc21;
  text-transform: lowercase;
}

.user-name-text {
  font-size: 11px;
  font-weight: 600;
  color: #1a2a44;
  white-space: nowrap;
  max-width: 140px;
  overflow: hidden;
  text-overflow: ellipsis;
}

.user-dropdown {
  position: absolute;
  top: 100%;
  right: 0;
  margin-top: 4px;
  background: white;
  min-width: 160px;
  border-radius: 8px;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
  padding: 8px 0;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-4px);
  transition: opacity 0.2s, transform 0.2s, visibility 0.2s;
  z-index: 1002;
}

.user-area:hover .user-dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.user-dropdown-link {
  display: block;
  width: 100%;
  padding: 10px 20px;
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
  color: #1a2a44;
  font-family: -apple-system, BlinkMacSystemFont, "Inter", "Segoe UI", Roboto, sans-serif;
  transition: background 0.15s, color 0.15s;
}

.user-dropdown-link:hover {
  background: #f5f9f0;
  color: #76bc21;
}

.user-dropdown-btn {
  display: block;
  width: 100%;
  padding: 10px 20px;
  background: none;
  border: none;
  text-align: left;
  font-size: 14px;
  font-weight: 600;
  color: #1a2a44;
  cursor: pointer;
  font-family: -apple-system, BlinkMacSystemFont, "Inter", "Segoe UI", Roboto, sans-serif;
  transition: background 0.15s, color 0.15s;
}

.user-dropdown-btn:hover {
  background: #f5f9f0;
  color: #76bc21;
}

.logout-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  z-index: -1;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  touch-action: none;
  transition: opacity 0.3s, visibility 0.3s;
}

.logout-overlay.active {
  z-index: 9999;
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.logout-popup {
  background: white;
  border-radius: 16px;
  padding: 40px 36px;
  max-width: 420px;
  width: 90%;
  text-align: center;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
  animation: popupSlideIn 0.3s ease-out;
}

@keyframes popupSlideIn {
  from {
    transform: translateY(20px) scale(0.95);
    opacity: 0;
  }
  to {
    transform: translateY(0) scale(1);
    opacity: 1;
  }
}

.logout-popup .pet-photo-frame {
  width: 140px;
  height: 140px;
  margin: 0 auto 24px;
  padding: 6px;
  background: white;
  border: 2px solid #e4e6e5;
  box-shadow: 2px 3px 12px rgba(0,0,0,0.12), -1px -1px 4px rgba(0,0,0,0.04);
  transform: rotate(-2deg);
  display: none;
}

.logout-popup .pet-photo-frame.has-photo {
  display: block;
}

.logout-popup .pet-photo-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.logout-popup h2 {
  font-size: 1.3rem;
  color: #1a2a44;
  margin-bottom: 12px;
  font-weight: 700;
}

.logout-popup p {
  font-size: 0.95rem;
  color: #555;
  line-height: 1.6;
  margin-bottom: 10px;
}

.logout-popup p:last-of-type {
  margin-bottom: 0;
}

.logout-popup .countdown-bar {
  height: 4px;
  background: #e4e6e5;
  border-radius: 2px;
  margin-top: 24px;
  overflow: hidden;
}

.logout-popup .countdown-fill {
  height: 100%;
  width: 100%;
  background: #76bc21;
  border-radius: 2px;
  transform-origin: left;
}

.logout-popup .countdown-fill.animate {
  animation: countdownShrink 4s linear forwards;
}

@keyframes countdownShrink {
  from { transform: scaleX(1); }
  to { transform: scaleX(0); }
}

.nav-simple-link {
  display: block;
  padding: 10px 16px;
  font-size: 14px;
  font-weight: 600;
  color: #1a2a44;
  text-decoration: none;
  white-space: nowrap;
  transition: color 0.2s;
  font-family: -apple-system, BlinkMacSystemFont, "Inter", "Segoe UI", Roboto, sans-serif;
}

.nav-simple-link:hover {
  color: #76bc21;
}

.mobile-menu-btn {
  display: none;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  background: none;
  border: none;
  cursor: pointer;
  color: #1a2a44;
  padding: 0;
  -webkit-tap-highlight-color: transparent;
}

.mobile-menu-btn svg {
  width: 28px;
  height: 28px;
}

.header-right {
  display: flex;
  align-items: center;
  gap: 12px;
}

.mobile-nav-panel {
  display: none;
  position: fixed;
  top: 0;
  right: -100%;
  width: 300px;
  max-width: 85vw;
  height: 100vh;
  background: white;
  z-index: 10000;
  box-shadow: -4px 0 30px rgba(0, 0, 0, 0.15);
  transition: right 0.3s ease;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

.mobile-nav-panel.open {
  right: 0;
}

.mobile-nav-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.4);
  z-index: 9999;
  opacity: 0;
  pointer-events: none;
  visibility: hidden;
  transition: opacity 0.3s, visibility 0.3s;
}

.mobile-nav-overlay.open {
  opacity: 1;
  pointer-events: auto;
  visibility: visible;
}

.mobile-nav-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  border-bottom: 1px solid #e4e6e5;
}

.mobile-nav-header span {
  font-size: 16px;
  font-weight: 700;
  color: #1a2a44;
}

.mobile-nav-close {
  width: 36px;
  height: 36px;
  background: none;
  border: none;
  cursor: pointer;
  color: #1a2a44;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  -webkit-tap-highlight-color: transparent;
}

.mobile-nav-close:hover {
  background: #f5f9f0;
}

.mobile-nav-links {
  padding: 12px 0;
}

.mobile-nav-section-title {
  display: block;
  padding: 14px 20px 6px;
  font-size: 13px;
  font-weight: 700;
  color: #76bc21;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.mobile-nav-link {
  display: block;
  padding: 14px 20px 14px 32px;
  min-height: 44px;
  font-size: 15px;
  font-weight: 500;
  color: #1a2a44;
  text-decoration: none;
  transition: background 0.15s;
  -webkit-tap-highlight-color: transparent;
}

.mobile-nav-link:hover,
.mobile-nav-link:active {
  background: #f5f9f0;
  color: #76bc21;
}

.mobile-nav-divider {
  height: 1px;
  background: #e4e6e5;
  margin: 8px 20px;
}

.mobile-nav-auth {
  padding: 16px 20px;
  border-top: 1px solid #e4e6e5;
}

.mobile-nav-auth a {
  display: block;
  text-align: center;
  padding: 14px;
  background: #76bc21;
  color: white;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  font-size: 15px;
  -webkit-tap-highlight-color: transparent;
}

@media (min-width: 1025px) {
  header.header {
    height: 100px;
    padding: 0 48px;
  }
}

@media (max-width: 1024px) {
  header.header {
    padding: 0 20px;
  }
  .header-left {
    gap: 16px;
  }
  .nav-trigger, .nav-simple-link {
    padding: 10px 10px;
    font-size: 13px;
  }
}

@media (max-width: 768px) {
  header.header {
    height: 60px;
    padding: 0 16px;
  }

  .header-left {
    gap: 0;
  }

  .header-nav {
    display: none !important;
  }

  .mobile-menu-btn {
    display: flex;
  }

  .mobile-nav-panel {
    display: block;
  }

  .mobile-nav-overlay {
    display: block;
  }

  .logo svg {
    width: 180px;
    height: auto;
  }

  .logo img {
    height: 56px;
  }

  .login-icon {
    width: 36px;
    height: 36px;
  }

  .login-icon svg {
    width: 20px;
    height: 20px;
  }

  .login-text, .user-name-text {
    font-size: 10px;
  }

  .logout-popup {
    padding: 28px 24px;
  }

  .logout-popup .pet-photo-frame {
    width: 100px;
    height: 100px;
  }

  .logout-popup h2 {
    font-size: 1.1rem;
  }

  .logout-popup p {
    font-size: 0.85rem;
  }
}

/* ── Join / CTA button (used in nav across all pages) ── */
.join-early-btn {
  background: #76bc21;
  color: white;
  padding: 10px 20px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 700;
  font-size: 0.9rem;
  white-space: nowrap;
  transition: background 0.15s;
  flex-shrink: 0;
}
.join-early-btn:hover { background: #5ea015; }

/* ── Standard site footer (used on all secondary pages) ── */
.site-footer {
  padding: 48px 32px 32px;
  border-top: 1px solid #e4e6e5;
  max-width: 1100px;
  margin: 0 auto;
}
.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 32px;
  margin-bottom: 28px;
}
.footer-brand strong {
  display: block;
  font-size: 0.95rem;
  font-weight: 700;
  color: #1a2a44;
  margin-bottom: 8px;
}
.footer-corp {
  font-size: 0.8rem;
  color: #555;
  margin-bottom: 5px;
}
.footer-disclaimer {
  font-size: 0.74rem;
  color: #999;
  max-width: 440px;
  line-height: 1.55;
  margin: 0;
}
.footer-nav-links {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 18px;
  max-width: 300px;
}
.footer-nav-links a {
  font-size: 0.82rem;
  color: #76bc21;
  text-decoration: none;
}
.footer-nav-links a:hover { text-decoration: underline; }
.footer-bottom {
  font-size: 0.78rem;
  color: #bbb;
  border-top: 1px solid #e4e6e5;
  padding-top: 16px;
  margin: 0;
}

@media (max-width: 768px) {
  .site-footer { padding: 36px 16px 24px; }
  .footer-inner { flex-direction: column; gap: 20px; }
  .footer-nav-links { max-width: 100%; }
}

/* ── Page hero (dark header band used on secondary pages) ── */
.page-hero {
  background: #1a2a44;
  color: white;
  padding: 60px 32px;
  text-align: center;
}
.page-hero .page-label {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #76bc21;
  margin-bottom: 10px;
}
.page-hero h1 { font-size: 2.4rem; margin-bottom: 12px; }
.page-hero p { font-size: 1.05rem; opacity: 0.85; max-width: 600px; margin: 0 auto; }

@media (max-width: 768px) {
  .page-hero { padding: 48px 16px; }
  .page-hero h1 { font-size: 1.8rem; }
}
