/* iHUB AI Assistant | pixel-aligned to user's approved 1672x941 and 941x1672 artwork. */
:root{--dark:#071861;--navy:#0b247a;--blue:#176cfa;--cyan:#4cbcff;--line:#d9edff}
*{box-sizing:border-box}
html,body{margin:0;width:100%;height:100%;overflow:hidden}
body{font-family:"Segoe UI",Tahoma,Arial,sans-serif;color:var(--navy);background:linear-gradient(160deg,#81befc 0%,#e2f3ff 60%,#f7fbff 100%)}
button,input{font:inherit}
button{cursor:pointer;-webkit-tap-highlight-color:transparent}
button:focus-visible,input:focus-visible{outline:3px solid #01a9ff;outline-offset:4px}
[hidden]{display:none!important}
.app{width:100%;height:100%;height:100dvh;position:relative;overflow:hidden;isolation:isolate}
.design{position:absolute;left:50%;top:50%;transform-origin:center center;overflow:hidden;direction:ltr;background-repeat:no-repeat;background-size:100% 100%;box-shadow:0 0 60px #9fd3ff38}
.desktop{width:1672px;height:941px;background-image:url('assets/desktop-scene.webp')}
.mobile{width:941px;height:1672px;background-image:url('assets/mobile-scene.webp')}
.brandbar{position:absolute;display:flex;align-items:center;justify-content:space-between;background:linear-gradient(115deg,rgb(235,246,255),rgb(251,253,255));border:1px solid rgba(255,255,255,.95);box-shadow:0 4px 20px rgba(44,105,164,.05);z-index:4;direction:ltr}
.desktop-brandbar{left:63px;top:21px;width:1522px;height:81px;border-radius:29px;padding:0 27px 0 56px}
.mobile-brandbar{left:41px;top:22px;width:851px;height:108px;border-radius:54px;padding:0 37px 0 46px}
.brand-logo,.capital-logo{display:block;object-fit:contain;object-position:center}
.desktop-brandbar .brand-logo{width:248px;height:55px}
.desktop-brandbar .capital-logo{width:165px;height:43px}
.mobile-brandbar .brand-logo{width:270px;height:70px}
.mobile-brandbar .capital-logo{width:177px;height:47px}
.chat-panel{position:absolute;z-index:2;left:985px;top:112px;width:648px;height:788px;border-radius:40px;background:linear-gradient(145deg,#fafcff 0%,#edf7ff 48%,#f7fbff 100%);border:2px solid rgba(255,255,255,.95);box-shadow:0 8px 25px rgba(33,98,181,.09),inset 0 0 70px #fff9;direction:rtl}
.chat-head{position:absolute;top:26px;left:20px;right:20px;text-align:center;line-height:1.25}
.chat-head h1{font-size:67px;line-height:1.12;letter-spacing:-2px;margin:0;font-weight:800;color:#081c73}
.chat-head h1 strong{color:#287bf7;font-weight:800;direction:ltr;display:inline-block}
.chat-head h2{font-size:27px;margin:4px 0 0;font-weight:760;color:#092577}
.chat-head p{font-size:19px;margin:7px 0 0;color:#8095bf}
.voice-area{display:flex;align-items:center;justify-content:center;gap:14px;direction:ltr;z-index:3}
.desktop-voice{position:absolute;top:202px;left:35px;right:35px;height:148px}
.waveform{height:110px;width:185px;display:flex;align-items:center;justify-content:center;gap:5px;opacity:.72}
.waveform span{display:block;width:8px;min-width:3px;border-radius:20px;background:linear-gradient(#6ecffb,#3688f5);height:var(--wave);box-shadow:0 0 6px #80c5fb44}
.mic-button{width:136px;height:136px;flex:0 0 auto;display:grid;place-items:center;border:9px solid #dff1ff;border-radius:50%;color:#fff;background:radial-gradient(circle at 37% 18%,#45cafa 0%,#278bf9 42%,#064ae7 91%);box-shadow:0 0 0 4px #fff,0 0 0 13px #dbedff9c,0 0 25px 15px #78bbff78,inset 0 6px 14px #9defff9e;transition:filter .2s,transform .2s}
.mic-button svg{width:63px;height:63px}
.mic-button:hover{filter:brightness(1.08);transform:scale(1.035)}
.mic-button.listening{animation:mic-pulse 1.4s ease-in-out infinite}
.mic-button.speaking{animation:mic-glow 1.4s ease-in-out infinite}
.voice-area.listening .waveform span,.voice-area.speaking .waveform span{animation:wave 720ms ease-in-out infinite alternate;animation-delay:var(--delay)}
.interaction-status{position:absolute;left:30px;right:30px;text-align:center;top:353px;min-height:20px;color:#2275cd;font-size:16px;font-weight:600;direction:rtl;z-index:5}
.message-region{position:absolute;left:23px;right:23px;top:374px;bottom:91px;z-index:2;direction:rtl;overflow:hidden}
.messages{height:100%;width:100%;overflow-y:auto;overflow-x:hidden;overscroll-behavior:contain;scroll-behavior:smooth;display:flex;flex-direction:column;gap:14px;padding:18px 10px 8px;scrollbar-width:thin;scrollbar-color:#b4d6f4 transparent}
.message{max-width:86%;border-radius:23px;padding:12px 17px;box-shadow:0 4px 17px rgba(61,121,183,.08);font-size:19px;line-height:1.55;overflow-wrap:anywhere;white-space:pre-wrap;text-align:right;direction:rtl;animation:appear .22s ease-out both}
.message.user{align-self:flex-start;background:#e1f0ff;color:#0d2b82;border-top-left-radius:6px}
.message.bot{align-self:flex-end;background:#fff;color:#10236d;border:1px solid #d8ecfd;border-top-right-radius:6px}
.message time{display:block;font-size:12px;font-weight:400;color:#8aa5cf;margin-top:4px;direction:ltr;text-align:left}
.clear-chat{position:absolute;top:0;left:16px;z-index:4;border:1px solid #d5e9ff;background:#fff;color:#3b75c8;border-radius:18px;font-size:14px;padding:5px 15px}
.composer{position:absolute;left:5px;right:5px;bottom:4px;height:80px;border-radius:38px;background:linear-gradient(90deg,#f5faff,#fff);box-shadow:0 -2px 16px #dcecff70;border:1px solid #dceeff;display:flex;align-items:center;gap:12px;padding:8px 12px;direction:ltr;z-index:4}
.attachment-icon{display:grid;place-items:center;flex:0 0 auto;width:48px;height:48px;border-radius:50%;background:#edf6ff;color:#4b81bc}
.attachment-icon svg{width:28px;height:28px}
.message-input{flex:1;min-width:0;height:55px;border:1px solid #e0edfa;border-radius:28px;background:#fff;font-size:18px;color:#0a2676;outline:0!important;padding:0 20px;text-align:right}
.message-input::placeholder{color:#9baed1;opacity:1}
.message-input:focus{box-shadow:0 0 0 2px #a5d8ff}
.send-button{display:grid;place-items:center;width:61px;height:61px;border:none;border-radius:50%;background:linear-gradient(145deg,#3eaeff,#0860ed);color:#fff;box-shadow:0 4px 12px #3d9bfa45;flex:0 0 auto}
.send-button svg{width:32px;height:32px}
.send-button:hover{filter:brightness(1.07)}
.send-button:disabled{opacity:.48;cursor:wait}
/* Keep every aspect of the approved Mobile hero unchanged. Only the controls are live. */
.mobile-voice{position:absolute;top:886px;left:54px;width:833px;height:242px;justify-content:space-between;gap:11px}
.mobile-voice .waveform{width:275px;height:145px;gap:8px;opacity:.92}
.mobile-voice .waveform span{width:12px}
.mobile-voice .mic-button{width:203px;height:203px;border-width:11px;box-shadow:0 0 0 7px #fff,0 0 0 23px #d4ecffba,0 0 25px 20px #92cbff82,inset 0 6px 14px #9defff9e}
.mobile-voice .mic-button svg{width:87px;height:87px}
.mobile-status{top:1143px;left:30px;right:30px;font-size:23px}
.mobile-dialogue{top:1204px;bottom:187px;left:40px;right:40px}
.mobile-dialogue .messages{gap:13px;padding:8px 7px}
.mobile-dialogue .message{font-size:25px;padding:15px 18px;border-radius:25px;max-width:91%}
.mobile-dialogue .message time{font-size:17px}
.mobile-dialogue .clear-chat{font-size:18px}
.mobile-composer{left:33px;right:44px;bottom:63px;height:114px;padding:12px 15px;border-radius:51px;gap:16px;border:2px solid #cce6ff;background:#f7fbff;box-shadow:0 0 24px #b6dbff52}
.mobile-composer .attachment-icon{width:79px;height:79px;background:#e5f0ff}
.mobile-composer .attachment-icon svg{width:38px;height:38px}
.mobile-composer .message-input{height:80px;border-radius:40px;font-size:29px}
.mobile-composer .send-button{width:82px;height:82px}
.mobile-composer .send-button svg{width:42px;height:42px}
.screenreader-status{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
@keyframes wave{0%{transform:scaleY(.35);opacity:.65}100%{transform:scaleY(1.12);opacity:1}}
@keyframes mic-pulse{0%,100%{box-shadow:0 0 0 5px #fff,0 0 0 14px #d6eeff,0 0 18px 8px #289afaa8}50%{box-shadow:0 0 0 5px #fff,0 0 0 26px #c9e7ff8c,0 0 36px 15px #289afa92}}
@keyframes mic-glow{0%,100%{filter:brightness(1)}50%{filter:brightness(1.25)}}
@keyframes appear{from{opacity:0;transform:translateY(9px)}to{opacity:1;transform:translateY(0)}}
@media (prefers-reduced-motion:reduce){*,*::before,*::after{animation:none!important;transition:none!important;scroll-behavior:auto!important}}
