/* ==========================================================================
   PAPARA INVEST - PWA ULTRA MODERN UI (OFFICIAL BRAND PALETTE)
   Birebir https://paparainvest.com/ kurumsal renkleri, tipografisi ve buton yapısı:
   - Zemin: #FAFAFA / #FFFFFF
   - Ana Başlık & Vurgular: #000000 / #080B0E
   - Alt Metinler: #687385 / #8B959E
   - Butonlar: #080B0E (Siyah) üzeri #FFFFFF, Hover: #1E232A
   - Aksan / Güven: Mint Yeşili #00D084 / #9BE9C6
   - Kart & Kenarlıklar: #FFFFFF zemin, #EAEDF1 kenarlık
   ========================================================================== */

:root {
  --bg-page: #f8f9fb;
  --bg-card: #ffffff;
  --bg-subtle: #f1f4f8;
  --bg-input: #f8fafc;
  
  --text-primary: #000000;
  --text-heading: #080b0e;
  --text-secondary: #687385;
  --text-muted: #8b959e;
  
  /* Papara Invest Resmi Buton Renkleri */
  --btn-black: #080b0e;
  --btn-black-hover: #1e242d;
  --btn-black-active: #000000;
  --btn-shadow: rgba(0, 12, 45, 0.12);
  
  /* Mint Yeşili Vurgu */
  --accent-mint: #00d084;
  --accent-mint-soft: #e6f9f2;
  --accent-mint-border: #b3f0d8;

  --border-light: #eaedf1;
  --border-subtle: #e2e8f0;

  --card-radius: 28px;
  --btn-radius: 9999px;
  --font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --transition: all 0.22s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-tap-highlight-color: transparent;
}

html, body {
  width: 100%;
  min-height: 100%;
  background-color: var(--bg-page);
  color: var(--text-primary);
  font-family: var(--font-family);
  overflow-x: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

/* Arka plan mikro desen ve yumuşak ışık */
.ambient-glow {
  position: fixed;
  top: -10%;
  left: 50%;
  transform: translateX(-50%);
  width: 650px;
  height: 650px;
  background: radial-gradient(circle, rgba(0, 208, 132, 0.08) 0%, rgba(248, 249, 251, 0) 70%);
  z-index: 0;
  pointer-events: none;
  filter: blur(50px);
}

.ambient-glow-bottom {
  position: fixed;
  bottom: -15%;
  left: 50%;
  transform: translateX(-50%);
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(8, 11, 14, 0.04) 0%, rgba(248, 249, 251, 0) 70%);
  z-index: 0;
  pointer-events: none;
  filter: blur(60px);
}

/* Ana Sarmalayıcı */
.pwa-wrapper {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 480px;
  min-height: 100vh;
  padding: 32px 20px 48px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
}

/* Header */
.pwa-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 24px;
  text-align: center;
}

.brand-logo-container {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 16px;
  margin-bottom: 12px;
}

.brand-logo-img {
  height: 46px;
  width: auto;
  max-width: 210px;
  object-fit: contain;
}

.brand-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  background: #ffffff;
  border: 1px solid var(--border-light);
  border-radius: 9999px;
  font-size: 0.78rem;
  font-weight: 600;
  color: #1e293b;
  letter-spacing: 0.02em;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.badge-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: var(--accent-mint);
  box-shadow: 0 0 10px rgba(0, 208, 132, 0.8);
  animation: pulse-dot 2s infinite ease-in-out;
}

@keyframes pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.6; transform: scale(0.85); }
}

/* Ana Kart */
.pwa-card {
  width: 100%;
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--card-radius);
  padding: 36px 24px 30px;
  box-shadow: 0 20px 50px -10px rgba(0, 12, 45, 0.08),
              0 0 1px 1px rgba(0, 12, 45, 0.03);
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  overflow: hidden;
}

/* Başlık Grubu */
.pwa-title-group {
  text-align: center;
  margin-bottom: 24px;
}

.pwa-title-main {
  font-size: 2.3rem;
  font-weight: 900;
  line-height: 1.12;
  letter-spacing: -0.03em;
  text-transform: uppercase;
  color: var(--text-heading);
}

.pwa-title-highlight {
  display: block;
  color: var(--text-primary);
  position: relative;
}

