/* PWA kurulum çağrısı + iOS açıklama penceresi (2026-10-02). Çekmece (z 500), çerez şeridi (z 2100) ve bildirim
   penceresinin altında kalır; o katmanlar açıkken çağrı zaten gösterilmez. */
.acg-pwa {
  position: fixed; left: 12px; right: 12px; bottom: calc(12px + env(safe-area-inset-bottom, 0px)); z-index: 400;
  max-width: 480px; margin: 0 auto; box-sizing: border-box;
  display: grid; grid-template-columns: 48px minmax(0, 1fr) 44px; gap: 4px 12px; align-items: start;
  padding: 14px 10px 14px 14px; background: #fff; color: #0f1b2a;
  border: 1px solid #dfe6ee; border-radius: 16px; box-shadow: 0 12px 32px rgba(10, 37, 64, .18);
  font-family: Inter, system-ui, -apple-system, "Segoe UI", sans-serif;
}
.acg-pwa-ikon { width: 48px; height: 48px; border-radius: 12px; border: 1px solid #e6ecf2; object-fit: contain; background: #fff; }
.acg-pwa-metin { min-width: 0; }
.acg-pwa-baslik { margin: 2px 0 2px; font-size: 15px; font-weight: 800; line-height: 1.3; color: #0A3D62; overflow-wrap: anywhere; }
.acg-pwa-aciklama { margin: 0; font-size: 13px; line-height: 1.45; color: #4e5d6e; overflow-wrap: anywhere; }
.acg-pwa-dugmeler { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.acg-pwa-ana, .acg-pwa-ikincil {
  min-height: 44px; min-width: 44px; padding: 0 18px; border-radius: 12px; font: inherit; font-size: 14px; font-weight: 700; cursor: pointer;
}
.acg-pwa-ana { border: 0; background: #E67E22; color: #111; flex: 1 1 auto; }
.acg-pwa-ikincil { border: 1px solid #cfd9e3; background: #fff; color: #0A3D62; }
.acg-pwa-kapat {
  width: 44px; height: 44px; flex: 0 0 44px; display: inline-flex; align-items: center; justify-content: center;
  border: 0; border-radius: 10px; background: transparent; color: #4e5d6e; cursor: pointer; margin: -8px -4px 0 0;
}
.acg-pwa button:focus-visible, .acg-pwa-zemin button:focus-visible { outline: 3px solid #0A3D62; outline-offset: 2px; }
.acg-pwa-ana:focus-visible { outline-color: #0A2540; }
/* Çağrı açıkken sayfanın son öğeleri kartın altında kalmasın. */
html.acg-pwa-acik #root main { padding-bottom: 168px; }
/* Masaüstünde hiç görünmez (betik de göstermez; ikinci güvence). */
@media (min-width: 1024px) { .acg-pwa { display: none; } }

.acg-pwa-zemin {
  position: fixed; inset: 0; z-index: 2200; background: rgba(10, 20, 35, .56);
  display: flex; align-items: flex-end; justify-content: center; padding: 12px; padding-bottom: calc(12px + env(safe-area-inset-bottom, 0px));
}
.acg-pwa-pencere {
  width: 100%; max-width: 480px; max-height: calc(100vh - 24px); overflow-y: auto; box-sizing: border-box;
  background: #fff; color: #0f1b2a; border-radius: 18px; padding: 18px 18px 20px;
  font-family: Inter, system-ui, -apple-system, "Segoe UI", sans-serif;
}
.acg-pwa-pencere-ust { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.acg-pwa-pencere h2 { margin: 6px 0 12px; font-size: 18px; line-height: 1.35; color: #0A3D62; }
.acg-pwa-adimlar { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.acg-pwa-adimlar li { display: flex; gap: 12px; align-items: flex-start; font-size: 15px; line-height: 1.5; }
.acg-pwa-no {
  flex: 0 0 28px; height: 28px; border-radius: 50%; background: #e8f0f7; color: #0A3D62; font-weight: 800;
  display: inline-flex; align-items: center; justify-content: center; font-size: 14px;
}
.acg-pwa-adim svg { vertical-align: -4px; color: #0A3D62; }
.acg-pwa-not { margin: 14px 0 0; font-size: 13px; line-height: 1.5; color: #4e5d6e; }
.acg-pwa-pencere .acg-pwa-ana { width: 100%; margin-top: 16px; }
@media (prefers-reduced-motion: no-preference) {
  .acg-pwa { animation: acg-pwa-gir .24s ease-out; }
  @keyframes acg-pwa-gir { from { transform: translateY(12px); opacity: 0; } to { transform: none; opacity: 1; } }
}
