*{
margin:0;
padding:0;
box-sizing:border-box;
font-family:sans-serif;
}

body{
background:#0b141a;
height:100vh;
overflow:hidden;
}

.app{
max-width:500px;
width:100%;
height:100dvh;
margin:auto;
background:#efeae2;
position:relative;
overflow:hidden;
display:flex;
flex-direction:column;
}

.topbar{
height:60px;
background:#202c33;
display:flex;
align-items:center;
justify-content:space-between;
padding:0 10px;
color:white;
}

.left{
display:flex;
align-items:center;
gap:10px;
}

.left img{
width:40px;
height:40px;
border-radius:50%;
}

.user h3{
font-size:16px;
}

.user p{
font-size:12px;
opacity:.8;
}

.right{
display:flex;
gap:15px;
}

.chat-area{
height:calc(100dvh - 120px);
overflow-y:auto;
padding:15px;
background:#e5ddd5;
background-image:
radial-gradient(#d1c7b7 1px, transparent 1px);
background-size:22px 22px;
}

.message{
width:fit-content;
max-width:78%;
padding:7px 9px 6px;
border-radius:7.5px;
margin-bottom:2px;
position:relative;
word-wrap:break-word;
font-size:14.2px;
line-height:1.4;
box-shadow:
0 1px .5px rgba(11,20,26,.13);
display:block;
clear:both;
}

.sent{
background:#d9fdd3;
margin-left:auto;
}

.received{
background:white;
}

.time{
font-size:11px;
opacity:.7;
margin-top:5px;
display:flex;
justify-content:flex-end;
align-items:center;
gap:3px;
}

.bottom{
position:absolute;
bottom:0;
width:100%;
height:60px;
background:#f0f2f5;
display:flex;
align-items:center;
padding:0 10px;
gap:10px;
}

.bottom input{
flex:1;
height:42px;
border:none;
outline:none;
border-radius:25px;
padding:0 15px;
font-size:15px;
}

.bottom .material-icons{
color:#54656f;
font-size:26px;
cursor:pointer;
}

#sendBtn{
width:45px;
height:45px;
border:none;
border-radius:50%;
background:#202c33;
display:flex;
align-items:center;
justify-content:center;
cursor:pointer;
}

#sendBtn .material-icons{
color:white;
}

::-webkit-scrollbar{
width:5px;
}

::-webkit-scrollbar-thumb{
background:#ccc;
border-radius:10px;
}

.tick{
font-size:12px;
color:gray;
margin-left:4px;
}

.tick.blue{
color:#53bdeb;
}

.sent::after{
content:'';
position:absolute;
right:-6px;
top:0;
width:0;
height:0;
border-top:10px solid #d9fdd3;
border-right:10px solid transparent;
}

.received::after{
content:'';
position:absolute;
left:-6px;
top:0;
width:0;
height:0;
border-top:10px solid white;
border-left:10px solid transparent;
}

.attach-menu{
position:absolute;
bottom:70px;
left:20px;
width:320px;
background:white;
border-radius:18px;
padding:20px;
display:none;
grid-template-columns:repeat(3,1fr);
gap:20px;
box-shadow:0 3px 15px rgba(0,0,0,.2);
z-index:100;
}

.attach-item{
text-align:center;
}

.attach-item span{
width:55px;
height:55px;
display:flex;
align-items:center;
justify-content:center;
border-radius:50%;
color:white;
font-size:28px;
margin:auto;
}

.attach-item p{
font-size:13px;
margin-top:8px;
color:#444;
}

.purple span{
background:#7b61ff;
}

.pink span{
background:#ff2d55;
}

.teal span{
background:#00bfa5;
}

.green span{
background:#00c853;
}

.blue span{
background:#4a6cf7;
}

.yellow span{
background:#f4b400;
}

.emoji-panel{
position:absolute;
bottom:60px;
left:0;
width:100%;
height:220px;
background:white;
padding:15px;
display:none;
flex-wrap:wrap;
gap:10px;
overflow-y:auto;
}

