/* ============================================================
   Javynox - Ghana Care Set Referral Promo (HBCPromo)
   Pure CSS - Mobile First Design
   Vibrant Color Scheme: Orange Red + Purple + Amber + Warm Orange White
   No frameworks, no CDN dependencies
   ============================================================ */

/* ---------- Reset & Base ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  /* 活力高级配色：橙红 + 紫色 + 琥珀色 */
  --primary: #ff6b35;
  --primary-light: #ff8c5a;
  --primary-dark: #e85a2a;
  --gold: #f59e0b;
  --gold-light: #fbbf24;
  --gold-dark: #d97706;
  --bg: #fff7ed;
  --card-bg: #ffffff;
  --text: #1a1a1a;
  --text-muted: #6b7280;
  --border: #fed7aa;
  --success: #10b981;
  --locked: #d1d5db;
  --radius: 16px;
  --shadow: 0 2px 16px rgba(0,0,0,.06);
  --shadow-lg: 0 8px 32px rgba(0,0,0,.10);
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --whatsapp: #25d366;
  --max-width: 900px;
  --accent: #8b5cf6;
  --accent-light: #a78bfa;
}

html { font-size: 16px; -webkit-text-size-adjust: 100%; }

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button { cursor: pointer; font-family: inherit; }
input, textarea { font-family: inherit; }

/* ---------- Layout Wrapper ---------- */
.page-wrapper {
  max-width: var(--max-width);
  margin: 0 auto;
  background: var(--card-bg);
  min-height: 100vh;
  box-shadow: var(--shadow);
  position: relative;
}

/* ---------- Header ---------- */
.promo-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 18px;
  background: var(--card-bg);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
  flex-wrap: wrap;
  gap: 8px;
}

@media (max-width: 360px) {
  .promo-header {
    justify-content: center;
  }
}

.header-logo {
  display: flex;
  align-items: center;
  gap: 10px;
}

.header-logo-text {
  font-size: 18px;
  font-weight: 700;
  color: var(--text);
  letter-spacing: -.3px;
}

.javynox-orange {
  color: var(--primary);
}

/* ---------- Countdown in Header ---------- */
.countdown-container {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 2px 3px;
  background: linear-gradient(135deg, #fef2f2 0%, #fee2e2 100%);
  border: 1.5px solid #fecaca;
  border-radius: 10px;
  padding: 6px 10px;
}

.countdown-title {
  font-size: 9px;
  font-weight: 700;
  color: var(--primary);
  text-transform: uppercase;
  letter-spacing: .5px;
  margin-right: 4px;
  white-space: nowrap;
  order: 0;
}

.countdown-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1px;
  min-width: 28px;
}

.countdown-num {
  font-size: 14px;
  font-weight: 800;
  color: var(--primary);
  font-variant-numeric: tabular-nums;
  line-height: 1.2;
  transition: transform 0.15s ease;
}

.countdown-num.pulse {
  animation: numPulse 0.4s ease;
}

@keyframes numPulse {
  0% { transform: scale(1); }
  50% { transform: scale(1.15); color: var(--primary-dark); }
  100% { transform: scale(1); }
}

.countdown-label {
  font-size: 8px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: .3px;
  font-weight: 600;
}

.countdown-sep {
  font-size: 12px;
  font-weight: 700;
  color: var(--primary);
  line-height: 1;
  padding: 0 1px;
}

.countdown-expired {
  font-size: 11px;
  font-weight: 700;
  color: #6b7280;
  text-transform: uppercase;
  letter-spacing: .5px;
}

.header-logo-sub {
  font-size: 10px;
  color: var(--text-muted);
  font-weight: 400;
  letter-spacing: .3px;
}

.header-badge {
  font-size: 9px;
  background: linear-gradient(135deg, var(--gold) 0%, var(--gold-light) 100%);
  color: #fff;
  padding: 4px 10px;
  border-radius: 20px;
  font-weight: 700;
  letter-spacing: .8px;
  text-transform: uppercase;
  box-shadow: 0 2px 8px rgba(212,160,23,.3);
}

