.filter-tabs a {
  text-decoration: none;
}
.filter-tabs a:hover {
  color: #111827; /* gray-900 */
}
.dark .filter-tabs a {
  color: #e5e7eb; /* gray-200 */
}
.dark .filter-tabs a:hover {
  color: #ffffff; /* keep text readable on dark hover */
}

.pager-desktop {
  display: inline-flex;
}
.pager-mobile {
  display: none;
}
@media (max-width: 767px){
  .pager-desktop {
    display: none;
  }
  .pager-mobile {
    display: flex;
  }
}

/* Missing Tailwind utilities added manually */
.text-pink-300 {
  color: #fda5d5;
}

.hover\:text-pink-300:hover {
  color: #fda5d5;
}

.text-pink-400 {
  color: #fb64b6;
}

.text-pink-600 {
  color: #e30076;
}

.hover\:text-pink-600:hover {
  color: #e30076;
}

.text-gray-300 {
  color: #d1d5dc;
}

.text-\[12px\] {
  font-size: 12px;
}

.hover\:text-gray-900:hover {
  color: #111827;
}

.group:hover .group-hover\:text-pink-300 {
  color: #fda5d5;
}

.group:hover .group-hover\:text-white {
  color: #ffffff;
}

.dark .group:hover .dark\:group-hover\:text-pink-300 {
  color: #fda5d5;
}

.dark .dark\:hover\:text-white:hover {
  color: #ffffff !important;
}

.dark .dark\:hover\:text-black:hover {
  color: #000000 !important;
}

/* Friend links fallbacks to ensure styling even if utility classes are purged */
.friend-links .link-btn {
  background: #facc15;
  color: #111827;
  border-radius: 0.5rem;
  display: inline-flex;
  align-items: center;
  font-weight: 600;
  transition: background-color 0.2s ease, color 0.2s ease;
}
.friend-links .link-btn:hover {
  background: #fdd835;
  color: #0f172a;
}
.dark .friend-links .link-btn {
  background: #eab308;
  color: #0f172a;
}
.dark .friend-links .link-btn:hover {
  background: #facc15;
  color: #0f172a;
}

/* Utility fallbacks */
.text-yellow-500 {
  color: #eab308;
}
.hover\:text-yellow-500:hover {
  color: #eab308;
}

