 body {
    margin: 0;
    min-height: 100%;
    font-family: "Helvetica Neue", Arial, sans-serif;
  background: radial-gradient(circle at top left, #E8F1FF 0, #ffffff 45%, #faf5ff 100%) !important;
      color: #ffffff;
  }

/* ── Guest / non-auth nav visibility ──────────────────── */
body:not(.authenticated) .mobile-menu,
body:not(.authenticated) .notification-container,
body:not(.authenticated) .profile-container,
body:not(.authenticated) .nav-right > a[href="save-rec.html"] {
  display: none !important;
}
body:not(.authenticated) .nav-left { display: none !important; }
.guest-nav-left { display: none; }
body:not(.authenticated) .guest-nav-left { display: flex !important; }
.guest-nav-actions { display: none; gap: 10px; align-items: center; }
body:not(.authenticated) .guest-nav-actions { display: flex; }

.guest-login-btn {
  padding: 10px 20px; border-radius: 999px; font-size: 0.95rem; font-weight: 500;
  color: #fff; background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.25);
  transition: all 0.2s ease; text-decoration: none; cursor: pointer;
}
.guest-login-btn:hover {
  background: rgba(255,255,255,0.15); border-color: rgba(255,255,255,0.4);
}
.guest-signup-btn {
  border: none; border-radius: 999px; padding: 10px 22px;
  display: flex; align-items: center; gap: 8px; cursor: pointer;
  font-size: 0.95rem; font-weight: 500; color: #fff;
  background: linear-gradient(135deg,#0066ff,#c27aff);
  box-shadow: 0 10px 25px rgba(0,0,0,0.35); text-decoration: none;
}
.guest-signup-btn:hover {
  box-shadow: 0 0 12px rgba(194,122,255,0.6), 0 0 6px rgba(0,102,255,0.6);
}

.auth-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(10px);
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: authFadeIn 0.3s ease;
}

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

.auth-modal {
  background: white;
  border-radius: 20px;
  padding: 40px;
  max-width: 500px;
  width: 90%;
  text-align: center;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  animation: authSlideUp 0.4s ease;
  position: relative;
}

@keyframes authSlideUp {
  from { transform: translateY(30px); opacity: 0; }
  to   { transform: translateY(0);    opacity: 1; }
}

.auth-modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid rgba(0, 14, 51, 0.15);
  background: transparent;
  color: #000e33;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  transition: 0.2s ease;
}

.auth-modal-close:hover {
  background: rgba(0, 14, 51, 0.05);
  transform: rotate(90deg);
}

.auth-modal-content h2 {
  margin: 0 0 15px 0;
  color: #000e33;
  font-size: 28px;
}

.auth-modal-content p {
  margin: 0 0 30px 0;
  color: #666;
  font-size: 16px;
  line-height: 1.6;
}

