/*
Theme Name: Cuttlas
Author: Sina Sotoudeh
Description: قالب اختصاصی صدرشاپ
Version: 1.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: SadrShop
*/

/* ============================================ */
/* 1. VARIABLES & THEME SETUP */
/* ============================================ */
:root {
    /* --- Colors --- */
    /* Primary Gradient: الهام گرفته از اینستاگرام و مسنجر اما بیزنس‌طور */
    --hue-color: 250;
    /* Purple/Indigo Base */
    --first-color: hsl(var(--hue-color), 96%, 60%);
    --first-color-alt: hsl(var(--hue-color), 96%, 50%);
    --first-color-light: hsl(var(--hue-color), 96%, 95%);
    --first-color-lighten: hsl(var(--hue-color), 96%, 90%);

    --secondary-color: #00C2FF;
    /* Cyan/Blue for accents */
    --accent-gradient: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --text-gradient: linear-gradient(90deg, #4F46E5 0%, #E11D48 100%);
    /* Vibrant text */

    /* Text Colors */
    --title-color: #1e293b;
    --text-color: #475569;
    --text-color-light: #94a3b8;
    --body-color: #F8FAFC;
    /* Very light cool gray background */
    --container-color: #FFFFFF;

    /* --- Typography --- */
    --body-font: 'PeydaWeb', sans-serif;

    --big-font-size: 2.5rem;
    --h1-font-size: 2rem;
    --h2-font-size: 1.75rem;
    --h3-font-size: 1.25rem;
    --normal-font-size: 1rem;
    --small-font-size: 0.875rem;
    --smaller-font-size: 0.75rem;

    /* --- Spacing & Layout --- */
    --header-height: 4.5rem;
    --mb-0-5: 0.5rem;
    --mb-0-75: 0.75rem;
    --mb-1: 1rem;
    --mb-1-5: 1.5rem;
    --mb-2: 2rem;
    --mb-2-5: 2.5rem;
    --mb-3: 3rem;

    /* --- Z-index --- */
    --z-tooltip: 10;
    --z-fixed: 100;
    --z-modal: 1000;
}

/* Responsive Typography */
@media screen and (min-width: 968px) {
    :root {
        --big-font-size: 2.5rem;
        --h1-font-size: 2.5rem;
        --h2-font-size: 2.25rem;
        --h3-font-size: 1.5rem;
        --normal-font-size: 1.125rem;
        --small-font-size: 0.95rem;
        --smaller-font-size: 0.813rem;
    }
}

/* ============================================ */
/* 2. RESET & BASE STYLES */
/* ============================================ */
* {
    box-sizing: border-box;
    padding: 0;
    margin: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--body-font);
    font-size: var(--normal-font-size);
    background-color: var(--body-color);
    color: var(--text-color);
    line-height: 1.7;
    overflow-x: hidden;
    /* Prevent horizontal scroll */
}

h1,
h2,
h3,
h4 {
    color: var(--title-color);
    font-weight: 700;
    line-height: 1.3;
}

ul {
    list-style: none;
}

