body{
margin:0;
}

/* ======================================
CONTAINER
====================================== */

.chat-container{

flex:1;

display:flex;
flex-direction:column;

padding:14px;
gap:12px;

height:100%;

overflow:hidden;

}

/* ======================================
CLAN BLOCK
====================================== */

.clan-block{
background:#1a1a1d;
border-radius:18px;
padding:16px;
flex-shrink:0;

box-shadow:0 10px 30px rgba(0,0,0,0.4);
}



.clan-title{
font-size:17px;
font-weight:600;
margin-bottom:6px;
}

.clan-sub{
color:#9aa0b5;
font-size:12px;
}

.clan-row{
display:flex;
justify-content:space-between;
align-items:center;
}

.clan-sub{
color:#9aa0b5;
font-size:14px;
}

.clan-btn{

background:linear-gradient(180deg,#f7b64d,#c27a1a);

border:none;

padding:10px 18px;

border-radius:10px;

color:white;

font-weight:600;

cursor:pointer;

}

/* ======================================
MAIN BLOCK
====================================== */

.chat-main{
background:#1a1a1d;
border-radius:18px;
padding:16px;

flex:1;
display:flex;
flex-direction:column;
min-height:0;

box-shadow:0 10px 30px rgba(0,0,0,0.4);
}

/* ======================================
TITLE
====================================== */

.chat-title{
text-align:center;
font-size:22px;
margin-bottom:10px;
}

/* ======================================
TABS
====================================== */

.chat-tabs{
display:flex;
justify-content:center;
gap:30px;
margin-bottom:10px;
}

.chat-tab{
opacity:0.5;
font-size:16px;
}

.chat-tab.active{
opacity:1;
font-weight:600;
}

/* ======================================
FRIENDS LIST
====================================== */

.friends-list{

flex:1;

overflow-y:auto;

display:flex;
flex-direction:column;

gap:12px;

padding-right:4px;

}

/* если друзей нет */

.friends-list:empty::after{
content:"";
flex:1;
}

.friend-card.me{
border:2px solid #f7b64d;
}

/* ======================================
FRIEND CARD
====================================== */

.friend-card{
background:#1a1a1d;

padding:14px;
border-radius:14px;

display:flex;
justify-content:space-between;
align-items:center;

transition:0.15s;

box-shadow:0 10px 30px rgba(0,0,0,0.35);
}

.friend-card:active{
transform:scale(0.97);
}

.friend-card:hover{
transform:translateY(-2px);
}

.friend-left{
display:flex;
align-items:center;
gap:12px;
}

.friend-avatar{

width:48px;
height:48px;
border-radius:12px;
object-fit:cover;
}

.friend-name{
font-weight:600;
}

.friend-status{
font-size:13px;
color:#9aa0b5;
}

/* ======================================
RIGHT SIDE
====================================== */

.friend-right{
display:flex;
align-items:center;
gap:6px;
}

.cup-icon{
width:22px;
}

/* ======================================
ADD FRIEND
====================================== */

.add-friend{

flex-shrink:0;

text-align:center;

padding-top:12px;

}

.add-friend-btn{

background:linear-gradient(180deg,#f7b64d,#c27a1a);

border:none;

padding:14px 26px;

border-radius:14px;

font-weight:600;

color:white;

font-size:16px;

cursor:pointer;

}

/* ======================================
SCROLLBAR
====================================== */

.friends-list::-webkit-scrollbar{
width:4px;
}

.friends-list::-webkit-scrollbar-track{
background:transparent;
}

.friends-list::-webkit-scrollbar-thumb{
background:#2c2c3a;
border-radius:10px;
}

.friends-list::-webkit-scrollbar-thumb:hover{
background:#3b3b52;
}

/* ======================================
CHAT PAGE FIXED SCREEN
====================================== */

#chat-page .page-content{
overflow:hidden;
display:flex;
flex-direction:column;
}



.soon-modal {
    position: fixed;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

.soon-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.7);
    backdrop-filter: blur(4px);
}

.soon-content {
    position: relative;
    background: #111;
    border-radius: 20px;
    padding: 25px 20px;
    width: 85%;
    max-width: 320px;
    text-align: center;
    color: #fff;
    z-index: 2;
}

.soon-title {
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 15px;
}

.soon-text {
    font-size: 14px;
    line-height: 1.5;
    color: #aaa;
}

.soon-close {
    position: absolute;
    top: 10px;
    right: 12px;
    cursor: pointer;
    font-size: 18px;
    color: #888;
}