:root {
    --primary-color: #DA291C;
    --primary-dark: #B81F14;
    --secondary-color: #2c3e50;
    --success-color: #27ae60;
    --danger-color: #DA291C;
    --warning-color: #f39c12;
    --light-bg: #f8f9fa;
    --dark-bg: #343a40;
    --text-dark: #2c3e50;
    --text-light: #6c757d;
    --border-radius: 12px;
    --box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

@font-face {
    font-family: 'Far_Casablanca';
    src: url('../css/fonts/Far_Casablanca.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}


body {
    font-family: 'Far_Casablanca';
    background: linear-gradient(145deg, #FFFFFF 0%, #FFF8F8 100%);
    color: #1A1A1A;
    line-height: 1.6;
    min-height: 100vh;
}

/* المان قرمز برای حس مک‌دونالد */
.mcd-red-bar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, #DA291C, #FF4D3B, #DA291C);
    z-index: 1000;
}

/* برای هدر یا فوتر می‌توانید از قرمز استفاده کنید */
.header {
    background: linear-gradient(135deg, #DA291C, #B81F14);
    color: white;
}

.app-container {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* Header Styles */
.main-header {
    background: linear-gradient(to right, 
        rgba(255, 255, 255, 1) 0%,
        rgba(255, 255, 255, 0.7) 30%,
        rgba(255, 255, 255, 0.01) 100%
    );
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    padding: 0.8rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: none;
}

.logo {
    pointer-events: visible;
    cursor: pointer;

}

.logo-image {
    width: 200px;
    height: auto;
}

.main-nav {
    display: flex;
    gap: 1.1rem;
    flex-wrap: wrap;
}

.nav-btn {
    background: transparent;
    border: none;
    font-size: 1.1rem;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    color: #000000;
    position: relative;
    letter-spacing: 0.5px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Far_Casablanca';
    width: 80px;
}



/* خط زیر دکمه زیبا */
.nav-btn::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 3px;
    background: linear-gradient(90deg, #DA291C, #FF6B5C);
    transition: width 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 3px;
}

/* حالت hover */
.nav-btn:hover {
    color: #DA291C;
}

.nav-btn:hover::after {
    width: 80%;
}

/* حالت active - ضخامت و رنگ یکسان */
.nav-btn.active {
    color: #DA291C;
}

.nav-btn.active::after {
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, #DA291C, #FF6B5C);
}

.nav-btn-login {
    background: transparent;
    border: 1px solid #DA291C;
    font-family: 'Far_Casablanca';
    padding: 0.55rem 1rem;
    border-radius: 10px;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    color: #DA291C;
    position: relative;
    letter-spacing: 0.5px;
}

.nav-btn-login-mobile {
    background: transparent;
    border: 1px solid #DA291C;
    font-family: 'Far_Casablanca';
    padding: 0.55rem 1rem;
    border-radius: 10px;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    color: #DA291C;
    position: relative;
    letter-spacing: 0.5px;
    display: none;
}




@media (max-width: 480px) {
    .nav-btn-login {
        display: none;
    }
    .nav-btn-login-mobile {
        display: block;
    }

    .logo {
        pointer-events: visible;
        cursor: pointer;
        right: 50px;
        position: relative;
    }
    
    .logo-image {
        width: 200px;
        height: auto;
    }
}



.mobile-menu-btn {
    display: none;
    flex-direction: column;
    cursor: pointer;
    right: 40px;
    position: absolute;
    justify-content: space-between;
    height: 21px;
    width: 30px;
    z-index: 99999;
    top: 35px;
    z-index: 99;
}



.mobile-menu-btn span {
    display: block;
    width: 100%;
    z-index: 99999;
    height: 3px;
    background: #DA291C;
    border-radius: 3px;
    transition: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

/* انیمیشن تبدیل به X */
.mobile-menu-btn.active span:nth-child(1) {
    transform: translateY(9px) rotate(45deg);
}

.mobile-menu-btn.active span:nth-child(2) {
    opacity: 0;
    transform: scaleX(0);
}

.mobile-menu-btn.active span:nth-child(3) {
    transform: translateY(-9px) rotate(-45deg);
}

/* نسخه موبایل */
@media (max-width: 768px) {
    .mobile-menu-btn {
        display: flex;
        z-index: 9999;
    }
    
    .main-nav {
        position: fixed;
        top: 0;
        right: -100%;
        width: 100%;
        max-width: 550px;
        height: 100vh;
        background: linear-gradient(135deg, rgba(255, 255, 255, 0.98) 0%, rgba(255, 245, 240, 0.98) 100%);
        backdrop-filter: blur(20px);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 2rem;
        border-radius: 0;
        transition: right 0.5s cubic-bezier(0.4, 0, 0.2, 1);
        z-index: 1000;
        padding: 2rem;
    }
    
    .main-nav.active {
        right: 0;
    }
    
    /* اوورلی تیره پشت منو */
    .nav-overlay {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0, 0, 0, 0.5);
        backdrop-filter: blur(4px);
        opacity: 0;
        visibility: hidden;
        transition: all 0.4s ease;
        z-index: 999;
    }
    
    .nav-overlay.active {
        opacity: 1;
        visibility: visible;
    }
    
    /* استایل دکمه‌ها در منوی موبایل */
    .main-nav .nav-btn {
        width: 80%;
        padding: 1rem;
        font-size: 1.2rem;
        /* افکت محو شدگی بسیار نرم از پایین */
        background: linear-gradient(0deg, 
        #DA291C 0%,
        transparent 10%,
        transparent 100%
        );
        transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        opacity: 0;
        transform: translateX(30px);
    }
    
    .main-nav.active .nav-btn {
        opacity: 1;
        transform: translateX(0);
        transition-delay: calc(0.05s * var(--i, 0));
    }
    

    

}


.loading {
    text-align: center;
    padding: 3rem;
    font-size: 1.2rem;
    color: white;
}

/* Plans Grid */
.plans-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.plan-card {
    background: white;
    border-radius: var(--border-radius);
    padding: 2rem;
    text-align: center;
    transition: var(--transition);
    box-shadow: var(--box-shadow);
    position: relative;
    overflow: hidden;
}

.plan-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.plan-card.popular {
    border: 2px solid var(--primary-color);
}

.plan-card.popular::before {
    content: "محبوب‌ترین";
    position: absolute;
    top: 20px;
    right: -30px;
    background: var(--primary-color);
    color: white;
    padding: 0.25rem 2rem;
    transform: rotate(45deg);
    font-size: 0.8rem;
}

.plan-name {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--secondary-color);
    margin-bottom: 1rem;
}

.plan-price {
    font-size: 2rem;
    color: var(--primary-color);
    font-weight: bold;
    margin: 1rem 0;
}

.plan-price small {
    font-size: 0.9rem;
    color: var(--text-light);
}

.plan-features {
    list-style: none;
    margin: 1.5rem 0;
}

.plan-features li {
    padding: 0.5rem 0;
    color: var(--text-light);
}

.plan-btn {
    background: var(--primary-color);
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: var(--border-radius);
    cursor: pointer;
    font-size: 1rem;
    transition: var(--transition);
    width: 100%;
}

.plan-btn:hover {
    background: var(--primary-dark);
    transform: scale(1.05);
}

/* Domain Toggle */
.domain-toggle {
    background: var(--light-bg);
    padding: 1rem;
    border-radius: var(--border-radius);
    margin: 1rem 0;
}

.domain-toggle label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
}

.domain-input {
    margin-top: 1rem;
    padding: 0.75rem;
    border: 1px solid #ddd;
    border-radius: var(--border-radius);
    font-size: 1rem;
    width: 100%;
}






.btn {
    background: var(--primary-color);
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: var(--border-radius);
    cursor: pointer;
    font-size: 1rem;
    transition: var(--transition);
    width: 100%;
}

.btn:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
}

.btn-secondary {
    background: var(--secondary-color);
}

.error-message {
    background: var(--danger-color);
    color: white;
    padding: 0.75rem;
    border-radius: var(--border-radius);
    margin-bottom: 1rem;
    display: none;
}

.success-message {
    background: var(--success-color);
    color: white;
    padding: 0.75rem;
    border-radius: var(--border-radius);
    margin-bottom: 1rem;
    display: none;
}

/* Dashboard Layout */
.dashboard-layout {
    display: flex;
    gap: 2rem;
}

.dashboard-sidebar {
    width: 280px;
    background: white;
    border-radius: var(--border-radius);
    padding: 1.5rem;
    box-shadow: var(--box-shadow);
}

.dashboard-sidebar ul {
    list-style: none;
}

.dashboard-sidebar li {
    padding: 0.75rem 1rem;
    margin: 0.5rem 0;
    cursor: pointer;
    border-radius: var(--border-radius);
    transition: var(--transition);
}

.dashboard-sidebar li:hover {
    background: var(--light-bg);
    color: var(--primary-color);
}

.dashboard-sidebar li.active {
    background: var(--primary-color);
    color: white;
}

.dashboard-content {
    flex: 1;
    background: white;
    border-radius: var(--border-radius);
    padding: 1.5rem;
    box-shadow: var(--box-shadow);
}

/* Projects Grid */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
    margin-top: 1.5rem;
}

.project-card {
    background: linear-gradient(135deg, #fff 0%, #f8f9fa 100%);
    border-radius: var(--border-radius);
    overflow: hidden;
    transition: var(--transition);
    cursor: pointer;
    border: 1px solid #e0e0e0;
    position: relative;
}

.project-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--box-shadow);
}

