*{box-sizing:border-box}html,body{margin:0;width:100%;min-height:100%;font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;color:#172033;background:#f6f8fc}body{overflow:hidden}.hidden{display:none!important}
.bg-orb{position:fixed;border-radius:50%;filter:blur(55px);opacity:.38;pointer-events:none;animation:float 10s ease-in-out infinite;z-index:-2}.orb1{width:300px;height:300px;background:#ddd5ff;top:-100px;left:-90px}.orb2{width:270px;height:270px;background:#cfeaff;right:-90px;top:28%}.orb3{width:250px;height:250px;background:#eadbff;left:30%;bottom:-130px;animation-delay:-4s}@keyframes float{50%{transform:translate(18px,26px) scale(1.08)}}

/* AUTH */
.auth-shell{width:100%;height:100svh;min-height:100vh;display:grid;place-items:center;padding:18px;overflow:auto;position:relative}.auth-stage{width:min(430px,94vw);perspective:1400px}.auth-card{position:relative;width:100%;min-height:690px}.auth-card-glow{position:absolute;inset:8px;border-radius:38px;background:linear-gradient(135deg,#fff,#e8edff);box-shadow:0 35px 90px #26324d18,0 0 70px #5c7cff10;z-index:-1}.auth-panel{position:absolute;inset:0;padding:28px 30px 24px;border-radius:36px;background:linear-gradient(145deg,#edf1f5,#e6eaf0);box-shadow:20px 20px 45px #a3b1c655,-18px -18px 42px #fff;transition:opacity .45s ease,transform .6s cubic-bezier(.2,.8,.2,1),visibility .45s}.login-panel{opacity:1;visibility:visible;transform:translateX(0) rotateY(0)}.signup-panel{opacity:0;visibility:hidden;transform:translateX(65px) rotateY(-7deg)}.auth-card.show-register .login-panel{opacity:0;visibility:hidden;transform:translateX(-65px) rotateY(7deg)}.auth-card.show-register .signup-panel{opacity:1;visibility:visible;transform:translateX(0) rotateY(0)}
.auth-brand{display:flex;justify-content:center;align-items:center;gap:8px;color:#25304a;font-size:12px;font-weight:800;letter-spacing:.15em;text-transform:uppercase}.brand-spark{color:#5668ff;font-size:22px;animation:spark 2.4s ease-in-out infinite}@keyframes spark{50%{transform:translateY(-3px) rotate(12deg);text-shadow:0 0 18px #6170ff77}}
.auth-icon{width:72px;height:72px;margin:16px auto 12px;border-radius:50%;display:grid;place-items:center;font-size:28px;background:#e7ebf0;box-shadow:9px 9px 18px #a3b1c655,-9px -9px 18px #fff;animation:iconFloat 4s ease-in-out infinite}@keyframes iconFloat{50%{transform:translateY(-5px) rotate(5deg)}}
.auth-panel h1{text-align:center;margin:0;color:#202a3d;font-size:29px;letter-spacing:-.04em}.auth-subtitle{text-align:center;margin:7px 0 26px;color:#7b8492;font-size:13px}.auth-form{display:grid;gap:14px}.electric-input{position:relative;display:block;height:59px}.electric-input input{position:absolute;inset:2px;width:calc(100% - 4px);height:55px;border:0;outline:0;border-radius:17px;background:#e7ebf0;color:#263044;font:inherit;font-size:14px;padding:0 48px 0 18px;z-index:4;box-shadow:inset 6px 6px 12px #a3b1c68a,inset -6px -6px 12px #fff}.electric-input input:focus{box-shadow:inset 3px 3px 7px #a3b1c68a,inset -3px -3px 7px #fff}.electric-border{position:absolute;inset:0;border-radius:20px;overflow:hidden;opacity:0;transition:opacity .2s;z-index:1;pointer-events:none}.electric-border:before{content:"";position:absolute;width:180%;height:180%;left:-40%;top:-40%;background:conic-gradient(from 0deg,transparent 0 30deg,#00eaff 45deg,#008cff 70deg,#735cff 90deg,transparent 110deg 360deg);animation:electricRotate 1.05s linear infinite}.electric-border:after{content:"";position:absolute;inset:2px;border-radius:18px;background:#e7ebf0}.electric-glow{position:absolute;inset:-5px;border-radius:23px;background:#3d9cff;filter:blur(10px);opacity:0;z-index:0;pointer-events:none}.electric-input:focus-within .electric-border{opacity:1}.electric-input:focus-within .electric-glow{opacity:.35;animation:electricPulse 1.2s ease-in-out infinite}@keyframes electricRotate{to{transform:rotate(360deg)}}@keyframes electricPulse{50%{opacity:.58}}
.floating-label{position:absolute;left:18px;top:20px;color:#89929c;font-size:13px;z-index:6;pointer-events:none;transition:.2s;padding:0 3px}.electric-input input:focus~.floating-label,.electric-input input:not(:placeholder-shown)~.floating-label{top:-8px;left:13px;background:#e7ebf0;color:#126cff;font-size:10px;border-radius:7px;padding:2px 7px}.password-toggle{position:absolute;right:12px;top:15px;width:30px;height:30px;border:0;background:transparent;z-index:8;cursor:pointer;font-size:15px}.auth-options{display:flex;align-items:center;justify-content:space-between;margin:0 3px 2px;color:#778194;font-size:11px}.auth-options label{display:flex;gap:7px;align-items:center}.auth-options input{accent-color:#5367ff}.secure-label{opacity:.75}.auth-submit{height:55px;border:0;border-radius:17px;background:linear-gradient(135deg,#5667ff,#4b91ff);color:#fff;font:inherit;font-size:13px;font-weight:850;letter-spacing:.08em;cursor:pointer;box-shadow:0 14px 30px #5667ff3d;transition:.25s}.auth-submit b{float:right;font-size:20px;margin-right:4px}.auth-submit:hover{transform:translateY(-2px);box-shadow:0 18px 34px #5667ff55}.auth-submit:active{transform:scale(.98)}.auth-switch{display:flex;align-items:center;justify-content:center;gap:11px;margin-top:22px;color:#7c8594;font-size:11px}.switch-circle{width:48px;height:48px;border:0;border-radius:50%;background:#e7ebf0;color:#5268ff;font-size:22px;cursor:pointer;display:grid;place-items:center;box-shadow:7px 7px 14px #a3b1c655,-7px -7px 14px #fff;transition:.3s}.switch-circle:hover{background:#5367ff;color:#fff;transform:rotate(180deg) scale(1.07)}.auth-footnote{text-align:center;color:#929baa;font-size:9px;line-height:1.5;margin:13px auto 0;max-width:270px}

/* PIN */
.pin-shell{height:100svh;min-height:100vh;display:grid;place-items:center;padding:20px}.glass{background:#ffffffdd;border:1px solid #fff;box-shadow:0 25px 80px #35405c14;backdrop-filter:blur(22px);-webkit-backdrop-filter:blur(22px)}.pin-card{width:min(370px,100%);padding:30px;border-radius:30px;text-align:center;animation:rise .5s ease}.lock{font-size:38px;margin-bottom:8px}.pin-card h2{margin:0}.pin-card p{color:#8490a4;font-size:13px}.pin-dots{display:flex;justify-content:center;gap:12px;margin:20px}.pin-dots i{width:12px;height:12px;border-radius:50%;background:#e1e5ed}.pin-dots i.on{background:#6d5dfc;box-shadow:0 0 0 5px #6d5dfc15}.pin-card>input{position:absolute;opacity:0;pointer-events:none}.keypad{display:grid;grid-template-columns:repeat(3,1fr);gap:10px}.keypad button{height:55px;border:0;border-radius:16px;background:#f4f6f9;color:#263047;font-size:18px;font-weight:750;cursor:pointer}.keypad button:active{transform:scale(.96);background:#eaeef5}.logout-link{border:0;background:none;color:#8993a6;margin-top:20px;cursor:pointer}

/* MESSENGER */
.app-shell{width:100%;height:100svh;min-height:100vh;display:grid;grid-template-columns:340px minmax(0,1fr);position:relative}.sidebar{background:#ffffffdf;border-right:1px solid #e9edf3;padding:18px;display:flex;flex-direction:column;min-width:0;backdrop-filter:blur(20px)}.side-top{display:flex;align-items:center;justify-content:space-between;margin-bottom:18px}.brand{display:flex;align-items:center;gap:10px}.brand-mark{width:44px;height:44px;border-radius:14px;background:linear-gradient(135deg,#5f62ff,#4e9aff);color:#fff;display:grid;place-items:center;font-size:22px;box-shadow:0 12px 28px #5367ff33}.brand b,.brand span{display:block}.brand b{font-size:16px}.brand span{font-size:10px;color:#8b94a5;margin-top:3px}.icon-btn{width:42px;height:42px;border:0;border-radius:14px;background:#f3f5f8;color:#526078;cursor:pointer;font-size:18px}.icon-btn:hover{background:#e9ecf3}.search{display:flex;align-items:center;gap:9px;background:#f4f6f9;border-radius:16px;padding:0 13px;border:1px solid #eef1f5}.search span{font-size:22px;color:#8d97a8}.search input{width:100%;border:0;outline:0;background:transparent;padding:13px 0;font:inherit;font-size:13px}.results{position:relative;z-index:5}.result-item,.conv{display:flex;align-items:center;gap:11px;padding:12px;border-radius:15px;cursor:pointer}.result-item:hover,.conv:hover{background:#f5f7fa}.avatar{width:42px;height:42px;border-radius:14px;background:linear-gradient(135deg,#dcd6ff,#d6ecff);display:grid;place-items:center;color:#5e55c9;font-weight:850;flex:0 0 auto}.result-item b,.conv b{font-size:13px;display:block}.result-item span,.conv span{font-size:11px;color:#8b95a7}.section-title{font-size:11px;text-transform:uppercase;letter-spacing:.12em;color:#9aa3b2;font-weight:800;margin:18px 4px 8px}.conversation-list{overflow:auto;flex:1;min-height:0}.conv .preview{flex:1;min-width:0}.conv .preview span{display:block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.badge{min-width:20px;height:20px;padding:0 6px;border-radius:20px;background:#6d5dfc;color:#fff;font-size:10px;display:grid;place-items:center}.profile{display:flex;align-items:center;gap:10px;padding:9px;margin-top:12px;border-radius:18px}.glass-mini{background:#f8f9fc;border:1px solid #edf0f5}.me{flex:1;min-width:0}.me b,.me span{display:block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.me b{font-size:12px}.me span{font-size:10px;color:#919aab}
.chat{position:relative;min-width:0;min-height:0;height:100%;background:linear-gradient(145deg,#f8f9fdcc,#f2f6ffcc)}.empty-chat{height:100%;display:grid;place-content:center;text-align:center;color:#8791a3;padding:30px}.empty-icon{width:78px;height:78px;margin:auto;border-radius:24px;display:grid;place-items:center;background:#fff;box-shadow:0 18px 50px #26324d0d;font-size:32px}.empty-chat h2{color:#263047;margin:18px 0 6px;font-size:22px}.empty-chat p{font-size:13px}.chat-pane{height:100%;min-height:0;display:flex;flex-direction:column}.chat-head{height:78px;flex:0 0 78px;background:#ffffffeb;border-bottom:1px solid #edf0f4;display:flex;align-items:center;gap:12px;padding:0 22px;backdrop-filter:blur(20px);box-shadow:0 5px 20px #26324d08}.chat-person{flex:1;min-width:0}.chat-person b,.chat-person span{display:block}.chat-person b{font-size:14px}.chat-person span{font-size:11px;color:#8490a4;margin-top:3px}.mobile-back{display:none;border:0;background:none;font-size:32px;color:#647087}.messages{flex:1;min-height:0;overflow-y:auto;overflow-x:hidden;padding:25px 28px 18px;display:flex;flex-direction:column;gap:9px;scroll-behavior:smooth}.messages:empty:after{content:'Start your private conversation';align-self:center;margin-top:30%;color:#9aa3b2;font-size:12px}.bubble{max-width:min(72%,560px);padding:11px 14px;border-radius:19px;font-size:13px;line-height:1.5;animation:msgIn .25s ease;box-shadow:0 6px 20px #26324d08}.bubble.mine{align-self:flex-end;background:linear-gradient(135deg,#6860ff,#4e89f5);color:#fff;border-bottom-right-radius:6px;box-shadow:0 10px 25px #596dff2b}.bubble.theirs{align-self:flex-start;background:#fff;color:#253047;border-bottom-left-radius:6px}.time{font-size:9px;opacity:.65;margin-top:5px;text-align:right}.composer{flex:0 0 auto;display:flex;gap:9px;padding:12px 18px max(12px,env(safe-area-inset-bottom));background:#ffffffee;border-top:1px solid #edf0f4;backdrop-filter:blur(20px);position:relative;z-index:20}.message-field{position:relative;flex:1;display:flex;align-items:center;background:#f5f7fa;border:1px solid #e2e6ee;border-radius:18px;min-width:0;transition:.2s}.message-field:focus-within{border-color:#aeb7ff;box-shadow:0 0 0 4px #6874ff0d}.message-lock{padding-left:13px;font-size:12px;opacity:.55}.composer input{flex:1;min-width:0;border:0;border-radius:17px;padding:14px 9px;outline:0;font:inherit;background:transparent;font-size:13px}.composer-tool{width:36px;height:36px;margin-right:5px;border:0;background:#fff;border-radius:11px;color:#657087;cursor:pointer}.send-btn{width:52px;height:52px;flex:0 0 52px;border:0;border-radius:17px;background:linear-gradient(135deg,#6960ff,#4e8cf6);color:#fff;font-size:21px;cursor:pointer;box-shadow:0 12px 25px #665dff38;transition:.2s}.send-btn:hover{transform:translateY(-2px)}.send-btn:active{transform:scale(.95)}
.modal{position:fixed;inset:0;background:#1b24364d;display:grid;place-items:center;padding:20px;z-index:50;backdrop-filter:blur(8px)}.modal-card{width:min(390px,100%);padding:30px;border-radius:28px;text-align:center;position:relative}.modal-close{position:absolute;right:14px;top:12px;border:0;background:#f2f4f7;width:34px;height:34px;border-radius:10px;font-size:22px;cursor:pointer}.otp-input{width:100%;text-align:center;letter-spacing:10px;font-size:24px;padding:14px;border:1px solid #e0e5ed;border-radius:14px;margin:14px 0;outline:0}.primary{border:0;border-radius:14px;padding:14px 16px;background:linear-gradient(135deg,#6d5dfc,#4f8fff);color:#fff;font-weight:800;font-size:14px;cursor:pointer}.toast{position:fixed;left:50%;bottom:max(18px,env(safe-area-inset-bottom));transform:translate(-50%,20px);background:#172033;color:#fff;padding:12px 15px;border-radius:13px;z-index:100;font-size:12px;box-shadow:0 15px 40px #17203333;opacity:0;pointer-events:none;transition:.25s}.toast.show{transform:translate(-50%,0);opacity:1}
@keyframes rise{from{opacity:0;transform:translateY(18px) scale(.98)}to{opacity:1;transform:none}}@keyframes msgIn{from{opacity:0;transform:translateY(5px)}to{opacity:1;transform:none}}
@media(max-width:760px){
 body{overflow:hidden}.auth-shell{padding:12px;align-items:center}.auth-stage{width:min(430px,96vw)}.auth-card{min-height:675px}.auth-panel{padding:24px 20px 20px;border-radius:30px}.auth-icon{width:64px;height:64px;font-size:24px;margin-top:13px}.auth-panel h1{font-size:25px}.auth-subtitle{margin-bottom:22px}.auth-form{gap:12px}.electric-input{height:56px}.electric-input input{height:52px}.auth-options{font-size:10px}.auth-footnote{font-size:8px}.app-shell{grid-template-columns:1fr}.sidebar{display:flex;position:absolute;inset:0;z-index:10;width:100%;transition:.25s}.chat{display:none}.app-shell.chat-open .sidebar{display:none}.app-shell.chat-open .chat{display:block}.mobile-back{display:block}.chat-head{height:68px;flex-basis:68px;padding:0 12px}.messages{padding:16px 12px 12px}.bubble{max-width:84%}.composer{padding:8px 9px max(8px,env(safe-area-inset-bottom));gap:7px}.send-btn{width:47px;height:47px;flex-basis:47px}.message-field{border-radius:16px}.composer input{padding:12px 6px;font-size:13px}.empty-chat{padding:20px}.profile{margin-bottom:env(safe-area-inset-bottom)}
}
@media(max-height:720px) and (max-width:760px){.auth-card{min-height:625px}.auth-icon{margin:8px auto}.auth-panel{padding-top:17px}.auth-subtitle{margin-bottom:14px}.auth-switch{margin-top:14px}.auth-footnote{margin-top:8px}}
