/* Hat Ata PWA — Dark theme, iOS app ile birebir */
@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@400;500;600;700&display=swap');

:root {
  --primary: #0057FF;
  --primary-light: #4A9EFF;
  --primary-dark: #002478;
  --success: #22C55E;
  --warning: #F59E0B;
  --error: #EF4444;
  --bg: #0D0D0D;
  --surface: #1A1A1A;
  --surface-2: #2A2A2A;
  --text: #FFFFFF;
  --text-muted: #888888;
  --border: rgba(255,255,255,0.08);
}

* { box-sizing: border-box; margin: 0; padding: 0; -webkit-tap-highlight-color: transparent; }
html, body { height: 100%; overscroll-behavior: none; }
body {
  font-family: 'Outfit', -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--bg);
  color: var(--text);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  padding: 0 env(safe-area-inset-right) env(safe-area-inset-bottom) env(safe-area-inset-left);
}

.app { max-width: 480px; margin: 0 auto; height: 100vh; height: 100dvh; display: flex; flex-direction: column; overflow: hidden; }

/* Gradient header */
.gradient-bg {
  background: linear-gradient(135deg, #4A9EFF 0%, #0057FF 50%, #002478 100%);
}

.page { display: none; flex: 1; flex-direction: column; padding: 24px; padding-top: calc(env(safe-area-inset-top) + 15vh); animation: fadeIn 0.25s ease; overflow-y: auto; -webkit-overflow-scrolling: touch; position: relative; }
html, body, .app { overflow: hidden; scrollbar-width: none; -ms-overflow-style: none; }
html::-webkit-scrollbar, body::-webkit-scrollbar, .app::-webkit-scrollbar, .page::-webkit-scrollbar { display: none; }
.page.active { display: flex; }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

/* Ad banner */
.ad-banner {
  position: fixed; top: env(safe-area-inset-top); left: 50%; transform: translateX(-50%);
  width: 100%; max-width: 480px; height: 15vh; z-index: 10;
  overflow: hidden; background: var(--bg);
}
/* v1.34.29 — #adContent boyut + relative context (video full doldursun, mute button absolute doğru konumlansın) */
.ad-banner #adContent { width: 100%; height: 100%; position: relative; }
/* v1.34.25 — Video için cover (alanı tam doldursun, küçük kalmasın), img için contain (kırpılmasın) */
.ad-banner img { width: 100%; height: 100%; object-fit: contain; }
.ad-banner video { width: 100%; height: 100%; object-fit: cover; }
/* v1.34.28 — Video ses aç/kapat toggle butonu (sağ ALT köşe, parmakla rahat: 48px Apple HIG touch target, blur'lu) */
/* v1.34.31 — pointer-events: auto !important (YouTube iframe parent pointer-events:none override) */
.ad-mute-toggle {
  position: absolute; bottom: 10px; right: 10px; z-index: 3;
  width: 48px; height: 48px; border: none; border-radius: 50%;
  background: rgba(0,0,0,0.6); color: white; font-size: 22px;
  cursor: pointer; padding: 0; line-height: 1;
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  display: flex; align-items: center; justify-content: center;
  transition: background 0.15s, transform 0.1s;
  box-shadow: 0 2px 6px rgba(0,0,0,0.25);
  pointer-events: auto !important;
}
.ad-mute-toggle:hover { background: rgba(0,0,0,0.75); }
.ad-mute-toggle:active { transform: scale(0.92); }
/* v1.34.33 — YouTube native kontroller AÇIK + üst başlığı gizlemek için iframe ÜZERİNE overlay div'leri (mask yerine cross-browser çözüm) */
.ad-banner iframe {
  width: 100%; height: 100%; border: none;
}
/* Üst başlık perdesi (title overlay'i gizler, kontrolleri etkilemez) */
.ad-banner::before {
  content: '';
  position: absolute; top: 0; left: 0; right: 0;
  height: 38px;
  background: linear-gradient(to bottom, var(--bg) 80%, transparent 100%);
  z-index: 2;
  pointer-events: none;
}
/* Sağ-alt köşe perdesi (YouTube watermark + "Diğer videolar" end-card için) */
.ad-banner::after {
  content: '';
  position: absolute; bottom: 30px; right: 0;
  width: 90px; height: 50%;
  background: linear-gradient(to top left, var(--bg) 30%, transparent 100%);
  z-index: 2;
  pointer-events: none;
}
.ad-placeholder {
  width: 100%; height: 100%; display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, var(--surface), var(--surface-2));
  font-size: 24px; color: var(--text-muted);
}

