/* v1.5.1 – chỉ nạp ở trang có shortcode, priority=9999 */
/* Core layout */
.abkq-top{margin-bottom:12px}
.abkq-progress{height:10px;border-radius:8px;background:#f1f5f9;overflow:hidden}
.abkq-progress-bar{height:10px;width:0;background:#ef4444;border-radius:8px;transition:width .2s}
.abkq-topline{display:flex;gap:12px;align-items:center;justify-content:space-between;margin-top:8px}
.abkq-total,.abkq-cur,.abkq-timer{font-size:14px;color:#334155}
.abkq-timer{font-weight:600}
.abkq-body{display:grid;grid-template-columns:220px 1fr;gap:16px}
@media (max-width:900px){.abkq-body{grid-template-columns:1fr}.abkq-side{order:2}}
.abkq-side{border:1px solid #e5e7eb;border-radius:10px;padding:10px;background:#fff;height:max-content}
.abkq-side-title{font-weight:700;margin:4px 0 8px}
.abkq-list{display:grid;grid-template-columns:repeat(4,1fr);gap:8px;max-height:420px;overflow:auto}
.abkq-num{border:1px solid #e5e7eb;background:#f8fafc;border-radius:8px;padding:8px;font-weight:600;cursor:pointer}
.abkq-num.is-current{border-color:#0ea5e9;background:#e0f2fe}
.abkq-num.is-answered{box-shadow:inset 0 0 0 2px #94a3b8}
.abkq-num.is-correct{background:#ecfdf5;border-color:#16a34a}
.abkq-num.is-wrong{background:#fef2f2;border-color:#dc2626}
.abkq-q{border:1px solid #e5e7eb;border-radius:10px;padding:12px 14px;margin:12px 0;background:#fff;box-shadow:0 1px 2px rgba(0,0,0,.03)}
.abkq-q .qtext{font-weight:800;margin-bottom:8px}
.abkq-opts{display:grid;gap:8px;margin:6px 0}
.abkq-opt{border:1px solid #e5e7eb;border-radius:8px;padding:10px;cursor:pointer;background:#fafafa}
.abkq-opt:hover{background:#f5f5f5}
.abkq-opt.correct{border-color:#16a34a;background:#ecfdf5}
.abkq-opt.wrong{border-color:#dc2626;background:#fef2f2}
.abkq-actions{display:flex;gap:8px;justify-content:space-between;margin-top:12px}
.abkq-btn{padding:8px 12px;border-radius:8px;border:1px solid #e5e7eb;background:#fff;cursor:pointer}
.abkq-btn.primary{background:#b91c1c;color:#fff;border-color:#b91c1c}
.abkq-btn[disabled]{opacity:.5;cursor:not-allowed}
.abkq-exp{display:none;margin-top:8px}
.abkq-exp.show{display:block}
.abkq-explain{padding:8px 10px;border-left:3px solid #16a34a;background:#ecfdf5;border-radius:8px;margin-bottom:6px}
.abkq-source{display:none;padding:8px 10px;border:1px dashed #60a5fa;background:#eff6ff;color:#0c4a6e;border-radius:8px;margin-top:8px}
.abkq-source.show{display:block}
.abkq-source::before{content:"📚";margin-right:6px}
.abkq-foot{display:flex;align-items:center;justify-content:space-between;margin-top:16px}
.abkq-score{font-weight:600}
.abkq-modal{position:fixed;inset:0;display:flex;align-items:center;justify-content:center;z-index:9999;opacity:0;pointer-events:none;transition:opacity .2s}
.abkq-modal.show{opacity:1;pointer-events:auto}
.abkq-modal-backdrop{position:absolute;inset:0;background:rgba(0,0,0,.5)}
.abkq-modal-box{position:relative;background:#fff;border-radius:16px;padding:24px;max-width:520px;width:92%;box-shadow:0 10px 40px rgba(0,0,0,.2)}
.abkq-modal-title{font-size:22px;font-weight:800;margin-bottom:6px;text-align:center}
.abkq-modal-desc{opacity:.8;margin-bottom:16px;text-align:center}
.abkq-modal-actions{display:flex;gap:12px;justify-content:center}
.abkq-result{max-width:700px;margin:24px auto}
.abkq-result-title{text-align:center;font-size:28px;margin:6px 0 14px}
.abkq-result-row{display:flex;align-items:center;justify-content:space-between;background:#fff;border:1px solid #e5e7eb;border-radius:12px;padding:12px 16px;margin:10px 0}
.abkq-rlabel{font-weight:600}
.abkq-rval{font-weight:800;color:#b91c1c}
.abkq-result-actions{display:flex;gap:12px;justify-content:center;margin:18px 0}
.abkq-review-head{display:flex;gap:12px;justify-content:center;margin:12px 0}
.abkq-review{display:grid;gap:16px;max-width:900px;margin:0 auto}
.abkq-review-item{background:#fff;border:1px solid #e5e7eb;border-radius:12px;padding:12px 14px}
.abkq-rq{font-weight:800;margin-bottom:6px}
.abkq-rline{margin:6px 0}
.abkq-chip{display:inline-block;padding:4px 8px;border-radius:6px;border:1px solid #e5e7eb;background:#f8fafc}
.abkq-chip.ok{border-color:#16a34a;background:#ecfdf5}
.abkq-chip.bad{border-color:#dc2626;background:#fef2f2}
/* Tô các nút hành động ở màn XEM ĐÁP ÁN & KẾT QUẢ giống "LÊN ĐẦU" */
.abkq-results .abkq-actions .abkq-btn,
.abkq-result-actions .abkq-btn,
.abkq-answers .abkq-actions .abkq-btn,
.abkq-answer-actions .abkq-btn,
.abkq-view-answers .abkq-actions .abkq-btn,
.abkq-view-result  .abkq-actions .abkq-btn {
  background: #b91c1c !important;   /* đỏ đặc */
  color: #fff !important;
  border-color: #b91c1c !important;
  box-shadow: 0 2px 0 rgba(0,0,0,.04);
}
.abkq-results .abkq-actions .abkq-btn:hover,
.abkq-result-actions .abkq-btn:hover,
.abkq-answers .abkq-actions .abkq-btn:hover,
.abkq-answer-actions .abkq-btn:hover,
.abkq-view-answers .abkq-actions .abkq-btn:hover,
.abkq-view-result  .abkq-actions .abkq-btn:hover {
  background: #991b1b !important;
  border-color: #991b1b !important;
}

/* Nếu nút có class "ghost" thì vẫn ép thành đỏ */
.abkq-actions .abkq-btn.ghost {
  background: #b91c1c !important;
  color: #fff !important;
  border-color: #b91c1c !important;
}

