@import url("https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap");

body {
  font-family: "Inter", sans-serif;
  background-color: #0f0f11;
  color: #e2e8f0;
  margin: 0;
  min-height: 100vh;
  position: relative;
  overflow-x: hidden;
  max-width: 100vw;
  font-size: 16px;
  line-height: 1.6;
}

/* Background gradient blobs (Fixed relative to viewport so it never cuts off) */
body::before,
body::after {
  content: "";
  position: fixed;
  border-radius: 50%;
  filter: blur(120px);
  z-index: -1;
  opacity: 0.15;
}

body::before {
  top: -15vh;
  left: -15vw;
  width: 70vw;
  height: 70vw;
  min-width: 400px;
  min-height: 400px;
  background: #ff3b3b; /* Vibrant Red */
}

body::after {
  bottom: -15vh;
  right: -15vw;
  width: 90vw;
  height: 90vw;
  min-width: 500px;
  min-height: 500px;
  background: #c71f1f; /* Darker Vibrant Red */
}

/* Glassmorphism Classes */
.glass {
  background: rgba(20, 20, 25, 0.5) !important;
  backdrop-filter: blur(16px) !important;
  -webkit-backdrop-filter: blur(16px) !important;
  border: 1px solid rgba(255, 255, 255, 0.08) !important;
  box-shadow: 0 10px 30px -5px rgba(0, 0, 0, 0.5) !important;
}

.glass-card {
  background: rgba(20, 20, 25, 0.5) !important;
  backdrop-filter: blur(16px) !important;
  -webkit-backdrop-filter: blur(16px) !important;
  border: 1px solid rgba(255, 255, 255, 0.08) !important;
  border-radius: clamp(1rem, 4vw, 1.75rem) !important;
  box-shadow: 0 10px 30px -5px rgba(0, 0, 0, 0.5) !important;
  transition: all 0.3s ease;
}

.glass-card:hover {
  border-color: rgba(236, 72, 153, 0.3) !important;
  box-shadow: 0 12px 40px -5px rgba(236, 72, 153, 0.2) !important;
}

.glass-panel-white {
  background: rgba(255, 255, 255, 0.03);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: clamp(0.75rem, 3vw, 1.25rem);
}

.glass-panel-yellow {
  background: rgba(234, 179, 8, 0.05); /* Yellow/Orange soft background */
  border-left: 4px solid #eab308;
  backdrop-filter: blur(8px);
  border-radius: 0.5rem;
}

.glass-input {
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #fff;
  border-radius: 0.5rem;
}

.glass-input:focus {
  outline: none;
  border-color: #ff3b3b;
  box-shadow: 0 0 0 2px rgba(255, 59, 59, 0.2);
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: rgba(0, 0, 0, 0.2);
}

::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 59, 59, 0.5);
}

/* Red accents */
.text-neon-red {
  color: #ff4d4d;
}
.bg-neon-red {
  background: #ff3b3b;
}

/* Primary Button */
.btn-primary, button.btn-primary, a.btn-primary {
  background: linear-gradient(135deg, #ff3b3b, #c71f1f) !important;
  color: #ffffff !important;
  border-radius: 9999px !important;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 600 !important;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
  border: none !important;
  box-shadow: 0 4px 15px rgba(255, 59, 59, 0.3) !important;
}

/* Primary Button Hover */
.btn-primary:hover, button.btn-primary:hover, a.btn-primary:hover {
  box-shadow: 0 8px 25px rgba(255, 59, 59, 0.5) !important;
  transform: translateY(-2px);
}

.btn-primary:active {
  transform: scale(0.97) !important;
}

/* Secondary Button */
.btn-secondary, .glass[href*="login"], a[href*="login"].glass {
  background: rgba(255, 255, 255, 0.05) !important;
  border-radius: 9999px !important;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 255, 255, 0.1) !important;
  color: #e2e8f0 !important;
  font-weight: 600 !important;
  transition: all 0.3s ease !important;
}

.btn-secondary:hover, .glass[href*="login"]:hover {
  background: rgba(255, 255, 255, 0.1) !important;
}

/* Badges */
.badge-free {
  background: rgba(59, 130, 246, 0.2);
  color: #60a5fa;
  border: 1px solid rgba(59, 130, 246, 0.3);
  padding: 0.125rem 0.6rem;
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 600;
}

