/* Travel B2B Hub v8 communications - adaptive desktop/mobile interface */
.hub8-screen,.hub8-thread{min-height:calc(100vh - 220px);background:#f5f8fe;color:#102a4c;font-family:Inter,'Segoe UI','Noto Sans Arabic',sans-serif}
.hub8-head{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:24px 25px 20px}
.hub8-head h2{font-size:25px;font-weight:850;letter-spacing:-.7px;margin:5px 0 2px}.hub8-head p{margin:0;color:#72839e;font-size:12px}
.hub8-overline{color:#1169cf;font-size:10px;font-weight:800;letter-spacing:1.2px}.hub8-status{padding:9px 12px;background:#e9f2ff;border-radius:30px;color:#0965c4;font-size:11px;font-weight:750}
.hub8-chatgrid{margin:0 23px 24px;display:grid;grid-template-columns:minmax(260px,390px) minmax(0,1fr);border:1px solid #dfe9f6;border-radius:18px;overflow:hidden;background:white;min-height:580px;box-shadow:0 9px 26px #103c700d}
.hub8-contacts{background:#fff;border-inline-end:1px solid #e6ecf5;padding:18px 0}
.hub8-contact-search{margin:0 16px 15px;padding:9px 10px;display:flex;align-items:center;gap:9px;border-radius:11px;color:#5886af;background:#f2f7fe;border:1px solid #e0eaf7}
.hub8-contact-search input{min-width:0;width:100%;outline:0;border:0;background:transparent;font-size:12px}
.hub8-contact-list{max-height:680px;overflow:auto}.hub8-contact{border:0;background:#fff;width:100%;display:flex;gap:12px;padding:15px 17px;text-align:start;border-bottom:1px solid #f1f4f9;align-items:center;color:#15345b}
.hub8-contact:hover{background:#f3f8ff}.hub8-contact[hidden]{display:none}.hub8-portrait{height:50px;width:50px;flex-shrink:0;border-radius:14px;background:linear-gradient(135deg,#0c60b8,#1793d9);display:grid;place-items:center;background-position:center;background-size:cover;border:2px solid white;box-shadow:0 3px 12px #0c37611f;color:white}
.hub8-portrait b{background:#031e49ba;border-radius:7px;font-size:11px;padding:5px}.hub8-contact-info{display:grid;gap:4px;flex:1;min-width:0}
.hub8-contact-info strong{font-weight:800;font-size:12px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.hub8-contact-info small{color:#5c839a;font-size:10px}
.hub8-contact-snippet{font-size:10px;color:#a1a9b8;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.hub8-presence{font-size:12px;color:#149b78;font-weight:800}.hub8-empty-chat{padding:38px;text-align:center;display:flex;justify-content:center;flex-direction:column;align-items:center;background:radial-gradient(circle at center,#e4f3ff,white 68%)}
.hub8-empty-art{width:94px;height:94px;background:linear-gradient(135deg,#e2f2ff,#e5efff);color:#0767cc;border-radius:24px;display:grid;place-items:center;box-shadow:0 8px 20px #103b7a10}
.hub8-empty-chat h3{font-size:20px;margin:18px 0 8px}.hub8-empty-chat p{color:#6f809a;max-width:370px;line-height:1.7;font-size:12px}
.hub8-empty-chat small{color:#98a6b8;font-size:11px;margin-top:19px}.hub8-feature-pills{display:flex;gap:6px;flex-wrap:wrap;justify-content:center}
.hub8-feature-pills span{border-radius:15px;background:#fff;border:1px solid #dfebf7;padding:7px 12px;color:#125fae;font-size:11px;font-weight:750}
.hub8-thread{display:flex;flex-direction:column;min-height:calc(100vh - 185px);height:min(850px,calc(100vh - 185px));background:#f6f9fe}
.hub8-thread-head{display:flex;gap:10px;align-items:center;padding:13px 20px;background:#fff;border-bottom:1px solid #e6ebf4;min-height:78px}
.hub8-back,.hub8-head-btn{border:1px solid #e2eaf5;background:#f1f7ff;color:#116bc9;border-radius:11px;width:40px;height:40px;display:grid;place-items:center;flex-shrink:0}.hub8-head-btn:disabled{opacity:.35;cursor:not-allowed}
.hub8-mini-portrait{width:43px;height:43px;border-radius:12px;background:linear-gradient(140deg,#0757ac,#209dcb)}
.hub8-thread-person{flex:1;min-width:0}.hub8-thread-person strong{display:block;color:#152f56;font-size:14px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.hub8-thread-person small{display:block;margin-top:3px;color:#7593a8;font-size:10px}
.hub8-permbar{display:flex;align-items:center;gap:7px;padding:11px 18px;background:#f8fbff;border-bottom:1px solid #e8edf5;flex-wrap:wrap}
.hub8-permission{font-size:10px;border:1px solid #cfe6db;background:#e8f9f1;color:#15765a;border-radius:22px;padding:5px 9px;white-space:nowrap;font-weight:750}
.hub8-permission.off{color:#8c92a2;background:#eff2f6;border-color:#e3e6ed}.hub8-pending{margin-inline-start:auto;color:#7991a8;font-size:10px}
.hub8-thread-body{flex:1;min-height:120px;overflow-y:auto;padding:23px 26px;background-color:#eaf2f7;background-image:radial-gradient(#cde4f2 0.75px,transparent .75px);background-size:22px 22px}
.hub8-chat-date{margin:0 auto 20px;padding:7px 15px;border-radius:9px;background:#fff9;color:#627f99;font-size:10px;text-align:center;width:max-content;max-width:100%;font-weight:800}
.hub8-bubble-row{display:flex;margin:10px 0}.hub8-bubble-row.self{justify-content:flex-end}.hub8-bubble{display:grid;gap:5px;background:#fff;color:#2f435d;border-radius:14px 14px 14px 3px;max-width:min(440px,78%);padding:10px 14px;font-size:12px;line-height:1.6;box-shadow:0 3px 11px #315b7b12;min-width:0;overflow-wrap:anywhere}
.hub8-bubble.outgoing{background:#d8f4e7;border-radius:14px 14px 3px 14px}.hub8-bubble small{font-size:9px;color:#72929c;text-align:end}
.hub8-bubble audio{width:min(280px,100%);height:35px}.hub8-voice-tag{color:#135891;font-weight:700;display:flex;gap:6px;align-items:center}
.hub8-editor{background:white;padding:12px 17px 15px;border-top:1px solid #e1eaf5}.hub8-editor-note{font-size:10px;color:#8d9caf;margin-bottom:8px}
.hub8-compose{display:flex;align-items:flex-end;gap:8px}.hub8-compose textarea{resize:none;flex:1;border:1px solid #e2eaf5;border-radius:14px;background:#f4f8fd;padding:12px 13px;font-size:13px;min-width:40px;max-height:130px;outline-color:#9ac6ff;color:#233f64}
.hub8-compose-icon,.hub8-send{border:0;display:grid;place-items:center;flex-shrink:0;width:43px;height:43px;border-radius:13px;background:#eef5ff;color:#136dcc}.hub8-send{background:#0865db;color:white}.hub8-compose-icon:disabled,.hub8-send:disabled{opacity:.4}
.hub8-voice-status{min-height:0;font-size:11px;color:#5a7595;font-weight:700}.hub8-voice-status:not(:empty){margin-top:9px;padding:7px 10px;border-radius:10px;background:#fff4f4;display:flex;align-items:center;gap:8px}.hub8-voice-status button{margin-inline-start:auto;background:#d71f3c;color:white;border:0;border-radius:7px;padding:6px 9px;font-size:11px}
.hub8-rec-dot{width:9px;height:9px;border-radius:100%;background:#ee2948;box-shadow:0 0 0 4px #ffdfdf;animation:hub8-pulse 1s ease infinite}
@keyframes hub8-pulse{50%{opacity:.35}}
.hub8-call-page{min-height:calc(100vh - 205px);padding:28px 22px 25px;display:flex;flex-direction:column;align-items:center;gap:10px;background:radial-gradient(ellipse at 50% 23%,#194c92,#051b44 75%);color:white;position:relative}
.hub8-call-warning{background:#fff2;border:1px solid #ffffff48;border-radius:16px;padding:9px 13px;color:#d9e9ff;font-size:11px;text-align:center;max-width:760px}
.hub8-call-identity{text-align:center;margin-top:5px}.hub8-call-logo{width:77px;height:77px;background-size:cover;background-position:center;border:3px solid #9acfff;border-radius:23px;margin:auto;display:grid;place-items:center;box-shadow:0 8px 25px #00122f55}.hub8-call-logo span{font-size:15px;font-weight:850;color:#fff;background:#001b4cb0;padding:5px 8px;border-radius:7px}
.hub8-call-identity h2{font-size:23px;color:white;margin:11px 0 3px}.hub8-call-identity p{font-size:12px;color:#cadbf1;margin:0}
.hub8-media-stage{flex:1;min-height:180px;max-height:470px;width:min(570px,100%);border-radius:23px;background:linear-gradient(145deg,#14396e,#09264b);border:1px solid #87a4d333;position:relative;overflow:hidden;display:grid;place-items:center;box-shadow:0 13px 45px #00152c75}
.hub8-media-stage video{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;transform:scaleX(-1)}
.hub8-media-stage video[hidden]{display:none}.hub8-media-placeholder{display:flex;flex-direction:column;align-items:center;gap:13px;color:#b6dbff}.hub8-media-placeholder[hidden]{display:none}.hub8-media-placeholder span{font-size:12px;color:#b4cfe3}
.hub8-media-stage.audio-stage{max-height:300px;background:radial-gradient(circle,#1c5c9e,#082355)}
.hub8-call-toolbar{display:flex;justify-content:center;flex-wrap:wrap;gap:8px;margin-top:8px;width:min(850px,100%)}
.hub8-call-toolbar button{border:1px solid #ffffff3c;border-radius:12px;padding:10px 12px;color:#fff;background:#ffffff1e;display:inline-flex;align-items:center;gap:6px;font-size:11px;font-weight:800}
.hub8-call-toolbar button:disabled{opacity:.4}.hub8-call-toolbar .hub8-preview-btn{background:#e6f3ff;color:#095fae;border-color:#e7f5ff}.hub8-call-toolbar .hub8-hangup{background:#df2d4c;border-color:#df2d4c}
.hub8-call-helper{max-width:690px;color:#b3c9e4;font-size:10px;line-height:1.6;text-align:center}
.hub8-call-unavailable{padding:35px;text-align:center}.hub8-call-unavailable button{background:#0870dc;color:white;border-radius:12px;border:0;padding:10px 15px}
.hub8-mini-call{position:fixed;bottom:92px;right:24px;z-index:9998;background:#063c80;color:white;border:1px solid #ffffff3b;border-radius:17px;box-shadow:0 15px 45px #0926555c;display:flex;align-items:center;gap:10px;min-width:260px;max-width:calc(100vw - 30px);padding:12px 14px}
.hub8-mini-call>div{flex:1;min-width:0}.hub8-mini-call strong{font-size:12px;display:block;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}.hub8-mini-call small{font-size:10px;color:#c5e1ff}.hub8-mini-call button{border:0;border-radius:8px;background:#ffffff22;color:white;width:29px;height:30px}.hub8-mini-dot{width:9px;height:9px;border-radius:50%;background:#2fce9f}
@media(max-width:900px){.hub8-chatgrid{margin:0 10px 12px;grid-template-columns:1fr}.hub8-empty-chat{display:none}.hub8-head{padding:16px}.hub8-chatgrid{min-height:370px}.hub8-thread{height:calc(100dvh - 180px);min-height:460px}.hub8-thread-head{padding:10px;gap:6px}.hub8-mini-portrait{display:none}.hub8-head-btn{width:36px;height:36px}.hub8-permbar{padding:8px;gap:5px}.hub8-thread-body{padding:15px}.hub8-call-page{min-height:530px;padding:14px 10px}.hub8-call-identity h2{font-size:17px}.hub8-mini-call{bottom:74px;right:10px}}
@media(max-width:560px){.hub8-chatgrid{border:0;box-shadow:none;border-radius:0;margin:0}.hub8-status{font-size:9px;max-width:130px;text-align:center}.hub8-head h2{font-size:20px}.hub8-chat-date{font-size:9px}.hub8-thread{height:calc(100dvh - 180px)}.hub8-thread-person strong{font-size:12px}.hub8-bubble{font-size:11px;max-width:87%}.hub8-compose-icon,.hub8-send{width:36px;height:40px}.hub8-compose textarea{font-size:12px}.hub8-editor{padding:8px}.hub8-call-toolbar button{font-size:10px;padding:9px}}

/* v8.1 visual finishing: responsive HD media, contrast, touch surfaces */
.hub8-contact:focus-visible,.hub8-head-btn:focus-visible,.hub8-call-toolbar button:focus-visible,.hub8-send:focus-visible{outline:3px solid #61a5f7;outline-offset:2px}
.hub8-contact{min-height:74px}.hub8-contact .hub8-portrait{background-repeat:no-repeat}
.hub8-chatgrid{border-color:#d6e3f3;box-shadow:0 14px 36px rgba(6,32,75,.07)}
.hub8-thread-head{box-shadow:0 3px 9px #0b386a0c;z-index:1}
.hub8-mini-call{backdrop-filter:blur(14px);min-height:64px}
@media(max-width:560px){.hub8-thread-person small{font-size:9px}.hub8-chatgrid{min-height:60vh}.hub8-head{align-items:flex-start}.hub8-contact{padding:12px 13px}.hub8-thread-body{background-size:18px 18px}.hub8-mini-call{left:10px;right:10px;max-width:none}}
