/* ═══════════════════════════ BUTTONS ═══════════════════════════ */

.btn-primary {
  display: block;
  width: 100%;
  max-width: 360px;
  margin: 0 auto;
  background: var(--brand-gradient);
  color: #fff;
  font-family: 'Quicksand', 'Be Vietnam Pro', sans-serif;
  font-size: var(--text-lg);
  font-weight: 700;
  padding: 18px 32px;
  border: none;
  border-radius: var(--radius-full);
  cursor: pointer;
  min-height: 52px;
  box-shadow: var(--shadow-3);
  transition: transform .18s var(--ease-out-3), box-shadow .18s;
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: var(--shadow-4); }
.btn-primary:active { transform: translateY(0) scale(0.97); }

.back-btn {
  background: var(--bg-card);
  border: 2px solid var(--border-default);
  border-radius: var(--radius-full);
  color: var(--text-primary);
  font-family: 'Be Vietnam Pro', sans-serif;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  padding: 10px 22px;
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 8px;
  transition: all .2s var(--ease-out-3);
}
.back-btn:hover:not(:disabled) { border-color: var(--brand-purple); color: var(--brand-purple); }
.back-btn:disabled { opacity: 0.3; cursor: default; }

.home-btn {
  font-family: 'Be Vietnam Pro', sans-serif;
  font-size: 14px;
  font-weight: 700;
  color: var(--text-primary) !important;
  text-decoration: none !important;
  padding: 10px 20px;
  border-radius: var(--radius-full);
  background: var(--bg-card);
  border: 2px solid var(--border-default);
  transition: all .2s var(--ease-out-3);
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.home-btn:hover { border-color: var(--brand-purple); color: var(--brand-purple) !important; }

.retry-btn {
  background: var(--bg-card);
  border: 2px solid var(--border-default);
  border-radius: var(--radius-full);
  color: var(--text-primary);
  font-family: 'Be Vietnam Pro', sans-serif;
  font-size: var(--text-base);
  font-weight: 700;
  cursor: pointer;
  padding: 12px 28px;
  transition: all .2s var(--ease-out-3);
}
.retry-btn:hover { border-color: var(--brand-purple); color: var(--brand-purple); }

.home-result-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: linear-gradient(135deg, var(--brand-purple), var(--brand-pink));
  color: #fff;
  text-decoration: none;
  font-family: 'Be Vietnam Pro', sans-serif;
  font-size: var(--text-base);
  font-weight: 700;
  padding: 12px 28px;
  border-radius: var(--radius-full);
  transition: opacity .2s;
}
.home-result-btn:hover { opacity: 0.88; }

/* ═══════════════════════════ QUIZ NAV ═══════════════════════════ */

.quiz-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 8px;
}

/* ═══════════════════════════ PROGRESS BAR ═══════════════════════════ */

.progress-wrap { margin: 24px 0 20px; }
.progress-text {
  display: flex;
  justify-content: space-between;
  font-size: var(--text-sm);
  font-weight: 700;
  color: var(--text-secondary);
  margin-bottom: 8px;
}
.progress-bar {
  background: var(--brand-pink-light);
  border-radius: var(--radius-full);
  height: 10px;
  overflow: hidden;
}
.progress-fill {
  background: var(--brand-gradient);
  height: 100%;
  border-radius: var(--radius-full);
  transition: width .5s var(--ease-out-5);
}

/* ═══════════════════════════ QUESTION CARD ═══════════════════════════ */

.question-card {
  background: var(--bg-card);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-md);
  padding: 28px 24px;
  box-shadow: var(--shadow-2);
  margin-bottom: 20px;
  overflow: hidden;
}
.q-img {
  width: calc(100% + 48px);
  margin: -28px -24px 20px;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  border-radius: var(--radius-md) var(--radius-md) 0 0;
  display: block;
}
.q-number {
  font-size: var(--text-sm);
  font-weight: 700;
  color: var(--brand-pink);
  margin-bottom: 10px;
  letter-spacing: .5px;
}
.q-text {
  font-family: 'Quicksand', 'Be Vietnam Pro', sans-serif;
  font-size: clamp(17px, 3.5vw, 20px);
  font-weight: 700;
  line-height: 1.45;
  color: var(--text-primary);
}
.q-icon { font-size: 32px; margin-bottom: 12px; display: block; }

/* ═══════════════════════════ OPTIONS ═══════════════════════════ */

