/* =================================================================
   @ronjaaelisabeth - Official Boo Basket Giveaway
   Warm Cozy Autumn / Halloween Aesthetic Design System (Pumpkin Orange, Amber & Warm Cider)
   ================================================================= */

:root {
  --bg-page: #fff8f0;
  --bg-card: #ffffff;
  --text-main: #1c1917;
  --text-muted: #78716c;
  --text-dim: #a8a29e;

  --primary-color: #ea580c;
  --primary-hover: #c2410c;
  --primary-dark: #9a3412;
  --primary-orange: #f97316;
  --primary-amber: #f59e0b;

  --accent-light: #fff7ed;
  --accent-border: #fed7aa;
  --accent-soft: #ffedd5;

  --accent-blue: #0095f6;
  --accent-green: #10b981;

  --font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --shadow-card: 0 20px 50px rgba(234, 88, 12, 0.09), 0 4px 20px rgba(245, 158, 11, 0.06);
  --shadow-btn: 0 10px 25px rgba(234, 88, 12, 0.42);
  --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, #fff8f0 0%, #fffbf5 50%, #fef3c7 100%);
  color: var(--text-main);
  line-height: 1.5;
  overflow-x: hidden;
  min-height: 100vh;
}

/* Top Announcement Bar */
.top-announcement {
  background: #1c1917;
  color: #ffedd5;
  font-size: 0.85rem;
  padding: 8px 16px;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 14px rgba(28, 25, 23, 0.4);
  border-bottom: 1px solid rgba(234, 88, 12, 0.45);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

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

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

@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: #fb923c;
  font-weight: 800;
}

/* Language Switcher */
.lang-switcher {
  display: inline-flex;
  align-items: center;
  background: rgba(255, 255, 255, 0.08);
  padding: 3px 4px;
  border-radius: 20px;
  border: 1px solid rgba(234, 88, 12, 0.35);
  flex-shrink: 0;
}

.lang-btn {
  background: transparent;
  border: none;
  color: #ffedd5;
  font-family: var(--font-family);
  font-size: 0.72rem;
  font-weight: 700;
  padding: 4px 9px;
  border-radius: 14px;
  cursor: pointer;
  transition: var(--transition);
  display: inline-flex;
  align-items: center;
  gap: 4px;
  opacity: 0.75;
}

.lang-btn:hover {
  opacity: 1;
  color: #ffffff;
}

.lang-btn.active {
  background: #ea580c;
  color: #ffffff;
  opacity: 1;
  box-shadow: 0 2px 8px rgba(234, 88, 12, 0.5);
}

@media (max-width: 580px) {
  .top-announcement {
    flex-direction: column;
    padding: 8px 10px;
    gap: 6px;
  }
  .announcement-content {
    font-size: 0.8rem;
  }
}

/* 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(234, 88, 12, 0.16);
}

/* 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, #f97316 0%, #ea580c 50%, #f59e0b 100%);
  padding: 4px;
  box-shadow: 0 8px 24px rgba(234, 88, 12, 0.35);
}

.avatar-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  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: #1c1917;
}

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

.giveaway-title {
  font-size: 1.18rem;
  font-weight: 700;
  color: #ea580c;
  display: flex;
  align-items: center;
  gap: 6px;
}

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

.claim-button {
  width: 100%;
  max-width: 440px;
  background: linear-gradient(135deg, #f97316 0%, #ea580c 50%, #c2410c 100%);
  color: #ffffff;
  border: none;
  border-radius: 50px;
  padding: 16px 28px;
  font-size: 1.22rem;
  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: linear-gradient(135deg, #ea580c 0%, #c2410c 50%, #9a3412 100%);
  transform: translateY(-2px) scale(1.01);
  box-shadow: 0 14px 32px rgba(234, 88, 12, 0.52);
}

.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 (Fully Responsive & Anti-Cutoff)
   =================================================== */
.steps-flow-container {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px;
  padding: 1rem 0 2rem;
  border-bottom: 1px solid #fed7aa;
  margin-bottom: 2rem;
  width: 100%;
  box-sizing: border-box;
}

.step-col {
  flex: 1 1 0;
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  word-break: break-word;
  overflow-wrap: anywhere;
  hyphens: auto;
  -webkit-hyphens: auto;
}

.step-num-badge {
  width: 24px;
  height: 24px;
  background: #ea580c;
  color: #fff;
  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(234, 88, 12, 0.35);
  flex-shrink: 0;
}

.step-icon-box {
  width: 48px;
  height: 48px;
  background: #fff7ed;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ea580c;
  margin-bottom: 8px;
  border: 1px solid #ffedd5;
  transition: var(--transition);
  flex-shrink: 0;
}

.step-icon-box svg {
  width: 24px;
  height: 24px;
}

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

