/* ============== TRANSFORMATION PAGE ============== */

.tx-section {
  padding: 40px 0 100px;
  position: relative;
}

.tx-card {
  margin-bottom: 80px;
  text-align: center;
}

.tx-head {
  margin-bottom: 32px;
}
.tx-head h2 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 700;
  margin-bottom: 10px;
}
.tx-head p {
  color: var(--muted);
  font-size: 1rem;
  max-width: 620px;
  margin: 0 auto 16px;
}
.tx-pill {
  display: inline-block;
  background: var(--grad-pg);
  color: #fff;
  padding: 10px 22px;
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 600;
  box-shadow: 0 10px 24px rgba(106, 56, 194, 0.30);
  letter-spacing: 0.02em;
}

.tx-pair {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 24px;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
}

.tx-side {
  position: relative;
  margin: 0;
  border-radius: var(--r-lg);
  overflow: hidden;
  background: linear-gradient(135deg, #f3eedf, #ebe2c8);
  box-shadow: 0 18px 48px rgba(26, 26, 26, 0.12);
  cursor: pointer;
  transition: all 0.5s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.tx-side img {
  width: 100%;
  height: auto;
  display: block;
  transition: transform 0.7s ease;
}

.tx-side:hover {
  transform: translateY(-8px) scale(1.01);
  box-shadow: 0 30px 70px rgba(106, 56, 194, 0.25);
}
.tx-side:hover img { transform: scale(1.04); }

.tx-side.missing {
  min-height: 280px;
  display: grid;
  place-items: center;
  cursor: default;
}
.tx-side.missing img { display: none; }
.tx-side.missing::after {
  content: 'Image coming soon';
  color: var(--muted);
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.tx-label {
  position: absolute;
  top: 16px;
  left: 16px;
  z-index: 3;
  font-family: 'Playfair Display', serif;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  padding: 6px 14px;
  border-radius: 999px;
  backdrop-filter: blur(8px);
}
.tx-before .tx-label {
  background: rgba(26, 26, 26, 0.85);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.12);
}
.tx-after .tx-label {
  background: var(--grad-gold);
  color: #1a1a1a;
  box-shadow: 0 6px 16px rgba(212, 160, 23, 0.4);
}

/* Subtle gold halo on the AFTER image */
.tx-after::before {
  content: '';
  position: absolute;
  inset: -1px;
  border-radius: var(--r-lg);
  padding: 2px;
  background: var(--grad-gold);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  z-index: 2;
  pointer-events: none;
  opacity: 0.7;
}

.tx-bolt {
  font-size: 2.5rem;
  color: var(--gold-light);
  text-align: center;
  filter: drop-shadow(0 0 12px rgba(245, 197, 66, 0.6));
  animation: pulseBolt 2s ease-in-out infinite;
  user-select: none;
}
@keyframes pulseBolt {
  0%, 100% { transform: scale(1); }
  50%      { transform: scale(1.18); }
}

/* ============ RESPONSIVE ============ */
@media (max-width: 968px) {
  .tx-pair {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  .tx-bolt {
    transform: rotate(90deg);
    font-size: 2rem;
  }
  @keyframes pulseBolt {
    0%, 100% { transform: rotate(90deg) scale(1); }
    50%      { transform: rotate(90deg) scale(1.18); }
  }
  .tx-card { margin-bottom: 56px; }
}
