* {
    box-sizing: border-box;
}

html,
body {
    margin: 0;
    padding: 0;
    min-height: 100%;
}

body {
    background: #0b0e13;
    color: #ffffff;

    font-family:
        Arial,
        Helvetica,
        sans-serif;
}

/*
|--------------------------------------------------------------------------
| LOGIN
|--------------------------------------------------------------------------
*/

.login-wrapper {
    min-height: 100vh;

    display: flex;
    align-items: center;
    justify-content: center;

    padding: 30px;

    background:
        radial-gradient(
            circle at top,
            #202738 0%,
            #0b0e13 48%,
            #07090c 100%
        );
}

.login-card {
    width: 100%;
    max-width: 430px;

    padding: 40px;

    background: #151922;

    border: 1px solid #292f3b;

    border-radius: 16px;

    box-shadow:
        0 30px 80px rgba(0, 0, 0, .5);
}

.brand {
    font-size: 27px;
    font-weight: 800;

    letter-spacing: 2px;
}

.brand span {
    font-weight: 400;
}

.login-title {
    margin-top: 35px;

    font-size: 24px;
    font-weight: 700;
}

.login-description {
    margin: 8px 0 28px;

    color: #8992a2;

    line-height: 1.6;
}

.login-card label {
    display: block;

    margin: 18px 0 8px;

    color: #cbd5e1;

    font-size: 14px;
    font-weight: 600;
}

.login-card input {
    width: 100%;

    padding: 13px 14px;

    background: #0d1118;

    border: 1px solid #303746;

    border-radius: 9px;

    outline: none;

    color: #ffffff;

    font-size: 15px;
}

.login-card input:focus {
    border-color: #64748b;

    box-shadow:
        0 0 0 3px rgba(100, 116, 139, .15);
}

.login-card button {
    width: 100%;

    margin-top: 25px;

    min-height: 46px;

    border: 0;

    border-radius: 9px;

    background: #ffffff;

    color: #101318;

    font-weight: 700;

    cursor: pointer;
}

.error {
    padding: 13px 15px;

    background: #321b1d;

    border: 1px solid #693236;

    border-radius: 9px;

    color: #ff9b9b;

    font-size: 14px;
}

.version {
    margin-top: 25px;

    text-align: center;

    color: #596273;

    font-size: 12px;
}

/*
|--------------------------------------------------------------------------
| ADMIN LAYOUT
|--------------------------------------------------------------------------
*/

.admin-layout {
    min-height: 100vh;

    display: flex;
}

/*
|--------------------------------------------------------------------------
| SIDEBAR
|--------------------------------------------------------------------------
*/

.sidebar {
    width: 250px;

    display: flex;
    flex-direction: column;

    flex-shrink: 0;

    background: #11151d;

    border-right: 1px solid #252b36;
}

.sidebar-brand {
    padding: 27px 24px;

    border-bottom: 1px solid #252b36;

    font-size: 23px;
    font-weight: 800;

    letter-spacing: 2px;
}

.sidebar-brand small {
    display: block;

    margin-top: 5px;

    color: #70798a;

    font-size: 10px;
    font-weight: 400;

    letter-spacing: 1.5px;
}

.sidebar nav {
    padding: 20px 12px;
}

.sidebar nav a,
.sidebar-bottom a {
    display: block;

    margin-bottom: 4px;

    padding: 12px 13px;

    border-radius: 8px;

    color: #8992a2;

    text-decoration: none;

    font-size: 14px;
}

.sidebar nav a:hover,
.sidebar nav a.active {
    background: #1c222d;

    color: #ffffff;
}

.sidebar-bottom {
    margin-top: auto;

    padding: 15px 12px;

    border-top: 1px solid #252b36;
}

.sidebar-bottom a {
    margin: 0;
}

/*
|--------------------------------------------------------------------------
| CONTENT
|--------------------------------------------------------------------------
*/

.content {
    flex: 1;

    min-width: 0;
}

.topbar {
    height: 76px;

    display: flex;
    align-items: center;
    justify-content: space-between;

    padding: 0 32px;

    background: #11151d;

    border-bottom: 1px solid #252b36;
}

