* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #FF6B35;
    --secondary-color: #004E89;
    --light-bg: #F7F7F7;
    --dark-text: #1A1A1A;
    --light-text: #666666;
    --white: #FFFFFF;
    --success: #2ECC71;
    --warning: #F39C12;
    --error: #E74C3C;
}

body.dark-mode {
    --light-bg: #1E1E1E;
    --dark-text: #E8E8E8;
    --light-text: #B0B0B0;
    --white: #0D0D0D;
}

body.dark-mode header {
    background: #1A1A1A;
    box-shadow: 0 2px 10px rgba(255, 255, 255, 0.05);
}

body.dark-mode nav {
    background: #0D0D0D;
}

body.dark-mode nav a {
    color: var(--dark-text);
    border-bottom-color: #1E1E1E;
}

body.dark-mode .hero {
    background: linear-gradient(135deg, #003d6b, #0d2847);
}

body.dark-mode .feature-card,
body.dark-mode .stat-card,
body.dark-mode .contact-form,
body.dark-mode .contact-info-group {
    background: #2A2A2A;
}

body.dark-mode .form-group input,
body.dark-mode .form-group textarea {
    background: #1E1E1E;
    border-color: #3A3A3A;
    color: #E8E8E8;
}

body.dark-mode footer {
    background: #0A0A0A;
}

body.dark-mode .testimonial-card {
    background: #2A2A2A;
    border-right-color: #FF8C42;
}

body.dark-mode .client-logo {
    background: #2A2A2A;
    color: #FF6B35;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: var(--dark-text);
    background-color: var(--white);
    line-height: 1.6;
    overflow-x: hidden;
}

/* ========== HEADER BASE ========== */
header {
    background: var(--white);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    position: sticky;
    top: 0;
    z-index: 1000;
}

body.dark-mode header {
    background: #111827; /* تیره‌تر و مدرن‌تر */
    box-shadow: 0 2px 16px rgba(0, 0, 0, 0.7);
}

.header-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 12px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: nowrap;
}

.logo {
    font-size: 22px;
    font-weight: 700;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    display: flex;
    align-items: center;
    gap: 8px;
    z-index: 1001;
    white-space: nowrap;
}

.logo img {
    height: 32px;
    width: auto;
    max-height: 32px;
}

/* ========== NAV DESKTOP ========== */
.nav-menu {
    display: flex;
    align-items: center;
    gap: 24px;
}

.nav-menu ul {
    display: flex;
    list-style: none;
    gap: 30px;
    flex-wrap: wrap;
}

.nav-menu li {
    padding: 0;
}

.nav-menu a {
    text-decoration: none;
    color: var(--dark-text);
    font-weight: 500;
    font-size: 14px;
    transition: color 0.25s;
    position: relative;
    display: block;
    padding: 4px 0;
}

.nav-menu a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    background: var(--primary-color);
    bottom: -4px;
    right: 0;
    transition: width 0.25s ease;
}

.nav-menu a:hover::after {
    width: 100%;
}

body.dark-mode .nav-menu a {
    color: var(--dark-text);
}

/* دکمه‌های داخل ناو فقط در موبایل */
.nav-actions {
    display: none;
    flex-direction: column;
    gap: 10px;
    margin-top: 20px;
}

/* ========== HAMBURGER BUTTON ========== */
.menu-toggle {
    display: none;
    flex-direction: column;
    background: none;
    border: none;
    cursor: pointer;
    gap: 5px;
    z-index: 1002;
    padding: 6px;
}

.menu-toggle span {
    width: 24px;
    height: 3px;
    background: var(--dark-text);
    border-radius: 999px;
    transition: all 0.3s ease;
}

.menu-toggle.active span:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}

.menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.menu-toggle.active span:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}

body.dark-mode .menu-toggle span {
    background: var(--dark-text);
}

/* ========== AUTH + THEME TOGGLE ========== */
.auth-buttons {
    display: flex;
    gap: 10px;
    align-items: center;
}

.theme-toggle {
    width: 46px;
    height: 24px;
    background: var(--light-text);
    border: none;
    border-radius: 999px;
    cursor: pointer;
    position: relative;
    transition: background 0.25s, box-shadow 0.25s;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.theme-toggle::before,
.theme-toggle::after {
    position: absolute;
    font-size: 13px;
    transition: opacity 0.25s;
}

.theme-toggle::before {
    content: '☀️';
    left: 8px;
    opacity: 1;
}

.theme-toggle::after {
    content: '🌙';
    right: 8px;
    opacity: 0;
}

body.dark-mode .theme-toggle {
    background: #FF6B35;
    box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.2);
}

body.dark-mode .theme-toggle::before {
    opacity: 0;
}

body.dark-mode .theme-toggle::after {
    opacity: 1;
}

/* ========== RESPONSIVE HEADER / MOBILE NAV ========== */
@media (max-width: 768px) {
    .header-container {
        position: relative; /* برای موقعیت‌دهی مطلق همبرگر */
    }

    .logo img {
        height: 28px;
    }

    .logo span {
        display: none; /* صرفه‌جویی فضا در موبایل */
    }

    /* نمایش دکمه هامبرگر در موبایل */

    .menu-toggle {
        display: flex;
        position: absolute;
        right: 12px;        /* چسبیده به لبهٔ راست */
        top: 50%;
        transform: translateY(-50%);
        padding: 6px;
    }

    .logo {
        padding-right: 40px; /* کمی فضا تا همبرگر */
    }

    /* مخفی کردن منوی افقی در موبایل و تبدیل به دراور */
    .nav-menu {
        position: fixed;
        top: 0;
        right: 0;
        bottom: 0;
        width: 78%;
        max-width: 340px;
        background: rgba(255, 255, 255, 0.96);
        box-shadow: -8px 0 30px rgba(15, 23, 42, 0.35);
        transform: translateX(100%);
        transition: transform 0.3s ease, opacity 0.3s ease;
        opacity: 0;
        pointer-events: none;
        padding: 80px 24px 24px;
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
        z-index: 1001;
    }

    body.dark-mode .nav-menu {
        background: rgba(15, 23, 42, 0.98);
        box-shadow: -8px 0 35px rgba(0, 0, 0, 0.7);
    }

    .nav-menu ul {
        flex-direction: column;
        gap: 12px;
        width: 100%;
    }

    .nav-menu li a {
        width: 100%;
        padding: 10px 0;
        border-bottom: 1px solid rgba(148, 163, 184, 0.3);
    }

    .nav-menu a::after {
        display: none; /* زیرخط انیمیشنی برای موبایل لازم نیست */
    }

    .nav-menu.active {
        transform: translateX(0);
        opacity: 1;
        pointer-events: auto;
    }

    /* دکمه‌های ورود/ثبت‌نام در داخل دراور */
    .nav-actions {
        display: flex;
        width: 100%;
    }

    .nav-auth-btn {
        width: 100%;
        text-align: center;
    }

    /* دکمه‌های ورود/ثبت‌نام بالای هدر در موبایل مخفی شوند */
    .desktop-only {
        display: none !important;
    }

    /* تم‌سوئیچر جمع‌وجور در موبایل */
    .theme-toggle {
        width: 40px;
        height: 22px;
    }

    .auth-buttons {
        gap: 6px;
    }

    .nav-actions {
        display: flex;
        width: 100%;
        flex-direction: column;
        gap: 10px;
        margin-top: 20px;
    }

    .nav-auth-btn {
        width: 100%;
        text-align: center;
        border-radius: 10px;
        font-size: 14px;
    }

    /* دکمه ورود (ثانویه) در منو کشویی */
    .nav-auth-btn.btn-secondary {
        background: transparent;
        border-width: 1.5px;
        border-color: rgba(148, 163, 184, 0.9);
        color: var(--secondary-color);
    }

    /* در تم دارک، کنتراست بیشتر شود */
    body.dark-mode .nav-auth-btn.btn-secondary {
        border-color: rgba(248, 250, 252, 0.85);
        color: var(--dark-text);
        background: rgba(15, 23, 42, 0.9);
    }

    body.dark-mode .nav-auth-btn.btn-secondary:hover {
        background: rgba(30, 64, 175, 0.9);
        color: #FFFFFF;
    }
}