.auth-modal-buttons {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.auth-modal-buttons .primary-btn,
.auth-modal-buttons .secondary-btn {
  width: 100%;
  padding: 15px 30px;
  font-size: 16px;
  font-weight: 600;
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.auth-modal-buttons .primary-btn {
  background: linear-gradient(135deg, #0066ff 0%, #c27aff 100%);
  color: white;
  border: none;
}

.auth-modal-buttons .primary-btn:hover {
  box-shadow: 0 0 12px rgba(194, 122, 255, 0.6),
              0 0 6px rgba(0, 102, 255, 0.6);
}

.auth-modal-buttons .secondary-btn {
  background: white;
  color: #4b5bd5;
  border: 2px solid #4b5bd5;
}

.auth-modal-buttons .secondary-btn:hover {
  box-shadow: 0 0 12px rgba(194, 122, 255, 0.6),
              0 0 6px rgba(0, 102, 255, 0.6);
}

/* Hide navbar auth elements for non-authenticated users */
body:not(.authenticated) .notification-container,
body:not(.authenticated) .create-btn,
body:not(.authenticated) #navAvatar,
body:not(.authenticated) .nav-left,
body:not(.authenticated) .profile-container {
  display: none !important;
}
/* But show create-btn inside the guest mobile menu */
body:not(.authenticated) .guest-mobile-menu .create-btn {
  display: block !important;
}


  body {
    margin: 0;
    min-height: 100%;
    font-family: "Helvetica Neue", Arial, sans-serif;
    background: #000e33;
    color: #ffffff;
    overflow-x: hidden; /* 🔒 prevent stray horizontal scroll */
  }


  /* ───── NAVBAR ───── */

  .profile-container {
    position: relative;
    display: flex;
    align-items: center;
  }

  .profile-container .avatar {
    cursor: pointer;
  }

  /* Profile dropdown menu */
  .profile-dropdown {
    position: absolute;
    top: calc(100% + 8px); /* Reduced gap from 12px to 8px */
    right: 0;
    background: #000e33;
    border-radius: 12px;
    padding: 8px 0;
    min-width: 180px;
    border: 1px solid rgba(255,255,255,0.15);
    box-shadow: 0 18px 40px rgba(0,0,0,0.45);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease, transform 0.2s ease;
    transform: translateY(-10px);
    z-index: 1100;
  }

  /* Add invisible bridge between avatar and dropdown */
  .profile-dropdown::before {
    content: '';
    position: absolute;
    top: -12px; /* Covers the gap */
    left: 0;
    right: 0;
    height: 12px;
    background: transparent;
  }

  .profile-container:hover .profile-dropdown {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
  }

  .profile-dropdown a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 16px; /* Increased from 10px to 12px for easier clicking */
    font-size: 0.9rem;
    color: #ffffff;
    text-decoration: none;
    white-space: nowrap;
    transition: background 0.2s ease;
  }

  .profile-dropdown a i {
    width: 16px;
    font-size: 0.9rem;
    opacity: 0.8;
  }

  .profile-dropdown a:hover {
    background: linear-gradient(135deg, #0066ff, #c27aff);
  }

  /* ───── NAVBAR ───── */
  .navbar {
  position: sticky;
  top: 0;
  z-index: 2000;
  height: 72px;
  padding: 0 52px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  background: linear-gradient(180deg, #ffffff 0%, #fcfbff 100%);
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

.nav-left {
  display: flex;
  align-items: center;
  gap: 28px;
  justify-content: center;
  grid-column: 2;
}

.nav-logo {
  width: 160px;
  height: auto;
  grid-column: 1;
  justify-self: start;
}

.nav-right {
  display: flex;
  align-items: center;
  gap: 16px;
  grid-column: 3;
  justify-self: end;
}

.nav-item {
  font-size: 0.9rem;
  font-weight: 500;
  color: #000e33;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 6px 0;
  position: relative;
  white-space: nowrap;
}

/* Transparent bridge so hover persists across the gap to the dropdown */
.nav-item::before {
  content: '';
  position: absolute;
  top: 100%;
  left: -12px;
  right: -12px;
  height: 18px;
  background: transparent;
}


.nav-item:hover i {
  transform: translateY(1px);
}

.nav-item::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(90deg, #0066ff, #c27aff);
  opacity: 0;
  transform: scaleX(0.5);
  transform-origin: left center;
  transition: opacity 0.22s ease, transform 0.25s ease;
}

.nav-item:hover::after {
  opacity: 1;
  transform: scaleX(1);
}

.icon-btn {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: none;
  background: transparent;
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  color: #6b7280;
  transition: color 0.2s ease, background 0.2s ease;
}
.icon-btn:hover {
  color: #000e33;
  background: rgba(0, 0, 0, 0.04);
}
.create-btn {
  border: none;
  border-radius: 999px;
  padding: 10px 18px;
  display: flex;
  align-items: center;
  gap: 7px;
  cursor: pointer;
  font-size: 0.875rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  color: #ffffff;
  background: linear-gradient(135deg, #0066ff 0%, #c27aff 100%);
  box-shadow: none;
  transition: box-shadow 0.25s ease, transform 0.15s ease;
}

.create-btn:hover {
  box-shadow: 0 6px 22px rgba(0, 102, 255, 0.38);
  transform: translateY(-1px);
}

.avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  padding: 1px;
  background: linear-gradient(135deg, #0066ff, #c27aff);
  flex-shrink: 0;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: transform 0.2s ease;
}
.avatar:hover {
  transform: scale(1.03);
  box-shadow: none;
}

.avatar img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  display: block;
}

.menu-toggle {
  display: none;
}

a {
  text-decoration: none;
  color: white;
}

.hamburger {
  color: #000e33;
  font-size: 22px;
  cursor: pointer;
  display: none;
}



.guest-mobile-menu {
  background-color: white !important;
}

.mobile-menu {
  display: none;
  flex-direction: column;
  position: absolute;
  top: 72px;
  left: 0;
  right: 0;
  background: #ffffff;
  padding: 16px 24px 24px;
  gap: 4px;
  border-top: 1px solid rgba(0, 0, 0, 0.07);
  box-sizing: border-box;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.1);
}

.menu-toggle:checked ~ .mobile-menu {
  display: flex;
}

.dropdown {
  position: absolute;
  top: calc(100% + 10px);
  left: 50%;
  transform: translateX(-50%) translateY(4px);
  background: #ffffff;
  border-radius: 14px;
  padding: 6px;
  min-width: 190px;
  border: 1px solid rgba(0, 0, 0, 0.05);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.18s ease, transform 0.18s ease;
  z-index: 1100;
}

.nav-item:hover .dropdown {
  opacity: 1;
  pointer-events: auto;
  transform: translateX(-50%) translateY(0);
}

.dropdown a {
  display: block;
  padding: 10px 14px;
  font-size: 0.9rem;
  font-weight: 400;
  color: #000e33 !important;
  text-decoration: none;
  white-space: nowrap;
  letter-spacing: 0;
  border-radius: 10px;
  transition: background 0.15s ease, color 0.15s ease;
}

.dropdown a:hover {
  background: rgba(75, 91, 213, 0.08);
  color: #4b5bd5 !important;
}
/* ───── PROFILE DROPDOWN ───── */
.profile-container {
  position: relative;
  display: flex;
  align-items: center;
}

.profile-container .avatar {
  cursor: pointer;
}

/* Profile dropdown menu */
.profile-dropdown {
  position: absolute;
  top: calc(100% + 8px); /* Reduced gap from 12px to 8px */
  right: 0;
  background: #000e33;
  border-radius: 12px;
  padding: 8px 0;
  min-width: 180px;
  border: 1px solid rgba(255,255,255,0.15);
  box-shadow: 0 18px 40px rgba(0,0,0,0.45);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease;
  transform: translateY(-10px);
  z-index: 1100;
}

/* Add invisible bridge between avatar and dropdown */
.profile-dropdown::before {
  content: '';
  position: absolute;
  top: -12px; /* Covers the gap */
  left: 0;
  right: 0;
  height: 12px;
  background: transparent;
}

.profile-container:hover .profile-dropdown {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.profile-dropdown a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px; /* Increased from 10px to 12px for easier clicking */
  font-size: 0.9rem;
  color: #ffffff;
  text-decoration: none;
  white-space: nowrap;
  transition: background 0.2s ease;
}

.profile-dropdown a i {
  width: 16px;
  font-size: 0.9rem;
  opacity: 0.8;
}

.profile-dropdown a:hover {
  background: linear-gradient(135deg, #0066ff, #c27aff);
}
  .profile-container .avatar {
    cursor: pointer;
  }

  .profile-dropdown {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    background: #000e33;
    border-radius: 12px;
    padding: 8px 0;
    min-width: 180px;
    border: 1px solid rgba(255,255,255,0.15);
    box-shadow: 0 18px 40px rgba(0,0,0,0.45);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease, transform 0.2s ease;
    transform: translateY(-10px);
    z-index: 1100;
  }

  /* Invisible bridge between avatar and dropdown */
  .profile-dropdown::before {
    content: '';
    position: absolute;
    top: -12px;
    left: 0;
    right: 0;
    height: 12px;
    background: transparent;
  }

  .profile-container:hover .profile-dropdown {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
  }

  .profile-dropdown a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    font-size: 0.9rem;
    color: #ffffff;
    text-decoration: none;
    white-space: nowrap;
    transition: background 0.2s ease;
  }

  .profile-dropdown a i {
    width: 16px;
    font-size: 0.9rem;
    opacity: 0.8;
  }

  .profile-dropdown a:hover {
    background: linear-gradient(135deg, #0066ff, #c27aff);
  }

  /* ───── RESPONSIVE BREAKPOINTS ───── */
  @media (max-width: 1100px) {
    .navbar {
      padding: 0 32px 20px;
    }
  }

  @media (max-width: 900px) {
    .navbar {
      padding: 0 20px 20px;
    }

    .nav-logo {
      width: 180px;
    }

    .nav-left {
      gap: 20px;
    }
  }



  .guest-mobile-menu {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 80px;
    left: 0;
    right: 0;
    background: rgba(0, 14, 51, 0.96);
    padding: 20px 24px;
    gap: 18px;
    border-top: 1px solid rgba(255,255,255,0.1);
    box-sizing: border-box;
  }
  body.authenticated .guest-mobile-menu { display: none !important; }
  body:not(.authenticated) .menu-toggle:checked ~ .guest-mobile-menu { display: flex; }



/* ───── PROFILE DROPDOWN ───── */
.profile-container {
  position: relative;
  display: flex;
  align-items: center;
}

.profile-container .avatar {
  cursor: pointer;
}


.profile-dropdown {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  background: #ffffff !important;
  border-radius: 16px;
  padding: 6px;
  min-width: 180px;
  border: none;
  box-shadow: 0 8px 40px rgba(0, 0, 0, 0.13), 0 1px 4px rgba(0, 0, 0, 0.06);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease;
  transform: translateY(-8px);
  z-index: 1100;
}

/* Invisible bridge between avatar and dropdown */
.profile-dropdown::before {
  content: '';
  position: absolute;
  top: -12px;
  left: 0;
  right: 0;
  height: 12px;
  background: transparent;
}

.profile-container:hover .profile-dropdown {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.profile-dropdown a {
  display: flex;
  padding: 10px 14px;
  font-size: 0.9rem;
  font-weight: 400;
  color: #000e33 !important;
  text-decoration: none;
  white-space: nowrap;
  letter-spacing: 0;
  border-radius: 10px;
  transition: background 0.15s ease, color 0.15s ease;
}

.profile-dropdown a i {
  width: 15px;
  font-size: 0.85rem;
  opacity: 0.38;
  transition: opacity 0.15s ease;
}


/* Profile dropdown menu */
.profile-dropdown {
  position: absolute;
  top: calc(100% + 8px); /* Reduced gap from 12px to 8px */
  right: 0;
  background: #000e33;
  border-radius: 12px;
  padding: 8px 0;
  min-width: 180px;
  border: 1px solid rgba(255,255,255,0.15);
  box-shadow: 0 18px 40px rgba(0,0,0,0.45);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease;
  transform: translateY(-10px);
  z-index: 1100;
}

/* Add invisible bridge between avatar and dropdown */
.profile-dropdown::before {
  content: '';
  position: absolute;
  top: -12px; /* Covers the gap */
  left: 0;
  right: 0;
  height: 12px;
  background: transparent;
}

.profile-container:hover .profile-dropdown {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.profile-dropdown a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px; /* Increased from 10px to 12px for easier clicking */
  font-size: 0.9rem;
  color: #ffffff;
  text-decoration: none;
  white-space: nowrap;
  transition: background 0.2s ease;
}

.profile-dropdown a i {
  width: 16px;
  font-size: 0.9rem;
  opacity: 0.8;
}

.profile-dropdown a:hover {
  background: linear-gradient(135deg, #0066ff, #c27aff);
}

.profile-dropdown a i {
  width: 16px;
  font-size: 0.9rem;
  opacity: 0.8;
}

.profile-dropdown a:hover {
  background: rgba(75, 91, 213, 0.08) !important;
  color: #4b5bd5 !important;
}

.profile-dropdown a:hover i {
  opacity: 0.85;
}

.profile-dropdown a:hover {
  background: linear-gradient(135deg, #0066ff, #c27aff);
}

  @media (max-width: 768px) {
    .navbar {
      display: flex;
      justify-content: space-between;
      align-items: center;
      padding: 0 16px 20px;
    }

    .nav-logo {
      width: 170px;
    }

    .nav-left {
      display: none;
    }

    .guest-nav-left,
    body:not(.authenticated) .guest-nav-left {
      display: none !important;
    }

    .guest-nav-actions,
    body:not(.authenticated) .guest-nav-actions {
      display: none !important;
    }

    .nav-right {
      gap: 10px;
    }

    .nav-right .create-btn {
      display: none;
    }

    .hamburger {
      display: block;
    }
  }

  /* ───── HOVER EFFECTS ───── */
  a {
    text-decoration: none;
  }

  .avatar:hover,
  .create-btn:hover,
  .notification-bell:hover,
  .group-btn-primary:hover {
    box-shadow: 0 0 12px rgba(194, 122, 255, 0.6),
                0 0 6px rgba(0, 102, 255, 0.6);
    transition: 0.3s ease-in-out;
    cursor: pointer;
  }

  /* ───── NOTIFICATIONS ───── */
  .notification-container {
    position: relative;
    display: flex;
    align-items: center;
    z-index: 2000001 !important;
  }

  .notification-bell {
    position: relative;
  }

.notification-badge {
  position: absolute;
  top: -4px;
  right: -4px;
  min-width: 18px;
  height: 18px;
  padding: 0 4px;
  border-radius: 999px;
  background: linear-gradient(135deg, #0066ff, #c27aff);
  color: #ffffff;
  font-size: 11px;
  font-weight: 600;
  line-height: 18px;
  text-align: center;
  display: none;
  box-shadow: 0 0 0 2px #ffffff;
}

.notification-modal {
  position: absolute;
  top: 52px;
  right: 0;
  width: 320px;
  max-height: 420px;
  background: linear-gradient(180deg, #ffffff 0%, #fcfbff 100%) !important;
  border-radius: 16px;
  color: #000e33;
  padding: 12px 0;
  border: 1px solid rgba(0, 14, 51, 0.06) !important;
  box-shadow: 0 18px 45px rgba(0,0,0,0.5);
  overflow-y: auto;
  z-index: 2000001 !important;
}
.notification-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 16px 8px;
  border-bottom: 1px solid rgba(0, 14, 51, 0.08);

}

.notification-header h4 {
   font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
  margin-bottom: 10px;
  margin: 0;
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  opacity: 0.8;
  background: linear-gradient(135deg, #0066ff, #c27aff);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

  .notif-close {
    background: none;
    border: none;
    color: #000e33;
    font-size: 18px;
    cursor: pointer;
    padding: 4px;
  }



.guest-mobile-menu {
  background-color: white !important;
}
.guest-nav-left {
  align-items: center;
  gap: 32px;
  justify-content: center;
  grid-column: 2;
      margin: 0;
    min-height: 100%;
    font-family: "Helvetica Neue", Arial, sans-serif;
    color: #ffffff;
}


.guest-nav-left {
  align-items: center;
  gap: 32px;
  justify-content: center;
  grid-column: 2;
      margin: 0;
    min-height: 100%;
    font-family: "Helvetica Neue", Arial, sans-serif;
    color: #ffffff;
}




.guest-login-btn {
  padding: 10px 20px;
  border-radius: 999px;
  font-size: 0.95rem;
  font-weight: 500;

  color: #000e33 !important;

  /* 👇 FIXED */
  background: rgba(0, 14, 51, 0.04);
  border: 1px solid rgba(0, 14, 51, 0.15) !important;

  box-shadow: 0 6px 16px rgba(0, 14, 51, 0.08);

  transition: all 0.2s ease;
  text-decoration: none;
  cursor: pointer;
}
.guest-login-btn:hover {
  background: rgba(0, 14, 51, 0.07) !important;
  border-color: rgba(0, 14, 51, 0.25) !important;
  transition: 0.3s ease-in-out;
}

.guest-mobile-menu {
  background-color: white !important;
}

  .notification-list {
    list-style: none;
    margin: 0;
    padding: 0;
    max-height: 360px;
    overflow-y: auto;
  }

.notification-entry {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 10px 16px;
  font-size: 0.88rem;
  border-bottom: 1px solid rgba(0, 14, 51, 0.06);
  z-index: 2000001 !important;
}

.notification-entry.unread {
  background: rgba(0, 102, 255, 0.08);
}

.notification-empty {
  padding: 12px 16px;
  font-size: 0.85rem;
  opacity: 0.7;
}

  .monogram-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    padding: 2px;
    background: linear-gradient(135deg, #0066ff, #c27aff);
    flex-shrink: 0;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .user-location {
    font-size: 0.85rem;
    color: #4b5bd5;
    opacity: 0.8;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .avatar-gradient {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    padding: 1px;
    background: linear-gradient(135deg, #0066ff, #c27aff);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
  }


  @media (max-width: 768px) {
    .notification-modal {
      right: 50%;
      transform: translateX(50%);
      width: min(360px, calc(100vw - 32px));
    }
  }

  /* Gradient fallback avatar */
  .gradient-avatar {
    background: linear-gradient(135deg, #0066ff, #c27aff);
    border: 2px solid rgba(255, 255, 255, 0.4);
    color: #ffffff;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
  }



.rr-footer {
  background: linear-gradient(180deg, #ffffff 0%, #fcfbff 100%);
  color: #000e33;
  padding: 64px 24px 40px;
  border-top: 1px solid rgba(0, 14, 51, 0.06);
}

.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
}
/* subtle hero-like glow */
.rr-footer::before{
  content:"";
  position:absolute;
  inset:-40%;
  pointer-events:none;
  background:
    radial-gradient(900px 420px at 18% 10%, rgba(0,102,255,0.18), transparent 60%),
    radial-gradient(900px 520px at 85% 25%, rgba(194,122,255,0.16), transparent 62%);
  filter: blur(40px);
  opacity: 0.8;
}

.footer-inner{
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 40px;
  position: relative;
  z-index: 1;
}

/* Logo + tagline */
.footer-logo-wrapper{
  text-align: left;
  margin-bottom: 26px;
}

.footer-logo{
  height: 100px;
  width: auto;
  display: block;
  margin-bottom: 10px;
}

.footer-tagline{
  margin: 0;
  font-size: 14px;
  line-height: 1.6;
  color: rgba(0, 14, 51, 0.65);
}

/* Columns */
.footer-columns{
  display: flex;
  justify-content: space-between;
  gap: 56px;
  flex-wrap: wrap;
  margin-top: 18px;
}

.footer-col{
  min-width: 160px;
}

.footer-col h4 {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: rgba(0, 14, 51, 0.5);
  margin-bottom: 12px;
}

.footer-col a {
  display: block;
  font-size: 0.9rem;
  color: #000e33;
  text-decoration: none;
  margin-bottom: 8px;
  transition: color 0.15s ease;
}

.footer-col a:hover {
  color: #4b5bd5;
}

/* Divider */
.footer-divider {
  margin: 36px 0;
  height: 1px;
  background: linear-gradient(
    to right,
    transparent,
    rgba(0, 14, 51, 0.08),
    transparent
  );
}


.footer-app-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
}


.footer-badges img {
  height: 40px;
  margin-right: 10px;
  opacity: 0.9;
  transition: transform 0.15s ease, opacity 0.15s ease;
}

.footer-badges img:hover {
  transform: translateY(-2px);
  opacity: 1;
}

/* App badges row + CTA */
.footer-app-row{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 26px;
}


.footer-cta{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 18px;
  border-radius: 999px;
  font-weight: 750;
  font-size: 14px;
  color: #ffffff;
  text-decoration: none;

  background: linear-gradient(90deg, #0066ff, #c27aff);
  box-shadow: 0 16px 40px rgba(75,91,213,0.28);
  transition: transform .15s ease, box-shadow .15s ease;
}

.footer-cta:hover{
  transform: translateY(-1px);
  box-shadow: 0 20px 50px rgba(75,91,213,0.34);
}

/* Bottom row */
.footer-bottom {
  margin-top: 28px;
  display: grid;
  grid-template-columns: 1fr auto auto;
  align-items: end;
  gap: 20px;
}

.footer-bottom-left {
  display: flex;
  flex-direction: column;
  gap: 4px;
}


.footer-legal {
  margin: 0;
  font-size: 0.75rem;
  color: rgba(0, 14, 51, 0.5);
  line-height: 1.4;
}


.footer-legal-subtle {
  margin: 0;
  font-size: 0.72rem;
  color: rgba(0, 14, 51, 0.42);
  text-align: center;
}


.footer-socials {
  display: flex;
  gap: 12px;
  justify-self: end;
}

@media (max-width: 900px) {
  .footer-bottom {
    grid-template-columns: 1fr;
    gap: 14px;
    text-align: left;
  }

  .footer-legal-subtle {
    text-align: left;
  }

  .footer-socials {
    justify-self: start;
  }
}

.footer-socials a {
  width: 34px;
  height: 34px;
  border-radius: 999px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 14, 51, 0.05);
  color: #000e33;
  transition: all 0.18s ease;
}

.footer-socials a:hover {
  background: linear-gradient(135deg, #0066ff, #c27aff);
  color: #fff;
}

.rr-footer::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 120px;
  background: radial-gradient(
    circle at top,
    rgba(194, 122, 255, 0.12),
    transparent 70%
  );
  pointer-events: none;
}

.footer-heart {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.footer-heart i {
  font-size: 0.85rem;

  /* gradient heart */
  background: linear-gradient(135deg, #0066ff, #c27aff);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;

  /* fallback for non-webkit */
  color: #c27aff;
}

.footer-heart i {
  transition: transform 0.2s ease;
}

.footer-made:hover .footer-heart i {
  transform: scale(1.15);
}


.footer-made {
  margin: 0;
  font-size: 0.78rem;
  color: rgba(0, 14, 51, 0.55);
  display: flex;
  align-items: center;
  gap: 6px;
}
/* gradient heart */
.footer-heart i {
  font-size: 0.85rem;
  background: linear-gradient(135deg, #0066ff, #c27aff);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  color: #c27aff;
  transition: transform 0.2s ease;
}

/* subtle hover = feels alive */
.footer-made:hover .footer-heart i {
  transform: scale(1.15);
}

/* NYC link styling */
.footer-city-link {
  color: #000e33;
  text-decoration: none;
  font-weight: 600;
  position: relative;
}

/* subtle underline on hover */
.footer-city-link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -2px;
  width: 100%;
  height: 1px;
  background: linear-gradient(135deg, #0066ff, #c27aff);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.2s ease;
}

.footer-city-link:hover::after {
  transform: scaleX(1);
}

.footer-legal-subtle {
  font-size: 0.72rem;
  opacity: 0.6;
  margin-top: 4px;
}

.footer-bottom {
  margin-top: 28px;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 20px;
  flex-wrap: wrap;
}

.footer-bottom-left {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.footer-legal,
.footer-legal-subtle {
  margin: 0;
}

.footer-legal-subtle {
  font-size: 0.72rem;
  opacity: 0.6;
}

  /* ═══════════════════════════════════════════════════════
    BASE STYLES
    ═══════════════════════════════════════════════════════ */


  /* ═══════════════════════════════════════════════════════
    HERO SECTION
    ═══════════════════════════════════════════════════════ */
  .creator-hero {
    background:
      radial-gradient(circle at top left, rgba(194, 122, 255, 0.08), transparent 40%),
      radial-gradient(circle at top right, rgba(0, 102, 255, 0.08), transparent 40%),
      linear-gradient(180deg, #ffffff 0%, #fcfbff 100%);
    color: #000e33;
    padding: 72px 24px 44px;
    position: relative;
    overflow: visible;
    border-bottom: 1px solid rgba(0,0,0,0.05);
    text-align: center;
  }

  main {
      background-color: #ffffff;
  }

  .hero-title {
  margin: 0 0 12px;
  font-size: clamp(2rem, 4vw, 3.3rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.02;
  color: #000e33;
  padding-bottom: 20px;
    text-align: center;
  }

  .hero-subtitle {
  font-size: 1.1rem;
  color: #545459;
  opacity: 0.85;
      text-align: center;

  margin: 0 0 36px;
  }

  /* ═══════════════════════════════════════════════════════
    SEARCH SECTION
    ═══════════════════════════════════════════════════════ */
 .search-section {
  max-width: 600px;
  margin: 24px auto 0;
  display: flex;
  align-items: center;
  gap: 12px;
  background: #ffffff;
  border: 1px solid rgba(0, 14, 51, 0.12);
  border-radius: 999px;
  padding: 10px 16px;
  box-shadow: 0 20px 50px rgba(0, 14, 51, 0.08), 0 2px 6px rgba(0, 14, 51, 0.05);
  transition: box-shadow 0.2s ease;
}



.toggle-sort-container {
  max-width: 600px;
  margin: 24px auto 0;
  display: flex;
  align-items: center;
  gap: 12px;
  background: #ffffff;
  border: 1px solid rgba(0, 14, 51, 0.12);
  border-radius: 999px;
  padding: 10px 16px;
  box-shadow: 0 20px 50px rgba(0, 14, 51, 0.08), 0 2px 6px rgba(0, 14, 51, 0.05);
  transition: box-shadow 0.2s ease;
}

  /* Toggle Buttons - Updated to match destination style */
  .view-toggle {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-top: 0;
  padding-left: 0;
}

  .toggle-btn {
  border: 1px solid rgba(0, 14, 51, 0.12);
  background: #f7f8fc;
  color: #4a4f6b;
  border-radius: 999px;
  padding: 7px 16px;
  font-size: 0.82rem;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.15s ease;
}

  .toggle-btn i {
    font-size: 0.85rem;
  }

  .toggle-btn.active {
  background: linear-gradient(135deg, #0066ff 0%, #c27aff 100%);
  color: #ffffff;
  border-color: transparent;
  box-shadow: 0 6px 16px rgba(0, 102, 255, 0.20);
}


  .toggle-btn:hover:not(.active) {
   transform: translateY(-1px);
  background: #ffffff;
  border-color: rgba(75, 91, 213, 0.28);
  box-shadow: 0 10px 24px rgba(0, 14, 51, 0.09);
    background: rgba(0, 102, 255, 0.06);
  border-color: #4b5bd5;
  transform: translateY(-1px);
  color: #4b5bd5;
}

  /* Filter Tags */
  .filter-tags {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
  }

  .filter-tag {
    padding: 10px 20px;
    border-radius: 50px;
    border: 1px solid #e2e8f0;
    background: #ffffff;
    color: #64748b;
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
  }

  .filter-tag:hover {
    border-color: #4b5bd5;
    color: #4b5bd5;
    background: rgba(75, 91, 213, 0.05);
  }

  .filter-tag.active {
    background: linear-gradient(135deg, #0066ff, #c27aff);
    color: #ffffff;
    border-color: transparent;
  }

  /* ═══════════════════════════════════════════════════════
    RESULTS SECTION
    ═══════════════════════════════════════════════════════ */
  .results-section {
    padding: 0 0 100px;
    min-height: 60vh;
  }

  .results-container {
    max-width: none;
    margin: 0;
  }

  .content-view {
    display: none;
    animation: fadeIn 0.4s ease;
  }

  .content-view.active {
    display: block;
  }

  @keyframes fadeIn {
    from {
      opacity: 0;
      transform: translateY(10px);
    }
    to {
      opacity: 1;
      transform: translateY(0);
    }
  }

  .results-header {
    margin-bottom: 32px;
  }



  .creator-search .search-bar {
  max-width: 600px;
  margin: 24px auto 0;
  display: flex;
  align-items: center;
  gap: 12px;
  background: #ffffff;
  border: 1px solid rgba(0, 14, 51, 0.12);
  border-radius: 999px;
  padding: 10px 16px;
  box-shadow: 0 20px 50px rgba(0, 14, 51, 0.08), 0 2px 6px rgba(0, 14, 51, 0.05);
  transition: box-shadow 0.2s ease;
}




  .creator-search .search-icon-circle {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: rgba(0, 102, 255, 0.08);
  border: 1px solid rgba(0, 102, 255, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}


  .creator-search .search-icon-circle i {
   font-size: 0.82rem;
  background: linear-gradient(135deg, #0066ff, #c27aff);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

  .creator-search #searchInput {
    flex: 1;
    border: none;
    outline: none;
    background: transparent;

    font-size: 1rem;
    color: #000e33;
    padding: 0;
    border-radius: 0;
    box-shadow: none;
  }

  .creator-search #searchInput::placeholder {
    color: #9aa0b5;
    opacity: 1;
  }

  .creator-search .clear-search {
    background: transparent;
    border: none;
    cursor: pointer;

    width: 34px;
    height: 34px;
    border-radius: 999px;

    display: flex;
    align-items: center;
    justify-content: center;

    color: #9aa0b5;
    flex-shrink: 0;
    transition: all 0.2s ease;
  }

  .creator-search .clear-search:hover {
    background: #f3f4f6;
    color: #64748b;
  }


  .results-header h2 {
    font-size: 1.5rem;
    font-weight: 700;
    color: #000e33;
    margin: 0;
  }
  /* Collections Grid — 4-col with subtle gap so tiles don't bleed together */
  .collections-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2px;
    background: #d1d5db; /* gap colour shows as thin dividers */
  }

  /* ───── COLLECTION CARD — full-bleed tile ───── */
  .collection-card {
    position: relative;
    aspect-ratio: 1.15;
    overflow: hidden;
    background: #e9ecf5;
    border-radius: 0;
    border: none;
    box-shadow: none;
    cursor: pointer;
  }

  /* Image collage fills entire card */
  .collection-card-images {
    position: absolute;
    inset: 0;
    display: grid;
    grid-template-columns: 2fr 1fr;
    grid-template-rows: 1fr 1fr;
    gap: 2px;
    box-sizing: border-box;
  }

  /* shared “slot” wrapper */
  .collection-image-slot{
    position: relative;
    overflow: hidden;
    border-radius: 0;
    background: rgba(255,255,255,0.06);
  }


  /* Main image spans both rows */
  .collection-main-image {
    grid-row: 1 / 3;
  }

  /* Minis: each is a square-ish block */
  .collection-mini-images {
    display: contents;
  }

  /* Image fill */
  .collection-image-slot img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
  }

  /* Gradient fallback */
  .collection-image-gradient {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, #0066ff 0%, #c27aff 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: filter 0.25s ease, transform 0.25s ease;
  }

  .collection-card:hover .collection-image-gradient {
    filter: brightness(0.95) saturate(1.05);
    transform: scale(1.02);
  }

  /* Icon sizing */
  .collection-image-gradient i {
    font-size: 2.2rem;
    color: rgba(255, 255, 255, 0.45);
  }

  .collection-mini-slot .collection-image-gradient i {
    font-size: 1.35rem;
  }

  /* ───── TILE OVERLAY (gradient from top → dark at bottom) ───── */
  .collection-tile-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
      to bottom,
      rgba(0,0,0,0.04) 0%,
      rgba(0,0,0,0.14) 32%,
      rgba(0,0,0,0.76) 100%
    );
    pointer-events: none;
  }

  /* ───── TOP ROW: share/options (hidden until hover) + avatar + save ───── */
  .collection-tile-top {
    position: absolute;
    top: 10px;
    left: 10px;
    right: 10px;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    z-index: 3;
  }

  .collection-tile-actions {
    display: flex;
    gap: 6px;
    opacity: 0;
    transition: opacity 0.2s ease;
  }

  .collection-card:hover .collection-tile-actions {
    opacity: 1;
  }

  .collection-tile-topright {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 8px;
  }

  .collection-tile-avatar {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: linear-gradient(135deg, #0066ff 0%, #c27aff 100%);
    padding: 2px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    text-decoration: none;
    flex-shrink: 0;
  }

  .collection-tile-save-btn {
    width: 31px;
    height: 31px;
    border-radius: 50%;
    background: rgba(0,0,0,0.22);
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 15px;
    transition: transform 0.15s ease;
  }

  .collection-tile-save-btn:hover {
    transform: scale(1.12);
  }

  .collection-tile-save-btn.saved {
    color: #ec4899;
  }

  /* ───── BOTTOM ROW: title + meta ───── */
  .collection-tile-bottom {
    position: absolute;
    bottom: 12px;
    left: 12px;
    right: 12px;
    z-index: 3;
  }

  .collection-tile-title {
    color: #fff;
    font-size: 1.4rem;
    line-height: 1.25;
    font-weight: 800;
    letter-spacing: -0.2px;
    margin: 0 0 5px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }

  .collection-tile-meta {
    color: rgba(255,255,255,0.88);
    font-size: 0.8rem;
    font-weight: 500;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  /* ───── LEGACY OVERLAY ACTIONS (kept for modals/dropdowns) ───── */
  .collection-card-overlay{
    position: absolute;
    inset: 0;
    pointer-events: none;
    opacity: 0;
    transition: opacity .2s ease;
  }
  .collection-card:hover .collection-card-overlay{
    opacity: 1;
    pointer-events: auto;
  }

  /* Rec Options Dropdown */
  .rec-options-dropdown,
  .collection-options-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    margin-top: 8px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 14, 51, 0.15);
    min-width: 180px;
    z-index: 1000;
    opacity: 0;
    transform: translateY(-10px);
    pointer-events: none;
    transition: all 0.2s ease;
  }

  .rec-options-dropdown.active,
  .collection-options-dropdown.active {
    opacity: 1;
    transform: translateY(0);
    pointer-events: all;
  }

  .rec-options-dropdown-item,
  .collection-options-dropdown-item {
    padding: 12px 16px;
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    transition: background 0.2s ease;
    font-size: 0.9rem;
    color: #000e33;
    border: none;
    background: none;
    width: 100%;
    text-align: left;
  }

  .rec-options-dropdown-item:first-child,
  .collection-options-dropdown-item:first-child {
    border-radius: 12px 12px 0 0;
  }

  .rec-options-dropdown-item:last-child,
  .collection-options-dropdown-item:last-child {
    border-radius: 0 0 12px 12px;
  }

  .rec-options-dropdown-item:hover,
  .collection-options-dropdown-item:hover {
    background: rgba(75, 91, 213, 0.12); /* soft indigo wash */
      color: #4b5bd5;}

  .rec-options-dropdown-item.delete:hover,
  .collection-options-dropdown-item.delete:hover{
    background: rgba(255, 59, 48, 0.08);
    color: #ff3b30;
  }

  .rec-options-dropdown-item i,
  .collection-options-dropdown-item i {
    width: 16px;
    text-align: center;
  }
  /* Saved bookmark styling */
  .rec-save-stat.saved {
    color: #ff1744; /* Hot pink */
  }

  .rec-save-stat.saved i {
    color: #ff1744;
  }

  .collection-card-action{
    width: 36px;
    height: 36px;
    border-radius: 999px;
    border: none;
    cursor: pointer;
    background: rgba(10, 10, 15, 0.55);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    color: #fff;
    display: grid;
    place-items: center;
  }

  .collection-card-actions{
    position: absolute;
    top: 12px;
    right: 12px;
    display: flex;
    gap: 10px;
  }


  .collection-card-action:hover {
    background: linear-gradient(135deg, #0066ff, #c27aff);
    transform: scale(1.1);
  }

  /* ───── CONTENT SECTION ───── */
  .collection-card-content {
    padding: 20px;
  }

  /* ✅ Better hover state for creator bar */
  .collection-creator-bar {
    cursor: pointer !important;
    user-select: none;
  }

  .collection-creator-bar:hover .collection-creator-name {
    color: #667eea;
  }
  /* ✅ FIXED: Collection creator bar - no weird padding */
  .collection-creator-bar {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
  }

  .collection-creator-bar,
  .collection-creator-link {
    position: relative;
    z-index: 500;
  }

  .collection-creator-link {
    display: flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    color: inherit;
    flex: 1;
    padding: 4px 8px;
    margin: -4px -8px; /* Negative margin to expand clickable area */
    border-radius: 6px;
    transition: background 0.15s ease;
    cursor: pointer;
  }

  .collection-creator-link:hover {
    background: rgba(102, 126, 234, 0.08);
  }

  .collection-creator-link:hover .collection-creator-name {
    color: #667eea;
  }

  .collection-creator-name {
    font-size: 14px;
    font-weight: 500;
    transition: color 0.15s ease;
  }

  .collection-creator-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    overflow: hidden;
    background: linear-gradient(135deg, #0066ff, #c27aff);
    padding: 2px;
  }

  .collection-creator-avatar img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    background: #000e33;
  }

  .collection-creator-initials {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: #000e33;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: 600;
    color: #ffffff;
  }

  .collection-creator-name {
    font-size: 0.9rem;
    font-weight: 500;
    color: #545459;
  }

  /* Creator badge */
  .creator-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 3px 8px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    background: linear-gradient(135deg, #0066ff 0%, #c27aff 100%);
    color: white;
    box-shadow: 0 2px 4px rgba(102, 126, 234, 0.3);
    white-space: nowrap;
  }

  .creator-badge i {
    font-size: 10px;
  }

  /* ✅ Animation on hover */
  .collection-creator-bar:hover .creator-badge {
    transform: scale(1.05);
    box-shadow: 0 3px 6px rgba(102, 126, 234, 0.4);
  }
.collection-creator-bar {
  margin-bottom: 10px;
  padding-bottom: 10px;
  border-bottom: 1px solid #f0f0f0;
}

  .creator-badge {
    transition: all 0.2s ease;
  }

  /* Title and location */
  .collection-card-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: #000e33;
    margin: 0 0 8px;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }

  .collection-card-location {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.85rem;
    color: #4b5bd5;
    margin-bottom: 16px;
  }

  .collection-card-location i {
    color: #4b5bd5;
    font-size: 0.85rem;
  }

  /* Stats row */
  /* Stats row */
  .collection-card-stats {
    display: flex;
    align-items: center;
    gap: 16px;
    font-size: 0.85rem;
    color: #000e33 !important;

  }

  .collection-card-stats > span {
    display: flex;
    align-items: center;
    gap: 6px;
      color: #000e33 !important;

  }

  .collection-card-stats i {
    font-size: 0.9rem;
    color: #000e33;
      opacity: 0.75;

  }/* Sort dropdown styling */
.sort-dropdown {
  display: flex;
  align-items: center;
  gap: 12px;
  /* Remove padding and min-width */
}

.sort-label {
  font-size: 0.9rem;
  opacity: 0.8;
  color: #000e33;
  white-space: nowrap;
}

.sort-select {
  padding: 8px 12px;
  border-radius: 8px;
  background: white;
  color: #000e33;
  font-size: 0.9rem;
  border: 1px solid #e2e8f0;
  cursor: pointer;
  min-width: 160px;
}

.sort-select option {
  background: #ffffff;
  color: #000e33;
}

/* Saved state styling */
.collection-save-stat.saved {
  color: #ff1744 !important;
}

.collection-save-stat.saved i {
  color: #ff1744 !important;
}

.loading-spinner {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 60px 20px;
  color: #64748b;
}

.loading-spinner i {
  font-size: 2.5rem;
  margin-bottom: 16px;
  color: #4b5bd5;
}

.loading-spinner p {
  font-size: 1rem;
  margin: 0;
}
.notification-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  padding: 2px;
  background: linear-gradient(135deg, #0066ff, #c27aff);
  flex-shrink: 0;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.notification-avatar img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  display: block;
}

.notification-avatar.monogram {
  border: 1px solid transparent;

  background:
    linear-gradient(135deg, #eef4ff 0%, #f5efff 55%, #f8f3ff 100%) padding-box,
    linear-gradient(135deg, #0066ff 0%, #c27aff 100%) border-box;

  color: #000e33;
  font-weight: 600;
  font-size: 0.9rem;
  text-transform: uppercase;

  display: flex;
  align-items: center;
  justify-content: center;

  overflow: hidden;
}
.notification-avatar.monogram::after {
  content: attr(data-initials);

  display: flex;
  align-items: center;
  justify-content: center;

  width: 100%;
  height: 100%;

  border-radius: 50%;

  background:
    radial-gradient(circle at top left, rgba(0,102,255,0.22), transparent 45%),
    radial-gradient(circle at top right, rgba(194,122,255,0.28), transparent 45%),
    linear-gradient(135deg, #eef4ff 0%, #f5efff 55%, #f8f3ff 100%);

  color: #000e33;
}
.nav-monogram {
  width: 90%;
  height: 90%;
  border-radius: 50%;
background:
  radial-gradient(circle at top left, rgba(0,102,255,0.22), transparent 45%),
  radial-gradient(circle at top right, rgba(194,122,255,0.28), transparent 45%),
  linear-gradient(135deg, #eef4ff 0%, #f5efff 55%, #f8f3ff 100%);
  display: flex;
  align-items: center;
  justify-content: center;

  font-weight: 600;
  font-size: 0.85rem;
  color: #000e33;

  border: 1px solid rgba(194,122,255,0.14);
}
.notification-meta {
  display: flex;
  flex-direction: column;
  gap: 4px;
  text-align: left;
}

.notif-line {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}

.notif-name {
  font-weight: 600;
  color: #000e33;
  text-decoration: none;
}

.notif-name:hover {
  text-decoration: underline;
}

.trip-link {
  color: #4b5bd5;
  text-decoration: none;
}
.invite-actions {
  display: flex;
  gap: 6px;
  margin-top: 4px;
}

.invite-actions button {
  border: none;
  border-radius: 999px;
  padding: 4px 10px;
  font-size: 0.78rem;
  cursor: pointer;
}


  /* ✅ Add to creator-collections.css */
.collection-save-stat.saved {
  color: #ff1744; /* Hot pink */
}

.collection-save-stat.saved i {
  color: #ff1744;
}
  .collection-save-count,
  .collection-comment-count,
  .collection-rec-count {
    color: #000e33 !important;
      opacity: 0.75;

  }
  .rec-card-stats{
    display: flex;
    gap: 16px;
    font-size: 0.85rem;
    opacity: 0.75;
  }

  .rec-card-stats span {
    display: flex;
    align-items: center;
    gap: 4px;
  }

  .comment-entry {
  display: flex;
  }


  .rr-comment-body{ min-width: 0; flex: 1; }
  .rr-comment-head{
    display: flex;
    align-items: baseline;
    gap: 10px;
    flex-wrap: wrap;
  }
  .rr-comment-name{ font-weight: 800; color: #0b1b3a; }
  .rr-comment-time{ color: rgba(11,27,58,0.55); font-size: 14px; }
  .rr-comment-text{ color: rgba(11,27,58,0.85); font-size: 18px; line-height: 1.35; }


.rec-comment-avatar-fallback {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  flex-shrink: 0;

  display: flex;
  align-items: center;
  justify-content: center;

  font-weight: 700;
  font-size: 14px;
  color: #000e33;
  text-transform: uppercase;

  border: 1px solid transparent;

  background:
    linear-gradient(135deg, #eef4ff 0%, #f5efff 55%, #f8f3ff 100%) padding-box,
    linear-gradient(135deg, #0066ff 0%, #c27aff 100%) border-box;

  overflow: hidden;
}



  .rec-comment-row {
    display: flex;
    gap: 12px;
    padding: 12px 14px; /* ✅ Increased from 8px 10px */
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.92);
    border: 1px solid rgba(107, 95, 255, 0.14);
    box-shadow: 0 10px 20px rgba(10, 12, 30, 0.08);
  }

  .rec-comment-author {
    margin: 0;
  }


  .rec-comment-avatar,
  .comment-avatar{
    width: 36px;
    height: 36px;
    border-radius: 50%;
    flex-shrink: 0;
    object-fit: cover;
    border: 2px solid transparent;
    background:
      linear-gradient(#000e33, #000e33) padding-box,
      linear-gradient(135deg, #0066ff 0%, #c27aff 100%) border-box;
  }


  .rec-comment-actions{
    display: flex;
    align-items: center;
    gap: 8px;
  }

  .rec-comment-delete-btn,
  .rec-comment-report-btn{
    border: 1px solid rgba(20, 20, 30, 0.10);
    background: rgba(255, 255, 255, 0.75);
    color: rgba(20, 20, 30, 0.70);
    padding: 6px 12px; /* ✅ Use padding instead of fixed height */
    border-radius: 999px;
    cursor: pointer;
    font-size: 0.82rem;
    transition: transform 0.15s ease, background 0.15s ease, border-color 0.15s ease;
  }
  .rec-comment-delete-btn:hover{
    background: rgba(255, 107, 107, 0.10);
    border-color: rgba(255, 107, 107, 0.25);
    transform: translateY(-1px);
  }
  .rec-comment-report-btn:hover{
    background: rgba(107, 95, 255, 0.10);
    border-color: rgba(107, 95, 255, 0.22);
    transform: translateY(-1px);
  }

  .rec-comment-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin: 0;
  }

  .rec-comment-meta {
    display: flex;
    flex-direction: column;
    gap: 2px;
  }

  .rec-comment-body {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 4px; /* ✅ Increased from 2px to 4px */
  }

  .rec-comment-header{
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 0 !important;
  }

  .rec-comment-actions{
    display: flex;
    align-items: center;
    gap: 2px;
    margin-left: auto;
  }

  .rec-comment-time {
    font-size: 12px;
    line-height: 0;
    color: rgba(20, 20, 30, 0.45);
  }

  .rec-comment-name {
    font-weight: 800;
    font-size: 0.92rem;
    color: #000e33;
    margin: 0;
  }

  .rec-comment-name:hover{
    color: #4b5bd5;
  }


  .confirm-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 10001;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
    animation: fadeIn 0.3s ease;
  }

  .confirm-modal.active {
    display: flex;
  }

  .confirm-modal-content {
    background: #ffffff;
    border-radius: 20px;
    width: 100%;
    max-width: 400px;
    padding: 32px;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.5);
    animation: slideUp 0.3s ease;
    text-align: center;
  }

  .confirm-modal-icon {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: rgba(255, 59, 48, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    font-size: 1.8rem;
    color: #ff3b30;
  }

  .confirm-modal-title {
    margin: 0 0 12px;
    font-size: 1.5rem;
    font-weight: 700;
    color: #000e33;
  }

  .confirm-modal-message {
    margin: 0 0 28px;
    font-size: 1rem;
    color: #000e33;
    opacity: 0.7;
    line-height: 1.5;
  }

  .confirm-modal-actions {
    display: flex;
    gap: 12px;
    justify-content: center;
  }

  .confirm-delete-btn,
  .confirm-cancel-btn {
    padding: 12px 28px;
    border-radius: 12px;
    border: none;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: 0.2s ease;
    display: flex;
    align-items: center;
    gap: 8px;
  }

  .confirm-delete-btn {
    background: #ff3b30;
    color: white;
  }

  .confirm-delete-btn:hover {
    background: #e02d21;
    box-shadow: 0 8px 20px rgba(255, 59, 48, 0.3);
  }

  .confirm-cancel-btn {
    background: transparent;
    border: 1px solid rgba(0, 14, 51, 0.2);
    color: #000e33;
  }

  .confirm-cancel-btn:hover {
    background: rgba(0, 14, 51, 0.05);
  }

  @media (max-width: 480px) {


  .mobile-menu .create-btn {
    display: flex;
    width: 100%;
    justify-content: center;
  }

  .hero-subtitle {
    font-size: 1.1rem;
    color: #545459;
    opacity: 0.85;
    margin: 0 0 0px !important;
  }
    .confirm-modal-content {
      padding: 24px;
    }

    .confirm-modal-actions {
      flex-direction: column-reverse;
    }

    .confirm-delete-btn,
    .confirm-cancel-btn {
      width: 100%;
      justify-content: center;
    }
  }


  .rr-modal-card{
    position: relative;
    width: min(520px, calc(100vw - 32px));
    margin: 10vh auto 0;
  }

  /* Make textarea match rr-input sizing */
  .rr-textarea{
    height: auto;
    min-height: 96px;
    padding: 12px 14px;
    line-height: 1.35;
  }

  /* Select sometimes looks different across browsers—this helps */
  .rr-input select,
  select.rr-input{
    appearance: none;
    -webkit-appearance: none;
    background-image:
      linear-gradient(45deg, transparent 50%, rgba(11,27,58,0.55) 50%),
      linear-gradient(135deg, rgba(11,27,58,0.55) 50%, transparent 50%);
    background-position:
      calc(100% - 18px) 19px,
      calc(100% - 12px) 19px;
    background-size: 6px 6px, 6px 6px;
    background-repeat: no-repeat;
    padding-right: 34px;
  }

  .rr-input::placeholder,
  .rr-textarea::placeholder {
    font-family: "Helvetica Neue", Arial, sans-serif;
    font-weight: 400;
    color: rgba(11,27,58,0.45);
  }


  .rr-input,
  .rr-textarea,
  select.rr-input {
    font-family: "Helvetica Neue", Arial, sans-serif;
    font-weight: 400;
    font-size: 15px;
    line-height: 1.25;

    /* 🔑 fixes “weird typing” look */
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;

    letter-spacing: -0.01em;
  }

  .rr-textarea {
      padding-top: 10px !important;
  }

  .rr-toast {
    position: fixed;
    bottom: 32px;
    left: 50%;
    transform: translateX(-50%) translateY(20px);
    background: linear-gradient(135deg, #0066ff, #c27aff);
    color: white;
    padding: 14px 22px;
    border-radius: 999px;
    font-weight: 600;
    font-size: 14px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.25);
    opacity: 0;
    pointer-events: none;
    transition: all 0.35s ease;

    /* 🔑 FIX */
    z-index: 100000;
  }


  .rr-toast.show {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
  }

  /* Select sometimes looks different across browsers—this helps */
  .rr-input select,
  select.rr-input{
    appearance: none;
    -webkit-appearance: none;
    background-image:
      linear-gradient(45deg, transparent 50%, rgba(11,27,58,0.55) 50%),
      linear-gradient(135deg, rgba(11,27,58,0.55) 50%, transparent 50%);
    background-position:
      calc(100% - 18px) 19px,
      calc(100% - 12px) 19px;
    background-size: 6px 6px, 6px 6px;
    background-repeat: no-repeat;
    padding-right: 34px;
  }

  .rr-input::placeholder,
  .rr-textarea::placeholder {
    font-family: "Helvetica Neue", Arial, sans-serif;
    font-weight: 400;
    color: rgba(11,27,58,0.45);
  }


  .rr-input::placeholder,
  .rr-textarea::placeholder {
    font-family: "Helvetica Neue", Arial, sans-serif;
    font-weight: 400;
    color: rgba(11,27,58,0.45);
  }


  .rr-input,
  .rr-textarea,
  select.rr-input {
    font-family: "Helvetica Neue", Arial, sans-serif;
    font-weight: 400;
    font-size: 15px;
    line-height: 1.25;

    /* 🔑 fixes “weird typing” look */
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;

    letter-spacing: -0.01em;
  }
  .rr-input,
  .rr-textarea,
  select.rr-input {
    font-family: "Helvetica Neue", Arial, sans-serif;
    font-weight: 400;
    font-size: 15px;
    line-height: 1.25;

    /* 🔑 fixes “weird typing” look */
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;

    letter-spacing: -0.01em;
  }

  .rr-modal-actions{
    display: flex;
    gap: 14px;
    justify-content: center;
    margin-top: 22px;
  }

  .rr-btn{
    height: 50px;
    border-radius: 18px;
    padding: 0 18px;
    font-weight: 700;
    font-size: 15px;
    border: none;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 10px;
  }

  .rr-btn-ghost{
    background: rgba(11,27,58,0.06);
    color: rgba(11,27,58,0.85);
  }

  .rr-btn-primary{
    background: linear-gradient(135deg, #0066ff 0%, #c27aff 100%);
    color: #fff;
    box-shadow: 0 16px 40px rgba(0,0,0,0.18);
  }

  .rr-btn:disabled{
    opacity: 0.6;
    cursor: not-allowed;
  }

  /* Segmented visibility toggle (refined) */
  .rr-seg-toggle{
    display: inline-flex;
    gap: 4px;
    padding: 4px;
    border-radius: 999px;
    background: rgba(11,27,58,0.06);
    border: 1px solid rgba(11,27,58,0.10);
  }

  .rr-seg-btn{
    border: 0;
    background: transparent;
    padding: 7px 14px;
    border-radius: 999px;
    font-weight: 700;
    font-size: 13.5px;
    line-height: 1;             /* key: prevents vertical bloat */
    cursor: pointer;
    color: rgba(11,27,58,0.6);
    transition: background .18s ease, color .18s ease, box-shadow .18s ease;
  }

  .rr-seg-btn.active{
    background: #fff;
    color: rgba(11,27,58,0.95);
    box-shadow: 0 6px 16px rgba(0,0,0,0.12);
    border: 1px solid rgba(11,27,58,0.12);
  }
  .comment-meta {
  flex: 1;
  }



  .modal-comment-form {
    display: flex;
    flex-direction: column;
    gap: 10px;
  }



  .modal-comment-form textarea {
    width: 95%;
    height: 50px;
    border-radius: 8px;
    border: 1px solid #ccc;
    padding: 8px;
    resize: none;
  }

  .modal-comment-form button {
    align-self: flex-end;
    background: #C2A15A;
    color: white;
    border: none;
    padding: 6px 14px;
    border-radius: 6px;
    margin-right: 10px;
    cursor: pointer;
  }

  .comment-list {
    list-style: none;
    padding: 0;
    margin: 0;
    max-height: 250px;
    overflow-y: auto;
  }


  .comment-list li {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 0;
    border-bottom: 1px solid #eee;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid #eee;
    display: flex;
    align-items: flex-start;
  }



  .comment-body {
    font-size: 14px;
  }



  .comment-body {
    flex: 1;
    min-width: 0;
    display: flex;
    padding-bottom: 5px;
    flex-direction: column;
  }

  .comment-body a {
    font-weight: 600;
    text-decoration: none;
    color: #222;
    display: block;
  }


  #recDetailModal .saved-by-row {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 20px 0 8px;
    font-size: 14px;
    color: #5a5f7b;
  }

  #recDetailModal .saved-by-avatars {
    display: flex;
    align-items: center;
  }


  .rec-comments-panel{
    margin-top: 10px;
    border-radius: 22px;
    border: 1px solid rgba(107, 95, 255, 0.16);
    background: rgba(107, 95, 255, 0.04);
    box-shadow: 0 14px 30px rgba(10, 12, 30, 0.10);
    overflow: hidden;
  }

  .rec-comments-scroll{
    max-height: 220px;
    overflow-y: auto;
    padding: 14px 14px 10px;
    display: flex;
    flex-direction: column;
    gap: 12px;
  }

  .rec-comments-scroll::-webkit-scrollbar{ width: 10px; }
  .rec-comments-scroll::-webkit-scrollbar-thumb{
    background: rgba(107, 95, 255, 0.18);
    border-radius: 999px;
    border: 2px solid rgba(255, 255, 255, 0.9);
  }
  .rec-comments-scroll::-webkit-scrollbar-track{
    background: rgba(0, 0, 0, 0.04);
  }

  .rec-comments-loading,
  .rec-comments-empty,
  .rec-comments-error{
    text-align: center;
    padding: 14px 0 8px;
    color: rgba(20, 20, 30, 0.55);
    font-size: 0.92rem;
  }



  .rec-comment-author {
    margin: 0;
  }

  .rr-modal{
    position: fixed;
    inset: 0;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 24px;
    background: rgba(0,0,0,0.55);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    z-index: 9999;
  }

  .rr-modal-card{
    width: min(560px, 92vw);
    background: #ffffff;
    border-radius: 28px;
    box-shadow: 0 28px 80px rgba(0,0,0,0.35);
    position: relative;
    padding: 34px 34px 26px;
    text-align: center;
  }

  .rr-modal-close{
    position: absolute;
    top: 14px;
    right: 14px;
    width: 42px;
    height: 42px;
    border-radius: 14px;
    border: 1px solid rgba(0,0,0,0.08);
    background: rgba(255,255,255,0.9);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
  }

  .rr-modal-close i{
    transition: transform 0.25s ease, opacity 0.25s ease;
    transform-origin: center;
  }

  /* subtle rotate on hover */
  .rr-modal-close:hover i{
    transform: rotate(90deg) scale(1.05);
    opacity: 0.8;
  }


  .modal-close {
    position: absolute; /* Position it absolutely */
    right: 28px; /* Align to the right */
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 1px solid rgba(0, 14, 51, 0.15);
    background: transparent;
    color: #000e33;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    transition: 0.2s ease;
  }

  .modal-close:hover {
    transform: rotate(90deg);
  }


  .rr-modal-icon{
    width: 74px;
    height: 74px;
    border-radius: 22px;
    margin: 4px auto 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(0,102,255,0.12), rgba(194,122,255,0.14));
    border: 1px solid rgba(0,0,0,0.06);
  }

  .rr-modal-icon i{
    font-size: 26px;
    color: #000e33;
    opacity: 0.9;
  }

  .rr-modal-title{
    margin: 0;
    font-size: 40px;
    line-height: 1.05;
    color: #000e33;
    letter-spacing: -0.02em;
  }

  .rr-modal-subtitle{
    margin: 10px 0 18px;
    color: rgba(11,27,58,0.65);
    font-size: 15px;
  }

  .rr-form{
    text-align: left;
    margin: 18px auto 0;
    max-width: 420px;
    display: grid;
    gap: 14px;
  }

  .rr-field{ display: grid; gap: 8px; }

  .rr-label{
    font-size: 13px;
    font-weight: 700;
    color: rgba(11,27,58,0.75);
  }


  .rr-input:focus{
    border-color: rgba(0,102,255,0.55);
    box-shadow: 0 0 0 4px rgba(0,102,255,0.10);
  }

  .rr-hint{
    font-size: 12px;
    color: rgba(11,27,58,0.55);
  }

  .rr-toggle-row{
    grid-template-columns: 1fr auto;
    align-items: center;
    gap: 16px;
    margin-top: 4px;
  }


  .rr-field{ display: grid; gap: 8px; }

  .rr-label{
    font-size: 13px;
    font-weight: 700;
    color: rgba(11,27,58,0.75);
  }


  .rr-form{
    text-align: left;
    margin: 18px auto 0;
    max-width: 420px;
    display: grid;
    gap: 14px;
  }

  .rr-field{ display: grid; gap: 8px; }

  .rr-label{
    font-size: 13px;
    font-weight: 700;
    color: rgba(11,27,58,0.75);
  }

  .rr-input{
    width: 100%;
    height: 46px;
    border-radius: 14px;
    border: 1px solid rgba(11,27,58,0.14);
    padding: 0 14px;
    font-size: 15px;
    outline: none;
    color: #0b1b3a;
    background: #fff;
  }

  .rr-input:focus{
    border-color: rgba(0,102,255,0.55);
    box-shadow: 0 0 0 4px rgba(0,102,255,0.10);
  }

  .rr-hint{
    font-size: 12px;
    color: rgba(11,27,58,0.55);
  }

  .rr-toggle-row{
    grid-template-columns: 1fr auto;
    align-items: center;
    gap: 16px;
    margin-top: 4px;
  }

  /* Switch */
  .rr-switch{
    position: relative;
    width: 54px;
    height: 32px;
    display: inline-block;
  }

  .rr-switch input{
    opacity: 0;
    width: 0;
    height: 0;
  }

  .rr-slider{
    position: absolute;
    inset: 0;
    border-radius: 999px;
    background: rgba(11,27,58,0.14);
    transition: 0.2s ease;
    cursor: pointer;
  }

  .rr-slider::before{
    content: "";
    position: absolute;
    width: 24px;
    height: 24px;
    left: 4px;
    top: 4px;
    border-radius: 999px;
    background: #fff;
    box-shadow: 0 8px 20px rgba(0,0,0,0.18);
    transition: 0.2s ease;
  }

  .rr-switch input:checked + .rr-slider{
    background: linear-gradient(135deg, #0066ff 0%, #c27aff 100%);
  }

  .rr-switch input:checked + .rr-slider::before{
    transform: translateX(22px);
  }

  .rr-modal-actions{
    display: flex;
    gap: 14px;
    justify-content: center;
    margin-top: 22px;
  }

  .rr-btn{
    height: 50px;
    border-radius: 18px;
    padding: 0 18px;
    font-weight: 700;
    font-size: 15px;
    border: none;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 10px;
  }

  .rr-input:focus{
    border-color: rgba(0,102,255,0.55);
    box-shadow: 0 0 0 4px rgba(0,102,255,0.10);
  }

  .rr-hint{
    font-size: 12px;
    color: rgba(11,27,58,0.55);
  }

  .rr-toggle-row{
    grid-template-columns: 1fr auto;
    align-items: center;
    gap: 16px;
    margin-top: 4px;
  }

  .rec-comment-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin: 0;
  }

  .rec-comment-meta {
    display: flex;
    flex-direction: column;
    gap: 2px;
  }

  .rec-comment-name {
    font-weight: 800;
    font-size: 0.92rem;
    color: #000e33;
    line-height: 1.1;
    margin: 0;
  }

  .rec-comment-time {
    font-size: 11px;
    color: rgba(20, 20, 30, 0.45);
    line-height: 1;
  }

  .rec-comment-compose{
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 10px;
    align-items: end;

    padding: 12px 14px 14px;
    border-top: 1px solid rgba(107, 95, 255, 0.14);
    background: rgba(255, 255, 255, 0.88);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
  }

  .rec-comment-textarea{
    width: 95%;
    padding: 12px 12px;
    border-radius: 16px;
    border: 1px solid rgba(107, 95, 255, 0.18);
    background: rgba(255, 255, 255, 0.9);
    color: #000e33;
    font-family: inherit;
    font-size: 0.95rem;
    line-height: 1.4;
    resize: none;
    min-height: 46px;
    max-height: 110px;
    transition: border-color 0.18s ease, box-shadow 0.18s ease;
  }

  .rec-comment-textarea::placeholder{
    color: rgba(20, 20, 30, 0.35);
  }

  .rec-comment-textarea:focus{
    outline: none;
    border-color: #0066ff;
    box-shadow: 0 0 0 3px rgba(0, 102, 255, 0.1);
  }

  #recCommentSubmitBtn.rec-detail-primary-btn{
    margin-top: 0;
    padding: 10px 16px;
    border-radius: 999px;
  }

  @media (max-width: 520px){
    .rec-comment-compose{ grid-template-columns: 1fr; }
    #recCommentSubmitBtn.rec-detail-primary-btn{ width: 100%; }
  }

  .rec-comment-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0;
  }
  .rec-comment-text { margin-top: 4px; }

  .rr-confirm-overlay{
    position: fixed;
    inset: 0;
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 18px;
    background: rgba(10, 12, 30, 0.45);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
  }

  .rr-confirm-card{
    width: min(420px, 92vw);
    background: #fff;
    border-radius: 22px;
    border: 1px solid rgba(107, 95, 255, 0.16);
    box-shadow: 0 30px 80px rgba(10, 12, 30, 0.28);
    padding: 18px 18px 16px;
    position: relative;
    transform: translateY(6px);
    animation: rrPopIn 160ms ease-out forwards;
  }
  /* gradient ring */
  #recDetailModal .saved-by-avatar-ring {
    width: 36px;
    height: 36px;
    border-radius: 999px;
    padding: 2px;
    background: linear-gradient(135deg, #0066ff, #c27aff);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: -10px; /* overlap */
  }


  .collection-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    animation: fadeIn 0.3s ease;
  }

  .collection-modal-content {
    background: #ffffff;
    border-radius: 20px;
    width: 100%;
    max-width: 500px;
    max-height: 80vh;
    display: flex;
    flex-direction: column;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.5);
    animation: slideUp 0.3s ease;
  }

  .collection-modal-header {
    padding: 24px 28px;
    border-bottom: 1px solid rgba(0, 14, 51, 0.08);
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
  }

  .collection-modal-header h3 {
    margin: 0;
    font-size: 1.5rem;
    font-weight: 700;
    color: #000e33;
    background: linear-gradient(135deg, #0066ff, #c27aff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
  }

  .collection-modal-body {
    padding: 20px 28px 28px;
    overflow-y: auto;
    overflow-x: hidden; /* ← Add this */
    flex: 1;
  }

  .collection-place-preview-name,
  .collection-place-preview-address,
  .collection-item-name {
    word-wrap: break-word;
    word-break: break-word;
  }
  /* Place Preview */
  .collection-place-preview {
    display: flex;
    gap: 12px;
    padding: 12px;
    background: rgba(0, 14, 51, 0.03);
    border-radius: 12px;
    margin-bottom: 20px;
  }

  .collection-place-preview-image {
    width: 60px;
    height: 60px;
    border-radius: 8px;
    overflow: hidden;
    flex-shrink: 0;
  }

  .collection-place-preview-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }

  .collection-place-preview-info {
    flex: 1;
    min-width: 0;
  }

  .collection-place-preview-name {
    font-weight: 600;
    font-size: 1rem;
    color: #000e33;
    margin-bottom: 4px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .collection-place-preview-address {
    font-size: 0.85rem;
    color: #4b5bd5;
    opacity: 0.8;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  /* Search */
  .collection-search {
    margin-bottom: 16px;
  }

  .collection-search input {
    width: 90%;
    padding: 12px 16px;
    border-radius: 12px;
    border: 1px solid rgba(0, 14, 51, 0.15);
    background: rgba(0, 14, 51, 0.02);
    color: #000e33;
    font-size: 0.95rem;
    font-family: inherit;
  }

  .collection-search input:focus {
    outline: none;
    border-color: #0066ff;
    box-shadow: 0 0 0 3px rgba(0, 102, 255, 0.1);
  }

  /* Collections List */
  .collections-list {
    max-height: 300px;
    overflow-y: auto;
    margin-bottom: 16px;
  }

  .collection-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    border-radius: 12px;
    cursor: pointer;
    transition: 0.2s ease;
    margin-bottom: 8px;
    border: 2px solid transparent;
  }

  .collection-item:hover {
    background: rgba(0, 14, 51, 0.03);
  }

  .collection-item.selected {
    background: rgba(0, 102, 255, 0.08);
    border-color: #0066ff;
  }

  .collection-item-icon {
    width: 48px;
    height: 48px;
    border-radius: 8px;
    background: linear-gradient(135deg, #0066ff, #c27aff);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.2rem;
    flex-shrink: 0;
  }


  .collection-item-icon {
    width: 48px;
    height: 48px;
    border-radius: 8px;
    background: linear-gradient(135deg, #0066ff 0%, #c27aff 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    overflow: hidden;
  }

  .collection-item-icon img {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }

  .collection-item-icon i {
    color: white;
    font-size: 20px;
  }
  .collection-item-info {
    flex: 1;
    min-width: 0;
  }

  .collection-item-name {
    font-weight: 600;
    font-size: 1rem;
    color: #000e33;
    margin-bottom: 2px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .collection-item-count {
    font-size: 0.85rem;
    color: #000e33;
    opacity: 0.6;
  }

  .collection-item-check {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    border: 2px solid rgba(0, 14, 51, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    color: transparent;
    transition: 0.2s ease;
  }

  .collection-item.selected .collection-item-check {
    background: #0066ff;
    border-color: #0066ff;
    color: white;
  }



  .rec-detail-modal {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.55);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 3000;
    padding: 16px;
  }

  .rec-detail-modal-content {
    background: transparent;
    max-width: 760px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
  }

  /* Main card */
  .rec-detail-card {
    background: #ffffff;
    color: #1a1a1a;
    border-radius: 24px;
    padding: 24px 28px 24px;
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.2);
  }

  /* Close button */
  .rec-detail-modal .modal-close {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 32px;
    height: 32px;
    border-radius: 999px;
    border: none;
    background: rgba(0,0,0,0.55);
    color: #fff;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  /* Top header: image + info */
  .rec-detail-header {
    display: grid;
    grid-template-columns: 220px minmax(0, 1fr);
    gap: 20px;
    align-items: flex-start;
  }



  .rec-detail-title {
    font-size: 20px;
    font-weight: 600;
    margin: 0 0 4px;
  }

  .rec-detail-address {
    margin: 0 0 6px;
    font-size: 14px;
    color: #4a4a4a;
  }

  .rec-detail-rating-row {
    font-size: 14px;
    margin-bottom: 6px;
  }

  .rec-detail-category-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 4px 10px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 500;
    background: #eef2ff;
    color: #3f51b5;
    margin-bottom: 8px;
  }

  .rec-detail-description {
    font-size: 14px;
    line-height: 1.5;
    margin: 0 0 4px;
  }

  .rec-detail-website {
    display: inline-flex;                  /* fixes arrow alignment */
    align-items: center;
    gap: 6px;                              /* space between text + icon */
    margin-top: 6px;

    font-size: 13px;
    font-weight: 500;
    color: #4b5bd5;                       /* matches your link blue */
    text-decoration: none;

    cursor: pointer;
    transition: opacity 0.2s ease, transform 0.2s ease;
  }

  .rec-detail-website i {
    font-size: 11px;
    opacity: 0.85;
  }

  .rec-detail-website:hover {
    text-decoration: underline;
    opacity: 0.9;
    transform: translateY(-0.5px);        /* subtle lift like your buttons */
  }

  /* Divider */
  .rec-detail-divider {
    border: none;
    border-top: 1px solid #ececf5;
    margin: 18px 0;
  }

  /* Saved row */
  .rec-detail-saved-row {
    font-size: 14px;
  }

  /* Notes */
  .rec-detail-section {
    margin-top: 12px;
  }

  .rec-detail-section-title {
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    margin: 0 0 6px;
    color: #6b6f8a;
  }

  .rec-detail-notes-input {
    width: 100%;
    border-radius: 16px;
    border: 1px solid #dde0f0;
    padding: 10px 12px;
    font-size: 14px;
    resize: vertical;
    font-family: inherit;
    box-sizing: border-box;
  }

  .rec-detail-primary-btn {
    margin-top: 8px;
    border-radius: 999px;
    padding: 8px 16px;
    border: none;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    background: #000e33;
    color: #ffffff;
  }

  .rec-detail-secondary-btn {
    margin-top: 8px;
    border-radius: 999px;
    padding: 12px 16px;          /* ✅ same as primary */
    border: none;
    font-size: 14px;            /* ✅ same */
    font-weight: 500;           /* ✅ same */
    cursor: pointer;
  background: linear-gradient(135deg, #0066ff, #c27aff);
  color: #ffffff;
  box-shadow: 0 10px 25px rgba(0,0,0,0.35);

  transition: all 0.2s ease;
  }

  .rec-detail-secondary-btn:hover {
   box-shadow: 0 0 12px rgba(194, 122, 255, 0.6),
              0 0 6px rgba(0, 102, 255, 0.6);
  transition: 0.3s ease-in-out;
  cursor: pointer;
  }

  .rec-detail-secondary-btn:active {
    transform: scale(0.97);
  }



  /* Visibility toggle */
  .rec-detail-visibility-toggle {
    display: inline-flex;
    border-radius: 999px;
    background: #f3f4ff;
    padding: 2px;
    margin-top: 4px;
  }

  .rec-detail-visibility-toggle .vis-pill {
    border: none;
    background: transparent;
    padding: 6px 14px;
    border-radius: 999px;
    font-size: 13px;
    cursor: pointer;
  }

  .rec-detail-visibility-toggle .vis-pill.active {
    background: #ffffff;
    box-shadow: 0 0 0 1px #dde0f0;
  }

  .rec-detail-visibility-help {
    margin-top: 6px;
    font-size: 12px;
    color: #6b6f8a;
  }

  /* Responsive */
  @media (max-width: 640px) {
    .rec-detail-card {
      padding: 18px 16px 20px;
    }

    .rec-detail-header {
      grid-template-columns: 1fr;
    }

    .rec-detail-image img {
      height: 180px;
    }
  }
  .rec-detail-image img {
    width: 100%;

  }

  .rec-detail-header {
    display: grid;
    grid-template-columns: 220px minmax(0, 1fr);
    gap: 20px;
    align-items: flex-start;
  }

  .rec-detail-image img {
    width: 100%;
    border-radius: 18px;
    object-fit: cover;
    display: block;
  }

  /* comment row layout */
  .rr-comment{
    display: flex;
    gap: 14px;
    align-items: flex-start;
    padding: 16px 18px;
    border-radius: 22px;
    background: rgba(255,255,255,0.75);
    border: 1px solid rgba(0,102,255,0.12);
  }

  /* avatar wrapper (this is the “hard stop”) */
  .rr-avatar{
    width: 52px;
    height: 52px;
    border-radius: 999px;
    flex: 0 0 52px;
    overflow: hidden;
    display: grid;
    place-items: center;
    border: 3px solid rgba(0,102,255,0.75);
    background: #fff;
  }

  .rr-avatar-img{
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block; /* prevents baseline weirdness */
  }

  .rr-avatar-mono{
    width: 100%;
    height: 100%;
    display: none;           /* shown via rr-avatar--mono */
    align-items: center;
    justify-content: center;
    font-weight: 800;
    color: rgba(11,27,58,0.9);
  }

  /* Empty State */
  .empty-state {
    text-align: center;
    padding: 80px 20px;
  }

  .empty-state i {
    font-size: 4rem;
    color: #cbd5e1;
    margin-bottom: 20px;
  }

  .empty-state h3 {
    font-size: 1.5rem;
    color: #000e33;
    margin: 0 0 12px;
  }

  .empty-state p {
    font-size: 1rem;
    color: #64748b;
    margin: 0;
  }

  /* Creators Grid — 4-col edge-to-edge tiles */
  .creators-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0;
  }

  /* Empty State */
  .empty-state {
    text-align: center;
    padding: 80px 20px;
  }

  .empty-state i {
    font-size: 4rem;
    color: #cbd5e1;
    margin-bottom: 20px;
  }

  .empty-state h3 {
    font-size: 1.5rem;
    color: #000e33;
    margin: 0 0 12px;
  }

  .empty-state p {
    font-size: 1rem;
    color: #64748b;
    margin: 0;
  }

  /* ═══════════════════════════════════════════════════════
    CREATOR TILE (gradient bg, avatar center, preview imgs)
    ═══════════════════════════════════════════════════════ */

  .creator-tile {
    position: relative;
    aspect-ratio: 0.84;
    overflow: hidden;
    cursor: pointer;
  }


  /* Top row: empty space on left, follow button on right */
  .creator-tile-top {
    position: absolute;
    top: 10px;
    left: 10px;
    right: 10px;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    z-index: 2;
  }

  .creator-tile-follow-btn {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: rgba(255,255,255,0.22);
    border: 1px solid rgba(255,255,255,0.35);
    color: #fff;
    font-size: 15px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s ease;
  }

  .creator-tile-follow-btn.following {
    background: rgba(255,255,255,0.45);
  }

  .creator-tile-follow-btn:hover {
    background: rgba(255,255,255,0.35);
  }

  /* Center content: avatar + name + location + stats — vertically centered in tile */
  .creator-tile-center {
    position: absolute;
    top: 50%;
    transform: translateY(-58%); /* bias slightly above center to leave room for previews */
    left: 14px;
    right: 14px;
    display: flex;
    flex-direction: column;
    align-items: center;
    z-index: 2;
  }

  .creator-tile-avatar-ring {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background: linear-gradient(135deg, #0066ff 0%, #c27aff 100%);
    padding: 3px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    flex-shrink: 0;
    box-shadow: 0 6px 20px rgba(0,0,0,0.25);
  }

  .creator-tile-avatar-inner {
  width: 100%;
  height: 100%;
  border-radius: 50%;

  background:
    radial-gradient(circle at top left, rgba(0,102,255,0.22), transparent 45%),
    radial-gradient(circle at top right, rgba(194,122,255,0.28), transparent 45%),
    linear-gradient(135deg, #eef4ff 0%, #f5efff 55%, #f8f3ff 100%);

  color: #000e33 !important;
    display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.creator-tile-avatar-inner img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

  .creator-tile-name {
    color: #fff;
    font-size: 1.15rem;
    font-weight: 800;
    letter-spacing: -0.01em;
    text-align: center;
    margin: 10px 0 4px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
    text-shadow: 0 1px 4px rgba(0,0,0,0.18);
  }

  .creator-tile-location {
    color: rgba(255,255,255,0.95);
    font-size: 0.82rem;
    font-weight: 600;
    text-align: center;
    margin: 0 0 6px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
    text-shadow: 0 1px 3px rgba(0,0,0,0.15);
  }

  .creator-tile-stats {
    color: rgba(255,255,255,0.95);
    font-size: 0.78rem;
    font-weight: 500;
    text-align: center;
    margin-top: 0;
    line-height: 1.5;
    text-shadow: 0 1px 3px rgba(0,0,0,0.15);
  }

  /* Bottom preview images */
  .creator-tile-previews {
    position: absolute;
    bottom: 12px;
    left: 12px;
    right: 12px;
    display: flex;
    gap: 6px;
    z-index: 2;
  }

  .creator-preview-img {
    flex: 1;
    height: 52px;
    border-radius: 10px;
    background: rgba(255,255,255,0.18);
    overflow: hidden;
  }

  /* ═══════════════════════════════════════════════════════
    RESPONSIVE
    ═══════════════════════════════════════════════════════ */

  /* 1024px — 3-col collections, keep 4-col creators */
  @media (max-width: 1024px) {
    .collections-grid {
      grid-template-columns: repeat(3, 1fr);
    }
    .creators-grid,
    #creatorsGrid {
      grid-template-columns: repeat(4, 1fr);
    }
  }

  /* 768px — 2-col collections, keep 2-col creators */
  @media (max-width: 768px) {
    .creator-hero {
      padding: 80px 24px 36px;
    }

    .hero-title {
      font-size: 2rem;
    }

    .search-section {
      padding: 24px;
      top: 60px;
    }

    .view-toggle {
      width: 100%;
      justify-content: space-between;
    }

    .toggle-btn {
      flex: 1;
      justify-content: center;
    }

    .results-section {
      padding: 0 0 80px;
    }

    .collections-grid {
      grid-template-columns: repeat(2, 1fr);
      gap: 2px;
    }

    .creators-grid,
    #creatorsGrid {
      grid-template-columns: repeat(2, 1fr);
      gap: 0;
    }

    .collection-tile-title {
      font-size: 0.85rem;
    }

    .creator-tile-avatar-ring {
      width: 64px;
      height: 64px;
    }

    .creator-tile-name {
      font-size: 0.95rem;
      margin-top: 8px;
    }

    .creator-tile-stats {
      font-size: 0.68rem;
    }
  }

  /* ✅ Make search + toggle + sort align cleanly */
.search-section .search-container{
  max-width: 600px;
  margin: 24px auto 0;
  display: flex;
  align-items: center;
  gap: 12px;
  background: #ffffff;
  border: 1px solid rgba(0, 14, 51, 0.12);
  border-radius: 999px;
  padding: 10px 16px;
  box-shadow: 0 20px 50px rgba(0, 14, 51, 0.08), 0 2px 6px rgba(0, 14, 51, 0.05);
  transition: box-shadow 0.2s ease;
}




/* Search bar = full width row */


.search-section .search-container{
  padding-left: 32px;
  padding-right: 32px;
}

/* Toggle = left on row 2 */
.search-section .view-toggle{
  grid-area: toggle;
  justify-self: start;

  /* override your old spacing that pushes it off */
  padding-top: 0 !important;
  padding-left: 0 !important;
  margin-top: 0;
}

/* Sort = right on row 2 */
.search-section .sort-dropdown{
  grid-area: sort;
  justify-self: end;
  margin: 0;
}

#shareModal {
  display: none; /* you already toggle this */
  position: fixed;
  inset: 0;
  z-index: 9999;
}

#shareModalContent {
  width: min(560px, calc(100vw - 32px));
  margin: 8vh auto;
  border-radius: 24px;
  padding: 22px 20px;
  box-shadow: 0 24px 80px rgba(0,0,0,0.35);
  position: relative;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}




/* List area */
.friends-saved-list {
  max-height: 260px;
  overflow-y: auto;
  padding-top: 6px;
}

/* Each friend row */
.friends-saved-item {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: #ffffff;
  padding: 6px 4px;
  border-radius: 10px;
  transition: background 0.2s ease;
}

.friends-saved-item:hover {
  background: rgba(255, 255, 255, 0.06);
}

/* Avatar ring w/ RR gradient */
.friends-saved-ring {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  padding: 2px;
  background: linear-gradient(135deg, #0066ff, #c27aff);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.friends-saved-inner {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  font-size: 14px;
  font-weight: 600;
  color: #1a1a1a;
}

.friends-saved-inner img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.friends-saved-monogram {
  width: 40px;
  height: 40px;
  border-radius: 999px;
  background: #050b1f;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.03em;
  color: #ffffff;
}

.friends-saved-name {
  font-size: 14px;
  font-weight: 500;
}

/* Optional helper states (if you use them in JS) */
.friends-saved-loading,
.friends-saved-empty,
.friends-saved-error {
  font-size: 13px;
  color: #e5e7eb;
  padding: 6px 2px;
}

.share-rec-modal {
  position: fixed;
  inset: 0;
  z-index: 2600; /* above rec detail + friends modal */
}

.share-rec-modal.hidden {
  display: none;
}

.share-rec-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
}

/* Centered dialog */
.share-rec-dialog {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 360px;
  max-width: 90%;
  background: #000e33;
  border-radius: 18px;
  padding: 20px 22px 18px;
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.5);
  color: #ffffff;
}

/* Close button */
.share-rec-close {
  position: absolute;
  top: 10px;
  right: 12px;
  border: none;
  background: transparent;
  color: #ffffff;
  font-size: 18px;
  cursor: pointer;
}

/* Title + subtitle */
.share-rec-title {
  margin: 0 0 4px;
  font-size: 16px;
  font-weight: 600;
}

.share-rec-subtitle {
  margin: 0 0 14px;
  font-size: 13px;
  color: #b4b9d8;
}

/* Button column */
.share-rec-actions {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 6px;
}

/* Each share button */
.share-rec-btn {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 10px;
  border-radius: 11px;
  border: none;
  padding: 8px 10px;
  background: rgba(255, 255, 255, 0.04);
  color: #ffffff;
  font-size: 14px;
  cursor: pointer;
  text-align: left;
  transition: background 0.18s ease, transform 0.12s ease;
}

.share-rec-btn i {
  width: 18px;
  text-align: center;
  font-size: 14px;
}

.share-rec-btn:hover {
  background: rgba(255, 255, 255, 0.08);
  transform: translateY(-1px);
}

/* Spin animation on close hover */
.share-rec-close {
  transition: transform 0.35s ease;
}

.share-rec-close i {
  transition: transform 0.35s ease;
  display: inline-block;
}

.share-rec-close:hover i {
  transform: rotate(90deg);
}

.modal {
  display: none;
  position: fixed;
  z-index: 10000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(4px);
}

.modal-content {
  position: relative;
  background-color: white;
  margin: 80px auto;
  padding: 30px;
  border-radius: 16px;
  max-width: 500px;
  width: 90%;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}


.shareHeader {
  margin: 0;
  font-size: 1.5rem;
  font-weight: 700;
  color: #000e33;
  background: linear-gradient(135deg, #0066ff, #c27aff);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-align: center;
}

#userSearch {
  margin-bottom: 16px;
  margin-top: 20px;
}

.userSearch input {
  width: 90%;
  padding: 12px 16px;
  border-radius: 12px;
  border: 1px solid rgba(0, 14, 51, 0.15);
  background: rgba(0, 14, 51, 0.02);
  color: #000e33;
  font-size: 0.95rem;
  font-family: inherit;
}

.userSearch input:focus {
  outline: none;
  border-color: #0066ff;
  box-shadow: 0 0 0 3px rgba(0, 102, 255, 0.1);
}

.user-results {
  max-height: 400px;
  overflow-y: auto;
}

.group-creator {
  font-size: 14px;
  color: #64748b;
  padding-bottom: 10px;
}

.group-creator a {
  color: #4b5bd5;
  text-decoration: none;
  font-weight: 600;
  transition: color 0.2s;
}

.group-creator a:hover {
  text-decoration: underline;
}

.monogram-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
}

.user-name {
  font-size: 15px;
  font-weight: 500;
  color: #000e33;
}

/* Gradient ring wrapper */
.avatar-gradient {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  padding: 1px;
  background: linear-gradient(135deg, #0066ff, #c27aff);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}


.sendButton {
  padding: 8px 20px;
  background: linear-gradient(135deg, #0066ff 0%, #c27aff 100%);
  color: white;
  border: none;
  border-radius: 20px;
  font-size: 14px;
  cursor: pointer;
}

.modal-subtitle {
  margin: 12px 0 20px;
  padding-top: 8px;
  font-size: 0.95rem;
  color: #4a4f6b;
  text-align: center;
}

/* ─────────────────────────────────────────────
   SHARE MODAL (matches your group modal vibe)
───────────────────────────────────────────── */
#shareModal {
  display: none; /* you already toggle this */
  position: fixed;
  inset: 0;
  z-index: 9999;
}

#shareModalContent {
  width: min(560px, calc(100vw - 32px));
  margin: 8vh auto;
  border-radius: 24px;
  padding: 22px 20px;
  box-shadow: 0 24px 80px rgba(0,0,0,0.35);
  position: relative;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}


.modal-title {
  margin: 0;
  font-size: 1.5rem;
  font-weight: 700;
  color: #000e33;
  background: linear-gradient(135deg, #0066ff, #c27aff);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-align: center;
}

.modal-subtitle {
  margin: 0 0 14px;
  color: rgba(26,26,26,0.7);
  font-size: 14px;
}

.rr-toast {
  position: fixed;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  background: linear-gradient(135deg, #0066ff, #c27aff);
  color: white;
  padding: 14px 22px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 14px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.25);
  opacity: 0;
  pointer-events: none;
  transition: all 0.35s ease;

  /* 🔑 FIX */
  z-index: 100000;
}


#userSearch {
  margin-bottom: 16px;
  margin-top: 20px;
}

.userSearch input {
  width: 90%;
  padding: 12px 16px;
  border-radius: 12px;
  border: 1px solid rgba(0, 14, 51, 0.15);
  background: rgba(0, 14, 51, 0.02);
  color: #000e33;
  font-size: 0.95rem;
  font-family: inherit;
}

.userSearch input:focus {
  outline: none;
  border-color: #0066ff;
  box-shadow: 0 0 0 3px rgba(0, 102, 255, 0.1);
}

.user-results {
  max-height: 400px;
  overflow-y: auto;
}

.user-result-entry {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px;
  border-radius: 8px;
  margin-bottom: 8px;
}

.user-result-entry:hover {
  background-color: #f5f5f5;
}


.user-info {
  display: flex;
  align-items: center;
  gap: 12px;
}

/* Optional: keep the select from getting too tall/odd */
.search-section .sort-select{
  height: 40px;
    padding: 8px 12px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.08);
  color: #000e33;
  font-size: 0.9rem;
  border: 1px solid #545459;
  cursor: pointer;
}

/* ✅ Mobile: stack toggle + sort */
@media (max-width: 768px){
  .search-section .search-container{
    grid-template-columns: 1fr;
    grid-template-areas:
      "search"
      "toggle"
      "sort";
  }

  .search-section .view-toggle{
    width: 100%;
    justify-content: space-between;
  }

  .search-section .sort-dropdown{
    width: 100%;
    justify-self: stretch;
  }

  .search-section .sort-select{
    width: 100%;
    min-width: 0;
  }
}


/* Creator grid — edge-to-edge tiles, 4-col at desktop */
.creators-grid,
#creatorsGrid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  padding-top: 0;
}
:root{
  --ink: #000e33;
  --indigo: #4b5bd5;
  --cardBorder: rgba(148, 163, 184, 0.14);
  --shadow1: 0 8px 18px rgba(15, 23, 42, 0.06);
  --shadow2: 0 1px 3px rgba(15, 23, 42, 0.05);
  --grad: linear-gradient(135deg, #0066ff, #c27aff);
  --statBg: #f3f4ff;
}

/* Card */
.roamer-card{
    display: flex;
  flex-direction: column;

  background: #fff;
  border-radius: 24px;
  box-shadow: var(--shadow1), var(--shadow2);
  border: 1px solid var(--cardBorder);
  padding: 88px 18px 18px;
  position: relative;
  text-align: center;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
}

.roamer-card:hover{
  transform: translateY(-2px);
  border-color: rgba(75, 91, 213, 0.18);
  box-shadow: 0 14px 30px rgba(15, 23, 42, 0.08), var(--shadow2);
}

/* Avatar ring */
.roamer-avatar-wrap{
  position:absolute;
  top: -20px;
  left: 50%;
  transform: translateX(-50%);
}

.roamer-avatar-ring{
  width: 84px;
  height: 84px;
  border-radius: 50%;
  padding: 3px;
  background: var(--grad);
  box-shadow: 0 10px 25px rgba(15, 23, 42, 0.28);
  display:flex;
  align-items:center;
  justify-content:center;
}

.roamer-avatar-ring img{
  width:100%;
  height:100%;
  border-radius:50%;
  object-fit:cover;
  background:#fff;
}

.roamer-monogram{
  width:100%;
  height:100%;
  border-radius:50%;
  background: var(--ink);
  color:#fff;
  display:flex;
  align-items:center;
  justify-content:center;
  font-weight: 650;
  font-size: 1rem;
}

/* Name + location */
.roamer-name{
  margin: 0 0 4px;
  font-size: 1rem;
  font-weight: 650;
  color: var(--ink);
}

.roamer-location{
  margin: 0 0 14px;
  font-size: 0.86rem;
  color: var(--indigo);
  display:flex;
  align-items:center;
  justify-content:center;
  gap: 6px;
}
.roamer-location i{ font-size: 0.85rem; }

/* Stats */
.roamer-stats-row{
  display:flex;
  gap: 8px;
  margin-bottom: 12px;
}

.roamer-stat-box{
  flex: 1 1 0;
  background: var(--statBg);
  border-radius: 12px;
  padding: 8px 6px;
}

.roamer-stat-number{
  font-size: 0.95rem;
  font-weight: 650;
  color: var(--ink);
}


.sort-dropdown {
  position: absolute;
  right: 60px; /* adjust to match your padding */
  top: 100%;
  margin-top: 12px;
}

.search-container {
  position: relative;
}

.creator-hero {
  position: relative;
}

.search-container {
  position: relative;
}

/* THIS is what pins it right without breaking layout */
.sort-dropdown {
  position: absolute;
  right: 60px;
  bottom: 20px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.controls-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 40px;
  padding: 0 60px;
}

.search-input-wrap {
  position: relative;
  flex: 1;
}

.rotating-placeholder {
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  color: rgba(0, 14, 51, 0.5);
  pointer-events: none;
  transition: opacity 0.3s ease;
  font-size: 0.95rem;
}

#searchInput {
  width: 100%;
  background: transparent;
  border: none;
  outline: none;
  position: relative;
  z-index: 2;
}

.sort-dropdown {
  position: static;
  display: flex;
  align-items: center;
  gap: 12px;
}
.view-toggle {
  padding-left: 0; /* remove the old offset */
}


.roamer-stat-label{
  font-size: 0.75rem;
  color: #6b7280;
}

/* Follow button */
.roamer-follow-btn{
  margin-top: 12px;
  width:100%;
  border:none;
  border-radius: 999px;
  padding: 10px 0;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap: 8px;
  cursor:pointer;
  font-size: 0.9rem;
  color:#fff;
  background: var(--grad);
  box-shadow: 0 10px 25px rgba(15,23,42,0.18);
  transition: transform 0.15s ease, filter 0.15s ease, background 0.15s ease;
}

.roamer-follow-btn:hover{
  transform: translateY(-1px);
  filter: brightness(1.03);
}

.roamer-follow-btn.following{
  background: rgba(0,0,0,0.04);
  color: var(--ink);
  box-shadow: none;
}

.destination-cta {
  margin-top: 4px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  color: #4b5bd5;
  font-size: 14px;
  padding: 0;
  text-align: left;
  transition: color 0.2s ease;
  background-color: transparent;
  border: none;
}

.destination-cta:hover {
  text-decoration: underline;
  cursor: pointer;
}

.collection-card-footer {
  display: flex;
    padding-top: 12px;

  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}

.collection-curated-date {
  font-size: 0.8rem;
  color: #888;
  white-space: nowrap;
  font-style: italic;
}

.destination-cta {
  flex: 0 0 auto;
}

@media (max-width: 480px) {
  .collection-card-footer {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
  }

  .collection-curated-date {
    width: 100%;
    text-align: right;
  }
}

/* ✅ Actions container for button + link */
.roamer-actions {
    margin-top: auto; /* Pushes actions to bottom */

  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  width: 100%;
}

/* ✅ View profile link - hidden by default */
.roamer-view-profile {
  display: none;
  text-align: center;
  color: #4b5bd5;
  font-size: 0.9rem;
  text-decoration: none;
  padding: 0.5rem;
  transition: all 0.2s ease;
  opacity: 0;
  transform: translateY(-5px);
}

/* ✅ Show on card hover */
.roamer-card:hover .roamer-view-profile {
  display: block;
  opacity: 1;
  transform: translateY(0);
}

/* ✅ Adjust button to work with new container */
.roamer-follow-btn {
  width: 100%;
  /* keep your existing button styles */
}
.roamer-bio {
  font-size: 14px;
  color: #666;
  line-height: 1.4;
  margin: 12px 0;
  padding: 0 0px;

  /* Limit to 2 lines with ellipsis */
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
  min-height: 39.2px;
  flex-shrink: 0;
}

.roamer-bio-empty {
  color: #999;
  font-style: italic;
}

/* Save button on card */
.collection-save-action.saved {
  color:#ec4899;
  background: rgba(102, 126, 234, 0.1);
}

.collection-save-action.saved i {
  animation: saveBookmark 0.3s ease;
}

@keyframes saveBookmark {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.2); }
}

/* Modal save button */
#modalSaveCollectionBtn.saved {
 background: #ececec;
  color: #777;
  cursor: default;
}

#modalSaveCollectionBtn.saved:hover {
  background: var(--primary-dark);
}

#modalSaveCollectionBtn i {
  margin-right: 0.5rem;
}
/* Collection card footer - flexbox layout */
.collection-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-top: 1rem;
}
/* ── Save / heart button ── */
.collection-card-save-btn {
  width: 31px !important;
  height: 31px !important;
  border-radius: 50% !important;
  background: rgba(0, 0, 0, 0.22) !important;
  border: none !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  cursor: pointer !important;
  color: #fff !important;
  font-size: 14px !important;
  padding: 0 !important;
  transition: transform 0.15s ease !important;
  box-shadow: none !important;
  flex-shrink: 0;
}

.collection-card-save-btn:hover,
.rec-card-save-btn:hover {
  transform: scale(1.12) !important;
  background: rgba(0, 0, 0, 0.22) !important;
  box-shadow: none !important;
}


.collection-card-save-btn.saved,
.rec-card-save-btn.saved {
  color: #ec4899 !important;
}

.collection-card-save-btn .save-btn-text,
.rec-card-save-btn .save-btn-text {
  display: none !important;
}

.collection-card-save-btn.saved:hover {
  transform: none; /* ✅ ADDED: No lift when saved */
  box-shadow: 0 10px 25px rgba(0,0,0,0.35); /* ✅ Keep original shadow */
}

/* Hide curated date when save button is visible */
.collection-card:hover .collection-curated-date {
  display: none;
}

/* Adjust destination CTA to take available space */
.destination-cta {
  flex: 1;
  min-width: 0; /* Allow button to shrink if needed */
}

/* Curated date positioning */
.collection-curated-date {
  font-size: 0.75rem;
  color: var(--text-secondary);
  white-space: nowrap;
  flex-shrink: 0;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .collection-card-footer {
    flex-direction: column;
    align-items: stretch;
  }

  .collection-card-save-btn {
    display: flex; /* Always show on mobile */
    order: 2;
  }

  .destination-cta {
    order: 1;
  }

  .collection-curated-date {
    order: 3;
    text-align: center;
  }

  /* Don't hide curated date on mobile */
  .collection-card:hover .collection-curated-date {
    display: block;
  }

  /* Collection modal tablet fix */
  .collection-modal-content {
    max-width: 90%;
    max-height: 85vh;
  }

  .rec-detail-modal-content {
    max-width: 95%;
  }
}
.collection-card-save-btn {
  border: none;
  border-radius: 999px;
  padding: 8px 14px;
  display: none; /* ✅ Hidden by default */
  align-items: center;
  gap: 6px;
  cursor: pointer;
  font-size: 0.75rem;
  font-weight: 500;
  color: #ffffff !important; /* ✅ Added !important to ensure white color */
  background: #ececec;
  box-shadow: 0 10px 25px rgba(0,0,0,0.35);
  transition: all 0.3s ease-in-out;
  margin-left: auto; /* ✅ Push to the right */
  opacity: 1;
  flex-shrink: 0;
  position: relative;
  z-index: 10; /* ✅ Keep this */
  pointer-events: auto; /* ✅ Keep this */
}


.collection-card-save-btn:hover {
  box-shadow: 0 0 12px rgba(194, 122, 255, 0.6),
              0 0 6px rgba(0, 102, 255, 0.6);
  transform: translateY(-1px); /* ✅ Subtle lift effect */
  cursor: pointer;
}

/* Show save button on card hover */
.collection-card:hover .collection-card-save-btn {
  display: flex; /* ✅ Show on hover */
}

/* Saved state */
.collection-card-save-btn.saved {
  background: #ececec;
  color: #ec4899 !important; /* ✅ Gray when saved */
}

/* ✅ Make sure saved icon is also gray */
.collection-card-save-btn.saved i {
  color: #ec4899;
}

.collection-card-save-btn.saved:hover {
  transform: none; /* ✅ No lift when saved */
  box-shadow: 0 10px 25px rgba(0,0,0,0.35); /* ✅ Keep original shadow */
}

/* ═══════════════════════════════════════════════════════════════════════════
   MOBILE PHONE OPTIMIZATIONS (480px and below)
   ═══════════════════════════════════════════════════════════════════════════ */

@media (max-width: 480px) {
  /* ───── HERO SECTION ───── */
  .creator-hero {
    padding: 40px 16px 30px;
  }

  .hero-title {
    font-size: 1.5rem;
    margin-bottom: 10px;
  }

  .hero-subtitle {
    font-size: 0.95rem;
    margin-bottom: 24px;
    padding: 0 8px;
  }

  /* ───── SEARCH SECTION ───── */
  .search-section {
    padding: 16px;
  }

  .search-bar {
    width: 90% !important;
  }
  .search-section .search-container {
    padding-left: 0;
    padding-right: 0;
    gap: 12px;
  }

  .creator-search.search-stack {
    max-width: 100%;
  }

  .creator-search .search-bar {
    padding: 10px 14px;
    gap: 10px;
  }

  .creator-search .search-icon-circle {
    width: 32px;
    height: 32px;
  }

  .creator-search #searchInput {
    font-size: 0.9rem;
  }

  /* ───── TOGGLE & SORT ───── */
  .toggle-sort-container {
    padding: 20px 16px;
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
  }

  .view-toggle {
    padding: 0;
    gap: 8px;
    width: 100%;
  }

  .toggle-btn {
    padding: 8px 14px;
    font-size: 0.8rem;
    flex: 1;
    justify-content: center;
  }

  /* ───── SORT DROPDOWN FIX ───── */
  .sort-dropdown {
    position: relative;
    width: 100%;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: flex-start;
    gap: 10px;
    padding: 0;
    overflow: visible;
  }

  .sort-label {
    display: inline-block;
    font-size: 0.9rem;
    white-space: nowrap;
    flex-shrink: 0;
    color: #000e33;
  }

  .sort-select {
    flex: 1;
    min-width: 0;
    max-width: none;
    font-size: 0.9rem;
    padding: 10px 36px 10px 14px;
    border-radius: 8px;
    border: 1px solid #ddd;
    background: white;
    color: #000e33;
    -webkit-appearance: none;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23333' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
  }

  /* ───── COLLECTION MODAL FIX ───── */
  .collection-modal {
    padding: 12px;
    align-items: flex-start;
    padding-top: 40px;
  }

  .collection-modal-content {
    max-width: 100%;
    max-height: calc(100vh - 80px);
    border-radius: 16px;
  }

  .collection-modal-header {
    padding: 16px 20px;
    position: relative;
  }

  .collection-modal-header h3 {
    font-size: 1.2rem;
    padding-right: 36px;
  }

  .collection-modal-header .modal-close {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 32px;
    height: 32px;
    min-width: 32px;
    min-height: 32px;
    z-index: 10;
  }

  .collection-modal-body {
    padding: 16px 20px 20px;
  }

  .collections-list {
    max-height: 200px;
  }

  /* ───── REC DETAIL MODAL FIX ───── */
  .rec-detail-modal {
    padding: 8px;
    align-items: flex-start;
    padding-top: 20px;
  }

  .rec-detail-modal-content {
    max-width: 100%;
    max-height: calc(100vh - 40px);
  }

  .rec-detail-card {
    padding: 14px;
    border-radius: 16px;
  }

  .rec-detail-modal .modal-close {
    top: 8px;
    right: 8px;
    width: 28px;
    height: 28px;
    z-index: 10;
  }

  .rec-detail-header {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .rec-detail-image img {
    height: 140px;
    width: 100%;
    border-radius: 12px;
  }

  .rec-detail-title {
    font-size: 16px;
  }

  .rec-detail-address {
    font-size: 12px;
  }

  .rec-detail-description {
    font-size: 13px;
  }

  /* ───── RESULTS SECTION ───── */
  .results-section {
    padding: 24px 16px 60px;
  }

  .results-header {
    margin-bottom: 20px;
  }

  .results-header h2 {
    font-size: 1.2rem;
  }

  /* ───── COLLECTION CARDS ───── */
  .collections-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }


  .collection-card-image {
    height: 180px;
  }

  .collection-card-images {
    height: 180px;
    gap: 3px;
  }

  .collection-image-slot {
    border-radius: 10px;
  }

  .collection-card-content {
    padding: 14px;
  }

  .collection-creator-bar {
    margin-bottom: 8px;
    padding-bottom: 8px;
  }

  .collection-creator-avatar {
    width: 28px;
    height: 28px;
  }

  .collection-creator-name {
    font-size: 0.8rem;
  }

  .creator-badge {
    padding: 2px 6px;
    font-size: 10px;
  }

  .collection-card-title {
    font-size: 1.1rem;
    margin-bottom: 6px;
  }

  .collection-card-location {
    font-size: 0.8rem;
    margin-bottom: 12px;
  }

  .collection-card-stats {
    font-size: 0.75rem;
    gap: 12px;
  }

  .collection-card-footer {
    margin-top: 12px;
    gap: 0.5rem;
  }

  .destination-cta {
    font-size: 0.8rem;
    padding: 8px 0;
  }

  .collection-card-save-btn {
    display: flex;
    padding: 8px 12px;
    font-size: 0.7rem;
  }

  /* ───── CREATOR TILES ───── */
  .creators-grid,
  #creatorsGrid {
    grid-template-columns: repeat(2, 1fr);
    gap: 0; /* stays 2-col on smallest screens */
  }

  .roamer-card {
    padding: 70px 14px 14px;
    border-radius: 18px;
  }

  .roamer-avatar-ring {
    width: 70px;
    height: 70px;
  }

  .roamer-name {
    font-size: 0.95rem;
  }

  .roamer-location {
    font-size: 0.8rem;
    margin-bottom: 10px;
  }

  .roamer-bio {
    font-size: 0.8rem;
    min-height: 35px;
    margin: 8px 0;
  }

  .roamer-stats-row {
    gap: 6px;
    margin-bottom: 10px;
  }

  .roamer-stat-box {
    padding: 6px 4px;
    border-radius: 10px;
  }

  .roamer-stat-number {
    font-size: 0.85rem;
  }

  .roamer-stat-label {
    font-size: 0.65rem;
  }

  .roamer-follow-btn {
    padding: 10px 0;
    font-size: 0.85rem;
  }

  /* Always show view profile on mobile */
  .roamer-view-profile {
    display: block;
    opacity: 1;
    transform: translateY(0);
    font-size: 0.8rem;
    padding: 6px;
  }

  /* ───── FILTER TAGS ───── */
  .filter-tags {
    gap: 8px;
    padding-bottom: 4px;
  }

  .filter-tag {
    padding: 8px 14px;
    font-size: 0.8rem;
    white-space: nowrap;
  }

  /* ───── EMPTY STATE ───── */
  .empty-state {
    padding: 50px 16px;
  }

  .empty-state i {
    font-size: 3rem;
    margin-bottom: 14px;
  }

  .empty-state h3 {
    font-size: 1.2rem;
  }

  .empty-state p {
    font-size: 0.9rem;
  }

  /* ───── LOADING SPINNER ───── */
  .loading-spinner {
    padding: 40px 16px;
  }

  .loading-spinner i {
    font-size: 2rem;
  }

  .loading-spinner p {
    font-size: 0.9rem;
  }

  /* ───── FOOTER ───── */
  .footer-inner {
    padding: 0 16px;
  }

  .footer-top {
    flex-direction: column;
    gap: 24px;
  }

  .footer-columns {
    gap: 30px;
    flex-direction: column;
  }

  .footer-logo {
    height: 100px;
  }

  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }

  .footer-links a {
    margin-left: 0;
    margin-right: 12px;
  }
    .notification-modal {
  position: absolute;
  top: 52px;
  right: 30px;
  width: 320px;
  max-height: 420px;
  background: rgba(2, 8, 32, 0.98);
  border-radius: 16px;
  padding: 12px 0;
  border: 1px solid rgba(255,255,255,0.12);
  box-shadow: 0 18px 45px rgba(0,0,0,0.5);
  overflow-y: auto;
  z-index: 2000001 !important;
}
}

/* ═══════════════════════════════════════════════════════════════════════════
   EXTRA SMALL PHONES (375px and below)
   ═══════════════════════════════════════════════════════════════════════════ */

@media (max-width: 375px) {
  .hero-title {
    font-size: 1.3rem;
  }

  .hero-subtitle {
    font-size: 0.85rem;
  }

  .toggle-btn {
    padding: 7px 10px;
    font-size: 0.75rem;
  }

  .collection-card-image {
    height: 160px;
  }

  .collection-card-images {
    height: 160px;
  }

  .collection-card-content {
    padding: 12px;
  }

  .collection-card-title {
    font-size: 1rem;
  }

  .roamer-card {
    padding: 65px 12px 12px;
  }

  .roamer-avatar-ring {
    width: 60px;
    height: 60px;
  }

  .roamer-stat-box {
    padding: 5px 3px;
  }

  .roamer-stat-number {
    font-size: 0.8rem;
  }

  .roamer-stat-label {
    font-size: 0.6rem;
  }

  .results-section {
    padding: 20px 12px 50px;
  }

  .search-section {
    padding: 12px;
  }
}
       .guest-nav-left {
  align-items: center;
  gap: 32px;
  justify-content: center;
  grid-column: 2;
      margin: 0;
    min-height: 100%;
    font-family: "Helvetica Neue", Arial, sans-serif;
    color: #ffffff;
}



@media (max-width: 768px) {
  /* ───── GLOBAL OVERFLOW FIX ───── */
  * {
    max-width: 100vw;
  }

  .navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 20px;
    max-width: 100vw;
    box-sizing: border-box;
  }

  .nav-logo {
    width: 170px;
  }

  .nav-left {
    display: none;
  }

  .nav-right {
    gap: 10px;
  }

  .nav-right .create-btn {
    display: none;
  }

  .hamburger {
    display: block;
  }

  /* Mobile menu link styling */
  .mobile-menu {
    z-index: 9999;
  }

  .mobile-menu a {
    color: #000e33 !important;
    text-decoration: none;
  }

  .mobile-menu .nav-item {
    color: #000e33  ;
    font-size: 1rem;
    font-weight: 500;
    padding: 8px 0;
  }

  .mobile-menu .create-btn {
    display: flex;
    width: 100%;
    justify-content: center;
  }
}


.creator-tile-avatar,
.creator-avatar {
  width: 118px !important;
  height: 118px !important;
  margin-bottom: 18px;
}

.creator-tile-name {
  font-size: 1.45rem;
  font-weight: 800;
  line-height: 1.1;
}


.creator-tile-location {
  font-size: 1rem;
  margin-top: 6px;
}

.creator-tile-stats {
  font-size: 0.95rem;
  margin-top: 14px;
}

.creator-preview-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  width: 100%;
  margin-top: 34px;
}

.creator-preview-img {
  height: 92px !important;
  border-radius: 14px !important;
  overflow: hidden;
}

.creator-preview-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.roamer-follow-btn {
  width: 42px !important;
  height: 42px !important;
  min-width: 42px !important;
  padding: 0 !important;
  border-radius: 50% !important;

  display: flex;
  align-items: center;
  justify-content: center;

  font-size: 0;
}

.roamer-follow-btn i {
  font-size: 0.8rem;
  color: white;
  margin: 0 !important;
}

.roamer-follow-btn span {
  display: none !important;
}

/* =========================
   MOBILE FIXES
========================= */
@media (max-width: 768px) {

  html,
  body {
    width: 100%;
    overflow-x: hidden;
  }

  .creator-hero {
    padding: 48px 16px 28px;
  }

  .hero-title {
    font-size: 2rem;
    line-height: 1.05;
    padding-bottom: 10px;
  }

  .hero-subtitle {
    font-size: 0.95rem;
    margin-bottom: 24px;
  }

  .creator-search .search-bar {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    margin-top: 18px;
  }

  /* ✅ fixes sort causing horizontal scroll */
  .controls-row {
    width: 100%;
    box-sizing: border-box;
    padding: 0;
    margin-top: 24px;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 14px;
  }

  .view-toggle {
    width: 100%;
    justify-content: center;
    gap: 8px;
  }

  .toggle-btn {
    flex: 1;
    padding: 8px 10px;
    font-size: 0.78rem;
  }

  .sort-dropdown {
    width: 100%;
    justify-content: space-between;
    gap: 10px;
  }


  /* ✅ keep collection tiles 2 across on mobile */
  .collections-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 2px;
  }

  .collection-card {
    aspect-ratio: 0.85;
  }

  .collection-tile-title {
    font-size: 0.9rem;
  }

  .collection-tile-meta {
    font-size: 0.68rem;
  }

  /* ✅ creator cards smaller / less huge */
  .creators-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 2px;
  }

  .creator-tile {
    min-height: 330px !important;
    padding: 18px 12px 12px !important;
  }

  .creator-tile-avatar-ring {
    width: 72px !important;
    height: 72px !important;
  }

  .creator-tile-name {
    font-size: 0.95rem !important;
    line-height: 1.15;
  }

  .creator-tile-location {
    font-size: 0.75rem !important;
    margin-top: 4px;
  }

  .creator-tile-stats {
    font-size: 0.68rem !important;
    line-height: 1.35;
    margin-top: 8px;
  }

  .creator-tile-previews {
    gap: 6px !important;
    margin-top: 16px !important;
  }

  .creator-preview-img {
    height: 54px !important;
    border-radius: 9px !important;
  }

  .creator-tile-follow-btn {
    width: 34px !important;
    height: 34px !important;
    min-width: 34px !important;
  }
}


@media (max-width: 768px) {
  .controls-row {
    width: 100%;
    max-width: 280px;
    margin: 24px auto 0;
    padding: 0 16px;
    box-sizing: border-box;

    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 14px;
  }

  .view-toggle {
    width: 100%;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
  }

  .toggle-btn {
    width: 100%;
    justify-content: center;
    padding: 10px 12px;
    font-size: 0.9rem;
  }

  .sort-dropdown {
    width: 100%;
    display: grid;
    grid-template-columns: auto 1fr;
    align-items: center;
    gap: 10px;
    padding-left: 110px;
    padding-top: 20px;
  }

  .sort-label {
    font-size: 0.9rem;
    white-space: nowrap;
  }

  .sort-select {
    width: 100%;
    min-width: 0;
    max-width: none;
    height: 46px;
    font-size: 0.95rem;
  }
}

@media (max-width: 768px) {
  .creators-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 2px !important;
    width: 100%;
    overflow: hidden;
  }

  .creator-tile {
    min-height: 300px !important;
    height: 300px !important;
    padding: 18px 10px 10px !important;
    box-sizing: border-box;
    overflow: hidden;
  }

  .creator-tile-top {
    top: 10px !important;
    right: 10px !important;
  }

  .creator-tile-follow-btn {
    width: 34px !important;
    height: 34px !important;
    min-width: 34px !important;
  }

  .creator-tile-center {
    width: 100%;
    padding: 0 4px;
    box-sizing: border-box;
  }

  .creator-tile-avatar-ring {
    width: 72px !important;
    height: 72px !important;
    margin-bottom: 10px !important;
  }

  .creator-tile-name {
    font-size: 0.92rem !important;
    line-height: 1.1 !important;
    max-width: 100%;
    white-space: normal;
    overflow-wrap: anywhere;
  }

  .creator-tile-location {
    font-size: 0.72rem !important;
    line-height: 1.15 !important;
    margin-top: 4px !important;
  }

  .creator-tile-stats {
    font-size: 0.62rem !important;
    line-height: 1.25 !important;
    margin-top: 8px !important;
    white-space: normal !important;
  }

  .creator-tile-previews {
    width: 100%;
    display: grid !important;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 5px !important;
    margin-top: auto !important;
  }

  .creator-preview-img {
    height: 48px !important;
    border-radius: 8px !important;
    overflow: hidden;
  }

  .creator-preview-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }
}
@media (max-width: 768px) {
  .creators-grid {
    display: grid !important;
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 2px !important;
    width: 100% !important;
    max-width: 100% !important;
  }

  .creator-tile {
    height: 280px !important;
    min-height: 280px !important;
    max-height: 280px !important;
    padding: 14px 8px 8px !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
    position: relative !important;
  }

  .creator-tile-center {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    padding: 0 6px !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
  }

  .creator-tile-avatar-ring {
    width: 68px !important;
    height: 68px !important;
    margin: 52px auto 10px !important;
  }

  .creator-tile-name,
  .creator-tile-location,
  .creator-tile-stats {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    text-align: center !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
  }

  .creator-tile-name {
    font-size: 0.9rem !important;
    line-height: 1.1 !important;
    white-space: nowrap !important;
  }

  .creator-tile-location {
    font-size: 0.72rem !important;
    line-height: 1.15 !important;
    white-space: nowrap !important;
  }

  .creator-tile-stats {
    font-size: 0.62rem !important;
    line-height: 1.2 !important;
    white-space: nowrap !important;
    margin-top: 7px !important;
  }

  .creator-tile-previews {
    position: absolute !important;
    left: 8px !important;
    right: 8px !important;
    bottom: 8px !important;
    display: grid !important;
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 5px !important;
  }

  .creator-preview-img {
    height: 42px !important;
    border-radius: 8px !important;
    overflow: hidden !important;
  }

  .creator-preview-img img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
  }
}
@media (max-width: 768px) {
  #creatorsGrid.creators-grid {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 2px !important;
    width: 100% !important;
  }

  #creatorsGrid .creator-tile {
    aspect-ratio: auto !important;
    height: auto !important;
    min-height: 260px !important;
    padding: 14px 8px 8px !important;
    box-sizing: border-box !important;

    display: flex !important;
    flex-direction: column !important;
    justify-content: space-between !important;
    overflow: hidden !important;
  }

  #creatorsGrid .creator-tile-top {
    position: static !important;
    display: flex !important;
    justify-content: flex-end !important;
    height: 34px !important;
    margin-bottom: 4px !important;
  }

  #creatorsGrid .creator-tile-center {
    position: static !important;
    transform: none !important;
    inset: auto !important;
    width: 100% !important;
    min-width: 0 !important;

    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    overflow: hidden !important;
  }

  #creatorsGrid .creator-tile-avatar-ring {
    width: 64px !important;
    height: 64px !important;
    margin: 0 auto 8px !important;
  }

  #creatorsGrid .creator-tile-name {
    font-size: 0.88rem !important;
    line-height: 1.1 !important;
    margin: 0 0 4px !important;
    width: 100% !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
  }

  #creatorsGrid .creator-tile-location {
    font-size: 0.68rem !important;
    line-height: 1.1 !important;
    margin: 0 0 6px !important;
    width: 100% !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
  }

  #creatorsGrid .creator-tile-stats {
    font-size: 0.58rem !important;
    line-height: 1.15 !important;
    width: 100% !important;
    max-width: 100% !important;
    white-space: normal !important;
    overflow-wrap: break-word !important;
  }

  #creatorsGrid .creator-tile-previews {
    position: static !important;
    width: 100% !important;
    margin-top: 10px !important;

    display: grid !important;
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    gap: 5px !important;
  }

  #creatorsGrid .creator-preview-img {
    height: 40px !important;
    min-width: 0 !important;
    border-radius: 8px !important;
  }
}