.pwa-title-highlight::after {
  content: '';
  display: block;
  width: 60px;
  height: 4px;
  background: var(--accent-mint);
  border-radius: 4px;
  margin: 6px auto 0;
}

.pwa-description {
  font-size: 1.05rem;
  line-height: 1.45;
  color: #1e293b;
  font-weight: 700;
  margin-top: 14px;
  max-width: 380px;
}

.pwa-sub-description {
  font-size: 0.88rem;
  line-height: 1.55;
  color: var(--text-secondary);
  margin-top: 8px;
  max-width: 380px;
}

/* Butonlar Alanı */
.pwa-actions {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-top: 14px;
}

/* Temel Buton Stili */
.pwa-btn {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 13px 18px;
  min-height: 64px;
  border-radius: 20px;
  background: linear-gradient(180deg, #161822 0%, #0a0b10 100%);
  border: 1px solid rgba(0, 0, 0, 0.4);
  color: #ffffff;
  font-family: inherit;
  text-decoration: none;
  cursor: pointer;
  box-shadow: 0 6px 18px rgba(0, 12, 45, 0.1), inset 0 1px 0 rgba(255, 255, 255, 0.12);
  transition: var(--transition);
  user-select: none;
  position: relative;
  overflow: hidden;
}

.pwa-btn::after {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 50%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.08), transparent);
  transform: skewX(-20deg);
  transition: 0.5s ease;
}

.pwa-btn:hover::after {
  left: 150%;
}

.pwa-btn:active {
  transform: translateY(1px) scale(0.985);
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.2);
}

/* Buton İçi Sol Alan (İkon + Metinler) */
.pwa-btn-left {
  display: flex;
  align-items: center;
  gap: 14px;
}

/* Platform İkon Yuvarlakları */
.pwa-btn-icon {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: var(--transition);
}

.pwa-btn-icon svg {
  width: 20px;
  height: 20px;
  fill: currentColor;
}

/* Buton Metin Grubu */
.pwa-btn-texts {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
  gap: 2px;
}

.pwa-btn-text {
  font-weight: 800;
  font-size: 0.94rem;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: #ffffff;
  line-height: 1.2;
}

.pwa-btn-sub {
  font-size: 0.73rem;
  font-weight: 500;
  color: #94a3b8;
  letter-spacing: 0.01em;
  line-height: 1.2;
}

/* Sağ Ok Dairesi */
.pwa-btn-arrow-circle {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: #cbd5e1;
  transition: transform 0.22s ease, background 0.22s ease, color 0.22s ease;
}

.pwa-btn-arrow-circle svg {
  width: 16px;
  height: 16px;
  stroke: currentColor;
  stroke-width: 2.2;
}

.pwa-btn:hover .pwa-btn-arrow-circle {
  transform: translateX(3px);
  background: rgba(255, 255, 255, 0.16);
  color: #ffffff;
}

