.live-tools-grid.contents {
  display: contents;
}
.live-tool-card {
  height: 100%;
  background:
    linear-gradient(145deg, rgba(255,255,255,0.88), rgba(255,255,255,0.58)) padding-box,
    linear-gradient(135deg, rgba(255,255,255,0.98), rgba(14,165,233,0.28), rgba(244,114,182,0.24), rgba(250,204,21,0.32)) border-box !important;
  border: 1px solid transparent;
  border-radius: 18px !important;
  box-shadow:
    0 14px 34px rgba(15, 23, 42, 0.10),
    inset 0 1px 0 rgba(255,255,255,0.92),
    inset 0 -1px 0 rgba(255,255,255,0.32);
  backdrop-filter: blur(22px) saturate(175%);
  -webkit-backdrop-filter: blur(22px) saturate(175%);
  transform: translateZ(0);
  will-change: transform, opacity;
  transition:
    transform 0.34s cubic-bezier(.2,.8,.2,1),
    box-shadow 0.34s ease,
    border-color 0.34s ease,
    opacity 0.24s ease;
}
.live-tool-card:hover {
  transform: translateY(-5px) translateZ(0);
  box-shadow:
    0 18px 42px rgba(131, 58, 180, 0.16),
    inset 0 1px 0 rgba(255,255,255,0.88),
    inset 0 -1px 0 rgba(255,255,255,0.28);
  border-color: #ab183d;
}
.live-tool-image {
  height: 8.25rem !important;
  min-height: 8.25rem !important;
  max-height: 8.25rem !important;
  flex: 0 0 8.25rem !important;
  background:
    linear-gradient(135deg, rgba(255,255,255,0.46), rgba(240,253,250,0.26)),
    linear-gradient(135deg, rgba(14,165,233,0.12), rgba(244,114,182,0.10), rgba(250,204,21,0.10));
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.45rem;
}
.live-tool-image img,
.live-tool-image svg {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: rgba(255,255,255,0.18);
  border-radius: 0.5rem;
  transform: translateZ(0);
  transition: transform 0.42s cubic-bezier(.2,.8,.2,1), filter 0.42s ease;
}
.live-tool-card:hover .live-tool-image img,
.live-tool-card:hover .live-tool-image svg {
  transform: scale(1.015);
  filter: saturate(1.08) contrast(1.03);
}
.live-tool-body p {
  flex: 1 1 auto;
  min-height: 2.8rem;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.live-tool-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  min-height: 9.35rem;
  padding: 0.85rem 1rem 0.9rem !important;
}
.live-tool-body h3 {
  display: -webkit-box;
  min-height: 0;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.live-tool-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  align-self: flex-start;
  max-width: 100%;
  color: #fff;
  margin-top: auto;
  padding: 0.58rem 1.3rem;
  border-radius: 999px;
  font-size: 0.95rem;
  font-weight: 700;
  text-decoration: none;
  border: 1px solid rgba(255,255,255,0.48);
  background:
    linear-gradient(135deg, rgba(255,255,255,0.22), rgba(255,255,255,0.08)),
    linear-gradient(120deg, #ab183d 0%, #833ab4 45%, #fd1d1d 72%, #fcb045 100%);
  box-shadow:
    0 10px 22px rgba(171,24,61,0.18),
    inset 0 1px 0 rgba(255,255,255,0.50),
    inset 0 -1px 0 rgba(255,255,255,0.18);
  backdrop-filter: blur(12px) saturate(160%);
  -webkit-backdrop-filter: blur(12px) saturate(160%);
  animation: useToolPulse 1.8s ease-in-out infinite;
  transition:
    transform 0.22s cubic-bezier(.2,.8,.2,1),
    box-shadow 0.22s ease,
    background 0.22s ease;
}
.live-tool-button::before {
  content: none;
}
.live-tool-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 20px rgba(253, 29, 29, .22);
}

@keyframes useToolPulse {
  0% {
    box-shadow: 0 0 0 0 rgba(171,24,61,0.34), inset 0 1px 0 rgba(255,255,255,0.50);
    transform: scale(1);
  }
  50% {
    box-shadow: 0 0 0 10px rgba(252,176,69,0), inset 0 1px 0 rgba(255,255,255,0.50);
    transform: scale(1.025);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(171,24,61,0), inset 0 1px 0 rgba(255,255,255,0.50);
    transform: scale(1);
  }
}

@media (prefers-reduced-motion: reduce) {
  .live-tool-card,
  .live-tool-image img,
  .live-tool-image svg,
  .live-tool-button {
    animation: none !important;
    transition: none !important;
  }
}

@media (max-width: 640px) {
  .live-tool-image {
    height: 7.5rem !important;
    min-height: 7.5rem !important;
    max-height: 7.5rem !important;
    flex-basis: 7.5rem !important;
  }
  .live-tool-body {
    min-height: 9rem;
    padding: 0.8rem 0.9rem 0.85rem !important;
  }
  .live-tool-button {
    width: 100%;
    padding-inline: 1rem;
  }
}