/* Splash */
#splash { align-items: center; text-align: center; gap: 16px; }
.logo {
  width: 120px; height: 120px; border-radius: 30px;
  background: linear-gradient(135deg, #4A9EFF, #0057FF, #002478);
  display: flex; align-items: center; justify-content: center;
  font-size: 68px; font-weight: 700; color: white;
  box-shadow: 0 20px 60px rgba(0,87,255,0.35);
}
.title { font-size: 32px; font-weight: 700; margin-top: 16px; }
.subtitle { font-size: 15px; color: var(--text-muted); }

/* Buttons */
/* v1.31.96 — Global tap kuralı: button, a, [role=button], .clickable, .tap-target
   tüm clickable element'lere iOS Safari/PWA tap fix uygulanır. */
button, a, [role="button"], .clickable, .tap-target {
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
  -webkit-user-select: none;
  user-select: none;
}

/* v1.31.96 — Görünmez katmanlar (hidden, opacity:0, aria-hidden, data-hidden) tıklamayı YUTAMASIN.
   Klasik bug: opacity:0 modal/loader/overlay görünmez ama tıklamayı yakalıyor. */
.invisible,
.hidden-layer,
.overlay-hidden,
[data-hidden="true"],
[aria-hidden="true"] {
  pointer-events: none !important;
}

.btn {
  width: 100%; padding: 18px 24px; border-radius: 16px; border: none;
  font-family: inherit; font-size: 17px; font-weight: 600;
  cursor: pointer; transition: transform 0.1s, box-shadow 0.2s;
  display: flex; align-items: center; justify-content: center; gap: 8px;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
  -webkit-user-select: none;
  user-select: none;
  /* v1.31.94 — Buton DAİMA üst katmanda kalsın. */
  position: relative;
  z-index: 1;
}
.btn-primary {
  background: linear-gradient(135deg, #4A9EFF, #0057FF);
  color: white; box-shadow: 0 8px 24px rgba(0,87,255,0.3);
}
.btn:active:not(:disabled) { transform: scale(0.95); opacity: 0.85; }
.btn-secondary {
  background: var(--surface); color: var(--text); border: 1px solid var(--border);
}
.btn-ghost { background: transparent; color: var(--text-muted); }
.btn:disabled { opacity: 0.5; cursor: not-allowed; }
.btn.loading { pointer-events: none; opacity: 0.7; }

/* Inputs */
.field { margin-bottom: 16px; }
.field label { display: block; font-size: 13px; color: var(--text-muted); margin-bottom: 8px; font-weight: 500; }
.input {
  width: 100%; padding: 16px; border-radius: 12px;
  background: var(--surface); border: 1px solid var(--border);
  color: var(--text); font-family: inherit; font-size: 16px;
}
.input:focus { outline: none; border-color: var(--primary); }
.input.error { border-color: var(--error); }

/* Checkbox */
.checkbox { display: flex; align-items: flex-start; gap: 10px; margin-bottom: 12px; cursor: pointer; font-size: 14px; color: var(--text-muted); }
.checkbox input { width: 20px; height: 20px; flex-shrink: 0; accent-color: var(--primary); margin-top: 2px; }
.checkbox a { color: var(--primary-light); text-decoration: none; }
.checkbox.required { color: var(--text); }

/* OTP grid */
.otp-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 6px; margin: 24px 0; }
.otp-digit {
  width: 100%; min-width: 0; padding: 0;
  height: 56px; text-align: center; font-size: 22px; font-weight: 700;
  background: var(--surface); border: 2px solid var(--border);
  border-radius: 10px; color: var(--text); font-family: inherit;
  -webkit-appearance: none; appearance: none;
  box-sizing: border-box;
}
.otp-digit:focus { outline: none; border-color: var(--primary); }

/* Packages */
/* v1.25.13 — padding-bottom: son paket kartı sticky "Devam Et" butonunun gölgesinden tamamen kurtulur.
   Sticky btn shadow upward reach ≈ 40px + btn margin-top 16px = 56px toplam — 60px padding ferah gap bırakır. */
.pkg-list { display: flex; flex-direction: column; gap: 10px; margin-top: 12px; padding-bottom: 60px; }
.pkg-card {
  background: var(--surface); border: 2px solid var(--border);
  border-radius: 14px; padding: 12px 16px; cursor: pointer;
  display: flex; justify-content: space-between; align-items: center;
  transition: border-color 0.2s;
}
.pkg-card:active { transform: scale(0.99); }
.pkg-card.selected { border-color: var(--primary); background: rgba(0,87,255,0.08); }
.pkg-name { font-size: 17px; font-weight: 600; }
.pkg-uses { font-size: 13px; color: var(--text-muted); margin-top: 4px; }
.pkg-tags { display: flex; gap: 6px; margin-top: 6px; flex-wrap: wrap; }
.pkg-tag { font-size: 11px; padding: 2px 8px; border-radius: 6px; background: var(--surface-2); color: var(--text-muted); }
.pkg-price { text-align: right; }
.pkg-price-new { font-size: 22px; font-weight: 700; color: var(--primary-light); }
.pkg-price-old { font-size: 13px; color: var(--text-muted); text-decoration: line-through; }

/* Banner (kişiye özel indirim) */
.banner {
  background: linear-gradient(135deg, rgba(34,197,94,0.15), rgba(34,197,94,0.05));
  border: 1px solid rgba(34,197,94,0.3);
  border-radius: 16px; padding: 16px; margin-bottom: 16px;
  display: flex; gap: 12px; align-items: center; justify-content: center; text-align: center;
}
.banner-icon { font-size: 28px; }
.banner-text { font-size: 14px; }
.banner-title { font-weight: 600; color: var(--success); }

/* IMEI status bar (eSIM flow) — v1.25.4: SIM kart formu + kesik köşede devam eden border */
.imei-bar {
  display: flex; gap: 60px;
  justify-content: center;
  margin-top: 8px; margin-bottom: 32px;
  background: transparent; padding: 0;
}

/* v1.31.18 — Wrapper: filter drop-shadow ile SILUETE göre glow (clip-path notch takip eder, siyah yuvarlak artifact yok) */
.imei-slot-wrap {
  display: block;
  width: 131px;           /* 105 × 1.25 (%25 büyüme) */
  aspect-ratio: 5 / 3;    /* 131 × 78.6 */
  position: relative;
  transition: opacity 0.25s, filter 0.25s;
}
.imei-slot-wrap.active {
  /* Multi drop-shadow: iOS Safari'de 2 katmana kadar sorunsuz (siluet takip eder) */
  filter:
    drop-shadow(0 0 3px rgba(34,197,94,1))
    drop-shadow(0 0 10px rgba(34,197,94,0.55));
}
.imei-slot-wrap.empty {
  opacity: 0.55;
  filter: drop-shadow(0 4px 8px rgba(0,0,0,0.4));
}

/* Slot — wrapper'ın tam içinde, clip-path ile SIM silueti */
.imei-slot {
  width: 100%; height: 100%;
  box-sizing: border-box;
  padding: 8px 8px 8px 40px;
  position: relative;
  display: flex; flex-direction: column; justify-content: center; align-items: center;
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 14px), calc(100% - 14px) 100%, 0 100%);
  background: #c8c8c8;
  transition: opacity 0.2s;
}

