﻿/*
Theme Name: Output Messenger Persian
Theme URI: https://outputmessenger.ir
Author: Sajjad Khalilzadeh
Description: Clone of Output Messenger - Persian (RTL) - Modern 2026
Version: 3.0
Text Domain: output-messenger-fa
*/

@import url('https://cdn.jsdelivr.net/gh/rastikerdar/vazir-font@v30.1.0/dist/font-face.css');

/* =========================================
   🎨 1. Design System - CSS Custom Properties
   ========================================= */
:root {
    /* Primary Colors */
    --primary: #667eea;
    --primary-dark: #5a67d8;
    --primary-light: #818cf8;
    --secondary: #764ba2;
    --accent: #f093fb;
    
    /* Semantic Colors */
    --success: #28a745;
    --warning: #ffc107;
    --danger: #dc3545;
    --info: #17a2b8;
    
    /* Text Colors */
    --text-main: #2d3748;
    --text-muted: #718096;
    --text-light: #a0aec0;
    
    /* Background Colors */
    --bg-light: #f8f9fa;
    --bg-white: #ffffff;
    --bg-dark: #1a202c;
    
    /* Border & Shadow */
    --border: #e2e8f0;
    --border-light: #f0f0f0;
    --shadow-sm: 0 2px 4px rgba(0,0,0,0.05);
    --shadow-md: 0 4px 12px rgba(0,0,0,0.08);
    --shadow-lg: 0 10px 30px rgba(102, 126, 234, 0.15);
    --shadow-xl: 0 20px 50px rgba(102, 126, 234, 0.25);
    
    /* Gradients */
    --gradient-primary: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --gradient-warm: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    --gradient-dark: linear-gradient(135deg, #1a202c 0%, #2d3748 100%);
    
    /* Transitions */
    --transition-fast: all 0.15s cubic-bezier(0.4, 0, 0.2, 1);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    
    /* Spacing */
    --container-max: 1200px;
    --container-padding: clamp(16px, 4vw, 24px);
    
    /* Typography */
    --font-family: 'Vazir', 'Segoe UI', Tahoma, sans-serif;
    --font-size-base: clamp(14px, 2vw, 16px);
    --line-height: 1.8;
    
    /* Border Radius */
    --radius-sm: 6px;
    --radius-md: 10px;
    --radius-lg: 16px;
    --radius-xl: 20px;
    --radius-full: 50px;
    
    /* Z-index */
    --z-dropdown: 100;
    --z-sticky: 500;
    --z-fixed: 900;
    --z-modal-backdrop: 998;
    --z-modal: 999;
    --z-popover: 1000;
    --z-tooltip: 1100;
}

/* =========================================
   🔄 2. Modern Reset (بدون تداخل با محتوای داخلی)
   ========================================= */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
    font-size: 16px;
}

body {
    font-family: var(--font-family);
    line-height: var(--line-height);
    color: var(--text-main);
    background-color: var(--bg-white);
    direction: rtl;
    text-align: right;
    font-size: var(--font-size-base);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}

/* Container هوشمند با padding مناسب */
.container, 
.header-container, 
.footer-container {
    width: 100%;
    max-width: var(--container-max);
    margin-inline: auto;
    padding-inline: var(--container-padding);
}

/* Reset برای المان‌های وردپرس (فقط عرض) */
.wp-site-blocks, 
.site, 
.site-content, 
.entry-content, 
.wrapper, 
.content-area, 
.alignwide, 
.alignfull {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

/* تصاویر واکنش‌گرا */
img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* لینک‌ها */
a {
    color: var(--primary);
    text-decoration: none;
    transition: var(--transition);
}

a:hover {
    color: var(--primary-dark);
}

/* دکمه‌ها */
button {
    font-family: inherit;
    cursor: pointer;
}

/* =========================================
   🎯 3. Header - Sticky با افکت شیشه‌ای
   ========================================= */
.site-header {
    background: var(--gradient-primary);
    color: white;
    padding: 18px 0;
    position: relative;
    z-index: var(--z-fixed);
    box-shadow: 0 4px 20px rgba(102, 126, 234, 0.25);
    width: 100%;
    transition: var(--transition);
}

.site-header.scrolled {
    padding: 12px 0;
    background: rgba(102, 126, 234, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 6px 25px rgba(102, 126, 234, 0.35);
}

.header-container {
    max-width: var(--container-max) !important;
    width: 100% !important;
    margin: 0 auto !important;
    padding: 0 20px !important;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
}

.site-logo {
    font-size: 24px;
    font-weight: 800;
    flex-shrink: 0;
}

.site-logo a {
    color: white;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: var(--transition);
}

.site-logo a:hover {
    transform: scale(1.03);
    opacity: 0.95;
}

.site-logo img {
    max-height: 45px;
    width: auto;
}

/* منوی دسکتاپ */
.main-nav {
    flex: 1;
    display: flex;
    justify-content: flex-end;
}

.main-nav ul {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 8px 25px;
    margin: 0;
    padding: 0;
    align-items: center;
}

.main-nav li {
    list-style: none;
}

.main-nav a {
    color: white;
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
    font-size: 15px;
    position: relative;
    padding: 8px 4px;
    display: inline-block;
    white-space: nowrap;
}

.main-nav a::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 0;
    height: 2px;
    background: white;
    transition: width 0.3s ease;
    border-radius: 2px;
}

.main-nav a:hover::after,
.main-nav .current-menu-item > a::after {
    width: 100%;
}

/* دکمه همبرگری موبایل */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 32px;
    height: 24px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 1002;
    position: relative;
}

.mobile-menu-toggle .bar {
    display: block;
    width: 100%;
    height: 3px;
    background: white;
    border-radius: 3px;
    transition: all 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    transform-origin: center;
}

.mobile-menu-toggle.active .bar:nth-child(1) {
    transform: translateY(10.5px) rotate(45deg);
}

.mobile-menu-toggle.active .bar:nth-child(2) {
    opacity: 0;
    transform: scaleX(0);
}

.mobile-menu-toggle.active .bar:nth-child(3) {
    transform: translateY(-10.5px) rotate(-45deg);
}

/* اورلی منوی موبایل */
.nav-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    z-index: var(--z-modal-backdrop);
}

.nav-overlay.active {
    opacity: 1;
    visibility: visible;
}

body.menu-open {
    overflow: hidden;
}

/* =========================================
   🌟 4. Hero Section
   ========================================= */
.hero {
    background: var(--gradient-primary);
    color: white;
    padding: clamp(60px, 10vw, 100px) 20px;
    text-align: center;
    width: 100%;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(240, 147, 251, 0.15) 0%, transparent 70%);
    border-radius: 50%;
    animation: float 20s infinite ease-in-out;
}

@keyframes float {
    0%, 100% { transform: translate(0, 0); }
    50% { transform: translate(-30px, 30px); }
}

.hero h1 {
    font-size: clamp(1.75rem, 5vw, 42px);
    margin-bottom: 20px;
    font-weight: 900;
    line-height: 1.3;
    position: relative;
    z-index: 1;
}

.hero p {
    font-size: clamp(1rem, 2vw, 18px);
    margin-bottom: 35px;
    opacity: 0.95;
    max-width: 700px;
    margin-inline: auto;
    position: relative;
    z-index: 1;
}

.hero .btn-primary {
    display: inline-block;
    background: white !important;
    color: var(--primary) !important;
    padding: 16px 48px !important;
    border-radius: var(--radius-full);
    text-decoration: none;
    font-weight: 800;
    font-size: 16px;
    transition: var(--transition);
    box-shadow: 0 6px 20px rgba(0,0,0,0.15);
    position: relative;
    z-index: 1;
    text-shadow: none !important;
}

.hero .btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.25);
    background: #f8f9fa !important;
    color: var(--primary) !important;
}

/* =========================================
   📐 5. Sections & Grids
   ========================================= */
.features, .pricing {
    padding: clamp(40px, 8vw, 80px) 20px;
    width: 100%;
}

.pricing {
    background: var(--bg-light);
}

.section-title {
    text-align: center;
    font-size: clamp(1.5rem, 4vw, 32px);
    margin-bottom: 16px;
    color: var(--text-main);
    font-weight: 800;
}

.section-subtitle {
    text-align: center;
    color: var(--text-muted);
    max-width: 700px;
    margin-inline: auto;
    margin-bottom: 50px;
    font-size: clamp(0.9rem, 2vw, 17px);
}

