/* ==========================================================================
   GeoPulse AI / OLAB Assist - Components CSS
   Styling for OLAB Assist Uploaded App Icon, Google-style Hero, Scanner,
   Scorecards, Dashboard, Code Package Generator, Auth Modal & Subscriptions
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. NAVBAR & OLAB ASSIST BRANDING
   -------------------------------------------------------------------------- */
.navbar {
  width: 100%;
  padding: 1.25rem 2rem;
  position: relative;
  z-index: 50;
}

.nav-container {
  max-width: 1240px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  color: var(--text-main);
  font-size: 1.4rem;
  letter-spacing: normal;
}

/* OLAB Uploaded App Icon Styles */
.logo-app-icon-wrapper {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 15px rgba(96, 165, 250, 0.3);
  transition: var(--transition-fast);
}

.logo-app-icon {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 12px;
}

.brand-logo:hover .logo-app-icon-wrapper {
  transform: scale(1.08) rotate(5deg);
  box-shadow: 0 0 25px rgba(192, 132, 252, 0.5);
}

.brand-text {
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.brand-bold {
  font-weight: 800;
  color: #FFFFFF;
  letter-spacing: normal;
  font-size: 1.45rem;
}

.brand-light {
  font-weight: 400;
  color: var(--text-secondary);
  font-size: 1.45rem;
}

.brand-badge {
  font-size: 0.65rem;
  font-family: var(--font-mono);
  font-weight: 800;
  padding: 2px 7px;
  border-radius: 6px;
  background: linear-gradient(135deg, rgba(96, 165, 250, 0.2), rgba(192, 132, 252, 0.3));
  color: var(--lilac-accent);
  border: 1px solid rgba(192, 132, 252, 0.4);
  margin-left: 2px;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
}

/* Language Dropdown Switcher */
.lang-toggle-container {
  position: relative;
}

.lang-btn {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.5rem 0.9rem;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-card);
  border-radius: 9999px;
  color: var(--text-secondary);
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition-fast);
}

.lang-btn:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #FFFFFF;
  border-color: rgba(255, 255, 255, 0.2);
}

.lang-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  width: 160px;
  background: #111827;
  border: 1px solid var(--border-card);
  border-radius: 12px;
  padding: 0.4rem;
  box-shadow: var(--shadow-card);
  z-index: 100;
  backdrop-filter: var(--glass-backdrop);
}

.lang-option {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.5rem 0.75rem;
  background: transparent;
  border: none;
  color: var(--text-secondary);
  font-size: 0.85rem;
  font-weight: 500;
  border-radius: 8px;
  cursor: pointer;
  text-align: left;
  transition: var(--transition-fast);
}

.lang-option:hover {
  background: rgba(59, 130, 246, 0.15);
  color: #FFFFFF;
}

.nav-login-btn {
  font-size: 0.85rem;
  padding: 0.5rem 1rem;
}

.google-icon {
  margin-right: 2px;
}

/* User Profile Menu */
.user-profile-menu {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.3rem 0.6rem 0.3rem 0.3rem;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-card);
  border-radius: 9999px;
}

.user-avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  object-fit: cover;
}

.user-name {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-main);
}

.logout-icon-btn {
  background: transparent;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  display: flex;
  align-items: center;
  padding: 2px;
}

.logout-icon-btn:hover {
  color: var(--rose-danger);
}


/* --------------------------------------------------------------------------
   2. HERO VIEW (MINIMALIST OLAB ASSIST SEARCH)
   -------------------------------------------------------------------------- */
#view-home {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: calc(85vh - 80px);
}

.hero-center-container {
  max-width: 820px;
  margin: 0 auto;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* Hero App Icon Badge */
.hero-app-icon-wrapper {
  width: 84px;
  height: 84px;
  border-radius: 22px;
  margin-bottom: 1.25rem;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(96, 165, 250, 0.35), 0 0 40px rgba(192, 132, 252, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.15);
  animation: heroIconFloat 4s ease-in-out infinite alternate;
}

.hero-app-icon {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

@keyframes heroIconFloat {
  0% { transform: translateY(0) scale(0.98); }
  100% { transform: translateY(-8px) scale(1.02); box-shadow: 0 15px 40px rgba(192, 132, 252, 0.45); }
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 1rem;
  border-radius: 9999px;
  background: rgba(139, 92, 246, 0.1);
  border: 1px solid rgba(192, 132, 252, 0.3);
  color: var(--lilac-accent);
  font-size: 0.82rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
}

.badge-pulse {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: var(--lilac-accent);
  box-shadow: 0 0 10px var(--lilac-accent);
  animation: pulseDot 2s infinite;
}

@keyframes pulseDot {
  0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(192, 132, 252, 0.7); }
  70% { transform: scale(1); box-shadow: 0 0 0 8px rgba(192, 132, 252, 0); }
  100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(192, 132, 252, 0); }
}

.hero-title {
  font-size: 3.15rem;
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: normal;
  margin-bottom: 1.25rem;
}

.hero-subtitle {
  font-size: 1.15rem;
  color: var(--text-secondary);
  max-width: 660px;
  margin-bottom: 2.25rem;
  line-height: 1.6;
  text-wrap: balance;
}

/* Minimalist Search Box (Google style with AI Glow) */
.domain-search-card {
  width: 100%;
  max-width: 640px;
  margin-bottom: 1.5rem;
}

.search-input-wrapper {
  position: relative;
  display: flex;
  align-items: center;
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: 9999px;
  padding: 6px 8px 6px 1.25rem;
  box-shadow: 0 15px 35px -10px rgba(0, 0, 0, 0.5), 0 0 25px rgba(59, 130, 246, 0.1);
  backdrop-filter: var(--glass-backdrop);
  transition: var(--transition-normal);
}

.search-input-wrapper:focus-within {
  border-color: var(--blue-primary);
  box-shadow: 0 15px 40px -10px rgba(59, 130, 246, 0.25), 0 0 35px rgba(192, 132, 252, 0.25);
  background: rgba(15, 23, 42, 0.95);
}

.search-input-icon {
  width: 22px;
  height: 22px;
  color: var(--text-muted);
  margin-right: 0.75rem;
  flex-shrink: 0;
}

.domain-input {
  flex: 1;
  background: transparent;
  border: none;
  outline: none;
  color: #FFFFFF;
  font-family: var(--font-sans);
  font-size: 1.1rem;
  font-weight: 500;
}

.domain-input::placeholder {
  color: var(--text-muted);
}

.search-submit-btn {
  padding: 0.85rem 1.75rem;
  font-size: 1rem;
  border-radius: 9999px;
}

.search-error-msg {
  color: var(--rose-danger);
  font-size: 0.85rem;
  margin-top: 0.5rem;
  font-weight: 500;
}

/* Frictionless guarantee chips */
.frictionless-chips {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  color: var(--text-muted);
  font-size: 0.88rem;
  margin-bottom: 2.5rem;
  flex-wrap: wrap;
  justify-content: center;
}

.hero-free-note {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  margin: 0 0 1.15rem;
  color: var(--text-main);
  font-size: 0.96rem;
  line-height: 1.45;
  text-align: center;
  flex-wrap: wrap;
}

.hero-domain-note {
  max-width: 660px;
  margin: -1.45rem auto 1.15rem;
  color: var(--text-secondary);
  font-size: 0.92rem;
  line-height: 1.5;
  text-align: center;
  text-wrap: balance;
}

.hero-free-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.38rem 0.72rem;
  border-radius: 999px;
  background: linear-gradient(135deg, #10b981, #22c55e);
  color: #ffffff;
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  box-shadow: 0 12px 28px -18px rgba(34, 197, 94, 0.9);
}