.theme-toggle {
    width: 50px;
    height: 28px;
    background: var(--light-text);
    border: none;
    border-radius: 14px;
    cursor: pointer;
    position: relative;
    transition: background 0.3s;
    padding: 3px;
    display: flex;
    align-items: center;
}

.theme-toggle::before {
    content: '☀️';
    position: absolute;
    left: 6px;
    font-size: 14px;
    transition: opacity 0.3s;
}

.theme-toggle::after {
    content: '🌙';
    position: absolute;
    right: 6px;
    font-size: 14px;
    opacity: 0;
    transition: opacity 0.3s;
}

body.dark-mode .theme-toggle {
    background: #FF6B35;
}

body.dark-mode .theme-toggle::before {
    opacity: 0;
}

body.dark-mode .theme-toggle::after {
    opacity: 1;
}

.btn {
    padding: 10px 20px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.3s;
    text-decoration: none;
    display: inline-block;
}

.btn-primary {
    background: var(--primary-color);
    color: var(--white);
}

.btn-primary:hover {
    background: #E55A2B;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255, 107, 53, 0.3);
}

.btn-secondary {
    background: transparent;
    color: var(--secondary-color);
    border: 2px solid var(--secondary-color);
}

.btn-secondary:hover {
    background: var(--secondary-color);
    color: var(--white);
}

/*==============================
  Hero Section - Position Relative
==============================*/
.hero {
    position: relative;
    overflow: hidden;
}

.hero-content {
    position: relative;
    z-index: 1;
}

/*==============================
  Hero background
==============================*/
.hero-bg {
    position: absolute;
    inset: 0;
    overflow: hidden;
    z-index: 0;
    pointer-events: none;
}

.hero-bg svg {
    position: absolute;
    opacity: 0.35;
}

/* شبکه */
.bg-grid {
    width: 100%;
    height: 100%;
    animation: gridShift 28s linear infinite;
    opacity: 0.10;
}

@keyframes gridShift {
    0%   { transform: translate(0, 0); }
    100% { transform: translate(40px, 40px); }
}

/*==============================
   اعداد شناور حسابداری
==============================*/
.floating-numbers {
    position: absolute;
    inset: 0;
    display: block;
    pointer-events: none;
}

.floating-numbers span {
    position: absolute;
    font-size: 18px;
    font-weight: 600;
    color: #ffffff20;
    animation: floatNumber 12s ease-in-out infinite;
    opacity: 0.4;
}

.floating-numbers span:nth-child(1) { top: 10%; left: 25%; animation-delay: 0s; }
.floating-numbers span:nth-child(2) { top: 30%; left: 60%; animation-delay: 1s; }
.floating-numbers span:nth-child(3) { top: 55%; left: 15%; animation-delay: 2s; }
.floating-numbers span:nth-child(4) { top: 70%; left: 45%; animation-delay: 3s; }
.floating-numbers span:nth-child(5) { top: 20%; left: 80%; animation-delay: 4s; }
.floating-numbers span:nth-child(6) { top: 40%; left: 10%; animation-delay: 5s; }
.floating-numbers span:nth-child(7) { top: 65%; left: 75%; animation-delay: 6s; }

@keyframes floatNumber {
    0%   { transform: translateY(0) scale(1); opacity: 0.4; }
    50%  { transform: translateY(-18px) scale(1.05); opacity: 0.7; }
    100% { transform: translateY(0) scale(1); opacity: 0.4; }
}

/*==============================
   نمودار ترکیبی 1
==============================*/
.chart-mix-1 {
    width: 260px;
    right: 8%;
    top: 20%;
    animation: chartFloat1 24s ease-in-out infinite;
}

@keyframes chartFloat1 {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50%      { transform: translateY(-14px) rotate(1.5deg); }
}

.mix-bar {
    fill: #ffffff22;
    transform-origin: bottom;
    animation: mixBarAnim 4.8s ease-in-out infinite;
}
.mix-bar:nth-child(1) { animation-delay: 0s; }
.mix-bar:nth-child(2) { animation-delay: 0.3s; }
.mix-bar:nth-child(3) { animation-delay: 0.6s; }
.mix-bar:nth-child(4) { animation-delay: 0.9s; }
.mix-bar:nth-child(5) { animation-delay: 1.2s; }
.mix-bar:nth-child(6) { animation-delay: 1.5s; }

@keyframes mixBarAnim {
    0%, 100% { transform: scaleY(0.8); opacity: .25; }
    50%      { transform: scaleY(1.25); opacity: .65; }
}

.mix-line {
    stroke-dasharray: 260;
    stroke-dashoffset: 260;
    animation: mixLineFlow 9s linear infinite;
}

@keyframes mixLineFlow {
    0%   { stroke-dashoffset: 260; }
    50%  { stroke-dashoffset: 0; }
    100% { stroke-dashoffset: -260; }
}

/*==============================
   نمودار خطی دوم
==============================*/
.chart-line-2 {
    width: 260px;
    left: 6%;
    bottom: 14%;
    animation: chartFloat2 26s ease-in-out infinite;
}

@keyframes chartFloat2 {
    0%, 100% { transform: translateX(0) scale(1); }
    50%      { transform: translateX(18px) scale(1.05); }
}

.line-2 {
    stroke-dasharray: 240;
    stroke-dashoffset: 240;
    animation: line2Flow 11s linear infinite;
}

@keyframes line2Flow {
    0%   { stroke-dashoffset: 240; }
    50%  { stroke-dashoffset: 0; }
    100% { stroke-dashoffset: -240; }
}

/* ========== HERO SECTION ========== */
.hero {
    background: linear-gradient(135deg, var(--secondary-color), #1a7cb8);
    color: var(--white);
    padding: 80px 20px;
    text-align: center;
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
}

.hero h1 {
    font-size: 48px;
    margin-bottom: 20px;
    font-weight: 700;
    animation: slideInDown 0.6s ease-out;
}

.hero p {
    font-size: 18px;
    margin-bottom: 30px;
    opacity: 0.95;
    animation: slideInUp 0.6s ease-out 0.2s backwards;
}

.hero-buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
    animation: slideInUp 0.6s ease-out 0.4s backwards;
}

.btn-light {
    background: var(--white);
    color: var(--secondary-color);
    font-weight: 600;
}

.btn-light:hover {
    background: var(--light-bg);
    transform: translateY(-2px);
}

/* ========== CONTAINER ========== */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

section {
    padding: 60px 20px;
}

/* ========== ABOUT SECTION ========== */
#about {
    background: var(--light-bg);
    padding: 70px 0;
}

/* عنوان */
.section-title {
    text-align: center;
    font-size: 32px;
    margin-bottom: 50px;
    color: var(--dark-text);
}

.section-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 4px;
    background: var(--primary-color);
    margin: 12px auto 0;
    border-radius: 4px;
}

/* ساختار اصلی بسیار مدرن */
.about-content {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 40px;
    align-items: center;
}

/* ---- TEXT ---- */
.about-text {
    background: var(--white);
    padding: 25px 30px;
    border-radius: 18px;
    box-shadow: 0 6px 25px rgba(0, 0, 0, 0.07);
    animation: fadeInUp 0.7s ease both;
}

.about-text h3 {
    font-size: 22px;
    margin-bottom: 12px;
    color: var(--secondary-color);
    font-weight: 700;
}

.about-text p {
    margin-bottom: 12px;
    color: var(--light-text);
    line-height: 1.9;
    font-size: 15px;
}

/* ---- IMAGE ---- */
.about-image {
    width: 100%;
    display: flex;
    justify-content: center;
    animation: fadeFloat 2s ease-in-out infinite alternate;
}

.about-image img {
    width: 100%;
    max-width: 520px;
    border-radius: 20px;
    box-shadow: 0 18px 40px rgba(0,0,0,0.15);
}

/* ---- STATS ---- */
.about-stats {
    margin-top: 30px;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    animation: fadeIn 1s ease both;
}

.stat-card {
    background: var(--white);
    padding: 20px 15px;
    border-radius: 14px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    transition: 0.3s;
}

.stat-card:hover {
    transform: translateY(-6px);
}

.stat-number {
    font-size: 28px;
    font-weight: 800;
    color: var(--primary-color);
}

.stat-label {
    margin-top: 5px;
    font-size: 14px;
    color: var(--light-text);
}

