/*====================================
    MAIN CONTENT
====================================*/

.main-content{
    flex:1;
    padding:30px;
    background:#0f172a;
    min-height:100vh;
    overflow-y:auto;
}

/*====================================
    PAGE HEADER
====================================*/

.page-header{
    display:flex;
    justify-content:space-between;
    align-items:center;
    margin-bottom:30px;
}

.page-header h1{
    color:#fff;
    font-size:30px;
    font-weight:600;
}

.page-header p{
    color:#94a3b8;
    margin-top:8px;
}

/*====================================
    CURRENT LICENSE
====================================*/

.license-status-card{
    background:#1e293b;
    border:1px solid #2b3b52;
    border-radius:18px;
    padding:25px;
    margin-bottom:30px;
}

.status-header{
    display:flex;
    justify-content:space-between;
    align-items:center;
    margin-bottom:25px;
}

.status-header h2{
    color:#fff;
    font-size:24px;
    display:flex;
    align-items:center;
    gap:10px;
}

.status-header i{
    color:#f4b400;
}

.active-status{
    background:#22c55e;
    color:#fff;
    padding:8px 18px;
    border-radius:30px;
    font-size:13px;
    font-weight:600;
    letter-spacing:.5px;
}

.inactive-status{
    background:#475569;
    color:#e2e8f0;
    padding:8px 18px;
    border-radius:30px;
    font-size:13px;
    font-weight:600;
    letter-spacing:.5px;
}

.license-info{
    display:grid;
    grid-template-columns:repeat(4,1fr);
    gap:20px;
}

.license-info div{
    background:#111827;
    border:1px solid #2b3b52;
    border-radius:14px;
    padding:18px;
}

.license-info h4{
    color:#94a3b8;
    font-size:14px;
    margin-bottom:10px;
}

.license-info p{
    color:#fff;
    font-size:18px;
    font-weight:600;
}

/*====================================
    PROGRESS BAR
====================================*/

.progress{
    width:100%;
    height:10px;
    background:#111827;
    border-radius:30px;
    margin-top:25px;
    overflow:hidden;
}

.progress-bar{
    width:75%;
    height:100%;
    background:#f4b400;
    border-radius:30px;
    transition:.4s;
}

/*====================================
    PURCHASE + HISTORY GRID
====================================*/

.license-grid{
    display:grid;
    grid-template-columns:430px 1fr;
    gap:25px;
    align-items:start;
}

/*====================================
    PURCHASE CARD
====================================*/

.license-card{
    background:#1e293b;
    border:1px solid #2b3b52;
    border-radius:18px;
    padding:25px;
}

.license-card h2{
    color:#fff;
    font-size:22px;
    margin-bottom:25px;
    display:flex;
    align-items:center;
    gap:10px;
}

.license-card h2 i{
    color:#f4b400;
}

.license-card label{
    display:block;
    color:#cbd5e1;
    margin-top:18px;
    margin-bottom:8px;
    font-size:14px;
}

.license-card input,
.license-card select{
    width:100%;
    padding:14px 15px;
    border-radius:10px;
    border:1px solid #374151;
    background:#111827;
    color:#fff;
    font-size:15px;
    outline:none;
    transition:.3s;
}

.license-card input:focus,
.license-card select:focus{
    border-color:#f4b400;
}

.yellow-btn{
    width:100%;
    margin-top:25px;
    padding:15px;
    border:none;
    border-radius:12px;
    background:#f4b400;
    color:#111;
    font-size:16px;
    font-weight:600;
    cursor:pointer;
    transition:.3s;
}

.yellow-btn:hover{
    background:#ffd54f;
    transform:translateY(-2px);
}

.yellow-btn i{
    margin-right:8px;
}

/*====================================
    HISTORY CARD
====================================*/

.history-card{
    background:#1e293b;
    border:1px solid #2b3b52;
    border-radius:18px;
    padding:25px;
    min-height:100%;
}

.table-header{
    display:flex;
    justify-content:space-between;
    align-items:center;
    margin-bottom:20px;
}

.table-header h2{
    color:#fff;
    font-size:22px;
    display:flex;
    align-items:center;
    gap:10px;
}

.table-header h2 i{
    color:#f4b400;
}

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

.history-tabs{
    display:flex;
    gap:10px;
}

.tab-btn{
    padding:10px 18px;
    border:none;
    border-radius:8px;
    background:#111827;
    color:#fff;
    cursor:pointer;
    font-size:14px;
    transition:.3s;
}

.tab-btn:hover{
    background:#f4b400;
    color:#111;
}

.tab-btn.active{
    background:#f4b400;
    color:#111;
    font-weight:600;
}

/*====================================
    TABLE
====================================*/

.history-card{
    overflow-x:auto;
}

.history-card table{
    width:100%;
    border-collapse:collapse;
    min-width:650px;
}

.history-card thead{
    background:#111827;
}

.history-card th{
    padding:15px;
    color:#f4b400;
    text-align:left;
    font-size:14px;
    font-weight:600;
}

.history-card td{
    padding:15px;
    color:#d1d5db;
    border-top:1px solid #2b3b52;
    font-size:14px;
}