.chip-item {
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.chip-icon {
  width: 16px;
  height: 16px;
  color: var(--emerald-accent);
}

.chip-divider {
  color: var(--text-dim);
}

/* AI Models Bar */
.ai-models-bar {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  justify-content: center;
}

.ai-models-label {
  font-size: 0.82rem;
  color: var(--text-muted);
  font-weight: 500;
}

.ai-model-chips {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.model-chip {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.3rem 0.75rem;
  border-radius: 9999px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  font-size: 0.8rem;
  color: var(--text-secondary);
  font-weight: 500;
}

.model-chip i {
  width: 14px;
  height: 14px;
  color: var(--blue-primary);
}


/* --------------------------------------------------------------------------
   3. LIVE SCANNER PROGRESS VIEW
   -------------------------------------------------------------------------- */
#view-scanning {
  max-width: 680px;
  margin: 2rem auto;
}

.scanner-container {
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: 24px;
  padding: 2.5rem;
  backdrop-filter: var(--glass-backdrop);
  box-shadow: var(--shadow-card);
}

/* Radar scanner visual */
.radar-scan-wrapper {
  position: relative;
  width: 76px;
  height: 76px;
  margin: 0 auto 1.5rem auto;
  display: flex;
  align-items: center;
  justify-content: center;
}

.radar-circle {
  position: absolute;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  border: 2px solid rgba(139, 92, 246, 0.3);
  background: rgba(139, 92, 246, 0.05);
}

.radar-sweep {
  position: absolute;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: conic-gradient(from 0deg, transparent 0%, transparent 60%, rgba(192, 132, 252, 0.4) 100%);
  animation: radarRotate 2s linear infinite;
}

@keyframes radarRotate {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

.radar-center-app-icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  z-index: 2;
  box-shadow: 0 0 15px rgba(96, 165, 250, 0.5);
}

.scan-title {
  font-size: 1.6rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.scan-subtitle {
  color: var(--text-muted);
  font-size: 0.92rem;
  margin-bottom: 2rem;
}

/* Progress track */
.progress-box {
  margin-bottom: 2rem;
}

.progress-bar-track {
  width: 100%;
  height: 10px;
  background: rgba(255, 255, 255, 0.06);
  border-radius: 9999px;
  overflow: hidden;
  margin-bottom: 0.75rem;
}

.progress-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--blue-primary) 0%, var(--lilac-accent) 100%);
  border-radius: 9999px;
  transition: width 0.4s ease;
  box-shadow: 0 0 12px var(--blue-primary);
}

.progress-stats {
  display: flex;
  justify-content: space-between;
  font-size: 0.85rem;
}

.scan-step-current {
  color: var(--text-secondary);
  font-weight: 500;
}

.scan-percent {
  font-family: var(--font-mono);
  color: var(--lilac-accent);
  font-weight: 700;
}

/* Scan Checklist Items */
.scan-checklist {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.scan-checklist-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.85rem 1.25rem;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.04);
  transition: var(--transition-fast);
}

.scan-checklist-item.active {
  background: rgba(59, 130, 246, 0.08);
  border-color: rgba(59, 130, 246, 0.3);
}

.scan-checklist-item.completed {
  background: rgba(16, 185, 129, 0.06);
  border-color: rgba(16, 185, 129, 0.2);
}

.step-status-icon {
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
}

.scan-checklist-item.active .step-status-icon { color: var(--blue-primary); }
.scan-checklist-item.completed .step-status-icon { color: var(--emerald-accent); }

.step-name {
  display: block;
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--text-main);
}

.step-desc {
  display: block;
  font-size: 0.8rem;
  color: var(--text-muted);
}


/* --------------------------------------------------------------------------
   4. FREE REPORT VIEW (7 SCORE CARDS & CURIOSITY GAP CTA)
   -------------------------------------------------------------------------- */
.report-container {
  max-width: 1140px;
  margin: 0 auto;
}

.report-header-card {
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: 24px;
  padding: 1.25rem 1.6rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  margin-bottom: 1.35rem;
  box-shadow: var(--shadow-card);
  backdrop-filter: var(--glass-backdrop);
}

.audited-domain-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0;
  color: #93C5FD;
  font-family: var(--font-mono);
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
}

.new-query-btn {
  padding: 0.42rem 0.8rem;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.08);
  color: var(--text-main);
  font: inherit;
  font-size: 0.72rem;
  font-weight: 700;
  cursor: pointer;
  transition: var(--transition-fast);
}

.new-query-btn:hover {
  background: rgba(255, 255, 255, 0.16);
  border-color: rgba(255, 255, 255, 0.38);
}

.report-main-title {
  font-size: 1.45rem;
  font-weight: 800;
  margin-bottom: 0.4rem;
}

.report-main-subtitle {
  color: var(--text-secondary);
  font-size: 0.82rem;
}

/* Gauge Meter SVG */
.overall-score-box {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.score-ring-wrapper {
  position: relative;
  width: 70px;
  height: 70px;
}

.score-ring-svg {
  width: 100%;
  height: 100%;
  transform: rotate(-90deg);
}

.ring-bg {
  fill: none;
  stroke: rgba(255, 255, 255, 0.08);
  stroke-width: 8;
}

.ring-fill {
  fill: none;
  stroke: url(#scoreGradient);
  stroke-width: 8;
  stroke-linecap: round;
  transition: stroke-dashoffset 1s ease-in-out;
}

.ring-content {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.score-number {
  font-size: 1.35rem;
  font-weight: 800;
  line-height: 1;
}

.score-max {
  font-size: 0.7rem;
  color: var(--text-muted);
}

.overall-label-title {
  display: block;
  font-size: 0.66rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.3rem;
}

.overall-status-badge {
  display: inline-block;
  padding: 0.3rem 0.8rem;
  border-radius: 9999px;
  font-size: 0.68rem;
  font-weight: 700;
}

.badge-warning {
  background: rgba(245, 158, 11, 0.15);
  color: var(--amber-warning);
  border: 1px solid rgba(245, 158, 11, 0.3);
}

.badge-good {
  background: rgba(16, 185, 129, 0.15);
  color: var(--emerald-accent);
  border: 1px solid rgba(16, 185, 129, 0.3);
}

.section-heading {
  margin-bottom: 1.25rem;
}

.section-heading h3 {
  font-size: 1.05rem;
  font-weight: 700;
}

.heading-desc {
  font-size: 0.76rem;
  color: var(--text-muted);
}

/* 3-by-3 report card grid */
.scorecards-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}

.card-item {
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: 14px;
  padding: 0.65rem;
  transition: var(--transition-fast);
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  min-width: 0;
}

.card-item:hover {
  transform: translateY(-3px);
  border-color: var(--border-hover);
  background: var(--bg-card-hover);
}

.card-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 0.45rem;
}

.card-icon-box {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-card);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--blue-primary);
}

.card-score-badge {
  font-family: var(--font-mono);
  font-size: 0.76rem;
  font-weight: 700;
  padding: 0.16rem 0.4rem;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.05);
}

.card-title {
  font-size: 0.82rem;
  font-weight: 700;
  margin-bottom: 0.4rem;
}

.card-result-text {
  font-size: 0.76rem;
  color: var(--text-secondary);
  line-height: 1.5;
}

.report-score-card {
  border-left-width: 3px;
}

.report-score-card.score-good {
  border-color: rgba(16, 185, 129, 0.58);
  background: linear-gradient(145deg, rgba(6, 78, 59, 0.46), rgba(17, 24, 39, 0.86));
}

