/* ==========================================================================
   AVIVET ANIMAL HEALTH - PREMIUM ENHANCEMENTS
   High-End Glassmorphism, Micro-Interactions, and Polished Visual Accents
   ========================================================================== */

/* Modern Glass Card Layer */
.glass-premium {
  background: rgba(255, 255, 255, 0.75);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.5);
  box-shadow: 0 10px 30px -5px rgba(3, 43, 32, 0.08);
}

[data-theme="dark"] .glass-premium {
  background: rgba(14, 36, 29, 0.7);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 10px 30px -5px rgba(0, 0, 0, 0.5);
}

/* Subtle Gradient Glow Borders */
.gradient-border-card {
  position: relative;
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  padding: 1px;
}

.gradient-border-card::before {
  content: '';
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.4), rgba(6, 182, 212, 0.2), rgba(245, 158, 11, 0.3));
  z-index: -1;
  opacity: 0.7;
  transition: opacity var(--trans-base);
}

.gradient-border-card:hover::before {
  opacity: 1;
}

/* Clean Request & Product Modals */
.request-modal, .image-modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgba(3, 20, 15, 0.75);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.request-modal.open, .image-modal.open {
  display: flex;
  animation: modal-fade 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes modal-fade {
  from { opacity: 0; transform: scale(0.96); }
  to { opacity: 1; transform: scale(1); }
}

.request-modal-box {
  position: relative;
  width: min(520px, 100%);
  padding: 36px;
  border-radius: var(--radius-lg);
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-xl);
}

.request-modal-box h2 {
  margin-top: 10px;
  margin-bottom: 8px;
  color: var(--text-heading);
}

.request-product {
  margin-bottom: 24px;
  color: var(--emerald);
  font-weight: 700;
  font-size: 1.1rem;
}

.request-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.request-close {
  position: absolute;
  top: 16px;
  right: 18px;
  border: none;
  background: transparent;
  color: var(--text-muted);
  cursor: pointer;
  font-size: 1.6rem;
  line-height: 1;
  transition: color var(--trans-fast);
}

.request-close:hover {
  color: var(--text-heading);
}

/* Large Image Lightbox */
.image-modal-box {
  width: min(840px, 95vw);
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 24px;
  box-shadow: var(--shadow-xl);
  text-align: center;
}

.image-modal-preview {
  display: block;
  width: 100%;
  max-height: 68vh;
  object-fit: contain;
  border-radius: var(--radius-sm);
  background: var(--bg-subtle-2);
  margin-bottom: 16px;
}

.image-modal-title {
  font-size: 1.2rem;
  color: var(--text-heading);
  margin-bottom: 12px;
}

.image-back {
  display: inline-flex;
  margin-bottom: 12px;
  padding: 8px 16px;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-pill);
  background: var(--bg-subtle);
  color: var(--text-main);
  cursor: pointer;
  font-weight: 700;
  font-size: 0.85rem;
}
