/* ════════════════════════════════════════════════════════════════════
   الكول سنتر — تصميم v2  (cc-v2.css)
   كل القواعد هنا بتبدأ بـ .ccx / .ccx-  عشان متأثرش على أي قسم تاني
   (الإنترفيو والأقسام التانية لسه بتستخدم cc-* القديمة من styles.css / app-modules.css).
   الألوان من توكنز لسان: النهاري والليلي (body.dark-mode).
   ════════════════════════════════════════════════════════════════════ */

.ccx {
  --bg: #eef0f8; --card: #ffffff; --c2: #f5f6fc; --bd: #e1e4f2;
  --tx: #1c1c2e; --mu: #565c75; --ac: #6c63ff; --acx: #4834d4; --acon: #ffffff;
  --ok: #007a62; --okb: #ddf5ee; --gd: #8a5a00; --gdb: #fff1cc;
  --rd: #c8000a; --rdb: #fde8ea; --tr: #e3e6f4;
  --call: #0e8f83; --callb: #ddf4f1; --sh: 0 4px 24px rgba(28, 28, 46, 0.08);
  --warn: #d9822b;
  font-family: Cairo, sans-serif;
  color: var(--tx);
  box-sizing: border-box;
  text-align: right;
}
body.dark-mode .ccx {
  --bg: #05070f; --card: #111827; --c2: #141d2e; --bd: rgba(255, 255, 255, 0.09);
  --tx: #dde3f8; --mu: #8393b5; --ac: #7c6aff; --acx: #7c6aff; --acon: #05070f;
  --ok: #00d68f; --okb: rgba(0, 214, 143, 0.12); --gd: #ffc947; --gdb: rgba(255, 201, 71, 0.12);
  --rd: #ff6b80; --rdb: rgba(255, 61, 87, 0.12); --tr: rgba(255, 255, 255, 0.08);
  --call: #2dd4bf; --callb: rgba(45, 212, 191, 0.12); --sh: 0 8px 32px rgba(0, 0, 0, 0.6);
  --warn: #f0a04b;
}
.ccx *, .ccx *::before, .ccx *::after { box-sizing: border-box; }
.ccx button { font-family: Cairo, sans-serif; }
.ccx button:focus-visible, .ccx input:focus-visible, .ccx summary:focus-visible {
  outline: 2px solid var(--ac); outline-offset: 2px;
}
.ccx svg { flex: none; }

/* ───────── الصفحات (قائمة + حوار) ───────── */
.ccx-page { max-width: 1120px; margin: 0 auto; padding: 14px 14px 110px; display: flex; flex-direction: column; gap: 18px; }
.ccx-page--dialog { max-width: 720px; gap: 14px; padding-bottom: 120px; }

