html {
  scroll-behavior: smooth;
}

.product-card {
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease;
  animation: fadeInUp 0.4s ease-out forwards;
}
.product-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 24px -10px rgba(0, 0, 0, 0.1);
}

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

#mobile-menu {
  transition: all 0.3s ease;
}

/* Buy Modal */
#buy-modal {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: none;
  align-items: center;
  justify-content: center;
  background-color: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(4px);
  width: 100vw;
  height: 100vh;
}
#buy-modal:not(.hidden) {
  display: flex !important;
}

/* ── SUPPORT MODAL ── (Updated to site theme) */
.support-modal-overlay {
  display: none !important;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(8px);
  z-index: 9999;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}
.support-modal-overlay.open {
  display: flex !important;
}

.support-modal {
  background: #ffffff; /* white background */
  border-radius: 0.5rem;
  max-width: 600px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  padding: 2rem;
  border: 1px solid rgba(0, 0, 0, 0.08);
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.15);
  color: #0f172a; /* navy-900 */
}
.support-modal::-webkit-scrollbar {
  width: 4px;
}
.support-modal::-webkit-scrollbar-track {
  background: transparent;
}
.support-modal::-webkit-scrollbar-thumb {
  background: #16a34a; /* brand-600 */
  border-radius: 2px;
}

/* Modal heading & text */
.support-modal h2 {
  color: #0f172a; /* navy-900 */
}
.support-modal .text-purple-300 {
  color: #475569; /* gray-600 instead of purple */
}
.support-modal .text-purple-400 {
  color: #64748b; /* gray-500 */
}

/* Close button */
.support-modal .float-right {
  color: #1e293b; /* navy-800 */
}
.support-modal .float-right:hover {
  color: #0f172a;
}

/* Donation cards – keep payment method colors, but match site theme */
.donation-card {
  background: #f8fafc; /* light gray */
  border: 1px solid #e2e8f0;
  border-radius: 1rem;
  padding: 1rem;
  text-align: center;
  text-decoration: none;
  color: #0f172a;
  transition: all 0.3s;
  border-left: 4px solid transparent;
}
.donation-card:hover {
  transform: translateY(-3px);
  background: #f0fdf4; /* brand-50 (light green) */
  border-color: #bbf7d0;
}
.donation-card i {
  font-size: 2rem;
  margin-bottom: 0.5rem;
}
.donation-card h3 {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 0.25rem;
  color: #0f172a;
}
.donation-card p {
  font-size: 0.75rem;
  color: #475569;
}

/* Payment method specific left borders (unchanged) */
.donation-bmc {
  border-left-color: #ffdd00;
}
.donation-bmc:hover {
  background: rgba(255, 221, 0, 0.1);
}
.donation-bmc i {
  color: #ffdd00;
}

.donation-kofi {
  border-left-color: #f16061;
}
.donation-kofi:hover {
  background: rgba(241, 96, 97, 0.1);
}
.donation-kofi i {
  color: #f16061;
}

.donation-paypal {
  border-left-color: #0070ba;
}
.donation-paypal:hover {
  background: rgba(0, 112, 186, 0.1);
}
.donation-paypal i {
  color: #0070ba;
}

.donation-github {
  border-left-color: #6e5494;
}
.donation-github:hover {
  background: rgba(110, 84, 148, 0.1);
}
.donation-github i {
  color: #6e5494;
}

/* Crypto cards – payment method colors kept */
.crypto-card {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 0.75rem;
  padding: 0.75rem;
  border-left: 4px solid transparent;
}
.crypto-card .text-white {
  color: #0f172a; /* override white text to navy */
}
.crypto-btc {
  border-left-color: #f7931a;
}
.crypto-eth {
  border-left-color: #627eea;
}
.crypto-sol {
  border-left-color: #9945ff;
}
.crypto-doge {
  border-left-color: #c2a633;
}

.address-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  background: #f1f5f9; /* light slate */
  border-radius: 0.5rem;
  padding: 0.5rem;
}
.address-row code {
  font-family: monospace;
  font-size: 0.7rem;
  word-break: break-all;
  flex: 1;
  color: #0f172a;
}
.copy-btn {
  background: #16a34a; /* brand-600 */
  border: none;
  color: white;
  font-size: 0.65rem;
  font-weight: 600;
  padding: 0.2rem 0.6rem;
  border-radius: 1rem;
  cursor: pointer;
  transition: 0.2s;
}
.copy-btn:hover {
  background: #15803d; /* brand-700 */
}

