/* ==========================================================================
   NEXVIA COMPREHENSIVE COMPATIBILITY & FLIRT QUIZ STYLES
   ========================================================================== */

.blk-quiz-wrap {
  background: radial-gradient(circle at top, #1e1b4b 0%, #0f172a 45%, #0b0d12 100%) !important;
  color: #f8fafc;
  padding: max(24px, env(safe-area-inset-top)) max(16px, env(safe-area-inset-right)) max(32px, env(safe-area-inset-bottom)) max(16px, env(safe-area-inset-left)) !important;
  min-height: 100vh;
  width: 100%;
  max-width: 100vw;
  box-sizing: border-box;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
}

.quiz-master-container {
  width: 100%;
  max-width: min(680px, 100%);
  margin: 0 auto;
  box-sizing: border-box;
}

/* Glassmorphism Cards */
.quiz-glass-card {
  background: rgba(18, 24, 38, 0.85);
  border: 1.5px solid rgba(212, 175, 55, 0.25);
  border-radius: 28px;
  padding: 36px 28px;
  box-shadow: 0 30px 60px -15px rgba(0, 0, 0, 0.7), 0 0 35px rgba(212, 175, 55, 0.08);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  animation: qCardFade 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

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

/* Intro Hero */
.quiz-hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(212, 175, 55, 0.12);
  border: 1px solid rgba(212, 175, 55, 0.4);
  color: #d4af37;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 1.5px;
  padding: 6px 16px;
  border-radius: 50px;
  margin-bottom: 14px;
}

.quiz-hero-title {
  font-size: clamp(1.6rem, 4vw, 2.1rem);
  font-weight: 800;
  color: #ffffff;
  margin: 0 0 10px;
  line-height: 1.3;
}

.quiz-hero-desc {
  font-size: 0.96rem;
  color: #94a3b8;
  margin: 0 auto 24px;
  line-height: 1.6;
  max-width: 520px;
}

.quiz-features-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
  margin-bottom: 28px;
}

.feat-pill {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 6px 12px;
  border-radius: 12px;
  font-size: 0.8rem;
  font-weight: 600;
  color: #cbd5e1;
  display: flex;
  align-items: center;
  gap: 6px;
}

.feat-pill i {
  color: #ff0a54;
}

.quiz-styled-input {
  width: 100%;
  background: rgba(15, 23, 42, 0.7);
  border: 1.5px solid #334155;
  border-radius: 14px;
  padding: 14px 18px;
  font-size: 1rem;
  color: #fff;
  outline: none;
  transition: all 0.2s;
  box-sizing: border-box;
}

.quiz-styled-input:focus {
  border-color: #d4af37;
  box-shadow: 0 0 15px rgba(212, 175, 55, 0.25);
}

.btn-quiz-primary {
  width: 100%;
  background: linear-gradient(135deg, #d4af37 0%, #b48a1d 100%);
  color: #0b0d12;
  border: none;
  padding: 16px 24px;
  border-radius: 16px;
  font-size: 1.05rem;
  font-weight: 800;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  transition: all 0.2s;
  box-shadow: 0 10px 25px rgba(212, 175, 55, 0.3);
}

.btn-quiz-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 15px 30px rgba(212, 175, 55, 0.4);
}

/* Play Screen */
.quiz-header-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 14px;
}

.q-player-tag {
  background: rgba(255, 10, 84, 0.15);
  border: 1px solid rgba(255, 10, 84, 0.35);
  color: #ff477e;
  padding: 5px 12px;
  border-radius: 20px;
  font-size: 0.82rem;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.q-step-counter {
  font-size: 0.85rem;
  font-weight: 800;
  color: #d4af37;
}

.quiz-progress-track {
  width: 100%;
  height: 8px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  overflow: hidden;
  margin-bottom: 24px;
}

.quiz-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, #ff0a54, #d4af37);
  border-radius: 10px;
  transition: width 0.35s ease;
}

.q-category-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(212, 175, 55, 0.1);
  border: 1px solid rgba(212, 175, 55, 0.3);
  color: #d4af37;
  font-size: 0.76rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1px;
  padding: 4px 12px;
  border-radius: 20px;
  margin-bottom: 12px;
}

