/* anim-pack */
body {
  position: relative;
  isolation: isolate;
}
body::before {
  content: "";
  position: fixed;
  inset: -15% -15% auto auto;
  width: 420px;
  height: 420px;
  background: radial-gradient(circle, rgba(229, 75, 123, 0.20), rgba(255, 179, 71, 0.08) 55%, transparent 70%);
  border-radius: 50%;
  filter: blur(6px);
  z-index: -1;
  pointer-events: none;
  animation: driftBlob 14s ease-in-out infinite alternate;
}
.btn,
.card,
.type-card,
.metric-card,
.panel,
.hero-card,
.theme-option,
.custom-form-wrap {
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}
.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 24px rgba(229, 75, 123, 0.22);
}
.card:hover,
.type-card:hover,
.metric-card:hover,
.theme-option:hover,
.custom-form-wrap:hover {
  transform: translateY(-5px);
  box-shadow: 0 16px 30px rgba(109, 91, 115, 0.16);
  border-color: rgba(229, 75, 123, 0.35);
}
header { animation: slideDown 0.55s ease both; }
.hero { animation: fadeUp 0.7s ease both; }
.grid > *,
.type-grid > *,
.metrics > *,
tbody tr {
  opacity: 0;
  transform: translateY(14px);
  animation: fadeUp 0.55s ease forwards;
}
.grid > *:nth-child(1), .type-grid > *:nth-child(1), .metrics > *:nth-child(1), tbody tr:nth-child(1) { animation-delay: 0.06s; }
.grid > *:nth-child(2), .type-grid > *:nth-child(2), .metrics > *:nth-child(2), tbody tr:nth-child(2) { animation-delay: 0.12s; }
.grid > *:nth-child(3), .type-grid > *:nth-child(3), .metrics > *:nth-child(3), tbody tr:nth-child(3) { animation-delay: 0.18s; }
.grid > *:nth-child(4), .type-grid > *:nth-child(4), .metrics > *:nth-child(4), tbody tr:nth-child(4) { animation-delay: 0.24s; }
.grid > *:nth-child(5), .type-grid > *:nth-child(5), .metrics > *:nth-child(5), tbody tr:nth-child(5) { animation-delay: 0.30s; }
.grid > *:nth-child(6), .type-grid > *:nth-child(6), .metrics > *:nth-child(6), tbody tr:nth-child(6) { animation-delay: 0.36s; }
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes slideDown {
  from { opacity: 0; transform: translateY(-14px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes driftBlob {
  from { transform: translate(0, 0) scale(1); }
  to { transform: translate(-28px, 20px) scale(1.08); }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation: none !important;
    transition: none !important;
  }
}
/* focus-lightbox */
img.focusable {
  cursor: zoom-in;
  image-orientation: from-image;
}
.lightbox-overlay {
  position: fixed;
  inset: 0;
  background: rgba(18, 12, 20, 0.82);
  display: grid;
  place-items: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
  z-index: 9999;
  padding: 22px;
}
.lightbox-overlay.open {
  opacity: 1;
  pointer-events: auto;
}
.lightbox-figure {
  margin: 0;
  display: grid;
  gap: 10px;
  justify-items: center;
}
.lightbox-image {
  max-width: min(1000px, 92vw);
  max-height: 88vh;
  width: auto !important;
  height: auto !important;
  object-fit: contain !important;
  display: block;
  border-radius: 14px;
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.35);
  background: #fff;
  transition: transform 0.2s ease;
  cursor: zoom-in;
}
.lightbox-image.zoomed {
  transform: scale(1.45);
  cursor: zoom-out;
}
.lightbox-close {
  position: fixed;
  top: 14px;
  right: 14px;
  width: 38px;
  height: 38px;
  border-radius: 999px;
  border: 0;
  background: rgba(255, 255, 255, 0.92);
  color: #1f1423;
  font-size: 1.2rem;
  font-weight: 700;
  cursor: pointer;
}
.lightbox-caption {
  color: #f5edf3;
  font-size: 0.92rem;
  text-align: center;
}
.lightbox-nav,
.lightbox-zoom {
  position: fixed;
  width: 42px;
  height: 42px;
  border-radius: 999px;
  border: 0;
  background: rgba(255, 255, 255, 0.92);
  color: #1f1423;
  font-size: 1.25rem;
  font-weight: 700;
  cursor: pointer;
}
.lightbox-prev {
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
}
.lightbox-next {
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
}
.lightbox-zoom {
  right: 14px;
  bottom: 14px;
  width: auto;
  padding: 0 14px;
  font-size: 0.9rem;
}
.gallery-tools {
  margin: 8px 0 14px;
  padding: 14px;
}
.tools-title {
  font-weight: 700;
  color: #2f2235;
  margin-bottom: 10px;
}
.tool-grid {
  display: grid;
  grid-template-columns: 2fr repeat(5, minmax(120px, 1fr));
  gap: 10px;
}
.tool-grid input,
.tool-grid select {
  border: 1px solid rgba(229, 75, 123, 0.18);
  border-radius: 10px;
  padding: 10px 12px;
  background: rgba(255, 255, 255, 0.9);
  color: #2f2235;
  font: inherit;
}
.meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 8px;
}
.meta-chip {
  display: inline-block;
  padding: 4px 8px;
  border-radius: 999px;
  font-size: 0.76rem;
  text-transform: capitalize;
  color: #6d5b73;
  border: 1px solid rgba(229, 75, 123, 0.2);
  background: rgba(255, 255, 255, 0.85);
}
.inquiry-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}
.inquiry-btn {
  display: inline-block;
  font-size: 0.82rem;
  padding: 8px 12px;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 700;
  border: 1px solid transparent;
  background: linear-gradient(90deg, #e54b7b, #ff8fab);
  color: #fff;
  box-shadow: 0 10px 18px rgba(229, 75, 123, 0.22);
}
.inquiry-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 14px 22px rgba(229, 75, 123, 0.28);
}
.btn-outline {
  background: #fff;
  color: #2f2235;
  border: 1px solid rgba(229, 75, 123, 0.25);
  box-shadow: none;
}
.btn-outline:hover {
  background: #fff6fa;
}
.empty-state {
  display: none;
  border: 1px dashed rgba(229, 75, 123, 0.35);
  border-radius: 14px;
  padding: 16px;
  text-align: center;
  color: #6d5b73;
  background: rgba(255, 255, 255, 0.7);
  margin-bottom: 30px;
}
@media (max-width: 980px) {
  .tool-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 640px) {
  .tool-grid {
    grid-template-columns: 1fr;
  }
}
