/* kh2 — the approved «ذكاء اصطناعي» design (owner, 31 Oct 2026 22:29) on every page of the CV site: living point-cloud
   background (assets/kh2/bg.js), dark smoked-glass panels, gold accents, Hayah above the music bars in the bottom corner.
   Loaded last in <head> of each page together with class="kh2" on <html>, so it overrides each page's own light colours. */
html.kh2{--bg:#070A22;--paper:rgba(24,31,78,.62);--ink:#EEF1FF;--muted:#AEB6DD;--line:rgba(255,255,255,.14);
  --brand:#F5C430;--brand-ink:#12172F;--brand-soft:rgba(127,140,255,.16);--amber:#F5C430;--amber-soft:rgba(245,184,0,.14);--bad:#FF8A98;--sun:#F5B800;
  --mk-bg:#F5B800;--mk-fg:#0A0F2E;--mk-box:#0A0F2E;--hot-bg:rgba(30,122,76,.22);--hot-line:#4ADE80;--hot-ink:#BBF7D0;
  --glass:linear-gradient(160deg,rgba(32,41,96,.74),rgba(14,19,52,.64));--glass-edge:inset 0 1px 0 rgba(255,255,255,.10),0 30px 60px -36px rgba(0,0,0,.9);
  color-scheme:dark;background:#070A22}
html.kh2 body{background:#070A22!important;color:var(--ink);overflow-x:hidden}
/* living background */
.sitebg{position:fixed;inset:0;z-index:0;pointer-events:none;overflow:hidden;
  background:radial-gradient(1200px 700px at 75% 15%,rgba(245,184,0,.10),transparent 60%),radial-gradient(900px 600px at 15% 85%,rgba(80,110,255,.16),transparent 60%),linear-gradient(180deg,#070A22,#101543 60%,#070A22)}
.sitebg canvas{position:absolute;inset:0;width:100%;height:100%;display:block;opacity:0;transition:opacity 1.8s}
.has3d .sitebg canvas{opacity:1}
.sitebg::after{content:"";position:absolute;inset:0;background:linear-gradient(180deg,rgba(7,10,34,.10),rgba(7,10,34,.35) 55%,rgba(7,10,34,.72))}
html.kh2 body>*:not(.sitebg):not(#hayah-fab):not(#hayah-panel):not(.mus){position:relative;z-index:1}
/* glass panels — every box that used the light «paper» colour */
html.kh2 .card,html.kh2 .plan,html.kh2 .step,html.kh2 .order,html.kh2 .box,html.kh2 .rv-card,html.kh2 .annual-card,html.kh2 .tip-card,html.kh2 .problem,
html.kh2 .addon,html.kh2 details,html.kh2 .notice,html.kh2 .follow-box,html.kh2 .cta,html.kh2 .blog-list a.post,html.kh2 .ec,html.kh2 .why,html.kh2 .launch,
html.kh2 .opt,html.kh2 .grad,html.kh2 .insta,html.kh2 .banner,html.kh2 .emp,html.kh2 .langs,html.kh2 .msgx,html.kh2 .art .tip,html.kh2 .art .cmp div,
html.kh2 .smp-tabs button,html.kh2 .disclaimer,html.kh2 .reqs-list div,html.kh2 .kinds label,html.kh2 .feat li,html.kh2 .sec div,html.kh2 .pay,html.kh2 label.opt,html.kh2 .admin,html.kh2 .file{
  background:var(--glass)!important;-webkit-backdrop-filter:blur(16px) saturate(1.2);backdrop-filter:blur(16px) saturate(1.2);border-color:var(--line)!important;box-shadow:var(--glass-edge)}
html.kh2 .opt:has(input:checked),html.kh2 label.opt:has(input:checked),html.kh2 .lang-list label:has(input:checked){background:linear-gradient(160deg,rgba(245,184,0,.22),rgba(14,19,52,.7))!important;border-color:#F5B800!important}
html.kh2 .plan.best,html.kh2 .plan.hot,html.kh2 .plan.pop{border-color:rgba(245,184,0,.6)!important}
html.kh2 .bar,html.kh2 header.bar{position:sticky;top:10px;z-index:20;margin-top:10px;padding:10px 16px;border-radius:20px;background:rgba(7,10,34,.55);-webkit-backdrop-filter:blur(16px);backdrop-filter:blur(16px);border:1px solid var(--line)}
html.kh2 .lang{background:rgba(255,255,255,.06)!important;color:var(--ink)!important;border-color:var(--line)!important}
/* forms */
html.kh2 input:not([type=checkbox]):not([type=radio]):not([type=file]),html.kh2 select,html.kh2 textarea{background:rgba(5,8,28,.72)!important;color:#fff!important;border-color:rgba(255,255,255,.2)!important}
html.kh2 input:focus,html.kh2 select:focus,html.kh2 textarea:focus{border-color:#4FC3FF!important;box-shadow:0 0 0 4px rgba(79,195,255,.18)!important;outline:none}
html.kh2 input::placeholder,html.kh2 textarea::placeholder{color:#8F98C4}
html.kh2 select option{background:#161D46;color:#EEF1FF}
html.kh2 code{background:rgba(255,255,255,.08)!important;color:#FFE08A}
/* hard-coded light boxes on some pages */
html.kh2 .ours,html.kh2 .ba .new{background:rgba(30,122,76,.22)!important;color:#BBF7D0!important;border-color:rgba(74,222,128,.45)!important}
html.kh2 .follow-btns a{color:#fff}
/* CV previews stay white paper — they show a real CV page */
html.kh2 .sheet,html.kh2 .cvbox{--ink:#12172F;--muted:#545C80;--line:#D8DCEA;--paper:#fff;--brand:#1B2559;--brand-soft:#E3E7F5;background:#fff!important;color:#12172F!important}
html.kh2 .sheet *,html.kh2 .cvbox *{border-color:#D8DCEA}
/* buttons in the platform's gold */
html.kh2 .btn.primary,html.kh2 .btn.sun,html.kh2 button.primary{background:linear-gradient(120deg,#FFD24D,#F5B800)!important;color:#12172F!important;box-shadow:0 12px 30px -12px rgba(245,184,0,.75)}
html.kh2 .btn.ghost,html.kh2 .btn.light{background:rgba(255,255,255,.06)!important;color:var(--ink)!important;border:1px solid rgba(255,255,255,.28)!important}
/* pointer spotlight on glass cards (same as the main site) */
html.kh2 .card,html.kh2 .plan,html.kh2 .step{--mx:50%;--my:50%;overflow:hidden}
html.kh2 .card::after,html.kh2 .plan::after,html.kh2 .step::after{content:"";position:absolute;inset:0;border-radius:inherit;background:radial-gradient(380px circle at var(--mx) var(--my),rgba(79,195,255,.14),transparent 45%);opacity:0;transition:opacity .3s;pointer-events:none}
html.kh2 .card:hover::after,html.kh2 .plan:hover::after,html.kh2 .step:hover::after{opacity:1}
html.kh2 .card,html.kh2 .plan,html.kh2 .step{position:relative}
/* injected widgets follow the dark glass theme (owner, 31 Oct 2026 20:58: every box in the design, no white-on-white) */
.kh-news{background:linear-gradient(120deg,rgba(245,184,0,.9),rgba(120,140,255,.55) 55%,rgba(245,184,0,.9))!important;margin:14px 0 0!important}
.kh-news-in{background:linear-gradient(160deg,rgba(32,41,96,.92),rgba(14,19,52,.9))!important;color:var(--ink)!important;-webkit-backdrop-filter:blur(16px);backdrop-filter:blur(16px)}
.kh-news-t,.kh-news-t b,.kh-news-t strong{color:var(--ink)!important}
.kh-news-b{color:var(--muted)!important}
.kh-news-logo{background:#fff!important;border-color:rgba(255,255,255,.2)!important}
.kh-news-cta{background:linear-gradient(120deg,#FFD24D,#F5B800)!important;color:#12172F!important}
.kh-news-dots button{background:rgba(255,255,255,.25)!important}.kh-news-dots button.on{background:#F5B800!important}

/* bottom corner (owner, 31 Oct 2026 21:24): Arabic → bottom-right, English → bottom-left; Hayah right above the music bars */
#hayah-fab{bottom:calc(70px + env(safe-area-inset-bottom,0px))!important;inset-inline-start:auto!important;isolation:isolate;overflow:visible!important;
  background:rgba(12,16,48,.92)!important;color:#EEF1FF!important;border:0!important;box-shadow:0 0 0 1px rgba(255,255,255,.14),0 14px 34px -10px rgba(0,0,0,.8),0 0 26px rgba(79,195,255,.35)!important;animation:hy-beat 3.2s ease-in-out infinite}
html[dir=rtl] #hayah-fab,html[dir=rtl] #hayah-panel{right:16px!important;left:auto!important}
html[dir=ltr] #hayah-fab,html[dir=ltr] #hayah-panel{left:16px!important;right:auto!important}
html[dir=rtl] #hayah-panel,html[dir=ltr] #hayah-panel{inset-inline-start:auto!important}
/* a turning light ring + a scan flash every few seconds — draws the eye, same glass family */
#hayah-fab::before{content:"";position:absolute;inset:-2px;border-radius:999px;padding:2px;z-index:-1;background:conic-gradient(from var(--hy,0deg),#4FC3FF,#F5B800,#FF5FD2,#7F8CFF,#4FC3FF);-webkit-mask:linear-gradient(#000 0 0) content-box,linear-gradient(#000 0 0);-webkit-mask-composite:xor;mask-composite:exclude;animation:hy-spin 3s linear infinite}
#hayah-fab::after{content:"";position:absolute;inset:0;border-radius:999px;pointer-events:none;background:linear-gradient(115deg,transparent 35%,rgba(255,255,255,.55) 50%,transparent 65%);background-size:250% 100%;background-position:150% 0;animation:hy-scan 4.5s ease-in-out infinite}
@property --hy{syntax:"<angle>";initial-value:0deg;inherits:false}
@keyframes hy-spin{to{--hy:360deg}}
@keyframes hy-scan{0%,62%{background-position:150% 0;opacity:0}66%{opacity:1}82%,100%{background-position:-60% 0;opacity:0}}
@keyframes hy-beat{0%,100%{box-shadow:0 0 0 1px rgba(255,255,255,.14),0 14px 34px -10px rgba(0,0,0,.8),0 0 18px rgba(79,195,255,.25)}50%{box-shadow:0 0 0 1px rgba(255,255,255,.2),0 14px 34px -10px rgba(0,0,0,.8),0 0 34px rgba(79,195,255,.6),0 0 60px rgba(245,184,0,.25)}}
#hayah-fab .hy-ping{border-color:#0C1030!important}
/* music: floating bars only — no button box, no word; tap = stop / play */
.mus{position:fixed;bottom:calc(16px + env(safe-area-inset-bottom,0px))!important;z-index:30;width:62px;height:44px;padding:0;border:0!important;background:transparent!important;-webkit-backdrop-filter:none!important;backdrop-filter:none!important;box-shadow:none!important;display:flex;align-items:flex-end;justify-content:center;cursor:pointer;border-radius:10px}
html[dir=rtl] .mus{right:16px!important;left:auto!important}
html[dir=ltr] .mus{left:16px!important;right:auto!important}
.mus .l-ar,.mus .l-en{display:none!important}
.mus .eq{display:flex;gap:4px;align-items:flex-end;height:34px}
.mus .eq i{width:5px;height:6px;border-radius:3px;background:linear-gradient(180deg,#FFE08A,#F5B800);box-shadow:0 0 10px rgba(245,184,0,.7);opacity:.55;transition:height .3s,opacity .3s}
.mus.on .eq i{opacity:1;animation:mus-b 1s ease-in-out infinite alternate}
.mus.on .eq i:nth-child(2){animation-duration:.7s;animation-delay:.15s}.mus.on .eq i:nth-child(3){animation-duration:1.15s;animation-delay:.3s}.mus.on .eq i:nth-child(4){animation-duration:.8s;animation-delay:.05s}.mus.on .eq i:nth-child(5){animation-duration:.95s;animation-delay:.4s}
@keyframes mus-b{from{height:6px}to{height:32px}}
.mus:hover .eq i{opacity:1}
.mus:focus-visible{outline:2px solid #F5B800;outline-offset:4px}
@media (prefers-reduced-motion:reduce){#hayah-fab,#hayah-fab::before,#hayah-fab::after,.mus.on .eq i{animation:none}.mus.on .eq i{height:22px}}

/* «تابعونا» strip + box (injected by common.js with light colours) */
html.kh2 .follow-top{background:rgba(255,255,255,.05)!important;border-color:var(--line)!important;color:var(--ink)!important}
html.kh2 .follow-top a{background:rgba(255,255,255,.07)!important;border-color:var(--line)!important;color:var(--ink)!important}
html.kh2 .follow-top a:hover{background:rgba(255,255,255,.14)!important}
html.kh2 .follow-box{color:var(--ink)!important}html.kh2 .follow-box p{color:var(--muted)!important}
html.kh2 .smp-tabs button[aria-selected=true]{background:linear-gradient(120deg,#FFD24D,#F5B800)!important;color:#12172F!important;border-color:#F5B800!important}
/* owner 1 Nov 00:26: the «تابعونا» strip sits right under the brand bar (first rectangle), away from the 3D mark and its orbs */
html.kh2 .page>.kh-top{margin-top:-54px}
html.kh2 .wrap>.kh-top{margin-top:-14px}
html.kh2 .kh-top .follow-top{margin-top:0!important}
html.kh2 .kh-top .kh-news{margin-top:0!important}