/* 1. WINDOWS İÇİN ÖZEL ŞIK STİL */
.pwa-btn-windows {
  background: linear-gradient(180deg, #151926 0%, #0a0d16 100%);
  border: 1px solid rgba(0, 164, 239, 0.25);
  box-shadow: 0 6px 18px rgba(0, 120, 212, 0.1), inset 0 1px 0 rgba(255, 255, 255, 0.12);
}

.pwa-btn-windows .icon-windows {
  background: linear-gradient(135deg, rgba(0, 164, 239, 0.22), rgba(0, 164, 239, 0.06));
  border: 1px solid rgba(0, 164, 239, 0.4);
  color: #38bdf8;
}

.pwa-btn-windows:hover {
  background: linear-gradient(180deg, #1a2033 0%, #0d1222 100%);
  border-color: rgba(0, 164, 239, 0.6);
  box-shadow: 0 10px 26px rgba(0, 164, 239, 0.25);
  transform: translateY(-2px);
}

.pwa-btn-windows:hover .icon-windows {
  background: linear-gradient(135deg, rgba(0, 164, 239, 0.35), rgba(0, 164, 239, 0.12));
  color: #60a5fa;
  transform: scale(1.05);
}

/* 2. ANDROID İÇİN ÖZEL ŞIK STİL */
.pwa-btn-android {
  background: linear-gradient(180deg, #131d17 0%, #09120c 100%);
  border: 1px solid rgba(34, 197, 94, 0.25);
  box-shadow: 0 6px 18px rgba(34, 197, 94, 0.1), inset 0 1px 0 rgba(255, 255, 255, 0.12);
}

.pwa-btn-android .icon-android {
  background: linear-gradient(135deg, rgba(34, 197, 94, 0.22), rgba(34, 197, 94, 0.06));
  border: 1px solid rgba(34, 197, 94, 0.4);
  color: #4ade80;
}

.pwa-btn-android:hover {
  background: linear-gradient(180deg, #17261d 0%, #0b1810 100%);
  border-color: rgba(34, 197, 94, 0.6);
  box-shadow: 0 10px 26px rgba(34, 197, 94, 0.25);
  transform: translateY(-2px);
}

.pwa-btn-android:hover .icon-android {
  background: linear-gradient(135deg, rgba(34, 197, 94, 0.35), rgba(34, 197, 94, 0.12));
  color: #22c55e;
  transform: scale(1.05);
}

/* 3. IOS İÇİN ÖZEL ŞIK STİL */
.pwa-btn-ios {
  background: linear-gradient(180deg, #1c1e28 0%, #0d0f15 100%);
  border: 1px solid rgba(255, 255, 255, 0.15);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.12), inset 0 1px 0 rgba(255, 255, 255, 0.12);
}

.pwa-btn-ios .icon-ios {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.16), rgba(255, 255, 255, 0.05));
  border: 1px solid rgba(255, 255, 255, 0.25);
  color: #ffffff;
}

.pwa-btn-ios:hover {
  background: linear-gradient(180deg, #242735 0%, #11131c 100%);
  border-color: rgba(255, 255, 255, 0.4);
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.25);
  transform: translateY(-2px);
}

.pwa-btn-ios:hover .icon-ios {
  transform: scale(1.05);
  background: rgba(255, 255, 255, 0.24);
}

/* 4. HEMEN BAŞLA / DOĞRUDAN GİT (Papara Invest Kontrast Stili) */
.pwa-btn-direct {
  background: #ffffff;
  border: 2px solid #080b0e;
  color: #080b0e;
  box-shadow: 0 4px 16px rgba(0, 12, 45, 0.06);
}

.pwa-btn-direct .pwa-btn-text {
  color: #080b0e;
}

.pwa-btn-direct .icon-direct {
  background: #080b0e;
  color: #00d084;
}

.pwa-btn-direct .pwa-btn-arrow-circle {
  background: #f1f4f8;
  border-color: #e2e8f0;
  color: #080b0e;
}

.pwa-btn-direct:hover {
  background: #080b0e;
  border-color: #080b0e;
  transform: translateY(-2px);
  box-shadow: 0 10px 25px rgba(0, 12, 45, 0.15);
}

.pwa-btn-direct:hover .pwa-btn-text {
  color: #ffffff;
}

.pwa-btn-direct:hover .pwa-btn-sub {
  color: #94a3b8 !important;
}

.pwa-btn-direct:hover .icon-direct {
  background: rgba(255, 255, 255, 0.15);
  color: #00d084;
  transform: scale(1.05);
}

.pwa-btn-direct:hover .pwa-btn-arrow-circle {
  background: rgba(255, 255, 255, 0.18);
  color: #ffffff;
}

.pwa-btn-direct:hover .pwa-btn-icon {
  background: rgba(255, 255, 255, 0.2);
  color: #ffffff;
}

.pwa-btn-direct:hover .pwa-btn-arrow {
  color: #ffffff;
}

/* Güven & Özellik Kartları */
.pwa-features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  width: 100%;
  margin-top: 26px;
}

.pwa-feature-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 14px 8px;
  background: var(--bg-subtle);
  border: 1px solid var(--border-light);
  border-radius: 16px;
  transition: var(--transition);
}

.pwa-feature-item:hover {
  border-color: #cbd5e1;
  background: #eef2f6;
}

.pwa-feature-icon {
  width: 28px;
  height: 28px;
  margin-bottom: 6px;
  color: var(--btn-black);
  display: flex;
  align-items: center;
  justify-content: center;
}

