.splash-overlay {
  position: fixed;
  inset: 0;
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #060c14;
  transition: opacity 0.6s ease, visibility 0.6s ease;
}
.splash-overlay.splash-hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}
.splash-content {
  text-align: center;
  padding: 24px;
  max-width: 320px;
  width: 100%;
}
.splash-logo-wrap {
  margin-bottom: 24px;
  animation: splashFadeIn 0.8s ease forwards;
  opacity: 0;
}
.splash-logo-wrap img {
  width: 72px;
  height: 72px;
  filter: drop-shadow(0 0 20px rgba(15, 189, 116, 0.3));
}
.splash-name {
  font-family: 'Playfair Display', serif;
  font-size: 36px;
  font-weight: 700;
  color: #fff;
  margin: 0 0 8px;
  letter-spacing: -0.5px;
  animation: splashFadeIn 0.8s ease 0.2s forwards;
  opacity: 0;
}
.splash-name em {
  font-style: italic;
  color: #0fbd74;
  font-weight: 400;
}
.splash-tagline {
  font-family: 'DM Sans', sans-serif;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.5);
  margin: 0 0 36px;
  letter-spacing: 2px;
  text-transform: uppercase;
  font-weight: 400;
  animation: splashFadeIn 0.8s ease 0.4s forwards;
  opacity: 0;
}
.splash-tagline span {
  color: #0fbd74;
}
.splash-progress {
  width: 180px;
  height: 3px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 4px;
  margin: 0 auto;
  overflow: hidden;
  animation: splashFadeIn 0.8s ease 0.6s forwards;
  opacity: 0;
}
.splash-progress-bar {
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, #0fbd74, #1c8bff);
  border-radius: 4px;
  transition: width 0.3s ease;
}
.splash-subtitle {
  font-family: 'DM Sans', sans-serif;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.35);
  margin: 16px 0 0;
  animation: splashFadeIn 0.8s ease 0.7s forwards;
  opacity: 0;
}

.splash-variant-shop .splash-tagline { content: attr(data-shop-tagline); }
.splash-variant-account .splash-tagline { content: attr(data-account-tagline); }

@keyframes splashFadeIn {
  to { opacity: 1; }
}

.pwa-install-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 9998;
  background: #060c14;
  border-top: 1px solid rgba(15, 189, 116, 0.15);
  padding: 12px 20px;
  display: none;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  transform: translateY(100%);
  transition: transform 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}
.pwa-install-bar.pwa-visible {
  display: flex;
  transform: translateY(0);
}
.pwa-install-bar-info {
  display: flex;
  align-items: center;
  gap: 12px;
}
.pwa-install-bar-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  flex-shrink: 0;
}
.pwa-install-bar-text strong {
  display: block;
  color: #fff;
  font-size: 14px;
  font-weight: 600;
}
.pwa-install-bar-text span {
  color: rgba(255,255,255,0.5);
  font-size: 12px;
}
.pwa-install-bar-actions {
  display: flex;
  gap: 8px;
  flex-shrink: 0;
}
.pwa-install-btn {
  background: #0fbd74;
  color: #fff;
  border: none;
  padding: 10px 20px;
  border-radius: 10px;
  font-weight: 700;
  font-size: 13px;
  cursor: pointer;
  transition: all 0.2s;
  font-family: inherit;
}
.pwa-install-btn:hover {
  background: #0a9e62;
  transform: scale(1.02);
}
.pwa-install-dismiss {
  background: transparent;
  color: rgba(255,255,255,0.4);
  border: 1px solid rgba(255,255,255,0.1);
  padding: 10px 16px;
  border-radius: 10px;
  font-size: 13px;
  cursor: pointer;
  transition: all 0.2s;
  font-family: inherit;
}
.pwa-install-dismiss:hover {
  color: #fff;
  border-color: rgba(255,255,255,0.3);
}

