/*
 * =====================================================================
 *  TƏTBİQLƏR MODULU — STİLLƏR
 *  Yer: /modules/apps/assets/apps.css
 *  "Tətbiqi quraşdır" paneli (mobil, alt menyunun üstündə) və
 *  iPhone üçün "Ana ekrana əlavə et" izahı. Siniflər "lfm-app-" ilə başlayır.
 * =====================================================================
 */
.lfm-app-sheet { position: fixed; left: 10px; right: 10px; bottom: calc(80px + env(safe-area-inset-bottom)); z-index: 85; display: flex; align-items: center; gap: 12px; padding: 12px 12px 12px 12px; border-radius: 22px; background: #fff; border: 1px solid #eef0f3; box-shadow: 0 20px 50px -18px rgba(15, 23, 42, .45); animation: lfm-app-up .45s cubic-bezier(.2, .9, .2, 1.05); }
.lfm-app-sheet[hidden] { display: none; }
@media (min-width: 768px) { .lfm-app-sheet { display: none !important; } }
html.lfm-msg-open .lfm-app-sheet, html.lfm-lr-open .lfm-app-sheet { display: none !important; }
@keyframes lfm-app-up { from { transform: translateY(30px); opacity: 0; } to { transform: none; opacity: 1; } }
.lfm-app-ic { width: 52px; height: 52px; border-radius: 14px; flex-shrink: 0; box-shadow: 0 6px 16px -6px rgba(22, 163, 74, .5); }
.lfm-app-txt { flex: 1; min-width: 0; line-height: 1.25; }
.lfm-app-txt b { display: block; font-size: 14.5px; font-weight: 900; color: #111827; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lfm-app-txt small { display: block; font-size: 12px; color: #6b7280; margin-top: 1px; }
.lfm-app-stars { display: block; font-size: 11px; color: #f59e0b; letter-spacing: 1px; margin-top: 2px; }
.lfm-app-stars em { font-style: normal; color: #16a34a; font-weight: 800; letter-spacing: 0; margin-left: 4px; }
.lfm-app-get { flex-shrink: 0; height: 38px; padding: 0 16px; border-radius: 999px; background: var(--lf-brand-600, #16a34a); color: #fff; font-size: 13.5px; font-weight: 900; display: inline-flex; align-items: center; box-shadow: 0 8px 18px -8px rgba(22, 163, 74, .8); }
.lfm-app-get:active { transform: scale(.96); }
.lfm-app-x { position: absolute; top: -8px; right: -4px; width: 26px; height: 26px; border-radius: 999px; background: #111827; color: #fff; display: inline-flex; align-items: center; justify-content: center; box-shadow: 0 4px 10px rgba(0, 0, 0, .25); }

/* iPhone: "Ana ekrana əlavə et" izahı */
.lfm-app-ios { position: fixed; inset: 0; z-index: 210; display: flex; align-items: flex-end; justify-content: center; }
.lfm-app-ios[hidden] { display: none; }
.lfm-app-ios-bg { position: absolute; inset: 0; background: rgba(15, 23, 42, .55); backdrop-filter: blur(3px); }
.lfm-app-ios-box { position: relative; width: 100%; max-width: 440px; margin: 0 10px calc(14px + env(safe-area-inset-bottom)); padding: 24px 20px 18px; border-radius: 26px; background: #fff; text-align: center; animation: lfm-app-up .35s cubic-bezier(.2, .9, .2, 1); }
.lfm-app-ios-box img { width: 64px; height: 64px; border-radius: 16px; margin: -56px auto 10px; box-shadow: 0 10px 24px -8px rgba(0, 0, 0, .35); background: #fff; }
.lfm-app-ios-box h3 { font-size: 18px; font-weight: 900; color: #111827; margin-bottom: 12px; }
.lfm-app-ios-box ol { text-align: left; display: grid; gap: 10px; margin-bottom: 16px; counter-reset: s; }
.lfm-app-ios-box li { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 14px; background: #f8fafc; font-size: 14px; font-weight: 600; color: #374151; }
.lfm-app-share { width: 36px; height: 36px; flex-shrink: 0; border-radius: 10px; background: #fff; border: 1px solid #e5e7eb; color: #0a84ff; display: inline-flex; align-items: center; justify-content: center; font-weight: 900; }
.lfm-app-ios-arrow { position: absolute; left: 50%; bottom: -12px; width: 22px; height: 22px; background: #fff; transform: translateX(-50%) rotate(45deg); border-radius: 3px; }

/* Panel açıq olanda saytın "yuxarı qalx" düyməsi panelin üstünə qalxsın (üst-üstə düşməsin) */
@media (max-width: 767px) {
    html.lfm-app-on .laf-scroll-wrapper { bottom: calc(176px + env(safe-area-inset-bottom)) !important; }
}
