/* Kupon oluşturucu ekranı: akıllı kuponda "Oluştur" dediğinde çıkan küçük ekran.
   Açık, düz site stili; yalnız CSS animasyonu (kütüphane yok). Yalnız .pgd-kolus* sınıfları. */

.pgd-kolus,
.pgd-kolus *,
.pgd-kolus *::before,
.pgd-kolus *::after {
  box-sizing: border-box;
}

.pgd-kolus {
  position: fixed;
  inset: 0;
  z-index: 10050;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgba(61, 43, 14, .24);
  -webkit-backdrop-filter: blur(3px);
  backdrop-filter: blur(3px);
  opacity: 0;
  transition: opacity .18s ease;
}

.pgd-kolus[hidden] {
  display: none;
}

.pgd-kolus.is-visible {
  opacity: 1;
}

.pgd-kolus__card {
  display: grid;
  justify-items: center;
  width: min(360px, 100%);
  padding: 24px 22px 20px;
  border: 1px solid var(--border, #dccfbb);
  border-radius: 8px;
  background: var(--surface, #fffefb);
  color: var(--text, #17100a);
  transform: translateY(8px);
  transition: transform .2s ease;
}

.pgd-kolus.is-visible .pgd-kolus__card {
  transform: none;
}

/* Dönen halkalar ve çip: hafif, teknolojik his */
.pgd-kolus__orbit {
  position: relative;
  display: grid;
  place-items: center;
  width: 64px;
  height: 64px;
  margin-bottom: 14px;
  border: 1px solid rgba(184, 122, 8, .28);
  border-radius: 50%;
  color: var(--gold-dark, #b66f05);
  font-size: 22px;
}

.pgd-kolus__orbit i {
  animation: pgd-kolus-pulse 1.3s ease-in-out infinite;
}

.pgd-kolus__orbit::before,
.pgd-kolus__orbit::after {
  content: "";
  position: absolute;
  inset: -6px;
  border: 2px solid transparent;
  border-top-color: var(--gold, #e8a020);
  border-radius: 50%;
  animation: pgd-kolus-spin 1.05s linear infinite;
}

.pgd-kolus__orbit::after {
  inset: 6px;
  border-top-color: #2f8fa3;
  animation-direction: reverse;
  animation-duration: .75s;
}

.pgd-kolus__kicker {
  color: var(--gold-dark, #b66f05);
  font-size: 9px;
  font-weight: 900;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.pgd-kolus__card > strong {
  margin-top: 5px;
  font-size: 18px;
  line-height: 1.2;
  text-align: center;
}

.pgd-kolus__card > small {
  margin-top: 4px;
  color: var(--text4, #958067);
  font-size: 11px;
  font-weight: 700;
  text-align: center;
}

.pgd-kolus__card > small:empty {
  display: none;
}

/* Adımlar ve çubuk */
.pgd-kolus__steps {
  display: grid;
  gap: 7px;
  width: 100%;
  margin-top: 18px;
}

.pgd-kolus__steps span {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--text4, #958067);
  font-size: 11px;
  font-weight: 800;
  transition: color .18s ease, transform .18s ease;
}

.pgd-kolus__steps span.is-active,
.pgd-kolus__steps span.is-done {
  color: var(--text, #17100a);
  transform: translateX(3px);
}

.pgd-kolus__steps span.is-done i {
  color: var(--green, #16a34a);
}

.pgd-kolus__bar {
  width: 100%;
  height: 4px;
  margin-top: 16px;
  overflow: hidden;
  border-radius: 999px;
  background: #efe6d6;
}

.pgd-kolus__bar span {
  display: block;
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: var(--gold, #e8a020);
  transition: width .9s ease;
}

.pgd-kolus.is-visible .pgd-kolus__bar span {
  width: 100%;
}

@keyframes pgd-kolus-spin {
  to {
    transform: rotate(360deg);
  }
}

@keyframes pgd-kolus-pulse {
  0%, 100% { opacity: .55; }
  50% { opacity: 1; }
}

/* Hareket istemeyenler için animasyon yok */
@media (prefers-reduced-motion: reduce) {
  .pgd-kolus,
  .pgd-kolus * {
    animation: none !important;
    transition: none !important;
  }
}
