.sg-pwa-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(2, 8, 14, 0.55);
  backdrop-filter: blur(6px);
  display: none;
  z-index: 9998;
}

.sg-pwa-modal {
  position: fixed;
  left: 50%;
  bottom: 18px;
  transform: translateX(-50%);
  width: min(560px, calc(100vw - 24px));
  background: linear-gradient(180deg, #071827 0%, #04111c 100%);
  border: 1px solid rgba(212, 175, 55, 0.28);
  box-shadow: 0 22px 70px rgba(0, 0, 0, 0.55);
  border-radius: 18px;
  padding: 16px;
  display: none;
  z-index: 9999;
  color: #f4f7fb;
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
}

.sg-pwa-top {
  display: flex;
  gap: 12px;
  align-items: center;
}

.sg-pwa-logo {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: rgba(212, 175, 55, 0.10);
  border: 1px solid rgba(212, 175, 55, 0.25);
  display: grid;
  place-items: center;
  overflow: hidden;
}

.sg-pwa-logo img {
  width: 34px;
  height: 34px;
  object-fit: contain;
}

.sg-pwa-title {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.sg-pwa-title strong {
  font-size: 16px;
  letter-spacing: 0.2px;
}

.sg-pwa-title span {
  font-size: 13px;
  color: rgba(244, 247, 251, 0.72);
  margin-top: 2px;
}

.sg-pwa-body {
  margin-top: 12px;
  font-size: 14px;
  color: rgba(244, 247, 251, 0.82);
}

.sg-pwa-bullets {
  margin: 10px 0 0;
  padding-left: 18px;
  color: rgba(244, 247, 251, 0.80);
  font-size: 13px;
}

.sg-pwa-actions {
  margin-top: 14px;
  display: flex;
  gap: 10px;
  justify-content: flex-end;
  flex-wrap: wrap;
}

.sg-btn {
  border: none;
  border-radius: 12px;
  padding: 11px 14px;
  font-size: 14px;
  cursor: pointer;
  transition: transform 0.05s ease, opacity 0.15s ease;
}

.sg-btn:active { transform: translateY(1px); }

.sg-btn-secondary {
  background: rgba(244, 247, 251, 0.08);
  color: rgba(244, 247, 251, 0.88);
  border: 1px solid rgba(244, 247, 251, 0.14);
}

.sg-btn-gold {
  background: linear-gradient(180deg, #E6C97A 0%, #D4AF37 100%);
  color: #071827;
  font-weight: 700;
  border: 1px solid rgba(212, 175, 55, 0.35);
}

.sg-btn-link {
  background: transparent;
  color: rgba(212, 175, 55, 0.95);
  border: 1px solid rgba(212, 175, 55, 0.25);
}

.sg-pwa-ios-hint {
  margin-top: 10px;
  padding: 10px 12px;
  border-radius: 12px;
  background: rgba(212, 175, 55, 0.08);
  border: 1px solid rgba(212, 175, 55, 0.20);
  color: rgba(244, 247, 251, 0.92);
  font-size: 13px;
  display: none;
}

.sg-pwa-close {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 34px;
  height: 34px;
  border-radius: 10px;
  border: 1px solid rgba(244, 247, 251, 0.14);
  background: rgba(244, 247, 251, 0.06);
  color: rgba(244, 247, 251, 0.9);
  cursor: pointer;
  display: grid;
  place-items: center;
  font-size: 18px;
  line-height: 1;
}

#sgPwaNeverShow {
  transform: translateY(1px);
}
