﻿
/* ============================================================
   CTA (Call To Action)
   ============================================================ */
.cta-container {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    justify-content: center;
    margin: 30px 0;
}

.cta-button {
    background: linear-gradient(135deg, #3aa2e0, #36c57d);
    color: #fff !important;
    text-decoration: none !important;
    font-size: 18px;
    font-weight: bold;
    padding: 15px 30px;
    border-radius: 12px;
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
    display: inline-block;
    text-align: center;
}
.cta-button:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
    color: #ffff00 !important;
}

.cta-secondary {
    background: linear-gradient(135deg, #36c57d, #3aa2e0);
}

/* ============================================================
   عنوان اصلی گالری‌ها
   ============================================================ */
.gallery-main-title {
    border-radius: 10px !important;
    padding: 10px 20px !important;
    text-align: right;
    margin: 10px 0 ;
    font-size: 14pt !important;
    font-weight: bold !important;
    max-width: 100% !important;
    display: block !important;
    box-sizing: border-box !important;
}

/* ============================================================
   گالری محصول خدمات (Link Gallery)
   ============================================================ */
.link-gallery {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin: 20px 0;
    justify-content: flex-start;
    direction: rtl;
}

.link-card {
    flex: 1 1 calc(25% - 20px);
    min-width: 200px;
    padding: 20px;
    border: 1px solid #e0e0e0;
    border-radius: 12px;
    background: #fff;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-sizing: border-box;
}
.link-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.link-icon {
    width: 100%;
    /* height: 180px; */
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 15px;
    background: #f5f5f5;
    max-width: 400px;
}

.link-card h4 {
    margin: 10px 0;
    font-size: 16px;
}
.link-card h4 a {
    color: #333;
    text-decoration: none;
}
.link-card h4 a:hover {
    color: #0066cc;
}

.link-card p {
    font-size: 13px;
    color: #666;
    line-height: 1.5;
    margin: 10px 0;
}

.link-price {
    display: inline-block;
    background: #28a745;
    color: #fff;
    padding: 6px 16px;
    border-radius: 5px;
    font-size: 13pt;
    font-weight: bold;
    margin: 8px 2px;
}

.link-more {
    display: inline-block;
    margin-top: 10px;
    padding: 6px 16px;
    border-radius: 5px;
    text-decoration: none;
    font-size: 13pt;
    font-weight: bold;
    transition: all 0.3s ease;
}
.link-more.btn-view {
    background: #0066cc;
    color: #fff;
}
.link-more.btn-view:hover {
    background: #0052a3;
    text-decoration: none;
}
.link-more.btn-buy {
    display: inline-block;
    background: #28a745;
    color: #fff;
    padding: 6px 16px;
    border-radius: 5px;
    font-size: 13pt;
    font-weight: bold;
    margin: 8px 2px;
}
.link-more.btn-buy:hover {
    transform: translateY(-2px);
    text-decoration: none;
}

/* ============================================================
   FAQ (سوالات متداول)
   ============================================================ */
.faq-item {
    border: 1px solid #4CAF50;
    border-radius: 8px;
    margin: 10px 0;
    padding: 10px;
    background: #f9fff9;
}

.faq-question {
    margin: 0;
    cursor: pointer;
    color: #2e7d32;
    text-align: justify;
}
.faq-question:hover {
    color: #1b5e20;
}

.faq-answer {
    display: none;
    margin-top: 8px;
    color: #333;
}
.faq-item.active .faq-answer {
    display: block;
    text-align: justify;
}
/* ============================================================
   گالری تصویر - استایل پایه (بدون flex، CSS Grid در JS اعمال میشه)
   ============================================================ */
.image-gallery {
    display: grid;
    gap: 20px;
    margin: 0;
    direction: rtl;
    width: 100%;
    box-sizing: border-box;
    /* grid-template-columns از JS اعمال میشه */
}

.image-gallery-item-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    transition: all 0.3s ease;
    border-radius: 12px;
    cursor: pointer;
    box-sizing: border-box;
    width: 100%;
    min-width: 0; /* مهم: اجازه بده کوچکتر از محتوا بشه */
    max-width: 100% !important;
}

.image-gallery-item-wrapper:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.image-gallery-item-wrapper .image-gallery-item {
    display: block;
    width: 100%;
    text-decoration: none;
    flex: none;
    max-width: 100%;
    min-width: 0;
    text-align: center;
}

.image-gallery-item-wrapper .image-gallery-item img {
    width: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
    border-radius: 10px 10px 0 0;
}

.image-gallery-item-wrapper .video-title-overlay {
    text-align: center;
    padding: 10px 8px;
    font-size: 14px;
    font-weight: 600;
    color: #333;
    width: 100%;
    background: #fff;
    border-top: 1px solid #eee;
    min-height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 0 0 10px 10px;
    box-sizing: border-box;
}

/* ============================================================
   گالری تصویر داینامیک - حداقل 2 ستون در موبایل
   ============================================================ */

/* دسکتاپ (بالای 768px): auto-fit بر اساس min-width */
.image-gallery-dynamic {
    grid-template-columns: repeat(auto-fit, minmax(var(--gallery-min-width, 200px), 1fr));
}

/* تبلت (481px تا 768px): حداقل 2 ستون، حداکثر 4 ستون */
@media (max-width: 768px) {
    .image-gallery-dynamic {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    }
}

/* موبایل (زیر 480px): همیشه 2 ستون */
@media (max-width: 480px) {
    .image-gallery-dynamic {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        gap: 12px !important;
    }
}

/* موبایل خیلی کوچک (زیر 360px): همیشه 2 ستون با فاصله کمتر */
@media (max-width: 360px) {
    .image-gallery-dynamic {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        gap: 8px !important;
    }
}

/* ============================================================
   توضیحات زیر تصویر (جدید)
   ============================================================ */
.image-gallery-item-wrapper .image-desc-overlay {
    text-align: center;
    padding: 5px 8px;
    font-size: 12px;
    color: #666;
    width: 100%;
    background: #ffffff;
    min-height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
     white-space: pre-line !important;
}


/* ============================================================
   گالری ویدئو
   ============================================================ */
.video-title-overlay {
    text-align: center;
    padding: 8px;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    border-radius: 0 0 10px 10px;
    margin-top: -5px;
    font-size: 13px;
    font-weight: bold;
}

/* ============================================================
   نظرات مشتریان (Testimonials)
   ============================================================ */
.testimonials-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 25px;
    justify-content: center;
    margin: 30px 0;
    direction: rtl;
}