/* İç dolgu — beyaz SIM gövdesi */
.imei-slot::after {
  content: '';
  position: absolute;
  top: 1.5px; left: 1.5px; right: 1.5px; bottom: 1.5px;
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 13px), calc(100% - 13px) 100%, 0 100%);
  background: linear-gradient(180deg, #ffffff 0%, #ededed 100%);
  z-index: 0;
}

/* Altın çip — SVG desen, proportional */
.imei-slot::before {
  content: '';
  position: absolute;
  top: 50%; left: 8px;
  transform: translateY(-50%);
  width: 27px; height: 24px;
  background: url('/icons/sim-chip.svg') center / contain no-repeat;
  z-index: 2;
}

.imei-slot > * { position: relative; z-index: 2; }
.imei-slot-num {
  font-size: 10px; font-weight: 700; letter-spacing: 0.5px; text-transform: uppercase;
  color: #666; text-align: center; width: 100%;
}
.imei-slot-val {
  font-size: 12px; font-weight: 700;
  color: #111; text-align: center; width: 100%;
  margin-top: 2px;
}

/* BOŞ — v1.30.27: yeşil glow yok, filter kaldırıldı */
.imei-slot.empty {
  opacity: 0.25;
  filter: none;
}

/* Step card */
.step-card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 20px; padding: 24px; margin-bottom: 40px; /* v1.30.13: alt menü/badge ile boşluk */
}
.step-num {
  display: inline-block; background: rgba(0,87,255,0.18); color: var(--primary-light);
  padding: 8px 18px; border-radius: 999px; font-size: 18px; font-weight: 700;
  margin-bottom: 14px; letter-spacing: 0.2px;
}
.step-title { font-size: 22px; font-weight: 700; margin-bottom: 8px; }
.step-desc { font-size: 14px; color: var(--text-muted); margin-bottom: 16px; line-height: 1.5; }

.warning-card {
  background: rgba(245,158,11,0.1); border: 1px solid rgba(245,158,11,0.3);
  border-radius: 12px; padding: 12px; font-size: 13px; color: #FCD34D;
  margin-bottom: 16px; display: flex; gap: 8px;
}
.guide-card {
  background: rgba(245,158,11,0.1); border: 1px solid rgba(245,158,11,0.3);
  border-radius: 12px; padding: 12px; font-size: 13px; color: #FCD34D;
  margin-bottom: 16px;
}
.guide-card p { margin: 0 0 8px 0; line-height: 1.5; }
.guide-media { width: 100%; border-radius: 8px; overflow: hidden; }
.guide-media:empty { display: none; }

