/* --- RESET & UTILITIES --- */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

.visually-hidden {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0, 0, 0, 0); border: 0;
}

.hidden {
  display: none !important;
}

body {
  font-family: 'Inter', sans-serif;
  background: linear-gradient(135deg, #ff1f8f 0%, #ff6f3c 50%, #ffc83a 100%);
  background-size: 300% 300%;
  animation: gradientFlow 10s ease infinite;
  color: #fff;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  -webkit-font-smoothing: antialiased;
}

@keyframes gradientFlow {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

/* --- LAYOUT --- */
.site-wrapper {
  flex: 1;
  width: 100%;
  max-width: 1000px;
  margin: 0 auto;
  padding: 60px 20px 40px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* --- HEADER --- */
.header-section {
  text-align: center;
  margin-bottom: 50px;
  width: 100%;
}

.brand-badge {
  display: inline-block;
  background: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(10px);
  padding: 8px 24px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 24px;
  border: 1px solid rgba(255,255,255,0.4);
}

.headline {
  font-family: 'Sora', sans-serif;
  font-size: clamp(3.5rem, 10vw, 7.5rem);
  font-weight: 900;
  line-height: 0.95;
  letter-spacing: -0.04em;
  margin-bottom: 24px;
  text-transform: uppercase;
  text-shadow: 0 10px 30px rgba(0,0,0,0.15);
}

.subhead {
  font-size: clamp(1.1rem, 3vw, 1.35rem);
  max-width: 680px;
  margin: 0 auto;
  line-height: 1.5;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.95);
  text-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

/* --- MAIN CARD --- */
.main-content {
  width: 100%;
  max-width: 520px;
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  z-index: 10;
}

.hero-card {
  background: #ffffff;
  border-radius: 32px;
  padding: 48px;
  width: 100%;
  box-shadow: 
    0 20px 40px -10px rgba(0,0,0,0.2), 
    0 40px 80px -20px rgba(255, 31, 143, 0.3);
  color: #111;
  position: relative;
}

/* Sneaker Graphic Floating Above Card */
.sneaker-image-wrapper {
  position: absolute;
  top: -80px;
  right: -50px;
  width: 160px;
  height: 160px;
  border-radius: 50%;
  background: #fff;
  padding: 10px;
  box-shadow: 0 15px 30px rgba(0,0,0,0.15);
  animation: float 6s ease-in-out infinite;
  z-index: 20;
  pointer-events: none;
}

.floating-sneaker {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
}

@keyframes float {
  0% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-15px) rotate(3deg); }
  100% { transform: translateY(0) rotate(0deg); }
}

@media (max-width: 600px) {
  .sneaker-image-wrapper {
    top: -60px;
    right: 20px;
    width: 120px;
    height: 120px;
  }
  .hero-card {
    padding: 32px 24px;
  }
}

/* --- FORMS & INPUTS --- */
.form-group {
  margin-bottom: 20px;
}

input[type="email"],
input[type="text"] {
  width: 100%;
  height: 64px;
  border-radius: 16px;
  border: 2px solid #e2e8f0;
  padding: 0 24px;
  font-size: 1.15rem;
  font-family: inherit;
  font-weight: 500;
  color: #111;
  background: #f8fafc;
  transition: all 0.3s ease;
  outline: none;
}

input[type="email"]:focus,
input[type="text"]:focus {
  border-color: #ff1f8f;
  background: #fff;
  box-shadow: 0 0 0 4px rgba(255, 31, 143, 0.15);
}

.btn-primary {
  width: 100%;
  height: 64px;
  border-radius: 16px;
  background: #ff1f8f;
  color: #fff;
  border: none;
  font-family: 'Sora', sans-serif;
  font-size: 1.25rem;
  font-weight: 800;
  text-transform: uppercase;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  box-shadow: 0 10px 25px rgba(255, 31, 143, 0.3);
}

.btn-primary:hover {
  transform: translateY(-4px) scale(1.02);
  box-shadow: 0 15px 35px rgba(255, 31, 143, 0.4);
  background: #e6107b;
}

.btn-primary:disabled {
  opacity: 0.7;
  transform: none;
  cursor: not-allowed;
}

.error-msg {
  background: #fee2e2;
  color: #b91c1c;
  padding: 16px;
  border-radius: 12px;
  margin-bottom: 20px;
  font-weight: 600;
  text-align: center;
  border: 1px solid #fecaca;
}

.status-box {
  background: rgba(0,0,0,0.5);
  backdrop-filter: blur(10px);
  color: #fff;
  padding: 20px 40px;
  border-radius: 16px;
  margin-bottom: 40px;
  font-size: 1.5rem;
  font-weight: bold;
  text-align: center;
}

/* --- SHARE STATE --- */
.success-header {
  text-align: center;
  margin-bottom: 30px;
}

.success-title {
  font-family: 'Sora', sans-serif;
  font-size: 2.5rem;
  font-weight: 900;
  color: #111;
  margin-bottom: 10px;
}

.success-desc {
  font-size: 1.1rem;
  color: #475569;
  line-height: 1.5;
}

.share-box {
  margin-bottom: 20px;
}

.share-box input {
  text-align: center;
  background: #f1f5f9;
  border-color: #cbd5e1;
  color: #334155;
  font-size: 1.05rem;
}

.share-actions {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 35px;
}

.btn-share {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  width: 100%;
  height: 56px;
  border-radius: 14px;
  font-size: 1.1rem;
  font-weight: 700;
  border: none;
  cursor: pointer;
  transition: transform 0.2s, opacity 0.2s;
  color: #fff;
}

.btn-share:hover {
  transform: translateY(-2px);
  opacity: 0.95;
}

.btn-ig { background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%); }
.btn-tiktok { background: #000000; }
.btn-copy { background: #cbd5e1; color: #334155; }
.btn-copy:hover { background: #94a3b8; }

/* Progress Bar */
.progress-section {
  background: #f8fafc;
  border-radius: 20px;
  padding: 24px;
  margin-bottom: 35px;
  border: 1px solid #e2e8f0;
}

.progress-labels {
  display: flex;
  justify-content: space-between;
  margin-bottom: 12px;
  font-weight: 700;
  font-size: 0.95rem;
}

.progress-text {
  color: #ff1f8f;
}

.progress-target {
  color: #94a3b8;
}

.progress-container {
  width: 100%;
  height: 16px;
  background: #e2e8f0;
  border-radius: 999px;
  overflow: hidden;
  box-shadow: inset 0 2px 4px rgba(0,0,0,0.05);
}

.progress-bar-fill {
  height: 100%;
  width: 5%; /* starts small to show it's active */
  background: linear-gradient(90deg, #ff1f8f, #ff6f3c);
  border-radius: 999px;
  transition: width 1s ease-out;
  box-shadow: inset 0 -2px 4px rgba(0,0,0,0.1);
}

/* Leaderboard Preview */
.leaderboard-preview {
  border-top: 2px solid #f1f5f9;
  padding-top: 24px;
}

.lb-title {
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #64748b;
  margin-bottom: 16px;
  font-weight: 700;
}

.lb-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.lb-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 16px;
  background: #f8fafc;
  border-radius: 12px;
  font-weight: 600;
  font-size: 0.95rem;
}

.lb-item:nth-child(1) {
  background: #fffbeb;
  border: 1px solid #fde68a;
  color: #92400e;
}

.lb-user { color: #334155; }
.lb-score { color: #ff1f8f; }

/* --- FOOTER & DECORATION --- */
.emoji-band {
  margin-top: 60px;
  margin-bottom: 30px;
  font-size: 2.5rem;
  letter-spacing: 15px;
  text-align: center;
  animation: pulseEmoji 3s infinite alternate;
}

@keyframes pulseEmoji {
  0% { transform: scale(1); }
  100% { transform: scale(1.05); }
}

#wbx-powered-by-slot {
  margin-top: auto;
  padding-top: 20px;
  width: 100%;
}
