/* Lead capture modal + multi-step registration + unlock panel */
.dr9ohm-lc-modal {
  position: fixed;
  inset: 0;
  z-index: 2147483000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 16px;
  padding-bottom: max(16px, env(safe-area-inset-bottom));
}
.dr9ohm-lc-modal.is-open { display: flex; }
body.dr9ohm-lc-modal-open {
  overflow: hidden !important;
  touch-action: none;
}
.dr9ohm-lc-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(8, 28, 36, 0.72);
  backdrop-filter: blur(2px);
}
.dr9ohm-lc-dialog {
  position: relative;
  width: min(560px, 100%);
  max-height: min(92vh, 820px);
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  background: #fffdf8;
  border-radius: 22px;
  padding: 18px 18px 22px;
  box-shadow: 0 24px 60px rgba(0,0,0,.35);
  font-family: 'Sarabun', 'Kanit', sans-serif;
  color: #1f2937;
  animation: dr9ohmLcPopIn 0.28s ease-out;
}
@keyframes dr9ohmLcPopIn {
  from { opacity: 0; transform: translateY(18px) scale(0.96); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}
@media (max-width: 639px) {
  .dr9ohm-lc-modal {
    padding: 10px;
    align-items: center;
  }
  .dr9ohm-lc-dialog {
    width: 100%;
    max-height: min(94vh, 900px);
    border-radius: 20px;
    padding: 16px 16px 20px;
  }
}
.dr9ohm-lc-hero {
  margin: 0 0 14px;
  padding: 16px 14px;
  border-radius: 16px;
  background: linear-gradient(135deg, #0f4c5c 0%, #1f7a5c 100%);
  color: #fff8e7;
  text-align: center;
}
.dr9ohm-lc-hero-label {
  font-size: 13px;
  opacity: 0.9;
  margin-bottom: 4px;
}
.dr9ohm-lc-hero-score {
  font-size: 34px;
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: 0.02em;
}
.dr9ohm-lc-hero-title {
  margin-top: 8px;
  font-size: 15px;
  line-height: 1.45;
  font-weight: 600;
  color: #fff0b7;
}
.dr9ohm-lc-dialog h3 {
  margin: 0 0 10px;
  font-size: 21px;
  color: #0f4c5c;
  padding-right: 8px;
  line-height: 1.35;
}
.dr9ohm-lc-author-link {
  display: block;
  margin-top: 14px;
  text-align: center;
  font-size: 14px;
  font-weight: 600;
  color: #0f4c81;
  text-decoration: underline;
  padding: 10px 8px;
}
.dr9ohm-lc-scoreline {
  margin: 0 0 10px;
  font-size: 16px;
  font-weight: 700;
  color: #0f4c5c;
  white-space: pre-line;
  line-height: 1.45;
}
.dr9ohm-lc-copy {
  margin: 0 0 12px;
  line-height: 1.65;
  font-size: 15px;
  color: #334155;
}
.dr9ohm-lc-perks {
  margin: 0 0 14px;
  padding: 12px 12px 12px 28px;
  background: #f0f7fc;
  border: 1px solid #cfe3f2;
  border-radius: 12px;
  color: #334155;
  font-size: 14px;
  line-height: 1.55;
}
.dr9ohm-lc-perks li { margin: 0 0 6px; }
.dr9ohm-lc-options {
  display: grid;
  gap: 10px;
  margin-bottom: 10px;
}
.dr9ohm-lc-opt {
  width: 100%;
  border: 1px solid #cbd5e1;
  border-radius: 999px;
  padding: 13px 16px;
  font-weight: 700;
  font-size: 15px;
  cursor: pointer;
  background: #fff;
  color: #0f4c81;
  min-height: 48px;
}
.dr9ohm-lc-opt.primary {
  background: #0f4c81;
  border-color: #0f4c81;
  color: #fff;
}
.dr9ohm-lc-opt.facebook {
  background: #1877f2;
  border-color: #1877f2;
  color: #fff;
}
.dr9ohm-lc-opt.lg {
  font-size: 18px;
  min-height: 58px;
  padding: 16px 18px;
  margin-bottom: 10px;
  box-shadow: 0 8px 18px rgba(24, 119, 242, 0.28);
}
.dr9ohm-lc-fb-card {
  display: flex;
  gap: 12px;
  align-items: center;
  padding: 14px;
  margin: 0 0 12px;
  border-radius: 14px;
  background: #f0f6ff;
  border: 1px solid #c9ddff;
}
.dr9ohm-lc-fb-avatar {
  flex: 0 0 52px;
  width: 52px;
  height: 52px;
  border-radius: 999px;
  background: #1877f2 center/cover no-repeat;
  color: #fff;
  font-weight: 800;
  font-size: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.dr9ohm-lc-fb-avatar.has-photo {
  font-size: 0;
}
.dr9ohm-lc-fb-meta {
  display: grid;
  gap: 4px;
  min-width: 0;
}
.dr9ohm-lc-fb-meta strong {
  font-size: 16px;
  color: #0f4c5c;
}
.dr9ohm-lc-fb-meta span {
  font-size: 13px;
  line-height: 1.45;
  color: #475569;
}
.dr9ohm-lc-opt.ghost {
  background: #f8fafc;
  color: #475569;
  font-weight: 600;
}
.dr9ohm-lc-back {
  border: 0;
  background: transparent;
  color: #0f4c81;
  font-weight: 600;
  font-size: 14px;
  padding: 0 0 10px;
  cursor: pointer;
}
.dr9ohm-lc-label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 6px;
}
#dr9ohmLcEmail,
#dr9ohmLcPassword {
  width: 100%;
  box-sizing: border-box;
  border: 1px solid #cbd5e1;
  border-radius: 10px;
  padding: 12px;
  font-size: 16px;
  margin-bottom: 10px;
}
.dr9ohm-lc-check {
  display: flex;
  gap: 8px;
  align-items: flex-start;
  font-size: 13px;
  line-height: 1.45;
  margin: 0 0 8px;
  color: #475569;
}
.dr9ohm-lc-note {
  font-size: 12px;
  color: #64748b;
  margin: 8px 0 12px;
  line-height: 1.5;
}
.dr9ohm-lc-submit {
  width: 100%;
  border: 0;
  border-radius: 999px;
  padding: 12px 16px;
  background: #0f4c81;
  color: #fff;
  font-weight: 700;
  font-size: 15px;
  cursor: pointer;
  min-height: 48px;
  margin-bottom: 8px;
}
.dr9ohm-lc-submit.secondary {
  background: #fff;
  color: #0f4c81;
  border: 1px solid #0f4c81;
}
.dr9ohm-lc-submit:disabled {
  opacity: 0.7;
  cursor: wait;
}
.dr9ohm-lc-error {
  color: #b91c1c;
  font-size: 13px;
  margin: 10px 0 0;
}

.dr9ohm-lc-unlock {
  max-width: 920px;
  margin: 18px auto 28px;
  padding: 0 12px;
}
.dr9ohm-lc-unlock-inner {
  background: linear-gradient(180deg, #f0f7fc 0%, #ffffff 70%);
  border: 1px solid #cfe3f2;
  border-left: 5px solid #0f4c81;
  border-radius: 14px;
  padding: 18px 20px;
  font-family: 'Sarabun', 'Kanit', sans-serif;
}
.dr9ohm-lc-unlock-badge {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  color: #0f4c81;
  background: #dbeafe;
  border-radius: 999px;
  padding: 4px 10px;
  margin-bottom: 8px;
}
.dr9ohm-lc-unlock-badge.is-guest {
  color: #92400e;
  background: #fef3c7;
}
.dr9ohm-lc-unlock-inner h3 {
  margin: 0 0 10px;
  color: #0f4c81;
  font-size: 20px;
}
.dr9ohm-lc-unlock-inner ul {
  margin: 0 0 10px;
  padding-left: 20px;
  color: #334155;
  line-height: 1.7;
}
.dr9ohm-lc-locked-tip {
  color: #0f4c81;
  font-weight: 600;
}
.dr9ohm-lc-unlock-disc {
  margin: 0;
  font-size: 13px;
  color: #64748b;
}
.dr9ohm-lc-history {
  margin: 12px 0;
  padding: 12px;
  background: #f8fafc;
  border-radius: 10px;
  border: 1px solid #e2e8f0;
}
.dr9ohm-lc-history h4 {
  margin: 0 0 8px;
  font-size: 15px;
  color: #0f4c5c;
}
.dr9ohm-lc-history ul {
  margin: 0;
  padding-left: 18px;
  font-size: 13px;
  color: #475569;
}

/* Sticky mobile/desktop gate after quiz complete */
.dr9ohm-lc-sticky {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 2147482900;
  padding: 10px 12px calc(10px + env(safe-area-inset-bottom));
  background: rgba(255, 252, 247, 0.96);
  border-top: 1px solid #d7e3dc;
  box-shadow: 0 -8px 24px rgba(15, 76, 92, 0.12);
  font-family: 'Sarabun', 'Kanit', sans-serif;
}
.dr9ohm-lc-sticky[hidden] { display: none !important; }
.dr9ohm-lc-sticky-inner {
  max-width: 720px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-items: stretch;
}
.dr9ohm-lc-sticky-copy {
  flex: 1;
  min-width: 0;
  display: grid;
  gap: 2px;
  text-align: center;
}
.dr9ohm-lc-sticky-copy strong {
  font-size: 15px;
  color: #0f4c5c;
}
.dr9ohm-lc-sticky-copy span {
  font-size: 12px;
  color: #64748b;
  line-height: 1.35;
}
.dr9ohm-lc-sticky-btn {
  width: 100%;
  border: 1px solid #dadce0;
  border-radius: 999px;
  padding: 12px 16px;
  min-height: 52px;
  background: #fff;
  color: #3c4043;
  font-weight: 700;
  font-size: 16px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  box-shadow: 0 1px 3px rgba(60, 64, 67, 0.2);
}
.dr9ohm-lc-sticky-btn.dr9ohm-lc-gmail-btn {
  background: #fff;
  border-color: #dadce0;
  color: #1f1f1f;
}
body.dr9ohm-lc-has-sticky {
  padding-bottom: 118px;
}
body.dr9ohm-lc-modal-open .dr9ohm-lc-sticky {
  display: none !important;
}
#wwgHealthScore .wwg-cta.is-ready {
  animation: dr9ohmLcPulse 1.4s ease-in-out 2;
}
@keyframes dr9ohmLcPulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.03); }
}

