/* ==========================================================================
   WINNER VERIFICATION LANDING PAGE STYLES (CLASSIC CAR EDITION)
   Exact match to tinyusa.pages.dev structure with custom blue buttons
   ========================================================================== */

:root {
  --primary-blue: #1d8cd7;
  --primary-blue-dark: #1572b0;
  --primary-blue-hover: #116097;
  --primary-blue-light: #e0f2fe;
  --blue-border: #7dd3fc;
  --text-dark: #0f172a;
  --text-muted: #475569;
  --text-light: #64748b;
  --bg-page: #eef2f6;
  --bg-card: #ffffff;
  --border-card: #e2e8f0;
  --star-gold: #f59e0b;
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.04);
  --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.06);
  --shadow-blue: 0 8px 20px -4px rgba(29, 140, 215, 0.45);
}

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

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  background-color: var(--bg-page);
  color: var(--text-dark);
  min-height: 100vh;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  padding: 0;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

@media (min-width: 600px) {
  body {
    padding: 24px 16px;
  }
}

/* App Wrapper & Centered Card */
.app-wrapper {
  width: 100%;
  max-width: 480px;
  margin: 0 auto;
}

.card-container {
  background: var(--bg-card);
  width: 100%;
  min-height: 100vh;
  box-shadow: var(--shadow-md);
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

@media (min-width: 600px) {
  .card-container {
    min-height: auto;
    border-radius: 28px;
    border: 1px solid rgba(226, 232, 240, 0.8);
    margin-bottom: 24px;
  }
}

/* Header Hero Image */
.header-hero {
  position: relative;
  width: 100%;
  height: 250px;
  overflow: hidden;
  background: #1e293b;
  transition: height 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

@media (min-width: 440px) {
  .header-hero {
    height: 280px;
  }
}

/* Shrink hero image when step 2 is visible (balanced height) */
.header-hero.step2-active,
body.step2-active .header-hero {
  height: 130px !important;
  max-height: 130px !important;
  min-height: 130px !important;
}

.header-hero.step2-active .verified-badge,
body.step2-active .verified-badge {
  top: 10px !important;
  left: 12px !important;
  padding: 5px 12px !important;
  font-size: 11px !important;
  gap: 6px !important;
}

.header-hero.step2-active .trophy-icon,
body.step2-active .trophy-icon {
  width: 13px !important;
  height: 13px !important;
}

@media (min-width: 440px) {
  .header-hero.step2-active,
  body.step2-active .header-hero {
    height: 145px !important;
    max-height: 145px !important;
    min-height: 145px !important;
  }
}

.hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  transition: transform 0.6s ease;
}

.card-container:hover .hero-image {
  transform: scale(1.02);
}

/* Verified Winner Pill Badge (Electric Blue) */
.verified-badge {
  position: absolute;
  top: 16px;
  left: 16px;
  background: linear-gradient(135deg, #2ba0e8 0%, #1d8cd7 50%, #1572b0 100%);
  color: #ffffff;
  padding: 8px 16px;
  border-radius: 9999px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: 'Outfit', sans-serif;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.04em;
  box-shadow: 0 4px 14px rgba(29, 140, 215, 0.5);
  backdrop-filter: blur(4px);
  border: 1px solid rgba(255, 255, 255, 0.25);
  z-index: 10;
  animation: pulse-glow-blue 2.5s infinite;
}

.trophy-icon {
  width: 16px;
  height: 16px;
  color: #fbbf24;
}

@keyframes pulse-glow-blue {
  0%, 100% {
    box-shadow: 0 4px 14px rgba(29, 140, 215, 0.5);
  }
  50% {
    box-shadow: 0 4px 22px rgba(43, 160, 232, 0.85);
  }
}

/* Steps System */
.step-view {
  display: none;
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.35s ease, transform 0.35s ease;
  flex: 1;
}

.step-view.active {
  display: block;
  opacity: 1;
  transform: translateY(0);
}

.step-content {
  padding: 24px 20px 28px;
  display: flex;
  flex-direction: column;
}

@media (min-width: 440px) {
  .step-content {
    padding: 28px 24px 32px;
  }
}

/* ==========================================================================
   STEP 1: WINNER CONGRATULATIONS
   ========================================================================== */

.congrats-header {
  text-align: center;
  margin-bottom: 24px;
}

.main-title {
  font-family: 'Outfit', sans-serif;
  font-size: 26px;
  font-weight: 800;
  line-height: 1.25;
  color: var(--text-dark);
  letter-spacing: -0.02em;
  margin-bottom: 12px;
}

@media (min-width: 440px) {
  .main-title {
    font-size: 30px;
  }
}

.highlight-blue {
  color: var(--primary-blue);
  background: linear-gradient(135deg, #2ba0e8 0%, #1d8cd7 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.subtitle {
  font-size: 14.5px;
  line-height: 1.5;
  color: var(--text-muted);
  max-width: 360px;
  margin: 0 auto;
}

/* Trust Badges */
.trust-badges {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 32px;
}

.badge-pill {
  background: #f8fafc;
  border: 1px solid var(--border-card);
  padding: 6px 12px;
  border-radius: 9999px;
  font-size: 12px;
  font-weight: 600;
  color: var(--text-muted);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all 0.2s ease;
}

.badge-pill:hover {
  background: #ffffff;
  border-color: #cbd5e1;
}

.badge-icon {
  font-size: 12px;
}

/* CTA Container & Next Step Button (Custom Blue) */
.cta-container {
  display: flex;
  justify-content: center;
  width: 100%;
}

.btn-primary {
  background: linear-gradient(135deg, #2ba0e8 0%, #1d8cd7 50%, #1572b0 100%);
  color: #ffffff;
  font-family: 'Outfit', sans-serif;
  font-size: 18px;
  font-weight: 800;
  letter-spacing: 0.05em;
  border: none;
  border-radius: 9999px;
  padding: 18px 36px;
  width: 100%;
  max-width: 340px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  cursor: pointer;
  box-shadow: var(--shadow-blue);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  text-decoration: none;
  outline: none;
}

.btn-primary:hover {
  background: linear-gradient(135deg, #38bdf8 0%, #1d8cd7 100%);
  transform: translateY(-2px);
  box-shadow: 0 12px 28px -4px rgba(29, 140, 215, 0.65);
}

.btn-primary:active {
  transform: translateY(1px);
}

.btn-gentle-motion {
  animation: gentle-pulse 2.2s infinite ease-in-out;
}

@keyframes gentle-pulse {
  0% {
    transform: scale(1);
    box-shadow: 0 8px 20px -4px rgba(29, 140, 215, 0.45);
  }
  50% {
    transform: scale(1.025);
    box-shadow: 0 14px 28px -2px rgba(29, 140, 215, 0.65);
  }
  100% {
    transform: scale(1);
    box-shadow: 0 8px 20px -4px rgba(29, 140, 215, 0.45);
  }
}

.arrow-icon {
  width: 20px;
  height: 20px;
  transition: transform 0.25s ease;
}

.btn-primary:hover .arrow-icon {
  transform: translateX(4px);
}

/* ==========================================================================
   STEP 2: INSTRUCTIONS CARD & OFFERS LIST
   ========================================================================== */

.instructions-card {
  background: #f8fafc;
  border: 1px solid var(--border-card);
  border-radius: 20px;
  padding: 20px;
  margin-bottom: 20px;
}

.instructions-title {
  font-family: 'Outfit', sans-serif;
  font-size: 20px;
  font-weight: 800;
  color: var(--text-dark);
  margin-bottom: 16px;
  text-align: center;
}

.instructions-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.instruction-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.step-number {
  background: var(--primary-blue);
  color: #ffffff;
  font-family: 'Outfit', sans-serif;
  font-size: 13px;
  font-weight: 800;
  width: 24px;
  height: 24px;
  min-width: 24px;
  border-radius: 9999px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 1px;
  box-shadow: 0 2px 6px rgba(29, 140, 215, 0.4);
}

.step-text {
  font-size: 14.5px;
  line-height: 1.45;
  color: #0f172a;
  font-weight: 600;
}

/* Offers Feed List */
.offers-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

/* Individual Offer Card (Border & complete button in custom blue) */
.offer-card {
  background: #ffffff;
  border: 1.5px solid var(--primary-blue);
  border-radius: 14px;
  padding: 10px 12px;
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: inherit;
  transition: all 0.25s ease;
  box-shadow: 0 2px 8px rgba(29, 140, 215, 0.08);
  cursor: pointer;
  position: relative;
  overflow: hidden;
}

.offer-card:hover {
  border-color: var(--primary-blue-dark);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(29, 140, 215, 0.2);
}

.offer-card:active {
  transform: scale(0.99);
}

.offer-icon-box {
  width: 68px;
  height: 60px;
  min-width: 68px;
  border-radius: 10px;
  overflow: hidden;
  background: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2px 4px;
}

.offer-icon-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.offer-details {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.offer-title {
  font-family: 'Outfit', sans-serif;
  font-size: 14.5px;
  font-weight: 700;
  color: var(--text-dark);
  line-height: 1.3;
  margin: 0;
}

.offer-subtitle {
  font-size: 12px;
  color: var(--text-light);
  font-weight: 500;
  line-height: 1.35;
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  unicode-bidi: plaintext;
}

.offer-action-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 6px;
}

.btn-complete {
  background: var(--primary-blue);
  color: #ffffff;
  font-family: 'Outfit', sans-serif;
  font-size: 11.5px;
  font-weight: 800;
  padding: 6px 14px;
  border-radius: 6px;
  letter-spacing: 0.05em;
  display: inline-flex;
  align-items: center;
  gap: 3px;
  pointer-events: none;
  transition: background 0.2s ease;
  box-shadow: 0 2px 6px rgba(29, 140, 215, 0.35);
}

.offer-card:hover .btn-complete {
  background: var(--primary-blue-dark);
}

.offer-stars {
  color: var(--star-gold);
  font-size: 12px;
  letter-spacing: 1.5px;
  display: flex;
  align-items: center;
}

/* Security Note */
.security-note {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin-top: 18px;
  font-size: 11.5px;
  color: var(--text-light);
  font-weight: 500;
}

.security-note svg {
  color: #10b981;
}

/* ==========================================================================
   FOOTER
   ========================================================================== */

.site-footer {
  margin-top: auto;
  padding: 20px 16px;
  border-top: 1px solid #f1f5f9;
  text-align: center;
  background: #ffffff;
}

.copyright-text {
  font-size: 12px;
  color: var(--text-light);
  margin-bottom: 8px;
}

.footer-links {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 12px;
}

.footer-link {
  color: var(--text-muted);
  text-decoration: none;
  cursor: pointer;
  transition: color 0.2s;
}

.footer-link:hover {
  color: var(--primary-blue);
}

.contact-highlight {
  color: var(--primary-blue);
  font-weight: 600;
}

/* ==========================================================================
   TIKTOK & IN-APP BROWSER REDIRECT POPUP
   ========================================================================== */

.ios-popup {
  position: fixed;
  inset: 0;
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.25rem;
  animation: popupFadeIn 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes popupFadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.ios-popup-background {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.75);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.ios-popup-content {
  position: relative;
  background: #ffffff;
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 24px;
  padding: 2rem 1.75rem;
  max-width: 380px;
  width: 100%;
  text-align: center;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.35), 0 0 40px rgba(29, 140, 215, 0.15);
  z-index: 2;
  animation: modalPop 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes modalPop {
  from { transform: scale(0.92); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}

.ios-popup-close {
  position: absolute;
  top: 14px;
  right: 14px;
  background: rgba(0, 0, 0, 0.05);
  border: 1px solid rgba(0, 0, 0, 0.08);
  color: #475569;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 1rem;
  font-weight: 700;
  transition: all 0.2s ease;
  z-index: 5;
}

.ios-popup-close:hover {
  color: #0f172a;
  background: rgba(0, 0, 0, 0.1);
  transform: rotate(90deg);
}

.ios-instruction-gif {
  max-width: 100%;
  border-radius: 14px;
  margin-bottom: 1.25rem;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
  border: 1px solid rgba(0, 0, 0, 0.06);
}

.ios-popup-heading {
  font-family: 'Outfit', sans-serif;
  color: #0f172a;
  margin-bottom: 0.5rem;
  font-size: 1.3rem;
  font-weight: 800;
}

.ios-popup-desc {
  color: #475569;
  font-size: 0.92rem;
  line-height: 1.5;
}

/* ==========================================================================
   COMPLIANCE MODAL
   ========================================================================== */

.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.7);
  backdrop-filter: blur(8px);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 16px;
  z-index: 9999;
}

.modal-backdrop.open {
  display: flex;
}

.modal-box {
  background: #ffffff;
  border-radius: 20px;
  max-width: 480px;
  width: 100%;
  max-height: 80vh;
  display: flex;
  flex-direction: column;
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.25);
  overflow: hidden;
  animation: modalPop 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.modal-header {
  padding: 18px 20px;
  border-bottom: 1px solid #f1f5f9;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.modal-title {
  font-family: 'Outfit', sans-serif;
  font-size: 17px;
  font-weight: 700;
  color: var(--text-dark);
}

.close-btn {
  background: none;
  border: none;
  font-size: 24px;
  color: #94a3b8;
  cursor: pointer;
  line-height: 1;
  padding: 4px;
  transition: color 0.2s;
}

.close-btn:hover {
  color: var(--text-dark);
}

.modal-body {
  padding: 20px;
  overflow-y: auto;
  font-size: 13.5px;
  line-height: 1.6;
  color: var(--text-muted);
}

.modal-body h4 {
  color: var(--text-dark);
  font-size: 15px;
  margin-top: 14px;
  margin-bottom: 6px;
}

.modal-body p {
  margin-bottom: 10px;
}