.pwa-feature-title {
  font-size: 0.74rem;
  font-weight: 700;
  color: #0f172a;
  letter-spacing: -0.01em;
}

.pwa-feature-desc {
  font-size: 0.66rem;
  color: var(--text-secondary);
  margin-top: 2px;
}

/* Footer Bilgilendirme */
.pwa-footer {
  margin-top: 24px;
  text-align: center;
  font-size: 0.74rem;
  color: var(--text-muted);
  line-height: 1.5;
  max-width: 400px;
}

/* ==========================================================================
   MODAL / KURULUM REHBERLERİ (IOS, ANDROID, WINDOWS)
   ========================================================================== */

.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.6);
  backdrop-filter: blur(6px);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.22s ease;
}

.modal-backdrop.is-active {
  opacity: 1;
  pointer-events: auto;
}

.modal-sheet {
  background: #ffffff;
  border: 1px solid var(--border-light);
  border-radius: 24px;
  width: 100%;
  max-width: 440px;
  box-shadow: 0 25px 60px rgba(0, 12, 45, 0.2);
  padding: 24px 20px 20px;
  transform: translateY(16px) scale(0.97);
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
}

.modal-backdrop.is-active .modal-sheet {
  transform: translateY(0) scale(1);
}

/* Modal Başlık Çubuğu */
.modal-top-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}

.modal-native-title {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--text-heading);
  letter-spacing: -0.01em;
}

.modal-close-btn {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #f1f5f9;
  border: none;
  color: #64748b;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 1.25rem;
  line-height: 1;
  transition: var(--transition);
}

.modal-close-btn:hover {
  background: #e2e8f0;
  color: #0f172a;
}

/* Uygulama Önizleme Kartı (Native Diyalog Havası) */
.modal-native-app-card {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 16px;
  background: #f8fafc;
  border: 1px solid var(--border-light);
  border-radius: 16px;
  margin-bottom: 18px;
}

.modal-native-icon-wrap {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 5px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
  flex-shrink: 0;
}

.modal-native-icon {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 10px;
}

.modal-native-meta {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.modal-native-name {
  font-size: 1.05rem;
  font-weight: 800;
  color: #080b0e;
  letter-spacing: -0.01em;
}

.modal-native-domain {
  font-size: 0.78rem;
  font-weight: 500;
  color: #64748b;
}

/* Alt Butonlar (Yükle / İptal) */
.modal-native-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 18px;
  padding-top: 14px;
  border-top: 1px solid var(--border-light);
}

.btn-native-cancel {
  padding: 9px 20px;
  border-radius: 9999px;
  background: #f1f5f9;
  border: 1px solid #e2e8f0;
  color: #475569;
  font-weight: 700;
  font-size: 0.88rem;
  cursor: pointer;
  transition: var(--transition);
}

.btn-native-cancel:hover {
  background: #e2e8f0;
  color: #0f172a;
}

.btn-native-install {
  padding: 9px 24px;
  border-radius: 9999px;
  background: #080b0e;
  border: 1px solid #080b0e;
  color: #ffffff;
  font-weight: 700;
  font-size: 0.88rem;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
  transition: var(--transition);
}

.btn-native-install:hover {
  background: #1e242d;
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
}

.modal-header-icon {
  width: 46px;
  height: 46px;
  border-radius: 14px;
  background: #f1f4f8;
  border: 1px solid var(--border-light);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #080b0e;
  flex-shrink: 0;
}

.modal-header-icon svg {
  width: 24px;
  height: 24px;
}

.modal-title {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--text-heading);
}

.modal-subtitle {
  font-size: 0.82rem;
  color: var(--text-secondary);
}

/* Rehber Adımları */
.guide-steps {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 20px;
}

.guide-step {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  background: var(--bg-subtle);
  border: 1px solid var(--border-light);
  border-radius: 16px;
  padding: 14px 16px;
}

.step-number {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--btn-black);
  color: #ffffff;
  font-size: 0.82rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.step-content {
  flex: 1;
}

.step-heading {
  font-size: 0.92rem;
  font-weight: 700;
  color: #0f172a;
  margin-bottom: 3px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.step-icon-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 2px 7px;
  border-radius: 6px;
  background: #ffffff;
  border: 1px solid #cbd5e1;
  color: #0f172a;
  font-size: 0.76rem;
  font-weight: 700;
}