.emoji-panel span{
font-size:28px;
cursor:pointer;
}


.chat-image{
width:100%;
max-width:220px;
border-radius:10px;
display:block;
}

.audio-msg{
width:230px;
height:40px;
}

.chat-image{
cursor:pointer;
transition:.2s;
}

.chat-image:active{
transform:scale(.97);
}

.chat-area{
scroll-behavior:smooth;
-webkit-overflow-scrolling:touch;
}

.admin-layout{
display:flex;
height:100vh;
}

.sidebar{
width:320px;
background:white;
border-right:1px solid #ddd;
overflow-y:auto;
}

.sidebar-top{
padding:20px;
font-size:20px;
font-weight:bold;
background:#075e54;
color:white;
}

.chat-user{
padding:15px;
border-bottom:1px solid #eee;
cursor:pointer;
}

.chat-user:hover{
background:#f5f5f5;
}

.chat-section{
flex:1;
display:flex;
flex-direction:column;
position:relative;
}

.verified-name{
display:flex;
align-items:center;
gap:4px;
font-size:18px;
font-weight:500;
line-height:1;
}

.verified-icon{
width:18px;
height:18px;
object-fit:contain;
margin-top:1px;
flex-shrink:0;
}

.welcome-card{
width:265px;
background:#fff;
border-radius:10px;
overflow:hidden;
box-shadow:
0 1px .5px rgba(11,20,26,.13);
padding:10px;
}

.welcome-head{
margin-bottom:2px;
}

.support-name{
font-size:12px;
color:#e53935;
font-weight:500;
line-height:1;
}

.welcome-body{
font-size:17px;
line-height:1.35;
color:#111b21;
font-weight:400;
margin-top:4px;
word-break:break-word;
}

.wave{
font-size:15px;
}

.welcome-btn{
margin-top:10px;
border:1px solid #e5e5e5;
border-radius:8px;
height:40px;
display:flex;
align-items:center;
justify-content:center;
font-size:14px;
font-weight:600;
color:#046c4e;
background:#fafafa;
gap:4px;
text-decoration:none;
}

.id-badge{
background:#a855f7;
color:#fff;
font-size:9px;
padding:2px 4px;
border-radius:4px;
font-weight:600;
line-height:1;
}

.message:has(.welcome-card){
background:none !important;
box-shadow:none !important;
padding:0 !important;
max-width:unset !important;
}

.message:has(.welcome-card) .time{
padding-right:6px;
}

.phone-card{
width:260px;
background:#fff;
border-radius:10px;
padding:14px;
box-shadow:
0 1px .5px rgba(11,20,26,.13);
}

.phone-title{
font-size:15px;
font-weight:500;
color:#111b21;
margin-bottom:3px;
line-height:1.2;
}

.phone-sub{
font-size:12px;
color:#667781;
line-height:1.4;
margin-bottom:12px;
}

.phone-box{
height:42px;
border:1px solid #e2e2e2;
border-radius:8px;
display:flex;
align-items:center;
padding:0 12px;
margin-bottom:10px;
background:#fff;
}

.phone-box span{
font-size:14px;
font-weight:500;
color:#111b21;
margin-right:8px;
}

.phone-box input{
flex:1;
border:none;
outline:none;
font-size:15px;
background:none;
color:#111;
min-width:0;
}


.phone-box input::placeholder{
color:#8696a0;
}

.phone-submit{
width:100%;
height:40px;
border:none;
border-radius:8px;
background:#00a884;
color:#fff;
font-size:14px;
font-weight:500;
cursor:pointer;
transition:.15s;
}

.phone-submit:active{
transform:scale(.98);
}

.message:has(.phone-card){
background:none !important;
padding:0 !important;
box-shadow:none !important;
max-width:none !important;
}

.phone-box:focus-within{
border-color:#00a884;
box-shadow:
0 0 0 3px rgba(0,168,132,.08);
}

.phone-submit{
width:100%;
height:40px;
border:none;
border-radius:8px;
background:#00a884;
color:#fff;
font-size:14px;
font-weight:500;
cursor:pointer;
transition:.15s;
display:none;
}

