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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #f0f8ff 0%, #e6f3ff 100%);
    color: #333;
    line-height: 1.6;
}

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

/* Header */
.header {
    background: linear-gradient(135deg, #1e3a8a 0%, #3b82f6 100%);
    color: white;
    padding: 1rem 0;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 100;
}

.header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo i {
    font-size: 2rem;
    color: #60a5fa;
}

.logo h1 {
    font-size: 1.5rem;
    font-weight: 700;
}

.cart-info {
    display: flex;
    align-items: center;
    gap: 15px;
    background: rgba(255,255,255,0.2);
    padding: 10px 20px;
    border-radius: 25px;
    backdrop-filter: blur(10px);
}

.cart-count {
    background: #ef4444;
    color: white;
    border-radius: 50%;
    width: 25px;
    height: 25px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    font-weight: bold;
}

/* Main */
.main {
    padding: 2rem 0;
    min-height: calc(100vh - 120px);
}

/* Products */
.products-section h2 {
    text-align: center;
    margin-bottom: 2rem;
    color: #1e40af;
    font-size: 2.5rem;
}

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

.product-card {
    background: white;
    border-radius: 20px;
    padding: 2rem;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    border: 1px solid #e0f2fe;
}

.product-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(59,130,246,0.2);
}

.product-image {
    width: 100%;
    height: 200px;
    background: linear-gradient(45deg, #dbeafe, #bfdbfe);
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 4rem;
    color: #3b82f6;
    margin-bottom: 1rem;
}

.product-info h3 {
    color: #1e40af;
    margin-bottom: 0.5rem;
    font-size: 1.3rem;
}

.product-price {
    font-size: 1.8rem;
    font-weight: bold;
    color: #1e3a8a;
    margin: 1rem 0;
}

.btn-add {
    width: 100%;
    background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 12px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-add:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(59,130,246,0.3);
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    backdrop-filter: blur(5px);
    z-index: 1000;
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.3s ease;
}

.modal-content {
    background: white;
    border-radius: 20px;
    max-width: 500px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    animation: slideIn 0.3s ease;
}

.modal-header {
    padding: 1.5rem 2rem;
    border-bottom: 1px solid #e5e7eb;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: linear-gradient(135deg, #f8fafc, #e2e8f0);
    border-radius: 20px 20px 0 0;
}

.close {
    font-size: 2rem;
    cursor: pointer;
    color: #6b7280;
    transition: color 0.3s ease;
}

.close:hover {
    color: #ef4444;
}

.cart-items {
    padding: 1.5rem;
    max-height: 400px;
    overflow-y: auto;
}

.cart-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
    border-bottom: 1px solid #f3f4f6;
}

.cart-item:last-child {
    border-bottom: none;
}

.cart-item-info h4 {
    color: #1e40af;
    margin-bottom: 0.25rem;
}

.cart-item-price {
    font-weight: bold;
    color: #1e3a8a;
}

.quantity-controls {
    display: flex;
    align-items: center;
    gap: 10px;
}

.quantity-btn {
    width: 30px;
    height: 30px;
    border: 1px solid #d1d5db;
    background: white;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
}

.quantity {
    min-width: 30px;
    text-align: center;
    font-weight: 600;
}

.cart-total {
    padding: 1.5rem;
    border-top: 1px solid #e5e7eb;
    text-align: center;
}

.btn-checkout {
    width: 100%;
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: white;
    border: none;
    padding: 15px;
    border-radius: 12px;
    font-size: 1.2rem;
    font-weight: 600;
    cursor: pointer;
    margin-top: 1rem;
    transition: all 0.3s ease;
}

.btn-checkout:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(16,185,129,0.3);
}

/* Payment Modal */
.payment-modal {
    max-width: 600px;
    width: 95%;
}

.payment-status {
    text-align: center;
    padding: 2rem;
    border-radius: 15px;
    margin-bottom: 1.5rem;
}

.status {
    transition: all 0.5s ease;
}

.status.unpaid {
    background: linear-gradient(135deg, #fef3c7, #fde68a);
    border: 3px solid #f59e0b;
}

.status.paid {
    background: linear-gradient(135deg, #d1fae5, #a7f3d0);
    border: 3px solid #10b981;
}

.status i {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.status.unpaid i { color: #f59e0b; }
.status.paid i { color: #10b981; }

#statusText {
    font-size: 1.5rem;
    font-weight: bold;
    text-transform: uppercase;
    margin: 0.5rem 0;
}

.payment-methods {
    margin-bottom: 2rem;
}

.method-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-top: 1rem;
}

.payment-method {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 1.5rem;
    border: 2px solid #e5e7eb;
    border-radius: 15px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.payment-method.active {
    border-color: #3b82f6;
    background: #eff6ff;
    transform: scale(1.05);
}

.payment-method i {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
}

.payment-method.qris i { color: #3b82f6; }
.payment-method.dana i { color: #00d4aa; }

.payment-details {
    background: #f8fafc;
    border-radius: 15px;
    padding: 2rem;
    text-align: center;
    border: 2px dashed #cbd5e1;
}

.qr-code {
    width: 200px;
    height: 200px;
    background: #f3f4f6;
    border: 2px solid #e5e7eb;
    border-radius: 10px;
    margin: 1rem auto;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
}

.dana-details h4 {
    color: #00d4aa;
    margin-bottom: 1rem;
}

.dana-number {
    background: white;
    border: 2px solid #00d4aa;
    border-radius: 10px;
    padding: 1rem;
    font-size: 1.5rem;
    font-weight: bold;
    font-family: monospace;
    letter-spacing: 2px;
    margin: 1rem 0;
}

.btn-copy {
    background: #3b82f6;
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 10px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-copy:hover {
    background: #2563eb;
    transform: translateY(-2px);
}

/* Animations */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideIn {
    from { 
        opacity: 0;
        transform: translateY(-50px) scale(0.9);
    }
    to { 
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* Responsive */
@media (max-width: 768px) {
    .header .container {
        flex-direction: column;
        gap: 1rem;
    }
    
    .products-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .method-grid {
        grid-template-columns: 1fr;
    }
    
    .cart-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
}