a {
    text-decoration: none;
    color: inherit;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

button,
input {
    font-family: var(--body-font);
    border: none;
    outline: none;
}

/* ============================================ */
/* 3. REUSABLE CSS CLASSES (UTILITIES) */
/* ============================================ */
.container {
    max-width: 1400px;
    margin-left: auto;
    margin-right: auto;
    padding-left: 1.5rem;
    padding-right: 1.5rem;
}

.section {
    padding: 5rem 0 2rem;
}

.section__header {
    text-align: center;
    margin-bottom: var(--mb-3);
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.section__title {
    font-size: var(--h2-font-size);
    margin-bottom: var(--mb-1);
}

.section__subtitle {
    display: block;
    font-size: var(--small-font-size);
    color: var(--first-color);
    font-weight: 600;
    margin-bottom: var(--mb-0-5);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.section__description {
    color: var(--text-color);
    font-size: var(--normal-font-size);
}

/* Text Gradient Effect */
.gradient-text {
    background: var(--text-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    /* Standard property */
    color: transparent;
    display: inline-block;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    column-gap: 0.5rem;
    padding: 0.9rem 1.8rem;
    border-radius: 12px;
    font-weight: 600;
    transition: all 0.3s ease;
    cursor: pointer;
    font-size: var(--normal-font-size);
}

.btn--primary {
    background: var(--first-color);
    color: #fff;
    box-shadow: 0 4px 12px rgba(79, 70, 229, 0.3);
}

.btn--primary:hover {
    background: var(--first-color-alt);
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(79, 70, 229, 0.4);
}

.btn--secondary {
    background-color: #fff;
    color: var(--title-color);
    border: 1px solid #e2e8f0;
}

.btn--secondary:hover {
    border-color: var(--first-color);
    color: var(--first-color);
    transform: translateY(-3px);
}

.btn--outline {
    background: transparent;
    border: 2px solid var(--first-color);
    color: var(--first-color);
}

.btn--outline:hover {
    background: var(--first-color);
    color: #fff;
}

.btn--large {
    padding: 1rem 1rem;
    font-size: 1.1rem;
}

.btn--full {
    width: 100%;
}

/* ============================================ */
/* 4. HEADER & NAVIGATION */
/* ============================================ */
.header {
    width: 100%;
    position: fixed;
    top: 0;
    left: 0;
    z-index: var(--z-fixed);
    background-color: transparent;
    transition: all 0.4s ease;
}

/* Sticky Header Style */
.header.scroll-header {
    background-color: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(12px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}

.nav {
    height: var(--header-height);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav__logo {
    display: flex;
    align-items: center;
    column-gap: 0.5rem;
    font-weight: 800;
    color: var(--title-color);
    font-size: 1.25rem;
}

.nav__logo-img {
    width: 32px;
}

.nav__logo-text {
    background: var(--text-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.nav__list {
    display: flex;
    column-gap: 2.5vw;
}

.nav__link {
    font-weight: 500;
    color: var(--title-color);
    transition: 0.3s;
    position: relative;
}

.nav__link:hover,
.nav__link.active-link {
    color: var(--first-color);
}

/* Underline animation for nav links */
.nav__link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -4px;
    right: 0;
    /* RTL specific */
    background-color: var(--first-color);
    transition: width 0.3s;
}

.nav__link:hover::after,
.nav__link.active-link::after {
    width: 100%;
}

.nav__actions {
    display: flex;
    align-items: center;
    column-gap: 1rem;
}

.nav__login {
    font-weight: 600;
    color: var(--title-color);
}

.nav__toggle,
.nav__close {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--title-color);
}

/* Mobile Menu Styles */
@media screen and (max-width: 780px) {
    .nav__menu {
        position: fixed;
        top: -100%;
        left: 0;
        width: 100%;
        background-color: var(--container-color);
        box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
        padding: 1.5rem 3.5rem 1rem;
        padding-left: 0.5rem !important;
        transition: 0.4s;
        text-align: center;
        border-radius: 0 0 1.5rem 1.5rem;
    }

    .show-menu {
        top: 0;
    }

    .nav__list {
        flex-direction: flex;
        row-gap: 1.5rem;
    }

    .nav__actions {
        display: none;
        /* Show simpler menu on mobile or move inside nav__menu via JS if needed, here hidden for clean simple toggle */
    }

    .nav__toggle {
        display: block;
    }

    .nav__close {
        display: block;
        position: absolute;
        top: 1rem;
        right: 1.5rem;
    }
}

/* ============================================ */
/* 5. HERO SECTION */
/* ============================================ */
.hero {
    position: relative;
    padding-top: calc(var(--header-height) + 4rem);
    padding-bottom: 5rem;
    overflow: hidden;
}

.hero__container {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    align-items: center;
    gap: 3rem;
}

/* Badge */
.hero__badge {
    margin-bottom: var(--mb-1-5);
    animation: fadeInUp 0.6s ease-out;

}

.badge {
    display: inline-flex;
    align-items: center;
    column-gap: 0.5rem;
    background-color: rgba(79, 70, 229, 0.1);
    color: var(--first-color);
    padding: 0.5rem 1rem;
    border-radius: 2rem;
    font-size: var(--small-font-size);
    font-weight: 600;
    border: 1px solid rgba(79, 70, 229, 0.2);
}

.hero__title {
    font-size: var(--big-font-size);
    margin-bottom: var(--mb-1-5);
    line-height: 1.5;
    animation: fadeInUp 0.6s ease-out 0.1s backwards;

}

.hero__title .gradient-text {
    font-size: 9rem;
}

.hero__description {
    font-size: 1.15rem;
    color: var(--text-color);
    margin-bottom: var(--mb-2-5);
    max-width: 500px;
    animation: fadeInUp 0.6s ease-out 0.1s backwards;
}

.hero__buttons {
    display: flex;
    column-gap: 1rem;
    margin-top: var(--mb-3);

    margin-bottom: var(--mb-3);
    flex-wrap: wrap;
    row-gap: 1rem;
    animation: fadeInUp 0.6s ease-out 0.1s backwards;
}

/* Hero Stats */
.hero__stats {
    display: flex;
    column-gap: 3rem;
    padding-top: 2rem;
    border-top: 1px solid #e2e8f0;
    animation: fadeInUp 0.6s ease-out 0.1s backwards;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.stat__number {
    font-size: 1.5rem;
    color: var(--title-color);
    margin-bottom: 0.25rem;
}

.stat__label {
    font-size: var(--small-font-size);
    color: var(--text-color-light);
}

/* Hero Image & Animation */
.hero__image-wrapper {
    position: relative;
    perspective: 1000px;
}

.hero__img {
    width: 100%;
    border-radius: 1.5rem;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.1);
    transform: rotateY(-10deg) rotateX(5deg);
    /* 3D Perspective */
    transition: transform 0.5s ease;
    z-index: 2;
    position: relative;
    background-color: white;
    /* Fallback */
}

.hero__container:hover .hero__img {
    transform: rotateY(0) rotateX(0);
}

/* Floating Cards Animation */
.floating-card {
    position: absolute;
    background: white;
    padding: 0.75rem 1.25rem;
    border-radius: 1rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 600;
    font-size: var(--small-font-size);
    z-index: 3;
    animation: float 4s ease-in-out infinite;
}

.floating-card i {
    font-size: 1.2rem;
    color: var(--first-color);
}

.floating-card--1 {
    top: 10%;
    right: -20px;
    animation-delay: 0s;
}

.floating-card--2 {
    bottom: 20%;
    left: -30px;
    animation-delay: 1.5s;
}

.floating-card--3 {
    top: 50%;
    right: -40px;
    animation-delay: 2.5s;
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-15px);
    }
}

/* Animated Background Blobs */
.hero__bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
}

/* --- 2. تنظیمات مشترک بلاب‌ها --- */
.gradient-blob {
    position: absolute;
    filter: blur(60px);
    /* تاری مناسب */
    opacity: 0.6;
    /* شفافیت */
    border-radius: 50%;
    z-index: 0;
    /* زیر همه چیز */

    /* تنظیمات انیمیشن برای حرکت نرم */
    animation-timing-function: ease-in-out;
    animation-direction: alternate;
    animation-iteration-count: infinite;
    will-change: transform;
    /* بهینه‌سازی برای مرورگر */
}

/* --- 3. بلاب ۱: بالا - راست (بنفش آبی) --- */
.gradient-blob--1 {
    width: 500px;
    height: 500px;
    background: #ff2259;
    top: -5%;
    /* نزدیکی لبه، نه کاملا بیرون */
    right: -5%;
    animation-name: moveTopRight;
    animation-duration: 25s;
}

/* --- 4. بلاب ۲: پایین - چپ (صورتی) --- */
.gradient-blob--2 {
    width: 450px;
    height: 450px;
    background: #ec4899;
    bottom: -5%;
    left: -5%;
    animation-name: moveBottomLeft;
    animation-duration: 30s;
}

/* --- 5. بلاب ۳: بالا - چپ (بنفش تیره) --- */
.gradient-blob--3 {
    width: 400px;
    height: 400px;
    background: #6366f1;
    top: -5%;
    left: -5%;
    animation-name: moveTopLeft;
    animation-duration: 28s;
}

/* --- 6. بلاب ۴ (جدید): پایین - راست (فیروزه‌ای) --- */
.gradient-blob--4 {
    width: 420px;
    height: 420px;
    background: #9f79f7;
    /* فیروزه‌ای برای تنوع رنگی جذاب */
    bottom: -5%;
    right: -5%;
    animation-name: moveBottomRight;
    animation-duration: 32s;
    /* زمان متفاوت */
}

/* --- تعریف حرکات (Keyframes) --- */
/* نکته: مقادیر طوری است که به سمت داخل می‌آیند اما به مرکز (فرم) نمی‌چسبند */

@keyframes moveTopRight {
    0% {
        transform: translate(0, 0) scale(1);
    }

    33% {
        transform: translate(-20vw, 5vh) scale(1.1);
    }

    /* حرکت به چپ */
    66% {
        transform: translate(-5vw, 25vh) scale(0.9);
    }

    /* حرکت به پایین */
    100% {
        transform: translate(0, 0) scale(1);
    }
}

@keyframes moveBottomLeft {
    0% {
        transform: translate(0, 0) scale(1);
    }

    33% {
        transform: translate(25vw, -5vh) scale(1.1);
    }

    /* حرکت به راست */
    66% {
        transform: translate(5vw, -20vh) scale(0.9);
    }

    /* حرکت به بالا */
    100% {
        transform: translate(0, 0) scale(1);
    }
}

@keyframes moveTopLeft {
    0% {
        transform: translate(0, 0) scale(1);
    }

    50% {
        transform: translate(15vw, 15vh) scale(1.2);
    }

    /* حرکت اریب کوتاه به داخل */
    100% {
        transform: translate(5vw, 5vh) scale(0.9);
    }
}

@keyframes moveBottomRight {
    0% {
        transform: translate(0, 0) scale(1);
    }

    50% {
        transform: translate(-20vw, -15vh) scale(1.15);
    }

    /* حرکت اریب کوتاه به داخل */
    100% {
        transform: translate(-5vw, -5vh) scale(0.95);
    }
}


/* Responsive Hero */
@media screen and (max-width: 968px) {
    .hero__container {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 0;
    }

    .hero__description {
        margin-left: auto;
        margin-right: auto;
    }

    .hero__buttons,
    .hero__stats {
        justify-content: center;
    }

    .hero__image-wrapper {
        margin-top: 0;
    }

    .floating-card {
        display: none;
        /* Hide floating cards on small screens to reduce clutter */
    }
}

/* ============================================ */
/* 6. WHAT IS ATAJOY (ABOUT) */
/* ============================================ */
.about__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.about__card {
    background-color: var(--container-color);
    padding: 2rem;
    border-radius: 1.5rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
    transition: 0.3s;
    border: 1px solid transparent;
}

.about__card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
    border-color: rgba(79, 70, 229, 0.2);
}

.about__card-icon {
    width: 60px;
    height: 60px;
    background: var(--first-color-light);
    border-radius: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    font-size: 1.75rem;
    color: var(--first-color);
}

.about__card-title {
    font-size: 1.25rem;
    margin-bottom: 0.75rem;
}

.about__card-description {
    color: var(--text-color);
    font-size: 0.95rem;
}

/* Use Cases */
.about__usecases {
    grid-column: 1 / -1;
    /* Span full width */
    margin-top: 3rem;
    background: var(--container-color);
    padding: 2.5rem;
    border-radius: 1.5rem;
    text-align: center;
}

.about__usecases-title {
    margin-bottom: 2rem;
}

.usecases__grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1.5rem;
}

.usecase__item {
    display: flex;
    align-items: center;
    column-gap: 0.75rem;
    background: var(--body-color);
    padding: 0.75rem 1.5rem;
    border-radius: 1rem;
    font-weight: 500;
    transition: 0.3s;
}

.usecase__item:hover {
    background: var(--first-color);
    color: white;
}

.usecase__item i {
    font-size: 1.25rem;
}

/* ============================================ */
/* 7. FEATURES */
/* ============================================ */
.features__list {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    margin-bottom: 5rem;
}

.feature__item {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 4rem;
}

/* Alternate order for even items */
.feature__item:nth-child(even) .feature__content {
    order: 2;
}

.feature__item:nth-child(even) .feature__image {
    order: 1;
}

.feature__icon-wrapper {
    margin-bottom: 1.5rem;
}

.feature__icon {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--first-color) 0%, var(--first-color-alt) 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
    box-shadow: 0 10px 20px rgba(79, 70, 229, 0.3);
}

