:root {
  --color-primary: #1A1625;
  --color-secondary: #2E2540;
  --color-accent: #7C3AED;
}

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

body { 
  font-family: 'Urbanist', 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: translateX(32px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

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

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

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

.decor-grid-lines {
  background-image: linear-gradient(rgba(124, 58, 237, 0.05) 1px, transparent 1px),
                    linear-gradient(90deg, rgba(124, 58, 237, 0.05) 1px, transparent 1px);
  background-size: 24px 24px;
}

.decor-diagonal {
  background-image: repeating-linear-gradient(
    45deg,
    rgba(124, 58, 237, 0.03),
    rgba(124, 58, 237, 0.03) 2px,
    transparent 2px,
    transparent 12px
  );
}

.decor-mesh {
  background: radial-gradient(ellipse at top, rgba(124, 58, 237, 0.1), transparent 50%),
              radial-gradient(ellipse at bottom, rgba(26, 22, 37, 0.1), transparent 50%);
}

.decor-gradient-blur::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(circle at 30% 20%, rgba(124, 58, 237, 0.2), transparent 50%),
              radial-gradient(circle at 70% 80%, rgba(26, 22, 37, 0.15), transparent 50%);
  filter: blur(40px);
  pointer-events: none;
}

.decor-corner-tr::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 100px;
  height: 100px;
  background: linear-gradient(-45deg, rgba(124, 58, 237, 0.1), transparent);
}

.decor-corner-bl::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100px;
  height: 100px;
  background: linear-gradient(45deg, rgba(124, 58, 237, 0.1), transparent);
}

.decor-glow-element {
  box-shadow: 0 0 60px rgba(124, 58, 237, 0.3);
}

.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='%237C3AED' fill-opacity='0.05'%3E%3Ccircle cx='30' cy='30' r='20'/%3E%3Ccircle cx='30' cy='30' r='10'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  background-size: 60px 60px;
}

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

/* Custom Gradients */
.gradient-primary {
  background: linear-gradient(135deg, var(--color-primary), var(--color-secondary));
}

.gradient-accent {
  background: linear-gradient(135deg, var(--color-accent), #9333ea);
}

/* Card Shadows */
.card-shadow {
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

.card-shadow-lg {
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}

/* Star Rating */
.star-rating {
  display: inline-flex;
  align-items: center;
  gap: 2px;
}

.star-rating .star {
  width: 16px;
  height: 16px;
  color: #fbbf24;
}

.star-rating .star.empty {
  color: #d1d5db;
}

/* Loading States */
.loading {
  position: relative;
  overflow: hidden;
}

.loading::after {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
  animation: loading 1.5s infinite;
}

@keyframes loading {
  0% { transform: translateX(-100%); }
  100% { transform: translateX(100%); }
}

/* Form Enhancements */
.form-group {
  position: relative;
}

.form-floating-label {
  position: absolute;
  left: 12px;
  top: 12px;
  color: #6b7280;
  transition: all 0.2s ease;
  pointer-events: none;
  background: white;
  padding: 0 4px;
}

.form-floating-label.active {
  top: -8px;
  font-size: 0.75rem;
  color: var(--color-accent);
}

.form-input:focus + .form-floating-label,
.form-input:not(:placeholder-shown) + .form-floating-label {
  top: -8px;
  font-size: 0.75rem;
  color: var(--color-accent);
}