/* ==============================================
   GLASSMORPHISM & MODERN UI STYLES
   KiuMaestro - GOD MODE
   ============================================== */

/* ============= GLASSMORPHISM CARDS ============= */
.maestro-card-glass {
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.15);
  transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
  overflow: hidden;
  position: relative;
  height: 100%;
}

.maestro-card-glass::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.4),
    transparent
  );
  transition: left 0.5s;
}

.maestro-card-glass:hover {
  transform: translateY(-10px) scale(1.02);
  box-shadow: 0 15px 45px 0 rgba(31, 38, 135, 0.25);
  border-color: rgba(255, 107, 53, 0.5);
}

.maestro-card-glass:hover::before {
  left: 100%;
}

.card-glass-inner {
  padding: 2rem;
  position: relative;
  z-index: 1;
}

/* Avatar Glass */
.maestro-avatar-glass {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  object-fit: cover;
  border: 4px solid rgba(255, 255, 255, 0.6);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
  transition: all 0.3s ease;
  display: inline-block;
}

.maestro-avatar-glass:hover {
  transform: scale(1.1) rotate(5deg);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.25);
}

.maestro-avatar-placeholder {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Badge Verificado Glass */
.badge-verificado {
  position: absolute;
  top: 15px;
  right: 15px;
  background: rgba(37, 99, 235, 0.9);
  backdrop-filter: blur(5px);
  color: white;
  padding: 0.4rem 0.8rem;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 0.3rem;
  box-shadow: 0 4px 15px rgba(37, 99, 235, 0.4);
  animation: pulse-badge 2s infinite;
}

@keyframes pulse-badge {
  0%, 100% {
    box-shadow: 0 4px 15px rgba(37, 99, 235, 0.4);
  }
  50% {
    box-shadow: 0 4px 25px rgba(37, 99, 235, 0.7);
  }
}

/* Rating Stars */
.rating-stars {
  font-size: 1rem;
}

.rating-stars i {
  transition: transform 0.2s ease;
}

.rating-stars:hover i {
  transform: scale(1.1);
}

/* Badge Habilidades Glass */
.bg-primary-glass {
  background: rgba(37, 99, 235, 0.2) !important;
  backdrop-filter: blur(5px);
  color: #1e40af !important;
  border: 1px solid rgba(37, 99, 235, 0.3);
  padding: 0.5rem 1rem;
  font-weight: 600;
  transition: all 0.3s ease;
}

.bg-primary-glass:hover {
  background: rgba(37, 99, 235, 0.4) !important;
  transform: translateY(-2px);
}

/* Stats Glass */
.stats-glass {
  display: flex;
  justify-content: space-around;
  gap: 1rem;
  padding: 1rem;
  background: rgba(249, 250, 251, 0.5);
  backdrop-filter: blur(5px);
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.3);
}

.stat-item-glass {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.3rem;
  font-size: 0.875rem;
}

.stat-item-glass i {
  font-size: 1.5rem;
}

/* Botones Glass */
.btn-glass-primary {
  background: rgba(37, 99, 235, 0.15);
  backdrop-filter: blur(10px);
  color: #1e40af;
  border: 2px solid rgba(37, 99, 235, 0.3);
  font-weight: 600;
  padding: 0.75rem 1.5rem;
  border-radius: 12px;
  transition: all 0.3s ease;
}

.btn-glass-primary:hover {
  background: rgba(37, 99, 235, 0.3);
  color: white;
  border-color: rgba(37, 99, 235, 0.6);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(37, 99, 235, 0.3);
}

.btn-glass-success {
  background: rgba(22, 163, 74, 0.15);
  backdrop-filter: blur(10px);
  color: #15803d;
  border: 2px solid rgba(22, 163, 74, 0.3);
  font-weight: 600;
  padding: 0.75rem 1.5rem;
  border-radius: 12px;
  transition: all 0.3s ease;
}

.btn-glass-success:hover {
  background: rgba(22, 163, 74, 0.9);
  color: white;
  border-color: rgba(22, 163, 74, 0.6);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(22, 163, 74, 0.3);
}

