.dzkeys-pwa-notice {
  position: fixed;
  z-index: 9998;
  left: max(14px, env(safe-area-inset-left));
  bottom: max(14px, env(safe-area-inset-bottom));
  width: min(360px, calc(100vw - 28px));
  min-height: 82px;
  padding: 12px;
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  border: 1px solid rgba(246, 187, 0, .42);
  border-radius: 20px;
  background: linear-gradient(145deg, rgba(35, 35, 35, .97), rgba(12, 12, 12, .98));
  color: #fff;
  box-shadow: 0 18px 48px rgba(0, 0, 0, .48), 0 0 24px rgba(246, 187, 0, .12);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
  opacity: 0;
  transform: translateY(16px) scale(.98);
  transition: opacity .2s ease, transform .2s ease, border-color .2s ease;
}

.dzkeys-pwa-notice[hidden] { display: none !important; }
.dzkeys-pwa-notice.is-visible { opacity: 1; transform: translateY(0) scale(1); }

.dzkeys-pwa-notice__icon {
  width: 58px;
  height: 58px;
  display: block;
  border-radius: 15px;
  object-fit: cover;
  box-shadow: 0 6px 18px rgba(0, 0, 0, .35);
}

.dzkeys-pwa-notice__copy {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.dzkeys-pwa-notice__copy strong {
  overflow: hidden;
  color: #fff;
  font: 800 16px/1.15 system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.dzkeys-pwa-notice__copy span {
  color: #bdbdbd;
  font: 500 12px/1.35 system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.dzkeys-pwa-install {
  min-width: 70px;
  min-height: 44px;
  padding: 0 15px;
  border: 0;
  border-radius: 999px;
  background: linear-gradient(135deg, #ffd52a, #f6ad00);
  color: #111;
  box-shadow: 0 7px 18px rgba(246, 187, 0, .22);
  font: 800 13px/1 system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  cursor: pointer;
}

.dzkeys-pwa-install:focus-visible,
.dzkeys-pwa-sheet button:focus-visible {
  outline: 3px solid #fff;
  outline-offset: 2px;
}

@media (hover: hover) and (pointer: fine) {
  .dzkeys-pwa-notice:hover { border-color: rgba(246, 187, 0, .72); }
  .dzkeys-pwa-install:hover { filter: brightness(1.08); transform: translateY(-1px); }
}

.dzkeys-pwa-sheet[hidden] { display: none !important; }
.dzkeys-pwa-sheet { position: fixed; inset: 0; z-index: 10020; display: grid; align-items: end; }
.dzkeys-pwa-sheet__backdrop { position: absolute; inset: 0; background: rgba(0, 0, 0, .72); }
.dzkeys-pwa-sheet__panel {
  position: relative;
  width: min(100%, 520px);
  margin: 0 auto;
  padding: 28px 24px calc(24px + env(safe-area-inset-bottom));
  border: 1px solid rgba(246, 187, 0, .35);
  border-radius: 24px 24px 0 0;
  background: #151515;
  color: #f5f5f5;
  box-shadow: 0 -20px 60px rgba(0, 0, 0, .5);
  text-align: center;
}
.dzkeys-pwa-sheet__panel h2 { margin: 12px 0 10px; color: #fff; font-size: 24px; }
.dzkeys-pwa-sheet__panel p { margin: 8px auto; max-width: 390px; color: #d2d2d2; font-size: 15px; line-height: 1.6; }
.dzkeys-pwa-sheet__arabic { font-size: 16px !important; }
.dzkeys-pwa-sheet__icon { width: 58px; height: 58px; margin: 0 auto; display: grid; place-items: center; border-radius: 16px; background: #f6bb00; color: #111; font-weight: 900; }
.dzkeys-pwa-sheet__close { position: absolute; top: 10px; right: 12px; width: 44px; height: 44px; border: 0; background: transparent; color: #fff; font-size: 32px; line-height: 1; cursor: pointer; }
.dzkeys-pwa-sheet__done { min-width: 140px; min-height: 48px; margin-top: 18px; border: 0; border-radius: 999px; background: #f6bb00; color: #111; font-weight: 800; cursor: pointer; }
.dzkeys-pwa-modal-open { overflow: hidden; }

@media (max-width: 420px) {
  .dzkeys-pwa-notice {
    min-height: 76px;
    grid-template-columns: 52px minmax(0, 1fr) auto;
    gap: 10px;
    padding: 11px;
    border-radius: 18px;
  }
  .dzkeys-pwa-notice__icon { width: 52px; height: 52px; border-radius: 14px; }
  .dzkeys-pwa-install { min-width: 66px; padding-inline: 12px; }
}

@media (min-width: 768px) {
  .dzkeys-pwa-sheet { align-items: center; }
  .dzkeys-pwa-sheet__panel { border-radius: 24px; padding-bottom: 28px; }
}

@media (prefers-reduced-motion: reduce) {
  .dzkeys-pwa-notice,
  .dzkeys-pwa-install { transition: none; }
}
