.vsp-pwa-banner {
  position: fixed;
  bottom: 16px;
  left: 16px;
  right: 16px;
  z-index: 999999;
  max-width: 480px;
  margin: 0 auto;
  background: #ffffff;
  border-radius: 16px;
  box-shadow: 0 12px 40px rgba(15, 23, 42, 0.18), 0 2px 8px rgba(15, 23, 42, 0.08);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
  color: #0f172a;
  transform: translateY(150%);
  opacity: 0;
  transition: transform 0.36s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.36s ease;
  pointer-events: none;
  border: 1px solid rgba(15, 23, 42, 0.06);
}

.vsp-pwa-banner--visible {
  transform: translateY(0);
  opacity: 1;
  pointer-events: auto;
}

.vsp-pwa-banner__inner {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
}

.vsp-pwa-banner__icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  flex-shrink: 0;
  box-shadow: 0 2px 6px rgba(15, 23, 42, 0.12);
}

.vsp-pwa-banner__text {
  flex: 1 1 auto;
  min-width: 0;
}

.vsp-pwa-banner__title {
  font-size: 15px;
  font-weight: 600;
  line-height: 1.25;
  margin: 0 0 2px;
}

.vsp-pwa-banner__subtitle {
  font-size: 13px;
  line-height: 1.35;
  color: #64748b;
  margin: 0;
}

.vsp-pwa-banner__install {
  appearance: none;
  -webkit-appearance: none;
  background: #CAC61E;
  color: #1a1a1a;
  border: 0;
  border-radius: 10px;
  padding: 10px 16px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  flex-shrink: 0;
  font-family: inherit;
  transition: background 0.15s ease, transform 0.1s ease;
}

.vsp-pwa-banner__install:hover {
  background: #b9b60f;
}

.vsp-pwa-banner__install:active {
  transform: scale(0.97);
}

.vsp-pwa-banner__close {
  appearance: none;
  -webkit-appearance: none;
  background: transparent;
  border: 0;
  width: 32px;
  height: 32px;
  border-radius: 8px;
  font-size: 22px;
  line-height: 1;
  color: #94a3b8;
  cursor: pointer;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: inherit;
  padding: 0;
}

.vsp-pwa-banner__close:hover {
  background: rgba(15, 23, 42, 0.06);
  color: #475569;
}

/* iOS variant — wider hint area, no install button */
.vsp-pwa-banner--ios .vsp-pwa-banner__ios-hint {
  margin-top: 6px;
  font-size: 13px;
  color: #475569;
  display: flex;
  align-items: center;
  gap: 4px;
  flex-wrap: wrap;
  line-height: 1.3;
}

.vsp-pwa-banner__ios-icon {
  width: 18px;
  height: 18px;
  vertical-align: middle;
  color: #1a4d5c;
  flex-shrink: 0;
}

/* Bottom safe-area on iOS standalone-capable */
@supports (padding: env(safe-area-inset-bottom)) {
  .vsp-pwa-banner {
    bottom: calc(16px + env(safe-area-inset-bottom));
  }
}

/* Don't show when already standalone */
@media (display-mode: standalone) {
  .vsp-pwa-banner { display: none !important; }
}

/* Smaller screens: edge to edge with subtle margin */
@media (max-width: 480px) {
  .vsp-pwa-banner {
    bottom: 12px;
    left: 12px;
    right: 12px;
  }
  .vsp-pwa-banner__inner {
    padding: 12px 14px;
  }
  .vsp-pwa-banner__title {
    font-size: 14px;
  }
  .vsp-pwa-banner__subtitle {
    font-size: 12px;
  }
  .vsp-pwa-banner__icon {
    width: 44px;
    height: 44px;
  }
}