.step-text {
  font-size: 0.82rem;
  color: var(--text-secondary);
  line-height: 1.45;
}

/* iOS Safari Mockup */
.ios-safari-preview {
  margin-top: 10px;
  padding: 14px;
  background: #ffffff;
  border-radius: 14px;
  border: 1px solid var(--border-light);
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.safari-bottom-bar-mock {
  display: flex;
  justify-content: space-around;
  align-items: center;
  padding: 10px 8px;
  background: #f8fafc;
  border-radius: 12px;
  border: 1px solid var(--border-light);
}

.safari-action-highlight {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  color: #0284c7;
  position: relative;
  padding: 5px 10px;
  border-radius: 8px;
  background: #e0f2fe;
  border: 1.5px dashed #0284c7;
  animation: pulse-border 1.8s infinite;
}

@keyframes pulse-border {
  0%, 100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(2, 132, 199, 0.3); }
  50% { transform: scale(1.03); box-shadow: 0 0 10px rgba(2, 132, 199, 0.4); }
}

.safari-action-highlight span {
  font-size: 0.68rem;
  font-weight: 800;
}

/* Standalone Splash Overlay */
.standalone-splash {
  position: fixed;
  inset: 0;
  background: #ffffff;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 30px;
  text-align: center;
}

.standalone-splash.hidden {
  display: none;
}

.splash-logo-pulse {
  width: 170px;
  height: auto;
  margin-bottom: 24px;
  animation: splash-pulse 1.6s ease-in-out infinite alternate;
}

@keyframes splash-pulse {
  0% { transform: scale(0.97); }
  100% { transform: scale(1.03); }
}

.splash-status {
  font-size: 1.15rem;
  font-weight: 700;
  color: #080b0e;
  margin-bottom: 14px;
}

.splash-progress-track {
  width: 220px;
  height: 5px;
  background: #eaedf1;
  border-radius: 9999px;
  overflow: hidden;
  margin-bottom: 22px;
}

.splash-progress-fill {
  height: 100%;
  width: 0%;
  background: #080b0e;
  border-radius: 9999px;
  transition: width 1.2s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.splash-manual-link {
  font-size: 0.84rem;
  color: var(--text-secondary);
  text-decoration: underline;
  cursor: pointer;
}

/* iOS Floating Safari Tooltip */
.ios-floating-prompt {
  position: fixed;
  bottom: 16px;
  left: 50%;
  transform: translateX(-50%);
  width: calc(100% - 32px);
  max-width: 440px;
  background: #ffffff;
  border: 1px solid var(--border-light);
  border-radius: 18px;
  padding: 14px 18px;
  display: flex;
  align-items: center;
  gap: 12px;
  box-shadow: 0 12px 35px rgba(0, 12, 45, 0.15);
  z-index: 900;
  animation: bounce-subtle 2s infinite ease-in-out;
}

@keyframes bounce-subtle {
  0%, 100% { transform: translate(-50%, 0); }
  50% { transform: translate(-50%, -5px); }
}

.ios-floating-prompt.hidden {
  display: none !important;
}

.ios-floating-prompt .prompt-arrow {
  color: #0284c7;
  font-size: 1.4rem;
  animation: point-down 1.2s infinite ease-in-out;
}

@keyframes point-down {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(4px); }
}

/* Mobil İyileştirmeleri */
@media (max-width: 380px) {
  .pwa-card {
    padding: 24px 16px 20px;
  }
  .pwa-title-main {
    font-size: 1.95rem;
  }
  .pwa-btn {
    padding: 12px 16px;
    font-size: 0.9rem;
  }
  .pwa-btn-icon {
    width: 32px;
    height: 32px;
  }
}

/* ==========================================================================
   ÖZEL KURULUM EKRANI
   ========================================================================== */

.install-sheet {
  --ring-len: 289;
  position: relative;
  width: 100%;
  max-width: 420px;
  max-height: 92vh;
  overflow-y: auto;
  background: #ffffff;
  border: 1px solid var(--border-light);
  border-radius: 28px;
  padding: 28px 22px 22px;
  box-shadow: 0 30px 80px rgba(0, 12, 45, 0.25);
  transform: translateY(24px) scale(0.96);
  opacity: 0;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.25s ease;
}