.report-score-card.score-average {
  border-color: rgba(245, 158, 11, 0.58);
  background: linear-gradient(145deg, rgba(120, 53, 15, 0.42), rgba(17, 24, 39, 0.86));
}

.report-score-card.score-poor {
  border-color: rgba(239, 68, 68, 0.58);
  background: linear-gradient(145deg, rgba(127, 29, 29, 0.42), rgba(17, 24, 39, 0.86));
}

.report-score-card.score-neutral {
  border-color: rgba(148, 163, 184, 0.38);
}

.report-card-toggle {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto auto auto;
  align-items: center;
  gap: 0.45rem;
  width: 100%;
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  text-align: left;
  cursor: pointer;
}

.report-card-heading {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 0.12rem;
}

.report-card-kicker,
.report-card-status {
  color: var(--text-muted);
  font-family: var(--font-mono);
  font-size: 0.6rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.score-good .report-card-status { color: var(--emerald-accent); }
.score-average .report-card-status { color: var(--amber-warning); }
.score-poor .report-card-status { color: var(--rose-danger); }

.report-card-plus {
  color: var(--text-muted);
  font-size: 1rem;
  line-height: 1;
}

.report-card-panel {
  margin: 0.55rem 0.1rem 0.1rem 2.05rem;
}

.report-card-panel[hidden],
.btn[hidden] { display: none !important; }

.report-offers-section {
  margin: 0 0 1.7rem;
}

.report-offer-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
}

.report-offer-card {
  padding: 0.85rem 1rem;
  border: 1px solid rgba(192, 132, 252, 0.34);
  border-radius: 14px;
  background: rgba(30, 27, 75, 0.46);
}

.report-offer-agency {
  border-color: rgba(56, 189, 248, 0.34);
  background: rgba(8, 47, 73, 0.4);
}

.report-offer-kicker {
  color: var(--lilac-accent);
  font-family: var(--font-mono);
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.06em;
}

.report-offer-agency .report-offer-kicker { color: #7dd3fc; }

.report-offer-card h4 {
  margin: 0.22rem 0 0.28rem;
  font-size: 0.9rem;
}

.report-offer-card p {
  min-height: 2.4em;
  margin: 0 0 0.65rem;
  color: var(--text-secondary);
  font-size: 0.76rem;
  line-height: 1.45;
}

.report-offer-price-tr {
  min-height: 0 !important;
  margin: 0 0 0.55rem !important;
  color: var(--text-main) !important;
  font-weight: 700;
}

.report-offer-discount {
  display: inline-block;
  margin-bottom: 0.65rem;
  padding: 0.25rem 0.55rem;
  border-radius: 9999px;
  background: rgba(16, 185, 129, 0.16);
  color: var(--emerald-accent);
  font-size: 0.7rem;
  font-weight: 800;
}

.launch-coupon-box {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  margin-top: 0.8rem;
  padding: 0.75rem 1rem;
  border: 1px dashed rgba(16, 185, 129, 0.5);
  border-radius: 12px;
  background: rgba(16, 185, 129, 0.08);
  color: var(--text-secondary);
  font-size: 0.78rem;
}

.launch-coupon-box code {
  color: var(--emerald-accent);
  font-family: var(--font-mono);
  font-weight: 800;
  letter-spacing: 0.08em;
}

.launch-coupon-box small {
  color: var(--text-muted);
}

.report-offer-cta {
  padding: 0.35rem 0.65rem;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.06);
  color: var(--text-muted);
  font-size: 0.7rem;
}

/* 3 Open Key Findings Cards */
.findings-container {
  margin-bottom: 3rem;
}

.findings-cards-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.finding-card {
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: 16px;
  padding: 1.25rem 1.5rem;
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

.finding-card.warning-border {
  border-left: 4px solid var(--amber-warning);
}

.finding-num-badge {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(245, 158, 11, 0.15);
  color: var(--amber-warning);
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.finding-body {
  flex: 1;
}

.finding-body h4 {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 0.25rem;
}

.finding-body p {
  font-size: 0.88rem;
  color: var(--text-secondary);
}

.finding-impact {
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.25rem 0.75rem;
  border-radius: 9999px;
  text-transform: uppercase;
}

.badge-high {
  background: rgba(239, 68, 68, 0.15);
  color: var(--rose-danger);
  border: 1px solid rgba(239, 68, 68, 0.3);
}

.badge-medium {
  background: rgba(245, 158, 11, 0.15);
  color: var(--amber-warning);
  border: 1px solid rgba(245, 158, 11, 0.3);
}

/* CURIOSITY GAP & PAID CTA BANNER */
.conversion-banner-card {
  position: relative;
  background: linear-gradient(135deg, rgba(17, 24, 39, 0.95) 0%, rgba(30, 27, 75, 0.95) 100%);
  border: 1px solid var(--border-glow);
  border-radius: 28px;
  padding: 2.5rem;
  box-shadow: 0 20px 50px -10px rgba(139, 92, 246, 0.25);
  overflow: hidden;
}

.conversion-banner-glow {
  position: absolute;
  top: -50px;
  right: -50px;
  width: 250px;
  height: 250px;
  background: radial-gradient(circle, rgba(192, 132, 252, 0.3) 0%, transparent 70%);
  pointer-events: none;
}

.curiosity-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 1.1rem;
  border-radius: 9999px;
  background: rgba(16, 185, 129, 0.15);
  border: 1px solid rgba(16, 185, 129, 0.35);
  color: #6EE7B7;
  font-size: 0.9rem;
  font-weight: 700;
  margin-bottom: 1.25rem;
}

.curiosity-icon {
  width: 18px;
  height: 18px;
}

.conversion-title {
  font-size: 1.8rem;
  font-weight: 800;
  margin-bottom: 1.75rem;
}

.report-value-split {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 1.5rem;
  align-items: center;
  margin-bottom: 2.25rem;
}

.split-box {
  background: rgba(0, 0, 0, 0.25);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 18px;
  padding: 1.5rem;
}

.free-box {
  border-color: rgba(255, 255, 255, 0.1);
}

.paid-box {
  border-color: rgba(192, 132, 252, 0.4);
  background: rgba(139, 92, 246, 0.08);
}

.split-label {
  display: block;
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  margin-bottom: 0.5rem;
}

.free-label { color: var(--text-muted); }
.paid-label { color: var(--lilac-accent); }

.split-desc {
  font-size: 0.95rem;
  color: var(--text-secondary);
  margin-bottom: 1rem;
}

.split-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  font-size: 0.88rem;
}

.split-list li {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.check-green { color: var(--emerald-accent); width: 16px; height: 16px; }
.check-purple { color: var(--lilac-accent); width: 16px; height: 16px; }

.split-divider-icon {
  color: var(--text-muted);
  font-size: 1.5rem;
}

/* CTA Bar */
.conversion-cta-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 20px;
  padding: 1rem 1.5rem;
  margin-bottom: 1rem;
  flex-wrap: wrap;
}

.price-amount {
  font-size: 2.2rem;
  font-weight: 800;
  color: #FFFFFF;
  line-height: 1;
  display: block;
}

.price-sub {
  font-size: 0.78rem;
  color: var(--text-muted);
}

.unlock-cta-btn {
  padding: 1.1rem 2.25rem;
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: normal;
}

.guarantee-footer {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-size: 0.82rem;
  color: var(--text-muted);
}


/* --------------------------------------------------------------------------
   5. PHASE 2: PAID DASHBOARD & TABS
   -------------------------------------------------------------------------- */
