:root {
    --slider-primary: #0f172a;
    --slider-secondary: #1e293b;
    --slider-accent: #3b82f6;
    --slider-bg: #f8fafc;
    --slider-card-bg: #ffffff;
    --slider-text-primary: #010a1f;
    --slider-text-secondary: #0f172a;
    /* --slider-text-secondary: #64748b; */
    --slider-border: #e2e8f0;
    --slider-shadow-sm: 0 1px 3px rgba(15, 23, 42, 0.08);
    --slider-shadow-md: 0 4px 16px rgba(15, 23, 42, 0.1);
    --slider-shadow-lg: 0 20px 40px rgba(15, 23, 42, 0.15);
    --slider-radius: 20px;
    --slider-transition: cubic-bezier(0.4, 0, 0.2, 1);
}

body:has(.bussines-wrapper) .custom-modal {
    display: none;
}

/* ─── Main Section ──────────────────────────────────────── */
.nida-slider-section {
    padding: 100px 0;
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    direction: rtl;
    position: relative;
    overflow: hidden;
}

.bussines-wrapper.div p {
    display: none;
}

.nida-slider-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg,
            transparent 0%,
            var(--slider-accent) 50%,
            transparent 100%);
    opacity: 0.3;
}

.nida-slider-section .slider-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 32px;
    position: relative;
    z-index: 1;
}

/* ─── Title ─────────────────────────────────────────────── */
.slider-title {
    text-align: center;
    color: var(--slider-text-primary);
    font-size: 2.75rem;
    margin-bottom: 72px;
    font-weight: 700;
    letter-spacing: -0.03em;
    position: relative;
    display: inline-block;
    width: 100%;
}

.slider-title::after {
    content: '';
    position: absolute;
    bottom: -16px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg,
            var(--slider-accent) 0%,
            #8b5cf6 100%);
    border-radius: 2px;
}

/* ─── Swiper Container ──────────────────────────────────── */
.businessSwiper {
    width: 100%;
    padding: 0 0 80px;
    position: relative;
}

.businessSwiper h4 {
    font-size: 1.5rem;
}

.businessSwiper .swiper-wrapper {
    height: 450px;
    align-items: center;
}

.businessSwiper .swiper-slide {
    height: 450px;
    display: flex;
    align-items: center;
    justify-content: center;
    perspective: 1000px;
}

/* ─── Business Card ─────────────────────────────────────── */
.business-card {
    background: var(--slider-card-bg);
    border-radius: var(--slider-radius);
    overflow: hidden;
    box-shadow: var(--slider-shadow-md);
    height: 450px;
    display: flex;
    flex-direction: row;
    border: 1px solid var(--slider-border);
    position: relative;
    transition: all 0.5s var(--slider-transition);
    transform-style: preserve-3d;
    width: 89%;
}

.business-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg,
            rgba(59, 130, 246, 0.05) 0%,
            rgba(139, 92, 246, 0.05) 100%);
    opacity: 0;
    transition: opacity 0.4s ease;
    pointer-events: none;
    z-index: 1;
}

.business-card:hover {
    box-shadow: var(--slider-shadow-lg);
    border-color: var(--slider-accent);
    transform: translateY(-8px);
}

.business-card:hover::before {
    opacity: 1;
}

/* ─── Card Image ────────────────────────────────────────── */
.card-image {
    width: 48%;
    height: 450px;
    overflow: hidden;
    background: linear-gradient(135deg, #e2e8f0 0%, #cbd5e1 100%);
    flex-shrink: 0;
    position: relative;
}

.card-image::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(180deg,
            transparent 0%,
            rgba(15, 23, 42, 0.4) 100%);
    opacity: 0;
    transition: opacity 0.4s ease;
    pointer-events: none;
}

.business-card:hover .card-image::after {
    opacity: 1;
}

.card-content:hover .card-excerpt::after {
    background: #F7F8FF;
}

.card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s var(--slider-transition);
    filter: brightness(1.02) contrast(1.05);
}

.business-card:hover .card-image img {
    transform: scale(1.08);
}

/* ─── Card Content ──────────────────────────────────────── */
.card-content {
    padding: 48px 40px;
    flex: 1;
    display: flex;
    flex-direction: column;
    position: relative;
    z-index: 2;
}

.card-content::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 4px;
    height: 60px;
    background: linear-gradient(180deg,
            var(--slider-accent) 0%,
            transparent 100%);
    border-radius: 0 0 2px 2px;
}

.card-content h3 {
    font-size: 1.875rem;
    color: var(--slider-text-primary);
    margin-bottom: 20px;
    font-weight: 700;
    line-height: 1.25;
    letter-spacing: -0.02em;
    position: relative;
    padding-bottom: 16px;
}

.card-content h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 50px;
    height: 3px;
    background: var(--slider-accent);
    border-radius: 2px;
    transition: width 0.4s var(--slider-transition);
}

.business-card:hover .card-content h3::after {
    width: 100px;
}

