.chat-launch{position:fixed;left:22px;bottom:20px;border:0;background:var(--ink);color:white;padding:13px 18px;border-radius:30px;box-shadow:0 5px 22px #0003;z-index:5}
.chat-head{background:var(--ink);color:white;padding:17px}
.chat-body{padding:18px}
.chat-body button{display:block;width:100%;background:#F8F5F0;border:1px solid #ECE6DD;padding:10px;border-radius:7px;margin:8px 0;color:var(--ink)}
@media(max-width:480px){.chat-launch{font-size:12px;left:14px;bottom:14px}}
.chat-launch{max-width:calc(100vw - 28px);font-size:13px;line-height:1.7;background:#1F2A44}
.chat-head{background:#1F2A44;padding:15px}
.chat-head b{display:block;padding-left:23px;font-size:14px}
.chat-body{padding:14px}
.chat-body p{font-size:13px;margin:10px 0 0}
.chat-body button{background:#ECE6DD;border-color:#ECE6DD}
@media(max-width:480px){.chat-launch{font-size:12px}}
.chat-launch{border-color:#B08D57!important;width:58px;height:58px;min-width:58px;padding:0!important;border-radius:50%;display:grid;place-items:center;background:#1F2A44;color:#fff;box-shadow:0 5px 18px #1F2A4440;border:3px solid #fff;left:18px;bottom:18px}
@media(max-width:480px){.chat-launch{width:55px;height:55px;min-width:55px}}
.chat-launch{left:auto;right:16px;width:184px;min-width:184px;height:60px;border-radius:30px;display:flex;justify-content:center;gap:10px;padding:7px 12px!important}
.chat-launch span{font-size:13px;line-height:1.5;text-align:right}
.chat-launch svg{flex-shrink:0}
@media(max-width:480px){.chat-launch{right:12px;bottom:12px;width:176px;min-width:176px;height:60px}}
.chat-launch{right:max(12px,env(safe-area-inset-right));bottom:max(12px,env(safe-area-inset-bottom));z-index:50}
html[dir=ltr] .chat-launch{font-size:12px}
.chat-launch{right:max(12px,env(safe-area-inset-right))!important;left:auto!important;width:max-content!important;min-width:0!important;max-width:calc(100vw - 196px)!important;height:auto!important;min-height:44px;overflow:visible;align-items:center;padding:6px 8px!important;gap:6px}
.chat-launch svg{width:18px;height:18px;flex:0 0 auto}
.chat-launch .assistant-lines>span{font-size:10.5px}
.chat-head .assistant-lines>span{font-size:14px;line-height:1.35}
.chat-launch,.chat{display:none!important}
/*__KHALED_BOT_CSS__*/

/* khaled-bot: anime Saudi assistant (additive only) */
#khaled-bot{position:fixed;left:max(14px,env(safe-area-inset-left));bottom:calc(80px + env(safe-area-inset-bottom));z-index:70;font-family:Tahoma,Arial,sans-serif;direction:rtl;pointer-events:none}
html[dir=ltr] #khaled-bot{left:auto;right:max(14px,env(safe-area-inset-right));direction:ltr}
#khaled-bot *{box-sizing:border-box;pointer-events:auto}
#khaled-bot .kb-avatar-wrap{position:relative;width:99px;height:170px}
#khaled-bot .kb-avatar{width:99px;height:170px;border:0;border-radius:0;background:transparent;box-shadow:none;outline:none;overflow:visible;padding:0;margin:0;cursor:pointer;display:block;filter:drop-shadow(0 6px 8px rgba(31,42,68,.28));transform-origin:50% 100%;-webkit-tap-highlight-color:transparent}
#khaled-bot .kb-avatar:focus-visible{outline:2px dashed #DBCCB3;outline-offset:4px;border-radius:12px}
#khaled-bot .kb-avatar img{width:100%;height:100%;object-fit:contain;object-position:50% 100%;display:block;pointer-events:none;border:0;border-radius:0;background:transparent}
#khaled-bot .kb-avatar.wave{animation:kbWave 1.4s ease-in-out 1}
#khaled-bot .kb-bubble{position:absolute;bottom:166px;left:0;right:auto;width:min(220px,calc(100vw - 28px));background:#fff;color:#1F2A44;border:1px solid #DBCCB3;border-radius:14px 14px 14px 4px;padding:10px 12px 10px 28px;font-size:13px;line-height:1.55;font-weight:700;box-shadow:0 8px 22px rgba(31,42,68,.18);opacity:0;transform:translateY(8px) scale(.96);pointer-events:none;transition:opacity .35s ease,transform .35s ease}
html[dir=ltr] #khaled-bot .kb-bubble{left:auto;right:0;border-radius:14px 14px 4px 14px;padding:10px 28px 10px 12px}
#khaled-bot .kb-bubble.show{opacity:1;transform:none;pointer-events:auto}
#khaled-bot .kb-bubble::after{content:"";position:absolute;bottom:-7px;left:22px;width:12px;height:12px;background:#fff;border-right:1px solid #DBCCB3;border-bottom:1px solid #DBCCB3;transform:rotate(45deg)}
html[dir=ltr] #khaled-bot .kb-bubble::after{left:auto;right:22px}
#khaled-bot .kb-bubble-x{position:absolute;top:4px;right:auto;left:6px;border:0;background:transparent;color:#5F5F5F;font-size:16px;line-height:1;cursor:pointer;padding:2px 5px}
html[dir=ltr] #khaled-bot .kb-bubble-x{left:auto;right:6px}
#khaled-bot .kb-panel{position:absolute;bottom:178px;left:0;right:auto;width:min(340px,calc(100vw - 28px));height:min(440px,calc(100vh - 280px));background:#fff;border-radius:18px;overflow:hidden;box-shadow:0 16px 48px rgba(31,42,68,.28);border:1px solid #ECE6DD;display:none;flex-direction:column}
html[dir=ltr] #khaled-bot .kb-panel{left:auto;right:0}
#khaled-bot.open .kb-panel{display:flex}
#khaled-bot.open .kb-bubble{display:none!important}
#khaled-bot .kb-head{background:#1F2A44;color:#fff;padding:12px 14px;display:flex;align-items:center;gap:10px}
#khaled-bot .kb-head img{width:44px;height:44px;border:0;border-radius:0;object-fit:contain;background:transparent}
#khaled-bot .kb-head b{display:block;font-size:14px;color:#DBCCB3}
#khaled-bot .kb-head span{font-size:11px;opacity:.85}
#khaled-bot .kb-close{margin-inline-start:auto;border:0;background:transparent;color:#fff;font-size:22px;cursor:pointer;line-height:1;padding:4px 8px}
#khaled-bot .kb-msgs{flex:1;overflow:auto;padding:12px;background:#F8F5F0;display:flex;flex-direction:column;gap:8px}
#khaled-bot .kb-msg{max-width:92%;padding:9px 12px;border-radius:12px;font-size:13px;line-height:1.65;white-space:pre-wrap}
#khaled-bot .kb-msg.bot{align-self:flex-start;background:#1F2A44;color:#fff;border-bottom-right-radius:4px}
html[dir=ltr] #khaled-bot .kb-msg.bot{border-bottom-right-radius:12px;border-bottom-left-radius:4px}
#khaled-bot .kb-msg.user{align-self:flex-end;background:#DBCCB3;color:#1F2A44;font-weight:700;border-bottom-left-radius:4px}
html[dir=ltr] #khaled-bot .kb-msg.user{border-bottom-left-radius:12px;border-bottom-right-radius:4px}
#khaled-bot .kb-quick{display:flex;flex-wrap:wrap;gap:6px;padding:8px 10px;background:#fff;border-top:1px solid #ECE6DD}
#khaled-bot .kb-quick button{border:1px solid #ECE6DD;background:#F8F5F0;color:#1F2A44;border-radius:999px;padding:6px 10px;font-size:12px;font-weight:700;cursor:pointer}
#khaled-bot .kb-quick button:hover{background:#1F2A44;color:#DBCCB3;border-color:#1F2A44}
#khaled-bot .kb-form{display:flex;gap:6px;padding:8px 10px 10px;background:#fff;border-top:1px solid #ECE6DD}
#khaled-bot .kb-form input{flex:1;border:1px solid #ECE6DD;border-radius:10px;padding:9px 11px;font-size:13px;color:#1F2A44;background:#fff}
#khaled-bot .kb-form button{border:0;background:#1F2A44;color:#DBCCB3;border-radius:10px;padding:9px 14px;font-weight:800;cursor:pointer;font-size:13px}
@keyframes kbWave{0%,100%{transform:none}30%{transform:translateY(-3px) rotate(-1.5deg)}60%{transform:translateY(-1px) rotate(1deg)}}
@media (prefers-reduced-motion:reduce){#khaled-bot .kb-avatar,#khaled-bot .kb-avatar.wave{animation:none}}
@media (max-width:480px){#khaled-bot,html[dir=ltr] #khaled-bot{left:max(10px,env(safe-area-inset-left));right:max(10px,env(safe-area-inset-right));bottom:calc(14px + env(safe-area-inset-bottom));direction:rtl;pointer-events:none}html[dir=ltr] #khaled-bot{direction:ltr}#khaled-bot .kb-avatar-wrap{width:61px;height:104px;margin:0 auto}#khaled-bot .kb-avatar{width:61px;height:104px}#khaled-bot .kb-panel,html[dir=ltr] #khaled-bot .kb-panel{left:0;right:0;margin:0 auto;width:min(340px,calc(100vw - 20px));height:min(420px,calc(100vh - 150px));bottom:112px}#khaled-bot .kb-bubble{left:0;right:auto;transform:translateY(6px);bottom:56px;width:calc(50% - 38px);font-size:12px;line-height:1.5;padding:8px 10px 8px 24px;border-radius:14px 14px 4px 14px}html[dir=ltr] #khaled-bot .kb-bubble{left:auto;right:0;border-radius:14px 14px 14px 4px;padding:8px 24px 8px 10px}#khaled-bot .kb-bubble.show{transform:none}#khaled-bot .kb-bubble::after{bottom:12px;left:auto;right:-7px;transform:rotate(-45deg)}html[dir=ltr] #khaled-bot .kb-bubble::after{left:-7px;right:auto;transform:rotate(135deg)}}
@media (max-width:480px){/* Fixed controls: boy = left column, AR/EN + WhatsApp = right column; centre stays free */
  #khaled-bot,html[dir=ltr] #khaled-bot{left:max(8px,env(safe-area-inset-left));right:auto;bottom:calc(10px + env(safe-area-inset-bottom));width:88px;direction:rtl}html[dir=ltr] #khaled-bot{direction:ltr}#khaled-bot .kb-avatar-wrap{width:88px;height:151px;margin:0}#khaled-bot .kb-avatar{width:88px;height:151px}/* Greeting bubble: compact, above the boy's head */
  #khaled-bot .kb-bubble,html[dir=ltr] #khaled-bot .kb-bubble{left:0;right:auto;bottom:160px;width:min(228px,calc(100vw - 112px));font-size:14px;line-height:1.55;padding:9px 12px 9px 38px;border-radius:14px 14px 14px 4px;transform:translateY(6px)}html[dir=ltr] #khaled-bot .kb-bubble{padding:9px 38px 9px 12px}#khaled-bot .kb-bubble.show{transform:none}#khaled-bot .kb-bubble.kb-hold{opacity:0!important;pointer-events:none!important}#khaled-bot .kb-bubble::after,html[dir=ltr] #khaled-bot .kb-bubble::after{left:34px;right:auto;bottom:-7px;transform:rotate(45deg)}#khaled-bot .kb-bubble-x{left:0;right:auto;top:0;width:38px;height:44px;display:flex;align-items:center;justify-content:center;font-size:20px;padding:0}html[dir=ltr] #khaled-bot .kb-bubble-x{left:auto;right:0}/* Chat panel fits the phone */
  #khaled-bot .kb-panel,html[dir=ltr] #khaled-bot .kb-panel{position:fixed;left:12px;right:12px;margin:0;width:auto;max-width:none;bottom:calc(12px + env(safe-area-inset-bottom));height:min(78vh,calc(100vh - 40px));z-index:80}#khaled-bot .kb-head{padding:10px 12px}#khaled-bot .kb-close{min-width:44px;min-height:44px;font-size:26px}#khaled-bot .kb-msg{font-size:14px}#khaled-bot .kb-quick{gap:6px;padding:8px}#khaled-bot .kb-quick button{min-height:44px;padding:6px 12px;font-size:14px;flex:1 1 auto}#khaled-bot .kb-form{padding:8px 8px calc(8px + env(safe-area-inset-bottom))}#khaled-bot .kb-form input{font-size:16px;min-height:44px;min-width:0}#khaled-bot .kb-form button{min-height:44px;font-size:14px}}
/*__BOT_TITLE__*/#khaled-bot .kb-head b{font-size:12px;line-height:1.35;max-width:220px}
body,#khaled-bot{font-family:Amiri,Tahoma,Arial,sans-serif!important}
@media (max-width:760px){#khaled-bot,html[dir=ltr] #khaled-bot{position:fixed!important;left:max(8px,env(safe-area-inset-left))!important;right:auto!important;top:auto!important;bottom:max(10px,env(safe-area-inset-bottom))!important;width:auto!important;z-index:70!important;pointer-events:none}#khaled-bot .kb-avatar-wrap{width:50px!important;height:85px!important;margin:0!important}#khaled-bot .kb-avatar{width:50px!important;height:85px!important;min-width:44px;min-height:44px}#khaled-bot .kb-bubble,#khaled-bot .kb-bubble.show{display:none!important}#khaled-bot .kb-panel,html[dir=ltr] #khaled-bot .kb-panel{position:fixed!important;left:12px!important;right:12px!important;top:auto!important;bottom:max(12px,env(safe-area-inset-bottom))!important;width:auto!important;max-width:none!important;height:min(78vh,calc(100vh - 40px))!important;margin:0!important;z-index:80}}
@media (max-width:760px){#khaled-bot{bottom:calc(74px + env(safe-area-inset-bottom))!important}#khaled-bot .kb-panel,html[dir=ltr] #khaled-bot .kb-panel{bottom:calc(74px + env(safe-area-inset-bottom))!important;height:min(72vh,calc(100vh - 110px))!important;z-index:95!important}}
/* floating boy launcher bottom-left; short greeting bubble just above the boy */
#khaled-bot .kb-bubble,#khaled-bot .kb-bubble.show{display:block!important;pointer-events:none}#khaled-bot.open .kb-bubble,#khaled-bot.open .kb-bubble.show{display:none!important}
#khaled-bot .kb-bubble.show{pointer-events:auto}
@media (max-width:760px){#khaled-bot .kb-bubble,html[dir=ltr] #khaled-bot .kb-bubble{left:0!important;right:auto!important;bottom:96px!important;width:max-content!important;max-width:min(230px,calc(100vw - 40px))!important;font-size:14px!important;line-height:1.5!important;padding:7px 30px 7px 12px!important;white-space:nowrap}#khaled-bot .kb-bubble-x{left:auto!important;right:4px!important}#khaled-bot .kb-bubble::after{left:18px!important}}
@media (max-width:760px){#khaled-bot{bottom:max(10px,env(safe-area-inset-bottom))!important}#khaled-bot .kb-panel,html[dir=ltr] #khaled-bot .kb-panel{bottom:max(12px,env(safe-area-inset-bottom))!important;height:min(78vh,calc(100vh - 40px))!important}}
@supports selector(:has(*)){body:has(#cc-banner) #khaled-bot .kb-avatar-wrap{visibility:hidden}}
/* header chips under Khaled's name (replace old subtitle) */
#khaled-bot .kb-hd{display:flex;flex-direction:column;gap:6px;min-width:0;flex:1}
#khaled-bot .kb-chips{display:flex;flex-wrap:wrap;gap:5px}
#khaled-bot .kb-chips button{border:1px solid #e8c27a99;background:#ffffff14;color:#fff;border-radius:999px;padding:5px 10px;min-height:32px;font:inherit;font-size:13px;font-weight:700;cursor:pointer;line-height:1.2}
#khaled-bot .kb-chips button:hover,#khaled-bot .kb-chips button:focus-visible{background:#DBCCB3;color:#1F2A44}
#khaled-bot .kb-head{align-items:flex-start}
/* 4 identical chips: same size/shape/style, 2x2 grid */
#khaled-bot .kb-chips{display:grid!important;grid-template-columns:1fr 1fr;gap:6px;width:100%}
#khaled-bot .kb-chips button{width:100%;min-height:40px;padding:4px 8px;border-radius:12px;font-size:13px;line-height:1.25;text-align:center;display:flex;align-items:center;justify-content:center;white-space:normal}
#khaled-bot .kb-chips{grid-auto-rows:1fr}