/* Size utilities */
.h-4 { height: 1rem; }
.w-4 { width: 1rem; }
.h-5 { height: 1.25rem; }
.w-5 { width: 1.25rem; }
.h-6 { height: 1.5rem; }
.w-6 { width: 1.5rem; }
.h-7 { height: 1.75rem; }
.w-7 { width: 1.75rem; }
.h-8 { height: 2rem; }
.w-8 { width: 2rem; }
.w-auto { width: auto; }
.text-sm { font-size: 0.875rem; line-height: 1.25rem; }
.text-gray-600 { color: #4b5563; }
.text-\[11px\] { font-size: 11px; }
.dark .dark\:text-gray-300 { color: #d1d5db; }
.dark .dark\:text-gray-400 { color: #9ca3af; }

.dark .dark\:text-gray-300 { color: #d1d5db; }
.hover\:text-pink-500:hover { color: #f6339a; }

.dark .dark\:bg-gray-800\/60 {
  background-color: rgba(30, 41, 57, 0.6);
}

/* Message pop positioning */
.mac_pop_msg_bg {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.35);
  z-index: 9998;
}
.mac_pop_msg {
  position: fixed !important;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}
.mac_pop_msg .pop-msg {
  background: #111827;
  color: #fff;
  padding: 0.5rem 0.75rem;
  border-radius: 0.5rem;
  box-shadow: 0 4px 10px rgba(0,0,0,0.25);
  font-size: 0.875rem;
  line-height: 1.25rem;
}

/* Mobile limit for verify input */
@media (max-width: 640px){
  .mac_verify {
    max-width: 150px;
  }
  .comment-verify,
  .gbook-verify {
    max-width: 150px;
  }
}

/* Rounded utilities fallback */
.rounded-b-xl {
  border-bottom-left-radius: 0.75rem;
  border-bottom-right-radius: 0.75rem;
  border-top-left-radius: 0;
  border-top-right-radius: 0;
}

.gbook-btn {
  background: linear-gradient(90deg, #f6339a 0%, #ac4bff 100%);
  color: #fff;
  border: none;
  cursor: pointer;
}
.gbook-btn:hover {
  background: linear-gradient(90deg, #e30076 0%, #9810fa 100%);
  color: #fff;
}

.inline-flex { display: inline-flex; }
.items-center { align-items: center; }
.gap-2 { gap: 0.5rem; }
.px-4 { padding-left: 1rem; padding-right: 1rem; }
.py-2 { padding-top: 0.5rem; padding-bottom: 0.5rem; }
.rounded-md { border-radius: 0.375rem; }
.text-white { color: #ffffff; }
.text-sm { font-size: 0.875rem; line-height: 1.25rem; }
.font-medium { font-weight: 500; }
.transition-colors { transition: color 0.2s ease, background-color 0.2s ease; }
.bg-gradient-to-r {
  background: linear-gradient(90deg, var(--tw-gradient-from, #f6339a) 0%, var(--tw-gradient-to, #ac4bff) 100%);
}
.from-pink-500 { --tw-gradient-from: #f6339a; }
.to-purple-600 { --tw-gradient-to: #9810fa; }
.hover\:from-pink-600:hover { --tw-gradient-from: #e30076; }
.hover\:to-purple-700:hover { --tw-gradient-to: #8200da; }

/* Pop modal positioning (for MAC popups) */
.mac_pop_bg {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  z-index: 9998;
}
.mac_pop {
  position: fixed !important;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 9999;
  background: transparent;
}
.mac_pop .pop_top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.5rem 0.75rem;
  background: #111827;
  color: #fff;
  border-top-left-radius: 0.75rem;
  border-top-right-radius: 0.75rem;
}
.mac_pop .pop_top h2 {
  font-size: 1rem;
  margin: 0;
}
.mac_pop .pop_top .pop_close {
  cursor: pointer;
}
.mac_pop .pop_content {
  background: transparent;
  border-bottom-left-radius: 0.75rem;
  border-bottom-right-radius: 0.75rem;
}

.dark\:hover\:bg-pink-600:hover {
  background-color: #e30076;
}

.hover\:bg-gray-200:hover {
  background-color: #e5e7eb;
}

.dark .dark\:hover\:bg-black:hover {
  background-color: #000000;
}

.tag-badge {
  display: inline-flex;
  align-items: center;
  padding: 4px 8px;
  font-size: 13px;
  font-weight: 600;
  border-radius: 9999px;
  background: #ffe4f1; /* light pink */
  color: #be185d; /* pink-700 */
}
.dark .tag-badge {
  background: rgba(190, 24, 93, 0.25);
  color: #f9a8d4; /* pink-300 */
}

/* Ensure spacing utilities exist if Tailwind purge removed them */
.space-y-2 > :not([hidden]) ~ :not([hidden]) {
  margin-top: 0.5rem;
}
.space-y-3 > :not([hidden]) ~ :not([hidden]) {
  margin-top: 0.75rem;
}
.space-y-4 > :not([hidden]) ~ :not([hidden]) {
  margin-top: 1rem;
}
.space-y-5 > :not([hidden]) ~ :not([hidden]) {
  margin-top: 1.25rem;
}
.space-y-6 > :not([hidden]) ~ :not([hidden]) {
  margin-top: 1.5rem;
}
.space-y-8 > :not([hidden]) ~ :not([hidden]) {
  margin-top: 2rem;
}
.space-y-10 > :not([hidden]) ~ :not([hidden]) {
  margin-top: 2.5rem;
}
.space-y-12 > :not([hidden]) ~ :not([hidden]) {
  margin-top: 3rem;
}
.mt-1 {
  margin-top: 0.25rem;
}
.mt-2 {
  margin-top: 0.5rem;
}
.side-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px;
  border-radius: 9999px;
  background: #f3f4f6; /* gray-100 */
  color: #1f2937; /* gray-800 */
  font-size: 13px;
  border: 1px solid #e5e7eb;
  text-decoration: none;
  line-height: 1.2;
  transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}
.side-tag:hover {
  background: #e5e7eb; /* gray-200 */
  color: #111827; /* gray-900 */
  border-color: #d1d5db;
}
.side-tag .count {
  color: #6b7280; /* gray-500 */
  font-size: 12px;
}
.dark .side-tag {
  background: #1f2937; /* gray-800 */
  color: #e5e7eb;
  border-color: #374151;
}
.dark .side-tag:hover {
  background: #111827; /* gray-900 */
  color: #ffffff;
  border-color: #4b5563;
}
.dark .side-tag .count {
  color: #9ca3af; /* gray-400 */
}