/* Bio Truncate */
.bio-truncate {
  line-height: 1.6;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* ============= SKELETON LOADERS ============= */
.skeleton-card-glass {
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(10px);
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  padding: 2rem;
  height: 100%;
}

.skeleton-shimmer {
  background: linear-gradient(
    90deg,
    rgba(229, 231, 235, 0.5) 0%,
    rgba(229, 231, 235, 0.8) 50%,
    rgba(229, 231, 235, 0.5) 100%
  );
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
  border-radius: 8px;
}

@keyframes shimmer {
  0% {
    background-position: -200% 0;
  }
  100% {
    background-position: 200% 0;
  }
}

.skeleton-avatar {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  margin: 0 auto;
}

.skeleton-line {
  height: 16px;
  border-radius: 8px;
}

.skeleton-badge {
  width: 80px;
  height: 28px;
  border-radius: 20px;
}

.skeleton-button {
  width: 100%;
  height: 45px;
  border-radius: 12px;
}

/* ============= SEARCH BOX GLASS ============= */
.search-box-htmx {
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(20px);
  border: 2px solid rgba(255, 255, 255, 0.5);
  border-radius: 20px;
  box-shadow: 0 15px 50px rgba(0, 0, 0, 0.15);
}

/* ============= SERVICIOS HERO ============= */
.servicios-hero {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  position: relative;
  overflow: hidden;
}

.servicios-hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('data:image/svg+xml,<svg width="100" height="100" xmlns="http://www.w3.org/2000/svg"><circle fill="white" fill-opacity="0.05" cx="50" cy="50" r="40"/></svg>');
  opacity: 0.3;
}

.servicios-hero .container {
  position: relative;
  z-index: 1;
}

.bg-gradient {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

/* ============= HTMX INDICATORS ============= */
.htmx-indicator {
  display: none;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.htmx-request .htmx-indicator {
  display: block;
  opacity: 1;
}

.htmx-request.htmx-indicator {
  display: inline-block;
  opacity: 1;
}

.htmx-swapping {
  opacity: 0;
  transition: opacity 0.3s ease;
}

.htmx-settling {
  opacity: 1;
  transition: opacity 0.3s ease;
}

/* Loading pulse animation */
@keyframes pulse-loading {
  0%, 100% {
    opacity: 1;
  }
  50% {
    opacity: 0.5;
  }
}

.htmx-request {
  animation: pulse-loading 1s ease-in-out infinite;
}

/* ============= CONTENT SEO ============= */
.content-seo {
  line-height: 1.8;
  color: #374151;
}

.content-seo h3 {
  color: #1f2937;
  margin-top: 2rem;
  margin-bottom: 1rem;
  font-weight: 700;
}

.content-seo ul, .content-seo ol {
  margin-left: 1.5rem;
}

/* ============= BREADCRUMB GLASS ============= */
.breadcrumb {
  background: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(10px);
  padding: 0.75rem 1.5rem;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.3);
}

.breadcrumb-item a {
  color: white;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s ease;
}

.breadcrumb-item a:hover {
  color: rgba(255, 255, 255, 0.8);
  transform: translateX(3px);
}

.breadcrumb-item.active {
  color: rgba(255, 255, 255, 0.9);
  font-weight: 600;
}

.breadcrumb-item + .breadcrumb-item::before {
  color: rgba(255, 255, 255, 0.6);
}

/* ============= RESPONSIVE GLASSMORPHISM ============= */
@media (max-width: 768px) {
  .maestro-card-glass {
    margin-bottom: 1.5rem;
  }

  .card-glass-inner {
    padding: 1.5rem;
  }

  .maestro-avatar-glass {
    width: 100px;
    height: 100px;
  }

  .stats-glass {
    flex-direction: column;
    gap: 0.5rem;
  }

  .search-box-htmx {
    padding: 1.5rem !important;
  }

  .servicios-hero h1 {
    font-size: 2rem !important;
  }
}

/* ==========================================================================
   AUTHENTICATION PAGES - MODERN GLASSMORPHISM
   ========================================================================== */

/* Auth Hero Modern */
.auth-hero-modern {
    background: linear-gradient(135deg, 
        rgba(10, 35, 48, 0.95) 0%, 
        rgba(0, 188, 212, 0.3) 50%, 
        rgba(41, 98, 255, 0.25) 100%);
    background-attachment: fixed;
    background-position: center;
    background-size: cover;
    padding: 4rem 0 2rem;
    position: relative;
    overflow: hidden;
}

.auth-hero-modern::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 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='%2300BCD4' fill-opacity='0.08'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    opacity: 0.4;
}

.auth-icon-badge {
    width: 70px;
    height: 70px;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 2px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    margin-bottom: 1rem;
}

.auth-icon-badge i {
    font-size: 2rem;
    color: white;
}

.auth-logo-badge {
    width: 90px;
    height: 90px;
    background: rgba(18, 45, 60, 0.7);
    backdrop-filter: blur(15px);
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 2px solid rgba(0, 188, 212, 0.5);
    box-shadow: 0 8px 32px rgba(0, 188, 212, 0.3), 0 0 40px rgba(0, 188, 212, 0.2);
    margin-bottom: 1rem;
    padding: 1rem;
}

.auth-logo-badge img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    filter: drop-shadow(0 0 8px rgba(0, 188, 212, 0.4));
}

