/* ---------- Base ---------- */
html, body {
  height: 100%;
  margin: 0;
  background: #0d0d1a;
  color: #fff;
  overflow-x: hidden; /* horizontal scroll арилна */
  line-height: 1.6;
  font-family: 'Cormorant Unicase', serif;
}

.hidden {
  display: none;
}

/* ---------- Section layout ---------- */
section {
  width: 100%;
  box-sizing: border-box;       /* padding өндөрт нөлөөлөхгүй */
  display: flex;
  flex-direction: column;       /* default: босоо */
  justify-content: center;
  align-items: center;
  padding: 40px 20px;
}

.container {
  width: 100%;
  max-width: 820px;
  margin: 0 auto;
}

/* ---------- Typography ---------- */
h1 { font-size: clamp(2rem, 5vw, 3rem); margin-bottom: 1rem; }
h2 { font-size: clamp(1.6rem, 4vw, 2.2rem); margin-bottom: 1rem; }
h3 { font-size: clamp(1.2rem, 3vw, 1.6rem); margin-bottom: 0.5rem; }
p  { font-size: clamp(1rem, 2.5vw, 1.2rem); opacity: 0.9; margin-bottom: 1.2rem; }

/* ---------- Intro ---------- */
.intro {
  background: radial-gradient(circle at top, #1e1b4b, #0d0d1a 80%);
}
.wizard-img {
  width: clamp(200px, 30vw, 280px);
  margin-bottom: 24px;
}
.intro-text { max-width: 650px; margin: 0 auto; }

/* CTA Button */
.cta {
  background: linear-gradient(135deg, #6366f1, #ec4899);
  color: #fff;
  padding: 16px 32px;
  border: none;
  border-radius: 40px;
  cursor: pointer;
  margin-top: 20px;
  font-size: 1.1rem;
  font-weight: 600;
  box-shadow: 0 0 20px rgba(236,72,153,0.5);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.cta:hover { transform: translateY(-2px); box-shadow: 0 8px 20px rgba(236,72,153,0.6); }

/* ---------- Test ---------- */
.wizard-side {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 24px;
}
.wizard-small { width: 80px; height: auto; }

.question-card {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.1);
  backdrop-filter: blur(6px);
  padding: 32px;
  border-radius: 16px;
  margin-bottom: 24px;
  width: 100%;
  max-width: 820px;
  text-align: left;
}
.question-card p {
  font-size: 1.2rem;
  margin-bottom: 20px;
}
.options {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.options button {
  padding: 14px 18px;
  background: #6366f1;
  color: #fff;
  border: none;
  border-radius: 10px;
  cursor: pointer;
  font-size: 1rem;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.options button:hover { transform: translateY(-2px); box-shadow: 0 6px 12px rgba(0,0,0,0.25); }
.progress { margin-top: 16px; font-style: italic; opacity: 0.85; text-align: center; }

/* ---------- Result ---------- */
.result .container {
  width: 100%;
  max-width: 820px;
  margin: 0 auto;
  text-align: center;
}
.result-animation { margin-bottom: 24px; }
.crystal {
  width: clamp(150px, 25vw, 200px);
  margin-bottom: 20px;
}
.scrolls {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-top: 20px;
}
.scroll {
  width: 100%;
  padding: 24px 28px;
  border-radius: 14px;
  background: #fdf6e3;
  color: #3b2f1c;
  font-family: 'Playfair Display', serif;
  box-shadow: inset 0 0 20px rgba(0,0,0,0.15),
              0 8px 16px rgba(0,0,0,0.25);
}
.main-scroll { border: 2px solid #ec4899; box-shadow: 0 0 25px rgba(236,72,153,0.7); }
.bonus-scroll { border: 1px solid rgba(0,0,0,0.15); }

/* ---------- Overlay ---------- */
.result-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.85);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 2000;
  opacity: 0;
  pointer-events: none;
  transition: opacity 1s ease;
}
.result-overlay.show { opacity: 1; pointer-events: all; }

/* ---------- Responsive ---------- */

/* Tablet */
@media (max-width: 1024px) {
  .container { max-width: 90%; }
}

/* Mobile */
@media (max-width: 768px) {
  section {
    flex-direction: column;   /* бүх layout босоо */
    text-align: center;
    padding: 20px;
  }

  .wizard-side {
    flex-direction: column;
    align-items: center;
    margin-bottom: 20px;
  }

  .speech-bubble {
    text-align: center;
    max-width: 100%;
    margin-bottom: 16px;
  }

  .question-card {
    height: auto;
    text-align: center;
    padding: 20px;
  }
  .question-card p { font-size: 1.2rem; }

  .options button {
    width: 100%;
    font-size: 1.1rem;
    padding: 16px;
  }

  .scroll {
    width: 100%;
    text-align: center;
    padding: 20px;
  }
}

.question-card,
.scroll {
  width: 100%;
  box-sizing: border-box;   /* padding + border өргөнд тооцогдоно */
  margin: 0 auto 24px;      /* төвд байна */
}

/* Desktop: row layout */
.intro .container {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: 40px;
}

.wizard-img {
  flex: 1;
  max-width: 40%;
  height: auto;
}

.intro-text {
  flex: 1;
  max-width: 600px;
  text-align: left;
}

.intro-text h1 {
  white-space: nowrap;   /* мөр хугалахгүй */
  font-size: clamp(2rem, 4vw, 2.5rem);
}

/* Mobile: stacked layout */
@media (max-width: 768px) {
  .intro .container {
    flex-direction: column;
    text-align: center;
    gap: 20px;
  }

  .wizard-img {
    max-width: 70%;
    margin: 0 auto;
  }

  .intro-text {
    max-width: 100%;
    text-align: center;
  }
}

/* Result crystal ball */
.crystal {
  width: clamp(180px, 30vw, 260px); /* desktop дээр томруулсан */
  margin-bottom: 24px;
  opacity: 0;
  transform: scale(0.9);
}

/* Animate state */
.crystal.animate {
  opacity: 1;
  transform: scale(1);
  animation: crystalBreath 4s ease-in-out infinite;
}

/* Breathing glow animation */
@keyframes crystalBreath {
  0% {
    transform: scale(0.95);
    filter: drop-shadow(0 0 8px #ec4899);
  }
  50% {
    transform: scale(1.05);
    filter: drop-shadow(0 0 28px #6366f1);
  }
  100% {
    transform: scale(0.95);
    filter: drop-shadow(0 0 8px #ec4899);
  }
}

/* Base crystal (result доторх static) */
.result-crystal {
  width: clamp(150px, 25vw, 200px);
  margin-bottom: 20px;
  opacity: 1;               /* үргэлж харагдана */
  transform: scale(1);
  filter: drop-shadow(0 0 8px #ec4899);
}

/* Overlay crystal (loading animation) */
.overlay-crystal {
  width: clamp(180px, 30vw, 260px);
  margin-bottom: 24px;
  opacity: 0;
  transform: scale(0.9);
}

.overlay-crystal.animate {
  opacity: 1;
  transform: scale(1);
  animation: crystalBreath 4s ease-in-out infinite;
}
.result-animation {
  text-align: center;
  margin-bottom: 32px;
}

.result-block {
  display: flex;
  gap: 24px;
  align-items: flex-start;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.1);
  padding: 20px;
  border-radius: 12px;
  margin-bottom: 24px;
}

.book-cover {
  width: 140px;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 6px 12px rgba(0,0,0,0.3);
}

.result-info {
  flex: 1;
  text-align: left;
}

.result-info h3, .result-info h4 {
  margin: 0 0 8px 0;
}

.result-info .pr-text {
  font-style: italic;
  color: #bbb;
  margin-top: 8px;
}

/* Bonus title */
.bonus-title {
  margin: 32px 0 16px;
  font-size: 1.3rem;
}

/* Mobile stacked */
@media (max-width: 768px) {
  .result-block {
    flex-direction: column;
    text-align: center;
    align-items: center;
  }
  .book-cover {
    width: 60%;
    margin-bottom: 12px;
  }
  .result-info {
    text-align: center;
  }
}

/* ---------- Fade-in animation ---------- */
.fade-in {
  opacity: 0;
  transform: translateY(20px);
  animation: fadeUp 0.8s ease forwards;
  animation-delay: 0.5s; /* default delay */
}

@keyframes fadeUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ---------- CTA glow ---------- */
.cta.claim-btn {
  animation: pulseGlow 2s ease-in-out infinite;
}
@keyframes pulseGlow {
  0%   { box-shadow: 0 0 10px #ec4899; }
  50%  { box-shadow: 0 0 25px #6366f1; }
  100% { box-shadow: 0 0 10px #ec4899; }
}

.result {
  opacity: 0;
  transition: opacity 1s ease;
}
.result.show {
  opacity: 1;
}

.overlay-content {
  text-align: center;
}

.overlay-text {
  margin-top: 16px;
  font-size: 1.2rem;
  color: #e0e0ff;
  font-style: italic;
  animation: textPulse 2s ease-in-out infinite;
}

@keyframes textPulse {
  0%   { opacity: 0.6; }
  50%  { opacity: 1; }
  100% { opacity: 0.6; }
}

/* CTA болон сонголтын товчлуурууд дээр font-оо хүчээр тавина */
.cta,
.options button {
  font-family: 'Cormorant Unicase', serif !important;
}
.result-subtitle {
  font-size: 1.2rem;
  color: #e0e0ff;
  font-style: italic;
  margin-top: 8px;
  opacity: 0.9;
}
.pay-popup {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.85);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 3000;
}
.pay-popup.hidden { display: none; }
.pay-content {
  background: linear-gradient(135deg, #4c1d95, #6d28d9, #9333ea);
  padding: 32px;
  border-radius: 16px;
  display: flex;
  justify-content: center;   /* төвд байрлуулна */
  align-items: flex-start;   /* дээрээс зэрэгцүүлнэ */
  gap: 40px;
  max-width: 800px;
  width: 90%;
  color: #fff;
  position: relative; /* close-btn-д зориулсан */
}

.pay-left, .pay-right {
  flex: 1;
  max-width: 350px;
  text-align: center;       /* текстийг төвд байрлуулна */
  display: flex;
  flex-direction: column;
  align-items: center;      /* дотор элементүүдийг төвд */
  justify-content: center;
}


.price-box .price { font-size: 1.5rem; color: #ec4899; }
.price-box .old { text-decoration: line-through; color: #888; font-size: 0.9rem; }
.bonus { color: #facc15; margin: 8px 0; }
.qr-placeholder {
  background: #fff;
  border-radius: 8px;
  padding: 12px;
  display: flex;
  justify-content: center;
  align-items: center;
  height: auto; /* динамик */
}

.qr-img {
  max-width: 200px;
  width: 100%;
  height: auto;
}

.email-claim {
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: center;
  margin-top: 24px;
}

.email-input {
  padding: 12px 16px;
  border-radius: 8px;
  border: 1px solid rgba(255,255,255,0.2);
  background: rgba(255,255,255,0.1);
  color: #fff;
  font-size: 1rem;
  width: 100%;
  max-width: 320px;
}

.email-input::placeholder {
  color: #aaa;
}
.close-btn {
  position: absolute;
  top: 16px;
  right: 20px;
  font-size: 1.5rem;
  color: #fff;
  cursor: pointer;
  transition: opacity 0.2s;
}
.close-btn:hover { opacity: 0.7; }
.pay-content {
  background: linear-gradient(135deg, #4c1d95, #6d28d9, #9333ea);
  padding: 32px;
  border-radius: 16px;
  display: flex;
  gap: 40px;
  max-width: 800px;
  width: 90%;
  color: #fff;
  position: relative; /* close-btn байрлуулахад хэрэгтэй */
}

/* Mobile responsive */
@media (max-width: 768px) {
  .pay-content {
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    gap: 12px;
    padding: 16px;
    width: 90%;
    max-width: 400px;
    max-height: 80vh;         /* доор/дээр агаартай үлдээнэ */
    margin: 5vh auto;  /* дэлгэцээс хэтрэхгүй */
    overflow-y: auto;   /* доторх контентыг гүйлгэж болно */
    box-sizing: border-box;
  }

  .pay-left, .pay-right {
    max-width: 100%;
    width: 100%;
  }

  .qr-placeholder {
    width: 40%;
    height: auto;
    margin: 8px auto;
  }

  .qr-img {
    max-width: 140px;
    height: auto;
  }
}


/* Intro Epic Style (зассан хувилбар) */
.intro-text h1 {
  font-size: clamp(1.8rem, 4vw, 2.4rem); /* илүү цомхон */
  color: #facc15;
  text-shadow: 0 0 6px #ec4899, 0 0 12px #6366f1, 0 0 20px #312e81;
  margin-bottom: 1rem;
  text-align: center;
}

.intro-text p {
  font-size: clamp(1rem, 2.5vw, 1.1rem); /* хэт томруулахгүй */
  line-height: 1; /* мөр хооронд бага зэрэг шахаж өгсөн */
  color: #e0e0ff;
  text-align: center;
  white-space: pre-line;
  margin-bottom: 1rem; /* мөрүүдийн хооронд зохистой зай */
}

/* Mobile дээр */
@media (max-width: 768px) {
  .intro-text h1 {
    font-size: 1.6rem;
  }
  .intro-text p {
    font-size: 0.95rem;
    line-height: 1.4;
  }
}
/* Wizard зургаа desktop дээр томруулъя */
.wizard-img {
  max-width: 600px;  /* өмнө 250-300px байсан бол томруулж өг */
  width: 100%;
  height: auto;
}

/* CTA-г баруун талд төвд байрлуулах */
.intro-text {
  display: flex;
  flex-direction: column;
  align-items: center; /* CTA, text бүгд төвд */
  justify-content: center;
  text-align: center;
}

/* CTA товчийн хэмжээг desktop дээр зохистой байлгах */
.start-btn {
  font-size: 1.1rem;
  padding: 14px 32px;
  max-width: 280px; /* CTA-г хэт сунгахгүй */
  width: auto;
}

/* 📱 Mobile дээр CTA багасгах */
@media (max-width: 768px) {
  .wizard-img {
    max-width: 70%; /* дэлгэцэнд тааруулна */
    margin: 0 auto;
  }

  .start-btn {
    font-size: 1rem;       /* жижигрүүлнэ */
    padding: 12px 24px;    /* багасгана */
    max-width: 220px;      /* дэлгэцийн өргөнөөр сунгахгүй */
    width: 100%;           /* гэхдээ responsive хэвээр */
    margin-top: 16px;
  }
}
.question-card {
  background: radial-gradient(circle at top, #1e1b4b, #0d0d1a);
  border: 2px solid #facc15;
  border-radius: 12px;
  padding: 24px;
  color: #e0e0ff;
  box-shadow: 0 0 15px rgba(236,72,153,0.3), 0 0 30px rgba(99,102,241,0.3);
  max-width: 700px;
  margin: 0 auto;
  text-align: center;
}

.question-card h2 {
  font-family: 'Cormorant Unicase', serif;
  font-size: 1.4rem;
  margin-bottom: 1.5rem;
  color: #facc15;
  text-shadow: 0 0 6px #ec4899, 0 0 12px #6366f1;
}

.options button {
  background: linear-gradient(135deg, #6366f1, #ec4899);
  border: none;
  border-radius: 8px;
  padding: 12px 20px;
  margin: 8px;
  color: #fff;
  font-family: 'Cormorant Unicase', serif;
  font-size: 1rem;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s;
}

.options button:hover {
  transform: scale(1.05);
  box-shadow: 0 0 15px rgba(236,72,153,0.6), 0 0 25px rgba(99,102,241,0.6);
}
/* Wizard Tooltip */
.wizard-tooltip {
  background: rgba(0, 0, 0, 0.6);
  border: 1px solid #facc15;        /* алтлаг шар хүрээ */
  border-radius: 8px;
  padding: 10px 14px;
  color: #e0e0ff;
  font-size: 0.95rem;
  font-style: italic;
  margin: 12px 0;
  max-width: 600px;
  text-align: center;
  box-shadow: 0 0 10px rgba(236, 72, 153, 0.4);
}

/* Epic Progress Bar */
#progress-text {
  text-align: center;
  margin-bottom: 20px;
  font-style: italic;
  color: #facc15;
}

/* Tablet дээр column болгох */
@media (max-width: 1024px) {
  .intro .container {
    flex-direction: column;
    text-align: center;
    gap: 24px;
  }

  .wizard-img {
    max-width: 45%;
    margin: 0 auto;
  }

  .intro-text {
    text-align: center;
    align-items: center;
  }
}
/* Wizard header (зураг + progress + comment) */
.wizard-header {
  display: flex;
  align-items: flex-start;
  gap: 20px;
  margin-bottom: 20px;
}

.wizard-small {
  width: 80px;
  height: auto;
  flex-shrink: 0;
}

.wizard-info {
  flex: 1;
}

#progress-text {
  font-weight: bold;
  color: #facc15; /* алтлаг шар */
  margin-bottom: 6px;
  text-align: left;
}

.wizard-comment {
  font-size: 0.95rem;
  font-style: italic;
  color: #bbb; /* discreet байлгахын тулд бүдэг */
  opacity: 0.8;
  line-height: 1.4;
}
.wizard-section {
  display: flex;
  flex-direction: column;
  align-items: center;   /* бүх child-ийг голлуулна */
  width: 100%;
}

.wizard-header {
  display: flex;
  align-items: flex-start;
  gap: 20px;
  margin-bottom: 20px;
  width: 100%;
  max-width: 700px;   /* question card-тай адил өргөн */
}

.question-card {
  width: 100%;
  max-width: 700px;
  margin: 0 auto 24px;
}
/* Mobile дээр wizard header-ийг row болгоно */
@media (max-width: 768px) {
  .wizard-header {
    flex-direction: row;
    align-items: flex-start;
    justify-content: center;
    gap: 12px;
    width: 100%;
  }

  .wizard-small {
    width: 60px;  /* mobile-д арай жижиг */
  }

  .wizard-info {
    flex: 1;
    text-align: left;  /* progress + comment баруун талд left-align */
  }

  #progress-text {
    font-size: 0.95rem;
    margin-bottom: 4px;
  }

  .wizard-comment {
    font-size: 0.95rem;
    color: #aaa; /* discreet */
    line-height: 1.3;
  }
}
@media (max-width: 768px) {
  .wizard-header {
    display: grid;
    grid-template-columns: auto 1fr; /* зүүн талд зураг, баруун талд текст */
    align-items: center;
    gap: 10px;
    width: 100%;
  }

  .wizard-small {
    width: 60px;
  }

  .wizard-info {
    display: flex;
    flex-direction: column; /* progress дээр, comment доор */
    align-items: flex-start; /* бүгдийг зүүн талд барина */
    text-align: left;
  }

  #progress-text {
    font-size: 0.95rem;
    font-weight: bold;
    color: #facc15;
    margin-bottom: 4px;
  }

  .wizard-comment {
    font-size: 0.95rem;
    color: #aaa;
    opacity: 0.85;
  }
}
/* Question card layout */
.question-card {
  background: radial-gradient(circle at top, #1e1b4b, #0d0d1a);
  border: 2px solid #facc15;
  border-radius: 12px;
  padding: 50px;             /* бүх талаасаа ижилхэн */
  color: #e0e0ff;
  box-shadow: 0 0 15px rgba(236,72,153,0.3), 0 0 30px rgba(99,102,241,0.3);
  max-width: 700px;
  margin: 0 auto 24px;        /* төвд + доор зайтай */
  text-align: center;
  box-sizing: border-box;     /* padding + border өргөнд орно */
}

/* Button-ууд mobile дээр багтахаар */
.options button {
  width: 100%;                /* бүхэлдээ картын өргөнд таарна */
  max-width: 100%;            /* илүү гарахгүй */
  box-sizing: border-box;
  padding: 14px 16px;          /* доторх padding тэнцүү */
  margin: 0;                   /* илүү зай гаргахгүй */
}

/* Mobile override */
@media (max-width: 768px) {
  .question-card {
    padding: 30px;            /* mobile дээр арай багасгана */
    margin: 0 0 20px 0;       /* доош тэнцүү зай */
  }
}
.question-card {
  background: radial-gradient(circle at top, #1e1b4b, #0d0d1a);
  border: 2px solid #facc15;
  border-radius: 12px;
  padding: 30px;              /* бүх талд ижил padding */
  color: #e0e0ff;
  box-shadow: 0 0 15px rgba(236,72,153,0.3), 0 0 30px rgba(99,102,241,0.3);
  max-width: 700px;
  margin: 0 auto 24px;
  text-align: left;           /* текстийг картын хүрээнд тааруулж эхлүүлнэ */
  box-sizing: border-box;     /* padding өргөнд орно */
}

.question-card p {
  margin: 0 0 20px 0;         /* зөвхөн доогуураа зайтай */
  font-size: 1.1rem;
  text-align: center;
}

.options {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin: 0;                  /* картын padding-тэй жигд */
}
.options button {
  width: 100%;
  max-width: 100%;
  padding: 14px 18px;
  box-sizing: border-box;
}
.site-logo {
  text-align: center;
  margin: 24px auto 12px;
  opacity: 0.6;         /* илүү discreet */
}

.site-logo img {
  max-width: 120px;     /* өмнө нь 180px → багасгасан */
  filter: drop-shadow(0 0 4px #6366f1) drop-shadow(0 0 6px #ec4899);
  animation: logoGlow 5s ease-in-out infinite;
}

.site-subtitle {
  font-size: 0.75rem;   /* жижиг бичиг */
  font-style: italic;
  color: #e0e0ff;
  opacity: 0.6;
  margin-top: 4px;
  text-shadow: 0 0 3px #6366f1, 0 0 5px #ec4899;
}

/* Magical glowing animation */
@keyframes logoGlow {
  0%   { filter: drop-shadow(0 0 6px #6366f1); }
  50%  { filter: drop-shadow(0 0 14px #ec4899); }
  100% { filter: drop-shadow(0 0 6px #6366f1); }
}
/* Body-г босоо flexbox болгоно */
body {
  display: flex;
  flex-direction: column; /* дэлгэцийн өндрийг дүүргэнэ */
  margin: 0;
}

/* Main хэсэг үлдсэн зайг авч, голд байрлуулна */
main {
  flex: 1;  
  display: flex;
  flex-direction: column;
  justify-content: center; /* босоогоор голд */
  align-items: center;     /* хөндлөнгөөс голд */
}

/* Footer автоматаар доош түлхэгдэнэ */
footer {
  margin-top: auto;
  text-align: center;
  padding: 20px;
}
main {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: flex-start; /* center биш, дээрээс эхэлнэ */
}

/* Section бүр дор хаяж дэлгэцийн өндөртэй */
section {/* footer-ийн өндрийг хасч тооцно */
  display: flex;
  flex-direction: column;
  justify-content: center;  /* дотор контентыг голлуулна */
  align-items: center;
  padding: 20px 20px;
  height: 100%;
}

/* 📱 Mobile дээр intro-г дээрээс эхлүүлнэ */
@media (max-width: 768px) {
  .intro {
    min-height: auto;          /* өндөр сунгахгүй */
    justify-content: flex-start; /* дээрээс эхэлнэ */
    padding: 60px 20px 40px;   /* дээр жаахан зай үлдээнэ */
  }
}
/* Mobile override */
@media (max-width: 768px) {
  section {
    min-height: auto;             /* өндөр сунгахгүй */
    justify-content: flex-start;  /* дээрээс эхлүүлнэ */
    align-items: center;
    padding: 20px;
  }

  .intro {
    padding-top: 40px;  /* дээрээс зай үлдээнэ */
  }

  .test {
    padding-top: 20px;  /* асуулт шууд дээрээс эхэлнэ */
  }
}
@media (max-width: 768px) {
  .intro, 
  .test {
    padding-bottom: 0;   /* доор илүү зай авахгүй */
  }

  .site-footer {
    margin-top: 10px;    /* auto биш, card/CTA-аас ойрхон */
  }
}

main {
  flex: 1; /* footer-ээс дээрх бүх зайг main авна */
  display: flex;
  flex-direction: column;
  justify-content: center; /* бүх section-үүдийг голлуулна */
  align-items: center;
}

#wizardConfirmPopup .modal-content {
  width: 90%;
  max-width: 400px;
  margin: 0 auto;
  text-align: center;
  border-radius: 16px;
  padding: 24px;
  background: linear-gradient(135deg, #4c1d95, #6d28d9, #9333ea);
  color: #f3e8ff;
  box-shadow: 0 0 20px rgba(147, 51, 234, 0.5);
}

#wizardConfirmPopup h3 { color: #fff; margin-bottom: 10px; }
#wizardConfirmPopup p { color: #e9d5ff; font-size: 0.95rem; }

#wizardConfirmPopup .modal-actions {
  display: flex;
  justify-content: space-between;
  margin-top: 20px;
}

#wizardConfirmPopup .btn-primary,
#wizardConfirmPopup .btn-secondary {
  padding: 10px 16px;
  border-radius: 9999px;
  cursor: pointer;
}

#wizardConfirmPopup .btn-primary {
  background: linear-gradient(90deg, #7c3aed, #a855f7);
  color: #fff;
  border: none;
}

#wizardConfirmPopup .btn-secondary {
  background: rgba(255,255,255,0.15);
  border: 1px solid rgba(255,255,255,0.3);
  color: #e9d5ff;
}
.modal {
  display: none;
  position: fixed;
  inset: 0;
  justify-content: center;
  align-items: center;
  background: rgba(0,0,0,0.6);
  z-index: 1000;
}
.modal.show { display: flex; }   /* show үед гарна */

/* Solo төлөв: зөвхөн loading ИЛТЭЙ эсвэл success ИЛТЭЙ байлгах */
.pay-content.solo { 
  flex-direction: column; 
  align-items: center; 
  gap: 16px; 
}

/* Төлөв тус бүр */
.pay-content.solo.state-loading #loading-block { display: block !important; }
.pay-content.solo.state-loading #success-block { display: none !important; }

.pay-content.solo.state-success #loading-block { display: none !important; }
.pay-content.solo.state-success #success-block { display: block !important; }

/* Spinner */
.spinner {
  width: 32px; height: 32px;
  border: 3px solid rgba(0,0,0,0.15);
  border-top-color: var(--accent1, #6366f1);
  border-radius: 50%;
  margin: 0 auto 8px;
  animation: spin 1s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* Checkmark animation */
.checkmark { width: 42px; height: 42px; margin: 0 auto 8px; }
.checkmark path{
  stroke: #16a34a; stroke-width: 4; fill: none;
  stroke-linecap: round; stroke-linejoin: round;
  stroke-dasharray: 48; stroke-dashoffset: 48;
  animation: dash .6s ease forwards;
}
@keyframes dash { to { stroke-dashoffset: 0; } }