.step-title {
  font-size: 0.92rem;
  font-weight: 700;
  margin-bottom: 4px;
  color: #1c1917;
  line-height: 1.25;
  word-break: break-word;
  overflow-wrap: anywhere;
  hyphens: auto;
  -webkit-hyphens: auto;
}

.step-desc {
  font-size: 0.74rem;
  color: #78716c;
  line-height: 1.35;
  word-break: break-word;
  overflow-wrap: anywhere;
  hyphens: auto;
  -webkit-hyphens: auto;
}

.step-arrow {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 32px;
  opacity: 0.7;
  flex-shrink: 0;
  width: 16px;
}

.step-arrow svg {
  width: 16px;
  height: 16px;
}

/* ===================================================
   Showcase Section (Ronja's Boo Basket Flyer)
   =================================================== */
.showcase-section {
  margin-bottom: 2rem;
}

.showcase-img-wrapper {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 12px 36px rgba(234, 88, 12, 0.14), 0 2px 8px rgba(0, 0, 0, 0.04);
  border: 1px solid #fed7aa;
}

.showcase-img {
  width: 100%;
  height: auto;
  display: block;
  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(28, 25, 23, 0.85);
  backdrop-filter: blur(8px);
  color: #ffffff;
  padding: 6px 14px;
  border-radius: 30px;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  display: flex;
  align-items: center;
  gap: 6px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  border: 1px solid rgba(254, 215, 170, 0.3);
}

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

/* ===================================================
   Boo Basket Package Item Highlights
   =================================================== */
.basket-highlights {
  background: #fff7ed;
  border: 1px solid #fed7aa;
  border-radius: 20px;
  padding: 1.4rem;
  margin-bottom: 2rem;
  text-align: left;
}

.highlights-title {
  font-size: 1.05rem;
  font-weight: 800;
  color: #9a3412;
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 8px;
}

.highlights-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

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

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

/* ===================================================
   Trust Badges & Disclaimer
   =================================================== */
.trust-footer {
  padding-top: 0.5rem;
}

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

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

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

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

/* ===================================================
   Modal Overlay & Delivery Confirmation Locker
   =================================================== */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: 999;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  padding: 1rem;
}

.modal-overlay.active {
  opacity: 1;
  visibility: visible;
}

.modal-backdrop {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(28, 25, 23, 0.75);
  backdrop-filter: blur(6px);
}

.modal-container {
  position: relative;
  background: #ffffff;
  border-radius: 24px;
  max-width: 480px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.3);
  border: 1px solid #fed7aa;
  transform: translateY(20px) scale(0.97);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  z-index: 2;
}

.modal-overlay.active .modal-container {
  transform: translateY(0) scale(1);
}

.modal-header {
  padding: 1.6rem 1.6rem 1rem;
  border-bottom: 1px solid #ffedd5;
  text-align: left;
}

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

.modal-badge {
  background: #fff7ed;
  color: #ea580c;
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  padding: 4px 10px;
  border-radius: 20px;
  border: 1px solid #fed7aa;
}

.close-btn {
  background: none;
  border: none;
  font-size: 1.6rem;
  color: #a8a29e;
  cursor: pointer;
  line-height: 1;
  padding: 2px 6px;
  border-radius: 50%;
  transition: var(--transition);
}

.close-btn:hover {
  color: #1c1917;
  background: #f5f5f4;
}

.modal-title {
  font-size: 1.35rem;
  font-weight: 800;
  color: #1c1917;
  margin-bottom: 6px;
}

.modal-subtitle {
  font-size: 0.86rem;
  color: #57534e;
  line-height: 1.45;
  margin-bottom: 1rem;
}

.timer-box {
  background: #fff7ed;
  border: 1px solid #fed7aa;
  border-radius: 12px;
  padding: 8px 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.82rem;
  color: #9a3412;
  font-weight: 600;
}

.timer-countdown {
  color: #ea580c;
  font-size: 1.05rem;
  font-weight: 800;
  letter-spacing: 0.03em;
}

.modal-body {
  padding: 1.2rem 1.6rem 1.6rem;
}

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

.offers-count-tag {
  font-size: 0.78rem;
  font-weight: 700;
  color: #78716c;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.offers-refresh-btn {
  background: transparent;
  border: none;
  color: #ea580c;
  font-size: 0.76rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 4px;
  cursor: pointer;
}

.offers-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 1.2rem;
}

.offer-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #fffaf5;
  border: 1.5px solid #fed7aa;
  border-radius: 16px;
  padding: 14px 16px;
  text-decoration: none;
  color: inherit;
  transition: var(--transition);
  box-shadow: 0 4px 12px rgba(234, 88, 12, 0.05);
}