.dashboard-container {
  max-width: 1200px;
  margin: 0 auto;
}

.dash-welcome-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 2rem;
  flex-wrap: wrap;
  gap: 1rem;
}

.unlocked-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.3rem 0.8rem;
  border-radius: 9999px;
  background: rgba(16, 185, 129, 0.15);
  border: 1px solid rgba(16, 185, 129, 0.3);
  color: #6EE7B7;
  font-size: 0.8rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.dash-title {
  font-size: 2.2rem;
  font-weight: 800;
}

.dash-welcome-right {
  display: flex;
  gap: 0.75rem;
}

/* Tabs Bar */
.dash-tabs-bar {
  display: flex;
  gap: 0.5rem;
  border-bottom: 1px solid var(--border-card);
  margin-bottom: 2rem;
  overflow-x: auto;
  padding-bottom: 2px;
}

.dash-tab {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.85rem 1.25rem;
  background: transparent;
  border: none;
  border-bottom: 2px solid transparent;
  color: var(--text-muted);
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  transition: var(--transition-fast);
}

.dash-tab:hover {
  color: var(--text-main);
}

.dash-tab.active {
  color: var(--lilac-accent);
  border-bottom-color: var(--lilac-accent);
}

.tab-pane.hidden { display: none !important; }
.tab-pane.active { display: block; }

.pane-header {
  margin-bottom: 1.5rem;
}

.pane-header h3 {
  font-size: 1.4rem;
  font-weight: 700;
}

.pane-sub {
  color: var(--text-secondary);
  font-size: 0.9rem;
}

/* Tab 1: Issues Table */
.issues-table-container {
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: 18px;
  overflow: hidden;
}

.issues-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
}

.issues-table th {
  padding: 1rem 1.25rem;
  background: rgba(255, 255, 255, 0.03);
  font-size: 0.82rem;
  text-transform: uppercase;
  color: var(--text-muted);
  letter-spacing: 0.05em;
  border-bottom: 1px solid var(--border-card);
}

.issues-table td {
  padding: 1rem 1.25rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  font-size: 0.9rem;
}

/* Tab 2: Competitors */
.comp-table-card {
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: 18px;
  overflow: hidden;
  margin-bottom: 1.5rem;
}

.comp-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
}