.card-excerpt {
    color: var(--slider-text-secondary);
    line-height: 1.8;
    font-size: 1.2625rem;
    flex-grow: 1;
    margin-bottom: 24px;
    text-align: justify;
    font-weight: 900;
}

/* ─── Image Count Badge ─────────────────────────────────── */
.image-count {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 18px;
    background: linear-gradient(135deg,
            var(--slider-accent) 0%,
            #8b5cf6 100%);
    color: #ffffff;
    border-radius: 12px;
    font-size: 0.9375rem;
    font-weight: 600;
    align-self: flex-start;
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
    transition: all 0.3s var(--slider-transition);
    position: relative;
    overflow: hidden;
}

.image-count::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg,
            transparent 0%,
            rgba(255, 255, 255, 0.3) 50%,
            transparent 100%);
    transition: left 0.6s ease;
}

.business-card:hover .image-count::before {
    left: 100%;
}

.image-count:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(59, 130, 246, 0.4);
}

/* ─── Navigation Buttons ────────────────────────────────── */
.swiper-button-next,
.swiper-button-prev {
    color: var(--slider-text-primary);
    background: var(--slider-card-bg);
    width: 56px;
    height: 56px;
    border-radius: 50%;
    box-shadow: var(--slider-shadow-md);
    transition: all 0.3s var(--slider-transition);
    border: 2px solid transparent;
}

.swiper-button-next:hover,
.swiper-button-prev:hover {
    background: var(--slider-accent);
    color: #ffffff;
    border-color: var(--slider-accent);
    box-shadow: 0 8px 24px rgba(59, 130, 246, 0.4);
    transform: scale(1.1);
}

.swiper-button-next:after,
.swiper-button-prev:after {
    font-size: 20px;
    font-weight: 900;
}

.swiper-button-next {
    left: 16px;
    right: auto;
}

.swiper-button-prev {
    right: 16px;
    left: auto;
}

.swiper-button-next:after {
    content: 'prev';
}

.swiper-button-prev:after {
    content: 'next';
}

/* ─── Pagination ────────────────────────────────────────── */


/* ─── No Posts Message ──────────────────────────────────── */
.no-posts {
    text-align: center;
    color: var(--slider-text-secondary);
    font-size: 1.25rem;
    padding: 80px 20px;
    background: var(--slider-card-bg);
    border-radius: var(--slider-radius);
    box-shadow: var(--slider-shadow-sm);
}

/* ═══════════════════════════════════════════════════════════
   📱 RESPONSIVE DESIGN
   ═══════════════════════════════════════════════════════════ */

@media (max-width: 1024px) {

    .businessSwiper .swiper-wrapper,
    .businessSwiper .swiper-slide {
        height: auto;
    }

    .business-card {
        flex-direction: column;
        height: auto;
        max-width: 600px;
        margin: 0 auto;
    }

    .card-image {
        width: 100%;
        height: 320px;
    }

    .card-content {
        padding: 36px 32px;
    }
}

@media (max-width: 768px) {
    .nida-slider-section {
        padding: 60px 0;
    }

    .slider-title {
        font-size: 2rem;
        margin-bottom: 48px;
    }

    .slider-title::after {
        width: 60px;
        height: 3px;
    }

    .card-content h3 {
        font-size: 1.5rem;
    }

    .card-image {
        height: 240px;
    }

    .card-content {
        padding: 28px 24px;
    }

    .card-excerpt {
        font-size: 1rem;
    }

    .swiper-button-next,
    .swiper-button-prev {
        width: 44px;
        height: 44px;
    }

    .swiper-button-next:after,
    .swiper-button-prev:after {
        font-size: 16px;
    }
}

@media (max-width: 480px) {
    .nida-slider-section .slider-container {
        padding: 0 20px;
    }

    .slider-title {
        font-size: 1.625rem;
    }

    .card-content h3 {
        font-size: 1.25rem;
    }

    .card-image {
        height: 200px;
    }

    .swiper-button-next,
    .swiper-button-prev {
        width: 40px;
        height: 40px;
    }
}

/* ═══════════════════════════════════════════════════════════
   📄 BUSINESS WRAPPER (CONTENT SECTION)
   ═══════════════════════════════════════════════════════════ */

.bussines-wrapper,
.catagory-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 15px 32px;
    background: #ffffff;
    direction: rtl;
    line-height: 1.8;
    font-size: 1.2625rem;
    color: var(--slider-text-secondary);
}

.catagory-container {
    padding-top: 0 !important;
    display: flex;
    flex-direction: column;
    align-content: center;
    align-items: center;
}

.catagory-container h2 {
    text-align: center;
    font-size: 2.5rem;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 48px;
    line-height: 1.3;
    letter-spacing: -0.02em;
}


.catagory-container p {
    max-width: 1000px;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px 30px;
}

.catagory-container p br {
    display: none
}