.pwa-install-modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 100000;
  background: rgba(6, 12, 20, 0.85);
  backdrop-filter: blur(12px);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
  animation: splashFadeIn 0.3s ease;
}
.pwa-install-modal-overlay.pwa-active {
  display: flex;
}
.pwa-install-modal {
  background: #0d1520;
  border: 1px solid rgba(15, 189, 116, 0.2);
  border-radius: 24px;
  padding: 40px 32px 32px;
  max-width: 380px;
  width: 100%;
  text-align: center;
  box-shadow: 0 30px 80px rgba(0,0,0,0.5), 0 0 0 1px rgba(15,189,116,0.1);
  animation: splashFadeIn 0.4s ease;
}
.pwa-install-modal-icon {
  width: 72px;
  height: 72px;
  border-radius: 18px;
  margin: 0 auto 20px;
  display: block;
  box-shadow: 0 8px 30px rgba(15,189,116,0.2);
}
.pwa-install-modal h2 {
  font-family: 'Playfair Display', serif;
  font-size: 26px;
  font-weight: 700;
  color: #fff;
  margin: 0 0 8px;
}
.pwa-install-modal h2 em {
  font-style: italic;
  color: #0fbd74;
}
.pwa-install-modal p {
  color: rgba(255,255,255,0.5);
  font-size: 14px;
  margin: 0 0 28px;
  line-height: 1.6;
}
.pwa-install-features {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 32px;
  text-align: left;
}
.pwa-install-feature {
  display: flex;
  align-items: center;
  gap: 12px;
  color: rgba(255,255,255,0.7);
  font-size: 13px;
}
.pwa-install-feature-icon {
  width: 32px;
  height: 32px;
  border-radius: 10px;
  background: rgba(15,189,116,0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 14px;
}
.pwa-install-modal-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.pwa-install-modal-btn {
  background: #0fbd74;
  color: #fff;
  border: none;
  padding: 14px;
  border-radius: 14px;
  font-weight: 700;
  font-size: 15px;
  cursor: pointer;
  transition: all 0.2s;
  font-family: inherit;
  width: 100%;
}
.pwa-install-modal-btn:hover {
  background: #0a9e62;
}
.pwa-install-modal-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}
.pwa-install-modal-skip {
  background: transparent;
  color: rgba(255,255,255,0.4);
  border: none;
  padding: 10px;
  font-size: 13px;
  cursor: pointer;
  transition: color 0.2s;
  font-family: inherit;
}
.pwa-install-modal-skip:hover {
  color: #fff;
}

.pwa-install-footer-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(15,189,116,0.1);
  border: 1px solid rgba(15,189,116,0.2);
  border-radius: 12px;
  padding: 10px 18px;
  color: #0fbd74;
  text-decoration: none;
  font-size: 13px;
  font-weight: 600;
  transition: all 0.2s;
  cursor: pointer;
  font-family: inherit;
}
.pwa-install-footer-btn:hover {
  background: rgba(15,189,116,0.2);
  border-color: #0fbd74;
  color: #0fbd74;
}

@media (max-width: 480px) {
  .pwa-install-bar { padding: 10px 16px; }
  .pwa-install-bar-text strong { font-size: 13px; }
  .pwa-install-btn { padding: 8px 16px; font-size: 12px; }
  .pwa-install-modal { padding: 32px 20px 24px; }
  .pwa-install-modal-icon { width: 60px; height: 60px; }
  .pwa-install-modal h2 { font-size: 22px; }
}

@keyframes splashPulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.05); }
}

.splash-loader {
  display: inline-block;
  position: relative;
  width: 48px;
  height: 48px;
  margin-bottom: 20px;
}
.splash-loader::after {
  content: '';
  display: block;
  width: 36px;
  height: 36px;
  border: 3px solid rgba(15, 189, 116, 0.15);
  border-top-color: #0fbd74;
  border-radius: 50%;
  animation: splashSpin 0.8s linear infinite;
}
@keyframes splashSpin {
  to { transform: rotate(360deg); }
}

@media (max-width: 480px) {
  .splash-logo-wrap img { width: 60px; height: 60px; }
  .splash-name { font-size: 30px; }
  .splash-tagline { font-size: 12px; letter-spacing: 1.5px; }
  .splash-progress { width: 140px; }
}
