/* Satın alma akışı (2026-11-23): app/checkout.php (ziyaretçi + üye), app/payment-success.php.
   Görsel dil yeni.css ile aynı: ziyaretçi sayfası anasayfa girişinin açık zemininde (body.auth-page.sa-sayfa),
   üye sayfası panelin mor gökyüzünde (.sa-kutu--panel). Bütün kurallar html.yeni önekli. */

/* ── Ziyaretçi sayfası iskeleti ── */
html.yeni body.sa-sayfa { align-items: stretch; justify-content: flex-start; gap: 18px; padding-top: 26px; }
html.yeni .sa-sayfa .auth-logo { align-self: flex-start; }
html.yeni .sa-sayfa .auth-ana { align-self: center; }
html.yeni .sa-kutu { width: 100%; max-width: 1060px; margin: 0 auto; display: grid; gap: 16px; }
html.yeni .sa-izgara { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, .92fr); gap: clamp(16px, 2.2vw, 26px); align-items: start; }
html.yeni .sa-sayfa .sa-form { max-width: none; }
html.yeni .sa-sayfa .sa-form h1 { font-size: clamp(1.7rem, 3vw, 2.15rem); }
html.yeni .sa-sayfa .sa-form .lead { margin: 0 0 18px; font-size: 14.5px; line-height: 1.55; }

