.checkout-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1000;
}

.modal-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
}

.modal-content {
    position: relative;
    background: var(--dark-bg);
    width: 90%;
    max-width: 600px;
    margin: 50px auto;
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    z-index: 1001;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.close-button {
    font-size: 24px;
    cursor: pointer;
    color: var(--text-light);
}

.plan-info {
    background: rgba(255, 255, 255, 0.05);
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 20px;
}

.payment-methods-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 15px;
    margin: 20px 0;
}

.payment-method-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 15px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.payment-method-item:hover {
    transform: translateY(-2px);
    background: rgba(255, 255, 255, 0.1);
}

.payment-method-item.selected {
    border-color: #4CAF50;
    background: rgba(76, 175, 80, 0.1);
}

.payment-method-item i {
    font-size: 24px;
    color: var(--primary-color);
    margin-bottom: 8px;
}

.payment-method-item.selected i {
    color: #4CAF50;
}


.checkout-button {
    width: 100%;
    padding: 12px;
    background-color: var(--primary-color);
    color: var(--text-light);
    border: none;
    border-radius: 5px;
    cursor: pointer;
    margin-top: 20px;
}

.checkout-button:hover {
    background-color: #5478c8;
}

.g2a-instructions {
    background: rgba(255, 255, 255, 0.05);
    padding: 20px;
    border-radius: 8px;
}

.g2a-instructions h3 {
    margin-bottom: 15px;
    color: var(--text-light);
    font-size: 1.3rem;
}

.g2a-instructions ol {
    margin: 20px 0;
    padding-left: 20px;
    color: var(--text-light);
}

.g2a-instructions li {
    margin: 15px 0;
    color: var(--text-light);
    font-size: 1rem;
    line-height: 1.5;
}

.instruction-buttons {
    display: flex;
    gap: 20px; /* Increased gap between buttons */
    margin-top: 25px;
    flex-wrap: wrap; /* Allows buttons to wrap on small screens */
}

.g2a-button, .discord-button {
    flex: 1;
    min-width: 200px; /* Ensures minimum button width */
    padding: 12px 20px;
    text-align: center;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    transition: all 0.3s ease;
    background-color: var(--primary-color); /* Using your theme blue color */
    color: white;
}

.g2a-button:hover, .discord-button:hover {
    transform: translateY(-2px);
    background-color: #5478c8; /* Slightly lighter blue on hover */
}

.warning-text {
    margin-top: 20px;
    color: #ff9800;
    text-align: center;
    font-weight: bold;
    font-size: 0.95rem;
}