.testimonial-card {
    background: #fff;
    border-radius: 20px;
    padding: 25px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    flex: 0 1 calc(33% - 65px);
    min-width: 260px;
    border: 1px solid #f0f0f0;
}
.testimonial-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
}

.testimonial-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.testimonial-avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #ff4757;
}

.testimonial-avatar-placeholder {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(135deg, #667eea, #764ba2);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 30px;
    color: white;
}

.testimonial-info h4 {
    margin: 0 0 5px 0;
    font-size: 16px;
    color: #333;
}
.testimonial-info span {
    font-size: 13px;
    color: #777;
}

.testimonial-rating {
    color: #ffc107;
    font-size: 16px;
    letter-spacing: 2px;
    margin-right: auto;
}

.testimonial-text {
    font-size: 14px;
    line-height: 1.7;
    color: #555;
    margin-bottom: 20px;
    text-align: justify;
}

.testimonial-date {
    font-size: 12px;
    color: #aaa;
    border-top: 1px solid #eee;
    padding-top: 15px;
    text-align: left;
}

/* ============================================================
   بلاک‌کوت (نقل‌قول)
   ============================================================ */
blockquote {
    background: linear-gradient(135deg, #f3f9f5 0%, #d0ebe0 100%);
    border-left: 8px solid #4a90e2;
    border-radius: 16px;
    padding: 20px 18px;
    font-size: 12pt;
    color: #1e2a3a;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1), 0 4px 8px rgba(0, 0, 0, 0.05);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    width: fit-content;
    max-width: 95%;
    margin: 20px auto;
    line-height: 200%;
}
blockquote:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 30px rgba(0, 0, 0, 0.15);
}
blockquote p {
    margin: 0;
}

/* ============================================================
   گالری لینک ساده (مطالب مشابه)
   ============================================================ */
.simple-link-gallery {
    list-style: none;
    padding: 0;
    margin: 20px 0;
    border: 1px solid #eaeef2;
    border-radius: 16px;
    overflow: hidden;
    background: #fff;
    direction: rtl;
}
.simple-link-gallery li {
    border-bottom: 1px solid #f0f0f0;
}
.simple-link-gallery li:last-child {
    border-bottom: none;
}
.simple-link-gallery li a {
    display: block;
    padding: 14px 20px;
    color: #2c3e50;
    text-decoration: none;
    font-size: 15px;
    font-weight: 500;
    transition: all 0.2s ease;
    background: #fff;
}
.simple-link-gallery li a:hover {
    background: #f8f9fa;
    color: #0066cc;
    padding-right: 25px;
}

/* ============================================================
   شمارنده آمار (Counter)
   ============================================================ */
.counter-section {
    background: #1a1a2e;
    background-image: radial-gradient(circle at 10% 20%, rgba(255, 255, 255, 0.08) 0%, transparent 30%), radial-gradient(circle at 90% 80%, rgba(255, 255, 255, 0.05) 0%, transparent 40%);
    padding: 60px 20px;
    margin: 40px 0;
    border-radius: 20px;
    position: relative;
    overflow: hidden;
}
.counter-section::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 20% 50%, rgba(255, 255, 255, 0.08) 0%, transparent 50%);
    pointer-events: none;
}

.counter-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.counter-item {
    flex: 1;
    min-width: 200px;
    text-align: center;
    padding: 25px 20px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 20px;
    backdrop-filter: blur(10px);
    transition: all 0.4s ease;
    cursor: pointer;
    border: 1px solid rgba(255, 255, 255, 0.1);
}
.counter-item:hover {
    transform: translateY(-10px);
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.2);
}

.counter-icon {
    font-size: 50px;
    margin-bottom: 20px;
    color: #ff4757;
    display: inline-block;
    transition: transform 0.3s ease;
}
.counter-item:hover .counter-icon {
    transform: scale(1.1);
}

.counter-number-wrapper {
    margin-bottom: 15px;
}
.counter-number {
    font-size: 48px;
    font-weight: 800;
    color: #ff4757;
    line-height: 1;
    display: inline-block;
}
.counter-suffix {
    font-size: 32px;
    font-weight: 700;
    color: #ff4757;
    margin-right: 5px;
}
.counter-label {
    font-size: 16px;
    color: #e0e0e0;
    font-weight: 500;
    margin-top: 10px;
}

.counter-progress {
    width: 80%;
    height: 4px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 4px;
    margin: 15px auto 0;
    overflow: hidden;
}
.counter-progress-bar {
    width: 0%;
    height: 100%;
    background: #ff4757;
    border-radius: 4px;
    transition: width 1.5s ease-out;
}

/* ============================================================
   پکیج قیمت (Pricing Card)
   ============================================================ */
.pricing-section {
    margin: 50px 0;
    padding: 20px;
    direction: rtl;
}
.pricing-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 25px;
    direction: rtl;
}
.pricing-card {
    flex: 1;
    min-width: 220px;
    max-width: calc(20% - 25px);
    background: #fff;
    border-radius: 20px;
    padding: 25px 20px;
    text-align: center;
    transition: all 0.3s ease;
    position: relative;
    border: 1px solid #eee;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
}
.pricing-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
}
.pricing-card-featured {
    border: 2px solid #ffd700;
    background: linear-gradient(135deg, #fff, #fff9f0);
    transform: scale(1.02);
}
.pricing-card-featured:hover {
    transform: translateY(-10px) scale(1.02);
}

.pricing-badge {
    position: absolute;
    top: -12px;
    right: 20px;
    background: #ffd700;
    color: #fff;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: bold;
}

.pricing-icon {
    font-size: 48px;
    margin-bottom: 15px;
}
.pricing-title {
    font-size: 22px;
    font-weight: bold;
    margin-bottom: 15px;
    color: #ff4757;
}
.pricing-price {
    font-size: 32px;
    font-weight: 800;
    color: #ff4757;
    margin-bottom: 5px;
}
.pricing-period {
    font-size: 14px;
    color: #999;
    margin-bottom: 20px;
}

.pricing-features {
    list-style: none;
    padding: 0;
    margin: 20px 0;
    text-align: right;
}
.pricing-features li {
    padding: 8px 0;
    font-size: 14px;
    color: #555;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 10px;
}
.pricing-features li .check {
    color: #28a745;
    font-size: 18px;
}
.pricing-features li .cross {
    color: #dc3545;
    font-size: 18px;
}

.pricing-btn {
    display: inline-block;
    background: #ff4757;
    color: #fff;
    padding: 12px 25px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: bold;
    transition: all 0.3s ease;
    margin-top: 15px;
}
.pricing-btn:hover {
    background: #e03a4a;
    transform: scale(1.05);
    color: #fff;
}
.pricing-card-featured .pricing-btn {
    background: #ffd700;
    color: #333;
}
.pricing-card-featured .pricing-btn:hover {
    background: #e6c200;
}

/* ============================================================
   جدول قیمت
   ============================================================ */
.price-table-container {
    margin: 30px 0;
    overflow-x: auto;
    overflow-y: visible;
    direction: rtl;
    width: 100%;
    max-width: 100%;
    -webkit-overflow-scrolling: touch;
    position: relative;
}

.price-table-container::-webkit-scrollbar {
    height: 8px;
}
.price-table-container::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 10px;
}
.price-table-container::-webkit-scrollbar-thumb {
    background: #888;
    border-radius: 10px;
}
.price-table-container::-webkit-scrollbar-thumb:hover {
    background: #555;
}

