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

body {
  font-family: -apple-system, BlinkMacSystemFont, Segoe UI, sans-serif;
  background: #0f0f0f;
  color: #fff;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

.container {
  max-width: 600px;
  width: 100%;
  padding: 40px 20px;
  text-align: center;
}

h1 { font-size: 2.2rem; line-height: 1.2; margin-bottom: 16px; }
.subtitle { color: #888; font-size: 1.1rem; margin-bottom: 48px; }

.mic-btn {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  border: 3px solid #333;
  background: transparent;
  color: #fff;
  cursor: pointer;
  transition: all 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
}

.mic-btn:hover { border-color: #667eea; color: #667eea; }
.mic-btn.recording { border-color: #e74c3c; color: #e74c3c; animation: pulse 1.5s infinite; }

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

.recorder { margin-bottom: 32px; display: flex; flex-direction: column; align-items: center; gap: 12px; }
.status { color: #666; font-size: 0.9rem; }

.transcript-box { margin-bottom: 32px; }
.transcript-box textarea {
  width: 100%;
  min-height: 120px;
  background: #1a1a1a;
  border: 1px solid #333;
  border-radius: 8px;
  padding: 16px;
  color: #fff;
  font-size: 1rem;
  resize: vertical;
}

.result { margin-top: 32px; }
.result h2 { margin-bottom: 16px; color: #667eea; }
.result-link { display: block; color: #667eea; font-size: 1.2rem; margin-bottom: 20px; }
.qr-container { margin: 20px 0; }
.qr-container img { width: 200px; height: 200px; border-radius: 8px; }
.timer { color: #e74c3c; margin: 12px 0; }

.buy-btn {
  padding: 14px 32px;
  background: #667eea;
  color: white;
  border: none;
  border-radius: 8px;
  font-size: 1.1rem;
  font-weight: 600;
  cursor: pointer;
}

.loading { margin-top: 32px; }
.spinner {
  width: 40px;
  height: 40px;
  border: 3px solid #333;
  border-top-color: #667eea;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  margin: 0 auto 12px;
}

@keyframes spin { to { transform: rotate(360deg); } }

.hidden { display: none; }
/* Price Prompt */
.price-prompt {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 16px;
  padding: 24px;
  margin-top: 24px;
  text-align: center;
}
.price-prompt h3 {
  margin: 0 0 8px;
  font-size: 1.3rem;
}
.price-hint {
  color: rgba(255,255,255,0.6);
  font-size: 0.9rem;
  margin-bottom: 16px;
}
.price-input-row {
  display: flex;
  align-items: center;
  gap: 10px;
  justify-content: center;
}
.mic-btn-small {
  width: 44px;
  height: 44px;
  padding: 8px;
}
.price-input {
  flex: 1;
  max-width: 200px;
  padding: 10px 14px;
  border-radius: 8px;
  border: 1px solid rgba(255,255,255,0.2);
  background: rgba(0,0,0,0.3);
  color: #fff;
  font-size: 1rem;
}
.price-submit-btn {
  padding: 10px 20px;
  background: #667eea;
  color: #fff;
  border: none;
  border-radius: 8px;
  font-size: 1rem;
  cursor: pointer;
  font-weight: 600;
}
.price-submit-btn:hover {
  background: #5a6fd6;
}
