/* ============================================
   DentAlign - FIX STYLES
   Glassmorphism cards, grid layouts, animations
   ============================================ */

/* ========== FORCE GRID LAYOUTS ========== */

/* Tools Grid - 4 columns */
.retouch-tools-grid,
.tools-grid {
  display: grid !important;
  grid-template-columns: repeat(4, 1fr) !important;
  gap: 1.5rem !important;
}

/* Overlays Grid - 3 columns centered */
.retouch-overlays-grid {
  display: grid !important;
  grid-template-columns: repeat(3, 1fr) !important;
  gap: 1.5rem !important;
  max-width: 600px !important;
  margin: 0 auto !important;
}

/* Collages Categories - 3 columns */
.collages-category-grid {
  display: grid !important;
  grid-template-columns: repeat(3, 1fr) !important;
  gap: 1.5rem !important;
}

/* Studio Cards - 3 columns */
.studio-cards-grid {
  display: grid !important;
  grid-template-columns: repeat(3, 1fr) !important;
  gap: 1.5rem !important;
}

/* Why Benefits - keep vertical but compact */
.why-benefits {
  display: grid !important;
  grid-template-columns: repeat(3, 1fr) !important;
  gap: 1.5rem !important;
}

/* ========== GLASSMORPHISM CARDS ========== */

/* Tool Card */
.tool-card {
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  padding: 1.5rem !important;
  background: linear-gradient(135deg, rgba(0, 179, 198, 0.1) 0%, rgba(255, 255, 255, 0.05) 50%, rgba(0, 179, 198, 0.05) 100%) !important;
  backdrop-filter: blur(20px) !important;
  -webkit-backdrop-filter: blur(20px) !important;
  border: 1px solid rgba(0, 179, 198, 0.2) !important;
  border-radius: 1rem !important;
  text-align: center !important;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1) !important;
  position: relative !important;
  overflow: hidden !important;
}

.tool-card::before {
  content: '' !important;
  position: absolute !important;
  top: 0 !important;
  left: -100% !important;
  width: 100% !important;
  height: 100% !important;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.15), transparent) !important;
  transition: left 0.6s ease !important;
}

.tool-card:hover {
  transform: translateY(-8px) scale(1.02) !important;
  border-color: rgba(0, 179, 198, 0.5) !important;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4), 0 0 40px rgba(0, 179, 198, 0.3) !important;
}

.tool-card:hover::before {
  left: 100% !important;
}

.tool-icon {
  width: 64px !important;
  height: 64px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  margin-bottom: 1rem !important;
}

.tool-icon img {
  width: 48px !important;
  height: 48px !important;
  object-fit: contain !important;
  transition: transform 0.4s ease !important;
}

.tool-card:hover .tool-icon img {
  transform: scale(1.2) !important;
  filter: drop-shadow(0 8px 16px rgba(0, 179, 198, 0.5)) !important;
}

.tool-name {
  font-size: 0.875rem !important;
  font-weight: 500 !important;
  color: #E0E7EE !important;
}

/* Collage Category Card */
.collage-category {
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  text-align: center !important;
  padding: 1.5rem !important;
  background: linear-gradient(135deg, rgba(0, 179, 198, 0.1) 0%, rgba(255, 255, 255, 0.05) 50%, rgba(0, 179, 198, 0.05) 100%) !important;
  backdrop-filter: blur(20px) !important;
  -webkit-backdrop-filter: blur(20px) !important;
  border: 1px solid rgba(0, 179, 198, 0.2) !important;
  border-radius: 1rem !important;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1) !important;
  position: relative !important;
  overflow: hidden !important;
}

.collage-category::before {
  content: '' !important;
  position: absolute !important;
  top: 0 !important;
  left: -100% !important;
  width: 100% !important;
  height: 100% !important;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.15), transparent) !important;
  transition: left 0.6s ease !important;
}

.collage-category:hover {
  transform: translateY(-8px) !important;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4), 0 0 30px rgba(0, 179, 198, 0.2) !important;
}

