/* Extracted from lighthouse-app.html (UI redesign N1) — load order matters */
    /* Auth UI Styles */
    .auth-header {
      position: fixed;
      top: 0;
      right: 0;
      padding: 20px 30px;
      display: flex;
      align-items: center;
      gap: 12px;
      z-index: 1000;
    }

    /* The auth header is a fixed overlay — without a reserve, the dashboard
       header's right-side controls (AI platform filter, action buttons)
       slide underneath it. Anonymous users have the widest cluster
       (credits badge + Log In + Sign Up ≈ 352px); signed-in is just the
       avatar + badge. */
    @media (min-width: 900px) {
      body:has(#authButtons:not([style*="none"])) .dashboard .dashboard-header {
        padding-right: 380px;
      }
      body:has(#userMenu:not([style*="none"])) .dashboard .dashboard-header {
        padding-right: 180px;
      }
      /* Keep the sample-report banner's centred content clear of the fixed
         auth cluster so the gold fill never runs under the Log In button. */
      body:has(#authButtons:not([style*="none"])) #obDemoBanner {
        padding-right: 360px;
      }
      body:has(#userMenu:not([style*="none"])) #obDemoBanner {
        padding-right: 160px;
      }
    }

    .auth-btn {
      padding: 10px 20px;
      border-radius: var(--radius-md);
      font-size: 14px;
      font-weight: 600;
      cursor: pointer;
      transition: border-color 0.2s ease, background 0.2s ease;
    }
    
    /* Solid surface so the label stays readable on ANY backdrop —
       including the gold sample-report banner the fixed header overlays. */
    .auth-btn-login {
      background: var(--bg-card);
      border: 1px solid var(--border);
      color: var(--text-primary);
      box-shadow: var(--shadow-sm);
    }

    .auth-btn-login:hover {
      border-color: var(--accent);
      color: var(--accent);
      background: var(--bg-tertiary);
    }

    /* Solid violet fill (was a gold→violet gradient that muddied against the
       gold banner); white text reads cleanly on it everywhere. */
    .auth-btn-signup {
      background: var(--accent-purple);
      border: 1px solid transparent;
      color: #fff;
      box-shadow: var(--shadow-sm);
    }

    .auth-btn-signup:hover {
      transform: translateY(-2px);
      filter: brightness(1.08);
      box-shadow: 0 4px 15px rgba(139, 92, 246, 0.35);
    }
    
    .user-menu {
      position: relative;
    }
    
    .user-avatar {
      width: 40px;
      height: 40px;
      border-radius: 50%;
      background: linear-gradient(135deg, var(--accent), var(--accent-purple));
      display: flex;
      align-items: center;
      justify-content: center;
      color: #fff;
      font-weight: 700;
      font-size: 16px;
      cursor: pointer;
      border: 2px solid transparent;
      transition: border-color 0.2s ease, background 0.2s ease;
    }
    
    .user-avatar:hover {
      border-color: var(--accent);
    }
    
    .user-avatar img {
      width: 100%;
      height: 100%;
      border-radius: 50%;
      object-fit: cover;
    }
    
    .user-dropdown {
      position: absolute;
      top: 50px;
      right: 0;
      background: var(--bg-card);
      border: 1px solid var(--border);
      border-radius: var(--radius-lg);
      padding: 8px;
      min-width: 200px;
      box-shadow: 0 10px 40px rgba(0,0,0,0.3);
      opacity: 0;
      visibility: hidden;
      transform: translateY(-10px);
      transition: border-color 0.2s ease, background 0.2s ease;
    }
    
    .user-dropdown.active {
      opacity: 1;
      visibility: visible;
      transform: translateY(0);
    }
    
    .user-dropdown-header {
      padding: 12px;
      border-bottom: 1px solid var(--border);
      margin-bottom: 8px;
    }
    
    .user-dropdown-name {
      font-weight: 600;
      color: var(--text-primary);
      font-size: 14px;
    }
    
    .user-dropdown-email {
      font-size: 12px;
      color: var(--text-muted);
      margin-top: 4px;
    }
    
    .user-dropdown-item {
      display: flex;
      align-items: center;
      gap: 10px;
      padding: 10px 12px;
      border-radius: var(--radius-md);
      cursor: pointer;
      font-size: 13px;
      color: var(--text-secondary);
      transition: border-color 0.15s ease, background 0.15s ease ease;
    }
    
    .user-dropdown-item:hover {
      background: var(--bg-tertiary);
      color: var(--text-primary);
    }
    
    .user-dropdown-item.danger:hover {
      background: rgba(239, 68, 68, 0.1);
      color: var(--accent-red);
    }
    
    /* Persona Detail Modal & Methodology Modal */
    .modal-overlay {
      position: fixed;
      top: 0;
      left: 0;
      right: 0;
      bottom: 0;
      background: rgba(0, 0, 0, 0.6);
      backdrop-filter: blur(8px) saturate(1.2);
      -webkit-backdrop-filter: blur(8px) saturate(1.2);
      display: none;
      align-items: center;
      justify-content: center;
      z-index: 2000;
      padding: 20px;
      overflow-y: auto;
    }
    
    .modal-overlay.visible {
      display: flex;
    }
    
    .modal-overlay .modal {
      background: var(--bg-card);
      border: 1px solid var(--border);
      border-radius: var(--radius-2xl);
      width: 100%;
      max-width: 700px;
      max-height: 90vh;
      overflow-y: auto;
      animation: modalSlideIn 0.3s ease;
    }
    
    @keyframes modalSlideIn {
      0% {
        opacity: 0;
        transform: scale(0.92) translateY(-24px);
      }
      60% {
        opacity: 1;
        transform: scale(1.01) translateY(2px);
      }
      100% {
        opacity: 1;
        transform: scale(1) translateY(0);
      }
    }
    
    .modal-overlay .modal-header {
      display: flex;
      justify-content: space-between;
      align-items: center;
      padding: 20px 24px;
      border-bottom: 1px solid var(--border);
      position: sticky;
      top: 0;
      background: var(--bg-card);
      z-index: 10;
    }
    
    .modal-overlay .modal-body {
      padding: 24px;
    }

    /* Share Modal */
    .share-modal {
      max-width: 480px !important;
    }

    .share-tabs {
      display: flex;
      border-bottom: 1px solid var(--border);
      padding: 0 24px;
    }

    .share-tab {
      padding: 12px 16px;
      font-size: 13px;
      font-weight: 600;
      color: var(--text-muted);
      background: none;
      border: none;
      border-bottom: 2px solid transparent;
      cursor: pointer;
      transition: border-color 0.2s ease, background 0.2s ease;
    }

    .share-tab:hover {
      color: var(--text-primary);
    }

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

    .share-panel {
      display: none;
      padding: 20px 24px;
    }

    .share-panel.active {
      display: block;
    }

    .share-link-box {
      display: flex;
      gap: 8px;
      margin-top: 12px;
    }

    .share-link-box input {
      flex: 1;
      padding: 10px 12px;
      background: var(--bg-tertiary);
      border: 1px solid var(--border);
      border-radius: var(--radius-md);
      color: var(--text-primary);
      font-size: 13px;
      font-family: monospace;
    }

    .share-link-box button {
      padding: 10px 16px;
      background: var(--accent);
      color: #000;
      border: none;
      border-radius: var(--radius-md);
      font-weight: 600;
      font-size: 13px;
      cursor: pointer;
      white-space: nowrap;
      transition: opacity 0.2s;
    }

    .share-link-box button:hover {
      opacity: 0.85;
    }

    .share-invite-row {
      display: flex;
      gap: 8px;
      margin-top: 12px;
    }

    .share-invite-row input {
      flex: 1;
      padding: 10px 12px;
      background: var(--bg-tertiary);
      border: 1px solid var(--border);
      border-radius: var(--radius-md);
      color: var(--text-primary);
      font-size: 13px;
    }

    .share-invite-row button {
      padding: 10px 16px;
      background: var(--accent-purple);
      color: #fff;
      border: none;
      border-radius: var(--radius-md);
      font-weight: 600;
      font-size: 13px;
      cursor: pointer;
      white-space: nowrap;
      transition: opacity 0.2s;
    }

    .share-invite-row button:hover {
      opacity: 0.85;
    }

    .share-list-item {
      display: flex;
      align-items: center;
      justify-content: space-between;
      padding: 10px 0;
      border-bottom: 1px solid var(--border);
    }

    .share-list-item:last-child {
      border-bottom: none;
    }

    .share-list-item-info {
      display: flex;
      flex-direction: column;
      gap: 2px;
    }

    .share-list-item-email {
      font-size: 13px;
      color: var(--text-primary);
      font-weight: 500;
    }

    .share-list-item-type {
      font-size: 11px;
      color: var(--text-muted);
      text-transform: uppercase;
      letter-spacing: 0.5px;
    }

    .share-list-item button {
      padding: 6px 12px;
      background: rgba(239, 68, 68, 0.1);
      color: var(--accent-red);
      border: 1px solid rgba(239, 68, 68, 0.2);
      border-radius: var(--radius-sm);
      font-size: 12px;
      cursor: pointer;
      transition: border-color 0.2s ease, background 0.2s ease;
    }

    .share-list-item button:hover {
      background: rgba(239, 68, 68, 0.2);
    }

    .shared-project-badge {
      display: inline-block;
      padding: 2px 8px;
      background: rgba(168, 85, 247, 0.15);
      color: var(--accent-purple);
      border-radius: var(--radius-xs);
      font-size: 10px;
      font-weight: 600;
      letter-spacing: 0.3px;
      text-transform: uppercase;
    }

    .read-only-banner {
      background: rgba(250, 204, 21, 0.1);
      border: 1px solid rgba(250, 204, 21, 0.25);
      color: #facc15;
      padding: 10px 20px;
      font-size: 13px;
      font-weight: 500;
      text-align: center;
      display: flex;
      align-items: center;
      justify-content: center;
      gap: 8px;
    }

    .share-generate-btn {
      padding: 10px 20px;
      background: var(--accent);
      color: #000;
      border: none;
      border-radius: var(--radius-md);
      font-weight: 600;
      font-size: 13px;
      cursor: pointer;
      margin-top: 12px;
      transition: opacity 0.2s;
    }

    .share-generate-btn:hover {
      opacity: 0.85;
    }

    .share-status {
      margin-top: 8px;
      font-size: 12px;
      color: var(--text-muted);
      min-height: 18px;
    }

    /* Auth Modal */
    .auth-modal-overlay {
      position: fixed;
      inset: 0;
      background: rgba(0, 0, 0, 0.8);
      display: flex;
      align-items: center;
      justify-content: center;
      z-index: 2000;
      opacity: 0;
      visibility: hidden;
      transition: border-color 0.3s ease, background 0.3s ease;
    }
    
    .auth-modal-overlay.active {
      opacity: 1;
      visibility: visible;
    }
    
    .auth-modal {
      background: var(--bg-card);
      border: 1px solid var(--border);
      border-radius: var(--radius-2xl);
      width: 100%;
      max-width: 420px;
      padding: 40px;
      transform: scale(0.9) translateY(20px);
      transition: border-color 0.3s ease, background 0.3s ease;
    }
    
    .auth-modal-overlay.active .auth-modal {
      transform: scale(1) translateY(0);
    }
    
    .auth-modal-close {
      position: absolute;
      top: 16px;
      right: 16px;
      width: 32px;
      height: 32px;
      border-radius: 50%;
      border: none;
      background: var(--bg-tertiary);
      color: var(--text-secondary);
      font-size: 18px;
      cursor: pointer;
      display: flex;
      align-items: center;
      justify-content: center;
    }
    
    .auth-modal-close:hover {
      background: var(--border);
      color: var(--text-primary);
    }
    
    .auth-modal-title {
      font-size: 24px;
      font-weight: 700;
      color: var(--text-primary);
      text-align: center;
      margin-bottom: 8px;
    }
    
    .auth-modal-subtitle {
      font-size: 14px;
      color: var(--text-muted);
      text-align: center;
      margin-bottom: 28px;
    }
    
    .auth-divider {
      display: flex;
      align-items: center;
      gap: 16px;
      margin: 24px 0;
      color: var(--text-muted);
      font-size: 12px;
    }
    
    .auth-divider::before,
    .auth-divider::after {
      content: '';
      flex: 1;
      height: 1px;
      background: var(--border);
    }
    
    .auth-social-btn {
      width: 100%;
      padding: 14px 20px;
      border-radius: var(--radius-lg);
      border: 1px solid var(--border);
      background: var(--bg-tertiary);
      color: var(--text-primary);
      font-size: 14px;
      font-weight: 600;
      cursor: pointer;
      display: flex;
      align-items: center;
      justify-content: center;
      gap: 12px;
      transition: border-color 0.2s ease, background 0.2s ease;
      margin-bottom: 12px;
    }
    
    .auth-social-btn:hover {
      background: var(--bg-card);
      border-color: var(--accent);
    }
    
    .auth-social-btn svg {
      width: 20px;
      height: 20px;
    }
    
    .auth-input-group {
      margin-bottom: 16px;
    }
    
    .auth-input-label {
      display: block;
      font-size: 13px;
      font-weight: 600;
      color: var(--text-secondary);
      margin-bottom: 8px;
    }
    
    .auth-input {
      width: 100%;
      padding: 14px 16px;
      border-radius: var(--radius-lg);
      border: 1px solid var(--border);
      background: var(--bg-tertiary);
      color: var(--text-primary);
      font-size: 14px;
      transition: border-color 0.2s ease, background 0.2s ease;
    }
    
    .auth-input:focus {
      outline: none;
      border-color: var(--accent);
      box-shadow: 0 0 0 3px rgba(232, 168, 48, 0.1);
    }
    
    .auth-submit-btn {
      width: 100%;
      padding: 16px 20px;
      border-radius: var(--radius-lg);
      border: none;
      background: var(--accent);
      color: #13130a;
      font-size: 15px;
      font-weight: 700;
      cursor: pointer;
      transition: filter 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
      margin-top: 8px;
    }

    .auth-submit-btn:hover {
      transform: translateY(-2px);
      filter: brightness(1.06);
      box-shadow: 0 6px 20px rgba(232, 168, 48, 0.3);
    }
    
    .auth-submit-btn:disabled {
      opacity: 0.6;
      cursor: not-allowed;
      transform: none;
    }
    
    .auth-toggle {
      text-align: center;
      margin-top: 20px;
      font-size: 13px;
      color: var(--text-muted);
    }
    
    .auth-toggle a {
      color: var(--accent);
      cursor: pointer;
      font-weight: 600;
    }
    
    .auth-toggle a:hover {
      text-decoration: underline;
    }
    
    .auth-error {
      background: rgba(239, 68, 68, 0.1);
      border: 1px solid rgba(239, 68, 68, 0.3);
      border-radius: var(--radius-md);
      padding: 12px;
      color: var(--accent-red);
      font-size: 13px;
      margin-bottom: 16px;
      display: none;
    }
    
    .auth-error.show {
      display: block;
    }
    
    .auth-success {
      background: rgba(34, 197, 94, 0.1);
      border: 1px solid rgba(34, 197, 94, 0.3);
      border-radius: var(--radius-md);
      padding: 12px;
      color: var(--accent-green);
      font-size: 13px;
      margin-bottom: 16px;
      display: none;
    }
    
    .auth-success.show {
      display: block;
    }
    
    /* My Projects Section */
    .my-projects-section {
      margin-top: 32px;
      padding-top: 32px;
      border-top: 1px solid var(--border);
    }
    
    .my-projects-header {
      display: flex;
      align-items: center;
      justify-content: space-between;
      margin-bottom: 16px;
    }
    
    .my-projects-title {
      font-size: 16px;
      font-weight: 600;
      color: var(--text-primary);
    }
    
    .project-card {
      background: var(--bg-tertiary);
      border: 1px solid var(--border);
      border-radius: var(--radius-lg);
      padding: 16px;
      margin-bottom: 12px;
      cursor: pointer;
      transition: border-color 0.2s ease, background 0.2s ease;
    }
    
    .project-card:hover {
      border-color: var(--accent);
      transform: translateY(-2px);
    }
    
    .project-card-header {
      display: flex;
      align-items: center;
      justify-content: space-between;
    }
    
    .project-card-domain {
      font-weight: 600;
      color: var(--text-primary);
      font-size: 14px;
    }
    
    .project-card-score {
      font-size: 13px;
      font-weight: 600;
      color: var(--accent-green);
    }
    
    .project-card-meta {
      font-size: 12px;
      color: var(--text-muted);
      margin-top: 8px;
    }
    
    /* My Projects Landing Section */
    .my-projects-landing {
      width: 100%;
      max-width: 700px;
      margin: 32px auto 0;
      padding: 24px;
      background: var(--bg-card);
      border: 1px solid var(--border);
      border-radius: var(--radius-xl);
    }
    
    .my-projects-landing-header {
      display: flex;
      align-items: center;
      justify-content: space-between;
      margin-bottom: 16px;
    }
    
    .my-projects-landing-header h3 {
      font-size: 16px;
      font-weight: 600;
      color: var(--text-primary);
      margin: 0;
    }
    
    .my-projects-grid {
      display: grid;
      grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
      gap: 12px;
    }
    
    .project-card-landing {
      background: var(--bg-tertiary);
      border: 1px solid var(--border);
      border-radius: var(--radius-lg);
      padding: 16px;
      cursor: pointer;
      transition: border-color 0.2s ease, background 0.2s ease;
    }
    
    .project-card-landing:hover {
      border-color: var(--accent);
      transform: translateY(-2px);
      box-shadow: 0 4px 20px rgba(232, 168, 48, 0.1);
    }
    
    .project-card-landing-domain {
      font-weight: 600;
      color: var(--text-primary);
      font-size: 14px;
      margin-bottom: 8px;
      display: flex;
      align-items: center;
      gap: 8px;
    }
    
    .project-card-landing-domain::before {
      content: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="12" height="12" viewBox="0 0 24 24" fill="none" stroke="%2394A3B8" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><circle cx="12" cy="12" r="10"/><line x1="2" y1="12" x2="22" y2="12"/><path d="M12 2a15 15 0 0 1 0 20 15 15 0 0 1 0-20z"/></svg>');
      font-size: 12px;
    }
    
    .project-card-landing-score {
      display: flex;
      align-items: center;
      justify-content: space-between;
      font-size: 12px;
    }
    
    .project-card-landing-score-value {
      font-weight: 700;
      color: var(--accent-green);
    }
    
    .project-card-landing-date {
      color: var(--text-muted);
      font-size: 11px;
    }
    
    .no-projects-msg {
      text-align: center;
      color: var(--text-muted);
      font-size: 13px;
      padding: 20px;
    }
    
    /* ═══════════════════════════════════════════════════════
       ADMIN DASHBOARD STYLES
    ═══════════════════════════════════════════════════════ */
    
    .admin-overlay {
      position: fixed;
      inset: 0;
      background: var(--bg-primary);
      z-index: 3000;
      overflow-y: auto;
      opacity: 0;
      visibility: hidden;
      transition: border-color 0.3s ease, background 0.3s ease;
    }
    
    .admin-overlay.active {
      opacity: 1;
      visibility: visible;
    }
    
    .admin-container {
      max-width: 1400px;
      margin: 0 auto;
      padding: 24px;
    }
    
    .admin-header {
      display: flex;
      align-items: center;
      justify-content: space-between;
      margin-bottom: 32px;
      padding-bottom: 20px;
      border-bottom: 1px solid var(--border);
    }
    
    .admin-header-left {
      display: flex;
      align-items: center;
      gap: 16px;
    }
    
    .admin-title {
      font-size: 28px;
      font-weight: 700;
      color: var(--text-primary);
      display: flex;
      align-items: center;
      gap: 12px;
    }
    
    .admin-badge {
      background: linear-gradient(135deg, var(--accent-purple), var(--accent));
      color: #fff;
      font-size: 11px;
      font-weight: 700;
      padding: 4px 10px;
      border-radius: var(--radius-2xl);
      text-transform: uppercase;
    }
    
    .admin-close-btn {
      background: var(--bg-tertiary);
      border: 1px solid var(--border);
      border-radius: var(--radius-md);
      padding: 10px 20px;
      color: var(--text-secondary);
      font-size: 14px;
      cursor: pointer;
      transition: border-color 0.2s ease, background 0.2s ease;
    }
    
    .admin-close-btn:hover {
      background: var(--bg-card);
      color: var(--text-primary);
    }
    
    .admin-tabs {
      display: flex;
      gap: 8px;
      margin-bottom: 24px;
      padding: 4px;
      background: var(--bg-tertiary);
      border-radius: var(--radius-lg);
      width: fit-content;
    }
    
    .admin-tab {
      padding: 10px 20px;
      border-radius: var(--radius-md);
      font-size: 14px;
      font-weight: 600;
      cursor: pointer;
      color: var(--text-secondary);
      background: transparent;
      border: none;
      transition: border-color 0.2s ease, background 0.2s ease;
    }
    
    .admin-tab:hover {
      color: var(--text-primary);
    }
    
    .admin-tab.active {
      background: var(--bg-card);
      color: var(--text-primary);
      box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    }
    
    .admin-stats-grid {
      display: grid;
      grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
      gap: 16px;
      margin-bottom: 32px;
    }
    
    .admin-stat-card {
      background: var(--bg-card);
      border: 1px solid var(--border);
      border-radius: var(--radius-lg);
      padding: 20px;
    }
    
    .admin-stat-label {
      font-size: 12px;
      color: var(--text-muted);
      text-transform: uppercase;
      letter-spacing: 0.5px;
      margin-bottom: 8px;
    }
    
    .admin-stat-value {
      font-size: 32px;
      font-weight: 700;
      color: var(--text-primary);
    }
    
    .admin-stat-change {
      font-size: 12px;
      margin-top: 4px;
    }
    
    .admin-stat-change.positive { color: var(--accent-green); }
    .admin-stat-change.negative { color: var(--accent-red); }
    
    .admin-section {
      background: var(--bg-card);
      border: 1px solid var(--border);
      border-radius: var(--radius-xl);
      padding: 24px;
      margin-bottom: 24px;
    }
    
    .admin-section-header {
      display: flex;
      align-items: center;
      justify-content: space-between;
      margin-bottom: 20px;
    }
    
    .admin-section-title {
      font-size: 18px;
      font-weight: 600;
      color: var(--text-primary);
      display: flex;
      align-items: center;
      gap: 10px;
    }
    
    .admin-table {
      width: 100%;
      border-collapse: collapse;
    }
    
    .admin-table th {
      text-align: left;
      padding: 12px 16px;
      font-size: 11px;
      font-weight: 600;
      color: var(--text-muted);
      text-transform: uppercase;
      letter-spacing: 0.5px;
      border-bottom: 1px solid var(--border);
      background: var(--bg-tertiary);
    }
    
    .admin-table th:first-child { border-radius: 8px 0 0 0; }
    .admin-table th:last-child { border-radius: 0 8px 0 0; }
    
    .admin-table td {
      padding: 14px 16px;
      font-size: 13px;
      color: var(--text-secondary);
      border-bottom: 1px solid var(--border);
    }
    
    .admin-table tr:hover td {
      background: var(--bg-tertiary);
    }
    
    .admin-table tr:last-child td {
      border-bottom: none;
    }
    
    .admin-user-email {
      font-weight: 600;
      color: var(--text-primary);
    }
    
    .admin-role-badge {
      display: inline-block;
      padding: 4px 10px;
      border-radius: var(--radius-sm);
      font-size: 11px;
      font-weight: 600;
      text-transform: uppercase;
    }
    
    .admin-role-badge.uber_admin {
      background: linear-gradient(135deg, rgba(168, 85, 247, 0.2), rgba(236, 72, 153, 0.2));
      color: var(--accent-purple);
    }
    
    .admin-role-badge.admin {
      background: rgba(232, 168, 48, 0.15);
      color: var(--accent);
    }
    
    .admin-role-badge.user {
      background: var(--bg-tertiary);
      color: var(--text-muted);
    }
    
    .admin-action-btn {
      padding: 6px 12px;
      border-radius: var(--radius-sm);
      font-size: 12px;
      font-weight: 600;
      cursor: pointer;
      border: none;
      transition: border-color 0.2s ease, background 0.2s ease;
      margin-right: 6px;
    }
    
    .admin-action-btn.promote {
      background: rgba(34, 197, 94, 0.15);
      color: var(--accent-green);
    }
    
    .admin-action-btn.demote {
      background: rgba(251, 191, 36, 0.15);
      color: var(--accent-yellow);
    }
    
    .admin-action-btn.delete {
      background: rgba(239, 68, 68, 0.15);
      color: var(--accent-red);
    }

    .admin-action-btn:hover {
      transform: translateY(-1px);
    }

    .admin-action-btn.grant-credits {
      background: rgba(99, 102, 241, 0.15);
      color: #818cf8;
    }

    /* Credit badge */
    .credit-badge {
      display: inline-flex;
      align-items: center;
      gap: 4px;
      padding: 3px 10px;
      border-radius: 20px;
      font-size: 12px;
      font-weight: 600;
      background: rgba(99, 102, 241, 0.15);
      color: #818cf8;
      margin-right: 8px;
      white-space: nowrap;
    }
    .credit-badge.low {
      background: rgba(251, 191, 36, 0.15);
      color: var(--accent-yellow);
    }
    .credit-badge.empty {
      background: rgba(239, 68, 68, 0.15);
      color: var(--accent-red);
    }

    .credit-request-badge {
      display: inline-block;
      padding: 2px 8px;
      border-radius: 10px;
      font-size: 11px;
      font-weight: 600;
      background: rgba(251, 191, 36, 0.2);
      color: var(--accent-yellow);
      animation: creditPulse 2s ease-in-out infinite;
      margin-left: 6px;
    }
    @keyframes creditPulse {
      0%, 100% { opacity: 1; }
      50% { opacity: 0.5; }
    }
    
    .admin-chart-container {
      height: 300px;
      position: relative;
    }
    
    .admin-insight-grid {
      display: grid;
      grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
      gap: 20px;
    }
    
    .admin-insight-card {
      background: var(--bg-tertiary);
      border-radius: var(--radius-lg);
      padding: 20px;
    }
    
    .admin-insight-title {
      font-size: 14px;
      font-weight: 600;
      color: var(--text-primary);
      margin-bottom: 12px;
    }
    
    .admin-insight-list {
      list-style: none;
      padding: 0;
      margin: 0;
    }
    
    .admin-insight-list li {
      display: flex;
      justify-content: space-between;
      padding: 8px 0;
      font-size: 13px;
      border-bottom: 1px solid var(--border);
    }
    
    .admin-insight-list li:last-child {
      border-bottom: none;
    }

    /* Dataset Intelligence Dashboard */
    .dataset-hero-stat .admin-stat-value {
      font-size: 28px;
      color: var(--accent);
    }

    .dataset-bar-row {
      display: flex;
      align-items: center;
      gap: 10px;
      margin-bottom: 8px;
    }

    .dataset-bar-label {
      min-width: 120px;
      font-size: 12px;
      color: var(--text-secondary);
      white-space: nowrap;
      overflow: hidden;
      text-overflow: ellipsis;
    }

    .dataset-bar-track {
      flex: 1;
      height: 22px;
      background: var(--bg-tertiary);
      border-radius: var(--radius-sm);
      overflow: hidden;
      position: relative;
    }

    .dataset-bar-fill {
      height: 100%;
      border-radius: var(--radius-sm);
      display: flex;
      align-items: center;
      padding-left: 8px;
      font-size: 11px;
      font-weight: 600;
      color: #fff;
      transition: width 0.6s ease;
      white-space: nowrap;
    }

    .dataset-bar-value {
      min-width: 50px;
      text-align: right;
      font-size: 12px;
      font-weight: 600;
      color: var(--text-primary);
    }

    .dataset-empty {
      text-align: center;
      padding: 32px 20px;
      border: 1px dashed rgba(139, 148, 158, 0.2);
      border-radius: var(--radius-lg);
      color: var(--text-muted);
    }

    .dataset-empty-count {
      font-size: 36px;
      font-weight: 700;
      color: rgba(139, 148, 158, 0.3);
      margin-bottom: 4px;
    }

    .dataset-empty-hint {
      font-size: 12px;
      color: var(--text-muted);
    }

    .di-headline-callout {
      border: 1px solid transparent;
      background-image: linear-gradient(var(--bg-card), var(--bg-card)),
                        linear-gradient(135deg, var(--accent), var(--accent-purple));
      background-origin: border-box;
      background-clip: padding-box, border-box;
      border-radius: var(--radius-lg);
      padding: 20px 24px;
      margin-bottom: 20px;
    }
    .di-headline-label {
      font-size: 10px;
      font-weight: 700;
      letter-spacing: 1.5px;
      text-transform: uppercase;
      color: var(--accent);
      margin-bottom: 8px;
    }

    .dataset-section-subtitle {
      font-size: 13px;
      color: var(--text-muted);
      margin-bottom: 16px;
    }

    .dataset-hero-section {
      border: 1px solid transparent;
      background-image: linear-gradient(var(--bg-card), var(--bg-card)),
                        linear-gradient(135deg, var(--accent), var(--accent-purple));
      background-origin: border-box;
      background-clip: padding-box, border-box;
      border-radius: var(--radius-xl);
      padding: 28px;
      margin-bottom: 24px;
    }

    .dataset-hero-title {
      font-size: 22px;
      font-weight: 700;
      color: var(--text-primary);
      margin-bottom: 6px;
    }

    .dataset-hero-subtitle {
      font-size: 13px;
      color: var(--text-muted);
      margin-bottom: 20px;
    }

    .dataset-hero-grid {
      display: grid;
      grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
      gap: 12px;
    }

    .admin-insight-card.span-2 {
      grid-column: span 2;
    }

    @media (max-width: 768px) {
      .admin-insight-card.span-2 {
        grid-column: span 1;
      }
      .dataset-hero-grid {
        grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
      }
    }

    .admin-loading {
      display: flex;
      align-items: center;
      justify-content: center;
      padding: 60px;
      color: var(--text-muted);
    }
    
    .admin-empty {
      text-align: center;
      padding: 48px 32px;
      color: var(--text-muted);
      font-size: 14px;
      line-height: 1.6;
      background: radial-gradient(ellipse 60% 50% at 50% 40%, rgba(232, 168, 48, 0.03) 0%, transparent 70%);
      border-radius: var(--radius-xl);
      border: 1px dashed rgba(139, 148, 158, 0.15);
    }
    
    .admin-export-btn {
      background: linear-gradient(135deg, var(--accent), var(--accent-purple));
      border: none;
      color: #fff;
      padding: 10px 20px;
      border-radius: var(--radius-md);
      font-size: 13px;
      font-weight: 600;
      cursor: pointer;
      transition: border-color 0.2s ease, background 0.2s ease;
    }
    
    .admin-export-btn:hover {
      transform: translateY(-2px);
      box-shadow: 0 4px 15px rgba(232, 168, 48, 0.3);
    }