/* Accordion Smooth Expand */
.accordion-content {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.3s ease-out;
  overflow: hidden;
}
.accordion-content > div {
  overflow: hidden;
}
.accordion-content.is-open {
  grid-template-rows: 1fr;
}
.rotate-180 {
  transform: rotate(180deg);
}

/* Toast Notification */
.toast-container {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  z-index: 50;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  pointer-events: none;
}

.toast {
  background: rgba(30, 30, 34, 0.9);
  backdrop-filter: blur(12px);
  border-left: 4px solid #10b981;
  color: white;
  padding: 1rem 1.5rem;
  border-radius: 0.5rem;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5);
  transform: translateX(120%);
  transition: transform 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.toast.show {
  transform: translateX(0);
}

/* Sidebar & Nav padding */
.main-content {
  margin-left: 250px; /* Desktop sidebar width */
  min-height: 100vh;
}
@media (max-width: 768px) {
  .main-content {
    margin-left: 0;
    padding-bottom: 80px; /* Mobile bottom nav space */
  }
}

/* Waving Hand Animation */
@keyframes wave {
    0% { transform: rotate( 0.0deg) scale(1); }
    10% { transform: rotate(14.0deg) scale(1.1); }
    20% { transform: rotate(-8.0deg) scale(1.1); }
    30% { transform: rotate(14.0deg) scale(1.1); }
    40% { transform: rotate(-4.0deg) scale(1.1); }
    50% { transform: rotate(10.0deg) scale(1.1); }
    60% { transform: rotate( 0.0deg) scale(1); }
    100% { transform: rotate( 0.0deg) scale(1); }
}

@-webkit-keyframes wave {
    0% { -webkit-transform: rotate( 0.0deg) scale(1); }
    10% { -webkit-transform: rotate(14.0deg) scale(1.1); }
    20% { -webkit-transform: rotate(-8.0deg) scale(1.1); }
    30% { -webkit-transform: rotate(14.0deg) scale(1.1); }
    40% { -webkit-transform: rotate(-4.0deg) scale(1.1); }
    50% { -webkit-transform: rotate(10.0deg) scale(1.1); }
    60% { -webkit-transform: rotate( 0.0deg) scale(1); }
    100% { -webkit-transform: rotate( 0.0deg) scale(1); }
}

.animate-wave {
    animation: wave 2s infinite !important;
    -webkit-animation: wave 2s infinite !important;
    transform-origin: 75% 75%;
    -webkit-transform-origin: 75% 75%;
    display: inline-block;
}

/* --- OVERRIDES: HEADER (MOBILE) --- */
#navbar {
  position: sticky !important;
  top: 0;
  z-index: 50;
  background: rgba(15, 15, 17, 0.75) !important;
  backdrop-filter: blur(20px) !important;
  -webkit-backdrop-filter: blur(20px) !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05) !important;
}

/* --- FIX OVERFLOWING CONTAINERS & TEXT --- */
.container, section > div {
  width: 100% !important;
  max-width: 1280px !important;
  margin-left: auto !important;
  margin-right: auto !important;
  box-sizing: border-box !important;
}

img, video, iframe {
  max-width: 100% !important;
  height: auto;
  object-fit: cover;
  border-radius: 1rem;
}

h1, h2, h3, h4, h5, h6 {
  color: #ffffff;
}

p {
  color: #94a3b8;
}

/* --- GRID & LAYOUT COLLAPSE STRATEGY (Mobile < 768px) --- */
@media (max-width: 767px) {
  /* Force multiple columns into 1 */
  .grid-cols-2:not(#products-grid), 
  .grid-cols-3:not(#products-grid), 
  .grid-cols-4:not(#products-grid), 
  .grid-cols-5:not(#products-grid), 
  .grid-cols-6:not(#products-grid) {
    grid-template-columns: 1fr !important;
  }
  
  /* Make text wrap forcefully to prevent horizontal scroll */
  p, h1, h2, h3, h4, h5, h6 {
    word-break: break-word;
    white-space: normal !important;
  }
  
  /* Ensure padding inside cards is sensible on mobile */
  .p-8, .lg\:p-12 {
     padding: 1.5rem !important; /* ~24px */
  }
}

/* Tablet (768px - 1024px) */
@media (min-width: 768px) and (max-width: 1024px) {
  .grid-cols-3:not(#products-grid), 
  .grid-cols-4:not(#products-grid) {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
}