.comp-table th, .comp-table td {
  padding: 1rem 1.25rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.comp-insights-card {
  background: rgba(245, 158, 11, 0.08);
  border: 1px solid rgba(245, 158, 11, 0.25);
  border-radius: 16px;
  padding: 1.25rem 1.5rem;
}

.insights-title {
  font-size: 1.05rem;
  margin-bottom: 0.4rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

/* Tab 3: Prompts Matrix */
.prompts-matrix-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
  gap: 1.25rem;
}

.prompt-card {
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: 16px;
  padding: 1.25rem;
}

.prompt-header {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--lilac-accent);
  margin-bottom: 0.75rem;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.prompt-response-box {
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 12px;
  padding: 0.85rem;
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.5;
}

/* Tab 4: Content Rewrites */
.content-recommendations-list {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.rewrite-card {
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: 16px;
  padding: 1.4rem;
}

.rewrite-title {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
}

.rewrite-box {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid rgba(139, 92, 246, 0.2);
  padding: 1rem;
  border-radius: 12px;
  color: #A7F3D0;
}

/* Tab 5: Code Package Editor */
.pane-header-flex {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}

.code-actions {
  display: flex;
  gap: 0.75rem;
}

.code-editor-card {
  background: #0D1117;
  border: 1px solid var(--border-card);
  border-radius: 18px;
  overflow: hidden;
  box-shadow: var(--shadow-card);
}

.code-editor-subtabs {
  display: flex;
  background: #161B22;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  overflow-x: auto;
}

.code-subtab {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.75rem 1.25rem;
  background: transparent;
  border: none;
  border-bottom: 2px solid transparent;
  color: var(--text-muted);
  font-family: var(--font-mono);
  font-size: 0.85rem;
  cursor: pointer;
}

.code-subtab.active {
  color: var(--lilac-accent);
  background: rgba(255, 255, 255, 0.03);
  border-bottom-color: var(--lilac-accent);
}

.code-editor-body {
  padding: 1.5rem;
}

.code-file-path {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 1rem;
}

.code-syntax-block {
  font-family: var(--font-mono);
  font-size: 0.88rem;
  color: #E2E8F0;
  line-height: 1.6;
  white-space: pre-wrap;
  word-break: break-word;
}

/* Subscription Upsell Banner */
.subscription-upsell-banner {
  background: linear-gradient(135deg, rgba(17, 24, 39, 0.8) 0%, rgba(30, 41, 59, 0.9) 100%);
  border: 1px solid var(--border-card);
  border-radius: 24px;
  padding: 2.25rem;
  margin-top: 3.5rem;
}

.upsell-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.3rem 0.8rem;
  border-radius: 9999px;
  background: rgba(139, 92, 246, 0.15);
  color: var(--lilac-accent);
  font-size: 0.8rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

.upsell-body-flex {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 2rem;
  align-items: center;
}

.upsell-text h3 {
  font-size: 1.5rem;
  font-weight: 800;
  margin-bottom: 0.5rem;
}

.upsell-text p {
  color: var(--text-secondary);
  font-size: 0.9rem;
}

.upsell-plans-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.upsell-plan-card {
  position: relative;
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid var(--border-card);
  border-radius: 16px;
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.featured-plan {
  border-color: var(--lilac-accent);
  background: rgba(139, 92, 246, 0.08);
}

.popular-tag {
  position: absolute;
  top: -10px;
  right: 12px;
  background: var(--lilac-accent);
  color: #000;
  font-size: 0.68rem;
  font-weight: 800;
  padding: 2px 8px;
  border-radius: 9999px;
}

.plan-name {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--text-secondary);
}

.plan-price {
  font-size: 1.6rem;
  font-weight: 800;
  margin-bottom: 0.75rem;
}

.plan-price small {
  font-size: 0.75rem;
  color: var(--text-muted);
}

.plan-features {
  list-style: none;
  font-size: 0.8rem;
  color: var(--text-secondary);
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  margin-bottom: 1rem;
}

.plan-features li {
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.plan-features i {
  color: var(--emerald-accent);
  width: 14px;
  height: 14px;
}


/* --------------------------------------------------------------------------
   6. AUTH & CHECKOUT MODAL
   -------------------------------------------------------------------------- */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(3, 7, 18, 0.85);
  backdrop-filter: blur(8px);
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
}

.modal-card {
  position: relative;
  width: 100%;
  max-width: 440px;
  background: #111827;
  border: 1px solid var(--border-glow);
  border-radius: 24px;
  padding: 2.25rem;
  box-shadow: var(--shadow-glow);
}

.modal-close-icon {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: transparent;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  padding: 4px;
}

.modal-close-icon:hover {
  color: #FFFFFF;
}

.modal-icon-badge {
  width: 56px;
  height: 56px;
  border-radius: 16px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1rem auto;
  box-shadow: 0 0 20px rgba(96, 165, 250, 0.3);
}

.modal-app-icon {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.modal-title {
  font-size: 1.4rem;
  font-weight: 700;
  margin-bottom: 0.4rem;
}

.modal-sub {
  font-size: 0.88rem;
  color: var(--text-secondary);
  margin-bottom: 1.75rem;
}

.quota-plan-options {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.6rem;
  margin: -0.75rem 0 1.25rem;
}

.quota-plan-option {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  padding: 0.7rem;
  border: 1px solid var(--border-card);
  border-radius: 10px;
  color: var(--text-secondary);
  font-size: 0.75rem;
}

.quota-plan-option strong {
  color: var(--text-primary);
  font-size: 0.85rem;
}

.btn-google-full {
  width: 100%;
  padding: 0.9rem;
  background: #FFFFFF;
  color: #1F2937;
  border-radius: 14px;
  font-weight: 700;
  margin-bottom: 1.25rem;

  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  border: none;
  cursor: pointer;
  transition: var(--transition-fast);
}

.modal-flow-text {
  font-size: 0.88rem;
  color: var(--text-secondary);
  text-align: center;
  margin: -0.35rem 0 1.25rem;
}

.btn-google-full:hover {
  background: #F3F4F6;
  box-shadow: 0 4px 15px rgba(255, 255, 255, 0.2);
}

.auth-security-note {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* Payment step */
.order-summary-box {
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid var(--border-card);
  border-radius: 14px;
  padding: 1rem;
  margin-bottom: 1.5rem;
  font-size: 0.9rem;
}

.summary-row {
  display: flex;
  justify-content: space-between;
  color: var(--text-secondary);
  margin-bottom: 0.5rem;
}

.total-row {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 0.5rem;
  margin-bottom: 0;
  font-weight: 700;
  color: #FFFFFF;
}

.total-price {
  color: var(--emerald-accent);
  font-size: 1.1rem;
}

.sim-card-input {
  display: flex;
  align-items: center;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-card);
  border-radius: 12px;
  padding: 0.75rem 1rem;
  gap: 0.6rem;
  margin-top: 0.4rem;
  margin-bottom: 1.5rem;
}

.sim-card-input input {
  background: transparent;
  border: none;
  color: #FFFFFF;
  font-family: var(--font-mono);
  font-size: 0.95rem;
  width: 100%;
}

.demo-badge {
  font-size: 0.65rem;
  font-weight: 800;
  background: rgba(16, 185, 129, 0.2);
  color: var(--emerald-accent);
  padding: 2px 6px;
  border-radius: 4px;
}

.payment-guarantee-note {
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-top: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
}


/* --------------------------------------------------------------------------
   7. FOOTER
   -------------------------------------------------------------------------- */
.app-footer {
  width: 100%;
  border-top: 1px solid var(--border-card);
  padding: 1.75rem 2rem;
  margin-top: auto;
}

.footer-container {
  max-width: 1240px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 700;
  color: var(--text-secondary);
}

.footer-brand-icon {
  width: 22px;
  height: 22px;
  object-fit: contain;
  flex: 0 0 auto;
}

.footer-links {
  display: flex;
  gap: 1.5rem;
}

.footer-links a {
  color: var(--text-muted);
  font-size: 0.765rem;
  text-decoration: none;
  transition: var(--transition-fast);
}

.footer-links a:hover {
  color: var(--text-main);
}


/* --------------------------------------------------------------------------
   8. RESPONSIVE BREAKPOINTS
   -------------------------------------------------------------------------- */
@media (max-width: 768px) {
  .hero-title {
    font-size: 1.98rem;
  }
  
  .hero-subtitle {
    font-size: 1rem;
  }

  .report-header-card {
    flex-direction: column;
    align-items: flex-start;
  }

  .report-value-split {
    grid-template-columns: 1fr;
  }

  .split-divider-icon {
    display: none;
  }

  .conversion-cta-bar {
    flex-direction: column;
    align-items: stretch;
    text-align: center;
  }

  .unlock-cta-btn {
    width: 100%;
  }

  .upsell-body-flex {
    grid-template-columns: 1fr;
  }

  .upsell-plans-row {
    grid-template-columns: 1fr;
  }
}
/* OLAB Assist responsive overflow corrections */
html,
body,
#app-container,
main#main-content,
.view-section {
  min-width: 0;
}

body {
  overflow-x: visible;
}

.bg-gradient-glow,
.bg-grid-overlay {
  width: 100%;
}

.nav-container,
.hero-center-container,
.report-container,
.dashboard-container,
.footer-container {
  width: 100%;
  min-width: 0;
}

.brand-logo,
.brand-text,
.nav-actions,
#auth-nav-container,
.user-profile-menu,
.domain-search-card,
.search-input-wrapper,
.domain-input,
.report-main-title,
.report-main-subtitle,
.scan-title,
.scan-subtitle {
  min-width: 0;
  max-width: 100%;
}

.user-name {
  min-width: 0;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.hero-badge {
  max-width: 100%;
  flex-wrap: wrap;
  justify-content: center;
  text-align: center;
  overflow-wrap: anywhere;
}

.hero-title,
.hero-subtitle,
.report-main-title,
.report-main-subtitle,
.scan-title,
.scan-subtitle,
.section-heading,
.heading-desc {
  max-width: 100%;
  overflow-wrap: anywhere;
}

.scorecards-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

@media (max-width: 768px) {
  .scorecards-grid {
    grid-template-columns: 1fr;
  }

  .launch-coupon-box {
    align-items: flex-start;
    flex-direction: column;
  }
}

.prompts-matrix-grid {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr));
}

.issues-table th,
.issues-table td,
.comp-table th,
.comp-table td {
  overflow-wrap: anywhere;
}

.modal-overlay {
  inset: 0;
  width: auto;
  height: auto;
}

.modal-card {
  min-width: 0;
}

.footer-links {
  flex-wrap: wrap;
}

@media (max-width: 768px) {
  .navbar {
    padding: 1rem;
  }

  .nav-container {
    flex-wrap: wrap;
    gap: 0.75rem;
  }

  .brand-logo {
    flex: 1 1 100%;
    gap: 0.5rem;
  }

  .brand-bold,
  .brand-light {
    font-size: 1.2rem;
  }

  .nav-actions {
    width: 100%;
    justify-content: flex-end;
    gap: 0.5rem;
  }

  #auth-nav-container {
    display: flex;
    justify-content: flex-end;
    flex: 1 1 auto;
  }

  .nav-login-btn {
    flex: 1 1 auto;
    min-width: 0;
  }

  .user-profile-menu {
    max-width: 100%;
  }

  #view-home {
    min-height: calc(85vh - 120px);
  }

  .view-section {
    padding: 1.25rem 0.75rem 3rem;
  }

  .hero-app-icon-wrapper {
    width: 72px;
    height: 72px;
  }

  .hero-title {
    font-size: clamp(1.9rem, 9vw, 2.6rem);
    line-height: 1.1;
  }

  .hero-subtitle {
    font-size: 1rem;
  }

  .hero-badge {
    width: 100%;
    padding: 0.45rem 0.75rem;
    font-size: 0.75rem;
    line-height: 1.35;
  }

  .search-input-wrapper {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 0.6rem;
    padding: 0.75rem;
    border-radius: 20px;
  }

  .search-input-icon {
    position: absolute;
    top: 0.95rem;
    left: 1rem;
    margin: 0;
  }

  .domain-input {
    padding: 0.7rem 0.5rem 0.7rem 2.2rem;
  }

  .search-submit-btn {
    width: 100%;
    padding: 0.85rem 1rem;
  }

  .frictionless-chips {
    width: 100%;
    flex-direction: column;
    gap: 0.5rem;
  }

  .chip-divider {
    display: none;
  }

  .ai-models-bar,
  .ai-model-chips {
    width: 100%;
  }

  .ai-models-bar {
    flex-direction: column;
    gap: 0.65rem;
  }

  .ai-model-chips {
    justify-content: center;
  }

  .scorecards-grid,
  .prompts-matrix-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .report-header-card {
    flex-direction: column;
    align-items: flex-start;
  }

  .report-main-title {
    font-size: 1.5rem;
  }

  .section-heading h3 {
    font-size: 1.1rem;
  }

  .report-value-split {
    grid-template-columns: 1fr;
  }

  .split-divider-icon {
    display: none;
  }

  .conversion-cta-bar {
    flex-direction: column;
    align-items: stretch;
    text-align: center;
  }

  .unlock-cta-btn {
    width: 100%;
  }

  .upsell-body-flex {
    grid-template-columns: 1fr;
  }

  .upsell-plans-row {
    grid-template-columns: 1fr;
  }

  .dash-tabs-bar,
  .code-editor-subtabs {
    flex-wrap: wrap;
    overflow-x: visible;
  }

  .dash-tab,
  .code-subtab {
    flex: 1 1 auto;
    min-width: 0;
    white-space: normal;
    justify-content: center;
    text-align: center;
  }

  .footer-container {
    align-items: flex-start;
  }

  .footer-links {
    gap: 0.75rem 1rem;
  }
}

