/* Bikiron Mock Tests */
.bkmt {
	--bk-navy: #13213c;
	--bk-navy2: #1f3360;
	--bk-yellow: #f6c90e;
	--bk-ink: #1d2433;
	--bk-muted: #5b6475;
	--bk-line: #dfe3ea;
	--bk-bg: #f6f7fa;
	--bk-ok: #1e9e5a;
	--bk-bad: #d93a3a;
	--bk-mark: #6b46c1;
	--bk-nv: #e7e9ee;
	color: var(--bk-ink);
	font-size: 16px;
	line-height: 1.5;
	box-sizing: border-box;
}
.bkmt *, .bkmt *::before, .bkmt *::after { box-sizing: border-box; }
.bkmt-box { background: #fff; border: 1px solid var(--bk-line); border-radius: 14px; padding: 24px; margin: 0 0 20px; }
.bkmt-center { text-align: center; }
.bkmt .bkmt-h { margin: 6px 0 14px; font-size: 26px; line-height: 1.25; color: var(--bk-ink); }
.bkmt .bkmt-h3 { margin: 18px 0 10px; font-size: 19px; color: var(--bk-ink); }
.bkmt-tag { display: inline-block; background: #fff5cc; color: #7a5b00; border-radius: 999px; padding: 2px 12px; font-size: 13px; font-weight: 600; }
.bkmt-empty, .bkmt-note { color: var(--bk-muted); }
.bkmt-err { color: var(--bk-bad); font-weight: 600; }

/* Buttons */
.bkmt .bkmt-btn {
	display: inline-flex; align-items: center; justify-content: center; gap: 6px;
	font: inherit; font-size: 15px; font-weight: 600; line-height: 1.2;
	padding: 11px 20px; border-radius: 10px; border: 2px solid transparent;
	cursor: pointer; text-decoration: none; transition: filter .15s, background .15s;
	min-height: 44px; white-space: nowrap;
}
.bkmt .bkmt-btn:disabled { opacity: .45; cursor: not-allowed; }
.bkmt .bkmt-primary { background: var(--bk-navy); color: #fff; }
.bkmt .bkmt-primary:hover { background: var(--bk-navy2); color: #fff; }
.bkmt .bkmt-ghost { background: #fff; color: var(--bk-navy); border-color: var(--bk-line); }
.bkmt .bkmt-ghost:hover { border-color: var(--bk-navy); color: var(--bk-navy); }
.bkmt .bkmt-mark { background: #f1ebff; color: var(--bk-mark); border-color: #ddd0ff; }
.bkmt .bkmt-submit { background: var(--bk-yellow); color: var(--bk-navy); }
.bkmt .bkmt-submit:hover { filter: brightness(.95); }
.bkmt-row { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.bkmt-center .bkmt-row { justify-content: center; }

/* Facts */
.bkmt .bkmt-facts { list-style: none; margin: 14px 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(110px, 1fr)); gap: 10px; }
.bkmt .bkmt-facts li { background: var(--bk-bg); border-radius: 10px; padding: 12px; text-align: center; margin: 0; }
.bkmt .bkmt-facts strong { display: block; font-size: 22px; color: var(--bk-navy); }
.bkmt .bkmt-facts span { font-size: 13px; color: var(--bk-muted); }
.bkmt .bkmt-facts li.is-ok strong { color: var(--bk-ok); }
.bkmt .bkmt-facts li.is-bad strong { color: var(--bk-bad); }

/* Test list */
.bkmt-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 18px; }
.bkmt-card { background: #fff; border: 1px solid var(--bk-line); border-radius: 14px; padding: 20px; display: flex; flex-direction: column; gap: 8px; }
.bkmt-card h3 { margin: 4px 0 0; font-size: 19px; line-height: 1.3; }
.bkmt-card p { margin: 0; color: var(--bk-muted); font-size: 14px; }
.bkmt .bkmt-meta { list-style: none; margin: 4px 0 8px; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.bkmt .bkmt-meta li { margin: 0; background: var(--bk-bg); border-radius: 6px; padding: 2px 8px; font-size: 13px; color: var(--bk-muted); }
.bkmt-card .bkmt-btn { margin-top: auto; }

/* Intro */
.bkmt-intro { max-width: 760px; margin-left: auto; margin-right: auto; }
.bkmt .bkmt-rules { margin: 0 0 14px 20px; padding: 0; }
.bkmt .bkmt-rules li { margin: 4px 0; }
.bkmt-agree { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; cursor: pointer; }
.bkmt-agree input { width: 18px; height: 18px; }
.bkmt-shake { animation: bkmt-shake .4s; color: var(--bk-bad); }
@keyframes bkmt-shake { 25% { transform: translateX(-6px); } 75% { transform: translateX(6px); } }

/* Exam */
.bkmt-exam { width: min(1200px, calc(100vw - 32px)); margin-left: 50%; transform: translateX(-50%); }
.bkmt-top {
	position: sticky; top: 0; z-index: 20; display: flex; align-items: center; gap: 12px;
	background: var(--bk-navy); color: #fff; border-radius: 14px 14px 0 0; padding: 10px 14px;
}
.admin-bar .bkmt-top { top: 32px; }
@media (max-width: 782px) { .admin-bar .bkmt-top { top: 0; } }
.bkmt-ttl { flex: 1; font-weight: 700; font-size: 16px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bkmt-timer { font-variant-numeric: tabular-nums; font-weight: 700; font-size: 18px; background: rgba(255,255,255,.12); padding: 6px 12px; border-radius: 8px; }
.bkmt-timer.is-low { background: var(--bk-bad); animation: bkmt-pulse 1s infinite; }
@keyframes bkmt-pulse { 50% { opacity: .75; } }
.bkmt-body { display: grid; grid-template-columns: 1fr 300px; border: 1px solid var(--bk-line); border-top: 0; border-radius: 0 0 14px 14px; background: #fff; }
.bkmt-main { padding: 20px 22px; min-width: 0; }
.bkmt-side { border-left: 1px solid var(--bk-line); background: var(--bk-bg); padding: 16px; border-radius: 0 0 14px 0; }
.bkmt-qhead { display: flex; justify-content: space-between; align-items: center; border-bottom: 1px solid var(--bk-line); padding-bottom: 10px; margin-bottom: 14px; }
.bkmt-qno { font-weight: 700; color: var(--bk-navy); }
.bkmt-scheme { font-size: 13px; color: var(--bk-muted); white-space: pre; }
.bkmt-q { font-size: 18px; font-weight: 500; white-space: pre-line; margin-bottom: 16px; overflow-wrap: anywhere; }
.bkmt-opts { display: grid; gap: 10px; }
.bkmt-opt { display: flex; align-items: center; gap: 12px; border: 2px solid var(--bk-line); border-radius: 12px; padding: 12px 14px; cursor: pointer; transition: border-color .15s, background .15s; margin: 0; }
.bkmt-opt:hover { border-color: #b8c2d6; }
.bkmt-opt.is-sel { border-color: var(--bk-navy); background: #eef2fb; }
.bkmt-opt input { position: absolute; opacity: 0; pointer-events: none; }
.bkmt-let { flex: none; width: 30px; height: 30px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; font-weight: 700; font-size: 14px; background: var(--bk-bg); color: var(--bk-navy); }
.bkmt-opt.is-sel .bkmt-let { background: var(--bk-navy); color: #fff; }
.bkmt-otxt { flex: 1; overflow-wrap: anywhere; }
.bkmt-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; padding-top: 16px; border-top: 1px solid var(--bk-line); }
.bkmt-actions .bkmt-primary { margin-left: auto; }

/* Palette */
.bkmt-legend { display: grid; grid-template-columns: 1fr 1fr; gap: 8px 10px; font-size: 12px; color: var(--bk-muted); margin-bottom: 14px; }
.bkmt-lg { display: flex; align-items: center; gap: 6px; }
.bkmt-lg .bkmt-p { width: 28px; height: 28px; font-size: 12px; cursor: default; }
.bkmt-ptitle { font-weight: 700; margin-bottom: 8px; }
.bkmt-pal { display: grid; grid-template-columns: repeat(auto-fill, minmax(40px, 1fr)); gap: 8px; max-height: 420px; overflow: auto; padding: 2px; }
.bkmt .bkmt-p {
	display: inline-flex; align-items: center; justify-content: center; width: 100%; aspect-ratio: 1; min-height: 36px;
	border: 0; border-radius: 8px; font: inherit; font-size: 14px; font-weight: 700; cursor: pointer; padding: 0;
	background: var(--bk-nv); color: var(--bk-ink); position: relative;
}
.bkmt .bkmt-p.s-an { background: var(--bk-ok); color: #fff; }
.bkmt .bkmt-p.s-na { background: var(--bk-bad); color: #fff; }
.bkmt .bkmt-p.s-mk { background: var(--bk-mark); color: #fff; border-radius: 50%; }
.bkmt .bkmt-p.s-am { background: var(--bk-mark); color: #fff; border-radius: 50%; }
.bkmt .bkmt-p.s-am::after { content: ''; position: absolute; right: 1px; bottom: 1px; width: 10px; height: 10px; border-radius: 50%; background: var(--bk-ok); border: 2px solid #fff; }
.bkmt .bkmt-p.is-cur { outline: 3px solid var(--bk-yellow); outline-offset: 1px; }

/* Modal */
.bkmt-modal { position: fixed; inset: 0; z-index: 99999; background: rgba(10, 18, 35, .55); display: flex; align-items: center; justify-content: center; padding: 16px; }
.bkmt-modal .bkmt-box { max-width: 460px; width: 100%; margin: 0; box-shadow: 0 20px 50px rgba(0,0,0,.25); }
.bkmt-modal .bkmt-row { justify-content: flex-end; }

/* Spinner */
.bkmt-spin { width: 38px; height: 38px; margin: 10px auto; border: 4px solid var(--bk-line); border-top-color: var(--bk-navy); border-radius: 50%; animation: bkmt-rot .8s linear infinite; }
@keyframes bkmt-rot { to { transform: rotate(360deg); } }

/* Result */
.bkmt-score { text-align: center; }
.bkmt-score .bkmt-row { justify-content: center; }
.bkmt-big { margin: 4px 0 6px; color: var(--bk-muted); font-size: 22px; }
.bkmt-big strong { font-size: 52px; color: var(--bk-navy); line-height: 1; }
.bkmt-tabs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; }
.bkmt .bkmt-tab { font: inherit; font-size: 14px; font-weight: 600; padding: 6px 14px; border-radius: 999px; border: 1px solid var(--bk-line); background: #fff; color: var(--bk-ink); cursor: pointer; }
.bkmt .bkmt-tab.is-on { background: var(--bk-navy); border-color: var(--bk-navy); color: #fff; }
.bkmt-ritem { border: 1px solid var(--bk-line); border-left: 5px solid var(--bk-nv); border-radius: 10px; padding: 14px 16px; margin-bottom: 12px; }
.bkmt-ritem.is-correct { border-left-color: var(--bk-ok); }
.bkmt-ritem.is-wrong { border-left-color: var(--bk-bad); }
.bkmt-ritem .bkmt-q { font-size: 16px; margin: 6px 0 10px; }
.bkmt-rhead { display: flex; align-items: center; gap: 10px; }
.bkmt-rno { font-weight: 700; color: var(--bk-navy); }
.bkmt-badge { font-size: 12px; font-weight: 700; padding: 2px 10px; border-radius: 999px; background: var(--bk-nv); color: var(--bk-muted); }
.bkmt-badge.b-correct { background: #e3f6ec; color: var(--bk-ok); }
.bkmt-badge.b-wrong { background: #fde8e8; color: var(--bk-bad); }
.bkmt-ropts { display: grid; gap: 6px; }
.bkmt-ropt { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 8px; background: var(--bk-bg); }
.bkmt-ropt .bkmt-let { width: 26px; height: 26px; background: #fff; }
.bkmt-ropt.is-right { background: #e3f6ec; }
.bkmt-ropt.is-right .bkmt-let { background: var(--bk-ok); color: #fff; }
.bkmt-ropt.is-wrong { background: #fde8e8; }
.bkmt-ropt.is-wrong .bkmt-let { background: var(--bk-bad); color: #fff; }
.bkmt-you { font-size: 12px; color: var(--bk-muted); font-style: normal; font-weight: 600; }
.bkmt-exp { margin-top: 10px; background: #fffbea; border-radius: 8px; padding: 10px 12px; font-size: 15px; white-space: pre-line; }

/* Results table */
.bkmt-tablewrap { overflow-x: auto; }
.bkmt .bkmt-table { width: 100%; border-collapse: collapse; font-size: 15px; margin: 0; }
.bkmt .bkmt-table th, .bkmt .bkmt-table td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--bk-line); white-space: nowrap; }
.bkmt .bkmt-table th { background: var(--bk-bg); font-size: 13px; color: var(--bk-muted); }

/* Mobile */
@media (max-width: 860px) {
	.bkmt-body { grid-template-columns: 1fr; }
	.bkmt-side { border-left: 0; border-top: 1px solid var(--bk-line); border-radius: 0 0 14px 14px; }
	.bkmt-pal { max-height: none; grid-template-columns: repeat(auto-fill, minmax(38px, 1fr)); }
	.bkmt-main { padding: 16px; }
	.bkmt-q { font-size: 17px; }
	.bkmt-actions .bkmt-btn { flex: 1 1 calc(50% - 10px); }
	.bkmt-actions .bkmt-primary { margin-left: 0; }
	.bkmt-box { padding: 18px; }
	.bkmt-ttl { font-size: 14px; }
	.bkmt-timer { font-size: 16px; }
	.bkmt .bkmt-submit { padding: 8px 14px; min-height: 38px; }
}

.bkmt-card .bkmt-tag, .bkmt-score .bkmt-tag { align-self: flex-start; }
.bkmt-score .bkmt-tag { align-self: center; }
.bkmt .bkmt-lg .bkmt-p { width: 28px; height: 28px; min-height: 0; aspect-ratio: auto; flex: none; }
.bkmt .bkmt-lg .bkmt-p.s-mk, .bkmt .bkmt-lg .bkmt-p.s-am { border-radius: 50%; }