/* بهبود ظاهر لینک‌ها */
.catagory-container a {
    display: block;
    background: linear-gradient(135deg, #6d2f8a, #9341b9);
    padding: 18px 28px;
    margin-bottom: 14px;
    border-radius: 12px;
    color: #f0f0f0;
    text-decoration: none;
    font-size: 1.1rem;
    font-weight: 500;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 2px solid #e2e8f0;
    box-shadow: 0 2px 8px rgba(15, 23, 42, 0.06);
    text-align: right;
    position: relative;
    overflow: hidden;
    width: 480px;
}

/* افکت گرادیانت در hover */
.catagory-container a::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 0;
    height: 100%;
    background: linear-gradient(135deg, #6d2f8a, #9341b9);
    transition: width 0.4s ease;
    z-index: -1;
}

.catagory-container a:hover::before {
    width: 100%;
}

.catagory-container a:hover {
    color: white;
    transform: translateX(-6px);
    border-color: transparent;
    box-shadow: 0 6px 20px rgba(99, 102, 241, 0.25);
}

/* فوکوس برای accessibility */
.catagory-container a:focus-visible {
    outline: 3px solid #6366F1;
    outline-offset: 4px;
}

/* حالت active */
.catagory-container a:active {
    transform: translateX(-4px) scale(0.98);
}

/* بهبود عنوان h2 */
.catagory-container h2 {
    text-align: center;
    font-size: 2rem;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 40px;
    line-height: 1.4;
    letter-spacing: -0.01em;
}

/* Responsive */
@media (max-width: 768px) {
    .catagory-container a {
        padding: 14px 20px;
        font-size: 1rem;
        margin-bottom: 12px;
        justify-content: center;
    }

    .catagory-container h2 {
        font-size: 1.6rem;
        margin-bottom: 32px;
    }

    .catagory-container p {
        gap: 0;
    }
}

@media (max-width: 480px) {
    .catagory-container a {
        padding: 12px 16px;
        font-size: 0.95rem;
        margin-bottom: 10px;
        width: 300px;

    }

    .catagory-container h2 {
        font-size: 1.4rem;
        margin-bottom: 28px;
    }

    .catagory-container p {
        gap: 0;
    }
}




.bussines-wrapper p {
    margin-bottom: 24px;
    font-size: 1.2625rem;
    text-align: justify;
}

.bussines-wrapper p:first-of-type {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--slider-text-primary);
    margin-bottom: 40px;
    text-align: center;
    letter-spacing: -0.02em;
    border: solid 1px #d2d3e8;
    padding: 13px;
    border-radius: 15px;

}

.bussines-wrapper .hero {
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    padding: 32px;
    border-radius: 16px;
    border-right: 4px solid var(--slider-accent);
    margin-bottom: 32px;
    font-size: 1.2625rem;
    box-shadow: var(--slider-shadow-sm);
}

.bussines-wrapper p:nth-of-type(2),
.bussines-wrapper p:nth-of-type(3),
.bussines-wrapper p:nth-of-type(4),
.bussines-wrapper .bbox23 {
    padding: 24px 32px;
    background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
    border-radius: 12px;
    margin-bottom: 24px;
    font-weight: 600;
    color: #92400e;
    box-shadow: 0 2px 8px rgba(146, 64, 14, 0.1);
}


.bussines-wrapper+.nida-slider-section {
    margin-top: 0;
}

.bussines-wrapper .hero p {
    display: none;
}

body.no-scroll {
    overflow: hidden;
    height: 100vh;
    /* برای جلوگیری از اسکرول از طریق ارتفاع */
}

@media (max-width: 768px) {
    .bussines-wrapper {
        padding: 30px 24px;
    }

    .bussines-wrapper p:first-of-type {
        font-size: 18px;
    }


}


/* ─── مودال ─────────────────────────────────────────── */
.cbm-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 99999;
    align-items: center;
    justify-content: center;
}

.cbm-modal.active {
    display: flex;
    align-items: center;
    justify-content: center;
}

.cbm-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(10px);
}

.cbm-modal-content {
    display: flex;
    flex-direction: column;
    position: relative;
    max-width: 90%;
    max-height: 90vh;
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.5);
    z-index: 1;
}

.cbm-modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 45px;
    height: 45px;
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    color: #fff;
    font-size: 28px;
    cursor: pointer;
    z-index: 2;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.bbox23img {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    overflow: hidden;
    height: 385px;

}

@media (max-width: 768px) {
    .bbox23img {
        flex-direction: column;
        height: auto;

    }

    .bbox23img img {
        height: 300px!important;
        width: 100%!important;
    }
}

.bbox23img img {
    width: 30%;
    height: auto;
    object-fit: cover !important;
    border-radius: 15px;
    display: block;

}

.bbox23 h2 {
    font-size: xx-large;
    font-weight: 900;
    justify-self: center;
    margin-bottom: 30px;

}

body:has(.bussines-wrapper) #header {
    display: none !important;
}

.cbm-modal-close:hover {
    background: rgba(255, 59, 92, 0.8);
    transform: rotate(90deg) scale(1.1);
    border-color: #ff3b5c;
}