/* ---- Animations ---- */
@keyframes fadeFloat {
    0% { opacity: 0.8; transform: translateY(8px); }
    100% { opacity: 1; transform: translateY(-8px); }
}

@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* ---- Responsive ---- */
@media (max-width: 991px) {

    .about-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .about-text {
        order: 2;
    }

    .about-image {
        order: 1;
    }

    .about-stats {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 576px) {

    .section-title {
        font-size: 26px;
    }

    .about-text {
        padding: 20px;
    }

    .about-stats {
        grid-template-columns: 1fr 1fr;
        gap: 15px;
    }

    .stat-number {
        font-size: 24px;
    }
}


/* ========== FEATURES SECTION ========== */
#features {
    background: var(--white);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.feature-card {
    background: var(--light-bg);
    padding: 30px;
    border-radius: 12px;
    text-align: center;
    transition: all 0.3s;
    border: 2px solid transparent;
    cursor: pointer;
}

.feature-card:hover {
    border-color: var(--primary-color);
    box-shadow: 0 10px 30px rgba(255, 107, 53, 0.1);
    transform: translateY(-5px);
}

.feature-icon {
    font-size: 48px;
    margin-bottom: 15px;
}

.feature-card h3 {
    font-size: 20px;
    margin-bottom: 10px;
    color: var(--dark-text);
}

.feature-card p {
    font-size: 14px;
    color: var(--light-text);
    line-height: 1.6;
}

/* ========== APP DOWNLOAD SECTION ========== */
#download {
    background: linear-gradient(135deg, var(--secondary-color), #1a7cb8);
    color: var(--white);
}

.download-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
}

.download-info h2 {
    font-size: 32px;
    margin-bottom: 20px;
}

.download-info p {
    font-size: 16px;
    margin-bottom: 15px;
    opacity: 0.95;
}

.download-buttons {
    display: flex;
    gap: 15px;
    margin-top: 30px;
    flex-wrap: wrap;
}

.app-badge {
    display: flex;
    align-items: center;
    gap: 10px;
    background: rgba(255, 255, 255, 0.1);
    padding: 12px 20px;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s;
    cursor: pointer;
    text-decoration: none;
    color: var(--white);
}

.app-badge:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.5);
    transform: translateX(-5px);
}

.app-badge-icon {
    font-size: 24px;
}

.app-badge-text h4 {
    font-size: 12px;
    opacity: 0.8;
    margin-bottom: 2px;
}

.app-badge-text p {
    font-size: 16px;
    font-weight: 600;
    margin: 0;
}

.download-preview {
    display: flex;
    gap: 20px;
    justify-content: flex-end;
}

.phone-mockup {
    width: 200px;
    height: 400px;
    background: var(--dark-text);
    border-radius: 40px;
    padding: 10px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 12px;
}

.phone-mockup::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 150px;
    height: 25px;
    background: var(--dark-text);
    border-radius: 0 0 20px 20px;
    z-index: 10;
}

.phone-mockup.ios {
    border-radius: 40px;
}

.phone-mockup.ios::before {
    width: 120px;
    height: 22px;
    border-radius: 0 0 18px 18px;
}

.phone-mockup.android {
    border-radius: 28px;
}

.phone-mockup.android::before {
    width: 60px;
    height: 6px;
    border-radius: 3px;
    top: 10px;
}

/* تفاوت رنگ صفحه */
.phone-mockup.ios .phone-screen {
    background: linear-gradient(135deg, #667eea, #764ba2);
}

.phone-mockup.android .phone-screen {
    background: linear-gradient(135deg, #0f9d58, #4285f4);
}

.phone-screen {
    width: 100%;
    height: 100%;
    border-radius: 35px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.phone-screen img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 35px;
}

.store-icon {
    width: 24px;
    height: 24px;
    object-fit: contain;
}

/* ========== TESTIMONIALS SECTION ========== */
#testimonials {
    background: var(--light-bg);
}

.testimonials-carousel {
    position: relative;
    overflow: hidden;
    padding: 20px 0;
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
    align-items: stretch;
}

.testimonial-card {
    background: var(--white);
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    transition: all 0.5s ease;
    border-right: 4px solid var(--primary-color);
    animation: fadeIn 0.5s ease;
    display: flex;
    flex-direction: column;
    min-height: 230px;
}

.testimonial-card:hover {
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12);
    transform: translateY(-5px);
}

.stars {
    color: #FFC107;
    margin-bottom: 15px;
    font-size: 18px;
}

.testimonial-text {
    color: var(--light-text);
    margin-bottom: 20px;
    line-height: 1.8;
    font-style: italic;
    flex: 1;
}

.testimonial-author {
    font-weight: 600;
    color: var(--dark-text);
}

.testimonial-role {
    font-size: 13px;
    color: var(--light-text);
    margin-top: 3px;
}

/* ========== CLIENTS CAROUSEL (INFINITE LOOP) ========== */
#clients {
    background: var(--white);
    padding: 60px 0;
    overflow: hidden;
    direction: ltr; /* برای منطق اسکرول بی‌نهایت */
}

#clients .section-title {
    text-align: center;
    font-size: 28px;
    color: var(--secondary-color);
    margin-bottom: 24px;
    direction: rtl; /* متن فارسی */
}

.clients-carousel {
    overflow: hidden;
    width: 100%;
    padding: 20px 0;
    position: relative;
    direction: ltr;
}

.clients-track {
    display: flex;
    gap: 28px;
    align-items: center;
    will-change: transform;
    user-select: none;
    padding: 10px 0;
    width: max-content;
    animation: none !important;
}

.client-card {
    flex: 0 0 260px;
    height: 150px;
    border-radius: 18px;
    padding: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 14px 40px rgba(12, 40, 80, 0.08);
    background: linear-gradient(180deg, var(--white), #f4fbff);
    transition: transform 0.28s, box-shadow 0.28s;
    border: 1px solid rgba(15, 76, 129, 0.06);
    direction: rtl;
}

.client-card:hover {
    transform: translateY(-8px) scale(1.03);
    box-shadow: 0 24px 60px rgba(12, 40, 80, 0.12);
    z-index: 10;
}

.client-name {
    font-weight: 800;
    color: var(--secondary-color);
    font-size: 18px;
    text-align: center;
    white-space: nowrap;
}

/* ریسپانسیو */
@media (max-width: 900px) {
    .client-card {
        flex: 0 0 210px;
        height: 120px;
    }
    .clients-track {
        gap: 20px;
    }
}

@media (max-width: 576px) {
    .client-card {
        flex: 0 0 160px;
        height: 100px;
    }
    .client-name {
        font-size: 14px;
    }
}
/* ========== DARK MODE - CLIENTS ========== */
body.dark-mode #clients {
    background: var(--light-bg); /* پس‌زمینه سکشن کمی تیره‌تر از کارت‌ها */
}

body.dark-mode #clients .section-title {
    color: var(--primary-color);
}

body.dark-mode .client-card {
    background: linear-gradient(180deg, #1E1E1E, #2A2A2A);
    border-color: rgba(255, 255, 255, 0.05);
    box-shadow: 0 14px 40px rgba(0, 0, 0, 0.6);
}

body.dark-mode .client-card:hover {
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.9);
}

body.dark-mode .client-name {
    color: var(--dark-text); /* متن روشن روی کارت تیره */
}


/* ========== UPDATES SECTION ========== */
#updates {
    background: linear-gradient(135deg, var(--primary-color), #FF8C42);
    color: var(--white);
}

.updates-timeline {
    position: relative;
    padding: 20px 0;
    max-width: 600px;
    margin: 0 auto;
}

.timeline-item {
    margin-bottom: 40px;
    position: relative;
    padding-left: 80px;
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: -30px;
    top: 0;
    width: 20px;
    height: 20px;
    background: var(--white);
    border: 4px solid var(--primary-color);
    border-radius: 50%;
    z-index: 2;
    transform: translateX(-50%);
}

.timeline-item::after {
    content: '';
    position: absolute;
    left: -30px;
    top: 20px;
    width: 4px;
    height: calc(100% + 40px);
    background: rgba(255, 255, 255, 0.3);
    z-index: 1;
    transform: translateX(-50%);
}

/*.timeline-item:last-child::after {*/
/*    display: none;*/
/*}*/