.q-step-title {
  font-size: clamp(1.2rem, 3vw, 1.45rem);
  font-weight: 800;
  color: #ffffff;
  margin: 0 0 20px;
  line-height: 1.4;
  text-align: left;
}

.q-options-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.q-opt-btn {
  background: rgba(255, 255, 255, 0.04);
  border: 1.5px solid rgba(255, 255, 255, 0.1);
  border-radius: 18px;
  padding: 15px 18px;
  display: flex;
  align-items: center;
  gap: 14px;
  cursor: pointer;
  text-align: left;
  color: #fff;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  width: 100%;
}

.q-opt-btn:hover {
  background: rgba(212, 175, 55, 0.1);
  border-color: rgba(212, 175, 55, 0.5);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

.q-opt-btn.selected {
  background: rgba(212, 175, 55, 0.2) !important;
  border-color: #d4af37 !important;
  box-shadow: 0 0 20px rgba(212, 175, 55, 0.3);
}

.q-opt-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.06);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  color: #d4af37;
  flex-shrink: 0;
}

.q-opt-text {
  flex: 1;
}

.q-opt-text strong {
  display: block;
  font-size: 0.98rem;
  font-weight: 700;
  color: #f8fafc;
}

.q-opt-text small {
  display: block;
  font-size: 0.8rem;
  color: #94a3b8;
  margin-top: 3px;
  line-height: 1.35;
}

.q-opt-check {
  color: #64748b;
  font-size: 0.9rem;
  transition: transform 0.2s;
}

.q-opt-btn:hover .q-opt-check {
  color: #d4af37;
  transform: translateX(4px);
}

.btn-quiz-back {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #cbd5e1;
  padding: 8px 16px;
  border-radius: 12px;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all 0.2s;
}

.btn-quiz-back:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
}

/* Share / Invite Card */
.quiz-celebrate-icon {
  width: 70px;
  height: 70px;
  border-radius: 22px;
  background: linear-gradient(135deg, rgba(212, 175, 55, 0.2), rgba(255, 10, 84, 0.2));
  border: 1.5px solid #d4af37;
  color: #d4af37;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  margin: 0 auto 16px;
}

.quiz-card-title {
  font-size: 1.5rem;
  font-weight: 800;
  color: #fff;
  margin: 0 0 8px;
}

.quiz-card-desc {
  font-size: 0.94rem;
  color: #94a3b8;
  line-height: 1.6;
  margin: 0 auto 24px;
}

.quiz-link-box {
  display: flex;
  gap: 8px;
  background: rgba(15, 23, 42, 0.8);
  border: 1.5px solid #334155;
  border-radius: 16px;
  padding: 6px 8px;
  margin-bottom: 16px;
}

.quiz-link-input {
  flex: 1;
  background: transparent;
  border: none;
  color: #cbd5e1;
  font-size: 0.88rem;
  padding: 8px 10px;
  outline: none;
}

.btn-copy-link {
  background: #334155;
  color: #fff;
  border: none;
  padding: 8px 18px;
  border-radius: 10px;
  font-size: 0.85rem;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: background 0.2s;
}

.btn-copy-link:hover {
  background: #475569;
}

.btn-whatsapp-share {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: #25d366;
  color: #fff;
  text-decoration: none;
  font-weight: 700;
  font-size: 1rem;
  padding: 14px 20px;
  border-radius: 14px;
  transition: all 0.2s;
  box-shadow: 0 8px 20px rgba(37, 211, 102, 0.3);
  margin-bottom: 20px;
}

.btn-whatsapp-share:hover {
  background: #20ba5a;
  transform: translateY(-2px);
}

.quiz-waiting-pulse {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-size: 0.82rem;
  color: #94a3b8;
  padding: 12px;
  background: rgba(255, 255, 255, 0.03);
  border-radius: 12px;
}

/* Spinner */
.quiz-quantum-spinner {
  width: 60px;
  height: 60px;
  border: 4px solid rgba(212, 175, 55, 0.15);
  border-top-color: #d4af37;
  border-radius: 50%;
  margin: 0 auto;
  animation: qSpin 0.9s linear infinite;
}