.phone-submit.show{
display:block;
}


.chat-user{
padding:14px 16px;
border-bottom:1px solid #f0f2f5;
cursor:pointer;
transition:.15s;
background:#fff;
}

.chat-user:hover{
background:#f5f6f6;
}

.chat-user.active{
background:#f0f2f5;
}

.chat-user-top{
display:flex;
align-items:center;
justify-content:space-between;
margin-bottom:4px;
}

.chat-user-name{
font-size:15px;
font-weight:500;
color:#111b21;
}

.chat-time{
font-size:12px;
color:#667781;
}

.chat-user-bottom{
display:flex;
align-items:center;
justify-content:space-between;
gap:10px;
}

.chat-preview{
font-size:13px;
color:#667781;
white-space:nowrap;
overflow:hidden;
text-overflow:ellipsis;
flex:1;
}

.chat-badge{
height:22px;
padding:0 10px;
border-radius:20px;
font-size:11px;
font-weight:600;
display:flex;
align-items:center;
justify-content:center;
flex-shrink:0;
}

.chat-badge.payment{
background:#fff3cd;
color:#946200;
}

.chat-badge.onboard{
background:#d9fdd3;
color:#087b5b;
}


.phone-modal{
position:fixed;
inset:0;
background:rgba(0,0,0,.35);
display:none;
align-items:flex-end;
justify-content:center;
z-index:9999;
}

.phone-modal.show{
display:flex;
}

.phone-sheet{
width:100%;
max-width:500px;
background:#fff;
border-radius:24px 24px 0 0;
padding:26px 20px 30px;
animation:slideUp .25s ease;
}

.phone-title{
font-size:28px;
font-weight:700;
text-align:center;
margin-bottom:10px;
color:#111;
}

.phone-sub{
font-size:16px;
line-height:1.5;
text-align:center;
color:#667781;
margin-bottom:24px;
}

.phone-input-wrap{
height:60px;
border:2px solid #ececec;
border-radius:16px;
display:flex;
overflow:hidden;
background:#f5f6f6;
}

.country-code{
width:72px;
display:flex;
align-items:center;
justify-content:center;
font-size:24px;
font-weight:600;
color:#444;
border-right:1px solid #ddd;
}

.phone-input-wrap input{
flex:1;
border:none;
outline:none;
background:none;
padding:0 18px;
font-size:24px;
font-weight:500;
}

.phone-save-btn{
width:100%;
height:58px;
border:none;
border-radius:16px;
background:#046c4e;
color:#fff;
font-size:22px;
font-weight:600;
margin-top:24px;
}

.phone-error{
display:none;
font-size:15px;
color:#e53935;
text-align:center;
margin-top:12px;
}

.phone-error.show{
display:block;
}

@keyframes slideUp{

from{
transform:translateY(100%);
}

to{
transform:translateY(0);
}

}

.phone-footer{
position:fixed;
left:0;
right:0;
bottom:0;
background:#fff;
padding:20px;
border-radius:24px 24px 0 0;
display:none;
z-index:9999;
box-shadow:
0 -4px 20px rgba(0,0,0,.08);
max-width:500px;
margin:auto;
}

.phone-footer.show{
display:block;
}

.phone-footer-title{
font-size:20px;
font-weight:700;
text-align:center;
margin-bottom:10px;
color:#111;
}

.phone-footer-sub{
font-size:14px;
line-height:1.5;
text-align:center;
color:#667781;
margin-bottom:18px;
}

.phone-footer-input{
height:58px;
border:2px solid #ececec;
border-radius:16px;
display:flex;
overflow:hidden;
background:#f5f6f6;
}

.phone-code{
width:70px;
display:flex;
align-items:center;
justify-content:center;
font-size:22px;
font-weight:600;
color:#444;
border-right:1px solid #ddd;
}

.phone-footer-input input{
flex:1;
border:none;
outline:none;
background:none;
padding:0 16px;
font-size:22px;
font-weight:500;
}

