/* ==========================================================================
   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: -0.02em;
}

/* 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: -0.03em;
  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.5rem;
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.03em;
  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;
}

/* 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;
}

.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: 2rem 2.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  margin-bottom: 2.5rem;
  box-shadow: var(--shadow-card);
  backdrop-filter: var(--glass-backdrop);
}

.audited-domain-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.35rem 0.9rem;
  border-radius: 9999px;
  background: rgba(59, 130, 246, 0.12);
  border: 1px solid rgba(59, 130, 246, 0.3);
  color: #93C5FD;
  font-family: var(--font-mono);
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
}

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

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

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

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

.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.8rem;
  font-weight: 800;
  line-height: 1;
}

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

.overall-label-title {
  display: block;
  font-size: 0.8rem;
  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.82rem;
  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.35rem;
  font-weight: 700;
}

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

/* 7 Score Cards Grid */
.scorecards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 1.25rem;
  margin-bottom: 3rem;
}

.card-item {
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: 18px;
  padding: 1.4rem;
  transition: var(--transition-fast);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.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: 1rem;
}

.card-icon-box {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  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: 1.15rem;
  font-weight: 700;
  padding: 0.2rem 0.75rem;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.05);
}

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

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

/* 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: -0.01em;
}

.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;
}

.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);
}

.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 {
  font-weight: 700;
  color: var(--text-secondary);
}

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

.footer-links a {
  color: var(--text-muted);
  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: 2.2rem;
  }
  
  .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;
  }
}