.feature__title {
    font-size: 1.75rem;
    margin-bottom: 1rem;
}

.feature__description {
    color: var(--text-color);
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
}

.feature__highlights li {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
    font-weight: 500;
}

.feature__highlights i {
    color: var(--first-color);
    background: var(--first-color-light);
    padding: 4px;
    border-radius: 50%;
    font-size: 1rem;
}

/* تنظیم کانتینر اصلی */
.feature__image {
    position: relative;
    /* عرض و ارتفاع کانتینر باید مشخص باشد تا عکس‌ها از کادر بیرون نزنند */
    width: 100%;
    max-width: 800px;
    /* حداکثر عرض دلخواه */
    height: 450px;
    /* ارتفاع کافی برای نمایش عکس‌ها */
    margin: 0 auto;
    /* وسط‌چین کردن کانتینر */
    display: flex;
    justify-content: center;
    align-items: center;
}

/* استایل مشترک برای هر دو تصویر */
.feature__image img {
    position: absolute;
    /* کلید اصلی برای روی هم قرار گرفتن */
    width: 70%;
    /* عکس‌ها نباید ۱۰۰٪ باشند تا لبه‌های زیرین دیده شوند */
    object-fit: cover;
    border-radius: 1.5rem;

    /* استایل قاب عکس */
    border: 8px solid white;
    /* ضخامت بیشتر برای شباهت به عکس واقعی */
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);

    /* تنظیم انیمیشن نرم */
    transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
    cursor: pointer;
    z-index: 1;
    /* لایه پیش‌فرض */
}