.timeline-date {
    font-weight: 700;
    font-size: 16px;
    margin-bottom: 10px;
    cursor: pointer;
    display: flex;
    align-items: center;
    padding: 12px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    transition: all 0.3s;
    user-select: none;
    /* مهم: فلش را ببریم لبهٔ چپ و بینش فاصله بیفتد */
    width: 100%;
}

.timeline-date::before {
    content: '▶';
    display: inline-block;
    font-size: 12px;
    transition: transform 0.3s;
    /* مهم: فلش را تا انتهای چپ هل بده */
    margin-left: auto;   /* در RTL فلش می‌رود لبهٔ چپ */
    margin-right: 0;
}

.timeline-item.active .timeline-date::before {
    transform: rotate(90deg);
}

.timeline-content {
    background: rgba(255, 255, 255, 0.1);
    padding: 20px;
    border-radius: 12px;
    border-right: 3px solid rgba(255, 255, 255, 0.5);
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease, opacity 0.3s ease;
    opacity: 0;
}

.timeline-item.active .timeline-content {
    max-height: 500px;
    opacity: 1;
    padding: 20px;
    margin-top: 10px;
}

.timeline-content h4 {
    font-size: 18px;
    margin-bottom: 10px;
}

.timeline-content p {
    opacity: 0.95;
    font-size: 14px;
}

/* ========== DARK MODE - UPDATES / ROADMAP ========== */
body.dark-mode #updates {
    background: linear-gradient(135deg, #1f2933, #111827);
    color: var(--dark-text);
}

body.dark-mode .updates-timeline {
    color: var(--dark-text);
}

body.dark-mode .timeline-item::before {
    background: #FFFFFF;
    border-color: var(--primary-color);
}

body.dark-mode .timeline-item::after {
    background: rgba(255, 255, 255, 0.25);
}

body.dark-mode .timeline-date {
    background: rgba(0, 0, 0, 0.45);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

body.dark-mode .timeline-date:hover {
    background: rgba(0, 0, 0, 0.6);
}

body.dark-mode .timeline-content {
    background: rgba(0, 0, 0, 0.45);
    border-right-color: rgba(255, 255, 255, 0.5);
}

body.dark-mode .timeline-content h4,
body.dark-mode .timeline-content p {
    color: var(--dark-text);
}

/* ========== CONTACT SECTION ========== */
#contact {
    background: var(--light-bg);
}

.contact-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
}

.contact-info-group {
    background: var(--white);
    padding: 30px;
    border-radius: 12px;
    margin-bottom: 20px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.05);
}

.contact-info-group h4 {
    color: var(--primary-color);
    margin-bottom: 15px;
    font-size: 18px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.contact-info-group p {
    color: var(--light-text);
    margin: 10px 0;
}

.contact-info-group a {
    color: var(--secondary-color);
    text-decoration: none;
    transition: color 0.3s;
}

.contact-info-group a:hover {
    color: var(--primary-color);
}

/* ========== FORM ========== */
.contact-form {
    background: var(--white);
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--dark-text);
    font-size: 14px;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #EEEEEE;
    border-radius: 8px;
    font-family: inherit;
    font-size: 14px;
    transition: all 0.3s;
    color: var(--dark-text);
    background-color: var(--white);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(255, 107, 53, 0.1);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

.form-submit {
    width: 100%;
    padding: 14px;
    background: var(--primary-color);
    color: var(--white);
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}

.form-submit:hover {
    background: #E55A2B;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255, 107, 53, 0.3);
}

/* ========== FOOTER ========== */
footer {
    background: var(--dark-text);
    color: var(--white);
    padding: 40px 20px 20px;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-bottom: 30px;
}

.footer-section h4 {
    font-size: 16px;
    margin-bottom: 15px;
    color: var(--primary-color);
}

.footer-section ul {
    list-style: none;
}

.footer-section p {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 10px;
}

.footer-section a {
    color: #CCCCCC;
    text-decoration: none;
    transition: color 0.3s;
}

.footer-section a:hover {
    color: var(--primary-color);
}

.social-links {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

.social-link {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    text-decoration: none;
    transition: all 0.3s;
    font-size: 18px;
    fill: currentColor;
    stroke: currentColor;
}

.social-link:hover {
    background: var(--secondary-color);
    transform: translateY(-3px);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 20px;
    text-align: center;
    color: #999999;
    font-size: 14px;
}

body.dark-mode .footer-section p {
    color: var(--dark-text);
}
/* ========== TRUST BADGES (ENAMAD) ========== */
.trust-badges {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-top: 18px;
    flex-wrap: wrap;
}

.trust-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 8px 10px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    min-width: 110px;
    transition: all 0.25s ease;
}

.trust-item:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: var(--primary-color);
    transform: translateY(-2px);
}

.enamad-badge img {
    max-width: 78px;
    height: auto;
    display: block;
    filter: brightness(1.05) contrast(1.05);
    transition: filter 0.25s ease, transform 0.25s ease;
    cursor: pointer;
}

.enamad-badge:hover img {
    filter: brightness(1.12) contrast(1.1);
    transform: translateY(-1px);
}

.trust-icon {
    width: 40px;
    height: 40px;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    color: var(--white);
}

.trust-caption {
    margin-top: 6px;
    font-size: 11px;
    color: #CCCCCC;
    text-align: center;
}

/* Dark mode */
body.dark-mode .trust-item {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(255, 255, 255, 0.14);
}

body.dark-mode .trust-item:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--secondary-color);
}

body.dark-mode .trust-caption {
    color: var(--dark-text);
}

body.dark-mode .enamad-badge img {
    filter: brightness(1.12) contrast(1.08);
}

@media (max-width: 480px) {
    .trust-badges {
        gap: 12px;
    }

    .trust-item {
        padding: 6px 8px;
    }

    .enamad-badge img {
        max-width: 70px;
    }
}

/* ========== ANIMATIONS ========== */
@keyframes slideInDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

/* ========== RESPONSIVE - موبایل ========== */
@media (max-width: 768px) {
    .header-container {
        flex-wrap: nowrap;
        padding: 15px 15px;
    }

    /* نمایش دکمه هامبرگر */
    .menu-toggle {
        display: flex;
    }

    /* منو کشویی */
    nav {
        position: fixed;
        top: 70px;
        right: 0;
        width: 100%;
        max-width: 400px;
        background: var(--white);
        box-shadow: -5px 0 20px rgba(0, 0, 0, 0.1);
        flex-direction: column;
        transform: translateX(100%);
        transition: transform 0.3s ease;
        z-index: 999;
    }

    nav.active {
        transform: translateX(0);
    }

    nav ul {
        flex-direction: column;
        gap: 0;
        padding: 20px 0;
    }

    nav li {
        padding: 0;
    }

    nav a {
        display: block;
        padding: 15px 20px;
        border-bottom: 1px solid var(--light-bg);
    }

    nav a::after {
        display: none;
    }

    body.dark-mode nav {
        background: #0D0D0D;
    }

    body.dark-mode nav a {
        color: var(--dark-text);
        border-bottom-color: #1E1E1E;
    }

    .logo span {
        display: none;
    }

    .logo {
        font-size: 18px;
        gap: 5px;
    }

    .hero h1 {
        font-size: 32px;
    }

    .hero p {
        font-size: 16px;
    }

    .about-content,
    .download-container,
    .contact-container,
    .testimonials-grid {
        grid-template-columns: 1fr;
    }

    .feature-card p {
        font-size: 12px;
    }

    .download-preview {
        justify-content: center;
    }

    section {
        padding: 40px 20px;
    }

    .section-title {
        font-size: 28px;
    }

    .hero-buttons {
        flex-direction: column;
    }

    .btn {
        width: 100%;
    }

    .download-buttons {
        flex-direction: column;
    }

    .app-badge {
        width: 100%;
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .header-container {
        padding: 12px 10px;
    }

    .logo img {
        height: 24px !important;
    }

    .hero h1 {
        font-size: 24px;
    }

    .about-stats {
        grid-template-columns: 1fr;
    }

    .features-grid {
        grid-template-columns: 1fr;
    }

    .testimonials-grid {
        grid-template-columns: 1fr;
    }

    .footer-content {
        grid-template-columns: 1fr;
    }

    .download-preview {
        gap: 15px;
    }

    .phone-mockup {
        width: 150px;
        height: 300px;
    }
}

/* ========== USDT HERO WIDGET ========== */
.usdt-hero-widget {
    position: absolute;
    left: 24px;
    bottom: 24px;
    padding: 12px 16px;
    border-radius: 14px;
    background: rgba(0, 0, 0, 0.35);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.18);
    color: #FFFFFF;
    font-size: 13px;
    line-height: 1.6;
    display: flex;
    flex-direction: column;
    gap: 4px;
    max-width: 260px;
    z-index: 3;
}

