/* =================================================================
   @Annalivia McGivern x BPerfect - Official Christmas Giveaway
   Deep Chocolate Brown, Festive Red, Gold & Luxury Beauty Aesthetic
   ================================================================= */

:root {
  --bg-page: #fdf8f5;
  --bg-card: #ffffff;
  --text-main: #1a0a05;
  --text-muted: #6b4c3b;
  --text-dim: #a07060;

  --primary-color: #3d1a0f;
  --primary-hover: #2a1008;
  --primary-dark: #1a0805;
  --primary-red: #c0392b;
  --primary-gold: #d4a017;
  --primary-amber: #e67e22;

  --accent-light: #fdf3ee;
  --accent-border: #e8c5b0;
  --accent-soft: #f5ddd0;

  --font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --shadow-card: 0 20px 50px rgba(61, 26, 15, 0.09), 0 4px 20px rgba(26, 10, 5, 0.04);
  --shadow-btn: 0 10px 25px rgba(192, 57, 43, 0.4);
  --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: linear-gradient(180deg, #fdf4ef 0%, #fdfaf8 50%, #faf2ee 100%);
  color: var(--text-main);
  line-height: 1.5;
  overflow-x: hidden;
  min-height: 100vh;
}

/* Top Announcement */
.top-announcement {
  background: #1a0805;
  color: #fdf3ee;
  font-size: 0.85rem;
  padding: 10px 16px;
  text-align: center;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 14px rgba(26, 8, 5, 0.5);
  border-bottom: 1px solid rgba(212, 160, 23, 0.4);
}

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

.live-pulse {
  width: 8px;
  height: 8px;
  background: #e74c3c;
  border-radius: 50%;
  box-shadow: 0 0 10px #e74c3c;
  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: #f1c40f; 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(232, 197, 176, 0.7);
  position: relative;
}

/* Collab Header Tag */
.collab-header {
  margin-bottom: 1rem;
}

.collab-tag {
  display: inline-block;
  background: linear-gradient(135deg, #3d1a0f 0%, #6b2d1a 100%);
  color: #d4a017;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  padding: 5px 16px;
  border-radius: 20px;
  border: 1px solid rgba(212, 160, 23, 0.4);
}

/* 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: linear-gradient(135deg, #c0392b 0%, #d4a017 50%, #3d1a0f 100%);
  padding: 4px;
  box-shadow: 0 8px 24px rgba(192, 57, 43, 0.3);
}

.avatar-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  border-radius: 50%;
  background: #1a0805;
  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: #1a0a05;
}

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

.giveaway-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: #c0392b;
}

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

.claim-button {
  width: 100%;
  max-width: 440px;
  background: linear-gradient(135deg, #c0392b 0%, #96281b 60%, #7d2016 100%);
  color: #ffffff;
  border: 1px solid #d4a017;
  border-radius: 50px;
  padding: 16px 28px;
  font-size: 1.2rem;
  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;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

.claim-button:hover {
  background: linear-gradient(135deg, #e74c3c 0%, #c0392b 60%, #96281b 100%);
  transform: translateY(-2px) scale(1.01);
  box-shadow: 0 14px 34px rgba(192, 57, 43, 0.5);
}

.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; color: #f1c40f; }
.btn-text { letter-spacing: -0.01em; }

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

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

.step-num-badge {
  width: 24px;
  height: 24px;
  background: #c0392b;
  color: #f1c40f;
  font-size: 0.78rem;
  font-weight: 800;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 6px;
  box-shadow: 0 2px 6px rgba(192, 57, 43, 0.3);
}

.step-icon-box {
  width: 52px;
  height: 52px;
  background: #fdf3ee;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #c0392b;
  margin-bottom: 8px;
  border: 1px solid #e8c5b0;
  transition: var(--transition);
}

.step-col:hover .step-icon-box {
  transform: translateY(-3px);
  background: #f5ddd0;
  color: #96281b;
}

.step-title { font-size: 0.96rem; font-weight: 700; margin-bottom: 4px; color: #1a0a05; }
.step-desc { font-size: 0.76rem; color: #6b4c3b; line-height: 1.35; }

.step-arrow {
  display: flex;
  align-items: center;
  margin-top: 36px;
  opacity: 0.8;
}

/* Showcase Poster */
.showcase-section { margin-bottom: 2rem; }

.showcase-img-wrapper {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 12px 36px rgba(61, 26, 15, 0.18), 0 2px 8px rgba(0, 0, 0, 0.05);
  border: 1px solid #e8c5b0;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.showcase-img-wrapper:hover {
  transform: scale(1.015);
  box-shadow: 0 16px 44px rgba(192, 57, 43, 0.22);
}

.showcase-img { width: 100%; height: auto; display: block; }

.showcase-badge {
  position: absolute;
  top: 14px;
  right: 14px;
  background: rgba(26, 8, 5, 0.9);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: #fdf3ee;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  padding: 6px 14px;
  border-radius: 30px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 1px solid rgba(212, 160, 23, 0.5);
}

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

/* Highlights */
.basket-highlights {
  background: #fdf3ee;
  border-radius: 20px;
  padding: 1.4rem;
  margin-bottom: 2rem;
  text-align: left;
  border: 1px solid #e8c5b0;
}

.highlights-title { font-size: 1.02rem; font-weight: 800; color: #3d1a0f; margin-bottom: 1rem; }

.highlights-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }

.highlight-item {
  display: flex;
  align-items: center;
  gap: 8px;
  background: #ffffff;
  padding: 10px 14px;
  border-radius: 12px;
  font-size: 0.84rem;
  font-weight: 600;
  color: #1a0a05;
  border: 1px solid #f5ddd0;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.02);
}

.highlight-icon { font-size: 1.1rem; flex-shrink: 0; }

/* Trust Footer */
.trust-footer { border-top: 1px solid #e8c5b0; padding-top: 1.5rem; }

.trust-icons {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  margin-bottom: 1rem;
  flex-wrap: wrap;
}

.trust-item {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.82rem;
  font-weight: 700;
  color: #6b4c3b;
}

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

.disclaimer-text {
  font-size: 0.72rem;
  color: #a07060;
  line-height: 1.5;
  max-width: 520px;
  margin: 0 auto;
}

/* iOS & TikTok Popup */
.ios-popup {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.2rem;
}

.ios-popup-background {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(26, 8, 5, 0.88);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.ios-popup-content {
  position: relative;
  background: linear-gradient(180deg, #1a0805 0%, #0d0402 100%);
  border: 1px solid rgba(212, 160, 23, 0.45);
  border-radius: 24px;
  width: 100%;
  max-width: 360px;
  padding: 1.4rem 1.3rem 1.3rem;
  text-align: center;
  box-shadow: 0 25px 70px rgba(0, 0, 0, 0.75), 0 0 35px rgba(192, 57, 43, 0.25);
  z-index: 2;
  color: #ffffff;
  animation: popUpAnim 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

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

.ios-popup-close {
  position: absolute;
  top: 12px; right: 12px;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.12);
  width: 30px; height: 30px;
  border-radius: 50%;
  font-size: 1.1rem;
  line-height: 1;
  color: #94a3b8;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}

.ios-popup-close:hover { background: rgba(255,255,255,0.2); color: #fff; }

.ios-gif-container {
  margin: 0.5rem auto 1rem;
  max-width: 210px;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid rgba(212, 160, 23, 0.3);
  box-shadow: 0 8px 24px rgba(0,0,0,0.4);
  background: #000;
}

.ios-instruction-gif { width: 100%; height: auto; display: block; }

.ios-steps-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  text-align: left;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  padding: 12px 14px;
  border-radius: 14px;
}

.ios-step-row { display: flex; align-items: center; gap: 10px; }

.ios-step-badge {
  width: 22px; height: 22px;
  border-radius: 50%;
  background: #c0392b;
  border: 1px solid #d4a017;
  color: #f1c40f;
  font-size: 0.72rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.ios-step-text { font-size: 0.82rem; color: #cbd5e1; line-height: 1.35; }
.ios-step-text strong { color: #e74c3c; }

/* Winner Toast */
.winner-toast {
  position: fixed;
  bottom: 24px; left: 24px;
  background: #ffffff;
  border: 1px solid #e8c5b0;
  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: 998;
  transform: translateY(120%);
  opacity: 0;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  max-width: 340px;
}

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

.toast-img-box {
  width: 42px; height: 42px;
  border-radius: 50%;
  overflow: hidden;
  flex-shrink: 0;
  border: 2px solid #c0392b;
}

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

.toast-text-box {
  display: flex;
  flex-direction: column;
  text-align: left;
  line-height: 1.3;
}

.toast-text-box strong { font-size: 0.82rem; color: #1a0a05; }
.toast-text-box span { font-size: 0.74rem; color: #c0392b; font-weight: 600; }
.toast-text-box small { font-size: 0.68rem; color: #a07060; }

@media (max-width: 520px) {
  .page-wrapper { margin: 0.8rem auto 2.5rem; padding: 0 0.75rem; }
  .main-card { padding: 1.6rem 1.2rem; border-radius: 22px; }
  .handle-name { font-size: 1.5rem; }
  .giveaway-title { font-size: 1rem; }
  .steps-flow-container { gap: 4px; }
  .step-icon-box { width: 44px; height: 44px; }
  .step-title { font-size: 0.85rem; }
  .step-desc { font-size: 0.7rem; }
  .highlights-grid { grid-template-columns: 1fr; }
  .winner-toast { left: 12px; right: 12px; bottom: 16px; max-width: none; }
}