/* ---------- Hero Section ---------- */
.hero-section {
  padding: 24px 20px 28px;
  text-align: center;
  background: linear-gradient(180deg, #fff7ed 0%, #ffedd5 60%, var(--card-bg) 100%);
}

.product-image-placeholder {
  width: 100%;
  max-width: 900px;
  aspect-ratio: 4 / 3;
  margin: 0 auto 24px;
  border-radius: var(--radius);
  overflow: hidden;
  position: relative;
  box-shadow: var(--shadow-lg);
  border: 2px solid var(--border);
}

.product-image-placeholder img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.product-image-placeholder .badge-original {
  position: absolute;
  top: 12px;
  left: 12px;
  background: rgba(220,38,38,.9);
  backdrop-filter: blur(4px);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  padding: 5px 12px;
  border-radius: 8px;
  letter-spacing: .3px;
}

.product-image-placeholder .badge-discount {
  position: absolute;
  top: 12px;
  right: 12px;
  background: linear-gradient(135deg, var(--gold) 0%, var(--gold-light) 100%);
  color: #fff;
  font-size: 13px;
  font-weight: 800;
  padding: 6px 12px;
  border-radius: 8px;
  letter-spacing: .5px;
  box-shadow: 0 2px 8px rgba(212,160,23,.3);
}

.hero-title {
  font-size: 24px;
  font-weight: 800;
  line-height: 1.25;
  margin-bottom: 10px;
  color: var(--text);
  letter-spacing: -.5px;
}

.hero-title .highlight {
  background: linear-gradient(135deg, var(--gold-dark) 0%, var(--gold) 50%, var(--gold-light) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-subtitle {
  font-size: 14px;
  color: var(--text-muted);
  margin-bottom: 6px;
  line-height: 1.5;
}

.hero-subtitle strong {
  color: var(--primary);
  font-weight: 700;
}

.hero-how-it-works {
  background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
  border: 1.5px solid #fbbf24;
  border-radius: 12px;
  padding: 14px 16px;
  margin: 16px 0;
  text-align: left;
}

.hero-how-it-works .step {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  color: var(--text);
  margin-bottom: 6px;
  line-height: 1.4;
}

.hero-how-it-works .step:last-child { margin-bottom: 0; }

.hero-how-it-works .step-num {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--primary);
  color: #fff;
  font-size: 12px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.hero-price-row {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 12px;
  margin-top: 16px;
}

.hero-price-original {
  font-size: 16px;
  color: var(--text-muted);
  text-decoration: line-through;
  text-decoration-color: #ef4444;
  text-decoration-thickness: 2px;
}

.hero-price-promo {
  font-size: 36px;
  font-weight: 900;
  color: var(--primary);
  letter-spacing: -1px;
}

.hero-price-promo .currency {
  font-size: 18px;
  font-weight: 700;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 15px 20px;
  border: none;
  border-radius: var(--radius);
  font-size: 15px;
  font-weight: 700;
  transition: opacity .2s, transform .15s;
  letter-spacing: .2px;
}

.btn:active { transform: scale(.97); }

.btn-google {
  background: #fff;
  color: var(--text);
  border: 1.5px solid var(--border);
  box-shadow: var(--shadow);
}

.btn-google:hover { background: #fafafa; }

.btn-whatsapp {
  background: linear-gradient(135deg, var(--whatsapp) 0%, #1ebe5d 100%);
  color: #fff;
  box-shadow: 0 4px 16px rgba(37,211,102,.3);
}

.btn-whatsapp:hover { box-shadow: 0 6px 20px rgba(37,211,102,.4); }

.btn-primary {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
  color: #fff;
  box-shadow: 0 4px 16px rgba(13,80,22,.25);
}

.btn-primary:hover { box-shadow: 0 6px 20px rgba(13,80,22,.35); }

.btn-accent {
  background: linear-gradient(135deg, var(--gold) 0%, var(--gold-light) 100%);
  color: #fff;
  box-shadow: 0 4px 16px rgba(212,160,23,.3);
}

.btn-twitter {
  background: linear-gradient(135deg, #000000 0%, #1a1a1a 100%);
  color: #fff;
  box-shadow: 0 4px 16px rgba(0,0,0,.3);
}

.btn-twitter:hover { box-shadow: 0 6px 20px rgba(0,0,0,.4); }

.btn-facebook {
  background: linear-gradient(135deg, #1877f2 0%, #0d65d9 100%);
  color: #fff;
  box-shadow: 0 4px 16px rgba(24,119,242,.3);
}

.btn-facebook:hover { box-shadow: 0 6px 20px rgba(24,119,242,.4); }

.btn-disabled {
  background: var(--locked);
  color: #fff;
  cursor: not-allowed;
  pointer-events: none;
}

.btn-icon {
  width: 20px;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ---------- Section Cards ---------- */
.section-card {
  padding: 24px 20px;
  border-bottom: 1px solid var(--border);
}

.section-title {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 18px;
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--text);
}

.section-title .icon {
  font-size: 20px;
}

/* ---------- Milestone Progress Bar ---------- */
.milestone-container {
  display: flex;
  flex-direction: column;
  gap: 0;
  position: relative;
}

.milestone-track {
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
  padding: 0 4px;
}

.milestone-node {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  position: relative;
  z-index: 2;
  flex: 0 0 auto;
  width: 30%;
}

.milestone-circle {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 800;
  transition: all .3s;
  position: relative;
}

.milestone-circle.unlocked {
  background: linear-gradient(135deg, var(--success) 0%, #10b981 100%);
  color: #fff;
  box-shadow: 0 0 0 4px rgba(16,185,129,.2), 0 4px 12px rgba(16,185,129,.2);
}

.milestone-circle.current {
  background: linear-gradient(135deg, var(--gold) 0%, var(--gold-light) 100%);
  color: #fff;
  box-shadow: 0 0 0 4px rgba(212,160,23,.2), 0 4px 12px rgba(212,160,23,.2);
  animation: pulse 2s infinite;
}

.milestone-circle.locked {
  background: #f3f4f6;
  color: #9ca3af;
  border: 2px dashed var(--border);
}

.milestone-label {
  font-size: 11px;
  font-weight: 600;
  color: var(--text-muted);
  text-align: center;
  white-space: nowrap;
}

.milestone-label.active {
  color: var(--primary);
  font-weight: 700;
}

.milestone-bar-track {
  position: absolute;
  top: 24px;
  left: 15%;
  right: 15%;
  height: 4px;
  background: #e5e7eb;
  border-radius: 2px;
  z-index: 1;
}

.milestone-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--primary), var(--gold));
  border-radius: 2px;
  transition: width .6s ease;
}

@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 4px rgba(212,160,23,.2), 0 4px 12px rgba(212,160,23,.2); }
  50% { box-shadow: 0 0 0 8px rgba(212,160,23,.1), 0 4px 12px rgba(212,160,23,.15); }
}

/* ---------- Reward Card ---------- */
.reward-card {
  background: linear-gradient(135deg, #ede9fe 0%, #ddd6fe 100%);
  border: 2px solid #a78bfa;
  border-radius: var(--radius);
  padding: 20px;
  text-align: center;
}

.reward-card.locked {
  background: #f9fafb;
  border-color: var(--border);
}

.reward-icon {
  font-size: 40px;
  margin-bottom: 10px;
}

.reward-title {
  font-size: 17px;
  font-weight: 800;
  margin-bottom: 6px;
  color: var(--primary-dark);
}

.reward-card.locked .reward-title {
  color: var(--text-muted);
}

.reward-desc {
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 16px;
  line-height: 1.5;
}

.reward-stats {
  display: flex;
  justify-content: center;
  margin-bottom: 16px;
}

.reward-stat {
  text-align: center;
}

.reward-stat-value {
  font-size: 26px;
  font-weight: 900;
  color: var(--primary);
}

.reward-stat-label {
  font-size: 11px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: .5px;
  font-weight: 600;
}

.reward-btn {
  padding: 11px 14px !important;
  font-size: 13px !important;
  white-space: normal;
  flex: 1 1 50% !important;
  min-width: 0;
}

#claim-form .reward-btn {
  white-space: normal;
}

@media (max-width: 360px) {
  .reward-btn {
    font-size: 12px !important;
    padding: 10px 10px !important;
  }
}

/* ---------- Share Section ---------- */
.share-rule-note {
  font-size: 12px;
  color: var(--primary);
  margin-bottom: 14px;
  line-height: 1.6;
  background: #fff7ed;
  padding: 10px 14px;
  border-radius: 10px;
  border-left: 3px solid var(--primary);
}

.share-rule-note strong {
  color: var(--primary-dark);
}

.share-area {
  background: #f9fafb;
  border-radius: var(--radius);
  padding: 16px;
  margin-bottom: 16px;
  border: 1px solid var(--border);
}

.share-textarea {
  width: 100%;
  min-height: 90px;
  padding: 12px;
  border: 1.5px solid var(--border);
  border-radius: 10px;
  font-size: 13px;
  line-height: 1.5;
  color: var(--text);
  resize: none;
  background: #fff;
}

.share-textarea:focus {
  outline: none;
  border-color: var(--primary);
}

.share-btn-group {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.share-btn-group .btn {
  flex: 1 1 calc(50% - 5px);
  padding: 12px 8px;
  font-size: 12px;
}

@media (max-width: 360px) {
  .share-btn-group .btn {
    font-size: 11px;
    padding: 10px 6px;
  }
}

.copy-toast {
  position: fixed;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%) translateY(60px);
  background: rgba(0,0,0,.85);
  color: #fff;
  padding: 12px 24px;
  border-radius: 30px;
  font-size: 14px;
  font-weight: 600;
  z-index: 9999;
  opacity: 0;
  transition: all .3s ease;
  pointer-events: none;
  white-space: nowrap;
}

.copy-toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* ---------- Pickup Info (Collapsible) ---------- */
.pickup-toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 14px 16px;
  background: #f9fafb;
  border: 1.5px solid var(--border);
  border-radius: 12px;
  font-size: 14px;
  font-weight: 700;
  color: var(--text);
  cursor: pointer;
  transition: all .2s;
  margin-bottom: 12px;
}

.pickup-toggle:hover {
  border-color: var(--primary);
  color: var(--primary);
}

.pickup-toggle .arrow {
  transition: transform .3s;
  font-size: 16px;
}

.pickup-toggle.open .arrow {
  transform: rotate(180deg);
}

.pickup-list {
  display: none;
  flex-direction: column;
  gap: 10px;
  overflow: hidden;
  transition: max-height .3s ease;
}

.pickup-list.open {
  display: flex;
}

.pickup-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 14px 16px;
  background: #f9fafb;
  border-radius: 10px;
  border: 1px solid var(--border);
}

.pickup-icon {
  font-size: 24px;
  flex-shrink: 0;
  margin-top: 2px;
}

.pickup-details h4 {
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 2px;
}

.pickup-details p {
  font-size: 12px;
  color: var(--text-muted);
}

.pickup-details .pickup-phone {
  margin-top: 4px;
  color: var(--primary);
  font-weight: 600;
}

.pickup-details .pickup-phone a {
  color: var(--primary);
  text-decoration: none;
}

.pickup-details .pickup-phone a:hover {
  text-decoration: underline;
}

.pickup-address-link {
  color: var(--text-muted);
  text-decoration: none;
  border-bottom: 1px dashed var(--primary);
}

.pickup-address-link:hover {
  color: var(--primary);
  border-bottom-style: solid;
}

.pickup-note {
  margin-top: 14px;
  padding: 14px 16px;
  background: linear-gradient(135deg, #fffbeb 0%, #fef3c7 100%);
  border: 1.5px solid var(--gold-light);
  border-radius: 12px;
  font-size: 13px;
  line-height: 1.6;
  color: #92400e;
}

.pickup-note strong {
  font-weight: 700;
}



/* ---------- Floating WhatsApp Button ---------- */
.floating-whatsapp {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--whatsapp);
  box-shadow: 0 4px 16px rgba(37,211,102,.4);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 998;
  transition: transform .2s, box-shadow .2s;
}
.floating-whatsapp:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 24px rgba(37,211,102,.5);
}
.floating-whatsapp svg {
  width: 32px;
  height: 32px;
  display: block;
}