.modal-backdrop.is-active .install-sheet {
  transform: none;
  opacity: 1;
}

.install-grabber {
  display: none;
}

.install-close {
  position: absolute;
  top: 16px;
  right: 16px;
}

/* Başlık */
.install-hero {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 20px;
}

.install-icon-stage {
  position: relative;
  width: 84px;
  height: 84px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.install-icon {
  width: 64px;
  height: 64px;
  border-radius: 18px;
  background: #ffffff;
  box-shadow: 0 8px 22px rgba(0, 12, 45, 0.14);
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.install-ring {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  transform: rotate(-90deg);
  opacity: 0;
  transition: opacity 0.25s ease;
}

.install-ring circle {
  fill: none;
  stroke-width: 4;
}

.install-ring-track {
  stroke: var(--border-light);
}

.install-ring-fill {
  stroke: var(--accent-mint);
  stroke-linecap: round;
  stroke-dasharray: var(--ring-len);
  stroke-dashoffset: var(--ring-len);
  transition: stroke-dashoffset 1.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.install-check {
  position: absolute;
  right: 2px;
  bottom: 2px;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--accent-mint);
  border: 3px solid #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  transform: scale(0);
  transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.install-check svg {
  width: 16px;
  height: 16px;
  stroke: #ffffff;
  stroke-width: 3;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 24;
  stroke-dashoffset: 24;
  transition: stroke-dashoffset 0.35s ease 0.2s;
}

.install-meta {
  min-width: 0;
}

.install-name {
  font-size: 1.3rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--text-heading);
}

.install-domain {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin: 2px 0 8px;
}

.install-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.install-chip {
  font-size: 0.7rem;
  font-weight: 700;
  padding: 3px 9px;
  border-radius: 9999px;
  background: var(--bg-subtle);
  color: var(--text-secondary);
}

.install-chip-mint {
  background: var(--accent-mint-soft);
  color: #008a57;
}

/* Paneller (duruma göre görünür) */
.install-panel {
  display: none;
}

.install-sheet[data-state="intro"] .install-panel-intro,
.install-sheet[data-state="progress"] .install-panel-progress,
.install-sheet[data-state="done"] .install-panel-done {
  display: block;
  animation: install-fade 0.35s ease both;
}

@keyframes install-fade {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: none; }
}

.install-shots {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  margin: 0 -22px 18px;
  padding: 2px 22px 6px;
  scrollbar-width: none;
}

.install-shots::-webkit-scrollbar {
  display: none;
}

.install-shot {
  height: 190px;
  width: auto;
  border-radius: 14px;
  border: 1px solid var(--border-light);
  box-shadow: 0 6px 18px rgba(0, 12, 45, 0.08);
  scroll-snap-align: start;
  flex-shrink: 0;
  background: var(--bg-subtle);
}

.install-perks {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 0;
  margin: 0;
}

.install-perks li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--text-heading);
}

.perk-dot {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--accent-mint-soft);
  flex-shrink: 0;
  position: relative;
}

.perk-dot::after {
  content: "";
  position: absolute;
  left: 6px;
  top: 3px;
  width: 4px;
  height: 8px;
  border: solid var(--accent-mint);
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

.install-note {
  margin-top: 14px;
  font-size: 0.8rem;
  color: var(--text-secondary);
  background: var(--bg-subtle);
  border-radius: 12px;
  padding: 10px 12px;
}

.install-status-title {
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--text-heading);
  margin-bottom: 4px;
}

.install-status-text {
  font-size: 0.86rem;
  color: var(--text-secondary);
  line-height: 1.5;
}

/* Durum: kuruluyor */
.install-sheet[data-state="progress"] .install-ring {
  opacity: 1;
}

.install-sheet[data-state="progress"] .install-icon {
  transform: scale(0.82);
}

.install-sheet.is-filling .install-ring-fill,
.install-sheet[data-state="done"] .install-ring-fill {
  stroke-dashoffset: 0;
}

/* Durum: tamam */
.install-sheet[data-state="done"] .install-check {
  transform: scale(1);
}