.modalSwiper .swiper-slide {
    display: flex;
    flex-direction: row;
    align-items: stretch;
    gap: 30px;
    padding: 40px;
    min-height: 500px;
    align-self: center;
}

@media(max-width:768px) {

    .modalSwiper .swiper-slide {
        flex-direction: column;
    }

}

.cbm-modal-body {
    display: flex;
    gap: 30px;
    padding: 60px 40px;
    max-height: 85vh;
    overflow-y: auto;
}

.cbm-modal-images {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 15px;
    overflow-y: auto;
    max-height: 70vh;
}

.cbm-modal-images img {
    width: 100%;
    height: 100%;
    border-radius: 12px;
    object-fit: contain;
}

.cbm-modal-text {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 20px;
    min-height: 0;
    overflow-y: auto;
    max-height: 70vh;
    padding-left: 20px;
    scrollbar-gutter: stable;
    scrollbar-width: thin;
    scrollbar-color: rgba(255, 255, 255, 0.4) rgba(255, 255, 255, 0.1);
    -ms-overflow-style: scrollbar;
}

.cbm-modal-text::-webkit-scrollbar {
    width: 8px;
}

.cbm-modal-text::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.08);
    border-radius: 4px;
}

.cbm-modal-text::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.35);
    border-radius: 4px;
}

.cbm-modal-text::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.55);
}

.cbm-modal-text.full-width {
    flex: 1 1 100%;
    padding-left: 0;
}

.cbm-modal-text h2 {
    font-size: 28px;
    font-weight: bold;
    color: #ffffff;
    margin: 0;
}




.modal-excerpt {
    font-size: 22px;
    line-height: 1.8;
    color: rgba(255, 255, 255, 0.85);
    word-wrap: break-word;
    word-break: break-word;
    overflow-wrap: break-word;
    white-space: normal;
    hyphens: auto;
    padding-bottom: 50px;
    height: 40vh;
    min-height: 0;
    overflow: auto;
    /* نوار اسکرول همیشه قابل‌رؤیت (Chromium overlay / Firefox thin) */
    scrollbar-gutter: stable;
    scrollbar-width: thin;
    scrollbar-color: rgba(255, 255, 255, 0.4) rgba(255, 255, 255, 0.1);
    -ms-overflow-style: scrollbar;
}

.modal-excerpt::-webkit-scrollbar {
    width: 8px;
}

.modal-excerpt::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.08);
    border-radius: 4px;
}

.modal-excerpt::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.35);
    border-radius: 4px;
}

.modal-excerpt::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.55);
}


/* ریسپانسیو */
@media (max-width: 768px) {
    .cbm-modal-body {
        flex-direction: column;
        padding: 20px;
    }

    .cbm-modal-image {
        min-width: 100%;
    }

    .cbm-modal-title {
        font-size: 1.8rem;
    }

    .swiper-slide {
        align-self: auto
    }

    .modal-excerpt {
        font-size: 17px;
    }
}




.swiper-pagination-bullet {
    width: 8px;
    height: 8px;
    transition: all 0.3s ease;
}

.swiper-pagination-bullet-active {
    width: 32px;
    height: 8px;
    border-radius: 4px;
}



/* ─── استایل مودال با اسلایدر ─────────────────────────── */
.cbm-modal-slide-content {
    display: flex;
    gap: 2rem;
    align-items: flex-start;
    height: 100%;
}

.cbm-modal-images {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    max-height: 70vh;
    overflow-y: auto;
}

.cbm-modal-images img {
    width: 100%;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    object-fit: contain;
}



.cbm-modal .swiper-button-next,
.cbm-modal .swiper-button-prev {
    color: #fff;
    background: rgba(0, 0, 0, 0.5);
    width: 44px;
    height: 44px;
    border-radius: 50%;
}

.cbm-modal .swiper-button-next:after,
.cbm-modal .swiper-button-prev:after {
    font-size: 20px;
}

.cbm-modal .swiper-pagination-bullet {
    background: #fff;
    opacity: 0.5;
}

.cbm-modal .swiper-pagination-bullet-active {
    opacity: 1;
    width: 24px;
    border-radius: 4px;
}

@media (max-width: 768px) {
    .cbm-modal-slide-content {
        flex-direction: column;
    }

    .cbm-modal-images {
        max-height: fit-content;
    }

    .cbm-modal-text {
        padding-bottom: 100px !important
    }

    .modalSwiper .swiper-pagination {
        white-space: normal;
        width: 100%;
    }

    .swiper-pagination-bullet {
        margin: 4px 2px !important;
    }
}

.cbm-modal-text.full-width {
    flex: 1;
    max-width: 100%;
}

.modalSwiper .swiper-pagination {
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    padding: 8px 16px;
    border-radius: 20px;
    width: auto;
    left: 50%;
    transform: translateX(-50%);
    backdrop-filter: blur(8px);
    white-space: nowrap;
}

.modalSwiper .swiper-pagination-bullet {
    background: #fff;
    opacity: 0.6;
    margin: 0 2px !important;
}

