/* ============================================================
   Agency GG – Ramadan Gift Funnel
   Global Stylesheet
   ============================================================ */

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

:root {
  --navy:      #1a2456;
  --navy-dark: #111840;
  --gold:      #c9a227;
  --whatsapp:  #25d366;
  --messenger: #cc00ff;
  --progress:  #1a77f2;
  --error:     #e74c3c;
  --success:   #27ae60;
  --bg:        #f0f2f5;
  --card-bg:   #ffffff;
  --text:      #1a1a2e;
  --text-muted:#6b7280;
  --radius:    8px;
  --max-w:     480px;
  --shadow:    0 2px 16px rgba(0,0,0,.12);
}

html { scroll-behavior: smooth; }

body {
  font-family: system-ui, -apple-system, sans-serif;
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
}

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

/* ---------- Layout Wrapper ---------- */
.page-wrap {
  width: 100%;
  max-width: var(--max-w);
  padding: 0 0 2rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}

/* ---------- Header ---------- */
.site-header {
  width: 100%;
  max-width: var(--max-w);
}

.logo-bar {
  background: var(--card-bg);
  padding: .75rem 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-bottom: 2px solid var(--navy);
}

.logo {
  display: flex;
  align-items: center;
  gap: .5rem;
}

.logo__eagle {
  width: 36px;
  height: 36px;
}

.logo__text {
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--navy);
  letter-spacing: .5px;
}

.announce-bar {
  background: var(--navy);
  color: #fff;
  text-align: center;
  padding: .55rem 1rem;
  font-size: .85rem;
  font-weight: 600;
  letter-spacing: .3px;
}

/* ---------- Cards & Sections ---------- */
.content-card {
  background: var(--card-bg);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 1.25rem 1rem;
  margin: 1rem .75rem 0;
}

.page-title {
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--navy);
  text-align: center;
  margin: 1.25rem .75rem .25rem;
}

.page-subtitle {
  font-size: .95rem;
  color: var(--navy);
  font-weight: 600;
  text-align: center;
  margin: 0 .75rem .5rem;
}

.page-body {
  font-size: .9rem;
  color: var(--text-muted);
  text-align: center;
  margin: 0 .75rem .75rem;
  line-height: 1.5;
}

/* ---------- Hero Image ---------- */
.hero-image {
  width: calc(100% - 1.5rem);
  margin: .75rem .75rem 0;
  border-radius: var(--radius);
  overflow: hidden;
  background: linear-gradient(135deg, var(--navy) 0%, #2d3a8c 100%);
  min-height: 180px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-image img {
  width: 100%;
  border-radius: var(--radius);
}

.hero-image-placeholder {
  color: rgba(255,255,255,.5);
  font-size: .8rem;
  text-align: center;
  padding: 1rem;
}

/* ---------- Naira Image ---------- */
@keyframes nairaFloat {
  0%, 100% { transform: translateY(0) scale(1); }
  50%       { transform: translateY(-8px) scale(1.03); }
}

.naira-image {
  width: calc(100% - 1.5rem);
  margin: .75rem .75rem 0;
  background: transparent;
  display: flex;
  align-items: center;
  justify-content: center;
}

.naira-image img {
  width: 72%;
  max-width: 300px;
  border-radius: var(--radius);
  object-fit: contain;
  animation: nairaFloat 3s ease-in-out infinite;
  filter: drop-shadow(0 12px 24px rgba(0,0,0,.22));
}

.naira-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .5rem;
  color: #fff;
  font-size: 3rem;
  padding: 1.5rem;
}

.naira-placeholder span {
  font-size: .85rem;
  font-weight: 600;
}

/* ============================================================
   STEP 1 – QUIZ
   ============================================================ */

.question-card {
  background: var(--card-bg);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 1.25rem 1rem;
  margin: 1rem .75rem 0;
  transition: opacity .35s ease, transform .35s ease;
}

.question-card.fade-out {
  opacity: 0;
  transform: translateY(-12px);
  pointer-events: none;
}

@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: translateY(0); }
}