.usdt-hero-label {
    font-size: 12px;
    opacity: 0.9;
}

.usdt-hero-row {
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: 6px;
}

.usdt-hero-value {
    font-weight: 800;
    font-size: 18px;
    color: #FFD166;
    white-space: nowrap;
    text-align: center;
}

.usdt-hero-update {
    font-size: 11px;
    opacity: 0.9;
}

/* دارک‌مود: کمی روشن‌تر برای خوانایی روی گرادیان هیرو */
body.dark-mode .usdt-hero-widget {
    background: rgba(15, 23, 42, 0.7);
    border-color: rgba(148, 163, 184, 0.6);
}

/* روی موبایل، ویجت بره زیر متن هیرو و وسط‌چین شود */
@media (max-width: 768px) {
    .hero {
        position: relative;
    }

    .usdt-hero-widget {
        position: static;
        margin: 20px auto 0;
        max-width: 320px;
    }
}

/* ========================================
   NOTIFICATION DIALOG - حرفه‌ای و مدرن
======================================== */

/* حذف کامل overlay و modal قدیمی */
.notify-modal {
    display: none !important;
}

.notify-modal.hidden {
    display: none !important;
}

#notifyModal {
    display: none !important;
}

/* ========== دیالوگ اصلی - Slide Down از بالا ========== */
.notify-box {
    /* موقعیت و Layout */
    position: fixed;
    top: 85px; /* زیر هدر */
    left: 50%;
    transform: translateX(-50%) translateY(-120%); /* پنهان در بالا */
    z-index: 10000;

    /* اندازه */
    width: 92%;
    max-width: 440px;

    /* ظاهر */
    background: #ffffff;
    border-radius: 16px;
    padding: 26px 24px;
    box-shadow:
            0 12px 40px rgba(15, 23, 42, 0.12),
            0 4px 12px rgba(15, 23, 42, 0.08),
            0 0 0 1px rgba(15, 23, 42, 0.04);

    /* Typography */
    text-align: center;
    font-family: 'Vazirmatn', 'IRANSansX', sans-serif;

    /* Transitions */
    transition: transform 0.45s cubic-bezier(0.34, 1.56, 0.64, 1),
    opacity 0.35s ease,
    box-shadow 0.3s ease;
    opacity: 0;
    pointer-events: none;

    /* بهینه‌سازی Performance */
    will-change: transform, opacity;
    backface-visibility: hidden;
    -webkit-font-smoothing: antialiased;
}

/* ========== حالت نمایش ========== */
.notify-box.show {
    transform: translateX(-50%) translateY(0);
    opacity: 1;
    pointer-events: auto;
}

/* ========== Dark Mode ========== */
body.dark-mode .notify-box {
    background: #1e293b;
    box-shadow:
            0 12px 40px rgba(0, 0, 0, 0.5),
            0 4px 12px rgba(0, 0, 0, 0.3),
            0 0 0 1px rgba(71, 85, 105, 0.3);
    border: 1px solid #334155;
}

/* ========== آیکون اعلان ========== */
.notify-icon {
    font-size: 52px;
    margin-bottom: 14px;
    display: inline-block;
    line-height: 1;
    animation: bellRing 0.7s ease;
    filter: drop-shadow(0 2px 4px rgba(249, 115, 22, 0.2));
}

@keyframes bellRing {
    0%, 100% { transform: rotate(0deg); }
    10%, 30%, 50%, 70% { transform: rotate(-10deg); }
    20%, 40%, 60%, 80% { transform: rotate(10deg); }
    90% { transform: rotate(-5deg); }
}

/* ========== عنوان ========== */
.notify-box h3 {
    margin: 12px 0 10px;
    font-size: 21px;
    font-weight: 700;
    color: #0f172a;
    line-height: 1.3;
    letter-spacing: -0.02em;
}

body.dark-mode .notify-box h3 {
    color: #f8fafc;
}

/* ========== توضیحات ========== */
.notify-box p {
    color: #64748b;
    line-height: 1.75;
    font-size: 14.5px;
    margin: 0 0 22px;
    padding: 0 8px;
}

body.dark-mode .notify-box p {
    color: #94a3b8;
}

/* ========== دکمه‌ها ========== */
.notify-actions {
    display: flex;
    gap: 12px;
    margin-top: 22px;
    flex-wrap: wrap;
}

.notify-actions button {
    flex: 1 1 0;
    min-width: 120px;
    padding: 13px 20px;
    border-radius: 12px;
    border: none;
    cursor: pointer;
    font-size: 15px;
    font-weight: 600;
    font-family: inherit;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    outline: none;
    position: relative;
    overflow: hidden;
}

/* دکمه اصلی (فعال‌سازی) */
.notify-actions .btn-primary {
    background: linear-gradient(135deg, #f97316 0%, #ea580c 100%);
    color: #ffffff;
    box-shadow:
            0 4px 12px rgba(249, 115, 22, 0.3),
            0 2px 4px rgba(249, 115, 22, 0.2);
    font-weight: 700;
}

.notify-actions .btn-primary:hover {
    transform: translateY(-2px);
    box-shadow:
            0 6px 16px rgba(249, 115, 22, 0.4),
            0 3px 6px rgba(249, 115, 22, 0.25);
    background: linear-gradient(135deg, #fb923c 0%, #f97316 100%);
}

.notify-actions .btn-primary:active {
    transform: translateY(0);
    box-shadow:
            0 2px 8px rgba(249, 115, 22, 0.3),
            0 1px 3px rgba(249, 115, 22, 0.2);
}

/* دکمه ثانویه (بعداً) */
.notify-actions .btn-secondary {
    background: #f1f5f9;
    color: #0f172a;
    border: 1.5px solid #e2e8f0;
    font-weight: 600;
}

.notify-actions .btn-secondary:hover {
    background: #e2e8f0;
    border-color: #cbd5e1;
    transform: translateY(-1px);
}

.notify-actions .btn-secondary:active {
    transform: translateY(0);
    background: #cbd5e1;
}

body.dark-mode .notify-actions .btn-secondary {
    background: #334155;
    color: #f1f5f9;
    border-color: #475569;
}

body.dark-mode .notify-actions .btn-secondary:hover {
    background: #475569;
    border-color: #64748b;
}

body.dark-mode .notify-actions .btn-secondary:active {
    background: #475569;
}

/* ========== Ripple Effect (اختیاری) ========== */
.notify-actions button::after {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle, rgba(255,255,255,0.3) 0%, transparent 70%);
    transform: scale(0);
    transition: transform 0.5s ease;
    pointer-events: none;
}

.notify-actions button:active::after {
    transform: scale(2);
    transition: transform 0s;
}

/* ========== Focus States (Accessibility) ========== */
.notify-actions button:focus-visible {
    outline: 3px solid rgba(249, 115, 22, 0.4);
    outline-offset: 2px;
}

body.dark-mode .notify-actions button:focus-visible {
    outline-color: rgba(251, 146, 60, 0.5);
}

/* ========== موبایل - Responsive ========== */
@media (max-width: 576px) {
    .notify-box {
        top: 75px;
        width: 94%;
        max-width: 100%;
        padding: 22px 18px;
        border-radius: 14px;
    }

    .notify-icon {
        font-size: 44px;
        margin-bottom: 10px;
    }

    .notify-box h3 {
        font-size: 18px;
        margin: 10px 0 8px;
    }

    .notify-box p {
        font-size: 13.5px;
        padding: 0 4px;
        margin-bottom: 18px;
    }

    .notify-actions {
        gap: 10px;
        margin-top: 18px;
    }

    .notify-actions button {
        padding: 12px 16px;
        font-size: 14px;
        min-width: 100px;
    }
}

/* موبایل خیلی کوچک */
@media (max-width: 380px) {
    .notify-box {
        width: 96%;
        padding: 20px 16px;
    }

    .notify-actions {
        flex-direction: column;
        gap: 8px;
    }

    .notify-actions button {
        width: 100%;
        min-width: auto;
    }
}

/* ========== تبلت ========== */
@media (min-width: 577px) and (max-width: 768px) {
    .notify-box {
        max-width: 420px;
    }
}

/* ========== لپتاپ و بالاتر ========== */
@media (min-width: 769px) {
    .notify-box {
        max-width: 460px;
    }
}

/* ========== انیمیشن ورود اولیه (اختیاری) ========== */
@keyframes fadeInSlideDown {
    from {
        opacity: 0;
        transform: translateX(-50%) translateY(-120%);
    }
    to {
        opacity: 1;
        transform: translateX(-50%) translateY(0);
    }
}

/* ========== Reduced Motion (Accessibility) ========== */
@media (prefers-reduced-motion: reduce) {
    .notify-box,
    .notify-icon,
    .notify-actions button {
        animation: none !important;
        transition: opacity 0.2s ease !important;
    }

    .notify-box.show {
        animation: none;
    }
}

/* ========== Print Styles ========== */
@media print {
    .notify-box {
        display: none !important;
    }
}

/* ========================================
   PRICING SECTION - Tab Style + Responsive (FINAL)
======================================== */

#pricing {
    padding: 80px 20px;
    background: #f8fafc;
    transition: background 0.3s ease;
}