@media (max-width: 420px) {
  .brand-bold,
  .brand-light {
    font-size: 1.1rem;
  }

  .brand-logo {
    gap: 0.4rem;
  }

  .brand-badge {
    font-size: 0.58rem;
    padding: 2px 5px;
  }

  .lang-btn,
  .nav-login-btn {
    padding-left: 0.7rem;
    padding-right: 0.7rem;
  }

  .nav-login-btn {
    font-size: 0.75rem;
  }

  .hero-title {
    font-size: clamp(1.8rem, 9.5vw, 2.2rem);
  }
}
/* OLAB Assist approved landing UX */
#auth-nav-container {
  order: 1;
}

.lang-toggle-container {
  order: 2;
}

.hero-free-badge {
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.24), rgba(59, 130, 246, 0.24));
  border-color: rgba(110, 231, 183, 0.62);
  color: #A7F3D0;
  box-shadow: 0 0 24px rgba(16, 185, 129, 0.16);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero-value-proposition {
  width: 100%;
  max-width: 1080px;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
  margin: 0 auto 1rem;
  text-align: left;
}

.value-card {
  min-width: 0;
  padding: 1.35rem;
  border-radius: 20px;
  border: 1px solid var(--border-card);
  background: rgba(17, 24, 39, 0.72);
  box-shadow: var(--shadow-card);
  backdrop-filter: var(--glass-backdrop);
}

.value-card-free {
  border-color: rgba(16, 185, 129, 0.3);
}

.value-card-paid {
  border-color: rgba(192, 132, 252, 0.42);
  background: linear-gradient(145deg, rgba(30, 27, 75, 0.72), rgba(17, 24, 39, 0.8));
}

.value-card-aio {
  border-color: rgba(244, 114, 182, 0.38);
  background: linear-gradient(145deg, rgba(76, 29, 149, 0.56), rgba(17, 24, 39, 0.8));
}

.value-card-geo {
  border-color: rgba(56, 189, 248, 0.4);
  background: linear-gradient(145deg, rgba(8, 47, 73, 0.72), rgba(17, 24, 39, 0.8));
}

.value-card-toggle {
  width: 100%;
  background: transparent;
  border: 0;
  color: inherit;
  text-align: left;
  padding: 0;
  margin: 0;
  cursor: default;
}

.value-card-toggle h2 {
  margin: 0;
  overflow-wrap: anywhere;
}

.value-card-toggle-icon {
  display: none;
}

.value-card-panel {
  margin-top: 0.8rem;
}

.value-card-kicker {
  display: block;
  margin-bottom: 0.45rem;
  color: var(--emerald-accent);
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.value-card-paid .value-card-kicker {
  color: var(--emerald-accent);
}

.value-card h2 {
  font-size: 1.12rem;
  line-height: 1.3;
  margin-bottom: 0.9rem;
}

.value-card-copy {
  color: var(--text-secondary);
  font-size: 0.9rem;
  line-height: 1.6;
  margin: 0;
  overflow-wrap: anywhere;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  overflow: hidden;
}

@media (min-width: 769px) {
  .hero-value-proposition {
    margin-bottom: 0.35rem;
  }

  .ai-models-bar {
    transform: translateY(10px);
  }

  .hero-value-proposition .value-card {
    height: 100%;
  }

  .hero-value-proposition .value-card-copy {
    display: block;
    -webkit-line-clamp: unset;
    overflow: visible;
  }
}

.value-card-paid-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  min-width: 0;
}

.value-card-paid-header > div:first-child {
  min-width: 0;
}

.value-card-price {
  display: flex;
  flex: 0 0 auto;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.15rem;
  text-align: right;
  white-space: nowrap;
}

.price-label {
  color: var(--amber-warning);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.04em;
}

.price-old {
  color: #FCA5A5;
  font-size: 0.85rem;
  text-decoration: line-through;
  text-decoration-thickness: 2px;
}

.value-card-price strong {
  color: #FFFFFF;
  font-size: 1.55rem;
  line-height: 1;
}

.value-card-list {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  margin: 0;
  padding: 0;
  list-style: none;
  color: var(--text-secondary);
  font-size: 0.84rem;
}

.value-card-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  min-width: 0;
}

.value-card-list li svg {
  flex: 0 0 auto;
  width: 16px;
  height: 16px;
  margin-top: 0.15rem;
}

.value-card-free .value-card-list li svg {
  color: var(--emerald-accent);
}

.value-card-paid .value-card-list li svg {
  color: var(--lilac-accent);
}

.value-card-list li span {
  min-width: 0;
  overflow-wrap: anywhere;
}

.hero-value-summary {
  grid-column: 1 / -1;
  margin: 0.15rem auto 0;
  max-width: 720px;
  color: var(--text-secondary);
  font-size: 0.9rem;
  line-height: 1.55;
  text-align: center;
  overflow-wrap: anywhere;
}

.geo-info-card {
  width: 100%;
  max-width: 820px;
  margin: 0 auto 1.5rem;
  padding: 0.9rem 1.1rem;
  border: 1px solid rgba(147, 197, 253, 0.2);
  border-radius: 16px;
  background: rgba(15, 23, 42, 0.66);
  box-shadow: 0 12px 30px -18px rgba(59, 130, 246, 0.45);
  color: var(--text-secondary);
  text-align: left;
}

.geo-info-card summary {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  color: var(--text-main);
  cursor: pointer;
  font-size: 0.9rem;
  font-weight: 700;
  list-style: none;
}

.geo-info-card summary::-webkit-details-marker {
  display: none;
}

.geo-info-card summary::after {
  content: '+';
  margin-left: auto;
  color: var(--lilac-accent);
  font-size: 1.2rem;
  line-height: 1;
}

.geo-info-card[open] summary::after {
  content: '−';
}

.geo-info-card summary svg {
  flex: 0 0 auto;
  width: 17px;
  height: 17px;
  color: var(--lilac-accent);
}

.geo-info-card p {
  max-width: 720px;
  margin: 0.8rem 0 0;
  color: var(--text-secondary);
  font-size: 0.84rem;
  line-height: 1.6;
  overflow-wrap: anywhere;
}

.model-chip > span {
  min-width: 0;
  overflow-wrap: anywhere;
}

.footer-protocol-band {
  width: 100%;
  max-width: 1240px;
  margin: 1.35rem auto 0;
  padding: 0.8rem 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  border: 1px solid rgba(192, 132, 252, 0.32);
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.1), rgba(139, 92, 246, 0.16));
  color: var(--lilac-accent);
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 700;
  text-align: center;
}

