        #menuToggle {
            display: flex !important; /* همیشه نمایش داده بشه */
        }
        body {
            font-family: 'Vazirmatn', sans-serif;
            background: var(--dark-bg, linear-gradient(135deg, #07102e 0%, #13173a 100%));
            color: white;
            overflow-x: hidden;
        }
        .light-mode {
            background: linear-gradient(135deg, #aeeafc 0%, #caf0fc 100%);
            color: #1e293b;
        }
        .hero-gradient {
            background: linear-gradient(135deg, rgba(0, 191, 255, 0.1) 0%, rgba(255, 50, 211, 0.1) 100%);
        }
        .card-hover {
            transition: all 0.3s ease;
            transform: translateY(0);
        }
        .card-hover:hover {
            transform: translateY(-10px) scale(1.02);
            box-shadow: 0 20px 40px rgba(0, 191, 255, 0.3);
        }
        .micro-animation {
            transition: transform 0.2s ease;
        }
        .micro-animation:hover {
            transform: scale(1.05);
        }
        @keyframes pulse-glow {
            0%, 100% { box-shadow: 0 0 5px rgba(0, 191, 255, 0.5); }
            50% { box-shadow: 0 0 20px rgba(0, 191, 255, 0.8); }
        }
        @keyframes float {
            0%, 100% { transform: translateY(0px); }
            50% { transform: translateY(-10px); }
        }
        .floating {
            animation: float 3s ease-in-out infinite;
        }
        .scroll-reveal {
            opacity: 0;
            transform: translateY(30px);
            transition: all 0.6s ease;
        }
        .scroll-reveal.revealed {
            opacity: 1;
            transform: translateY(0);
        }
        .cursor-custom {
            cursor: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='32' height='32' viewBox='0 0 32 32'><circle cx='16' cy='16' r='8' fill='%2300bfff' opacity='0.5'/></svg>"), auto;
        }
        .btn-modern {
            background: linear-gradient(135deg, var(--neon-blue, #00bfff), var(--neon-pink, #ff32d3));
            border: none;
            border-radius: 50px;
            padding: 12px 24px;
            font-weight: 600;
            transition: all 0.3s ease;
            position: relative;
            overflow: hidden;
        }
        .btn-modern::before {
            content: '';
            position: absolute;
            top: 0;
            left: -100%;
            width: 100%;
            height: 100%;
            background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
            transition: left 0.5s;
        }
        .btn-modern:hover::before {
            left: 100%;
        }
        .btn-modern:hover {
            transform: translateY(-2px);
            box-shadow: 0 10px 20px rgba(0, 191, 255, 0.3);
        }
        .feature-card {
            background: rgba(255,255,255,0.05);
            backdrop-filter: blur(10px);
            border: 1px solid rgba(0, 191, 255, 0.2);
            border-radius: 20px;
            padding: 2rem;
            text-align: center;
            position: relative;
            overflow: hidden;
        }
        .feature-card::before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            height: 4px;
            background: linear-gradient(90deg, var(--neon-blue), var(--neon-pink));
        }
        .featured-card {
            background: linear-gradient(135deg, rgba(34, 197, 94, 0.1), rgba(16, 163, 74, 0.1));
            border-color: var(--success, #22c55e);
        }
        .featured-card::before {
            background: linear-gradient(90deg, var(--success), #16a34a);
        }
        @media (prefers-reduced-motion: reduce) {
            * { animation-duration: 0.01ms !important; }
        }
        :root {
            --dark-bg: linear-gradient(135deg, #0f0f23 0%, #1a1a2e 50%, #16213e 100%);
            --light-bg: linear-gradient(135deg, #f0f4f8 0%, #e2e8f0 100%);
            --card-bg-dark: rgba(15, 15, 35, 0.9);
            --card-bg-light: rgba(255, 255, 255, 0.95);
            --primary-gradient: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
            --secondary-gradient: linear-gradient(135deg, #f093fb 0%, #ff3953 100%);
            --success: #10b981;
            --danger: #ef4444;
            --warning: #f59e0b;
            --neon-glow: 0 0 20px rgba(102, 126, 234, 0.5);
            --border-dark: rgba(102, 126, 234, 0.2);
            --border-light: rgba(102, 126, 234, 0.1);
            --text-dark: #f8fafc;
            --text-light: #1e293b;
            --shadow-dark: 0 20px 25px -5px rgba(0, 0, 0, 0.3), 0 10px 10px -5px rgba(0, 0, 0, 0.1);
            --shadow-light: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
        }
        * {
            box-sizing: border-box;
        }
        html {
            scroll-behavior: smooth;
            scroll-padding-top: 80px;
        }
        body {
            font-family: 'Vazirmatn', sans-serif;
            background: var(--dark-bg);
            color: var(--text-dark);
            margin: 0;
            min-height: 100vh;
            transition: background-color 0.3s ease, color 0.3s ease;
            overflow-x: hidden;
        }
        body.light-mode {
            background: var(--light-bg);
            color: var(--text-light);
        }
        .container {
            max-width: 1200px;
            margin: 0 auto;
            padding: 0 1rem;
        }
        header {
            background: rgba(15, 15, 35, 0.95);
            backdrop-filter: blur(10px);
            border-bottom: 1px solid var(--border-dark);
            position: sticky;
            top: 0;
            z-index: 100;
            transition: background 0.3s ease;
        }
        body.light-mode header {
            background: rgba(255, 255, 255, 0.95);
            border-bottom: 1px solid var(--border-light);
        }
        .header-content {
            display: flex;
            justify-content: space-between;
            align-items: center;
            padding: 1rem 0;
        }
        .logo-section {
            display: flex;
            align-items: center;
            gap: 1rem;
        }
        .logo img {
            width: 40px;
            height: 40px;
            border-radius: 50%;
            box-shadow: var(--neon-glow);
        }
        .logo h1 {
            margin: 0;
            font-size: 1.5rem;
            font-weight: 700;
            background: var(--primary-gradient);
            -webkit-background-clip: text;
            background-clip: text;
            -webkit-text-fill-color: transparent;
        }
        .status-indicator {
            width: 12px;
            height: 12px;
            border-radius: 50%;
            background: var(--danger);
            box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.7);
            animation: pulse-ring 2s infinite;
        }
        .status-active {
            background: var(--success);
            box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7);
            animation: pulse-ring 2s infinite;
        }
        @keyframes pulse-ring {
            0% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7); }
            70% { box-shadow: 0 0 0 10px rgba(16, 185, 129, 0); }
            100% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
        }
        .header-actions {
            display: flex;
            align-items: center;
            gap: 1rem;
        }
        .btn {
            display: inline-flex;
            align-items: center;
            gap: 0.5rem;
            padding: 0.75rem 1.5rem;
            border-radius: 50px;
            font-weight: 600;
            text-decoration: none;
            border: none;
            cursor: pointer;
            transition: all 0.3s ease;
            font-size: 0.9rem;
            position: relative;
            overflow: hidden;
        }
        .btn::before {
            content: '';
            position: absolute;
            top: 0;
            left: -100%;
            width: 100%;
            height: 100%;
            background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
            transition: left 0.5s;
        }
        .btn:hover::before {
            left: 100%;
        }
        .btn-primary {
            background: var(--primary-gradient);
            color: white;
            box-shadow: var(--neon-glow);
        }
        .btn-primary:hover {
            transform: translateY(-2px);
            box-shadow: 0 10px 25px rgba(102, 126, 234, 0.4);
        }
        .btn-secondary {
            background: var(--secondary-gradient);
            color: white;
        }
        .btn-secondary:hover {
            transform: translateY(-2px);
            box-shadow: 0 10px 25px rgba(245, 87, 108, 0.4);
        }
        .btn-neutral {
            background: rgba(102, 126, 234, 0.1);
            color: var(--text-dark);
            border: 1px solid var(--border-dark);
        }
        body.light-mode .btn-neutral {
            background: rgba(102, 126, 234, 0.05);
            color: var(--text-light);
            border: 1px solid var(--border-light);
        }
        .btn-neutral:hover {
            background: rgba(102, 126, 234, 0.2);
            transform: translateY(-2px);
        }
        .menu-toggle {
            background: none;
            border: none;
            color: var(--text-dark);
            font-size: 1.5rem;
            cursor: pointer;
            padding: 0.5rem;
            display: block;
        }
        body.light-mode .menu-toggle {
            color: var(--text-light);
        }
        .header-actions nav {
            display: none;
        }
        .mobile-menu {
            position: fixed;
            top: 0;
            right: -100%;
            width: 300px;
            height: 100vh;
            background: var(--card-bg-dark);
            transition: right 0.3s ease;
            z-index: 200;
            padding: 2rem 0;
            box-shadow: -10px 0 30px rgba(0, 0, 0, 0.3);
        }
        body.light-mode .mobile-menu {
            background: var(--card-bg-light);
        }
        .mobile-menu.active {
            right: 0;
        }
        .mobile-menu ul {
            list-style: none;
            padding: 0;
            margin: 0;
        }
        .mobile-menu li {
            margin: 0;
        }
        .mobile-menu a {
            display: flex;
            align-items: center;
            gap: 1rem;
            padding: 1rem 2rem;
            color: var(--text-dark);
            text-decoration: none;
            transition: background 0.3s ease;
            border-bottom: 1px solid var(--border-dark);
        }
        body.light-mode .mobile-menu a {
            color: var(--text-light);
            border-bottom: 1px solid var(--border-light);
        }
        .mobile-menu a:hover {
            background: rgba(102, 126, 234, 0.1);
        }
        .menu-overlay {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: rgba(0, 0, 0, 0.5);
            z-index: 150;
            opacity: 0;
            visibility: hidden;
            transition: all 0.3s ease;
        }
        .menu-overlay.active {
            opacity: 1;
            visibility: visible;
        }
        .overlay {
            position: fixed;
            inset: 0;
            background: var(--primary-gradient);
            display: flex;
            align-items: center;
            justify-content: center;
            z-index: 1000;
            opacity: 1;
            transition: opacity 0.5s ease;
        }
        .overlay.hidden {
            opacity: 0;
            pointer-events: none;
        }
        .overlay-content h1 {
            font-size: clamp(2.5rem, 8vw, 4rem);
            font-weight: 800;
            background: var(--secondary-gradient);
            -webkit-background-clip: text;
            background-clip: text;
            -webkit-text-fill-color: transparent;
            animation: glow 2s ease-in-out infinite alternate;
            margin-bottom: 1rem;
        }
        @keyframes glow {
            from { text-shadow: 0 0 20px rgba(245, 87, 108, 0.5); }
            to { text-shadow: 0 0 30px rgba(245, 87, 108, 0.8); }
        }
        .overlay-icons {
            display: flex;
            gap: 1rem;
        }
        .overlay-icon {
            width: 60px;
            height: 60px;
            border-radius: 50%;
            background: rgba(255, 255, 255, 0.2);
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 1.5rem;
            color: white;
            animation: float 3s ease-in-out infinite;
        }
        .overlay-icon:nth-child(2) { animation-delay: 0.5s; }
        .overlay-icon:nth-child(3) { animation-delay: 1s; }
        main {
            padding: 2rem 0;
        }
        section {
            margin-bottom: 4rem;
        }
        .section-title {
            text-align: center;
            font-size: clamp(1.5rem, 4vw, 2.5rem);
            font-weight: 700;
            margin-bottom: 2rem;
            background: var(--primary-gradient);
            -webkit-background-clip: text;
            background-clip: text;
            -webkit-text-fill-color: transparent;
        }
        .intro-text {
            text-align: center;
            max-width: 800px;
            margin: 0 auto 3rem;
            font-size: 1.1rem;
            line-height: 1.6;
            opacity: 0.9;
        }
        .video-call-card {
            background: var(--card-bg-dark);
            border-radius: 20px;
            padding: 2rem;
            border: 1px solid var(--border-dark);
            box-shadow: var(--shadow-dark);
            transition: all 0.4s ease;
            max-width: 600px;
            margin: 0 auto;
        }
        body.light-mode .video-call-card {
            background: var(--card-bg-light);
            border: 1px solid var(--border-light);
            box-shadow: var(--shadow-light);
        }
        .video-call-card.active {
            max-width: 100%;
            padding: 3rem;
            box-shadow: 0 25px 50px -12px rgba(102, 126, 234, 0.25);
            border: 1px solid var(--primary-gradient);
        }
        .controls-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
            gap: 1rem;
            margin-bottom: 2rem;
        }
        .form-group {
            margin-bottom: 1.5rem;
            
        }
        .form-label {
            display: block;
            font-weight: 600;
            margin-bottom: 0.5rem;
            color: var(--text-dark);
            
        }
        body.light-mode .form-label {
            color: var(--text-light);
        }
        input, select {
            width: 100%;
            padding: 0.75rem;
            border: 1px solid var(--border-dark);
            border-radius: 10px;
            background: rgba(255, 255, 255, 0.05);
            color: var(--text-dark);
            font-family: inherit;
            transition: all 0.3s ease;
        }
        body.light-mode input, body.light-mode select {
            background: rgba(255, 255, 255, 0.8);
            color: var(--text-light);
            border: 1px solid var(--border-light);
        }
        input:focus, select:focus {
            outline: none;
            border-color: #667eea;
            background: rgb(40, 38, 41);
            box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
        }
        /* هر آیتم: متن چپ، سوئیچ راست */
        .toggle-group  {
            display: flex;
            align-items: center;
            justify-content: space-between;

            padding: 0.75rem 1rem;
            background: rgba(255, 255, 255, 0.05);
            border-radius: 12px;
            transition: all 0.3s ease;
            border: 1px solid transparent;
        }
        body.light-mode .toggle-group {
            background: rgba(0, 0, 0, 0.05);
        }
        .toggle-label {
            display: flex;
            align-items: center;
            gap: 0.5rem;
            font-weight: 500;
        }
        .toggle-switch {
            position: relative;
            width: 48px;
            height: 23px;
            flex-shrink: 0;
            cursor: pointer;
        }
        .toggle-switch input {
            opacity: 0;
            width: 0;
            height: 0;
            position: absolute;
        }
        .toggle-slider {
            position: absolute;
            cursor: pointer;
            top: 0;
            right: 0;
            bottom: 0;
            left: 0;
            background-color: #475569;
            transition: 0.4s;
            border-radius: 28px;
        }
        .toggle-slider:before {
            position: absolute;
            content: "";
            height: 21px;
            width: 21px;
            right: 1px;
            bottom: 1px;
            background-color: #5ef7ff;
            box-shadow: 0 0 0 1px #1fddff71;
            transition: 0.4s;
            border-radius: 50%;
        }
        input:checked + .toggle-slider {
            background-color: #be6eff;
        }
        input:checked + .toggle-slider:before {
            transform: translateX(-23px);
            background-color: #00f2ff;
            box-shadow: 0 0 00 3px #5dffe47e;            
        }
        
        .advanced-toggle {
            width: 100%;
            justify-content: space-between;
            margin-bottom: 1rem;
        }
        .advanced-panel {
            background: rgba(255, 255, 255, 0.03);
            border-radius: 10px;
            padding: 1.5rem;
            border: 1px solid var(--border-dark);
            animation: slideDown 0.3s ease;
        }
        /* استایل یکنواخت برای تگ‌های داخل پنل پیشرفته */
        #advancedSettingsPanel .toggle-group {
            background: transparent;
            border: none;
            padding: 0;
            gap: 0;
        }


        #advancedSettingsPanel .toggle-group > div:hover {
            background: rgba(102, 126, 234, 0.15);
            border-color: rgba(102, 126, 234, 0.4);
        }        
        body.light-mode .advanced-panel {
            background: rgba(0, 0, 0, 0.03);
            border: 1px solid var(--border-light);
        }
        @keyframes slideDown {
            from { opacity: 0; transform: translateY(-10px); }
            to { opacity: 1; transform: translateY(0); }
        }
        .video-frame {
            position: relative;
            width: 100%;
            height: 0;
            padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
            background: linear-gradient(135deg, #1a1a2e, #16213e);
            border-radius: 15px;
            overflow: hidden;
            border: 2px solid var(--border-dark);
            box-shadow: inset 0 0 50px rgba(0, 0, 0, 0.5);
            margin-bottom: 2rem;
            transition: all 0.4s ease;
        }

        .video-frame iframe {
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            border: none;
            border-radius: 13px;
        }

        /* وقتی تماس فعال شد، ارتفاع بیشتر و بهتر */
        .video-call-card.active .video-frame {
            border-color: #667eea;
            box-shadow: 0 0 30px rgba(102, 126, 234, 0.3);
            padding-bottom: 56.25%; /* حفظ نسبت */
            min-height: 60vh; /* حداقل 60% ارتفاع صفحه */
        }
        
        iframe {
            width: 100%;
            height: 100%;
            border: none;
            border-radius: 13px;
        }
        .loading-overlay {
            position: absolute;
            inset: 0;
            background: rgba(0, 0, 0, 0.7);
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: center;
            color: white;
            border-radius: 13px;
        }
        .loader {
            display: flex;
            gap: 0.5rem;
            margin-bottom: 1rem;
        }
        .dot {
            width: 12px;
            height: 12px;
            border-radius: 50%;
            background: #667eea;
            animation: pulse-dot 1.4s infinite ease-in-out;
        }
        .dot:nth-child(2) { animation-delay: 0.2s; }
        .dot:nth-child(3) { animation-delay: 0.4s; }
        @keyframes pulse-dot {
            0%, 80%, 100% { transform: scale(0); }
            40% { transform: scale(1); }
        }
        .link-section {
            margin-top: 1.5rem;
        }
        .link-input-group {
            display: flex;
            gap: 0.5rem;
            margin-bottom: 0.5rem;
        }
        .link-input {
            flex: 1;
            padding: 0.75rem;
            border: 1px solid var(--border-dark);
            border-radius: 10px;
            background: rgba(255, 255, 255, 0.05);
            color: var(--text-dark);
        }
        body.light-mode .link-input {
            background: rgba(255, 255, 255, 0.8);
            color: var(--text-light);
        }
        .message {
            margin-top: 0.5rem;
            padding: 0.5rem;
            border-radius: 5px;
            font-size: 0.9rem;
        }
        .message.success {
            background: rgba(16, 185, 129, 0.1);
            color: var(--success);
        }
        .message.error {
            background: rgba(239, 68, 68, 0.1);
            color: var(--danger);
        }
        .features-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
            gap: 2rem;
        }
        .feature-card {
            background: var(--card-bg-dark);
            border-radius: 20px;
            padding: 2rem;
            text-align: center;
            transition: all 0.3s ease;
            border: 1px solid var(--border-dark);
            position: relative;
            overflow: hidden;
        }
        body.light-mode .feature-card {
            background: var(--card-bg-light);
            border: 1px solid var(--border-light);
        }
        .feature-card::before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            height: 4px;
            background: var(--primary-gradient);
            transform: scaleX(0);
            transition: transform 0.3s ease;
        }
        .feature-card:hover::before {
            transform: scaleX(1);
        }
        .feature-card:hover {
            transform: translateY(-10px);
            box-shadow: var(--shadow-dark);
        }
        .feature-icon {
            font-size: 3rem;
            color: #667eea;
            margin-bottom: 1rem;
            animation: iconFloat 2s ease-in-out infinite;
        }
        @keyframes iconFloat {
            0%, 100% { transform: translateY(0px); }
            50% { transform: translateY(-5px); }
        }
        .feature-title {
            font-size: 1.25rem;
            font-weight: 600;
            margin-bottom: 0.5rem;
        }
        .feature-desc {
            opacity: 0.8;
            line-height: 1.5;
        }
        .featured-card {
            border-color: #667eea;
            box-shadow: var(--neon-glow);
        }
        .featured-card a {
            color: inherit;
            text-decoration: none;
        }
        .about-btn {
            display: inline-block;
            margin-top: 1rem;
        }
        footer {
            background: rgba(15, 15, 35, 0.95);
            padding: 2rem 0;
            text-align: center;
            border-top: 1px solid var(--border-dark);
        }
        body.light-mode footer {
            background: rgba(255, 255, 255, 0.95);
            border-top: 1px solid var(--border-light);
        }
        .footer-links {
            display: flex;
            justify-content: center;
            gap: 2rem;
        }
        .footer-links a {
            color: var(--text-dark);
            text-decoration: none;
            opacity: 0.8;
            transition: opacity 0.3s ease;
        }
        body.light-mode .footer-links a {
            color: var(--text-light);
        }
        .footer-links a:hover {
            opacity: 1;
        }
        @media (max-width: 768px) {
            .controls-grid {
                grid-template-columns: 1fr;
            }
            .video-call-card {
                padding: 1.5rem;
            }
            .video-call-card.active {
                padding: 2rem;
            }
            .features-grid {
                grid-template-columns: 1fr;
                gap: 1.5rem;
            }
            .footer-links {
                flex-direction: column;
                gap: 1rem;
            }
            .video-frame {
                aspect-ratio: 9 / 16;
                max-height: 90vh;
            }
            iframe {
                transform: scale(0.8);
                transform-origin: center;
            }
        }
        input[type="range"] {
            -webkit-appearance: none;
            appearance: none;
            height: 6px;
            border-radius: 3px;
            background: var(--border-dark);
            outline: none;
        }
        input[type="range"]::-webkit-slider-thumb {
            -webkit-appearance: none;
            appearance: none;
            width: 20px;
            height: 20px;
            border-radius: 50%;
            background: #667eea;
            cursor: pointer;
            box-shadow: var(--neon-glow);
        }
        input[type="range"]::-moz-range-thumb {
            width: 20px;
            height: 20px;
            border-radius: 50%;
            background: #667eea;
            cursor: pointer;
            border: none;
            box-shadow: var(--neon-glow);
        }
        [data-tooltip] {
            position: relative;
        }
        [data-tooltip]:hover::after {
            content: attr(data-tooltip);
            position: absolute;
            bottom: 100%;
            right: 50%;
            transform: translateX(50%);
            background: var(--primary-gradient);
            color: white;
            padding: 0.5rem 1rem;
            border-radius: 10px;
            font-size: 0.8rem;
            white-space: nowrap;
            z-index: 10;
            margin-bottom: 0.5rem;
        }
        .hidden {
            display: none !important;
        }
        @keyframes ring {
        0% {
            transform: scale(0.7);
            opacity: 0.8;
            filter: blur(2px);
        }
        50% {
            transform: scale(1.05);
            opacity: 1;
            filter: blur(4px);
        }
        100% {
            transform: scale(0.7);
            opacity: 0.8;
            filter: blur(2px);
        }
        }
        .animate-ring {
        animation: ring 2.5s ease-in-out infinite;
        }
        
        /* انیمیشن ورود کارت‌های ویژگی‌ها */
        @keyframes fade-in-up {
            from {
                opacity: 0;
                transform: translateY(30px);
            }
            to {
                opacity: 1;
                transform: translateY(0);
            }
        }

        .animate-fade-in-up {
            opacity: 0;
            animation: fade-in-up 0.6s ease-out forwards;
        }        
        #mobileMenu.active {
            transform: translateX(0);
        }

        #menuOverlay.active {
            opacity: 1;
            visibility: visible;
            pointer-events: auto;
        } 