.ios-banner {
  display: flex;
  flex-direction: column;
  width: 95%;
  max-width: 600px;
  margin: 12px auto 0 auto;   /* moves banner down from the top */
  border-radius: 14px;
  overflow: hidden;
  color: white;
  font-family: sans-serif;
  animation: slideDown 0.5s ease;
  z-index: 10000;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;

  /* Frosted glass look */
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  background-color: rgba(30, 30, 30, 0); /* Start transparent */
  box-shadow: none;
  transition:
    background-color 0.6s ease 0.3s,
    box-shadow 0.5s ease 0.3s;
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.ios-banner.show-shadow {
  background-color: rgba(30, 30, 30, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.06);
  animation:
    slideDown 0.5s ease,
    pulseGlow 3s ease-in-out infinite;
}



@keyframes slideDown {
  from {
    transform: translateY(-100%);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

#ios-install-banner.slide-up {
  animation: slideUp 0.5s ease forwards;
}

@keyframes slideUp {
  to {
    transform: translateY(-100%);
    opacity: 0;
    visibility: hidden;
    opacity: 1;
  }
}

/* === THE REST (unchanged) === */

.banner-headline {
  text-align: center;
  font-size: 24px;
  font-weight: bold;
  padding: 12px 12px 2px 12px;
  color: #ffcc00;
  background-color: transparent;
}

.banner-body {
  display: flex;
  align-items: center;
  padding: 12px;
}

.app-icon {
  width: 100px;
  height: 100px;
  margin-right: 12px;
  flex-shrink: 0;
}

.banner-text {
  display: flex;
  flex-direction: column;
  justify-content: center;
  flex-grow: 1;
}

.instruction-line,
.subtext {
  font-size: 17px;
  margin: 4px 0;
  display: flex;
  align-items: center;
  flex-wrap: nowrap;
  gap: 6px;
}

.inline-share-icon {
  height: 1.4em;
  vertical-align: middle;
}

.add-home {
  font-weight: bold;
  margin: 4px 0;
}

.close-btn {
  position: absolute;
  top: 85px;
  right: 12px;
  width: 28px;
  height: 28px;
  background-color: black;
  color: white;
  border: none;
  border-radius: 6px;
  font-size: 32px;
  cursor: pointer;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.close-x {
  display: inline-block;
  transform: translateY(-2px);
}

@keyframes pulseGlow {
  0% {
    box-shadow:
      -2px 0 10px rgba(255, 255, 255, 0.2),
       0 10px 20px rgba(0, 0, 0, 0.5);
  }
  50% {
    box-shadow:
      -2px 0 14px rgba(255, 255, 255, 0.4),
       0 14px 28px rgba(0, 0, 0, 0.6);
  }
  100% {
    box-shadow:
      -2px 0 10px rgba(255, 255, 255, 0.2),
       0 10px 20px rgba(0, 0, 0, 0.5);
  }
}