.offer-card:hover {
  border-color: #ea580c;
  background: #fff7ed;
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(234, 88, 12, 0.15);
}

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

.offer-thumb {
  width: 42px;
  height: 42px;
  background: #ffedd5;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ea580c;
  flex-shrink: 0;
}

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

.offer-name {
  font-size: 0.95rem;
  font-weight: 800;
  color: #1c1917;
}

.offer-instruction {
  font-size: 0.76rem;
  color: #78716c;
  line-height: 1.3;
}

.offer-pill {
  display: inline-block;
  font-size: 0.68rem;
  font-weight: 800;
  color: #ea580c;
  margin-top: 2px;
}

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

.offer-card:hover .offer-action-btn {
  background: #c2410c;
}

.auto-check-footer {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.74rem;
  color: #a8a29e;
  text-align: left;
  line-height: 1.35;
  background: #f5f5f4;
  padding: 10px 14px;
  border-radius: 12px;
}

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

/* ===================================================
   iOS & TikTok In-App Browser Popup
   =================================================== */
.ios-popup {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
}

.ios-popup-background {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(8px);
}

.ios-popup-content {
  position: relative;
  background: #ffffff;
  border-radius: 24px;
  max-width: 380px;
  width: 100%;
  padding: 1.8rem;
  text-align: center;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.35);
  animation: popIn 0.3s ease;
  z-index: 2;
}

@keyframes popIn {
  from { transform: scale(0.9); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}

.ios-popup-close {
  position: absolute;
  top: 14px;
  right: 14px;
  background: #f5f5f4;
  border: none;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  font-size: 1rem;
  color: #78716c;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}

.ios-popup-close:hover {
  background: #e7e5e4;
  color: #1c1917;
}

.ios-gif-container {
  margin: 0.5rem auto 1.2rem;
  max-width: 220px;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.1);
}

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

.ios-popup-heading {
  font-size: 1.35rem;
  font-weight: 800;
  color: #1c1917;
  margin-bottom: 8px;
}

.ios-popup-desc {
  font-size: 0.88rem;
  color: #57534e;
  line-height: 1.5;
}

/* ===================================================
   Live Winner Notification Toast
   =================================================== */
.winner-toast {
  position: fixed;
  bottom: 24px;
  left: 24px;
  background: #ffffff;
  border: 1px solid #fed7aa;
  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 #ea580c;
}

.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: #1c1917;
}

.toast-text-box span {
  font-size: 0.74rem;
  color: #ea580c;
  font-weight: 600;
}

.toast-text-box small {
  font-size: 0.68rem;
  color: #a8a29e;
}

/* ===================================================
   Mobile Precision Responsive Media Queries
   =================================================== */
@media (max-width: 480px) {
  .page-wrapper {
    margin: 0.6rem auto 2.2rem;
    padding: 0 0.5rem;
  }
  
  .main-card {
    padding: 1.4rem 0.75rem;
    border-radius: 20px;
  }

  .handle-name {
    font-size: 1.45rem;
  }

  .giveaway-title {
    font-size: 1rem;
  }

  .claim-button {
    font-size: 1.02rem;
    padding: 13px 16px;
    gap: 8px;
  }

  .claim-button .btn-icon svg {
    width: 22px;
    height: 22px;
  }

  /* Steps Flow on Mobile */
  .steps-flow-container {
    gap: 4px;
    padding: 0.8rem 0 1.4rem;
    margin-bottom: 1.5rem;
  }

  .step-num-badge {
    width: 20px;
    height: 20px;
    font-size: 0.7rem;
    margin-bottom: 4px;
  }

  .step-icon-box {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    margin-bottom: 6px;
  }

  .step-icon-box svg {
    width: 20px;
    height: 20px;
  }

  .step-arrow {
    margin-top: 24px;
    width: 10px;
    opacity: 0.55;
  }

  .step-arrow svg {
    width: 12px;
    height: 12px;
  }

  .step-title {
    font-size: 0.78rem;
    line-height: 1.2;
    margin-bottom: 3px;
    font-weight: 700;
  }

  .step-desc {
    font-size: 0.68rem;
    line-height: 1.3;
  }

  .highlights-grid {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .winner-toast {
    left: 12px;
    right: 12px;
    max-width: calc(100% - 24px);
    bottom: 16px;
  }
}

@media (max-width: 360px) {
  .main-card {
    padding: 1.2rem 0.5rem;
  }

  .step-arrow {
    display: none;
  }

  .step-icon-box {
    width: 36px;
    height: 36px;
  }

  .step-icon-box svg {
    width: 18px;
    height: 18px;
  }

  .step-title {
    font-size: 0.72rem;
  }

  .step-desc {
    font-size: 0.64rem;
  }
}
