/* =================================================================
   @twenty4tim Influencer Giveaway Landing Page
   Exact Pixel-Perfect Design System
   ================================================================= */

:root {
  --bg-page: #f4f6fa;
  --bg-card: #ffffff;
  --text-main: #111827;
  --text-muted: #64748b;
  --text-dim: #94a3b8;
  
  --primary-red: #ff0050;
  --primary-red-hover: #e00045;
  --accent-blue: #0095f6;
  --accent-cyan: #00d2ff;
  --accent-green: #10b981;
  
  --font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --shadow-card: 0 12px 40px rgba(0, 0, 0, 0.08);
  --shadow-btn: 0 10px 25px rgba(255, 0, 80, 0.35);
  --border-radius-card: 28px;
  --transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

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

html {
  scroll-behavior: smooth;
  -webkit-tap-highlight-color: transparent;
}

body {
  font-family: var(--font-family);
  background-color: var(--bg-page);
  color: var(--text-main);
  line-height: 1.5;
  overflow-x: hidden;
  min-height: 100vh;
}

/* Top Announcement Bar */
.top-announcement {
  background: #0f172a;
  color: #f8fafc;
  font-size: 0.85rem;
  padding: 10px 16px;
  text-align: center;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.announcement-content {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: center;
}

.live-pulse {
  width: 8px;
  height: 8px;
  background: #ef4444;
  border-radius: 50%;
  box-shadow: 0 0 10px #ef4444;
  animation: pulseLive 1.5s infinite;
}

@keyframes pulseLive {
  0% { transform: scale(0.9); opacity: 0.8; }
  50% { transform: scale(1.4); opacity: 1; }
  100% { transform: scale(0.9); opacity: 0.8; }
}

.highlight-slot {
  color: #ff3366;
  font-weight: 800;
}

/* Page Wrapper */
.page-wrapper {
  max-width: 620px;
  margin: 1.5rem auto 3rem;
  padding: 0 1rem;
}

.main-card {
  background: var(--bg-card);
  border-radius: var(--border-radius-card);
  box-shadow: var(--shadow-card);
  padding: 2.2rem 1.8rem;
  text-align: center;
  border: 1px solid rgba(0, 0, 0, 0.04);
}

/* Profile Header */
.profile-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 1.6rem;
}

.avatar-wrapper {
  position: relative;
  width: 125px;
  height: 125px;
  margin-bottom: 1.1rem;
}

.avatar-ring {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  overflow: hidden;
  background: radial-gradient(circle, #00d2ff, #0084ff);
  padding: 4px;
  box-shadow: 0 8px 24px rgba(0, 210, 255, 0.35);
}

.avatar-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
  background: #fff;
  display: block;
}

.profile-info {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}

.handle-row {
  display: flex;
  align-items: center;
  gap: 6px;
}

.handle-name {
  font-size: 1.75rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: #000;
}

.verified-badge {
  width: 22px;
  height: 22px;
}

.giveaway-title {
  font-size: 1.1rem;
  font-weight: 600;
  color: #4b5563;
  display: flex;
  align-items: center;
  gap: 6px;
}

/* Big Red CTA Button */
.cta-wrapper {
  margin: 1.2rem 0 2.2rem;
}

.claim-button {
  width: 100%;
  max-width: 440px;
  background: var(--primary-red);
  color: #ffffff;
  border: none;
  border-radius: 50px;
  padding: 16px 28px;
  font-size: 1.3rem;
  font-weight: 800;
  font-family: inherit;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  box-shadow: var(--shadow-btn);
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.claim-button:hover {
  background: var(--primary-red-hover);
  transform: translateY(-2px) scale(1.01);
  box-shadow: 0 14px 32px rgba(255, 0, 80, 0.45);
}

.claim-button:active {
  transform: translateY(1px) scale(0.99);
}

.pulse-btn {
  animation: pulseButton 2.2s infinite;
}

@keyframes pulseButton {
  0% { transform: scale(1); }
  50% { transform: scale(1.03); }
  100% { transform: scale(1); }
}

.btn-icon {
  display: flex;
  align-items: center;
}

.btn-text {
  letter-spacing: -0.01em;
}

/* ===================================================
   3-Step Process Flow
   =================================================== */
.steps-flow-container {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px;
  padding: 1rem 0 2rem;
  border-bottom: 1px solid #f1f5f9;
  margin-bottom: 2rem;
}

.step-col {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.step-num-badge {
  width: 26px;
  height: 26px;
  background: var(--primary-red);
  color: #ffffff;
  border-radius: 50%;
  font-size: 0.85rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 10px;
}

.step-icon-box {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #111827;
  margin-bottom: 8px;
}

.step-title {
  font-size: 0.92rem;
  font-weight: 800;
  color: #0f172a;
  line-height: 1.25;
  margin-bottom: 4px;
}

.step-desc {
  font-size: 0.74rem;
  color: var(--text-muted);
  line-height: 1.35;
  max-width: 140px;
}

.step-arrow {
  display: flex;
  align-items: center;
  justify-content: center;
  padding-top: 36px;
  flex-shrink: 0;
}

/* ===================================================
   Showcase Bottom Image
   =================================================== */
.showcase-section {
  margin-bottom: 2rem;
}

.showcase-img-wrapper {
  position: relative;
  border-radius: 22px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12);
  border: 1px solid rgba(0, 0, 0, 0.05);
}

.showcase-img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.showcase-img-wrapper:hover .showcase-img {
  transform: scale(1.02);
}

.showcase-badge {
  position: absolute;
  top: 14px;
  right: 14px;
  background: rgba(15, 23, 42, 0.85);
  backdrop-filter: blur(8px);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  padding: 6px 12px;
  border-radius: 20px;
  display: flex;
  align-items: center;
  gap: 6px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.badge-dot {
  width: 6px;
  height: 6px;
  background: #10b981;
  border-radius: 50%;
  box-shadow: 0 0 6px #10b981;
}

/* Trust Footer */
.trust-footer {
  padding-top: 1rem;
}

.trust-icons {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  flex-wrap: wrap;
  margin-bottom: 1.2rem;
}

.trust-item {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.78rem;
  font-weight: 600;
  color: #475569;
}

.trust-icon {
  font-size: 1rem;
}

.disclaimer-text {
  font-size: 0.7rem;
  color: var(--text-dim);
  line-height: 1.45;
  max-width: 480px;
  margin: 0 auto;
}

/* ===================================================
   CPA Offer Locker Modal
   =================================================== */
.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.modal-overlay.active {
  display: flex;
}

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.75);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  animation: fadeIn 0.3s ease;
}

.modal-container {
  position: relative;
  z-index: 10;
  background: #ffffff;
  border-radius: 24px;
  width: 100%;
  max-width: 520px;
  max-height: 92vh;
  overflow-y: auto;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.3);
  animation: slideUp 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

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

@keyframes slideUp {
  from { opacity: 0; transform: translateY(30px) scale(0.96); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.modal-header {
  padding: 1.6rem 1.6rem 1.2rem;
  border-bottom: 1px solid #f1f5f9;
  text-align: center;
  position: relative;
}

.modal-title-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.8rem;
}

.modal-badge {
  background: #fee2e2;
  color: var(--primary-red);
  font-size: 0.72rem;
  font-weight: 800;
  padding: 4px 10px;
  border-radius: 20px;
}

.close-btn {
  background: #f1f5f9;
  border: none;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  font-size: 1.4rem;
  line-height: 1;
  color: #64748b;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}

.close-btn:hover {
  background: #e2e8f0;
  color: #0f172a;
}

.modal-title {
  font-size: 1.45rem;
  font-weight: 800;
  color: #0f172a;
  letter-spacing: -0.02em;
  margin-bottom: 0.4rem;
}

.modal-subtitle {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.45;
  margin-bottom: 1rem;
}

.timer-box {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #fef2f2;
  border: 1px solid #fecaca;
  padding: 6px 14px;
  border-radius: 30px;
  font-size: 0.82rem;
  color: #991b1b;
}

.timer-countdown {
  font-weight: 800;
  color: var(--primary-red);
}

/* Modal Body */
.modal-body {
  padding: 1.2rem 1.6rem 1.6rem;
}

.offers-header-info {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}

.offers-count-tag {
  font-size: 0.8rem;
  font-weight: 700;
  color: #475569;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.offers-refresh-btn {
  background: transparent;
  border: none;
  color: #64748b;
  font-size: 0.78rem;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 4px;
  transition: color 0.2s;
}

.offers-refresh-btn:hover {
  color: var(--primary-red);
}

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

.offer-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  background: #f8fafc;
  border: 1.5px solid #e2e8f0;
  border-radius: 16px;
  padding: 12px 14px;
  text-decoration: none;
  color: inherit;
  transition: var(--transition);
}

.offer-card:hover {
  border-color: var(--primary-red);
  background: #fff;
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(255, 0, 80, 0.12);
}

.offer-card-left {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: 1;
}

.offer-thumb {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  object-fit: cover;
  background: #e2e8f0;
  border: 1px solid #cbd5e1;
  flex-shrink: 0;
}

.offer-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.offer-name {
  font-size: 0.92rem;
  font-weight: 700;
  color: #0f172a;
  line-height: 1.3;
}

.offer-instruction {
  font-size: 0.76rem;
  color: var(--text-muted);
}

.offer-pill {
  display: inline-block;
  align-self: flex-start;
  margin-top: 3px;
  font-size: 0.65rem;
  font-weight: 800;
  padding: 2px 6px;
  border-radius: 4px;
  background: #dcfce7;
  color: #166534;
}

.offer-action-btn {
  background: var(--primary-red);
  color: #ffffff;
  font-size: 0.8rem;
  font-weight: 700;
  padding: 8px 14px;
  border-radius: 10px;
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  transition: var(--transition);
}

.offer-card:hover .offer-action-btn {
  background: var(--primary-red-hover);
  transform: scale(1.04);
}

.offers-loading-state {
  text-align: center;
  padding: 2.5rem 1rem;
  color: var(--text-muted);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

.spinner {
  width: 32px;
  height: 32px;
  border: 3px solid #e2e8f0;
  border-top-color: var(--primary-red);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.auto-check-footer {
  margin-top: 1.2rem;
  padding: 10px 14px;
  background: #f1f5f9;
  border-radius: 12px;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.75rem;
  color: #475569;
}

.pulsing-radar {
  width: 10px;
  height: 10px;
  background: #10b981;
  border-radius: 50%;
  box-shadow: 0 0 10px #10b981;
  animation: pulseLive 1.5s infinite;
  flex-shrink: 0;
}

/* ===================================================
   Live Winner Toast Notification
   ================================================== */
.winner-toast {
  position: fixed;
  bottom: 20px;
  left: 20px;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 16px;
  padding: 10px 14px;
  display: flex;
  align-items: center;
  gap: 12px;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.12);
  z-index: 500;
  transform: translateY(140%);
  opacity: 0;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.3s ease;
  max-width: 320px;
}

.winner-toast.show {
  transform: translateY(0);
  opacity: 1;
}

.toast-img-box {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  overflow: hidden;
  flex-shrink: 0;
  background: radial-gradient(circle, #00d2ff, #0084ff);
  padding: 2px;
}

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

.toast-text-box strong {
  display: block;
  font-size: 0.8rem;
  color: #0f172a;
}

.toast-text-box span {
  display: block;
  font-size: 0.74rem;
  color: #10b981;
  font-weight: 600;
}

.toast-text-box small {
  font-size: 0.68rem;
  color: var(--text-dim);
}

/* ===================================================
   iOS & TikTok Redirect Popup (Exact from stealanegg26.pages.dev)
   =================================================== */
.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(4, 6, 14, 0.92);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.ios-popup-content {
  position: relative;
  background: #111424;
  border: 1px solid rgba(255, 0, 80, 0.4);
  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.9), 0 0 40px rgba(255, 0, 80, 0.25);
  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(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #94a3b8;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 1rem;
  transition: all 0.2s ease;
  z-index: 5;
}

.ios-popup-close:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.15);
  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.5);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

/* ===================================================
   Mobile Optimizations
   =================================================== */
@media (max-width: 480px) {
  .page-wrapper {
    margin: 0.8rem auto 2rem;
    padding: 0 0.5rem;
  }
  .main-card {
    padding: 1.8rem 1.1rem;
    border-radius: 20px;
  }
  .claim-button {
    font-size: 1.15rem;
    padding: 14px 22px;
  }
  .steps-flow-container {
    gap: 4px;
  }
  .step-title {
    font-size: 0.82rem;
  }
  .step-desc {
    font-size: 0.68rem;
  }
  .step-arrow {
    padding-top: 28px;
  }
  .winner-toast {
    left: 10px;
    right: 10px;
    bottom: 10px;
    max-width: none;
  }
}
