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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    padding: 20px;
}

.container {
    max-width: 600px;
    margin: 0 auto;
}

.header {
    text-align: center;
    color: white;
    margin-bottom: 30px;
    padding: 20px;
}

.header h1 {
    font-size: 2.5em;
    margin-bottom: 10px;
}

.header p {
    font-size: 1.1em;
    opacity: 0.9;
}

.massage-types {
    display: grid;
    gap: 20px;
}

.massage-card {
    background: white;
    border-radius: 15px;
    padding: 25px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.massage-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 15px rgba(0,0,0,0.2);
}

.massage-card:active {
    transform: translateY(-2px);
}

.massage-icon {
    font-size: 3em;
    text-align: center;
    margin-bottom: 15px;
}

.massage-card h2 {
    color: #333;
    font-size: 1.5em;
    margin-bottom: 10px;
    text-align: center;
}

.price {
    color: #667eea;
    font-size: 2em;
    font-weight: bold;
    text-align: center;
    margin: 10px 0;
}

.duration {
    color: #666;
    text-align: center;
    margin-bottom: 15px;
    font-size: 1.1em;
}

.massage-card p {
    color: #666;
    text-align: center;
    line-height: 1.5;
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.5);
    animation: fadeIn 0.3s;
}

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

.modal-content {
    background-color: white;
    margin: 10% auto;
    padding: 30px;
    border-radius: 15px;
    max-width: 90%;
    width: 400px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
    animation: slideIn 0.3s;
}

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

.modal-content h2 {
    color: #333;
    margin-bottom: 20px;
    text-align: center;
}

#selectedInfo {
    background: #f5f5f5;
    padding: 20px;
    border-radius: 10px;
    margin-bottom: 20px;
}

#selectedInfo p {
    margin: 10px 0;
    color: #333;
}

.modal-buttons {
    display: flex;
    gap: 10px;
    margin-top: 20px;
}

button {
    flex: 1;
    padding: 15px;
    border: none;
    border-radius: 10px;
    font-size: 1em;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-cancel {
    background: #e0e0e0;
    color: #333;
}

.btn-cancel:hover {
    background: #d0d0d0;
}

.btn-pay {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.btn-pay:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.4);
}

.btn-check {
    width: 100%;
    background: #4CAF50;
    color: white;
    margin-top: 20px;
}

.btn-check:hover {
    background: #45a049;
}

.btn-ok {
    width: 100%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

#qrisContainer {
    text-align: center;
    padding: 20px;
}

#qrisContainer img {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
}

.loading {
    text-align: center;
    color: #666;
    padding: 40px;
}

.payment-info {
    text-align: center;
    margin-top: 20px;
    color: #666;
}

.payment-info p {
    margin: 10px 0;
}

.timer {
    font-weight: bold;
    color: #f44336;
    font-size: 1.2em;
}

/* Success Modal */
.modal-content.success {
    text-align: center;
}

.success-icon {
    width: 80px;
    height: 80px;
    background: #4CAF50;
    color: white;
    font-size: 3em;
    line-height: 80px;
    border-radius: 50%;
    margin: 0 auto 20px;
}

.order-id {
    background: #f5f5f5;
    padding: 15px;
    border-radius: 10px;
    margin: 20px 0;
    font-family: monospace;
}

/* Responsive Design */
@media (max-width: 480px) {
    .header h1 {
        font-size: 2em;
    }
    
    .massage-card {
        padding: 20px;
    }
    
    .price {
        font-size: 1.8em;
    }
    
    .modal-content {
        margin: 20% auto;
        padding: 20px;
    }
    
    button {
        padding: 12px;
        font-size: 0.95em;
    }
}
