/* ===========================================================================
   Sınırsız Erişim satış daveti (kip) — /categories
   ---------------------------------------------------------------------------
   Sayfanın kendi dili: koyu panel, turuncu vurgu, buzlu cam, hap düğme
   (public-ui.css `--pu-*` jetonları). Kip o dilin bir tık YÜKSELTİLMİŞ
   hâli — davet, sayfanın bir parçası değil, sayfanın üzerine gelen bir
   teklif olduğu için tipografi ve gölge bir kademe daha güçlü.

   İki yerleşim var:
     ≥ 900px  iki sütun — solda anlatı, sağda teklif kartı
     < 900px  ALT SAYFA (bottom sheet): telefonda ortada yüzen kutu hem
              yer kaybediyor hem de kapatma düğmesi başparmaktan uzak
              kalıyordu; alttan gelen yaprak parmak menziline oturuyor.

   z-index 118: sayfa başlığının (100) ÜSTÜNDE, kapsam kipinin (fak-kip,
   120) ALTINDA — kapsam ayrıntısı bu kipin içinden açılıyor ve onun
   üstünde çizilmek zorunda. Çerez bandı (100000) her ikisinin de üstünde
   kalır, öyle de kalmalı.
   =========================================================================== */

.stk-kip {
    --stk-vurgu: #f37a52;
    --stk-vurgu-acik: #fda871;
    --stk-vurgu-pembe: #ec387d;
    --stk-panel: #0e0f0f;
    --stk-panel-ic: #131515;
    --stk-cizgi: rgba(255, 255, 255, .09);
    --stk-metin: #e9eded;
    --stk-sonuk: #9aa1a1;

    position: fixed;
    inset: 0;
    z-index: 118;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.5rem 1rem;
}
.stk-kip[hidden] { display: none; }

/* Gövde kilidi — kip açıkken arkadaki katalog kaymasın. `fak-kip-acik`
   ile aynı işi yapıyor ama AYRI sınıf: iç içe açıldıklarında biri
   kapanırken diğerinin kilidini kaldırmasın. */
html.stk-kip-acik { overflow: hidden; }

.stk-perde {
    position: absolute;
    inset: 0;
    background: radial-gradient(120% 90% at 50% 0%, rgba(24, 10, 4, .86) 0%, rgba(4, 6, 6, .93) 60%);
    -webkit-backdrop-filter: blur(7px) saturate(120%);
            backdrop-filter: blur(7px) saturate(120%);
    animation: stk-belir .22s ease-out;
}

/* --------------------------------------------------------------------------
   Panel
   Çerçeve gerçek bir kenarlık DEĞİL: degrade dolgulu bir katman (`::before`)
   maskeyle yalnız kenarda bırakılıyor. Böylece turuncu ışıltı köşelerde
   kesilmeden dönüyor; 1px'lik düz kenarlık aynı duyguyu vermiyordu.
   -------------------------------------------------------------------------- */
.stk-panel {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 980px;
    max-height: calc(100vh - 3rem);
    overflow: hidden auto;
    overscroll-behavior: contain;
    border-radius: 1.35rem;
    background:
        radial-gradient(90% 60% at 12% 0%, rgba(243, 122, 82, .13) 0%, rgba(243, 122, 82, 0) 55%),
        var(--stk-panel);
    box-shadow: 0 50px 120px -45px rgba(0, 0, 0, .95), 0 0 0 1px rgba(255, 255, 255, .05);
    scrollbar-width: thin;
    animation: stk-yuksel .34s cubic-bezier(.2, .8, .3, 1);
}
.stk-panel::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    padding: 1px;
    background: linear-gradient(135deg,
        rgba(253, 168, 113, .75) 0%,
        rgba(243, 122, 82, .45) 32%,
        rgba(255, 255, 255, .06) 55%,
        rgba(236, 56, 125, .35) 100%);
    -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
            mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
    -webkit-mask-composite: xor;
            mask-composite: exclude;
    pointer-events: none;
}