@media (max-width: 768px) {
  .results-section {
    padding: 0 !important;
  }

  .results-container {
    padding: 0 !important;
    margin: 0 !important;
    max-width: 100% !important;
  }

  .creators-grid {
    width: 100vw !important;
    margin-left: calc(50% - 50vw) !important;
  }
}

/* Collection tiles: image fills entire card */
.collection-card {
  aspect-ratio: 1 / 1 !important;
  border-radius: 0 !important;
  overflow: hidden !important;
}

.collection-card-images {
  position: absolute !important;
  inset: 0 !important;
  height: 100% !important;
  width: 100% !important;
}

.collection-image-slot,
.collection-image-slot img,
.collection-image-gradient {
  border-radius: 0 !important;
}

.collection-tile-bottom {
  position: absolute !important;
  bottom: 14px !important;
  left: 14px !important;
  right: 14px !important;
  z-index: 5 !important;
}

.collection-tile-overlay {
  position: absolute !important;
  inset: 0 !important;
  background: linear-gradient(
    to bottom,
    transparent 45%,
    rgba(0,0,0,0.72) 100%
  ) !important;
}

@media (max-width: 768px) {
  #editorsGrid.creators-grid {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 2px !important;
    width: 100% !important;
  }

  #editorsGrid .creator-tile {
    aspect-ratio: auto !important;
    height: auto !important;
    min-height: 260px !important;
    padding: 14px 8px 8px !important;
    box-sizing: border-box !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: space-between !important;
    overflow: hidden !important;
  }

  #editorsGrid .creator-tile-top {
    position: static !important;
    display: flex !important;
    justify-content: flex-end !important;
    height: 34px !important;
    margin-bottom: 4px !important;
  }

  #editorsGrid .creator-tile-center {
    position: static !important;
    transform: none !important;
    inset: auto !important;
    width: 100% !important;
    min-width: 0 !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    overflow: hidden !important;
  }

  #editorsGrid .creator-tile-avatar-ring {
    width: 64px !important;
    height: 64px !important;
    margin: 0 auto 8px !important;
  }

  #editorsGrid .creator-tile-name {
    font-size: 0.88rem !important;
    line-height: 1.1 !important;
    margin: 0 0 4px !important;
    width: 100% !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
  }

  #editorsGrid .creator-tile-location {
    font-size: 0.68rem !important;
    line-height: 1.1 !important;
    margin: 0 0 6px !important;
    width: 100% !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
  }

  #editorsGrid .creator-tile-stats {
    font-size: 0.58rem !important;
    line-height: 1.15 !important;
    width: 100% !important;
    max-width: 100% !important;
    white-space: normal !important;
    overflow-wrap: break-word !important;
  }

  #editorsGrid .creator-tile-previews {
    position: static !important;
    width: 100% !important;
    margin-top: 10px !important;
    display: grid !important;
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    gap: 5px !important;
  }

  #editorsGrid .creator-preview-img {
    height: 40px !important;
    min-width: 0 !important;
    border-radius: 8px !important;
  }
}
#creatorsGrid.creators-grid,
#editorsGrid.creators-grid {
  width: 100vw !important;
  margin-left: calc(50% - 50vw) !important;
}


.nav-create-menu {
  position: relative;
}

.nav-create-trigger {
  white-space: nowrap;
}

.nav-create-chevron {
  font-size: 0.72rem;
  margin-left: 2px;
  opacity: 0.85;
}

.nav-create-dropdown {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  min-width: 190px;
  padding: 6px;
  border-radius: 14px;
  background: #ffffff;
  border: 1px solid rgba(0, 14, 51, 0.08);
  box-shadow: 0 14px 35px rgba(0, 0, 0, 0.12);
  opacity: 0;
  pointer-events: none;
  transform: translateY(6px);
  transition: opacity 0.18s ease, transform 0.18s ease;
  z-index: 2500;
}

.nav-create-menu:hover .nav-create-dropdown {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.nav-create-dropdown button {
  width: 100%;
  border: none;
  background: transparent;
  color: #000e33;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 10px;
  font-size: 0.9rem;
  cursor: pointer;
  text-align: left;
}

.nav-create-dropdown button:hover {
  background: rgba(75, 91, 213, 0.08);
  color: #4b5bd5;
}

.nav-create-menu::after {
  content: '';
  position: absolute;
  top: 100%;
  left: -8px;
  right: -8px;
  height: 14px;
  background: transparent;
}
