/* ═══════════════════════════════════════════════════
   GOAT PICKER — Draw page styles
   ═══════════════════════════════════════════════════ */

.draw-page { background: var(--white); min-height: 100dvh; }

/* ── SECTIONS ── */
.draw-section {
  padding: 24px 20px 32px;
}
.draw-section .container { max-width: 440px; margin: 0 auto; }

/* ── FILTERS ── */
.filters-section {
  margin-bottom: 20px;
}
.filters-grid {
  display: flex; flex-direction: column; gap: 8px;
}
.filter-item {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 12px;
  background: var(--surface-1); border: 1px solid var(--border);
  border-radius: var(--r-md); cursor: pointer;
}
.filter-item input[type="checkbox"] {
  width: 16px; height: 16px; accent-color: var(--black);
  cursor: pointer;
}
.filter-label { font-size: 12px; font-weight: 500; color: var(--text-primary); flex: 1; }
.filter-locked { opacity: 0.5; cursor: default; }
.filter-locked input { cursor: not-allowed; }
.filter-locked svg { color: var(--text-tertiary); }

/* ── TEMPLATE PICKER ── */
.template-section { margin-bottom: 24px; }
.template-picker {
  display: flex; flex-direction: column; gap: 6px;
}
.template-btn {
  display: flex; align-items: center; justify-content: space-between;
  padding: 11px 13px;
  background: var(--surface-1); border: 1px solid var(--border);
  border-radius: var(--r-md); cursor: pointer;
  transition: all var(--t-fast); font-family: var(--font-sans);
}
.template-btn:hover { background: var(--surface-2); border-color: #ccc; }
.template-btn.active {
  background: var(--white); border: 2px solid var(--black);
}
.template-name { font-size: 12px; font-weight: 600; color: var(--text-primary); }
.template-locked { opacity: 0.6; }
.template-locked .template-name { color: var(--text-secondary); }

/* ── ANIMATION PHONE ── */
.anim-phone-wrap {
  display: flex; justify-content: center; margin-bottom: 24px;
}
.anim-phone {
  width: 200px; height: 360px; border-radius: 40px;
  background: linear-gradient(160deg, #004d20, #006d2e);
  overflow: hidden; position: relative;
  border: 1.5px solid rgba(255,255,255,0.2);
  box-shadow: 0 28px 64px rgba(0,0,0,0.25), inset 0 1px 0 rgba(255,255,255,0.35);
}
.anim-stage {
  height: 100%; display: flex; align-items: center; justify-content: center;
}

/* Stages */
.stage {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 10px; padding: 24px 16px; text-align: center; width: 100%; height: 100%;
}
.stage-label { color: var(--text-tertiary); font-size: 10px; }

.stage-count-wrap { }
.stage-count {
  font-size: 48px; font-weight: 900; color: #fff;
  font-family: var(--font-mono); line-height: 1;
}
.stage-spinner {
  width: 28px; height: 28px;
  border: 2.5px solid rgba(255,255,255,.15);
  border-top-color: var(--green);
  border-radius: 50%;
  animation: spin 0.9s linear infinite;
}

.stage-roulette-name {
  font-size: 18px; font-weight: 800; color: #fff;
}
.stage-roulette-dots {
  display: flex; gap: 5px; margin-top: 4px;
}
.stage-roulette-dots span {
  width: 5px; height: 5px; border-radius: 50%;
  background: rgba(255,255,255,.25);
  animation: pulse-dot 1s ease-in-out infinite;
}
.stage-roulette-dots span:nth-child(2) { animation-delay: 0.2s; }
.stage-roulette-dots span:nth-child(3) { animation-delay: 0.4s; }

.stage-winner-label { color: rgba(255,255,255,.5); }
.stage-winner-name {
  font-size: 20px; font-weight: 900; color: #fff;
  line-height: 1.2;
}
.stage-cert-badge {
  display: inline-flex; align-items: center; gap: 5px;
  background: rgba(0,200,83,.18); border: 1px solid rgba(0,200,83,.3);
  border-radius: 6px; padding: 4px 10px;
  font-size: 10px; font-weight: 700; color: #69f0ae;
  font-family: var(--font-mono);
}

.cert-icon-wrap {
  width: 48px; height: 48px; border-radius: 50%;
  background: rgba(0,200,83,.15); border: 1px solid rgba(0,200,83,.25);
  display: flex; align-items: center; justify-content: center;
}
.stage-certificate .stage-label { margin-top: 0; }

/* ── STEP INDICATORS ── */
.anim-steps {
  display: flex; align-items: center; justify-content: center;
  gap: 0; margin-bottom: 12px;
}
.anim-step {
  display: flex; flex-direction: column; align-items: center; gap: 5px;
  flex: 1; position: relative;
}
.anim-step:not(:last-child)::after {
  content: '';
  position: absolute; top: 7px; left: calc(50% + 8px);
  right: calc(-50% + 8px); height: 1px;
  background: var(--border);
}
.anim-step.done::after { background: var(--green); }
.step-dot {
  width: 14px; height: 14px; border-radius: 50%;
  background: var(--border); border: 2px solid var(--border);
  transition: all var(--t-base);
}
.anim-step.done .step-dot {
  background: var(--green); border-color: var(--green);
}
.anim-step.active .step-dot {
  background: var(--white); border-color: var(--black);
  box-shadow: 0 0 0 3px rgba(0,0,0,0.08);
}
.step-label {
  font-size: 9px; font-weight: 600; color: var(--text-tertiary);
  white-space: nowrap;
}
.anim-step.active .step-label,
.anim-step.done .step-label { color: var(--text-primary); }

.anim-status-text {
  text-align: center; font-size: 12px; color: var(--text-secondary);
}

/* ── RESULT ── */
.result-winner-card {
  background: var(--white); border: 1px solid var(--border);
  border-radius: var(--r-lg); overflow: hidden; margin-bottom: 12px;
}
.result-winner-header {
  background: linear-gradient(135deg, #00c853, #00e676);
  padding: 16px; display: flex; align-items: center; gap: 12px;
}
.result-mascot { width: 40px; height: 20px; flex-shrink: 0; }
.result-winner-info { flex: 1; }
.result-winner-name {
  font-size: 20px; font-weight: 900; color: #fff; line-height: 1.1;
}
.result-winner-count { color: rgba(255,255,255,.75); margin-top: 2px; }
.result-winner-info .section-label { color: rgba(255,255,255,.65); margin-bottom: 2px; }

.result-cert-zone { padding: 14px; }
.cert-unlocked { border-radius: var(--r-md); overflow: hidden; }
.cert-check-icon {
  width: 26px; height: 26px; border-radius: 50%;
  background: rgba(0,200,83,.18); border: 1px solid rgba(0,200,83,.28);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}

/* ── ACTIONS ── */
.result-actions { margin-bottom: 12px; }

/* ── UPSELL ── */
.result-upsell {
  border-top: 1px solid var(--border); padding-top: 16px; margin-bottom: 12px;
}
.upsell-options {
  display: flex; flex-direction: column; gap: 8px;
}
.upsell-card {
  display: flex; flex-direction: column; gap: 4px;
  padding: 13px 14px;
  background: var(--surface-1); border: 1px solid var(--border);
  border-radius: var(--r-md); cursor: pointer;
  transition: all var(--t-fast); text-decoration: none;
  position: relative;
}
.upsell-card:hover { border-color: #bbb; background: var(--white); }
.upsell-card-title { font-size: 13px; font-weight: 700; color: var(--text-primary); }
.upsell-card-desc  { font-size: 11px; color: var(--text-secondary); }
.upsell-card-price {
  font-size: 15px; font-weight: 900; color: var(--text-primary);
  margin-top: 4px;
}
.upsell-card-price span { font-size: 11px; font-weight: 400; color: var(--text-secondary); }
.upsell-featured {
  background: var(--black); border-color: var(--black);
}
.upsell-featured .upsell-card-title,
.upsell-featured .upsell-card-price { color: var(--white); }
.upsell-featured .upsell-card-desc  { color: rgba(255,255,255,.5); }
.upsell-badge-featured {
  position: absolute; top: -1px; right: 12px;
  border-radius: 0 0 6px 6px;
  font-size: 8px;
}
.upsell-pp {
  border: 2px solid rgba(124,58,237,.25);
}
.upsell-pp .upsell-card-title { color: #6d28d9; }
