:root {
  --primary: #7c3aed;
  --primary-light: #a78bfa;
  --primary-soft: #ede9fe;
  --accent: #f472b6;
  --text: #1e293b;
  --text-secondary: #64748b;
  --text-muted: #94a3b8;
  --card-bg: #ffffff;
  --card-shadow: 0 2px 16px rgba(100, 50, 160, 0.06);
  --radius-xl: 22px;
  --radius-lg: 16px;
  --transition: 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
  font-size: 16px;
  -webkit-text-size-adjust: none;
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  width: 100%;
  overflow-x: hidden;
  color: var(--text);
  background: linear-gradient(180deg, #faf8ff 0%, #f5f0ff 30%, #fdf4ff 60%, #faf8ff 100%);
  background-attachment: fixed;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "PingFang SC", "Microsoft YaHei", sans-serif;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

#container {
  width: 100%;
  max-width: 600px;
  margin: 0 auto;
  padding: 20px 14px 40px;
}

.blkFinalStep_9237 {
  width: 100%;
  margin: 0 auto;
  padding: 28px 20px;
  background: var(--card-bg);
  border: 1px solid rgba(139, 92, 246, 0.08);
  border-radius: var(--radius-xl);
  box-shadow: var(--card-shadow);
}

.title-big-red {
  margin: 0 0 4px;
  color: var(--primary);
  font-size: 2rem;
  font-weight: 800;
  line-height: 1.3;
  letter-spacing: -0.5px;
  text-align: center;
}

.tiny-red-count {
  margin: 0 0 20px;
  color: var(--primary-light);
  font-size: 0.92rem;
  font-weight: 500;
  letter-spacing: 0.5px;
  text-align: center;
}

.normal-text {
  margin: 6px 0;
  color: var(--text);
  font-size: 1.05rem;
  font-weight: 500;
  line-height: 1.65;
}

.normal-text strong {
  color: var(--primary);
  font-weight: 700;
}

.divider {
  width: 100%;
  height: 1px;
  margin: 18px 0;
  border: none;
  background: linear-gradient(90deg, transparent, #e8e0f0 20%, #e8e0f0 80%, transparent);
}

.step-title {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 16px 0 6px;
  color: var(--primary);
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: -0.2px;
}

.step-number {
  display: inline-flex;
  flex-shrink: 0;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  color: #fff;
  background: var(--accent);
  border-radius: 50%;
  box-shadow: 0 2px 8px rgba(244, 114, 182, 0.3);
  font-size: 0.9rem;
  font-weight: 700;
}

.step-desc {
  margin: 8px 0 14px;
  padding: 16px;
  color: var(--text-secondary);
  background: #fdfbff;
  border: 1px solid #f0e8ff;
  border-radius: var(--radius-lg);
  font-size: 0.95rem;
  line-height: 1.7;
}

.step-desc strong {
  color: var(--primary);
}

.platform-icons-row {
  display: grid;
  grid-template-columns: minmax(0, 112px);
  justify-content: center;
  gap: 10px;
  margin: 0 0 10px;
}

.platform-icon-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  min-width: 0;
  padding: 14px 6px;
  color: inherit;
  background: #fff;
  border: 2px solid #f0ebf8;
  border-radius: var(--radius-lg);
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04);
  cursor: pointer;
  transition: var(--transition);
  -webkit-tap-highlight-color: transparent;
  user-select: none;
}

.platform-icon-btn:hover {
  transform: translateY(-3px);
  border-color: #c4b5ee;
  box-shadow: 0 8px 22px rgba(124, 58, 237, 0.12);
}

.platform-icon-btn:active {
  transform: scale(0.95);
  background: #faf7ff;
}

.platform-icon-btn:focus-visible {
  outline: 3px solid rgba(124, 58, 237, 0.28);
  outline-offset: 2px;
}

.platform-icon-btn .icon-emoji {
  font-size: 2.4rem;
  line-height: 1;
}

.platform-icon-btn .icon-label {
  color: var(--text);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.3px;
  white-space: nowrap;
}

.progress-wrap {
  text-align: center;
}

