:root {
  --color-primary: #1E3A5F;
  --color-secondary: #2D5080;
  --color-accent: #00D9FF;
}

html { 
  scroll-behavior: smooth; 
  scroll-padding-top: 5rem; 
}

body { 
  font-family: 'Outfit', system-ui, sans-serif; 
}

/* Button fixes */
button, .btn, [class*="btn-"], a[href="#order_form"] {
  white-space: nowrap;
  min-width: fit-content;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

form button[type="submit"] {
  white-space: normal;
  width: 100%;
}

/* Animations */
[data-animate] {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

[data-animate].is-visible {
  opacity: 1;
  transform: translateY(0);
}

.rotate-180 { 
  transform: rotate(180deg); 
}

/* Decorative Elements */
.decor-grid-dots {
  background-image: radial-gradient(circle at 1px 1px, rgba(0,0,0,0.15) 1px, transparent 0);
  background-size: 20px 20px;
}

.decor-grid-lines {
  background-image: linear-gradient(rgba(0,0,0,0.1) 1px, transparent 1px),
                    linear-gradient(90deg, rgba(0,0,0,0.1) 1px, transparent 1px);
  background-size: 20px 20px;
}

.decor-diagonal {
  background-image: repeating-linear-gradient(45deg, transparent, transparent 10px, rgba(0,0,0,0.1) 10px, rgba(0,0,0,0.1) 11px);
}

.decor-mesh {
  background: radial-gradient(at 40% 20%, hsla(28,100%,74%,1) 0px, transparent 50%),
              radial-gradient(at 80% 0%, hsla(189,100%,56%,1) 0px, transparent 50%),
              radial-gradient(at 0% 50%, hsla(355,100%,93%,1) 0px, transparent 50%);
}

.decor-gradient-blur::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at 30% 70%, var(--color-accent) 0%, transparent 70%);
  filter: blur(80px);
  opacity: 0.3;
  pointer-events: none;
  z-index: -1;
}

.decor-corner-tr::after {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 200px;
  height: 200px;
  background: linear-gradient(-45deg, var(--color-accent), transparent);
  border-radius: 0 0 0 100%;
  opacity: 0.1;
}

.decor-corner-bl::before {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 200px;
  height: 200px;
  background: linear-gradient(45deg, var(--color-primary), transparent);
  border-radius: 0 100% 0 0;
  opacity: 0.1;
}

.decor-glow-element {
  position: absolute;
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, var(--color-accent) 0%, transparent 70%);
  filter: blur(100px);
  opacity: 0.2;
  pointer-events: none;
  z-index: -1;
}

.decor-rings-svg {
  background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23000' fill-opacity='0.1'%3E%3Ccircle cx='30' cy='30' r='10'/%3E%3Ccircle cx='30' cy='30' r='20'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

.decor-subtle { opacity: 0.05; }
.decor-moderate { opacity: 0.1; }
.decor-bold { opacity: 0.2; }

/* Form Styles */
.form-input {
  @apply w-full px-4 py-3 border border-gray-200 rounded-xl focus:ring-2 focus:ring-accent focus:border-accent transition-all;
}

.form-select {
  @apply w-full px-4 py-3 border border-gray-200 rounded-xl focus:ring-2 focus:ring-accent focus:border-accent transition-all appearance-none bg-white;
}

.form-checkbox {
  @apply w-4 h-4 text-accent border-gray-300 rounded focus:ring-accent;
}

/* Card Styles */
.card-feature {
  @apply bg-white rounded-3xl p-5 shadow-md hover:shadow-xl transition-all duration-300;
}

.card-benefit {
  @apply bg-white rounded-3xl p-5 shadow-md text-center;
}

.card-testimonial {
  @apply bg-gray-50 p-6 rounded-xl;
}

.card-ingredient {
  @apply bg-white rounded-3xl p-5 shadow-md text-center hover:shadow-xl transition-all;
}

/* Product Badge */
.product-badge {
  @apply inline-flex items-center gap-1 px-3 py-1 rounded-full text-sm font-medium;
}

.product-badge.popular {
  @apply bg-orange-100 text-orange-800;
}

.product-badge.bestseller {
  @apply bg-yellow-100 text-yellow-800;
}

.product-badge.new {
  @apply bg-green-100 text-green-800;
}

/* Rating Stars */
.rating-stars {
  @apply flex items-center gap-1;
}

.star {
  @apply w-4 h-4 text-yellow-400;
}

.star.filled {
  @apply text-yellow-400;
}

.star.empty {
  @apply text-gray-300;
}

/* FAQ Accordion */
.faq-item {
  @apply border-b border-gray-200 last:border-b-0;
}

.faq-question {
  @apply w-full py-4 text-left font-medium hover:text-accent transition-colors flex items-center justify-between;
}

.faq-answer {
  @apply pb-4 text-gray-600 text-sm leading-relaxed;
}

/* Stats */
.stat-item {
  @apply text-center;
}

.stat-number {
  @apply text-3xl md:text-4xl font-bold text-primary mb-2;
}

.stat-label {
  @apply text-sm text-gray-600;
}

/* Order Form */
.order-form {
  @apply bg-white rounded-3xl shadow-lg p-6 md:p-8 border;
}

.form-group {
  @apply mb-4;
}

.form-label {
  @apply block text-sm font-medium text-gray-700 mb-2;
}

.form-error {
  @apply text-red-500 text-sm mt-1;
}

.consent-checkbox {
  @apply flex items-start gap-3 text-sm;
}

/* Loading states */
.loading {
  @apply opacity-50 pointer-events-none;
}

.spinner {
  @apply inline-block w-4 h-4 border-2 border-white border-t-transparent rounded-full animate-spin;
}

/* Mobile optimizations */
@media (max-width: 768px) {
  .mobile-stack {
    @apply flex-col;
  }
  
  .mobile-full {
    @apply w-full;
  }
  
  .mobile-center {
    @apply text-center;
  }
}

/* Utility classes */
.text-balance {
  text-wrap: balance;
}

.aspect-square {
  aspect-ratio: 1 / 1;
}

.glass-effect {
  backdrop-filter: blur(10px);
  background: rgba(255, 255, 255, 0.8);
}

/* Security badges */
.security-badge {
  @apply inline-flex items-center gap-2 text-sm text-gray-500 bg-gray-50 px-3 py-2 rounded-lg;
}

/* Payment icons */
.payment-icons {
  @apply flex items-center justify-center gap-3 mt-4 flex-wrap;
}

.payment-icon {
  @apply flex items-center gap-1 px-2 py-1 bg-gray-100 rounded text-xs;
}