.features-grid, .pricing-grid, .footer-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    max-width: var(--container-max) !important;
    width: 100% !important;
    margin: 0 auto !important;
    padding: 0 !important;
}

/* =========================================
   🎴 6. Feature Cards
   ========================================= */
.feature-card {
    background: white;
    padding: 35px 30px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    text-align: right;
    border: 1px solid var(--border);
}

.feature-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
    border-color: rgba(102, 126, 234, 0.3);
}

.feature-icon {
    font-size: 42px;
    margin-bottom: 20px;
    display: block;
}

.feature-card h3 {
    margin-bottom: 15px;
    color: var(--primary);
    font-size: 20px;
    font-weight: 700;
}

.feature-card p {
    color: var(--text-muted);
    font-size: 15px;
    line-height: 1.7;
}

/* =========================================
   💰 7. Pricing Tabs & Cards
   ========================================= */
.pricing-tabs {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 50px;
    flex-wrap: wrap;
}

.tab-btn {
    padding: 12px 35px;
    border: 2px solid var(--primary);
    background: white;
    color: var(--primary);
    border-radius: var(--radius-full);
    cursor: pointer;
    font-weight: 700;
    font-family: var(--font-family);
    font-size: 15px;
    transition: var(--transition);
}

.tab-btn.active, .tab-btn:hover {
    background: var(--primary);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

.pricing-card {
    background: white;
    padding: 40px 30px;
    border-radius: var(--radius-xl);
    text-align: center;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
    border: 1px solid var(--border);
    display: flex;
    flex-direction: column;
}

.pricing-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
}

.pricing-card.featured {
    border: 3px solid var(--primary);
    transform: scale(1.03);
    z-index: 2;
    box-shadow: 0 15px 40px rgba(102, 126, 234, 0.25);
}

.pricing-card.featured:hover {
    transform: scale(1.03) translateY(-10px);
}

.pricing-card h3 {
    font-size: 22px;
    color: var(--text-main);
    margin-bottom: 15px;
    font-weight: 700;
}

.price {
    font-size: clamp(32px, 5vw, 48px);
    font-weight: 900;
    color: var(--primary);
    margin: 15px 0;
}

.price small {
    font-size: 16px;
    color: var(--text-muted);
    font-weight: normal;
}

.pricing-features {
    list-style: none;
    margin: 25px 0;
    text-align: right;
    flex-grow: 1;
}

.pricing-features li {
    padding: 12px 0;
    border-bottom: 1px solid var(--border);
    color: var(--text-muted);
    font-size: 15px;
    display: flex;
    align-items: center;
}

.pricing-features li::before {
    content: "✓";
    color: var(--success);
    font-weight: bold;
    margin-left: 10px;
    font-size: 18px;
}

/* دکمه خرید حرفه‌ای */
.pricing-tier, .pricing-card {
    position: relative;
}

.tier-action, .pricing-card .tier-action {
    margin-top: auto;
    padding-top: 20px;
}

.pricing-tier .btn-primary,
.tier-action .btn-primary,
.pricing-card .btn-primary,
.btn-primary {
    display: inline-block !important;
    background: var(--gradient-primary) !important;
    color: white !important;
    padding: 14px 40px !important;
    border-radius: var(--radius-full) !important;
    text-decoration: none !important;
    font-weight: 800 !important;
    font-size: 15px !important;
    transition: var(--transition) !important;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.35) !important;
    border: none !important;
    cursor: pointer !important;
    position: relative !important;
    overflow: hidden !important;
    text-align: center !important;
    line-height: 1.2 !important;
    text-shadow: 0 1px 2px rgba(0,0,0,0.1) !important;
    letter-spacing: 0.3px;
}

.pricing-tier .btn-primary::before,
.tier-action .btn-primary::before,
.pricing-card .btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    right: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.4), transparent);
    transition: right 0.6s ease;
}

.pricing-tier .btn-primary:hover::before,
.tier-action .btn-primary:hover::before,
.pricing-card .btn-primary:hover::before {
    right: 100%;
}

.pricing-tier .btn-primary:hover,
.tier-action .btn-primary:hover,
.pricing-card .btn-primary:hover,
.btn-primary:hover {
    transform: translateY(-3px) !important;
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.5) !important;
    color: white !important;
}

/* =========================================
   🦶 8. Footer چهار ستونه (اصلاح شده)
   ========================================= */
.site-footer {
    background: var(--gradient-dark);
    color: #cbd5e0;
    padding: 70px 20px 20px;
    width: 100%;
    position: relative;
}

.site-footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--gradient-primary);
}

.footer-container {
    display: grid !important;
    grid-template-columns: 2fr 1fr 1fr 1fr !important;
    gap: 40px !important;
    max-width: var(--container-max) !important;
    margin: 0 auto !important;
    padding: 0 20px !important;
}

.footer-section {
    display: flex;
    flex-direction: column;
}

/* لوگوی تصویر در فوتر - اصلاح شده بدون فیلتر سیاه و سفید */
.footer-logo {
    text-align: center;
    margin-bottom: 20px;
}

.footer-logo img {
    max-width: 120px;
    height: auto;
    opacity: 0.95;
    transition: var(--transition);
    filter: none; /* حذف فیلتر سیاه و سفید */
}

.footer-logo img:hover {
    opacity: 1;
    transform: scale(1.05);
}

/* کلاس قدیمی rightcow برای سازگاری */
.footer-section .rightcow {
    margin-bottom: 20px;
    text-align: center;
}

.footer-section .rightcow img {
    max-width: 120px;
    height: auto;
    opacity: 0.95;
    transition: var(--transition);
    filter: none; /* حذف فیلتر سیاه و سفید */
}

.footer-section .rightcow img:hover {
    opacity: 1;
    transform: scale(1.05);
}

.footer-section h3 {
    margin-bottom: 25px;
    color: white;
    font-size: 18px;
    font-weight: 700;
    position: relative;
    padding-bottom: 12px;
}

.footer-section h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 40px;
    height: 3px;
    background: var(--primary);
    border-radius: 2px;
}

.footer-section p {
    color: var(--text-light);
    line-height: 1.8;
    margin-bottom: 15px;
}

.footer-section ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-section li {
    margin-bottom: 12px;
}

.footer-section a {
    color: var(--text-light);
    text-decoration: none;
    display: inline-block;
    transition: var(--transition);
    font-size: 15px;
    position: relative;
    padding-right: 0;
}

.footer-section a::before {
    content: '←';
    position: absolute;
    right: -20px;
    opacity: 0;
    transition: var(--transition);
    color: var(--primary);
}

.footer-section a:hover {
    color: white;
    padding-right: 25px;
}

.footer-section a:hover::before {
    right: 0;
    opacity: 1;
}

.footer-bottom {
    text-align: center;
    padding-top: 30px;
    margin-top: 50px;
    border-top: 1px solid rgba(255,255,255,0.1);
    color: #718096;
    font-size: 14px;
    grid-column: 1 / -1;
}

/* =========================================
   📱 9. Responsive Design
   ========================================= */
@media (max-width: 992px) {
    .mobile-menu-toggle {
        display: flex;
    }

    .main-nav {
        position: fixed;
        top: 0;
        right: -100%;
        width: 85%;
        max-width: 340px;
        height: 100vh;
        background: var(--gradient-primary);
        box-shadow: -10px 0 40px rgba(0, 0, 0, 0.3);
        transition: right 0.4s cubic-bezier(0.77, 0, 0.175, 1);
        z-index: 1001;
        overflow-y: auto;
        padding: 90px 30px 30px;
        justify-content: flex-start;
        flex: none;
    }

    .main-nav.open {
        right: 0;
    }

    .main-nav ul {
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        width: 100%;
    }

    .main-nav li {
        width: 100%;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
        opacity: 0;
        transform: translateX(30px);
        transition: all 0.4s ease;
    }

    .main-nav.open li {
        opacity: 1;
        transform: translateX(0);
    }

    .main-nav.open li:nth-child(1) { transition-delay: 0.1s; }
    .main-nav.open li:nth-child(2) { transition-delay: 0.15s; }
    .main-nav.open li:nth-child(3) { transition-delay: 0.2s; }
    .main-nav.open li:nth-child(4) { transition-delay: 0.25s; }
    .main-nav.open li:nth-child(5) { transition-delay: 0.3s; }
    .main-nav.open li:nth-child(6) { transition-delay: 0.35s; }
    .main-nav.open li:nth-child(7) { transition-delay: 0.4s; }

    .main-nav a {
        display: block;
        padding: 18px 10px;
        font-size: 17px;
        font-weight: 600;
        white-space: normal;
    }

    .main-nav a::after {
        display: none;
    }

    .main-nav a:hover {
        background: rgba(255, 255, 255, 0.1);
        padding-right: 20px;
    }

    .footer-container {
        grid-template-columns: 1fr 1fr !important;
        gap: 30px !important;
    }
    
    .footer-bottom {
        grid-column: 1 / -1;
    }
}

