/* ===== Auth Modal ===== */
.auth-modal {
    display: none;
    position: fixed;
    z-index: 1000;
    inset: 0; /* shorthand for top:0; left:0; right:0; bottom:0 */
    background-color: rgba(0, 0, 0, 0.5);
    overflow: auto;
}

.auth-modal-content {
    background-color: #fefefe;
    margin: 5% auto;
    padding: 20px;
    width: 90%;
    max-width: 400px;
    border: 1px solid #888;
    border-radius: 10px;
    position: relative;
}

.auth-close {
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 40px;
    font-weight: bold;
    color: red;
    cursor: pointer;
    transition: color 0.3s ease;
}

.auth-close:hover {
    color: blue;
}

/* Prevent background scroll when modal is open */
.modal-open {
    overflow: hidden;
}


/* ===== Checkout Button ===== */
.checkout-btn {
    position: relative; /* required for ::before highlight */
    display: inline-block;
    padding: 14px 30px;
    font-size: 16px;
    font-weight: bold;
    text-transform: uppercase;
    color: #fff;
    background: #45deg;
    background-size: 200% 200%;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    box-shadow: 0 5px 20px rgba(255, 62, 196, 0.7), 0 0 15px rgba(0, 229, 255, 0.5);
    transition: all 0.3s ease;
    overflow: hidden;
}

/* Hover effects */
.checkout-btn:hover:not(:disabled) {
    background: linear-gradient(135deg, #FF4500, #FF0000);
    transform: translateY(-2px) scale(1.05);
    box-shadow: 0 8px 25px rgba(255, 36, 0, 0.3), 0 0 25px rgba(0, 229, 255, 0.7);
}

/* Click/active effect */
.checkout-btn:active {
    box-shadow: 0 0 15px rgba(255, 110, 196, 0.7), 0 0 20px rgba(120, 115, 245, 0.5);
}

/* Disabled state */
.checkout-btn:disabled {
    background: #cccccc;
    cursor: not-allowed;
}

/* Gradient highlight animation */
.checkout-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -50%;
    width: 200%;
    height: 100%;
    background: linear-gradient(120deg, rgba(255,255,255,0.25), rgba(255,255,255,0) 50%, rgba(255,255,255,0.25));
    transform: skewX(-20deg);
    transition: all 0.5s ease;
}

.checkout-btn:hover::before {
    left: 100%;
}


/* ===== Google Sign-In Button ===== */
.g_id_signin {
    display: block;
    margin: 10px auto;
}

.spinner-border {
    display: inline-block;
    width: 2rem;
    height: 2rem;
    vertical-align: -0.125em;
    border: 0.25em solid currentColor;
    border-right-color: transparent;
    border-radius: 50%;
    animation: spinner-border .75s linear infinite;
}

.spinner-border-sm {
    width: 1rem;
    height: 1rem;
    border-width: 0.2em;
}

@keyframes spinner-border {
    to {
        transform: rotate(360deg);
    }
}

