        /* =========================================
           بخش اول: کدهای CSS اصلی شما (st.css)
           ========================================= */
        * { font-family: 'Vazirmatn', sans-serif !important; }
        body { direction: rtl; }

        :root {
            --bg-dark: #020617;
            --glass-bg: rgba(15, 23, 42, 0.75);
            --glass-border: rgba(255, 255, 255, 0.08);
            --primary: #10b981; /* سبز امنیتی */
            --primary-glow: rgba(16, 185, 129, 0.3);
            --accent: #3b82f6; /* آبی */
            --danger: #ef4444; /* قرمز برای ریست */
            --text-main: #f8fafc;
            --text-muted: #94a3b8;
        }

        * { box-sizing: border-box; outline: none; -webkit-tap-highlight-color: transparent; }

        body {
            margin: 0; padding: 0;
            font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
            background-color: var(--bg-dark);
            background-image: linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
            linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
            background-size: 30px 30px;
            color: var(--text-main);
            min-height: 100vh;
            display: flex; flex-direction: column; align-items: center;
        }

        header { 
            text-align: center; padding: 2rem 1rem; width: 100%; max-width: 800px;
            position: relative;
        }
        .brand {
            font-size: 2.8rem; font-weight: 900; letter-spacing: -2px;
            background: linear-gradient(to right, #fff, var(--primary));
            -webkit-background-clip: text; -webkit-text-fill-color: transparent;
            text-shadow: 0 0 20px var(--primary-glow);
            margin: 0;
        }
        .status-badge {
            background: rgba(16, 185, 129, 0.1); border: 1px solid var(--primary);
            color: var(--primary); padding: 4px 12px; border-radius: 20px;
            font-size: 0.75rem; font-weight: bold; margin-top: 10px; display: inline-block;
        }

        .top-actions {
            display: flex; gap: 10px; justify-content: center; margin-bottom: 20px;
        }
        .icon-btn {
            background: rgba(255,255,255,0.05); border: 1px solid var(--glass-border);
            color: var(--text-muted); border-radius: 50%; width: 40px; height: 40px;
            display: flex; align-items: center; justify-content: center; cursor: pointer;
            transition: 0.3s; font-size: 1.2rem;
        }
        .icon-btn:hover { background: rgba(255,255,255,0.1); color: #fff; transform: scale(1.1); }
        .icon-btn.danger:hover { background: rgba(239, 68, 68, 0.2); color: var(--danger); border-color: var(--danger); }

        .container {
            width: 100%; max-width: 900px; padding: 15px;
            display: grid; grid-template-columns: 1fr; gap: 25px;
            padding-bottom: 120px;
        }
        @media(min-width: 768px) { .container { grid-template-columns: 1fr 1fr; } }

        .card {
            background: var(--glass-bg);
            backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
            border: 1px solid var(--glass-border);
            border-radius: 24px; padding: 25px;
            box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
            display: flex; flex-direction: column;
            transition: transform 0.3s;
        }
        .card:hover { border-color: rgba(255,255,255,0.15); }

        .card-header {
            display: flex; align-items: center; gap: 10px; margin-bottom: 20px;
            font-size: 1.2rem; font-weight: bold; padding-bottom: 10px;
            border-bottom: 1px solid var(--glass-border);
        }
        
        .input-wrapper { position: relative; margin-bottom: 15px; }
        
        input, textarea {
            width: 100%; background: rgba(0,0,0,0.4);
            border: 1px solid var(--glass-border); border-radius: 12px;
            padding: 15px; color: #fff; font-size: 0.95rem; font-family: inherit;
            transition: 0.3s;
        }
        input:focus, textarea:focus { border-color: var(--primary); box-shadow: 0 0 15px var(--primary-glow); }
        textarea { resize: vertical; min-height: 100px; padding-top: 40px; /* فضای خالی برای دکمه پیست */ }

        .mini-btn {
            position: absolute; left: 10px; top: 10px;
            background: rgba(255,255,255,0.1); border: none; border-radius: 6px;
            color: #aaa; font-size: 0.75rem; padding: 4px 8px; cursor: pointer; z-index: 10;
        }
        .mini-btn:hover { background: var(--primary); color: #000; }

        .btn-action {
            width: 100%; padding: 15px; border: none; border-radius: 14px;
            font-size: 1rem; font-weight: bold; cursor: pointer;
            transition: all 0.2s; display: flex; justify-content: center; align-items: center; gap: 8px;
            color: #000; margin-top: 10px;
        }
        .btn-enc { background: linear-gradient(135deg, #10b981, #059669); box-shadow: 0 4px 20px rgba(16, 185, 129, 0.4); }
        .btn-dec { background: linear-gradient(135deg, #3b82f6, #2563eb); color: #fff; box-shadow: 0 4px 20px rgba(59, 130, 246, 0.4); }
        .btn-action:active { transform: scale(0.98); }

        .file-box {
            border: 2px dashed var(--glass-border); border-radius: 12px;
            padding: 15px; text-align: center; position: relative;
            cursor: pointer; transition: 0.3s; margin-bottom: 15px; overflow: hidden;
        }
        .file-box:hover { border-color: var(--primary); background: rgba(16, 185, 129, 0.05); }
        /* مخفی کردن اینپوت فایل اما فعال بودن کلیک */
        .file-box input { position: absolute; width: 100%; height: 100%; top: 0; left: 0; opacity: 0; cursor: pointer; z-index: 5; }
        #preview-img { max-width: 100%; max-height: 200px; border-radius: 8px; display: none; margin: 10px auto; border: 1px solid var(--primary); }

        .output-area {
            background: rgba(0,0,0,0.6); border-radius: 12px; padding: 15px;
            margin-top: 15px; font-family: monospace; font-size: 0.85rem; color: #a5f3fc;
            display: none; border: 1px solid var(--glass-border); word-break: break-all;
            max-height: 150px; overflow-y: auto;
        }
        .action-row {
            display: flex; gap: 10px; margin-top: 10px; display: none;
        }
        .btn-sm {
            flex: 1; padding: 10px; border: 1px solid var(--glass-border); background: rgba(255,255,255,0.05);
            color: #fff; border-radius: 8px; cursor: pointer; font-size: 0.85rem; display: flex; 
            justify-content: center; align-items: center; gap: 5px; transition: 0.3s;
        }
        .btn-sm:hover { background: rgba(255,255,255,0.15); }

        .footer {
            margin-top: auto; width: 100%; padding: 30px 20px;
            background: rgba(0,0,0,0.5); border-top: 1px solid var(--glass-border);
            text-align: center;
        }
        .legal-text { font-size: 0.8rem; color: var(--text-muted); line-height: 1.8; }
        .no-copyright { color: var(--primary); font-weight: bold; }


        /* =========================================
           بخش دوم: استایل‌های اختصاصی (پروتکل و نوتیفیکیشن)
           ========================================= */
        
        /* استایل دکمه پروتکل (شبیه عکس ارسالی) */
        .protocol-wrapper {
            display: flex; justify-content: center; width: 100%; margin: 15px 0;
        }
        .protocol-btn {
            background: rgba(30, 41, 59, 0.6);
            border: 1px solid var(--glass-border);
            border-radius: 12px;
            padding: 10px 20px;
            display: flex; align-items: center; justify-content: space-between;
            width: 100%; max-width: 300px;
            cursor: pointer;
            transition: all 0.3s ease;
            user-select: none;
        }
        .protocol-btn.active {
            border-color: var(--primary);
            background: rgba(16, 185, 129, 0.1);
            box-shadow: 0 0 15px rgba(16, 185, 129, 0.1);
        }
        .protocol-text { font-size: 1rem; font-weight: bold; color: #fff; }
        
        /* سوئیچ خاموش/روشن */
        .toggle-switch {
            width: 44px; height: 24px; background: #333; border-radius: 20px;
            position: relative; transition: 0.3s; border: 1px solid #444;
        }
        .toggle-circle {
            width: 18px; height: 18px; background: #888; border-radius: 50%;
            position: absolute; top: 2px; left: 3px; transition: 0.3s;
        }
        .protocol-btn.active .toggle-switch { background: var(--primary); border-color: var(--primary); }
        .protocol-btn.active .toggle-circle { transform: translateX(20px); background: #fff; }

        /* پنل تنظیمات پیشرفته */
        #advancedOptions {
            display: none;
            background: rgba(16, 185, 129, 0.05); border: 1px dashed var(--primary);
            border-radius: 12px; padding: 15px; margin-bottom: 15px;
            animation: fadeIn 0.3s ease-out;
        }
        @keyframes fadeIn { from { opacity:0; transform:translateY(-10px); } to { opacity:1; transform:translateY(0); } }
        
        .radio-group { display: flex; gap: 15px; margin-top: 10px; }
        .radio-label { display: flex; align-items: center; gap: 8px; font-size: 0.9rem; cursor: pointer; color: var(--text-muted); }
        .radio-label input { width: auto; margin: 0; }
        .radio-label input:checked + span { color: var(--primary); font-weight: bold; }

        /* نوتیفیکیشن بالای صفحه (Toast) */
        #top-toast {
            position: fixed; top: -100px; left: 50%; transform: translateX(-50%);
            background: rgba(15, 23, 42, 0.95); backdrop-filter: blur(10px);
            border: 1px solid var(--primary); border-radius: 50px;
            padding: 12px 30px; z-index: 9999;
            display: flex; align-items: center; gap: 10px;
            box-shadow: 0 10px 40px rgba(0,0,0,0.5);
            transition: top 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
            width: max-content; max-width: 90%;
        }
        #top-toast.show { top: 20px; }
        #top-toast.error { border-color: var(--danger); }
        #toast-msg { font-size: 0.9rem; font-weight: bold; }
        
        /* --- فوتر --- */
        .footer {
            margin-top: auto; width: 100%; padding: 30px 20px;
            background: rgba(0,0,0,0.5); border-top: 1px solid var(--glass-border);
            text-align: center;
        }
        .dl-section {
            background: linear-gradient(45deg, rgba(16,185,129,0.1), rgba(59,130,246,0.1));
            border: 1px solid var(--primary); border-radius: 20px;
            padding: 20px; max-width: 600px; margin: 0 auto 20px;
            animation: pulse-border 3s infinite;
        }
        @keyframes pulse-border { 50% { border-color: rgba(16,185,129,0.3); } }
        
        .dl-btn {
            background: var(--primary); color: #000; padding: 12px 25px; border-radius: 50px;
            text-decoration: none; font-weight: bold; display: inline-flex; align-items: center; gap: 10px;
            cursor: pointer; box-shadow: 0 0 20px var(--primary-glow); transition: 0.3s;
            border: none; font-size: 1rem;
        }
        .dl-btn:hover { transform: scale(1.05); box-shadow: 0 0 30px var(--primary-glow); }

        .legal-text { font-size: 0.8rem; color: var(--text-muted); line-height: 1.8; }
        .no-copyright { color: var(--primary); font-weight: bold; }
        .help-tip { background: rgba(255,255,255,0.05); padding: 10px; border-radius: 8px; margin-top: 15px; font-size: 0.85rem; }