/* ==========================================
SUPPORT CENTER
========================================== */

.support-summary{

display:grid;

grid-template-columns:repeat(4,1fr);

gap:20px;

margin-bottom:30px;

}

.support-stat{

background:#0f172a;

border:1px solid rgba(255,255,255,.08);

border-radius:20px;

padding:25px;

transition:.3s;

}

.support-stat:hover{

transform:translateY(-4px);

border-color:#22d3ee;

box-shadow:0 10px 30px rgba(34,211,238,.12);

}

.support-stat p{

color:#94a3b8;

margin-bottom:12px;

}

.support-stat h2{

font-size:30px;

}

/* ==========================
LAYOUT
========================== */

.support-layout{

display:grid;

grid-template-columns:340px 1fr;

gap:25px;

height:700px;

}

/* ==========================
LEFT PANEL
========================== */

.ticket-sidebar{

background:#0f172a;

border-radius:20px;

border:1px solid rgba(255,255,255,.08);

overflow:hidden;

display:flex;

flex-direction:column;

}

.ticket-search{

padding:20px;

border-bottom:1px solid rgba(255,255,255,.08);

}

.ticket-search input{

width:100%;

height:52px;

background:#081225;

border:none;

outline:none;

border-radius:12px;

padding:0 16px;

color:white;

}

.ticket-list{

flex:1;

overflow-y:auto;

padding:15px;

}

.ticket-item{

background:#081225;

border-radius:16px;

padding:18px;

margin-bottom:15px;

cursor:pointer;

transition:.3s;

border:1px solid transparent;

}

.ticket-item:hover{

border-color:#22d3ee;

}

.ticket-item.active{

border-color:#22d3ee;

background:#0b1528;

}

.ticket-item h3{

font-size:17px;

margin-bottom:8px;

color:#fff;

}

.ticket-item p{

color:#94a3b8;

font-size:14px;

}

/* ==========================
CHAT
========================== */

.ticket-chat{

background:#0f172a;

border-radius:20px;

border:1px solid rgba(255,255,255,.08);

display:flex;

flex-direction:column;

overflow:hidden;

}

.conversation{

flex:1;

padding:25px;

overflow-y:auto;

}

.conversation-empty{

height:100%;

display:flex;

flex-direction:column;

justify-content:center;

align-items:center;

text-align:center;

color:#64748b;

}

.conversation-empty i{

font-size:60px;

margin-bottom:20px;

color:#22d3ee;

}

.message{

max-width:70%;

padding:15px;

border-radius:16px;

margin-bottom:15px;

}

.message.user{

background:#22d3ee;

color:white;

margin-left:auto;

}

.message.admin{

background:#081225;

color:white;

}

.reply-box{

display:flex;

gap:15px;

padding:20px;

border-top:1px solid rgba(255,255,255,.08);

}

.reply-box textarea{

flex:1;

height:58px;

background:#081225;

border:none;

outline:none;

border-radius:14px;

padding:16px;

color:white;

resize:none;

}

.reply-box button{

width:150px;

border:none;

background:#22d3ee;

color:white;

border-radius:14px;

cursor:pointer;

font-weight:600;

}

/* ==========================
MODAL
========================== */

.ticket-modal{

display:none;

position:fixed;

inset:0;

background:rgba(0,0,0,.75);

justify-content:center;

align-items:center;

z-index:9999;

}

.ticket-modal-content{

background:#0f172a;

width:100%;

max-width:500px;

padding:30px;

border-radius:20px;

animation:popup .25s ease;

}

.ticket-modal-content input,

.ticket-modal-content select,

.ticket-modal-content textarea{

width:100%;

margin-top:15px;

background:#081225;

border:none;

outline:none;

color:white;

padding:15px;

border-radius:12px;

}

.ticket-modal-content textarea{

height:140px;

resize:none;

}

.ticket-modal-content button{

margin-top:20px;

width:100%;

height:55px;

background:#22d3ee;

border:none;

color:white;

border-radius:12px;

font-size:16px;

cursor:pointer;

}

/* ==========================
SKELETON
========================== */

.ticket-skeleton{

height:85px;

border-radius:16px;

margin-bottom:15px;

background:linear-gradient(
90deg,
#0b1220 25%,
#172033 50%,
#0b1220 75%
);

background-size:300% 100%;

animation:loading 1.2s infinite;

}

@keyframes loading{

0%{

background-position:100% 0;

}

100%{

background-position:-100% 0;

}

}

@keyframes popup{

from{

opacity:0;

transform:scale(.9);

}

to{

opacity:1;

transform:scale(1);

}

}

/* ==========================
RESPONSIVE
========================== */

@media(max-width:1000px){

.support-layout{

grid-template-columns:1fr;

height:auto;

}

.ticket-sidebar{

height:320px;

}

.support-summary{

grid-template-columns:repeat(2,1fr);

}

}

@media(max-width:600px){

.support-summary{

grid-template-columns:1fr;

}

.reply-box{

flex-direction:column;

}

.reply-box button{

width:100%;

}

.message{

max-width:90%;

}

}