/* حالت اولیه عکس زیرین (کمی چرخش به چپ) */
.feature__image .img-back {
    transform: rotate(-6deg) translateX(-20px) translateY(10px);
    z-index: 1;
}

/* حالت اولیه عکس رویی (کمی چرخش به راست) */
.feature__image .img-front {
    transform: rotate(6deg) translateX(20px) translateY(-10px);
    z-index: 2;
}

/* --------------------------------------------------- */
/* افکت‌های Hover (تعامل کاربر) */
/* --------------------------------------------------- */

/* وقتی روی هر عکسی هاور شد */
.feature__image img:hover {
    z-index: 10;
    /* آوردن عکس به بالاترین لایه */
    transform: scale(1.1) rotate(0deg);
    /* بزرگ‌نمایی و صاف کردن */
    box-shadow: 0 35px 60px -15px rgba(0, 0, 0, 0.4);
    /* سایه عمیق‌تر برای حس بلند شدن */
    border-color: #fff;
    /* اطمینان از سفید ماندن بوردر */
}

/* اختیاری: وقتی روی یکی هاور شد، دیگری کمی محو شود (تمرکز بیشتر) */
.feature__image:hover img:not(:hover) {
    filter: blur(2px) grayscale(20%);
    opacity: 0.8;
}

/* Extra Features Grid */
.features__extra {
    text-align: center;
}

.features__extra-title {
    margin-bottom: 3rem;
    font-size: 1.5rem;
}

.extra__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 2rem;
}

.extra__item {
    padding: 1.5rem;
    background: white;
    border-radius: 1rem;
    transition: 0.3s;
}

.extra__item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.05);
}

.extra__item i {
    font-size: 2rem;
    color: var(--first-color);
    margin-bottom: 1rem;
    display: block;
}

.extra__item h4 {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
}

.extra__item p {
    font-size: 0.9rem;
    color: var(--text-color-light);
}

/* Mobile Features adjustment */
@media screen and (max-width: 768px) {
    .feature__item {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }

    .feature__item:nth-child(even) .feature__content {
        order: 0;
    }

    .feature__icon-wrapper {
        display: flex;
        justify-content: center;
    }

    .feature__highlights {
        text-align: right;
        display: inline-block;
    }
}

/* ============================================ */
/* 8. WHY ATAJOY (BENEFITS) */
/* ============================================ */
.benefits {
    background: var(--first-color-light);
    position: relative;
    z-index: 1;
}

/* Stats */
.benefits__stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    margin-bottom: 4rem;
}

.stat__card {
    background: white;
    padding: 2rem;
    border-radius: 1.5rem;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

.stat__icon {
    font-size: 2rem;
    color: var(--secondary-color);
    margin-bottom: 1rem;
}

.stat__value {
    font-size: 2.5rem;
    color: var(--first-color);
    display: inline-block;
}

.stat__unit {
    font-size: 1.5rem;
    color: var(--first-color);
    display: inline-block;
    font-weight: 700;
}

.stat__description {
    font-weight: 500;
    margin-top: 0.5rem;
}

/* Benefits Grid */
.benefits__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-bottom: 5rem;
}

.benefit__card {
    background: transparent;
}

.benefit__icon-wrapper {
    width: 60px;
    height: 60px;
    background: white;
    border-radius: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: var(--first-color);
    margin-bottom: 1.5rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
}

.benefit__title {
    font-size: 1.25rem;
    margin-bottom: 0.75rem;
}

/* Comparison Table */
.benefits__comparison {
    background: white;
    border-radius: 2rem;
    padding: 3rem;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.05);
}

.comparison__title {
    text-align: center;
    margin-bottom: 3rem;
    font-size: 1.5rem;
}

.comparison__grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
    border-radius: 1.5rem;
    overflow: hidden;
    border: 1px solid #e2e8f0;
}

.comparison__column {
    padding: 2.5rem;
}

.comparison__column--before {
    background: #fff1f2;
}

.comparison__column--after {
    background: #f0fdf4;
}

.comparison__header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 2rem;
    font-size: 1.25rem;
    font-weight: 700;
}

.comparison__column--before .comparison__header {
    color: #e11d48;
}

.comparison__column--after .comparison__header {
    color: #16a34a;
}

.comparison__list li {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
    font-weight: 500;
}

.comparison__list i {
    font-size: 1.25rem;
}

.comparison__column--before li i {
    color: #e11d48;
}

.comparison__column--after li i {
    color: #16a34a;
}