@media (max-width: 768px) {
    .site-header {
        padding: 15px 0;
    }

    .header-container {
        padding: 0 15px !important;
    }

    .site-logo {
        font-size: 20px;
    }

    .site-logo img {
        max-height: 38px;
    }

    .hero {
        padding: 60px 15px;
    }

    .hero h1 {
        font-size: 28px;
        line-height: 1.3;
    }

    .hero p {
        font-size: 16px;
    }

    .hero .btn-primary {
        padding: 14px 35px !important;
        font-size: 15px !important;
    }

    .features, .pricing {
        padding: 60px 15px;
    }

    .section-title {
        font-size: 26px;
        margin-bottom: 35px;
    }

    .features-grid, .pricing-grid {
        grid-template-columns: 1fr !important;
        gap: 20px;
    }

    .pricing-card.featured {
        transform: scale(1);
    }

    .pricing-card.featured:hover {
        transform: translateY(-5px);
    }
    
    .site-footer {
        padding: 50px 15px 20px;
    }

    .footer-container {
        grid-template-columns: 1fr !important;
        gap: 30px !important;
        text-align: center;
    }
    
    .footer-section h3::after {
        right: 50%;
        transform: translateX(50%);
    }
    
    .footer-section a:hover {
        padding-right: 0;
    }

    .footer-section a::before {
        display: none;
    }

    .footer-logo img {
        max-width: 100px;
    }
}

@media (max-width: 480px) {
    .hero h1 {
        font-size: 24px;
    }

    .hero p {
        font-size: 15px;
    }

    .hero .btn-primary {
        padding: 12px 28px !important;
        font-size: 14px !important;
        width: 100%;
    }

    .section-title {
        font-size: 22px;
    }

    .feature-card, .pricing-card {
        padding: 25px 20px;
    }

    .price {
        font-size: 38px;
    }

    .main-nav {
        width: 90%;
        padding: 80px 20px 20px;
    }

    .main-nav a {
        font-size: 16px;
        padding: 15px 8px;
    }
}

/* =========================================
   🔌 10. Plugin Styles
   ========================================= */
.olm-msg-box {
    text-align: center;
    padding: 30px;
    background: linear-gradient(135deg, #f0f4ff 0%, #e0e7ff 100%);
    border-radius: var(--radius-lg);
    margin: 40px auto;
    max-width: 600px;
    font-size: 16px;
    box-shadow: var(--shadow-sm);
}

.olm-msg-box a {
    color: var(--primary);
    font-weight: bold;
    text-decoration: none;
}

.olm-success {
    background: linear-gradient(135deg, #d4edda 0%, #c3e6cb 100%);
    color: #155724;
    padding: 14px 20px;
    border-radius: var(--radius-md);
    margin: 15px 0;
    border-right: 4px solid var(--success);
    font-weight: 600;
}

.olm-error {
    background: linear-gradient(135deg, #f8d7da 0%, #f5c6cb 100%);
    color: #721c24;
    padding: 14px 20px;
    border-radius: var(--radius-md);
    margin: 15px 0;
    border-right: 4px solid var(--danger);
    font-weight: 600;
}

.olm-auth {
    max-width: 450px;
    margin: 80px auto;
    background: white;
    padding: 40px;
    border-radius: var(--radius-xl);
    box-shadow: 0 20px 60px rgba(102, 126, 234, 0.2);
    border: 1px solid var(--border);
}

.olm-tabs {
    display: flex;
    margin-bottom: 30px;
    border-bottom: 2px solid var(--border);
}

.olm-tabs button {
    flex: 1;
    padding: 15px;
    border: none;
    background: none;
    font-family: inherit;
    font-size: 16px;
    font-weight: 700;
    color: var(--text-muted);
    cursor: pointer;
    transition: var(--transition);
}

.olm-tabs button.active {
    color: var(--primary);
    border-bottom: 3px solid var(--primary);
    margin-bottom: -2px;
}

.olm-form .fg {
    margin-bottom: 20px;
}

.olm-form label {
    display: block;
    margin-bottom: 8px;
    font-weight: 700;
    color: var(--text-main);
    font-size: 14px;
}

.olm-form input {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid var(--border);
    border-radius: var(--radius-md);
    font-family: inherit;
    font-size: 15px;
    transition: var(--transition);
    box-sizing: border-box;
    background: var(--bg-light);
}

.olm-form input:focus {
    border-color: var(--primary);
    outline: none;
    box-shadow: 0 0 0 4px rgba(102, 126, 234, 0.15);
    background: white;
}

.olm-auth .btn-primary,
.olm-cart-box .btn-primary,
.olm-dash .btn-primary,
.olm-invoice-box .btn-primary,
.profile-form .btn-primary {
    display: inline-block;
    background: var(--gradient-primary);
    color: white !important;
    padding: 14px 32px;
    border-radius: var(--radius-md);
    text-decoration: none;
    font-weight: 800;
    border: none;
    cursor: pointer;
    transition: var(--transition);
    font-size: 15px;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
    text-shadow: 0 1px 2px rgba(0,0,0,0.1);
}

.olm-auth .btn-primary:hover,
.olm-cart-box .btn-primary:hover,
.olm-dash .btn-primary:hover,
.olm-invoice-box .btn-primary:hover,
.profile-form .btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(102, 126, 234, 0.4);
    color: white !important;
}

.btn-primary.full {
    width: 100%;
    text-align: center;
    margin-top: 10px;
}

.olm-cart-box {
    max-width: 900px;
    margin: 60px auto;
    background: white;
    padding: 40px;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border);
}

.olm-cart-box h2 {
    color: var(--text-main);
    margin-bottom: 30px;
    border-bottom: 2px solid var(--border);
    padding-bottom: 15px;
    font-weight: 800;
}

.empty-cart {
    text-align: center;
    padding: 40px;
    background: var(--bg-light);
    border-radius: var(--radius-md);
}

.empty-cart p {
    margin-bottom: 20px;
    color: var(--text-muted);
}

.olm-table {
    width: 100%;
    border-collapse: collapse;
    margin: 25px 0;
}

.olm-table th {
    background: var(--bg-light);
    color: var(--text-main);
    padding: 15px;
    text-align: right;
    border-bottom: 2px solid var(--border);
    font-weight: 700;
}

.olm-table td {
    padding: 15px;
    border-bottom: 1px solid var(--border);
    color: var(--text-muted);
}

.btn-sm {
    background: var(--danger);
    color: white !important;
    padding: 8px 18px;
    border-radius: var(--radius-sm);
    text-decoration: none;
    font-size: 13px;
    font-weight: 700;
    transition: var(--transition);
    display: inline-block;
    box-shadow: 0 2px 8px rgba(220, 53, 69, 0.25);
}

.btn-sm:hover {
    background: #c82333;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(220, 53, 69, 0.35);
}

.cart-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 20px 0;
    flex-wrap: wrap;
    gap: 15px;
}

.btn-secondary {
    background: var(--bg-light);
    color: var(--text-main) !important;
    padding: 10px 22px;
    border-radius: var(--radius-md);
    text-decoration: none;
    font-weight: 700;
    font-size: 14px;
    transition: var(--transition);
    display: inline-block;
    border: 1px solid var(--border);
}

.btn-secondary:hover {
    background: #e2e8f0;
    transform: translateY(-1px);
}

.coupon-form {
    display: flex;
    gap: 10px;
}

.coupon-form input {
    padding: 10px 15px;
    border: 2px solid var(--border);
    border-radius: var(--radius-md);
    font-family: inherit;
    background: white;
}

.cart-summary {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    padding: 25px;
    border-radius: var(--radius-lg);
    margin: 30px 0;
    border: 1px solid var(--border);
}

.summary-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
    font-size: 15px;
    color: var(--text-muted);
}

.summary-row.discount {
    color: var(--success);
    font-weight: bold;
}