.collage-category:hover::before {
  left: 100% !important;
}

.collage-category-icon {
  width: 56px !important;
  height: 56px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  background: rgba(0, 179, 198, 0.15) !important;
  border: 1px solid rgba(0, 179, 198, 0.2) !important;
  border-radius: 0.75rem !important;
  color: #00B3C6 !important;
  margin-bottom: 1rem !important;
  transition: all 0.3s ease !important;
}

.collage-category:hover .collage-category-icon {
  transform: scale(1.1) !important;
  box-shadow: 0 0 20px rgba(0, 179, 198, 0.4) !important;
}

.collage-category-icon svg {
  width: 28px !important;
  height: 28px !important;
}

.collage-category h4 {
  font-size: 1rem !important;
  font-weight: 600 !important;
  color: #E0E7EE !important;
  margin-bottom: 0.5rem !important;
}

.collage-category p {
  font-size: 0.875rem !important;
  color: #94A3B8 !important;
  margin-bottom: 0.75rem !important;
}

.collage-count {
  font-size: 0.75rem !important;
  color: #00B3C6 !important;
  font-weight: 500 !important;
}

/* Studio Card */
.studio-card,
.studio-extra {
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  text-align: center !important;
  padding: 1.5rem !important;
  background: linear-gradient(135deg, rgba(0, 179, 198, 0.1) 0%, rgba(255, 255, 255, 0.05) 50%, rgba(0, 179, 198, 0.05) 100%) !important;
  backdrop-filter: blur(20px) !important;
  -webkit-backdrop-filter: blur(20px) !important;
  border: 1px solid rgba(0, 179, 198, 0.2) !important;
  border-radius: 1rem !important;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1) !important;
  position: relative !important;
  overflow: hidden !important;
}

.studio-card::before,
.studio-extra::before {
  content: '' !important;
  position: absolute !important;
  top: 0 !important;
  left: -100% !important;
  width: 100% !important;
  height: 100% !important;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.15), transparent) !important;
  transition: left 0.6s ease !important;
}

.studio-card:hover,
.studio-extra:hover {
  transform: translateY(-8px) !important;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4), 0 0 30px rgba(0, 179, 198, 0.2) !important;
}

.studio-card:hover::before,
.studio-extra:hover::before {
  left: 100% !important;
}

.studio-card-icon,
.studio-extra-icon {
  width: 56px !important;
  height: 56px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  background: rgba(0, 179, 198, 0.15) !important;
  border: 1px solid rgba(0, 179, 198, 0.2) !important;
  border-radius: 0.75rem !important;
  color: #00B3C6 !important;
  margin-bottom: 1rem !important;
  transition: all 0.3s ease !important;
}

.studio-card:hover .studio-card-icon,
.studio-extra:hover .studio-extra-icon {
  transform: scale(1.1) !important;
  box-shadow: 0 0 20px rgba(0, 179, 198, 0.4) !important;
}

.studio-card-icon img,
.studio-extra-icon img {
  width: 32px !important;
  height: 32px !important;
}

.studio-card-icon svg,
.studio-extra-icon svg {
  width: 28px !important;
  height: 28px !important;
}

.studio-card h4,
.studio-extra h4 {
  font-size: 1rem !important;
  font-weight: 600 !important;
  color: #E0E7EE !important;
  margin-bottom: 0.5rem !important;
}

.studio-card p,
.studio-extra p {
  font-size: 0.875rem !important;
  color: #94A3B8 !important;
}

/* Why Benefit Card */
.why-benefit {
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  text-align: center !important;
  padding: 1.5rem !important;
  background: linear-gradient(135deg, rgba(0, 179, 198, 0.1) 0%, rgba(255, 255, 255, 0.05) 50%, rgba(0, 179, 198, 0.05) 100%) !important;
  backdrop-filter: blur(20px) !important;
  -webkit-backdrop-filter: blur(20px) !important;
  border: 1px solid rgba(0, 179, 198, 0.2) !important;
  border-radius: 1rem !important;
  transition: all 0.4s ease !important;
}

