body {
  font-family: Arial, sans-serif;
  text-align: center;
  padding: 40px;
  background: #f3f3f3;
  color: #333;
}

button {
  background: #4CAF50;
  color: white;
  padding: 12px 20px;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  font-size: 16px;
}

button:hover {
  background: #45a049;
}

.logo-container {
  margin-bottom: 16px;
}
.logo-99x {
  display: inline-block;
  vertical-align: middle;
  border-radius: 8px;
  padding: 4px 8px;
}

/* iOS Prompt Modal Styles */
.ios-prompt-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 1000;
  display: flex;
  align-items: flex-end;
  justify-content: center;
}

.ios-prompt-modal {
  background: #1c1c1e;
  color: white;
  border-radius: 12px 12px 0 0;
  width: 100%;
  max-width: 400px;
  margin: 0;
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.3);
  transform: translateY(100%);
  opacity: 0;
  transition: transform 0.4s cubic-bezier(.4,0,.2,1), opacity 0.3s cubic-bezier(.4,0,.2,1);
}

.ios-prompt-modal.ios-prompt-modal--visible {
  transform: translateY(0);
  opacity: 1;
}

.ios-prompt-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 20px;
  border-bottom: 1px solid #2c2c2e;
}

.ios-prompt-header h3 {
  margin: 0;
  font-size: 18px;
  font-weight: 600;
  color: white;
}

.ios-prompt-cancel {
  background: none;
  border: none;
  color: #007aff;
  font-size: 16px;
  cursor: pointer;
  padding: 0;
  font-weight: 400;
}

.ios-prompt-cancel:hover {
  background: none;
  opacity: 0.8;
}

.ios-prompt-content {
  padding: 20px;
}

.ios-prompt-content p {
  margin: 0 0 20px 0;
  font-size: 16px;
  line-height: 1.4;
  color: #e5e5e7;
}

.ios-prompt-instructions {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.ios-prompt-step {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 16px;
  color: white;
}

.ios-prompt-icon {
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
  flex-shrink: 0;
  overflow: hidden;
}

.ios-prompt-icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: brightness(0) invert(1);
}

/* Override legacy styles when modal is active */
#ios-pwa-prompt:not([style*="display: none"]) {
  background: transparent !important;
  border: none !important;
  color: transparent !important;
  padding: 0 !important;
  border-radius: 0 !important;
  max-width: none !important;
  margin: 0 !important;
  box-shadow: none !important;
  font-size: inherit !important;
  text-align: inherit !important;
  position: static !important;
}

#ios-pwa-prompt:not([style*="display: none"]) button {
  background: transparent !important;
  color: transparent !important;
  border: none !important;
  border-radius: 0 !important;
  padding: 0 !important;
  font-size: inherit !important;
  margin: 0 !important;
  cursor: default !important;
}

/* Ensure cancel button is visible when modal is active */
#ios-pwa-prompt:not([style*="display: none"]) .ios-prompt-cancel {
  background: none !important;
  color: #007aff !important;
  border: none !important;
  border-radius: 0 !important;
  padding: 0 !important;
  font-size: 16px !important;
  margin: 0 !important;
  cursor: pointer !important;
  font-weight: 400 !important;
}

#ios-pwa-prompt:not([style*="display: none"]) .close {
  display: none !important;
}

/* Legacy styles for backward compatibility (only when modal is not active) */
#ios-pwa-prompt[style*="display: none"] {
  background: #fffbe6;
  border: 1px solid #A2B372;
  color: #333;
  padding: 18px 16px 12px 16px;
  border-radius: 10px;
  max-width: 340px;
  margin: 24px auto 0 auto;
  box-shadow: 0 2px 12px rgba(0,0,0,0.08);
  font-size: 16px;
  text-align: left;
  position: relative;
}

#ios-pwa-prompt[style*="display: none"] button {
  background: #A2B372;
  color: #fff;
  border: none;
  border-radius: 6px;
  padding: 8px 18px;
  font-size: 15px;
  margin-top: 10px;
  cursor: pointer;
}

#ios-pwa-prompt[style*="display: none"] .close {
  position: absolute;
  top: 8px;
  right: 12px;
  background: none;
  border: none;
  font-size: 20px;
  color: #C49FD5;
  cursor: pointer;
}