.summary-row.total {
    font-size: 20px;
    font-weight: 900;
    color: var(--primary);
    border-top: 2px dashed var(--border);
    padding-top: 15px;
    margin-top: 15px;
}

.payment-info {
    background: linear-gradient(135deg, #fff8e1 0%, #ffecb3 100%);
    padding: 20px;
    border-radius: var(--radius-md);
    border-right: 4px solid var(--warning);
    margin: 30px 0;
}

.payment-info h4 {
    margin-top: 0;
    color: #856404;
    font-weight: 700;
}

.payment-info ul {
    list-style: none;
    padding: 0;
    margin: 10px 0 0;
}

.payment-info li {
    margin-bottom: 8px;
    color: var(--text-main);
    font-family: monospace;
    font-size: 15px;
    background: rgba(255,255,255,0.8);
    padding: 10px 14px;
    border-radius: var(--radius-sm);
    font-weight: 600;
}

.checkout-form .fg {
    margin-top: 20px;
}

.checkout-form input[type="file"] {
    padding: 10px;
    border: 2px dashed var(--border);
    border-radius: var(--radius-md);
    width: 100%;
    background: var(--bg-light);
    cursor: pointer;
    transition: var(--transition);
}

.checkout-form input[type="file"]:hover {
    border-color: var(--primary);
    background: #f0f4ff;
}

/* داشبورد */
.olm-dash {
    display: flex;
    max-width: 1100px;
    margin: 60px auto;
    background: white;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-md);
    min-height: 600px;
    overflow: hidden;
    border: 1px solid var(--border);
}

.dash-side {
    width: 260px;
    background: linear-gradient(180deg, #f8f9fa 0%, #e9ecef 100%);
    padding: 30px 20px;
    border-left: 1px solid var(--border);
}

.dash-user {
    text-align: center;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--border);
}

.dash-user img {
    border-radius: 50%;
    width: 70px;
    height: 70px;
    margin-bottom: 15px;
    border: 3px solid white;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.dash-user h4 {
    margin: 0 0 5px;
    color: var(--text-main);
    font-size: 18px;
    font-weight: 700;
}

.dash-menu {
    list-style: none;
    padding: 0;
    margin: 0;
}

.dash-menu li {
    margin-bottom: 8px;
    border-radius: var(--radius-md);
    overflow: hidden;
    transition: var(--transition);
}

.dash-menu a {
    display: block;
    padding: 12px 15px;
    color: var(--text-muted);
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
}

.dash-menu li.active, .dash-menu li:hover {
    background: var(--gradient-primary);
}

.dash-menu li.active a, .dash-menu li:hover a {
    color: white;
    transform: translateX(-4px);
}

.dash-content {
    flex: 1;
    padding: 40px;
}

.dash-content h2 {
    color: var(--text-main);
    margin-top: 0;
    margin-bottom: 25px;
    font-size: 24px;
    font-weight: 800;
}

.stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin: 30px 0;
}

.stat {
    background: linear-gradient(135deg, #f0f4ff 0%, #e0e7ff 100%);
    padding: 25px;
    border-radius: var(--radius-lg);
    text-align: center;
    border: 1px solid var(--border);
    transition: var(--transition);
}

.stat:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
}

.stat strong {
    display: block;
    font-size: 28px;
    color: var(--primary);
    margin-top: 5px;
    font-weight: 900;
}

/* Profile Form */
.profile-form {
    max-width: 600px;
}

.profile-field {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    margin-bottom: 20px;
    padding: 20px;
    background: var(--bg-light);
    border-radius: var(--radius-lg);
    border: 2px solid var(--border);
    transition: var(--transition);
}

.profile-field:hover {
    border-color: var(--primary);
    background: #f0f4ff;
    transform: translateX(-4px);
}

.profile-field:focus-within {
    border-color: var(--primary);
    background: white;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.15);
}

.profile-icon {
    font-size: 28px;
    min-width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: white;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
}

.profile-input {
    flex: 1;
}

.profile-input label {
    display: block;
    font-size: 13px;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 6px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.profile-input input {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid var(--border);
    border-radius: var(--radius-md);
    font-family: inherit;
    font-size: 15px;
    background: white;
    transition: var(--transition);
}

.profile-input input:focus {
    border-color: var(--primary);
    outline: none;
    box-shadow: 0 0 0 4px rgba(102, 126, 234, 0.15);
}

.copy-code {
    cursor: pointer;
    background: linear-gradient(135deg, #e9ecef 0%, #dee2e6 100%);
    padding: 8px 14px;
    border-radius: var(--radius-sm);
    font-family: monospace;
    font-size: 14px;
    user-select: all;
    transition: var(--transition);
    font-weight: 600;
    color: var(--primary);
}

.copy-code:hover {
    background: var(--primary);
    color: white;
    transform: scale(1.02);
}

/* Invoice */
.olm-invoice-box {
    max-width: 800px;
    margin: 40px auto;
    background: white;
    padding: 40px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border);
}

.inv-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 3px solid var(--primary);
    padding-bottom: 20px;
    margin-bottom: 25px;
}

.inv-logo {
    max-height: 60px;
}

.inv-title {
    text-align: left;
}

.inv-title h1 {
    margin: 0;
    font-size: 26px;
    color: var(--text-main);
    font-weight: 800;
}

.inv-title p {
    margin: 5px 0 0;
    color: var(--text-muted);
    font-size: 14px;
}

.inv-seller {
    background: var(--bg-light);
    padding: 15px;
    border-radius: var(--radius-md);
    margin-bottom: 25px;
    color: var(--text-main);
    border: 1px solid var(--border);
}

.inv-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
}

.inv-table th, .inv-table td {
    border: 1px solid var(--border);
    padding: 12px;
    text-align: center;
    font-size: 14px;
}

.inv-table th {
    background: var(--bg-light);
    color: var(--text-main);
    font-weight: 700;
}