.topbar strong {
    display: block;

    font-size: 16px;
}

.topbar span {
    display: block;

    margin-top: 4px;

    color: #697384;

    font-size: 12px;
}

.admin-user {
    padding: 8px 12px;

    background: #1b202a;

    border: 1px solid #2a313d;

    border-radius: 8px;

    color: #cbd5e1;

    font-size: 13px;
}

.page {
    padding: 35px;
}

.page-heading {
    margin-bottom: 30px;
}

.page-heading h1 {
    margin: 0;

    font-size: 28px;
}

.page-heading p {
    margin: 8px 0 0;

    color: #7f8898;
}

/*
|--------------------------------------------------------------------------
| STATISTICS
|--------------------------------------------------------------------------
*/

.stats {
    display: grid;

    grid-template-columns:
        repeat(5, minmax(0, 1fr));

    gap: 15px;

    margin-bottom: 25px;
}

.stat {
    padding: 22px;

    background: #151922;

    border: 1px solid #292f3b;

    border-radius: 12px;
}

.stat span {
    display: block;

    color: #7f8898;

    font-size: 13px;
}

.stat strong {
    display: block;

    margin-top: 9px;

    font-size: 27px;
}

/*
|--------------------------------------------------------------------------
| PANEL
|--------------------------------------------------------------------------
*/

.panel {
    padding: 25px;

    background: #151922;

    border: 1px solid #292f3b;

    border-radius: 12px;
}

.panel h2 {
    margin: 0 0 8px;

    font-size: 19px;
}

.panel p {
    margin: 0;

    color: #7f8898;
}

.product-status {
display: inline-block;


margin-top: 20px;

padding: 8px 12px;

border-radius: 7px;

font-size: 12px;
font-weight: 600;


}

.product-status.status-active {
background: #163824;


border: 1px solid #235b36;

color: #63e58a;


}

.product-status.status-inactive {
background: #3a1717;


border: 1px solid #6b2929;

color: #f07171;


}


/*
|--------------------------------------------------------------------------
| RESPONSIVE
|--------------------------------------------------------------------------
*/