.options-grid {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 20px;
}
.option-btn {
  background: var(--bg-card);
  border: 2px solid #e9d5ff;
  border-radius: var(--radius-md);
  padding: 16px 20px;
  min-height: 56px;
  text-align: left;
  font-family: 'Be Vietnam Pro', sans-serif;
  font-size: var(--text-base);
  font-weight: 700;
  color: var(--text-primary);
  cursor: pointer;
  transition: all .2s var(--ease-out-3);
  display: flex;
  align-items: center;
  gap: 12px;
}
.option-btn:hover {
  border-color: var(--brand-purple);
  background: var(--brand-purple-light);
  transform: translateX(4px);
}
.option-btn.selected {
  border-color: var(--brand-pink);
  background: var(--brand-pink-light);
  color: var(--brand-pink);
  box-shadow: 0 0 0 3px rgba(255,107,157,.15);
  transform: scale(1.01);
}
.option-btn:active { transform: scale(0.97); }

.option-letter {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--brand-purple-light);
  color: var(--brand-purple);
  font-size: var(--text-sm);
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: all .2s;
}
.option-btn.selected .option-letter {
  background: var(--brand-pink);
  color: #fff;
}

/* ═══════════════════════════ CARDS ═══════════════════════════ */

.info-card {
  background: var(--bg-card);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-md);
  padding: 22px;
  box-shadow: var(--shadow-2);
  margin-bottom: 16px;
}
.info-card h3 {
  font-size: var(--text-base);
  font-weight: 800;
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.info-card ul { list-style: none; }
.info-card li {
  font-size: 14px;
  color: var(--text-secondary);
  padding: 6px 0;
  border-bottom: 1px solid #f1f5f9;
  display: flex;
  gap: 8px;
  line-height: 1.5;
}
.info-card li:last-child { border-bottom: none; }

/* ═══════════════════════════ SCORE SECTION ═══════════════════════════ */

.score-section {
  background: var(--bg-card);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-md);
  padding: 24px;
  box-shadow: var(--shadow-2);
  margin-bottom: 20px;
}
.score-section h3 {
  font-size: var(--text-md);
  font-weight: 800;
  margin-bottom: 18px;
  color: var(--text-primary);
}
.score-item { margin-bottom: 14px; }
.score-label {
  display: flex;
  justify-content: space-between;
  font-size: var(--text-sm);
  font-weight: 700;
  margin-bottom: 6px;
}
.score-track {
  background: #f1f5f9;
  border-radius: var(--radius-full);
  height: 10px;
  overflow: hidden;
}
.score-fill {
  height: 100%;
  border-radius: var(--radius-full);
  transition: width 1.2s var(--ease-out-5);
}

/* ═══════════════════════════ PIGMENT NOTE ═══════════════════════════ */