.inv-total td {
    font-weight: 900;
    background: linear-gradient(135deg, #f0f4ff 0%, #e0e7ff 100%);
    color: var(--primary);
    font-size: 16px;
}

.inv-footer {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-top: 50px;
    padding-top: 20px;
    border-top: 2px dashed var(--border);
}

.inv-status {
    font-size: 16px;
    font-weight: 700;
}

.inv-signature {
    text-align: center;
    font-style: italic;
    color: var(--text-muted);
}

.inv-actions {
    text-align: center;
    margin-top: 30px;
}

@media print {
    .no-print, .dash-side, .site-header, .site-footer, .inv-actions {
        display: none !important;
    }
    .olm-invoice-box {
        box-shadow: none;
        border: 2px solid #000;
        margin: 0;
        padding: 20px;
        max-width: 100%;
    }
    body {
        background: #fff;
    }
}

@media (max-width: 768px) {
    .olm-dash {
        flex-direction: column;
        margin: 20px;
    }
    .dash-side {
        width: 100%;
        border-left: none;
        border-bottom: 1px solid var(--border);
    }
    .cart-actions {
        flex-direction: column;
        align-items: stretch;
    }
    .coupon-form {
        flex-direction: column;
    }
    .inv-header {
        flex-direction: column;
        text-align: center;
        gap: 15px;
    }
    .inv-title {
        text-align: center;
    }
    .olm-table {
        display: block;
        overflow-x: auto;
    }
    .profile-field {
        flex-direction: column;
    }
}

/* باکس اطلاعات پرداخت */
.payment-info-box {
    background: linear-gradient(135deg, #fff8e1 0%, #ffecb3 100%);
    padding: 25px;
    border-radius: var(--radius-lg);
    border-right: 4px solid var(--warning);
    margin-bottom: 30px;
}

.payment-info-box h3 {
    margin-top: 0;
    color: #856404;
    font-size: 18px;
    margin-bottom: 15px;
    font-weight: 700;
}

.payment-info-box ul {
    list-style: none;
    padding: 0;
    margin: 15px 0 0;
}

.payment-info-box li {
    margin-bottom: 10px;
    color: var(--text-main);
    font-family: monospace;
    font-size: 15px;
    background: rgba(255,255,255,0.8);
    padding: 10px 15px;
    border-radius: var(--radius-sm);
    font-weight: 600;
}

/* پیام هشدار */
.olm-warning {
    background: linear-gradient(135deg, #fff3cd 0%, #ffeeba 100%);
    color: #856404;
    padding: 15px 20px;
    border-radius: var(--radius-md);
    margin: 20px 0;
    border-right: 4px solid var(--warning);
    font-weight: 600;
}

.olm-warning a {
    color: #856404;
    font-weight: bold;
    text-decoration: none;
}

.olm-warning a:hover {
    text-decoration: underline;
}

/* تایم‌لاین */
.olm-timeline {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin: 30px 0;
    padding: 0 10px;
    position: relative;
}

.olm-timeline::before {
    content: '';
    position: absolute;
    top: 20px;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--border);
    z-index: 1;
}

.timeline-step {
    position: relative;
    z-index: 2;
    text-align: center;
    flex: 1;
}

.step-circle {
    width: 44px;
    height: 44px;
    background: var(--border);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 10px;
    font-size: 20px;
    color: #94a3b8;
    border: 3px solid white;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.step-label {
    font-size: 13px;
    color: #94a3b8;
    font-weight: 600;
    transition: var(--transition);
}

.timeline-step.active .step-circle {
    background: var(--gradient-primary);
    color: white;
    transform: scale(1.1);
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
}

.timeline-step.active .step-label {
    color: var(--primary);
    font-weight: 700;
}

.timeline-step.completed .step-circle {
    background: var(--success);
    color: white;
}

.timeline-step.completed .step-label {
    color: var(--success);
    font-weight: 700;
}

.olm-timeline .progress-line {
    position: absolute;
    top: 20px;
    right: 0;
    height: 4px;
    background: var(--success);
    z-index: 1;
    transition: width 0.5s ease;
}

@media (max-width: 600px) {
    .olm-timeline {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }
    .olm-timeline::before {
        display: none;
    }
    .timeline-step {
        display: flex;
        align-items: center;
        gap: 15px;
        text-align: right;
        width: 100%;
    }
    .step-circle {
        margin: 0;
        flex-shrink: 0;
    }
}

/* دکمه بازگشت به بالا */
.back-to-top {
    position: fixed;
    bottom: 30px;
    left: 30px;
    width: 50px;
    height: 50px;
    background: var(--gradient-primary);
    color: white;
    border: none;
    border-radius: 50%;
    font-size: 24px;
    font-weight: bold;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
    z-index: var(--z-fixed);
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.6);
}

/* انیمیشن Scroll Reveal */
.feature-card, .pricing-card, .solution-card, .testimonial-card, .section-title {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal-active {
    opacity: 1;
    transform: translateY(0);
}

/* انیمیشن قیمت */
.price-animate {
    animation: pricePulse 0.6s ease;
}

@keyframes pricePulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

/* انتقال نرم صفحه */
body.page-transition {
    animation: fadeOut 0.3s ease;
}

@keyframes fadeOut {
    from { opacity: 1; }
    to { opacity: 0; }
}

body.loaded {
    animation: fadeIn 0.5s ease;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* =========================================
   🎨 11. Modern Enhancements (2026 Features)
   ========================================= */

/* Accessibility - Reduced Motion */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

/* Dark Mode Support (آماده‌سازی) */
@media (prefers-color-scheme: dark) {
    :root {
        --bg-white: #1a202c;
        --text-main: #f7fafc;
        --text-muted: #cbd5e0;
        --border: #2d3748;
        --bg-light: #2d3748;
    }
}

/* Focus Visible برای Accessibility */
:focus-visible {
    outline: 3px solid var(--primary);
    outline-offset: 2px;
    border-radius: 4px;
}

/* Selection Styling */
::selection {
    background: var(--primary);
    color: white;
}

::-moz-selection {
    background: var(--primary);
    color: white;
}

/* Smooth Scrollbar */
::-webkit-scrollbar {
    width: 10px;
    height: 10px;
}

::-webkit-scrollbar-track {
    background: var(--bg-light);
}

::-webkit-scrollbar-thumb {
    background: var(--primary);
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--primary-dark);
}

/* Performance - GPU Acceleration */
.feature-card,
.pricing-card,
.solution-card,
.testimonial-card,
.btn-primary,
.back-to-top {
    will-change: transform;
}

/* Container Queries (Modern CSS) */
@supports (container-type: inline-size) {
    .feature-card,
    .pricing-card {
        container-type: inline-size;
    }
}

/* Print Optimization */
@media print {
    .site-header,
    .site-footer,
    .back-to-top,
    .mobile-menu-toggle,
    .nav-overlay {
        display: none !important;
    }
    
    body {
        color: #000 !important;
        background: #fff !important;
    }
    
    a {
        color: #000 !important;
        text-decoration: underline !important;
    }
}

/* =========================================
   🔧 12. اصلاحات و بهبودهای جدید
   ========================================= */

/* آواتار داشبورد - وسط‌چین */
.dash-user {
    text-align: center;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--border);
}

.dash-user img {
    border-radius: 50%;
    width: 90px;
    height: 90px;
    margin: 0 auto 15px;
    display: block;
    border: 4px solid white;
    box-shadow: 0 8px 20px rgba(102, 126, 234, 0.25);
    transition: var(--transition);
}

.dash-user img:hover {
    transform: scale(1.08) rotate(3deg);
    box-shadow: 0 12px 30px rgba(102, 126, 234, 0.35);
}

.dash-user h4 {
    margin: 0 0 5px;
    color: var(--text-main);
    font-size: 18px;
    font-weight: 700;
    text-align: center;
}

.dash-user span {
    display: block;
    text-align: center;
    color: var(--text-muted);
    font-size: 13px;
}

/* لوگوی گاو فوتر - وسط‌چین */
.footer-section .rightcow,
.footer-logo {
    text-align: center;
    margin-bottom: 20px;
    width: 100%;
    display: flex;
    justify-content: center;
}

.footer-section .rightcow img,
.footer-logo img {
    max-width: 120px;
    height: auto;
    opacity: 0.95;
    transition: var(--transition);
    filter: none;
    margin: 0 auto;
    display: block;
}

.footer-section .rightcow img:hover,
.footer-logo img:hover {
    opacity: 1;
    transform: scale(1.08) rotate(-3deg);
    filter: drop-shadow(0 4px 12px rgba(102, 126, 234, 0.4));
}

/* =========================================
   🦶 فوتر حرفه‌ای جدید
   ========================================= */

/* ستون بالا - تبلیغات یا بنر */
.footer-top-banner {
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.1) 0%, rgba(118, 75, 162, 0.1) 100%);
    padding: 40px 20px;
    margin-bottom: 40px;
    border-radius: var(--radius-lg);
    border: 1px solid rgba(255, 255, 255, 0.08);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.footer-top-banner::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(240, 147, 251, 0.08) 0%, transparent 70%);
    border-radius: 50%;
    animation: float 20s infinite ease-in-out;
}

.footer-top-banner-content {
    position: relative;
    z-index: 1;
    max-width: 800px;
    margin: 0 auto;
}

.footer-top-banner h3 {
    color: white;
    font-size: 24px;
    margin-bottom: 15px;
    font-weight: 800;
}

.footer-top-banner h3::after {
    display: none;
}

.footer-top-banner p {
    color: #cbd5e0;
    font-size: 16px;
    line-height: 1.8;
    margin-bottom: 20px;
}

.footer-top-banner .btn-primary {
    display: inline-block;
    background: var(--gradient-primary);
    color: white !important;
    padding: 12px 30px;
    border-radius: var(--radius-full);
    text-decoration: none;
    font-weight: 700;
    transition: var(--transition);
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
}

.footer-top-banner .btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.6);
}

/* ستون‌های پایین - دو ستون جدید */
.footer-bottom-sections {
    margin-top: 40px;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
}

.footer-bottom-sections .footer-section {
    text-align: right;
}

.footer-bottom-sections h3 {
    color: white;
    font-size: 16px;
    margin-bottom: 15px;
    font-weight: 700;
    position: relative;
    padding-bottom: 10px;
}

.footer-bottom-sections h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 30px;
    height: 2px;
    background: var(--primary);
    border-radius: 2px;
}

.footer-bottom-sections p {
    color: #a0aec0;
    font-size: 14px;
    line-height: 1.8;
    margin-bottom: 10px;
}

.footer-bottom-sections ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-bottom-sections li {
    margin-bottom: 8px;
}

.footer-bottom-sections a {
    color: #a0aec0;
    text-decoration: none;
    font-size: 14px;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.footer-bottom-sections a:hover {
    color: white;
    transform: translateX(-5px);
}

/* شبکه‌های اجتماعی */
.footer-social {
    display: flex;
    gap: 12px;
    margin-top: 15px;
    flex-wrap: wrap;
}

.footer-social a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 50%;
    color: #cbd5e0;
    text-decoration: none;
    transition: var(--transition);
    font-size: 18px;
}

