/* ─── Range Slider ─────────────────────────────────────────────────────────── */
.rs-wrap { overflow: hidden; }
.rs-vals { display: flex; align-items: center; gap: 4px; margin-bottom: 10px; }
.rs-val { flex: 1; min-width: 0; text-align: center; padding: 5px 4px; border: 1px solid #e5e7eb; border-radius: 8px; font-size: 11px; font-weight: 600; color: #374151; background: #f9fafb; direction: rtl; font-family: 'Vazirmatn', Tahoma, sans-serif; line-height: 1.4; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dark .rs-val { border-color: #334155; color: #e2e8f0; background: #0f172a; }
.rs-dot { font-size: 10px; color: #9ca3af; flex-shrink: 0; }
.rs-slider { position: relative; width: calc(100% - 16px); margin: 0 8px; height: 32px; cursor: pointer; touch-action: none; }
.rs-track { position: absolute; top: 50%; left: 0; right: 0; height: 4px; transform: translateY(-50%); background: #e5e7eb; border-radius: 99px; overflow: hidden; }
.dark .rs-track { background: #334155; }
.rs-fill { position: absolute; top: 0; bottom: 0; background: linear-gradient(90deg, #f43f5e, #fb7185); border-radius: 99px; }
.rs-thumb { position: absolute; top: 50%; width: 16px; height: 16px; border-radius: 50%; background: #fff; border: 2.5px solid #f43f5e; transform: translate(-50%, -50%); cursor: grab; z-index: 2; box-shadow: 0 1px 4px rgba(244, 63, 94, 0.2); transition: box-shadow 0.15s, transform 0.1s; }
.dark .rs-thumb { background: #1e293b; border-color: #fb7185; }
.rs-thumb:hover { box-shadow: 0 0 0 5px rgba(244, 63, 94, 0.1); transform: translate(-50%, -50%) scale(1.2); }
.rs-thumb.active { box-shadow: 0 0 0 6px rgba(244, 63, 94, 0.18); transform: translate(-50%, -50%) scale(1.25); cursor: grabbing; }
.rs-tip { position: absolute; bottom: calc(100% + 6px); left: 50%; transform: translateX(-50%); padding: 2px 7px; border-radius: 5px; font-size: 10px; font-weight: 700; white-space: nowrap; color: #fff; background: #1f2937; pointer-events: none; opacity: 0; transition: opacity 0.15s; direction: rtl; font-family: 'Vazirmatn', Tahoma, sans-serif; }
.dark .rs-tip { background: #e2e8f0; color: #0f172a; }
.rs-tip::after { content: ''; position: absolute; top: 100%; left: 50%; transform: translateX(-50%); border: 3px solid transparent; border-top-color: #1f2937; }
.dark .rs-tip::after { border-top-color: #e2e8f0; }
.rs-thumb:hover .rs-tip, .rs-thumb.active .rs-tip { opacity: 1; }

/* ─── Toast ──────────────────────────────────────────────────────────────────── */
.toast-container { position: fixed; top: 20px; left: 50%; transform: translateX(-50%); z-index: 9999; display: flex; flex-direction: column; gap: 8px; pointer-events: none; }
.toast { padding: 12px 20px; border-radius: 12px; font-size: 13px; font-weight: 600; font-family: 'Vazirmatn', Tahoma, sans-serif; box-shadow: 0 8px 24px rgba(0,0,0,0.12); animation: toastIn 0.3s ease-out; pointer-events: auto; max-width: 360px; text-align: center; }
.toast.success { background: #ecfdf5; color: #065f46; border: 1px solid #a7f3d0; }
.dark .toast.success { background: #064e3b; color: #d1fae5; border-color: #059669; }
.toast.warning { background: #fffbeb; color: #92400e; border: 1px solid #fcd34d; }
.dark .toast.warning { background: #78350f; color: #fef3c7; border-color: #d97706; }
.toast.error { background: #fef2f2; color: #991b1b; border: 1px solid #fecaca; }
.dark .toast.error { background: #7f1d1d; color: #fee2e2; border-color: #dc2626; }
.toast.fadeout { animation: toastOut 0.3s ease-in forwards; }
@keyframes toastIn { from { opacity: 0; transform: translateY(-10px); } to { opacity: 1; transform: translateY(0); } }
@keyframes toastOut { from { opacity: 1; transform: translateY(0); } to { opacity: 0; transform: translateY(-10px); } }