/* ───────── الهيرو + التقدم ───────── */
.ccx-top { display: grid; grid-template-columns: 1.5fr 1fr; gap: 20px; }
.ccx-hero {
  background: linear-gradient(135deg, #031b34, #0b5d63); color: #fff; border-radius: 28px;
  padding: 34px; display: flex; flex-direction: column; gap: 20px; position: relative; overflow: hidden;
}
.ccx-orb1 { position: absolute; top: -110px; left: -80px; width: 340px; height: 340px; border-radius: 50%; background: rgba(255, 255, 255, 0.06); pointer-events: none; }
.ccx-orb2 { position: absolute; bottom: -130px; left: 200px; width: 260px; height: 260px; border-radius: 50%; background: rgba(255, 198, 66, 0.12); pointer-events: none; }
.ccx-wavedeco { position: absolute; top: 30px; left: 34px; opacity: 0.5; pointer-events: none; }
.ccx-eyebrow { position: relative; font-size: 13px; font-weight: 800; color: #ffd66b; }
.ccx-h1 { position: relative; margin: 0; font-size: 36px; line-height: 1.45; font-weight: 900; max-width: 600px; color: #fff; }
.ccx-next {
  position: relative; background: rgba(255, 255, 255, 0.1); border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 22px; padding: 16px 20px; display: flex; align-items: center; gap: 16px; flex-wrap: wrap;
}
.ccx-next-ic { width: 60px; height: 60px; border-radius: 20px; background: #fff; display: flex; align-items: center; justify-content: center; flex: none; padding: 12px; }
.ccx-next-body { flex: 1; min-width: 180px; }
.ccx-next-k { font-size: 12.5px; color: #bfe9e4; }
.ccx-next-t { font-size: 19px; font-weight: 800; line-height: 1.5; color: #fff; }
.ccx-next-s { font-size: 13px; color: #bfe9e4; }
.ccx-next-btn {
  border: 0; cursor: pointer; background: #ffd66b; color: #1c1c2e; font-weight: 800; font-size: 15px;
  min-height: 48px; padding: 0 26px; border-radius: 14px;
}
.ccx-next-btn:hover { filter: brightness(1.05); }
.ccx-hstats { position: relative; display: flex; gap: 30px; flex-wrap: wrap; }
.ccx-hs-n { font-size: 28px; font-weight: 900; color: #fff; line-height: 1.3; }
.ccx-hs-n small { font-size: 15px; opacity: 0.7; font-weight: 700; }
.ccx-hs-n.g { color: #7cf2c8; }
.ccx-hs-n.y { color: #ffd66b; }
.ccx-hs-l { font-size: 12.5px; color: #bfe9e4; }

.ccx-card { background: var(--card); border: 1px solid var(--bd); border-radius: 22px; box-shadow: var(--sh); }
.ccx-prog { padding: 26px; display: flex; flex-direction: column; gap: 16px; }
.ccx-prog-h { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.ccx-prog-t { font-weight: 800; font-size: 17px; }
.ccx-badge { background: var(--okb); color: var(--ok); border-radius: 999px; padding: 4px 12px; font-size: 12px; font-weight: 800; white-space: nowrap; }
.ccx-bar-row { display: flex; flex-direction: column; gap: 7px; }
.ccx-bar-top { display: flex; justify-content: space-between; font-size: 13.5px; font-weight: 700; }
.ccx-bar-top span:last-child { color: var(--mu); }
.ccx-bar { height: 9px; border-radius: 5px; background: var(--tr); overflow: hidden; }
.ccx-bar > i { display: block; height: 100%; border-radius: 5px; transition: width 0.5s ease; }
.ccx-bar-h { font-size: 12px; color: var(--mu); }
.ccx-tip { margin-top: auto; background: var(--c2); border: 1px solid var(--bd); border-radius: 16px; padding: 12px 14px; font-size: 13px; line-height: 1.8; color: var(--mu); }
.ccx-tip b { color: var(--tx); }

/* ───────── المراحل ───────── */
.ccx-stages { padding: 20px 24px; display: flex; flex-direction: column; gap: 14px; }
.ccx-stages-h { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.ccx-stages-h b { font-weight: 800; font-size: 17px; }
.ccx-stages-h span { color: var(--mu); font-size: 13px; }
.ccx-stages-g { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.ccx-st { display: flex; align-items: center; gap: 14px; background: var(--c2); border: 1px solid var(--bd); border-radius: 18px; padding: 14px 16px; }
.ccx-st-n { width: 44px; height: 44px; border-radius: 14px; background: var(--callb); color: var(--call); display: flex; align-items: center; justify-content: center; font-weight: 900; flex: none; }
.ccx-st-t { font-weight: 800; font-size: 15px; }
.ccx-st-s { color: var(--mu); font-size: 12.5px; line-height: 1.7; }

/* ───────── الفلاتر ───────── */
.ccx-filters { display: flex; gap: 12px; align-items: stretch; flex-wrap: wrap; }
.ccx-companies {
  display: flex; gap: 10px; flex: 1 1 100%; min-width: 0; overflow-x: auto; padding: 2px 2px 8px;
  scrollbar-width: thin; -webkit-overflow-scrolling: touch;
}
.ccx-chip {
  border: 1px solid var(--bd); background: var(--card); color: var(--tx); border-radius: 16px;
  padding: 6px 14px 6px 12px; display: inline-flex; align-items: center; gap: 9px; cursor: pointer;
  font-weight: 800; font-size: 14px; min-height: 46px; white-space: nowrap; flex: none;
}
.ccx-chip .ccx-chip-ic { width: 28px; height: 28px; border-radius: 9px; background: #fff; border: 1px solid var(--bd); display: flex; align-items: center; justify-content: center; padding: 4px; overflow: hidden; }
.ccx-chip.on { border-color: var(--ac); background: var(--acx); color: var(--acon); }
.ccx-chip.on .ccx-chip-ic { border-color: transparent; }
.ccx-seg { display: flex; background: var(--card); border: 1px solid var(--bd); border-radius: 16px; padding: 4px; }
.ccx-seg button { border: 0; cursor: pointer; border-radius: 12px; padding: 0 16px; min-height: 40px; font-weight: 800; background: transparent; color: var(--mu); }
.ccx-seg button.on { background: var(--acx); color: var(--acon); }
.ccx-search { display: flex; align-items: center; gap: 10px; background: var(--card); border: 1px solid var(--bd); border-radius: 16px; padding: 0 16px; min-height: 54px; flex: 1; min-width: 220px; }
.ccx-search input { border: 0; outline: 0; background: transparent; color: var(--tx); font-family: Cairo, sans-serif; font-size: 15px; flex: 1; min-width: 0; }
.ccx-search input::placeholder { color: var(--mu); }

/* ───────── كروت المحادثات ───────── */
.ccx-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.ccx-cc { overflow: hidden; display: flex; flex-direction: column; cursor: pointer; transition: transform 0.18s ease, box-shadow 0.18s ease; }
.ccx-cc:hover { transform: translateY(-2px); }
.ccx-cc-bar { height: 5px; }
.ccx-cc-b { padding: 18px; display: flex; flex-direction: column; gap: 13px; flex: 1; }
.ccx-cc-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.ccx-cc-brand { display: flex; align-items: center; gap: 12px; min-width: 0; }
.ccx-cc-logo { width: 46px; height: 46px; border-radius: 14px; background: #fff; border: 1px solid var(--bd); display: flex; align-items: center; justify-content: center; padding: 8px; flex: none; overflow: hidden; }
.ccx-cc-bn { font-weight: 800; font-size: 14px; color: var(--mu); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ccx-pill { border-radius: 999px; padding: 4px 12px; font-size: 12px; font-weight: 800; white-space: nowrap; background: var(--c2); color: var(--mu); }
.ccx-pill.ok { background: var(--okb); color: var(--ok); }
.ccx-pill.gd { background: var(--gdb); color: var(--gd); }
.ccx-cc-t { font-weight: 800; font-size: 18px; line-height: 1.5; }
.ccx-cc-de { text-align: right; color: var(--mu); font-size: 12.5px; direction: ltr; }
.ccx-cc-d { color: var(--mu); font-size: 13px; line-height: 1.8; }
.ccx-stg { display: flex; gap: 8px; flex-wrap: wrap; }
.ccx-stg span { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 700; border-radius: 999px; padding: 5px 11px; background: var(--c2); color: var(--mu); }
.ccx-stg span.on { background: var(--okb); color: var(--ok); }
.ccx-cc-m { display: flex; align-items: center; justify-content: space-between; color: var(--mu); font-size: 13px; margin-top: auto; }
.ccx-cc-m b { font-weight: 800; }
.ccx-btn { border: 0; cursor: pointer; border-radius: 14px; min-height: 46px; font-weight: 800; font-size: 14px; background: var(--acx); color: var(--acon); }
.ccx-btn.ghost { background: var(--c2); color: var(--tx); border: 1px solid var(--bd); }
.ccx-empty { grid-column: 1 / -1; text-align: center; padding: 40px 16px; color: var(--mu); font-size: 14px; line-height: 2; }
.ccx-disc { border-top: 1px solid var(--bd); padding-top: 14px; color: var(--mu); font-size: 13px; line-height: 1.8; }

/* ───────── صفحة الحوار ───────── */
.ccx-top-bar { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.ccx-top-bar .ccx-top-t { font-weight: 800; font-size: 15px; }
.ccx-ib { width: 44px; min-height: 44px; border-radius: 14px; border: 1px solid var(--bd); background: var(--card); color: var(--tx); cursor: pointer; display: flex; align-items: center; justify-content: center; }
.ccx-sit { background: linear-gradient(135deg, #031b34, #0b5d63); color: #fff; border-radius: 26px; padding: 22px; display: flex; flex-direction: column; gap: 14px; position: relative; overflow: hidden; }
.ccx-sit .ccx-orb1 { top: -60px; left: -40px; width: 180px; height: 180px; background: rgba(255, 255, 255, 0.07); }
.ccx-sit-r { position: relative; display: flex; align-items: center; gap: 14px; }
.ccx-sit-logo { width: 58px; height: 58px; border-radius: 16px; background: #fff; display: flex; align-items: center; justify-content: center; flex: none; padding: 10px; }
.ccx-sit-t { font-weight: 900; font-size: 20px; line-height: 1.4; color: #fff; margin: 0; }
.ccx-sit-de { font-size: 12.5px; color: #bfe9e4; direction: ltr; text-align: right; }
.ccx-chips { position: relative; display: flex; gap: 8px; flex-wrap: wrap; }
.ccx-chips span { background: rgba(255, 255, 255, 0.14); border-radius: 999px; padding: 4px 12px; font-size: 12px; font-weight: 800; color: #fff; }
.ccx-chips span.lv { background: rgba(255, 214, 107, 0.2); color: #ffd66b; }

.ccx-steps { display: flex; align-items: center; background: var(--card); border: 1px solid var(--bd); border-radius: 18px; padding: 12px 14px; box-shadow: var(--sh); }
.ccx-step { display: flex; align-items: center; gap: 8px; flex: 1; background: none; border: 0; cursor: pointer; color: var(--mu); font-weight: 700; font-size: 13px; padding: 0; }
.ccx-step:nth-child(3) { justify-content: center; }
.ccx-step:nth-child(5) { justify-content: flex-end; }
.ccx-step i { width: 30px; height: 30px; border-radius: 50%; background: var(--c2); border: 1px solid var(--bd); color: var(--mu); font-style: normal; font-weight: 900; font-size: 13px; display: flex; align-items: center; justify-content: center; }
.ccx-step.cur { color: var(--tx); font-weight: 800; }
.ccx-step.cur i { background: var(--acx); border-color: var(--acx); color: var(--acon); }
.ccx-step.ok i { background: var(--ok); border-color: var(--ok); color: #fff; }
.ccx-step-l { width: 22px; height: 2px; background: var(--tr); flex: none; }

.ccx-sec { padding: 16px; display: flex; flex-direction: column; gap: 14px; }
.ccx-sec-h { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.ccx-sec-t { font-weight: 800; font-size: 15px; display: flex; align-items: center; gap: 10px; }
.ccx-sec-ic { width: 34px; height: 34px; border-radius: 11px; display: flex; align-items: center; justify-content: center; background: var(--gdb); color: var(--gd); }
.ccx-tools { display: flex; gap: 8px; flex-wrap: wrap; }
.ccx-tb {
  min-height: 36px; border-radius: 12px; border: 1px solid var(--bd); background: var(--c2); color: var(--tx);
  font-weight: 800; font-size: 12.5px; padding: 0 12px; cursor: pointer; display: inline-flex; align-items: center; gap: 6px;
}
.ccx-tb.on, .ccx-tb.playing { border-color: var(--ac); background: var(--acx); color: var(--acon); }
.ccx-speed { display: flex; gap: 8px; flex-wrap: wrap; }

.ccx-line { display: flex; flex-direction: column; gap: 6px; transition: opacity 0.25s; }
.ccx-line.agent { align-items: flex-start; }
.ccx-line.customer { align-items: flex-end; }
.ccx-who { font-size: 12px; color: var(--mu); font-weight: 700; display: flex; align-items: center; gap: 6px; }
.ccx-who i { width: 8px; height: 8px; border-radius: 50%; background: var(--call); }
.ccx-line.customer .ccx-who i { background: var(--ac); }
.ccx-bub { max-width: 92%; border: 1px solid var(--bd); padding: 12px 14px; display: flex; flex-direction: column; gap: 6px; }
.ccx-line.agent .ccx-bub { background: var(--callb); border-radius: 6px 20px 20px 20px; }
.ccx-line.customer .ccx-bub { background: var(--c2); border-radius: 20px 6px 20px 20px; }
.ccx-de { direction: ltr; text-align: left; font-size: 14.5px; line-height: 1.7; font-weight: 700; }
.ccx-ar { font-size: 13px; line-height: 1.8; color: var(--mu); }
.ccx-hide-ar .ccx-ar { display: none; }
.ccx-listen {
  align-self: flex-start; min-height: 34px; border-radius: 10px; border: 0; background: var(--card); color: var(--call);
  font-weight: 800; font-size: 12px; padding: 0 12px; cursor: pointer; display: inline-flex; align-items: center; gap: 6px;
}
.ccx-line.customer .ccx-listen { color: var(--acx); }

.ccx-vocab { display: flex; flex-wrap: wrap; gap: 8px; }
.ccx-v { background: var(--c2); border: 1px solid var(--bd); border-radius: 16px; padding: 8px 12px; cursor: pointer; color: var(--tx); display: flex; flex-direction: column; align-items: center; line-height: 1.5; }
.ccx-v .d { font-weight: 700; font-size: 13px; direction: ltr; }
.ccx-v .a { color: var(--mu); font-size: 11.5px; }

.ccx-tips { display: flex; flex-direction: column; gap: 8px; }
.ccx-tipi { background: var(--c2); border: 1px solid var(--bd); border-radius: 14px; padding: 10px 14px; font-size: 13.5px; line-height: 1.9; }
.ccx-pro { display: flex; flex-direction: column; gap: 10px; }
.ccx-pro > div { background: var(--c2); border: 1px solid var(--bd); border-radius: 16px; padding: 12px 14px; }
.ccx-pro > div.les { background: var(--okb); }
.ccx-pro b { display: block; font-size: 12px; font-weight: 800; margin-bottom: 2px; }
.ccx-pro .p b { color: var(--rd); }
.ccx-pro .h b { color: var(--acx); }
.ccx-pro .les b { color: var(--ok); }
.ccx-pro span { font-size: 13.5px; line-height: 1.9; color: var(--tx); }

/* لعبة الذاكرة — إعادة تلوين للكلاسات القديمة داخل الصفحة الجديدة بس */
.ccx .cc-memcard-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.ccx .cc-memcard {
  background: var(--c2); border: 1px solid var(--bd); color: var(--tx); border-radius: 14px; min-height: 58px;
  display: flex; align-items: center; justify-content: center; text-align: center; padding: 6px; cursor: pointer;
  font-weight: 800; font-size: 12.5px; line-height: 1.4; box-shadow: none !important; transition: background 0.2s;
}
.ccx .cc-memcard.flipped { background: var(--gdb); color: var(--gd); border-color: transparent; }
.ccx .cc-memcard.matched { background: var(--okb); color: var(--ok); border-color: transparent; opacity: 0.8; }

/* الكويز */
.ccx-q { background: var(--c2); border: 1px solid var(--bd); border-radius: 18px; padding: 16px; display: flex; flex-direction: column; gap: 12px; }
.ccx-q-top { display: flex; justify-content: space-between; align-items: center; }
.ccx-q-top .n { font-size: 12px; font-weight: 900; color: var(--acx); background: var(--card); padding: 4px 10px; border-radius: 999px; border: 1px solid var(--bd); }
.ccx-q-top .s { font-size: 12px; color: var(--ok); font-weight: 800; }
.ccx-q-bar { height: 6px; border-radius: 4px; background: var(--tr); overflow: hidden; }
.ccx-q-bar i { display: block; height: 100%; background: var(--ac); border-radius: 4px; transition: width 0.4s; }
.ccx-q-t { font-size: 15px; font-weight: 800; line-height: 1.8; padding: 12px; background: var(--card); border-radius: 12px; border-inline-start: 4px solid var(--ac); text-align: start; }
.ccx-opt {
  display: flex; align-items: center; gap: 12px; text-align: right; width: 100%; background: var(--card); color: var(--tx);
  border: 1.5px solid var(--bd); border-radius: 14px; padding: 12px 14px; margin-bottom: 8px; cursor: pointer;
  font-family: Cairo, sans-serif; font-size: 14px; font-weight: 700; line-height: 1.6;
}
.ccx-opt .l { min-width: 28px; height: 28px; border-radius: 50%; background: var(--c2); color: var(--acx); font-weight: 900; font-size: 13px; display: flex; align-items: center; justify-content: center; flex: none; }
.ccx-opt .t { text-align: start; flex: 1; }
.ccx-opt:hover:not(:disabled) { border-color: var(--ac); }
.ccx-opt.correct { border-color: var(--ok); background: var(--okb); color: var(--ok); }
.ccx-opt.wrong { border-color: var(--rd); background: var(--rdb); color: var(--rd); }
.ccx-opt:disabled:not(.correct):not(.wrong) { opacity: 0.6; cursor: default; }
.ccx-exp { display: none; margin-top: 4px; padding: 12px 14px; background: var(--okb); border-radius: 12px; border-right: 4px solid var(--ok); font-size: 13px; line-height: 1.8; color: var(--tx); }
.ccx-exp b { color: var(--ok); }
.ccx-res { text-align: center; padding: 20px 14px; border-radius: 18px; background: var(--okb); display: flex; flex-direction: column; gap: 8px; align-items: center; }
.ccx-res.low { background: var(--gdb); }
.ccx-res .big { font-size: 30px; font-weight: 900; color: var(--ok); }
.ccx-res.low .big { color: var(--gd); }
.ccx-res .sub { font-size: 14px; color: var(--mu); }
.ccx-res .msg { font-size: 15px; font-weight: 800; }
.ccx-res-b { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; margin-top: 8px; }
.ccx-res-b button { padding: 10px 20px; border-radius: 12px; border: 0; background: var(--acx); color: var(--acon); font-weight: 800; cursor: pointer; font-size: 14px; }
.ccx-res-b button.alt { background: var(--card); color: var(--tx); border: 1px solid var(--bd); }
.ccx-res .ad { align-self: stretch; margin-top: 12px; background: var(--card); border-radius: 12px; padding: 8px; min-height: 90px; overflow: hidden; }

.ccx-cta { display: flex; flex-direction: column; gap: 10px; }
.ccx-cta .ccx-btn { min-height: 54px; font-size: 16px; }
.ccx-note { color: var(--mu); text-align: center; font-size: 12px; }
.ccx-simcta { background: linear-gradient(135deg, #031b34, #0b5d63); color: #fff; border-radius: 22px; padding: 20px; text-align: center; display: flex; flex-direction: column; gap: 8px; align-items: center; }
.ccx-simcta h3 { margin: 0; font-size: 17px; font-weight: 900; color: #ffd66b; }
.ccx-simcta p { margin: 0 0 6px; font-size: 12.5px; line-height: 1.7; color: #bfe9e4; }
.ccx-simcta .ccx-btn { background: #ffd66b; color: #1c1c2e; width: 100%; min-height: 50px; }

/* ───────── المحاكاة: كن أنت الموظف (overlay) ───────── */
#cc-sim-overlay.ccx { background: var(--bg); }
.ccx-sim { max-width: 520px; margin: 0 auto; min-height: 100vh; padding: 18px 18px 40px; display: flex; flex-direction: column; gap: 14px; }
.ccx-callbar { display: flex; align-items: center; gap: 10px; }
.ccx-callbar .x { width: 44px; min-height: 44px; border-radius: 14px; border: 1px solid var(--bd); background: var(--card); color: var(--tx); font-size: 18px; cursor: pointer; }
.ccx-live { flex: 1; display: flex; align-items: center; justify-content: center; gap: 8px; background: var(--callb); color: var(--call); border-radius: 999px; min-height: 44px; font-weight: 800; font-size: 13px; }
.ccx-live i { width: 9px; height: 9px; border-radius: 50%; background: var(--call); animation: ccxPulse 1.4s ease-in-out infinite; }
.ccx-pts { font-weight: 800; font-size: 13px; color: var(--gd); background: var(--gdb); border-radius: 999px; padding: 6px 12px; min-height: 32px; display: flex; align-items: center; white-space: nowrap; }
.ccx-segs { display: flex; gap: 5px; }
.ccx-segs span { flex: 1; height: 6px; border-radius: 4px; background: var(--tr); transition: background 0.3s; }
.ccx-segs span.d { background: var(--ok); }
.ccx-segs span.c { background: var(--ac); }
.ccx-segmeta { display: flex; justify-content: space-between; font-size: 12.5px; color: var(--mu); gap: 8px; }
.ccx-cust { background: linear-gradient(135deg, #031b34, #0b5d63); color: #fff; border-radius: 26px; padding: 20px; display: flex; flex-direction: column; gap: 14px; position: relative; overflow: hidden; }
.ccx-cust .ccx-orb1 { top: -70px; left: -50px; width: 190px; height: 190px; background: rgba(255, 255, 255, 0.07); }
.ccx-cust-h { position: relative; display: flex; align-items: center; gap: 14px; }
.ccx-av { width: 56px; height: 56px; border-radius: 50%; background: rgba(255, 255, 255, 0.14); border: 1px solid rgba(255, 255, 255, 0.25); display: flex; align-items: center; justify-content: center; font-weight: 900; font-size: 22px; flex: none; color: #fff; }
.ccx-cust-n { font-weight: 900; font-size: 18px; color: #fff; }
.ccx-cust-k { font-size: 12.5px; color: #bfe9e4; }
.ccx-wave { display: flex; align-items: center; gap: 4px; height: 30px; }
.ccx-wave i { width: 4px; border-radius: 2px; background: #7cf2e0; height: 8px; animation: ccxWave 1s ease-in-out infinite; }
.ccx-wave i:nth-child(2) { animation-delay: 0.1s; } .ccx-wave i:nth-child(3) { animation-delay: 0.2s; }
.ccx-wave i:nth-child(4) { animation-delay: 0.3s; } .ccx-wave i:nth-child(5) { animation-delay: 0.4s; }
.ccx-wave i:nth-child(6) { animation-delay: 0.5s; } .ccx-wave i:nth-child(7) { animation-delay: 0.6s; }
.ccx-wave.still i { animation: none; height: 8px; opacity: 0.5; }
.ccx-cust-b { position: relative; background: rgba(255, 255, 255, 0.1); border: 1px solid rgba(255, 255, 255, 0.16); border-radius: 6px 20px 20px 20px; padding: 14px 16px; display: flex; flex-direction: column; gap: 6px; }
.ccx-cust-b .ccx-de { font-size: 16px; color: #fff; }
.ccx-cust-b .ccx-ar { color: #bfe9e4; }
.ccx-again { align-self: flex-start; min-height: 36px; border: 0; border-radius: 11px; background: rgba(255, 255, 255, 0.18); color: #fff; font-weight: 800; font-size: 12.5px; padding: 0 14px; cursor: pointer; display: inline-flex; align-items: center; gap: 6px; }
.ccx-sat { position: relative; display: flex; flex-direction: column; gap: 8px; }
.ccx-sat-h { display: flex; justify-content: space-between; font-size: 12.5px; font-weight: 700; color: #fff; }
.ccx-sat-h .d { color: #7cf2c8; }
.ccx-sat-h .d.neg { color: #ffb3bd; }
.ccx-sat-track { position: relative; height: 12px; border-radius: 7px; background: rgba(255, 255, 255, 0.16); overflow: hidden; }
.ccx-sat-fill { position: absolute; top: 0; bottom: 0; right: 0; background: linear-gradient(to left, #7cf2c8, #ffd66b); transition: width 0.6s ease; }
.ccx-sat-l { display: flex; justify-content: space-between; font-size: 11.5px; color: #bfe9e4; }
.ccx-instr { background: var(--callb); border: 1px solid var(--bd); border-radius: 16px; padding: 12px 16px; text-align: center; color: var(--call); font-weight: 800; font-size: 14px; }
.ccx-choices { display: flex; flex-direction: column; gap: 12px; }
.ccx-ch { text-align: right; border-radius: 18px; padding: 16px; border: 1px solid var(--bd); background: var(--card); color: var(--tx); display: flex; flex-direction: column; gap: 6px; cursor: pointer; width: 100%; font-family: Cairo, sans-serif; transition: opacity 0.2s, border-color 0.2s; }
.ccx-ch:hover:not(:disabled) { border-color: var(--ac); }
.ccx-ch .ccx-de { font-size: 14.5px; font-weight: 600; line-height: 1.8; }
.ccx-ch .ccx-ar { font-size: 12.5px; }
.ccx-ch.ok { border: 2px solid var(--ok); background: var(--okb); }
.ccx-ch.bad { border: 2px solid var(--rd); background: var(--rdb); }
.ccx-ch.dim { opacity: 0.6; }
.ccx-ch .tag { font-size: 12.5px; font-weight: 800; }
.ccx-ch.ok .tag { color: var(--ok); }
.ccx-ch.bad .tag { color: var(--rd); }
.ccx-expl { padding: 16px; display: flex; flex-direction: column; gap: 8px; }
.ccx-expl-h { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.ccx-expl-h b { font-weight: 800; font-size: 15px; }
.ccx-expl-h b.ok { color: var(--ok); }
.ccx-expl-h b.bad { color: var(--rd); }
.ccx-expl p { margin: 0; font-size: 13.5px; line-height: 1.9; }
.ccx-expl .why { border-top: 1px solid var(--bd); padding-top: 8px; font-size: 12.5px; line-height: 1.8; color: var(--mu); }
.ccx-expl .why b { color: var(--ok); }
.ccx-trans { background: var(--card); border: 1px solid var(--bd); border-radius: 16px; padding: 10px 14px; }
.ccx-trans summary { cursor: pointer; font-weight: 800; font-size: 13px; color: var(--mu); }
.ccx-trans-in { max-height: 34vh; overflow-y: auto; padding-top: 10px; display: flex; flex-direction: column; gap: 10px; }
.ccx-typing { display: flex; justify-content: center; gap: 5px; padding: 6px; }
.ccx-typing i { width: 7px; height: 7px; border-radius: 50%; background: var(--ac); animation: ccxBounce 1.2s infinite; }
.ccx-typing i:nth-child(2) { animation-delay: 0.2s; } .ccx-typing i:nth-child(3) { animation-delay: 0.4s; }
.ccx-sim .ccx-btn { min-height: 54px; font-size: 16px; }
.ccx-rs { text-align: center; padding: 14px 0; display: flex; flex-direction: column; align-items: center; gap: 12px; }
.ccx-rs .em { font-size: 52px; line-height: 1; }
.ccx-rs .tt { font-size: 24px; font-weight: 900; }
.ccx-rs .ds { color: var(--mu); font-size: 13px; }
.ccx-rs-g { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; width: 100%; }
.ccx-rs-g > div { background: var(--card); border: 1px solid var(--bd); border-radius: 14px; padding: 14px 18px; min-width: 96px; }
.ccx-rs-g b { display: block; color: var(--gd); font-size: 22px; font-weight: 900; }
.ccx-rs-g span { color: var(--mu); font-size: 11.5px; }
.ccx-rev { width: 100%; text-align: right; background: var(--card); border: 1px solid var(--bd); border-radius: 16px; padding: 16px; display: flex; flex-direction: column; gap: 8px; }
.ccx-rev h4 { margin: 0 0 4px; font-size: 14px; font-weight: 900; }
.ccx-rev div.i { background: var(--rdb); border-right: 3px solid var(--rd); border-radius: 10px; padding: 10px 12px; font-size: 12.5px; line-height: 1.7; }
.ccx-perf { width: 100%; background: var(--okb); border-radius: 16px; padding: 16px; color: var(--ok); font-weight: 700; font-size: 13px; }
.ccx-rs-b { display: flex; gap: 10px; width: 100%; }
.ccx-rs-b .ccx-btn { flex: 1; min-height: 50px; font-size: 14px; }

@keyframes ccxWave { 0%, 100% { height: 6px; } 50% { height: 26px; } }
@keyframes ccxBounce { 0%, 80%, 100% { transform: translateY(0); opacity: 0.5; } 40% { transform: translateY(-6px); opacity: 1; } }
@keyframes ccxPulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.35; } }
@media (prefers-reduced-motion: reduce) {
  .ccx-wave i, .ccx-typing i, .ccx-live i { animation: none; }
  .ccx-cc, .ccx-sat-fill, .ccx-bar > i { transition: none; }
}

/* ───────── استجابة الشاشات ───────── */
@media (max-width: 1000px) { .ccx-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 860px) {
  .ccx-top { grid-template-columns: 1fr; }
  .ccx-stages-g { grid-template-columns: 1fr; }
  .ccx-h1 { font-size: 26px; }
  .ccx-hero { padding: 24px 20px; border-radius: 24px; }
  .ccx-wavedeco { display: none; }
}
@media (max-width: 620px) {
  .ccx-grid { grid-template-columns: 1fr; }
  .ccx-page { padding: 10px 10px 110px; }
  .ccx-search { min-width: 100%; }
  .ccx-next-btn { width: 100%; }
}

.ccx-badge.neg { background: var(--rdb); color: var(--rd); }
.ccx-sat-pre { position: absolute; top: 0; bottom: 0; background: rgba(255, 255, 255, 0.35); }
.ccx-card[id], .ccx-simcta[id] { scroll-margin-top: 84px; }
.ccx-trans summary { list-style: none; }
.ccx-trans summary::-webkit-details-marker { display: none; }