.why-benefit:hover {
  transform: translateY(-8px) !important;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3) !important;
}

.why-benefit-icon {
  width: 64px !important;
  height: 64px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  background: rgba(0, 179, 198, 0.15) !important;
  border: 1px solid rgba(0, 179, 198, 0.2) !important;
  border-radius: 1rem !important;
  color: #00B3C6 !important;
  margin-bottom: 1rem !important;
}

.why-benefit-icon svg {
  width: 32px !important;
  height: 32px !important;
}

.why-benefit-content {
  text-align: center !important;
}

.why-benefit-content h3 {
  font-size: 1.125rem !important;
  font-weight: 700 !important;
  color: #E0E7EE !important;
  margin-bottom: 0.5rem !important;
}

.why-benefit-content p {
  font-size: 0.875rem !important;
  color: #94A3B8 !important;
}

/* Alignment Features Grid */
.alignment-features {
  display: grid !important;
  grid-template-columns: repeat(2, 1fr) !important;
  gap: 1rem !important;
}

.alignment-feature {
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  text-align: center !important;
  padding: 1.25rem !important;
  background: linear-gradient(135deg, rgba(0, 179, 198, 0.1) 0%, rgba(255, 255, 255, 0.05) 50%, rgba(0, 179, 198, 0.05) 100%) !important;
  backdrop-filter: blur(20px) !important;
  -webkit-backdrop-filter: blur(20px) !important;
  border: 1px solid rgba(0, 179, 198, 0.2) !important;
  border-radius: 1rem !important;
  transition: all 0.4s ease !important;
}

.alignment-feature:hover {
  transform: translateY(-4px) !important;
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.3) !important;
}

.alignment-feature-icon {
  width: 48px !important;
  height: 48px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  background: rgba(0, 179, 198, 0.15) !important;
  border: 1px solid rgba(0, 179, 198, 0.2) !important;
  border-radius: 0.75rem !important;
  color: #00B3C6 !important;
  margin-bottom: 0.75rem !important;
}

.alignment-feature-icon svg {
  width: 24px !important;
  height: 24px !important;
}

.alignment-feature-text h4 {
  font-size: 0.875rem !important;
  font-weight: 600 !important;
  color: #E0E7EE !important;
  margin-bottom: 0.25rem !important;
}

.alignment-feature-text p {
  font-size: 0.75rem !important;
  color: #94A3B8 !important;
}

/* Mode Cards Grid */
.modes-grid {
  display: grid !important;
  grid-template-columns: repeat(3, 1fr) !important;
  gap: 1.5rem !important;
}

.mode-card {
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  text-align: center !important;
  padding: 1.5rem !important;
  background: linear-gradient(135deg, rgba(0, 179, 198, 0.1) 0%, rgba(255, 255, 255, 0.05) 50%, rgba(0, 179, 198, 0.05) 100%) !important;
  backdrop-filter: blur(20px) !important;
  -webkit-backdrop-filter: blur(20px) !important;
  border: 1px solid rgba(0, 179, 198, 0.2) !important;
  border-radius: 1rem !important;
  transition: all 0.4s ease !important;
}

.mode-card:hover {
  transform: translateY(-8px) !important;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3) !important;
}

/* Stats Grid */
.why-stats {
  display: grid !important;
  grid-template-columns: repeat(4, 1fr) !important;
  gap: 1.5rem !important;
  padding: 2rem !important;
  background: linear-gradient(135deg, rgba(0, 179, 198, 0.1), rgba(0, 0, 0, 0.1)) !important;
  backdrop-filter: blur(20px) !important;
  border: 1px solid rgba(0, 179, 198, 0.2) !important;
  border-radius: 1.5rem !important;
}

/* Pricing Grid - 4 columns */
.pricing-grid {
  display: grid !important;
  grid-template-columns: repeat(4, 1fr) !important;
  gap: 1.25rem !important;
}

