html.pwa-bar-open {
  --safe-top: 0px;
}

.pwa-install {
  position: -webkit-sticky;
  position: sticky;
  top: 0;
  z-index: 60;
  display: none;
  align-items: center;
  gap: 12px;
  min-height: 64px;
  padding: calc(10px + env(safe-area-inset-top, 0px)) 14px 10px;
  background: linear-gradient(90deg, #1a2744 0%, #0f1c36 55%, #15284a 100%);
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  -webkit-user-select: none;
  user-select: none;
}

.pwa-install__logo {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  flex: 0 0 auto;
  object-fit: cover;
}

.pwa-install__text {
  min-width: 0;
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.pwa-install__name {
  color: #fff;
  font: 700 16px/1.2 system-ui, -apple-system, Segoe UI, sans-serif;
}

.pwa-install__sub {
  color: rgba(255, 255, 255, 0.72);
  font: 500 12px/1.3 system-ui, -apple-system, Segoe UI, sans-serif;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.pwa-install__btn {
  flex: 0 0 auto;
  pointer-events: none;
  border: 0;
  border-radius: 999px;
  padding: 10px 16px;
  background: linear-gradient(180deg, #ffd56a, #f5a623);
  color: #3a2500;
  font: 800 14px/1 system-ui, -apple-system, Segoe UI, sans-serif;
  box-shadow: 0 2px 0 #c47d12;
}

.pwa-install__close {
  flex: 0 0 auto;
  width: 28px;
  height: 28px;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
  font: 600 20px/1 system-ui, -apple-system, Segoe UI, sans-serif;
  cursor: pointer;
}

.pwa-ios-modal {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  box-sizing: border-box;
}

.pwa-ios-modal__overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(4px);
}

.pwa-ios-modal__content {
  position: relative;
  z-index: 10001;
  width: min(420px, 100%);
  max-height: 70vh;
  margin-bottom: env(safe-area-inset-bottom, 0px);
  background: #fff;
  border-radius: 16px 16px 0 0;
  overflow: hidden;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.pwa-ios-modal__close {
  position: absolute;
  top: 0;
  right: 0;
  width: 44px;
  height: 44px;
  cursor: pointer;
  z-index: 10002;
}

.pwa-ios-modal__image {
  width: 100%;
  height: auto;
  display: block;
}
