/* Reset and base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    background: linear-gradient(135deg, #3CA8E8 0%, #2931B3 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    width: 100%;
    padding: 20px;
}

/* Header */
.header {
    text-align: center;
    margin-bottom: 40px;
}

.title {
    font-size: 2.5rem;
    font-weight: 700;
    color: white;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

.title i {
    margin-right: 10px;
}

/* Packages */
.packages {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
}

.package-card {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 30px;
    text-align: center;
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
}

.package-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
}

.icon {
    font-size: 3rem;
    margin-bottom: 20px;
    color: #ffd700;
}

.package-card h2 {
    font-size: 2rem;
    font-weight: 600;
    margin-bottom: 10px;
}

.package-card p {
    font-size: 1rem;
    margin-bottom: 20px;
    opacity: 0.8;
}

.price {
    font-size: 1.5rem;
    font-weight: 500;
    margin-bottom: 20px;
    display: block;
}

.select-btn {
    background: linear-gradient(135deg, #3CA8E8, #2931B3);
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 25px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s ease;
}

.select-btn:hover {
    background: linear-gradient(135deg, #2e94d4, #1f26a0);
}

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

.modal-content {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    width: 100%;
    max-width: 400px;
    margin: 0 auto;
    padding: 0;
    border-radius: 20px 20px 0 0;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    animation: slideUp 0.3s ease;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.modal-header h3 {
    font-size: 1.5rem;
    font-weight: 600;
    color: #333;
}

.close {
    font-size: 2rem;
    cursor: pointer;
    color: #666;
}

.modal-body {
    padding: 20px;
}

#payBtn {
    width: 100%;
    background: linear-gradient(135deg, #3CA8E8, #2931B3);
    color: white;
    border: none;
    padding: 12px;
    border-radius: 10px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s ease;
}

#payBtn:hover:not(:disabled) {
    background: linear-gradient(135deg, #2e94d4, #1f26a0);
}

#payBtn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

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

.select-btn:active {
    transform: scale(0.95);
}

.package-card.selected {
    animation: cardFlip 0.6s ease;
}

@keyframes cardFlip {
    0% { transform: rotateY(0deg); }
    50% { transform: rotateY(90deg); }
    100% { transform: rotateY(0deg); }
}

/* Spinner */
.spinner {
    border: 4px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top: 4px solid #3CA8E8;
    width: 40px;
    height: 40px;
    animation: spin 1s linear infinite;
    margin: 20px auto;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Success/Error Modals */
.success-content, .error-content {
    text-align: center;
}

.success-icon {
    font-size: 4rem;
    color: #28a745;
    margin-bottom: 20px;
}

.error-icon {
    font-size: 4rem;
    color: #dc3545;
    margin-bottom: 20px;
}

.success-content h3, .error-content h3 {
    margin-bottom: 10px;
    color: #333;
}

.success-content p, .error-content p {
    margin-bottom: 20px;
    color: #666;
}

#closeSuccessBtn, #closeErrorBtn {
    background: linear-gradient(135deg, #3CA8E8, #2931B3);
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 10px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s ease;
}

#closeSuccessBtn:hover, #closeErrorBtn:hover {
    background: linear-gradient(135deg, #2e94d4, #1f26a0);
}
