:root {
  --bg-color: #0f172a;
  --card-bg: rgba(30, 41, 59, 0.7);
  --primary: #3b82f6;
  --primary-hover: #2563eb;
  --accent: #0ea5e9;
  --text-main: #f8fafc;
  --text-muted: #94a3b8;
  --warning: #f59e0b;
}

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

body {
  font-family: "Inter", sans-serif;
  background-color: var(--bg-color);
  color: var(--text-main);
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  background-image: radial-gradient(circle at top, #1e293b 0%, #0f172a 100%);
}

.container {
  max-width: 800px;
  width: 100%;
  padding: 2rem;
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

header {
  text-align: center;
  margin-bottom: 1rem;
}

h1 {
  font-size: 2.5rem;
  font-weight: 800;
  margin-bottom: 0.5rem;
  background: linear-gradient(to right, #60a5fa, #38bdf8);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  text-shadow: 0 0 30px rgba(56, 189, 248, 0.3);
}

.subtitle {
  color: var(--text-muted);
  font-size: 1.1rem;
  max-width: 600px;
  margin: 0 auto;
}

.eject-section {
  background: var(--card-bg);
  border: 1px solid rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  border-radius: 24px;
  padding: 3rem 2rem;
  text-align: center;
  position: relative;
  overflow: hidden;
  box-shadow: 0 20px 40px -10px rgba(0, 0, 0, 0.5);
}

.eject-btn {
  background: linear-gradient(135deg, var(--primary), var(--accent));
  color: white;
  border: none;
  padding: 1.2rem 2.5rem;
  font-size: 1.5rem;
  font-weight: 800;
  border-radius: 50px;
  cursor: pointer;
  transition:
    transform 0.2s,
    box-shadow 0.2s;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  position: relative;
  z-index: 2;
  box-shadow: 0 10px 25px -5px rgba(59, 130, 246, 0.5);
}

.eject-btn:hover {
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 15px 35px -5px rgba(59, 130, 246, 0.6);
}

.eject-btn:active {
  transform: translateY(1px) scale(0.98);
}

.eject-btn.playing {
  background: linear-gradient(135deg, #ef4444, #dc2626);
  box-shadow: 0 10px 25px -5px rgba(239, 68, 68, 0.5);
  animation: pulse-danger 2s infinite;
}

.warning-text {
  margin-top: 1.5rem;
  color: var(--warning);
  font-size: 0.9rem;
  font-weight: 600;
}

/* Animations */
.wave-container {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 200px;
  height: 200px;
  z-index: 1;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.5s;
}

.wave-container.active {
  opacity: 1;
}

.wave {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 100px;
  height: 100px;
  border-radius: 50%;
  border: 2px solid var(--accent);
  opacity: 0;
}

.wave-container.active .wave:nth-child(1) {
  animation: ripple 1.5s infinite;
}
.wave-container.active .wave:nth-child(2) {
  animation: ripple 1.5s infinite 0.5s;
}
.wave-container.active .wave:nth-child(3) {
  animation: ripple 1.5s infinite 1s;
}

@keyframes ripple {
  0% {
    width: 100px;
    height: 100px;
    opacity: 1;
  }
  100% {
    width: 500px;
    height: 500px;
    opacity: 0;
  }
}

@keyframes pulse-danger {
  0% {
    box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.7);
  }
  70% {
    box-shadow: 0 0 0 20px rgba(239, 68, 68, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(239, 68, 68, 0);
  }
}

.instructions {
  background: rgba(15, 23, 42, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 16px;
  padding: 2rem;
}

.instructions h2 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
  color: #e2e8f0;
}

.instructions ol {
  list-style-position: inside;
  color: var(--text-muted);
}

.instructions li {
  margin-bottom: 0.5rem;
}

/* Ad Placeholders */
.ad-container {
  width: 100%;
  background-color: rgba(0, 0, 0, 0.2);
  border: 1px dashed rgba(255, 255, 255, 0.2);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  margin: 1rem 0;
}

.ad-placeholder-text {
  color: rgba(255, 255, 255, 0.3);
  font-size: 0.9rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.ad-top {
  height: 90px;
}
.ad-middle {
  height: 250px;
}
.ad-bottom {
  height: 90px;
}

footer {
  text-align: center;
  padding: 2rem;
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-top: auto;
}

/* Modal Styles */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
  padding: 1rem;
}

.modal-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.modal-content {
  background: #121212;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  padding: 2.5rem 2rem;
  max-width: 550px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  text-align: center;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
}

.modal-content h3 {
  font-size: 1.6rem;
  margin-bottom: 1.5rem;
  color: white;
  font-weight: 800;
}

.modal-content p {
  color: #d1d5db;
  font-size: 1.05rem;
  margin-bottom: 1rem;
  line-height: 1.6;
}

.highlight-blue {
  color: #38bdf8;
  font-weight: 700;
}

.heart-text {
  font-weight: 600;
  margin-top: 1.5rem;
}

.receiver-text {
  margin-bottom: 2rem !important;
  color: #9ca3af !important;
  font-size: 0.95rem !important;
}

.receiver-text strong {
  color: white;
}

.pix-section {
  background: #1e1e1e;
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 12px;
  padding: 1.5rem;
  margin-bottom: 2rem;
}

.pix-section h4 {
  font-size: 1.25rem;
  margin-bottom: 1.5rem;
  color: white;
  font-weight: 700;
}

.pix-qr-container {
  display: flex;
  justify-content: center;
  margin-bottom: 1.5rem;
}

.pix-qr-img {
  width: 160px;
  height: 160px;
  background: white;
  padding: 8px;
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.pix-box {
  display: flex;
  gap: 1rem;
  align-items: stretch;
}

.pix-code-container {
  flex: 1;
  background: #0a0a0a;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  padding: 0.8rem;
}

.pix-code-container textarea {
  width: 100%;
  height: 100px;
  background: transparent;
  border: none;
  color: #eab308;
  font-family: monospace;
  font-size: 0.85rem;
  resize: none;
  outline: none;
  line-height: 1.4;
}

.pix-code-container textarea::-webkit-scrollbar {
  width: 6px;
}
.pix-code-container textarea::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.2);
  border-radius: 4px;
}

.copy-btn {
  background: #3b82f6;
  color: white;
  border: none;
  border-radius: 8px;
  padding: 0 1.5rem;
  font-weight: 700;
  font-size: 1rem;
  cursor: pointer;
  transition:
    background 0.2s,
    transform 0.1s;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-family: "Inter", sans-serif;
}

.copy-btn:hover {
  background: #2563eb;
}

.copy-btn:active {
  transform: scale(0.98);
}

.copy-btn.copied {
  background: #10b981;
}

.close-modal-btn {
  background: transparent;
  color: #9ca3af;
  border: none;
  font-size: 0.95rem;
  cursor: pointer;
  transition: color 0.2s;
  font-family: inherit;
  text-decoration: underline;
  text-decoration-color: transparent;
}

.close-modal-btn:hover {
  color: white;
  text-decoration-color: white;
}

@media (max-width: 600px) {
  h1 {
    font-size: 1.8rem;
  }
  .eject-btn {
    padding: 0.8rem 1.5rem;
    font-size: 1.1rem;
  }
  .ad-top,
  .ad-bottom {
    height: 50px;
  }

  .modal-overlay {
    padding: 0.4rem;
  }
  .modal-content {
    padding: 1rem 0.8rem;
    max-height: 98vh;
  }
  .modal-content h3 {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
  }
  .modal-content p {
    font-size: 0.85rem;
    margin-bottom: 0.3rem;
    line-height: 1.25;
  }
  .heart-text {
    margin-top: 0.4rem;
  }
  .receiver-text {
    margin-bottom: 0.6rem !important;
    font-size: 0.8rem !important;
  }
  .pix-section {
    padding: 0.6rem;
    margin-bottom: 0.8rem;
  }
  .pix-section h4 {
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
  }
  .pix-qr-container {
    margin-bottom: 0.5rem;
  }
  .pix-qr-img {
    width: 100px;
    height: 100px;
  }
  .pix-box {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
  }
  .copy-btn {
    padding: 0.8rem;
    font-size: 0.85rem;
    width: 100%;
    max-width: 250px;
    margin: 0 auto;
    display: flex;
    justify-content: center;
  }
  .close-modal-btn {
    font-size: 0.85rem;
    margin-top: 0.5rem;
  }
}
