/* Extracted from lighthouse-app.html (UI redesign N1) — load order matters */
    /* Citation Detail Panel */
    .citation-detail-panel {
      position: fixed;
      top: 50%;
      left: 50%;
      transform: translate(-50%, -50%);
      background: var(--bg-card);
      border: 1px solid var(--border);
      border-radius: var(--radius-xl);
      padding: 20px;
      min-width: 360px;
      max-width: 450px;
      max-height: 80vh;
      overflow-y: auto;
      box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
      z-index: 10001;
    }
    
    @keyframes panelSlideIn {
      from {
        opacity: 0;
        transform: translate(-50%, -50%) scale(0.9);
      }
      to {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1);
      }
    }
    
    .detail-header {
      display: flex;
      justify-content: space-between;
      align-items: center;
      margin-bottom: 16px;
      padding-bottom: 12px;
      border-bottom: 1px solid var(--border);
    }
    
    .detail-stage-badge {
      padding: 4px 12px;
      border-radius: var(--radius-lg);
      font-size: 11px;
      font-weight: 600;
      text-transform: uppercase;
    }
    
    .detail-stage-badge.awareness { background: rgba(139, 92, 246, 0.2); color: #8b5cf6; }
    .detail-stage-badge.consideration { background: rgba(59, 130, 246, 0.2); color: var(--accent-blue); }
    .detail-stage-badge.conversion { background: rgba(34, 197, 94, 0.2); color: var(--accent-green); }
    .detail-stage-badge.community { background: rgba(245, 158, 11, 0.2); color: #f59e0b; }
    /* Legacy: keep decision for backwards compatibility */
    .detail-stage-badge.decision { background: rgba(34, 197, 94, 0.2); color: var(--accent-green); }
    
    .detail-close {
      width: 28px;
      height: 28px;
      border-radius: 50%;
      border: none;
      background: var(--bg-tertiary);
      color: var(--text-muted);
      font-size: 18px;
      cursor: pointer;
      display: flex;
      align-items: center;
      justify-content: center;
      transition: background 0.2s ease, color 0.2s ease;
    }

    .detail-close:hover {
      background: var(--accent-red);
      color: white;
    }
    
    .detail-content {
      font-size: 13px;
    }
    
    .detail-source {
      display: flex;
      align-items: center;
      gap: 10px;
      margin-bottom: 12px;
    }
    
    .detail-favicon {
      width: 24px;
      height: 24px;
      border-radius: var(--radius-sm);
    }
    
    .detail-domain {
      font-weight: 600;
      color: var(--text-primary);
    }
    
    .detail-role {
      padding: 12px;
      background: var(--bg-tertiary);
      border-radius: var(--radius-md);
      margin-bottom: 12px;
    }
    
    .detail-role-label {
      font-size: 10px;
      color: var(--text-muted);
      text-transform: uppercase;
      margin-bottom: 4px;
    }
    
    .detail-role-text {
      color: var(--text-secondary);
      line-height: 1.5;
    }
    
    .detail-link {
      display: inline-flex;
      align-items: center;
      gap: 6px;
      color: var(--accent-blue);
      text-decoration: none;
      font-size: 12px;
    }
    
    .detail-link:hover {
      text-decoration: underline;
    }
    
    @media (max-width: 768px) {
      .journey-stage-bars {
        flex-direction: column;
      }
      .journey-arrow {
        transform: rotate(90deg);
      }
      .journey-stats {
        flex-direction: column;
        gap: 16px;
      }
    }
    
    .citation-gap-item {
      display: flex;
      align-items: center;
      gap: 16px;
      padding: 16px;
      background: rgba(239, 68, 68, 0.06);
      border: 1px solid rgba(239, 68, 68, 0.2);
      border-radius: var(--radius-lg);
    }
    
    .citation-gap-icon { font-size: 24px; }
    .citation-gap-content { flex: 1; }
    .citation-gap-source { font-weight: 600; color: var(--text-primary); margin-bottom: 4px; }
    .citation-gap-desc { font-size: 13px; color: var(--text-muted); margin-bottom: 8px; }
    .citation-gap-competitors {
      display: flex;
      gap: 6px;
      flex-wrap: wrap;
    }
    .citation-gap-competitor {
      padding: 3px 8px;
      background: rgba(239, 68, 68, 0.15);
      color: var(--accent-red);
      border-radius: var(--radius-xs);
      font-size: 10px;
      font-weight: 600;
    }
    
    .citation-source-item {
      display: flex;
      align-items: center;
      gap: 16px;
      padding: 16px;
      background: var(--bg-card);
      border: 1px solid var(--border);
      border-radius: var(--radius-lg);
    }
    
    .citation-source-item.includes-you {
      background: rgba(34, 197, 94, 0.06);
      border-color: rgba(34, 197, 94, 0.2);
    }
    
    .citation-source-rank {
      width: 32px;
      height: 32px;
      border-radius: var(--radius-md);
      background: var(--accent-purple);
      color: white;
      display: flex;
      align-items: center;
      justify-content: center;
      font-weight: 700;
      font-size: 14px;
    }
    
    .citation-source-info { flex: 1; }
    .citation-source-domain { font-weight: 600; color: var(--text-primary); }
    .citation-source-meta { font-size: 11px; color: var(--text-muted); margin-top: 2px; }
    
    .citation-source-count {
      text-align: right;
    }
    
    .citation-source-count-value {
      font-size: 24px;
      font-weight: 700;
      color: var(--accent-blue);
    }
    
    .citation-source-count-label {
      font-size: 10px;
      color: var(--text-muted);
    }

    /* Impact Score */
    .citation-impact-score {
      display: inline-flex;
      align-items: center;
      justify-content: center;
      padding: 2px 8px;
      border-radius: var(--radius-lg);
      font-size: 11px;
      font-weight: 700;
      min-width: 36px;
    }
    .citation-impact-score.impact-high { background: rgba(34,197,94,0.15); color: var(--accent-green); }
    .citation-impact-score.impact-medium { background: rgba(234,179,8,0.15); color: var(--accent-yellow); }
    .citation-impact-score.impact-low { background: rgba(239,68,68,0.15); color: var(--accent-red); }

    /* Prompt Classification Badges */
    .prompt-class-badges { display: flex; gap: 4px; flex-wrap: wrap; margin-top: 6px; }
    .prompt-class-badge {
      padding: 2px 7px;
      border-radius: var(--radius-lg);
      font-size: 9px;
      font-weight: 600;
      display: inline-flex;
      align-items: center;
      gap: 3px;
    }
    .prompt-class-badge.informational { background: rgba(59,130,246,0.12); color: var(--accent-blue); }
    .prompt-class-badge.comparison { background: rgba(168,85,247,0.12); color: var(--accent-purple); }
    .prompt-class-badge.buying { background: rgba(234,179,8,0.12); color: #ca8a04; }
    .prompt-class-badge.review { background: rgba(249,115,22,0.12); color: var(--accent-orange); }
    .prompt-class-badge.brand { background: rgba(6,182,212,0.12); color: #06b6d4; }

    /* Expandable Gap Details */
    .citation-gap-item { cursor: pointer; transition: background 0.2s; }
    .citation-gap-item:hover { background: linear-gradient(135deg, rgba(239, 68, 68, 0.08), var(--bg-card)); }
    .citation-gap-expand-list {
      display: none;
      margin-top: 12px;
      padding: 12px;
      background: var(--bg-tertiary);
      border-radius: var(--radius-md);
    }
    .citation-gap-expand-list.visible { display: block; }
    .gap-citation-competitor-highlight {
      margin-top: 6px;
      padding: 6px 10px;
      background: rgba(239,68,68,0.06);
      border: 1px solid rgba(239, 68, 68, 0.2);
      border-radius: var(--radius-xs);
      font-size: 11px;
      color: var(--accent-red);
      font-weight: 600;
    }
    
    .competitor-citation-chart {
      display: flex;
      flex-direction: column;
      gap: 12px;
      padding: 16px;
      background: var(--bg-card);
      border: 1px solid var(--border);
      border-radius: var(--radius-lg);
    }
    
    .competitor-citation-bar {
      display: flex;
      align-items: center;
      gap: 12px;
    }
    
    .competitor-citation-name {
      width: 140px;
      font-weight: 600;
      font-size: 13px;
      white-space: nowrap;
      overflow: hidden;
      text-overflow: ellipsis;
    }
    
    .competitor-citation-bar-wrapper {
      flex: 1;
      height: 24px;
      background: var(--bg-tertiary);
      border-radius: var(--radius-sm);
      overflow: hidden;
    }
    
    .competitor-citation-bar-fill {
      height: 100%;
      background: linear-gradient(90deg, var(--accent-purple), var(--accent-blue));
      border-radius: var(--radius-sm);
      display: flex;
      align-items: center;
      justify-content: flex-end;
      padding-right: 8px;
      color: white;
      font-size: 11px;
      font-weight: 600;
      min-width: 40px;
    }
    
    /* Answer Capsule Generator Modal */
    .capsule-modal {
      max-width: 700px;
    }
    
    .capsule-item {
      background: var(--bg-tertiary);
      border: 1px solid var(--border);
      border-radius: var(--radius-lg);
      padding: 16px;
      margin-bottom: 12px;
    }
    
    .capsule-heading {
      font-weight: 600;
      color: var(--text-primary);
      margin-bottom: 8px;
      font-size: 13px;
    }
    
    .capsule-text {
      background: linear-gradient(135deg, rgba(147, 51, 234, 0.1), rgba(59, 130, 246, 0.1));
      border: 1px solid var(--accent-purple);
      border-radius: var(--radius-md);
      padding: 12px;
      font-size: 14px;
      line-height: 1.5;
      color: var(--text-primary);
      position: relative;
    }
    
    .capsule-char-count {
      position: absolute;
      bottom: 4px;
      right: 8px;
      font-size: 10px;
      color: var(--text-muted);
    }
    
    .capsule-copy-btn {
      margin-top: 8px;
      padding: 6px 12px;
      background: var(--accent-purple);
      color: white;
      border: none;
      border-radius: var(--radius-sm);
      font-size: 12px;
      cursor: pointer;
      transition: background 0.2s;
    }
    
    .capsule-copy-btn:hover {
      background: var(--accent-blue);
    }
    
    @media (max-width: 768px) {
      .geo-overview {
        flex-direction: column;
      }
      .geo-metrics-grid, .citation-stats-grid {
        grid-template-columns: repeat(2, 1fr);
      }
    }
    
    /* ═══════════════════════════════════════
       STRATEGY HUB STYLES
       ═══════════════════════════════════════ */
    
    .strategy-hub-hero {
      background: linear-gradient(135deg, rgba(139, 92, 246, 0.1) 0%, rgba(6, 182, 212, 0.08) 50%, rgba(34, 197, 94, 0.05) 100%);
      border: 1px solid var(--border);
      border-radius: var(--radius-2xl);
      padding: 28px;
      margin-bottom: 24px;
      position: relative;
      overflow: hidden;
    }
    
    .strategy-hub-hero::before {
      content: '';
      position: absolute;
      top: -50%;
      right: -20%;
      width: 400px;
      height: 400px;
      background: radial-gradient(circle, rgba(139, 92, 246, 0.15) 0%, transparent 70%);
      pointer-events: none;
    }
    
    .strategy-hub-header {
      display: flex;
      justify-content: space-between;
      align-items: flex-start;
      margin-bottom: 20px;
      position: relative;
      z-index: 1;
    }
    
    .strategy-hub-title {
      display: flex;
      align-items: flex-start;
      gap: 16px;
    }
    
    .strategy-hub-icon {
      font-size: 42px;
      filter: drop-shadow(0 4px 12px rgba(139, 92, 246, 0.4));
    }
    
    .strategy-hub-title h2 {
      margin: 0 0 4px 0;
      font-size: 26px;
      font-weight: 700;
      color: var(--accent);
    }
    
    .strategy-hub-title p {
      margin: 0;
      font-size: 14px;
      color: var(--text-secondary);
    }
    
    .strategy-hub-actions {
      display: flex;
      gap: 10px;
    }
    
    .strategy-action-btn {
      display: flex;
      align-items: center;
      gap: 6px;
      padding: 10px 18px;
      background: var(--bg-tertiary);
      border: 1px solid var(--border);
      border-radius: var(--radius-lg);
      color: var(--text-secondary);
      font-size: 13px;
      font-weight: 500;
      cursor: pointer;
      transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
    }

    .strategy-action-btn:hover {
      background: var(--bg-secondary);
      border-color: var(--accent-purple);
      color: var(--text-primary);
    }
    
    .strategy-action-btn.primary {
      background: linear-gradient(135deg, #8b5cf6, #6366f1);
      border-color: transparent;
      color: white;
    }
    
    .strategy-action-btn.primary:hover {
      box-shadow: 0 4px 20px rgba(139, 92, 246, 0.4);
      transform: translateY(-1px);
    }
    
    /* Trust Indicators Bar */
    .strategy-trust-bar {
      display: flex;
      gap: 24px;
      padding: 16px 20px;
      background: rgba(0, 0, 0, 0.2);
      border-radius: var(--radius-lg);
      position: relative;
      z-index: 1;
    }
    
    .trust-indicator {
      display: flex;
      align-items: center;
      gap: 8px;
      font-size: 12px;
    }
    
    .trust-icon {
      font-size: 16px;
    }
    
    .trust-label {
      color: var(--text-muted);
    }
    
    .trust-value {
      color: var(--text-primary);
      font-weight: 600;
    }
    
    .confidence-bar {
      width: 80px;
      height: 6px;
      background: var(--bg-tertiary);
      border-radius: var(--radius-xs);
      overflow: hidden;
    }
    
    .confidence-fill {
      height: 100%;
      background: linear-gradient(90deg, #8b5cf6, #06b6d4);
      border-radius: var(--radius-xs);
      transition: width 1s ease;
    }
    
    /* Strategy Filters */
    .strategy-filters {
      display: flex;
      gap: 16px;
      align-items: center;
      padding: 16px 0;
      margin-bottom: 16px;
      border-bottom: 1px solid var(--border);
    }
    
    .filter-group {
      display: flex;
      flex-direction: column;
      gap: 4px;
    }
    
    .filter-group label {
      font-size: 10px;
      text-transform: uppercase;
      letter-spacing: 0.5px;
      color: var(--text-muted);
    }
    
    .filter-group select {
      padding: 8px 32px 8px 12px;
      background: var(--bg-tertiary);
      border: 1px solid var(--border);
      border-radius: var(--radius-md);
      color: var(--text-primary);
      font-size: 13px;
      cursor: pointer;
      appearance: none;
      background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='%239ca3af' viewBox='0 0 16 16'%3E%3Cpath d='M8 10.5l-5-5h10l-5 5z'/%3E%3C/svg%3E");
      background-repeat: no-repeat;
      background-position: right 10px center;
    }
    
    .filter-group select:focus {
      outline: none;
      border-color: var(--accent-purple);
    }
    
    .view-toggle {
      display: flex;
      background: var(--bg-tertiary);
      border-radius: var(--radius-md);
      padding: 3px;
    }
    
    .view-btn {
      padding: 6px 14px;
      border: none;
      background: transparent;
      color: var(--text-muted);
      font-size: 12px;
      border-radius: var(--radius-sm);
      cursor: pointer;
      transition: background 0.2s ease, color 0.2s ease;
    }

    .view-btn.active {
      background: var(--accent-purple);
      color: white;
    }
    
    /* Priority Insight Banner */
    .priority-insights-banner {
      background: linear-gradient(135deg, rgba(251, 191, 36, 0.15) 0%, rgba(245, 158, 11, 0.1) 100%);
      border: 1px solid rgba(251, 191, 36, 0.3);
      border-radius: var(--radius-xl);
      padding: 20px;
      margin-bottom: 24px;
    }
    
    .priority-header {
      display: flex;
      align-items: center;
      gap: 10px;
      margin-bottom: 12px;
    }
    
    .priority-icon {
      font-size: 20px;
    }
    
    .priority-title {
      font-weight: 600;
      color: var(--text-primary);
      font-size: 14px;
    }
    
    .priority-badge {
      padding: 3px 10px;
      background: rgba(251, 191, 36, 0.2);
      border-radius: var(--radius-lg);
      font-size: 10px;
      font-weight: 600;
      color: var(--accent-gold);
      text-transform: uppercase;
    }
    
    .priority-content {
      font-size: 15px;
      color: var(--text-secondary);
      line-height: 1.6;
    }
    
    .priority-content strong {
      color: var(--text-primary);
    }
    
    .priority-loading {
      color: var(--text-muted);
      font-style: italic;
    }
    
