/* ======================================================
   طراحی شیشه‌ای (Glassmorphism) - مدرن و بدون اسکرول
   ====================================================== */

#arnika-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    z-index: 999999;
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    transition: opacity 0.4s ease;
}

#arnika-popup {
    display: none;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.95);
    z-index: 1000000;
    width: auto;
    max-width: 92vw;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border-radius: 32px;
    border: 1px solid rgba(255, 255, 255, 0.25);
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.3);
    direction: rtl;
    font-family: 'Vazirmatn', 'Tahoma', sans-serif;
    --popup-accent: #6C5CE7;
    transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1), opacity 0.4s ease;
    opacity: 0;
    color: #fff;
}

#arnika-popup.show {
    transform: translate(-50%, -50%) scale(1);
    opacity: 1;
}

/* حذف اسکرول‌بار */
#arnika-popup::-webkit-scrollbar {
    display: none;
}
#arnika-popup {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

#arnika-close {
    position: absolute;
    top: 14px;
    left: 18px;
    background: rgba(255, 255, 255, 0.15);
    border: none;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    font-size: 24px;
    font-weight: 300;
    color: #fff;
    cursor: pointer;
    transition: all 0.25s;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(4px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}
#arnika-close:hover {
    background: rgba(255, 70, 70, 0.4);
    transform: rotate(90deg) scale(1.1);
    border-color: rgba(255, 255, 255, 0.5);
}

.arnika-popup-image {
    position: relative;
    overflow: hidden;
    border-radius: 32px 32px 0 0;
    background: rgba(255, 255, 255, 0.05);
}
.arnika-popup-image img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.5s ease;
}
.arnika-popup-image:hover img {
    transform: scale(1.02);
}
.image-badge {
    position: absolute;
    top: 18px;
    right: 18px;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    color: #fff;
    padding: 4px 16px;
    border-radius: 30px;
    font-size: 13px;
    font-weight: 600;
    border: 1px solid rgba(255, 255, 255, 0.15);
}

.arnika-popup-body {
    padding: 32px 38px 38px;
    text-align: center;
}
.popup-subtitle {
    display: block;
    font-size: 15px;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 4px;
}
.popup-title {
    font-size: 30px;
    font-weight: 800;
    color: #fff;
    margin: 6px 0 14px;
    line-height: 1.3;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}
.popup-content {
    font-size: 17px;
    line-height: 1.9;
    color: rgba(255, 255, 255, 0.85);
    margin-bottom: 26px;
}
.popup-content strong {
    color: #fff;
    font-weight: 700;
    text-shadow: 0 0 20px rgba(255, 255, 255, 0.3);
}

.popup-cta {
    display: inline-block;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.25);
    color: #fff !important;
    padding: 14px 42px;
    border-radius: 60px;
    font-size: 16px;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    cursor: pointer;
}
.popup-cta:hover {
    background: rgba(255, 255, 255, 0.35);
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 14px 35px rgba(0, 0, 0, 0.25);
    color: #fff !important;
    border-color: rgba(255, 255, 255, 0.5);
}
.popup-cta:active {
    transform: scale(0.96);
}

.popup-decoration {
    position: absolute;
    bottom: -40px;
    right: -40px;
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.08) 0%, transparent 70%);
    border-radius: 50%;
    z-index: -1;
    pointer-events: none;
}
.popup-decoration::after {
    content: '';
    position: absolute;
    top: 40px;
    left: 40px;
    width: 100px;
    height: 100px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.05) 0%, transparent 70%);
    border-radius: 50%;
}

@media (max-width: 768px) {
    #arnika-popup {
        max-width: 94vw;
        border-radius: 24px;
    }
    .arnika-popup-body {
        padding: 22px 20px 26px;
    }
    .popup-title {
        font-size: 24px;
    }
    .popup-content {
        font-size: 15px;
    }
    .popup-cta {
        padding: 12px 30px;
        font-size: 14px;
    }
    #arnika-close {
        top: 10px;
        left: 14px;
        width: 34px;
        height: 34px;
        font-size: 22px;
    }
    .image-badge {
        font-size: 11px;
        padding: 4px 12px;
    }
}

@media (max-width: 480px) {
    .popup-title {
        font-size: 20px;
    }
    .popup-content {
        font-size: 14px;
    }
    .popup-cta {
        padding: 10px 24px;
        font-size: 13px;
    }
    .arnika-popup-body {
        padding: 18px 16px 22px;
    }
}