/* ============================
   Reset
============================ */

*{
    margin:0;
    padding:0;
    box-sizing:border-box;
}

body{
    font-family:"Segoe UI",Arial,sans-serif;
    background:#0f172a;
    color:#fff;
    min-height:100vh;
    display:flex;
    justify-content:center;
    align-items:center;
    padding:20px;
}

/* ============================
   Layout
============================ */

.container{
    width:100%;
    max-width:520px;
}

.card{
    background:#1e293b;
    border:1px solid #334155;
    border-radius:20px;
    padding:30px;
    box-shadow:0 20px 50px rgba(0,0,0,.45);
    transition:.25s;
}

.card:hover{
    transform:translateY(-2px);
}

/* ============================
   Typography
============================ */

h1{
    text-align:center;
    font-size:30px;
    margin-bottom:10px;
}

.subtitle{
    text-align:center;
    color:#94a3b8;
    font-size:14px;
    margin-bottom:28px;
    line-height:1.5;
}

/* ============================
   Input
============================ */

.input-group{
    margin-bottom:22px;
}

.input-group label{
    display:block;
    margin-bottom:8px;
    color:#cbd5e1;
    font-size:14px;
}

.input-group input{
    width:100%;
    padding:14px 16px;
    background:#0f172a;
    color:#fff;
    border:1px solid #334155;
    border-radius:12px;
    font-size:16px;
    transition:.25s;
}

.input-group input::placeholder{
    color:#64748b;
}

.input-group input:focus{
    outline:none;
    border-color:#3b82f6;
    box-shadow:0 0 0 4px rgba(59,130,246,.18);
}

/* ============================
   Buttons
============================ */

.buttons{
    display:flex;
    gap:12px;
    margin-bottom:25px;
}

button{
    flex:1;
    border:none;
    border-radius:12px;
    padding:14px;
    font-size:15px;
    font-weight:600;
    cursor:pointer;
    transition:.2s;
}

button:hover:not(:disabled){
    transform:translateY(-2px);
}

button:active:not(:disabled){
    transform:scale(.97);
}

button:disabled{
    opacity:.55;
    cursor:not-allowed;
    transform:none;
}

.primary{
    background:#2563eb;
    color:#fff;
}

.primary:hover:not(:disabled){
    background:#1d4ed8;
}

.success{
    background:#16a34a;
    color:#fff;
}

.success:hover:not(:disabled){
    background:#15803d;
}

.danger{
    background:#dc2626;
    color:#fff;
}

.danger:hover:not(:disabled){
    background:#b91c1c;
}

.secondary{
    background:#475569;
    color:#fff;
}

.secondary:hover:not(:disabled){
    background:#334155;
}

/* ============================
   Status
============================ */

.status{
    display:flex;
    align-items:center;
    gap:12px;
    color:#94a3b8;
    font-size:14px;
    min-height:22px;
}

.status.success{
    color:#22c55e;
}

.status.error{
    color:#ef4444;
}

.status.loading{
    color:#facc15;
}

/* ============================
   Loader
============================ */

.loader{
    width:20px;
    height:20px;
    border:3px solid #334155;
    border-top:3px solid #3b82f6;
    border-radius:50%;
    display:none;
    animation:spin .8s linear infinite;
}

.loader.show{
    display:block;
}

@keyframes spin{
    to{
        transform:rotate(360deg);
    }
}

/* ============================
   Popup
============================ */

.popup{
    position:fixed;
    inset:0;
    background:rgba(15,23,42,.82);
    backdrop-filter:blur(5px);
    display:none;
    justify-content:center;
    align-items:center;
    padding:20px;
    z-index:999;
}

.popup.show{
    display:flex;
}

.popup-box{
    width:100%;
    max-width:460px;
    background:#1e293b;
    border:1px solid #334155;
    border-radius:20px;
    padding:25px;
    box-shadow:0 30px 70px rgba(0,0,0,.6);
    animation:popup .25s ease;
}

@keyframes popup{
    from{
        opacity:0;
        transform:translateY(15px) scale(.96);
    }
    to{
        opacity:1;
        transform:translateY(0) scale(1);
    }
}

.popup-header{
    display:flex;
    justify-content:space-between;
    align-items:center;
    margin-bottom:20px;
}

.popup-header h2{
    font-size:22px;
}

.close-btn{
    width:40px;
    height:40px;
    flex:none;
    background:transparent;
    color:#fff;
    font-size:22px;
    border:none;
    cursor:pointer;
}

.close-btn:hover{
    color:#60a5fa;
}

/* ============================
   Team List
============================ */

#popupBody{
    max-height:300px;
    overflow-y:auto;
    margin-bottom:20px;
}

.team{
    display:flex;
    align-items:center;
    gap:12px;
    padding:12px;
    margin-bottom:10px;
    background:#0f172a;
    border-radius:10px;
    transition:.2s;
}

.team:hover{
    background:#243244;
}

.team strong{
    color:#60a5fa;
    width:30px;
    text-align:center;
}

.popup-buttons{
    display:flex;
    gap:12px;
}

.popup-buttons button{
    flex:1;
}

/* ============================
   Scrollbar
============================ */

#popupBody::-webkit-scrollbar{
    width:6px;
}

#popupBody::-webkit-scrollbar-thumb{
    background:#334155;
    border-radius:20px;
}

#popupBody::-webkit-scrollbar-track{
    background:transparent;
}

/* ============================
   Responsive
============================ */

@media(max-width:600px){

    body{
        padding:15px;
    }

    .card{
        padding:22px;
    }

    h1{
        font-size:26px;
    }

    .buttons{
        flex-direction:column;
    }

    .popup-buttons{
        flex-direction:column;
    }

}

@media(max-width:420px){

    .popup-box{
        padding:20px;
    }

    .popup-header h2{
        font-size:20px;
    }

}