/* ══════════════════════════════════════════════════════════════════════
   ÇARKIFELEK KARŞILAMASI
   ----------------------------------------------------------------------
   Kutulu bir popup DEĞİL: ekran karartılır, yalnızca çarkın kendisi ve
   metinler öne çıkar. Panel/çerçeve/kart kullanılmaz.
   ══════════════════════════════════════════════════════════════════════ */
.cark-katman {
    position: fixed;
    inset: 0;
    z-index: 12000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px 16px;
    background: rgba(10, 12, 15, .82);
    backdrop-filter: blur(3px);
    -webkit-backdrop-filter: blur(3px);
    opacity: 0;
    transition: opacity .3s ease;
    overflow-y: auto;
}
.cark-katman.acik { opacity: 1; }
.cark-katman[hidden] { display: none; }

.cark-kapat {
    position: absolute;
    top: 18px; right: 20px;
    width: 42px; height: 42px;
    background: none; border: 0;
    color: #fff; font-size: 30px; line-height: 1;
    cursor: pointer; opacity: .7;
}
.cark-kapat:hover { opacity: 1; }

/* Sahne — arka planı YOK, sadece hizalama yapar */
.cark-sahne { text-align: center; max-width: 560px; width: 100%; }

.cark-baslik {
    margin: 0 0 6px;
    font-size: clamp(24px, 5vw, 38px);
    font-weight: 800;
    letter-spacing: .02em;
    color: #fff;
    text-transform: uppercase;
    text-shadow: 0 2px 18px rgba(0, 0, 0, .5);
}
.cark-alt {
    margin: 0 0 22px;
    font-size: 14.5px;
    color: rgba(255, 255, 255, .82);
}

/* ── Çark ── */
.cark-govde {
    position: relative;
    width: min(78vw, 380px);
    aspect-ratio: 1 / 1;
    margin: 0 auto;
}

/* Gölge DÖNMEYEN katmanda: 60px bulanıklıklı box-shadow dönen öğede olunca
   her karede yeniden çiziliyor ve animasyon takılıyordu. */
.cark-govde::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: 50%;
    box-shadow: 0 0 0 5px rgba(255, 255, 255, .18),
                0 24px 60px rgba(0, 0, 0, .55);
    pointer-events: none;
}
.cark-disk {
    position: absolute;
    inset: 0;
    border-radius: 50%;
    /* Çarkın çerçevesi tek öne çıkan öğe */
    border: 8px solid #fff;
    /* GPU katmanı — döndürme sırasında yeniden boyama olmaz */
    transform: rotate(0deg) translateZ(0);
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
    /* Temel geçiş CSS'te: JS erişemese bile çark döner */
    transition: transform 5.4s cubic-bezier(.12, .78, .16, 1);
}

/* Dönerken ibre hafifçe titrer — dilim geçişi hissi verir */
.cark-govde.donuyor .cark-ibre { animation: cark-ibre-tik .09s linear infinite; }
@keyframes cark-ibre-tik {
    0%, 100% { transform: translateX(-50%) rotate(0deg); }
    50%      { transform: translateX(-50%) rotate(-7deg); }
}

/* Duruşta kazanan dilim vurgusu */
.cark-govde.kazandi::after {
    content: "";
    position: absolute; inset: -6px;
    border-radius: 50%;
    box-shadow: 0 0 0 3px rgba(255,255,255,.9), 0 0 42px 8px rgba(255,255,255,.45);
    animation: cark-parla 1.5s ease-out 2;
    pointer-events: none;
}
@keyframes cark-parla {
    0%   { opacity: 0; transform: scale(.97); }
    35%  { opacity: 1; transform: scale(1); }
    100% { opacity: 0; transform: scale(1.03); }
}

/* Dilim etiketleri — merkezden dışa doğru yazılır */
.cark-etiket {
    position: absolute;
    inset: 0;
    display: block;
    pointer-events: none;
}
.cark-etiket > em {
    position: absolute;
    top: 12%;
    left: 50%;
    transform: translateX(-50%);
    max-width: 42%;
    font-style: normal;
    font-size: clamp(9px, 2.1vw, 12px);
    font-weight: 800;
    letter-spacing: .02em;
    line-height: 1.15;
    color: #fff;
    text-shadow: 0 1px 3px rgba(0, 0, 0, .45);
    text-align: center;
}

