:root{font-family:'DM Sans',Arial,sans-serif;color:#eef0ff;background:#0b0c16;font-synthesis:none}*{box-sizing:border-box}body{margin:0;min-height:100vh;overflow-x:hidden}button,input,select{font:inherit}button{cursor:pointer}button:disabled{opacity:.42;cursor:not-allowed}a{text-decoration:none;color:inherit} .hidden{display:none!important}
.glow{position:fixed;z-index:-1;pointer-events:none;filter:blur(80px);border-radius:50%}.glow-one{width:490px;height:430px;background:rgba(82,44,163,.16);top:-220px;left:-160px}.glow-two{width:550px;height:400px;background:rgba(19,112,157,.12);top:32%;right:-270px}.shell{max-width:1390px;margin:0 auto;padding:0 44px 25px}.topbar{height:88px;display:flex;align-items:center;justify-content:space-between;border-bottom:1px solid #ffffff0c}.brand{display:flex;align-items:center;gap:10px;font-family:Outfit,Arial,sans-serif;font-size:28px;letter-spacing:-1.1px;font-weight:800}.brand-symbol{display:grid;place-items:center;width:35px;height:35px;color:#fff;background:linear-gradient(135deg,#9b5bff,#5f43db);border-radius:11px;font-size:23px;line-height:1}.brand-accent{color:#a98aff}.nav-right{display:flex;align-items:center;gap:14px}.beta-pill,.online-pill{font-size:11px;letter-spacing:.6px;font-weight:700;border:1px solid #ffffff1b;padding:10px 14px;border-radius:30px;color:#a7acc5;white-space:nowrap}.beta-pill{color:#d1b8ff;border-color:#7842d44d;background:#8246e01b}.status-dot{display:inline-block;width:7px;height:7px;background:#b18aff;border-radius:50%;margin-right:6px;box-shadow:0 0 11px #b18aff}.online-pill{font-size:12px;letter-spacing:0}.intro{text-align:center;padding:41px 15px 32px}.eyebrow{font-size:10px;letter-spacing:2.9px;color:#9a83dd;font-weight:700}.eyebrow span{color:#525573;margin:0 5px}h1,h2,h3,p{margin:0}h1{font-family:Outfit,Arial,sans-serif;font-size:clamp(37px,5vw,54px);letter-spacing:-1.8px;line-height:1.14;font-weight:700;margin:11px 0 10px}h1 em{font-style:normal;color:#a98aff}.intro p{color:#989eb7;font-size:14px}.app-grid{display:grid;grid-template-columns:minmax(0,1.85fr) minmax(215px,.83fr) minmax(260px,.88fr);gap:14px;min-height:420px}.panel{border:1px solid #292b3e;background:#161824;border-radius:19px;box-shadow:0 10px 45px #00000022}.remote-card,.self-card{position:relative;overflow:hidden;background:radial-gradient(ellipse at center,#1c2132 0%,#131521 65%);min-height:415px}.card-top{position:absolute;z-index:3;display:flex;justify-content:space-between;align-items:center;top:18px;left:20px;right:20px;gap:7px}.camera-label{display:flex;align-items:center;gap:8px;color:#d3d8e7;font-size:10px;font-weight:700;letter-spacing:.85px;white-space:nowrap}.soft-badge{font-size:9px;font-weight:800;letter-spacing:.9px;color:#a0a7c1;border:1px solid #ffffff16;background:#0e0e186e;border-radius:20px;padding:6px 9px}.status-indicator,.purple-dot{width:8px;height:8px;border-radius:50%;display:inline-block;background:#79819e}.status-indicator.online{background:#39dd9a;box-shadow:0 0 9px #39dd9a88}.status-indicator.searching{background:#b18aff;box-shadow:0 0 9px #b18aff88}.purple-dot{background:#b08aff}.video-fill{width:100%;height:100%;object-fit:cover;position:absolute;inset:0;background:transparent}.local-video{transform:scaleX(-1)}.placeholder{position:absolute;inset:0;display:flex;flex-direction:column;align-items:center;justify-content:center;padding:24px 22px 40px;text-align:center;background:radial-gradient(ellipse at center,#2322389c,#11131be0 70%);z-index:2}.orbit{height:122px;width:122px;border-radius:50%;border:1px dashed #8661b85a;display:grid;place-items:center;margin-bottom:14px;position:relative}.orbit::before,.orbit::after{content:'';position:absolute;border-radius:50%;background:#8755d5;width:7px;height:7px;top:12px;right:19px;box-shadow:0 0 15px #8859e6}.orbit::after{width:5px;height:5px;left:6px;top:auto;bottom:26px;background:#48b5d7}.orbit-icon{display:grid;place-items:center;width:88px;height:88px;border-radius:50%;background:linear-gradient(145deg,#34294f,#1a2235);color:#b1a5d4;border:1px solid #ffffff12}.placeholder h2{font-family:Outfit,Arial,sans-serif;font-size:21px;letter-spacing:-.3px;line-height:1.25;margin-bottom:8px;max-width:380px}.placeholder p{font-size:12px;line-height:1.55;color:#979cb7;max-width:330px}.primary-button{border:0;border-radius:10px;color:#fff;background:linear-gradient(120deg,#8855e8,#7145db);font-weight:700;padding:12px 20px;box-shadow:0 8px 30px #7243e34d;font-size:13px}.primary-button span{margin-left:10px}.placeholder .primary-button{margin-top:23px}.search-loader{margin-top:23px;height:22px;width:22px;border:3px solid #8265b34d;border-top-color:#b59cfa;border-radius:50%;animation:spin 1s linear infinite}@keyframes spin{to{transform:rotate(360deg)}}.video-bottom,.self-bottom{position:absolute;z-index:3;bottom:16px;left:20px;right:20px;display:flex;justify-content:space-between;align-items:center;gap:5px;font-size:10px;color:#aaaec1;text-shadow:0 1px 4px #0009}.tiny-action{border:1px solid #ffffff20;background:#13151fab;color:#d5d7e6;border-radius:8px;padding:7px 11px;font-size:11px}.self-placeholder{position:absolute;inset:0;display:flex;align-items:center;justify-content:center;flex-direction:column;gap:8px;text-align:center;color:#bbc0d5;background:radial-gradient(ellipse at center,#29233f,#141622 76%)}.self-icon{font-size:52px;color:#8b77b4;line-height:1;margin-bottom:7px}.self-placeholder p{font-weight:600;font-size:15px}.self-placeholder small{font-size:11px;color:#757c98}.self-bottom span{background:#1114219e;border:1px solid #ffffff12;padding:6px 8px;border-radius:8px}.chat-panel{display:flex;flex-direction:column;overflow:hidden}.chat-heading{padding:23px 19px 18px;display:flex;align-items:center;gap:12px;border-bottom:1px solid #ffffff0b}.chat-icon{width:40px;height:40px;flex:none;border:1px solid #6748a44d;color:#b58bf9;border-radius:11px;display:grid;place-items:center;background:#49326b46;font-size:20px}.chat-heading h3{font-family:Outfit,Arial,sans-serif;font-size:17px;letter-spacing:-.15px}.chat-heading p{font-size:11px;color:#8f96ae;margin-top:3px}.messages{flex:1;display:flex;flex-direction:column;gap:10px;padding:20px 16px;overflow:auto;min-height:0;max-height:315px}.system-message{font-size:11px;line-height:1.6;text-align:center;color:#848aa7;background:#ffffff07;border:1px dashed #ffffff13;padding:12px 11px;border-radius:11px}.message{font-size:12px;max-width:90%;word-break:break-word;border-radius:12px;padding:10px 12px;line-height:1.45;align-self:flex-start;background:#252a3b;color:#e4e8f2}.message.mine{align-self:flex-end;background:#55348f}.chat-form{border-top:1px solid #ffffff12;padding:13px;display:flex;gap:8px}.chat-form input{background:#10121d;border:1px solid #31344c;outline:0;min-width:0;flex:1;border-radius:9px;color:#f2f2ff;padding:10px;font-size:12px}.chat-form input:focus{border-color:#8b62d9}.chat-form button{flex:none;width:38px;border-radius:9px;background:#8855e8;border:0;color:white;font-size:18px}.control-bar{margin-top:14px;display:flex;justify-content:space-between;align-items:center;gap:12px;padding:17px 19px}.control-intro{display:flex;align-items:center;gap:13px}.mini-spark{display:grid;place-items:center;border-radius:12px;width:39px;height:39px;background:#392550;color:#bd9fff;font-size:22px}.control-intro div{display:flex;flex-direction:column;gap:4px}.control-intro strong{font-size:13px}.control-intro span:not(.mini-spark){font-size:11px;color:#8990aa}.controls{display:flex;align-items:center;gap:9px}.circle-control{height:41px;width:41px;display:grid;place-items:center;background:#232638;border:1px solid #393b55;border-radius:10px;color:#e3e5f7}.circle-control svg{height:18px;width:18px}.circle-control.is-off{color:#ffb4bc;background:#552c3b;border-color:#a44c5e}.next-button{padding:12px 19px;white-space:nowrap;border:0;border-radius:10px;color:white;background:linear-gradient(125deg,#8855e8,#6f43d7);font-size:12px;font-weight:700}.next-button span{margin-left:9px}.stop-button{padding:11px 18px;color:#ffc5cb;background:#5826318a;border:1px solid #a4465a6b;border-radius:10px;font-size:12px;font-weight:700}footer{padding:24px 3px 0;display:flex;justify-content:space-between;flex-wrap:wrap;gap:9px;color:#777e97;font-size:11px}.start-dialog{border:1px solid #49405f;background:#1c1b2b;max-width:405px;width:calc(100% - 30px);padding:30px;border-radius:19px;color:#e7e8f6;box-shadow:0 16px 80px #000b}.start-dialog::backdrop{background:#05040dcc;backdrop-filter:blur(8px)}.dialog-symbol{font-size:36px;color:#b18aff}.start-dialog h2{font-size:24px;margin:10px 0}.start-dialog p{font-size:13px;color:#abb0c6;line-height:1.6}.age-check{display:flex;gap:10px;align-items:center;padding:18px 0;font-size:13px}.age-check input{accent-color:#8b5ce7;width:17px;height:17px}.dialog-buttons{display:flex;gap:10px;justify-content:flex-end;margin-top:12px}.dialog-cancel{padding:11px 17px;background:#2a293a;color:#d3d4e7;border-radius:9px;border:1px solid #444358}.report-dialog select{margin-top:20px;width:100%;padding:11px;background:#272638;border:1px solid #444358;color:#e8e6f6;border-radius:8px}.toast{position:fixed;bottom:22px;left:50%;transform:translateX(-50%);z-index:10;color:white;background:#40305d;padding:11px 18px;border:1px solid #906ed1;border-radius:12px;font-size:12px;box-shadow:0 8px 25px #0006}
@media(max-width:1050px){.shell{padding:0 24px 25px}.app-grid{grid-template-columns:1.5fr 1fr}.remote-card{grid-column:1}.self-card{grid-column:2}.chat-panel{grid-column:1/-1;min-height:230px}.messages{max-height:220px}.control-bar{flex-wrap:wrap}.remote-card,.self-card{min-height:380px}}
@media(max-width:650px){.shell{padding:0 12px 20px}.topbar{height:75px}.brand{font-size:22px}.beta-pill{font-size:9px;padding:8px}.online-pill{display:none}.intro{padding:28px 8px}.eyebrow{font-size:9px;letter-spacing:1.6px}.intro p{font-size:12px}.app-grid{grid-template-columns:1fr;gap:10px}.remote-card{grid-column:1;min-height:375px}.self-card{grid-column:1;min-height:260px}.chat-panel{grid-column:1}.control-bar{flex-direction:column;align-items:stretch}.control-intro{margin-bottom:8px}.controls{justify-content:space-between}.next-button{flex:1}.control-bar,.panel{border-radius:14px}.placeholder h2{font-size:19px}footer{line-height:1.5}}

.invite-label{display:block;font-weight:700;color:#c9c9df;font-size:12px;margin-top:17px;margin-bottom:7px}.invite-input{width:100%;padding:12px 13px;border-radius:9px;border:1px solid #484260;background:#131322;color:#fff;outline:0}.invite-input:focus{border-color:#b18aff}footer a{text-decoration:underline;text-underline-offset:3px;color:#a98aff}

/* FlickChat v2.0 account + moderation interface */
.nav-right{gap:8px;flex-wrap:wrap;justify-content:flex-end}.nav-button{display:inline-flex;align-items:center;justify-content:center;gap:5px;padding:8px 11px;border:1px solid #36344f;border-radius:9px;background:#221e32;color:#e9e4fc;text-decoration:none;font-size:11px;cursor:pointer}.nav-button:hover{border-color:#8e65e6}.nav-button:disabled{opacity:.5;cursor:default}
.auth-tabs{display:flex;gap:8px;margin:18px 0}.auth-tabs button{flex:1;padding:10px;border-radius:8px;border:1px solid #45405b;color:#d6d0e9;background:#29273a}.auth-tabs .selected{background:#754cc3;color:white;border-color:#9b77ea}.account-dialog{max-width:465px}.stack-form{display:flex;flex-direction:column;gap:13px;margin-top:15px}.stack-form label{display:flex;flex-direction:column;gap:6px;font-size:12px;color:#d6cbed;font-weight:600}.stack-form input,.stack-form textarea{background:#121320;border:1px solid #4b4363;border-radius:9px;color:#fff;font:inherit;padding:11px 12px;width:100%;outline:none}.stack-form input:focus,.stack-form textarea:focus{border-color:#a782ed}.stack-form .age-check{flex-direction:row;align-items:center}.stack-form .age-check input{width:16px;flex:none}.form-error{color:#ff9ca8;font-size:12px;margin:0}.danger-link{margin-top:20px;background:transparent;border:0;text-decoration:underline;color:#ff9daa;cursor:pointer;font-size:12px}.intro-small{padding-bottom:32px}.admin-panel{max-width:1050px;margin:14px auto;padding:24px}.admin-panel h2{font-size:21px;margin-bottom:12px}.admin-panel p{color:#a6a7c0;font-size:13px;line-height:1.5}.admin-header{display:flex;justify-content:space-between;align-items:center;gap:12px}.report-list{display:flex;flex-direction:column;gap:12px;margin-top:20px}.report-item{padding:17px;border-radius:12px;background:#ffffff07;border:1px solid #ffffff12}.report-item strong{font-size:15px}.report-item p{margin-top:8px}.report-actions{display:flex;gap:9px;flex-wrap:wrap;margin-top:12px}
@media(max-width:650px){.nav-right{max-width:65%;}.nav-button{font-size:10px;padding:7px}.topbar{height:auto;min-height:75px;padding:12px 0}.account-dialog{padding:22px}}

/* v2.1 translation and demo minutes */
.upgrade-strip{display:grid;grid-template-columns:1fr 1fr;gap:16px;padding:16px 20px;margin:0 0 16px}.upgrade-item{min-width:0;display:flex;flex-direction:column;gap:7px}.upgrade-item label{font-size:12px;color:#e4def7}.upgrade-item small{font-size:10px;color:#9ca1b9;line-height:1.5}.upgrade-select{width:100%;background:#101221;color:#ebedff;border:1px solid #49405f;border-radius:9px;padding:9px 11px;max-width:400px;font-size:12px}.wallet-row{color:#d9c1ff;font-size:11px;min-height:20px}.wallet-actions{display:flex;gap:7px;flex-wrap:wrap}.translated-text{display:block;border-top:1px solid #ffffff30;padding-top:8px;margin-top:8px;color:#d8cff9;font-size:11px;font-weight:650;white-space:pre-wrap}.message{white-space:pre-wrap}@media(max-width:650px){.upgrade-strip{grid-template-columns:1fr;padding:12px;margin-bottom:10px}}

/* v2.2 | FlickChat Social. Original styling inspired by the user's reference layout. */
.topbar{gap:18px;flex-wrap:wrap;min-height:83px;height:auto;padding:12px 0}
.site-nav{display:flex;align-self:stretch;align-items:center;gap:4px;padding:3px;background:#171725;border:1px solid #2a2b3c;border-radius:14px}
.site-tab{font-size:12px;font-weight:750;white-space:nowrap;color:#a9a9c2;border:0;border-radius:10px;padding:12px 17px;background:transparent;transition:background .15s ease,color .15s ease}
.site-tab:hover{color:white;background:#ffffff0a}.site-tab.selected{background:#8354dd;color:#fff;box-shadow:0 6px 20px #7a44dc30}
.section-hero{display:flex;align-items:end;justify-content:space-between;gap:18px;padding:38px 0 25px}
.section-hero h1{margin:7px 0 7px;font-size:clamp(34px,4vw,48px)}
.section-hero p{color:#9b9bb2;font-size:13px;line-height:1.7}
.section-hero .primary-button{white-space:nowrap}
.compact-hero{padding-bottom:22px}
.social-headline{display:flex;align-items:center;justify-content:space-between;gap:12px;margin:4px 0 18px}
.social-headline h2{font-size:21px;letter-spacing:-.6px}.social-headline p{color:#8d94ad;font-size:11px;margin-top:6px}
.segment-tabs{display:flex;gap:4px;padding:4px;background:#191b29;border:1px solid #333146;border-radius:12px}
.segment-tabs button{padding:9px 13px;border:0;border-radius:9px;background:transparent;color:#aaa8c2;font-size:11px;font-weight:700}
.segment-tabs button.selected{background:#49316f;color:#fff}
.social-notice{padding:16px;margin-bottom:15px;color:#dec7ff;background:#352449;border:1px solid #774c9c;border-radius:12px;font-size:12px}
.stories-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:16px;min-height:290px}
.story-tile{height:390px;max-height:50vw;min-height:300px;position:relative;overflow:hidden;border-radius:18px;background:#1f2234;border:1px solid #ffffff27;padding:0;isolation:isolate;box-shadow:0 15px 28px #0003;transition:transform .16s ease,box-shadow .16s ease;text-align:left}
.story-tile:hover{transform:translateY(-3px);box-shadow:0 22px 42px #0008}
.story-thumb{height:100%;width:100%;object-fit:cover;position:absolute;inset:0;background:linear-gradient(140deg,#472660,#233b65);pointer-events:none}
.story-tile-overlay{display:flex;align-items:center;gap:12px;position:absolute;bottom:0;left:0;right:0;padding:50px 18px 18px;background:linear-gradient(transparent,#04030cdf);color:white}
.story-owner-dot{width:43px;height:43px;display:grid;place-items:center;border-radius:50%;background:linear-gradient(125deg,#945de7,#1e91ad);font-size:19px;font-weight:800;flex:none;border:2px solid #c3a4ff}
.story-tile-info{min-width:0;display:flex;flex-direction:column;gap:5px}.story-tile-info strong{font-size:14px}.story-tile-info span{font-size:11px;color:#d4cfdf;max-height:36px;overflow:hidden;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical}
.story-kind{position:absolute;top:15px;right:14px;border-radius:20px;padding:7px 10px;background:#07050b8c;color:white;font-size:10px;font-weight:700}
.empty-state{grid-column:1/-1;display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;gap:11px;padding:50px 25px;border:1px dashed #51475f;background:radial-gradient(circle at 50% 0%,#37304e45,transparent 55%),#131421;border-radius:18px;min-height:265px}
.empty-icon{font-size:38px;display:grid;place-items:center;width:70px;height:70px;border-radius:50%;color:#c0a7f3;background:#5a3e8430}
.empty-state h2{font-size:18px}.empty-state p{color:#9696b0;font-size:12px;line-height:1.65;max-width:390px}
.privacy-tip{color:#8e95b0;font-size:11px;padding:18px 0 4px;line-height:1.7}
.story-view-dialog{max-width:480px;max-height:94vh;overflow:auto;padding:18px}
.story-view-header{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:4px 3px 14px;font-size:13px}
.story-view-media{width:100%;max-height:65vh;object-fit:contain;border-radius:10px;background:#090911}
.story-view-caption{padding:13px 3px 7px;white-space:pre-wrap;word-break:break-word}
.story-actions{display:flex;gap:7px;padding-top:9px;flex-wrap:wrap}
#storyFile{font-size:12px;color:#beb3ce}
.messenger{display:grid;grid-template-columns:minmax(240px,320px) minmax(0,1fr);overflow:hidden;min-height:600px;border-radius:17px}
.contact-sidebar{display:flex;flex-direction:column;background:#171927;border-right:1px solid #343548;min-width:0}
.contact-header{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:23px 20px 15px}.contact-header h2{font-size:17px}
.count-bubble{background:#55387f;color:#e9dcfc;font-size:10px;font-weight:700;padding:4px 8px;border-radius:20px}
.contact-search-label{margin:0 16px 15px;display:flex;align-items:center;gap:10px;border-radius:11px;background:#0f111e;border:1px solid #33354a;padding:9px 12px;color:#a5a2c4}
.contact-search-label input{width:100%;border:0;outline:0;background:transparent;color:#faf9ff;min-width:0;font-size:12px}
.contact-list{padding:0 7px;flex:1;min-height:210px;max-height:520px;overflow-y:auto}
.contact-list .empty-state{border:0;min-height:190px;padding:20px 9px;background:transparent}.contact-list .empty-state .empty-icon{width:50px;height:50px;font-size:26px}.contact-list .empty-state h2{font-size:14px}
.contact-entry{width:100%;display:flex;align-items:center;gap:12px;padding:13px 12px;border:0;border-radius:12px;background:transparent;text-align:left;color:inherit}
.contact-entry:hover,.contact-entry.selected{background:#38304d}
.contact-avatar,.dm-avatar{display:grid;place-items:center;width:44px;height:44px;border-radius:50%;flex:none;background:linear-gradient(125deg,#7e59d7,#328cbd);color:white;font-weight:800;font-size:17px}
.contact-entry-inner{display:flex;flex-direction:column;gap:6px;min-width:0;flex:1}.contact-entry-inner strong{font-size:12px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.contact-entry-inner span{font-size:11px;color:#a1a1b9;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}
.contact-help{padding:15px;border-top:1px solid #303143;color:#8d89a9;font-size:10px;line-height:1.6}
.dm-main{display:flex;flex-direction:column;min-width:0;background:#11131f}
.dm-header{min-height:83px;display:flex;align-items:center;justify-content:space-between;padding:14px 20px;border-bottom:1px solid #2a2d40}
.dm-user{display:flex;align-items:center;gap:12px}.dm-user h3{font-size:15px}.dm-user p{font-size:11px;color:#9298ad;margin-top:5px}
.dm-messages{flex:1;min-height:320px;max-height:515px;overflow-y:auto;display:flex;flex-direction:column;gap:12px;padding:24px 26px;background:radial-gradient(ellipse at 30% 20%,#261e3b39,transparent 50%),#10121d}
.dm-messages>.empty-state,.dm-messages>.dm-empty{margin:auto;max-width:380px;border:none;background:transparent}
.dm-empty{text-align:center;display:flex;flex-direction:column;align-items:center;gap:12px;color:#9796b3;line-height:1.6}.dm-empty span{font-size:50px;color:#8669b1}.dm-empty h2{font-size:18px;color:#eeefff}.dm-empty p{font-size:12px}
.dm-bubble{align-self:flex-start;display:flex;flex-direction:column;gap:8px;max-width:80%;min-width:80px;background:#2c2e42;border:1px solid #3a405c;padding:12px 14px;border-radius:13px 13px 13px 3px;color:#f1f0ff;word-break:break-word}
.dm-bubble.mine{align-self:flex-end;background:#543989;border-color:#7756ac;border-radius:13px 13px 3px 13px}
.dm-bubble p{font-size:13px;white-space:pre-wrap;line-height:1.55}.dm-bubble time{font-size:9px;color:#c8c1d7;align-self:flex-end}.dm-translated{font-size:11px;color:#d9c8ff;border-top:1px solid #ffffff33;padding-top:9px;line-height:1.5;white-space:pre-wrap}
.dm-compose{display:flex;gap:9px;padding:16px 18px;border-top:1px solid #333244}
.dm-compose input{flex:1;min-width:0;border:1px solid #3a3c59;outline:0;border-radius:10px;background:#171a29;color:#fff;padding:12px 13px;font-size:12px}.dm-compose input:focus{border-color:#a072ee}.dm-compose .primary-button{padding:11px 18px}
.contact-action{padding:11px 14px;border:1px solid #7257b4;border-radius:10px;color:#eadcff;background:#34254a;font-weight:700;font-size:11px}
.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
@media (max-width:1150px){.site-nav{order:3;justify-content:center;width:100%}.stories-grid{grid-template-columns:repeat(3,minmax(0,1fr))}.topbar .nav-right{margin-left:auto}}
@media (max-width:750px){.section-hero{align-items:start;flex-direction:column}.stories-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.story-tile{height:300px;max-height:unset;min-height:250px}.messenger{grid-template-columns:1fr}.contact-sidebar{border-right:0;border-bottom:1px solid #343548}.contact-list{max-height:225px}.dm-messages{min-height:260px;max-height:400px}.contact-help{display:none}.social-headline{align-items:start;flex-direction:column}.site-tab{flex:1;padding:11px 9px}.site-nav{font-size:11px}}
@media (max-width:420px){.stories-grid{grid-template-columns:1fr 1fr}.story-tile{height:245px;min-height:220px}.story-tile-overlay{padding:30px 9px 9px;gap:7px}.story-owner-dot{height:32px;width:32px;font-size:12px}.story-tile-info strong{font-size:11px}.story-tile-info span{font-size:10px}.story-kind{font-size:9px}.control-bar .controls{flex-wrap:wrap}}

.dm-tools{display:flex;align-items:center;gap:12px;flex-wrap:wrap;padding:9px 20px;border-bottom:1px solid #292b40;background:#151626}.dm-tools label{font-size:11px;font-weight:700;color:#c5b3ed}.dm-tools select{max-width:205px;font-size:11px;padding:7px 8px}.dm-tools span{font-size:10px;color:#848a9d}

/* v2.3 story-to-contact requests */
.invite-panel{padding:18px 20px;margin-bottom:20px;background:linear-gradient(110deg,#271c3d,#171a29);border-color:#57416f}
.invite-head{display:flex;align-items:center;gap:12px;margin-bottom:6px}.invite-head h2{font-size:17px}.invite-panel>p{font-size:12px;color:#aea4c4;margin-bottom:14px}
.invite-list{display:flex;flex-direction:column;gap:9px}
.invite-entry{display:flex;align-items:center;gap:12px;padding:11px 12px;border:1px solid #484059;border-radius:12px;background:#131320;flex-wrap:wrap}
.invite-entry-info{flex:1;min-width:130px;display:flex;flex-direction:column;gap:4px}.invite-entry-info strong{font-size:13px}.invite-entry-info small{font-size:11px;color:#a5a1be}
.invite-entry-actions{display:flex;gap:7px}.invite-entry-actions button{border-radius:9px;padding:8px 11px;font-size:11px;font-weight:750;border:1px solid #514368;color:#efebfa;background:#28233b}
.invite-entry-actions button.accept{border-color:#855ee4;background:#754bd1;color:#fff}
.message-invites{padding:12px;border-top:1px solid #313047;border-bottom:1px solid #313047;background:#22192e}.message-invites h3{font-size:12px;margin-bottom:11px}.message-invites .invite-entry{gap:7px}.message-invites .invite-entry-info{min-width:120px}.message-invites .invite-entry-actions button{padding:7px 8px}
.story-like-hint{font-size:11px;line-height:1.5;color:#bca5dc;padding:4px 3px 3px}

/* v2.4: visible gesture for browsers that block unmuted remote autoplay. */
.remote-card{position:relative}
.remote-play-button{position:absolute;z-index:8;left:50%;top:52%;transform:translate(-50%,-50%);border:1px solid #a881f4;border-radius:12px;padding:12px 18px;background:#251a42;color:#fff;cursor:pointer;font-weight:700;box-shadow:0 12px 35px #0009}
.remote-play-button.hidden{display:none}

/* Friend calls and audio controls */
.contact-entry-row{display:flex;align-items:stretch;gap:7px;width:100%}
.contact-entry-row .contact-entry{flex:1;min-width:0;text-align:left}
.friend-call-button{flex:0 0 auto;align-self:center;padding:10px 12px;border:1px solid #6d58b0;border-radius:12px;background:#372657;color:#fff;font-weight:700;cursor:pointer}
.friend-call-button:hover,.friend-call-button:focus-visible{background:#574093;outline:2px solid #b2a0ee}
#flipCameraButton{font-weight:700;font-size:24px}
.audio-input-select{max-width:140px;min-width:100px;font-size:12px;padding:8px 5px}
.controls{flex-wrap:wrap}

/* v2.7 separate customer and host onboarding */
.account-dialog{max-width:560px}.account-dialog .signup-role-choice input[type="radio"]{width:18px;height:18px;position:absolute;right:11px;top:11px;padding:0;flex:none}.friend-payment-terms{margin:9px 0 12px!important;font-size:11px!important;color:#cab7e7!important}
.signup-role-fieldset{border:0;margin:0;padding:0}.signup-role-fieldset legend{font-weight:750;font-size:13px;margin-bottom:9px;color:#eee5ff}
.signup-role-choices{display:grid;grid-template-columns:1fr 1fr;gap:9px}
.signup-role-choice{position:relative;display:flex;flex-direction:column;gap:7px;border:1px solid #4f4367;border-radius:14px;background:linear-gradient(155deg,#28203b,#141625);padding:15px;cursor:pointer;min-width:0}
.signup-role-choice:has(input:checked){border:2px solid #ad82ff;background:linear-gradient(155deg,#412c66,#1c1831)}
.signup-role-choice input{position:absolute;right:11px;top:11px;width:18px;height:18px;accent-color:#9866e5}
.signup-role-choice .role-icon{font-size:23px;color:#ae80ff}.signup-role-choice strong{font-size:13px;color:white;padding-right:14px}
.signup-role-choice small,.role-disclaimer{font-size:10px;color:#bcb5cb;line-height:1.5}
.role-disclaimer{margin:10px 0 14px}.wallet-dashboard{display:flex;flex-direction:column;gap:8px;background:#191629;border:1px solid #483b63;border-radius:12px;margin-top:10px;padding:13px;color:#ded4f2;font-size:12px}
.wallet-dashboard strong{font-size:13px;color:#fff}.wallet-dashboard small{color:#a6a1b8;line-height:1.6}.pack-actions{display:flex;flex-wrap:wrap;gap:6px}.pack-actions button{background:#604094;color:#fff;border:1px solid #8e6bd3;border-radius:8px;padding:8px;font-size:11px;cursor:pointer}.pack-actions button:hover{background:#7a52ba}.verification-note{font-size:10px;color:#c6addf}
@media(max-width:480px){.signup-role-choices{grid-template-columns:1fr}}

/* v2.6 three-person demo rooms: two remote videos and local preview. */
.group-launch{margin:0 15px 6px;width:calc(100% - 30px);border:1px solid #8361c7;background:#463169;color:#f4eaff;padding:12px;border-radius:11px;font-weight:750;cursor:pointer}
.group-sidebar-note{font-size:10px;color:#a29cad;margin:0 16px 15px;line-height:1.5}
.group-pick-list{display:grid;gap:9px;max-height:220px;overflow:auto;margin:18px 0}
.group-pick-list label{display:flex;align-items:center;gap:10px;padding:12px;background:#2a2439;border-radius:10px;color:#fff;font-size:13px}
.group-pick-list input{accent-color:#aa72ef}
.group-video-grid{position:absolute;inset:0;z-index:2;display:grid;grid-template-columns:1fr 1fr;gap:5px;padding:50px 8px 46px;background:#0f101b}
.group-video-grid.hidden{display:none}
.group-member{position:relative;min-width:0;min-height:150px;background:linear-gradient(#25223b,#171923);border-radius:13px;overflow:hidden;border:1px solid #42395d}
.group-member video{width:100%;height:100%;object-fit:cover;display:block;background:#111}
.group-member .group-name{position:absolute;bottom:12px;left:10px;right:10px;color:white;font-size:12px;background:#111a;padding:6px 9px;border-radius:8px;z-index:1;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}
#groupSoundButton{z-index:8}
@media(max-width:480px){.group-video-grid{grid-template-columns:1fr;grid-template-rows:1fr 1fr;padding:43px 7px 40px}.group-member{min-height:120px}}

/* Signup choice labels are intentionally simple; account roles stay unchanged server-side. */
.signup-role-choice.simple-role-choice{min-height:76px;justify-content:center;align-items:center;padding:18px 28px 18px 14px}
.signup-role-choice.simple-role-choice strong{font-size:17px;font-weight:750;padding-right:0}


/* v2.9 buy minutes modal + mini mode */
.buy-minutes-dialog{max-width:620px;padding:0 22px 22px;overflow:visible;background:#fff;color:#111827;border:none;border-radius:22px;position:relative}
.buy-minutes-dialog::backdrop{background:#0008}
.buy-close{position:absolute;right:14px;top:10px;border:0;background:transparent;color:#fff;font-size:22px;cursor:pointer;z-index:2}
.buy-minutes-top{margin:0 -22px 18px;padding:44px 22px 20px;border-radius:22px 22px 0 0;background:radial-gradient(circle at 50% 120%,#0068c91a,transparent 35%),linear-gradient(180deg,#0b1031 0%,#0d1030 30%,#141a40 100%);text-align:center;color:#fff;position:relative;overflow:hidden}
.buy-minutes-top::before{content:'';position:absolute;left:0;right:0;top:0;height:12px;background:#f3d450;border-radius:18px 18px 0 0}
.buy-minutes-icon{width:58px;height:58px;margin:0 auto 12px;border-radius:50%;display:grid;place-items:center;border:2px solid #eef2ff44;font-size:30px;background:#0f1538}
.buy-minutes-top h2{font-size:22px;margin-bottom:4px}.buy-minutes-top p{color:#d7ddff;font-weight:600}
.buy-pack-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;margin-bottom:18px}
.buy-pack-card{border:2px solid #d7dce6;border-radius:14px;background:#f8fafc;padding:0 0 12px;cursor:pointer;display:flex;flex-direction:column;align-items:center;gap:8px;color:#0f172a;min-height:173px;position:relative}
.buy-pack-card .buy-pack-ribbon{align-self:stretch;background:#f1d34a;color:#111827;font-size:12px;font-weight:800;padding:10px 8px;border-radius:12px 12px 0 0;text-align:left}.buy-pack-card .buy-pack-ribbon.subtle{background:#e5e7eb;text-align:center}.buy-pack-card strong{font-size:46px;line-height:1;margin-top:8px}.buy-pack-card span{font-size:13px}.buy-pack-card em{margin-top:auto;font-style:normal;font-weight:800;font-size:22px}.buy-pack-card.selected{border-color:#1fb341;box-shadow:0 0 0 3px #1fb34122 inset}.buy-pack-card.selected::after{content:'✓';position:absolute;right:8px;top:8px;width:22px;height:22px;border-radius:999px;background:#20b14a;color:#fff;display:grid;place-items:center;font-weight:800;font-size:14px}
.buy-confirm-button{width:100%;border:0;border-radius:12px;padding:16px 18px;background:#1ea43c;color:#fff;font-size:22px;font-weight:800;cursor:pointer;margin-bottom:12px}.buy-confirm-button:hover{filter:brightness(1.05)}
.buy-payment-row{border:1px solid #d7dce6;border-radius:999px;padding:13px 18px;display:flex;align-items:center;justify-content:space-between;gap:10px;margin-bottom:10px;color:#334155;background:#fff}.buy-payment-row strong{font-size:14px;color:#0f172a}
.buy-minutes-dialog small{display:block;text-align:center;color:#64748b;line-height:1.5}
.call-dock{position:fixed;right:18px;bottom:18px;z-index:30;display:flex;align-items:center;gap:14px;padding:14px 16px;border:1px solid #4f4367;border-radius:16px;background:rgba(17,19,31,.96);box-shadow:0 18px 50px #0007;color:#fff;max-width:min(92vw,420px)}
.call-dock.hidden{display:none}.call-dock-copy{display:flex;flex-direction:column;gap:4px;min-width:0}.call-dock-copy strong{font-size:14px}.call-dock-copy span{font-size:11px;color:#d7d0ea;line-height:1.4}.call-dock-actions{display:flex;gap:8px;align-items:center}.call-dock .nav-button,.call-dock .stop-button{padding:10px 12px;white-space:nowrap}
#miniModeButton{min-width:108px}
@media(max-width:640px){.buy-pack-grid{grid-template-columns:1fr}.buy-pack-card{min-height:unset;padding-bottom:14px}.buy-pack-card strong{font-size:40px}.call-dock{left:12px;right:12px;bottom:12px;flex-direction:column;align-items:stretch}.call-dock-actions{justify-content:stretch}.call-dock-actions>*{flex:1}}

/* v3.0 screenshot-style minute chooser and real paid call countdown. */
.buy-minutes-dialog{border-radius:19px;max-width:550px;padding:0 30px 24px;box-shadow:0 24px 70px #0009}
.buy-minutes-top{margin:0 -30px 18px;padding:50px 30px 55px;border-radius:18px 18px 0 0;background:radial-gradient(ellipse at 68% 68%,#0e3b79,#14112f 64%,#111525)}
.buy-minutes-top::before{height:11px;background:#ffd946;border-radius:18px 18px 40% 35%}
.buy-minutes-icon{width:49px;height:49px;margin-bottom:14px}
.buy-pack-grid{position:relative;margin-top:-36px;z-index:2;gap:11px}
.buy-pack-card{border-radius:9px;min-height:144px;background:#fff;padding-bottom:0;gap:4px;overflow:visible}
.buy-pack-card .buy-pack-ribbon{border-radius:7px 7px 0 0;font-size:11px;text-align:center;padding:10px 3px}
.buy-pack-card strong{font-size:30px;font-weight:500;margin-top:12px;color:#101827}
.buy-pack-card em{width:100%;background:#e5eaf0;padding:10px;color:#0b1526;font-size:14px;border-radius:0 0 7px 7px}
.buy-pack-card.selected em{background:#238e3d;color:#fff}
.buy-confirm-button{font-size:17px;font-weight:650;border-radius:10px;padding:14px;background:#22aa42}
.buy-minutes-dialog .buy-close{color:#f7faff;right:10px;top:10px}
.buy-payment-row{font-size:13px;padding:9px 13px;justify-content:center;gap:10px}
.paid-countdown{display:flex;gap:12px;align-items:center;margin-top:8px;background:#322147;color:#fff;padding:8px 12px;border:1px solid #8d62d0;border-radius:10px;width:max-content;max-width:100%;font-size:12px}
.paid-countdown.hidden{display:none}.paid-countdown strong{font-size:18px;letter-spacing:1px;font-variant-numeric:tabular-nums}
@media(max-width:640px){.buy-pack-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:6px}.buy-pack-card{min-height:150px}.buy-pack-card strong{font-size:27px}.buy-pack-card .buy-pack-ribbon{font-size:9px}.buy-minutes-dialog{padding:0 14px 18px;width:calc(100% - 22px)}.buy-minutes-top{margin-left:-14px;margin-right:-14px;padding:40px 14px 55px}.paid-countdown{font-size:11px;gap:8px}}


/* v3.1 call layout update: large remote video, local preview in top corner, translator at bottom */
.app-grid{position:relative;display:grid;grid-template-columns:1fr;grid-template-rows:minmax(520px,68vh) auto;gap:14px}
.remote-card{grid-column:1;grid-row:1;min-height:520px;border-radius:22px;overflow:hidden}
.self-card{position:absolute;top:14px;right:14px;z-index:8;width:min(255px,24vw);min-width:190px;height:min(150px,18vw);min-height:128px;border-radius:16px;overflow:hidden;box-shadow:0 12px 36px #0008;border:1px solid #ffffff20;background:#10213b}
.self-card .card-top{top:10px;left:10px;right:10px}
.self-card .camera-label,.self-card .soft-badge{font-size:9px}
.self-card .self-bottom{left:10px;right:10px;bottom:10px;font-size:9px}
.self-card .self-bottom span{padding:5px 7px}
.chat-panel{grid-column:1;grid-row:2;min-height:165px;border-radius:16px;background:#151827f0;overflow:hidden}
.chat-heading{padding:14px 16px 10px;gap:10px}
.chat-heading h3{font-size:15px}
.chat-heading p{font-size:10px}
.chat-icon{width:34px;height:34px;font-size:16px;border-radius:10px}
.messages{padding:10px 14px;max-height:165px;min-height:110px;background:linear-gradient(180deg,#171a28,#111421)}
.chat-form{padding:10px 12px;background:#0f1220}
.chat-form input{padding:11px 12px;border-radius:10px}
.chat-form button{width:44px;height:42px;border-radius:10px}
.video-fill{background:#0e1322}
.remote-card .video-fill{object-fit:cover}
.remote-card .placeholder{padding-bottom:72px}
.remote-card .video-bottom{bottom:14px}
.control-bar{margin-top:14px}
@media(max-width:1050px){
  .app-grid{grid-template-rows:minmax(430px,62vh) auto}
  .self-card{width:220px;height:138px;min-width:0}
}
@media(max-width:820px){
  .app-grid{grid-template-rows:minmax(390px,58vh) auto;gap:10px}
  .self-card{top:10px;right:10px;width:38vw;height:24vw;min-width:128px;min-height:96px;border-radius:14px}
  .self-card .card-top{top:8px;left:8px;right:8px}
  .self-card .self-bottom{display:none}
  .remote-card{min-height:390px}
  .chat-panel{min-height:150px}
  .messages{max-height:145px}
}
@media(max-width:650px){
  .app-grid{grid-template-rows:minmax(330px,48vh) auto}
  .remote-card{min-height:330px}
  .self-card{width:34vw;height:24vw;min-width:112px;min-height:88px;top:8px;right:8px}
  .self-card .soft-badge,.self-card .camera-label{font-size:8px}
  .chat-heading{padding:12px 12px 8px}
  .messages{min-height:90px;max-height:130px;padding:10px}
  .chat-form{padding:10px}
}

/* v3.2 private host demo earnings */
.host-earnings-bar{margin:14px 0 2px;padding:14px 17px;border:1px solid #655285;border-radius:16px;background:linear-gradient(110deg,#2b2144,#161828);display:flex;align-items:center;gap:20px;flex-wrap:wrap}
.host-earnings-bar.hidden{display:none}
.host-earnings-icon{width:42px;height:42px;border-radius:12px;background:#6945b0;color:white;display:grid;place-items:center;font-size:23px}
.host-earnings-label{display:flex;flex-direction:column;gap:3px;flex:1;min-width:175px}
.host-earnings-label strong{font-size:14px;color:#fff}
.host-earnings-label span{font-size:10px;color:#bcb3d8;line-height:1.4}
.host-earnings-today{display:flex;flex-direction:column;gap:4px;min-width:100px}
.host-earnings-today span{font-size:10px;color:#aaa4c2}
.host-earnings-today strong{font-size:16px;color:#f7eeff;font-variant-numeric:tabular-nums}
.host-earnings-open{border:1px solid #a77def;border-radius:9px;background:#7549d0;color:#fff;padding:11px 14px;cursor:pointer;font-weight:700;font-size:12px}
.earnings-total{padding:24px;margin-bottom:20px;display:flex;gap:16px;align-items:center;justify-content:space-between;flex-wrap:wrap;background:linear-gradient(125deg,#2d2148,#171a2a)}
.earnings-total>div{display:flex;flex-direction:column;gap:7px}
.earnings-total strong{font-size:32px;font-weight:800;font-variant-numeric:tabular-nums}
.earnings-total p{color:#bbb1d5;font-size:12px}
.earnings-overline{font-size:11px;letter-spacing:1.2px;color:#c6acef;text-transform:uppercase;font-weight:800}
.earnings-safety{color:#c9adef;background:#382456;border:1px solid #694799;border-radius:999px;padding:9px 12px;font-size:10px;font-weight:700}
.earnings-period-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:17px}
.earnings-period-card{padding:24px;display:flex;flex-direction:column;gap:9px;background:linear-gradient(155deg,#25213a,#151827)}
.earnings-period-title{color:#cdb4fc;font-size:13px;font-weight:800;margin-bottom:6px}
.earnings-period-card strong{font-size:25px;font-variant-numeric:tabular-nums;color:#fff}
.earnings-period-card>span{font-size:12px;color:#9da0b8}
.earnings-period-card small{color:#cbbce3;font-size:12px}
.earnings-card-rule{border-top:1px solid #ffffff21;margin:8px 0}
.earnings-disclaimer{max-width:850px;margin-top:20px;color:#b3b0c9;font-size:12px;line-height:1.65}
.earnings-updated{margin:15px 0 30px;color:#8e93ab;font-size:11px}
@media(max-width:800px){.earnings-period-grid{grid-template-columns:1fr}.earnings-period-card{padding:19px}.host-earnings-bar{gap:12px}.host-earnings-open{flex:1;min-width:130px}}

/* v3.4: host-only count-up call duration; stays visually distinct from purchase countdown. */
.paid-countdown{font-variant-numeric:tabular-nums}
.paid-countdown strong{min-width:58px;text-align:center}

/* v3.5 private member gate. Actual signup authorization is enforced by api.js. */
.private-landing{position:fixed;inset:78px 0 0;z-index:25;display:grid;place-items:center;overflow:auto;padding:24px;background:linear-gradient(130deg,rgba(10,10,23,.985),rgba(20,13,44,.98));backdrop-filter:blur(8px)}
.private-landing.hidden{display:none}
.private-landing-card{padding:38px 30px 42px;width:min(100%,515px);text-align:center;border:1px solid #71529d;background:radial-gradient(ellipse at top,#362450,#161726 65%)}
.private-landing-icon{margin:0 auto 18px;display:grid;place-items:center;width:58px;height:58px;border-radius:17px;background:#8050d4;color:white;font-size:36px}
.private-landing-card h2{font-family:Outfit,Arial,sans-serif;font-size:clamp(25px,4vw,34px);margin:12px 0}
.private-landing-card p{line-height:1.65;color:#b9b3ca;font-size:13px}
.private-landing-actions{display:flex;gap:10px;justify-content:center;margin-top:25px;flex-wrap:wrap}
.private-landing-actions button{font-size:13px;min-height:46px;padding:12px 18px}
.invite-code-label{margin:8px 0 12px}
@media(max-width:650px){.private-landing{inset:70px 0 0;padding:16px}.private-landing-card{padding:30px 18px}}


/* FlickChat v3.7: screenshot-inspired messenger, with real contact presence */
#messagesView .compact-hero{padding-bottom:17px}
#messagesView .messenger{grid-template-columns:minmax(255px,305px) minmax(0,1fr);min-height:640px;max-height:78vh;border-radius:15px;border:1px solid #cfdbe7;box-shadow:0 20px 54px #0004;background:#f4f8fc;overflow:hidden;color:#213148}
#messagesView .contact-sidebar{background:#fff;color:#20304c;border-right:1px solid #dce4ee;min-height:0}
#messagesView .contact-header{padding:17px 18px 10px}
#messagesView .contact-header h2{font-size:19px;font-weight:750;color:#0f2544}
#messagesView .count-bubble{background:#e6edfa;color:#305a97}
#messagesView .dm-filter-tabs{display:flex;gap:7px;border-bottom:1px solid #e2e8f0;padding:0 12px 10px}
#messagesView .dm-filter-tabs button{border:0;border-radius:99px;background:transparent;color:#6a7890;padding:8px 13px;font-size:11px;font-weight:750;cursor:pointer}
#messagesView .dm-filter-tabs button.selected{color:#1e416b;background:#e4ebf5}
#messagesView .dm-filter-tabs button span{color:#2462ad}
#messagesView .group-launch{width:calc(100% - 24px);margin:12px 12px 4px;background:#eff2fc;border:1px solid #d1dcf4;color:#35539c;padding:10px}
#messagesView .group-sidebar-note{margin:2px 16px 10px;color:#8390a4}
#messagesView .message-invites{background:#f5efff;border-color:#e2d7f4;color:#342d49}
#messagesView .contact-search-label{background:#f6f8fb;border:1px solid #e0e6ef;border-radius:11px;margin:9px 12px 12px;color:#64748b}
#messagesView .contact-search-label input{color:#263850;background:transparent}
#messagesView .contact-search-label input::placeholder{color:#91a0b5}
#messagesView .contact-list{padding:0 5px;max-height:none;min-height:240px;flex:1}
#messagesView .contact-entry-row{gap:2px;align-items:center;max-width:100%;border-bottom:1px solid #edf1f5;padding:4px 5px}
#messagesView .contact-entry{padding:11px 7px;gap:10px;border-radius:9px;color:#182d48;min-width:0}
#messagesView .contact-entry:hover{background:#f1f6fb}
#messagesView .contact-entry.selected{background:#e1edf9}
#messagesView .contact-avatar,#messagesView .dm-avatar{background:linear-gradient(135deg,#497abe,#8b5cc0);color:white;width:43px;height:43px;font-size:16px}
#messagesView .presence-avatar-wrap{position:relative;flex:none;width:43px;height:43px}
#messagesView .presence-avatar-wrap .online-contact-dot{position:absolute;right:-1px;bottom:0;width:13px;height:13px;border:2px solid white;background:#19c57e;border-radius:50%;box-shadow:0 0 0 1px #ccefe0}
#messagesView .contact-name-line{display:flex;align-items:center;gap:5px;min-width:0}
#messagesView .contact-name-line strong{font-size:12px;flex:1;min-width:0;color:#152943;white-space:nowrap;text-overflow:ellipsis;overflow:hidden}
#messagesView .online-name-tag{font-size:9px;color:#059561;white-space:nowrap;font-weight:800}
#messagesView .contact-entry-inner{gap:4px}
#messagesView .contact-entry-inner .contact-preview{font-size:11px;color:#536a84;line-height:1.4}
#messagesView .contact-presence-text{font-size:9px;color:#8a98ab;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
#messagesView .contact-help{color:#78899d;border-top-color:#e1e7ef;background:#fafbfd}
#messagesView .friend-call-button{border:1px solid #dde7f3;background:#f4f8fc;color:#3669aa;border-radius:10px;padding:9px 10px}
#messagesView .friend-call-button:hover,#messagesView .friend-call-button:focus-visible{background:#e4eeff;border-color:#8eb3eb}
#messagesView .dm-main{min-height:0;background:#f6f9fc}
#messagesView .dm-header{background:white;min-height:74px;padding:12px 20px;border-bottom:1px solid #dce6ef;gap:10px}
#messagesView .dm-user h3{color:#152e50;font-size:15px}
#messagesView .dm-user p{color:#778ba1;font-size:11px}
#messagesView .dm-user p.online{color:#0a9f70;font-weight:700}
#messagesView .dm-header .tiny-action{color:#53759f;background:#f6f8fc;border:1px solid #dee7f2;font-size:11px;white-space:nowrap}
#messagesView .dm-header .friend-call-button{font-size:11px;white-space:nowrap}
#messagesView .dm-tools{background:#f7fafd;color:#577291;border-bottom:1px solid #dce6ef;gap:9px;padding:8px 18px}
#messagesView .dm-tools label{color:#3f6190}
#messagesView .dm-tools select{color:#173657;background:#fff;border:1px solid #cfdaeb}
#messagesView .dm-tools span{color:#6e8097}
#messagesView .dm-messages{flex:1;min-height:300px;max-height:none;padding:24px 32px 18px;gap:12px;background-color:#edf4fa;background-image:radial-gradient(circle,#cadbe9 1px,transparent 1.1px),radial-gradient(circle,#d8e5f2 1px,transparent 1.1px);background-size:44px 44px,65px 65px;background-position:8px 10px,24px 27px;}
#messagesView .dm-messages>.dm-empty{color:#6b7b90}
#messagesView .dm-empty h2{color:#253b56}
#messagesView .dm-empty span{color:#5486bd}
#messagesView .dm-bubble{background:#fff;border:1px solid #e2e9f1;color:#1f3854;border-radius:14px 14px 14px 4px;max-width:min(82%,500px);box-shadow:0 3px 11px #5275a010;gap:5px}
#messagesView .dm-bubble.mine{background:#dbeaff;border:1px solid #d1e3fa;color:#1b3450;border-radius:14px 14px 4px 14px}
#messagesView .dm-bubble time{font-size:10px;color:#7a8ea5}
#messagesView .dm-translated{border-top:1px solid #d5e2ef;color:#486b91}
#messagesView .dm-compose{background:#fff;border-top:1px solid #dce6ef;padding:12px 14px}
#messagesView .dm-compose input{background:#fff;border:1px solid #c9d9eb;color:#1f3855;border-radius:9px;font-size:12px;padding:14px}
#messagesView .dm-compose input:focus{border-color:#5c97e0;box-shadow:0 0 0 3px #dceafb}
#messagesView .dm-compose .primary-button{background:#2674de;box-shadow:none;border-radius:9px}
#messagesView .contact-list .empty-state{color:#60768d}
#messagesView .empty-state h2{color:#35516e}
#messagesView .empty-state p{color:#62758c}
@media(max-width:800px){
 #messagesView .messenger{grid-template-columns:1fr;max-height:none;min-height:650px}
 #messagesView .contact-sidebar{max-height:350px;border-right:0;border-bottom:1px solid #dae4ee}
 #messagesView .contact-list{max-height:180px;min-height:120px}
 #messagesView .dm-messages{min-height:320px;max-height:460px;padding:18px}
 #messagesView .dm-header{flex-wrap:wrap;padding:11px 13px}
 #messagesView .dm-header .tiny-action{font-size:10px}
}


/* v3.8: translation is the readable primary line; sender's original is secondary. */
#messagesView .dm-bubble .dm-primary{font-size:15px;font-weight:500;line-height:1.45;color:#17324f;margin:0;white-space:pre-wrap;overflow-wrap:anywhere}
#messagesView .dm-bubble .dm-original{display:block;align-self:flex-start;max-width:100%;font-size:10.5px;line-height:1.4;font-weight:400;color:#59738d;background:#e8f0f9;padding:3px 6px;border-radius:4px;white-space:pre-wrap;overflow-wrap:anywhere}
#messagesView .dm-bubble.mine .dm-original{background:#cbdff7;color:#496987}
#messagesView .dm-bubble.is-translated{gap:5px}
/* The in-call text translator uses the same large/small hierarchy. */
#videoView .message .message-primary{display:block;font-size:14px;line-height:1.5;font-weight:500;white-space:pre-wrap;overflow-wrap:anywhere}
#videoView .message .message-original{display:block;font-size:10px;line-height:1.45;color:#c2b3df;background:#ffffff13;padding:3px 5px;margin-top:5px;border-radius:4px;font-weight:400;white-space:pre-wrap;overflow-wrap:anywhere}

/* v4.0: All chats navigation and mobile single-pane private conversations */
#messagesView .dm-return-row{display:flex;align-items:center;gap:12px;padding:9px 16px;background:#f8fbff;border-bottom:1px solid #dce6ef;color:#64748b;font-size:11px}
#messagesView .dm-back-button{border:1px solid #c7daf4;background:#e8f2ff;color:#21548e;border-radius:9px;padding:8px 12px;cursor:pointer;font-weight:750;font-size:12px}
#messagesView .dm-back-button:hover,#messagesView .dm-back-button:focus-visible{background:#d5e7ff;outline:2px solid #98bdf0}
@media(max-width:800px){
  #messagesView .messenger:not(.chat-open) .dm-main{display:none}
  #messagesView .messenger.chat-open .contact-sidebar{display:none}
  #messagesView .messenger.chat-open .dm-main{display:flex;width:100%;min-height:500px}
  #messagesView .messenger:not(.chat-open) .contact-sidebar{max-height:none;min-height:500px}
  #messagesView .messenger:not(.chat-open) .contact-list{max-height:none;min-height:260px}
  #messagesView .dm-return-row>span{display:none}
}
/* v4.0: free likes only; no paid-heart upsell shown to visitors. */
.story-reaction-count{position:absolute;right:9px;bottom:9px;z-index:3;border-radius:99px;background:#120e1bca;color:#fff;font-size:11px;padding:6px 10px;border:1px solid #ffffff33}
.story-paid-heart{padding:10px 14px;border-radius:10px;border:1px solid #f177a2;background:linear-gradient(120deg,#d92f7b,#ac287a);color:#fff;font-weight:750;cursor:pointer;font-size:12px}
.story-paid-heart:hover{filter:brightness(1.1)}.story-paid-heart:disabled{opacity:.65;cursor:not-allowed}
.story-actions{display:flex;flex-wrap:wrap;gap:8px}


/* v4.1: All chats is now a real inbox view, rather than clearing the chat panel. */
#messagesView .messenger.inbox-view{grid-template-columns:minmax(0,1fr)}
#messagesView .messenger.inbox-view .dm-main{display:none}
#messagesView .messenger.inbox-view .contact-sidebar{width:100%;max-height:none;min-height:590px;border:0}
#messagesView .messenger.inbox-view .contact-header{padding:24px 25px 10px}
#messagesView .inbox-header-copy{display:flex;flex-direction:column;gap:4px}
#messagesView .inbox-header-copy h2{font-size:20px}
#messagesView .inbox-description{display:none;color:#788da5;font-size:12px;line-height:1.4}
#messagesView .messenger.inbox-view .inbox-description{display:block}
#messagesView .messenger.inbox-view .dm-filter-tabs{padding:8px 24px 13px}
#messagesView .messenger.inbox-view .contact-search-label{margin:12px 24px 15px;max-width:510px}
#messagesView .messenger.inbox-view .contact-list{display:grid;grid-template-columns:repeat(auto-fill,minmax(275px,1fr));gap:12px;align-content:start;overflow-y:auto;padding:4px 24px 24px;max-height:none;min-height:250px}
#messagesView .messenger.inbox-view .contact-entry-row{background:#f9fbff;border:1px solid #dce6f2;border-radius:14px;box-shadow:0 3px 8px #2b52790a;padding:7px}
#messagesView .messenger.inbox-view .contact-entry-row:focus-within,#messagesView .messenger.inbox-view .contact-entry-row:hover{border-color:#a9c6ea;background:#f0f6ff}
#messagesView .messenger.inbox-view .contact-entry{padding:13px 9px}
#messagesView .messenger.inbox-view .group-launch{max-width:510px;margin-left:24px}
#messagesView .messenger.inbox-view .group-sidebar-note{margin-left:28px}
#messagesView .messenger.inbox-view .contact-help{margin-top:auto}
@media(max-width:800px){
 #messagesView .messenger.inbox-view .contact-sidebar{max-height:none;min-height:520px}
 #messagesView .messenger.inbox-view .contact-list{max-height:none;min-height:240px;grid-template-columns:1fr;padding:4px 14px 22px}
 #messagesView .messenger.inbox-view .contact-header{padding:18px 16px 9px}
 #messagesView .messenger.inbox-view .dm-filter-tabs{padding:5px 14px 12px}
 #messagesView .messenger.inbox-view .contact-search-label{margin:8px 14px 12px}
 #messagesView .messenger.inbox-view .group-launch{margin-left:14px}
 #messagesView .messenger.inbox-view .group-sidebar-note{margin-left:18px}
}

/* v4.4: Keep the private-chat composer visible even with long conversations.
   The original CSS let the grid's min-content row grow to the full height of
   every message. The outer messenger clips that overflow, hiding the composer. */
#messagesView .messenger.chat-open {
  height: min(780px, max(430px, calc(100dvh - 280px)));
  min-height: 0;
  max-height: none;
  grid-template-rows: minmax(0, 1fr);
}
#messagesView .messenger.chat-open .dm-main {
  min-height: 0;
  height: 100%;
  overflow: hidden;
}
#messagesView .messenger.chat-open .dm-return-row,
#messagesView .messenger.chat-open .dm-header,
#messagesView .messenger.chat-open .dm-tools {
  flex: 0 0 auto;
}
#messagesView .messenger.chat-open .dm-messages {
  flex: 1 1 0;
  min-height: 0;
  max-height: none;
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior-y: contain;
}
#messagesView .messenger.chat-open .dm-compose {
  flex: 0 0 auto;
  position: relative;
  z-index: 2;
  background: #fff;
}
@media (max-width: 800px) {
  #messagesView .messenger.chat-open {
    grid-template-columns: minmax(0, 1fr);
    height: min(770px, max(470px, calc(100dvh - 170px)));
    min-height: 0;
  }
  #messagesView .messenger.chat-open .dm-main {
    min-height: 0;
    height: 100%;
  }
  #messagesView .messenger.chat-open .dm-messages {
    min-height: 0;
    max-height: none;
  }
}
#messagesView .messenger.chat-open .contact-sidebar {
  min-height: 0;
  overflow: hidden;
}
#messagesView .messenger.chat-open .contact-list {
  flex: 1 1 0;
  min-height: 0;
  overflow-y: auto;
}
/* Small screens: fill the viewport so the keyboard/input stays reachable. */
@media (max-width:650px) {
  #messagesView .messenger.chat-open {
    position:fixed;
    inset:0;
    z-index:40;
    width:100vw;
    height:100dvh;
    min-height:0;
    max-height:none;
    margin:0;
    border:0;
    border-radius:0;
  }
  #messagesView .messenger.chat-open .dm-compose {
    padding-bottom:max(12px,env(safe-area-inset-bottom));
  }
}

/* v4.5: TURN connectivity status, without exposing credentials. */
.control-bar{flex-wrap:wrap}
.turn-test-status{flex-basis:100%;font-size:12px;line-height:1.45;color:#c7b6eb;margin:0;padding:0 8px}
.turn-test-status:empty{display:none}
#testTurnButton{white-space:nowrap}


/* v4.6.2 | Three-person calls: a compact self camera in the top-right,
   with the OTHER TWO participants as equally prominent, side-by-side panels.
   Only the group-call-active state changes the layout; 1:1 remains untouched. */
.app-grid.group-call-active{grid-template-rows:minmax(690px,82vh) auto}
.app-grid.group-call-active .remote-card{min-height:690px;background:#101322}
.app-grid.group-call-active .self-card{z-index:9}
.app-grid.group-call-active .group-video-grid{
  position:absolute;inset:0;z-index:2;
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  grid-template-rows:minmax(0,1fr);
  gap:12px;
  padding:185px 14px 46px;
  background:linear-gradient(180deg,#121528 0%,#101321 180px,#0d0f19 100%);
}
.app-grid.group-call-active .group-member{
  min-width:0;min-height:0;width:100%;height:100%;
  border-radius:17px;border:1px solid #494060;
  background:#141827;overflow:hidden;
}
.app-grid.group-call-active .group-member video{
  display:block;width:100%;height:100%;object-fit:cover;background:#0d1019;
}
.app-grid.group-call-active .group-name{
  bottom:14px;left:14px;right:auto;max-width:calc(100% - 28px);
  padding:8px 11px;border-radius:9px;font-size:12px;
  background:rgba(11,12,22,.78);backdrop-filter:blur(6px)
}
.group-call-banner{
  position:absolute;top:72px;left:24px;z-index:4;pointer-events:none;
  display:flex;flex-direction:column;gap:8px;
  max-width:calc(100% - 320px);color:#f3efff;
}
.group-call-banner-eyebrow{
  font-size:10px;font-weight:800;letter-spacing:1.4px;color:#ae91f1;
}
.group-call-banner strong{font-size:clamp(16px,2.2vw,23px);line-height:1.2}
.group-call-banner small{font-size:11px;color:#aeb6cc}
@media(max-width:820px){
  .app-grid.group-call-active{grid-template-rows:minmax(580px,75vh) auto}
  .app-grid.group-call-active .remote-card{min-height:580px}
  .app-grid.group-call-active .self-card{
    top:12px;right:12px;width:min(210px,28vw);height:126px;
    min-height:0;min-width:0;
  }
  .app-grid.group-call-active .group-video-grid{padding:175px 10px 43px;gap:9px}
  .group-call-banner{top:64px;left:16px;max-width:calc(100% - 235px)}
  .group-call-banner strong{font-size:16px}
}
@media(max-width:650px){
  .app-grid.group-call-active{grid-template-rows:minmax(490px,68svh) auto}
  .app-grid.group-call-active .remote-card{min-height:490px}
  .app-grid.group-call-active .self-card{
    top:10px;right:10px;width:clamp(118px,34vw,160px);
    height:clamp(92px,25vw,113px);min-height:0;min-width:0;
  }
  .app-grid.group-call-active .group-video-grid{
    grid-template-columns:repeat(2,minmax(0,1fr));
    grid-template-rows:minmax(0,1fr);
    padding:151px 8px 42px;gap:7px;
  }
  .app-grid.group-call-active .group-member{min-height:0;border-radius:11px}
  .app-grid.group-call-active .group-name{
    left:6px;bottom:8px;max-width:calc(100% - 12px);
    padding:6px 7px;font-size:10px;
  }
  .group-call-banner{top:63px;left:12px;max-width:calc(100% - 165px);gap:5px}
  .group-call-banner strong{font-size:14px}
  .group-call-banner small{font-size:10px;line-height:1.35}
  .group-call-banner-eyebrow{font-size:9px;letter-spacing:.7px}
}
@media(max-width:380px){
  .app-grid.group-call-active{grid-template-rows:minmax(450px,70svh) auto}
  .app-grid.group-call-active .remote-card{min-height:450px}
  .app-grid.group-call-active .group-video-grid{padding-top:145px}
  .group-call-banner small{display:none}
}

/* v4.7: Site-language picker. Separate from live-message translation. */
.ui-language-picker{display:flex;flex-direction:column;gap:4px;min-width:120px;max-width:155px;flex:none}
.ui-language-picker label{display:flex;gap:4px;align-items:center;color:#a9acc6;font-size:10px;font-weight:650;white-space:nowrap}
.ui-language-picker select{width:100%;min-width:0;min-height:35px;border-radius:9px;border:1px solid #57506f;background:#252136;color:#f3eeff;padding:6px 9px;font-size:12px;font-weight:650;cursor:pointer}
.ui-language-picker select:focus-visible{outline:2px solid #b18aff;outline-offset:2px}
html[dir="rtl"] .topbar{direction:ltr}
html[dir="rtl"] .topbar .ui-language-picker{direction:rtl}
html[dir="rtl"] .app-grid.group-call-active{direction:ltr} /* preserve the camera's top-right position */
html[dir="rtl"] .app-grid.group-call-active .remote-card,
html[dir="rtl"] .app-grid.group-call-active .self-card,
html[dir="rtl"] .app-grid.group-call-active .chat-panel{direction:rtl}
html[dir="rtl"] .app-grid.group-call-active .self-card{right:14px;left:auto}
html[dir="rtl"] .group-call-banner{text-align:right}
html[dir="rtl"] .group-call-banner .group-call-banner-eyebrow{letter-spacing:0}
@media(max-width:900px){.ui-language-picker{max-width:135px;min-width:108px}.ui-language-picker label span{font-size:9px}}
@media(max-width:650px){.ui-language-picker{min-width:105px;max-width:124px}.ui-language-picker label{font-size:9px}.ui-language-picker select{min-height:34px;font-size:11px;padding:5px}}