.stk-kapat {
    position: absolute;
    top: .9rem; right: .9rem;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px; height: 36px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, .2);
    background: rgba(10, 12, 12, .55);
    -webkit-backdrop-filter: blur(6px);
            backdrop-filter: blur(6px);
    cursor: pointer;
    transition: border-color .2s ease, background .2s ease, transform .2s ease;
}
.stk-kapat:hover { border-color: rgba(255, 255, 255, .5); background: rgba(255, 255, 255, .12); }
.stk-kapat svg { width: 15px; height: 15px; fill: none; stroke: #fff; stroke-width: 2; stroke-linecap: round; }

/* Izgara ALANLARLA kuruluyor: fayda listesi masaüstünde sol sütunun
   devamı, telefonda ise teklif kartının ALTINDA. İşaretlemede sol sütunun
   içinde dursaydı bu sıralama CSS ile yapılamazdı. */
.stk-govde {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr);
    grid-template-areas:
        "sol   sag"
        "fayda sag";
    align-content: start;
    gap: 0;
}
.stk-sol   { grid-area: sol; }
.stk-fayda { grid-area: fayda; }
.stk-sag   { grid-area: sag; }

/* --------------------------------------------------------------------------
   Sol sütun — anlatı
   -------------------------------------------------------------------------- */
.stk-sol { padding: 2rem 1.9rem 0 2.1rem; }

.stk-marka { display: block; margin-bottom: 1.4rem; }
.stk-marka img { display: block; height: 26px; width: auto; opacity: .95; }

.stk-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    padding: .3rem .75rem;
    border-radius: 999px;
    border: 1px solid rgba(243, 122, 82, .45);
    background: rgba(243, 122, 82, .12);
    color: #ffbe9c;
    font-size: .64rem;
    font-weight: 700;
    letter-spacing: .12em;
    text-transform: uppercase;
    line-height: 1;
}
.stk-eyebrow svg { width: 12px; height: 12px; fill: currentColor; stroke: none; }

.stk-baslik {
    margin: 1rem 0 0;
    color: #fff;
    font-size: clamp(1.5rem, 2.4vw, 2rem);
    font-weight: 800;
    line-height: 1.18;
    letter-spacing: -.02em;
}
.stk-baslik em {
    display: block;
    font-style: normal;
    background: linear-gradient(96deg, var(--stk-vurgu-acik) 0%, var(--stk-vurgu) 55%, var(--stk-vurgu-pembe) 100%);
    -webkit-background-clip: text;
            background-clip: text;
    -webkit-text-fill-color: transparent;
    color: var(--stk-vurgu-acik);
}