.question-card.fade-in {
  animation: fadeInUp .35s ease forwards;
}

.question-label {
  font-size: .8rem;
  color: var(--text-muted);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .5px;
  margin-bottom: .5rem;
}

.question-text {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 1rem;
  line-height: 1.4;
}

.answer-buttons {
  display: flex;
  gap: .6rem;
}

.btn-answer {
  flex: 1;
  background: var(--navy);
  color: #fff;
  font-size: .95rem;
  font-weight: 600;
  padding: .75rem .5rem;
  border-radius: var(--radius);
  transition: background .2s, transform .1s;
}

.btn-answer:hover  { background: var(--navy-dark); }
.btn-answer:active { transform: scale(.97); }

.quiz-progress {
  display: flex;
  justify-content: center;
  gap: .5rem;
  margin: .75rem 0 0;
}

.quiz-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #d1d5db;
  transition: background .3s;
}

.quiz-dot.active { background: var(--navy); }
.quiz-dot.done   { background: var(--gold); }

/* ============================================================
   STEP 2 – VERIFY / LOADER
   ============================================================ */

.loader-section {
  text-align: center;
  padding: 2rem 1rem;
  margin: 1rem .75rem 0;
  background: var(--card-bg);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.loader-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 1.25rem;
}

.dots-loader {
  display: flex;
  justify-content: center;
  gap: .5rem;
  margin-bottom: 1.25rem;
}

.dots-loader span {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--navy);
  animation: dotPulse 1.4s ease-in-out infinite;
}

.dots-loader span:nth-child(2) { animation-delay: .2s; }
.dots-loader span:nth-child(3) { animation-delay: .4s; }

@keyframes dotPulse {
  0%, 80%, 100% { transform: scale(.6); opacity: .4; }
  40%            { transform: scale(1);  opacity: 1;   }
}

.loader-facts {
  list-style: none;
  text-align: left;
  display: inline-block;
}

.loader-facts li {
  font-size: .88rem;
  color: var(--text-muted);
  padding: .3rem 0;
}

.loader-facts li::before {
  content: '✓ ';
  color: var(--success);
  font-weight: 700;
}

/* ============================================================
   MODALS
   ============================================================ */

.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.65);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  padding: 1rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity .3s;
}

.modal-overlay.visible {
  opacity: 1;
  pointer-events: all;
}

.modal-card {
  background: var(--card-bg);
  border-radius: 12px;
  padding: 1.75rem 1.25rem;
  width: 100%;
  max-width: 360px;
  text-align: center;
  box-shadow: 0 8px 40px rgba(0,0,0,.3);
  transform: scale(.92);
  transition: transform .3s;
}

.modal-overlay.visible .modal-card {
  transform: scale(1);
}

.modal-icon {
  font-size: 2.5rem;
  margin-bottom: .75rem;
  line-height: 1;
}

.modal-title {
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--navy);
  margin-bottom: .5rem;
}

.modal-body {
  font-size: .9rem;
  color: var(--text-muted);
  line-height: 1.55;
  margin-bottom: 1.25rem;
}

.modal-body strong {
  color: var(--navy);
  display: block;
  margin-bottom: .35rem;
}

.modal-rules {
  text-align: left;
  font-size: .85rem;
  margin-top: .75rem;
  padding-left: 1rem;
}

.modal-rules li { margin-bottom: .35rem; }

.btn-modal {
  background: var(--navy);
  color: #fff;
  font-size: 1rem;
  font-weight: 700;
  padding: .75rem 2rem;
  border-radius: var(--radius);
  width: 100%;
  transition: background .2s;
}

.btn-modal:hover { background: var(--navy-dark); }

.modal-naira {
  background: transparent;
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.5rem;
}

.modal-naira img {
  width: 65%;
  object-fit: contain;
  animation: nairaFloat 3s ease-in-out infinite;
  filter: drop-shadow(0 8px 16px rgba(0,0,0,.2));
}

/* ============================================================
   GIFT BOX GAME
   ============================================================ */

.game-section {
  margin: 1rem .75rem 0;
  background: var(--card-bg);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 1.25rem 1rem;
  display: none;
}