.footer-protocol-band svg {
  flex: 0 0 auto;
  width: 16px;
  height: 16px;
}

@media (max-width: 768px) {
  .report-header-card {
    align-items: flex-start;
    flex-direction: column;
    gap: 0.75rem;
    padding: 0.9rem 1rem;
    border-radius: 16px;
    margin-bottom: 1rem;
  }

  .report-main-title {
    font-size: 1.08rem;
    line-height: 1.25;
  }

  .report-main-subtitle {
    font-size: 0.72rem;
    line-height: 1.4;
  }

  .overall-score-box {
    width: 100%;
    gap: 0.6rem;
  }

  .score-ring-wrapper {
    width: 54px;
    height: 54px;
  }

  .score-number {
    font-size: 1.05rem;
  }

  .overall-label-title {
    font-size: 0.58rem;
  }

  .overall-status-badge {
    padding: 0.22rem 0.5rem;
    font-size: 0.6rem;
  }

  .scorecards-grid {
    grid-template-columns: 1fr;
    gap: 0.45rem;
    margin-bottom: 1.1rem;
  }

  .report-score-card {
    padding: 0.58rem 0.65rem;
    border-radius: 11px;
  }

  .report-card-toggle {
    gap: 0.38rem;
  }

  .report-card-heading .card-title {
    font-size: 0.76rem;
    line-height: 1.2;
  }

  .report-card-kicker,
  .report-card-status {
    font-size: 0.53rem;
  }

  .report-card-status {
    display: none;
  }

  .report-card-panel {
    margin: 0.45rem 0 0.05rem 1.7rem;
  }

  .report-card-panel .card-result-text {
    font-size: 0.7rem;
    line-height: 1.35;
  }

  .report-offers-section {
    margin-bottom: 1rem;
  }

  .report-offer-grid {
    grid-template-columns: 1fr;
    gap: 0.45rem;
  }

  .report-offer-card {
    padding: 0.72rem 0.8rem;
    border-radius: 11px;
  }

  .report-offer-card h4 {
    font-size: 0.82rem;
  }

  .report-offer-card p {
    min-height: 0;
    margin-bottom: 0.45rem;
    font-size: 0.7rem;
  }

  .hero-center-container,
  .hero-value-proposition,
  .accordion-card,
  .value-card-toggle,
  .value-card-panel {
    min-width: 0;
    max-width: 100%;
    overflow-wrap: anywhere;
  }

  .hero-value-proposition {
    grid-template-columns: minmax(0, 1fr);
    gap: 0.75rem;
  }

  .value-card {
    padding: 1.1rem;
    overflow: hidden;
  }

  .value-card-toggle {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    cursor: pointer;
  }

  .value-card-toggle h2 {
    flex: 1 1 auto;
    margin: 0;
    font-size: 0.98rem;
    line-height: 1.35;
    word-break: break-word;
  }

  .value-card-kicker {
    white-space: nowrap;
  }

  .value-card-toggle-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    width: 24px;
    height: 24px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.25);
    color: #E5E7EB;
    font-size: 1rem;
    line-height: 1;
    transition: transform 0.35s ease, background-color 0.35s ease;
  }

  .accordion-card .value-card-panel {
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    margin-top: 0;
    transition: max-height 0.62s ease, opacity 0.5s ease, margin-top 0.45s ease;
  }

  .accordion-card.is-open .value-card-panel {
    margin-top: 0.65rem;
  }

  .accordion-card.is-open .value-card-toggle-icon {
    transform: rotate(45deg);
    background-color: rgba(255, 255, 255, 0.1);
  }

  .hero-value-summary {
    padding-inline: 0.1rem;
    overflow-wrap: anywhere;
    word-break: break-word;
  }

  .hero-free-note {
    gap: 0.45rem;
    font-size: 0.88rem;
    margin-bottom: 1rem;
  }

  .hero-free-pill {
    font-size: 0.7rem;
    padding: 0.34rem 0.62rem;
  }

  .value-card-paid-header {
    flex-direction: column;
    gap: 0.65rem;
  }

  .value-card-price {
    align-items: flex-start;
    text-align: left;
  }

  .hero-value-summary {
    grid-column: auto;
    font-size: 0.86rem;
  }

  .geo-info-card {
    margin-bottom: 1.25rem;
    padding: 0.8rem 0.9rem;
  }

  .footer-protocol-band {
    margin-top: 1rem;
    padding-inline: 0.75rem;
  }
}

@media (max-width: 420px) {
  .hero-free-badge {
    font-size: 0.7rem;
  }

  .value-card h2 {
    font-size: 1rem;
  }

  .value-card-list {
    font-size: 0.8rem;
  }
}
/* Strict correction: restore known-good landing layout and typography */
#view-home {
  align-items: flex-start;
  justify-content: flex-start;
  min-height: auto;
}

.hero-title {
  font-family: var(--font-sans);
  font-size: 3.15rem;
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: normal;
  word-spacing: normal;
}

.hero-subtitle {
  font-family: var(--font-sans);
  font-size: 1.15rem;
  font-weight: 400;
  line-height: 1.6;
  letter-spacing: normal;
  word-spacing: normal;
}

.value-card,
.value-card h2,
.value-card-list,
.hero-value-summary,
.geo-info-card,
.footer-protocol-band {
  font-family: var(--font-sans);
  letter-spacing: normal;
  word-spacing: normal;
}

.value-card,
.value-card-list,
.hero-value-summary,
.geo-info-card,
.footer-protocol-band {
  font-weight: 400;
  line-height: 1.6;
}

.value-card h2 {
  font-weight: 700;
}

@media (max-width: 768px) {
  .nav-container {
    flex-wrap: nowrap;
    align-items: center;
    gap: 0.5rem;
  }

  .brand-logo {
    flex: 1 1 auto;
    min-width: 0;
    gap: 0.35rem;
  }

  .brand-text {
    min-width: 0;
  }

  .brand-bold,
  .brand-light {
    font-size: 1.05rem;
    letter-spacing: normal;
  }

  .brand-badge {
    flex: 0 0 auto;
    font-size: 0.55rem;
    padding: 2px 4px;
  }

  .nav-actions {
    width: auto;
    flex: 0 0 auto;
    justify-content: flex-end;
    gap: 0.35rem;
  }

  #auth-nav-container {
    flex: 0 1 auto;
  }

  .nav-login-btn {
    width: auto;
    min-width: 0;
    flex: 0 0 auto;
    padding: 0.45rem 0.55rem;
    gap: 0.3rem;
    white-space: nowrap;
  }

  .nav-login-btn span {
    font-size: 0;
  }

  html[lang="tr"] .nav-login-btn span::after {
    content: "Giri\015f";
    font-size: 0.72rem;
  }

  html[lang="en"] .nav-login-btn span::after {
    content: "Sign in";
    font-size: 0.72rem;
  }

  .lang-btn {
    padding: 0.45rem 0.55rem;
  }

  #view-home {
    align-items: flex-start;
    justify-content: flex-start;
    min-height: auto;
  }

  .hero-title {
    font-size: 1.98rem;
    line-height: 1.15;
  }

  .hero-subtitle {
    font-size: 1rem;
    font-weight: 400;
    line-height: 1.6;
  }
}