@media screen and (max-width: 968px) {
    .benefits__grid {
        grid-template-columns: 1fr;
    }

    .comparison__grid {
        grid-template-columns: 1fr;
    }
}

/* ============================================ */
/* 9. PRICING */
/* ============================================ */
.pricing__toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 3rem;
}

.toggle__switch {
    position: relative;
    width: 50px;
    height: 28px;
}

.toggle__input {
    opacity: 0;
    width: 0;
    height: 0;
}

.toggle__slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #cbd5e1;
    transition: .4s;
    border-radius: 34px;
}

.toggle__slider:before {
    position: absolute;
    content: "";
    height: 20px;
    width: 20px;
    left: 4px;
    bottom: 4px;
    background-color: white;
    transition: .4s;
    border-radius: 50%;
}

.toggle__input:checked+.toggle__slider {
    background-color: var(--first-color);
}

.toggle__input:checked+.toggle__slider:before {
    transform: translateX(22px);
}

.toggle__label {
    font-weight: 600;
    color: var(--title-color);
}

.toggle__badge {
    background: #fee2e2;
    color: #ef4444;
    font-size: 0.75rem;
    padding: 0.25rem 0.5rem;
    border-radius: 1rem;
    margin-right: 0.5rem;
}

.pricing__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    align-items: center;
}

.pricing__card {
    background: white;
    padding: 2.5rem 2rem;
    border-radius: 1.5rem;
    border: 1px solid #e2e8f0;
    transition: 0.3s;
    position: relative;
}

.pricing__card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.pricing__card--popular {
    border: 2px solid var(--first-color);
    box-shadow: 0 10px 30px rgba(79, 70, 229, 0.15);
    transform: scale(1.05);
    z-index: 10;
}

.pricing__card--popular:hover {
    transform: scale(1.05) translateY(-5px);
}

.pricing__badge {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--first-color);
    color: white;
    padding: 0.25rem 1rem;
    border-radius: 1rem;
    font-size: 0.8rem;
    font-weight: 600;
}

.pricing__header {
    margin-bottom: 1.5rem;
    text-align: center;
}

.pricing__name {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
}

.pricing__description {
    font-size: 0.9rem;
    color: var(--text-color-light);
}

.pricing__price {
    text-align: center;
    margin-bottom: 2rem;
}

.price__amount {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--title-color);
}

.price__currency {
    font-size: 1.1rem;
    margin-right: 0.25rem;
}

.price__period {
    color: var(--text-color-light);
    font-size: 0.9rem;
}

.pricing__features {
    margin-bottom: 2rem;
}

.pricing__features li {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
    font-size: 0.95rem;
}

.pricing__features li i {
    color: var(--first-color);
    font-size: 1.2rem;
}

.pricing__features li.disabled {
    color: var(--text-color-light);
    text-decoration: line-through;
}

.pricing__features li.disabled i {
    color: #cbd5e1;
}

.pricing__note {
    text-align: center;
    margin-top: 2rem;
    font-size: 0.9rem;
    color: var(--text-color-light);
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
}

/* ============================================ */
/* SPECIAL OFFER - IRAN PLAN styling */
/* ============================================ */

/* 1. Container adjustments */
.free-offer {
    width: 100%;
    display: flex;
    justify-content: center;
    padding: 1rem;
    perspective: 1000px;
    /* For 3D effect */
}