.pigment-note {
  background: #fffbeb;
  border: 1px solid var(--border-default);
  border-top: 4px solid #f59e0b;
  border-radius: var(--radius-md);
  padding: 20px 22px;
  margin: 0 0 16px;
  box-shadow: var(--shadow-2);
}
.pigment-note h3 { font-size: var(--text-base); font-weight: 800; color: #92400e; margin-bottom: 8px; }
.pigment-note p { font-size: 14px; color: #78350f; line-height: 1.6; margin-bottom: 10px; }
.pigment-note ul { list-style: none; padding: 0; margin: 0; }
.pigment-note li { font-size: var(--text-sm); color: #92400e; padding: 4px 0; border-bottom: 1px solid #fde68a; line-height: 1.5; }
.pigment-note li:last-child { border-bottom: none; }

/* ═══════════════════════════ ROUTINE SECTION ═══════════════════════════ */

.routine-section {
  background: var(--bg-card);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-md);
  padding: 22px;
  margin: 16px 0;
  box-shadow: var(--shadow-2);
  border-top: 4px solid #10b981;
}
.routine-section h3 { font-size: var(--text-md); font-weight: 800; margin-bottom: 4px; color: var(--text-primary); }
.routine-subtitle { font-size: var(--text-sm); color: var(--text-secondary); margin-bottom: 16px; }
.routine-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.routine-col { background: var(--bg-card); border-radius: var(--radius-sm); padding: 14px; }
.routine-time { font-size: var(--text-sm); font-weight: 800; margin-bottom: 10px; color: var(--text-primary); }
.routine-col ol { padding-left: 18px; margin: 0; }
.routine-col ol li { font-size: var(--text-xs); color: #374151; margin-bottom: 6px; line-height: 1.5; }

/* ═══════════════════════════ PRODUCT CARDS ═══════════════════════════ */

.products-section {
  background: var(--bg-card);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-md);
  padding: 22px;
  box-shadow: var(--shadow-2);
  margin-bottom: 20px;
}
.products-section h3 { font-size: var(--text-md); font-weight: 800; margin-bottom: 16px; color: var(--text-primary); }

.product-card {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px;
  border: 2px solid var(--brand-pink-light);
  border-radius: 14px;
  margin-bottom: 12px;
  text-decoration: none;
  color: var(--text-primary);
  transition: all .2s var(--ease-out-3);
}
.product-card:hover {
  border-color: var(--brand-pink);
  background: var(--brand-pink-light);
  transform: translateY(-2px);
  box-shadow: var(--shadow-3);
}
.product-img {
  width: 64px; height: 64px;
  border-radius: var(--radius-sm);
  background: var(--brand-purple-light);
  display: flex; align-items: center; justify-content: center;
  font-size: 28px; flex-shrink: 0;
}
.product-info { flex: 1; }
.product-name { font-size: 14px; font-weight: 800; margin-bottom: 4px; }
.product-desc { font-size: var(--text-xs); color: var(--text-secondary); line-height: 1.4; }
.product-price { font-size: var(--text-base); font-weight: 800; color: var(--brand-pink); white-space: nowrap; }
.product-arrow { font-size: var(--text-lg); color: var(--brand-pink); }

/* ═══════════════════════════ BLOG RECS ═══════════════════════════ */

.blog-recs-section {
  background: var(--bg-card);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-md);
  padding: 22px;
  margin: 16px 0;
  box-shadow: var(--shadow-2);
  border-top: 4px solid var(--brand-purple);
}
.blog-recs-section h3 { font-size: var(--text-md); font-weight: 800; color: var(--text-primary); margin-bottom: 4px; }
.blog-recs-sub { font-size: var(--text-sm); color: var(--text-secondary); margin-bottom: 16px; }
.blog-recs-grid { display: grid; grid-template-columns: 1fr; gap: 12px; }
.blog-rec-card {
  display: block;
  background: linear-gradient(135deg, #faf5ff, #fdf2f8);
  border: 1px solid #e9d5ff;
  border-radius: 14px;
  padding: 16px;
  text-decoration: none;
  color: inherit;
  transition: transform .15s var(--ease-out-3), box-shadow .15s;
}
.blog-rec-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-3); }
.blog-rec-tag { display: inline-block; background: var(--brand-purple); color: #fff; font-size: 11px; font-weight: 700; padding: 3px 10px; border-radius: var(--radius-full); margin-bottom: 8px; }
.blog-rec-title { font-size: var(--text-base); font-weight: 800; color: var(--text-primary); margin-bottom: 6px; line-height: 1.4; }
.blog-rec-desc { font-size: var(--text-sm); color: var(--text-secondary); line-height: 1.5; margin-bottom: 10px; }
.blog-rec-read { font-size: var(--text-sm); font-weight: 700; color: var(--brand-purple); }

/* ═══════════════════════════ SHARE TOP (VIRAL) ═══════════════════════════ */

.share-top {
  background: linear-gradient(135deg, var(--skin-light, var(--brand-pink-light)), var(--brand-purple-light));
  border-radius: var(--radius-md);
  padding: 18px 20px;
  text-align: center;
  margin-bottom: 20px;
}
.share-top-text {
  font-family: 'Quicksand', 'Be Vietnam Pro', sans-serif;
  font-size: 17px;
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: 14px;
}
.share-top-buttons {
  display: flex;
  gap: 10px;
  justify-content: center;
  flex-wrap: wrap;
}

/* ═══════════════════════════ UPSELL CARD ═══════════════════════════ */

.upsell-card {
  background: var(--skin-light, var(--brand-purple-light));
  border: 2px solid var(--skin-primary, var(--brand-purple));
  border-radius: var(--radius-md);
  padding: 24px;
  text-align: center;
  margin: 16px 0;
  box-shadow: var(--shadow-2);
}
.upsell-badge {
  display: inline-block;
  background: linear-gradient(135deg, #1e1b4b, #4338ca);
  color: #fff;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .5px;
  padding: 5px 14px;
  border-radius: var(--radius-full);
  margin-bottom: 12px;
}
.upsell-card h3 {
  font-family: 'Quicksand', 'Be Vietnam Pro', sans-serif;
  font-size: var(--text-xl);
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 8px;
}
.upsell-card p {
  font-size: var(--text-base);
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 4px;
}
.upsell-sub {
  font-size: var(--text-sm) !important;
  font-weight: 700 !important;
  color: var(--skin-primary, var(--brand-purple)) !important;
  margin-bottom: 16px !important;
}
.upsell-btn {
  display: inline-block;
  background: linear-gradient(135deg, #1e1b4b, #4338ca);
  color: #fff;
  font-family: 'Be Vietnam Pro', sans-serif;
  font-size: var(--text-base);
  font-weight: 800;
  padding: 14px 28px;
  border-radius: var(--radius-full);
  text-decoration: none;
  transition: all .2s var(--ease-out-3);
  box-shadow: var(--shadow-3);
}
.upsell-btn:hover { transform: translateY(-2px); box-shadow: var(--shadow-4); opacity: .92; }

/* ═══════════════════════════ SHARE ═══════════════════════════ */

.share-section { text-align: center; padding: 24px 0; }
.share-section h3 { font-size: 17px; font-weight: 800; margin-bottom: 16px; }
.share-buttons { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin-bottom: 20px; }
.share-btn {
  display: flex; align-items: center; gap: 8px;
  padding: 12px 22px; border-radius: var(--radius-full);
  font-family: 'Be Vietnam Pro', sans-serif;
  font-size: 14px; font-weight: 700;
  border: none; cursor: pointer;
  transition: all .2s var(--ease-out-3);
  color: #fff;
}
.share-btn:hover { transform: translateY(-2px); opacity: .9; }
.share-fb   { background: #1877f2; }
.share-zalo { background: #0068ff; }
.share-copy { background: var(--text-secondary); }
.share-download {
  background: var(--bg-card);
  color: var(--skin-primary, var(--brand-pink));
  border: 2px solid var(--border-default);
}
.share-download:hover { border-color: var(--skin-primary, var(--brand-pink)); color: var(--skin-primary, var(--brand-pink)); }

.share-challenge {
  background: linear-gradient(135deg, var(--brand-pink-light), var(--brand-purple-light));
  border-radius: var(--radius-md);
  padding: 16px 20px;
  text-align: center;
  margin-bottom: 16px;
}
.share-challenge-text { font-size: 17px; font-weight: 800; margin-bottom: 4px; }
.share-challenge-sub { font-size: var(--text-sm); color: var(--text-secondary); }

.result-action-btns {
  display: flex; gap: 12px; justify-content: center; margin-top: 8px; flex-wrap: wrap;
}

/* ═══════════════════════════ EMAIL CAPTURE ═══════════════════════════ */

.email-capture {
  background: linear-gradient(135deg, #f3f0ff, #fce7f3);
  border-radius: var(--radius-md);
  padding: 20px;
  margin-bottom: 20px;
  text-align: center;
}
.email-capture h3 { font-size: var(--text-md); font-weight: 800; margin-bottom: 4px; color: var(--text-primary); }
.email-sub { font-size: var(--text-sm); color: var(--text-secondary); margin-bottom: 12px; }
.email-form { display: flex; gap: 8px; max-width: 320px; margin: 0 auto; }
.email-form input[type="email"] {
  flex: 1; padding: 10px 14px;
  border: 2px solid var(--border-default);
  border-radius: var(--radius-full);
  font-family: 'Be Vietnam Pro', sans-serif;
  font-size: 14px; outline: none;
  transition: border-color .2s;
}
.email-form input[type="email"]:focus { border-color: var(--brand-purple); }
.btn-email {
  background: var(--brand-purple); color: white; border: none;
  border-radius: var(--radius-full); padding: 10px 20px;
  font-family: 'Be Vietnam Pro', sans-serif;
  font-size: 14px; font-weight: 700;
  cursor: pointer; white-space: nowrap;
  transition: opacity .2s;
}
.btn-email:hover { opacity: .85; }
.btn-email:disabled { opacity: .5; cursor: default; }
.email-status { font-size: var(--text-sm); font-weight: 700; margin-top: 8px; min-height: 18px; }
.email-consent-label {
  display: flex; align-items: flex-start; gap: 8px;
  font-size: var(--text-xs); color: var(--text-secondary);
  margin-top: 10px; line-height: 1.5; cursor: pointer;
  text-align: left; max-width: 320px; margin-left: auto; margin-right: auto;
}
.email-consent-label input[type="checkbox"] { margin-top: 2px; flex-shrink: 0; accent-color: var(--brand-purple); }
.email-consent-label a { color: var(--brand-purple); }

/* ═══════════════════════════ AD SLOTS ═══════════════════════════ */

.ad-slot { width: 100%; border-radius: var(--radius-md); overflow: hidden; margin: 16px 0; min-height: 0; }
.ad-slot-top { margin-top: 8px; }
.ad-slot-mid { margin-top: 0; }

/* ═══════════════════════════ DISCLAIMER ═══════════════════════════ */

.disclaimer {
  font-size: 11px; color: var(--text-muted);
  text-align: center; padding: 8px 0 24px; line-height: 1.6;
}

/* ═══════════════════════════ SCROLL ANIMATION ═══════════════════════════ */

.card-animate {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .5s var(--ease-out-5), transform .5s var(--ease-out-5);
}
.card-animate.visible {
  opacity: 1;
  transform: translateY(0);
}