.game-section.visible { display: block; }

.game-title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--navy);
  text-align: center;
  margin-bottom: .25rem;
}

.game-subtitle {
  font-size: .85rem;
  color: var(--text-muted);
  text-align: center;
  margin-bottom: 1rem;
}

.attempts-counter {
  text-align: center;
  font-size: .9rem;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 1rem;
}

.attempts-counter .attempt-num {
  color: var(--error);
  font-size: 1.1rem;
  font-weight: 800;
}

.gift-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: .65rem;
  margin-bottom: 1rem;
}

.gift-box {
  aspect-ratio: 1;
  background: #1a6fd4;
  border-radius: var(--radius);
  cursor: pointer;
  position: relative;
  overflow: hidden;
  transition: transform .15s, box-shadow .15s;
  border: 3px solid rgba(255,255,255,.7);
  box-shadow: 0 4px 12px rgba(26,111,212,.35);
}

.gift-box:hover:not([data-opened]) {
  transform: scale(1.06);
  box-shadow: 0 6px 20px rgba(26,111,212,.55);
}

/* Horizontal ribbon */
.gift-box::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  height: 16%;
  background: var(--gold);
  transform: translateY(-50%);
  z-index: 1;
}

/* Vertical ribbon */
.gift-box::after {
  content: '';
  position: absolute;
  left: 50%;
  top: 0;
  bottom: 0;
  width: 16%;
  background: var(--gold);
  transform: translateX(-50%);
  z-index: 1;
}

.gift-box .bow {
  position: absolute;
  top: 2px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  font-size: 1.1rem;
  line-height: 1;
}

/* Star bg */
.gift-box .stars {
  position: absolute;
  inset: 0;
  z-index: 0;
  opacity: .18;
  background-image: radial-gradient(circle, #fff 1px, transparent 1px);
  background-size: 12px 12px;
}

@keyframes giftShake {
  0%, 100% { transform: translateX(0); }
  20%       { transform: translateX(-6px) rotate(-4deg); }
  40%       { transform: translateX(6px) rotate(4deg); }
  60%       { transform: translateX(-4px); }
  80%       { transform: translateX(4px); }
}

.gift-box.shake { animation: giftShake .45s ease; }

/* ============================================================
   CONFETTI
   ============================================================ */

.confetti-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 999;
  overflow: hidden;
}

.confetti-piece {
  position: absolute;
  top: -20px;
  width: 10px;
  height: 16px;
  border-radius: 2px;
  animation: confettiFall linear forwards;
}

@keyframes confettiFall {
  0%   { transform: translateY(0) rotate(0deg);      opacity: 1; }
  100% { transform: translateY(110vh) rotate(720deg); opacity: 0; }
}

/* ============================================================
   STEP 3 – SHARE
   ============================================================ */

.share-card {
  background: #f3f4f6;
  border-radius: var(--radius);
  padding: 1.25rem 1rem;
  margin: 1rem .75rem 0;
}

.share-card ol {
  padding-left: 1.1rem;
  margin-bottom: 1rem;
}

.share-card ol li {
  font-size: .88rem;
  color: var(--text);
  margin-bottom: .35rem;
  line-height: 1.5;
}

.share-buttons {
  display: flex;
  gap: .6rem;
  margin-bottom: 1rem;
}

.btn-share {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .45rem;
  padding: .75rem .5rem;
  border-radius: var(--radius);
  font-size: .95rem;
  font-weight: 700;
  color: #fff;
  transition: filter .2s, transform .1s;
  border: none;
}

.btn-share:active { transform: scale(.97); }
.btn-share:hover  { filter: brightness(1.1); }

.btn-share--whatsapp  { background: var(--whatsapp); }
.btn-share--messenger { background: var(--messenger); }

.share-icon {
  width: 22px;
  height: 22px;
  flex-shrink: 0;
}

.progress-label {
  font-size: .82rem;
  color: var(--text-muted);
  text-align: center;
  margin-bottom: .4rem;
}