/* ── Adımlar: 1 Hesap · 2 Güvenli ödeme · 3 Bilgileriniz ── */
html.yeni .sa-adimlar {
  list-style: none; display: flex; flex-wrap: wrap; justify-content: center; gap: 4px;
  width: fit-content; max-width: 100%; margin: 0 auto; padding: 5px; border-radius: 999px;
  background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.2);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
}
html.yeni .sa-adimlar li { display: flex; align-items: center; gap: 8px; padding: 5px 14px 5px 5px; border-radius: 999px; font-size: 13.5px; font-weight: 700; color: rgba(255,255,255,.7); }
html.yeni .sa-no { display: grid; place-items: center; flex: none; width: 26px; height: 26px; border-radius: 50%; font-size: 12.5px; font-weight: 800; color: #fff; background: rgba(255,255,255,.16); }
html.yeni .sa-no svg { width: 14px; height: 14px; fill: none; stroke: #fff; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
html.yeni .sa-adimlar li.is-simdi { color: #fff; background: rgba(255,255,255,.16); }
html.yeni .sa-adimlar li.is-simdi .sa-no { background: var(--sicak); box-shadow: 0 6px 14px -6px rgba(255,90,170,.9); }
html.yeni .sa-adimlar li.is-tamam .sa-no { background: var(--nane); }
html.yeni .sa-sayfa .sa-adimlar { background: linear-gradient(180deg, rgba(255,255,255,.66), rgba(255,255,255,.42)); border-color: rgba(255,255,255,.8); box-shadow: 0 12px 30px -16px rgba(76,48,160,.35); }
html.yeni .sa-sayfa .sa-adimlar li { color: rgba(27,17,69,.62); }
html.yeni .sa-sayfa .sa-adimlar li .sa-no { color: var(--murekkep); background: rgba(27,17,69,.1); }
html.yeni .sa-sayfa .sa-adimlar li.is-simdi { color: var(--murekkep); background: rgba(255,255,255,.8); }
html.yeni .sa-sayfa .sa-adimlar li.is-simdi .sa-no, html.yeni .sa-sayfa .sa-adimlar li.is-tamam .sa-no { color: #fff; }

/* ── Paket değiştirme şeridi ── */
html.yeni .sa-paketler { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); gap: 10px; width: 100%; max-width: 760px; margin: 0 auto; }
html.yeni .sa-paket {
  display: flex; flex-direction: column; justify-content: center; gap: 2px; min-height: 60px; padding: 10px 14px;
  border-radius: 18px; text-align: center; text-decoration: none; color: #fff;
  background: rgba(255,255,255,.08); border: 1.5px solid rgba(255,255,255,.22);
  transition: background .2s, border-color .2s, box-shadow .2s, transform .2s;
}
html.yeni .sa-paket b { font-size: 15px; font-weight: 800; letter-spacing: -.01em; line-height: 1.2; }
html.yeni .sa-paket small { font-size: 12.5px; font-weight: 650; color: rgba(255,255,255,.76); }
html.yeni .sa-paket:hover { transform: translateY(-1px); border-color: rgba(255,255,255,.5); }
html.yeni .sa-paket.is-secili { background: linear-gradient(170deg, rgba(104,66,226,.9), rgba(66,34,170,.92)); border-color: #ffc4ec; box-shadow: 0 0 0 3px rgba(255,125,199,.28), 0 16px 30px -18px rgba(40,10,120,.9); }
html.yeni .sa-paket.is-secili small { color: #ffd6f2; }
html.yeni .sa-paket:focus-visible { outline: 3px solid #fff; outline-offset: 2px; }
html.yeni .sa-sayfa .sa-paket:not(.is-secili) { color: var(--murekkep); background: linear-gradient(180deg, rgba(255,255,255,.62), rgba(255,255,255,.4)); border-color: rgba(255,255,255,.8); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); }
html.yeni .sa-sayfa .sa-paket:not(.is-secili) small { color: rgba(27,17,69,.66); }

/* ── Form ── */
html.yeni .sa-mini { display: flex; align-items: center; gap: 12px; margin: 8px 0 16px; padding: 12px 15px; border-radius: 16px; background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.2); }
html.yeni .sa-mini b { display: block; color: #fff; font-size: 15px; font-weight: 800; }
html.yeni .sa-mini small { display: block; margin-top: 2px; color: var(--yazi-acik); font-size: 13px; font-weight: 600; }
html.yeni .sa-alan { display: block; margin: 0 0 14px; }
html.yeni .sa-alan > span:first-child { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; margin-bottom: 7px; }
html.yeni .sa-alan small { font-size: 12px; font-weight: 600; color: rgba(255,255,255,.6); }
html.yeni .sa-alan .input { width: 100%; font-size: 15.5px; padding: 13px 15px; }
html.yeni .sa-sifre { position: relative; display: block; }
html.yeni .sa-sifre .input { padding-right: 88px; }
html.yeni .sa-goster {
  position: absolute; right: 7px; top: 50%; transform: translateY(-50%);
  padding: 7px 12px; border: 0; border-radius: 999px; cursor: pointer;
  font: 700 12.5px/1 inherit; font-family: inherit; color: #fff; background: rgba(255,255,255,.14);
}
html.yeni .sa-goster:hover { background: rgba(255,255,255,.24); }
html.yeni .sa-goster:focus-visible { outline: 2px solid #fff; outline-offset: 1px; }
html.yeni .sa-devam { width: 100%; margin-top: 6px; }
html.yeni .sa-devam svg { width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; transition: transform .2s; }
html.yeni .sa-devam:hover svg { transform: translateX(3px); }
html.yeni .sa-devam.is-bekle { opacity: .8; cursor: progress; }
html.yeni .sa-devam.is-bekle svg { animation: sa-itme .8s ease-in-out infinite; }
@keyframes sa-itme { 50% { transform: translateX(5px); } }
html.yeni .sa-kosul { margin: 12px 0 0; text-align: center; font-size: 12px; line-height: 1.55; color: rgba(255,255,255,.66); }
html.yeni .sa-kosul a, html.yeni .sa-hesapla a, html.yeni .sa-form .alert a { color: #ffd0f0; font-weight: 750; }
html.yeni .sa-guven { list-style: none; display: grid; gap: 9px; margin: 18px 0 0; padding: 16px 0 0; border-top: 1px solid rgba(255,255,255,.16); }
html.yeni .sa-guven li { display: flex; align-items: flex-start; gap: 10px; font-size: 13px; line-height: 1.45; color: var(--yazi-acik); }
html.yeni .sa-guven svg { flex: none; width: 18px; height: 18px; margin-top: 1px; fill: none; stroke: #ffc4ec; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
html.yeni .sa-sonra { margin: 14px 0 0; padding: 11px 13px; border-radius: 14px; font-size: 12.5px; line-height: 1.5; color: var(--yazi-acik); background: rgba(255,255,255,.07); }

/* ── Paket kartı (anasayfadaki kartın aynısı, CTA'sız) ── */
html.yeni .sa-ozet .sa-kart { grid-template-columns: 1fr; margin: 0; }
html.yeni .sa-ozet .bp-plan:hover { transform: none; }
/* Açık, görselli zeminde kart formla aynı yoğunlukta: arkadaki görsel yazıları bozmasın. */
html.yeni .sa-sayfa .sa-ozet .bp-plan {
  background:
    linear-gradient(155deg, rgba(255,255,255,.2) 0%, rgba(255,255,255,.05) 46%, rgba(255,255,255,.09) 100%),
    linear-gradient(170deg, rgba(92,58,210,.84), rgba(58,30,150,.88));
  border-color: rgba(255,255,255,.3);
  -webkit-backdrop-filter: blur(22px) saturate(160%); backdrop-filter: blur(22px) saturate(160%);
}
html.yeni .sa-politika { margin: 12px 0 0; padding: 12px 15px; border-radius: 16px; font-size: 12.5px; line-height: 1.55; color: var(--murekkep); background: linear-gradient(180deg, rgba(255,255,255,.66), rgba(255,255,255,.44)); border: 1px solid rgba(255,255,255,.8); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); }
html.yeni .sa-politika a { color: #5b3df5; font-weight: 750; }

/* ── Üye ödeme sayfası (panel içinde) ── */
html.yeni .sa-kutu--panel { max-width: 1060px; }
html.yeni .sa-kutu--panel .sa-form { margin: 0; }
html.yeni .sa-odeme h2 { margin-top: 0; }
html.yeni .sa-toplam { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin: 16px 0 0; padding: 14px 16px; border-radius: 16px; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.18); }
html.yeni .sa-toplam span { font-size: 12px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: #ffbde9; }
html.yeni .sa-toplam b { font-size: 28px; font-weight: 800; letter-spacing: -.03em; color: #fff; }
html.yeni .sa-hesapla { margin: 14px 0 0; font-size: 13px; color: var(--yazi-acik); }
html.yeni .sa-kucuk { margin: 10px 0 0; font-size: 12px; line-height: 1.55; }
html.yeni .sa-geri { margin: 2px 0 0; text-align: center; }
html.yeni .sa-hosgeldin { margin: 0 0 18px; text-align: center; }
html.yeni .sa-hosgeldin h2 { margin: 16px 0 4px; color: #fff; font-size: clamp(1.4rem, 2.6vw, 1.8rem); letter-spacing: -.02em; }
html.yeni .sa-hosgeldin p { max-width: 560px; margin: 0 auto; color: var(--yazi-acik); }
html.yeni .bp-section > .sa-guven { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }

/* ── Ödeme dönüşü ── */
html.yeni .sa-adim-orta { margin: 18px 0 4px; }
html.yeni .sa-sonraki { margin: 18px 0 0; color: #fff; font-size: 19px; font-weight: 800; letter-spacing: -.01em; }
html.yeni .sonuc .sa-devam { width: auto; min-width: min(100%, 280px); padding: 15px 30px; font-size: 15.5px; }

/* ── Telefon ── */
@media (max-width: 860px) {
  html.yeni .sa-izgara { grid-template-columns: 1fr; }
  html.yeni body.sa-sayfa { gap: 14px; }
  html.yeni .sa-sayfa .auth-logo { align-self: center; }
}
@media (max-width: 520px) {
  html.yeni .sa-adimlar li { padding-right: 10px; font-size: 12.5px; gap: 6px; }
  html.yeni .sa-adimlar li:not(.is-simdi) span:last-child { display: none; }
  html.yeni .sa-adimlar li:not(.is-simdi) { padding-right: 5px; }
  html.yeni .sa-paketler { gap: 7px; }
  html.yeni .sa-paket { min-height: 56px; padding: 9px 6px; border-radius: 15px; }
  html.yeni .sa-paket b { font-size: 13.5px; }
  html.yeni .sa-paket small { font-size: 11.5px; }
}
@media (prefers-reduced-motion: reduce) {
  html.yeni .sa-paket, html.yeni .sa-devam svg { transition: none; }
  html.yeni .sa-devam.is-bekle svg { animation: none; }
}