.pricing-card {
  padding: 1.5rem !important;
}

/* Platforms Grid */
.why-platforms-grid {
  display: flex !important;
  justify-content: center !important;
  gap: 1.5rem !important;
}

.why-platform {
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  gap: 0.5rem !important;
  padding: 1rem 1.5rem !important;
  background: rgba(0, 0, 0, 0.2) !important;
  border: 1px solid rgba(0, 179, 198, 0.15) !important;
  border-radius: 1rem !important;
}

/* ========== RESPONSIVE ========== */
@media (max-width: 1024px) {
  .retouch-tools-grid,
  .tools-grid {
    grid-template-columns: repeat(3, 1fr) !important;
  }
  
  .why-benefits {
    grid-template-columns: repeat(2, 1fr) !important;
  }
  
  .why-stats {
    grid-template-columns: repeat(2, 1fr) !important;
  }
}

@media (max-width: 768px) {
  .retouch-tools-grid,
  .tools-grid {
    grid-template-columns: repeat(2, 1fr) !important;
  }
  
  .collages-category-grid,
  .studio-cards-grid {
    grid-template-columns: repeat(2, 1fr) !important;
  }
  
  .modes-grid {
    grid-template-columns: 1fr !important;
  }
  
  .why-benefits {
    grid-template-columns: 1fr !important;
  }
  
  .alignment-features {
    grid-template-columns: 1fr !important;
  }
}

/* ========== VIDEO STYLES ========== */

/* Mode card videos */
.mode-card-video video {
  width: 100%;
  height: auto;
  border-radius: 0.5rem;
  object-fit: cover;
}

/* Alignment section video */
.alignment-video {
  width: 100%;
  height: auto;
  border-radius: 1rem;
  object-fit: cover;
}

/* Retouch AI card videos */
.retouch-ai-video {
  width: 100%;
  height: 100%;
  min-height: 200px;
  object-fit: cover;
  border-radius: 0.75rem;
}

/* Patient card video */
.patient-card-video {
  width: 100%;
  height: auto;
  border-radius: 1rem;
  object-fit: cover;
}

/* ========== WAITLIST MODAL ========== */
.modal-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(10px);
  z-index: 10000;
  justify-content: center;
  align-items: center;
}

.modal-overlay.is-active {
  display: flex;
}

.modal-content {
  background: linear-gradient(135deg, rgba(0, 79, 124, 0.9) 0%, rgba(0, 40, 60, 0.95) 100%);
  border: 1px solid rgba(0, 179, 198, 0.3);
  border-radius: 1.5rem;
  padding: 3rem;
  max-width: 450px;
  width: 90%;
  text-align: center;
  position: relative;
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.5);
}

.modal-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: none;
  border: none;
  color: rgba(255, 255, 255, 0.6);
  font-size: 2rem;
  cursor: pointer;
  line-height: 1;
  transition: color 0.3s;
}

.modal-close:hover {
  color: #fff;
}

.modal-icon {
  margin-bottom: 1.5rem;
}

.modal-content h3 {
  font-size: 1.75rem;
  margin-bottom: 0.75rem;
  color: #fff;
}

.modal-content > p {
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 1.5rem;
  line-height: 1.6;
}

.waitlist-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.waitlist-input {
  padding: 1rem 1.25rem;
  border: 1px solid rgba(0, 179, 198, 0.3);
  border-radius: 0.5rem;
  background: rgba(0, 0, 0, 0.3);
  color: #fff;
  font-size: 1rem;
  outline: none;
  transition: border-color 0.3s;
}

.waitlist-input:focus {
  border-color: var(--primary);
}

.waitlist-input::placeholder {
  color: rgba(255, 255, 255, 0.4);
}

.waitlist-btn {
  padding: 1rem 2rem;
  font-size: 1rem;
  width: 100%;
}

.modal-note {
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.4);
  margin-top: 1rem;
  margin-bottom: 0;
}
