
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: Arial, sans-serif;
    background: #000000;
    color: #ffffff;
    line-height: 1.4;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.nav {
    background: #111111;
    border-bottom: 1px solid #333333;
    padding: 15px 0;
}

.nav-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-title {
    font-size: 24px;
    font-weight: bold;
    color: #ffffff;
}

.nav-links {
    display: flex;
    gap: 20px;
    align-items: center;
}

.btn {
    padding: 8px 16px;
    border: 1px solid #333333;
    background: #111111;
    color: #ffffff;
    text-decoration: none;
    display: inline-block;
    cursor: pointer;
    font-size: 14px;
}

.btn:hover {
    background: #222222;
    border-color: #444444;
}

.btn-primary {
    background: #111111;
    border-color: #333333;
}

.btn-success {
    background: #111111;
    border-color: #22c55e;
    color: #22c55e;
}

.btn-success:hover {
    background: #22c55e;
    color: #000000;
}

.btn-danger {
    background: #111111;
    border-color: #ef4444;
    color: #ef4444;
}

.btn-danger:hover {
    background: #ef4444;
    color: #ffffff;
}

.btn-warning {
    background: #111111;
    border-color: #f59e0b;
    color: #f59e0b;
}

.btn-warning:hover {
    background: #f59e0b;
    color: #000000;
}

.form-group {
    margin-bottom: 15px;
}

.form-label {
    display: block;
    margin-bottom: 5px;
    color: #cccccc;
    font-size: 14px;
}

.form-input {
    width: 100%;
    padding: 10px;
    background: #111111;
    border: 1px solid #333333;
    color: #ffffff;
    font-size: 14px;
}

.form-input:focus {
    outline: none;
    border-color: #555555;
}

.card {
    background: #111111;
    border: 1px solid #333333;
    padding: 20px;
    margin-bottom: 20px;
}

.card-title {
    font-size: 18px;
    font-weight: bold;
    margin-bottom: 15px;
    color: #ffffff;
}

.grid {
    display: grid;
    gap: 20px;
}

.grid-2 {
    grid-template-columns: repeat(2, 1fr);
}

.grid-3 {
    grid-template-columns: repeat(3, 1fr);
}

.grid-4 {
    grid-template-columns: repeat(4, 1fr);
}

.stat-card {
    background: #111111;
    border: 1px solid #333333;
    padding: 20px;
    text-align: center;
}

.stat-value {
    font-size: 24px;
    font-weight: bold;
    color: #ffffff;
    margin-bottom: 5px;
}

.stat-label {
    color: #cccccc;
    font-size: 14px;
}

.product-card {
    background: #111111;
    border: 1px solid #333333;
    padding: 20px;
}

.product-image {
    width: 100%;
    height: 150px;
    object-fit: cover;
    border: 1px solid #333333;
    margin-bottom: 15px;
}

.product-title {
    font-size: 16px;
    font-weight: bold;
    margin-bottom: 10px;
    color: #ffffff;
}

.product-description {
    color: #cccccc;
    font-size: 14px;
    margin-bottom: 15px;
}

.product-price {
    font-size: 18px;
    font-weight: bold;
    color: #ffffff;
    margin-bottom: 10px;
}

.product-price-original {
    text-decoration: line-through;
    color: #666666;
    font-size: 14px;
}

.product-discount {
    color: #22c55e;
    font-size: 12px;
    margin-bottom: 10px;
}

.key-type {
    background: #111111;
    border: 1px solid #333333;
    padding: 15px;
    margin-bottom: 10px;
}

.key-type-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.key-type-name {
    font-weight: bold;
    color: #ffffff;
}

.key-type-price {
    font-weight: bold;
    color: #ffffff;
}

.key-type-controls {
    display: flex;
    gap: 10px;
    align-items: center;
}

.key-type-input {
    width: 60px;
    padding: 5px;
    background: #111111;
    border: 1px solid #333333;
    color: #ffffff;
    text-align: center;
}

.cart-item {
    background: #111111;
    border: 1px solid #333333;
    padding: 15px;
    margin-bottom: 10px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.cart-item-info {
    flex: 1;
}

.cart-item-controls {
    display: flex;
    gap: 10px;
    align-items: center;
}

.cart-total {
    background: #111111;
    border: 1px solid #333333;
    padding: 15px;
    margin-top: 20px;
    text-align: right;
}

.purchase-item {
    background: #111111;
    border: 1px solid #333333;
    padding: 15px;
    margin-bottom: 10px;
}

.purchase-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.purchase-product {
    font-weight: bold;
    color: #ffffff;
}

.purchase-date {
    color: #cccccc;
    font-size: 12px;
}

.purchase-details {
    display: flex;
    gap: 20px;
    margin-bottom: 10px;
}

.purchase-key {
    background: #111111;
    border: 1px solid #333333;
    padding: 10px;
    font-family: monospace;
    font-size: 12px;
    word-break: break-all;
}

.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

.modal-content {
    background: #111111;
    border: 1px solid #333333;
    padding: 30px;
    max-width: 600px;
    width: 90%;
    max-height: 80vh;
    overflow-y: auto;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.modal-title {
    font-size: 18px;
    font-weight: bold;
    color: #ffffff;
}

.modal-close {
    background: none;
    border: none;
    color: #cccccc;
    font-size: 24px;
    cursor: pointer;
}

.modal-close:hover {
    color: #ffffff;
}

.notification {
    position: fixed;
    top: 20px;
    right: 20px;
    padding: 15px 20px;
    border: 1px solid;
    background: #111111;
    z-index: 1001;
    max-width: 300px;
}

.notification.success {
    border-color: #22c55e;
    color: #22c55e;
}

.notification.error {
    border-color: #ef4444;
    color: #ef4444;
}

.notification.warning {
    border-color: #f59e0b;
    color: #f59e0b;
}

.notification.info {
    border-color: #3b82f6;
    color: #3b82f6;
}

.table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 20px;
}

.table th,
.table td {
    padding: 10px;
    text-align: left;
    border-bottom: 1px solid #333333;
}

.table th {
    background: #111111;
    font-weight: bold;
    color: #ffffff;
}

.table td {
    color: #cccccc;
}

.text-center { text-align: center; }
.text-right { text-align: right; }
.text-left { text-align: left; }

.mb-10 { margin-bottom: 10px; }
.mb-15 { margin-bottom: 15px; }
.mb-20 { margin-bottom: 20px; }

.mt-10 { margin-top: 10px; }
.mt-15 { margin-top: 15px; }
.mt-20 { margin-top: 20px; }

.hidden { display: none; }
.block { display: block; }
.flex { display: flex; }

.justify-between { justify-content: space-between; }
.justify-center { justify-content: center; }
.items-center { align-items: center; }

.gap-10 { gap: 10px; }
.gap-15 { gap: 15px; }
.gap-20 { gap: 20px; }

@media (max-width: 768px) {
    .grid-2,
    .grid-3,
    .grid-4 {
        grid-template-columns: 1fr;
    }
    
    .nav-content {
        flex-direction: column;
        gap: 15px;
    }
    
    .nav-links {
        flex-direction: column;
        gap: 10px;
    }
    
    .container {
        padding: 10px;
    }
    
    .modal-content {
        width: 95%;
        padding: 20px;
    }
    
    .notification {
        right: 10px;
        left: 10px;
        max-width: none;
    }
}