/* 2. The Special Card Base */
.free-offer .pricing__card {
    /* Background: Subtle Iran Flag Gradient (Green tint -> White -> Red tint) */
    background: linear-gradient(160deg, #6cf377 0%, #ffffff 40%, #ffffff 60%, #dd2c37 150%);

    /* Border with Flag Gradient */
    border: 3px solid transparent;
    border-image: linear-gradient(to bottom right, #22c55e, #ffffff, #ef4444) 1;
    /* Note: If border-radius is needed with gradient border, use background-clip approach instead. 
       Here we use a simpler approach for broad compatibility or a pseudo-element below */
    border-radius: 1.5rem;
    /* Re-applying radius */

    /* Make it pop out */
    transform: scale(1.02);
    box-shadow:
        0 20px 50px rgba(0, 0, 0, 0.1),
        /* Deep shadow */
        0 0 0 1px rgba(255, 255, 255, 0.5) inset,
        /* Inner highlight */
        0 -5px 20px rgba(34, 197, 94, 0.15),
        /* Green glow top */
        0 5px 20px rgba(239, 68, 68, 0.15);
    /* Red glow bottom */

    position: relative;
    /* Important for the shine effect */
    z-index: 20;
}

/* Fix for border-radius with gradient border (Alternative to border-image) */
.free-offer .pricing__card {
    border: none;
    position: relative;
    background-clip: padding-box;
    border: 3px solid transparent;
    background-color: white;
}

.free-offer .pricing__card::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    margin: -3px;
    /* Border width */
    border-radius: inherit;
    background: linear-gradient(135deg, #6cf377 0%, #ffffff 50%, #da0000 100%);
}

.free-offer .pricing__card::after {
    /* Inner background to cover the gradient area except border */
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background: linear-gradient(160deg, #6cf377 0%, #ffffff 40%, #ffffff 60%, #dd2c37 150%);
    border-radius: inherit;
}


/* 3. Shine Animation Effect (The "Glossy" look) */
.free-offer .pricing__card .pricing__badge::after {
    display: none;
    /* remove default badge effects if any */
}

/* Creating a passing light effect */
.shine-effect {
    position: absolute;
    top: 0;
    left: -150%;
    width: 100%;
    height: 100%;
    background: linear-gradient(to right,
            rgba(255, 255, 255, 0) 0%,
            rgba(255, 255, 255, 0.6) 50%,
            rgba(255, 255, 255, 0) 100%);
    transform: skewX(-25deg);
    animation: shine 4s infinite ease-in-out;
    pointer-events: none;
    z-index: 100;
}

@keyframes shine {
    0% {
        left: -150%;
    }

    20% {
        left: 150%;
    }

    /* Fast pass */
    100% {
        left: 150%;
    }

    /* Wait */
}

/* 4. Text & Content Styling */
.free-offer .pricing__badge {
    background: linear-gradient(90deg, #11998e, #38ef7d);
    /* Green Gradient */
    box-shadow: 0 4px 15px rgba(56, 239, 125, 0.4);
    font-size: 0.9rem;
    padding: 0.35rem 1.5rem;
    top: -15px;

}

.free-offer .pricing__name {
    color: #1a1a1a;
    font-weight: 800;
    font-size: 1.5rem;
}

.free-offer .pricing__description {
    color: #444;
    font-weight: 500;
}

.free-offer .price__amount {
    background: -webkit-linear-gradient(45deg, #00902f, #da0000);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-size: 3rem;
    /* Bigger for FREE */
    filter: drop-shadow(0 2px 2px rgba(0, 0, 0, 0.1));
}

/* The explanatory text */
.free-offer .pricing__card {
    text-align: center;
    /* Ensure custom text is centered */
    line-height: 1.8;
    color: #334155;
    font-size: 0.95rem;
}

/* 5. Feature List adjustments */
.free-offer .pricing__features li i {
    color: #00902f;
    /* Islamic Republic Green */
    background: #e6f7eb;
    border-radius: 50%;
    padding: 4px;
    font-weight: bold;
}

/* 6. The Button - Special Design */
.free-offer .btn {
    background: linear-gradient(90deg, #11998e 0%, #38ef7d 100%);
    border: none;
    font-weight: 700;
    font-size: 1rem;
    box-shadow: 0 10px 20px rgba(17, 153, 142, 0.3);
    position: relative;
    overflow: hidden;
    z-index: 1;
    transition: 0.3s;
}

.free-offer .btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 25px rgba(17, 153, 142, 0.5);
}

/* Adding a Red bottom border to the button for the flag concept */
.free-offer .btn::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: #da0000;
    opacity: 0.7;
}

/* ============================================ */
/* 10. PARTNERS (INFINITE SCROLL) */
/* ============================================ */
.partners {
    padding: 3rem 0;
    border-top: 1px solid #f1f5f9;
    border-bottom: 1px solid #f1f5f9;
    overflow: hidden;
}

.partners__slider {
    width: 100%;
    overflow: hidden;
    position: relative;
}

/* Fading edges */
.partners__slider::before,
.partners__slider::after {
    content: "";
    position: absolute;
    top: 0;
    width: 150px;
    height: 100%;
    z-index: 2;
}

.partners__slider::before {
    left: 0;
    background: linear-gradient(to right, var(--body-color), transparent);
}

.partners__slider::after {
    right: 0;
    background: linear-gradient(to left, var(--body-color), transparent);
}

.partners__track {
    display: flex;
    width: calc(200px * 16);
    /* Estimate width based on items */
    animation: scroll 30s linear infinite;
}

.partner__item {
    width: 200px;
    padding: 0 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.partner__item img {
    opacity: 0.5;
    filter: grayscale(100%);
    transition: 0.3s;
    max-height: 50px;
}

.partner__item img:hover {
    opacity: 1;
    filter: grayscale(0%);
}

@keyframes scroll {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(calc(-200px * 8));
    }

    /* Move half the length */
}

/* Testimonials */
.testimonials {
    margin-top: 5rem;
}

.testimonials__title {
    text-align: center;
    margin-bottom: 3rem;
}

.testimonials__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.testimonial__card {
    background: white;
    padding: 2rem;
    border-radius: 1.5rem;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.05);
}

.testimonial__rating {
    color: #fbbf24;
    margin-bottom: 1rem;
}

.testimonial__text {
    font-size: 1rem;
    color: var(--text-color);
    margin-bottom: 2rem;
    font-style: italic;
}

.testimonial__author {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.author__avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    object-fit: cover;
}

.author__name {
    font-size: 1rem;
    margin-bottom: 0.2rem;
}

.author__position {
    font-size: 0.8rem;
    color: var(--text-color-light);
}

/* ============================================ */
/* 11. FAQ & TUTORIALS */
/* ============================================ */
.faq__accordion {
    display: grid;
    gap: 1.5rem;
    max-width: 800px;
    margin: 0 auto 5rem;
}

.faq__item {
    background: white;
    border-radius: 1rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    overflow: hidden;
    transition: 0.3s;
}

.faq__question {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem;
    background: transparent;
    cursor: pointer;
    font-weight: 600;
    font-size: 1.1rem;
    text-align: right;
    color: var(--title-color);
}

.faq__icon {
    font-size: 1.5rem;
    color: var(--first-color);
    transition: 0.3s;
}

.faq__answer {
    height: 0;
    overflow: hidden;
    transition: height 0.35s ease;
}

.faq__answer p {
    padding: 0 1.5rem 1.5rem;
    color: var(--text-color);
    line-height: 1.8;
}

/* Active FAQ State */
.faq-open .faq__icon {
    transform: rotate(180deg);
}

/* Tutorials */
.tutorials__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.tutorial__card {
    cursor: pointer;
    group: hover;
}

.tutorial__thumbnail {
    position: relative;
    border-radius: 1rem;
    overflow: hidden;
    margin-bottom: 1rem;
}

.tutorial__thumbnail img {
    width: 100%;
    transition: 0.3s;
}

.tutorial__card:hover .tutorial__thumbnail img {
    transform: scale(1.05);
}

.tutorial__play {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 3rem;
    color: white;
    opacity: 0.8;
    transition: 0.3s;
}

.tutorial__card:hover .tutorial__play {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1.1);
}

.tutorial__duration {
    position: absolute;
    bottom: 10px;
    right: 10px;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 0.8rem;
}

.tutorial__cta {
    text-align: center;
}

/* ============================================ */
/* 12. FOOTER */
/* ============================================ */
.footer {
    background-color: #0f172a;
    /* Slate 900 */
    color: #94a3b8;
    padding-top: 5rem;
    padding-bottom: 2rem;
}

.footer__container {
    row-gap: 3rem;
}

.footer__top {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr 1.5fr;
    gap: 3rem;
    border-bottom: 1px solid #1e293b;
    padding-bottom: 3rem;
}

.footer__logo-text {
    color: white;
    font-size: 1.5rem;
    font-weight: 800;
    margin-right: 0.5rem;
}

.footer__description {
    margin: 1rem 0 2rem;
    max-width: 300px;
    line-height: 1.8;
}

.footer__social {
    display: flex;
    gap: 1rem;
}

.social__link {
    width: 40px;
    height: 40px;
    background: #1e293b;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    transition: 0.3s;
}

.social__link:hover {
    background: var(--first-color);
    transform: translateY(-3px);
}

.footer__title {
    color: white;
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
}

.footer__links li {
    margin-bottom: 0.75rem;
}

.footer__links a {
    transition: 0.3s;
}

.footer__links a:hover {
    color: var(--first-color);
    padding-right: 5px;
}

.footer__contact li {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.footer__bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 2rem;
    flex-wrap: wrap;
    gap: 1.5rem;
}

.footer__badges {
    display: flex;
    gap: 1rem;
}

.footer__badge {
    background: white;
    border-radius: 0.5rem;
    padding: 0.25rem;
    height: 60px;
    width: auto;
}

@media screen and (max-width: 1024px) {
    .footer__top {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media screen and (max-width: 576px) {
    .footer__top {
        grid-template-columns: 1fr;
    }

    .footer__bottom {
        flex-direction: column;
        text-align: center;
    }
}

/* ============================================ */
/* 13. FLOATING ELEMENTS (CTA & SCROLL) */
/* ============================================ */
.scroll-top {
    position: fixed;
    right: 1.5rem;
    bottom: -20%;
    background: var(--first-color);
    opacity: 0.8;
    padding: 0.6rem;
    border-radius: 0.5rem;
    z-index: var(--z-tooltip);
    transition: 0.4s;
    color: white;
    font-size: 1.25rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    cursor: pointer;
}

.scroll-top:hover {
    background: var(--first-color-alt);
    opacity: 1;
}

.show-scroll {
    bottom: 2rem;
    /* Reduced overlapping possibility */
}

/* Floating CTA for Mobile */
.floating-cta {
    display: none;
    position: fixed;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    background: var(--first-color);
    color: white;
    padding: 0.75rem 2rem;
    border-radius: 2rem;
    box-shadow: 0 10px 25px rgba(79, 70, 229, 0.4);
    z-index: var(--z-fixed);
    font-weight: 600;
    align-items: center;
    gap: 0.5rem;
    animation: bounce 2s infinite;
}

@media screen and (max-width: 768px) {
    .floating-cta {
        display: flex;
    }

    .show-scroll {
        bottom: 5rem;
        /* Move scroll up button higher on mobile */
    }
}

/* ========================
   Auth Page Styles (Login)
   ======================== */
.auth-container {
    min-height: 80vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 140px 20px 60px;
    /* فاصله از هدر */
}

.auth-box {

    padding: 2.5rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    width: 100%;
    max-width: 400px;
    text-align: center;
    border: 3px solid transparent;
    border-radius: 1rem;
    background:
        /* لایه اول: رنگ پس‌زمینه داخل باکس (مثلا سفید) */
        linear-gradient(rgba(255, 255, 255, 0.9), rgba(255, 255, 255, 0.9)) padding-box,

        /* لایه دوم: رنگ گرادیانت بوردر */
        linear-gradient(90deg, #4F46E5 0%, #E11D48 100%) border-box;
}

.auth-header h2 {
    font-size: var(--h2-font-size);
    margin-bottom: 0.5rem;
    color: var(--title-color);
}

.auth-header p {
    font-size: var(--small-font-size);
    color: var(--text-color);
    margin-bottom: 2rem;
}

.form-group {
    margin-bottom: 1.5rem;
    text-align: right;
}

.form-group label {
    display: block;
    font-size: var(--normal-font-size);
    color: var(--title-color);
    margin-bottom: 0.5rem;
}

.auth-box input {
    width: 100%;
    background-color: var(--body-color);
    border: 1px solid var(--text-color-light);
    padding: 0.75rem 1rem;
    border-radius: 0.5rem;
    font-family: var(--body-font);
    font-size: var(--normal-font-size);
    color: var(--title-color);
    outline: none;
    transition: .3s;
    direction: ltr;
    /* برای شماره موبایل */
    text-align: center;
}

.auth-box input:focus {
    border-color: var(--first-color);
}

.auth-btn {
    width: 100%;
    padding: 1rem;
    border-radius: 30px;
    justify-content: center;
    border: none;
    cursor: pointer;
    border: 3px solid transparent;
    border-radius: 1rem;
    background:
        /* لایه اول: رنگ پس‌زمینه داخل باکس (مثلا سفید) */
        linear-gradient(#fff, #fff) padding-box,

        /* لایه دوم: رنگ گرادیانت بوردر */
        linear-gradient(90deg, #4F46E5 0%, #E11D48 100%) border-box;
}

.link-btn {
    background: none;
    border: none;
    color: var(--first-color);
    font-size: var(--small-font-size);
    cursor: pointer;
    text-decoration: underline;
}

.timer-box {
    margin-bottom: 1rem;
    font-size: var(--small-font-size);
    color: var(--text-color);
}

/* پیام‌های خطا و موفقیت */
.auth-message {
    margin-top: 1rem;
    font-size: var(--small-font-size);
    min-height: 20px;
}

.auth-message.error {
    color: #e74c3c;
}

.auth-message.success {
    color: #2ecc71;
}

/* --- استایل‌های جدید برای ورودی OTP --- */
.otp-group {
    display: flex;
    justify-content: space-between;
    gap: 8px;
    margin-bottom: 1.5rem;
}

.otp-input {
    width: 45px;
    height: 50px;
    text-align: center;
    font-size: 1.5rem;
    font-weight: bold;
    border: 2px solid #eee;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.9);
    transition: all 0.3s;
    /* حذف استایل دیفالت */
    -moz-appearance: textfield;
}

/* حذف فلش‌های بالا/پایین در کروم و سافاری */
.otp-input::-webkit-outer-spin-button,
.otp-input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.otp-input:focus {
    border-color: var(--first-color);
    outline: none;
    box-shadow: 0 4px 12px rgba(var(--first-color-rgb), 0.2);
    transform: translateY(-2px);
}

/* حالت پر شده (اختیاری) */
.otp-input:not(:placeholder-shown) {
    border-color: #ccc;
}

/* دکمه ارسال مجدد */
#resend-otp {
    color: var(--first-color);
    font-weight: 600;
    cursor: pointer;
    background: none;
    border: none;
    padding: 0;
    font-family: inherit;
}

#resend-otp:hover {
    text-decoration: underline;
}

/* تنظیمات کلی لودینگ */
.loading-screen {
    display: none;
    /* پیش‌فرض مخفی */
    position: relative;
    ;
    top: 0;
    left: 0;
    width: 100%;
    height: auto;
    background: transparent;
    /* پس‌زمینه تقریباً سفید */
    z-index: 20;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    border-radius: 1.5rem;
    backdrop-filter: blur(5px);
    /* بلور کردن پس‌زمینه زیرین */
}

.loading-content-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    width: 100%;
    max-width: 400px;
    margin: 0 auto;
    /* وسط چین */

}

/* استایل حباب دیالوگ */
.speech-bubble {
    background: #fff;
    border: 2px solid var(--first-color);
    border-radius: 20px;
    padding: 15px 25px;
    position: relative;
    margin-bottom: 20px;
    /* کمی روی سر کاراکتر بیاید */
    z-index: 2;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    min-height: 80px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    animation: floatBubble 3s ease-in-out infinite;
    max-width: 90%;
}

/* مثلث پایین حباب */
.speech-bubble::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    border-width: 10px 10px 0;
    border-style: solid;
    border-color: var(--first-color) transparent transparent transparent;
}

#loading-text {
    font-weight: 700;
    color: var(--title-color);
    font-size: 0.95rem;
    margin: 0;
    line-height: 1.5;
    transition: opacity 0.3s ease;
    /* انیمیشن فید هنگام تغییر متن */
}

/* نوار پیشرفت خطی */
.loading-progress-container {
    width: 80%;
    height: 8px;
    background: #e2e8f0;
    border-radius: 10px;
    margin-top: 20px;
    /* تنظیم فاصله نسبت به انیمیشن */
    overflow: hidden;
    position: relative;
    z-index: 3;
}

.loading-progress-bar {
    height: 100%;
    width: 0%;
    background: var(--first-color);
    border-radius: 10px;
    transition: width 0.3s linear;
}

.progress-percentage {
    font-size: 0.8rem;
    color: #64748b;
    margin-top: 8px;
    font-weight: 600;
}

/* انیمیشن شناور بودن حباب */
@keyframes floatBubble {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-10px);
    }
}

