* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
  background: #ffffff;
  min-height: 100vh;
  color: #1e293b;
  overflow: hidden;
}

.bg {
  position: fixed;
  inset: 0;
  background:
    radial-gradient(ellipse at 20% 10%, rgba(59, 130, 246, 0.15) 0%, transparent 60%),
    radial-gradient(ellipse at 80% 90%, rgba(99, 102, 241, 0.15) 0%, transparent 60%),
    linear-gradient(180deg, #e0e7ff, #f8fafc);
  z-index: -1;
}

.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.6);
  backdrop-filter: blur(12px);
  visibility: hidden;
  opacity: 0;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.modal-overlay.active {
  visibility: visible;
  opacity: 1;
}

.modal-content {
  width: 90%;
  max-width: 400px;
  background: rgba(255, 255, 255, 0.95);
  border-radius: 24px;
  padding: 32px 28px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
  border: 1px solid rgba(99, 102, 241, 0.3);
}

.title {
  font-size: 1.6rem;
  font-weight: 900;
  color: #ef4444;
  text-align: center;
  margin-bottom: 16px;
}

.desc {
  font-size: 1.05rem;
  color: #475569;
  text-align: center;
  margin-bottom: 20px;
  line-height: 1.5;
}

.link-box {
  font-size: 0.95rem;
  background: rgba(226, 232, 240, 0.8);
  padding: 16px;
  border-radius: 14px;
  color: #64748b;
  word-break: break-all;
  margin-bottom: 24px;
  border: 1px solid rgba(99, 102, 241, 0.25);
}

.btn {
  width: 100%;
  margin-top: 8px;
  padding: 10px;
  border-radius: 10px;
  border: none;
  font-weight: 700;
  font-size: 14px;
  cursor: pointer;
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
}

.btn.blue {
  background: #3b82f6;
  color: white;
}

.btn.green {
  background: #10b981;
  color: white;
}

.btn.copied {
  background: #10b981;
  animation: pulse 0.6s ease;
}

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

.tips {
  font-size: 0.85rem;
  color: #64748b;
  text-align: center;
  margin-top: 16px;
  font-style: italic;
}

@media (min-width: 480px) {
  .modal-content {
    padding: 40px 36px;
  }
}
