/* =====================================================================
   Almajd platform - version 3 public components
   navy #002551 · orange #f45c11 · RTL
   ===================================================================== */
:root { --mj-navy: #002551; --mj-orange: #f45c11; --mj-orange-soft: #fff1e9; --mj-border: #e3e8ef; --mj-muted: #5b6b82; --mj-bg: #f6f8fb; --mj-radius: 14px; }

/* ------------------------------------------------ browsing flow */
.mj-lead { color: #fff; opacity: .9; max-width: 680px; margin: 12px auto 0; font-size: 17px; }
.mj-crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-size: 15px; margin-bottom: 18px; color: var(--mj-muted); }
.mj-crumbs a { color: var(--mj-navy); font-weight: 700; }
.mj-crumbs a:hover { color: var(--mj-orange); }
.mj-crumbs i { font-size: 11px; opacity: .6; }
.mj-crumbs [aria-current] { color: var(--mj-orange); font-weight: 700; }
.mj-note { background: #eef5ff; color: #1f4f8a; border-radius: 10px; padding: 10px 14px; margin-bottom: 16px; font-size: 15px; }
.mj-search { position: relative; display: flex; gap: 10px; align-items: center; background: #fff; border: 1px solid var(--mj-border); border-radius: 999px; padding: 6px 6px 6px 8px; box-shadow: 0 6px 24px rgba(0, 37, 81, .06); margin-bottom: 26px; }
.mj-search > i { color: var(--mj-muted); margin-inline-start: 14px; }
.mj-search input[type=search] { flex: 1; border: 0; background: transparent; height: 46px; font-size: 16px; padding: 0 4px; min-width: 0; }
.mj-search input[type=search]:focus { outline: none; }
.mj-search .th-btn { padding: 13px 26px; border-radius: 999px; }
.mj-search:focus-within { border-color: var(--mj-orange); }
.mj-step-title { font-size: 24px; margin: 6px 0 18px; color: var(--mj-navy); }
.mj-tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 16px; }
.mj-tile { display: flex; flex-direction: column; align-items: center; gap: 10px; padding: 20px 14px 16px; background: #fff; border: 1px solid var(--mj-border); border-radius: var(--mj-radius); text-align: center; color: var(--mj-navy); transition: transform .15s, box-shadow .15s, border-color .15s; min-height: 190px; }
.mj-tile:hover, .mj-tile:focus-visible { transform: translateY(-3px); box-shadow: 0 12px 30px rgba(0, 37, 81, .10); border-color: var(--mj-orange); color: var(--mj-navy); }
.mj-tile-img { width: 96px; height: 96px; border-radius: 16px; background: var(--mj-bg); display: flex; align-items: center; justify-content: center; overflow: hidden; }
.mj-tiles.logos .mj-tile-img { background: #fff; }
.mj-tile-img img { width: 100%; height: 100%; object-fit: cover; }
.mj-tiles.logos .mj-tile-img img { object-fit: contain; padding: 6px; }
.mj-tile-img i { font-size: 36px; color: var(--mj-orange); }
.mj-tile-name { font-weight: 800; font-size: 16px; line-height: 1.5; }
.mj-tile-count { font-size: 13px; color: var(--mj-muted); }
.mj-tile.soon { opacity: .75; cursor: default; }
.mj-tile.soon:hover { transform: none; box-shadow: none; border-color: var(--mj-border); }
.mj-soon { display: inline-block; background: var(--mj-orange-soft); color: var(--mj-orange); font-weight: 800; border-radius: 999px; padding: 2px 12px; }
.mj-link { color: var(--mj-orange); font-weight: 700; }
.mj-levels { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 16px; }
.mj-levels a { padding: 9px 18px; border-radius: 999px; background: #fff; border: 1px solid var(--mj-border); color: var(--mj-navy); font-weight: 700; font-size: 15px; }
.mj-levels a.on, .mj-levels a:hover { background: var(--mj-navy); border-color: var(--mj-navy); color: #fff; }
.mj-filters { display: flex; flex-wrap: wrap; gap: 12px; align-items: flex-end; background: #fff; border: 1px solid var(--mj-border); border-radius: var(--mj-radius); padding: 14px 16px; margin-bottom: 14px; }
.mj-filters label { display: flex; flex-direction: column; gap: 4px; font-size: 13px; color: var(--mj-muted); margin: 0; min-width: 150px; flex: 1 1 150px; }
.mj-filters select { height: 44px; border: 1px solid var(--mj-border); border-radius: 10px; padding: 0 12px; background: #fff; font-size: 15px; color: var(--mj-navy); }
.mj-clear { align-self: center; color: #c0392b; font-weight: 700; white-space: nowrap; }
.mj-count { color: var(--mj-muted); margin: 6px 0 14px; font-size: 15px; min-height: 20px; }
.mj-empty { text-align: center; background: #fff; border: 1px dashed var(--mj-border); border-radius: var(--mj-radius); padding: 46px 20px; display: flex; flex-direction: column; align-items: center; gap: 8px; color: var(--mj-muted); }
.mj-empty i { font-size: 40px; color: var(--mj-orange); margin-bottom: 6px; }
.mj-empty b { font-size: 19px; color: var(--mj-navy); }
.mj-empty-actions { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; margin-top: 10px; }

/* ------------------------------------------------ course cards (v3) */
.mj-card { display: flex; flex-direction: column; flex: 1; }
.mj-card .course-content { flex: 1; display: flex; flex-direction: column; gap: 8px; }
.mj-card .course-title { margin-bottom: 0; }
.mj-code { font-size: 12px; color: var(--mj-muted); direction: ltr; text-align: right; }
.mj-meta { display: flex; flex-direction: column; gap: 4px; font-size: 14px; color: var(--mj-muted); }
.mj-meta i { width: 18px; color: var(--mj-orange); }
.mj-rating { font-size: 14px; color: var(--mj-navy); }
.mj-rating .stars { color: #f5a623; letter-spacing: 1px; }
.mj-rating .n { color: var(--mj-muted); }
.mj-rating.none { color: var(--mj-muted); font-size: 13px; }
.mj-kinds { display: flex; flex-wrap: wrap; gap: 6px; }
.mj-kind { font-size: 12px; font-weight: 700; color: var(--mj-navy); background: #eef2f8; border-radius: 999px; padding: 3px 10px; }
.mj-foot { margin-top: auto; display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; border-top: 1px solid var(--mj-border); padding-top: 12px; }
.mj-price { font-weight: 800; color: var(--mj-orange); font-size: 18px; display: flex; align-items: center; gap: 6px; }
.mj-price del { color: var(--mj-muted); font-weight: 500; font-size: 14px; }
.mj-actions { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.mj-btn { padding: 10px 18px !important; font-size: 14px !important; }
.mj-sample { color: var(--mj-navy); font-weight: 700; font-size: 14px; white-space: nowrap; }
.mj-sample i { color: var(--mj-orange); }

@media (max-width: 575px) {
  .mj-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .mj-tile { min-height: 160px; padding: 14px 8px; }
  .mj-tile-img { width: 72px; height: 72px; }
  .mj-search { border-radius: 16px; flex-wrap: wrap; }
  .mj-search .th-btn { width: 100%; }
  .mj-filters label { min-width: 0; flex: 1 1 45%; }
}

/* ------------------------------------------------ notices */
.mj-toasts { position: fixed; bottom: 18px; left: 50%; transform: translateX(-50%); z-index: 3000; display: flex; flex-direction: column; gap: 8px; width: min(520px, calc(100% - 32px)); }
.mj-toast { background: var(--mj-navy); color: #fff; border-radius: 12px; padding: 12px 16px; font-size: 15px; line-height: 1.7; box-shadow: 0 10px 30px rgba(0, 0, 0, .2); transition: opacity .4s; text-align: center; }
.mj-toast.ok { background: #1f8a4c; }
.mj-toast.error { background: #c0392b; }
.mj-toast.out { opacity: 0; }

/* purchase form (course / bundle) */
.mj-buy { display: flex; flex-direction: column; gap: 14px; }
.mj-buy-options { border: 0; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 10px; }
.mj-buy-options legend { font-size: 16px; font-weight: 800; color: var(--mj-navy); margin-bottom: 4px; }
.mj-buy-option { display: flex; align-items: center; gap: 12px; border: 1px solid var(--mj-border); border-radius: 12px; padding: 12px 14px; cursor: pointer; transition: border-color .15s, background .15s; margin: 0; }
.mj-buy-option:has(input:checked) { border-color: var(--mj-orange); background: var(--mj-orange-soft); }
.mj-buy-option input { width: 18px; height: 18px; accent-color: var(--mj-orange); flex: none; }
.mj-buy-option-body { flex: 1; display: flex; flex-direction: column; gap: 2px; }
.mj-buy-option-body small { color: var(--mj-muted); font-size: 13px; }
.mj-buy-option-price { font-weight: 800; color: var(--mj-orange); white-space: nowrap; }
.mj-buy-coupon { display: flex; gap: 8px; }
.mj-buy-coupon input { flex: 1; margin: 0 !important; }
.mj-buy-coupon .th-btn { padding: 12px 18px !important; white-space: nowrap; }
.mj-buy-quote { margin: 0; font-size: 14px; color: var(--mj-navy); min-height: 20px; }
.mj-buy-quote.err, .mj-buy-msg.err { color: #c0392b; }
.mj-buy-methods { display: flex; gap: 8px; flex-wrap: wrap; }
.mj-buy-methods label { margin: 0; cursor: pointer; }
.mj-buy-methods input { position: absolute; opacity: 0; pointer-events: none; }
.mj-buy-methods span { display: inline-flex; align-items: center; gap: 8px; padding: 9px 14px; border-radius: 999px; border: 1px solid var(--mj-border); font-weight: 700; font-size: 14px; color: var(--mj-navy); }
.mj-buy-methods input:checked + span { background: var(--mj-navy); color: #fff; border-color: var(--mj-navy); }
.mj-buy-methods input:focus-visible + span { outline: 2px solid var(--mj-orange); outline-offset: 2px; }
.mj-field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 10px; font-size: 14px; color: var(--mj-navy); font-weight: 700; }
.mj-field input, .mj-field select { margin: 0 !important; font-weight: 400; }
.mj-muted-note { font-size: 13px; color: var(--mj-muted); margin: 0; }
.mj-buy-msg { border-radius: 10px; padding: 10px 14px; font-size: 15px; background: #fdecea; }
.mj-buy-msg.ok { background: #e8f7ef; color: #146c43; }

/* bundles */
.mj-bundles { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 20px; }
.mj-bundle { background: #fff; border: 1px solid var(--mj-border); border-radius: var(--mj-radius); overflow: hidden; display: flex; flex-direction: column; color: inherit; transition: transform .15s, box-shadow .15s; }
.mj-bundle:hover { transform: translateY(-3px); box-shadow: 0 14px 34px rgba(0, 37, 81, .1); }
.mj-bundle img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; background: var(--mj-bg); display: block; }
.mj-bundle-body { padding: 16px 18px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.mj-bundle-body h3 { font-size: 19px; margin: 0; color: var(--mj-navy); }
.mj-bundle-courses { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 6px; font-size: 14px; color: var(--mj-muted); }
.mj-bundle-courses li { display: flex; gap: 8px; align-items: baseline; }
.mj-bundle-courses i { color: var(--mj-orange); font-size: 12px; }
.mj-old { text-decoration: line-through; color: var(--mj-muted); font-weight: 400; font-size: 14px; }

/* exams */
.mj-exam-facts { list-style: none; padding: 0; margin: 0 0 22px; display: flex; flex-direction: column; gap: 8px; color: var(--mj-navy); }
.mj-exam-facts i { color: var(--mj-orange); width: 22px; }
.mj-exam-bar { position: sticky; top: 90px; z-index: 5; display: flex; justify-content: space-between; align-items: center; gap: 10px; background: #fff; border: 1px solid var(--mj-border); border-radius: 12px; padding: 10px 14px; margin-bottom: 16px; }
.mj-timer { font-weight: 800; color: var(--mj-navy); font-variant-numeric: tabular-nums; }
.mj-timer.low { color: #c0392b; }
.mj-q { border: 1px solid var(--mj-border); border-radius: 12px; padding: 16px; margin: 0 0 14px; }
.mj-q-head { display: flex; gap: 8px; align-items: baseline; font-size: 17px; color: var(--mj-navy); margin-bottom: 12px; width: 100%; float: none; }
.mj-q-text { flex: 1; line-height: 1.8; }
.mj-q-mark { font-size: 13px; color: var(--mj-muted); white-space: nowrap; }
.mj-q-img { max-width: 100%; border-radius: 8px; }
.mj-opt { display: flex; align-items: center; gap: 10px; border: 1px solid var(--mj-border); border-radius: 10px; padding: 10px 12px; margin-bottom: 8px; cursor: pointer; }
.mj-opt:has(input:checked), .mj-opt.picked { border-color: var(--mj-navy); background: #eef2f8; }
.mj-opt.correct { border-color: #1baf7a; background: #e8f7ef; }
.mj-opt.wrong { border-color: #c0392b; background: #fdecea; }
.mj-opt input { accent-color: var(--mj-orange); }
.mj-opt-letter { font-weight: 800; color: var(--mj-orange); }
.mj-essay { width: 100%; border: 1px solid var(--mj-border); border-radius: 10px; padding: 10px; }
.mj-essay-answer { background: var(--mj-bg); border-radius: 10px; padding: 12px; white-space: pre-line; }
.mj-feedback { background: #eef5ff; border-radius: 10px; padding: 8px 12px; margin: 8px 0 0; font-size: 14px; }
.mj-result { text-align: center; border-radius: 14px; padding: 22px; margin-bottom: 22px; background: #e8f7ef; color: #146c43; }
.mj-result.fail { background: #fdecea; color: #a12a1f; }
.mj-result-score { font-size: 34px; font-weight: 800; }
.mj-result-score small { font-size: 16px; }
.mj-attempts { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 6px; font-size: 14px; }
.mj-attempts li { display: flex; justify-content: space-between; gap: 8px; }
/* the theme hides native radios (it draws its own on labels): show them in our forms */
.mj-opt input[type="radio"], .mj-buy-option input[type="radio"], .mj-field input[type="checkbox"] {
    display: inline-block !important; visibility: visible !important; opacity: 1 !important; position: static !important;
    width: 18px !important; height: 18px !important; margin: 0 !important; -webkit-appearance: radio; appearance: auto; flex: none;
}
.mj-opt input[type="radio"] + .mj-opt-letter::before, .mj-buy-option input[type="radio"] + span::before { display: none !important; }
.mj-exam-bar { box-shadow: 0 6px 18px rgba(0, 37, 81, .08); }

/* student account (my_profile) */
.mj-tabs { display: flex; gap: 6px; flex-wrap: wrap; border-bottom: 1px solid var(--mj-border); margin-bottom: 24px; padding-bottom: 8px; }
.mj-tabs a { display: inline-flex; align-items: center; gap: 7px; padding: 9px 14px; border-radius: 10px; color: var(--mj-navy); font-weight: 700; font-size: 15px; }
.mj-tabs a:hover { background: var(--mj-bg); }
.mj-tabs a.on { background: var(--mj-navy); color: #fff; }
.mj-count-badge { background: #e3e8ef; color: var(--mj-navy); border-radius: 999px; font-size: 12px; padding: 1px 8px; }
.mj-count-badge.hot { background: var(--mj-orange); color: #fff; }
.mj-tabs a.on .mj-count-badge { background: rgba(255, 255, 255, .2); color: #fff; }
.mj-mycourse .course-content { display: flex; flex-direction: column; gap: 8px; }
.mj-progress { height: 8px; background: #e9eef5; border-radius: 999px; overflow: hidden; margin-top: 6px; }
.mj-progress span { display: block; height: 100%; background: var(--mj-orange); border-radius: 999px; }
.mj-link-btn { background: none; border: 0; color: var(--mj-navy); font-weight: 700; text-decoration: underline; padding: 0; cursor: pointer; font-size: 14px; }
.mj-order { background: #fff; border: 1px solid var(--mj-border); border-radius: var(--mj-radius); padding: 16px 18px; margin-bottom: 16px; }
.mj-order-head { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; align-items: flex-start; margin-bottom: 10px; }
.mj-order-sum { display: flex; gap: 14px; flex-wrap: wrap; font-size: 14px; color: var(--mj-muted); }
.mj-order-sum b { color: var(--mj-navy); }
.mj-order-sum .hot b { color: #c0392b; }
.mj-table { font-size: 14px; margin: 8px 0; }
.mj-table tr.late td { color: #c0392b; font-weight: 700; }
.mj-pays { list-style: none; padding: 0; margin: 8px 0; display: flex; flex-direction: column; gap: 6px; font-size: 14px; }
.mj-pays li { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; border-top: 1px dashed var(--mj-border); padding-top: 6px; }
.mj-pay-pending { color: #b26a00; font-weight: 700; } .mj-pay-approved { color: #146c43; font-weight: 700; } .mj-pay-rejected { color: #c0392b; font-weight: 700; }
.mj-receipt { display: flex; gap: 10px; flex-wrap: wrap; align-items: flex-end; background: var(--mj-bg); border-radius: 12px; padding: 12px; margin-top: 10px; }
.mj-receipt .mj-field { margin: 0; min-width: 160px; }
.mj-receipt .mj-buy-msg { flex-basis: 100%; }
.mj-list { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 8px; }
.mj-list li { display: flex; justify-content: space-between; gap: 12px; align-items: center; background: #fff; border: 1px solid var(--mj-border); border-radius: 12px; padding: 12px 14px; }
.mj-list li a { display: flex; flex-direction: column; gap: 2px; color: var(--mj-navy); flex: 1; min-width: 0; }
.mj-list li.unread { border-inline-start: 4px solid var(--mj-orange); }
.mj-list li.important b { color: #c0392b; }
.mj-status { font-size: 12px; font-weight: 800; border-radius: 999px; padding: 3px 10px; background: #eef2f8; color: var(--mj-navy); white-space: nowrap; }
.mj-status.open, .mj-status.follow_up, .mj-status.new, .mj-status.needs_info { background: var(--mj-orange-soft); color: var(--mj-orange); }
.mj-status.answered, .mj-status.available { background: #e8f7ef; color: #146c43; }
.mj-status.impossible { background: #fdecea; color: #c0392b; }
.mj-msg { background: var(--mj-bg); border-radius: 12px; padding: 10px 14px; margin: 8px 0; max-width: 760px; }
.mj-msg.mine { background: #eef2f8; margin-inline-start: auto; }
.mj-inline { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 8px; }
.mj-inline input[type="text"] { flex: 1; min-width: 200px; margin: 0 !important; }
.mj-inline .mj-buy-msg { flex-basis: 100%; }

/* ------------------------------------------------------------ pop-up announcements */
.mj-ann { position: fixed; inset: 0; z-index: 100000; background: rgba(13, 30, 60, .55); display: flex; align-items: center; justify-content: center; padding: 16px; animation: mjAnnIn .25s ease; }
.mj-ann.out { opacity: 0; transition: opacity .25s; }
.mj-ann-box { position: relative; background: #fff; border-radius: 16px; width: min(520px, 100%); max-height: calc(100vh - 32px); overflow: auto; box-shadow: 0 20px 60px rgba(0, 0, 0, .25); direction: rtl; text-align: right; }
.mj-ann-img { display: block; width: 100%; height: auto; border-radius: 16px 16px 0 0; }
.mj-ann-in { padding: 20px 22px 22px; }
.mj-ann-in h3 { font-size: 21px; margin: 0 0 8px; color: var(--mj-navy, #0d1e3c); line-height: 1.5; }
.mj-ann-text { font-size: 15.5px; line-height: 1.9; color: #4b5563; }
.mj-ann-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 16px; }
.mj-ann-actions:empty { display: none; }
.mj-ann-actions .th-btn { padding: 12px 26px; }
.mj-ann-x { position: absolute; top: 10px; left: 10px; width: 36px; height: 36px; border-radius: 50%; border: 0; background: rgba(255, 255, 255, .92); color: #111; font-size: 24px; line-height: 1; cursor: pointer; box-shadow: 0 2px 8px rgba(0, 0, 0, .15); z-index: 1; }
.mj-ann-x:focus-visible, .mj-ann-ack:focus-visible { outline: 3px solid #f45c11; outline-offset: 2px; }
@keyframes mjAnnIn { from { opacity: 0; } to { opacity: 1; } }
@media (max-width: 575px) { .mj-ann { align-items: flex-end; padding: 0; } .mj-ann-box { border-radius: 16px 16px 0 0; width: 100%; } .mj-ann-img { border-radius: 16px 16px 0 0; } }
@media (prefers-reduced-motion: reduce) { .mj-ann { animation: none; } }

/* free sample lessons */
.mj-sample-tag { color: #1f8a4c; background: #e8f7ee; }
.mj-flash { animation: mjFlash 1.6s ease 2; }
@keyframes mjFlash { 50% { box-shadow: 0 0 0 4px rgba(31, 138, 76, .35); } }

/* featured sections of the home page */
.mj-feat-label { display: inline-block; margin-bottom: 8px; padding: 3px 12px; border-radius: 20px; background: var(--mj-orange-soft); color: var(--mj-orange); font-weight: 700; font-size: 13px; }
.mj-featured .team-card2 .mj-tile-count { display: block; margin-top: 4px; }

/* ------------------------------------------------------------ AI assistant */
.mj-ai-btn { position: fixed; left: 20px; bottom: 20px; z-index: 9990; display: inline-flex; align-items: center; gap: 8px; padding: 12px 18px; border: 0; border-radius: 30px; background: var(--mj-navy); color: #fff; font-weight: 700; font-size: 15px; box-shadow: 0 8px 24px rgba(0, 37, 81, .3); cursor: pointer; }
.mj-ai-btn i { color: var(--mj-orange); font-size: 18px; }
.mj-ai-btn:focus-visible, .mj-ai button:focus-visible, .mj-ai input:focus-visible { outline: 3px solid var(--mj-orange); outline-offset: 2px; }
.mj-ai { position: fixed; left: 20px; bottom: 80px; z-index: 10001; width: min(380px, calc(100vw - 24px)); height: min(560px, calc(100vh - 110px)); display: flex; flex-direction: column; background: #fff; border-radius: 16px; box-shadow: 0 20px 60px rgba(0, 0, 0, .25); overflow: hidden; direction: rtl; text-align: right; }
.mj-ai.hidden { display: none; }
.mj-ai-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 8px; padding: 12px 14px; background: var(--mj-navy); color: #fff; }
.mj-ai-head b { font-size: 16px; }
.mj-ai-bot { display: inline-block; padding: 1px 8px; border-radius: 10px; background: var(--mj-orange); font-size: 11px; font-weight: 700; margin-inline-start: 4px; vertical-align: middle; }
.mj-ai-mode { font-size: 11.5px; color: #c9d6ea; margin-top: 2px; }
.mj-ai-mode:empty { display: none; }
.mj-ai-x { background: transparent; border: 0; color: #fff; font-size: 26px; line-height: 1; cursor: pointer; padding: 0 4px; }
.mj-ai-log { flex: 1; overflow-y: auto; padding: 12px; display: flex; flex-direction: column; gap: 8px; background: var(--mj-bg); }
.mj-ai-msg { max-width: 88%; padding: 9px 12px; border-radius: 12px; font-size: 14px; line-height: 1.8; word-wrap: break-word; }
.mj-ai-msg.me { align-self: flex-start; background: var(--mj-navy); color: #fff; border-bottom-right-radius: 4px; }
.mj-ai-msg.bot { align-self: flex-end; background: #fff; color: #1f2937; border: 1px solid var(--mj-border); border-bottom-left-radius: 4px; }
.mj-ai-msg.note { align-self: stretch; max-width: none; background: var(--mj-orange-soft); color: #7a3b12; font-size: 13px; }
.mj-ai-src { margin-top: 6px; font-size: 12px; color: var(--mj-muted); }
.mj-ai-links { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }
.mj-ai-links a { font-size: 12.5px; font-weight: 700; color: var(--mj-orange); text-decoration: underline; }
.mj-ai-fb { display: flex; align-items: center; gap: 6px; margin-top: 6px; font-size: 12px; color: var(--mj-muted); }
.mj-ai-fb button { background: transparent; border: 1px solid var(--mj-border); border-radius: 8px; padding: 2px 8px; cursor: pointer; color: var(--mj-navy); }
.mj-ai-chips { display: flex; flex-wrap: wrap; gap: 6px; padding: 8px 12px 0; background: var(--mj-bg); }
.mj-ai-chips button { border: 1px solid var(--mj-border); background: #fff; border-radius: 16px; padding: 4px 10px; font-size: 12.5px; color: var(--mj-navy); cursor: pointer; }
.mj-ai-form { display: flex; gap: 8px; padding: 10px 12px; border-top: 1px solid var(--mj-border); background: #fff; }
.mj-ai-form input { flex: 1; min-width: 0; border: 1px solid var(--mj-border); border-radius: 10px; padding: 9px 12px; font-size: 14px; }
.mj-ai-form button { border: 0; background: var(--mj-orange); color: #fff; border-radius: 10px; padding: 0 14px; cursor: pointer; }
.mj-ai-form button:disabled { opacity: .5; }
.mj-ai-foot { padding: 0 12px 10px; background: #fff; }
.mj-ai-human, .mj-ai-link { background: transparent; border: 0; color: var(--mj-navy); font-weight: 700; font-size: 13px; text-decoration: underline; cursor: pointer; padding: 0; }
.mj-ai-hf form { display: flex; flex-direction: column; gap: 6px; }
.mj-ai-hf input, .mj-ai-hf textarea { border: 1px solid var(--mj-border); border-radius: 8px; padding: 7px 10px; font-size: 13px; background: #fff; }
.mj-ai-dots i { display: inline-block; width: 6px; height: 6px; margin: 0 2px; border-radius: 50%; background: var(--mj-muted); animation: mjDot 1s infinite; }
.mj-ai-dots i:nth-child(2) { animation-delay: .15s; } .mj-ai-dots i:nth-child(3) { animation-delay: .3s; }
@keyframes mjDot { 50% { opacity: .2; } }
@media (max-width: 575px) { .mj-ai { left: 0; bottom: 0; width: 100%; height: 100%; border-radius: 0; } .mj-ai-btn { left: 12px; bottom: 12px; padding: 10px 14px; } }

/* tax of the course's country (version 4) */
.mj-tax-note { font-size: 13px; color: var(--mj-muted); margin: 4px 0 10px; }
.cur { font-weight: 700; font-size: .85em; color: var(--mj-orange); }