.price-table {
    width: 100%;
    min-width: 600px;
    border-collapse: collapse;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    border-radius: 16px;
    overflow: hidden;
}

.price-table thead tr {
    background: linear-gradient(135deg, #ff4757, #ff6b81);
}
.price-table th {
    color: #fff;
    padding: 15px;
    font-size: 15px;
    font-weight: bold;
    white-space: nowrap;
}
.price-table tbody tr {
    transition: all 0.3s ease;
}
.price-table tbody tr:hover td {
    background: rgba(46, 213, 115, 0.2) !important;
    transform: scale(1.01);
}
.price-table td {
    padding: 12px 15px;
    border-bottom: 1px solid #eee;
    font-size: 14px;
}
.price-table tbody tr:last-child td {
    border-bottom: none;
}

@media (max-width: 768px) {
    .testimonial-card {
        flex: 0 1 100%;
    }
    .counter-section {
        padding: 40px 15px;
    }
    .counter-number {
        font-size: 32px;
    }
    .counter-suffix {
        font-size: 24px;
    }
    .counter-icon {
        font-size: 40px;
    }
    .counter-label {
        font-size: 13px;
    }
    .counter-item {
        padding: 15px 10px;
        min-width: 150px;
    }
    .pricing-card {
        max-width: 100%;
    }
    .pricing-section {
        padding: 10px;
    }
    
    .price-table-container {
        margin: 20px 0;
        border-radius: 12px;
        border: 1px solid #eee;
        background: #fafafa;
        padding: 5px 0;
    }
    .price-table {
        min-width: 500px;
        border-radius: 12px;
    }
    .price-table th,
    .price-table td {
        padding: 8px 12px;
        font-size: 12px;
        white-space: nowrap;
    }
    .price-table th {
        font-size: 11px;
        padding: 10px 12px;
    }
    .price-table td {
        font-size: 11px;
        padding: 8px 12px;
    }
    .price-table-container {
        -webkit-overflow-scrolling: touch;
        scroll-behavior: smooth;
    }
    .price-table-container::after {
        content: "↔ برای دیدن بقیه جدول اسکرول کنید";
        display: block;
        text-align: center;
        font-size: 11px;
        color: #999;
        padding: 8px 0 4px 0;
        font-family: IRANSans, Tahoma, sans-serif;
    }
}

@media (max-width: 576px) {
    .link-card {
        flex: 0 1 100% !important;
        max-width: 100% !important;
    }
    .link-icon {
    }
}

@media (max-width: 480px) {
    .price-table {
        min-width: 400px;
    }
    .price-table th,
    .price-table td {
        padding: 6px 8px;
        font-size: 10px;
    }
    .price-table th {
        font-size: 10px;
    }
    .price-table td {
        font-size: 10px;
    }
}


/* ============================================================
   🎬 Video Gallery System
   ============================================================ */

.video-gallery-wrapper {
    width: 100%;
    box-sizing: border-box;
    direction: rtl;
    margin: 20px 0;
}

.video-gallery-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: flex-start;
    gap: 20px;
    width: 100%;
}

.video-gallery-item {
    flex: 0 0 auto;
    width: 280px;
    max-width: 100%;
    box-sizing: border-box;
    background: #111;
    border-radius: 12px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.12);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.video-gallery-item:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.22);
}

/* لینک روی عکس — اینجا کلاس popup-media هست */
.video-gallery-item .popup-media {
    display: block;
    position: relative;
    text-decoration: none;
    overflow: hidden;
    background: #000;
}

/* 🎯 دکمه پلی با CSS — به جای span داخل HTML */
.video-gallery-item .popup-media::after {
    content: '▶';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 60px;
    height: 60px;
    background: rgba(0, 0, 0, 0.6);
    border: 2px solid rgba(255, 255, 255, 0.85);
    border-radius: 50%;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    line-height: 1;
    padding-left: 4px;
    pointer-events: none;
    box-sizing: border-box;
    transition: background 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
    animation: videoPlayPulse 2.2s infinite;
    z-index: 2;
}

.video-gallery-item:hover .popup-media::after {
    background: rgba(220, 53, 69, 0.95);
    transform: translate(-50%, -50%) scale(1.12);
    animation: none;
    box-shadow: 0 0 0 8px rgba(220, 53, 69, 0.2);
}

@keyframes videoPlayPulse {
    0%   { box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.5); }
    70%  { box-shadow: 0 0 0 14px rgba(255, 255, 255, 0); }
    100% { box-shadow: 0 0 0 0 rgba(255, 255, 255, 0); }
}

/* thumbnail */
.video-thumb {
    display: block;
    width: 100%;
    object-fit: cover;
    transition: transform 0.4s ease, filter 0.3s ease;
    filter: brightness(0.95);
    position: relative;
    z-index: 1;
}

.video-gallery-item:hover .video-thumb {
    transform: scale(1.06);
    filter: brightness(1);
}