body.dark-mode #pricing {
    background: #0f172a;
}

/* ========== Pricing Header ========== */
.pricing-header,
.section-title {
    text-align: center;
    margin-bottom: 15px;
}

.section-title {
    font-size: 2.5rem;
    color: #0f172a;
    font-weight: 700;
    transition: color 0.3s ease;
}

body.dark-mode .section-title {
    color: #f8fafc;
}

.section-subtitle {
    text-align: center;
    font-size: 1.1rem;
    color: #64748b;
    margin-bottom: 40px;
    transition: color 0.3s ease;
}

body.dark-mode .section-subtitle {
    color: #94a3b8;
}

/* ========== Pricing Tabs (به جای سوییچ) ========== */
.pricing-tabs {
    display: flex;
    justify-content: center;
    align-items: stretch;
    gap: 12px;
    margin: 0 auto 50px;
    flex-wrap: wrap;
    max-width: 700px;
    padding: 0 15px;
}

.pricing-tab {
    flex: 1 1 auto;
    min-width: 200px;
    max-width: 340px;
    padding: 16px 24px;
    border: 2px solid #e2e8f0;
    background: #ffffff;
    border-radius: 14px;
    font-size: 1.05rem;
    font-weight: 700;
    color: #64748b;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-family: 'Vazirmatn', 'IRANSansX', sans-serif;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    position: relative;
    text-align: center;
}

body.dark-mode .pricing-tab {
    background: #1e293b;
    border-color: #334155;
    color: #94a3b8;
}

.pricing-tab:hover {
    border-color: #f97316;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(249, 115, 22, 0.2);
}

body.dark-mode .pricing-tab:hover {
    border-color: #fb923c;
    box-shadow: 0 4px 12px rgba(251, 146, 60, 0.3);
}

.pricing-tab.active {
    background: linear-gradient(135deg, #f97316, #ea580c);
    border-color: #ea580c;
    color: #ffffff;
    box-shadow: 0 6px 18px rgba(249, 115, 22, 0.4);
    transform: translateY(-3px);
}

body.dark-mode .pricing-tab.active {
    background: linear-gradient(135deg, #ea580c, #c2410c);
    border-color: #c2410c;
    box-shadow: 0 6px 18px rgba(234, 88, 12, 0.5);
}

.pricing-tab.active:hover {
    transform: translateY(-3px);
}

/* Save Badge in Tab */
.pricing-tab .save-badge {
    display: inline-block;
    background: rgba(255, 255, 255, 0.25);
    color: #ffffff;
    padding: 3px 10px;
    border-radius: 10px;
    font-size: 0.75rem;
    font-weight: 800;
    margin-right: 6px;
    white-space: nowrap;
}

.pricing-tab:not(.active) .save-badge {
    background: linear-gradient(135deg, #dcfce7, #bbf7d0);
    color: #15803d;
}

body.dark-mode .pricing-tab:not(.active) .save-badge {
    background: linear-gradient(135deg, #14532d, #166534);
    color: #86efac;
}

/* ========== Pricing Grid (وسط‌چین برای 4 و 5 کارت) ========== */
.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    justify-content: center;
    gap: 20px;
    max-width: 1360px;
    margin: 0 auto;
}
#pricing .pricing-grid {
    display: flex !important;
    flex-wrap: nowrap !important;
    justify-content: center !important;
    align-items: stretch !important;
    gap: 20px !important;
    width: 100vw !important;
    position: relative !important;
    left: 50% !important;
    right: 50% !important;
    margin-left: -50vw !important;
    margin-right: -50vw !important;
    padding: 0 clamp(20px, 4vw, 60px) !important;
    max-width: none !important;
    box-sizing: border-box !important;
}

/* دسکتاپ بزرگ - 5 کارت در یک ردیف */
@media (min-width: 1300px) {
    .pricing-grid {
        grid-template-columns: repeat(5, 1fr);
        max-width: 1360px;
    }
}

/* دسکتاپ متوسط - 4 کارت در یک ردیف (وسط‌چین) */
@media (min-width: 1000px) and (max-width: 1299px) {
    .pricing-grid {
        grid-template-columns: repeat(4, 1fr);
        max-width: 1100px;
    }
}

/* تبلت - 3 کارت */
@media (min-width: 768px) and (max-width: 999px) {
    .pricing-grid {
        grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
        max-width: 750px;
    }
}

/* موبایل - 1 کارت */
@media (max-width: 767px) {
    .pricing-grid {
        grid-template-columns: 1fr;
        max-width: 420px;
        gap: 24px;
    }
}

/* ========== Pricing Card ========== */
.pricing-card {
    background: #ffffff;
    border-radius: 20px;
    padding: 32px 24px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
    border: 2px solid transparent;
    position: relative;
    flex: 1 1 0 !important;
    min-width: 260px !important;
    max-width: 360px !important;
}

body.dark-mode .pricing-card {
    background: #1e293b;
    box-shadow: 0 4px 20px rgba(0,0,0,0.3);
    border-color: #334155;
}

.pricing-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 35px rgba(0,0,0,0.15);
    border-color: #f97316;
}

body.dark-mode .pricing-card:hover {
    box-shadow: 0 12px 35px rgba(0,0,0,0.5);
    border-color: #fb923c;
}

.pricing-card.popular {
    border-color: #f97316;
    transform: scale(1.02);
    box-shadow: 0 8px 30px rgba(249, 115, 22, 0.25);
}

body.dark-mode .pricing-card.popular {
    border-color: #fb923c;
    box-shadow: 0 8px 30px rgba(251, 146, 60, 0.35);
}

.pricing-card.popular:hover {
    transform: scale(1.02) translateY(-8px);
}

/* ========== Plan Badge (برچسب بالای کارت) ========== */
.plan-badge {
    position: absolute;
    top: -14px;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(135deg, #f97316, #ea580c);
    color: #ffffff;
    padding: 6px 18px;
    border-radius: 18px;
    font-size: 0.75rem;
    font-weight: 800;
    box-shadow: 0 4px 12px rgba(249, 115, 22, 0.4);
    white-space: nowrap;
    z-index: 10;
    animation: badgePulse 2s ease-in-out infinite;
}

body.dark-mode .plan-badge {
    background: linear-gradient(135deg, #ea580c, #c2410c);
    box-shadow: 0 4px 12px rgba(234, 88, 12, 0.5);
}

@keyframes badgePulse {
    0%, 100% { transform: translateX(-50%) scale(1); }
    50% { transform: translateX(-50%) scale(1.05); }
}

/* ========== Plan Header ========== */
.plan-header { display:flex; flex-direction:column; align-items:center; gap:10px; }

.plan-icon svg { width: 42px; height: 42px; display: block; }

.plan-icon {
    font-size: 3rem;
    margin-bottom: 12px;
    display: block;
    animation: iconFloat 3s ease-in-out infinite;
}

body.dark-mode .plan-icon {
    filter: brightness(1.2);
}

@keyframes iconFloat {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-5px); }
}

.plan-name {
    font-size: 1.5rem;
    font-weight: 800;
    color: #0f172a;
    margin-bottom: 10px;
    transition: color 0.3s ease;
    line-height: 1.3;
}

body.dark-mode .plan-name {
    color: #f8fafc;
}

.plan-description {
    font-size: 0.9rem;
    color: #64748b;
    line-height: 1.6;
    transition: color 0.3s ease;
}

body.dark-mode .plan-description {
    color: #94a3b8;
}

/* ========== Plan Pricing ========== */
.plan-pricing {
    text-align: center;
    margin-bottom: 20px;
    padding: 16px 0;
    border-top: 2px dashed #e2e8f0;
    border-bottom: 2px dashed #e2e8f0;
    transition: border-color 0.3s ease;
}

body.dark-mode .plan-pricing {
    border-color: #334155;
}

.price-wrapper {
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: 6px;
    margin-bottom: 8px;
    flex-wrap: nowrap;
}

.price-amount {
    font-size: 2.2rem;
    font-weight: 900;
    color: #0f172a;
    transition: color 0.3s ease;
    white-space: nowrap;
    font-family: 'Vazirmatn', 'IRANSansX', sans-serif;
    font-variant-numeric: tabular-nums;
    line-height: 1.1;
    letter-spacing: -0.02em;
}

body.dark-mode .price-amount {
    color: #f8fafc;
}

.price-currency {
    font-size: 0.9rem;
    color: #64748b;
    transition: color 0.3s ease;
    white-space: nowrap;
    font-weight: 600;
}

body.dark-mode .price-currency {
    color: #94a3b8;
}

.price-period {
    font-size: 0.85rem;
    color: #94a3b8;
    margin-top: 5px;
    transition: color 0.3s ease;
}

body.dark-mode .price-period {
    color: #64748b;
}

.price-original {
    text-decoration: line-through;
    color: #94a3b8;
    font-size: 0.95rem;
    margin-bottom: 6px;
    transition: color 0.3s ease;
    font-weight: 600;
}

body.dark-mode .price-original {
    color: #64748b;
}

.price-discount {
    display: inline-block;
    background: #fef3c7;
    color: #92400e;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 800;
    margin-top: 6px;
    transition: all 0.3s ease;
    white-space: nowrap;
}

body.dark-mode .price-discount {
    background: #451a03;
    color: #fbbf24;
}

/* ========== Plan Features ========== */
.plan-features {
    flex: 1;
    margin-bottom: 20px;
    min-height: 0;
}

.plan-features ul {
    list-style: none;
    padding: 0;
    margin: 0;
    max-height: 280px;
    overflow-y: auto;
    overflow-x: hidden;
}

/* Custom Scrollbar */
.plan-features ul::-webkit-scrollbar {
    width: 6px;
}

.plan-features ul::-webkit-scrollbar-track {
    background: #f1f5f9;
    border-radius: 10px;
}

body.dark-mode .plan-features ul::-webkit-scrollbar-track {
    background: #0f172a;
}

.plan-features ul::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 10px;
}