/* Merkezdeki çevir düğmesi */
.cark-hub {
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    width: 27%; height: 27%;
    border-radius: 50%;
    border: 5px solid #fff;
    background: #14171c;
    color: #fff;
    font-size: clamp(11px, 2.4vw, 14px);
    font-weight: 800;
    letter-spacing: .06em;
    cursor: pointer;
    box-shadow: 0 6px 22px rgba(0, 0, 0, .5);
    transition: transform .18s ease, background .18s ease;
}
.cark-hub:hover:not(:disabled) { transform: translate(-50%, -50%) scale(1.06); background: #14171c; }
.cark-hub:disabled { cursor: default; opacity: .9; }

/* İbre — çarkın tepesinde */
.cark-ibre {
    position: absolute;
    top: -14px; left: 50%;
    transform: translateX(-50%);
    z-index: 3;
    width: 0; height: 0;
    border-left: 13px solid transparent;
    border-right: 13px solid transparent;
    border-top: 24px solid #fff;
    filter: drop-shadow(0 3px 6px rgba(0, 0, 0, .5));
}

/* ── Sonuç ── */
.cark-sonuc { margin-top: 26px; color: #fff; }
.cark-sonuc-baslik {
    display: block;
    font-size: clamp(17px, 3.6vw, 22px);
    font-weight: 800;
    letter-spacing: .02em;
}
.cark-kod-kutu {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-top: 12px;
    padding: 9px 10px 9px 16px;
    border: 2px dashed rgba(255, 255, 255, .6);
    border-radius: 8px;
}
.cark-kod-kutu code {
    font-size: 19px; font-weight: 800; letter-spacing: .12em; color: #fff;
}
.cark-kopyala {
    border: 0; border-radius: 6px; padding: 7px 12px;
    background: #fff; color: #14171c;
    font-size: 12px; font-weight: 700; cursor: pointer;
}
.cark-sonuc-not {
    margin: 12px auto 0;
    max-width: 420px;
    font-size: 13px;
    line-height: 1.5;
    color: rgba(255, 255, 255, .78);
}
.cark-cta {
    display: inline-block;
    margin-top: 16px;
    padding: 13px 26px;
    background: #fff;
    color: #14171c;
    border-radius: 8px;
    font-size: 13.5px; font-weight: 800;
    letter-spacing: .04em; text-transform: uppercase;
    text-decoration: none;
}
.cark-cta:hover { background: #14171c; color: #fff; }

@media (max-width: 480px) {
    .cark-govde { width: 84vw; }
    .cark-kod-kutu code { font-size: 16px; }
}
/* Hareket azaltma tercihi: animasyonu TAMAMEN öldürmek yerine kısaltırız.
   (Eskiden 'transition: none !important' vardı; Windows'ta "animasyon efektleri"
   kapalı olan kullanıcılarda çark hiç dönmüyordu — çevirme geri bildirimsiz
   kalıyordu. Kullanıcının başlattığı bir eylem olduğu için kısa bir dönüş
   erişilebilirlik açısından da uygundur.) */
@media (prefers-reduced-motion: reduce) {
    .cark-katman { transition: none; }
    .cark-disk { transition-duration: 1.2s !important; }
}

/* ── Kazanma sonrası iki CTA (Alışverişe başla / Üye ol) ── */
.cark-cta-grup { display: flex; flex-direction: column; gap: 9px; margin-top: 14px; }
.cark-cta--ikincil { background: transparent; color: #fff; border: 1px solid rgba(255,255,255,.55); }
.cark-cta--ikincil:hover { background: #fff; color: #14171c; }
@media (min-width: 481px) { .cark-cta-grup { flex-direction: row; } .cark-cta-grup .cark-cta { flex: 1; } }

/* ── Sepet/ödeme hatırlatma şeridi: "Çarkta kod kazandın, üye ol kullan" ── */
.nrs-cark-hatirlat {
    display: flex; align-items: center; gap: 12px; flex-wrap: wrap;
    background: #14171c; color: #fff;
    padding: 13px 16px; margin: 0 0 16px;
    font-size: 13.5px; line-height: 1.45;
}
.nrs-cark-hatirlat code {
    background: #fff; color: #14171c; padding: 3px 9px;
    font-weight: 800; letter-spacing: .08em; font-size: 13.5px;
}
.nrs-cark-hatirlat .nrs-cark-hatirlat-btn {
    margin-left: auto; background: #fff; color: #14171c; border: 0;
    padding: 9px 16px; font-size: 12.5px; font-weight: 800;
    letter-spacing: .04em; text-transform: uppercase; cursor: pointer;
    text-decoration: none; display: inline-block;
}
.nrs-cark-hatirlat .nrs-cark-hatirlat-btn:hover { background: #e8e8e8; }
@media (max-width: 520px) {
    .nrs-cark-hatirlat { font-size: 12.5px; }
    .nrs-cark-hatirlat .nrs-cark-hatirlat-btn { margin-left: 0; width: 100%; text-align: center; }
}

/* hidden özniteliği display:flex'i ezemiyordu → kodu olmayan ziyaretçide
   boş şerit görünüyordu. Öncelik ver. */
.nrs-cark-hatirlat[hidden] { display: none !important; }
