
    /* =============================================
       SEARCH & FILTER — scoped styles
       ============================================= */
    .ai-search-bar {
      display: flex;
      align-items: center;
      background: rgba(255,255,255,0.15);
      backdrop-filter: blur(10px);
      border: 1.5px solid rgba(255,255,255,0.25);
      border-radius: 50px;
      padding: 6px 6px 6px 20px;
      gap: 10px;
      max-width: 780px;
      margin: 0 auto;
      flex-wrap: wrap;
    }
    .ai-search-bar input {
      flex: 1;
      min-width: 160px;
      background: transparent;
      border: none;
      outline: none;
      color: #fff;
      font-family: 'DM Sans', sans-serif;
      font-size: 15px;
      padding: 8px 0;
    }
    .ai-search-bar input::placeholder { color: rgba(255,255,255,0.6); }
    .ai-search-divider {
      width: 1px;
      height: 26px;
      background: rgba(255,255,255,0.25);
      flex-shrink: 0;
    }
    .ai-search-btn {
      background: #00C9A7;
      color: #0B1F3A;
      border: none;
      border-radius: 50px;
      padding: 11px 26px;
      font-family: 'DM Sans', sans-serif;
      font-size: 14px;
      font-weight: 600;
      cursor: pointer;
      display: flex;
      align-items: center;
      gap: 7px;
      white-space: nowrap;
      transition: transform 0.15s, background 0.15s;
      flex-shrink: 0;
    }
    .ai-search-btn:hover { background: #00e8c2; transform: scale(1.02); }
    .ai-search-btn:disabled { opacity: 0.6; cursor: not-allowed; transform: none; }

    /* AI spinner */
    .ai-spinner-wrap {
      display: none;
      flex-direction: column;
      align-items: center;
      gap: 14px;
      padding: 40px 20px;
    }
    .ai-spinner-wrap.visible { display: flex; }
    .ai-spinner {
      width: 42px; height: 42px;
      border: 3px solid rgba(255,255,255,0.2);
      border-top-color: #00C9A7;
      border-radius: 50%;
      animation: spin 0.8s linear infinite;
    }
    @keyframes spin { to { transform: rotate(360deg); } }
    .ai-spinner-text { color: rgba(255,255,255,0.8); font-size: 14px; font-family: 'DM Sans', sans-serif; }

    /* AI Jobs Results Panel */
    #ai-jobs-results {
      display: none;
      background: rgba(255,255,255,0.97);
      border-radius: 16px;
      margin: 20px auto 0;
      max-width: 900px;
      overflow: hidden;
      box-shadow: 0 8px 40px rgba(0,0,0,0.18);
    }
    #ai-jobs-results.visible { display: block; }

    .ai-results-header {
      display: flex;
      align-items: center;
      justify-content: space-between;
      padding: 16px 20px;
      border-bottom: 1px solid #eee;
      background: #f8f9fb;
      flex-wrap: wrap;
      gap: 10px;
    }
    .ai-results-title {
      font-size: 15px;
      font-weight: 600;
      color: #0B1F3A;
      font-family: 'DM Sans', sans-serif;
      display: flex;
      align-items: center;
      gap: 8px;
    }
    .ai-results-count {
      background: #00C9A7;
      color: #0B1F3A;
      font-size: 12px;
      font-weight: 700;
      padding: 2px 10px;
      border-radius: 20px;
    }
    .ai-results-meta {
      font-size: 12px;
      color: #888;
      font-family: 'DM Sans', sans-serif;
    }

    /* Filter bar inside results */
    .ai-filter-bar {
      display: flex;
      align-items: center;
      gap: 8px;
      padding: 10px 20px;
      border-bottom: 1px solid #f0f0f0;
      overflow-x: auto;
      scrollbar-width: none;
      background: #fff;
    }
    .ai-filter-bar::-webkit-scrollbar { display: none; }
    .ai-filter-btn {
      background: #f2f4f6;
      border: 1px solid #e0e3e8;
      border-radius: 20px;
      padding: 5px 13px;
      font-size: 12px;
      font-weight: 500;
      color: #444;
      cursor: pointer;
      white-space: nowrap;
      transition: all 0.15s;
      font-family: 'DM Sans', sans-serif;
    }
    .ai-filter-btn.active, .ai-filter-btn:hover {
      background: #0B1F3A;
      color: #fff;
      border-color: #0B1F3A;
    }

    /* Job list */
    .ai-jobs-list {
      max-height: 520px;
      overflow-y: auto;
      padding: 0;
    }
    .ai-jobs-list::-webkit-scrollbar { width: 4px; }
    .ai-jobs-list::-webkit-scrollbar-track { background: #f8f9fb; }
    .ai-jobs-list::-webkit-scrollbar-thumb { background: #ccc; border-radius: 4px; }

    .ai-job-item {
      display: flex;
      align-items: flex-start;
      gap: 14px;
      padding: 14px 20px;
      border-bottom: 1px solid #f2f4f6;
      transition: background 0.12s;
      cursor: pointer;
      text-decoration: none;
    }
    .ai-job-item:hover { background: #f8f9fb; }
    .ai-job-item:last-child { border-bottom: none; }

    .ai-job-logo {
      width: 42px; height: 42px;
      border-radius: 10px;
      display: flex; align-items: center; justify-content: center;
      font-weight: 700; font-size: 15px; color: #fff;
      flex-shrink: 0;
      font-family: 'DM Sans', sans-serif;
    }

    .ai-job-info { flex: 1; min-width: 0; }
    .ai-job-top {
      display: flex; align-items: flex-start; justify-content: space-between; gap: 10px;
      flex-wrap: wrap;
    }
    .ai-job-title {
      font-size: 14px; font-weight: 600; color: #0B1F3A;
      font-family: 'DM Sans', sans-serif;
      margin: 0 0 2px 0;
      line-height: 1.3;
    }
    .ai-job-company {
      font-size: 12px; color: #666;
      font-family: 'DM Sans', sans-serif;
      margin: 0 0 5px 0;
    }
    .ai-job-desc {
      font-size: 12px; color: #888; line-height: 1.5;
      font-family: 'DM Sans', sans-serif;
      margin: 0 0 7px 0;
      display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
    }
    .ai-job-footer {
      display: flex; align-items: center; gap: 6px; flex-wrap: wrap;
    }
    .ai-job-tag {
      background: #f0f4f8; color: #4a6080;
      font-size: 11px; font-weight: 500;
      padding: 2px 8px; border-radius: 10px;
      font-family: 'DM Sans', sans-serif;
    }
    .ai-job-tag.salary { background: #e8f8f4; color: #0B6B52; }
    .ai-job-tag.type   { background: #eef3ff; color: #2a5bd7; }
    .ai-job-tag.posted { background: #fff7ed; color: #b45309; }
    .ai-job-tag.source { background: #f3e8ff; color: #7c3aed; font-weight: 600; }

    .ai-apply-btn {
      background: #00C9A7; color: #0B1F3A;
      border: none; border-radius: 20px;
      padding: 5px 14px;
      font-size: 12px; font-weight: 600;
      cursor: pointer;
      font-family: 'DM Sans', sans-serif;
      white-space: nowrap;
      transition: background 0.15s;
      flex-shrink: 0;
      text-decoration: none;
      display: inline-block;
    }
    .ai-apply-btn:hover { background: #00e8c2; }

    .ai-error-msg {
      display: none;
      padding: 20px;
      text-align: center;
      color: #c0392b;
      font-size: 14px;
      font-family: 'DM Sans', sans-serif;
      background: #fff5f5;
      border-radius: 0 0 16px 16px;
    }
    .ai-error-msg.visible { display: block; }

    /* AI badge in title */
    .ai-badge-inline {
      display: inline-flex; align-items: center; gap: 4px;
      background: rgba(0,201,167,0.15);
      color: #00C9A7;
      font-size: 11px; font-weight: 600;
      padding: 2px 8px; border-radius: 20px;
      border: 1px solid rgba(0,201,167,0.3);
      vertical-align: middle;
      font-family: 'DM Sans', sans-serif;
    }

    /* Logo color palette cycling */
    .logo-c-0  { background: #00C9A7; }
    .logo-c-1  { background: #6366f1; }
    .logo-c-2  { background: #f59e0b; }
    .logo-c-3  { background: #10b981; }
    .logo-c-4  { background: #ec4899; }
    .logo-c-5  { background: #0ea5e9; }
    .logo-c-6  { background: #7c3aed; }
    .logo-c-7  { background: #f97316; }
    .logo-c-8  { background: #14b8a6; }
    .logo-c-9  { background: #64748b; }
    .logo-c-10 { background: #a855f7; }
    .logo-c-11 { background: #22c55e; }

    /* =============================================
       LATEST JOBS — AI loaded section styles
       ============================================= */
    .latest-jobs-loading {
      display: flex;
      flex-direction: column;
      align-items: center;
      gap: 12px;
      padding: 48px 20px;
      color: #888;
      font-family: 'DM Sans', sans-serif;
      font-size: 14px;
    }
    .latest-jobs-spinner {
      width: 36px; height: 36px;
      border: 3px solid #e5e7eb;
      border-top-color: #00C9A7;
      border-radius: 50%;
      animation: spin 0.8s linear infinite;
    }

    /* Source badge on job cards */
    .job-source-badge {
      display: inline-flex;
      align-items: center;
      gap: 5px;
      background: #f3e8ff;
      color: #7c3aed;
      font-size: 11px;
      font-weight: 600;
      padding: 2px 9px;
      border-radius: 10px;
      font-family: 'DM Sans', sans-serif;
      text-decoration: none;
    }
    .job-source-badge:hover { background: #ede0ff; }

    .job-card-link-wrap {
      display: block;
      text-decoration: none;
      color: inherit;
    }
    .job-card-link-wrap:hover .job-title a,
    .job-card-link-wrap:hover .job-title {
      color: #00C9A7;
    }

    /* External link icon */
    .ext-icon {
      display: inline-block;
      width: 10px; height: 10px;
      margin-left: 3px;
      opacity: 0.5;
      vertical-align: middle;
    }