/* عنوان زیر ویدئو */
.video-item-title {
    padding: 12px 14px;
    background: #1a1a1a;
    color: #ffffff;
    font-size: 13px;
    font-weight: 600;
    text-align: center;
    line-height: 1.5;
    min-height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* ============================================================
   📱 Responsive
   ============================================================ */
@media (max-width: 768px) {
    .video-gallery-grid { gap: 14px; }

    .video-gallery-item {
        width: calc(50% - 7px);
        max-width: 320px;
        border-radius: 10px;
    }


    .video-gallery-item .popup-media::after {
        width: 48px;
        height: 48px;
        font-size: 16px;
    }

    .video-item-title {
        font-size: 12px;
        padding: 10px;
        min-height: 38px;
    }
}

@media (max-width: 480px) {
    .video-gallery-wrapper { margin: 12px 0; }
    .video-gallery-grid { gap: 12px; }

    .video-gallery-item {
        width: 100%;
        max-width: 100%;
        border-radius: 10px;
    }


    .video-gallery-item .popup-media::after {
        width: 54px;
        height: 54px;
        font-size: 18px;
        padding-left: 5px;
    }

    .video-item-title {
        font-size: 13px;
        padding: 10px 12px;
        min-height: 40px;
    }
}



/* ============================================================
   🌑 جعبه نقل قول تیره با درخشش (Dark Glow Box)
   ============================================================ */

.dark-glow-box {
    display: block;
    box-sizing: border-box;
    width: 100%;
    max-width: 900px;
    margin: 24px auto;
    padding: 28px 32px;
    border-radius: 20px;
    background: rgb(0 0 0 / 70%);
    color: #ffffff;
    font-size: 16px;
    line-height: 2;
    text-align: right;
    direction: rtl;
    -webkit-box-shadow: inset 0px -1px 32px -10px rgba(0, 0, 0, 0.75),
                        1px 6px 32px -10px rgba(0, 0, 0, 0.75);
    -moz-box-shadow: inset 0px -1px 32px -10px rgba(0, 0, 0, 0.75),
                     1px 6px 32px -10px rgba(0, 0, 0, 0.75);
    box-shadow: inset 0px -1px 32px -10px rgba(0, 0, 0, 0.75),
                1px 6px 32px -10px rgba(0, 0, 0, 0.75);
    transition: box-shadow 0.3s ease, transform 0.3s ease;
}

.dark-glow-box p {
    margin: 0 0 12px;
    color: inherit;
}

.dark-glow-box p:last-child {
    margin-bottom: 0;
}

.dark-glow-box a {
    color: #7fd8ff;
    text-decoration: underline;
}

.dark-glow-box strong,
.dark-glow-box b {
    color: #ffffff;
    font-weight: 700;
}

/* افکت هاور روی دسکتاپ */
.dark-glow-box:hover {
    transform: translateY(-2px);
    -webkit-box-shadow: inset 0px -1px 32px -10px rgba(0, 0, 0, 0.85),
                        1px 10px 40px -10px rgba(0, 0, 0, 0.85);
    -moz-box-shadow: inset 0px -1px 32px -10px rgba(0, 0, 0, 0.85),
                     1px 10px 40px -10px rgba(0, 0, 0, 0.85);
    box-shadow: inset 0px -1px 32px -10px rgba(0, 0, 0, 0.85),
                1px 10px 40px -10px rgba(0, 0, 0, 0.85);
}

/* ============================================================
   📱 Responsive
   ============================================================ */
@media (max-width: 768px) {
    .dark-glow-box {
        margin: 16px auto;
        padding: 20px 22px;
        border-radius: 16px;
        font-size: 15px;
        line-height: 1.9;
    }
}

@media (max-width: 480px) {
    .dark-glow-box {
        margin: 12px auto;
        padding: 16px 18px;
        border-radius: 14px;
        font-size: 14px;
        line-height: 1.85;
    }
}

























/* ═══════════════════════════════════════════════════════════
   AiContent.css — استایل‌های محتوای هوش مصنوعی
   نسخه با پشتیبانی از ادیتور TinyMCE (نمایش اولیه بدون JS)
   ═══════════════════════════════════════════════════════════ */

/* ═══════════════════════════════════════════════════════════
   1. VARIABLES — پالت رنگی
   ═══════════════════════════════════════════════════════════ */
:root {
    --ai-blue-soft: #eff6ff;
    --ai-blue-main: #3b82f6;
    --ai-blue-dark: #1e3a8a;
    --ai-blue-border: #dbeafe;
    --ai-blue-shadow: rgba(59,130,246,.2);

    --ai-green-soft: #f0fdf4;
    --ai-green-main: #22c55e;
    --ai-green-dark: #166534;
    --ai-green-border: #dcfce7;
    --ai-green-shadow: rgba(34,197,94,.2);

    --ai-red-soft: #fef2f2;
    --ai-red-main: #ef4444;
    --ai-red-dark: #991b1b;
    --ai-red-border: #fee2e2;
    --ai-red-shadow: rgba(239,68,68,.2);

    --ai-yellow-soft: #fffbeb;
    --ai-yellow-main: #f59e0b;
    --ai-yellow-dark: #92400e;
    --ai-yellow-border: #fef3c7;
    --ai-yellow-shadow: rgba(245,158,11,.2);

    --ai-purple-soft: #faf5ff;
    --ai-purple-main: #a855f7;
    --ai-purple-dark: #6b21a8;
    --ai-purple-border: #f3e8ff;
    --ai-purple-shadow: rgba(168,85,247,.2);

    --ai-gray-soft: #f8fafc;
    --ai-gray-main: #64748b;
    --ai-gray-dark: #1e293b;
    --ai-gray-border: #e2e8f0;
    --ai-gray-shadow: rgba(100,116,139,.2);

    --ai-soft: var(--ai-blue-soft);
    --ai-main: var(--ai-blue-main);
    --ai-dark: var(--ai-blue-dark);
    --ai-border: var(--ai-blue-border);
    --ai-shadow: var(--ai-blue-shadow);
}

/* ═══════════════════════════════════════════════════════════
   2. THEME COLORS
   ═══════════════════════════════════════════════════════════ */
.ai-theme-blue { --ai-soft: var(--ai-blue-soft); --ai-main: var(--ai-blue-main); --ai-dark: var(--ai-blue-dark); --ai-border: var(--ai-blue-border); --ai-shadow: var(--ai-blue-shadow); }
.ai-theme-green { --ai-soft: var(--ai-green-soft); --ai-main: var(--ai-green-main); --ai-dark: var(--ai-green-dark); --ai-border: var(--ai-green-border); --ai-shadow: var(--ai-green-shadow); }
.ai-theme-red { --ai-soft: var(--ai-red-soft); --ai-main: var(--ai-red-main); --ai-dark: var(--ai-red-dark); --ai-border: var(--ai-red-border); --ai-shadow: var(--ai-red-shadow); }
.ai-theme-yellow { --ai-soft: var(--ai-yellow-soft); --ai-main: var(--ai-yellow-main); --ai-dark: var(--ai-yellow-dark); --ai-border: var(--ai-yellow-border); --ai-shadow: var(--ai-yellow-shadow); }
.ai-theme-purple { --ai-soft: var(--ai-purple-soft); --ai-main: var(--ai-purple-main); --ai-dark: var(--ai-purple-dark); --ai-border: var(--ai-purple-border); --ai-shadow: var(--ai-purple-shadow); }
.ai-theme-gray { --ai-soft: var(--ai-gray-soft); --ai-main: var(--ai-gray-main); --ai-dark: var(--ai-gray-dark); --ai-border: var(--ai-gray-border); --ai-shadow: var(--ai-gray-shadow); }

/* ═══════════════════════════════════════════════════════════
   3. CARD A — تایملاین
   ═══════════════════════════════════════════════════════════ */
.ai-timeline { position: relative; margin-bottom: 14px; }

.ai-timeline-line {
    position: absolute;
    top: 0;
    bottom: 0;
    right: 19px;
    width: 2px;
    background: linear-gradient(180deg, var(--ai-border), var(--ai-main), var(--ai-border));
    border-radius: 2px;
    z-index: 1;
}

.ai-timeline-item {
    position: relative;
    display: flex;
    align-items: flex-start;
    gap: 16px;
    margin-bottom: 14px;
    z-index: 2;
}

.ai-timeline-item:last-child { margin-bottom: 0; }

.ai-timeline-icon {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--ai-soft);
    border: 3px solid var(--ai-main);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    box-shadow: 0 0 0 4px #fff;
    box-sizing: border-box;
    margin-top: 6px;
    position: relative;
    z-index: 3;
}

