/**handles:glass-diagnostic**/
/* ============================================================ */
/* DIAGNOSTIC PROMO BAR — sitewide                              */
/* ============================================================ */

.gd-promo-bar {
  background: linear-gradient(90deg, #1a3fe3 0%, #6c5ce7 100%);
  padding: 0;
  position: relative;
  z-index: 100;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.gd-promo-bar-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 9px 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  position: relative;
}

.gd-promo-bar-icon {
  color: #FBBF24;
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
}

.gd-promo-bar-link {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  color: #ffffff;
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.4;
  transition: opacity 0.2s ease;
}

.gd-promo-bar-link:hover {
  color: #ffffff;
  opacity: 0.92;
  text-decoration: none;
}

.gd-promo-bar-text-mobile {
  display: none;
}

.gd-promo-bar-cta {
  font-weight: 600;
  color: #FBBF24;
  white-space: nowrap;
}

.gd-promo-bar-close {
  position: absolute;
  right: 1rem;
  top: 50%;
  transform: translateY(-50%);
  background: transparent;
  border: none;
  color: rgba(255, 255, 255, 0.7);
  cursor: pointer;
  padding: 6px;
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color 0.2s ease, background 0.2s ease;
}

.gd-promo-bar-close:hover {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.1);
}

@media (max-width: 768px) {
  .gd-promo-bar-inner {
    padding: 8px 2.5rem 8px 0.75rem;
    justify-content: flex-start;
  }
  .gd-promo-bar-icon {
    display: none;
  }
  .gd-promo-bar-link {
    font-size: 13px;
    gap: 0.4rem;
    flex-wrap: wrap;
  }
  .gd-promo-bar-text-desktop {
    display: none;
  }
  .gd-promo-bar-text-mobile {
    display: inline;
  }
  .gd-promo-bar-cta {
    font-size: 12px;
  }
  .gd-promo-bar-close {
    right: 0.5rem;
  }
}

/* ============================================================ */
/* OPPORTUNITY DIAGNOSTIC MODAL — sitewide                      */
/* ============================================================ */

.gd-diagnostic-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(10, 14, 30, 0.7);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  z-index: 9999;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  opacity: 0;
  transition: opacity 0.25s ease;
}

.gd-diagnostic-overlay.active {
  display: flex;
  opacity: 1;
}

.gd-diagnostic-modal {
  background: #ffffff;
  border-radius: 16px;
  width: 100%;
  max-width: 640px;
  max-height: calc(100vh - 3rem);
  overflow-y: auto;
  position: relative;
  padding: 3rem 2.5rem 2.5rem;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.25);
  transform: translateY(20px);
  transition: transform 0.25s ease;
}

.gd-diagnostic-overlay.active .gd-diagnostic-modal {
  transform: translateY(0);
}

.gd-diagnostic-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #f6f7f9;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #5a5a6a;
  transition: background 0.2s ease, color 0.2s ease;
}

.gd-diagnostic-close:hover {
  background: #e8e9ed;
  color: #1a1a2e;
}

.gd-diagnostic-progress {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: #f0f1f4;
  border-radius: 16px 16px 0 0;
  overflow: hidden;
}