/* v1.34.42 — Eski eSIM temizlik uyarı ekranı (1. adım öncesi zorunlu) */
.cleanup-instructions { display: flex; flex-direction: column; gap: 14px; margin: 16px 0; }
.cleanup-step { display: flex; gap: 12px; align-items: flex-start; font-size: 14px; line-height: 1.5; color: var(--text); }
.cleanup-num {
  flex-shrink: 0; width: 26px; height: 26px; border-radius: 50%;
  background: var(--primary); color: white; font-size: 13px; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
}
.cleanup-checkbox {
  display: flex; gap: 12px; align-items: flex-start; padding: 14px;
  background: rgba(255,255,255,0.04); border: 1px solid rgba(255,255,255,0.12);
  border-radius: 10px; margin: 16px 0; cursor: pointer; font-size: 14px; line-height: 1.4;
  color: var(--text); user-select: none;
}
.cleanup-checkbox input { margin-top: 2px; flex-shrink: 0; transform: scale(1.3); accent-color: var(--primary); cursor: pointer; }
.cleanup-checkbox:has(input:checked) { background: rgba(0,87,255,0.08); border-color: rgba(0,87,255,0.4); }
.guide-media img { width: 100%; height: auto; display: block; border-radius: 8px; }

/* Header — akıştan çıkar, page-content tam ortalansın. v1.24.9: reklam alanı ile aralık 12px → 32px (yanlış tıklama önleme) */
.header { padding: 0; display: flex; justify-content: space-between; align-items: center; position: absolute; top: calc(env(safe-area-inset-top) + 15vh + 32px); left: 24px; right: 24px; z-index: 5; }
.page-content { margin-top: auto; margin-bottom: auto; }
/* Kanun 8: üst/alt boşluk oranı 1/3 — içerik yukarıda ağırlıklı (SABİT sayfalarda) */
/* v1.31.94 — pointer-events: none KRİTİK: pseudo-elementler boş alan dolduruyor ama DOM'da
   görünmez bir katman olarak tıklamayı yutuyordu. Özellikle register sayfasında ::after
   alt %75'i kapladığı için Kaydı Tamamla butonu yakınındaki dokunuşları "ilk tıklama" olarak
   yutup butona ulaştırmıyordu (kullanıcının "1. tıklama almıyor 2-3'de geçti" sorununun kök sebebi). */
.page::before { content: ''; flex: 1; pointer-events: none; }
.page::after { content: ''; flex: 3; pointer-events: none; }

/* v1.24.3 — Uzun içerikli (taşan) sayfalar için opt-in: 1/3 oranı devre dışı, dikey scroll aktif.
   Yataya kayma YASAK (.app overflow: hidden), sadece aşağı scroll. */
.page--scrollable::before,
.page--scrollable::after { display: none; }
.page--scrollable .page-content { margin-top: 0; margin-bottom: 0; }
.page--scrollable { padding-bottom: calc(env(safe-area-inset-bottom) + 24px); }

/* v1.24.4 — Uzun sayfalarda header'ı akışa al (ilk paketle çakışma önlenir)
   v1.24.9: reklam alanı ile arasına 32px mesafe (diğer sayfalardaki absolute header ile eşit) */
.page--scrollable .header {
  position: relative;
  top: auto; left: auto; right: auto;
  margin-top: 32px;
  margin-bottom: 16px;
}
.header-title { font-size: 15px; font-weight: 600; }
.header-link { font-size: 14px; color: var(--primary-light); cursor: pointer; }

/* Progress */
.progress-ring { display: flex; flex-direction: column; align-items: center; gap: 4px; margin: 24px 0; }
.progress-ring-num { font-size: 72px; font-weight: 700; }
.progress-ring-label { font-size: 15px; color: var(--text-muted); }

.success-check {
  width: 100px; height: 100px; border-radius: 50%;
  background: rgba(34,197,94,0.15); display: flex; align-items: center; justify-content: center;
  margin: 24px auto; font-size: 56px; color: var(--success);
}