/* Inline result + registration gate (no popup) */
.dr9ohm-lc-gate {
  margin: 20px 0 28px;
  font-family: 'Sarabun', 'Kanit', sans-serif;
}
.dr9ohm-lc-gate[hidden] { display: none !important; }
.dr9ohm-lc-gate-inner {
  border-radius: 20px;
  border: 1px solid #d5e5dc;
  background: #fffdf8;
  box-shadow: 0 12px 36px rgba(15, 76, 92, 0.1);
  overflow: hidden;
}
.dr9ohm-lc-gate-hero {
  padding: 22px 18px 18px;
  background: linear-gradient(135deg, #0f4c5c 0%, #1f7a5c 100%);
  color: #fff8e7;
}
.dr9ohm-lc-gate-kicker {
  font-size: 13px;
  opacity: 0.9;
  margin-bottom: 6px;
}
.dr9ohm-lc-gate-score {
  font-size: 40px;
  font-weight: 800;
  line-height: 1.1;
}
.dr9ohm-lc-gate-band {
  margin-top: 6px;
  font-size: 14px;
  color: #fff0b7;
}
.dr9ohm-lc-gate-hero h3 {
  margin: 12px 0 8px;
  font-size: 20px;
  line-height: 1.4;
  color: #fff;
}
.dr9ohm-lc-gate-intro {
  margin: 0;
  font-size: 15px;
  line-height: 1.65;
  color: rgba(255,248,231,0.95);
}
.dr9ohm-lc-gate-block {
  padding: 18px 18px 8px;
}
.dr9ohm-lc-gate-block h4 {
  margin: 0 0 10px;
  font-size: 17px;
  color: #0f4c5c;
}
.dr9ohm-lc-gate-block ul {
  margin: 0 0 12px;
  padding-left: 20px;
  color: #334155;
  line-height: 1.7;
  font-size: 15px;
}
.dr9ohm-lc-gate-next {
  margin: 0 0 10px;
  padding: 12px 14px;
  border-radius: 12px;
  background: #eef7f1;
  border: 1px solid #cfe3d8;
  color: #0f4c5c;
  font-weight: 600;
  line-height: 1.55;
  font-size: 14px;
}
.dr9ohm-lc-gate-disc {
  margin: 0 0 8px;
  font-size: 12px;
  color: #64748b;
  line-height: 1.5;
}
.dr9ohm-lc-urgency {
  margin: 0 16px 8px;
  padding: 14px;
  border-radius: 14px;
  display: flex;
  gap: 14px;
  align-items: center;
  background: linear-gradient(135deg, #fff4e5 0%, #ffe8cc 100%);
  border: 1px solid #f0c27a;
}
.dr9ohm-lc-urgency-num {
  flex: 0 0 auto;
  min-width: 72px;
  text-align: center;
  background: #fff;
  border-radius: 12px;
  padding: 8px 6px;
  border: 1px solid #f0c27a;
}
.dr9ohm-lc-urgency-num span {
  display: block;
  font-size: 28px;
  font-weight: 800;
  color: #b45309;
  line-height: 1.1;
}
.dr9ohm-lc-urgency-num small {
  font-size: 11px;
  color: #92400e;
}
.dr9ohm-lc-urgency-copy strong {
  display: block;
  color: #92400e;
  font-size: 15px;
  margin-bottom: 4px;
}
.dr9ohm-lc-urgency-copy p {
  margin: 0;
  font-size: 13px;
  line-height: 1.5;
  color: #78350f;
}
.dr9ohm-lc-benefits {
  background: #f0f7fc;
  border-top: 1px solid #d7e8f5;
  border-bottom: 1px solid #d7e8f5;
}
.dr9ohm-lc-gate-cta-copy {
  margin: 0 0 10px;
  font-size: 14px;
  font-weight: 600;
  color: #0f4c81;
}
.dr9ohm-lc-register {
  margin: 8px 0 8px;
  padding: 18px 16px 22px;
  border-radius: 18px;
  background: linear-gradient(165deg, #f7fbff 0%, #eef8f4 55%, #f8fafc 100%);
  border: 1px solid #cfe8de;
  box-shadow: 0 12px 28px rgba(15, 76, 92, 0.08);
}
.dr9ohm-lc-register h4 {
  color: #0f4c5c;
}
.dr9ohm-lc-google-wrap {
  margin: 0 0 6px;
  padding: 12px;
  border-radius: 14px;
  background: #fff;
  border: 1px solid #e2e8f0;
}
.dr9ohm-lc-google-wrap.is-busy {
  opacity: 0.65;
  pointer-events: none;
}
.dr9ohm-lc-gmail-hero {
  margin: 0 12px 14px;
  padding: 14px;
  border-radius: 16px;
  background: linear-gradient(165deg, #ffffff 0%, #eef8f4 100%);
  border: 1px solid #cfe8de;
  box-shadow: 0 10px 24px rgba(15, 76, 92, 0.1);
}
.dr9ohm-lc-gmail-hero-hint {
  margin: 10px 0 0;
  text-align: center;
  font-size: 13px;
  color: #0f4c81;
  font-weight: 600;
}
.dr9ohm-lc-gmail-shell {
  position: relative;
  width: 100%;
  min-height: 56px;
}
.dr9ohm-lc-gmail-mobile-label {
  display: none;
  text-align: center;
  font-weight: 800;
  font-size: 16px;
  color: #0f4c5c;
  margin: 0 0 8px;
}
.dr9ohm-lc-gmail-visual {
  pointer-events: none;
}
.dr9ohm-lc-gis-hit {
  position: absolute;
  inset: 0;
  z-index: 5;
  opacity: 0.02;
  overflow: hidden;
  border-radius: 999px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.dr9ohm-lc-gis-hit > div,
.dr9ohm-lc-gis-hit iframe {
  width: 100% !important;
  max-width: 100% !important;
  height: 56px !important;
  min-height: 56px !important;
  margin: 0 !important;
}
/* มือถือ: โชว์ปุ่ม Google จริงให้กดได้ชัด (prompt มักไม่ขึ้น) */
html.dr9ohm-lc-mobile .dr9ohm-lc-gmail-mobile-label {
  display: block;
}
html.dr9ohm-lc-mobile .dr9ohm-lc-gmail-visual {
  display: none !important;
}
html.dr9ohm-lc-mobile .dr9ohm-lc-gis-hit {
  position: relative;
  inset: auto;
  opacity: 1;
  min-height: 48px;
  justify-content: center;
}
html.dr9ohm-lc-mobile .dr9ohm-lc-sticky {
  z-index: 2147483000;
}
html.dr9ohm-lc-mobile .dr9ohm-lc-sticky .dr9ohm-lc-gis-hit {
  opacity: 1;
  position: relative;
}
.dr9ohm-lc-gmail-btn {
  width: 100%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  border: 1px solid #dadce0;
  border-radius: 999px;
  padding: 14px 18px;
  min-height: 54px;
  background: #fff;
  color: #1f1f1f;
  font-weight: 700;
  font-size: 16px;
  cursor: pointer;
  box-shadow: 0 1px 3px rgba(60, 64, 67, 0.22), 0 4px 12px rgba(15, 76, 92, 0.08);
  transition: box-shadow 0.15s ease, transform 0.15s ease;
}
.dr9ohm-lc-gmail-btn:hover {
  box-shadow: 0 2px 6px rgba(60, 64, 67, 0.28), 0 8px 18px rgba(15, 76, 92, 0.12);
}
.dr9ohm-lc-gmail-btn:active {
  transform: translateY(1px);
}
.dr9ohm-lc-gmail-btn.lg {
  min-height: 58px;
  font-size: 17px;
}
.dr9ohm-lc-gmail-btn[hidden] { display: none !important; }
.dr9ohm-lc-g-icon {
  display: inline-flex;
  flex: 0 0 auto;
  width: 22px;
  height: 22px;
}
.dr9ohm-lc-g-icon svg {
  display: block;
  width: 22px;
  height: 22px;
}
.dr9ohm-lc-gmail-btn-text {
  line-height: 1.2;
}
.dr9ohm-lc-google-btn {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 44px;
  width: 100%;
  margin-top: 10px;
}
.dr9ohm-lc-google-btn[hidden] { display: none !important; }
.dr9ohm-lc-google-btn > div {
  margin: 0 auto !important;
}
.dr9ohm-lc-google-confirm {
  margin-top: 12px;
  padding: 14px;
  border-radius: 12px;
  background: #ecfdf5;
  border: 1px solid #a7f3d0;
  display: grid;
  gap: 8px;
}
.dr9ohm-lc-google-confirm strong {
  color: #065f46;
  font-size: 15px;
}
.dr9ohm-lc-google-email {
  margin: 0;
  font-size: 15px;
  font-weight: 700;
  color: #0f4c5c;
  word-break: break-all;
}
.dr9ohm-lc-logged-in {
  margin: 0 0 14px;
  padding: 14px;
  border-radius: 12px;
  background: #eff6ff;
  border: 1px solid #bfdbfe;
  display: grid;
  gap: 8px;
}
.dr9ohm-lc-logged-in strong { color: #1e3a8a; }
.dr9ohm-lc-logged-in p {
  margin: 0;
  font-weight: 700;
  color: #0f4c5c;
  word-break: break-all;
}
.dr9ohm-lc-webview-warn {
  padding: 12px;
  border-radius: 12px;
  background: #fff7ed;
  border: 1px solid #fed7aa;
  color: #9a3412;
  font-size: 14px;
  line-height: 1.5;
}
.dr9ohm-lc-webview-warn strong {
  display: block;
  margin-bottom: 6px;
}
.dr9ohm-lc-webview-warn p { margin: 0; }
.dr9ohm-lc-reg-ok {
  margin: 0 0 14px;
  padding: 14px 16px;
  border-radius: 14px;
  background: linear-gradient(135deg, #ecfdf5 0%, #e0f2fe 100%);
  border: 1px solid #a7f3d0;
  color: #065f46;
}
.dr9ohm-lc-reg-ok strong {
  display: block;
  font-size: 17px;
  margin-bottom: 4px;
}
.dr9ohm-lc-reg-ok p {
  margin: 0;
  font-size: 14px;
  line-height: 1.5;
  color: #0f4c5c;
}
.dr9ohm-lc-divider {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 16px 0 12px;
  color: #64748b;
  font-size: 13px;
}
.dr9ohm-lc-divider::before,
.dr9ohm-lc-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: #dbe3ea;
}
.dr9ohm-lc-modal { display: none !important; }