.history-card tbody tr{
    transition:.3s;
}

.history-card tbody tr:hover{
    background:#111827;
}
/*====================================
    PAYMENT MODAL
====================================*/

.modal{
    display:none;
    position:fixed;
    inset:0;
    background:rgba(0,0,0,.75);
    backdrop-filter:blur(4px);
    justify-content:center;
    align-items:center;
    z-index:9999;
    padding:20px;
}

.payment-modal{
    width:100%;
    max-width:520px;
    background:#1e293b;
    border:1px solid #334155;
    border-radius:18px;
    padding:28px;
    position:relative;
    animation:popup .3s ease;
}

.close-modal{
    position:absolute;
    right:18px;
    top:15px;
    color:#94a3b8;
    font-size:28px;
    cursor:pointer;
    transition:.3s;
}

.close-modal:hover{
    color:#ef4444;
}

.payment-header{
    display:flex;
    align-items:center;
    gap:12px;
    margin-bottom:25px;
}

.payment-header i{
    font-size:26px;
    color:#f4b400;
}

.payment-header h2{
    color:#fff;
    font-size:24px;
}

/*====================================
    PAYMENT CARD
====================================*/

.payment-box{
    background:#111827;
    border:1px solid #334155;
    border-radius:14px;
    padding:20px;
}

.payment-row{
    margin-bottom:18px;
}

.payment-row:last-child{
    margin-bottom:0;
}

.payment-row h4{
    color:#94a3b8;
    font-size:13px;
    margin-bottom:8px;
}

.payment-row p{
    color:#fff;
    font-size:16px;
    font-weight:600;
    word-break:break-all;
}

.payment-reference{
    margin-top:20px;
    padding:15px;
    background:#0f172a;
    border:1px dashed #f4b400;
    border-radius:10px;
    text-align:center;
}

.payment-reference h4{
    color:#94a3b8;
    margin-bottom:8px;
}

.payment-reference p{
    color:#f4b400;
    font-weight:700;
    letter-spacing:1px;
}

/*====================================
    COPY BUTTON
====================================*/

.copy-btn{
    width:100%;
    margin-top:20px;
    padding:14px;
    border:none;
    border-radius:10px;
    background:#2563eb;
    color:#fff;
    cursor:pointer;
    font-size:15px;
    font-weight:600;
    transition:.3s;
}

.copy-btn:hover{
    background:#1d4ed8;
}

.payment-footer{
    margin-top:25px;
}

/*====================================
    STATUS BADGES
====================================*/

.status{
    display:inline-block;
    padding:6px 14px;
    border-radius:20px;
    font-size:12px;
    font-weight:600;
}

.status.paid{
    background:rgba(34,197,94,.15);
    color:#22c55e;
}

.status.pending{
    background:rgba(245,158,11,.15);
    color:#f59e0b;
}

.status.active{
    background:rgba(59,130,246,.15);
    color:#3b82f6;
}

.status.expired{
    background:rgba(239,68,68,.15);
    color:#ef4444;
}

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

::-webkit-scrollbar{
    width:8px;
    height:8px;
}

::-webkit-scrollbar-track{
    background:#111827;
}

::-webkit-scrollbar-thumb{
    background:#475569;
    border-radius:20px;
}

::-webkit-scrollbar-thumb:hover{
    background:#f4b400;
}

/*====================================
    ANIMATION
====================================*/

@keyframes popup{

    from{
        opacity:0;
        transform:scale(.9);
    }

    to{
        opacity:1;
        transform:scale(1);
    }

}

.license-status-card,
.license-card,
.history-card{
    animation:fadeUp .45s ease;
}

@keyframes fadeUp{

    from{
        opacity:0;
        transform:translateY(20px);
    }

    to{
        opacity:1;
        transform:translateY(0);
    }

}

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

@media(max-width:1100px){

    .license-grid{
        grid-template-columns:1fr;
    }

    .license-info{
        grid-template-columns:repeat(2,1fr);
    }

}

@media(max-width:768px){

    .main-content{
        padding:20px;
    }

    .page-header{
        flex-direction:column;
        align-items:flex-start;
        gap:15px;
    }

    .license-info{
        grid-template-columns:1fr;
    }

    .history-card table{
        min-width:650px;
    }

    .payment-modal{
        max-width:100%;
        padding:20px;
    }

}

@media(max-width:500px){

    .page-header h1{
        font-size:26px;
    }

    .status-header{
        flex-direction:column;
        align-items:flex-start;
        gap:15px;
    }

    .payment-header{
        flex-direction:column;
        text-align:center;
    }

    .payment-header h2{
        font-size:20px;
    }

}
.empty-history{

    display:flex;
    flex-direction:column;
    justify-content:center;
    align-items:center;

    text-align:center;

    min-height:320px;

}

.empty-history i{

    font-size:70px;
    color:#f4b400;

    margin-bottom:20px;

}

.empty-history h3{

    color:#ffffff;

    font-size:24px;

    margin-bottom:10px;

}

.empty-history p{

    color:#94a3b8;

    font-size:15px;

    max-width:320px;

}