.gd-diagnostic-progress-bar {
  height: 100%;
  background: linear-gradient(90deg, #1a4fd6 0%, #6c5ce7 100%);
  width: 0%;
  transition: width 0.3s ease;
}

.gd-diagnostic-screen {
  display: none;
  animation: gd-fade-in 0.3s ease;
}

.gd-diagnostic-screen.active {
  display: block;
}

@keyframes gd-fade-in {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

.gd-diagnostic-h2 {
  font-size: 28px;
  font-weight: 600;
  color: #1a1a2e;
  margin: 0 0 1rem;
  line-height: 1.25;
  letter-spacing: -0.015em;
}

.gd-diagnostic-lead {
  font-size: 16px;
  color: #4a4a5a;
  line-height: 1.6;
  margin: 0 0 2rem;
}

.gd-diagnostic-step {
  font-size: 12px;
  font-weight: 600;
  color: #1a4fd6;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin: 0 0 0.75rem;
}

.gd-diagnostic-question {
  font-size: 22px;
  font-weight: 600;
  color: #1a1a2e;
  margin: 0 0 0.75rem;
  line-height: 1.3;
  letter-spacing: -0.01em;
}

.gd-diagnostic-context {
  font-size: 14px;
  color: #6a6a7a;
  margin: 0 0 1.75rem;
  line-height: 1.55;
}

.gd-diagnostic-microcopy {
  font-size: 12px;
  color: #8a8a9a;
  margin: 1rem 0 0;
  font-style: italic;
}

.gd-diagnostic-options {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.gd-diagnostic-option {
  background: #ffffff;
  border: 1.5px solid #e8e9ed;
  border-radius: 10px;
  padding: 1rem 1.25rem;
  text-align: left;
  font-size: 15px;
  font-weight: 500;
  color: #2a2a3a;
  cursor: pointer;
  transition: all 0.2s ease;
  width: 100%;
  font-family: inherit;
  line-height: 1.4;
}

.gd-diagnostic-option:hover {
  border-color: #1a4fd6;
  background: #f5f8fe;
  transform: translateX(2px);
}

.gd-diagnostic-option:active {
  transform: scale(0.99);
}

.gd-diagnostic-other-wrap {
  margin-top: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.gd-diagnostic-other-input {
  width: 100%;
  padding: 1rem 1.25rem;
  border: 1.5px solid #1a4fd6;
  border-radius: 10px;
  font-size: 15px;
  font-family: inherit;
  background: #ffffff;
  color: #1a1a2e;
}

.gd-diagnostic-other-input:focus {
  outline: none;
  border-color: #1340af;
}

.gd-diagnostic-cta {
  border: none;
  border-radius: 10px;
  padding: 0.95rem 1.75rem;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  font-family: inherit;
  display: inline-block;
  text-decoration: none;
}

.gd-diagnostic-cta-primary {
  background: #1a4fd6;
  color: #ffffff;
}

.gd-diagnostic-cta-primary:hover {
  background: #1340af;
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(26, 79, 214, 0.3);
}

.gd-diagnostic-cta-secondary {
  background: transparent;
  color: #1a4fd6;
  border: 1.5px solid #1a4fd6;
}

.gd-diagnostic-cta-secondary:hover {
  background: #f5f8fe;
}

.gd-diagnostic-result-headline {
  font-size: 28px;
  font-weight: 600;
  color: #1a1a2e;
  margin: 0 0 1rem;
  line-height: 1.25;
  letter-spacing: -0.015em;
}

.gd-diagnostic-result-headline strong {
  color: #1a4fd6;
  font-weight: 600;
}

.gd-diagnostic-result-headline.gd-result-ppc strong {
  color: #1d9e75;
}

.gd-diagnostic-result-headline.gd-result-affiliate strong {
  color: #6c5ce7;
}

.gd-diagnostic-result-summary {
  font-size: 16px;
  color: #4a4a5a;
  line-height: 1.6;
  margin: 0 0 1.75rem;
}

.gd-diagnostic-working {
  background: #f6f7f9;
  border-radius: 10px;
  padding: 1.25rem 1.5rem;
  margin-bottom: 1.75rem;
}

.gd-diagnostic-working-title {
  font-size: 12px;
  font-weight: 600;
  color: #6a6a7a;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin: 0 0 0.75rem;
}

.gd-diagnostic-working-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.gd-diagnostic-working-list li {
  font-size: 14px;
  color: #3a3a4a;
  line-height: 1.5;
  padding-left: 1.25rem;
  position: relative;
}

.gd-diagnostic-working-list li::before {
  content: "→";
  position: absolute;
  left: 0;
  color: #1a4fd6;
  font-weight: 600;
}

.gd-diagnostic-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
  margin-bottom: 1.75rem;
}

.gd-diagnostic-stat {
  background: linear-gradient(135deg, #1a4fd6 0%, #1340af 100%);
  color: #ffffff;
  padding: 1.25rem 1.25rem;
  border-radius: 10px;
}

.gd-diagnostic-result-headline.gd-result-ppc ~ .gd-diagnostic-stats .gd-diagnostic-stat {
  background: linear-gradient(135deg, #1d9e75 0%, #167e5e 100%);
}

.gd-diagnostic-result-headline.gd-result-affiliate ~ .gd-diagnostic-stats .gd-diagnostic-stat {
  background: linear-gradient(135deg, #6c5ce7 0%, #5848c2 100%);
}

.gd-diagnostic-stat-value {
  font-size: 28px;
  font-weight: 700;
  line-height: 1;
  margin: 0 0 0.4rem;
  color: #FBBF24;
  font-variant-numeric: tabular-nums;
  font-feature-settings: "tnum" 1;
}

.gd-diagnostic-stat-label {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.85);
  line-height: 1.4;
  margin: 0;
}

.gd-diagnostic-actions {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  margin-bottom: 1rem;
}

.gd-diagnostic-actions .gd-diagnostic-cta {
  width: 100%;
  text-align: center;
}

.gd-diagnostic-email-form {
  margin-top: 1rem;
  padding-top: 1.5rem;
  border-top: 1px solid #e8e9ed;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.gd-diagnostic-email-label {
  font-size: 13px;
  color: #6a6a7a;
  margin: 0;
  line-height: 1.5;
}

.gd-diagnostic-email-input {
  width: 100%;
  padding: 0.95rem 1.25rem;
  border: 1.5px solid #e8e9ed;
  border-radius: 10px;
  font-size: 15px;
  font-family: inherit;
  background: #ffffff;
  color: #1a1a2e;
}

.gd-diagnostic-email-input:focus {
  outline: none;
  border-color: #1a4fd6;
}

.gd-diagnostic-email-confirm {
  font-size: 14px;
  color: #0F6E2E;
  margin: 0;
  font-weight: 500;
}

.gd-diagnostic-restart {
  background: none;
  border: none;
  color: #6a6a7a;
  font-size: 13px;
  cursor: pointer;
  padding: 0.5rem 0;
  margin-top: 1rem;
  text-decoration: underline;
  font-family: inherit;
}

.gd-diagnostic-restart:hover {
  color: #1a4fd6;
}

/* Hero secondary CTA (homepage only, kept here for reference) */
.gd-hero-secondary-cta {
  display: inline-block;
  margin-top: 0.75rem;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.85);
  text-decoration: underline;
  text-underline-offset: 3px;
  font-weight: 500;
  transition: color 0.2s ease;
}

.gd-hero-secondary-cta:hover {
  color: #ffffff;
}

/* Mobile */
@media (max-width: 640px) {
  .gd-diagnostic-modal {
    padding: 2.5rem 1.5rem 2rem;
    max-height: calc(100vh - 1rem);
  }

  .gd-diagnostic-h2 {
    font-size: 22px;
  }

  .gd-diagnostic-question {
    font-size: 18px;
  }

  .gd-diagnostic-result-headline {
    font-size: 22px;
  }

  .gd-diagnostic-stats {
    grid-template-columns: 1fr;
  }

  .gd-diagnostic-stat-value {
    font-size: 24px;
  }
}

/* Homepage-specific promo bar treatment */
body.home .gd-promo-bar,
body.front-page .gd-promo-bar {
  background: linear-gradient(90deg, #0c1429 0%, #1a1f3a 50%, #2a1f4a 100%);
  border-bottom: 1px solid rgba(251, 191, 36, 0.2);
  position: relative;
  overflow: hidden;
}

body.home .gd-promo-bar::before,
body.front-page .gd-promo-bar::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 200px;
  height: 100%;
  background: linear-gradient(90deg, rgba(251, 191, 36, 0.15) 0%, transparent 100%);
  pointer-events: none;
}

body.home .gd-promo-bar::after,
body.front-page .gd-promo-bar::after {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  width: 200px;
  height: 100%;
  background: linear-gradient(270deg, rgba(108, 92, 231, 0.2) 0%, transparent 100%);
  pointer-events: none;
}

body.home .gd-promo-bar-icon,
body.front-page .gd-promo-bar-icon {
  color: #FBBF24;
  filter: drop-shadow(0 0 4px rgba(251, 191, 36, 0.4));
}

body.home .gd-promo-bar-cta,
body.front-page .gd-promo-bar-cta {
  color: #FBBF24;
  text-shadow: 0 0 8px rgba(251, 191, 36, 0.3);
}