.phone-footer-btn{
width:100%;
height:56px;
border:none;
border-radius:16px;
background:#046c4e;
color:#fff;
font-size:20px;
font-weight:600;
margin-top:18px;
}

.phone-error{
display:none;
font-size:14px;
line-height:1.5;
text-align:center;
color:#d32f2f;
margin-top:12px;
font-weight:500;
}

.phone-error.show{
display:block;
}


.system-message{
max-width:280px;
margin:10px auto;
background:#fff3c4;
padding:8px 14px;
border-radius:8px;
font-size:13px;
line-height:1.4;
text-align:center;
color:#5e5e5e;
box-shadow:
0 1px 1px rgba(0,0,0,.05);
}

.system-time{
font-size:11px;
margin-top:4px;
opacity:.7;
}
.typing-box{
display:none;
font-size:13px;
color:#667781;
padding:4px 14px;
}

.typing-status{
display:none;
padding:4px 16px;
font-size:13px;
color:#00a884;
background:#111b21;
}

#sendBtn{
width:52px;
height:52px;
border:none;
border-radius:50%;
background:#1f2c34;
display:flex;
align-items:center;
justify-content:center;
font-size:24px;
color:#fff;
padding:0;
line-height:1;
}

.quick-replies{
display:flex;
gap:8px;
margin-top:10px;
padding-left:0;
flex-wrap:wrap;
}

.quick-replies button,
.quick-btn{
height:36px;
padding:0 14px;
border:none;
border-radius:18px;
background:#fff;
border:1px solid #d1d7db;
font-size:13px;
font-weight:600;
color:#00a884;
cursor:pointer;
text-decoration:none;
display:inline-flex;
align-items:center;
justify-content:center;
line-height:1;
}

.quick-btn-wa{
background:#e7f8f2;
border-color:#b9e6d6;
color:#046c4e;
}

.quick-btn-social{
background:#fff;
color:#5b4b8a;
border-color:#d8d0ee;
}

.quick-btn:active{
transform:scale(.97);
}

.social-backdrop{
display:none;
position:fixed;
inset:0;
background:rgba(11,20,26,.45);
z-index:9998;
}

.social-backdrop.show{
display:block;
}

.social-sheet{
position:fixed;
left:0;
right:0;
bottom:0;
background:#fff;
padding:12px 20px 24px;
border-radius:24px 24px 0 0;
display:none;
z-index:9999;
box-shadow:0 -4px 20px rgba(0,0,0,.12);
max-width:500px;
margin:auto;
}

.social-sheet.show{
display:block;
animation:slideUp .25s ease;
}

.social-sheet-handle{
width:40px;
height:4px;
border-radius:4px;
background:#d1d7db;
margin:4px auto 16px;
}

.social-sheet-title{
font-size:20px;
font-weight:700;
text-align:center;
color:#111;
margin-bottom:6px;
}

.social-sheet-sub{
font-size:14px;
line-height:1.5;
text-align:center;
color:#667781;
margin-bottom:18px;
}

.social-sheet-actions{
display:flex;
flex-direction:column;
gap:10px;
}

.social-btn{
height:52px;
border-radius:14px;
display:flex;
align-items:center;
justify-content:center;
gap:10px;
color:#fff;
text-decoration:none;
font-size:16px;
font-weight:600;
}

.social-btn-icon{
display:flex;
align-items:center;
}