/* Auth Card Glass */
.auth-card-glass {
    background: rgba(18, 45, 60, 0.85);
    backdrop-filter: blur(20px);
    border-radius: 24px;
    padding: 3rem;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4), 0 0 40px rgba(0, 188, 212, 0.1);
    border: 1px solid rgba(0, 188, 212, 0.3);
    transition: all 0.3s ease;
}

.auth-card-body {
    padding: 2rem;
}

/* Form Glass Inputs */
.form-glass {
    position: relative;
}

.form-glass .form-control,
.form-glass .form-select {
    background: rgba(10, 35, 48, 0.6);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(0, 188, 212, 0.3);
    border-radius: 12px;
    padding: 1rem 1.25rem;
    font-size: 0.95rem;
    color: #FFFFFF;
    transition: all 0.3s ease;
}

.form-glass .form-control::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

.form-glass .form-control:focus,
.form-glass .form-select:focus {
    background: rgba(10, 35, 48, 0.8);
    border-color: var(--km-accent-cyan);
    box-shadow: 0 4px 20px rgba(0, 188, 212, 0.3);
    transform: translateY(-2px);
    color: #FFFFFF;
}

.form-glass label {
    color: #B0C4CE;
    font-weight: 500;
    transition: all 0.3s ease;
}

.form-glass .form-control:focus ~ label,
.form-glass .form-select:focus ~ label {
    color: var(--km-accent-cyan);
}

/* User Type Selector Modern */
.user-type-selector-modern {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
}

.user-type-option-modern {
    position: relative;
    flex: 1;
}

.user-type-option-modern input[type="radio"] {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.user-type-label-modern {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 1.5rem 1rem;
    background: rgba(10, 35, 48, 0.6);
    backdrop-filter: blur(10px);
    border: 2px solid rgba(0, 188, 212, 0.3);
    border-radius: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
    color: #B0C4CE;
}

.user-type-label-modern:hover {
    background: rgba(10, 35, 48, 0.8);
    border-color: var(--km-accent-cyan);
    box-shadow: 0 8px 24px rgba(0, 188, 212, 0.2);
    transform: translateY(-4px);
}

.user-type-option-modern input[type="radio"]:checked + .user-type-label-modern {
    background: var(--km-gradient-action);
    border-color: var(--km-accent-cyan);
    color: white;
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(0, 188, 212, 0.4);
}

.user-type-label-modern i {
    font-size: 2rem;
    margin-bottom: 0.5rem;
    transition: transform 0.3s ease;
}

.user-type-option-modern input[type="radio"]:checked + .user-type-label-modern i {
    transform: scale(1.2);
}

.user-type-label-modern strong {
    display: block;
    font-size: 1.1rem;
    margin-bottom: 0.25rem;
}

.user-type-label-modern .small {
    opacity: 0.9;
}

/* Auth Section Title */
.auth-section-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: #FFFFFF;
    margin-bottom: 1.5rem;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid rgba(0, 188, 212, 0.3);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.auth-section-title i {
    color: var(--km-accent-cyan);
}

/* Maestro Fields Divider */
.maestro-fields-divider {
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(0, 188, 212, 0.4), transparent);
    margin: 2rem 0;
}

/* Alert Glass Variants */
.alert-glass {
    background: rgba(0, 188, 212, 0.15);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(0, 188, 212, 0.4);
    border-radius: 12px;
    color: #FFFFFF;
}

.alert-info-glass {
    background: rgba(0, 188, 212, 0.15);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(0, 188, 212, 0.4);
    border-radius: 12px;
    color: var(--km-accent-cyan);
}

.alert-info-glass strong {
    color: #FFFFFF;
}

/* Auth Footer Glass */
.auth-footer-glass {
    padding-top: 1rem;
    border-top: 1px solid rgba(0, 188, 212, 0.3);
}

.link-glass {
    color: var(--km-accent-cyan);
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    position: relative;
}

.link-glass::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--km-gradient-action);
    transition: width 0.3s ease;
}

.link-glass:hover {
    color: var(--km-accent-blue);
}

.link-glass:hover::after {
    width: 100%;
}

/* Trust Badge Glass */
.trust-badge-glass {
    background: rgba(10, 35, 48, 0.6);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(0, 188, 212, 0.3);
    border-radius: 12px;
    padding: 1.25rem;
    text-align: center;
    transition: all 0.3s ease;
}

.trust-badge-glass:hover {
    background: rgba(10, 35, 48, 0.8);
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 188, 212, 0.2);
}

.trust-badge-glass i {
    display: block;
    margin-bottom: 0.5rem;
}

.trust-badge-glass .small {
    color: #B0C4CE;
    font-weight: 500;
}