@media (max-width: 420px) {
  .navbar {
    padding: 0.75rem 0.6rem;
  }

  .logo-app-icon-wrapper {
    width: 32px;
    height: 32px;
  }

  .brand-bold,
  .brand-light {
    font-size: 0.95rem;
  }

  .brand-badge {
    font-size: 0.5rem;
    padding: 2px 3px;
  }

  .nav-login-btn,
  .lang-btn {
    padding-left: 0.45rem;
    padding-right: 0.45rem;
  }
}

/* Strict UI correction: locked mobile controls, search alignment, and scope layout */
.search-input-wrapper {
  position: relative;
  overflow: visible;
  isolation: isolate;
  align-items: center;
}

.search-input-wrapper::before {
  content: "";
  position: absolute;
  inset: -1px;
  z-index: 0;
  padding: 1px;
  border-radius: inherit;
  background: conic-gradient(
    from 0deg,
    transparent 0deg 300deg,
    rgba(59, 130, 246, 0.32) 326deg,
    rgba(192, 132, 252, 0.42) 342deg,
    transparent 360deg
  );
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  mask-composite: exclude;
  pointer-events: none;
  animation: searchBorderSweep 10s linear infinite;
}

.search-input-wrapper > * {
  position: relative;
  z-index: 1;
}

.search-input-icon {
  position: static;
  align-self: center;
  margin: 0 0.75rem 0 0;
  transform: none;
}

.domain-input {
  min-width: 0;
  height: 2.35rem;
  padding: 0;
  align-self: center;
  line-height: 1.3;
}

@keyframes searchBorderSweep {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

.search-submit-btn {
  background: linear-gradient(
    90deg,
    var(--blue-primary) 0%,
    var(--lilac-accent) 50%,
    var(--blue-primary) 100%
  );
  background-size: 200% 100%;
  animation: searchButtonGradient 8s linear infinite;
}

@keyframes searchButtonGradient {
  from { background-position: 0% 50%; }
  to { background-position: 100% 50%; }
}

.frictionless-chips {
  width: 100%;
  max-width: 640px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: stretch;
  justify-content: stretch;
  gap: 0.5rem;
  margin: 0 auto 2.5rem;
}

.trust-chip {
  width: 100%;
  min-width: 0;
  min-height: 2.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.45rem 0.55rem;
  border: 1px solid rgba(16, 185, 129, 0.54);
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(5, 150, 105, 0.96), rgba(34, 197, 94, 0.92));
  box-shadow: 0 12px 24px -18px rgba(16, 185, 129, 0.95);
  color: #ffffff;
  font-size: 0.82rem;
  line-height: 1.35;
  text-align: center;
  overflow-wrap: anywhere;
}

.ai-models-bar {
  width: 100%;
  display: block;
}

.ai-models-label {
  display: block;
  margin-bottom: 0.75rem;
  text-align: left;
}

.ai-model-chips {
  width: 100%;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.75rem;
  white-space: normal;
}

.model-chip {
  width: 100%;
  min-width: 0;
  min-height: 2.75rem;
  justify-content: flex-start;
  white-space: normal;
  text-align: left;
}

@media (max-width: 768px) {
  .nav-actions {
    align-items: center;
    gap: 0.5rem;
  }

  #auth-nav-container {
    display: flex;
    align-items: center;
    flex: 0 0 auto;
  }

  .nav-login-btn,
  .lang-btn {
    box-sizing: border-box;
    width: 78px;
    height: 36px;
    min-height: 36px;
    padding: 0;
    border-radius: 9999px;
    align-items: center;
    justify-content: center;
  }

  .nav-login-btn {
    gap: 0.3rem;
  }

  .lang-btn {
    gap: 0.25rem;
  }

  .google-icon {
    width: 16px;
    height: 16px;
    flex: 0 0 16px;
    margin-right: 0;
  }

  .lang-icon {
    width: 16px;
    height: 16px;
    flex: 0 0 16px;
  }

  .lang-arrow {
    width: 14px;
    height: 14px;
    flex: 0 0 14px;
  }

  #current-lang-label {
    font-size: 0.72rem;
    line-height: 1;
  }

  .search-input-wrapper {
    display: grid;
    grid-template-columns: 22px minmax(0, 1fr);
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem;
    border-radius: 20px;
  }

  .search-input-icon {
    position: static;
    grid-column: 1;
    grid-row: 1;
    width: 20px;
    height: 20px;
    margin: 0;
  }

  .domain-input {
    grid-column: 2;
    grid-row: 1;
    width: 100%;
    height: 2.2rem;
    min-width: 0;
    padding: 0;
  }

  .search-submit-btn {
    grid-column: 1 / -1;
    grid-row: 2;
    width: 100%;
  }

  .frictionless-chips {
    grid-template-columns: minmax(0, 1fr);
    gap: 0.5rem;
    margin-bottom: 2.5rem;
  }

  .ai-models-label {
    margin-bottom: 0.65rem;
  }

  .ai-model-chips {
    grid-template-columns: minmax(0, 1fr);
    gap: 0.5rem;
  }

  .model-chip {
    min-height: 2.6rem;
  }
}

@media (max-width: 420px) {
  .nav-login-btn,
  .lang-btn {
    width: 72px;
    height: 34px;
    min-height: 34px;
    padding: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  .search-input-wrapper::before,
  .search-submit-btn {
    animation: none;
  }
}

/* Locked final corrections: trust row, seamless motion, and desktop control parity */
.search-input-wrapper::before {
  padding: 1px;
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(59, 130, 246, 0.22) 14%,
    rgba(192, 132, 252, 0.34) 24%,
    rgba(59, 130, 246, 0.22) 34%,
    transparent 50%,
    transparent 50%,
    rgba(59, 130, 246, 0.22) 64%,
    rgba(192, 132, 252, 0.34) 74%,
    rgba(59, 130, 246, 0.22) 84%,
    transparent 100%
  ) 0 0 / 200% 100% border-box;
  transform: none;
  animation: searchBorderSweepLinear 10s linear infinite;
}

@keyframes searchBorderSweepLinear {
  from { background-position: 0 0; }
  to { background-position: 100% 0; }
}

.search-submit-btn {
  background-image: linear-gradient(
    90deg,
    var(--blue-primary) 0%,
    var(--lilac-accent) 25%,
    var(--blue-primary) 50%,
    var(--lilac-accent) 75%,
    var(--blue-primary) 100%
  );
  background-size: 200% 100%;
  background-position: 0 50%;
  animation: searchButtonGradientContinuous 8s linear infinite;
}

@keyframes searchButtonGradientContinuous {
  from { background-position: 0 50%; }
  to { background-position: 100% 50%; }
}

@media (max-width: 768px) {
  .frictionless-chips {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.25rem;
  }

  .trust-chip {
    min-width: 0;
    padding: 0.34rem 0.24rem;
    font-size: clamp(0.53rem, 2.45vw, 0.67rem);
    line-height: 1.15;
    white-space: normal;
    overflow: hidden;
    text-overflow: initial;
    word-break: break-word;
  }
}

@media (min-width: 769px) {
  .nav-login-btn,
  .lang-btn {
    box-sizing: border-box;
    height: 2.35rem;
    min-height: 2.35rem;
    padding-top: 0;
    padding-bottom: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  .search-input-wrapper::before,
  .search-submit-btn {
    animation: none;
  }
}

/* Phase 2.1 payment lock */
.unlock-cta-btn:disabled {
  cursor: not-allowed;
  opacity: 0.62;
}

.unlock-cta-btn.admin-access-active {
  cursor: pointer;
  opacity: 1;
}

.payment-access-status {
  flex: 1 1 100%;
  color: var(--text-muted);
  font-size: 0.78rem;
  text-align: right;
}