/* --- 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: #ffffff;
  background-image: 
    radial-gradient(circle at 15% 50%, rgba(204, 255, 0, 0.15), transparent 25%),
    radial-gradient(circle at 85% 30%, rgba(0, 255, 255, 0.15), transparent 25%);
  color: #111111;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  -webkit-font-smoothing: antialiased;
}

/* --- 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(0, 0, 0, 0.05);
  backdrop-filter: blur(10px);
  padding: 8px 24px;
  border-radius: 999px;
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  margin-bottom: 24px;
  border: 1px solid rgba(0, 0, 0, 0.1);
  color: #555555;
}

.headline {
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(3rem, 8vw, 5.5rem);
  font-weight: 900;
  line-height: 1.05;
  letter-spacing: -0.04em;
  margin-bottom: 24px;
  text-transform: uppercase;
  color: #111111;
}

.text-gradient {
  background: linear-gradient(135deg, #8cbd00, #00b399);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.subhead {
  font-size: clamp(1.05rem, 3vw, 1.25rem);
  max-width: 680px;
  margin: 0 auto;
  line-height: 1.6;
  font-weight: 400;
  color: #555555;
}

/* --- 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: 1px solid rgba(0, 0, 0, 0.1);
  border-radius: 24px;
  padding: 48px;
  width: 100%;
  box-shadow: 0 24px 40px -10px rgba(0,0,0,0.1);
  position: relative;
}

/* Sneaker Graphic Floating Above Card */
.sneaker-image-wrapper {
  position: absolute;
  top: -80px;
  right: -40px;
  width: 160px;
  height: 160px;
  border-radius: 50%;
  background: #ffffff;
  padding: 8px;
  border: 1px solid rgba(0, 0, 0, 0.1);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
  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: 10px;
    width: 120px;
    height: 120px;
  }
  .hero-card {
    padding: 32px 24px;
  }
}

/* --- FORMS & INPUTS --- */
.refer-callout {
  text-align: center;
  margin-bottom: 24px;
  font-size: 1.05rem;
  color: #333333;
  background: rgba(204, 255, 0, 0.15);
  padding: 14px 16px;
  border-radius: 12px;
  border: 1px dashed rgba(140, 189, 0, 0.6);
  line-height: 1.4;
}

.refer-callout strong {
  color: #111111;
  font-weight: 700;
}

.form-group {
  margin-bottom: 24px;
}

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

input[type="email"]::placeholder {
  color: #888888;
}

input[type="email"]:focus,
input[type="text"]:focus {
  border-color: #8cbd00;
  background: #ffffff;
  box-shadow: 0 0 0 3px rgba(140, 189, 0, 0.15);
}

.btn-primary {
  width: 100%;
  height: 64px;
  border-radius: 16px;
  background: #ccff00;
  color: #000000;
  border: none;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.25rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.btn-primary:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 25px rgba(204, 255, 0, 0.4);
  background: #d4ff33;
}

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

.error-msg {
  background: rgba(239, 68, 68, 0.1);
  color: #ef4444;
  padding: 16px;
  border-radius: 12px;
  margin-bottom: 20px;
  font-weight: 500;
  text-align: center;
  border: 1px solid rgba(239, 68, 68, 0.2);
}

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

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

.success-title {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 2.5rem;
  font-weight: 900;
  color: #111111;
  margin-bottom: 12px;
}

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

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

.share-box input {
  text-align: center;
  font-size: 1.05rem;
  background: #f5f5f5;
  color: #111111;
}

.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-family: 'Space Grotesk', sans-serif;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  border: none;
  cursor: pointer;
  transition: transform 0.2s, opacity 0.2s;
}

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

.btn-ig { background: linear-gradient(45deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888); color: #ffffff; }
.btn-tiktok { background: #111111; color: #ffffff; }
.btn-copy { background: #f5f5f5; color: #111111; border: 1px solid #dddddd; }
.btn-copy:hover { background: #eeeeee; }

/* Progress Bar */
.progress-section {
  background: #f9f9f9;
  border-radius: 20px;
  padding: 24px;
  margin-bottom: 35px;
  border: 1px solid rgba(0, 0, 0, 0.05);
}

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

.progress-text {
  color: #8cbd00;
}

.progress-target {
  color: #888888;
}

.progress-container {
  width: 100%;
  height: 12px;
  background: #eeeeee;
  border-radius: 999px;
  overflow: hidden;
}

.progress-bar-fill {
  height: 100%;
  width: 5%;
  background: linear-gradient(90deg, #00b399, #8cbd00);
  border-radius: 999px;
  transition: width 1s ease-out;
  box-shadow: 0 0 10px rgba(140, 189, 0, 0.3);
}

/* Leaderboard Preview */
.leaderboard-preview {
  border-top: 1px solid rgba(0, 0, 0, 0.05);
  padding-top: 24px;
}

.lb-title {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.9rem;
  letter-spacing: 0.1em;
  color: #555555;
  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: #ffffff;
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 12px;
  font-weight: 500;
  font-size: 0.95rem;
  color: #333333;
}

.lb-item:nth-child(1) {
  background: #fcffeb;
  border: 1px solid rgba(140, 189, 0, 0.3);
}

.lb-item:nth-child(1) .lb-user { color: #6d9300; font-weight: 600; }
.lb-item:not(:nth-child(1)) .lb-user { color: #555555; }
.lb-score { color: #6d9300; font-weight: 600; }

/* --- FOOTER --- */
#wbx-powered-by-slot {
  margin-top: auto;
  padding-top: 40px;
  width: 100%;
}