body.dark-mode .plan-features ul::-webkit-scrollbar-thumb {
    background: #475569;
}

.plan-features ul::-webkit-scrollbar-thumb:hover {
    background: #94a3b8;
}

.plan-features li {
    padding: 11px 0;
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 0.88rem;
    color: #475569;
    border-bottom: 1px solid #f1f5f9;
    transition: all 0.3s ease;
}

body.dark-mode .plan-features li {
    color: #cbd5e1;
    border-bottom-color: #334155;
}

.plan-features li:last-child {
    border-bottom: none;
}

.plan-features li:hover {
    background: #f8fafc;
    padding-right: 8px;
    border-radius: 6px;
}

body.dark-mode .plan-features li:hover {
    background: #0f172a;
}

.feature-icon {
    flex-shrink: 0;
    width: 18px;
    height: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 900;
    font-size: 1.1rem;
    line-height: 1;
}

.feature-icon.check {
    color: #10b981;
}

body.dark-mode .feature-icon.check {
    color: #34d399;
}

.feature-icon.cross {
    color: #ef4444;
}

body.dark-mode .feature-icon.cross {
    color: #f87171;
}

/* ========== Plan Button ========== */
.plan-button {
    width: 100%;
    padding: 15px;
    border: none;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 800;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-family: 'Vazirmatn', sans-serif;
}

.plan-button.primary {
    background: linear-gradient(135deg, #f97316, #ea580c);
    color: #ffffff;
    box-shadow: 0 4px 12px rgba(249, 115, 22, 0.3);
}

body.dark-mode .plan-button.primary {
    background: linear-gradient(135deg, #ea580c, #c2410c);
    box-shadow: 0 4px 12px rgba(234, 88, 12, 0.4);
}

.plan-button.primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(249, 115, 22, 0.4);
}

body.dark-mode .plan-button.primary:hover {
    box-shadow: 0 6px 18px rgba(234, 88, 12, 0.5);
}

.plan-button.primary:active {
    transform: translateY(0);
}

.plan-button.secondary {
    background: #ffffff;
    color: #f97316;
    border: 2px solid #f97316;
}

body.dark-mode .plan-button.secondary {
    background: transparent;
    color: #fb923c;
    border-color: #fb923c;
}

.plan-button.secondary:hover {
    background: #f97316;
    color: #ffffff;
    transform: translateY(-2px);
}

body.dark-mode .plan-button.secondary:hover {
    background: #fb923c;
    color: #0f172a;
}

/* ========== Features Comparison ========== */
.features-comparison {
    margin-top: 60px;
    text-align: center;
}

.features-comparison h3 {
    font-size: 1.8rem;
    color: #0f172a;
    margin-bottom: 25px;
    font-weight: 800;
    transition: color 0.3s ease;
}

body.dark-mode .features-comparison h3 {
    color: #f8fafc;
}

.features-comparison .btn-comparison {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 32px;
    background: #ffffff;
    color: #f97316;
    border: 2px solid #f97316;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 800;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Vazirmatn', sans-serif;
}

body.dark-mode .features-comparison .btn-comparison {
    background: #1e293b;
    border-color: #fb923c;
    color: #fb923c;
}

.features-comparison .btn-comparison:hover {
    background: #f97316;
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(249, 115, 22, 0.3);
}

body.dark-mode .features-comparison .btn-comparison:hover {
    background: #fb923c;
    color: #0f172a;
    box-shadow: 0 6px 18px rgba(251, 146, 60, 0.4);
}

.features-comparison .btn-comparison svg {
    transition: transform 0.3s ease;
}

.features-comparison .btn-comparison.active svg {
    transform: rotate(180deg);
}

/* ========== Comparison Table (موبایل‌فرندلی) ========== */
.comparison-table {
    margin-top: 30px;
    background: #ffffff;
    border-radius: 16px;
    padding: 20px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
    animation: slideDown 0.4s ease;
    transition: all 0.3s ease;
}

body.dark-mode .comparison-table {
    background: #1e293b;
    box-shadow: 0 8px 25px rgba(0,0,0,0.4);
}

@keyframes slideDown {
    from { opacity: 0; transform: translateY(-20px); }
    to { opacity: 1; transform: translateY(0); }
}

.comparison-table.hidden {
    display: none;
}

/* اسکرول افقی برای موبایل */
.comparison-table .table-scroll {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    border-radius: 12px;
}

.comparison-table .table-scroll::-webkit-scrollbar {
    height: 8px;
}

.comparison-table .table-scroll::-webkit-scrollbar-track {
    background: #f1f5f9;
    border-radius: 10px;
}

body.dark-mode .comparison-table .table-scroll::-webkit-scrollbar-track {
    background: #0f172a;
}

.comparison-table .table-scroll::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 10px;
}

body.dark-mode .comparison-table .table-scroll::-webkit-scrollbar-thumb {
    background: #475569;
}

.comparison-table .table-scroll::-webkit-scrollbar-thumb:hover {
    background: #94a3b8;
}

.comparison-table table {
    width: 100%;
    border-collapse: collapse;
    min-width: 600px;
}

.comparison-table th,
.comparison-table td {
    padding: 14px 12px;
    text-align: center;
    border-bottom: 1px solid #e2e8f0;
    transition: all 0.3s ease;
    font-size: 0.9rem;
}

