/* Hamyar web app: the top install banner + the iPhone guide (panel look, dark mode aware) */
.hy-pwa-icon { width: 48px; height: 48px; border-radius: 12px; flex: 0 0 48px; box-shadow: 0 4px 12px -6px rgba(30, 28, 38, .35); }

/* the top banner: Safari's «app available» strip, in Hamyar's colours */
.hy-pwa-bar { position: fixed; top: var(--hy-pwa-top, 0px); inset-inline: 0; z-index: 99998; display: flex; align-items: center; gap: 12px; padding: 10px 12px; background: #FBFBFD; border-bottom: 1px solid #E3E5EC; box-shadow: 0 6px 20px -18px rgba(30, 28, 38, .7); }
html.hy-pwa-banner body { padding-top: var(--hy-pwa-bar, 64px) !important; }
html.hy-pwa-banner .l-header.pos_fixed, html.hy-pwa-banner .l-header[class*="pos_fixed"] { top: calc(var(--hy-pwa-top, 0px) + var(--hy-pwa-bar, 64px)) !important; }
.hy-pwa-bar .hy-pwa-no { flex: 0 0 24px; height: 24px; padding: 0; background: none; color: #A9AEBB; display: inline-flex; align-items: center; justify-content: center; }
.hy-pwa-bar .hy-pwa-no svg { width: 15px; height: 15px; }
.hy-pwa-bar-icon { width: 44px; height: 44px; border-radius: 12px; flex: 0 0 44px; box-shadow: 0 0 0 1px rgba(30, 28, 38, .06); }
.hy-pwa-bar-text { display: flex; flex-direction: column; gap: 0; flex: 1 1 auto; min-width: 0; }
.hy-pwa-bar-text b { font-size: 13.5px; font-weight: 800; line-height: 1.45; color: #1E1C26; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hy-pwa-bar-text small { font-size: 11.5px; line-height: 1.45; color: #8A8F9C; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hy-pwa-yes, .hy-pwa-no, .hy-pwa-close { font: inherit; font-weight: 700; border: 0; border-radius: 12px; cursor: pointer; }
.hy-pwa-bar .hy-pwa-yes { flex: 0 0 auto; min-height: 36px; padding: 0 18px; font-size: 13px; border-radius: 10px; background: #EE6B65; color: #fff; box-shadow: 0 10px 22px -16px rgba(238, 107, 101, .9); }
.hy-pwa-bar .hy-pwa-yes:hover { background: #E2564F; }
html.hy-dark .hy-pwa-bar { background: #15161C; border-color: #2A2B36; }
html.hy-dark .hy-pwa-bar-text b { color: #F3F4F8; }

.hy-pwa-sheet { position: fixed; inset: 0; z-index: 100000; background: rgba(20, 21, 28, .55); display: flex; align-items: flex-end; justify-content: center; padding: 12px 12px 64px; animation: hy-pwa-fade .2s ease; }
.hy-pwa-sheet-card { width: 100%; max-width: 420px; background: #fff; border-radius: 16px; padding: 22px 20px 18px; text-align: center; box-shadow: 0 30px 70px -30px rgba(0, 0, 0, .5); }
.hy-pwa-sheet-card .hy-pwa-icon { width: 64px; height: 64px; border-radius: 12px; }
.hy-pwa-sheet-card h3 { margin: 12px 0 10px; font-size: 17px; font-weight: 800; color: #1E1C26; }
.hy-pwa-steps { list-style: none; margin: 4px 0 14px; padding: 0; text-align: start; }
.hy-pwa-steps li { display: flex; align-items: center; gap: 12px; padding: 12px 0; border-bottom: 1px solid #F1F2F6; }
.hy-pwa-steps li:last-child { border-bottom: 0; }
.hy-pwa-step-text { font-size: 14px; color: #1E1C26; line-height: 1.8; }
.hy-pwa-key { flex: 0 0 auto; display: inline-flex; align-items: center; gap: 7px; padding: 7px 10px; border-radius: 12px; background: #EEF3FF; color: #2F6BFF; font-weight: 700; font-size: 12.5px; box-shadow: inset 0 0 0 1px rgba(47, 107, 255, .16); }
.hy-pwa-key svg { width: 20px; height: 20px; }
.hy-pwa-key--icon { padding: 8px; }
.hy-pwa-note { margin: 0 0 14px; font-size: 12.5px; color: #6F7480; line-height: 1.9; }
.hy-pwa-close { width: 100%; background: #1E1C26; color: #fff; min-height: 46px; padding: 12px; font-size: 14.5px; border-radius: 12px; }
.hy-pwa-arrow { position: fixed; bottom: 8px; left: 50%; transform: translateX(-50%); color: #fff; animation: hy-pwa-bob 1.2s ease-in-out infinite; }
.hy-pwa-arrow svg { width: 30px; height: 30px; filter: drop-shadow(0 2px 6px rgba(0,0,0,.5)); }
@keyframes hy-pwa-fade { from { opacity: 0; } }
@keyframes hy-pwa-bob { 50% { transform: translate(-50%, 6px); } }
@media (prefers-reduced-motion: reduce) { .hy-pwa-sheet, .hy-pwa-arrow { animation: none; } }

html.hy-dark .hy-pwa-sheet-card h3 { color: #F3F4F8; }
html.hy-dark .hy-pwa-sheet-card { background: #1F2029; }
html.hy-dark .hy-pwa-steps li { border-color: #2A2B36; }
html.hy-dark .hy-pwa-step-text { color: #F3F4F8; }
html.hy-dark .hy-pwa-key { background: #1B2233; }
html.hy-dark .hy-pwa-close { background: #F3F4F8; color: #1E1C26; }

.hy-pwa-offline { position: fixed; left: 12px; right: 12px; bottom: calc(12px + env(safe-area-inset-bottom)); z-index: 99999; padding: 12px 16px; border-radius: 12px; background: #1E1C26; color: #fff; font-size: 13.5px; font-weight: 600; text-align: center; box-shadow: 0 14px 34px -16px rgba(0, 0, 0, .55); }
