/* ===== الخبرات الذكية — account, subscribe, learning, certificate ===== */
@font-face { font-family: 'Aref Ruqaa'; src: url('fonts/ArefRuqaa-Bold.woff2') format('woff2'); font-weight: 400 700; font-display: swap; }
.kh-app { padding: 40px 0 72px; min-height: 60vh; }
.kh-app h1 { font-size: 28px; }
.kh-i { flex: 0 0 auto; vertical-align: middle; }
.kh-center { text-align: center; }
.kh-muted { color: var(--muted, #4A5565); }
.kh-num { font-variant-numeric: tabular-nums; }

/* Alerts */
.kh-alert { border-radius: 12px; padding: 12px 16px; margin: 0 0 18px; font-size: 15px; border: 1px solid; }
.kh-alert ul { margin: 0; padding: 0 18px 0 0; }
.kh-alert-ok { background: #E8F5EE; border-color: #B7DFC8; color: #12613A; }
.kh-alert-info { background: #EAF2FB; border-color: #BFD5EE; color: #1D4F86; }
.kh-alert-err { background: #FDECEC; border-color: #F3C2C2; color: #9B1C1C; }

/* Forms */
.kh-form { display: flex; flex-direction: column; gap: 16px; }
.kh-f { display: flex; flex-direction: column; gap: 6px; }
.kh-f label { font-weight: 700; font-size: 14px; }
.kh-f input, .kh-f select, .kh-f textarea { width: 100%; min-height: 48px; padding: 11px 14px; border: 1.5px solid var(--line, #E3E7EC); border-radius: 10px; background: #fff; font-size: 16px; transition: border-color .2s, box-shadow .2s; }
.kh-f textarea { min-height: 0; }
.kh-f input:focus, .kh-f select:focus, .kh-f textarea:focus { outline: none; border-color: var(--teal, #0B6B66); box-shadow: 0 0 0 4px rgba(11,107,102,.12); }
.kh-f input:disabled { background: #F2F4F6; color: #6B7684; }
.kh-f input[type=file] { padding: 9px; font-size: 14px; }
.kh-hint { font-size: 13px; color: var(--muted, #4A5565); }
.kh-code { font-size: 26px !important; letter-spacing: 12px; text-align: center; font-weight: 800; }
.kh-phone { display: grid; grid-template-columns: 150px 1fr; gap: 8px; }
.kh-phone select { padding-inline: 8px; }
.kh-grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.kh-row { display: flex; justify-content: space-between; align-items: center; gap: 12px; font-size: 14px; }
.kh-check { display: inline-flex; align-items: center; gap: 8px; cursor: pointer; }
.kh-check input { width: 18px; height: 18px; accent-color: var(--teal, #0B6B66); }
.kh-link { background: none; border: 0; padding: 0; color: var(--teal, #0B6B66); font-weight: 700; cursor: pointer; text-decoration: underline; }

/* Auth card */
.kh-auth { display: flex; justify-content: center; }
.kh-auth-card { width: 100%; max-width: 460px; background: #fff; border: 1px solid var(--line, #E3E7EC); border-radius: 20px; padding: 36px 32px; box-shadow: 0 18px 50px -24px rgba(16,33,58,.25); }
.kh-auth-logo { display: block; height: 58px; width: auto; margin: 0 auto 18px; }
.kh-auth-card h1 { text-align: center; font-size: 24px; margin-bottom: 6px; }
.kh-auth-sub { text-align: center; color: var(--muted, #4A5565); margin: 0 0 22px; }
.kh-auth-alt { text-align: center; font-size: 14px; color: var(--muted, #4A5565); margin: 18px 0 0; }
.kh-google { display: flex; align-items: center; justify-content: center; gap: 10px; min-height: 48px; border: 1.5px solid var(--line, #E3E7EC); border-radius: 10px; color: var(--ink, #10213A); font-weight: 700; background: #fff; transition: background .2s, border-color .2s; }
.kh-google:hover { background: #F6F7F9; border-color: #CFD6DE; color: var(--ink, #10213A); }
.kh-or { display: flex; align-items: center; gap: 12px; color: #8A94A3; font-size: 13px; margin: 18px 0; }
.kh-or::before, .kh-or::after { content: ""; flex: 1; height: 1px; background: var(--line, #E3E7EC); }

/* Apply tabs */
.kh-apply-tabs { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; background: #F2F4F6; padding: 5px; border-radius: 12px; margin-bottom: 20px; }
.kh-apply-tabs a { text-align: center; padding: 9px; border-radius: 9px; font-weight: 700; color: var(--muted, #4A5565); }
.kh-apply-tabs a.on { background: #fff; color: var(--teal, #0B6B66); box-shadow: 0 2px 8px -4px rgba(16,33,58,.3); }

/* Badges / status */
.kh-app .kh-badge { display: inline-block; background: #FFF4D6; color: #8A5A00; font-size: 13px; font-weight: 700; padding: 4px 12px; border-radius: 999px; margin-bottom: 10px; }
.kh-st { display: inline-block; font-size: 12px; font-weight: 700; padding: 3px 10px; border-radius: 999px; white-space: nowrap; }
.kh-st-active { background: #E3F4EA; color: #146C3E; }
.kh-st-pending { background: #FFF4D6; color: #8A5A00; }
.kh-st-rejected { background: #FDECEC; color: #9B1C1C; }
.kh-bar { height: 8px; background: #E9EDF1; border-radius: 99px; overflow: hidden; }
.kh-bar i { display: block; height: 100%; background: linear-gradient(90deg, var(--teal, #0B6B66), #16A79F); border-radius: 99px; transition: width .6s var(--ease, ease); }
.kh-note { display: flex; gap: 14px; align-items: flex-start; background: #F3F8F8; border: 1px solid #CFE5E3; border-radius: 14px; padding: 16px 18px; margin: 18px 0; }
.kh-note > .kh-i { color: var(--teal, #0B6B66); margin-top: 3px; width: 22px; height: 22px; }
.kh-note p { margin: 4px 0 0; color: var(--muted, #4A5565); font-size: 14px; }
.kh-note > div { flex: 1; }
.kh-note .kh-btn { align-self: center; }
.kh-note-wait { background: #FFFAEB; border-color: #F5DFA3; }
.kh-note-wait > .kh-i { color: #B7791F; }
.kh-dl { display: grid; grid-template-columns: auto 1fr; gap: 8px 18px; margin: 16px 0; font-size: 15px; }
.kh-dl dt { color: var(--muted, #4A5565); }
.kh-dl dd { margin: 0; font-weight: 700; }

/* Subscribe */
.kh-sub-head { margin-bottom: 24px; }
.kh-sub-head a { font-size: 14px; font-weight: 700; }
.kh-sub-head h1 { margin-top: 8px; }
.kh-sub-grid { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 28px; align-items: start; }
.kh-sub-form, .kh-sub-state { background: #fff; border: 1px solid var(--line, #E3E7EC); border-radius: 20px; padding: 28px; }
.kh-sub-form fieldset { border: 0; padding: 0; margin: 0 0 6px; display: flex; flex-direction: column; gap: 16px; }
.kh-sub-form legend { display: flex; align-items: center; gap: 10px; font-size: 18px; font-weight: 800; margin-bottom: 14px; padding: 0; }
.kh-sub-form legend i { font-style: normal; width: 30px; height: 30px; border-radius: 9px; background: var(--teal, #0B6B66); color: #fff; display: inline-flex; align-items: center; justify-content: center; font-size: 15px; }
.kh-sub-form fieldset + fieldset { margin-top: 10px; }
.kh-sub-form fieldset + fieldset legend { border-top: 1px solid var(--line, #E3E7EC); padding-top: 22px; width: 100%; }
.kh-me { margin: 0; background: #F6F7F9; border-radius: 10px; padding: 12px 14px; display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.kh-methods { display: grid; gap: 10px; }
.kh-method { position: relative; display: block; cursor: pointer; }
.kh-method input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.kh-method-in { display: flex; flex-direction: column; gap: 4px; border: 1.5px solid var(--line, #E3E7EC); border-radius: 12px; padding: 14px 16px 14px 44px; background: #fff; transition: border-color .2s, background .2s; position: relative; }
.kh-method-in::after { content: ""; position: absolute; left: 16px; top: 16px; width: 18px; height: 18px; border-radius: 50%; border: 2px solid #C5CDD6; background: #fff; }
.kh-method input:checked + .kh-method-in { border-color: var(--teal, #0B6B66); background: #F3F8F8; }
.kh-method input:checked + .kh-method-in::after { border-color: var(--teal, #0B6B66); box-shadow: inset 0 0 0 4px #fff; background: var(--teal, #0B6B66); }
.kh-method input:focus-visible + .kh-method-in { outline: 3px solid var(--gold, #F2C14E); outline-offset: 2px; }
.kh-method-info { font-size: 14px; color: var(--muted, #4A5565); line-height: 1.8; }
.kh-method-off { opacity: .55; cursor: not-allowed; }
.kh-method-off .kh-method-info { color: #8A5A00; font-weight: 700; }
.kh-amount { margin: 0; font-size: 16px; }
.kh-amount b { color: var(--teal, #0B6B66); font-size: 20px; }
.kh-sub-sum { background: #fff; border: 1px solid var(--line, #E3E7EC); border-radius: 20px; overflow: hidden; position: sticky; top: 100px; }
.kh-sub-thumb { aspect-ratio: 16/9; background: linear-gradient(135deg, var(--c, #0B6B66), var(--navy, #10213A)); position: relative; }
.kh-thumb-ic { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; color: rgba(255,255,255,.85); }
.kh-thumb-ic .kh-i { width: 54px; height: 54px; stroke-width: 1.5; }
.kh-sub-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.kh-sub-thumb span { position: absolute; top: 12px; right: 12px; background: rgba(255,255,255,.95); color: var(--navy, #10213A); font-size: 12px; font-weight: 800; padding: 4px 10px; border-radius: 999px; }
.kh-sub-sum h2 { font-size: 19px; padding: 18px 20px 6px; }
.kh-sub-facts { list-style: none; margin: 0; padding: 4px 20px 12px; display: flex; flex-direction: column; gap: 9px; font-size: 14px; color: var(--muted, #4A5565); }
.kh-sub-facts li { display: flex; gap: 8px; align-items: center; }
.kh-sub-facts .kh-i { color: var(--teal, #0B6B66); }
.kh-sub-price { border-top: 1px solid var(--line, #E3E7EC); padding: 16px 20px; display: flex; align-items: baseline; gap: 10px; }
.kh-sub-price b { font-size: 28px; color: var(--navy, #10213A); font-variant-numeric: tabular-nums; }
.kh-sub-price small { font-size: 14px; color: var(--muted, #4A5565); }
.kh-sub-price s { color: #98A2B0; }
.kh-sub-state { display: flex; flex-direction: column; gap: 12px; }
.kh-sub-state h2 { font-size: 22px; }
.kh-sub-state p { margin: 0; color: var(--muted, #4A5565); }
.kh-sub-state.kh-ok { border-top: 4px solid #2E9D62; }
.kh-sub-state.kh-wait { border-top: 4px solid var(--gold, #F2C14E); }
.kh-sub-state .kh-badge { align-self: flex-start; }

/* Student area */
.kh-student { display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: 28px; align-items: start; }
.kh-st-side { background: #fff; border: 1px solid var(--line, #E3E7EC); border-radius: 18px; padding: 18px; position: sticky; top: 100px; }
.kh-st-me { display: flex; gap: 12px; align-items: center; padding-bottom: 16px; margin-bottom: 10px; border-bottom: 1px solid var(--line, #E3E7EC); }
.kh-st-me b { display: block; font-size: 15px; }
.kh-st-me small { color: var(--muted, #4A5565); font-size: 12px; word-break: break-all; }
.kh-st-av { width: 46px; height: 46px; flex: 0 0 46px; border-radius: 14px; background: linear-gradient(135deg, var(--teal, #0B6B66), var(--navy, #10213A)); color: #fff; display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: 19px; }
.kh-st-side nav { display: flex; flex-direction: column; gap: 4px; }
.kh-st-side nav a { display: flex; align-items: center; gap: 10px; padding: 11px 12px; border-radius: 10px; color: var(--ink, #10213A); font-weight: 700; font-size: 15px; }
.kh-st-side nav a:hover { background: #F3F6F8; }
.kh-st-side nav a.on { background: var(--teal-l, #E6F2F1); color: var(--teal, #0B6B66); }
.kh-st-side nav a:last-child { color: #9B1C1C; margin-top: 6px; }
.kh-st-title { font-size: 26px; margin-bottom: 20px !important; }
.kh-st-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-bottom: 20px; }
.kh-st-stats div { background: #fff; border: 1px solid var(--line, #E3E7EC); border-radius: 16px; padding: 18px; }
.kh-st-stats b { display: block; font-size: 30px; color: var(--teal, #0B6B66); line-height: 1.2; }
.kh-st-stats span { color: var(--muted, #4A5565); font-size: 14px; }
.kh-my-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 18px; }
.kh-my-course { background: #fff; border: 1px solid var(--line, #E3E7EC); border-radius: 18px; overflow: hidden; display: flex; flex-direction: column; transition: transform .25s, box-shadow .25s; }
.kh-my-course:hover { transform: translateY(-4px); box-shadow: 0 18px 40px -24px rgba(16,33,58,.35); }
.kh-my-thumb { aspect-ratio: 16/8; background: linear-gradient(135deg, var(--c, #0B6B66), var(--navy, #10213A)); position: relative; }
.kh-my-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.kh-my-thumb span { position: absolute; bottom: 10px; right: 10px; background: rgba(255,255,255,.95); color: var(--navy, #10213A); font-size: 12px; font-weight: 800; padding: 3px 10px; border-radius: 999px; }
.kh-my-body { padding: 16px 18px 18px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.kh-my-body h3 { font-size: 17px; flex: 1; }
.kh-my-meta { display: flex; justify-content: space-between; font-size: 13px; color: var(--muted, #4A5565); margin: 0; }
.kh-empty-st { background: #fff; border: 1.5px dashed #D3DAE2; border-radius: 18px; padding: 44px 24px; text-align: center; display: flex; flex-direction: column; align-items: center; gap: 8px; }
.kh-empty-st > .kh-i { width: 40px; height: 40px; color: var(--teal, #0B6B66); }
.kh-empty-st b { font-size: 18px; }
.kh-empty-st p { margin: 0 0 8px; color: var(--muted, #4A5565); }
.kh-cert-list { display: flex; flex-direction: column; gap: 12px; }
.kh-cert-item { display: flex; align-items: center; gap: 14px; background: #fff; border: 1px solid var(--line, #E3E7EC); border-radius: 16px; padding: 16px 18px; }
.kh-cert-item > .kh-i { width: 34px; height: 34px; color: var(--gold-d, #B8913A); }
.kh-cert-item > div { flex: 1; }
.kh-cert-item b { display: block; }
.kh-cert-item small { color: var(--muted, #4A5565); }
.kh-orders { padding: 0 !important; overflow-x: auto; }
.kh-orders table { width: 100%; border-collapse: collapse; font-size: 15px; }
.kh-orders th, .kh-orders td { padding: 14px 16px; text-align: right; border-bottom: 1px solid var(--line, #E3E7EC); }
.kh-orders th { background: #F6F7F9; font-size: 13px; color: var(--muted, #4A5565); }
.kh-orders tr:last-child td { border-bottom: 0; }
.kh-student .kh-box { background: #fff; border: 1px solid var(--line, #E3E7EC); border-radius: 18px; padding: 24px; }
.kh-student .kh-box h2 { font-size: 18px; margin-top: 6px; }

/* Learn */
.kh-app:has(.kh-learn) { padding-top: 20px; }
.kh-learn-top { display: flex; align-items: center; gap: 16px; background: var(--navy, #10213A); color: #fff; border-radius: 14px; padding: 12px 18px; margin-bottom: 18px; }
.kh-learn-top a { color: #C9E4E2; font-weight: 700; font-size: 14px; white-space: nowrap; }
.kh-learn-top b { flex: 1; font-size: 16px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.kh-learn-top span { font-size: 13px; color: #C9D3E0; white-space: nowrap; }
.kh-learn-grid { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 22px; align-items: start; }
.kh-player { position: relative; aspect-ratio: 16/9; background: #0A1424; border-radius: 16px; overflow: hidden; }
.kh-player iframe, .kh-player video { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.kh-player-empty { aspect-ratio: 16/9; background: #0E1B30; color: #C9D3E0; border-radius: 16px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; }
.kh-player-empty .kh-i { width: 44px; height: 44px; opacity: .6; }
.kh-lesson-head { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin: 18px 0 10px; }
.kh-lesson-head small { color: var(--teal, #0B6B66); font-weight: 700; font-size: 13px; }
.kh-lesson-head h1 { font-size: 22px; }
.kh-lesson-nav { display: flex; justify-content: space-between; align-items: center; padding: 12px 0; border-top: 1px solid var(--line, #E3E7EC); border-bottom: 1px solid var(--line, #E3E7EC); font-weight: 700; font-size: 14px; }
.kh-curr-link { display: none; }
.kh-learn-side { background: #fff; border: 1px solid var(--line, #E3E7EC); border-radius: 16px; overflow: hidden; position: sticky; top: 96px; max-height: calc(100vh - 120px); overflow-y: auto; }
.kh-learn-prog { padding: 16px 18px; border-bottom: 1px solid var(--line, #E3E7EC); background: #FAFBFC; }
.kh-learn-prog > div:first-child { display: flex; justify-content: space-between; margin-bottom: 8px; font-size: 14px; }
.kh-learn-prog span { color: var(--teal, #0B6B66); font-weight: 800; }
.kh-unit h3 { font-size: 15px; padding: 14px 18px 8px; }
.kh-unit h3 small { display: block; color: var(--muted, #4A5565); font-weight: 400; font-size: 12px; }
.kh-unit ol { list-style: none; margin: 0 0 8px; padding: 0; }
.kh-unit li > a, .kh-unit li > span { display: flex; align-items: center; gap: 10px; padding: 10px 18px; color: var(--ink, #10213A); font-size: 14px; border-right: 3px solid transparent; }
.kh-unit li > a:hover { background: #F6F8FA; }
.kh-unit li.on > a { background: var(--teal-l, #E6F2F1); border-right-color: var(--teal, #0B6B66); font-weight: 700; }
.kh-li-ic { width: 26px; height: 26px; flex: 0 0 26px; border-radius: 50%; background: #EEF1F4; display: flex; align-items: center; justify-content: center; color: #6B7684; }
.kh-li-ic .kh-i { width: 14px; height: 14px; }
.kh-unit li.done .kh-li-ic { background: #2E9D62; color: #fff; }
.kh-unit li.on .kh-li-ic { background: var(--teal, #0B6B66); color: #fff; }
.kh-unit li.locked > span { color: #98A2B0; cursor: not-allowed; }
.kh-li-t { flex: 1; }
.kh-li-d { font-size: 12px; color: #8A94A3; font-variant-numeric: tabular-nums; }
.kh-live-box { display: flex; align-items: center; gap: 14px; background: linear-gradient(135deg, var(--navy, #10213A), #1A3050); color: #fff; border-radius: 16px; padding: 16px 18px; margin-bottom: 16px; }
.kh-live-box > div:nth-child(2) { flex: 1; }
.kh-live-box p { margin: 2px 0 0; color: #C9D3E0; font-size: 14px; }
.kh-live-ic { width: 42px; height: 42px; border-radius: 12px; background: rgba(242,193,78,.18); color: var(--gold, #F2C14E); display: flex; align-items: center; justify-content: center; }
.kh-live-box .kh-muted { color: #C9D3E0; font-size: 13px; }
.kh-cert-cta { display: flex; align-items: center; gap: 14px; background: #fff; border: 1px solid var(--line, #E3E7EC); border-radius: 16px; padding: 16px 18px; margin-top: 18px; }
.kh-cert-cta > .kh-i { width: 34px; height: 34px; color: #A0A9B5; }
.kh-cert-cta > div { flex: 1; }
.kh-cert-cta p { margin: 2px 0 0; font-size: 14px; color: var(--muted, #4A5565); }
.kh-cert-cta.ready { background: #FFFAEB; border-color: #F5DFA3; }
.kh-cert-cta.ready > .kh-i { color: var(--gold-d, #B8913A); }
.kh-lock-page { max-width: 560px; margin: 0 auto; }
.kh-lock-page .kh-box { background: #fff; border: 1px solid var(--line, #E3E7EC); border-radius: 20px; padding: 40px 28px; display: flex; flex-direction: column; align-items: center; gap: 10px; }
.kh-lock-page .kh-box > .kh-i { width: 44px; height: 44px; color: var(--teal, #0B6B66); }
.kh-lock-page p { margin: 0; color: var(--muted, #4A5565); }

/* Certificate */
.kh-cert-page { max-width: 1123px; margin: 0 auto; }
.kh-cert-bar { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; margin-bottom: 18px; }
.kh-cert-bar b { display: block; font-size: 18px; }
.kh-cert-bar small { color: var(--muted, #4A5565); }
.kh-cert-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.kh-verified { display: inline-flex; align-items: center; gap: 6px; background: #E3F4EA; color: #146C3E; font-weight: 800; padding: 10px 16px; border-radius: 10px; }
.kh-cert-scale { width: 100%; aspect-ratio: 297/210; position: relative; overflow: hidden; border-radius: 6px; box-shadow: 0 24px 60px -28px rgba(16,33,58,.45); }
.kh-cert { position: absolute; top: 0; right: 0; width: 1123px; height: 794px; transform-origin: top right; transform: scale(var(--s, 1)); background: #fff; color: var(--cc, #10213A); font-family: 'Almarai', sans-serif; overflow: hidden; direction: rtl; }
.kh-cert-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.kh-cert-name, .kh-cert-course, .kh-cert-meta, .kh-cert-title, .kh-cert-pre { position: absolute; left: 8%; right: 8%; text-align: center; transform: translateY(-50%); }
.kh-cert-name { font-family: 'Aref Ruqaa', 'Amiri', 'Almarai', serif; font-size: 52px; font-weight: 700; line-height: 1.3; }
.kh-cert-course { font-size: 28px; font-weight: 800; }
.kh-cert-meta { font-size: 18px; display: flex; justify-content: center; gap: 28px; opacity: .85; }
.kh-cert-qr { position: absolute; width: 112px; text-align: center; }
.kh-qr { width: 112px; height: 112px; background: #fff; padding: 6px; border-radius: 6px; }
.kh-qr svg { width: 100%; height: 100%; display: block; }
.kh-cert-qr small { display: block; font-size: 11px; font-weight: 700; margin-top: 4px; letter-spacing: .5px; }
/* Default design (when no background is uploaded) */
.kh-cert-default { background: radial-gradient(ellipse at 50% 0%, #FFFDF6 0%, #fff 60%); }
.kh-cert-frame { position: absolute; inset: 26px; border: 2px solid var(--gold, #F2C14E); }
.kh-cert-frame::after { content: ""; position: absolute; inset: 8px; border: 1px solid rgba(16,33,58,.25); }
.kh-cert-corner { position: absolute; width: 90px; height: 90px; border-color: #0B6B66; border-style: solid; }
.kh-tl { top: 14px; left: 14px; border-width: 6px 0 0 6px; } .kh-tr { top: 14px; right: 14px; border-width: 6px 6px 0 0; }
.kh-bl { bottom: 14px; left: 14px; border-width: 0 0 6px 6px; } .kh-br { bottom: 14px; right: 14px; border-width: 0 6px 6px 0; }
.kh-cert-top { position: absolute; top: 58px; left: 0; right: 0; display: flex; justify-content: center; align-items: center; gap: 14px; font-size: 18px; }
.kh-cert-top img { height: 64px; width: auto; }
.kh-cert-title { font-family: 'Aref Ruqaa', 'Amiri', serif; font-size: 58px; color: #0B6B66; }
.kh-cert-pre { font-size: 19px; opacity: .8; }
.kh-cert-sign { position: absolute; bottom: 74px; right: 110px; width: 220px; text-align: center; font-size: 15px; }
.kh-cert-sign span { display: block; border-top: 1.5px solid currentColor; margin-bottom: 6px; opacity: .6; }
.kh-verify-ok { display: flex; align-items: center; justify-content: center; gap: 8px; background: #E3F4EA; color: #146C3E; font-size: 20px; border-radius: 12px; padding: 14px; }
.kh-verify-ok .kh-i { width: 26px; height: 26px; }
.kh-verify-dl { background: #F6F7F9; border-radius: 12px; padding: 16px; }
.kh-verify-form { margin-top: 20px; }

@media print {
	@page { size: A4 landscape; margin: 0; }
	html, body { background: #fff !important; margin: 0 !important; padding: 0 !important; }
	body.kh-printing > *:not(main), body.kh-printing #wpadminbar, .kh-header, .kh-footer, .no-print { display: none !important; }
	body.kh-printing main > *:not(.kh-app), body.kh-printing .kh-app .kh-container > *:not(.kh-cert-page) { display: none !important; }
	.kh-app { padding: 0 !important; min-height: 0 !important; }
	.kh-app .kh-container { max-width: none !important; padding: 0 !important; }
	.kh-cert-page { max-width: none; margin: 0; }
	.kh-cert-scale { width: 297mm !important; height: 209mm !important; aspect-ratio: auto; box-shadow: none; border-radius: 0; overflow: hidden; page-break-after: avoid; break-after: avoid; }
	.kh-cert { transform: none !important; width: 297mm !important; height: 209mm !important; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
}

@media (max-width: 1000px) {
	.kh-sub-grid, .kh-learn-grid, .kh-student { grid-template-columns: 1fr; }
	.kh-sub-sum { position: static; order: -1; }
	.kh-learn-side, .kh-st-side { position: static; max-height: none; }
	.kh-curr-link { display: inline; }
	.kh-st-side nav { flex-direction: row; overflow-x: auto; }
	.kh-st-side nav a { white-space: nowrap; }
	.kh-st-me { display: none; }
}
@media (max-width: 600px) {
	.kh-app { padding: 24px 0 56px; }
	.kh-auth-card, .kh-sub-form, .kh-sub-state { padding: 24px 18px; border-radius: 16px; }
	.kh-grid2 { grid-template-columns: 1fr; }
	.kh-phone { grid-template-columns: 120px 1fr; }
	.kh-lesson-head { flex-direction: column; align-items: stretch; }
	.kh-lesson-head .kh-btn { width: 100%; }
	.kh-st-stats { grid-template-columns: repeat(3, 1fr); gap: 8px; }
	.kh-st-stats div { padding: 12px; }
	.kh-st-stats b { font-size: 22px; }
	.kh-note { flex-wrap: wrap; }
	.kh-cert-cta { flex-wrap: wrap; }
	.kh-cert-cta .kh-btn { width: 100%; }
	.kh-learn-top b { display: none; }
	.kh-learn-top { justify-content: space-between; }
}

/* Notifications bell */
.kh-actions { align-items: center; }
.kh-bell-wrap { position: relative; }
.kh-bell { width: 46px; height: 46px; border-radius: 13px; border: 1.5px solid var(--line, #E3E7EC); background: #fff; color: var(--ink, #10213A); display: inline-flex; align-items: center; justify-content: center; position: relative; cursor: pointer; transition: border-color .2s, background .2s; }
.kh-bell:hover, .kh-bell[aria-expanded="true"] { border-color: var(--teal, #0B6B66); background: #F3FAF9; color: var(--teal, #0B6B66); }
.kh-bell-n { position: absolute; top: -6px; left: -6px; background: #D64545; color: #fff; font-size: 12px; font-weight: 800; min-width: 22px; height: 22px; border-radius: 99px; display: flex; align-items: center; justify-content: center; border: 2px solid #fff; padding: 0 4px; }
.kh-bell.has svg { animation: khRing 1.2s ease-in-out 2; transform-origin: top center; }
@keyframes khRing { 0%,100% { transform: rotate(0); } 20% { transform: rotate(14deg); } 40% { transform: rotate(-12deg); } 60% { transform: rotate(8deg); } 80% { transform: rotate(-5deg); } }
.kh-bell-dd { position: absolute; top: 58px; left: -20px; width: 380px; max-width: calc(100vw - 24px); background: #fff; border: 1px solid var(--line, #E3E7EC); border-radius: 18px; box-shadow: 0 30px 60px -20px rgba(16,33,58,.35); z-index: 60; overflow: hidden; }
.kh-bell-dd[hidden] { display: none; }
.kh-bell-h { display: flex; justify-content: space-between; align-items: center; padding: 14px 18px; border-bottom: 1px solid var(--line, #E3E7EC); }
.kh-bell-h b { font-size: 16px; }
.kh-bell-h .kh-link { font-size: 13px; text-decoration: none; }
.kh-nitem { display: flex; gap: 12px; padding: 13px 18px; border-bottom: 1px solid #F0F2F5; color: var(--ink, #10213A); position: relative; transition: background .2s; }
.kh-nitem:hover { background: #F7FAFA; color: var(--ink, #10213A); }
.kh-nitem.new { background: #F5FBFA; }
.kh-nitem.new::after { content: ""; position: absolute; left: 18px; top: 20px; width: 9px; height: 9px; border-radius: 50%; background: var(--teal, #0B6B66); }
.kh-ni { width: 40px; height: 40px; border-radius: 12px; display: flex; align-items: center; justify-content: center; flex: 0 0 40px; }
.kh-ni .kh-i { width: 20px; height: 20px; }
.kh-nt { flex: 1; min-width: 0; padding-left: 14px; }
.kh-nt b { display: block; font-size: 14px; line-height: 1.5; }
.kh-nt span { display: block; color: var(--muted, #4A5565); font-size: 13px; line-height: 1.6; }
.kh-nt small { color: #98A2B0; font-size: 12px; }
.kh-bell-empty { padding: 26px 18px; text-align: center; color: var(--muted, #4A5565); }
.kh-bell-all { display: block; text-align: center; padding: 12px; font-weight: 800; background: #FAFBFC; }
.kh-notif-list { background: #fff; border: 1px solid var(--line, #E3E7EC); border-radius: 18px; overflow: hidden; }
.kh-notif-list .kh-nitem:last-child { border-bottom: 0; }
.kh-notif-actions { display: flex; justify-content: flex-end; margin-bottom: 12px; }
.kh-st-badge { font-style: normal; margin-right: auto; background: #D64545; color: #fff; font-size: 11px; font-weight: 800; min-width: 20px; height: 20px; border-radius: 99px; display: inline-flex; align-items: center; justify-content: center; padding: 0 6px; }
@media (max-width: 960px) {
	.kh-bell-dd { position: static; width: 100%; margin-top: 10px; box-shadow: none; }
	.kh-actions .kh-bell-wrap { align-self: flex-start; }
}
@media (prefers-reduced-motion: reduce) { .kh-bell.has svg { animation: none; } }