/* 在大屏幕上，让图标紧贴内容区域右侧，而不是屏幕最右侧 */
@media (min-width: 520px) {
  .floating-whatsapp {
    right: calc((100vw - var(--max-width)) / 2 + 24px);
  }
}



/* ---------- Hidden State ---------- */
.state-hidden {
  display: none !important;
}

.state-dimmed {
  opacity: .4;
  pointer-events: none;
  filter: grayscale(1);
}

/* ---------- Footer ---------- */
.promo-footer {
  padding: 20px;
  text-align: center;
  font-size: 11px;
  color: var(--text-muted);
  background: #f9fafb;
  border-top: 1px solid var(--border);
}

.promo-footer a {
  color: var(--primary);
  text-decoration: underline;
}

/* ---------- Scrolling Announcement Bar ---------- */
.announcement-bar {
  background: linear-gradient(135deg, #ecfdf5 0%, #d1fae5 100%);
  border-bottom: 1px solid #a7f3d0;
  overflow: hidden;
  height: 36px;
  display: flex;
  align-items: center;
  position: relative;
}

.announcement-bar::before,
.announcement-bar::after {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  width: 40px;
  z-index: 2;
  pointer-events: none;
}

.announcement-bar::before {
  left: 0;
  background: linear-gradient(90deg, #ecfdf5, transparent);
}

.announcement-bar::after {
  right: 0;
  background: linear-gradient(-90deg, #d1fae5, transparent);
}

.announcement-track {
  display: flex;
  gap: 60px;
  white-space: nowrap;
  animation: scrollAnnouncement 40s linear infinite;
}

.announcement-track:hover {
  animation-play-state: paused;
}

.announcement-item {
  font-size: 12px;
  color: #065f46;
  font-weight: 600;
  flex-shrink: 0;
}

@keyframes scrollAnnouncement {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* ---------- Responsive (small phones) ---------- */
@media (max-width: 360px) {
  .hero-title { font-size: 20px; }
  .hero-price-promo { font-size: 30px; }
  .section-card { padding: 20px 16px; }
  .milestone-circle { width: 40px; height: 40px; font-size: 12px; }
}

/* ---------- Responsive (larger screens) ---------- */
@media (min-width: 520px) {
  .page-wrapper {
    border-radius: 0;
    box-shadow: none;
  }
  body { background: #e5e7eb; }
}