.progress-hint {
  display: inline-block;
  margin: 14px 0 6px;
  padding: 10px 18px;
  color: var(--primary);
  background: var(--primary-soft);
  border-radius: 30px;
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.2px;
  text-align: center;
}

.uploadZone_9237 {
  position: relative;
  margin: 14px 0 10px;
  padding: 26px 18px;
  background: linear-gradient(180deg, #fdfbff 0%, #f8f4ff 100%);
  border: 2px dashed #d4c4f0;
  border-radius: var(--radius-lg);
  cursor: pointer;
  text-align: center;
  transition: var(--transition);
}

.uploadZone_9237:hover,
.uploadZone_9237.is-dragging {
  background: linear-gradient(180deg, #faf7ff 0%, #f3ecff 100%);
  border-color: #b49df2;
}

.uploadZone_9237 input[type="file"] {
  position: absolute;
  inset: 0;
  z-index: 10;
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: pointer;
}

.uploadIcon_9237 {
  width: 50px;
  height: 38px;
  margin: 0 auto 10px;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='48' height='36' fill='%23a78bfa'><path d='M24 4l9 11h-5v9h-8v-9h-5z'/><rect y='26' width='48' height='7' rx='3' opacity='0.8'/></svg>");
  background-position: center;
  background-repeat: no-repeat;
  background-size: contain;
  opacity: 0.85;
}

.upload-hint {
  color: var(--text-secondary);
  font-size: 1rem;
  font-weight: 500;
}

.upload-hint strong {
  color: var(--primary);
  font-weight: 700;
}

.upload-status {
  display: inline-block;
  margin: 6px 0;
  padding: 7px 16px;
  border-radius: 30px;
  font-size: 0.95rem;
  font-weight: 500;
  letter-spacing: 0.2px;
  text-align: center;
}

.upload-status:empty {
  display: none;
}

.status-pending {
  color: #c2410c;
  background: #fff7ed;
  border: 1px solid #fed7aa;
}

.status-ready {
  color: #166534;
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
  animation: gentlePulse 2s ease-in-out infinite;
}

@keyframes gentlePulse {
  0%,
  100% {
    box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.15);
  }
  50% {
    box-shadow: 0 0 0 10px rgba(34, 197, 94, 0);
  }
}

.submitBtn_9237 {
  position: relative;
  width: 100%;
  margin: 8px 0 4px;
  padding: 15px 0;
  overflow: hidden;
  color: #fff;
  background: linear-gradient(135deg, #8b5cf6, #6d28d9);
  border: none;
  border-radius: var(--radius-lg);
  box-shadow: 0 6px 20px rgba(109, 40, 217, 0.25);
  cursor: pointer;
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: 0.5px;
}

.submitBtn_9237:disabled {
  color: #94a3b8;
  background: #e2e8f0;
  box-shadow: none;
  cursor: not-allowed;
}

.submitBtn_9237:not(:disabled):hover {
  filter: brightness(1.04);
}

#copy-popup,
#jumpToast {
  position: fixed;
  top: 50%;
  left: 50%;
  z-index: 6000;
  display: none;
  padding: 14px 28px;
  color: #fff;
  background: rgba(30, 27, 40, 0.94);
  border-radius: 50px;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.25);
  font-size: 0.95rem;
  font-weight: 500;
  pointer-events: none;
  transform: translate(-50%, -50%) scale(0.9);
  white-space: nowrap;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

#copy-popup.show,
#jumpToast.show {
  display: block;
  animation: popIn 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
}

@keyframes popIn {
  from {
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.8);
  }
  to {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
  }
}

@media screen and (max-width: 480px) {
  .blkFinalStep_9237 {
    padding: 22px 14px;
  }

  .platform-icons-row {
    gap: 8px;
    margin: 0 0 8px;
  }

  .platform-icon-btn {
    padding: 12px 4px;
  }

  .platform-icon-btn .icon-emoji {
    font-size: 2.2rem;
  }

  .platform-icon-btn .icon-label {
    font-size: 0.78rem;
  }

  .title-big-red {
    font-size: 1.7rem;
  }
}