.modalSwiper .swiper-pagination-bullet-active {
    opacity: 1;
    width: 24px;
    border-radius: 6px;
}


.card-excerpt {
    display: -webkit-box;
    -webkit-line-clamp: 5;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.6;
    max-height: 8.2em;
    /* 2 خط × line-height */
    position: relative;
}

/* متن "برای نمایش ادامه کلیک کنید" */
.card-excerpt::after {
    content: "... برای نمایش ادامه کلیک کنید";
    position: absolute;
    bottom: 0;
    left: 0;
    background: linear-gradient(to left, #fff 60%, #ffffff);
    padding-left: 40px;
    padding-right: 5px;
    display: none;
    color: blue;
}

/* فقط برای کارت‌هایی که متن بلندشون هست */
.card-excerpt.has-overflow::after {
    display: inline;
}

/* گالری تصاویر */
.image-gallery {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-top: 12px;
    padding: 10px;
    background: rgba(0, 0, 0, 0.02);
    border-radius: 8px;
}

.gallery-thumb {
    width: 60px;
    height: 60px;
    border-radius: 6px;
    overflow: hidden;
    cursor: pointer;
    border: 2px solid transparent;
    transition: all 0.3s ease;
}

.gallery-thumb:hover {
    border-color: #0073aa;
    transform: scale(1.05);
}

.gallery-thumb.active {
    border-color: #0073aa;
    box-shadow: 0 0 8px rgba(0, 115, 170, 0.4);
}

.gallery-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.card-image .main-image {
    transition: opacity 0.3s ease;
}

/* ---------- glass box ------------ */
/* Paid Content with Glass Effect */
.paid-content-wrapper {
    position: relative;
    min-height: 500px;
    border-radius: 16px;
    overflow: hidden;
}

/* محتوای blur شده در پس‌زمینه */
.blurred-content {
    filter: blur(12px);
    transform: scale(1.05);
    pointer-events: none;
    user-select: none;
}

.blurred-content .swiper-button-next,
.blurred-content .swiper-button-prev,
.blurred-content .swiper-pagination {
    display: none;
}

/* لایه شیشه‌ای */
.glass-overlay:not(.lock) {
    position: absolute;
    inset: 0;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
}

.glass-effect {
    position: absolute;
    border-radius: 28px;
    background: linear-gradient(135deg,
            rgba(255, 255, 255, 0.4) 0%,
            rgba(255, 255, 255, 0.1) 50%,
            rgba(255, 255, 255, 0.3) 100%);
    backdrop-filter: blur(8px) saturate(180%);
    -webkit-backdrop-filter: blur(8px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow:
        0 8px 32px rgba(0, 0, 0, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.5),
        inset 0 -1px 0 rgba(255, 255, 255, 0.2);
    transition: all 0.4s ease;
}

.glass-overlay:hover .glass-effect {
    backdrop-filter: blur(6px) saturate(200%);
    -webkit-backdrop-filter: blur(6px) saturate(200%);
    background: linear-gradient(135deg,
            rgba(255, 255, 255, 0.5) 0%,
            rgba(255, 255, 255, 0.2) 50%,
            rgba(255, 255, 255, 0.4) 100%);
}

/* پیام قفل */
.lock-message {
    position: relative;
    z-index: 11;
    text-align: center;
    color: #333;
    padding: 40px;
    max-width: 500px;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: 24px;
    border: 2px solid rgba(255, 255, 255, 0.5);
    box-shadow:
        0 20px 60px rgba(0, 0, 0, 0.15),
        inset 0 1px 0 rgba(255, 255, 255, 0.8);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.glass-overlay.lock {
    justify-self: center;
    margin-top: 35px;

}

.glass-overlay:hover .lock-message {
    transform: translateY(-5px);
    box-shadow:
        0 25px 70px rgba(0, 0, 0, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

.lock-message svg {
    margin: 0 auto 24px;
    color: #667eea;
    filter: drop-shadow(0 4px 12px rgba(102, 126, 234, 0.3));
}

.lock-message h3 {
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 16px;
    color: #2d3748;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.lock-message p {
    font-size: 18px;
    margin-bottom: 24px;
    color: #4a5568;
    line-height: 1.6;
}

.unlock-btn {
    background: linear-gradient(135deg, #6d2f8a, #9341b9);
    color: white;
    border: none;
    padding: 14px 32px;
    font-size: 16px;
    font-weight: 600;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 16px rgba(102, 126, 234, 0.4);
}

.unlock-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 24px rgba(102, 126, 234, 0.5);
}

.unlock-btn:active {
    transform: translateY(0);
}



/*-----------مودال-------*/

/* ═══════════════════════════════════════OVERLAY & POPUP BASE
═══════════════════════════════════════ */
.paid-popup-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(10, 10, 20, 0.88);
    backdrop-filter: blur(6px);
    align-items: center;
    justify-content: center;
    z-index: 9999;
    padding: 16px;
    box-sizing: border-box;
    overflow-y: auto;
}

.paid-popup-overlay.active {
    display: flex;
    animation: fadeIn 0.3s ease;
}

.paid-popup {
    background: #fff;
    border-radius: 20px;
    width: 100%;
    max-width: 560px;
    max-height: 92vh;
    margin: auto;
    overflow-y: auto;
    position: relative;
    box-shadow: 0 32px 80px rgba(0, 0, 0, 0.4);
    animation: slideUp 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.paid-popup::-webkit-scrollbar {
    width: 4px;
}

.paid-popup::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, #6d2f8a, #9341b9);
    border-radius: 4px;
}

/* ── Close Button ── */
.paid-popup-close {
    position: absolute;
    top: 12px;
    left: 12px;
    width: 34px;
    height: 34px;
    background: rgba(255, 255, 255, 0.2);
    border: 1.5px solid rgba(255, 255, 255, 0.35);
    border-radius: 50%;
    color: #fff;
    font-size: 20px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.25s;
    z-index: 10;
    line-height: 1;
}

.paid-popup-close:hover {
    background: rgba(255, 255, 255, 0.35);
    transform: rotate(90deg);
}

/* ═══════════════════════════════════════
   HEADER (paid-popup-content h2/p)
═══════════════════════════════════════ */
.paid-popup-content {
    display: flex;
    flex-direction: column;
}

.paid-popup-content>h2,
.paid-popup-content>p {
    margin: 0;
    padding: 0;
}

.paid-popup-content {
    background: linear-gradient(135deg, #6d2f8a, #9341b9);
}

/* Header area — h2 + p داخل یک wrapper بصری */
.paid-popup-content>h2 {
    color: #fff;
    font-size: 22px;
    font-weight: 800;
    padding: 44px 28px 10px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.paid-popup-content::before {
    content: '';
    position: absolute;
    width: 260px;
    height: 260px;
    background: radial-gradient(circle, rgb(255 255 255 / 0%) 0%, #ffffff08 70%);
    top: -80px;
    right: -50px;
    border-radius: 50%;
    animation: orbFloat 6s ease-in-out infinite;
}

.paid-popup-content>p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 13px;
    padding: 0 28px 8px;
    text-align: center;
    line-height: 1.6;
}

.paid-popup-content>p:last-of-type {
    padding-bottom: 28px;
}

/* ═══════════════════════════════════════
   TIMER SECTION
═══════════════════════════════════════ */
.cbm-timer-section {
    background: linear-gradient(135deg, #dc2626, #ea580c);
    padding: 16px 24px;
    position: relative;
    overflow: hidden;
}

.cbm-timer-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background: repeating-linear-gradient(45deg, transparent, transparent 10px,
            rgba(255, 255, 255, 0.03) 10px, rgba(255, 255, 255, 0.03) 20px);
}

.cbm-timer-badge {
    text-align: center;
    margin-bottom: 10px;
    position: relative;
    z-index: 1;
}

.cbm-discount-label {
    display: inline-block;
    background: rgba(0, 0, 0, 0.2);
    color: #fff;
    padding: 5px 18px;
    border-radius: 50px;
    font-size: 13px;
    font-weight: 800;
    border: 1px solid rgba(255, 255, 255, 0.25);
    animation: badgePulse 2s ease-in-out infinite;
}

.cbm-timer-display {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    position: relative;
    z-index: 1;
}

.cbm-timer-label {
    color: rgba(255, 255, 255, 0.9);
    font-size: 13px;
    font-weight: 700;
    white-space: nowrap;
    direction: rtl;
}

.cbm-timer-boxes {
    display: flex;
    align-items: center;
    gap: 4px;
    direction: ltr;
}

.cbm-timer-box {
    background: rgba(0, 0, 0, 0.25);
    border: 1.5px solid rgba(255, 255, 255, 0.25);
    border-radius: 8px;
    padding: 8px 6px 6px;
    min-width: 52px;
    text-align: center;
}

.cbm-timer-box span:first-child {
    display: block;
    font-size: 26px;
    font-weight: 900;
    color: #fff;
    line-height: 1;
    font-variant-numeric: tabular-nums;
}

.cbm-timer-unit {
    display: block;
    font-size: 10px;
    color: rgba(255, 255, 255, 0.85);
    font-weight: 700;
    margin-top: 4px;
    text-transform: uppercase;
}

.cbm-timer-separator {
    color: rgba(255, 255, 255, 0.7);
    font-size: 22px;
    font-weight: 900;
    line-height: 1;
    margin-bottom: 12px;
}

/* ═══════════════════════════════════════
   PRICE SECTION
═══════════════════════════════════════ */
.cbm-price-section {
    padding: 22px 28px 18px;
    background: #fafafa;
    border-bottom: 1px solid #f0f0f0;
    text-align: center;
    position: relative;
}

.cbm-original-price,
.cbm-discounted-price {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-bottom: 8px;
}

.cbm-price-label {
    font-size: 13px;
    color: #888;
    font-weight: 600;
}

.cbm-price-value {
    font-size: 18px;
    font-weight: 800;
    color: #333;
}

.cbm-strikethrough {
    text-decoration: line-through;
    color: #aaa;
    font-size: 16px;
}

.cbm-discounted-price .cbm-price-value {
    font-size: 28px;
    font-weight: 900;
    background: linear-gradient(135deg, #6d2f8a, #9341b9);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.cbm-discount-badge {
    display: inline-block;
    background: linear-gradient(135deg, #dc2626, #ea580c);
    color: #fff;
    padding: 5px 18px;
    border-radius: 50px;
    font-size: 13px;
    font-weight: 800;
    margin-top: 8px;
    box-shadow: 0 4px 14px rgba(220, 38, 38, 0.35);
    animation: badgePulse 2s ease-in-out infinite;
}

/* ═══════════════════════════════════════
   DISCOUNT CODE SECTION
═══════════════════════════════════════ */
.cbm-discount-code-section {
    padding: 18px 28px;
    background: #fff;
    border-bottom: 1px solid #f0f0f0;
}

.cbm-discount-code-section label {
    display: block;
    font-size: 13px;
    font-weight: 700;
    color: #374151;
    margin-bottom: 8px;
}

.cbm-discount-input-group {
    display: flex;
    gap: 8px;
}

.cbm-discount-input-group input {
    flex: 1;
    padding: 11px 14px;
    border: 2px solid #e5e7eb;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 700;
    text-align: center;
    letter-spacing: 1px;
    text-transform: uppercase;
    font-family: inherit;
    transition: all 0.25s;
    background: #f9fafb;
}

.cbm-discount-input-group input:focus {
    outline: none;
    border-color: #6d2f8a;
    background: #fff;
    box-shadow: 0 0 0 3px rgba(124, 58, 237, 0.1);
}

.cbm-discount-input-group button,
#cbm-apply-discount-btn {
    padding: 11px 20px;
    background: linear-gradient(135deg, #6d2f8a, #9341b9);
    color: #fff;
    border: none;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    font-family: inherit;
    transition: all 0.25s;
    white-space: nowrap;
    box-shadow: 0 4px 14px rgba(79, 70, 229, 0.3);
}

#cbm-apply-discount-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(79, 70, 229, 0.4);
}

.cbm-discount-message {
    margin-top: 8px;
    padding: 9px 14px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    text-align: center;
    display: none;
    animation: fadeIn 0.3s ease;
}

.cbm-discount-message.success {
    display: block;
    background: #dcfce7;
    color: #166534;
    border: 1px solid #bbf7d0;
}

.cbm-discount-message.error {
    display: block;
    background: #fef9c3;
    color: #854d0e;
    border: 1px solid #fde68a;
}

/* ═══════════════════════════════════════
   FORM
═══════════════════════════════════════ */
.cbm-user-form {
    padding: 22px 28px 28px;
    background: #fff;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
    margin-bottom: 14px;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group label {
    font-size: 13px;
    font-weight: 700;
    color: #374151;
    margin-bottom: 6px;
}

.form-group .required {
    color: #dc2626;
}

.form-group input,
.form-group select,
.form-group .form-input {
    padding: 11px 13px;
    border: 2px solid #e5e7eb;
    border-radius: 10px;
    font-size: 14px;
    font-family: inherit;
    background: #f9fafb;
    color: #111;
    transition: all 0.25s;
    width: 100%;
    box-sizing: border-box;
}

.form-group input:focus,
.form-group select:focus {
    outline: none;
    border-color: #6d2f8a;
    background: #fff;
    box-shadow: 0 0 0 3px rgba(124, 58, 237, 0.1);
}

.form-group input:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* ── Form Notice ── */
.form-notice {
    background: linear-gradient(135deg, #fffbeb, #fef3c7);
    border: 1.5px solid #fcd34d;
    border-radius: 10px;
    padding: 13px 16px;
    margin: 14px 0;
}

.form-notice p {
    margin: 0;
    color: #92400e;
    font-size: 13px;
    line-height: 1.6;
}

.form-notice strong {
    color: #78350f;
}

/* ── Submit Button ── */
.form-submit {
    margin-top: 18px;
}

.form-submit .btn-primary {
    width: 100%;
    padding: 15px;
    background: linear-gradient(135deg, #6d2f8a, #9341b9);
    color: #fff;
    border: none;
    border-radius: 12px;
    font-size: 17px;
    font-weight: 800;
    cursor: pointer;
    font-family: inherit;
    transition: all 0.3s;
    box-shadow: 0 8px 24px #6d2f8a;
    position: relative;
    overflow: hidden;
}

.form-submit .btn-primary::after {
    content: '';
    position: absolute;
    top: 50%;
    left: -60%;
    width: 40%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.25), transparent);
    transform: translateY(-50%) skewX(-20deg);
    animation: btnShine 3s ease-in-out infinite;
}

.form-submit .btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 32px rgba(220, 38, 38, 0.45);
}

.form-submit .btn-primary:disabled {
    opacity: 0.55;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

/* ── Form Message ── */
.form-message {
    padding: 12px 16px;
    border-radius: 10px;
    margin-top: 12px;
    font-size: 14px;
    font-weight: 600;
    text-align: center;
    animation: fadeIn 0.3s ease;
}

.form-message.success {
    background: #dcfce7;
    color: #166534;
    border: 1px solid #bbf7d0;
}

.form-message.error {
    background: #fee2e2;
    color: #991b1b;
    border: 1px solid #fecaca;
}

/* ═══════════════════════════════════════
   LOCATION DROPDOWN
═══════════════════════════════════════ */
.location-dropdown-wrapper {
    position: relative;
    width: 100%;
}

.location-input-wrapper {
    position: relative;
    cursor: pointer;
}

.location-input-wrapper input {
    cursor: pointer;
    padding-left: 36px !important;
}

.location-input-wrapper i {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    pointer-events: none;
    color: #9ca3af;
    font-size: 11px;
    transition: transform 0.25s;
}

.location-input-wrapper.open i {
    transform: translateY(-50%) rotate(180deg);
}

.location-dropdown-hero {
    display: none;
    position: absolute;
    top: calc(100% + 6px);
    left: 0;
    right: 0;
    background: #fff;
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.12);
    z-index: 10000;
    overflow: hidden;
}

.location-dropdown-hero.active {
    display: block;
    animation: fadeIn 0.2s ease;
}

.location-search {
    padding: 10px;
    border-bottom: 1px solid #f0f0f0;
    position: relative;
}

.location-search i {
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    color: #9ca3af;
    pointer-events: none;
    font-size: 13px;
}

.location-search-input {
    width: 100%;
    padding: 8px 12px 8px 12px;
    border: 1.5px solid #e5e7eb;
    border-radius: 8px;
    font-size: 14px;
    font-family: inherit;
    box-sizing: border-box;
    transition: border-color 0.2s;
}

.location-search-input:focus {
    outline: none;
    border-color: #7c3aed;
}

.location-list {
    max-height: 220px;
    overflow-y: auto;
}

.location-option {
    padding: 10px 16px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    color: #374151;
    border-bottom: 1px solid #f9fafb;
    transition: all 0.18s;
}

.location-option:hover {
    background: linear-gradient(135deg, #4f46e5, #7c3aed);
    color: #fff;
    padding-right: 20px;
}

.location-option:last-child {
    border-bottom: none;
}

.no-results {
    padding: 18px;
    text-align: center;
    color: #9ca3af;
    font-size: 14px;
}

/* ═══════════════════════════════════════
   ANIMATIONS
═══════════════════════════════════════ */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-6px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(40px) scale(0.96);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@keyframes orbFloat {

    0%,
    100% {
        transform: translate(0, 0);
    }

    50% {
        transform: translate(15px, -20px);
    }
}

@keyframes badgePulse {

    0%,
    100% {
        box-shadow: 0 4px 14px rgba(220, 38, 38, 0.35);
    }

    50% {
        box-shadow: 0 4px 22px rgba(220, 38, 38, 0.6);
    }
}

@keyframes btnShine {
    0% {
        left: -60%;
    }

    60% {
        left: 130%;
    }

    100% {
        left: 130%;
    }
}

/* ═══════════════════════════════════════
   RESPONSIVE
═══════════════════════════════════════ */
@media (max-width: 600px) {
    .paid-popup-overlay {
        padding: 10px;
    }

    .paid-popup {
        border-radius: 16px;
        max-height: 95vh;
    }

    .paid-popup-content>h2 {
        font-size: 18px;
        padding: 40px 20px 8px;
    }

    .paid-popup-content>p {
        padding: 0 20px 6px;
        font-size: 12px;
    }

    .cbm-timer-section,
    .cbm-price-section,
    .cbm-discount-code-section,
    .cbm-user-form {
        padding-left: 16px;
        padding-right: 16px;
    }

    .cbm-timer-box {
        min-width: 44px;
    }

    .cbm-timer-box span:first-child {
        font-size: 22px;
    }

    .cbm-timer-label {
        font-size: 11px;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .cbm-discount-input-group {
        flex-direction: column;
    }
}

.cbm-support-notice {
    margin-top: 20px;
    padding: 12px 16px;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-right: 4px solid #6c63ff;
    border-radius: 8px;
    text-align: center;
}

.cbm-support-notice p {
    margin: 0;
    font-size: 13px;
    color: #495057;
    line-height: 1.6;
}


.marketing-channels {

    display: flex;
    flex-direction: row;
    justify-content: center;
    flex-wrap: wrap;
    gap: 23px 0;

}

@media(max-width:768px) {
    .marketing-channels b {
        width: 45%;
    }

    .modalSwiper .swiper-slide {
        padding: 15px;
    }
}

.marketing-channels b {
    width: 33%;
}

.col2 {}