    /* ===== Trang phân tích AI — style riêng (prefix .pa-) ===== */
    .pa-main { background: var(--bg); min-height: 70vh; padding: 0 0 70px; }

    /* Hero */
    .pa-hero {
      background: linear-gradient(135deg, var(--accent-pale) 0%, #fff 65%);
      border-bottom: 1px solid var(--accent-light, #ffd9b3);
      padding: 40px 0 34px;
    }
    .pa-back {
      display: inline-flex; align-items: center; gap: 6px; text-decoration: none;
      color: var(--muted); font-size: 13.5px; font-weight: 600; margin-bottom: 18px;
      transition: color .15s;
    }
    .pa-back:hover { color: var(--accent-dark); }
    .pa-hero-badge {
      display: inline-flex; align-items: center; gap: 7px; font-size: 12px; font-weight: 700;
      color: #fff; background: var(--accent); padding: 5px 12px; border-radius: 999px;
    }
    .pa-hero h1 {
      margin: 14px 0 8px; font-size: clamp(24px, 4vw, 34px); font-weight: 800;
      color: var(--text); line-height: 1.2; letter-spacing: -.01em;
    }
    .pa-hero h1 .accent { color: var(--accent-dark); }
    .pa-hero p { margin: 0; max-width: 640px; color: var(--muted); font-size: 15.5px; line-height: 1.6; }
    .pa-steps { display: flex; gap: 18px; flex-wrap: wrap; margin-top: 20px; }
    .pa-step { display: flex; align-items: center; gap: 9px; font-size: 13.5px; color: var(--text); font-weight: 600; }
    .pa-step .n {
      width: 24px; height: 24px; display: grid; place-items: center; border-radius: 50%;
      background: #fff; border: 1.5px solid var(--accent); color: var(--accent-dark);
      font-size: 12px; font-weight: 800;
    }

    /* Layout */
    .pa-grid { display: grid; grid-template-columns: 1fr; gap: 22px; margin-top: 28px; }

    /* Card */
    .pa-card {
      background: #fff; border: 1px solid #ececec; border-radius: 20px;
      box-shadow: 0 12px 30px -22px rgba(0,0,0,.25); padding: 26px 26px 28px;
    }
    .pa-card-head { display: flex; align-items: center; gap: 10px; margin-bottom: 4px; }
    .pa-card-head h2 { margin: 0; font-size: 18px; font-weight: 800; color: var(--text); }
    .pa-card-sub { margin: 2px 0 20px; font-size: 13.5px; color: var(--muted); }

    .pa-group-label {
      display: flex; align-items: center; gap: 8px; font-size: 12.5px; font-weight: 700;
      text-transform: uppercase; letter-spacing: .04em; color: var(--primary);
      margin: 22px 0 12px;
    }
    .pa-group-label:first-of-type { margin-top: 4px; }
    .pa-group-label::after { content: ""; flex: 1; height: 1px; background: #eee; }

    .pa-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 16px; }
    .pa-field { display: flex; flex-direction: column; gap: 6px; }
    .pa-field.full { grid-column: 1 / -1; }
    .pa-field label { font-size: 13px; font-weight: 600; color: var(--text); }
    .pa-field .req { color: var(--accent-dark); }
    .pa-field input, .pa-field select, .pa-field textarea {
      width: 100%; padding: 11px 13px; border: 1.5px solid #dcdcdc; border-radius: 11px;
      font-size: 14.5px; font-family: inherit; background: #fff; color: var(--text);
      transition: border-color .15s, box-shadow .15s;
    }
    .pa-field textarea { resize: vertical; min-height: 84px; line-height: 1.55; }
    .pa-field input:focus, .pa-field select:focus, .pa-field textarea:focus {
      outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-light, #ffe2c2);
    }
    .pa-field input.pa-invalid, .pa-field select.pa-invalid { border-color: #ef4444; box-shadow: 0 0 0 3px #fee2e2; }

    .pa-submit-row { margin-top: 24px; }
    .pa-submit {
      width: 100%; cursor: pointer; border: none; border-radius: 14px; padding: 16px 24px;
      font-size: 16.5px; font-weight: 800; color: #fff; font-family: inherit;
      background: linear-gradient(135deg, #f97316 0%, #ea580c 55%, #c2410c 100%);
      box-shadow: 0 12px 28px -12px rgba(194,65,12,.6);
      transition: transform .15s, box-shadow .15s, opacity .15s;
      display: inline-flex; align-items: center; justify-content: center; gap: 10px;
    }
    .pa-submit:hover { transform: translateY(-2px); box-shadow: 0 18px 34px -14px rgba(194,65,12,.7); }
    .pa-submit:disabled { opacity: .6; cursor: default; transform: none; box-shadow: none; }
    .pa-submit-note { margin: 12px 0 0; text-align: center; font-size: 12.5px; color: var(--muted); }

    .pa-spin {
      display: inline-block; width: 17px; height: 17px; border: 2.5px solid rgba(255,255,255,.5);
      border-top-color: #fff; border-radius: 50%; animation: pa-spin .7s linear infinite;
    }
    @keyframes pa-spin { to { transform: rotate(360deg); } }

    /* Result */
    .pa-result { display: none; }
    .pa-result.show { display: block; animation: pa-fade .4s ease; }
    @keyframes pa-fade { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

    .pa-tags-block { margin-bottom: 8px; }
    .pa-tags-title { font-size: 13.5px; font-weight: 700; margin: 0 0 8px; }
    .pa-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 16px; }
    .pa-tag { font-size: 13px; font-weight: 600; padding: 6px 12px; border-radius: 999px; }
    .pa-tag.good { background: #dcfce7; color: #166534; }
    .pa-tag.warn { background: #fef3c7; color: #92400e; }

    .pa-opt { color: var(--muted); font-weight: 500; font-size: 11.5px; text-transform: none; letter-spacing: 0; }

    /* Nhóm trường theo visa — checkbox chọn nhiều */
    .pa-tier-checks { display: flex; flex-wrap: wrap; gap: 8px; }
    .pa-check {
      display: inline-flex; align-items: center; gap: 7px; cursor: pointer;
      border: 1.5px solid #dcdcdc; border-radius: 999px; padding: 8px 14px;
      font-size: 13.5px; font-weight: 600; color: var(--text); background: #fff;
      transition: border-color .15s, background .15s;
    }
    .pa-check:hover { border-color: var(--accent); }
    .pa-check:has(input:checked) { border-color: var(--accent); background: #fff7ed; color: var(--accent-dark); }
    .pa-check input { accent-color: var(--accent); width: 15px; height: 15px; }

    /* Đánh giá trường mong muốn */
    .pa-fit { border-radius: 16px; border: 1px solid #e5e7eb; padding: 18px 20px; margin-bottom: 22px; }
    .pa-fit.good { background: #f0fdf4; border-color: #bbf7d0; }
    .pa-fit.mid  { background: #fffbeb; border-color: #fde68a; }
    .pa-fit.low  { background: #fef2f2; border-color: #fecaca; }
    .pa-fit-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
    .pa-fit-title { margin: 0; font-size: 15px; font-weight: 800; color: var(--text); }
    .pa-fit-match { font-size: 13px; font-weight: 800; white-space: nowrap; padding: 4px 10px; border-radius: 999px; background: #fff; border: 1px solid #e5e7eb; color: var(--accent-dark); }
    .pa-fit-verdict { margin: 8px 0 10px; font-size: 14.5px; font-weight: 700; }
    .pa-fit.good .pa-fit-verdict { color: #166534; }
    .pa-fit.mid  .pa-fit-verdict { color: #92400e; }
    .pa-fit.low  .pa-fit-verdict { color: #b91c1c; }
    .pa-fit-points { margin: 0; padding: 0; list-style: none; }
    .pa-fit-points li { display: flex; gap: 8px; align-items: flex-start; font-size: 13.5px; line-height: 1.55; color: #374151; margin: 5px 0; }
    .pa-fit-points li .ic { flex: none; }
    /* Nhận xét AI ngay trong hộp trường bạn chọn */
    .pa-fit-ai {
      margin-top: 14px; padding: 12px 14px; border-radius: 10px;
      background: rgba(255,255,255,.78); border: 1px solid rgba(0,0,0,.08);
    }
    .pa-fit-ai-head {
      display: flex; align-items: center; gap: 7px;
      font-size: 12.5px; font-weight: 800; color: #9a3412; margin-bottom: 6px;
    }
    .pa-fit-ai .pa-ai-out { font-size: 13.5px; line-height: 1.65; }
    .pa-fit-ai .pa-ai-loading { padding: 2px 0; font-size: 13px; }

    /* Autocomplete tìm trường */
    .pa-ac { position: relative; }
    .pa-ac-list {
      position: absolute; top: 100%; left: 0; right: 0; z-index: 40; margin-top: 4px;
      background: #fff; border: 1.5px solid #dcdcdc; border-radius: 11px;
      box-shadow: 0 14px 34px -14px rgba(0,0,0,.3); max-height: 264px; overflow-y: auto;
    }
    .pa-ac-item {
      display: flex; align-items: baseline; justify-content: space-between; gap: 10px;
      padding: 10px 13px; cursor: pointer; font-size: 14px; color: var(--text);
    }
    .pa-ac-item + .pa-ac-item { border-top: 1px solid #f3f3f3; }
    .pa-ac-item:hover, .pa-ac-item.on { background: #fff7ed; }
    .pa-ac-item .m { color: var(--muted); font-size: 12px; white-space: nowrap; flex: none; }
    .pa-ac-empty { padding: 11px 13px; font-size: 13px; color: var(--muted); }

    /* Top 10 trường */
    .pa-top10-block { margin-bottom: 22px; }
    .pa-t10-tabs { display: flex; gap: 8px; margin: 2px 0 10px; }
    .pa-t10-tab {
      flex: 1; cursor: pointer; border: 1.5px solid #e5e7eb; border-radius: 11px;
      background: #fff; color: var(--muted); font-family: inherit;
      font-size: 13.5px; font-weight: 700; padding: 10px 12px;
      transition: background .15s, color .15s, border-color .15s;
    }
    .pa-t10-tab:hover { border-color: var(--accent); color: var(--accent-dark); }
    .pa-t10-tab.active { border-color: var(--accent); background: var(--accent); color: #fff; }
    .pa-top10-sub { margin: -4px 0 12px; font-size: 12.5px; color: var(--muted); }
    /* Thông báo khi hồ sơ không đạt điều kiện nhóm trường đã chọn + ghi chú
       về danh sách trường gợi ý thay thế (đã nới bộ lọc) bên dưới */
    .t10-notice {
      border: 1px solid #fde68a; background: #fffbeb; border-radius: 12px;
      padding: 14px 16px; margin-bottom: 14px;
    }
    .t10-notice .tt { margin: 0 0 7px; font-size: 14px; font-weight: 800; color: #92400e; }
    .t10-notice ul { margin: 0; padding-left: 18px; }
    .t10-notice li { font-size: 13.5px; color: #78350f; line-height: 1.55; margin: 3px 0; }
    .t10-notice .alt-note { margin: 9px 0 0; font-size: 13.5px; font-weight: 600; color: #166534; }
    .pa-top10 { margin: 0; padding: 0; list-style: none; counter-reset: pa-rank; }
    /* > li: chỉ áp cho dòng trường, KHÔNG áp cho li markdown trong hộp "Vì sao?" */
    .pa-top10 > li {
      padding: 10px 12px;
      border: 1px solid #ececec; border-radius: 12px; margin-bottom: 8px; background: #fff;
    }
    .pa-top10 > li.star { border-color: var(--accent); background: #fff7ed; }
    /* Card có học bổng (placement 'ai_result') — viền xanh đồng bộ trang tra cứu */
    .pa-top10 > li.has-scholarship { border-color: #16a34a; box-shadow: 0 0 0 1px #16a34a inset; }
    .pa-top10 .t10-row { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
    .pa-top10 .rank {
      flex: none; width: 28px; height: 28px; display: grid; place-items: center;
      border-radius: 50%; background: var(--accent-pale, #ffedd5); color: var(--accent-dark);
      font-size: 13px; font-weight: 800;
    }
    .pa-top10 li:nth-child(-n+3) .rank { background: var(--accent); color: #fff; }
    .pa-top10 .info { flex: 1; min-width: 0; }
    .pa-top10 .name { font-size: 14px; font-weight: 700; color: var(--text); }
    .pa-top10 .meta { font-size: 12px; color: var(--muted); margin-top: 1px; }
    .pa-top10 .pct { flex: none; text-align: right; }
    .pa-top10 .pct strong { display: block; font-size: 15px; font-weight: 800; color: var(--accent-dark); }
    .pa-top10 .pct span { font-size: 10.5px; color: var(--muted); }
    .t10-why-btn {
      flex: none; cursor: pointer; border: 1.5px solid var(--accent); border-radius: 999px;
      background: #fff; color: var(--accent-dark); font-family: inherit;
      font-size: 12px; font-weight: 700; padding: 6px 12px; white-space: nowrap;
      transition: background .15s, color .15s, opacity .15s;
    }
    .t10-why-btn:hover { background: var(--accent); color: #fff; }
    .t10-why-btn:disabled { opacity: .55; cursor: default; }
    .t10-why {
      margin-top: 10px; padding: 12px 14px; border-radius: 10px;
      border: 1px solid var(--accent-light, #fed7aa);
      background: linear-gradient(135deg, #fff7ed 0%, #fff 70%);
    }
    .t10-why .pa-ai-out { font-size: 13.5px; line-height: 1.65; }
    .t10-why .pa-ai-loading { padding: 2px 0; font-size: 13px; }
    /* Reasoning "AI đang suy nghĩ" gọn trong hộp "Vì sao?" của từng trường */
    .t10-why .t10-think .pa-think-line { font-size: 12.5px; padding: 3px 0; }

    /* Panel "AI đang suy nghĩ" — các bước reasoning hiện dần trong lúc chấm điểm.
       Chỉ dùng CSS transition/keyframes có sẵn → nhẹ, không thêm thư viện. */
    .pa-think {
      border: 1px dashed var(--accent-light, #fed7aa); border-radius: 14px;
      background: linear-gradient(135deg, #fff7ed 0%, #fff 75%);
      padding: 14px 16px; margin-bottom: 14px;
    }
    .pa-think-line {
      display: flex; align-items: center; gap: 9px; padding: 4px 0;
      font-size: 13px; color: var(--muted);
      opacity: 0; transform: translateY(6px);
      transition: opacity .35s ease, transform .35s ease, color .3s ease;
    }
    .pa-think-line.in { opacity: 1; transform: none; }
    .pa-think-line.doing { color: #9a3412; font-weight: 700; }
    .pa-think-line.done { color: #166534; }
    .pa-think-line .st { flex: none; width: 17px; text-align: center; font-size: 12px; }
    .pa-think-line.doing .st::after {
      content: ''; display: inline-block; width: 9px; height: 9px;
      border: 2px solid rgba(234,88,12,.3); border-top-color: #ea580c;
      border-radius: 50%; animation: pa-spin .7s linear infinite;
    }

    /* Reveal từng trường sau khi AI chấm xong: card ẩn không chiếm chỗ —
       danh sách "mọc dần" như AI đang sinh kết quả */
    .pa-top10 > li.t10-hide { display: none; }
    .pa-top10 > li.t10-in { animation: pa-fade .4s ease both; }
    .t10-ai-note { font-size: 12px; color: #9a3412; margin-top: 2px; }
    /* Hàng "đang phân tích…" kiểu AI reasoning đứng dưới trường vừa hiện */
    .pa-top10 li.t10-loading {
      display: flex; align-items: center; gap: 9px;
      border: 1px dashed var(--accent-light, #fed7aa); background: #fffbf5;
      font-size: 12.5px; font-weight: 600; color: #9a3412;
    }
    .pa-top10 li.t10-loading .pa-spin {
      width: 13px; height: 13px; border-width: 2px;
      border-color: rgba(234,88,12,.3); border-top-color: #ea580c;
    }
    @media (prefers-reduced-motion: reduce) {
      .pa-think-line { transition: none; opacity: 1; transform: none; }
      .pa-top10 > li.t10-in { animation: none; }
    }

    /* AI block */
    .pa-ai {
      margin-top: 8px; border: 1px solid var(--accent-light, #fed7aa); border-radius: 16px;
      background: linear-gradient(135deg, #fff7ed 0%, #fff 60%); padding: 20px;
    }
    .pa-ai-head { display: flex; align-items: center; gap: 10px; margin-bottom: 4px; }
    .pa-ai-head h3 { margin: 0; font-size: 16.5px; font-weight: 800; color: #9a3412; }
    .pa-ai-badge { font-size: 11px; font-weight: 700; color: #fff; background: #ea580c; padding: 3px 9px; border-radius: 999px; }
    .pa-ai-loading { display: flex; align-items: center; gap: 11px; color: #9a3412; font-size: 14px; padding: 10px 0; font-weight: 600; }
    .pa-ai-loading .pa-spin { border-color: rgba(154,52,18,.3); border-top-color: #9a3412; }
    .pa-ai-out { font-size: 14.5px; line-height: 1.75; color: #292524; }
    .pa-ai-out h2 { font-size: 16px; margin: 18px 0 8px; color: #9a3412; }
    .pa-ai-out h3 { font-size: 14.5px; margin: 14px 0 6px; color: #c2410c; }
    .pa-ai-out p { margin: 8px 0; }
    .pa-ai-out ul { margin: 8px 0; padding-left: 20px; }
    .pa-ai-out li { margin: 4px 0; }
    .pa-ai-out strong { color: #1c1917; }
    .pa-ai-err { padding: 12px 14px; border-radius: 11px; background: #fef2f2; border: 1px solid #fecaca; color: #b91c1c; font-size: 13.5px; }
    .pa-ai-note { margin-top: 14px; font-size: 12.5px; color: #a16207; font-style: italic; }
    .pa-ai-cta {
      display: inline-flex; align-items: center; gap: 8px; margin-top: 14px; text-decoration: none;
      background: #2D6A4F; color: #fff; font-weight: 700; font-size: 14px; padding: 11px 20px; border-radius: 11px;
      animation: pa-cta-pulse 1.9s ease-in-out infinite;
    }
    .pa-ai-cta:hover { background: #1B4332; animation-play-state: paused; transform: scale(1.03); }
    @keyframes pa-cta-pulse {
      0%, 100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(45, 106, 79, 0.45); }
      50%      { transform: scale(1.04); box-shadow: 0 0 0 12px rgba(45, 106, 79, 0); }
    }
    @media (prefers-reduced-motion: reduce) {
      .pa-ai-cta { animation: none; }
    }

    /* Lead capture (đăng ký tư vấn chuyên sâu 1-1) thay cho link Zalo tĩnh */
    .pa-lead { margin-top: 16px; padding: 14px 16px; border: 1px solid #bbf7d0; border-radius: 14px;
      background: linear-gradient(135deg, #f0fdf4 0%, #ffffff 70%); }
    .pa-lead-title { margin: 0 0 10px; font-size: 14px; font-weight: 700; color: #14532d; }
    .pa-lead-form { display: flex; flex-wrap: wrap; gap: 8px; }
    .pa-lead-form input { flex: 1 1 180px; min-width: 0; padding: 10px 12px; border: 1px solid #d1d5db;
      border-radius: 10px; font-size: 14px; }
    .pa-lead-form input:focus { outline: none; border-color: #2D6A4F; box-shadow: 0 0 0 3px rgba(45, 106, 79, .15); }
    .pa-lead-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; cursor: pointer;
      border: none; background: #2D6A4F; color: #fff; font-weight: 700; font-size: 14px; padding: 11px 20px;
      border-radius: 11px; animation: pa-cta-pulse 1.9s ease-in-out infinite; }
    .pa-lead-form .pa-lead-btn { flex: 1 1 100%; }
    .pa-lead-btn:hover { background: #1B4332; animation-play-state: paused; transform: scale(1.02); }
    .pa-lead-btn:disabled { opacity: .6; cursor: default; animation: none; transform: none; }
    .pa-lead-ok { padding: 12px 14px; border-radius: 11px; background: #ecfdf5; border: 1px solid #a7f3d0;
      color: #065f46; font-size: 13.5px; font-weight: 600; line-height: 1.6; }
    @media (prefers-reduced-motion: reduce) { .pa-lead-btn { animation: none; } }

    /* Popup (modal) đăng ký tư vấn chuyên sâu 1-1 */
    .pa-modal-overlay { position: fixed; inset: 0; z-index: 1300; display: flex; align-items: center;
      justify-content: center; padding: 18px; background: rgba(15, 23, 42, .6); backdrop-filter: blur(2px);
      animation: pa-modal-fade .2s ease; }
    @keyframes pa-modal-fade { from { opacity: 0; } to { opacity: 1; } }
    @keyframes pa-modal-pop { from { opacity: 0; transform: scale(.94) translateY(10px); }
      to { opacity: 1; transform: scale(1) translateY(0); } }
    .pa-modal-box { position: relative; width: min(94vw, 420px); background: #fff; border-radius: 16px;
      padding: 22px 20px 20px; box-shadow: 0 24px 60px rgba(0, 0, 0, .4);
      animation: pa-modal-pop .24s cubic-bezier(.2, .7, .2, 1); }
    .pa-modal-close { position: absolute; top: 10px; right: 10px; width: 34px; height: 34px; border: none;
      border-radius: 50%; background: #f1f5f9; color: #475569; font-size: 20px; line-height: 1; cursor: pointer;
      display: flex; align-items: center; justify-content: center; transition: background .15s ease; }
    .pa-modal-close:hover { background: #e2e8f0; }
    .pa-modal-title { margin: 0 0 6px; font-size: 16px; font-weight: 800; color: #14532d; padding-right: 28px; }
    .pa-modal-sub { margin: 0 0 14px; font-size: 13px; color: #4b5563; line-height: 1.5; }
    .pa-modal-box .pa-lead-form { flex-direction: column; }
    .pa-modal-box .pa-lead-form input { flex: 1 1 auto; width: 100%; }
    @media (prefers-reduced-motion: reduce) { .pa-modal-overlay, .pa-modal-box { animation: none; } }

    @media (max-width: 680px) {
      .pa-fields { grid-template-columns: 1fr; }
      .pa-card { padding: 22px 18px 24px; }
    }