/* Loader */
.spinner {
  width: 32px; height: 32px; border: 3px solid rgba(255,255,255,0.1);
  border-top-color: var(--primary); border-radius: 50%;
  animation: spin 0.8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* v1.24.8 — Buton loading durumu: içerik gizlenir, merkezde yuvarlak spinner döner, tıklama kapalı */
.btn.loading {
  pointer-events: none;
  position: relative;
  color: transparent !important;
  opacity: 0.85;
}
.btn.loading::after {
  content: '';
  position: absolute;
  left: 50%; top: 50%;
  width: 20px; height: 20px;
  margin-left: -10px; margin-top: -10px;
  border: 2px solid rgba(255,255,255,0.3);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}

/* Info tip (mavi açıklama kutusu) */
.info-tip {
  background: rgba(0,87,255,0.08);
  border: 1px solid rgba(0,87,255,0.25);
  border-radius: 12px; padding: 12px 14px; margin-top: 16px;
  font-size: 13px; line-height: 1.5; color: var(--text);
}

/* Promo card (paket kartı benzeri, daha küçük) */
.promo-card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 14px; padding: 14px; margin-top: 12px;
  display: flex; align-items: center; gap: 10px;
}
.promo-card input {
  flex: 1; min-width: 0; padding: 12px 14px; border-radius: 10px;
  background: var(--bg); border: 1px solid var(--border);
  color: var(--text); font-family: inherit; font-size: 15px;
  letter-spacing: 1px;
}
.promo-card input:focus { outline: none; border-color: var(--primary); }
.promo-card .apply-btn {
  padding: 12px 18px; border-radius: 10px; border: none;
  background: var(--primary); color: white; font-family: inherit;
  font-size: 14px; font-weight: 600; cursor: pointer; white-space: nowrap;
}
.promo-toggle {
  display: flex; align-items: center; gap: 8px;
  padding: 14px; background: var(--surface); border: 1px solid var(--border);
  border-radius: 14px; cursor: pointer; margin-top: 16px;
  color: var(--primary-light); font-size: 15px; font-weight: 500;
}
.promo-toggle .chev { margin-left: auto; color: var(--text-muted); }

/* Payment method cards */
.pay-methods { display: flex; flex-direction: column; gap: 10px; margin-top: 16px; }
.pay-method {
  background: var(--surface); border: 2px solid var(--border);
  border-radius: 14px; padding: 16px; cursor: pointer;
  display: flex; gap: 12px; align-items: center;
}
.pay-method.selected { border-color: var(--primary); background: rgba(0,87,255,0.08); }
.pay-method .icon { font-size: 28px; }
.pay-method .info { flex: 1; }
.pay-method .name { font-weight: 600; font-size: 15px; }
.pay-method .desc { font-size: 12px; color: var(--text-muted); margin-top: 2px; }

/* File upload */
.file-drop {
  border: 2px dashed var(--border); border-radius: 14px;
  padding: 30px; text-align: center; cursor: pointer;
  transition: border-color 0.2s;
}
.file-drop:hover { border-color: var(--primary); }
.file-drop.has-file { border-color: var(--success); background: rgba(34,197,94,0.05); }
.file-drop input { display: none; }
.bank-info {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 12px; padding: 16px; margin: 16px 0;
  font-size: 14px; line-height: 1.8;
}
.bank-info .row-flex { display: flex; justify-content: space-between; gap: 8px; }
.bank-info .label { color: var(--text-muted); }
.bank-info .val { font-weight: 600; font-family: monospace; }
.copy-btn {
  background: var(--primary); color: white; border: none; padding: 4px 10px;
  border-radius: 6px; font-size: 11px; cursor: pointer; margin-left: 8px;
}

.hidden { display: none !important; }
.text-center { text-align: center; }
.text-muted { color: var(--text-muted); }
.mt-2 { margin-top: 8px; }
.mt-4 { margin-top: 16px; }
.mt-6 { margin-top: 24px; }
.mb-2 { margin-bottom: 8px; }
.mb-4 { margin-bottom: 16px; }
.space-between { display: flex; justify-content: space-between; align-items: center; }

/* v1.31.17 — KVKK modal iOS sheet tarzı */
.modal-overlay {
  position: fixed; inset: 0; background: rgba(0,0,0,0.4);
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
  display: flex; align-items: flex-end; z-index: 100;
  animation: fadeIn 0.22s;
}
.modal {
  background: var(--surface); width: 100%; max-width: 480px; margin: 0 auto;
  border-top-left-radius: 20px; border-top-right-radius: 20px;
  padding: 24px; max-height: 80vh; overflow-y: auto;
  box-shadow: 0 -20px 60px rgba(0,0,0,0.5);
  animation: slideUp 0.3s cubic-bezier(.2,.9,.3,1);
}
@keyframes slideUp { from { transform: translateY(100%) } to { transform: translateY(0) } }
.modal h2 { margin-bottom: 16px; }
.modal p { font-size: 14px; color: var(--text-muted); margin-bottom: 12px; line-height: 1.6; }

/* Toast */
.nowrap { white-space: nowrap; }

