.ar-button::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -25%;
    width: 200%;
    height: 200%;
    background: linear-gradient(120deg, rgba(255,255,255,0.05) 0%, rgba(255,255,255,0.15) 50%, rgba(255,255,255,0.05) 100%);
    transform: rotate(25deg);
    transition: all 0.6s ease-in-out;
    pointer-events: none;
}


.ar-button:hover::after {
    top: -80%;
    left: 100%;
    transition: all 0.6s ease-in-out;
}
.model-loader {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 10000;
    display: flex;
    flex-direction: column;
    align-items: center;
    color: white;
}
.spinner {
    border: 6px solid rgba(255, 255, 255, 0.2);
    border-top: 6px solid #00cec9;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    animation: spin 0.8s linear infinite;
    margin-bottom: 12px;
}
@keyframes spin {
    to { transform: rotate(360deg); }
}
.popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(15, 15, 15, 0.9);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.4s ease-in-out;
}
.popup-content {
    position: relative;
    width: 90%;
    max-width: 1200px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 20px;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.5);
    padding: 20px;
    backdrop-filter: blur(10px);
    overflow: hidden;
}
.popup-close {
    position: absolute;
    top: 10px;
    right: 14px;
    font-size: 28px;
    color: #fff;
    background: transparent;
    border: none;
    cursor: pointer;
    z-index: 10000;
    transition: transform 0.3s ease;
}
.popup-close:hover {
    transform: scale(1.2);
}
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}
.ar-wrapper {
    border: 2px solid #dfe6e9;
    padding: 20px;
    margin-top: 20px;
    border-radius: 12px;
    background: #ffffff;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}
.ar-button {
    /* background: linear-gradient(135deg, #6c5ce7, #00cec9); */
    background: linear-gradient(135deg, #5a4bd1, #00bcb3);
    color: #fff;
    padding: 16px 36px;
    border: none;
    border-radius: 12px;
    font-weight: 600;
    font-size: 20px;
    margin: 0 10px 15px 0;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 14px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease-in-out;
    position: relative;
    overflow: hidden;
}
.ar-button:hover {
    transform: translateY(-4px) scale(1.05) rotateX(4deg);
    box-shadow: 0 10px 20px rgba(0, 206, 201, 0.4), 0 4px 6px rgba(0,0,0,0.2);
    opacity: 1;
    border: none;
}


.ar-icon {
    width: 36px;
    height: 36px;
    vertical-align: middle;
}
.ar-tip {
    margin-top: 20px;
    border: 2px solid #00cec9;
    background: #e0f7fa;
    padding: 14px 16px;
    border-radius: 8px;
    font-size: 16px;
    color: #006064;
}
.custom-qr-popup {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 9999;
    background: none;
    width: 100%;
    max-width: 500px;
    display: flex;
    justify-content: center;
    align-items: center;
}
.custom-qr-card {
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.2);
    padding: 24px;
    width: 100%;
    max-width: 320px;
    text-align: center;
    position: relative;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial;
}
.custom-qr-title {
    font-weight: 700;
    font-size: 20px;
    margin-bottom: 16px;
}
#qrcode {
    width: 200px;
    height: 200px;
    margin: 0 auto 16px;
    display: block;
}
.custom-qr-text {
    font-size: 14px;
    color: #333;
    margin-bottom: 16px;
}
.custom-qr-close {
    background: #f2f2f2;
    border: none;
    border-radius: 6px;
    padding: 10px 16px;
    font-weight: 600;
    cursor: pointer;
    font-size: 14px;
    transition: background 0.2s ease-in-out;
}
.custom-qr-close:hover {
    border : none;
    background: #e0e0e0;
}

@media (max-width: 768px) {
    .ar-button {
        display: block;
        width: 100%;
        margin: 10px 0;
        font-size: 20px;
        padding: 14px 20px;
        justify-content: center;
    }

    .ar-icon {
        width: 45px;
        height: 45px;
    }
}