.footer-social a:hover {
    background: var(--gradient-primary);
    color: white;
    transform: translateY(-3px) scale(1.1);
    box-shadow: 0 6px 15px rgba(102, 126, 234, 0.4);
}

/* Newsletter */
.footer-newsletter {
    margin-top: 15px;
}

.footer-newsletter form {
    display: flex;
    gap: 8px;
    margin-top: 10px;
}

.footer-newsletter input {
    flex: 1;
    padding: 10px 15px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: var(--radius-md);
    color: white;
    font-family: inherit;
    font-size: 14px;
    transition: var(--transition);
}

.footer-newsletter input::placeholder {
    color: #a0aec0;
}

.footer-newsletter input:focus {
    outline: none;
    border-color: var(--primary);
    background: rgba(255, 255, 255, 0.12);
}

.footer-newsletter button {
    padding: 10px 20px;
    background: var(--gradient-primary);
    color: white;
    border: none;
    border-radius: var(--radius-md);
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition);
    font-family: inherit;
}

.footer-newsletter button:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
}

/* ریسپانسیو فوتر */
@media (max-width: 992px) {
    .footer-bottom-sections {
        grid-template-columns: 1fr;
        gap: 30px;
    }
}

@media (max-width: 768px) {
    .footer-top-banner {
        padding: 30px 15px;
    }
    
    .footer-top-banner h3 {
        font-size: 20px;
    }
    
    .footer-bottom-sections {
        text-align: center;
    }
    
    .footer-bottom-sections h3::after {
        right: 50%;
        transform: translateX(50%);
    }
    
    .footer-social {
        justify-content: center;
    }
    
    .footer-newsletter form {
        flex-direction: column;
    }
}

/* =========================================
   📝 FAQ Accordion بهبودیافته
   ========================================= */
.faq-page {
    padding: 60px 0;
    background: var(--bg-light);
}

.faq-page .container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 20px;
}

.faq-list {
    display: grid;
    gap: 15px;
}

.faq-item {
    background: white;
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    border: 1px solid var(--border);
}

.faq-item:hover {
    box-shadow: var(--shadow-md);
    border-color: rgba(102, 126, 234, 0.2);
}

.faq-item.active {
    border-color: var(--primary);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.15);
}

.faq-item h3 {
    background: white;
    padding: 20px 25px;
    margin: 0;
    color: var(--text-main);
    font-size: 17px;
    font-weight: 600;
    cursor: pointer;
    border-right: 4px solid var(--primary);
    transition: var(--transition);
    display: flex;
    justify-content: space-between;
    align-items: center;
    user-select: none;
}

.faq-item h3::after {
    content: '+';
    font-size: 24px;
    font-weight: 300;
    color: var(--primary);
    transition: transform 0.3s ease;
    flex-shrink: 0;
    margin-right: 15px;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.faq-item.active h3::after {
    content: '−';
    transform: rotate(180deg);
}

.faq-item h3:hover {
    background: var(--bg-light);
    color: var(--primary);
}

.faq-item.active h3 {
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.05) 0%, rgba(118, 75, 162, 0.05) 100%);
    color: var(--primary);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease, padding 0.4s ease;
    padding: 0 25px;
}

.faq-item.active .faq-answer {
    max-height: 500px;
    padding: 0 25px 25px;
}

.faq-answer p {
    color: var(--text-muted);
    line-height: 1.9;
    margin: 0;
    padding-top: 15px;
    border-top: 1px solid var(--border);
}

@media (max-width: 768px) {
    .faq-item h3 {
        padding: 18px 20px;
        font-size: 15px;
    }
    
    .faq-item.active .faq-answer {
        padding: 0 20px 20px;
    }
}

/* =========================================
   ⭐ صفحه بازخوردها (Testimonials)
   ========================================= */
.testimonials-page {
    padding: 60px 0;
    background: var(--bg-light);
}

.testimonials-page .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.testimonials-page-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 25px;
    margin-top: 40px;
}

.testimonial-card-full {
    background: white;
    padding: 30px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    border: 1px solid var(--border);
    position: relative;
}

.testimonial-card-full::before {
    content: '"';
    position: absolute;
    top: -10px;
    right: 20px;
    font-size: 80px;
    color: var(--primary);
    opacity: 0.15;
    font-family: Georgia, serif;
    line-height: 1;
}

.testimonial-card-full:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
    border-color: rgba(102, 126, 234, 0.3);
}

.testimonial-rating-full {
    font-size: 18px;
    margin-bottom: 15px;
}

.testimonial-text-full {
    color: var(--text-main);
    font-size: 15px;
    line-height: 1.8;
    margin-bottom: 20px;
    font-style: italic;
    position: relative;
    z-index: 1;
}

.testimonial-author-full {
    display: flex;
    align-items: center;
    gap: 15px;
    padding-top: 15px;
    border-top: 1px solid var(--border);
}

.testimonial-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--gradient-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 700;
    font-size: 18px;
    flex-shrink: 0;
}

.testimonial-info strong {
    display: block;
    color: var(--text-main);
    font-size: 15px;
    margin-bottom: 3px;
}

.testimonial-info span {
    color: var(--text-muted);
    font-size: 13px;
}

/* =========================================
   📝 فرم ارسال بازخورد
   ========================================= */
.review-form-container {
    max-width: 700px;
    margin: 40px auto;
    background: white;
    padding: 40px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border);
}

.review-form-container h2 {
    color: var(--text-main);
    font-size: 24px;
    margin-bottom: 10px;
    font-weight: 800;
}

.review-form-container > p {
    color: var(--text-muted);
    margin-bottom: 30px;
}

.star-rating {
    display: flex;
    flex-direction: row-reverse;
    justify-content: flex-end;
    gap: 5px;
    margin-bottom: 20px;
}

.star-rating input {
    display: none;
}

.star-rating label {
    font-size: 32px;
    color: #ddd;
    cursor: pointer;
    transition: var(--transition);
}

.star-rating label:hover,
.star-rating label:hover ~ label,
.star-rating input:checked ~ label {
    color: #ffc107;
    transform: scale(1.1);
}

.review-form .form-group {
    margin-bottom: 20px;
}

.review-form label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--text-main);
    font-size: 14px;
}

.review-form input,
.review-form select,
.review-form textarea {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid var(--border);
    border-radius: var(--radius-md);
    font-family: inherit;
    font-size: 15px;
    transition: var(--transition);
    background: var(--bg-light);
}

.review-form input:focus,
.review-form select:focus,
.review-form textarea:focus {
    outline: none;
    border-color: var(--primary);
    background: white;
    box-shadow: 0 0 0 4px rgba(102, 126, 234, 0.15);
}

.review-form textarea {
    resize: vertical;
    min-height: 120px;
}

/* =========================================
   📚 صفحات مستندات فنی
   ========================================= */
.docs-page {
    padding: 60px 0;
    background: var(--bg-light);
}

.docs-page .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.docs-categories {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
    margin-top: 40px;
}

.doc-category-card {
    background: white;
    padding: 30px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    border: 1px solid var(--border);
    text-decoration: none;
    color: inherit;
    display: block;
    position: relative;
    overflow: hidden;
}

.doc-category-card::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 4px;
    height: 100%;
    background: var(--gradient-primary);
    transition: var(--transition);
}

.doc-category-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
    border-color: rgba(102, 126, 234, 0.3);
}

.doc-category-card:hover::before {
    width: 6px;
}

.doc-category-icon {
    font-size: 42px;
    margin-bottom: 15px;
    display: block;
}

.doc-category-card h3 {
    color: var(--primary);
    font-size: 20px;
    margin-bottom: 10px;
    font-weight: 700;
}

.doc-category-card p {
    color: var(--text-muted);
    font-size: 14px;
    line-height: 1.7;
    margin-bottom: 15px;
}

.doc-category-count {
    display: inline-block;
    background: var(--bg-light);
    color: var(--primary);
    padding: 4px 12px;
    border-radius: var(--radius-full);
    font-size: 12px;
    font-weight: 700;
}

/* صفحه داخلی مستند */
.doc-single {
    padding: 60px 0;
    background: white;
}

.doc-single .container {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 20px;
}

.doc-content {
    background: white;
    padding: 40px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border);
}