@media (max-width: 1000px) {

    .stats {
        grid-template-columns:
            repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 700px) {

    .sidebar {
        width: 70px;
    }

    .sidebar-brand {
        padding: 20px 10px;

        text-align: center;

        font-size: 16px;
    }

    .sidebar-brand small {
        display: none;
    }

    .sidebar nav a,
    .sidebar-bottom a {
        text-align: center;

        font-size: 0;
    }

    .sidebar nav a::first-letter,
    .sidebar-bottom a::first-letter {
        font-size: 16px;
    }

    .page {
        padding: 20px;
    }

    .topbar {
        padding: 0 20px;
    }

    .stats {
        grid-template-columns: 1fr;
    }
}




/*
|--------------------------------------------------------------------------
| PRODUCT PAGE
|--------------------------------------------------------------------------
*/

.product-heading {
    display: flex;

    align-items: flex-end;
    justify-content: space-between;

    gap: 20px;
}

.admin-button {
    display: inline-flex;

    align-items: center;
    justify-content: center;

    min-height: 42px;

    padding: 0 16px;

    background: #ffffff;

    border-radius: 8px;

    color: #101318;

    text-decoration: none;

    font-size: 13px;
    font-weight: 700;
}

.success-message {
    margin-bottom: 20px;

    padding: 13px 15px;

    background: #163824;

    border: 1px solid #235b36;

    border-radius: 9px;

    color: #63e58a;
}

.product-list {
    display: flex;

    flex-direction: column;

    gap: 12px;
}

.product-card {
    display: flex;

    align-items: center;
    justify-content: space-between;

    gap: 20px;

    padding: 20px;

    background: #151922;

    border: 1px solid #292f3b;

    border-radius: 12px;
}

.product-main {
    display: flex;

    align-items: center;

    gap: 16px;

    min-width: 0;
}

.product-icon {
    display: flex;

    align-items: center;
    justify-content: center;

    width: 52px;
    height: 52px;

    flex-shrink: 0;

    border-radius: 12px;

    background: #242b37;

    color: #ffffff;

    font-size: 20px;
    font-weight: 800;
}

.product-card h2 {
    margin: 0;

    font-size: 17px;
}

.product-key {
    margin-top: 4px;

    color: #687384;

    font-family: monospace;

    font-size: 12px;
}

.product-card p {
    margin: 7px 0 0;

    color: #7f8898;

    font-size: 13px;
}

.product-right {
    display: flex;

    align-items: center;

    gap: 12px;

    flex-shrink: 0;
}

.small-button {
    display: inline-flex;

    align-items: center;

    min-height: 36px;

    padding: 0 13px;

    background: #242a35;

    border: 1px solid #303847;

    border-radius: 7px;

    color: #d6dce5;

    text-decoration: none;

    font-size: 12px;
}

@media (max-width: 700px) {

    .product-heading {
        align-items: stretch;

        flex-direction: column;
    }

    .product-card {
        align-items: flex-start;

        flex-direction: column;
    }

    .product-right {
        width: 100%;
    }
}




/*
|--------------------------------------------------------------------------
| FORMS
|--------------------------------------------------------------------------
*/

.form-help {
    display: block;

    margin-top: 6px;

    color: #687384;

    font-size: 12px;
}

textarea,
select {
    width: 100%;

    padding: 13px 14px;

    background: #0d1118;

    border: 1px solid #303746;

    border-radius: 9px;

    outline: none;

    color: #ffffff;

    font-family: inherit;

    font-size: 14px;
}

textarea {
    resize: vertical;

    min-height: 120px;
}

textarea:focus,
select:focus {
    border-color: #64748b;

    box-shadow:
        0 0 0 3px rgba(100, 116, 139, .15);
}

.form-actions {
    display: flex;

    justify-content: flex-end;

    gap: 10px;

    margin-top: 25px;

    padding-top: 20px;

    border-top: 1px solid #252b36;
}

.form-actions .small-button {
    min-height: 42px;

    padding: 0 16px;
}



/*
|--------------------------------------------------------------------------
| CUSTOMER PAGE
|--------------------------------------------------------------------------
*/

.customer-search {
    margin-bottom: 20px;
}

.search-row {
    display: flex;

    align-items: center;

    gap: 10px;
}

.search-row input {
    flex: 1;

    min-width: 0;

    padding: 13px 14px;

    background: #0d1118;

    border: 1px solid #303746;

    border-radius: 9px;

    outline: none;

    color: #ffffff;

    font-family: inherit;

    font-size: 14px;
}

.search-row input:focus {
    border-color: #64748b;

    box-shadow:
        0 0 0 3px rgba(100, 116, 139, .15);
}

.customer-list {
    display: flex;

    flex-direction: column;

    gap: 12px;
}

.customer-card {
    display: flex;

    align-items: center;
    justify-content: space-between;

    gap: 20px;

    padding: 20px;

    background: #151922;

    border: 1px solid #292f3b;

    border-radius: 12px;
}

.customer-main {
    display: flex;

    align-items: center;

    gap: 15px;

    min-width: 0;
}

.customer-avatar {
    width: 52px;
    height: 52px;

    display: flex;

    align-items: center;
    justify-content: center;

    flex-shrink: 0;

    border-radius: 12px;

    background: #242b37;

    color: #ffffff;

    font-size: 18px;
    font-weight: 800;
}

.customer-information {
    min-width: 0;
}

.customer-information h2 {
    margin: 0;

    font-size: 17px;

    font-weight: 700;
}

.customer-number {
    margin-top: 4px;

    color: #687384;

    font-family: monospace;

    font-size: 12px;
}

.customer-meta {
    margin-top: 5px;

    color: #7f8898;

    font-size: 13px;
}

.customer-right {
    display: flex;

    align-items: center;

    gap: 12px;

    flex-shrink: 0;
}

.customer-status {
    display: inline-flex;

    align-items: center;

    gap: 5px;

    padding: 7px 10px;

    border-radius: 7px;

    font-size: 12px;
    font-weight: 600;
}

.customer-status-active {
    background: #163824;

    border: 1px solid #235b36;

    color: #63e58a;
}

.customer-status-inactive {
    background: #332b1b;

    border: 1px solid #5d4c25;

    color: #e8c96a;
}

.customer-system-panel {
    margin-top: 20px;
}

.customer-system-panel h2 {
    margin: 0 0 20px;

    font-size: 17px;
}

.customer-system-grid {
    display: grid;

    grid-template-columns:
        repeat(4, minmax(0, 1fr));

    gap: 15px;
}

.customer-system-grid > div {
    padding: 15px;

    background: #10141b;

    border: 1px solid #252c37;

    border-radius: 9px;
}

.customer-system-grid span {
    display: block;

    margin-bottom: 7px;

    color: #687384;

    font-size: 12px;
}

.customer-system-grid strong {
    display: block;

    color: #dbe1e9;

    font-size: 13px;

    word-break: break-word;
}

@media (max-width: 800px) {

    .customer-card {
        align-items: flex-start;

        flex-direction: column;
    }

    .customer-right {
        width: 100%;
    }

    .customer-system-grid {
        grid-template-columns:
            repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 600px) {

    .search-row {
        align-items: stretch;

        flex-direction: column;
    }

    .search-row .admin-button,
    .search-row .small-button {
        width: 100%;

        justify-content: center;
    }

    .customer-right {
        align-items: stretch;

        flex-direction: column;
    }

    .customer-right .small-button {
        justify-content: center;
    }

    .customer-system-grid {
        grid-template-columns: 1fr;
    }
}




/*
|--------------------------------------------------------------------------
| LICENSES
|--------------------------------------------------------------------------
*/

.license-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.license-card {
    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 20px;

    padding: 20px;

    background: #151922;

    border: 1px solid #292f3b;

    border-radius: 12px;
}

.license-main {
    display: flex;
    align-items: center;

    gap: 15px;

    min-width: 0;
}

.license-icon {
    width: 48px;
    height: 48px;

    display: flex;
    align-items: center;
    justify-content: center;

    flex-shrink: 0;

    background: #242b37;

    border-radius: 11px;

    font-size: 20px;
}

.license-key {
    color: #ffffff;

    font-family: monospace;

    font-size: 15px;

    font-weight: 700;

    letter-spacing: .5px;

    word-break: break-all;
}

.license-product {
    margin-top: 6px;

    color: #8c96a6;

    font-size: 13px;
}

.license-product span {
    margin: 0 5px;

    color: #4c5564;
}

.license-customer {
    margin-top: 5px;

    color: #687384;

    font-size: 12px;
}

.license-details {
    display: flex;
    align-items: center;

    gap: 10px;

    flex-shrink: 0;
}

.license-details > span:not(.license-status) {
    color: #7e8795;

    font-size: 12px;
}

.license-status {
    padding: 7px 10px;

    border-radius: 7px;

    font-size: 12px;
    font-weight: 600;
}

.license-status-active {
    background: #163824;

    border: 1px solid #235b36;

    color: #63e58a;
}

.license-status-inactive {
    background: #30302b;

    border: 1px solid #4a493c;

    color: #c8c39a;
}

.license-status-expired {
    background: #3a211f;

    border: 1px solid #63322e;

    color: #ef8177;
}

.license-status-suspended {
    background: #38251a;

    border: 1px solid #644328;

    color: #e5a66c;
}

.license-key-display {
    margin-bottom: 25px;

    padding: 18px;

    background: #0d1118;

    border: 1px solid #303746;

    border-radius: 10px;
}

.license-key-display span {
    display: block;

    margin-bottom: 8px;

    color: #687384;

    font-size: 12px;
}

.license-key-display strong {
    display: block;

    color: #ffffff;

    font-family: monospace;

    font-size: 18px;

    letter-spacing: 1px;

    word-break: break-all;
}

@media (max-width: 900px) {

    .license-card {
        align-items: flex-start;

        flex-direction: column;
    }

    .license-details {
        width: 100%;

        flex-wrap: wrap;
    }

}

@media (max-width: 600px) {

    .license-details {
        align-items: stretch;

        flex-direction: column;
    }

    .license-details .small-button {
        justify-content: center;
    }

}