.ai-timeline-card {
    flex: 1;
    min-width: 0;
    background: #ffffff;
    border-radius: 14px;
    padding: 18px 20px;
    border: 1px solid var(--ai-border);
    box-shadow: 0 2px 8px rgba(15,37,71,.06);
}

.ai-timeline-text {
    margin: 0;
    color: #334155;
    font-size: 14px;
    line-height: 1.9;
}

/* ═══════════════════════════════════════════════════════════
   4. CARD B — کارت با نوار رنگی کناری
   ═══════════════════════════════════════════════════════════ */
.ai-card-side {
    display: flex;
    align-items: stretch;
    background: #ffffff;
    border-radius: 12px;
    margin-bottom: 14px;
    border: 1px solid #e5e7eb;
    overflow: hidden;
    box-shadow: 0 1px 4px rgba(0,0,0,.03);
}

.ai-card-side-bar { flex-shrink: 0; width: 5px; background: var(--ai-main); }

.ai-card-side-body { flex: 1; padding: 18px 20px; min-width: 0; }

.ai-card-side-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
}

.ai-card-side-icon { font-size: 16px; line-height: 1; }

.ai-card-side-title {
    font-size: 14.5px;
    font-weight: 800;
    color: var(--ai-dark);
    letter-spacing: -.2px;
}

.ai-card-side-text {
    margin: 0;
    color: #334155;
    font-size: 14px;
    line-height: 1.95;
}

/* ═══════════════════════════════════════════════════════════
   5. CARD C — کارت شیشه‌ای گرادیانتی
   ═══════════════════════════════════════════════════════════ */
.ai-card-glass {
    position: relative;
    background: linear-gradient(135deg, var(--ai-soft) 0%, var(--ai-border) 100%);
    border-radius: 18px;
    padding: 22px 24px;
    margin-bottom: 14px;
    border: 1px solid rgba(255,255,255,.6);
    box-shadow: 0 8px 24px rgba(15,37,71,.07);
    overflow: hidden;
}

.ai-card-glass-dot {
    position: absolute;
    top: 16px;
    left: 16px;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--ai-main);
    box-shadow: 0 0 0 4px var(--ai-shadow);
}

.ai-card-glass-body { position: relative; }

.ai-card-glass-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
}

.ai-card-glass-icon { font-size: 18px; line-height: 1; }

.ai-card-glass-title {
    font-size: 15px;
    font-weight: 800;
    color: var(--ai-dark);
}

.ai-card-glass-text {
    margin: 0;
    color: #1e293b;
    font-size: 14.5px;
    line-height: 2;
}

/* ═══════════════════════════════════════════════════════════
   6. CARD D — کارت با شماره‌ی بزرگ
   ═══════════════════════════════════════════════════════════ */
