* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background: #f5f5f5;
    color: #2d3748;
    line-height: 1.6;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 30px 0;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

header h1 {
    font-size: 32px;
    margin-bottom: 5px;
}

header .tagline {
    opacity: 0.9;
    font-size: 16px;
}

.back-link {
    color: white;
    text-decoration: none;
    font-size: 14px;
    opacity: 0.9;
}

.back-link:hover {
    opacity: 1;
}

main {
    min-height: calc(100vh - 200px);
    padding: 40px 0;
}

footer {
    background: #2d3748;
    color: white;
    text-align: center;
    padding: 20px 0;
    margin-top: 50px;
}

footer p {
    opacity: 0.8;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
}

.product-card {
    background: white;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    transition: transform 0.3s, box-shadow 0.3s;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 20px rgba(0,0,0,0.15);
}

.product-card h3 {
    font-size: 24px;
    margin-bottom: 15px;
    color: #2d3748;
}

.product-card .description {
    color: #718096;
    margin-bottom: 20px;
    min-height: 60px;
}

.product-card .price {
    margin-bottom: 15px;
}

.product-card .amount {
    font-size: 32px;
    font-weight: bold;
    color: #667eea;
}

.stock-info {
    margin-bottom: 20px;
    font-size: 14px;
}

.in-stock {
    color: #48bb78;
    font-weight: 500;
}

.out-of-stock {
    color: #e53e3e;
    font-weight: 500;
}

.btn {
    display: inline-block;
    padding: 12px 24px;
    border: none;
    border-radius: 5px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s;
    text-decoration: none;
    text-align: center;
}

.btn-primary {
    background: #667eea;
    color: white;
    width: 100%;
}

.btn-primary:hover:not(:disabled) {
    background: #5568d3;
}

.btn-secondary {
    background: #718096;
    color: white;
}

.btn-secondary:hover {
    background: #4a5568;
}

.btn-large {
    padding: 15px 30px;
    font-size: 18px;
}

.btn:disabled {
    background: #cbd5e0;
    cursor: not-allowed;
}

.empty-state {
    text-align: center;
    padding: 60px 20px;
    background: white;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.empty-state h2 {
    font-size: 28px;
    margin-bottom: 10px;
    color: #2d3748;
}

.empty-state p {
    color: #718096;
    font-size: 16px;
}

.checkout-container {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 30px;
    max-width: 900px;
    margin: 0 auto;
}

.checkout-form,
.order-summary {
    background: white;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.order-summary h2,
.checkout-form h2 {
    font-size: 24px;
    margin-bottom: 20px;
    color: #2d3748;
}

.summary-item {
    display: flex;
    justify-content: space-between;
    padding: 15px 0;
    border-bottom: 1px solid #e2e8f0;
}

.summary-total {
    display: flex;
    justify-content: space-between;
    padding: 15px 0;
    margin-top: 15px;
    font-size: 20px;
    font-weight: bold;
    color: #2d3748;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: #4a5568;
    font-weight: 500;
}

.form-group input[type="email"],
.form-group input[type="text"] {
    width: 100%;
    padding: 12px;
    border: 1px solid #e2e8f0;
    border-radius: 5px;
    font-size: 14px;
    font-family: inherit;
}

.form-group input:focus {
    outline: none;
    border-color: #667eea;
}

.form-group small {
    display: block;
    margin-top: 5px;
    color: #718096;
    font-size: 13px;
}

.payment-methods {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.payment-option {
    display: flex;
    align-items: center;
    padding: 20px;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s;
}

.payment-option:hover {
    border-color: #667eea;
    background: #f7fafc;
}

.payment-option input[type="radio"] {
    margin-right: 15px;
    width: 20px;
    height: 20px;
    cursor: pointer;
}

.payment-option-content {
    flex: 1;
}

.payment-option-content strong {
    display: block;
    font-size: 16px;
    color: #2d3748;
    margin-bottom: 3px;
}

.payment-option-content small {
    color: #718096;
    font-size: 14px;
}

.order-status-container {
    max-width: 700px;
    margin: 0 auto;
}

.order-status-container h2 {
    font-size: 28px;
    margin-bottom: 30px;
    color: #2d3748;
}

.status-card {
    background: white;
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    margin-bottom: 30px;
}

.status-header {
    margin-bottom: 30px;
}

.status-badge {
    display: inline-block;
    padding: 8px 20px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
}

.status-pending {
    background: #fed7d7;
    color: #c53030;
}

.status-paid {
    background: #d6f5d6;
    color: #22543d;
}

.status-completed {
    background: #c6f6d5;
    color: #22543d;
}

.status-cancelled {
    background: #e2e8f0;
    color: #4a5568;
}

.payment-instructions h3 {
    font-size: 22px;
    margin-bottom: 20px;
    color: #2d3748;
}

.payment-box,
.amount-box {
    background: #f7fafc;
    border: 1px solid #e2e8f0;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 20px;
    text-align: center;
}

.payment-box code {
    font-size: 18px;
    color: #667eea;
    font-weight: 500;
}

.amount-large {
    font-size: 36px;
    font-weight: bold;
    color: #667eea;
}

.code-words-hint {
    background: #eef2ff;
    border-left: 4px solid #667eea;
    padding: 20px;
    border-radius: 5px;
    margin-bottom: 20px;
}

.code-words {
    margin-top: 10px;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.code-word {
    background: white;
    padding: 8px 15px;
    border-radius: 20px;
    font-family: monospace;
    font-size: 14px;
    color: #667eea;
    font-weight: 500;
}

.payment-received,
.order-complete {
    text-align: center;
    padding: 20px 0;
}

.payment-received h3,
.order-complete h3 {
    font-size: 24px;
    color: #48bb78;
    margin-bottom: 15px;
}

.email-display {
    font-size: 18px;
    color: #4a5568;
    margin: 15px 0;
    word-break: break-all;
}

.license-key-display {
    background: #2d3748;
    color: white;
    padding: 20px;
    border-radius: 8px;
    margin: 20px 0;
    text-align: center;
    font-family: monospace;
    font-size: 18px;
    word-break: break-all;
}

.order-details {
    background: white;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.order-details h3 {
    font-size: 20px;
    margin-bottom: 20px;
    color: #2d3748;
}

.details-grid {
    display: grid;
    gap: 15px;
}

.details-grid div {
    padding: 10px 0;
    border-bottom: 1px solid #e2e8f0;
}

.order-cancelled,
.order-expired {
    text-align: center;
    padding: 20px 0;
}

.order-cancelled h3 {
    font-size: 24px;
    color: #e53e3e;
    margin-bottom: 15px;
}

.order-expired h3 {
    font-size: 24px;
    color: #d69e2e;
    margin-bottom: 15px;
}

@media (max-width: 768px) {
    .checkout-container {
        grid-template-columns: 1fr;
    }
    
    .products-grid {
        grid-template-columns: 1fr;
    }
}