/* v1.31.16 — iOS native alert tarzı: geniş, 14px radius, ortalanmış başlık, yeşil/kırmızı ton */
/* v1.31.49 — Apple bildirim stili (kırık krem zemin + yumuşak border, daha büyük) */
.toast {
  position: fixed; top: 50%; left: 50%;
  transform: translate(-50%, -50%) scale(0.96);
  width: 340px; max-width: 90%;
  padding: 26px 28px; border-radius: 16px;
  background: rgba(245, 245, 247, 0.96);
  -webkit-backdrop-filter: blur(30px) saturate(180%);
  backdrop-filter: blur(30px) saturate(180%);
  border: 1px solid rgba(0,0,0,0.06);
  color: #1C1C1E; font-size: 18px; font-weight: 600;
  text-align: center; line-height: 1.4; letter-spacing: -0.01em;
  z-index: 9999;
  box-shadow: 0 24px 60px rgba(0,0,0,0.35), 0 2px 8px rgba(0,0,0,0.2);
  opacity: 1; pointer-events: none;
  transition: opacity .22s ease, transform .22s cubic-bezier(.2,.9,.3,1.2);
}
.toast:not(.hidden) { opacity: 1; transform: translate(-50%, -50%) scale(1); }
.toast.success { background: rgba(245, 245, 247, 0.96); color: #1C1C1E; border-color: rgba(34,197,94,0.45); }
.toast.error   { background: rgba(245, 245, 247, 0.96); color: #1C1C1E; border-color: rgba(239,68,68,0.45); }

/* v1.31.17 — iOS native alert stilinde askConfirm modal'ı (confirm() yerine) */
.confirm-modal {
  position: fixed; inset: 0; z-index: 10000;
  background: rgba(0,0,0,0.4);
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
  display: flex; align-items: center; justify-content: center;
  opacity: 0; pointer-events: none;
  transition: opacity .2s ease;
}
.confirm-modal:not(.hidden) { opacity: 1; pointer-events: auto; }
.confirm-card {
  width: 300px; max-width: 86%;
  background: rgba(245, 245, 247, 0.96);
  -webkit-backdrop-filter: blur(30px) saturate(180%);
  backdrop-filter: blur(30px) saturate(180%);
  border-radius: 14px; overflow: hidden;
  box-shadow: 0 24px 60px rgba(0,0,0,0.45);
  transform: scale(0.92);
  transition: transform .22s cubic-bezier(.2,.9,.3,1.2);
}
.confirm-modal:not(.hidden) .confirm-card { transform: scale(1); }
.confirm-body-wrap { padding: 20px 20px 18px; text-align: center; color: #1C1C1E; }
.confirm-title { font-size: 16px; font-weight: 600; margin: 0 0 6px; line-height: 1.3; letter-spacing: -0.01em; }
.confirm-body { font-size: 13px; font-weight: 400; color: #333; line-height: 1.4; margin: 0; white-space: pre-wrap; }
.confirm-body:empty { display: none; }
.confirm-buttons { display: flex; border-top: 1px solid rgba(0,0,0,0.1); }
.confirm-btn {
  flex: 1; padding: 11px 8px; background: transparent; border: none;
  font-size: 16px; font-family: inherit; color: #007AFF; cursor: pointer; font-weight: 400;
  min-height: 44px;
}
.confirm-btn:active { background: rgba(0,0,0,0.06); }
.confirm-btn.primary { font-weight: 600; }
.confirm-btn.danger { color: #EF4444; font-weight: 600; }
.confirm-btn + .confirm-btn { border-left: 1px solid rgba(0,0,0,0.1); }

/* ─── Push Notification Banner ─── */
.push-banner {
  display: flex;
  align-items: center;
  gap: 12px;
  background: linear-gradient(135deg, rgba(74,158,255,0.12), rgba(0,87,255,0.08));
  border: 1px solid rgba(74,158,255,0.25);
  padding: 12px 14px;
  border-radius: 12px;
  margin-top: 16px;
  cursor: pointer;
  transition: background 0.2s, transform 0.1s;
}
.push-banner:hover { background: linear-gradient(135deg, rgba(74,158,255,0.2), rgba(0,87,255,0.15)); }
.push-banner:active { transform: scale(0.98); }
.push-banner-icon { font-size: 22px; }
.push-banner-text { flex: 1; text-align: left; }
.push-banner-title { font-weight: 600; font-size: 14px; color: var(--text); }
.push-banner-sub { font-size: 12px; color: var(--text-muted); margin-top: 2px; line-height: 1.4; }

/* ─── Versiyon Etiketi ─── */
.version-badge {
  position: fixed;
  bottom: calc(env(safe-area-inset-bottom, 0px) + 10px);
  left: 0;
  right: 0;
  text-align: center;
  font-size: 11px;
  color: rgba(255,255,255,0.35);
  font-family: monospace;
  letter-spacing: 0.5px;
  pointer-events: none;
  z-index: 5;
}

/* ─── Sticky buton (paketler + ödeme sayfası) — v1.25.5: tam opaque + gölgeli ayırıcı ─── */
.btn.sticky-btn {
  position: sticky;
  bottom: calc(env(safe-area-inset-bottom, 0px) + 12px);
  margin-top: 16px;
  z-index: 10;
  /* Üste doğru büyük yumuşak gölge — alttan kayan içerik buton arkasında belirsizleşir */
  box-shadow: 0 -16px 24px -12px var(--bg), 0 8px 32px rgba(0,87,255,0.35);
}

/* Küçük ekran için paket kartları kompakt */
@media (max-width: 390px) {
  .pkg-list .pkg-card { padding: 14px 16px !important; }
  .pkg-list .pkg-card .pkg-name { font-size: 15px; }
  .pkg-list .pkg-card .pkg-price { font-size: 18px; }
  .pkg-list .pkg-card .pkg-desc { font-size: 11px; }
  .promo-card { padding: 10px; }
  .promo-card input { font-size: 14px; padding: 10px 12px; }
  .promo-card .apply-btn { padding: 10px 14px; font-size: 13px; }
}

/* v1.34.82 — stepAddToHome full-screen, ölü alan yok, scroll yok, carousel maksimum alana yayılır */
/* v1.34.84 — !important ile force-addtohome'un display:block'unu yen (HTML element class'ı specificity nedeniyle override ediyordu) */
/* v1.34.90 — Başlık kaldırıldı, padding-top sadece safe-area-inset-top (dinamik ada altı), padding sıfır kenarlar — ekran görüntüsü tepeye yapışır */
html.force-addtohome #stepAddToHome.step-card:not(.hidden),
html #stepAddToHome.step-card:not(.hidden) {
  position: fixed !important;
  inset: 0 !important;
  width: 100vw !important;
  height: 100vh !important;
  height: 100dvh !important;
  margin: 0 !important;
  padding: 0 !important;
  padding-top: env(safe-area-inset-top) !important;
  padding-bottom: env(safe-area-inset-bottom) !important;
  border-radius: 0 !important;
  border: none !important;
  overflow: hidden !important;
  display: flex !important;
  flex-direction: column !important;
  z-index: 1000 !important;
  background: var(--surface, #1a1a1a) !important;
  max-width: none !important;
}

/* v1.34.80 — stepAddToHome carousel: tek ekran, otomatik geçiş + tap pulse animasyonu */
/* v1.34.82 — flex: 1 ile maksimum alana yayılır */
/* v1.34.83 — flex 1 1 0 + min-height 0 (görsel sıfır alan almasın garantisi) */
/* v1.34.90 — margin 0: stage doğrudan dinamik ada altından başlar, üstte boşluk yok */
.howto-stage {
  position: relative;
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 0;
  flex: 1 1 0;
  min-height: 0; /* flex shrink için kritik */
}
.howto-frame {
  position: absolute;
  inset: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.45s ease;
}
.howto-frame.active {
  opacity: 1;
  pointer-events: auto;
}
/* v1.34.82 — aspect-ratio ile sabit konteyner: img tam birebir, pulse % gerçek görsel piksellere maps eder */
/* v1.34.83 — defansif: max-height 100% ile flex shrink, fallback object-fit contain */
.howto-img-wrap {
  position: relative;
  display: block;
  height: 100%;
  max-height: 100%;
  aspect-ratio: 1179 / 2556; /* iPhone screenshot native oranı (KANUN: image_original_size) */
  margin: 0 auto;
  max-width: 100%;
}
.howto-img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain; /* aspect-ratio destek farkı için fallback */
  border-radius: 18px;
  /* v1.34.92 — Beyaz 3D efekti: keskin kenar + yumuşak dış parıltı + derin gölge (gri/gri ayrımı için) */
  box-shadow:
    0 0 0 1px rgba(255,255,255,0.22),       /* keskin beyaz kenar (1px ring) */
    0 0 28px rgba(255,255,255,0.14),        /* yumuşak dış beyaz parıltı */
    0 18px 36px rgba(0,0,0,0.6),            /* derin gölge — yer çekimi */
    0 6px 14px rgba(0,0,0,0.4);             /* yakın gölge — ekrandan kaldırma */
  border: 1px solid rgba(255,255,255,0.18);
  background: #000;
}

/* v1.34.88 — Kullanıcının verdiği finger.webp kullanılıyor (transparent PNG, image içinde rings çizili)
   Parmak ucu image içinde ~%20 X, %12.5 Y konumunda → tx/ty'ye birebir maps */
.tap-pulse {
  position: absolute;
  top: var(--ty, 50%);
  left: var(--tx, 50%);
  pointer-events: none;
  z-index: 2;
  /* No transform — anchor (tx, ty) = wrap'ın (0, 0) noktası, image fingertip'e offset uygulanır */
}
/* v1.34.93 — Hand wrap: img + num beraber, ortak scale animasyonu (numara hand ile birlikte büyür/küçülür) */
.tap-hand {
  position: absolute;
  top: -19px;
  left: -22px;
  width: 110px;
  /* Scale fingertip (image içi %20/%12.5) etrafında — parmak ucu sabit, hand ve num birlikte ölçeklenir */
  transform-origin: 20% 12.5%;
  animation: tap-finger-pulse 2.2s cubic-bezier(.4,0,.6,1) infinite;
}
.tap-finger {
  display: block;
  width: 100%;
  height: auto;
  filter: drop-shadow(0 6px 12px rgba(0,0,0,0.45));
  user-select: none;
  -webkit-user-drag: none;
}
.tap-num {
  position: absolute;
  /* Elin geniş kısmı (back of hand) ~ wrap'ın %60 X / %55 Y noktası */
  top: 55%;
  left: 60%;
  transform: translate(-50%, -50%);
  background: #007AFF;
  color: #fff;
  border-radius: 999px;
  min-width: 30px;
  height: 30px;
  padding: 0 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 17px;
  box-shadow: 0 3px 10px rgba(0,0,0,0.6), 0 0 0 2px rgba(255,255,255,0.35);
  z-index: 3;
  /* Kendi animasyonu YOK — parent .tap-hand'in scale'i ile birlikte büyür/küçülür */
}
/* "Yaklaşıp tıklıyor" — fingertip sabit, hand scale + Y bounce */
/* v1.34.89 — daha yumuşak: amplitudu daralt, geçişler arası daha kademeli */
@keyframes tap-finger-pulse {
  0%   { transform: scale(0.94); }
  35%  { transform: scale(1.08); } /* yaklaşıyor (büyür) — yumuşak */
  55%  { transform: scale(0.97); } /* tıklıyor (kompres) — hafif */
  75%  { transform: scale(1.04); } /* kalkıyor — hafif */
  100% { transform: scale(0.94); }
}

/* Caption + counter */
.howto-caption-wrap {
  position: relative;
  min-height: 50px;
  margin: 4px 0 6px;
  text-align: center;
  flex-shrink: 0;
}
.howto-counter {
  display: inline-block;
  font-size: 12px;
  font-weight: 600;
  color: #00C2FF;
  background: rgba(0,194,255,0.1);
  border: 1px solid rgba(0,194,255,0.25);
  border-radius: 999px;
  padding: 3px 10px;
  margin-bottom: 8px;
  letter-spacing: 0.04em;
}
.howto-caption {
  position: absolute;
  left: 0; right: 0;
  top: 32px;
  margin: 0;
  font-size: 15px;
  line-height: 1.5;
  color: #ddd;
  opacity: 0;
  transform: translateY(4px);
  transition: opacity 0.35s ease, transform 0.35s ease;
}
.howto-caption.active {
  opacity: 1;
  transform: translateY(0);
}
.howto-caption b { color: #fff; }

/* Controls */
/* v1.34.91 — Butonlar arası boşluk arttırıldı (yanlış tıklama önlemi) */
/* v1.34.94 — %50 büyük + daha solid beyaz ton + frosted glass + üst seviye aynı (align-items: flex-start) */
.howto-controls {
  display: flex;
  justify-content: center;
  align-items: flex-start; /* Buton üst seviyesi sabit, büyüme aşağı doğru */
  gap: 56px;
  margin-top: 6px;
  flex-shrink: 0;
}
.howto-ctrl {
  width: 66px; height: 66px; /* 44 → 66, %50 büyük */
  border-radius: 50%;
  /* Daha solid beyaz: arkayı az gösterir, frosted glass efekti */
  background: rgba(255,255,255,0.22);
  -webkit-backdrop-filter: blur(14px) saturate(150%);
  backdrop-filter: blur(14px) saturate(150%);
  border: 1.5px solid rgba(255,255,255,0.5);
  color: #fff;
  font-size: 32px;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background 0.18s ease, transform 0.12s ease;
  -webkit-tap-highlight-color: transparent;
  box-shadow: 0 4px 14px rgba(0,0,0,0.35), inset 0 1px 0 rgba(255,255,255,0.4);
}
.howto-ctrl:active {
  background: rgba(255,255,255,0.32);
  transform: scale(0.94);
}
.howto-ctrl.howto-play { font-size: 22px; }