.social-btn.instagram{
background:linear-gradient(45deg,#f58529,#dd2a7b,#8134af);
}

.social-btn.telegram{
background:#229ed9;
}

.social-btn.whatsapp{
background:#25d366;
}

.message:has(.live-agent-card){
background:none !important;
box-shadow:none !important;
padding:0 !important;
max-width:unset !important;
}

.message:has(.live-agent-card)::after{
display:none;
}

.live-agent-card{
width:248px;
background:#fff;
border-radius:12px;
padding:10px 12px 10px 14px;
box-shadow:0 1px .5px rgba(11,20,26,.13);
position:relative;
overflow:hidden;
border:1px solid rgba(7,94,84,.12);
}

.live-agent-card::before{
content:'';
position:absolute;
left:0;
top:0;
bottom:0;
width:3px;
background:#075e54;
}

.live-badge{
display:inline-flex;
align-items:center;
gap:5px;
height:20px;
padding:0 8px;
border-radius:20px;
background:#e7f3ef;
color:#075e54;
font-size:10px;
font-weight:800;
letter-spacing:.7px;
margin:0 0 6px 4px;
}

.live-dot{
width:6px;
height:6px;
border-radius:50%;
background:#128c7e;
box-shadow:0 0 0 0 rgba(18,140,126,.55);
animation:livePulse 1.5s infinite;
}

@keyframes livePulse{
0%{
box-shadow:0 0 0 0 rgba(18,140,126,.5);
}
70%{
box-shadow:0 0 0 6px rgba(18,140,126,0);
}
100%{
box-shadow:0 0 0 0 rgba(18,140,126,0);
}
}

.trust-stamp{
width:52px;
height:52px;
position:absolute;
top:8px;
right:8px;
transform:rotate(-12deg);
opacity:.95;
pointer-events:none;
}

.stamp-ring{
width:100%;
height:100%;
border:2px solid #8b1e2d;
border-radius:50%;
box-shadow:inset 0 0 0 1.5px #8b1e2d;
display:flex;
flex-direction:column;
align-items:center;
justify-content:center;
color:#8b1e2d;
font-family:Georgia,"Times New Roman",serif;
background:rgba(139,30,45,.04);
}

.stamp-since{
font-size:6px;
font-weight:700;
letter-spacing:1.4px;
}

.stamp-year{
font-size:12px;
font-weight:800;
line-height:1.1;
}

.stamp-trusted{
font-size:5.5px;
font-weight:700;
letter-spacing:.6px;
}

.live-agent-brand{
display:flex;
align-items:center;
gap:5px;
font-size:12px;
font-weight:700;
color:#111b21;
padding-left:4px;
padding-right:56px;
margin-bottom:2px;
}

.live-verified{
width:13px;
height:13px;
border-radius:50%;
background:#1da1f2;
color:#fff;
font-size:8px;
display:inline-flex;
align-items:center;
justify-content:center;
line-height:1;
}

.live-agent-title{
font-size:14px;
font-weight:700;
color:#111b21;
line-height:1.25;
padding-left:4px;
padding-right:56px;
margin-bottom:8px;
}

.live-wa-btn{
height:36px;
margin-left:4px;
border-radius:9px;
background:#075e54;
color:#fff;
text-decoration:none;
font-weight:700;
font-size:13px;
display:flex;
align-items:center;
justify-content:center;
gap:6px;
}

.live-wa-btn:active{
transform:scale(.98);
}

.social-btn:active{
transform:scale(.98);
}

.promo-card{
background:#fff;
border-radius:14px;
padding:16px;
box-sizing:border-box;
max-width:100%;
font-size:14px;
line-height:1.5;
}

.promo-title{
font-size:18px;
font-weight:700;
text-align:center;
margin-bottom:14px;
}

.promo-sub{
font-size:15px;
font-weight:600;
text-align:center;
margin-bottom:14px;
color:#e67e22;
}

.promo-points{
display:flex;
flex-direction:column;
gap:8px;
margin-bottom:14px;
}

.promo-divider{
height:1px;
background:#ececec;
margin:14px 0;
}

.promo-section{
font-weight:600;
margin-bottom:10px;
}

.promo-platforms{
display:flex;
flex-wrap:wrap;
gap:8px;
margin-bottom:14px;
}

.promo-platforms span{
background:#f5f5f5;
padding:6px 12px;
border-radius:20px;
font-size:13px;
}

.promo-footer{
display:flex;
flex-direction:column;
gap:8px;
margin-bottom:14px;
font-size:14px;
}

.promo-btn{
height:42px;
background:#00a884;
color:#fff;
border-radius:10px;
display:flex;
align-items:center;
justify-content:center;
text-decoration:none;
font-weight:600;
margin-top:10px;
}