.n99-app-prompt {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 999999;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.n99-app-prompt.n99-show {
  opacity: 1;
  pointer-events: auto;
}

.n99-prompt-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(4px);
}

.n99-prompt-content {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) translateY(-20px);
  background: white;
  border-radius: 16px;
  padding: 24px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
  max-width: 420px;
  width: calc(100% - 32px);
  z-index: 1000000;
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  outline: none;
  box-sizing: border-box;
}

.n99-app-prompt.n99-show .n99-prompt-content {
  transform: translate(-50%, -50%) translateY(0);
}

.n99-prompt-close {
  position: absolute;
  top: 12px;
  left: 12px;
  background: rgba(0, 0, 0, 0.05);
  border: none;
  border-radius: 50%;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: #666;
  transition: all 0.2s;
  padding: 0;
}

.n99-prompt-close:hover {
  background: rgba(0, 0, 0, 0.1);
  transform: scale(1.1);
}

.n99-prompt-close:focus {
  outline: 2px solid #c12026;
  outline-offset: 2px;
}

.n99-prompt-header {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 20px;
  padding-left: 40px;
}

.n99-prompt-logo {
  width: 56px;
  height: 56px;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  flex-shrink: 0;
}

.n99-prompt-text h3 {
  margin: 0 0 4px 0;
  font-size: 1.1rem;
  font-weight: 600;
  color: #333;
}

.n99-prompt-text p {
  margin: 0;
  font-size: 0.9rem;
  color: #666;
  line-height: 1.4;
}

.n99-prompt-actions {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.n99-prompt-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 20px;
  border-radius: 12px;
  font-size: 0.95rem;
  font-weight: 600;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: all 0.3s;
  width: 100%;
  font-family: inherit;
  box-sizing: border-box;
  max-width: 100%;
}

.n99-prompt-btn:focus {
  outline: 2px solid #c12026;
  outline-offset: 2px;
}

.n99-prompt-btn.n99-primary {
  background: linear-gradient(135deg, #c12026, #ad0007);
  color: white;
  box-shadow: 0 4px 12px rgba(193, 32, 38, 0.3);
}

.n99-prompt-btn.n99-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(193, 32, 38, 0.4);
}

.n99-prompt-btn.n99-secondary {
  background: rgba(0, 0, 0, 0.05);
  color: #666;
}

.n99-prompt-btn.n99-secondary:hover {
  background: rgba(0, 0, 0, 0.1);
}

@media (max-width: 480px) {
  .n99-prompt-content {
    padding: 20px 16px;
    max-width: calc(100% - 24px);
  }

  .n99-prompt-header {
    padding-left: 32px;
  }

  .n99-prompt-logo {
    width: 48px;
    height: 48px;
  }

  .n99-prompt-text h3 {
    font-size: 1rem;
  }

  .n99-prompt-text p {
    font-size: 0.85rem;
  }

  .n99-prompt-btn {
    padding: 12px 16px;
    font-size: 0.9rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .n99-app-prompt,
  .n99-prompt-content,
  .n99-prompt-btn {
    transition: none;
  }
}