.detail-hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: 24px;
  border-radius: 34px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow: var(--shadow);
}

.detail-hero > * {
  position: relative;
  z-index: 2;
}

.detail-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.12), transparent 44%);
  z-index: 1;
  pointer-events: none;
}

.detail-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(90deg, var(--image-tint-strong, rgba(50, 26, 16, 0.94)) 0%, var(--image-tint-mid, rgba(50, 26, 16, 0.74)) 40%, var(--image-tint-soft, rgba(50, 26, 16, 0.16)) 74%, transparent 100%),
    var(--card-image);
  background-repeat: no-repeat;
  background-position: center, var(--image-position, right center);
  background-size: cover, cover;
  opacity: var(--image-opacity, 0.88);
  z-index: 0;
  pointer-events: none;
}

.image-crop-fix.detail-hero::after {
  transform-origin: top left;
  transform: scale(1.08);
}

.detail-hero-coffee {
  background:
    radial-gradient(circle at 78% 22%, rgba(255, 255, 255, 0.16), transparent 20%),
    linear-gradient(135deg, rgba(255, 204, 140, 0.2), rgba(50, 26, 16, 0.92));
  --card-image: url("../images/kahveci.png");
  --image-position: right center;
  --image-tint-strong: rgba(74, 37, 20, 0.94);
  --image-tint-mid: rgba(96, 50, 28, 0.76);
  --image-tint-soft: rgba(121, 73, 44, 0.18);
  --image-opacity: 0.88;
}

.detail-hero-salon {
  background:
    radial-gradient(circle at 78% 22%, rgba(255, 255, 255, 0.16), transparent 20%),
    linear-gradient(135deg, rgba(255, 141, 184, 0.22), rgba(39, 13, 51, 0.94));
  --card-image: url("../images/guzellik-salonu.png");
  --image-position: right center;
  --image-tint-strong: rgba(56, 19, 68, 0.94);
  --image-tint-mid: rgba(79, 29, 97, 0.76);
  --image-tint-soft: rgba(111, 52, 132, 0.18);
  --image-opacity: 0.86;
}

.detail-subcopy {
  margin: 12px 0 0;
  max-width: 30ch;
  color: rgba(255, 255, 255, 0.72);
}

.detail-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
}

.detail-info-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  border: 0;
  background: transparent;
  color: rgba(255, 255, 255, 0.9);
  font-size: 1.2rem;
  flex: 0 0 auto;
  cursor: pointer;
}

.detail-info-toggle[aria-expanded="true"] {
  color: #ffffff;
}

.detail-info-section {
  overflow: hidden;
  transition:
    max-height 280ms ease,
    opacity 220ms ease,
    transform 280ms ease,
    margin-top 280ms ease;
  max-height: 240px;
  opacity: 1;
  transform: translateY(0);
}

.detail-info-section.is-hidden {
  max-height: 0;
  opacity: 0;
  transform: translateY(-10px);
  margin-top: 0;
  pointer-events: none;
}

.info-grid {
  display: grid;
  gap: 14px;
}

.info-card {
  padding: 18px;
  border-radius: 24px;
}

.info-label {
  display: block;
  margin-bottom: 8px;
  font-size: 0.78rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.54);
}

.info-card p {
  margin: 0;
  font-size: 1rem;
}

.loyalty-panel {
  padding: 22px;
  border-radius: 32px;
}

.loyalty-panel-link {
  display: block;
}

.loyalty-panel-link-alt {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0.08)),
    linear-gradient(135deg, rgba(179, 147, 255, 0.14), rgba(58, 25, 77, 0.54));
}

.loyalty-link-hint {
  margin-top: 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  color: rgba(255, 255, 255, 0.82);
  font-size: 0.92rem;
}

.reward-ready-strip {
  margin-top: 18px;
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  width: 100%;
  min-height: 48px;
  padding: 0 14px;
  border-radius: 18px;
  background: rgba(255, 248, 236, 0.14);
  border: 1px solid rgba(255, 225, 170, 0.24);
  color: rgba(255, 244, 230, 0.94);
  font-size: 0.9rem;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.reward-ready-strip-link {
  color: inherit;
  transition: transform 180ms ease, background 180ms ease, border-color 180ms ease;
}

.reward-ready-strip-link:active {
  transform: scale(0.99);
}

.reward-ready-strip__dot {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: #ffe3ae;
  box-shadow: 0 0 0 rgba(255, 227, 174, 0.5);
  animation: rewardPulse 1.8s ease-out infinite;
}

.reward-ready-strip__arrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  color: #fff8ec;
  flex: 0 0 auto;
}

.loyalty-link-arrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  font-size: 1rem;
}