/* FAB */
#fab-support {
  box-shadow: 0 8px 25px rgba(255, 105, 180, 0.5);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
#fab-support:hover {
  box-shadow: 0 12px 35px rgba(255, 105, 180, 0.6) !important;
  transform: scale(1.08);
}

/* Bookmark Toast */
#bookmark-toast {
  transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}
#bookmark-toast.visible {
  opacity: 1 !important;
  transform: translateY(0) !important;
  pointer-events: auto !important;
}

/* Hero Carousel Styles */
.swiper {
  width: 100%;
  height: auto;
  padding-bottom: 2.5rem; /* space for pagination */
}

.swiper-button-next,
.swiper-button-prev {
  color: white !important;
  background: rgba(0, 0, 0, 0.3);
  width: 40px;
  height: 40px;
  border-radius: 10%;
  transition: background 0.3s ease;
}

.swiper-button-next:hover,
.swiper-button-prev:hover {
  background: rgba(0, 0, 0, 0.6);
}

.swiper-button-next::after,
.swiper-button-prev::after {
  font-size: 18px !important;
  font-weight: bold;
}

.swiper-pagination-bullet {
  background: white !important;
  opacity: 0.6;
}

.swiper-pagination-bullet-active {
  background: white !important;
  opacity: 1;
}

/* Adjust for mobile */
@media (max-width: 640px) {
  .swiper-button-next,
  .swiper-button-prev {
    display: none !important; /* Hide arrows on small screens, dots remain */
  }
}

/* ── Two‑column carousel slide styles ── */
.slide-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  align-items: center;
}

@media (max-width: 768px) {
  .slide-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
    text-align: center;
  }
  .slide-grid .order-md-2 {
    order: -1;
  }
}

.slide-img {
  border-radius: 1.25rem;
  box-shadow: 0 20px 40px -12px rgba(0, 0, 0, 0.25);
  width: 100%;
  height: auto;
  max-height: 300px;
  object-fit: cover;
  background: #f1f5f9;
  transition: transform 0.3s ease;
}

.swiper-slide:hover .slide-img {
  transform: scale(1.02);
}

.slide-img-wrap {
  position: relative;
  display: inline-block;
  width: 100%;
}

.slide-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: #0f172a;
  line-height: 1.2;
}

.slide-desc {
  font-size: 0.95rem;
  color: #475569;
  margin-top: 0.5rem;
}

.slide-cta {
  margin-top: 1.25rem;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: #16a34a;
  color: #fff;
  font-weight: 600;
  padding: 0.6rem 1.5rem;
  border-radius: 2rem;
  font-size: 0.9rem;
  transition:
    background 0.2s,
    transform 0.2s;
  text-decoration: none;
  border: none;
  cursor: pointer;
  font-family: inherit;
}

.slide-cta:hover {
  background: #15803d;
  transform: translateY(-2px);
}

.slide-cta i {
  font-size: 0.8rem;
}

/* Typewriter cursor */
#typewriter-cursor {
  display: inline-block;
  width: 2px;
  height: 1.1em;
  background-color: #16a34a;
  margin-left: 2px;
  vertical-align: text-bottom;
  animation: blink 0.8s step-end infinite;
}

@keyframes blink {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0;
  }
}

.fa-spinner {
  animation: spin 1s linear infinite;
}
@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

.bulk-link-btn {
  background-color: #f97316;
}
.bulk-link-btn:hover {
  background-color: #ea580c;
}

/* ---- Welcome Popup Slide Animation ---- */
#welcome-popup .animate-slide-up {
  animation: slideUp 0.5s ease-out forwards;
}
@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(20px) scale(0.96);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.welcome-slide {
  transition: opacity 0.6s ease-in-out;
}
.welcome-slide.active {
  opacity: 1;
  z-index: 10;
}
.welcome-slide:not(.active) {
  opacity: 0;
  z-index: 1;
}

.welcome-dot.active {
  background: #16a34a !important;
  width: 16px !important;
}

#welcome-popup {
  transition: opacity 0.3s ease;
}