body.dark-mode .comparison-table th,
body.dark-mode .comparison-table td {
    border-bottom-color: #334155;
}

.comparison-table th {
    background: #f8fafc;
    font-weight: 800;
    color: #0f172a;
    font-size: 0.95rem;
    position: sticky;
    top: 0;
    z-index: 10;
}

body.dark-mode .comparison-table th {
    background: #0f172a;
    color: #f8fafc;
}

.comparison-table td {
    color: #475569;
}

body.dark-mode .comparison-table td {
    color: #cbd5e1;
}

/* ستون اول چسبنده (sticky) */
.comparison-table td:first-child,
.comparison-table th:first-child {
    text-align: right;
    font-weight: 800;
    color: #475569;
    position: sticky;
    right: 0;
    background: #f8fafc;
    z-index: 5;
    box-shadow: 2px 0 5px rgba(0,0,0,0.05);
}

body.dark-mode .comparison-table td:first-child,
body.dark-mode .comparison-table th:first-child {
    color: #94a3b8;
    background: #1e293b;
    box-shadow: 2px 0 5px rgba(0,0,0,0.3);
}

.comparison-table th:first-child {
    z-index: 15;
}

.comparison-table tbody tr:hover {
    background: #f8fafc;
}

body.dark-mode .comparison-table tbody tr:hover {
    background: #0f172a;
}

.comparison-table tbody tr:hover td:first-child {
    background: #f1f5f9;
}

body.dark-mode .comparison-table tbody tr:hover td:first-child {
    background: #0f172a;
}

/* ========== Loader ========== */
.pricing-loader {
    grid-column: 1 / -1;
    text-align: center;
    padding: 60px 20px;
}

body.dark-mode .pricing-loader {
    color: #cbd5e1;
}

.loader-spinner {
    width: 50px;
    height: 50px;
    border: 4px solid #e2e8f0;
    border-top-color: #f97316;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 20px;
}

body.dark-mode .loader-spinner {
    border-color: #334155;
    border-top-color: #fb923c;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* ========================================
   RESPONSIVE - موبایل و تبلت
======================================== */

/* تبلت کوچک */
@media (max-width: 999px) {
    .section-title {
        font-size: 2rem;
    }

    .pricing-card {
        padding: 28px 20px;
    }

    .plan-icon {
        font-size: 2.5rem;
    }

    .plan-name {
        font-size: 1.35rem;
    }

    .price-amount {
        font-size: 2rem;
    }
}

/* موبایل */
@media (max-width: 767px) {
    #pricing {
        padding: 60px 15px;
    }

    .section-title {
        font-size: 1.8rem;
        margin-bottom: 12px;
    }

    .section-subtitle {
        font-size: 1rem;
        margin-bottom: 30px;
    }

    .pricing-tabs {
        flex-direction: column;
        gap: 10px;
        margin-bottom: 40px;
        padding: 0;
    }

    .pricing-tab {
        min-width: 100%;
        max-width: 100%;
        padding: 14px 20px;
        font-size: 1rem;
    }

    .pricing-tab .save-badge {
        font-size: 0.7rem;
        padding: 2px 8px;
    }

    .pricing-card {
        padding: 28px 20px;
    }

    .pricing-card.popular {
        transform: none;
    }

    .pricing-card.popular:hover {
        transform: translateY(-8px);
    }

    .plan-badge {
        font-size: 0.7rem;
        padding: 5px 14px;
        top: -12px;
    }

    .plan-icon {
        font-size: 2.3rem;
        margin-bottom: 10px;
    }

    .plan-name {
        font-size: 1.3rem;
        margin-bottom: 8px;
    }

    .plan-description {
        font-size: 0.85rem;
    }

    .plan-pricing {
        padding: 14px 0;
        margin-bottom: 16px;
    }

    .price-amount {
        font-size: 1.9rem;
    }

    .price-currency {
        font-size: 0.85rem;
    }

    .price-period {
        font-size: 0.8rem;
    }

    .price-original {
        font-size: 0.85rem;
    }

    .price-discount {
        font-size: 0.7rem;
        padding: 3px 10px;
    }

    .plan-features {
        margin-bottom: 16px;
    }

    .plan-features ul {
        max-height: 240px;
    }

    .plan-features li {
        padding: 9px 0;
        font-size: 0.85rem;
    }

    .feature-icon {
        width: 16px;
        height: 16px;
        font-size: 1rem;
    }

    .plan-button {
        padding: 13px;
        font-size: 0.95rem;
    }

    .features-comparison {
        margin-top: 50px;
    }

    .features-comparison h3 {
        font-size: 1.5rem;
        margin-bottom: 20px;
    }

    .features-comparison .btn-comparison {
        padding: 12px 24px;
        font-size: 0.95rem;
    }

    .comparison-table {
        padding: 15px 10px;
        border-radius: 12px;
    }

    .comparison-table .table-scroll {
        margin: 0 -10px;
        padding: 0 10px;
    }

    .comparison-table table {
        min-width: 500px;
    }

    .comparison-table th,
    .comparison-table td {
        padding: 10px 8px;
        font-size: 0.8rem;
    }

    .comparison-table th {
        font-size: 0.85rem;
    }
}

/* موبایل خیلی کوچک */
@media (max-width: 480px) {
    #pricing {
        padding: 50px 12px;
    }

    .section-title {
        font-size: 1.6rem;
    }

    .section-subtitle {
        font-size: 0.95rem;
    }

    .pricing-card {
        padding: 24px 18px;
    }

    .plan-icon {
        font-size: 2rem;
    }

    .plan-name {
        font-size: 1.2rem;
    }

    .price-amount {
        font-size: 1.7rem;
    }

    .comparison-table {
        padding: 12px 8px;
    }

    .comparison-table table {
        min-width: 450px;
    }

    .comparison-table th,
    .comparison-table td {
        padding: 8px 6px;
        font-size: 0.75rem;
    }

    .comparison-table th {
        font-size: 0.8rem;
    }
}
/* ========================================
   PRICING SECTION - بهینه‌سازی موبایل
======================================== */

/* موبایل - کارت‌ها عمودی و تمام‌عرض */
@media (max-width: 767px) {
    #pricing {
        padding: 50px 15px;
    }

    .section-title {
        font-size: 1.8rem;
    }

    .section-subtitle {
        font-size: 0.95rem;
        padding: 0 10px;
    }

    /* تب‌های قیمت‌گذاری */
    .pricing-tabs {
        flex-direction: column;
        max-width: 100%;
        gap: 10px;
        margin-bottom: 35px;
    }

    .pricing-tab {
        min-width: 100%;
        max-width: 100%;
        padding: 14px 20px;
        font-size: 0.95rem;
    }

    .pricing-tab .save-badge {
        font-size: 0.7rem;
        padding: 2px 8px;
    }

    /* Grid قیمت‌گذاری - تک ستونی */
    #pricing .pricing-grid {
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        gap: 20px !important;
        width: 100% !important;
        position: static !important;
        left: auto !important;
        right: auto !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
        padding: 0 !important;
    }

    /* کارت‌های قیمت - تمام‌عرض */
    .pricing-card {
        min-width: 100% !important;
        max-width: 100% !important;
        width: 100% !important;
        padding: 28px 20px !important;
        flex: none !important;
    }

    .pricing-card.popular {
        transform: scale(1) !important;
    }

    .pricing-card.popular:hover {
        transform: translateY(-6px) !important;
    }

    /* محتوای داخل کارت */
    .plan-badge {
        font-size: 0.7rem;
        padding: 5px 14px;
    }

    .plan-name {
        font-size: 1.3rem;
    }

    .plan-price {
        font-size: 2rem;
    }

    .plan-period {
        font-size: 0.85rem;
    }

    .plan-description {
        font-size: 0.85rem;
        line-height: 1.6;
    }

    .plan-features li {
        font-size: 0.85rem;
        padding: 10px 0;
    }

    .plan-cta {
        padding: 12px 24px;
        font-size: 0.9rem;
    }
}

/* تبلت کوچک */
@media (min-width: 768px) and (max-width: 999px) {
    #pricing .pricing-grid {
        flex-wrap: wrap !important;
        justify-content: center !important;
    }

    .pricing-card {
        min-width: 280px !important;
        max-width: 320px !important;
        flex: 0 1 45% !important;
    }
}