.loyalty-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
}

.loyalty-head h2 {
  margin: 0;
  max-width: 14ch;
  font-size: 1.55rem;
  line-height: 1.04;
  letter-spacing: -0.04em;
}

.reward-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  min-width: 72px;
  min-height: 38px;
  padding: 0 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.88);
  color: #07111f;
  font-weight: 700;
  line-height: 1.05;
  text-align: center;
  white-space: normal;
}

.reward-badge-ready {
  background: linear-gradient(135deg, rgba(255, 244, 217, 0.96), rgba(255, 216, 153, 0.92));
  color: #4f260f;
  box-shadow: 0 0 20px rgba(255, 216, 153, 0.24);
}

.stamp-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  justify-content: center;
  gap: 12px;
  margin: 24px 0 16px;
}

.stamp-grid-wide {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.stamp-grid-three {
  grid-template-columns: repeat(3, 56px);
}

.stamp-slot {
  width: 56px;
  height: 56px;
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.08);
  position: relative;
  overflow: hidden;
}

.stamp-slot.is-next {
  border-color: rgba(255, 255, 255, 0.34);
  box-shadow:
    0 0 0 0 rgba(255, 255, 255, 0.2),
    0 0 18px rgba(255, 255, 255, 0.08);
  animation: nextStampPulse 2s ease-out infinite;
}

.stamp-slot::after {
  content: "✦";
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  font-size: 1.25rem;
  opacity: 0.3;
  transform: scale(0.8);
  transition: opacity 240ms ease, transform 240ms ease, background 240ms ease;
}

.stamp-slot.is-active::after {
  opacity: 1;
  transform: scale(1);
}

.stamp-slot.is-active {
  background: linear-gradient(135deg, rgba(255, 212, 145, 0.84), rgba(255, 255, 255, 0.24));
  box-shadow: inset 0 1px 12px rgba(255, 255, 255, 0.28);
}

.stamp-slot-luxe::after {
  content: "✦";
}

.stamp-slot-luxe.is-active {
  background: linear-gradient(135deg, rgba(255, 141, 184, 0.8), rgba(255, 255, 255, 0.2));
}

.stamp-slot-lavender.is-active {
  background: linear-gradient(135deg, rgba(188, 160, 255, 0.82), rgba(255, 255, 255, 0.2));
}

.stamp-grid-three .stamp-slot::after {
  font-size: 1.25rem;
}

.progress-copy {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.92rem;
}

.progress-rail {
  margin-top: 12px;
  height: 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  overflow: hidden;
}

.progress-fill {
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #ffd38f, #fff1d9);
  box-shadow: 0 0 24px rgba(255, 211, 143, 0.4);
  transition: width 1450ms cubic-bezier(0.22, 1, 0.36, 1);
  position: relative;
  overflow: hidden;
}

.progress-fill::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  width: 32%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.72), transparent);
  transform: translateX(-160%);
  opacity: 0;
}

.progress-fill.is-shimmering::after {
  animation: progressShimmer 760ms ease-out forwards;
}

.progress-fill-salon {
  background: linear-gradient(90deg, #ff8db8, #ffd5e4);
  box-shadow: 0 0 24px rgba(255, 141, 184, 0.35);
}

.progress-fill-lavender {
  background: linear-gradient(90deg, #b393ff, #e3d8ff);
  box-shadow: 0 0 24px rgba(179, 147, 255, 0.35);
}

@keyframes nextStampPulse {
  0% {
    transform: scale(1);
    box-shadow:
      0 0 0 0 rgba(255, 255, 255, 0.24),
      0 0 18px rgba(255, 255, 255, 0.08);
  }
  70% {
    transform: scale(1.03);
    box-shadow:
      0 0 0 10px rgba(255, 255, 255, 0),
      0 0 26px rgba(255, 255, 255, 0.16);
  }
  100% {
    transform: scale(1);
    box-shadow:
      0 0 0 0 rgba(255, 255, 255, 0),
      0 0 18px rgba(255, 255, 255, 0.08);
  }
}

@keyframes rewardPulse {
  0% {
    box-shadow: 0 0 0 0 rgba(255, 227, 174, 0.5);
    opacity: 1;
  }
  70% {
    box-shadow: 0 0 0 10px rgba(255, 227, 174, 0);
    opacity: 0.9;
  }
  100% {
    box-shadow: 0 0 0 0 rgba(255, 227, 174, 0);
    opacity: 1;
  }
}

@keyframes progressShimmer {
  0% {
    transform: translateX(-160%);
    opacity: 0;
  }
  20% {
    opacity: 0.9;
  }
  100% {
    transform: translateX(360%);
    opacity: 0;
  }
}
