/* ==========================================================================
   HAIR TEST DIAGNOSTIC STYLESHEET - CITY POLY CLINIC LUXURY THEME
   BLACK 60% → IVORY 25% → GOLD 10% → CHAMPAGNE 5%
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Hanken+Grotesk:ital,wght@0,400;0,500;0,600;0,700;0,800;0,900;1,600;1,700&family=Instrument+Sans:ital,wght@0,400;0,500;0,600;0,700;1,400;1,600&family=Spline+Sans+Mono:wght@400;500;600&family=Inter:wght@400;500;600;700&display=swap');

:root {
  /* Using main theme tokens directly */
  --ht-bg-page: var(--bg-sand-light, #F8F4EC);
  --ht-header-bg: var(--bg-primary, #0B0B0A);
  --ht-gold: var(--accent-gold, #C99A4A);
  --ht-gold-light: var(--accent-gold-light, #E2B96F);
  --ht-gold-dark: var(--accent-gold-dark, #A67930);
  --ht-gold-tint: rgba(201, 154, 74, 0.12);
  --ht-gold-border: rgba(201, 154, 74, 0.45);

  --ht-card-bg: #FFFFFF;
  --ht-card-border: #E8DFCE;
  --ht-card-hover: #FFFDF9;
  --ht-text-main: var(--text-dark, #222222);
  --ht-text-sub: var(--text-dark-sub, #3A3A36);
  --ht-text-muted: var(--text-muted, #6B675E);
  --ht-text-light: var(--text-white, #FAF8F3);

  --ht-font-main: var(--font-body, 'Instrument Sans', sans-serif);
  --ht-font-heading: var(--font-display, 'Hanken Grotesk', sans-serif);
  --ht-font-mono: var(--font-mono, 'Spline Sans Mono', monospace);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html, body {
  max-width: 100%;
  overflow-x: hidden;
}

body {
  font-family: var(--ht-font-main);
  background-color: var(--ht-bg-page);
  color: var(--ht-text-main);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* ==========================================================================
   HEADER - LUXURY DEEP BLACK & GOLD
   ========================================================================== */
.ht-header {
  background-color: var(--ht-header-bg);
  color: var(--ht-text-light);
  padding: 16px 24px;
  width: 100%;
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid rgba(214, 179, 106, 0.22);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
}

.ht-header-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.ht-brand-link {
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 12px;
}

.ht-brand-title {
  font-family: var(--ht-font-heading);
  font-size: 20px;
  font-weight: 800;
  color: #FAF8F3;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  line-height: 1.1;
  display: flex;
  align-items: center;
  gap: 6px;
}

.ht-brand-sub {
  font-family: var(--ht-font-mono);
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.4em;
  text-transform: uppercase;
  color: var(--ht-gold);
  margin-top: 3px;
}

.ht-header-right {
  display: flex;
  align-items: center;
  gap: 16px;
}

.ht-header-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(201, 154, 74, 0.12);
  border: 1px solid var(--ht-gold-border);
  padding: 6px 14px;
  border-radius: 9999px;
  font-family: var(--ht-font-mono);
  font-size: 11.5px;
  color: var(--ht-gold-light);
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.ht-header-badge .badge-dot-gold {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--ht-gold);
  box-shadow: 0 0 8px var(--ht-gold);
  display: inline-block;
}

.ht-exit-link {
  color: var(--text-muted-light, #A39D90);
  font-family: var(--ht-font-main);
  font-size: 13.5px;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  padding: 6px 14px;
  border-radius: 9999px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  transition: all 0.2s ease;
}

.ht-exit-link:hover {
  color: #FFFFFF;
  border-color: var(--ht-gold);
  background: rgba(201, 154, 74, 0.15);
}

/* ==========================================================================
   PROGRESS & NAVIGATION BAR
   ========================================================================== */
.ht-nav-strip {
  max-width: 860px;
  margin: 28px auto 0 auto;
  padding: 0 20px;
  width: 100%;
}

.ht-nav-controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}

.ht-back-btn {
  background: #FFFFFF;
  border: 1px solid rgba(214, 179, 106, 0.35);
  color: var(--ht-text-main);
  font-family: var(--ht-font-main);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 16px;
  border-radius: 9999px;
  transition: all 0.2s ease;
  visibility: hidden;
  /* Hidden on step 0 */
  box-shadow: 0 2px 6px rgba(11, 11, 10, 0.04);
}

.ht-back-btn:hover {
  background: var(--ht-gold);
  color: #0B0B0A;
  border-color: var(--ht-gold);
  box-shadow: 0 4px 12px rgba(201, 154, 74, 0.3);
}

.ht-back-btn.visible {
  visibility: visible;
}

/* 4 Phase Pill Tabs */
.ht-phase-tabs {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-bottom: 14px;
}

.ht-tab-pill {
  background-color: #FFFFFF;
  color: var(--ht-text-sub);
  border-radius: 12px;
  padding: 12px 14px;
  font-family: var(--ht-font-heading);
  font-size: 13.5px;
  font-weight: 600;
  line-height: 1.3;
  text-align: left;
  transition: all 0.25s ease;
  user-select: none;
  border: 1px solid rgba(214, 179, 106, 0.3);
  box-shadow: 0 2px 6px rgba(11, 11, 10, 0.03);
  pointer-events: none;
  cursor: default;
}

.ht-tab-pill.active {
  background-color: #0B0B0A;
  color: var(--ht-gold-light);
  border-color: var(--ht-gold);
  font-weight: 700;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.25), 0 0 12px rgba(201, 154, 74, 0.2);
}

.ht-tab-pill.completed {
  background-color: rgba(201, 154, 74, 0.12);
  color: var(--ht-gold-dark);
  border-color: var(--ht-gold-border);
  font-weight: 600;
}

.ht-tab-pill.completed::after {
  content: ' ✓';
  color: var(--ht-gold);
  font-weight: 800;
  font-size: 12px;
}

.ht-tab-short {
  display: none;
}

.ht-tab-full {
  display: inline;
}

.ht-chips-wrap {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  max-width: 520px;
  margin: 0 auto 24px auto;
}

/* Luxury Gold Linear Progress Bar */
.ht-progress-track {
  width: 100%;
  height: 6px;
  background-color: #E8DFCE;
  border-radius: 9999px;
  overflow: hidden;
  position: relative;
}

.ht-progress-fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, #C99A4A 0%, #E2B96F 100%);
  transition: width 0.35s ease;
  border-radius: 9999px;
  box-shadow: 0 0 10px rgba(201, 154, 74, 0.4);
}

.ht-progress-label {
  text-align: right;
  font-family: var(--ht-font-mono);
  font-size: 12px;
  font-weight: 700;
  color: var(--ht-gold-dark);
  margin-top: 6px;
  letter-spacing: 0.05em;
}

/* ==========================================================================
   QUESTIONNAIRE MAIN WRAPPER
   ========================================================================== */
.ht-main {
  flex: 1;
  max-width: 840px;
  margin: 0 auto;
  padding: 30px 20px 70px 20px;
  width: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.ht-step-card {
  display: none;
  animation: htFadeSlide 0.35s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.ht-step-card.active {
  display: block;
}

@keyframes htFadeSlide {
  from {
    opacity: 0;
    transform: translateY(14px);
  }

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

.ht-question-title {
  font-family: var(--ht-font-heading);
  font-size: 28px;
  font-weight: 800;
  color: var(--ht-text-main);
  text-align: center;
  margin-bottom: 10px;
  letter-spacing: -0.02em;
  line-height: 1.25;
}

.ht-question-subtitle {
  font-family: var(--ht-font-main);
  font-size: 15px;
  color: var(--ht-text-muted);
  text-align: center;
  margin-bottom: 36px;
  max-width: 560px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.55;
}

/* ==========================================================================
   INPUT STYLING
   ========================================================================== */
.ht-input-box {
  max-width: 440px;
  margin: 0 auto 30px auto;
  position: relative;
}

.ht-bottom-input {
  width: 100%;
  background: transparent;
  border: none;
  border-bottom: 2px solid var(--ht-gold);
  padding: 12px 16px;
  font-family: var(--ht-font-heading);
  font-size: 22px;
  font-weight: 600;
  color: var(--ht-text-main);
  text-align: center;
  outline: none;
  transition: all 0.25s ease;
}

.ht-bottom-input:focus {
  border-bottom-color: var(--ht-gold-dark);
  box-shadow: 0 4px 12px rgba(201, 154, 74, 0.15);
}

.ht-bottom-input::placeholder {
  color: #A39D90;
  font-weight: 400;
}

.ht-input-error {
  color: #c92a2a;
  font-size: 13px;
  margin-top: 8px;
  text-align: center;
  display: none;
  font-weight: 600;
}

.ht-input-error.visible {
  display: block;
}

/* Phone input container */
.ht-phone-group {
  display: flex;
  align-items: center;
  border-bottom: 2px solid var(--ht-gold);
  max-width: 440px;
  margin: 0 auto 30px auto;
  padding: 6px 8px;
  transition: all 0.25s ease;
}

.ht-phone-group:focus-within {
  border-bottom-color: var(--ht-gold-dark);
  box-shadow: 0 4px 12px rgba(201, 154, 74, 0.15);
}

.ht-phone-prefix {
  font-size: 17px;
  font-weight: 700;
  color: var(--ht-text-main);
  padding-right: 12px;
  border-right: 1px solid rgba(214, 179, 106, 0.4);
  display: flex;
  align-items: center;
  gap: 8px;
}

.ht-phone-input {
  border: none;
  outline: none;
  flex: 1;
  font-family: var(--ht-font-heading);
  font-size: 22px;
  font-weight: 600;
  color: var(--ht-text-main);
  padding: 8px 14px;
  background: transparent;
}

.ht-age-chip {
  background: #FFFFFF !important;
  border: 1px solid rgba(214, 179, 106, 0.35) !important;
  border-radius: 9999px !important;
  padding: 8px 18px !important;
  font-family: var(--ht-font-main) !important;
  font-size: 13.5px !important;
  font-weight: 600 !important;
  color: var(--ht-text-main) !important;
  cursor: pointer !important;
  transition: all 0.2s ease !important;
  box-shadow: 0 2px 6px rgba(11, 11, 10, 0.03) !important;
}

.ht-age-chip:hover {
  background: var(--ht-gold) !important;
  color: #0B0B0A !important;
  border-color: var(--ht-gold) !important;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(201, 154, 74, 0.3) !important;
}

.ht-city-chip.selected {
  background: var(--ht-gold) !important;
  color: #0B0B0A !important;
  border-color: var(--ht-gold) !important;
  box-shadow: 0 4px 12px rgba(201, 154, 74, 0.3) !important;
}

/* ==========================================================================
   ACTION BUTTONS - MAIN THEME LUXURY GOLD
   ========================================================================== */
.ht-btn-center {
  display: flex;
  justify-content: center;
  margin-top: 28px;
}

.ht-next-btn {
  background: linear-gradient(135deg, #C99A4A 0%, #E2B96F 100%);
  color: #0B0B0A;
  font-family: var(--ht-font-heading);
  font-size: 14.5px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 15px 56px;
  border: none;
  border-radius: 9999px;
  cursor: pointer;
  transition: all 0.25s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  box-shadow: 0 6px 20px rgba(201, 154, 74, 0.35);
}

.ht-next-btn:hover {
  background: linear-gradient(135deg, #E2B96F 0%, #C99A4A 100%);
  transform: translateY(-2px);
  box-shadow: 0 10px 26px rgba(201, 154, 74, 0.5);
  color: #0B0B0A;
}

.ht-next-btn.ready {
  background: linear-gradient(135deg, #C99A4A 0%, #E2B96F 100%);
}

.ht-next-btn.ready:hover {
  background: linear-gradient(135deg, #E2B96F 0%, #C99A4A 100%);
}

/* ==========================================================================
   CHOICE & OPTION CARDS - MATCHING MAIN MODAL DESIGN
   ========================================================================== */
.ht-gender-card,
.ht-option-card,
.ht-stage-card,
.ht-age-chip,
.ht-city-chip,
.ht-next-btn,
.ht-back-btn,
.ht-btn-consult,
.ht-btn-whatsapp,
.ht-wa-banner-btn {
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}

.ht-gender-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  max-width: 440px;
  margin: 0 auto;
}

.ht-gender-card {
  background-color: #FFFFFF;
  border: 1.5px solid var(--ht-card-border);
  border-radius: 16px;
  padding: 24px 16px;
  text-align: center;
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.25, 1, 0.5, 1);
  font-family: var(--ht-font-heading);
  font-size: 18px;
  font-weight: 700;
  color: var(--ht-text-main);
  user-select: none;
  box-shadow: 0 2px 8px rgba(11, 11, 10, 0.04);
}

.ht-gender-card:hover {
  background-color: #FFFDF9;
  border-color: var(--ht-gold);
  transform: translateY(-3px);
  box-shadow: 0 8px 22px rgba(201, 154, 74, 0.16);
}

.ht-gender-card.selected {
  background-color: #FFF9EE;
  border-color: var(--ht-gold);
  color: var(--ht-text-main);
  box-shadow: 0 8px 24px rgba(201, 154, 74, 0.25);
  position: relative;
}

.ht-gender-card.selected::after {
  content: '✓';
  position: absolute;
  top: 12px;
  right: 14px;
  width: 22px;
  height: 22px;
  background: var(--ht-gold);
  color: #ffffff;
  border-radius: 50%;
  font-size: 11px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Generic Option Cards (Vertical stack or 2-column) */
.ht-options-stack {
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-width: 560px;
  margin: 0 auto;
}

.ht-options-grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
  max-width: 660px;
  margin: 0 auto;
}

.ht-option-card {
  background-color: #FFFFFF;
  border: 1.5px solid var(--ht-card-border);
  border-radius: 14px;
  padding: 16px 20px;
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.25, 1, 0.5, 1);
  display: flex;
  align-items: center;
  gap: 14px;
  user-select: none;
  box-shadow: 0 2px 8px rgba(11, 11, 10, 0.03);
  position: relative;
}

.ht-option-card:hover {
  background-color: #FFFDF9;
  border-color: var(--ht-gold);
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(201, 154, 74, 0.16);
}

.ht-option-card.selected {
  background-color: #FFF9EE;
  border-color: var(--ht-gold);
  box-shadow: 0 8px 22px rgba(201, 154, 74, 0.22);
}

.ht-radio-circle {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  border: 2px solid #C8BEAC;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}

.ht-option-card.selected .ht-radio-circle,
.ht-stage-card.selected .ht-radio-circle {
  border-color: var(--ht-gold);
}

.ht-radio-circle::after {
  content: '';
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background-color: var(--ht-gold);
  opacity: 0;
  transform: scale(0.5);
  transition: all 0.2s ease;
}

.ht-option-card.selected .ht-radio-circle::after,
.ht-stage-card.selected .ht-radio-circle::after {
  opacity: 1;
  transform: scale(1);
}

.ht-option-text {
  flex: 1;
}

.ht-option-title {
  font-family: var(--ht-font-heading);
  font-size: 15.5px;
  font-weight: 700;
  color: var(--ht-text-main);
  display: block;
}

.ht-option-desc {
  font-family: var(--ht-font-main);
  font-size: 13px;
  color: var(--ht-text-muted);
  display: block;
  margin-top: 3px;
  line-height: 1.4;
}

/* ==========================================================================
   HAIR FALL STAGES GRID (Q5)
   ========================================================================== */
.ht-stages-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
  max-width: 820px;
  margin: 0 auto;
}

.ht-stage-card {
  background-color: #FFFFFF;
  border: 1.5px solid var(--ht-card-border);
  border-radius: 14px;
  padding: 14px 18px;
  cursor: pointer;
  transition: all 0.25s ease;
  display: flex;
  align-items: center;
  justify-content: space-between;
  user-select: none;
  box-shadow: 0 2px 8px rgba(11, 11, 10, 0.03);
}

.ht-stage-card:hover {
  background-color: #FFFDF9;
  border-color: var(--ht-gold);
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(201, 154, 74, 0.16);
}

.ht-stage-card.selected {
  background-color: #FFF9EE;
  border-color: var(--ht-gold);
  box-shadow: 0 8px 22px rgba(201, 154, 74, 0.22);
}

.ht-stage-left {
  display: flex;
  align-items: center;
  gap: 12px;
}

.ht-stage-name {
  font-family: var(--ht-font-heading);
  font-size: 15.5px;
  font-weight: 700;
  color: var(--ht-text-main);
}

.ht-stage-diagrams {
  display: flex;
  align-items: center;
  gap: 10px;
}

.ht-diagram-item {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.ht-diagram-item svg {
  width: 100%;
  height: 100%;
}

.ht-stage-img {
  width: auto;
  height: 64px;
  max-width: 80px;
  object-fit: contain;
  display: block;
  transition: transform 0.25s ease;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.05));
}

.ht-stage-card:hover .ht-stage-img {
  transform: scale(1.06);
}

/* Footer Disclaimer */
.ht-footer-disclaimer {
  text-align: center;
  font-size: 12px;
  color: var(--ht-text-muted);
  margin-top: 36px;
  line-height: 1.6;
  max-width: 680px;
  margin-left: auto;
  margin-right: auto;
}

.ht-footer-disclaimer a {
  color: var(--ht-gold-dark);
  text-decoration: underline;
  font-weight: 600;
}

/* ==========================================================================
   LOADING / CALCULATION STATE
   ========================================================================== */
.ht-calculating-box {
  text-align: center;
  padding: 44px 20px;
  max-width: 520px;
  margin: 0 auto;
}

.ht-spinner {
  width: 64px;
  height: 64px;
  border: 4px solid #E8DFCE;
  border-top-color: var(--ht-gold);
  border-radius: 50%;
  margin: 0 auto 24px auto;
  animation: htSpin 0.9s linear infinite;
}

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

.ht-checklist {
  text-align: left;
  margin: 28px auto 0 auto;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.ht-checklist-item {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--ht-font-main);
  font-size: 15px;
  font-weight: 500;
  color: var(--ht-text-muted);
  opacity: 0.45;
  transition: opacity 0.3s ease, color 0.3s ease;
}

.ht-checklist-item.done {
  opacity: 1;
  color: var(--ht-text-main);
}

.ht-checklist-item .chk-icon {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background-color: #E8DFCE;
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 800;
}

.ht-checklist-item.done .chk-icon {
  background-color: var(--ht-gold);
  color: #0B0B0A;
}

/* ==========================================================================
   DOCTOR DIAGNOSIS & PRESCRIPTION REPORT SCREEN - LUXURY THEME
   ========================================================================== */
.ht-report-wrapper {
  background: #FFFFFF;
  border-radius: 20px;
  box-shadow: 0 16px 40px rgba(11, 11, 10, 0.08);
  border: 1px solid var(--ht-card-border);
  overflow: hidden;
  max-width: 820px;
  margin: 0 auto;
}

.ht-report-header {
  background: linear-gradient(135deg, #141413 0%, #0B0B0A 100%);
  color: #FAF8F3;
  padding: 34px 36px;
  position: relative;
  border-bottom: 1px solid rgba(214, 179, 106, 0.25);
}

.ht-report-badge-top {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(201, 154, 74, 0.15);
  border: 1px solid var(--ht-gold-border);
  color: var(--ht-gold-light);
  padding: 5px 14px;
  border-radius: 9999px;
  font-family: var(--ht-font-mono);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 12px;
}

.ht-report-title {
  font-family: var(--ht-font-heading);
  font-size: 28px;
  font-weight: 800;
  line-height: 1.25;
  color: #FAF8F3;
}

.ht-report-doctor-line {
  font-family: var(--ht-font-main);
  font-size: 14.5px;
  color: var(--text-muted-light, #A39D90);
  margin-top: 6px;
}

/* Score Summary Card */
.ht-score-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #FFF9EE;
  border: 1.5px solid var(--ht-gold-border);
  border-radius: 16px;
  padding: 22px 28px;
  margin: 28px 36px 0 36px;
  box-shadow: 0 4px 16px rgba(201, 154, 74, 0.12);
}

.ht-score-left h4 {
  font-family: var(--ht-font-heading);
  font-size: 19px;
  color: var(--ht-text-main);
  font-weight: 800;
}

.ht-score-left p {
  font-family: var(--ht-font-main);
  font-size: 14px;
  color: var(--ht-gold-dark);
  margin-top: 4px;
  font-weight: 500;
}

.ht-score-circle {
  width: 76px;
  height: 76px;
  border-radius: 50%;
  background: #FFFFFF;
  border: 4px solid var(--ht-gold);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 18px rgba(201, 154, 74, 0.25);
}

.ht-score-num {
  font-family: var(--ht-font-heading);
  font-size: 24px;
  font-weight: 800;
  color: var(--ht-gold-dark);
  line-height: 1;
}

.ht-score-sub {
  font-family: var(--ht-font-mono);
  font-size: 10px;
  font-weight: 700;
  color: var(--ht-text-muted);
}

/* Diagnostic Breakdown Grid */
.ht-report-body {
  padding: 28px 36px 36px 36px;
}

.ht-section-heading {
  font-family: var(--ht-font-heading);
  font-size: 19px;
  font-weight: 800;
  color: var(--ht-text-main);
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.ht-causes-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-bottom: 30px;
}

.ht-cause-card {
  background: #FAF7F2;
  border: 1px solid var(--ht-card-border);
  border-radius: 12px;
  padding: 16px;
}

.ht-cause-tag {
  font-family: var(--ht-font-mono);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--ht-gold-dark);
  background: rgba(201, 154, 74, 0.15);
  border: 1px solid var(--ht-gold-border);
  padding: 3px 8px;
  border-radius: 4px;
  display: inline-block;
  margin-bottom: 8px;
}

.ht-cause-card h5 {
  font-family: var(--ht-font-heading);
  font-size: 15px;
  font-weight: 700;
  color: var(--ht-text-main);
  margin-bottom: 4px;
}

.ht-cause-card p {
  font-family: var(--ht-font-main);
  font-size: 12.5px;
  color: var(--ht-text-muted);
  line-height: 1.45;
}

/* Treatment Plan Recommendation */
.ht-plan-box {
  background: #FFFFFF;
  border: 2px solid var(--ht-gold);
  border-radius: 16px;
  padding: 24px;
  margin-bottom: 30px;
  position: relative;
  box-shadow: 0 6px 20px rgba(201, 154, 74, 0.12);
}

.ht-plan-badge {
  position: absolute;
  top: -12px;
  left: 24px;
  background: var(--ht-gold);
  color: #0B0B0A;
  padding: 4px 14px;
  border-radius: 9999px;
  font-family: var(--ht-font-mono);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.ht-plan-title {
  font-family: var(--ht-font-heading);
  font-size: 20px;
  font-weight: 800;
  color: var(--ht-text-main);
  margin-top: 6px;
  margin-bottom: 8px;
  line-height: 1.3;
}

.ht-plan-desc {
  font-family: var(--ht-font-main);
  font-size: 14.5px;
  color: var(--ht-text-sub);
  line-height: 1.55;
  margin-bottom: 16px;
}

.ht-plan-metrics {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  background: var(--ht-bg-page);
  padding: 16px;
  border-radius: 12px;
  border: 1px solid var(--ht-card-border);
}

.ht-metric-item span:first-child {
  display: block;
  font-family: var(--ht-font-mono);
  font-size: 10.5px;
  color: var(--ht-gold-dark);
  font-weight: 700;
  letter-spacing: 0.05em;
}

.ht-metric-item span:last-child {
  display: block;
  font-family: var(--ht-font-heading);
  font-size: 15px;
  color: var(--ht-text-main);
  font-weight: 700;
  margin-top: 3px;
}

/* CTAs inside Report */
.ht-report-actions {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.ht-btn-consult {
  background: linear-gradient(135deg, #C99A4A 0%, #E2B96F 100%);
  color: #0B0B0A;
  font-family: var(--ht-font-heading);
  font-size: 15.5px;
  font-weight: 700;
  text-decoration: none;
  text-align: center;
  padding: 16px 24px;
  border-radius: 9999px;
  transition: all 0.25s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  box-shadow: 0 6px 20px rgba(201, 154, 74, 0.35);
  cursor: pointer;
  border: none;
}

.ht-btn-consult:hover {
  background: linear-gradient(135deg, #E2B96F 0%, #C99A4A 100%);
  transform: translateY(-2px);
  box-shadow: 0 10px 28px rgba(201, 154, 74, 0.5);
  color: #0B0B0A;
}

.ht-btn-whatsapp {
  background-color: #25d366;
  color: #ffffff;
  font-family: var(--ht-font-heading);
  font-size: 15px;
  font-weight: 700;
  text-decoration: none;
  text-align: center;
  padding: 15px 24px;
  border-radius: 9999px;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  box-shadow: 0 4px 14px rgba(37, 211, 102, 0.3);
}

.ht-btn-whatsapp:hover {
  background-color: #20ba5a;
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(37, 211, 102, 0.4);
}

.ht-report-secondary-links {
  display: flex;
  justify-content: space-between;
  margin-top: 14px;
}

.ht-secondary-link {
  font-size: 13.5px;
  color: var(--ht-text-main);
  text-decoration: underline;
  cursor: pointer;
  background: none;
  border: none;
  font-family: var(--ht-font-main);
  font-weight: 600;
  transition: color 0.2s ease;
}

.ht-secondary-link:hover {
  color: var(--ht-gold-dark);
}




/* ==========================================================================
   SCALP PHOTO UPLOAD COMPONENT & GUIDANCE (MALE & FEMALE)
   ========================================================================== */
.ht-photo-guide {
  max-width: 580px;
  margin: 0 auto 22px auto;
  background: rgba(201, 154, 74, 0.05);
  border: 1px solid rgba(201, 154, 74, 0.28);
  border-radius: 16px;
  padding: 16px 20px;
  text-align: left;
}

.ht-guide-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
  flex-wrap: wrap;
  gap: 8px;
}

.ht-guide-tag {
  display: inline-block;
  font-family: var(--ht-font-heading);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  background: var(--ht-gold);
  color: #0B0B0A;
  padding: 4px 10px;
  border-radius: 999px;
}

.ht-guide-hint {
  font-size: 12.5px;
  color: var(--ht-text-muted);
}

.ht-guide-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.ht-guide-card {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  background: #FFFFFF;
  border: 1px solid var(--ht-card-border);
  border-radius: 12px;
  padding: 12px 14px;
}

.ht-guide-icon {
  color: var(--ht-gold);
  flex-shrink: 0;
  margin-top: 1px;
}

.ht-guide-text strong {
  display: block;
  font-family: var(--ht-font-heading);
  font-size: 13.5px;
  font-weight: 700;
  color: var(--ht-text-main);
  margin-bottom: 2px;
}

.ht-guide-text span {
  display: block;
  font-size: 12px;
  color: var(--ht-text-muted);
  line-height: 1.35;
}

/* Upload Container & Dropzone */
.ht-upload-container {
  max-width: 580px;
  margin: 0 auto;
}

.ht-upload-dropzone {
  background: #FFFFFF;
  border: 2px dashed rgba(201, 154, 74, 0.45);
  border-radius: 18px;
  padding: 36px 24px;
  text-align: center;
  cursor: pointer;
  transition: all 0.25s ease;
  user-select: none;
}

.ht-upload-dropzone:hover,
.ht-upload-dropzone.drag-over {
  border-color: var(--ht-gold);
  background: rgba(201, 154, 74, 0.08);
  transform: translateY(-2px);
  box-shadow: 0 10px 28px rgba(201, 154, 74, 0.2);
}

.ht-dropzone-icon {
  color: var(--ht-gold);
  margin-bottom: 12px;
  display: flex;
  justify-content: center;
}

.ht-dropzone-title {
  font-family: var(--ht-font-heading);
  font-size: 17.5px;
  font-weight: 700;
  color: var(--ht-text-main);
  margin-bottom: 6px;
}

.ht-dropzone-sub {
  font-size: 14px;
  color: var(--ht-text-muted);
  margin-bottom: 14px;
}

.ht-dropzone-badge {
  display: inline-block;
  font-family: var(--ht-font-mono);
  font-size: 11.5px;
  font-weight: 600;
  color: var(--ht-gold-dark);
  background: rgba(201, 154, 74, 0.12);
  padding: 5px 14px;
  border-radius: 999px;
  border: 1px solid rgba(201, 154, 74, 0.25);
}

/* Upload Preview Box */
.ht-upload-preview-box {
  background: #FFFFFF;
  border: 1.5px solid var(--ht-gold);
  border-radius: 18px;
  padding: 20px;
  display: flex;
  align-items: center;
  gap: 18px;
  box-shadow: 0 8px 24px rgba(201, 154, 74, 0.15);
  text-align: left;
}

.ht-preview-img-wrap {
  width: 105px;
  height: 105px;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--ht-card-border);
  background: #0B0B0A;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.ht-preview-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.ht-preview-meta {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
}

.ht-preview-status-line {
  display: flex;
  align-items: center;
  gap: 8px;
}

.ht-preview-check {
  background: #10B981;
  color: #FFFFFF;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: bold;
  flex-shrink: 0;
}

.ht-preview-filename {
  font-family: var(--ht-font-heading);
  font-size: 14.5px;
  font-weight: 700;
  color: var(--ht-text-main);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.ht-preview-filesize {
  font-size: 12.5px;
  color: var(--ht-text-muted);
}

.ht-preview-actions {
  display: flex;
  gap: 10px;
  margin-top: 6px;
}

.ht-btn-reupload {
  background: #FFFFFF;
  border: 1px solid var(--ht-gold);
  color: var(--ht-gold-dark);
  padding: 6px 14px;
  border-radius: 8px;
  font-size: 12.5px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
}

.ht-btn-reupload:hover {
  background: var(--ht-gold);
  color: #0B0B0A;
}

.ht-btn-remove {
  background: transparent;
  border: 1px solid #E5E7EB;
  color: #DC2626;
  padding: 6px 14px;
  border-radius: 8px;
  font-size: 12.5px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
}

.ht-btn-remove:hover {
  background: #FEE2E2;
}

/* Button Stack & Skip */
.ht-btn-stack {
  margin-top: 24px;
}

.ht-skip-wrap {
  text-align: center;
  margin-top: 14px;
}

.ht-skip-btn {
  background: transparent;
  border: none;
  color: var(--ht-text-muted);
  font-size: 13.5px;
  font-weight: 500;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color 0.2s;
}

.ht-skip-btn:hover {
  color: var(--ht-gold-dark);
}

/* Report Scalp Box */
.ht-report-scalp-box {
  margin: 18px 24px 0 24px;
  background: #FFFFFF;
  border: 1.5px solid var(--ht-gold-border);
  border-radius: 16px;
  padding: 18px 20px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.04);
}

.ht-report-scalp-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
  flex-wrap: wrap;
  gap: 8px;
}

.ht-report-scalp-tag {
  font-family: var(--ht-font-heading);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ht-gold-dark);
}

.ht-report-scalp-status {
  font-size: 12px;
  color: #10B981;
  font-weight: 600;
}

.ht-report-scalp-card {
  display: flex;
  align-items: center;
  gap: 16px;
}

.ht-report-scalp-img-wrap {
  width: 76px;
  height: 76px;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid var(--ht-gold-border);
  flex-shrink: 0;
  background: #0B0B0A;
}

.ht-report-scalp-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.ht-report-scalp-info h5 {
  font-family: var(--ht-font-heading);
  font-size: 14.5px;
  font-weight: 700;
  color: var(--ht-text-main);
  margin-bottom: 3px;
}

.ht-report-scalp-info p {
  font-size: 12.5px;
  color: var(--ht-text-muted);
  line-height: 1.45;
  margin: 0;
}



/* ==========================================================================
   TOP WHATSAPP QUICK-SUBMISSION BANNER & TOAST
   ========================================================================== */
.ht-wa-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  background: linear-gradient(135deg, #eefbf3 0%, #f4fdf7 100%);
  border: 1.5px solid #25d366;
  border-radius: var(--ht-radius-md, 14px);
  padding: 16px 20px;
  margin: 18px 28px 24px;
  box-shadow: 0 4px 16px rgba(37, 211, 102, 0.15);
  animation: htBannerGlow 3s ease-in-out infinite alternate;
}

@keyframes htBannerGlow {
  0% {
    box-shadow: 0 4px 16px rgba(37, 211, 102, 0.15);
  }

  100% {
    box-shadow: 0 6px 24px rgba(37, 211, 102, 0.3);
  }
}

.ht-wa-banner-icon {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: #25d366;
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 3px 10px rgba(37, 211, 102, 0.35);
}

.ht-wa-banner-text {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 3px;
  font-size: 13.5px;
  color: #2b3648;
}

.ht-wa-banner-text strong {
  font-family: var(--ht-font-heading);
  font-size: 16px;
  color: #0d542b;
}

.ht-wa-banner-btn {
  flex-shrink: 0;
  background: #25d366;
  color: #ffffff;
  font-family: var(--ht-font-heading);
  font-size: 14.5px;
  font-weight: 700;
  padding: 11px 20px;
  border-radius: 9999px;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  box-shadow: 0 4px 12px rgba(37, 211, 102, 0.3);
  transition: all 0.2s ease;
  border: none;
  cursor: pointer;
}

.ht-wa-banner-btn:hover {
  background: #20ba5a;
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(37, 211, 102, 0.45);
}

/* Toast Notification for Clipboard Copy / Feedback */
.ht-toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%) translateY(100px);
  background: #111827;
  color: #ffffff;
  padding: 14px 24px;
  border-radius: 9999px;
  font-family: var(--ht-font-main);
  font-size: 14px;
  font-weight: 500;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.15);
  z-index: 99999;
  opacity: 0;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  pointer-events: none;
  max-width: 90vw;
  text-align: center;
}

.ht-toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* ==========================================================================
   COMPREHENSIVE RESPONSIVE SYSTEM: TABLET & MOBILE BREAKPOINTS
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. TABLETS (Portrait & Landscape: 769px to 1024px)
   -------------------------------------------------------------------------- */
@media (min-width: 769px) and (max-width: 1024px) {
  .ht-header {
    padding: 14px 22px;
  }

  .ht-header-badge {
    padding: 5px 10px;
    font-size: 11px;
  }

  .ht-nav-strip {
    max-width: 720px;
    padding: 0 16px;
  }

  .ht-phase-tabs {
    gap: 8px;
  }

  .ht-tab-pill {
    padding: 10px 8px;
    font-size: 12.5px;
  }

  .ht-main {
    max-width: 720px;
    padding: 24px 16px 50px 16px;
  }

  .ht-question-title {
    font-size: 24px;
  }

  .ht-stages-grid {
    gap: 12px;
  }

  .ht-stage-card {
    padding: 12px 14px;
  }

  .ht-stage-img {
    height: 56px;
  }

  .ht-options-grid-2 {
    gap: 12px;
  }

  .ht-causes-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
  }

  .ht-cause-card {
    padding: 12px;
  }

  .ht-report-wrapper {
    margin: 0 12px;
  }

  .ht-report-header {
    padding: 28px 24px;
  }

  .ht-report-body {
    padding: 24px;
  }

  .ht-score-card {
    margin: 20px 24px 0 24px;
    padding: 18px 22px;
  }

  .ht-report-scalp-box {
    margin: 16px 24px 0 24px;
  }

  .ht-wa-banner {
    margin: 16px 24px 20px;
  }
}

/* --------------------------------------------------------------------------
   2. MOBILE & SMALL TABLETS GENERAL (<= 768px)
   -------------------------------------------------------------------------- */
@media (max-width: 768px) {
  /* Header */
  .ht-header {
    padding: 12px 16px;
  }

  .ht-header-badge {
    display: none;
  }

  .ht-brand-title {
    font-size: 17px;
  }

  .ht-brand-sub {
    font-size: 9.5px;
    letter-spacing: 0.28em;
  }

  .ht-exit-link {
    font-size: 12.5px;
    padding: 5px 12px;
  }

  /* Navigation & Progress */
  .ht-nav-strip {
    margin: 16px auto 0 auto;
    padding: 0 14px;
  }

  .ht-nav-controls {
    margin-bottom: 10px;
  }

  .ht-back-btn {
    font-size: 12px;
    padding: 6px 14px;
  }

  .ht-phase-tabs {
    gap: 5px;
    margin-bottom: 10px;
  }

  .ht-tab-pill {
    padding: 8px 4px;
    font-size: 11px;
    border-radius: 8px;
    text-align: center;
  }

  .ht-tab-full {
    display: none;
  }

  .ht-tab-short {
    display: inline;
  }

  .ht-progress-label {
    font-size: 11px;
    margin-top: 4px;
  }

  /* Main Container */
  .ht-main {
    padding: 16px 14px 44px 14px;
  }

  .ht-question-title {
    font-size: 21px;
    margin-bottom: 8px;
  }

  .ht-question-subtitle {
    font-size: 13.5px;
    margin-bottom: 22px;
    padding: 0 4px;
  }

  /* Form Inputs (Step 0 - 3) */
  .ht-input-box {
    max-width: 100%;
    margin: 0 auto 24px auto;
  }

  .ht-bottom-input {
    font-size: 18px;
    padding: 10px 12px;
  }

  .ht-phone-group {
    max-width: 100%;
    margin: 0 auto 24px auto;
    padding: 6px 8px;
  }

  .ht-phone-prefix {
    font-size: 15px;
    padding-right: 10px;
  }

  .ht-phone-input {
    font-size: 18px;
    padding: 6px 10px;
  }

  .ht-chips-wrap {
    gap: 8px;
    margin-bottom: 20px;
  }

  .ht-city-chip,
  .ht-age-chip {
    padding: 7px 14px !important;
    font-size: 13px !important;
  }

  /* Gender Grid (Step 4) - 2 COLUMNS ON MOBILE */
  .ht-gender-grid {
    display: grid !important;
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 12px !important;
    max-width: 100% !important;
  }

  .ht-gender-card {
    padding: 18px 12px;
    font-size: 16px;
    border-radius: 14px;
  }

  /* Stages Grid (Step 5) */
  .ht-stages-grid {
    grid-template-columns: 1fr;
    gap: 10px;
    max-width: 100%;
  }

  .ht-stage-card {
    padding: 12px 14px;
    border-radius: 12px;
  }

  .ht-stage-img {
    height: 52px;
    max-width: 68px;
  }

  .ht-stage-name {
    font-size: 14.5px;
  }

  /* 2-Column Options (Steps 6-11) */
  .ht-options-grid-2 {
    grid-template-columns: 1fr;
    gap: 10px;
    max-width: 100%;
  }

  .ht-options-stack {
    gap: 10px;
    max-width: 100%;
  }

  .ht-option-card {
    padding: 14px 16px;
    border-radius: 12px;
  }

  .ht-option-title {
    font-size: 14.5px;
  }

  .ht-option-desc {
    font-size: 12.5px;
  }

  /* Action Next Buttons */
  .ht-btn-center {
    margin-top: 22px;
    width: 100%;
  }

  .ht-next-btn {
    width: 100%;
    max-width: 380px;
    padding: 14px 20px;
    font-size: 14px;
    min-height: 48px;
  }

  /* Photo Upload Step */
  .ht-photo-guide {
    padding: 14px 16px;
    margin-bottom: 18px;
    border-radius: 14px;
  }

  .ht-guide-header {
    margin-bottom: 10px;
  }

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

  .ht-guide-card {
    padding: 10px 12px;
  }

  .ht-upload-dropzone {
    padding: 26px 16px;
    border-radius: 14px;
  }

  .ht-dropzone-title {
    font-size: 16px;
  }

  .ht-dropzone-sub {
    font-size: 13px;
    margin-bottom: 12px;
  }

  .ht-upload-preview-box {
    flex-direction: column;
    text-align: center;
    padding: 16px;
    gap: 12px;
    border-radius: 14px;
  }

  .ht-preview-img-wrap {
    width: 110px;
    height: 110px;
    margin: 0 auto;
  }

  .ht-preview-actions {
    justify-content: center;
  }

  /* WhatsApp Quick-submission Banner */
  .ht-wa-banner {
    flex-direction: column;
    align-items: stretch;
    text-align: center;
    gap: 12px;
    margin: 12px 14px 18px 14px;
    padding: 14px;
  }

  .ht-wa-banner-icon {
    margin: 0 auto;
  }

  .ht-wa-banner-btn {
    width: 100%;
    justify-content: center;
    padding: 12px 16px;
    font-size: 14px;
  }

  /* Calculating state */
  .ht-calculating-box {
    padding: 30px 14px;
  }

  .ht-checklist {
    margin-top: 20px;
    gap: 12px;
  }

  .ht-checklist-item {
    font-size: 13.5px;
  }

  /* Report Screen */
  .ht-report-wrapper {
    border-radius: 14px;
  }

  .ht-report-header {
    padding: 22px 16px;
    text-align: center;
  }

  .ht-report-title {
    font-size: 22px;
  }

  .ht-report-doctor-line {
    font-size: 13px;
  }

  .ht-score-card {
    flex-direction: column;
    text-align: center;
    gap: 14px;
    margin: 14px 14px 0 14px;
    padding: 16px 18px;
  }

  .ht-score-left h4 {
    font-size: 17px;
  }

  .ht-score-circle {
    width: 68px;
    height: 68px;
  }

  .ht-score-num {
    font-size: 21px;
  }

  .ht-report-scalp-box {
    margin: 14px 14px 0 14px;
    padding: 14px;
  }

  .ht-report-scalp-card {
    flex-direction: column;
    text-align: center;
    gap: 10px;
  }

  .ht-report-scalp-img-wrap {
    margin: 0 auto;
    width: 72px;
    height: 72px;
  }

  .ht-report-body {
    padding: 20px 14px 28px 14px;
  }

  .ht-section-heading {
    font-size: 17px;
    margin-bottom: 12px;
  }

  .ht-causes-grid {
    grid-template-columns: 1fr;
    gap: 10px;
    margin-bottom: 22px;
  }

  .ht-plan-box {
    padding: 18px 14px;
    margin-bottom: 22px;
  }

  .ht-plan-badge {
    left: 14px;
    top: -10px;
    font-size: 10px;
    padding: 3px 12px;
  }

  .ht-plan-title {
    font-size: 18px;
  }

  .ht-plan-desc {
    font-size: 13.5px;
  }

  .ht-plan-metrics {
    grid-template-columns: 1fr;
    gap: 8px;
    padding: 12px;
  }

  .ht-metric-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px dashed rgba(214, 179, 106, 0.35);
    padding: 8px 0;
  }

  .ht-metric-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
  }

  .ht-metric-item span:first-child {
    font-size: 11px;
  }

  .ht-metric-item span:last-child {
    margin-top: 0;
    font-size: 14px;
  }

  .ht-btn-consult {
    padding: 14px 20px;
    font-size: 14.5px;
  }

  .ht-btn-whatsapp {
    padding: 13px 20px;
    font-size: 14px;
  }

  .ht-report-secondary-links {
    flex-direction: column;
    align-items: center;
    gap: 12px;
    margin-top: 18px;
  }

  .ht-secondary-link {
    font-size: 13px;
  }
}

/* --------------------------------------------------------------------------
   3. NARROW SMARTPHONES (<= 480px)
   -------------------------------------------------------------------------- */
@media (max-width: 480px) {
  .ht-brand-title {
    font-size: 15px;
  }

  .ht-brand-sub {
    font-size: 8.5px;
    letter-spacing: 0.2em;
  }

  .ht-exit-link {
    padding: 4px 10px;
    font-size: 11.5px;
  }

  .ht-tab-pill {
    padding: 7px 3px;
    font-size: 10px;
  }

  .ht-question-title {
    font-size: 19px;
  }

  .ht-question-subtitle {
    font-size: 12.5px;
    margin-bottom: 18px;
  }

  .ht-chips-wrap {
    gap: 6px;
  }

  .ht-city-chip,
  .ht-age-chip {
    padding: 6px 12px !important;
    font-size: 12px !important;
  }

  .ht-gender-card {
    padding: 15px 8px;
    font-size: 15px;
  }

  .ht-next-btn {
    font-size: 13.5px;
    padding: 13px 16px;
  }

  .ht-report-title {
    font-size: 19.5px;
  }

  .ht-plan-title {
    font-size: 16.5px;
  }
}

/* --------------------------------------------------------------------------
   4. ULTRA-COMPACT SMARTPHONES (<= 360px - iPhone SE, Fold external screen)
   -------------------------------------------------------------------------- */
@media (max-width: 360px) {
  .ht-nav-strip {
    padding: 0 8px;
  }

  .ht-main {
    padding: 12px 8px 36px 8px;
  }

  .ht-tab-pill {
    padding: 5px 2px;
    font-size: 9.5px;
    border-radius: 6px;
  }

  .ht-question-title {
    font-size: 17.5px;
  }

  .ht-question-subtitle {
    font-size: 12px;
  }

  .ht-gender-card {
    padding: 12px 6px;
    font-size: 14px;
  }

  .ht-stage-card {
    padding: 10px 10px;
  }

  .ht-stage-name {
    font-size: 13.5px;
  }

  .ht-stage-img {
    height: 44px;
    max-width: 56px;
  }

  .ht-option-card {
    padding: 11px 12px;
  }

  .ht-next-btn {
    font-size: 13px;
    padding: 12px 14px;
  }

  .ht-score-card,
  .ht-report-scalp-box,
  .ht-plan-box {
    padding: 12px 10px;
  }
}

/* Hide distracting floating buttons during test to prevent blocking form inputs/buttons */
body:not(.on-report) .floating-whatsapp,
body:not(.on-report) #whatsappFloatingBtn,
body:not(.on-report) .floating-consultation,
body:not(.on-report) #floatingConsultationBtn {
  display: none !important;
}
