/* Extracted from lighthouse-app.html (UI redesign N1) — load order matters */
    /* Optimizations Modal */
    .optimization-modal {
      display: none;
      position: fixed;
      inset: 0;
      background: rgba(0, 0, 0, 0.8);
      z-index: 1000;
      align-items: center;
      justify-content: center;
    }
    
    .optimization-modal.active {
      display: flex;
    }
    
    .optimization-modal-content {
      background: var(--bg-card);
      border: 1px solid var(--border);
      border-radius: var(--radius-xl);
      max-width: 800px;
      max-height: 80vh;
      overflow-y: auto;
      width: 90%;
    }
    
    .optimization-modal-header {
      padding: 24px;
      border-bottom: 1px solid var(--border);
      display: flex;
      justify-content: space-between;
      align-items: center;
    }
    
    .optimization-modal-body {
      padding: 24px;
    }
    
    .optimization-card {
      background: var(--bg-tertiary);
      border-radius: var(--radius-lg);
      padding: 16px;
      margin-bottom: 16px;
      border: 1px solid var(--border);
    }

    .optimization-card.high { background: rgba(239, 68, 68, 0.06); border-color: rgba(239, 68, 68, 0.2); }
    .optimization-card.medium { background: rgba(234, 179, 8, 0.06); border-color: rgba(234, 179, 8, 0.2); }
    .optimization-card.low { background: rgba(34, 197, 94, 0.06); border-color: rgba(34, 197, 94, 0.2); }
    
    .optimization-card-header {
      display: flex;
      justify-content: space-between;
      align-items: flex-start;
      margin-bottom: 12px;
    }
    
    .optimization-type {
      font-size: 10px;
      text-transform: uppercase;
      letter-spacing: 0.5px;
      padding: 3px 8px;
      border-radius: var(--radius-xs);
      background: var(--bg-secondary);
      color: var(--text-secondary);
    }
    
    .optimization-priority {
      font-size: 10px;
      font-weight: 600;
      padding: 3px 8px;
      border-radius: var(--radius-xs);
    }
    
    .optimization-priority.high { background: var(--accent-red)30; color: #fca5a5; }
    .optimization-priority.medium { background: var(--accent-yellow)30; color: #fde047; }
    .optimization-priority.low { background: var(--accent-green)30; color: #86efac; }
    
    .optimization-action {
      font-size: 14px;
      font-weight: 500;
      color: var(--text-primary);
      margin-bottom: 8px;
    }
    
    .optimization-details {
      font-size: 12px;
      color: var(--text-secondary);
      margin-bottom: 8px;
    }
    
    .optimization-example {
      background: var(--bg-secondary);
      border-radius: var(--radius-md);
      padding: 12px;
      font-size: 12px;
      font-family: 'IBM Plex Mono', 'JetBrains Mono', monospace;
      color: var(--accent);
      border: 1px solid rgba(232, 168, 48, 0.2);
    }

    /* Query Fanout Visualization */
    .fanout-container {
      background: var(--bg-card);
      border: 1px solid var(--border);
      border-radius: var(--radius-xl);
      padding: 24px;
    }
    
    .fanout-header {
      display: flex;
      align-items: center;
      justify-content: space-between;
      margin-bottom: 20px;
    }
    
    .fanout-title {
      font-size: 16px;
      font-weight: 600;
    }
    
    .fanout-subtitle {
      font-size: 12px;
      color: var(--text-muted);
    }
    
    .fanout-diagram {
      display: flex;
      align-items: flex-start;
      gap: 20px;
      overflow-x: auto;
      padding: 20px 0;
    }
    
    .fanout-root {
      background: var(--accent);
      color: var(--bg-primary);
      padding: 16px 20px;
      border-radius: var(--radius-lg);
      font-size: 14px;
      font-weight: 600;
      min-width: 200px;
      text-align: center;
      flex-shrink: 0;
      box-shadow: var(--shadow-glow);
    }
    
    .fanout-root-label {
      font-size: 10px;
      text-transform: uppercase;
      letter-spacing: 1px;
      opacity: 0.8;
      margin-bottom: 6px;
    }
    
    .fanout-connector {
      display: flex;
      flex-direction: column;
      align-items: center;
      justify-content: center;
      min-width: 60px;
      flex-shrink: 0;
    }
    
    .fanout-arrow {
      color: var(--accent);
      font-size: 24px;
    }
    
    .fanout-arrow-label {
      font-size: 10px;
      color: var(--text-muted);
      text-transform: uppercase;
    }
    
    .fanout-branches {
      display: flex;
      flex-direction: column;
      gap: 10px;
      flex-shrink: 0;
    }
    
    .fanout-branch {
      display: flex;
      align-items: center;
      gap: 12px;
      padding: 12px 16px;
      background: var(--bg-tertiary);
      border: 1px solid var(--border);
      border-radius: var(--radius-lg);
      min-width: 280px;
      cursor: pointer;
      transition: border-color 0.2s ease, background 0.2s ease;
    }

    .fanout-branch:hover {
      border-color: var(--accent);
      background: rgba(232, 168, 48, 0.05);
    }
    
    .fanout-branch-icon {
      width: 32px;
      height: 32px;
      border-radius: var(--radius-md);
      display: flex;
      align-items: center;
      justify-content: center;
      font-size: 14px;
      flex-shrink: 0;
    }
    
    .fanout-branch-icon.discovery { background: rgba(168, 85, 247, 0.2); }
    .fanout-branch-icon.comparison { background: rgba(59, 130, 246, 0.2); }
    .fanout-branch-icon.recommendation { background: rgba(34, 197, 94, 0.2); }
    .fanout-branch-icon.local { background: rgba(249, 115, 22, 0.2); }
    .fanout-branch-icon.review { background: rgba(234, 179, 8, 0.2); }
    .fanout-branch-icon.pricing { background: rgba(239, 68, 68, 0.2); }
    
    .fanout-branch-content {
      flex: 1;
    }
    
    .fanout-branch-type {
      font-size: 10px;
      text-transform: uppercase;
      letter-spacing: 0.5px;
      color: var(--text-muted);
      margin-bottom: 2px;
    }
    
    .fanout-branch-query {
      font-size: 13px;
      color: var(--text-primary);
    }
    
    .fanout-branch-purpose {
      font-size: 11px;
      color: var(--text-muted);
      margin-top: 4px;
    }
    
    /* Dual Column Fanout Layout */
    .fanout-dual-container {
      display: grid;
      grid-template-columns: repeat(2, 1fr);
      gap: 24px;
    }
    
    .fanout-column {
      background: var(--bg-tertiary);
      border-radius: var(--radius-lg);
      padding: 20px;
    }
    
    .fanout-column-header {
      display: flex;
      align-items: center;
      gap: 12px;
      margin-bottom: 16px;
      padding-bottom: 12px;
      border-bottom: 1px solid var(--border);
    }
    
    .fanout-column-header.unbranded {
      border-bottom-color: rgba(59, 130, 246, 0.3);
    }
    
    .fanout-column-header.branded {
      border-bottom-color: rgba(168, 85, 247, 0.3);
    }
    
    .fanout-column-icon {
      font-size: 28px;
    }
    
    .fanout-column-title {
      font-size: 14px;
      font-weight: 600;
      color: var(--text-primary);
    }
    
    .fanout-column-desc {
      font-size: 11px;
      color: var(--text-muted);
    }
    
    .fanout-root.unbranded {
      border-color: rgba(59, 130, 246, 0.4);
      background: rgba(59, 130, 246, 0.1);
    }
    
    .fanout-root.branded {
      border-color: rgba(168, 85, 247, 0.4);
      background: rgba(168, 85, 247, 0.1);
    }
    
    .fanout-journey {
      display: flex;
      flex-direction: column;
      gap: 8px;
      margin-top: 16px;
    }
    
    .fanout-branch-stage {
      font-size: 9px;
      text-transform: uppercase;
      letter-spacing: 0.5px;
      padding: 2px 8px;
      border-radius: var(--radius-xs);
      font-weight: 600;
    }
    
    .fanout-legend {
      margin-top: 20px;
      padding-top: 16px;
      border-top: 1px solid var(--border);
    }
    
    .fanout-legend-title {
      font-size: 11px;
      color: var(--text-muted);
      margin-bottom: 10px;
    }
    
    .fanout-legend-items {
      display: flex;
      gap: 20px;
      flex-wrap: wrap;
    }
    
    .fanout-legend-item {
      display: flex;
      align-items: center;
      gap: 6px;
      font-size: 12px;
      color: var(--text-secondary);
    }
    
    .fanout-legend-dot {
      width: 10px;
      height: 10px;
      border-radius: 50%;
    }
    
    @media (max-width: 900px) {
      .fanout-dual-container {
        grid-template-columns: 1fr;
      }
    }
    
    /* Tooltips */
    .tooltip-trigger {
      position: relative;
      cursor: help;
    }
    
    .tooltip-trigger::after {
      content: attr(data-tooltip);
      position: absolute;
      bottom: calc(100% + 8px);
      left: 50%;
      transform: translateX(-50%);
      padding: 12px 16px;
      background: var(--bg-secondary);
      border: 1px solid var(--accent);
      border-radius: var(--radius-lg);
      font-size: 13px;
      font-weight: 400;
      line-height: 1.5;
      color: var(--text-primary);
      white-space: normal;
      max-width: 320px;
      min-width: 200px;
      text-align: left;
      opacity: 0;
      visibility: hidden;
      transition: opacity 0.2s ease, visibility 0.2s ease;
      z-index: 1000;
      box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
    }

    .tooltip-trigger:hover::after {
      opacity: 1;
      visibility: visible;
    }
    
    .help-icon {
      display: inline-flex;
      align-items: center;
      justify-content: center;
      width: 16px;
      height: 16px;
      border-radius: 50%;
      background: var(--bg-tertiary);
      color: var(--text-muted);
      font-size: 10px;
      cursor: help;
      margin-left: 6px;
    }

    /* Contextual learn-more links */
    .learn-more-link {
      display: inline-flex;
      align-items: center;
      justify-content: center;
      width: 16px;
      height: 16px;
      border-radius: 50%;
      background: transparent;
      border: 1px solid var(--border);
      color: var(--text-muted);
      font-size: 10px;
      text-decoration: none;
      margin-left: 6px;
      cursor: pointer;
      transition: opacity 0.2s, color 0.2s, border-color 0.2s, background 0.2s;
      opacity: 0.5;
      vertical-align: middle;
    }
    .learn-more-link:hover {
      opacity: 1;
      color: var(--accent);
      border-color: var(--accent);
      background: rgba(232, 168, 48, 0.08);
    }

    /* Enhanced Pro Tooltips for Logged-in Users */
    .pro-insight-tooltip {
      position: absolute;
      bottom: calc(100% + 12px);
      left: 50%;
      transform: translateX(-50%);
      background: linear-gradient(135deg, var(--bg-secondary) 0%, rgba(15, 23, 42, 0.98) 100%);
      border: 1px solid rgba(232, 168, 48, 0.3);
      border-radius: var(--radius-lg);
      padding: 16px;
      min-width: 320px;
      max-width: 380px;
      opacity: 0;
      visibility: hidden;
      transition: opacity 0.25s ease, visibility 0.25s ease;
      z-index: 1001;
      box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4), 0 0 0 1px rgba(232, 168, 48, 0.1);
      pointer-events: none;
    }
    
    .score-card:hover .pro-insight-tooltip,
    .bot-stat-card:hover .pro-insight-tooltip,
    .geo-metric:hover .pro-insight-tooltip,
    .citation-stat:hover .pro-insight-tooltip,
    .key-metric-card:hover .pro-insight-tooltip,
    .commerce-metric-card:hover .pro-insight-tooltip,
    .influencer-stat-card:hover .pro-insight-tooltip {
      opacity: 1;
      visibility: visible;
    }
    
    /* Ensure metric containers can position tooltips */
    .key-metric-card,
    .commerce-metric-card,
    .influencer-stat-card {
      position: relative;
    }
    
    /* Subtle hover hint - dotted underline on labels with help icons */
    .score-label:has(.help-icon),
    .citation-stat-label:has(.help-icon),
    .influencer-stat-label:has(.help-icon) {
      border-bottom: 1px dotted rgba(148, 163, 184, 0.3);
      padding-bottom: 2px;
      display: inline-block;
    }
    
    /* Score card subtle glow animation on first load */
    @keyframes metricHintGlow {
      0% { box-shadow: 0 0 0 0 rgba(232, 168, 48, 0); }
      50% { box-shadow: 0 0 0 2px rgba(232, 168, 48, 0.15); }
      100% { box-shadow: 0 0 0 0 rgba(232, 168, 48, 0); }
    }
    .score-card:has(.pro-insight-tooltip) {
      animation: metricHintGlow 2s ease-out 1.5s 1;
    }
    
    .pro-insight-header {
      display: flex;
      align-items: center;
      gap: 8px;
      margin-bottom: 12px;
      padding-bottom: 10px;
      border-bottom: 1px solid var(--border);
    }
    
    .pro-insight-badge {
      background: linear-gradient(135deg, var(--accent), var(--accent-purple));
      color: white;
      font-size: 9px;
      font-weight: 700;
      padding: 3px 8px;
      border-radius: var(--radius-lg);
      text-transform: uppercase;
      letter-spacing: 0.5px;
    }
    
    .pro-insight-title {
      font-size: 13px;
      font-weight: 600;
      color: var(--text-primary);
    }
    
    .pro-insight-definition {
      font-size: 13px;
      color: var(--text-primary);
      line-height: 1.6;
      margin-bottom: 14px;
      padding: 10px 12px;
      background: rgba(232, 168, 48, 0.05);
      border-radius: var(--radius-md);
      border: 1px solid rgba(232, 168, 48, 0.2);
    }

    .pro-insight-benchmark {
      display: flex;
      gap: 8px;
      margin-bottom: 12px;
      padding: 10px;
      background: var(--bg-tertiary);
      border-radius: var(--radius-md);
    }
    
    .benchmark-item {
      flex: 1;
      text-align: center;
    }
    
    .benchmark-label {
      font-size: 10px;
      color: var(--text-muted);
      text-transform: uppercase;
      margin-bottom: 4px;
    }
    
    .benchmark-value {
      font-size: 14px;
      font-weight: 700;
    }
    
    .benchmark-value.poor { color: var(--accent-red); }
    .benchmark-value.moderate { color: var(--accent-yellow); }
    .benchmark-value.good { color: var(--accent-green); }
    
    .pro-insight-strategy {
      background: rgba(168, 85, 247, 0.1);
      border: 1px solid rgba(168, 85, 247, 0.2);
      border-radius: var(--radius-md);
      padding: 10px;
    }
    
    .pro-insight-strategy-label {
      font-size: 10px;
      font-weight: 600;
      color: var(--accent-purple);
      text-transform: uppercase;
      letter-spacing: 0.5px;
      margin-bottom: 6px;
      display: flex;
      align-items: center;
      gap: 4px;
    }
    
    .pro-insight-strategy-text {
      font-size: 12px;
      color: var(--text-primary);
      line-height: 1.5;
    }
    
    .pro-insight-arrow {
      position: absolute;
      bottom: -8px;
      left: 50%;
      transform: translateX(-50%);
      width: 0;
      height: 0;
      border-left: 8px solid transparent;
      border-right: 8px solid transparent;
      border-top: 8px solid rgba(232, 168, 48, 0.3);
    }
    
    /* Floating AI Agent Widget */
    .ai-agent-fab {
      position: fixed;
      bottom: 24px;
      right: 24px;
      width: 60px;
      height: 60px;
      border-radius: 50%;
      background: #0f0f1a;
      border: 1px solid rgba(139, 92, 246, 0.3);
      box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
      cursor: pointer;
      z-index: 9999;
      display: flex;
      align-items: center;
      justify-content: center;
      transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
    }

    .ai-agent-fab:hover {
      transform: scale(1.1);
      box-shadow: 0 6px 30px rgba(139, 92, 246, 0.4), 0 0 40px rgba(16, 185, 129, 0.2);
      border-color: rgba(139, 92, 246, 0.5);
    }
    
    .ai-agent-fab-icon {
      font-size: 28px;
      display: flex;
      align-items: center;
      justify-content: center;
    }
    
    .aurora-orb {
      width: 32px;
      height: 32px;
      border-radius: 50%;
      position: relative;
      background: linear-gradient(135deg, #10b981, #06b6d4, #8b5cf6, #ec4899);
      background-size: 400% 400%;
      animation: auroraShift 20s ease infinite;
      box-shadow: 
        0 0 20px rgba(16, 185, 129, 0.6),
        0 0 40px rgba(139, 92, 246, 0.4),
        0 0 60px rgba(236, 72, 153, 0.2);
    }
    
    .aurora-orb::before {
      content: '';
      position: absolute;
      inset: 3px;
      border-radius: 50%;
      background: linear-gradient(135deg, 
        rgba(255,255,255,0.9) 0%, 
        rgba(255,255,255,0.4) 30%,
        rgba(255,255,255,0.1) 60%,
        transparent 100%);
    }
    
    .aurora-orb::after {
      content: '';
      position: absolute;
      inset: -4px;
      border-radius: 50%;
      background: linear-gradient(135deg, #10b981, #06b6d4, #8b5cf6, #ec4899);
      background-size: 400% 400%;
      animation: auroraShift 20s ease infinite;
      filter: blur(8px);
      opacity: 0.6;
      z-index: -1;
    }
    
    @keyframes auroraShift {
      0% {
        background-position: 0% 50%;
        box-shadow: 
          0 0 20px rgba(16, 185, 129, 0.6),
          0 0 40px rgba(6, 182, 212, 0.4),
          0 0 60px rgba(139, 92, 246, 0.2);
      }
      25% {
        background-position: 50% 100%;
        box-shadow: 
          0 0 20px rgba(6, 182, 212, 0.6),
          0 0 40px rgba(139, 92, 246, 0.4),
          0 0 60px rgba(236, 72, 153, 0.2);
      }
      50% {
        background-position: 100% 50%;
        box-shadow: 
          0 0 20px rgba(139, 92, 246, 0.6),
          0 0 40px rgba(236, 72, 153, 0.4),
          0 0 60px rgba(16, 185, 129, 0.2);
      }
      75% {
        background-position: 50% 0%;
        box-shadow: 
          0 0 20px rgba(236, 72, 153, 0.6),
          0 0 40px rgba(16, 185, 129, 0.4),
          0 0 60px rgba(6, 182, 212, 0.2);
      }
      100% {
        background-position: 0% 50%;
        box-shadow: 
          0 0 20px rgba(16, 185, 129, 0.6),
          0 0 40px rgba(6, 182, 212, 0.4),
          0 0 60px rgba(139, 92, 246, 0.2);
      }
    }
    
    .ai-agent-fab-pulse {
      position: absolute;
      inset: -4px;
      border-radius: 50%;
      border: 2px solid rgba(16, 185, 129, 0.4);
      animation: fabPulse 3s infinite;
    }
    
    @keyframes fabPulse {
      0% { transform: scale(1); opacity: 1; }
      100% { transform: scale(1.3); opacity: 0; }
    }
    
    .ai-agent-fab-badge {
      position: absolute;
      top: -4px;
      right: -4px;
      width: 20px;
      height: 20px;
      border-radius: 50%;
      background: var(--accent-red);
      color: white;
      font-size: 12px;
      font-weight: 700;
      display: none;
      align-items: center;
      justify-content: center;
    }
    
    .ai-agent-fab-badge.show {
      display: flex;
    }
    
    .ai-agent-floating {
      position: fixed;
      bottom: 100px;
      right: 24px;
      width: 420px;
      max-height: 600px;
      background: var(--bg-secondary);
      border: 1px solid var(--border);
      border-radius: var(--radius-2xl);
      box-shadow: 0 10px 50px rgba(0, 0, 0, 0.4);
      z-index: 9998;
      display: none;
      flex-direction: column;
      overflow: hidden;
      animation: slideUp 0.3s ease;
    }
    
    .ai-agent-floating.open {
      display: flex;
    }
    
    @keyframes slideUp {
      from { opacity: 0; transform: translateY(20px); }
      to { opacity: 1; transform: translateY(0); }
    }
    
    @keyframes toastSlideUp {
      from { opacity: 0; transform: translateY(16px) scale(0.95); }
      to { opacity: 1; transform: translateY(0) scale(1); }
    }

    @keyframes toastSlideDown {
      from { opacity: 1; transform: translateY(0) scale(1); }
      to { opacity: 0; transform: translateY(16px) scale(0.95); }
    }

    /* Toast Container & Notification System */
    .toast-container {
      position: fixed;
      bottom: 24px;
      left: 50%;
      transform: translateX(-50%);
      display: flex;
      flex-direction: column-reverse;
      gap: 8px;
      z-index: 10001;
      pointer-events: none;
      max-width: 440px;
      width: calc(100% - 32px);
    }

    .toast-notification {
      display: flex;
      align-items: center;
      gap: 10px;
      padding: 12px 16px;
      background: var(--bg-card);
      border: 1px solid var(--border);
      border-radius: var(--radius-lg);
      color: var(--text-primary);
      font-size: 13px;
      line-height: 1.4;
      box-shadow: var(--shadow-md), 0 8px 32px rgba(0,0,0,0.2);
      pointer-events: auto;
      animation: toastSlideUp var(--duration-slow) var(--ease-out);
    }
    .toast-notification.exiting {
      animation: toastSlideDown var(--duration-slow) var(--ease-out) forwards;
    }

    .toast-icon {
      width: 22px;
      height: 22px;
      border-radius: 50%;
      display: flex;
      align-items: center;
      justify-content: center;
      font-size: 12px;
      flex-shrink: 0;
      font-weight: 700;
    }

    .toast-message { flex: 1; }

    .toast-dismiss {
      background: none;
      border: none;
      color: var(--text-muted);
      font-size: 16px;
      cursor: pointer;
      padding: 2px 4px;
      line-height: 1;
      opacity: 0.6;
      transition: opacity var(--duration-fast) ease;
      flex-shrink: 0;
    }
    .toast-dismiss:hover { opacity: 1; }

    .toast-retry {
      background: rgba(255,255,255,0.1);
      border: 1px solid rgba(255,255,255,0.15);
      color: var(--text-primary);
      font-size: 11px;
      font-weight: 600;
      padding: 4px 10px;
      border-radius: var(--radius-sm);
      cursor: pointer;
      white-space: nowrap;
      flex-shrink: 0;
      transition: background var(--duration-fast) var(--ease-out);
    }
    .toast-retry:hover { background: rgba(255,255,255,0.18); }

    /* Inline error state with retry — used inside sections */
    .section-error-state {
      text-align: center;
      padding: 32px 20px;
      color: var(--text-secondary);
      font-size: 13px;
      line-height: 1.5;
    }
    .section-error-state .error-icon {
      font-size: 28px;
      margin-bottom: 8px;
      opacity: 0.6;
    }
    .section-error-state .error-msg {
      margin-bottom: 12px;
      color: var(--accent-red);
    }
    .section-error-state .retry-btn {
      display: inline-flex;
      align-items: center;
      gap: 6px;
      padding: 8px 16px;
      font-size: 12px;
      font-weight: 600;
      color: var(--text-primary);
      background: rgba(255,255,255,0.06);
      border: 1px solid var(--border);
      border-radius: var(--radius-md);
      cursor: pointer;
      transition: background var(--duration-fast) var(--ease-out), border-color var(--duration-fast) var(--ease-out), opacity var(--duration-fast) var(--ease-out);
    }
    .section-error-state .retry-btn:hover {
      background: rgba(255,255,255,0.1);
      border-color: var(--accent);
    }
    .section-error-state .retry-btn.loading {
      opacity: 0.6;
      pointer-events: none;
    }

    @media (max-width: 480px) {
      .toast-container {
        left: 8px;
        right: 8px;
        transform: none;
        max-width: none;
        width: auto;
        bottom: 16px;
      }
    }
    
    .ai-agent-floating-header {
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 8px;
      padding: 16px 20px;
      background: linear-gradient(135deg, rgba(168, 85, 247, 0.15), rgba(59, 130, 246, 0.15));
      border-bottom: 1px solid var(--border);
    }
    
    .ai-agent-floating-title {
      display: flex;
      align-items: center;
      gap: 12px;
    }
    
    .ai-agent-avatar {
      width: 40px;
      height: 40px;
      border-radius: var(--radius-lg);
      background: linear-gradient(135deg, var(--accent-purple), var(--accent-blue));
      display: flex;
      align-items: center;
      justify-content: center;
      font-size: 20px;
    }
    
    .ai-agent-status {
      font-size: 11px;
      color: var(--accent-green);
      display: flex;
      align-items: center;
      gap: 6px;
    }
    
    .status-dot {
      width: 6px;
      height: 6px;
      background: var(--accent-green);
      border-radius: 50%;
      animation: pulse 2s infinite;
    }
    
    .ai-agent-floating-actions {
      display: flex;
      gap: 8px;
    }
    
    .ai-agent-action-btn {
      width: 32px;
      height: 32px;
      border-radius: var(--radius-md);
      background: transparent;
      border: 1px solid var(--border);
      cursor: pointer;
      display: flex;
      align-items: center;
      justify-content: center;
      font-size: 14px;
      transition: background 0.2s ease, border-color 0.2s ease;
    }

    .ai-agent-action-btn:hover {
      background: var(--bg-tertiary);
      border-color: var(--accent-purple);
    }
    
    .ai-agent-floating-messages {
      flex: 1;
      overflow-y: auto;
      padding: 16px;
      max-height: 400px;
    }
    
    .ai-message {
      margin-bottom: 16px;
      animation: fadeIn 0.3s ease;
    }
    
    @keyframes fadeIn {
      from { opacity: 0; transform: translateY(10px); }
      to { opacity: 1; transform: translateY(0); }
    }
    
    .ai-message-bubble {
      background: var(--bg-tertiary);
      border-radius: var(--radius-lg);
      padding: 14px 16px;
      font-size: 13px;
      line-height: 1.6;
      color: var(--text-secondary);
    }
    
    .ai-message-bubble.user {
      background: linear-gradient(135deg, rgba(168, 85, 247, 0.2), rgba(59, 130, 246, 0.2));
      border-left: none;
      margin-left: 40px;
    }
    
    .ai-message-bubble.insight {
      background: rgba(168, 85, 247, 0.06);
      border: 1px solid rgba(168, 85, 247, 0.2);
    }

    .ai-message-bubble.warning {
      background: rgba(239, 68, 68, 0.06);
      border: 1px solid rgba(239, 68, 68, 0.2);
    }

    .ai-message-bubble.success {
      background: rgba(34, 197, 94, 0.06);
      border: 1px solid rgba(34, 197, 94, 0.2);
    }

    .ai-message-bubble.action {
      background: rgba(59, 130, 246, 0.06);
      border: 1px solid rgba(59, 130, 246, 0.2);
    }

    .ai-message-bubble.aurora {
      background: rgba(168, 85, 247, 0.06);
      border: 1px solid rgba(168, 85, 247, 0.2);
    }

    .ai-message-bubble.support {
      background: rgba(59, 130, 246, 0.06);
      border: 1px solid rgba(59, 130, 246, 0.2);
    }

    .aurora-mode-toggle {
      display: flex;
      gap: 2px;
      background: rgba(0,0,0,0.2);
      border-radius: 8px;
      padding: 2px;
    }
    .aurora-mode-btn {
      padding: 4px 10px;
      border: none;
      border-radius: 6px;
      background: transparent;
      color: var(--text-muted);
      font-size: 11px;
      font-weight: 500;
      cursor: pointer;
      transition: background 0.2s ease, color 0.2s ease;
      display: flex;
      align-items: center;
      gap: 4px;
      white-space: nowrap;
    }
    .aurora-mode-btn.active {
      background: rgba(168, 85, 247, 0.3);
      color: var(--text-primary);
    }
    .aurora-mode-btn#supportModeBtn.active {
      background: rgba(59, 130, 246, 0.3);
    }
    .aurora-mode-btn:hover:not(.active) {
      background: rgba(255,255,255,0.05);
      color: var(--text-secondary);
    }
    .mode-icon { font-size: 12px; }

    @media (max-width: 500px) {
      .aurora-mode-btn { padding: 3px 7px; font-size: 10px; }
      .mode-icon { font-size: 10px; }
    }

    .ai-message-label {
      font-size: 10px;
      text-transform: uppercase;
      letter-spacing: 0.5px;
      color: var(--text-muted);
      margin-bottom: 8px;
      display: flex;
      align-items: center;
      gap: 6px;
    }
    
    .ai-message-content h4 {
      font-size: 14px;
      font-weight: 600;
      color: var(--text-primary);
      margin-bottom: 8px;
    }
    
    .ai-message-content ul, .ai-message-content ol {
      margin: 8px 0;
      padding-left: 20px;
    }
    
    .ai-message-content li {
      margin-bottom: 6px;
    }
    
    .ai-suggested-questions {
      display: flex;
      flex-wrap: wrap;
      gap: 8px;
      margin-top: 12px;
    }
    
    .ai-suggested-btn {
      padding: 8px 12px;
      background: var(--bg-secondary);
      border: 1px solid var(--border);
      border-radius: var(--radius-2xl);
      font-size: 11px;
      color: var(--text-secondary);
      cursor: pointer;
      transition: border-color 0.2s ease, color 0.2s ease, background 0.2s ease;
    }

    .ai-suggested-btn:hover {
      border-color: var(--accent-purple);
      color: var(--accent-purple);
      background: rgba(168, 85, 247, 0.1);
    }
    
    .ai-action-btn {
      display: inline-flex;
      align-items: center;
      gap: 6px;
      padding: 8px 14px;
      background: var(--bg-secondary);
      border: 1px solid var(--border);
      border-radius: var(--radius-md);
      font-size: 12px;
      color: var(--text-secondary);
      cursor: pointer;
      transition: border-color 0.2s ease, color 0.2s ease;
      margin-top: 10px;
      margin-right: 8px;
    }

    .ai-action-btn:hover {
      border-color: var(--accent-purple);
      color: var(--accent-purple);
    }
    
    .ai-agent-floating-input {
      display: flex;
      gap: 10px;
      padding: 16px;
      border-top: 1px solid var(--border);
      background: var(--bg-card);
    }
    
    .ai-agent-floating-input input {
      flex: 1;
      background: var(--bg-tertiary);
      border: 1px solid var(--border);
      border-radius: var(--radius-lg);
      padding: 12px 16px;
      font-size: 13px;
      color: var(--text-primary);
    }
    
    .ai-agent-floating-input input::placeholder {
      color: var(--text-muted);
    }
    
    .ai-agent-floating-input input:focus {
      outline: none;
      border-color: var(--accent-purple);
      box-shadow: 0 0 0 3px rgba(168, 85, 247, 0.1);
    }
    
    .ai-agent-floating-input button {
      padding: 12px 20px;
      background: linear-gradient(135deg, var(--accent-purple), var(--accent-blue));
      border: none;
      border-radius: var(--radius-lg);
      color: white;
      font-weight: 600;
      font-size: 13px;
      cursor: pointer;
      transition: transform 0.2s ease, box-shadow 0.2s ease, opacity 0.2s ease;
      display: flex;
      align-items: center;
      gap: 8px;
    }

    .ai-agent-floating-input button:hover {
      transform: scale(1.02);
      box-shadow: 0 4px 12px rgba(168, 85, 247, 0.3);
    }
    
    .ai-agent-floating-input button:disabled {
      opacity: 0.6;
      cursor: not-allowed;
      transform: none;
    }
    
    .ai-typing {
      display: flex;
      gap: 4px;
      padding: 8px 0;
    }
    
    .ai-typing-dot {
      width: 8px;
      height: 8px;
      background: var(--text-muted);
      border-radius: 50%;
      animation: typing 1.4s infinite;
    }
    
    .ai-typing-dot:nth-child(2) { animation-delay: 0.2s; }
    .ai-typing-dot:nth-child(3) { animation-delay: 0.4s; }
    
    @keyframes typing {
      0%, 60%, 100% { opacity: 0.3; transform: scale(1); }
      30% { opacity: 1; transform: scale(1.2); }
    }
    
    .ai-source-tag {
      display: inline-flex;
      align-items: center;
      gap: 4px;
      padding: 2px 8px;
      background: rgba(59, 130, 246, 0.1);
      border-radius: var(--radius-xs);
      font-size: 10px;
      color: var(--accent-blue);
      margin-top: 8px;
    }
    
    .ai-source-tag a {
      color: var(--accent-blue);
      text-decoration: none;
    }
    
    .ai-source-tag a:hover {
      text-decoration: underline;
    }
    
