*{box-sizing:border-box;margin:0;padding:0}
:root{font-family:Inter,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",Arial,sans-serif;color:#eaf0ff;background:#080a12}
body{min-height:100vh;background:#080a12;color:#eaf0ff}button,input,select{font:inherit}button{cursor:pointer}.hidden{display:none!important}
/* FLIZZ — new clean glassy design */
.auth{min-height:100vh;display:flex;align-items:center;justify-content:center;padding:28px;background:radial-gradient(circle at 15% 20%,#24336d 0,transparent 30%),radial-gradient(circle at 85% 75%,#4b205f 0,transparent 28%),#080a12}
.auth-box{width:min(1080px,100%);min-height:680px;display:grid;grid-template-columns:1.05fr .95fr;overflow:hidden;border:1px solid #ffffff18;border-radius:32px;background:#0e111bcc;backdrop-filter:blur(20px);box-shadow:0 35px 100px #000b}
.auth-left{padding:55px;display:flex;flex-direction:column;justify-content:space-between;background:linear-gradient(145deg,#141a33cc,#11121ddd)}
.brand{text-align:left;margin-top:25px}.logo{width:104px;height:104px;position:relative;margin:0 0 24px}.logo i{position:absolute;inset:8px;border:2px solid #EC1C6F;border-radius:30px 52px 30px 52px;transform:rotate(18deg);box-shadow:0 0 45px #EC1C6F66}.logo b{position:absolute;width:42px;height:42px;left:31px;top:31px;border-radius:14px;background:linear-gradient(135deg,#EC1C6F,#ff72a8);box-shadow:0 0 35px #EC1C6F88}.logo span{position:absolute;width:62px;height:5px;left:20px;top:49px;border-radius:9px;background:#f1f4ff;transform:rotate(-35deg);opacity:.9}
.brand h1{font-size:66px;line-height:1;letter-spacing:-4px}.brand p{margin-top:14px;color:#aab5d2;max-width:400px;font-size:16px;line-height:1.6}.features{display:grid;grid-template-columns:repeat(3,1fr);gap:10px}.features>div{text-align:left;padding:15px;border:1px solid #ffffff12;border-radius:16px;background:#ffffff06;font-size:23px}.features span{display:block;color:#8e9ab8;font-size:12px;line-height:1.4;margin-top:8px}
.auth-right{position:relative;padding:62px}.language{position:absolute;right:28px;top:28px;padding:9px 13px;border:1px solid #ffffff18;border-radius:12px;background:#171a27;color:#dce4f7}.language-menu{position:absolute;right:28px;top:74px;display:none;width:145px;padding:6px;border:1px solid #ffffff18;border-radius:13px;background:#171a27;z-index:5;box-shadow:0 18px 50px #0008}.language-menu.show{display:block}.language-menu button{display:block;width:100%;padding:10px;border:0;border-radius:9px;background:transparent;color:#eaf0ff;text-align:left}.language-menu button:hover{background:#ffffff0d}
.auth-right h2{margin:20px 0 10px;font-size:38px;letter-spacing:-1px}.subtitle{color:#8f9bb8;line-height:1.5;margin-bottom:28px}.input-box{margin-bottom:16px}.input-box input,.modal-input{width:100%;height:55px;padding:0 17px;border:1px solid #ffffff16;border-radius:14px;outline:0;background:#151925;color:#fff}.input-box input:focus,.modal-input:focus{border-color:#EC1C6F;box-shadow:0 0 0 4px #EC1C6F18}.input-box small{display:block;margin-top:6px;color:#68748f;font-size:12px}.primary{width:100%;height:56px;border:0;border-radius:14px;background:linear-gradient(100deg,#EC1C6F,#ff4f9a);color:#fff;font-weight:750;box-shadow:0 12px 30px #EC1C6F2e}.divider{display:flex;align-items:center;gap:14px;margin:22px 0;color:#65718b;font-size:12px}.divider:before,.divider:after{content:"";height:1px;background:#ffffff12;flex:1}.google{width:100%;height:52px;border:1px solid #ffffff16;border-radius:14px;background:#151925;color:#fff}.google span{color:#fff;font-size:18px;font-weight:700;margin-right:8px}.login{margin-top:22px;text-align:center;color:#6e7a95;font-size:14px}.login button{border:0;background:none;color:#ff6fa6;margin-left:5px}.message{position:fixed;right:20px;top:20px;width:min(360px,calc(100% - 40px));padding:15px 17px;border-radius:15px;background:#171a27;border:1px solid #ffffff18;box-shadow:0 18px 55px #0009;transform:translateX(390px);opacity:0;transition:.25s;z-index:100}.message.show{transform:none;opacity:1}.message.error{border-color:#ff607a}
.messenger{height:100vh;padding:18px;background:#080a12}.app{height:100%;display:grid;grid-template-columns:320px 1fr;overflow:hidden;border:1px solid #ffffff12;border-radius:24px;background:#0d1019;box-shadow:0 30px 90px #000b}.sidebar{display:flex;flex-direction:column;background:#10131e;border-right:1px solid #ffffff0f}.profile{display:flex;align-items:center;gap:12px;padding:18px;border-bottom:1px solid #ffffff0f}.avatar,.chat-avatar,.chat-header-avatar{display:flex;align-items:center;justify-content:center;border-radius:14px;background:linear-gradient(135deg,#EC1C6F,#ff5b9f);font-weight:800}.avatar{width:44px;height:44px;border-radius:15px}.profile-name{flex:1}.profile-name b{display:block}.profile-name small{color:#a9b2ff;font-size:11px}.icon-btn{width:38px;height:38px;border:0;border-radius:11px;background:transparent;color:#8f9ab3;font-size:18px}.icon-btn:hover{background:#ffffff09;color:#fff}.search{padding:14px}.search input{width:100%;height:43px;padding:0 13px;border:1px solid #ffffff12;border-radius:12px;background:#171a25;color:#fff;outline:0}.new-chat{margin:0 14px 12px;height:44px;border:1px solid #8d86ff44;border-radius:12px;background:#EC1C6F14;color:#ff76ab;font-weight:650}.new-chat:hover{background:#EC1C6F20}.chat-list{flex:1;overflow:auto}.chat{display:flex;align-items:center;gap:12px;padding:12px 16px;cursor:pointer;border-left:3px solid transparent}.chat:hover,.chat.selected{background:#ffffff08;border-left-color:#EC1C6F}.chat-avatar{width:43px;height:43px;flex:none}.chat-info{min-width:0;flex:1}.chat-info b,.chat-info span{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.chat-info b{font-size:14px}.chat-info span{margin-top:4px;color:#69758e;font-size:12px}.logout{margin:10px 14px 14px;height:42px;border:1px solid #ffffff12;border-radius:12px;background:transparent;color:#9ca7bd}.chat-window{display:flex;flex-direction:column;background:radial-gradient(circle at 50% 0,#1b2040 0,transparent 35%),#0b0e16}.chat-header{height:74px;display:flex;align-items:center;padding:0 20px;border-bottom:1px solid #ffffff0f;background:#0d1019cc;backdrop-filter:blur(12px)}.chat-header-avatar{width:43px;height:43px;margin-right:12px}.chat-user{flex:1}.chat-user b{display:block}.chat-user small{color:#8f99ff}.header-actions{display:flex;gap:4px}.mobile-back{display:none}.messages{flex:1;padding:25px;overflow:auto;display:flex;flex-direction:column;gap:9px}.bubble-wrap{display:flex;flex-direction:column;max-width:70%}.bubble-wrap.me{align-self:flex-end;align-items:flex-end}.bubble{padding:11px 15px;border-radius:17px;background:#171b28;color:#dce4f7;border:1px solid #ffffff09;word-break:break-word}.bubble-wrap.me .bubble{background:linear-gradient(100deg,#EC1C6F,#ff4f9a);border:0}.time{margin-top:4px;color:#5f6b83;font-size:10px}.typing{display:none;padding:0 25px 10px;color:#ff5b9f;font-size:12px}.composer{display:flex;gap:10px;padding:15px;border-top:1px solid #ffffff0f;background:#0d1019}.composer input{flex:1;height:50px;padding:0 17px;border:1px solid #ffffff12;border-radius:14px;background:#151925;color:#fff;outline:0}.send{width:55px;border:0;border-radius:14px;background:linear-gradient(135deg,#EC1C6F,#ff4f9a);color:#fff;font-size:20px}
.modal-bg{position:fixed;inset:0;display:none;align-items:center;justify-content:center;background:#000b;backdrop-filter:blur(8px);z-index:50}.modal-bg.show{display:flex}.modal{width:500px;max-width:calc(100% - 30px);padding:25px;border:1px solid #ffffff16;border-radius:22px;background:#111520;box-shadow:0 30px 100px #000d}.small-modal{width:430px}.modal-header{display:flex;align-items:center;margin-bottom:22px}.modal-header h3{flex:1;font-size:24px}.close{width:35px;height:35px;border:0;border-radius:10px;background:#ffffff09;color:#b8c1d5;font-size:20px}.setting{display:flex;align-items:center;gap:15px;padding:15px 0;border-bottom:1px solid #ffffff0f}.setting:last-child{border:0}.setting-icon{width:42px;height:42px;display:flex;align-items:center;justify-content:center;border-radius:12px;background:#ffffff08;font-size:20px}.setting-info{flex:1}.setting-info b{display:block}.setting-info span{display:block;margin-top:4px;color:#707c94;font-size:12px}.setting select{padding:8px;border:1px solid #ffffff16;border-radius:9px;background:#171a25;color:#fff}.toggle{width:46px;height:25px;padding:3px;border:0;border-radius:20px;background:#303747}.toggle.on{background:#EC1C6F}.toggle:after{content:"";display:block;width:19px;height:19px;border-radius:50%;background:#fff;transition:.2s}.toggle.on:after{transform:translateX(21px)}.modal-help{color:#707c94;margin-bottom:12px}.modal-actions{display:flex;gap:10px;margin-top:14px}.secondary,.small-primary{height:48px;border-radius:12px}.secondary{flex:1;border:1px solid #ffffff16;background:transparent;color:#b9c3d7}.small-primary{flex:1}
body.light{background:#eef1f7;color:#1c2333}body.light .auth{background:radial-gradient(circle at 15% 20%,#d9e0ff 0,transparent 30%),radial-gradient(circle at 85% 75%,#eedbfa 0,transparent 28%),#eef1f7}body.light .auth-box{background:#ffffffdd;border-color:#d9deea;box-shadow:0 30px 80px #66708525}body.light .auth-left{background:linear-gradient(145deg,#f4f6ff,#f7f3ff);color:#1c2333}body.light .brand p{color:#68738a}body.light .features>div{border-color:#dfe3ed;background:#ffffff88}body.light .features span{color:#737e93}body.light .auth-right{background:#fff}body.light .language{background:#f7f8fb;color:#293247;border-color:#d9deea}body.light .language-menu{background:#fff;border-color:#d9deea}.light .language-menu button{color:#1c2333}body.light .input-box input,body.light .modal-input{background:#f8f9fc;color:#1c2333;border-color:#d9deea}body.light .google{color:#293247;background:#fff;border-color:#d9deea}body.light .app{background:#f7f8fb;border-color:#d9deea;box-shadow:0 25px 70px #66708525}body.light .sidebar{background:#fff;border-color:#e0e4ed}body.light .search input,body.light .composer input{background:#f7f8fb;color:#1c2333;border-color:#d9deea}body.light .chat:hover,body.light .chat.selected{background:#f0f2f8}body.light .chat-window{background:radial-gradient(circle at 50% 0,#e9e8ff 0,transparent 35%),#f7f8fb}body.light .chat-header,body.light .composer{background:#ffffffdd;border-color:#e0e4ed}body.light .bubble{background:#fff;color:#1c2333;border-color:#e0e4ed}body.light .modal{background:#fff;color:#1c2333;border-color:#d9deea}body.light .close{background:#f0f2f7;color:#47536b}body.light .setting{border-color:#e4e7ee}body.light .setting select{background:#f8f9fc;color:#1c2333;border-color:#d9deea}body.light .logout{color:#56627a;border-color:#d9deea}
@media(max-width:800px){.auth{padding:0}.auth-box{width:100%;min-height:100vh;grid-template-columns:1fr;border:0;border-radius:0}.auth-left{display:none}.auth-right{padding:80px 24px 35px}.messenger{padding:0}.app{grid-template-columns:1fr;border:0;border-radius:0}.sidebar{position:absolute;inset:0;width:100%;z-index:10}.chat-window{position:relative;z-index:1}.messenger.mobile-chat .sidebar{display:none}.messenger.mobile-chat .chat-window{display:flex}.mobile-back{display:block;margin-right:4px}.header-actions .icon-btn{width:34px}.messages{padding:18px}.bubble-wrap{max-width:82%}}
@media(min-width:801px){.sidebar{display:flex!important}}

.setting-button{width:100%;border:0;background:transparent;color:inherit;text-align:left}.setting-button:hover{background:#ffffff06}.setting-arrow{font-size:28px;color:#71809a;padding-right:4px}.profile-modal{width:460px}.profile-big-avatar{width:86px;height:86px;margin:0 auto 22px;display:flex;align-items:center;justify-content:center;border-radius:27px;background:linear-gradient(135deg,#EC1C6F,#ff5b9f);font-size:34px;font-weight:850;box-shadow:0 15px 45px #EC1C6F35}.profile-fields{display:grid;gap:13px;margin-bottom:18px}.profile-fields label span{display:block;margin:0 0 6px;color:#7b879e;font-size:12px}.profile-fields input{width:100%;height:47px;padding:0 13px;border:1px solid #ffffff16;border-radius:12px;background:#151925;color:#fff;outline:0}.profile-fields input:focus{border-color:#EC1C6F;box-shadow:0 0 0 4px #EC1C6F18}.profile-fields input:disabled{opacity:.65;cursor:not-allowed}body.light .setting-button:hover{background:#f1f3f8}body.light .profile-fields input{background:#f8f9fc;color:#1c2333;border-color:#d9deea}

/* v7 — message actions */
.bubble-row{display:flex;align-items:center;gap:6px}.delete-message{width:25px;height:25px;flex:none;border:1px solid #ffffff12;border-radius:8px;background:#111522;color:#8b96ad;opacity:0;cursor:pointer;transition:.18s;font-size:17px;line-height:1}.bubble-row:hover .delete-message{opacity:1}.delete-message:hover{color:#fff;background:#EC1C6F;border-color:#EC1C6F}.bubble-wrap.me .delete-message{order:-1}.bubble-wrap.me .bubble-row{justify-content:flex-end}body.light .delete-message{background:#fff;color:#69758a;border-color:#dfe3ed}body.light .delete-message:hover{background:#EC1C6F;color:#fff;border-color:#EC1C6F}
@media(max-width:800px){.delete-message{opacity:.7}.bubble-row{gap:5px}}

/* v9 polish */

/* v10.1.4 — keep composer fixed and make only message area scroll */
html,body{height:100%;overflow:hidden}
.chat-window{min-width:0;min-height:0}
.messages{min-width:0;min-height:0;overflow-y:auto;overflow-x:hidden;overscroll-behavior:contain;scrollbar-gutter:stable}
.composer{flex:none;min-width:0}
.composer input{min-width:0}
@media(max-width:800px){
  .messenger{height:100dvh;min-height:0}
  .app{height:100dvh;min-height:0}
  .chat-window{height:100%;min-height:0}
  .messages{min-height:0}
  .composer{padding-bottom:max(15px,env(safe-area-inset-bottom));}
}

/* v10.1.5 — polished light theme + photo messages */
.composer-main{flex:1;min-width:0;display:flex;flex-direction:column;gap:7px}
.attach{width:50px;height:50px;flex:none;border:1px solid #ffffff12;border-radius:14px;background:#151925;color:#aeb8cd;font-size:25px;line-height:1}
.attach:hover{background:#ffffff0a;color:#fff}
.photo-preview{position:relative;width:max-content;max-width:180px;height:80px}
.photo-preview img{height:80px;max-width:180px;object-fit:cover;border-radius:12px;border:1px solid #ffffff18}
.photo-preview button{position:absolute;right:-8px;top:-8px;width:25px;height:25px;border:0;border-radius:50%;background:#222839;color:#fff;font-size:17px}
.message-image{display:block;max-width:min(360px,70vw);max-height:360px;border-radius:12px;object-fit:cover}
.message-caption{margin-top:7px;white-space:pre-wrap}
body.light{background:#eef2f7;color:#202737}
body.light .messenger{background:#eef2f7}
body.light .app{background:#fff;border-color:#dfe4ec;box-shadow:0 18px 55px #53617418}
body.light .sidebar{background:#fff;border-right-color:#e4e8ef}
body.light .profile{border-bottom-color:#e8ebf1}
body.light .search input{background:#f4f6f9;color:#202737;border-color:#e0e4eb}
body.light .new-chat{background:#fff1f7;border-color:#ffd0e2}
body.light .chat:hover,body.light .chat.selected{background:#f5f7fa}
body.light .chat-window{background:#f5f7fa}
body.light .chat-header{background:#fffffff2;border-bottom-color:#e3e7ee}
body.light .messages{background:#f5f7fa}
body.light .bubble{background:#fff;color:#252d3c;border-color:#e1e5ec;box-shadow:0 2px 8px #66708512}
body.light .bubble-wrap.me .bubble{color:#fff;box-shadow:none}
body.light .composer{background:#fff;border-top-color:#e3e7ee}
body.light .composer input{background:#f5f7fa;color:#202737;border-color:#dfe4eb}
body.light .attach{background:#f5f7fa;color:#667085;border-color:#dfe4eb}
body.light .attach:hover{background:#edf0f5;color:#202737}
body.light .send{box-shadow:0 6px 18px #EC1C6F22}
body.light .delete-message{background:#fff}
@media(max-width:800px){
 .composer{gap:7px;padding-left:10px;padding-right:10px}
 .attach{width:46px;height:46px}
 .send{width:48px;height:46px}
 .composer input{height:46px}
 .message-image{max-width:72vw;max-height:280px}
}

.send:disabled{opacity:.55;cursor:wait;pointer-events:none}.message-image{display:block;max-width:min(360px,70vw);max-height:420px;width:auto;height:auto;object-fit:contain;border-radius:12px}.message-caption{margin-top:6px}.chat-list,.messages{contain:layout paint}.messages{will-change:scroll-position}

.messages-loading{margin:auto;color:var(--muted);font-size:14px}
.message-image{display:block;max-width:min(360px,70vw);max-height:420px;object-fit:contain}

/* v10.1.8 — genuinely designed light theme (not an inverted dark theme) */
body.light{
  --light-bg:#f4f6f8; --light-panel:#ffffff; --light-panel-2:#f8fafb; --light-border:#e6e9ee;
  --light-text:#18202a; --light-muted:#7b8491; --light-hover:#f1f4f7; --light-soft:#f7f8fa;
  background:var(--light-bg);color:var(--light-text);
}
body.light .messenger{background:#f4f6f8;padding:14px}
body.light .app{background:#fff;border:1px solid #e5e8ed;border-radius:18px;box-shadow:0 10px 35px rgba(24,32,42,.08)}
body.light .sidebar{background:#fff;border-right:1px solid #e8ebef}
body.light .profile{border-bottom:1px solid #edf0f3;padding:16px}
body.light .profile-name b,body.light .chat-name,body.light .chat-header-info b{color:#18202a}
body.light .profile-name small,body.light .chat-header-info small{color:#87909c}
body.light .icon-btn{color:#7a8490}
body.light .icon-btn:hover{background:#f2f4f6;color:#18202a}
body.light .search{padding:12px 14px 10px}
body.light .search input{background:#f6f7f9;border:1px solid #e5e8ec;color:#18202a;box-shadow:none}
body.light .search input:focus{background:#fff;border-color:#cfd5dc;box-shadow:0 0 0 3px rgba(236,28,111,.08)}
body.light .new-chat{margin:0 14px 10px;background:#fff;border:1px solid #e6e9ee;color:#4c5663;box-shadow:0 1px 2px rgba(24,32,42,.03)}
body.light .new-chat:hover{background:#f8fafb;border-color:#d9dee5}
body.light .chat-list{padding:4px 8px 10px}
body.light .chat{border-radius:12px;margin:2px 0;color:#313a46}
body.light .chat:hover{background:#f5f7f9}
body.light .chat.selected{background:#f0f2f5}
body.light .chat.selected .chat-name{color:#111923}
body.light .chat-meta,body.light .chat-preview{color:#8a939f}
body.light .chat-window{background:#f7f8fa}
body.light .chat-header{background:rgba(255,255,255,.96);border-bottom:1px solid #e7eaee;box-shadow:0 1px 3px rgba(24,32,42,.03)}
body.light .messages{background:#f7f8fa}
body.light .empty-state{color:#7f8995}
body.light .bubble{background:#fff;color:#28313c;border:1px solid #e5e8ec;box-shadow:0 1px 2px rgba(24,32,42,.045)}
body.light .bubble-wrap.me .bubble{background:#ec1c6f;color:#fff;border:0;box-shadow:0 2px 6px rgba(236,28,111,.18)}
body.light .time{color:#929aa5}
body.light .bubble-wrap.me .time{color:#9a7b88}
body.light .delete-message{background:#fff;color:#7b8490;border-color:#e2e6eb;box-shadow:0 1px 2px rgba(24,32,42,.04)}
body.light .delete-message:hover{background:#ec1c6f;color:#fff;border-color:#ec1c6f}
body.light .composer{background:#fff;border-top:1px solid #e7eaee;padding:12px}
body.light .composer input{background:#f6f7f9;border:1px solid #e3e7eb;color:#18202a;box-shadow:none}
body.light .composer input:focus{background:#fff;border-color:#ccd2d9;box-shadow:0 0 0 3px rgba(236,28,111,.07)}
body.light .attach{background:#f6f7f9;color:#69737f;border:1px solid #e3e7eb}
body.light .attach:hover{background:#eef1f4;color:#303944}
body.light .send{background:#ec1c6f;box-shadow:0 4px 12px rgba(236,28,111,.18)}
body.light .send:hover{filter:brightness(.96)}
body.light .photo-preview img{border-color:#e2e6eb}
body.light .photo-preview button{background:#303844;color:#fff}
body.light .modal-bg{background:rgba(20,27,35,.32);backdrop-filter:blur(5px)}
body.light .modal{background:#fff;color:#18202a;border:1px solid #e4e8ed;box-shadow:0 18px 60px rgba(24,32,42,.16)}
body.light .close{background:#f3f5f7;color:#65707c}
body.light .close:hover{background:#e9edf1;color:#18202a}
body.light .setting{border-bottom-color:#edf0f3}
body.light .setting-icon{background:#f3f5f7}
body.light .setting-info span{color:#858f9b}
body.light .setting select{background:#f7f8fa;color:#29323d;border-color:#e1e5ea}
body.light .logout{color:#65707c;border-color:#e1e5ea}
body.light .profile-fields input,body.light .modal-input{background:#f7f8fa;color:#18202a;border-color:#e1e5ea}
body.light .profile-fields input:focus,body.light .modal-input:focus{background:#fff}
body.light .language{background:#fff;color:#3a4450;border-color:#e2e6eb}
body.light .language-menu{background:#fff;border-color:#e2e6eb;box-shadow:0 12px 35px rgba(24,32,42,.12)}
body.light .language-menu button{color:#303944}
body.light .language-menu button:hover{background:#f3f5f7}
body.light .message{background:#fff;color:#26303b;border-color:#e3e7ec;box-shadow:0 12px 35px rgba(24,32,42,.12)}
body.light .message.error{border-color:#f0a1b8}
body.light .messages-loading{color:#7e8894}

/* light auth screen */
body.light .auth{background:#f4f6f8}
body.light .auth-box{background:#fff;border:1px solid #e4e8ed;box-shadow:0 20px 60px rgba(24,32,42,.10);backdrop-filter:none}
body.light .auth-left{background:#fafbfc;color:#18202a;border-right:1px solid #edf0f3}
body.light .brand p{color:#737d89}
body.light .features>div{background:#fff;border-color:#e7eaee}
body.light .features span{color:#7f8995}
body.light .auth-right{background:#fff}
body.light .auth-right h2{color:#18202a}
body.light .subtitle{color:#7b8591}
body.light .input-box input{background:#f7f8fa;color:#18202a;border-color:#e1e5ea}
body.light .input-box input:focus{background:#fff}
body.light .input-box small{color:#8b949f}
body.light .google{background:#fff;color:#28313c;border-color:#e1e5ea}
body.light .divider{color:#8b949f}
body.light .divider:before,body.light .divider:after{background:#e8ebef}

@media(max-width:800px){body.light .messenger{padding:0}body.light .app{border-radius:0;box-shadow:none}}
/* v10.1.9.9.9 polished icons + verification */
.ui-icon,.feature-icon{width:20px;height:20px;display:block;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round;flex:none}.feature-icon{width:30px;height:30px;color:#EC1C6F;margin-bottom:9px}.feature-icon path:first-child{fill:currentColor;stroke:none;opacity:.12}.feature-icon .icon-cut{fill:none;stroke:currentColor;stroke-width:2}.features>div{font-size:0}.features span{font-size:12px}.language{display:flex;align-items:center;gap:8px}.language .ui-icon{width:17px;height:17px}.chevron{font-size:16px;line-height:1}.google{display:flex;align-items:center;justify-content:center;gap:10px}.google-icon{width:21px;height:21px;display:grid;place-items:center;font-family:Arial,sans-serif;font-size:18px;font-weight:700;color:#4285F4}.setting-icon .ui-icon{width:21px;height:21px}.new-chat,.logout{display:flex;align-items:center;justify-content:center;gap:8px}.new-chat .ui-icon,.logout .ui-icon{width:17px;height:17px}.header-actions .ui-icon{width:19px;height:19px}.send .ui-icon{width:21px;height:21px}.attach .ui-icon{width:20px;height:20px}.icon-btn{display:flex;align-items:center;justify-content:center}.verification-code{text-align:center;font-size:22px;letter-spacing:6px;font-weight:700;margin-bottom:12px}.verification-modal .primary{margin-top:4px}.resend-code{display:block;margin:13px auto 0;border:0;background:none;color:#EC1C6F;font-size:13px}.resend-code:disabled{opacity:.5;cursor:not-allowed}
body.light .feature-icon{color:#EC1C6F}body.light .language-menu button{color:#1c2333}body.light .features>div{background:#fff;border-color:#e1e5ee;box-shadow:0 6px 18px rgba(40,50,70,.05)}body.light .google-icon{color:#4285F4}body.light .setting-icon{background:#f1f3f7;color:#58657d}body.light .ui-icon{color:currentColor}

.lang-mark{display:inline-grid;place-items:center;width:24px;height:18px;border-radius:5px;background:#f0f2f6;color:#596579;font-size:10px;font-weight:800;letter-spacing:.3px}.language-menu button{display:flex;align-items:center;gap:6px}

/* v10.1.9.9.9.3 — stable composer icons */
.attach,.send{display:flex;align-items:center;justify-content:center;padding:0;overflow:hidden}
.attach .ui-icon,.send .ui-icon{width:21px;height:21px;margin:0;transform:none}
.google-icon{display:grid;place-items:center;width:21px;height:21px;flex:none}
.google-icon svg{display:block;width:21px;height:21px}

/* v10.1.9.9.9.5 — avatars, typing and message motion */
.avatar,.chat-avatar,.chat-header-avatar,.profile-big-avatar{background-size:cover;background-position:center;background-repeat:no-repeat}
.avatar.has-photo,.chat-avatar.has-photo,.chat-header-avatar.has-photo,.profile-big-avatar.has-photo{font-size:0}
.profile-avatar-edit{display:flex;flex-direction:column;align-items:center;gap:10px;margin:4px 0 18px}.avatar-upload{cursor:pointer;padding:8px 13px;border-radius:10px;border:1px solid #343b4b;background:#1d2230;color:#fff;font-size:13px;transition:.2s}.avatar-upload:hover{transform:translateY(-1px);filter:brightness(1.12)}
.typing-dots{display:inline-flex;gap:3px;align-items:center;margin-right:4px;vertical-align:middle}.typing-dots i{width:4px;height:4px;border-radius:50%;background:currentColor;animation:typingDot 1s infinite ease-in-out}.typing-dots i:nth-child(2){animation-delay:.15s}.typing-dots i:nth-child(3){animation-delay:.3s}@keyframes typingDot{0%,60%,100%{transform:translateY(0);opacity:.45}30%{transform:translateY(-3px);opacity:1}}
.bubble-wrap{animation:messageIn .22s cubic-bezier(.2,.8,.2,1)}.bubble-wrap.me{animation:messageOut .25s cubic-bezier(.2,.8,.2,1)}@keyframes messageIn{from{opacity:0;transform:translateY(8px) scale(.97)}to{opacity:1;transform:none}}@keyframes messageOut{from{opacity:0;transform:translateY(8px) scale(.94)}to{opacity:1;transform:none}}
.send:active{transform:scale(.91)}.attach:active{transform:scale(.94)}.chat-avatar,.avatar,.chat-header-avatar{transition:transform .2s,box-shadow .2s}.chat:hover .chat-avatar{transform:scale(1.04)}
.notification-pulse{animation:notifyPulse .55s ease-out}@keyframes notifyPulse{0%{box-shadow:0 0 0 0 rgba(236,28,111,.45)}100%{box-shadow:0 0 0 10px transparent}}
body.light .avatar-upload{background:#f4f6f8;color:#394352;border-color:#dfe4ea}

/* Flizz calls */
.call-overlay{position:fixed;inset:0;z-index:9999;display:flex;align-items:center;justify-content:center;padding:20px;background:rgba(3,5,12,.78);backdrop-filter:blur(12px);-webkit-backdrop-filter:blur(12px);animation:callFadeIn .22s ease both}
.call-card{width:min(430px,calc(100vw - 32px));border:1px solid rgba(255,255,255,.12);border-radius:26px;background:linear-gradient(180deg,rgba(25,29,45,.98),rgba(12,15,27,.98));box-shadow:0 24px 80px rgba(0,0,0,.55);padding:24px;animation:callCardIn .28s cubic-bezier(.2,.8,.2,1) both}
.call-top{display:flex;align-items:center;justify-content:center;gap:14px;text-align:left;margin-bottom:18px}
.call-avatar{width:68px;height:68px;border-radius:50%;display:flex;align-items:center;justify-content:center;flex:0 0 68px;background:linear-gradient(135deg,#6675ff,#8c5cff);background-size:cover;background-position:center;color:#fff;font-size:27px;font-weight:800;box-shadow:0 8px 28px rgba(92,88,255,.3)}
.call-person{display:flex;flex-direction:column;gap:5px;min-width:0}.call-person b{font-size:20px}.call-person span{font-size:13px;opacity:.7}
.call-video-wrap{position:relative;aspect-ratio:16/10;overflow:hidden;border-radius:18px;background:#05070d;margin:8px 0 18px}.remote-video{width:100%;height:100%;object-fit:cover;display:block}.local-video{position:absolute;right:10px;bottom:10px;width:30%;max-height:35%;aspect-ratio:16/10;object-fit:cover;border:2px solid rgba(255,255,255,.7);border-radius:12px;background:#111;box-shadow:0 8px 20px rgba(0,0,0,.4)}
.call-actions{display:flex;align-items:center;justify-content:center;gap:18px}.call-action{width:58px;height:58px;border:0;border-radius:50%;color:#fff;font-size:24px;display:flex;align-items:center;justify-content:center;box-shadow:0 8px 22px rgba(0,0,0,.25);transition:transform .16s ease,filter .16s ease}.call-action:hover{transform:scale(1.06);filter:brightness(1.08)}.call-action:active{transform:scale(.94)}.call-action.reject{background:#e34b5f}.call-action.accept{background:#28b86f}.call-action.mute,.call-action.camera{background:#3b4259}.call-action.off{background:#e34b5f}
@keyframes callFadeIn{from{opacity:0}to{opacity:1}}@keyframes callCardIn{from{opacity:0;transform:translateY(14px) scale(.96)}to{opacity:1;transform:none}}
@media(max-width:560px){.call-card{border-radius:22px;padding:20px}.call-action{width:54px;height:54px}.call-avatar{width:60px;height:60px;flex-basis:60px}}

/* v10.1.9.9.9.10 — call icons and live profile avatars */
.call-icon{width:24px;height:24px;fill:none;stroke:currentColor;stroke-width:1.9;stroke-linecap:round;stroke-linejoin:round;display:block}
.call-action.reject .call-icon{transform:rotate(-2deg)}

/* v10.1.9.9.9.12 — profiles, chat menu and settings alignment */
.chat-profile-trigger{display:flex;align-items:center;gap:11px;flex:1;min-width:0;padding:0;border:0;background:none;color:inherit;text-align:left;cursor:pointer}
.chat-profile-trigger .chat-user{min-width:0}
.chat-profile-trigger:hover .chat-header-avatar{transform:scale(1.035);box-shadow:0 6px 22px rgba(236,28,111,.14)}
.chat-profile-trigger:hover .chat-user b{text-decoration:underline;text-decoration-color:rgba(236,28,111,.55);text-underline-offset:3px}
.chat-menu-modal{width:390px}
.chat-menu-item{width:100%;display:flex;align-items:center;gap:13px;padding:14px 12px;border:0;border-radius:13px;background:transparent;color:inherit;text-align:left;font:inherit;cursor:pointer;transition:background .16s,transform .16s,color .16s}
.chat-menu-item:hover{background:#ffffff09;transform:translateX(2px)}
.chat-menu-item .ui-icon{width:20px;height:20px;color:#aab4c8}
.chat-menu-item.danger{color:#ff6c84}
.chat-menu-item.danger .ui-icon{color:currentColor}
.profile-view-fields{display:grid;gap:12px}
.profile-view-fields>div{padding:13px 14px;border:1px solid #ffffff10;border-radius:13px;background:#ffffff06}
.profile-view-fields span{display:block;color:#7e899f;font-size:11px;margin-bottom:5px}
.profile-view-fields b{font-size:15px;font-weight:650;word-break:break-word}
.user-profile-modal .profile-avatar-edit{margin-bottom:17px}
.setting{min-height:72px}
.setting-icon{width:42px;height:42px;flex:0 0 42px}
.setting-info{min-width:0}
.setting-info b,.setting-info span{line-height:1.2}
.setting select,.setting .toggle{flex:0 0 auto}
@media(max-width:560px){.chat-menu-modal{width:calc(100% - 30px)}.chat-menu-item{padding:15px 10px}.setting{gap:12px}}
body.light .chat-menu-item:hover{background:#f2f4f7}
body.light .profile-view-fields>div{background:#f7f8fa;border-color:#e4e8ed}

.no-animations *, .no-animations *::before, .no-animations *::after{animation:none!important;transition:none!important}
.setting{min-height:64px;align-items:center}.setting-icon{width:42px;height:42px;display:flex;align-items:center;justify-content:center;flex:none}.setting-info{flex:1;min-width:0}.setting-info b,.setting-info span{display:block}.setting-info span{margin-top:4px}.setting-button{width:100%;text-align:left;cursor:pointer}.setting-arrow{font-size:25px;line-height:1;color:#74809a;flex:none}

/* v10.1.9.9.9.16 — unread counters and no-bot empty state */
.chat{position:relative}.unread-badge{margin-left:auto;min-width:22px;height:22px;padding:0 6px;border-radius:999px;display:flex;align-items:center;justify-content:center;background:#EC1C6F;color:#fff;font-size:11px;font-weight:800;line-height:1;box-shadow:0 4px 12px rgba(236,28,111,.28)}
.chat-empty-list{padding:34px 20px;display:flex;flex-direction:column;align-items:center;text-align:center;gap:8px;color:#7d889d}.chat-empty-list b{color:inherit;font-size:15px}.chat-empty-list span{font-size:12px;line-height:1.45;max-width:210px}.empty-list-icon{width:46px;height:46px;border-radius:15px;display:grid;place-items:center;background:#EC1C6F14;color:#EC1C6F;font-size:27px;font-weight:400;margin-bottom:4px}.empty-list-button{margin-top:8px;border:0;border-radius:11px;padding:10px 15px;background:#EC1C6F;color:#fff;font-weight:700;cursor:pointer;box-shadow:0 8px 20px rgba(236,28,111,.22)}.empty-list-button:hover{filter:brightness(1.06);transform:translateY(-1px)}


/* v10.1.9.9.9.18 — louder UI sounds + photo viewer */
.bubble.image-bubble{padding:4px;overflow:hidden}
.bubble.image-bubble .message-caption{padding:2px 8px 5px}
.message-image{cursor:zoom-in;display:block;max-width:min(330px,65vw);max-height:360px;width:auto;height:auto;object-fit:contain;border-radius:10px;transition:transform .18s ease,filter .18s ease}
.message-image:hover{transform:scale(1.015);filter:brightness(1.04)}
.photo-viewer{position:fixed;inset:0;z-index:10001;display:flex;align-items:center;justify-content:center;padding:30px;background:rgba(0,0,0,.88);backdrop-filter:blur(8px);opacity:0;visibility:hidden;pointer-events:none;transition:opacity .18s ease,visibility .18s ease}
.photo-viewer.show{opacity:1;visibility:visible;pointer-events:auto}
.photo-viewer img{max-width:92vw;max-height:90vh;width:auto;height:auto;object-fit:contain;border-radius:12px;box-shadow:0 20px 80px rgba(0,0,0,.5);transform:scale(.96);transition:transform .2s ease}
.photo-viewer.show img{transform:scale(1)}
.photo-viewer-close{position:absolute;top:18px;right:22px;width:44px;height:44px;border:0;border-radius:50%;background:rgba(255,255,255,.12);color:#fff;font-size:30px;line-height:1;cursor:pointer}
.photo-viewer-close:hover{background:rgba(255,255,255,.2)}
@media(max-width:800px){.message-image{max-width:68vw;max-height:300px}.photo-viewer{padding:18px}.photo-viewer img{max-width:96vw;max-height:88vh}}


/* v10.1.9.9.9.19 — message replies, forwarding and photo actions */
.message-actions{display:flex;align-items:center;gap:4px;position:absolute;right:0;top:-34px;padding:4px;border-radius:10px;background:#151a28;border:1px solid #ffffff12;opacity:0;pointer-events:none;transform:translateY(4px);transition:.16s;z-index:5}.bubble-row{position:relative}.bubble-row:hover .message-actions{opacity:1;pointer-events:auto;transform:none}.message-actions button{width:30px;height:30px;border:0;border-radius:8px;background:transparent;color:#9ca7bb;display:grid;place-items:center;cursor:pointer}.message-actions button:hover{background:#ffffff10;color:#fff}.message-actions .delete-message{position:static;opacity:1;width:30px;height:30px}.reply-quote{display:flex;flex-direction:column;gap:2px;border-left:3px solid #ec1c6f;background:#ec1c6f12;padding:6px 9px;border-radius:7px;margin-bottom:6px;max-width:100%}.reply-quote b{font-size:11px;color:#ec1c6f}.reply-quote span{font-size:12px;color:#9aa5ba;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.forwarded-label{font-size:11px;color:#ec1c6f;font-weight:700;margin-bottom:5px}.reply-preview{display:flex;align-items:center;gap:10px;padding:8px 14px;background:#111522;border-top:1px solid #ffffff10}.reply-preview-info{display:flex;flex-direction:column;gap:2px;min-width:0;flex:1;border-left:3px solid #ec1c6f;padding-left:9px}.reply-preview-info b{font-size:11px;color:#ec1c6f}.reply-preview-info span{font-size:12px;color:#9aa5ba;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.reply-preview-close{width:30px;height:30px;border:0;border-radius:8px;background:#ffffff08;color:#aab4c6;font-size:20px;cursor:pointer}.photo-viewer-top{position:absolute;top:18px;left:18px;right:18px;display:flex;align-items:center;justify-content:space-between;z-index:2}.photo-viewer-actions{display:flex;gap:8px;margin-left:auto}.photo-viewer-actions button{width:44px;height:44px;border:0;border-radius:12px;background:rgba(255,255,255,.12);color:#fff;display:grid;place-items:center;cursor:pointer;backdrop-filter:blur(8px)}.photo-viewer-actions button:hover{background:rgba(255,255,255,.2)}.forward-chat-list{display:flex;flex-direction:column;gap:7px;max-height:360px;overflow:auto}.forward-chat{display:flex;align-items:center;gap:10px;width:100%;padding:9px;border:1px solid #ffffff10;border-radius:12px;background:#ffffff05;color:inherit;text-align:left;cursor:pointer}.forward-chat:hover{background:#ec1c6f12;border-color:#ec1c6f35}.forward-chat .chat-avatar{width:38px;height:38px;flex:none}.forward-chat span{font-weight:700}.photo-viewer-close{position:static!important}.photo-viewer-top .photo-viewer-close{flex:none}@media(max-width:800px){.message-actions{opacity:1;pointer-events:auto;position:static;transform:none;background:transparent;border:0;padding:0;order:2}.message-actions button{width:28px;height:28px}.bubble-row{align-items:flex-end}.photo-viewer-top{top:12px;left:12px;right:12px}.photo-viewer-actions button,.photo-viewer-top .photo-viewer-close{width:40px;height:40px}}

/* v10.1.9.9.9.20 — polished message meta + richer call UI */
.reply-quote,.forwarded-label{position:relative;z-index:1}
.reply-quote{border-left:4px solid #ec1c6f;background:linear-gradient(90deg,rgba(236,28,111,.16),rgba(236,28,111,.07));padding:8px 10px 8px 12px;margin-bottom:7px;border-radius:9px;box-shadow:inset 0 0 0 1px rgba(236,28,111,.12)}
.reply-quote b,.forwarded-label{color:#ff5d9b!important;font-weight:800;letter-spacing:.1px}
.reply-quote span{color:#d8deea!important;font-size:12px;line-height:1.35}
.forwarded-label{display:block;padding:6px 9px;border-left:4px solid #ec1c6f;border-radius:7px;background:rgba(236,28,111,.11);margin-bottom:7px;font-size:12px;line-height:1.25}
.bubble{overflow:visible}
.call-card{position:relative;overflow:hidden;width:min(500px,calc(100vw - 32px));padding:28px}
.call-top{margin-bottom:22px}
.call-person b{font-size:21px}.call-person span{font-size:13px}
.call-actions{gap:14px;margin-top:18px}.call-action{width:60px;height:60px}
.call-reactions{display:flex;justify-content:center;gap:8px;margin:2px auto 0;padding:7px 9px;border-radius:18px;background:rgba(255,255,255,.055);border:1px solid rgba(255,255,255,.08);width:max-content;max-width:100%}
.call-reaction{width:42px;height:38px;border:0;border-radius:12px;background:rgba(255,255,255,.055);cursor:pointer;font-size:20px;display:grid;place-items:center;transition:transform .16s ease,background .16s ease}
.call-reaction:hover{transform:translateY(-2px) scale(1.08);background:rgba(255,255,255,.12)}
.call-reaction:active{transform:scale(.92)}
.call-reaction-layer{position:absolute;inset:0;pointer-events:none;overflow:hidden;z-index:10}
.call-reaction-float{position:absolute;bottom:110px;font-size:34px;filter:drop-shadow(0 6px 12px rgba(0,0,0,.35));animation:callReactionFloat 1.65s ease-out both}
@keyframes callReactionFloat{0%{opacity:0;transform:translateY(20px) scale(.65) rotate(-8deg)}12%{opacity:1;transform:translateY(0) scale(1) rotate(0)}100%{opacity:0;transform:translateY(-230px) scale(1.35) rotate(7deg)}}
@media(max-width:560px){.call-card{padding:20px}.call-reactions{gap:5px}.call-reaction{width:38px;height:36px;font-size:18px}.call-action{width:54px;height:54px}}

/* v10.1.9.9.9.21 — stronger reply/forward contrast + mobile auth + call polish */
.reply-quote{background:rgba(12,15,27,.62)!important;border:1px solid rgba(255,255,255,.16)!important;border-left:4px solid #ff6fa6!important;color:#fff!important}
.reply-quote b{color:#ff8bb6!important;font-size:12px!important}
.reply-quote span{color:#f1f4fa!important}
.bubble-wrap.me .reply-quote{background:rgba(15,10,20,.34)!important;border-color:rgba(255,255,255,.25)!important;border-left-color:#fff!important}
.bubble-wrap.me .reply-quote b{color:#fff!important}
.bubble-wrap.me .reply-quote span{color:#fff!important;opacity:.94}
.forwarded-label{background:rgba(10,12,22,.66)!important;border:1px solid rgba(255,255,255,.16)!important;border-left:4px solid #ff79aa!important;color:#fff!important;padding:7px 10px!important;border-radius:9px!important;font-size:12px!important;text-shadow:none!important}
.bubble-wrap.me .forwarded-label{background:rgba(10,7,16,.28)!important;border-color:rgba(255,255,255,.24)!important;border-left-color:#fff!important;color:#fff!important}

/* Call screen: cleaner hierarchy and stable controls */
.call-overlay{padding:14px;align-items:center}
.call-card{width:min(520px,calc(100vw - 28px));min-height:360px;padding:28px 28px 22px;border-radius:30px}
.call-top{justify-content:flex-start;text-align:left;padding:4px 4px 0}
.call-avatar{width:78px;height:78px;flex-basis:78px;font-size:30px;border-radius:24px}
.call-person{gap:7px}.call-person b{font-size:22px}.call-person span{font-size:13px;color:#aeb7ca}
.call-video-wrap{aspect-ratio:16/10;min-height:190px;margin:12px 0 14px;border-radius:22px;border:1px solid rgba(255,255,255,.08)}
.call-actions{gap:12px;margin-top:18px}
.call-action{width:62px;height:62px;flex:0 0 62px;border-radius:50%;padding:0;line-height:1}
.call-action .call-icon{width:25px;height:25px;transform:none!important}
.call-action.reject .call-icon{transform:rotate(0deg)!important}
.call-reactions{margin-top:12px}
.call-reaction{font-family:system-ui,-apple-system,"Segoe UI",sans-serif}
@media(max-width:560px){.call-overlay{padding:8px;align-items:flex-end}.call-card{width:100%;padding:22px 18px calc(18px + env(safe-area-inset-bottom));border-radius:28px 28px 18px 18px}.call-avatar{width:62px;height:62px;flex-basis:62px;border-radius:20px}.call-person b{font-size:19px}.call-video-wrap{min-height:165px}.call-action{width:56px;height:56px;flex-basis:56px}.call-action .call-icon{width:23px;height:23px}.call-reaction{width:38px;height:36px;font-size:18px}}

/* Mobile auth must be vertically scrollable when the keyboard/small viewport is present. */
@media(max-width:800px){
  html,body{overflow-x:hidden;overflow-y:auto;min-height:100%;height:auto}
  .auth{min-height:100dvh;height:auto;align-items:flex-start;overflow-y:auto;-webkit-overflow-scrolling:touch;padding:0}
  .auth-box{min-height:100dvh;height:auto;overflow:visible}
  .auth-right{min-height:100dvh;overflow:visible;padding:82px 24px 48px}
  .verification-modal{max-height:calc(100dvh - 24px);overflow:auto}
}

/* v10.1.9.9.9.24 — call controls rebuilt for touch + reliable ringtone + clean icons */
.call-overlay{touch-action:none}
.call-card{touch-action:auto}
.call-action,.call-reaction{position:relative;z-index:30;pointer-events:auto;cursor:pointer;-webkit-tap-highlight-color:transparent;user-select:none;touch-action:manipulation}
.call-action .call-icon{pointer-events:none;stroke-width:2.15;stroke-linecap:round;stroke-linejoin:round}
.call-action.reject .call-icon{transform:none!important}
.call-actions{position:relative;z-index:25}
.call-reactions{position:relative;z-index:25}
.call-reaction-layer{z-index:1!important}
@media(max-width:560px){
  .call-overlay{align-items:flex-end;padding:0}
  .call-card{width:100%;max-height:94dvh;min-height:0;padding:22px 16px calc(18px + env(safe-area-inset-bottom));border-radius:28px 28px 0 0}
  .call-top{justify-content:center;text-align:center;flex-direction:column;gap:8px;padding:0;margin-bottom:14px}
  .call-avatar{width:74px;height:74px;flex-basis:74px;border-radius:22px}
  .call-person b{font-size:20px}
  .call-person span{font-size:13px}
  .call-video-wrap{min-height:180px;margin:8px 0 12px}
  .call-actions{gap:14px;margin-top:14px}
  .call-action{width:58px;height:58px;flex-basis:58px}
  .call-action .call-icon{width:24px;height:24px}
  .call-reactions{margin-top:8px}
}


/* v10.1.9.9.9.25 — clean filled call icons */
.call-action .call-icon{width:27px;height:27px;display:block;fill:currentColor;stroke:none!important;pointer-events:none;transform:none!important}
.call-action .call-icon-phone{width:29px;height:29px}
.call-action .call-icon-down{transform:rotate(135deg)!important}
.call-action.accept .call-icon{transform:none!important}
.call-action.reject .call-icon-down{transform:rotate(135deg)!important}
.call-action.mute .call-icon,.call-action.camera .call-icon{width:26px;height:26px}
@media(max-width:560px){.call-action .call-icon{width:26px;height:26px}.call-action .call-icon-phone{width:29px;height:29px}}

/* v10.1.9.9.9.26 — media messages */
.voice{width:48px;flex:none;border:1px solid #ffffff12;border-radius:14px;background:#151925;color:#9ca7bd;display:flex;align-items:center;justify-content:center;padding:0;cursor:pointer;transition:.16s}
.voice .ui-icon{width:21px;height:21px}.voice:hover{background:#1d2230;color:#fff}.voice.recording{background:#ec1c6f;color:#fff;animation:recordPulse 1.1s infinite}.voice.recording .ui-icon{transform:scale(1.08)}
@keyframes recordPulse{50%{box-shadow:0 0 0 7px rgba(236,28,111,.12)}}
.message-video{display:block;width:min(340px,70vw);max-height:360px;border-radius:13px;background:#080a10;object-fit:contain}.voice-message{display:flex;align-items:center;gap:9px;min-width:240px}.voice-icon{width:38px;height:38px;display:grid;place-items:center;border-radius:11px;background:#ec1c6f18;font-size:20px;flex:none}.voice-message audio{width:220px;max-width:calc(100vw - 180px);height:38px}.attachment-name{margin-top:6px;font-size:11px;opacity:.72;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.file-message{display:flex;align-items:center;gap:10px;min-width:220px;max-width:340px;color:inherit;text-decoration:none;padding:3px}.file-icon{width:42px;height:48px;border-radius:10px;background:#ec1c6f16;color:#ff76ab;display:grid;place-items:center;font-size:10px;font-weight:900;border:1px solid #ec1c6f25}.file-info{display:flex;flex-direction:column;min-width:0}.file-info b{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.file-info small{margin-top:4px;opacity:.62}
@media(max-width:560px){.voice{width:44px;height:46px}.message-video{width:min(78vw,340px);max-height:300px}.voice-message{min-width:0}.voice-message audio{width:180px;max-width:calc(100vw - 130px)}.file-message{min-width:0;max-width:75vw}}
body.light .voice{background:#f6f7f9;color:#69737f;border-color:#e3e7eb}body.light .voice:hover{background:#eef1f4;color:#303944}body.light .file-icon{background:#ec1c6f10}


/* v10.1.9.9.9.28 — mobile media sizing + clean voice bubble */
.voice-message{display:flex;align-items:center;gap:9px;min-width:0;width:min(340px,100%);max-width:100%}
.voice-icon{width:38px;height:38px;display:grid;place-items:center;border-radius:11px;background:#ec1c6f18;color:#ff76ab;font-size:20px;flex:0 0 38px}
.voice-icon svg{width:21px;height:21px;fill:currentColor;stroke:none}
.voice-message audio{display:block;width:250px;max-width:100%;height:38px;min-width:0}
.message-video{display:block;width:min(340px,100%);max-width:100%;height:auto;max-height:360px;border-radius:13px;background:#080a10;object-fit:contain}
.attachment-name{display:none!important}
@media(max-width:560px){
  .bubble-wrap{max-width:calc(100% - 16px)}
  .bubble{max-width:100%;overflow:hidden}
  .message-video{width:100%;max-width:100%;max-height:240px;border-radius:11px}
  .voice-message{width:100%;max-width:100%;gap:7px}
  .voice-icon{width:34px;height:34px;flex-basis:34px;border-radius:10px}
  .voice-icon svg{width:19px;height:19px}
  .voice-message audio{width:calc(100% - 41px);height:36px}
}

/* v10.1.9.9.9.31 — Telegram-style voice messages */
.voice-message{display:flex;align-items:center;gap:10px;width:min(310px,100%);min-width:0;padding:2px 1px}
.voice-play{width:42px;height:42px;flex:0 0 42px;border:0;border-radius:50%;display:grid;place-items:center;background:#ec1c6f;color:#fff;cursor:pointer;padding:0;box-shadow:none}
.voice-play:hover{filter:brightness(1.08)}
.voice-play-icon{width:20px;height:20px;fill:currentColor;display:block}
.voice-play-icon.play{margin-left:2px}
.voice-play-icon.hidden{display:none}
.voice-body{flex:1;min-width:0;display:flex;flex-direction:column;gap:3px}
.voice-wave{--progress:0;position:relative;height:26px;display:flex;align-items:center;gap:2px;cursor:pointer;overflow:hidden}
.voice-wave span{display:block;width:3px;min-width:3px;border-radius:3px;background:currentColor;opacity:.32;transition:opacity .08s}
.voice-wave span:nth-child(1){height:8px}
.voice-wave::after{content:'';position:absolute;left:0;top:0;height:100%;width:calc(var(--progress)*100%);background:linear-gradient(to right,#fff 0 0);opacity:0;pointer-events:none}
.bubble-wrap:not(.me) .voice-wave span{background:#aeb7ca}
.bubble-wrap.me .voice-wave span{background:#fff}
.voice-message.playing .voice-wave span{opacity:.72}
.voice-meta{display:flex;justify-content:space-between;align-items:center;color:rgba(255,255,255,.55);font-size:10px;line-height:1}
.bubble-wrap:not(.me) .voice-meta{color:#69758e}
.voice-message>audio{display:none!important}
@media(max-width:560px){.voice-message{width:100%;max-width:100%;gap:9px}.voice-play{width:40px;height:40px;flex-basis:40px}.voice-wave{gap:2px}.voice-wave span{width:2.5px;min-width:2.5px}.voice-meta{font-size:9px}}
body.light .voice-play{color:#fff}


/* v10.1.9.9.9.32 — message innovation pack */
.edited-label{display:inline-block;margin-left:6px;font-size:10px;opacity:.58;vertical-align:baseline}
.pinned-label{font-size:10px;font-weight:800;opacity:.78;margin-bottom:6px}
.message-reactions{display:flex;gap:5px;flex-wrap:wrap;margin-top:-5px;margin-left:8px;position:relative;z-index:3}
.reaction-chip{border:1px solid rgba(255,255,255,.12);background:rgba(24,28,40,.95);color:#fff;border-radius:14px;padding:3px 8px;font-size:12px;cursor:pointer;box-shadow:0 2px 8px rgba(0,0,0,.18)}
.reaction-chip:hover{background:rgba(236,28,111,.18);border-color:rgba(236,28,111,.4)}
.bubble-wrap.me .reaction-chip{background:rgba(60,25,45,.95);border-color:rgba(255,255,255,.18)}
.message-actions{gap:2px}
.message-actions button{display:grid;place-items:center}
.message-actions .ui-icon{width:15px;height:15px}
@media(max-width:560px){.message-actions{flex-wrap:wrap;max-width:132px}.message-actions button{width:26px;height:26px}.message-reactions{margin-left:4px}.reaction-chip{font-size:11px;padding:3px 7px}}
body.light .reaction-chip{background:#fff;color:#202632;border-color:#dfe3e8}

/* v10.1.9.9.9.33 — message tools */
.message-search-modal,.edit-message-modal{max-width:520px}
.modal-textarea{width:100%;min-height:130px;resize:vertical;padding:13px 14px;border:1px solid #ffffff12;border-radius:13px;background:#151925;color:#fff;outline:none;font:inherit;line-height:1.45}
.modal-textarea:focus,.message-search-modal .modal-input:focus{border-color:#ec1c6f66;box-shadow:0 0 0 3px rgba(236,28,111,.08)}
.modal-actions{display:flex;justify-content:flex-end;gap:8px;margin-top:12px}.primary-btn,.secondary-btn{height:42px;padding:0 16px;border-radius:11px;border:1px solid #ffffff12;font-weight:700;cursor:pointer}.primary-btn{background:linear-gradient(135deg,#ec1c6f,#ff4f9a);color:#fff;border:0}.secondary-btn{background:#ffffff08;color:#aeb8cb}
.search-modal-row{display:flex;gap:8px}.search-modal-row .modal-input{flex:1}.search-submit{flex:none}.search-results{display:flex;flex-direction:column;gap:7px;max-height:380px;overflow:auto;margin-top:12px}.search-result{display:flex;align-items:center;justify-content:space-between;gap:12px;width:100%;padding:11px 12px;border:1px solid #ffffff10;border-radius:12px;background:#ffffff05;color:#dce4f7;text-align:left;cursor:pointer}.search-result:hover{background:#ec1c6f12;border-color:#ec1c6f35}.search-result span{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.search-result small{flex:none;color:#69758e}.message-highlight{animation:messageHighlight 1.4s ease}.ui-icon{width:19px;height:19px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
@keyframes messageHighlight{0%,100%{box-shadow:none}30%,65%{box-shadow:0 0 0 4px rgba(236,28,111,.22)}}
body.light .modal-textarea{background:#f8f9fc;color:#1c2333;border-color:#d9deea}body.light .secondary-btn{background:#f0f2f7;color:#4e5a70;border-color:#dfe3eb}body.light .search-result{background:#f8f9fc;color:#1c2333;border-color:#e0e4eb}
@media(max-width:560px){.message-search-modal,.edit-message-modal{width:calc(100% - 20px);max-width:none}.search-modal-row{align-items:stretch}.search-submit{padding:0 13px}.search-result{padding:10px}.modal-textarea{min-height:120px}}

/* v10.1.9.9.9.34 — instant reactions + chat search button */
#messageSearchButton .ui-icon{width:19px;height:19px}
.message-reactions{transition:opacity .12s ease,transform .12s ease}
.message-reactions.updating{opacity:.7;transform:scale(.98)}
@media(max-width:560px){#messageSearchButton{width:34px;height:34px}.header-actions{gap:2px}.header-actions .ui-icon{width:18px;height:18px}}
\n\n/* v10.1.9.9.9.35 — real mobile messenger layout + browser notifications ready */
@media(max-width:800px){
  html,body,#messenger{width:100%;height:100%;height:100dvh;max-width:100%;overflow:hidden}
  .messenger{position:fixed;inset:0;padding:0}
  .app{position:relative;width:100%;height:100%;height:100dvh;display:block;overflow:hidden}
  .sidebar{position:absolute;inset:0;width:100%;height:100%;height:100dvh;display:flex;overflow:hidden;z-index:20}
  .chat-window{position:absolute;inset:0;width:100%;height:100%;height:100dvh;display:flex;overflow:hidden;z-index:10}
  .messenger:not(.mobile-chat) .chat-window{transform:translateX(100%);visibility:hidden;pointer-events:none}
  .messenger.mobile-chat .chat-window{transform:translateX(0);visibility:visible;pointer-events:auto}
  .messenger.mobile-chat .sidebar{transform:translateX(-8%);opacity:0;visibility:hidden;pointer-events:none}
  .sidebar,.chat-window{transition:transform .2s ease,opacity .2s ease,visibility .2s}
  .profile{padding:14px 14px 12px}
  .search{padding:10px 12px}
  .new-chat{margin:0 12px 10px}
  .chat-list{padding:2px 7px 12px;overflow-y:auto}
  .chat-header{min-height:64px;padding:8px 10px;gap:6px}
  .mobile-back{display:grid!important;place-items:center;width:40px;height:40px;flex:none;font-size:31px;line-height:1}
  .chat-profile-trigger{min-width:0;flex:1}
  .chat-user{min-width:0;text-align:left}
  .chat-user b,.chat-user small{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
  .header-actions{gap:1px;flex:none}
  .header-actions .icon-btn{width:38px;height:38px;padding:0}
  .header-actions #callButton,.header-actions #videoButton{display:none}
  .messages{padding:14px 10px 16px;gap:8px}
  .bubble-wrap{max-width:86%}
  .bubble{padding:10px 13px;border-radius:16px}
  .composer{gap:7px;padding:9px 9px max(9px,env(safe-area-inset-bottom));}
  .attach{width:44px;height:44px;border-radius:13px}
  .composer-main{min-width:0}
  .composer input{height:44px;padding:0 13px;border-radius:13px}
  .voice{width:44px;height:44px;border-radius:13px}
  .send{width:47px;height:44px;border-radius:13px;flex:none}
  .reply-preview{margin:0 9px}
  .message-image{max-width:78vw;max-height:300px}
  .message-video{max-width:78vw;max-height:260px}
  .voice-message{max-width:76vw}
  .modal{max-width:calc(100vw - 24px);max-height:calc(100dvh - 24px);overflow:auto}
}
@media(max-width:420px){
  .profile-name small{font-size:10px}
  .header-actions #chatMenuButton{display:none}
  .header-actions .icon-btn{width:35px;height:35px}
  .chat-header-avatar{width:38px;height:38px}
  .chat-user b{font-size:14px}
  .messages{padding-left:8px;padding-right:8px}
  .bubble-wrap{max-width:90%}
  .message-reactions{margin-left:3px}
}


/* v10.1.9.9.9.36 — tap message actions + stable mobile keyboard viewport */
.message-actions{opacity:0;pointer-events:none;transform:translateY(4px)}
.bubble-wrap.actions-open .message-actions{opacity:1;pointer-events:auto;transform:none}
@media(max-width:800px){
  html,body,#messenger{height:var(--flizz-vh,100dvh);min-height:var(--flizz-vh,100dvh)}
  .messenger,.app,.sidebar,.chat-window{height:var(--flizz-vh,100dvh);min-height:var(--flizz-vh,100dvh)}
  .message-actions{opacity:0;pointer-events:none;position:static;transform:translateY(4px);transition:.16s;display:flex}
  .bubble-wrap.actions-open .message-actions{opacity:1;pointer-events:auto;transform:none}
}

/* v10.1.9.9.9.39 — stable camera switching + genuinely taller video call */
.call-card{width:min(700px,calc(100vw - 28px));min-height:0}
.call-video-wrap{aspect-ratio:auto;height:min(58vh,620px);min-height:420px;margin:14px 0 18px}
.remote-video{object-fit:cover}
.local-video{width:25%;height:auto;max-height:30%;aspect-ratio:4/3;border-radius:14px}
.call-person span{min-width:125px}
.call-action.flip-camera{background:rgba(255,255,255,.08)}
@media(max-width:560px){
  .call-card{width:100%;max-height:98dvh}
  .call-video-wrap{aspect-ratio:auto;height:min(68dvh,560px);min-height:390px;max-height:none;margin:8px 0 12px}
  .local-video{width:29%;max-height:28%;right:8px;bottom:8px}
  .call-actions{flex-wrap:wrap}
}


/* v10.1.9.9.9.40 — full-height mobile video call + reliable camera switch button */
.call-action.flip-camera{background:#3b4259!important;color:#fff!important;border:0!important;box-shadow:0 8px 22px rgba(0,0,0,.25)}
.call-action.flip-camera:hover{background:#464e68!important}
.call-action.flip-camera .call-icon{width:25px;height:25px;fill:currentColor!important;stroke:none!important}
.call-card.is-video-active{position:relative}
@media(max-width:560px){
  .call-overlay{position:fixed;inset:0;padding:0;align-items:stretch;justify-content:stretch;background:#05070d}
  .call-card{position:relative;width:100vw;height:100dvh;max-height:none;min-height:100dvh;padding:0;border:0;border-radius:0;background:#05070d;box-shadow:none;overflow:hidden}
  .call-video-wrap{position:absolute;inset:0;width:100%;height:100%;min-height:0;max-height:none;margin:0;border:0;border-radius:0;background:#05070d;z-index:1}
  .remote-video{width:100%;height:100%;object-fit:cover;background:#05070d}
  .local-video{right:14px;top:calc(14px + env(safe-area-inset-top));bottom:auto;width:29vw;max-width:140px;max-height:none;aspect-ratio:3/4;border:2px solid rgba(255,255,255,.82);border-radius:16px;z-index:8;box-shadow:0 8px 24px rgba(0,0,0,.45)}
  .call-top{position:absolute;left:0;right:0;top:calc(8px + env(safe-area-inset-top));z-index:7;margin:0;padding:10px 16px;justify-content:flex-start;flex-direction:row;text-align:left;gap:10px;background:linear-gradient(to bottom,rgba(0,0,0,.5),transparent);pointer-events:none}
  .call-avatar{width:44px;height:44px;flex-basis:44px;border-radius:14px;font-size:20px}
  .call-person b{font-size:16px;text-shadow:0 1px 5px #000}
  .call-person span{font-size:12px;color:#fff;text-shadow:0 1px 5px #000}
  .call-reaction-layer{z-index:10}
  .call-reactions{position:absolute;left:50%;bottom:calc(88px + env(safe-area-inset-bottom));transform:translateX(-50%);z-index:12;margin:0;background:rgba(20,24,38,.82);backdrop-filter:blur(12px);-webkit-backdrop-filter:blur(12px)}
  .call-actions{position:absolute;left:50%;bottom:calc(16px + env(safe-area-inset-bottom));transform:translateX(-50%);z-index:13;width:max-content;margin:0;padding:0;gap:12px}
  .call-action{width:58px;height:58px;flex-basis:58px;background:#3b4259}
  .call-action.flip-camera{background:#3b4259!important}
  .call-action.reject{background:#e34b5f!important}
  .call-action.accept{background:#28b86f!important}
  .call-action .call-icon{width:25px;height:25px}
  .call-reactions .call-reaction{background:rgba(255,255,255,.08)}
  .call-card:not(.video-ready) .call-video-wrap{background:#05070d}
}