/* انیمیشن سه نقطه در حال تایپ (اختیاری برای زیبایی) */
.typing-indicator {
    display: none;
    /* فقط لحظات گذار نمایش داده شود اگر بخواهید */
}


/* --- Utility Classes for Responsive Display --- */

/* مخفی کردن در موبایل (زیر 780 پیکسل) */
@media screen and (max-width: 780px) {
    .hide-on-mobile {
        display: none !important;
    }

    .feature__image {
        height: 60vw;
    }

    /* اصلاح نمایش دکمه‌های اکشن در موبایل */
    /* قبلاً display: none بود که باعث میشد همه دکمه‌ها بروند */
    .nav__actions {
        display: flex !important;
        align-items: center;
        gap: 0.5rem;
        /* هل دادن دکمه‌ها به سمت چپ (کنار تاگل) */
        margin-right: auto;
        margin-left: 10px;
        /* فاصله جزئی از تاگل */
    }
}

/* مخفی کردن در دسکتاپ (بالای 780 پیکسل) */
@media screen and (min_width: 781px) {
    .show-on-mobile-only {
        display: none !important;
    }
}

/* --- رفع مشکل بیرون زدگی هیرو در موبایل --- */
@media screen and (max-width: 968px) {

    /* کاهش سایز کلمه صدرشاپ از 9rem به سایز منطقی */
    .hero__title .gradient-text {
        font-size: 4.5rem !important;
        line-height: 1.2;
    }

    .hero {
        padding-bottom: 0;
        padding-top: var(--header-height);
    }

    .hero__title {
        font-size: 1.5rem !important;
    }


    /* اطمینان از اینکه کلمات طولانی نمی‌شکنند */
    .hero__title {
        word-wrap: break-word;
        overflow-wrap: break-word;
        padding: 0 10px;
        /* فاصله ایمن از کناره‌ها */
    }

    /* جلوگیری از بیرون زدن انیمیشن‌های پس‌زمینه */
    .hero {
        overflow: hidden;
    }
}