.stk-lead {
    margin: .8rem 0 0;
    color: #b8bfbf;
    font-size: .92rem;
    line-height: 1.7;
}
.stk-lead strong { color: #fff; font-weight: 700; }

/* İncelenen eğitimler — kişiselleştirme bloğu */
.stk-ilgi {
    margin-top: 1.35rem;
    padding: .95rem 1rem;
    border-radius: .85rem;
    border: 1px dashed rgba(253, 168, 113, .35);
    background: rgba(243, 122, 82, .06);
}
.stk-ilgi[hidden] { display: none; }
.stk-ilgi-baslik {
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    color: #ffbe9c;
    font-size: .68rem;
    font-weight: 700;
    letter-spacing: .09em;
    text-transform: uppercase;
}
.stk-ilgi-baslik svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.stk-cipler { display: flex; flex-wrap: wrap; gap: .4rem; margin-top: .65rem; }
.stk-cip {
    display: inline-flex;
    align-items: center;
    max-width: 100%;
    padding: .32rem .7rem;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, .14);
    background: rgba(255, 255, 255, .05);
    color: var(--stk-metin);
    font-size: .74rem;
    line-height: 1.35;
    /* Uzun ders adı çipi satır boyunca uzatmasın. */
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.stk-cip--sayi { border-style: dashed; color: var(--stk-sonuk); }
.stk-ilgi-not { margin: .6rem 0 0; color: var(--stk-sonuk); font-size: .74rem; line-height: 1.5; }
.stk-ilgi-not[hidden] { display: none; }

.stk-fayda {
    margin: 0;
    padding: 1.45rem 1.9rem 2rem 2.1rem;
    list-style: none;
    display: grid;
    align-content: start;
    gap: .6rem;
}
.stk-fayda li { display: grid; grid-template-columns: 20px minmax(0, 1fr); gap: .6rem; align-items: start; }
.stk-fayda svg {
    width: 17px; height: 17px; margin-top: .18rem;
    fill: none; stroke: #6ee7b7; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round;
}
.stk-fayda span { color: #c6cccc; font-size: .84rem; line-height: 1.55; }
.stk-fayda strong { color: #fff; font-weight: 700; }

/* --------------------------------------------------------------------------
   Sağ sütun — teklif kartı
   -------------------------------------------------------------------------- */
.stk-sag {
    padding: 1.5rem 1.5rem 1.5rem 0;
    display: flex;
}
.stk-teklif {
    flex: 1;
    display: flex;
    flex-direction: column;
    padding: 1.5rem 1.35rem 1.35rem;
    border-radius: 1.05rem;
    border: 1px solid var(--stk-cizgi);
    background:
        radial-gradient(120% 70% at 50% 0%, rgba(243, 122, 82, .10) 0%, rgba(243, 122, 82, 0) 60%),
        var(--stk-panel-ic);
}

/* Karşılaştırma — çapa fiyat üstte soluk ve üstü çizili, paket altta parlak */
.stk-hesap { display: grid; gap: .2rem; }
.stk-hesap-satir {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: .75rem;
    padding: .7rem .85rem;
    border-radius: .7rem;
}
.stk-hesap-satir--eski {
    border: 1px solid rgba(255, 255, 255, .07);
    background: rgba(255, 255, 255, .02);
}
.stk-hesap-satir--eski .stk-hesap-etiket { color: var(--stk-sonuk); font-size: .74rem; line-height: 1.4; }
.stk-hesap-satir--eski .stk-hesap-tutar {
    color: var(--stk-sonuk);
    font-size: .95rem;
    font-weight: 600;
    white-space: nowrap;
}
/* Üstü çizgi YALNIZCA tutar paketten büyükken (betik ekliyor): çizgi
   "bunun yerine şunu ödersiniz" demek, küçük tutarda paketi pahalı
   gösteriyor. */
.stk-hesap-satir--ustu-cizili .stk-hesap-tutar {
    text-decoration: line-through;
    text-decoration-color: rgba(236, 56, 125, .8);
}
.stk-hesap-ok { display: flex; justify-content: center; padding: .1rem 0; }
.stk-hesap-ok svg { width: 16px; height: 16px; fill: none; stroke: rgba(253, 168, 113, .75); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.stk-hesap-satir--yeni {
    border: 1px solid rgba(243, 122, 82, .38);
    background: linear-gradient(96deg, rgba(253, 168, 113, .14) 0%, rgba(243, 122, 82, .12) 50%, rgba(236, 56, 125, .12) 100%);
}
.stk-hesap-satir--yeni .stk-hesap-etiket { color: #ffd9c4; font-size: .76rem; font-weight: 600; line-height: 1.4; }
.stk-hesap-satir--yeni .stk-hesap-tutar {
    color: #fff;
    font-size: 1.45rem;
    font-weight: 800;
    letter-spacing: -.02em;
    white-space: nowrap;
}

/* Fark cümlesi — karşılaştırmanın altındaki tek satırlık kazanç ifadesi. */
.stk-fark {
    margin: .65rem 0 0;
    padding: .5rem .7rem;
    border-radius: .6rem;
    border: 1px dashed rgba(110, 231, 183, .3);
    background: rgba(110, 231, 183, .07);
    color: #b7e8d4;
    font-size: .78rem;
    font-weight: 600;
    line-height: 1.45;
    text-align: center;
}
.stk-fark[hidden] { display: none; }

.stk-birim {
    margin: .7rem 0 0;
    text-align: center;
    color: var(--stk-sonuk);
    font-size: .76rem;
    line-height: 1.5;
}
.stk-birim strong { color: #ffbe9c; font-weight: 700; }
.stk-birim span { display: block; }

/* Birincil eylem — sayfadaki sepet düğmesinin degradesi, dolu hâli */
.stk-cta {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: .6rem;
    margin-top: 1.1rem;
    padding: .95rem 1.1rem;
    border-radius: 999px;
    border: 1px solid rgba(253, 168, 113, .55);
    background: linear-gradient(96deg, #fda871 0%, #f37a52 48%, #ec387d 100%);
    box-shadow: 0 18px 34px -18px rgba(243, 122, 82, .9);
    color: #1a0d07 !important;
    font-size: .95rem;
    font-weight: 800;
    letter-spacing: -.01em;
    text-align: center;
    cursor: pointer;
    transition: transform .18s ease, box-shadow .25s ease, filter .2s ease;
}
.stk-cta:hover { transform: translateY(-1px); filter: brightness(1.06); box-shadow: 0 22px 40px -18px rgba(243, 122, 82, 1); }
.stk-cta:active { transform: translateY(0); }
.stk-cta-metin { display: inline-flex; align-items: center; gap: .5rem; }
.stk-cta svg { width: 18px; height: 18px; fill: none; stroke: #1a0d07; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.stk-cta-fiyat {
    padding: .2rem .6rem;
    border-radius: 999px;
    background: rgba(26, 13, 7, .16);
    font-size: .82rem;
    font-weight: 800;
    white-space: nowrap;
}
/* Bekleme durumu: düğme tıklandıktan sonra ikinci istek gitmesin. */
.stk-cta[aria-busy="true"] { pointer-events: none; filter: saturate(.6) brightness(.9); }

.stk-hata {
    margin: .7rem 0 0;
    padding: .6rem .75rem;
    border-radius: .6rem;
    border: 1px solid rgba(236, 56, 125, .4);
    background: rgba(236, 56, 125, .1);
    color: #ffc7dc;
    font-size: .78rem;
    line-height: 1.5;
}
.stk-hata[hidden] { display: none; }

.stk-vazgec {
    margin: .75rem 0 0;
    padding: .45rem;
    border: 0;
    background: none;
    color: var(--stk-sonuk);
    font-size: .78rem;
    text-decoration: underline;
    text-underline-offset: 3px;
    cursor: pointer;
    transition: color .2s ease;
}
.stk-vazgec:hover { color: var(--stk-metin); }

.stk-guven {
    margin: 1.05rem 0 0;
    padding: .9rem 0 0;
    border-top: 1px solid var(--stk-cizgi);
    list-style: none;
    display: grid;
    gap: .55rem;
}
.stk-guven li { display: grid; grid-template-columns: 18px minmax(0, 1fr); gap: .55rem; align-items: start; }
.stk-guven svg { width: 15px; height: 15px; margin-top: .12rem; fill: none; stroke: var(--stk-sonuk); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.stk-guven span { color: var(--stk-sonuk); font-size: .74rem; line-height: 1.5; }
.stk-guven strong { color: #c6cccc; font-weight: 700; }

.stk-giris-not {
    margin: .8rem 0 0;
    color: var(--stk-sonuk);
    font-size: .74rem;
    line-height: 1.55;
}

/* Kapsam dışı programlar tetiği — parçanın kendi biçemi public-ui.css'te,
   burada yalnız kip içindeki yerleşimi ayarlanıyor. */
.stk-kapsam { margin-top: .85rem; }
.stk-kapsam .fak-tetik { width: 100%; }

/* Odak halkası — kip açılınca odak betikle taşınıyor, tarayıcının mavi
   halkası paletin dışında kalıyor. */
.stk-kapat:focus-visible,
.stk-cta:focus-visible,
.stk-vazgec:focus-visible,
.stk-kapsam .fak-tetik:focus-visible {
    outline: 2px solid rgba(253, 168, 113, .9);
    outline-offset: 3px;
}

/* --------------------------------------------------------------------------
   Girişler
   -------------------------------------------------------------------------- */
@keyframes stk-belir { from { opacity: 0; } }
@keyframes stk-yuksel {
    from { opacity: 0; transform: translateY(16px) scale(.985); }
}
@keyframes stk-yaprak {
    from { transform: translateY(100%); }
}

/* İçerik sırayla beliriyor: göz önce başlığa, sonra tekliflere gidiyor.
   Yalnız iki kademe var — daha fazlası kipin açılışını yavaş gösteriyor. */
.stk-sol > *, .stk-fayda, .stk-teklif > * { animation: stk-icerik .45s ease-out backwards; }
.stk-fayda { animation-delay: .19s; }
.stk-sol > *:nth-child(1) { animation-delay: .04s; }
.stk-sol > *:nth-child(2) { animation-delay: .07s; }
.stk-sol > *:nth-child(3) { animation-delay: .10s; }
.stk-sol > *:nth-child(4) { animation-delay: .13s; }
.stk-sol > *:nth-child(5) { animation-delay: .16s; }
.stk-sol > *:nth-child(6) { animation-delay: .19s; }
.stk-teklif > *:nth-child(1) { animation-delay: .12s; }
.stk-teklif > *:nth-child(2) { animation-delay: .15s; }
.stk-teklif > *:nth-child(3) { animation-delay: .18s; }
@keyframes stk-icerik { from { opacity: 0; transform: translateY(8px); } }

/* --------------------------------------------------------------------------
   Dar ekran — alt sayfa (bottom sheet)
   -------------------------------------------------------------------------- */
@media screen and (max-width: 899px) {
    .stk-kip { padding: 0; align-items: flex-end; }
    .stk-panel {
        max-width: none;
        max-height: 92vh;
        border-radius: 1.25rem 1.25rem 0 0;
        animation: stk-yaprak .32s cubic-bezier(.2, .8, .3, 1);
    }
    .stk-govde {
        grid-template-columns: minmax(0, 1fr);
        grid-template-areas: "sol" "sag" "fayda";
    }
    .stk-sol { padding: 1.35rem 1.15rem .35rem; }
    .stk-fayda { padding: 0 1.15rem 1.5rem; }

    /* Telefonda TEK ÖLÇÜ önemli: "Sınırsız Erişimi Başlat" düğmesinin
       yaprağın ilk ekranında kalması. Ölçülen hâlde düğmenin üstünde 690px
       içerik vardı (yaprak 747px) — düğme katlamanın hemen altına düşüyordu.
       Aşağıdaki üç kısıtlama ~140px kazandırıyor; masaüstünde hiçbiri
       uygulanmıyor. */
    .stk-lead { font-size: .86rem; line-height: 1.6; }
    .stk-ilgi { padding: .75rem .85rem; }
    /* Çipler tek satırda, yanal kaydırmalı: sarıldıklarında üç satıra
       çıkıp 80px yiyorlardı. */
    .stk-cipler {
        flex-wrap: nowrap;
        overflow-x: auto;
        scrollbar-width: none;
        -webkit-overflow-scrolling: touch;
        padding-bottom: .15rem;
    }
    .stk-cipler::-webkit-scrollbar { display: none; }
    /* Sağ kenar silinerek bitiyor: şeridin devam ettiği, kesik bir çipten
       değil kasıtlı bir işaretten anlaşılsın. */
    .stk-cipler {
        -webkit-mask-image: linear-gradient(90deg, #000 84%, transparent 100%);
                mask-image: linear-gradient(90deg, #000 84%, transparent 100%);
    }
    .stk-cip { flex: 0 0 auto; max-width: 62vw; }
    /* Bu cümle masaüstünde bağlam veriyor, telefonda yalnız yer kaplıyor:
       çiplerin zaten pakete dâhil olduğu fayda listesinde de yazılı. */
    .stk-ilgi-not { display: none; }
    .stk-lead-ek { display: none; }
    .stk-hesap-satir { padding: .6rem .8rem; }
    /* "Eğitim başına yaklaşık 47 TL · 1 yıl…" masaüstünde iki satır,
       telefonda tek satır. */
    .stk-birim span { display: inline; }
    .stk-sol { padding-top: 1.1rem; }
    .stk-marka { margin-bottom: 1rem; }
    .stk-marka img { height: 22px; }
    .stk-sag { padding: 1.1rem 1.15rem 1.35rem; }
    .stk-teklif { padding: 1.2rem 1.1rem 1.15rem; }
    .stk-kapat { top: .7rem; right: .7rem; width: 34px; height: 34px; }
}

@media screen and (max-width: 420px) {
    .stk-baslik { font-size: 1.3rem; }
    .stk-cta { flex-direction: column; gap: .35rem; padding: .8rem 1rem; }
    /* Satırlar alt alta DİZİLMİYOR: etiket + tutar yan yana kalınca iki
       satır 30px daha az yer kaplıyor ve düğme ilk ekranda kalıyor. */
    .stk-hesap-satir--eski .stk-hesap-etiket,
    .stk-hesap-satir--yeni .stk-hesap-etiket { font-size: .71rem; }
    .stk-hesap-satir--eski .stk-hesap-tutar { font-size: .88rem; }
    .stk-hesap-satir--yeni .stk-hesap-tutar { font-size: 1.25rem; }
}

/* Masaüstünde teklif kartı sol sütun kadar UZUN, içeriği ise daha kısa:
   içerik dikeyde ortalanmazsa kartın altında 70px boşluk kalıyor ve kart
   yarım kalmış gibi duruyor. Telefonda kart zaten içeriğiyle aynı boyda,
   kural oraya girmiyor. */
@media screen and (min-width: 900px) {
    .stk-teklif { justify-content: center; }
}

/* Kısa ekran (yatay telefon, küçük dizüstü): panel taşmasın. */
@media screen and (max-height: 620px) and (min-width: 900px) {
    .stk-sol { padding: 1.5rem 1.5rem 1.5rem 1.6rem; }
    .stk-marka { margin-bottom: .9rem; }
    .stk-fayda { gap: .45rem; }
}

/* --------------------------------------------------------------------------
   Devinim tercihi
   -------------------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) and (prefers-reduced-motion: no-preference) /* ETKİSİZ: hareket azaltma yok sayılıyor */ {
    .stk-perde, .stk-panel, .stk-sol > *, .stk-teklif > * { animation: none !important; }
    .stk-cta { transition: none; }
    .stk-cta:hover { transform: none; }
}