/* Button Glass Primary (Auth) */
.btn-glass-primary {
    background: var(--km-gradient-action);
    border: none;
    color: white;
    border-radius: 12px;
    padding: 0.875rem 2rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 188, 212, 0.4);
    position: relative;
    overflow: hidden;
}

.btn-glass-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.5s ease;
}

.btn-glass-primary:hover::before {
    left: 100%;
}

.btn-glass-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 28px rgba(0, 188, 212, 0.5);
    color: white;
}

.btn-glass-primary:active {
    transform: translateY(0);
}

/* Responsive Adjustments for Auth Pages */
@media (max-width: 768px) {
    .auth-hero-modern {
        padding: 3rem 0 1.5rem;
    }

    .auth-card-glass {
        padding: 2rem 1.5rem;
        border-radius: 20px;
    }

    .auth-icon-badge {
        width: 60px;
        height: 60px;
    }

    .auth-icon-badge i {
        font-size: 1.75rem;
    }

    .user-type-selector-modern {
        flex-direction: column;
    }

    .user-type-label-modern {
        padding: 1.25rem 1rem;
    }
}

/* ============= PERFORMANCE OPTIMIZATIONS ============= */
/* Reduce motion for accessibility */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* ==========================================================================
   MERCADO LIBRE PRODUCT CARDS - GLASSMORPHISM
   ========================================================================== */

/* Product Card Container */
.product-card-ml {
    position: relative;
    margin-bottom: 2rem;
    animation: fadeInUp 0.5s ease;
}

.product-card-ml-inner {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.8);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.product-card-ml-inner:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
}

/* KiuMaestro Badge */
.kiu-badge-ml {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: linear-gradient(135deg, #FFE600 0%, #FFC300 100%);
    color: #333;
    padding: 0.5rem 1rem;
    border-radius: 25px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 15px rgba(255, 230, 0, 0.4);
    z-index: 10;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.kiu-badge-ml i {
    font-size: 0.9rem;
}

/* Product Image */
.product-image-container-ml {
    width: 100%;
    height: 280px;
    background: white;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    position: relative;
}

.product-image-ml {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 1.5rem;
    transition: transform 0.3s ease;
}

.product-card-ml-inner:hover .product-image-ml {
    transform: scale(1.05);
}

.product-no-image-ml {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    color: #999;
}

.product-no-image-ml i {
    font-size: 3rem;
}

/* Product Content */
.product-content-ml {
    padding: 1.5rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.product-category-ml {
    color: #3483fa;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.product-title-ml {
    font-size: 1.1rem;
    font-weight: 600;
    color: #333;
    margin-bottom: 0.75rem;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 2.8em;
}

.product-description-ml {
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 1rem;
    line-height: 1.5;
    flex: 1;
}

/* Price Section */
.product-price-section-ml {
    margin-bottom: 1.25rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(0, 0, 0, 0.08);
}

.product-price-ml {
    display: flex;
    align-items: baseline;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
}

.product-price-ml .price-value {
    font-size: 2rem;
    font-weight: 700;
    color: #00a650;
}

.product-price-ml .price-currency {
    font-size: 1rem;
    font-weight: 600;
    color: #666;
}

.product-stock-ml {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    color: #00a650;
    font-weight: 500;
}

.product-unavailable-ml {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    color: #dc3545;
    font-weight: 500;
}

/* Buy Button */
.btn-ml-primary {
    background: linear-gradient(135deg, #3483fa 0%, #2968c8 100%);
    border: none;
    color: white;
    border-radius: 8px;
    padding: 0.875rem 1.5rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(52, 131, 250, 0.3);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
}

.btn-ml-primary:hover {
    background: linear-gradient(135deg, #2968c8 0%, #1f5bb3 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(52, 131, 250, 0.4);
    color: white;
}

.btn-ml-primary:active {
    transform: translateY(0);
}

/* Product Footer */
.product-footer-ml {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
}

.product-footer-ml small {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* Product Grid Layout */
.products-grid-ml {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
    margin: 2rem 0;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .products-grid-ml {
        grid-template-columns: 1fr;
    }

    .product-image-container-ml {
        height: 220px;
    }

    .product-title-ml {
        font-size: 1rem;
    }

    .product-price-ml .price-value {
        font-size: 1.75rem;
    }

    .kiu-badge-ml {
        top: 0.5rem;
        right: 0.5rem;
        font-size: 0.7rem;
        padding: 0.4rem 0.8rem;
    }
}

/* ============= PRINT STYLES ============= */
@media print {
  .maestro-card-glass,
  .search-box-htmx {
    background: white;
    backdrop-filter: none;
    border: 1px solid #e5e7eb;
  }
}