.project-card.two-color {
    background: linear-gradient(135deg, var(--primary-color) 0%, #fff 100%);
}

.project-logo {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 50%;
    margin: 1rem auto;
    display: block;
}

.project-info {
    padding: 1rem;
    text-align: center;
}

.project-name {
    font-size: 1.2rem;
    font-weight: bold;
    margin-bottom: 0.5rem;
}

.project-domain {
    color: var(--text-light);
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.project-actions {
    display: flex;
    gap: 0.5rem;
    padding: 0.5rem 1rem 1rem;
}

.project-actions button {
    flex: 1;
    padding: 0.5rem;
    border: none;
    border-radius: var(--border-radius);
    cursor: pointer;
    transition: var(--transition);
}

.btn-edit {
    background: var(--warning-color);
    color: white;
}

.btn-delete {
    background: var(--danger-color);
    color: white;
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 2000;
    justify-content: center;
    align-items: center;
}

.modal-content {
    background: white;
    padding: 2rem;
    border-radius: var(--border-radius);
    max-width: 500px;
    width: 90%;
    max-height: 80vh;
    overflow-y: auto;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.modal-close {
    font-size: 1.5rem;
    cursor: pointer;
}

/* OTP Timer */
.otp-timer {
    text-align: center;
    padding: 0.5rem;
    background: var(--light-bg);
    border-radius: var(--border-radius);
    margin: 1rem 0;
    color: var(--primary-color);
    font-weight: bold;
}

.resend-btn {
    background: transparent;
    border: 1px solid var(--primary-color);
    color: var(--primary-color);
    padding: 0.5rem;
    border-radius: var(--border-radius);
    cursor: pointer;
    width: 100%;
    margin-top: 0.5rem;
}

.resend-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Support Page */
.support-info {
    text-align: center;
    padding: 2rem;
}

.support-contact {
    background: white;
    border-radius: var(--border-radius);
    padding: 2rem;
    margin: 2rem 0;
}

.social-buttons {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-top: 1rem;
    flex-wrap: wrap;
}

.social-btn {
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: var(--border-radius);
    cursor: pointer;
    color: white;
    font-size: 1rem;
    transition: var(--transition);
}

.social-btn.instagram {
    background: #E4405F;
}

.social-btn.telegram {
    background: #0088cc;
}

.social-btn.twitter {
    background: #1DA1F2;
}

.social-btn.linkedin {
    background: #0077b5;
}

/* Responsive */
@media (max-width: 768px) {
    .main-nav {
        display: none;
        width: 100%;
        flex-direction: column;
        margin-top: 0;
    }
    
    .main-nav.active {
        display: flex;
    }
    
    .mobile-menu-btn {
        display: flex;
    }
    
    .dashboard-layout {
        flex-direction: column;
    }
    
    .dashboard-sidebar {
        width: 100%;
    }
    
    .plans-grid {
        grid-template-columns: 1fr;
    }
    

}

/* Footer */
.main-footer {
    position: relative;
    left: 50%;
    width: 100%;
    height: 200px;
    transform: translateX(-50%);
    bottom: 0;
    background: linear-gradient(145deg, #FFF8F8 0%, #FFFFFF 100%);
    color: rgb(0, 0, 0);
    text-align: center;
    padding: 1rem;
    opacity: 1;
    z-index: 3;
}


.footer-link {
    color: #DA291C;
    text-decoration: none;
    transition: all 0.3s ease;
    font-weight: 500;
    font-size: 25px;
    opacity: 1;
}

.footer-link:hover {
    color: #B81F14;
    text-decoration: underline;
}
















@keyframes fadeInUp {
    0% {
        opacity: 0;
        transform: translateY(20px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeOutDown {
    0% {
        opacity: 1;
        transform: translateY(0);
    }
    100% {
        opacity: 0;
        transform: translateY(-20px);
    }
}

/* استایل‌های صفحه fullmenu */
.about-fullmenu {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.about-fullmenu h2 {
    color: #DA291C;
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
}

.about-fullmenu p {
    font-size: 1.2rem;
    line-height: 1.8;
    color: #333;
    margin-bottom: 2rem;
}

.features-list {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1.5rem;
    margin-top: 2rem;
}

.features-list p {
    background: linear-gradient(135deg, #DA291C10, #FFFFFF);
    padding: 0.75rem 1.5rem;
    border-radius: 50px;
    border: 1px solid #DA291C20;
    font-size: 1rem;
    margin: 0;
}

/* ادامه استایل‌های قبلی شما */















/* انیمیشن‌های صفحه */
.page-content {
    width: 100%;
    margin: 0 auto;
    display: none;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.4s ease, transform 0.4s ease;
}

.page-content.active-page {
    display: block;  /* ✅ تغییر از flex به block برای اسلایدر */
    animation: fadeInUp 0.5s ease forwards;
}

/* صفحه fullmenu باید به صورت column باشد */
#fullmenu-page.active-page {
    display: block;
}





































/* صفحه تعرفه‌ها */
.plans-container {
    max-width: 900px;
    margin: 0 auto;
    margin-bottom: 100px;
    margin-top: 50px;
}

.plans-title {
    text-align: center;
    color: #DA291C;
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.plans-subtitle {
    text-align: center;
    color: #666;
    margin-bottom: 2rem;
}

/* سوییچ دوره */
.plan-switch-container {
    display: flex;
    justify-content: center;
    margin-bottom: 2rem;
}

.plan-switch {
    background: #f0f0f0;
    border-radius: 50px;
    padding: 5px;
    display: inline-flex;
    gap: 5px;
}

.plan-option {
    padding: 12px 32px;
    border: none;
    border-radius: 50px;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    background: transparent;
    font-family: 'Far_Casablanca';
    position: relative;
}

.plan-option.active {
    background: #DA291C;
    color: white;
    box-shadow: 0 4px 15px rgba(218, 41, 28, 0.3);
}

.discount-badge {
    position: absolute;
    top: -10px;
    right: 5px;
    background: #27ae60;
    color: white;
    font-size: 0.7rem;
    padding: 2px 8px;
    border-radius: 20px;
    white-space: nowrap;
}

/* باکس اصلی */
.main-plan-card {
    background: white;
    border-radius: 24px;
    padding: 2rem;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(218, 41, 28, 0.2);
}



.plan-price-currency {
    font-size: 1rem;
    color: #666;
    margin-left: 5px;
}

.plan-price-amount {
    font-size: 3rem;
    font-weight: bold;
    color: #DA291C;
}

.plan-price-period {
    font-size: 1rem;
    color: #666;
    margin-right: 5px;
}

/* گرید ویژگی‌ها */
.plan-features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px;
    background: #f8f9fa;
    border-radius: 12px;
    transition: all 0.3s ease;
}

.feature-item:hover {
    background: #fff0f0;
    transform: translateX(-5px);
}

.feature-item svg {
    flex-shrink: 0;
}

.feature-item span {
    font-size: 0.95rem;
    color: #333;
}

/* امکانات اضافی */
.extra-features {
    background: #f8f9fa;
    border-radius: 16px;
    padding: 1.5rem;
    margin: 1.5rem 0;
}

.extra-title {
    font-weight: bold;
    color: #DA291C;
    margin-bottom: 1rem;
    font-size: 0.9rem;
}

.extra-items {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.extra-tag {
    background: white;
    padding: 6px 14px;
    border-radius: 30px;
    font-size: 0.85rem;
    color: #555;
    border: 1px solid #ddd;
    transition: all 0.3s ease;
}

.extra-tag:hover {
    border-color: #DA291C;
    color: #DA291C;
}

/* دکمه خرید */
.plan-purchase-btn {
    width: 100%;
    background: transparent;
    color: white;
    border: none;
    font-size: 1rem;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Far_Casablanca';
}



.plan-note {
    text-align: center;
    font-size: 0.8rem;
    color: #999;
    margin-top: 1rem;
}

/* ریسپانسیو */
@media (max-width: 768px) {
    .plan-price-amount {
        font-size: 2rem;
    }
    
    .plan-option {
        padding: 8px 20px;
        font-size: 0.9rem;
    }
    
    .plan-features-grid {
        grid-template-columns: 1fr;
    }
    
    .main-plan-card {
        padding: 1.5rem;
    }
}


.plan-price-section {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
    direction: ltr;
}

/* سوییچ دوره - سمت چپ */
.plan-switch-container {
    order: 1;
}

/* بخش قیمت - سمت راست */
.price-wrapper {
    display: flex;
    order: 2;
    direction: ltr;
}

.plan-price-currency {
    font-size: 1rem;
    color: #666;
    margin-left: 5px;
}

.plan-price-amount {
    font-size: 2.5rem;
    font-weight: bold;
    color: #DA291C;
}

.plan-price-period {
    font-size: 1rem;
    color: #666;
    margin-right: 5px;
}

/* تنظیم سوییچ */
.plan-switch {
    background: #f0f0f0;
    border-radius: 50px;
    padding: 5px;
    display: inline-flex;
    gap: 5px;
    direction: rtl;
}

.plan-option {
    padding: 10px 24px;
    border: none;
    border-radius: 50px;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s ease;
    background: transparent;
    font-family: 'Far_Casablanca';
    position: relative;
}

.plan-option.active {
    background: #DA291C;
    color: white;
    box-shadow: 0 4px 15px rgba(218, 41, 28, 0.3);
}

.discount-badge {
    position: absolute;
    top: -10px;
    right: 45px;
    background: #ff453f;
    color: white;
    font-size: 0.65rem;
    padding: 2px 6px;
    border-radius: 20px;
    white-space: nowrap;
}

/* ریسپانسیو برای موبایل */
@media (max-width: 768px) {
    .plan-price-section {
        flex-direction: column;
        align-items: stretch;
        text-align: center;
    }
    
    .plan-switch-container {
        order: 0;
        display: flex;
        justify-content: center;
    }
    
    .price-wrapper {
        order: 1;
        text-align: center;
    }
    
    .plan-price-amount {
        font-size: 2rem;
    }
}


























/* صفحه دمو - وسط چین افقی */
.demo-form-container {
    max-width: 300px;
    margin: 0 auto;
    background: transparent;
    margin-top: 50px;
}

.demo-form {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
}

.form-group {
    width: 100%;
    margin-bottom: 1.5rem;
    justify-content: center;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: #333;
    text-align: right;
}

.form-group input {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #e0e0e0;
    border-radius: 12px;
    font-size: 1rem;
    transition: all 0.3s ease;
    font-family: 'Far_Casablanca';
    box-sizing: border-box;
    justify-content: center;
    direction: rtl;

}

.form-group input:focus {
    outline: none;
    border-color: #DA291C;
    box-shadow: 0 0 0 3px rgba(218, 41, 28, 0.1);
}

.demo-form p {
    text-align: center;
    color: #666;
    margin: 1rem 0;
    font-size: 0.9rem;
}

.btn-submit-demo {
    display: inline-block;
    margin-top: 10px;
    padding: 12px 30px;
    border-radius: 50px;
    text-decoration: none;
    transition: all 0.3s ease;
    background: linear-gradient(135deg, #DA291C, #FF4D3B);
    color: white;
    border: none;
    font-family: 'Far_Casablanca';
    font-size: 0.9rem;
    cursor: pointer;
    pointer-events: visible;
}



















/* صفحه پشتیبانی مدرن */
.support-modern-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
    animation: fadeInUp 0.6s ease-out;
    margin-bottom: 100px;
}

/* هدر */
.support-header {
    text-align: center;
    animation: slideDown 0.5s ease-out;
}

.support-icon-animation {
    display: inline-flex;
    animation: pulse 2s infinite;
    margin-bottom: 1rem;
}

.support-title {
    font-size: 2rem;
    color: #DA291C;
}

.support-subtitle {
    color: #666;
    font-size: 1rem;
}

/* کارت اطلاعات */
.support-cards {
    display: flex;
    justify-content: center;
    margin-bottom: 3rem;
}

.support-card {
    background: linear-gradient(135deg, #DA291C, #B81F14);
    border-radius: 24px;
    padding: 1.5rem 2rem;
    display: flex;
    align-items: center;
    gap: 1.5rem;
    box-shadow: 0 20px 40px rgba(218, 41, 28, 0.3);
    transition: all 0.3s ease;
    animation: scaleIn 0.5s ease-out 0.2s both;
}

.support-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 30px 50px rgba(218, 41, 28, 0.4);
}

.card-icon {
    background: rgba(255, 255, 255, 0.2);
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.card-content {
    text-align: right;
}

.card-label {
    display: block;
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 0.25rem;
}

.phone-number {
    font-size: 1.8rem;
    font-weight: bold;
    color: white;
    text-decoration: none;
    letter-spacing: 2px;
    direction: ltr;
    display: inline-block;
}

.card-note {
    display: block;
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.7);
    margin-top: 0.25rem;
}



.social-title {
    text-align: center;
    font-size: 1.3rem;
    color: #333;
    margin-bottom: 2rem;
    position: relative;
}

.social-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 40%;
    height: 3px;
    background: #DA291C;
    border-radius: 3px;
}

.social-section {
    text-align: center;
}

.social-grid {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 2rem;
    flex-wrap: wrap;
}

.social-platform {
    background: white;
    border-radius: 16px;
    padding: 1rem;
    text-decoration: none;
    transition: all 0.3s ease;
    border: 1px solid #eee;
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 150px;
    height: 150px;
    box-sizing: border-box;
    direction: ltr;
}

.social-platform:nth-child(1) { animation-delay: 0.1s; }
.social-platform:nth-child(2) { animation-delay: 0.15s; }
.social-platform:nth-child(3) { animation-delay: 0.2s; }
.social-platform:nth-child(4) { animation-delay: 0.25s; }
.social-platform:nth-child(5) { animation-delay: 0.3s; }
.social-platform:nth-child(6) { animation-delay: 0.35s; }

.social-platform:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.platform-icon {
    width: 60px;
    height: 60px;
    margin: 0 auto 1rem;
}

.platform-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}


.platform-follow {
    display: block;
    font-size: 0.8rem;
    color: #DA291C;
}

/* رنگ‌های خاص هر پلتفرم در hover */
.social-platform.instagram:hover {
    background: linear-gradient(135deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888);
    border-color: transparent;
}
.social-platform.instagram:hover .platform-name,
.social-platform.instagram:hover .platform-follow {
    color: white;
}

.social-platform.telegram:hover {
    background: #0088cc;
    border-color: transparent;
}
.social-platform.telegram:hover .platform-name,
.social-platform.telegram:hover .platform-follow {
    color: white;
}

.social-platform.twitter:hover {
    background: #1DA1F2;
    border-color: transparent;
}
.social-platform.twitter:hover .platform-name,
.social-platform.twitter:hover .platform-follow {
    color: white;
}

.social-platform.linkedin:hover {
    background: #0077b5;
    border-color: transparent;
}
.social-platform.linkedin:hover .platform-name,
.social-platform.linkedin:hover .platform-follow {
    color: white;
}

.social-platform.whatsapp:hover {
    background: #25D366;
    border-color: transparent;
}
.social-platform.whatsapp:hover .platform-name,
.social-platform.whatsapp:hover .platform-follow {
    color: white;
}

.social-platform.email:hover {
    background: #ea4335;
    border-color: transparent;
}
.social-platform.email:hover .platform-name,
.social-platform.email:hover .platform-follow {
    color: white;
}

/* بخش امنیت */
.security-badge {
    text-align: center;
    padding: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    color: #27ae60;
    font-size: 0.9rem;
    border-top: 1px solid #eee;
    padding-top: 2rem;
    animation: fadeInUp 0.5s ease-out 0.4s both;
}

/* انیمیشن‌ها */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

/* ریسپانسیو */
@media (max-width: 768px) {
    .support-modern-container {
        padding: 1rem;
    }
    
    .support-card {
        flex-direction: column;
        text-align: center;
        padding: 1.5rem;
    }
    
    .phone-number {
        font-size: 1.3rem;
    }
    
    .social-grid {
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
        gap: 1rem;
    }
    
    .social-platform {
        padding: 1rem;
    }
    
    .platform-icon {
        width: 45px;
        height: 45px;
    }


    .nav-btn-login {
        position: fixed;
        left: 30px;
        top: 30px;
    }
    .main-nav {
        align-items: center;
        background: linear-gradient(35deg, #ffbb96 0%, #ffffff 50%, #ffffff 100%);
        backdrop-filter: blur(0px);
        padding: 1rem 1.5rem;
        border-radius: 0 20px 20px 20px;        
        border-bottom: 2px solid transparent;
        border-image: linear-gradient(90deg, 
            transparent 0%, 
            #ffffff 30%, 
            #DA291C 100%
        );
        border-image-slice: 1;
    }

}






/* نسخه کامل‌تر با حفظ استایل دکمه */
@media (max-width: 768px) {
    .main-nav .nav-btn[data-page="fullmenu"] {
        display: inline-flex !important;
        align-items: center;
        justify-content: center;
    }

    .main-nav .nav-btn[data-page="login"] {
        display: inline-flex !important;
        align-items: center;
        justify-content: center;
    }
}

























/* استایل قوانین و مقررات */
.terms-container {
    margin: 20px 0;
    direction: rtl;
}

.custom-checkbox {
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    user-select: none;
    font-size: 14px;
}

/* مخفی کردن چک‌باکس اصلی */
.terms-checkbox-input {
    display: none;
}

/* باکس چک‌باکس سفارشی */
.checkbox-box {
    position: relative;
    width: 24px;
    height: 24px;
    background: white;
    border: 2px solid #ddd;
    border-radius: 8px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    flex-shrink: 0;
}

/* تیک داخل باکس */
.checkbox-tick {
    position: absolute;
    width: 0;
    height: 0;
    background: #DA291C;
    border-radius: 50%;
    transition: all 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

/* استایل اسپینر */
.checkbox-tick.spinner {
    width: 16px;
    height: 16px;
    background: transparent;
    border: 2px solid #DA291C;
    border-top: 2px solid transparent;
    border-radius: 50%;
    animation: spin 0.6s linear infinite;
}

/* انیمیشن اسپینر */
@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* استایل تیک قرمز */
.checkbox-tick.tick {
    width: 12px;
    height: 6px;
    background: transparent;
    border-right: 3px solid #DA291C;
    border-bottom: 3px solid #DA291C;
    transform: rotate(45deg);
    border-radius: 0;
    animation: tickAppear 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

@keyframes tickAppear {
    0% {
        width: 0;
        height: 0;
        opacity: 0;
    }
    100% {
        width: 12px;
        height: 6px;
        opacity: 1;
    }
}

/* استایل چک‌شده */
.custom-checkbox.checked .checkbox-box {
    border-color: #DA291C;
    background: #fff5f0;
}

/* متن قوانین */
.terms-text {
    color: #555;
    line-height: 1.4;
}

.terms-link {
    color: #DA291C;
    text-decoration: none;
    font-weight: bold;
    transition: all 0.2s ease;
}

.terms-link:hover {
    text-decoration: underline;
    color: #b82218;
}

/* دکمه ارسال غیرفعال */
.btn-submit-demo:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

.btn-submit-demo:disabled:hover {
    transform: none;
    box-shadow: none;
}


/* افکت ripple برای دکمه ارسال */
.btn-submit-demo {
    position: relative;
    overflow: hidden;
}

.btn-submit-demo::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.btn-submit-demo:active::after {
    width: 300px;
    height: 300px;
}




















































/* ========== صفحه دمو با چیدمان جدید ========== */
.demo-container {
    display: flex;
    gap: 40px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
    align-items: flex-start;
}

/* بخش مدل‌های منو - سمت چپ */
.menu-models-section {
    flex: 1.2;
    min-width: 0;
}

.models-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 24px;
    text-align: center;
}

.models-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
}

.model-card {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px 20px;
    background: #f8f8f8;
    border-radius: 12px;
    text-decoration: none;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    cursor: pointer;
}

.model-card:hover {
    border-color: #DA291C;
    transform: translateX(5px);
}

.model-card:active {
    transform: scale(0.98);
}

.model-icon {
    font-size: 2rem;
    line-height: 1;
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.model-name {
    font-size: 1rem;
    font-weight: 600;
    color: #1a1a1a;
    display: block;
}

.model-desc {
    font-size: 0.85rem;
    color: #666;
    display: block;
    margin-top: 2px;
}

/* بخش دموی رایگان - سمت راست */
.demo-form-container {
    flex: 1;
    background: white;
    padding: 40px 35px;
    border-radius: 16px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
    border: 1px solid #eee;
    min-width: 0;
}

.demo-title {
    font-size: 1.8rem;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 30px;
    text-align: center;
}

/* ===== واکنش‌گرایی موبایل ===== */
@media (max-width: 768px) {
    .demo-container {
        flex-direction: column;
        gap: 30px;
        padding: 20px 15px;
    }

    .menu-models-section {
        width: 100%;
        order: 1; /* مدل‌ها پایین */
    }

    .demo-form-container {
        width: 100%;
        order: 0; /* فرم بالا */
        padding: 30px 20px;
    }

    .models-grid {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .model-card {
        padding: 14px 16px;
    }

    .model-icon {
        width: 40px;
        height: 40px;
        font-size: 1.5rem;
    }

    .model-name {
        font-size: 0.95rem;
    }

    .model-desc {
        font-size: 0.8rem;
    }

    .demo-title {
        font-size: 1.5rem;
    }
}

/* ===== واکنش‌گرایی تبلت ===== */
@media (min-width: 769px) and (max-width: 1024px) {
    .demo-container {
        gap: 30px;
        padding: 30px 20px;
    }

    .menu-models-section {
        flex: 1;
    }

    .demo-form-container {
        flex: 0.8;
        padding: 30px 25px;
    }

    .model-card {
        padding: 14px 18px;
    }
}

/* ===== انیمیشن‌ها ===== */
.model-card {
    animation: fadeInUp 0.5s ease forwards;
    opacity: 0;
}

.model-card:nth-child(1) { animation-delay: 0.05s; }
.model-card:nth-child(2) { animation-delay: 0.1s; }
.model-card:nth-child(3) { animation-delay: 0.15s; }
.model-card:nth-child(4) { animation-delay: 0.2s; }
.model-card:nth-child(5) { animation-delay: 0.25s; }

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(15px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ===== بهبود استایل فرم ===== */
.demo-form .form-group {
    margin-bottom: 20px;
}

.demo-form .form-group label {
    display: block;
    margin-bottom: 6px;
    font-weight: 600;
    color: #1a1a1a;
    font-size: 0.95rem;
}

.demo-form .form-group input {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
    background: #fafafa;
    font-family: inherit;
}

.demo-form .form-group input:focus {
    outline: none;
    border-color: #DA291C;
    background: white;
    box-shadow: 0 0 0 4px rgba(218, 41, 28, 0.1);
}

.terms-container {
    margin: 24px 0;
}

.custom-checkbox {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    cursor: pointer;
}

.terms-checkbox-input {
    display: none;
}

.checkbox-box {
    width: 22px;
    height: 22px;
    border: 2px solid #ccc;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: all 0.3s ease;
    background: white;
    margin-top: 1px;
}

.checkbox-tick {
    width: 12px;
    height: 12px;
    background: #DA291C;
    border-radius: 3px;
    opacity: 0;
    transform: scale(0);
    transition: all 0.3s ease;
}

.terms-checkbox-input:checked + .checkbox-box {
    border-color: #DA291C;
    background: #DA291C;
}

.terms-checkbox-input:checked + .checkbox-box .checkbox-tick {
    opacity: 1;
    transform: scale(1);
    background: white;
}

.terms-text {
    font-size: 0.9rem;
    color: #333;
    line-height: 1.5;
}

.terms-link {
    color: #DA291C;
    text-decoration: none;
    font-weight: 600;
}

.terms-link:hover {
    text-decoration: underline;
}

.btn-submit-demo {
    width: 100%;
    padding: 14px;
    background: #DA291C;
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: inherit;
}

.btn-submit-demo:hover:not(:disabled) {
    background: #c41f13;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(218, 41, 28, 0.3);
}

.btn-submit-demo:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none !important;
}

.btn-submit-demo:active:not(:disabled) {
    transform: translateY(0) scale(0.98);
}







.enamad-fixed {
    position: absolute;
    z-index: 999;
    padding: 50px;
    transition: all 0.3s ease;
}

.enamad-fixed img {
    width: 70px;
    height: auto;
    display: block;
    filter: grayscale(100%) brightness(1.2);
    transition: all 0.3s ease;
    cursor: pointer;
}

/* افکت هاور */
.enamad-fixed:hover {
    transform: translateY(-4px);
}

.enamad-fixed:hover img {
    filter: grayscale(0%) brightness(1);
    transform: scale(1.05);
}




















































/* Preloader */
#preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(251, 247, 240, 0.95);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    transition: opacity 0.6s ease;
    opacity: 1;
    pointer-events: none;
}
#preloader.hidden {
    opacity: 0;
}
#loader-bar {
    width: 250px;
    height: 6px;
    background: #ddd;
    border-radius: 10px;
    overflow: hidden;
    margin-top: 20px;
}
#loader-fill {
    width: 0%;
    height: 100%;
    background: #b8860b;
    border-radius: 10px;
    transition: width 0.3s ease;
}
#loader-text {
    font-size: 20px;
    font-weight: bold;
    color: #5a3e1b;
    direction: ltr;
}

/* ====== ویدیو با position: fixed - کاملاً ثابت ====== */
.video-fixed {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: auto;
    z-index: 1;
    background: #000;
    overflow: hidden;
}
.video-fixed video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* ====== Overlay روی ویدیو - سمت چپ ====== */
.video-overlay {
    position: absolute;
    top: 0;
    right: 0;
    width: 100%;
    z-index: 3;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-end;
    padding: 40px 150px;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.8s ease;
    background: linear-gradient(to right, rgba(0,0,0,0.4) 0%, rgba(0,0,0,0) 60%);
}
.video-overlay.show {
    opacity: 1;
}
.video-overlay h2 {
    font-size: 2.6rem;
    font-weight: 400;
    color: #ffffff;
    text-shadow: 0 2px 12px rgba(0,0,0,0.7);
    line-height: 1.4;
    max-width: 50%;
    text-align: right;
    margin-left: 150px;
}
.video-overlay h2 .typewriter {
    display: inline;
    border-right: 2px solid #ffd700;
    animation: blink-caret 0.75s step-end infinite;
}
@keyframes blink-caret {
    from, to { border-color: transparent; }
    50% { border-color: #ffd700; }
}
.video-overlay .logo-overlay {
    margin-top: 15px;
    opacity: 0;
    transition: opacity 0.6s ease 0.3s;
}
.video-overlay .logo-overlay.show {
    opacity: 1;
}
.video-overlay .logo-overlay img {
    max-height: 100px;
    width: auto;
    filter: drop-shadow(0 2px 8px rgba(0,0,0,0.5));
}

/* ====== بخش پایینی - با فاصله از ویدیو ====== */
.content-wrapper {
    position: relative;
    z-index: 2;
    margin-top: 130vh;
    background: #fff;
}

/* ====== Footer image ====== */
.footer-image-wrap {
    width: 100%;
    margin: 0 auto;
    background: #fff;
}
.footer-image-wrap img {
    width: 100%;
    height: auto;
    display: block;
    transform: translateY(-360px);
    margin-bottom: -100px;
    pointer-events: none;
}

/* ====== باکس‌های مربعی 1:1 ====== */
.boxes-section {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
    background: #fff;
    border-bottom: 1px solid red;

}

.box-row {
    display: flex;
    justify-content: center;
    gap: 50px;
    margin-bottom: 50px;
    flex-wrap: wrap;
}

.box-item {
    width: calc(50% - 25px);
    max-width: 350px;
    aspect-ratio: 9/16;
    background: #fff7ed;
    border-radius: 61px;  /* ≈ 61.4px */
    overflow: hidden;
    display: flex;
    flex-direction: column;
    opacity: 0;
    transition: all 0.8s cubic-bezier(0.2, 0.9, 0.3, 1);
}

/* باکس سمت راست - از راست میاد */
.box-item.right {
    transform: translateX(120px);
}
.box-item.right.visible {
    opacity: 1;
    transform: translateX(0);
}

/* باکس سمت چپ - از چپ میاد */
.box-item.left {
    transform: translateX(-120px);
}
.box-item.left.visible {
    opacity: 1;
    transform: translateX(0);
}

/* ====== بخش تصویر/ویدیو ====== */
.box-img {
    flex: 4;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    overflow: hidden;
    position: relative;
}

/* استایل برای تصاویر */
.box-img img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

/* استایل برای ویدیوها */
.box-img video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* مخفی کردن کنترل‌های ویدیو */
.box-img video::-webkit-media-controls {
    display: none !important;
}
.box-img video::-webkit-media-controls-enclosure {
    display: none !important;
}
.box-img video::-webkit-media-controls-panel {
    display: none !important;
}
.box-img video::-webkit-media-controls-play-button {
    display: none !important;
}
.box-img video::-webkit-media-controls-start-playback-button {
    display: none !important;
}

/* ====== متن پایین باکس ====== */
.box-text {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 10px 20px;
    background: rgba(218, 41, 28, 0.08);
    min-height: 80px;
}

.box-text p {
    font-size: 1.4rem;
    color: #2c1f0e; /* یا #333333 یا #1a1a1a */
    margin-bottom: 2px;
}

.box-text small {
    font-size: 1rem;
    color: #555555; /* یا #666666 یا #7a5f3a */
    line-height: 1.4;
}

/* ====== Video Section - تمام عرض ====== */
.gif-section {
    width: 100%;
    max-width: 600px;
    margin: 0 auto;
    padding: 0 0 40px 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 30px;
    background: #fff;
    position: relative;
    border-left: 1px solid #DA291C;
    border-right: 1px solid #DA291C;
}



/* خط پایین منحنی */
.gif-section::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 100%;
    height: 4px;
    background: #DA291C;
    border-radius: 50% 50% 0 0 / 100% 100% 0 0;
    transform: scaleX(0.85);
}

.gif-right {
    width: 100%;
    opacity: 0;
    transform: translateY(60px);
    transition: all 0.9s ease 0.2s;
    padding: 0;
}

.gif-right.show {
    opacity: 1;
    transform: translateY(0);
}

.gif-right video {
    width: 100%;
    max-width: 600px;
    height: auto;
    aspect-ratio: 16/9;
    object-fit: cover;
    display: block;
    margin: 0 auto;
}

.gif-left {
    width: 100%;
    max-width: 800px;
    opacity: 0;
    transform: translateY(80px);
    transition: all 0.9s ease;
    text-align: center;
    padding: 0 20px;
}

.gif-left.show {
    opacity: 1;
    transform: translateY(0);
}

.gif-left p {
    font-size: 1.1rem;
    line-height: 1.9;
    color: #000000;
}

.gif-left .typewriter-gif {
    border-right: 2px solid #b8860b;
    animation: blink-caret 0.75s step-end infinite;
}

/* ====== موبایل ====== */
@media (max-width: 768px) {
    .gif-section {
        padding: 0 0 60px 0;
        gap: 20px;
    }
    
    .gif-right {
        padding: 0;
    }
    
    .gif-right video {
        aspect-ratio: 16/9;
        border-radius: 0;
    }
    
    .gif-left p {
        font-size: 1rem;
        line-height: 1.7;
    }
    
    .gif-left {
        padding: 0 15px;
    }
}

@media (max-width: 480px) {
    .gif-section {
        padding: 20px 0 40px 0;
        gap: 15px;
    }
    
    .gif-left p {
        font-size: 0.9rem;
        line-height: 1.6;
    }
}

/* ====== موبایل ====== */
@media (max-width: 768px) {
    .video-fixed {
        height: 70vh;
    }
    .video-fixed video {
        object-fit: cover;
        object-position: right right;
    }
    .video-overlay {
        padding: 20px 25px;
        justify-content: flex-end;
        padding-bottom: 40px;
        background: linear-gradient(to top, rgba(0,0,0,0.5) 0%, rgba(0,0,0,0) 70%);
    }
    .video-overlay h2 {
        font-size: 1.2rem;
        width: 100%;
        text-shadow: 0 2px 12px rgba(0,0,0,0.8);
        margin-left: 0;
    }
    .video-overlay .logo-overlay img {
        max-height: 45px;
    }
    .content-wrapper {
        margin-top: 70vh;
    }
    .footer-image-wrap img {
        transform: translateY(-170px);
        margin-bottom: -60px;
    }

    /* باکس‌ها در موبایل: هر ردیف یک باکس */
    .box-row {
        gap: 30px;
        margin-bottom: 30px;
    }
    .box-item {
        width: 100%;
        aspect-ratio: 9/16;
    }
    .box-item.right,
    .box-item.left {
        transform: translateX(0) translateY(60px);
    }
    .box-item.right.visible,
    .box-item.left.visible {
        transform: translateX(0) translateY(0);
    }
    .box-img {
        padding: 15px;
    }
    .box-img video {
        object-fit: cover;
    }
    .box-text p {
        font-size: 0.9rem;
    }
    .box-text small {
        font-size: 0.75rem;
    }

    .gif-section {
        flex-direction: column;
        padding: 20px;
    }
    .gif-right {
        order: -1;
        width: 100%;
    }
    .gif-right img {
        max-width: 100%;
    }
    .gif-left {
        width: 100%;
    }
}

@media (max-width: 480px) {
    .video-overlay h2 {
        font-size: 1rem;
    }

    .box-text p {
        font-size: 1.1rem;
    }
    .box-text small {
        font-size: 0.9rem;
    }

    .footer-image-wrap img {
        transform: translateY(-130px);
        margin-bottom: -140px;
    }
}