.doc-content h2 {
    color: var(--text-main);
    font-size: 24px;
    margin: 30px 0 15px;
    font-weight: 700;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--border);
}

.doc-content h2:first-child {
    margin-top: 0;
}

.doc-content h3 {
    color: var(--primary);
    font-size: 18px;
    margin: 25px 0 12px;
    font-weight: 700;
}

.doc-content p {
    color: var(--text-main);
    line-height: 1.9;
    margin-bottom: 15px;
    font-size: 15px;
}

.doc-content ul, .doc-content ol {
    margin: 15px 0;
    padding-right: 25px;
}

.doc-content li {
    margin-bottom: 10px;
    line-height: 1.8;
    color: var(--text-main);
}

.doc-content code {
    background: var(--bg-light);
    color: var(--primary);
    padding: 2px 8px;
    border-radius: 4px;
    font-family: 'Courier New', monospace;
    font-size: 14px;
}

.doc-content pre {
    background: #1a202c;
    color: #e2e8f0;
    padding: 20px;
    border-radius: var(--radius-md);
    overflow-x: auto;
    margin: 20px 0;
    direction: ltr;
    text-align: left;
}

.doc-content pre code {
    background: transparent;
    color: inherit;
    padding: 0;
}

.doc-content .info-box {
    background: linear-gradient(135deg, #f0f4ff 0%, #e0e7ff 100%);
    padding: 20px;
    border-radius: var(--radius-md);
    border-right: 4px solid var(--primary);
    margin: 20px 0;
}

.doc-content .warning-box {
    background: linear-gradient(135deg, #fff8e1 0%, #ffecb3 100%);
    padding: 20px;
    border-radius: var(--radius-md);
    border-right: 4px solid var(--warning);
    margin: 20px 0;
}

.doc-breadcrumb {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 30px;
    font-size: 14px;
    color: var(--text-muted);
    flex-wrap: wrap;
}

.doc-breadcrumb a {
    color: var(--primary);
    text-decoration: none;
    transition: var(--transition);
}

.doc-breadcrumb a:hover {
    color: var(--primary-dark);
}

.doc-breadcrumb span {
    color: var(--text-muted);
}

.doc-sidebar {
    background: var(--bg-light);
    padding: 25px;
    border-radius: var(--radius-md);
    margin-bottom: 30px;
}

.doc-sidebar h4 {
    color: var(--text-main);
    margin-bottom: 15px;
    font-size: 16px;
    font-weight: 700;
}

.doc-sidebar ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.doc-sidebar li {
    margin-bottom: 8px;
}

.doc-sidebar a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 14px;
    transition: var(--transition);
    display: block;
    padding: 6px 10px;
    border-radius: var(--radius-sm);
}

.doc-sidebar a:hover,
.doc-sidebar a.active {
    background: white;
    color: var(--primary);
    transform: translateX(-5px);
}

@media (max-width: 768px) {
    .doc-content {
        padding: 25px 20px;
    }
    
    .doc-content h2 {
        font-size: 20px;
    }
}

/* =========================================
   🎉 Toast Notifications
   ========================================= */
.olm-toast {
    position: fixed;
    top: 100px;
    left: 50%;
    transform: translateX(-50%) translateY(-100px);
    background: white;
    padding: 16px 24px;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.15);
    display: flex;
    align-items: center;
    gap: 12px;
    z-index: 10000;
    opacity: 0;
    transition: all 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    min-width: 300px;
    max-width: 500px;
    border-right: 4px solid #28a745;
}

.olm-toast.show {
    transform: translateX(-50%) translateY(0);
    opacity: 1;
}

.olm-toast-success { border-right-color: #28a745; }
.olm-toast-error { border-right-color: #dc3545; }
.olm-toast-warning { border-right-color: #ffc107; }
.olm-toast-info { border-right-color: #17a2b8; }

.toast-icon {
    font-size: 24px;
    flex-shrink: 0;
}

.toast-message {
    flex: 1;
    color: #333;
    font-size: 15px;
    font-weight: 500;
}

.toast-close {
    background: none;
    border: none;
    font-size: 20px;
    color: #999;
    cursor: pointer;
    padding: 0;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.2s;
}

.toast-close:hover {
    background: #f0f0f0;
    color: #333;
}

/* =========================================
   ⚠️ Confirmation Modal
   ========================================= */
.olm-confirm-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.6);
    backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10001;
    opacity: 0;
    transition: opacity 0.3s;
}

.olm-confirm-modal.show {
    opacity: 1;
}

.confirm-modal-content {
    background: white;
    padding: 40px;
    border-radius: 16px;
    max-width: 500px;
    width: 90%;
    text-align: center;
    transform: scale(0.9);
    transition: transform 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.olm-confirm-modal.show .confirm-modal-content {
    transform: scale(1);
}

.confirm-icon {
    font-size: 64px;
    margin-bottom: 20px;
}

.confirm-modal-content h3 {
    color: #333;
    font-size: 24px;
    margin-bottom: 15px;
}

.confirm-modal-content p {
    color: #666;
    font-size: 16px;
    line-height: 1.6;
    margin-bottom: 30px;
}

.confirm-actions {
    display: flex;
    gap: 15px;
    justify-content: center;
}

.btn-cancel, .btn-confirm {
    padding: 12px 30px;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    border: none;
    font-size: 15px;
}

.btn-cancel {
    background: #e9ecef;
    color: #495057;
}

.btn-cancel:hover {
    background: #dee2e6;
}

.btn-confirm {
    background: #dc3545;
    color: white;
}

.btn-confirm:hover {
    background: #c82333;
    transform: translateY(-2px);
}

/* =========================================
   🚪 Exit Intent Popup
   ========================================= */
.olm-exit-popup {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.7);
    backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10002;
    opacity: 0;
    transition: opacity 0.3s;
}

.olm-exit-popup.show {
    opacity: 1;
}

.exit-popup-content {
    background: white;
    padding: 50px;
    border-radius: 20px;
    max-width: 500px;
    width: 90%;
    text-align: center;
    position: relative;
    transform: scale(0.9);
    transition: transform 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.olm-exit-popup.show .exit-popup-content {
    transform: scale(1);
}

.exit-popup-close {
    position: absolute;
    top: 15px;
    left: 15px;
    background: none;
    border: none;
    font-size: 28px;
    color: #999;
    cursor: pointer;
    padding: 0;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.2s;
}

.exit-popup-close:hover {
    background: #f0f0f0;
    color: #333;
}

.exit-popup-icon {
    font-size: 80px;
    margin-bottom: 20px;
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-20px); }
}

.exit-popup-content h2 {
    color: #333;
    font-size: 28px;
    margin-bottom: 15px;
}

.exit-popup-content p {
    color: #666;
    font-size: 16px;
    margin-bottom: 20px;
}

.exit-popup-code {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 20px;
    border-radius: 12px;
    margin: 25px 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
}

.exit-popup-code code {
    background: white;
    color: #667eea;
    padding: 10px 20px;
    border-radius: 8px;
    font-size: 24px;
    font-weight: bold;
    letter-spacing: 2px;
}

.copy-exit-code {
    background: white;
    color: #667eea;
    border: none;
    padding: 10px 20px;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}

.copy-exit-code:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

.exit-popup-note {
    font-size: 14px;
    color: #999;
    margin-bottom: 25px;
}

/* =========================================
   🌙 Dark Mode
   ========================================= */
.dark-mode-toggle {
    position: fixed;
    bottom: 30px;
    left: 30px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: none;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
    z-index: 999;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
}

.dark-mode-toggle:hover {
    transform: translateY(-3px) scale(1.1);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.6);
}

.dark-mode-toggle .dark-icon {
    display: none;
}

body.dark-mode .dark-mode-toggle .light-icon {
    display: none;
}

body.dark-mode .dark-mode-toggle .dark-icon {
    display: block;
}

/* Dark Mode Styles */
body.dark-mode {
    background-color: #1a202c;
    color: #e2e8f0;
}

