/* === PWA INSTALL MODAL === */
#scm-pwa-modal {
  position: fixed;
  inset: 0;
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
  font-family: 'Manrope', system-ui, sans-serif;
}
#scm-pwa-modal.is-open {
  opacity: 1;
  pointer-events: auto;
}

.scm-pwa-overlay {
  position: absolute;
  inset: 0;
  background: rgba(6, 8, 12, 0.85);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.scm-pwa-card {
  position: relative;
  background: #0F172A;
  border: 1px solid rgba(199, 251, 58, 0.30);
  border-radius: 24px;
  padding: 36px 28px 28px;
  max-width: 420px;
  width: 100%;
  text-align: center;
  box-shadow: 
    0 20px 60px rgba(0, 0, 0, 0.50),
    0 0 60px rgba(199, 251, 58, 0.15),
    inset 0 1px 0 rgba(255, 255, 255, 0.05);
  transform: scale(0.95);
  transition: transform 0.3s ease;
}
#scm-pwa-modal.is-open .scm-pwa-card {
  transform: scale(1);
}

@media (prefers-color-scheme: light) {
  .scm-pwa-card {
    background: #FFFFFF;
    border-color: rgba(90, 139, 34, 0.30);
    color: #0F172A;
  }
}

.scm-pwa-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 32px;
  height: 32px;
  border: none;
  background: rgba(255, 255, 255, 0.06);
  color: #94A3B8;
  border-radius: 50%;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  transition: all 0.15s;
  font-family: inherit;
}
.scm-pwa-close:hover {
  background: rgba(255, 255, 255, 0.12);
  color: #FFFFFF;
}
@media (prefers-color-scheme: light) {
  .scm-pwa-close { background: rgba(0, 0, 0, 0.06); }
  .scm-pwa-close:hover { background: rgba(0, 0, 0, 0.12); color: #0F172A; }
}

.scm-pwa-logo {
  margin-bottom: 18px;
  display: inline-block;
  position: relative;
}
.scm-pwa-logo::before {
  content: '';
  position: absolute;
  inset: -8px;
  border-radius: 28px;
  background: linear-gradient(135deg, #C7FB3A, #76FBFF);
  opacity: 0.40;
  filter: blur(16px);
  z-index: -1;
}
.scm-pwa-logo img {
  border-radius: 18px;
  display: block;
  box-shadow: 0 8px 24px rgba(199, 251, 58, 0.30);
}

.scm-pwa-eb {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.10em;
  color: #76FBFF;
  margin-bottom: 8px;
}
@media (prefers-color-scheme: light) {
  .scm-pwa-eb { color: #2A8B8E; }
}

.scm-pwa-title {
  margin: 0 0 12px;
  font-size: 22px;
  font-weight: 800;
  font-family: 'Unbounded', sans-serif;
  letter-spacing: -0.02em;
  color: #FFFFFF;
  line-height: 1.2;
}
@media (prefers-color-scheme: light) {
  .scm-pwa-title { color: #0F172A; }
}

.scm-pwa-text {
  margin: 0 0 22px;
  font-size: 13px;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.75);
}
@media (prefers-color-scheme: light) {
  .scm-pwa-text { color: #475569; }
}

.scm-pwa-ios-steps {
  background: rgba(199, 251, 58, 0.05);
  border: 1px solid rgba(199, 251, 58, 0.15);
  border-radius: 14px;
  padding: 18px 16px;
  margin-bottom: 16px;
  text-align: left;
}
@media (prefers-color-scheme: light) {
  .scm-pwa-ios-steps {
    background: rgba(90, 139, 34, 0.05);
    border-color: rgba(90, 139, 34, 0.20);
  }
}

.scm-pwa-step {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 0;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.85);
}
@media (prefers-color-scheme: light) {
  .scm-pwa-step { color: #1E293B; }
}

.scm-pwa-step-num {
  flex-shrink: 0;
  width: 26px;
  height: 26px;
  background: linear-gradient(135deg, #C7FB3A, #76FBFF);
  color: #06080C;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 900;
  font-family: 'Unbounded', sans-serif;
  font-size: 12px;
}

.scm-pwa-step-text strong {
  color: #C7FB3A;
}
@media (prefers-color-scheme: light) {
  .scm-pwa-step-text strong { color: #5A8B22; }
}

.scm-pwa-cta {
  display: block;
  width: 100%;
  padding: 14px 24px;
  background: linear-gradient(135deg, #C7FB3A, #76FBFF);
  color: #06080C;
  border: none;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 800;
  cursor: pointer;
  margin-bottom: 12px;
  font-family: inherit;
  letter-spacing: -0.01em;
  box-shadow: 
    0 4px 16px rgba(199, 251, 58, 0.30),
    inset 0 1px 0 rgba(255, 255, 255, 0.30);
  transition: all 0.15s;
}
.scm-pwa-cta:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: 
    0 8px 24px rgba(199, 251, 58, 0.45),
    inset 0 1px 0 rgba(255, 255, 255, 0.30);
}
.scm-pwa-cta:disabled {
  opacity: 0.6;
  cursor: wait;
}

.scm-pwa-skip {
  background: none;
  border: none;
  color: #94A3B8;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  padding: 8px 16px;
  font-family: inherit;
}
.scm-pwa-skip:hover {
  color: #C7FB3A;
}

#scm-pwa-toast {
  position: fixed;
  top: 20px;
  left: 50%;
  transform: translate(-50%, -100px);
  z-index: 99998;
  background: linear-gradient(135deg, #C7FB3A, #76FBFF);
  color: #06080C;
  padding: 14px 22px;
  border-radius: 12px;
  font-size: 13px;
  font-weight: 800;
  font-family: 'Manrope', system-ui, sans-serif;
  box-shadow: 0 8px 24px rgba(199, 251, 58, 0.40);
  opacity: 0;
  transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
  max-width: 90vw;
  text-align: center;
}
#scm-pwa-toast.is-visible {
  opacity: 1;
  transform: translate(-50%, 0);
}

.is-pwa .pwa-hide { display: none !important; }

@media (max-width: 480px) {
  .scm-pwa-card { padding: 28px 20px 22px; }
  .scm-pwa-title { font-size: 20px; }
  .scm-pwa-text { font-size: 12px; }
  .scm-pwa-logo img { width: 64px; height: 64px; }
}
