*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --bg-dark: #0a0f0c;
  --card-dark: #121a14;
  --card-border: rgba(57, 255, 120, 0.28);
  --accent: #39ff78;
  --accent-dim: #1db954;
  --gold: #f5c518;
  --gold-dark: #c9960a;
  --text: #ffffff;
  --text-muted: #9aaba0;
  --radius: 18px;
}

html, body {
  height: 100%;
  overflow-x: hidden;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  background: var(--bg-dark);
  color: var(--text);
  min-height: 100vh;
  position: relative;
}

.bg-overlay {
  position: fixed;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(10, 15, 12, 0.82) 0%, rgba(10, 15, 12, 0.96) 100%),
    radial-gradient(ellipse at 50% 0%, rgba(57, 255, 120, 0.14) 0%, transparent 55%),
    radial-gradient(ellipse at 85% 75%, rgba(245, 197, 24, 0.1) 0%, transparent 45%),
    #060a08;
  z-index: 0;
}

.app {
  position: relative;
  z-index: 1;
  max-width: 420px;
  margin: 0 auto;
  padding: 12px 16px 32px;
  min-height: 100vh;
}

.screen {
  display: none;
  animation: fadeIn 0.25s ease;
}

.screen.active {
  display: block;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

.hero-card {
  background: linear-gradient(180deg, #2ecc71 0%, #1a9e4a 50%, #0f6b32 100%);
  border-radius: var(--radius);
  padding: 24px 20px 20px;
  text-align: center;
  margin-bottom: 14px;
  box-shadow: 0 8px 24px rgba(29, 185, 84, 0.35);
  border: 1px solid rgba(57, 255, 120, 0.25);
}

.gem-icon {
  width: 88px;
  height: 88px;
  margin: 0 auto 10px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.gem-icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 16px;
  filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.35));
}

.hero-card h1 {
  font-size: 1.5rem;
  font-weight: 800;
  color: #fff;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.25);
  margin-bottom: 6px;
}

.hero-card p {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.95);
  line-height: 1.35;
}

.progress-wrap {
  height: 4px;
  background: rgba(255, 255, 255, 0.12);
  border-radius: 4px;
  margin-bottom: 14px;
  overflow: hidden;
}

.progress-bar {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--accent), var(--gold));
  border-radius: 4px;
  transition: width 0.35s ease;
}

.question-card {
  background: var(--card-dark);
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  padding: 20px 18px 18px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
}

.question-label {
  color: var(--accent);
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 10px;
}

.question-text {
  font-size: 1.15rem;
  font-weight: 700;
  line-height: 1.35;
  margin-bottom: 18px;
  color: var(--text);
}

.answer-area {
  margin-bottom: 16px;
}

.input-field {
  width: 100%;
  background: #060a08;
  border: 1.5px solid rgba(57, 255, 120, 0.45);
  border-radius: 12px;
  padding: 14px 16px;
  color: var(--text);
  font-size: 1rem;
  outline: none;
  transition: border-color 0.2s;
}

.input-field::placeholder {
  color: #666;
}

.input-field:focus {
  border-color: var(--accent);
}

.select-wrap {
  position: relative;
}

.select-field {
  width: 100%;
  appearance: none;
  background: #060a08;
  border: 1.5px solid rgba(57, 255, 120, 0.45);
  border-radius: 12px;
  padding: 14px 40px 14px 16px;
  color: var(--text);
  font-size: 1rem;
  outline: none;
  cursor: pointer;
}

.select-field option {
  background: #121a14;
  color: var(--text);
}

.select-wrap::after {
  content: "▾";
  position: absolute;
  right: 16px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--accent);
  pointer-events: none;
  font-size: 1.1rem;
}

.options-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.btn-option {
  width: 100%;
  background: #060a08;
  border: 1.5px solid rgba(255, 255, 255, 0.15);
  border-radius: 12px;
  padding: 14px 16px;
  color: var(--text);
  font-size: 1rem;
  font-weight: 500;
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s;
  text-align: center;
}

.btn-option.selected {
  border-color: var(--accent);
  background: rgba(57, 255, 120, 0.1);
}

.btn-option:active {
  transform: scale(0.98);
}

.btn-next {
  width: 100%;
  border: none;
  border-radius: 14px;
  padding: 15px;
  font-size: 1.05rem;
  font-weight: 800;
  color: #0a0f0c;
  background: linear-gradient(180deg, #6eff9a 0%, #39ff78 45%, #1db954 100%);
  cursor: pointer;
  box-shadow: 0 4px 16px rgba(29, 185, 84, 0.4);
  transition: transform 0.15s, opacity 0.2s;
}

.btn-next:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.btn-next:not(:disabled):active {
  transform: scale(0.98);
}

.confirm-card {
  background: var(--card-dark);
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  padding: 32px 24px;
  text-align: center;
  margin-top: 40px;
}

.confirm-icon {
  font-size: 3rem;
  margin-bottom: 12px;
}

.confirm-card h2 {
  font-size: 1.4rem;
  margin-bottom: 8px;
}

.confirm-card p {
  color: var(--text-muted);
  margin-bottom: 24px;
}

.confirm-actions {
  display: flex;
  gap: 12px;
}

.confirm-actions .btn-option {
  flex: 1;
}

.result-content {
  text-align: center;
  padding-top: 16px;
}

.result-content .reward-card.compact {
  margin-bottom: 16px;
}

.result-content .payment-card {
  text-align: left;
}

.pay-icon {
  font-size: 1.4rem;
}

.success-emoji {
  font-size: 4rem;
  margin-bottom: 12px;
}

.success-title {
  font-size: 2rem;
  font-weight: 800;
  color: var(--gold);
  margin-bottom: 10px;
}

.success-sub {
  font-size: 1rem;
  margin-bottom: 24px;
  line-height: 1.4;
}

.reward-card {
  background: linear-gradient(180deg, #ffe066 0%, #f5c518 50%, #c9960a 100%);
  border-radius: var(--radius);
  padding: 28px 20px;
  margin-bottom: 20px;
  box-shadow: 0 8px 24px rgba(245, 197, 24, 0.35);
}

.reward-card.compact {
  margin-bottom: 16px;
}

.reward-amount {
  font-size: 2rem;
  font-weight: 900;
  color: #1a1a1a;
  margin-bottom: 6px;
}

.reward-note {
  font-size: 0.85rem;
  color: rgba(26, 26, 26, 0.75);
}

.payment-card {
  background: var(--card-dark);
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  padding: 24px 20px;
}

.price-box {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  background: #060a08;
  border-left: 3px solid var(--gold);
  border-radius: 12px;
  padding: 18px;
  margin-bottom: 16px;
}

.price-value {
  font-size: 2rem;
  font-weight: 900;
  color: var(--gold);
}

.payment-info {
  font-size: 0.82rem;
  color: var(--text-muted);
  line-height: 1.45;
  margin-bottom: 20px;
}

.payment-info em {
  font-style: italic;
}