.progress-bar-wrap {
  background: #e5e7eb;
  border-radius: 999px;
  height: 14px;
  overflow: hidden;
  margin-bottom: 1rem;
}

.progress-bar-fill {
  height: 100%;
  background: var(--progress);
  border-radius: 999px;
  transition: width .4s ease;
  width: 0%;
}

.btn-continue {
  width: calc(100% - 1.5rem);
  margin: 0 .75rem;
  background: #9ca3af;
  color: #fff;
  font-size: 1rem;
  font-weight: 700;
  padding: .9rem;
  border-radius: var(--radius);
  text-align: center;
  transition: background .3s;
  cursor: not-allowed;
  display: block;
  border: none;
}

.btn-continue.active {
  background: var(--navy);
  cursor: pointer;
}

.btn-continue.active:hover { background: var(--navy-dark); }

/* ============================================================
   STEP 4 – CLAIM
   ============================================================ */

.claim-card {
  background: #f3f4f6;
  border-radius: var(--radius);
  padding: 1.25rem 1rem;
  margin: 1rem .75rem 0;
}

.claim-card p {
  font-size: .88rem;
  color: var(--text);
  line-height: 1.55;
  margin-bottom: .75rem;
}

.claim-card p strong { color: var(--navy); }

.claim-section-title {
  font-size: .9rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: .5rem;
}

.claim-methods {
  font-size: .82rem;
  color: var(--text-muted);
  margin-bottom: .75rem;
  padding-left: 1rem;
}

.claim-methods li { margin-bottom: .25rem; }

.btn-cta {
  display: block;
  background: var(--navy);
  color: #fff;
  font-size: 1rem;
  font-weight: 800;
  padding: .9rem;
  border-radius: var(--radius);
  text-align: center;
  transition: background .2s, transform .1s;
  text-transform: uppercase;
  letter-spacing: .5px;
  margin-bottom: .6rem;
  border: none;
  width: 100%;
}

.btn-cta:hover  { background: var(--navy-dark); }
.btn-cta:active { transform: scale(.98); }

.cta-row {
  display: flex;
  gap: .6rem;
  margin-bottom: .6rem;
}

.cta-row .btn-cta { margin-bottom: 0; flex: 1; }

/* ============================================================
   COMMENTS
   ============================================================ */

.comments-section {
  margin: 1rem .75rem 0;
}

.comments-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: var(--navy);
  color: #fff;
  padding: .5rem .75rem;
  border-radius: var(--radius) var(--radius) 0 0;
  font-size: .88rem;
  font-weight: 600;
}

.comments-count { font-weight: 400; opacity: .85; }

.comments-list {
  background: var(--card-bg);
  border-radius: 0 0 var(--radius) var(--radius);
  border: 1px solid #e5e7eb;
  border-top: none;
  padding: .5rem 0;
}

.comment {
  display: flex;
  gap: .6rem;
  padding: .6rem .75rem;
  border-bottom: 1px solid #f3f4f6;
}

.comment:last-child { border-bottom: none; }

.comment__avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  color: #fff;
  font-size: .72rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.comment__body { flex: 1; min-width: 0; }

.comment__name {
  font-size: .82rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: .15rem;
}

.comment__text {
  font-size: .82rem;
  color: var(--text);
  line-height: 1.4;
  margin-bottom: .25rem;
}

.comment__meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.comment__time { font-size: .73rem; color: var(--text-muted); }

.comment__actions { display: flex; gap: .35rem; }

.reaction-btn {
  background: none;
  font-size: .78rem;
  color: var(--text-muted);
  padding: .15rem .3rem;
  border-radius: 4px;
  transition: background .15s;
}

.reaction-btn:hover { background: #f3f4f6; }

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

.site-footer {
  width: 100%;
  max-width: var(--max-w);
  margin-top: auto;
}

.footer-inner {
  background: var(--navy);
  color: rgba(255,255,255,.6);
  text-align: center;
  font-size: .78rem;
  padding: .85rem 1rem;
}

/* ============================================================
   UTILITY
   ============================================================ */

.hidden { display: none !important; }
.text-center { text-align: center; }