body.dark-mode .site-header {
    background: linear-gradient(135deg, #2d3748 0%, #1a202c 100%);
}

body.dark-mode .hero {
    background: linear-gradient(135deg, #2d3748 0%, #1a202c 100%);
}

body.dark-mode .feature-card,
body.dark-mode .pricing-card,
body.dark-mode .solution-card,
body.dark-mode .testimonial-card {
    background: #2d3748;
    border-color: #4a5568;
}

body.dark-mode .feature-card h3,
body.dark-mode .pricing-card h3,
body.dark-mode .solution-card h3 {
    color: #63b3ed;
}

body.dark-mode .feature-card p,
body.dark-mode .pricing-card p,
body.dark-mode .solution-card p {
    color: #cbd5e0;
}

body.dark-mode .section-title {
    color: #f7fafc;
}

body.dark-mode .site-footer {
    background: #171923;
}

body.dark-mode .btn-primary,
body.dark-mode .btn-hero {
    background: white !important;
    color: #667eea !important;
}

body.dark-mode .pricing-card.featured {
    border-color: #63b3ed;
}

/* =========================================
   💀 Skeleton Loading
   ========================================= */
.skeleton-loading {
    position: relative;
    overflow: hidden;
    background: #f0f0f0;
}

.skeleton-loading::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.4), transparent);
    animation: skeleton-loading 1.5s infinite;
}

@keyframes skeleton-loading {
    0% { left: -100%; }
    100% { left: 100%; }
}

body.dark-mode .skeleton-loading {
    background: #2d3748;
}

/* =========================================
   📈 Scroll Progress Bar
   ========================================= */
.scroll-progress-bar {
    position: fixed;
    top: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #667eea 0%, #764ba2 100%);
    z-index: 10000;
    transition: width 0.1s;
    box-shadow: 0 2px 10px rgba(102, 126, 234, 0.5);
}

/* =========================================
   🎨 Micro-interactions - Ripple Effect
   ========================================= */
.btn-primary, .btn-secondary, .btn-hero {
    position: relative;
    overflow: hidden;
}

.ripple {
    position: absolute;
    border-radius: 50%;
    background: rgba(255,255,255,0.6);
    transform: scale(0);
    animation: ripple-animation 0.6s linear;
    pointer-events: none;
}

@keyframes ripple-animation {
    to {
        transform: scale(4);
        opacity: 0;
    }
}

/* =========================================
   🎯 Tour Highlight
   ========================================= */
.tour-highlight {
    position: relative;
    z-index: 1000;
    box-shadow: 0 0 0 4px rgba(102, 126, 234, 0.5), 0 0 30px rgba(102, 126, 234, 0.3);
    border-radius: 12px;
    transition: all 0.3s;
}

.olm-tour-tooltip {
    position: absolute;
    background: white;
    padding: 25px;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.2);
    max-width: 350px;
    z-index: 1001;
    opacity: 0;
    transform: translateY(-10px);
    transition: all 0.3s;
}

.olm-tour-tooltip.show {
    opacity: 1;
    transform: translateY(0);
}

.olm-tour-tooltip h4 {
    color: #667eea;
    font-size: 18px;
    margin-bottom: 10px;
}

.olm-tour-tooltip p {
    color: #666;
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 20px;
}

.tour-actions {
    display: flex;
    gap: 10px;
    justify-content: flex-end;
}

.tour-skip, .tour-next {
    padding: 8px 16px;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    border: none;
    font-size: 13px;
}

.tour-skip {
    background: #e9ecef;
    color: #495057;
}

.tour-next {
    background: #667eea;
    color: white;
}

/* =========================================
   🖼️ Image Fade In
   ========================================= */
img[loading="lazy"] {
    opacity: 0;
    transition: opacity 0.5s;
}

img[loading="lazy"].loaded {
    opacity: 1;
}

/* =========================================
   🎯 Smooth Reveal
   ========================================= */
.feature-card, .pricing-card, .solution-card, .testimonial-card {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal-active {
    opacity: 1;
    transform: translateY(0);
}

/* =========================================
   📱 Mobile Menu Enhancement
   ========================================= */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 32px;
    height: 24px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 1002;
}

.mobile-menu-toggle .bar {
    display: block;
    width: 100%;
    height: 3px;
    background: white;
    border-radius: 3px;
    transition: all 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

@media (max-width: 768px) {
    .mobile-menu-toggle {
        display: flex;
    }
    
    .mobile-menu-toggle.active .bar:nth-child(1) {
        transform: translateY(10.5px) rotate(45deg);
    }
    
    .mobile-menu-toggle.active .bar:nth-child(2) {
        opacity: 0;
    }
    
    .mobile-menu-toggle.active .bar:nth-child(3) {
        transform: translateY(-10.5px) rotate(-45deg);
    }
}

/* =========================================
   🎨 Dark Mode for Components
   ========================================= */
body.dark-mode .olm-cart-box,
body.dark-mode .olm-dash,
body.dark-mode .olm-invoice-box {
    background: #2d3748;
    color: #e2e8f0;
}

body.dark-mode .olm-table th {
    background: #1a202c;
    color: #e2e8f0;
}

body.dark-mode .olm-table td {
    color: #cbd5e0;
    border-color: #4a5568;
}

body.dark-mode .profile-field {
    background: #1a202c;
    border-color: #4a5568;
}

body.dark-mode .profile-input input {
    background: #2d3748;
    color: #e2e8f0;
    border-color: #4a5568;
}

body.dark-mode .dash-side {
    background: #1a202c;
}

body.dark-mode .dash-menu a {
    color: #cbd5e0;
}

/* =========================================
   🎉 Initial Load Animation
   ========================================= */
body {
    opacity: 0;
    transition: opacity 0.3s;
}

body.loaded {
    opacity: 1;
}

/* =========================================
   📊 Counter Animation
   ========================================= */
.counter {
    font-variant-numeric: tabular-nums;
}

/* =========================================
   🎨 Print Styles Enhancement
   ========================================= */
@media print {
    .dark-mode-toggle,
    .scroll-progress-bar,
    .olm-toast,
    .olm-confirm-modal,
    .olm-exit-popup {
        display: none !important;
    }
}

/* =========================================
   Interactive Product Tour
   ========================================= */
.tour-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    z-index: 9998;
    display: none;
}

.tour-tooltip {
    position: absolute;
    background: white;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.3);
    z-index: 9999;
    display: none;
    opacity: 0;
    transform: translateY(-10px);
    transition: all 0.3s ease;
}

.tour-tooltip.show {
    display: block;
    opacity: 1;
    transform: translateY(0);
}

.tour-tooltip-content h4 {
    color: #667eea;
    font-size: 20px;
    margin: 0 0 15px;
    font-weight: 700;
}

.tour-tooltip-content p {
    color: #555;
    font-size: 15px;
    line-height: 1.7;
    margin: 0 0 20px;
}

.tour-progress {
    text-align: center;
    color: #999;
    font-size: 13px;
    margin-bottom: 20px;
    font-weight: 600;
}

.tour-actions {
    display: flex;
    gap: 10px;
    justify-content: flex-end;
}

.tour-skip {
    padding: 10px 20px;
    background: #e9ecef;
    color: #495057;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}

.tour-skip:hover {
    background: #dee2e6;
}

.tour-next {
    padding: 10px 20px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}

.tour-next:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.4);
}

.tour-highlight {
    position: relative;
    z-index: 9997;
    box-shadow: 0 0 0 4px rgba(102, 126, 234, 0.5), 0 0 30px rgba(102, 126, 234, 0.3);
    border-radius: 12px;
    transition: all 0.3s;
}

/* Tour Start Button */
.tour-start-btn {
    position: fixed;
    bottom: 100px;
    left: 30px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 12px 25px;
    border-radius: 50px;
    border: none;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 5px 20px rgba(102, 126, 234, 0.4);
    transition: all 0.3s;
    z-index: 999;
    display: flex;
    align-items: center;
    gap: 8px;
}

.tour-start-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.6);
}

@media (max-width: 768px) {
    .tour-tooltip {
        width: calc(100% - 40px) !important;
        left: 20px !important;
        right: 20px !important;
    }
    
    .tour-start-btn {
        bottom: 80px;
        left: 20px;
        padding: 10px 20px;
        font-size: 14px;
    }
}

/* =========================================
   📢 Footer Advertisement Banner
   ========================================= */
.footer-ad-banner {
    display: block;
    text-align: center;
    transition: all 0.3s ease;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0,0,0,0.2);
}

.footer-ad-banner:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}

.footer-ad-banner img {
    max-width: 100%;
    height: auto;
    display: block;
    border-radius: 12px;
}

/* Responsive */
@media (max-width: 768px) {
    .footer-ad-banner {
        margin: 20px 0;
    }
    
    .footer-ad-banner img {
        max-width: 250px;
        margin: 0 auto;
    }
}