.ai-card-number {
    display: flex;
    align-items: flex-start;
    gap: 18px;
    background: linear-gradient(135deg, #ffffff 0%, #f9fafb 100%);
    border-radius: 16px;
    padding: 20px 22px;
    margin-bottom: 14px;
    border: 1px solid #e5e7eb;
}

.ai-card-number-badge {
    flex-shrink: 0;
    width: 52px;
    height: 52px;
    border-radius: 14px;
    background: linear-gradient(135deg, var(--ai-main), var(--ai-dark));
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    font-weight: 900;
    box-shadow: 0 4px 12px var(--ai-shadow);
    line-height: 1;
    box-sizing: border-box;
}

.ai-card-number-body { flex: 1; padding-top: 6px; min-width: 0; }

.ai-card-number-text {
    margin: 0;
    color: #334155;
    font-size: 14.5px;
    line-height: 1.95;
}

/* ═══════════════════════════════════════════════════════════
   7. TABLE WRAPPER
   ═══════════════════════════════════════════════════════════ */
.ai-table-wrap {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    margin-bottom: 14px;
}

.ai-table-wrap table {
    width: 100%;
    border-collapse: collapse;
    min-width: 560px;
}

/* ═══════════════════════════════════════════════════════════
   8. KEYWORD
   ═══════════════════════════════════════════════════════════ */
.ai-content strong,
.ai-content b { font-weight: 700; color: #0f172a; }

/* ═══════════════════════════════════════════════════════════
   9. RESPONSIVE — A/B/C/D
   ═══════════════════════════════════════════════════════════ */
@media (max-width: 640px) {
    .ai-timeline-icon { width: 34px; height: 34px; font-size: 15px; }
    .ai-timeline-line { right: 16px; }
    .ai-timeline-item { gap: 12px; margin-bottom: 12px; }
    .ai-card-glass { padding: 18px 18px; }
    .ai-card-side-body { padding: 15px 16px; }
    .ai-card-number { padding: 16px 18px; gap: 12px; }
    .ai-card-number-badge { width: 44px; height: 44px; font-size: 20px; border-radius: 11px; }
}

/* ═══════════════════════════════════════════════════════════
   STYLE E — BENEFITS CAROUSEL (کاروسل مزایا)
   ═══════════════════════════════════════════════════════════ */
.ai-benefits-section {
    width: 100%;
    margin: 24px auto;
    padding: 24px 0 25px;
    background: #fafafa;
    border: 1px solid #eeeeee;
    border-radius: 28px;
    box-sizing: border-box;
    overflow: hidden;
    position: relative;
    z-index: 0;
    isolation: isolate;
}

.ai-benefits-header { text-align: center; padding: 0 18px; box-sizing: border-box; }

.ai-benefits-eyebrow {
    font-size: 12px;
    color: #d71920;
    font-weight: 800;
    margin-bottom: 3px;
}

.ai-benefits-title {
    font-size: 23px;
    font-weight: 900;
    line-height: 1.8;
    color: #171717;
    margin: 0;
}

.ai-benefits-subtitle {
    font-size: 13px;
    color: #888;
    line-height: 1.9;
    margin-top: 2px;
}

.ai-benefits-slider {
    width: 100%;
    margin: 0 auto;
    position: relative;
    overflow: hidden;
    direction: rtl;
    box-sizing: border-box;
}

.ai-benefits-stage {
    width: 100%;
    height: 290px;
    position: relative;
    overflow: hidden;
    touch-action: pan-y;
    user-select: none;
    cursor: grab;
    box-sizing: border-box;
}

.ai-benefits-slider.ai-js-ready .ai-benefits-stage {
    -webkit-mask-image: linear-gradient(to right, transparent 0%, rgba(0,0,0,.08) 2%, rgba(0,0,0,.22) 4%, rgba(0,0,0,.48) 7%, rgba(0,0,0,.75) 10%, #000 15%, #000 85%, rgba(0,0,0,.75) 90%, rgba(0,0,0,.48) 93%, rgba(0,0,0,.22) 96%, rgba(0,0,0,.08) 98%, transparent 100%);
    mask-image: linear-gradient(to right, transparent 0%, rgba(0,0,0,.08) 2%, rgba(0,0,0,.22) 4%, rgba(0,0,0,.48) 7%, rgba(0,0,0,.75) 10%, #000 15%, #000 85%, rgba(0,0,0,.75) 90%, rgba(0,0,0,.48) 93%, rgba(0,0,0,.22) 96%, rgba(0,0,0,.08) 98%, transparent 100%);
}

/* حالت پایه کارت (قبل از JS) */
.ai-benefit-card {
    position: absolute;
    top: 24px;
    left: 50%;
    width: 68%;
    max-width: 520px;
    height: 215px;
    padding: 42px 30px 27px;
    background: #ffffff;
    border: 1px solid #e7e7e7;
    border-radius: 25px;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    justify-content: center;
    z-index: 1;
    box-shadow: none;
    transition: transform 0.62s cubic-bezier(0.22,0.8,0.2,1), opacity 0.45s, box-shadow 0.45s;
}

/* حالت بدون JS: فقط کارت اول نمایش، بقیه مخفی */
.ai-benefits-slider:not(.ai-js-ready) .ai-benefit-card { display: none; }

.ai-benefits-slider:not(.ai-js-ready) .ai-benefit-card:first-child {
    display: flex;
    position: relative;
    top: auto;
    left: auto;
    transform: none;
    opacity: 1;
    margin: 24px auto 0;
}

/* حالت با JS: کارت‌ها مخفی و آماده انیمیشن */
.ai-benefits-slider.ai-js-ready .ai-benefit-card {
    opacity: 0;
    transform: translateX(26%) scale(0.73);
}

.ai-benefit-number {
    position: absolute;
    top: 17px;
    right: 27px;
    font-size: 22px;
    font-weight: 900;
    color: #d71920;
    line-height: 1;
}

.ai-benefit-tag {
    font-size: 11px;
    font-weight: 800;
    color: #d71920;
    margin-bottom: 5px;
}

.ai-benefit-title {
    font-size: 22px;
    font-weight: 900;
    color: #151515;
    line-height: 1.7;
    margin: 0 0 5px;
}

.ai-benefit-desc {
    font-size: 14px;
    line-height: 2;
    color: #666;
    margin: 0;
}

.ai-benefit-accent {
    position: absolute;
    right: 30px;
    bottom: 0;
    width: 50px;
    height: 4px;
    background: #d71920;
    border-radius: 10px 10px 0 0;
}

.ai-benefits-fade {
    position: relative;
    margin-top: -60px;
    padding-top: 60px;
    padding-bottom: 3px;
    background: linear-gradient(to bottom,
        rgba(250,250,250,0) 0%,
        rgba(250,250,250,.08) 18%,
        rgba(250,250,250,.25) 38%,
        rgba(250,250,250,.58) 62%,
        rgba(250,250,250,.88) 82%,
        #fafafa 100%);
    z-index: 15;
    pointer-events: none;
}

.ai-benefits-slider:not(.ai-js-ready) .ai-benefits-fade { display: none; }

.ai-benefits-dots {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    direction: rtl;
    position: relative;
    pointer-events: auto;
}

.ai-benefits-dots span {
    display: block;
    width: 6px;
    height: 4px;
    border-radius: 10px;
    background: #dddddd;
    transition: 0.3s;
    cursor: pointer;
}

@media (max-width: 640px) {
    .ai-benefits-section { padding: 18px 0 20px; border-radius: 20px; margin: 16px auto; }
    .ai-benefits-title { font-size: 19px; }
    .ai-benefits-subtitle { font-size: 12px; }
    .ai-benefits-stage { height: 260px; }
    .ai-benefit-card { width: 80%; height: 195px; padding: 38px 22px 22px; }
    .ai-benefit-title { font-size: 19px; }
    .ai-benefit-desc { font-size: 13px; }
}

/* ═══════════════════════════════════════════════════════════
   STYLE F — HERO TL;DR
   ═══════════════════════════════════════════════════════════ */
.ai-hero-tldr {
    position: relative;
    margin: 0 0 28px 0;
    padding: 36px 32px 30px;
    border-radius: 24px;
    background: linear-gradient(135deg, #1e3a8a 0%, #1e40af 50%, #312e81 100%);
    color: #fff;
    overflow: hidden;
    box-shadow: 0 20px 50px rgba(30,58,138,.25), 0 4px 12px rgba(30,58,138,.15);
    isolation: isolate;
}

.ai-hero-tldr::before {
    content: "";
    position: absolute;
    top: -80px;
    left: -80px;
    width: 260px;
    height: 260px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(168,85,247,.35) 0%, transparent 70%);
    pointer-events: none;
    z-index: -1;
    animation: ai-hero-float 8s ease-in-out infinite;
}

.ai-hero-tldr::after {
    content: "";
    position: absolute;
    bottom: -100px;
    right: -60px;
    width: 300px;
    height: 300px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(59,130,246,.4) 0%, transparent 70%);
    pointer-events: none;
    z-index: -1;
    animation: ai-hero-float 10s ease-in-out infinite reverse;
}

@keyframes ai-hero-float {
    0%, 100% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(20px, -20px) scale(1.08); }
}

.ai-hero-tldr-header { position: relative; z-index: 2; margin-bottom: 24px; }

.ai-hero-tldr-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    background: rgba(255,255,255,.15);
    border: 1px solid rgba(255,255,255,.25);
    border-radius: 100px;
    font-size: 12px;
    font-weight: 700;
    color: #fff;
    margin-bottom: 12px;
}

.ai-hero-tldr-title {
    margin: 0;
    font-size: 26px;
    font-weight: 900;
    line-height: 1.5;
    color: #fff;
    letter-spacing: -.3px;
}

.ai-hero-tldr-stats {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(110px, 1fr));
    gap: 12px;
    margin-bottom: 22px;
}

.ai-hero-stat {
    background: rgba(255,255,255,.08);
    border: 1px solid rgba(255,255,255,.15);
    border-radius: 16px;
    padding: 18px 14px;
    text-align: center;
    transition: all .3s ease;
}

.ai-hero-stat:hover {
    background: rgba(255,255,255,.14);
    transform: translateY(-3px);
    border-color: rgba(255,255,255,.3);
}

.ai-hero-stat-value {
    font-size: 34px;
    font-weight: 900;
    line-height: 1;
    color: #fff;
    margin-bottom: 6px;
    letter-spacing: -1px;
    font-variant-numeric: tabular-nums;
}

.ai-hero-stat-value small {
    font-size: 18px;
    font-weight: 700;
    opacity: .85;
    margin-right: 2px;
}

.ai-hero-stat-label {
    font-size: 12px;
    color: rgba(255,255,255,.75);
    font-weight: 600;
    line-height: 1.5;
}

.ai-hero-tldr-summary {
    position: relative;
    z-index: 2;
    margin: 0;
    padding: 18px 20px;
    background: rgba(255,255,255,.06);
    border-right: 3px solid rgba(168,85,247,.9);
    border-radius: 12px;
    font-size: 14.5px;
    line-height: 2;
    color: rgba(255,255,255,.92);
}

.ai-hero-tldr.ai-hero-purple {
    background: linear-gradient(135deg, #581c87 0%, #6b21a8 50%, #4c1d95 100%);
    box-shadow: 0 20px 50px rgba(107,33,168,.25), 0 4px 12px rgba(107,33,168,.15);
}

.ai-hero-tldr.ai-hero-emerald {
    background: linear-gradient(135deg, #064e3b 0%, #047857 50%, #0f766e 100%);
    box-shadow: 0 20px 50px rgba(4,120,87,.25), 0 4px 12px rgba(4,120,87,.15);
}

.ai-hero-tldr.ai-hero-crimson {
    background: linear-gradient(135deg, #7f1d1d 0%, #b91c1c 50%, #831843 100%);
    box-shadow: 0 20px 50px rgba(185,28,28,.25), 0 4px 12px rgba(185,28,28,.15);
}

/* ═══════════════════════════════════════════════════════════
   STYLE G — HIGHLIGHTS GRID
   ═══════════════════════════════════════════════════════════ */
.ai-highlights {
    position: relative;
    margin: 0 0 28px 0;
    padding: 28px 24px 24px;
    border-radius: 22px;
    background: linear-gradient(135deg, #f8fafc 0%, #eef2ff 100%);
    border: 1px solid #e2e8f0;
    box-shadow: 0 8px 24px rgba(15,37,71,.06);
}

.ai-highlights-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
    padding-bottom: 16px;
    border-bottom: 1px dashed #cbd5e1;
}

.ai-highlights-icon {
    font-size: 26px;
    line-height: 1;
    animation: ai-hl-spin 8s linear infinite;
    display: inline-block;
}

@keyframes ai-hl-spin {
    0%, 85%, 100% { transform: rotate(0deg); }
    90% { transform: rotate(15deg); }
    95% { transform: rotate(-15deg); }
}

.ai-highlights-title {
    margin: 0;
    font-size: 20px;
    font-weight: 900;
    color: #1e3a8a;
    line-height: 1.5;
    letter-spacing: -.2px;
}

.ai-highlights-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 12px;
}

.ai-highlight-card {
    position: relative;
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 16px 18px;
    border-radius: 14px;
    background: #ffffff;
    border: 1px solid #e5e7eb;
    transition: all .35s cubic-bezier(.2,.8,.2,1);
    overflow: hidden;
    cursor: default;
}

/* حالت با JS: کارت‌ها مخفی و آماده انیمیشن */
.ai-highlights.ai-js-ready .ai-highlight-card {
    opacity: 0;
    transform: translateY(20px);
}

.ai-highlight-card::before {
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    width: 3px;
    height: 100%;
    background: var(--hl-color, #3b82f6);
    transition: width .35s ease;
}

.ai-highlight-card:hover {
    transform: translateY(-4px);
    border-color: var(--hl-color, #3b82f6);
    box-shadow: 0 12px 28px rgba(15,37,71,.1);
}

.ai-highlight-card:hover::before { width: 5px; }

.ai-highlight-icon {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    border-radius: 11px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    background: var(--hl-soft, #eff6ff);
    box-sizing: border-box;
    transition: transform .35s ease;
}

.ai-highlight-card:hover .ai-highlight-icon { transform: scale(1.1) rotate(-6deg); }

.ai-highlight-text {
    flex: 1;
    min-width: 0;
    padding-top: 2px;
    font-size: 13.5px;
    font-weight: 700;
    color: #1f2937;
    line-height: 1.75;
}

.ai-highlight-blue   { --hl-color: #3b82f6; --hl-soft: #eff6ff; }
.ai-highlight-green  { --hl-color: #22c55e; --hl-soft: #f0fdf4; }
.ai-highlight-purple { --hl-color: #a855f7; --hl-soft: #faf5ff; }
.ai-highlight-orange { --hl-color: #f59e0b; --hl-soft: #fffbeb; }
.ai-highlight-red    { --hl-color: #ef4444; --hl-soft: #fef2f2; }
.ai-highlight-teal   { --hl-color: #14b8a6; --hl-soft: #f0fdfa; }

.ai-highlight-card.ai-anim-in {
    animation: ai-hl-fade-in .6s cubic-bezier(.2,.8,.2,1) forwards;
}

@keyframes ai-hl-fade-in {
    to { opacity: 1; transform: translateY(0); }
}

/* ═══════════════════════════════════════════════════════════
   STYLE H — FEATURE CARDS GRID
   ═══════════════════════════════════════════════════════════ */
.ai-features-grid {
    display: grid;
    grid-template-columns: repeat(var(--ai-fg-cols, 3), minmax(0, 1fr));
    gap: 14px;
    margin: 20px 0 26px 0;
    padding: 0;
    list-style: none;
}

.ai-features-grid.ai-fg-cols-2 { --ai-fg-cols: 2; }
.ai-features-grid.ai-fg-cols-3 { --ai-fg-cols: 3; }
.ai-features-grid.ai-fg-cols-4 { --ai-fg-cols: 4; }

.ai-feature-card {
    position: relative;
    display: flex;
    flex-direction: column;
    padding: 24px 22px 22px;
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 18px;
    box-sizing: border-box;
    overflow: hidden;
    transition: all .4s cubic-bezier(.2,.8,.2,1);
    isolation: isolate;
}

/* حالت با JS: کارت‌ها مخفی و آماده انیمیشن */
.ai-features-grid.ai-js-ready .ai-feature-card {
    opacity: 0;
    transform: translateY(24px) scale(.96);
}

.ai-feature-card::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(160deg, var(--fc-soft, #eff6ff) 0%, transparent 55%);
    opacity: 0;
    transition: opacity .4s ease;
    z-index: -1;
}

.ai-feature-card::after {
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    width: 60px;
    height: 60px;
    background: radial-gradient(circle at top right, var(--fc-color, #3b82f6) 0%, transparent 70%);
    opacity: .12;
    transition: opacity .4s ease, transform .4s ease;
    transform: scale(1);
    border-radius: 0 18px 0 100%;
}

.ai-feature-card:hover {
    transform: translateY(-6px);
    border-color: var(--fc-color, #3b82f6);
    box-shadow: 0 16px 40px var(--fc-shadow, rgba(59,130,246,.18)),
                0 4px 12px rgba(15,37,71,.06);
}

.ai-feature-card:hover::before { opacity: 1; }
.ai-feature-card:hover::after { opacity: .28; transform: scale(1.4); }

.ai-feature-icon {
    position: relative;
    width: 56px;
    height: 56px;
    margin-bottom: 16px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 26px;
    background: var(--fc-soft, #eff6ff);
    border: 1px solid var(--fc-border, #dbeafe);
    box-sizing: border-box;
    transition: all .4s cubic-bezier(.2,.8,.2,1);
    flex-shrink: 0;
}

.ai-feature-card:hover .ai-feature-icon {
    transform: scale(1.08) rotate(-6deg);
    background: var(--fc-color, #3b82f6);
    color: #fff;
    border-color: var(--fc-color, #3b82f6);
    box-shadow: 0 8px 20px var(--fc-shadow, rgba(59,130,246,.35));
}

.ai-feature-title {
    margin: 0 0 8px 0;
    font-size: 16.5px;
    font-weight: 800;
    color: #111827;
    line-height: 1.5;
    letter-spacing: -.2px;
}

.ai-feature-text {
    margin: 0;
    font-size: 13.5px;
    line-height: 1.9;
    color: #64748b;
    font-weight: 500;
    flex: 1;
}

.ai-feature-num {
    position: absolute;
    top: 16px;
    left: 16px;
    font-size: 11px;
    font-weight: 800;
    color: var(--fc-color, #3b82f6);
    background: var(--fc-soft, #eff6ff);
    padding: 3px 9px;
    border-radius: 100px;
    opacity: .85;
    letter-spacing: .5px;
}

.ai-feature-blue   { --fc-color: #3b82f6; --fc-soft: #eff6ff; --fc-border: #dbeafe; --fc-shadow: rgba(59,130,246,.28); }
.ai-feature-green  { --fc-color: #22c55e; --fc-soft: #f0fdf4; --fc-border: #dcfce7; --fc-shadow: rgba(34,197,94,.28); }
.ai-feature-purple { --fc-color: #a855f7; --fc-soft: #faf5ff; --fc-border: #f3e8ff; --fc-shadow: rgba(168,85,247,.28); }
.ai-feature-orange { --fc-color: #f59e0b; --fc-soft: #fffbeb; --fc-border: #fef3c7; --fc-shadow: rgba(245,158,11,.28); }
.ai-feature-red    { --fc-color: #ef4444; --fc-soft: #fef2f2; --fc-border: #fee2e2; --fc-shadow: rgba(239,68,68,.28); }
.ai-feature-teal   { --fc-color: #14b8a6; --fc-soft: #f0fdfa; --fc-border: #ccfbf1; --fc-shadow: rgba(20,184,166,.28); }
.ai-feature-indigo { --fc-color: #6366f1; --fc-soft: #eef2ff; --fc-border: #e0e7ff; --fc-shadow: rgba(99,102,241,.28); }
.ai-feature-pink   { --fc-color: #ec4899; --fc-soft: #fdf2f8; --fc-border: #fce7f3; --fc-shadow: rgba(236,72,153,.28); }

.ai-feature-card.ai-fc-in {
    animation: ai-fc-fade-up .65s cubic-bezier(.2,.8,.2,1) forwards;
}

@keyframes ai-fc-fade-up {
    to { opacity: 1; transform: translateY(0) scale(1); }
}

/* ═══════════════════════════════════════════════════════════
   RESPONSIVE — F/G/H
   ═══════════════════════════════════════════════════════════ */
@media (max-width: 900px) {
    .ai-features-grid.ai-fg-cols-4 { --ai-fg-cols: 2; }
}

@media (max-width: 640px) {
    .ai-hero-tldr { padding: 26px 20px 22px; border-radius: 18px; margin-bottom: 20px; }
    .ai-hero-tldr-title { font-size: 20px; }
    .ai-hero-tldr-stats { grid-template-columns: repeat(3, 1fr); gap: 8px; }
    .ai-hero-stat { padding: 14px 8px; border-radius: 12px; }
    .ai-hero-stat-value { font-size: 26px; }
    .ai-hero-stat-label { font-size: 10.5px; }
    .ai-hero-tldr-summary { font-size: 13px; padding: 14px 16px; }

    .ai-highlights { padding: 22px 18px 18px; border-radius: 16px; }
    .ai-highlights-title { font-size: 17px; }
    .ai-highlights-grid { grid-template-columns: 1fr; gap: 10px; }
    .ai-highlight-card { padding: 14px 15px; }

    .ai-features-grid { grid-template-columns: 1fr; gap: 10px; margin: 16px 0 20px 0; }
    .ai-feature-card { padding: 20px 18px; border-radius: 14px; }
    .ai-feature-icon { width: 48px; height: 48px; font-size: 22px; margin-bottom: 12px; }
    .ai-feature-title { font-size: 15px; }
    .ai-feature-text { font-size: 13px; }
}