.install-sheet[data-state="done"] .install-check svg {
  stroke-dashoffset: 0;
}

/* Butonlar */
.install-actions {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 22px;
}

.install-primary {
  height: 52px;
  border-radius: var(--btn-radius);
  border: none;
  background: var(--btn-black);
  color: #ffffff;
  font-family: inherit;
  font-size: 0.98rem;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 10px 24px var(--btn-shadow);
  transition: var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
}

.install-primary:hover {
  background: var(--btn-black-hover);
  transform: translateY(-1px);
}

.install-primary:active {
  transform: scale(0.98);
}

.install-primary:disabled {
  cursor: default;
  transform: none;
}

.install-spinner {
  display: none;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  border: 2.5px solid rgba(255, 255, 255, 0.3);
  border-top-color: #ffffff;
  animation: install-spin 0.8s linear infinite;
}

.install-sheet[data-state="progress"] .install-spinner {
  display: block;
}

.install-sheet[data-state="progress"] .install-primary-label {
  display: none;
}

.install-sheet[data-state="done"] .install-primary {
  background: var(--accent-mint);
  box-shadow: 0 10px 24px rgba(0, 208, 132, 0.3);
}

@keyframes install-spin {
  to { transform: rotate(360deg); }
}

.install-secondary {
  height: 44px;
  border: none;
  background: none;
  color: var(--text-secondary);
  font-family: inherit;
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
  border-radius: var(--btn-radius);
  transition: var(--transition);
}

.install-secondary:hover {
  background: var(--bg-subtle);
  color: var(--text-heading);
}

.install-sheet[data-state="progress"] .install-secondary {
  visibility: hidden;
}

/* Mobilde alttan açılan sayfa */
@media (max-width: 560px) {
  .install-backdrop {
    align-items: flex-end;
    padding: 0;
  }

  .install-sheet {
    max-width: none;
    border-radius: 28px 28px 0 0;
    padding: 12px 20px calc(20px + env(safe-area-inset-bottom));
    transform: translateY(100%);
    opacity: 1;
  }

  .install-grabber {
    display: block;
    width: 40px;
    height: 5px;
    border-radius: 9999px;
    background: var(--border-subtle);
    margin: 0 auto 18px;
  }

  .install-close {
    display: none;
  }

  .install-shots {
    margin: 0 -20px 18px;
    padding: 2px 20px 6px;
  }
}

/* Alt kurulum bandı */
.install-banner {
  position: fixed;
  left: 50%;
  bottom: calc(16px + env(safe-area-inset-bottom));
  width: calc(100% - 32px);
  max-width: 440px;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 10px 10px 12px;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid var(--border-light);
  border-radius: 20px;
  box-shadow: 0 16px 40px rgba(0, 12, 45, 0.16);
  z-index: 900;
  transform: translate(-50%, calc(100% + 40px));
  opacity: 0;
  pointer-events: none;
  transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.3s ease;
}

.install-banner.is-visible {
  transform: translate(-50%, 0);
  opacity: 1;
  pointer-events: auto;
}

.install-banner-icon {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0, 12, 45, 0.1);
  flex-shrink: 0;
}

.install-banner-text {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  line-height: 1.3;
}

.install-banner-text strong {
  font-size: 0.86rem;
  color: var(--text-heading);
}

.install-banner-text span {
  font-size: 0.76rem;
  color: var(--text-secondary);
}

.install-banner-btn {
  padding: 9px 18px;
  border: none;
  border-radius: var(--btn-radius);
  background: var(--btn-black);
  color: #ffffff;
  font-family: inherit;
  font-size: 0.84rem;
  font-weight: 700;
  cursor: pointer;
  transition: var(--transition);
}

.install-banner-btn:hover {
  background: var(--btn-black-hover);
}

.install-banner-close {
  width: 28px;
  height: 28px;
  border: none;
  background: none;
  color: var(--text-muted);
  font-size: 1.2rem;
  cursor: pointer;
  border-radius: 50%;
}

.install-banner-close:hover {
  background: var(--bg-subtle);
}

@media (prefers-reduced-motion: reduce) {
  .install-sheet,
  .install-banner,
  .install-ring-fill,
  .install-check,
  .install-check svg {
    transition-duration: 0.01ms !important;
  }
}