@keyframes qSpin {
  to { transform: rotate(360deg); }
}

/* Results Hero & Dashboard */
.result-score-hero {
  text-align: center;
  margin-bottom: 32px;
}

.score-radial-glow {
  width: 140px;
  height: 140px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(212, 175, 55, 0.25) 0%, rgba(255, 10, 84, 0.1) 70%);
  border: 2.5px solid #d4af37;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
  box-shadow: 0 0 35px rgba(212, 175, 55, 0.35);
}

.score-circle-inner {
  text-align: center;
}

.score-big-num {
  display: block;
  font-size: 2.5rem;
  font-weight: 900;
  color: #fff;
  line-height: 1;
  font-family: 'Plus Jakarta Sans', sans-serif;
}

.score-tag {
  display: block;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 1.5px;
  color: #d4af37;
  margin-top: 4px;
}

.result-couple-names {
  font-size: 1.6rem;
  font-weight: 800;
  color: #fff;
  margin: 0 0 8px;
}

.result-verdict-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(212, 175, 55, 0.15);
  border: 1px solid #d4af37;
  color: #facc15;
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 1px;
  padding: 6px 18px;
  border-radius: 30px;
}

/* Result Sections */
.result-section-box {
  background: rgba(15, 23, 42, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 20px;
  padding: 20px;
  margin-bottom: 20px;
  text-align: left;
}

.res-sec-title {
  font-size: 1.05rem;
  font-weight: 800;
  color: #f8fafc;
  margin: 0 0 16px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.categories-metric-grid {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.cat-metric-card {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.cat-metric-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.88rem;
}

.cat-metric-name {
  color: #cbd5e1;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 8px;
}

.cat-metric-name i {
  color: #d4af37;
}

.cat-metric-pct {
  color: #facc15;
  font-weight: 800;
}

.cat-metric-track {
  width: 100%;
  height: 7px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  overflow: hidden;
}

.cat-metric-fill {
  height: 100%;
  background: linear-gradient(90deg, #ff0a54, #d4af37);
  border-radius: 8px;
  transition: width 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Super Powers & Complementary Lists */
.powers-list, .complementary-list, .tolerance-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.power-item, .comp-item, .tolerance-item {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  background: rgba(255, 255, 255, 0.03);
  border-radius: 14px;
  padding: 12px 14px;
  border-left: 3.5px solid #4ade80;
}

.comp-item {
  border-left-color: #38bdf8;
}

.tolerance-item {
  border-left-color: #fbbf24;
}

.power-icon, .comp-icon, .tolerance-icon {
  font-size: 1.1rem;
  margin-top: 2px;
  color: #4ade80;
}

.comp-icon { color: #38bdf8; }
.tolerance-icon { color: #fbbf24; }

.power-info strong, .comp-info strong, .tolerance-info strong {
  display: block;
  font-size: 0.92rem;
  font-weight: 700;
  color: #fff;
}

.power-info p, .comp-info p, .tolerance-info p {
  font-size: 0.82rem;
  color: #94a3b8;
  margin: 3px 0 0;
  line-height: 1.4;
}

/* ==========================================================================
   OFFICIAL GOLD COUPLE COMPATIBILITY CERTIFICATE (INSTAGRAM STORY SIZE)
   ========================================================================== */
.cert-render-wrapper {
  margin: 32px 0 20px;
}

.cert-gold-frame {
  background: linear-gradient(145deg, #12151e 0%, #0b0d12 100%);
  border: 3px solid #d4af37;
  border-radius: 24px;
  padding: 36px 28px;
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.8), inset 0 0 25px rgba(212, 175, 55, 0.15);
  position: relative;
  text-align: center;
}

.cert-header-decor {
  margin-bottom: 20px;
}

.cert-seal {
  font-size: 2.2rem;
  color: #d4af37;
  margin-bottom: 8px;
}

.cert-title-main {
  font-size: 1.1rem;
  font-weight: 900;
  letter-spacing: 2px;
  color: #d4af37;
  font-family: 'Playfair Display', serif, Georgia;
}

.cert-serial-no {
  font-size: 0.72rem;
  color: #64748b;
  letter-spacing: 1px;
  margin-top: 4px;
}

.cert-couple-box {
  margin: 18px 0;
}

.cert-names-text {
  font-family: 'Playfair Display', serif, Georgia;
  font-size: clamp(1.8rem, 4.5vw, 2.4rem);
  font-weight: 700;
  color: #fff;
  margin: 0 0 8px;
}

.cert-score-pill {
  display: inline-block;
  background: linear-gradient(135deg, #d4af37, #b48a1d);
  color: #0b0d12;
  font-size: 0.82rem;
  font-weight: 900;
  letter-spacing: 1px;
  padding: 4px 16px;
  border-radius: 20px;
}

.cert-legal-text {
  font-size: 0.86rem;
  color: #cbd5e1;
  line-height: 1.6;
  max-width: 500px;
  margin: 0 auto 24px;
}

.cert-badges-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(212, 175, 55, 0.2);
  border-radius: 16px;
  padding: 12px 8px;
  margin-bottom: 28px;
}

.c-badge-item span {
  display: block;
  font-size: 0.65rem;
  font-weight: 700;
  color: #94a3b8;
  letter-spacing: 0.5px;
}

.c-badge-item strong {
  display: block;
  font-size: 1.1rem;
  color: #d4af37;
  font-weight: 900;
  margin-top: 2px;
}

.cert-footer-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.cert-sign-col {
  text-align: center;
  min-width: 100px;
}

.sign-line {
  display: block;
  width: 80px;
  height: 1px;
  background: #d4af37;
  margin: 0 auto 6px;
}

.cert-sign-col strong {
  display: block;
  font-size: 0.95rem;
  color: #fff;
  font-family: 'Playfair Display', serif;
}

.cert-sign-col small {
  display: block;
  font-size: 0.68rem;
  color: #64748b;
}

.cert-stamp-badge {
  background: rgba(255, 10, 84, 0.15);
  border: 1.5px dashed #ff0a54;
  color: #ff477e;
  padding: 6px 14px;
  border-radius: 12px;
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 1px;
  display: flex;
  align-items: center;
  gap: 6px;
  transform: rotate(-3deg);
}

/* Actions */
.cert-download-actions {
  display: flex;
  gap: 12px;
}

.btn-cert-download {
  flex: 1;
  background: linear-gradient(135deg, #d4af37, #b48a1d);
  color: #0b0d12;
  border: none;
  padding: 14px;
  border-radius: 14px;
  font-size: 0.95rem;
  font-weight: 800;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: all 0.2s;
}

.btn-cert-download:hover {
  box-shadow: 0 8px 20px rgba(212, 175, 55, 0.35);
  transform: translateY(-2px);
}

.btn-cert-share {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #fff;
  padding: 14px 20px;
  border-radius: 14px;
  font-size: 0.92rem;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: all 0.2s;
}

.btn-cert-share:hover {
  background: rgba(255, 255, 255, 0.15);
}

@media (max-width: 640px) {
  .quiz-glass-card {
    padding: 22px 16px;
    border-radius: 20px;
    width: 100%;
    box-sizing: border-box;
  }
  .q-opt-btn {
    padding: 13px 14px;
    min-height: 52px;
    border-radius: 14px;
    gap: 12px;
    width: 100%;
    box-sizing: border-box;
  }
  .q-opt-icon {
    width: 40px;
    height: 40px;
    font-size: 1.15rem;
  }
  .q-opt-text strong {
    font-size: 0.92rem;
  }
  .q-opt-text small {
    font-size: 0.78rem;
  }
  .cert-gold-frame {
    padding: 22px 14px;
    border-radius: 18px;
    width: 100%;
    box-sizing: border-box;
  }
  .cert-badges-row {
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
    padding: 10px 6px;
  }
  .cert-sign-col {
    min-width: auto;
  }
  .cert-download-actions {
    flex-direction: column;
    width: 100%;
  }
  .btn-quiz-primary, .btn-cert-download, .btn-cert-share {
    min-height: 48px;
    width: 100%;
    justify-content: center;
    box-sizing: border-box;
  }
}

@media (max-width: 380px) {
  .quiz-glass-card {
    padding: 18px 12px;
  }
  .cert-gold-frame {
    padding: 18px 10px;
  }
}
